!(function(){var lw=Object.defineProperty,uw=Object.defineProperties;var hw=Object.getOwnPropertyDescriptors;var tv=Object.getOwnPropertySymbols;var wx=Object.prototype.hasOwnProperty,Px=Object.prototype.propertyIsEnumerable;var Qy=Math.pow,xx=(Un,pi,De)=>pi in Un?lw(Un,pi,{enumerable:!0,configurable:!0,writable:!0,value:De}):Un[pi]=De,Fo=(Un,pi)=>{for(var De in pi||(pi={}))wx.call(pi,De)&&xx(Un,De,pi[De]);if(tv)for(var De of tv(pi))Px.call(pi,De)&&xx(Un,De,pi[De]);return Un},Za=(Un,pi)=>uw(Un,hw(pi));var nv=(Un,pi)=>{var De={};for(var ye in Un)wx.call(Un,ye)&&pi.indexOf(ye)<0&&(De[ye]=Un[ye]);if(Un!=null&&tv)for(var ye of tv(Un))pi.indexOf(ye)<0&&Px.call(Un,ye)&&(De[ye]=Un[ye]);return De};var Cx=(Un,pi,De)=>new Promise((ye,tt)=>{var it=ze=>{try{Et(De.next(ze))}catch(ct){tt(ct)}},Ft=ze=>{try{Et(De.throw(ze))}catch(ct){tt(ct)}},Et=ze=>ze.done?ye(ze.value):Promise.resolve(ze.value).then(it,Ft);Et((De=De.apply(Un,pi)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[4030],{87954:function(Un,pi,De){"use strict";De.d(pi,{LB:function(){return Pi},g4:function(){return on},VK:function(){return yn},Cj:function(){return br},O1:function(){return Pr},Zj:function(){return Ki}});var ye=De(59301),tt=De(4676),it=De(35241);const Ft={display:"none"};function Et(He){let{id:$e,value:yt}=He;return ye.createElement("div",{id:$e,style:Ft},yt)}function ze(He){let{id:$e,announcement:yt,ariaLiveType:Ot="assertive"}=He;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 ye.createElement("div",{id:$e,style:en,role:"status","aria-live":Ot,"aria-atomic":!0},yt)}function ct(){const[He,$e]=(0,ye.useState)("");return{announce:(0,ye.useCallback)(Ot=>{Ot!=null&&$e(Ot)},[]),announcement:He}}const Kt=(0,ye.createContext)(null);function ft(He){const $e=(0,ye.useContext)(Kt);(0,ye.useEffect)(()=>{if(!$e)throw new Error("useDndMonitor must be used within a children of ");return $e(He)},[He,$e])}function Me(){const[He]=(0,ye.useState)(()=>new Set),$e=(0,ye.useCallback)(Ot=>(He.add(Ot),()=>He.delete(Ot)),[He]);return[(0,ye.useCallback)(Ot=>{let{type:en,event:nt}=Ot;He.forEach(kt=>{var Gt;return(Gt=kt[en])==null?void 0:Gt.call(kt,nt)})},[He]),$e]}const It={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. `},Ye={onDragStart(He){let{active:$e}=He;return"Picked up draggable item "+$e.id+"."},onDragOver(He){let{active:$e,over:yt}=He;return yt?"Draggable item "+$e.id+" was moved over droppable area "+yt.id+".":"Draggable item "+$e.id+" is no longer over a droppable area."},onDragEnd(He){let{active:$e,over:yt}=He;return yt?"Draggable item "+$e.id+" was dropped over droppable area "+yt.id:"Draggable item "+$e.id+" was dropped."},onDragCancel(He){let{active:$e}=He;return"Dragging was cancelled. Draggable item "+$e.id+" was dropped."}};function Ht(He){let{announcements:$e=Ye,container:yt,hiddenTextDescribedById:Ot,screenReaderInstructions:en=It}=He;const{announce:nt,announcement:kt}=ct(),Gt=(0,it.Ld)("DndLiveRegion"),[Rt,an]=(0,ye.useState)(!1);if((0,ye.useEffect)(()=>{an(!0)},[]),ft((0,ye.useMemo)(()=>({onDragStart(Ee){let{active:Ue}=Ee;nt($e.onDragStart({active:Ue}))},onDragMove(Ee){let{active:Ue,over:Re}=Ee;$e.onDragMove&&nt($e.onDragMove({active:Ue,over:Re}))},onDragOver(Ee){let{active:Ue,over:Re}=Ee;nt($e.onDragOver({active:Ue,over:Re}))},onDragEnd(Ee){let{active:Ue,over:Re}=Ee;nt($e.onDragEnd({active:Ue,over:Re}))},onDragCancel(Ee){let{active:Ue,over:Re}=Ee;nt($e.onDragCancel({active:Ue,over:Re}))}}),[nt,$e])),!Rt)return null;const si=ye.createElement(ye.Fragment,null,ye.createElement(Et,{id:Ot,value:en.draggable}),ye.createElement(ze,{id:Gt,announcement:kt}));return yt?(0,tt.createPortal)(si,yt):si}var Ne;(function(He){He.DragStart="dragStart",He.DragMove="dragMove",He.DragEnd="dragEnd",He.DragCancel="dragCancel",He.DragOver="dragOver",He.RegisterDroppable="registerDroppable",He.SetDroppableDisabled="setDroppableDisabled",He.UnregisterDroppable="unregisterDroppable"})(Ne||(Ne={}));function ne(){}function te(He,$e){return useMemo(()=>({sensor:He,options:$e!=null?$e:{}}),[He,$e])}function de(){for(var He=arguments.length,$e=new Array(He),yt=0;yt[...$e].filter(Ot=>Ot!=null),[...$e])}const le=Object.freeze({x:0,y:0});function ge(He,$e){return Math.sqrt(Math.pow(He.x-$e.x,2)+Math.pow(He.y-$e.y,2))}function me(He,$e){const yt=getEventCoordinates(He);if(!yt)return"0 0";const Ot={x:(yt.x-$e.left)/$e.width*100,y:(yt.y-$e.top)/$e.height*100};return Ot.x+"% "+Ot.y+"%"}function Se(He,$e){let{data:{value:yt}}=He,{data:{value:Ot}}=$e;return yt-Ot}function Le(He,$e){let{data:{value:yt}}=He,{data:{value:Ot}}=$e;return Ot-yt}function Ie(He){let{left:$e,top:yt,height:Ot,width:en}=He;return[{x:$e,y:yt},{x:$e+en,y:yt},{x:$e,y:yt+Ot},{x:$e+en,y:yt+Ot}]}function Ze(He,$e){if(!He||He.length===0)return null;const[yt]=He;return $e?yt[$e]:yt}function st(He,$e,yt){return $e===void 0&&($e=He.left),yt===void 0&&(yt=He.top),{x:$e+He.width*.5,y:yt+He.height*.5}}const Ve=He=>{let{collisionRect:$e,droppableRects:yt,droppableContainers:Ot}=He;const en=st($e,$e.left,$e.top),nt=[];for(const kt of Ot){const{id:Gt}=kt,Rt=yt.get(Gt);if(Rt){const an=ge(st(Rt),en);nt.push({id:Gt,data:{droppableContainer:kt,value:an}})}}return nt.sort(Se)},Xe=He=>{let{collisionRect:$e,droppableRects:yt,droppableContainers:Ot}=He;const en=Ie($e),nt=[];for(const kt of Ot){const{id:Gt}=kt,Rt=yt.get(Gt);if(Rt){const an=Ie(Rt),si=en.reduce((Ue,Re,ot)=>Ue+ge(an[ot],Re),0),Ee=Number((si/4).toFixed(4));nt.push({id:Gt,data:{droppableContainer:kt,value:Ee}})}}return nt.sort(Se)};function wt(He,$e){const yt=Math.max($e.top,He.top),Ot=Math.max($e.left,He.left),en=Math.min($e.left+$e.width,He.left+He.width),nt=Math.min($e.top+$e.height,He.top+He.height),kt=en-Ot,Gt=nt-yt;if(Ot{let{collisionRect:$e,droppableRects:yt,droppableContainers:Ot}=He;const en=[];for(const nt of Ot){const{id:kt}=nt,Gt=yt.get(kt);if(Gt){const Rt=wt(Gt,$e);Rt>0&&en.push({id:kt,data:{droppableContainer:nt,value:Rt}})}}return en.sort(Le)};function Nt(He,$e){const{top:yt,left:Ot,bottom:en,right:nt}=$e;return yt<=He.y&&He.y<=en&&Ot<=He.x&&He.x<=nt}const Ct=He=>{let{droppableContainers:$e,droppableRects:yt,pointerCoordinates:Ot}=He;if(!Ot)return[];const en=[];for(const nt of $e){const{id:kt}=nt,Gt=yt.get(kt);if(Gt&&Nt(Ot,Gt)){const an=Ie(Gt).reduce((Ee,Ue)=>Ee+ge(Ot,Ue),0),si=Number((an/4).toFixed(4));en.push({id:kt,data:{droppableContainer:nt,value:si}})}}return en.sort(Se)};function ln(He,$e,yt){return Za(Fo({},He),{scaleX:$e&&yt?$e.width/yt.width:1,scaleY:$e&&yt?$e.height/yt.height:1})}function bn(He,$e){return He&&$e?{x:He.left-$e.left,y:He.top-$e.top}:le}function fn(He){return function(yt){for(var Ot=arguments.length,en=new Array(Ot>1?Ot-1:0),nt=1;ntZa(Fo({},kt),{top:kt.top+He*Gt.y,bottom:kt.bottom+He*Gt.y,left:kt.left+He*Gt.x,right:kt.right+He*Gt.x}),Fo({},yt))}}const Yt=fn(1);function Ln(He){if(He.startsWith("matrix3d(")){const $e=He.slice(9,-1).split(/, /);return{x:+$e[12],y:+$e[13],scaleX:+$e[0],scaleY:+$e[5]}}else if(He.startsWith("matrix(")){const $e=He.slice(7,-1).split(/, /);return{x:+$e[4],y:+$e[5],scaleX:+$e[0],scaleY:+$e[3]}}return null}function lt(He,$e,yt){const Ot=Ln($e);if(!Ot)return He;const{scaleX:en,scaleY:nt,x:kt,y:Gt}=Ot,Rt=He.left-kt-(1-en)*parseFloat(yt),an=He.top-Gt-(1-nt)*parseFloat(yt.slice(yt.indexOf(" ")+1)),si=en?He.width/en:He.width,Ee=nt?He.height/nt:He.height;return{width:si,height:Ee,top:an,right:Rt+si,bottom:an+Ee,left:Rt}}const qe={ignoreTransform:!1};function yn(He,$e){$e===void 0&&($e=qe);let yt=He.getBoundingClientRect();if($e.ignoreTransform){const{transform:an,transformOrigin:si}=(0,it.Jj)(He).getComputedStyle(He);an&&(yt=lt(yt,an,si))}const{top:Ot,left:en,width:nt,height:kt,bottom:Gt,right:Rt}=yt;return{top:Ot,left:en,width:nt,height:kt,bottom:Gt,right:Rt}}function oi(He){return yn(He,{ignoreTransform:!0})}function Yn(He){const $e=He.innerWidth,yt=He.innerHeight;return{top:0,left:0,right:$e,bottom:yt,width:$e,height:yt}}function rn(He,$e){return $e===void 0&&($e=(0,it.Jj)(He).getComputedStyle(He)),$e.position==="fixed"}function Gn(He,$e){$e===void 0&&($e=(0,it.Jj)(He).getComputedStyle(He));const yt=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(en=>{const nt=$e[en];return typeof nt=="string"?yt.test(nt):!1})}function Mn(He,$e){const yt=[];function Ot(en){if($e!=null&&yt.length>=$e||!en)return yt;if((0,it.qk)(en)&&en.scrollingElement!=null&&!yt.includes(en.scrollingElement))return yt.push(en.scrollingElement),yt;if(!(0,it.Re)(en)||(0,it.vZ)(en)||yt.includes(en))return yt;const nt=(0,it.Jj)(He).getComputedStyle(en);return en!==He&&Gn(en,nt)&&yt.push(en),rn(en,nt)?yt:Ot(en.parentNode)}return He?Ot(He):yt}function xi(He){const[$e]=Mn(He,1);return $e!=null?$e:null}function Wt(He){return!it.Nq||!He?null:(0,it.FJ)(He)?He:(0,it.UG)(He)?(0,it.qk)(He)||He===(0,it.r3)(He).scrollingElement?window:(0,it.Re)(He)?He:null:null}function Nn(He){return(0,it.FJ)(He)?He.scrollX:He.scrollLeft}function St(He){return(0,it.FJ)(He)?He.scrollY:He.scrollTop}function bi(He){return{x:Nn(He),y:St(He)}}var qn;(function(He){He[He.Forward=1]="Forward",He[He.Backward=-1]="Backward"})(qn||(qn={}));function je(He){return!it.Nq||!He?!1:He===document.scrollingElement}function be(He){const $e={x:0,y:0},yt=je(He)?{height:window.innerHeight,width:window.innerWidth}:{height:He.clientHeight,width:He.clientWidth},Ot={x:He.scrollWidth-yt.width,y:He.scrollHeight-yt.height},en=He.scrollTop<=$e.y,nt=He.scrollLeft<=$e.x,kt=He.scrollTop>=Ot.y,Gt=He.scrollLeft>=Ot.x;return{isTop:en,isLeft:nt,isBottom:kt,isRight:Gt,maxScroll:Ot,minScroll:$e}}const we={x:.2,y:.2};function Be(He,$e,yt,Ot,en){let{top:nt,left:kt,right:Gt,bottom:Rt}=yt;Ot===void 0&&(Ot=10),en===void 0&&(en=we);const{isTop:an,isBottom:si,isLeft:Ee,isRight:Ue}=be(He),Re={x:0,y:0},ot={x:0,y:0},ut={height:$e.height*en.y,width:$e.width*en.x};return!an&&nt<=$e.top+ut.height?(Re.y=qn.Backward,ot.y=Ot*Math.abs(($e.top+ut.height-nt)/ut.height)):!si&&Rt>=$e.bottom-ut.height&&(Re.y=qn.Forward,ot.y=Ot*Math.abs(($e.bottom-ut.height-Rt)/ut.height)),!Ue&&Gt>=$e.right-ut.width?(Re.x=qn.Forward,ot.x=Ot*Math.abs(($e.right-ut.width-Gt)/ut.width)):!Ee&&kt<=$e.left+ut.width&&(Re.x=qn.Backward,ot.x=Ot*Math.abs(($e.left+ut.width-kt)/ut.width)),{direction:Re,speed:ot}}function Ke(He){if(He===document.scrollingElement){const{innerWidth:nt,innerHeight:kt}=window;return{top:0,left:0,right:nt,bottom:kt,width:nt,height:kt}}const{top:$e,left:yt,right:Ot,bottom:en}=He.getBoundingClientRect();return{top:$e,left:yt,right:Ot,bottom:en,width:He.clientWidth,height:He.clientHeight}}function ke(He){return He.reduce(($e,yt)=>(0,it.IH)($e,bi(yt)),le)}function et(He){return He.reduce(($e,yt)=>$e+Nn(yt),0)}function sn(He){return He.reduce(($e,yt)=>$e+St(yt),0)}function Bt(He,$e){if($e===void 0&&($e=yn),!He)return;const{top:yt,left:Ot,bottom:en,right:nt}=$e(He);xi(He)&&(en<=0||nt<=0||yt>=window.innerHeight||Ot>=window.innerWidth)&&He.scrollIntoView({block:"center",inline:"center"})}const _t=[["x",["left","right"],et],["y",["top","bottom"],sn]];class vt{constructor($e,yt){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 Ot=Mn(yt),en=ke(Ot);this.rect=Fo({},$e),this.width=$e.width,this.height=$e.height;for(const[nt,kt,Gt]of _t)for(const Rt of kt)Object.defineProperty(this,Rt,{get:()=>{const an=Gt(Ot),si=en[nt]-an;return this.rect[Rt]+si},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class xt{constructor($e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(yt=>{var Ot;return(Ot=this.target)==null?void 0:Ot.removeEventListener(...yt)})},this.target=$e}add($e,yt,Ot){var en;(en=this.target)==null||en.addEventListener($e,yt,Ot),this.listeners.push([$e,yt,Ot])}}function Tt(He){const{EventTarget:$e}=(0,it.Jj)(He);return He instanceof $e?He:(0,it.r3)(He)}function Ut(He,$e){const yt=Math.abs(He.x),Ot=Math.abs(He.y);return typeof $e=="number"?Math.sqrt(Qy(yt,2)+Qy(Ot,2))>$e:"x"in $e&&"y"in $e?yt>$e.x&&Ot>$e.y:"x"in $e?yt>$e.x:"y"in $e?Ot>$e.y:!1}var hn;(function(He){He.Click="click",He.DragStart="dragstart",He.Keydown="keydown",He.ContextMenu="contextmenu",He.Resize="resize",He.SelectionChange="selectionchange",He.VisibilityChange="visibilitychange"})(hn||(hn={}));function kn(He){He.preventDefault()}function xn(He){He.stopPropagation()}var on;(function(He){He.Space="Space",He.Down="ArrowDown",He.Right="ArrowRight",He.Left="ArrowLeft",He.Up="ArrowUp",He.Esc="Escape",He.Enter="Enter",He.Tab="Tab"})(on||(on={}));const jt={start:[on.Space,on.Enter],cancel:[on.Esc],end:[on.Space,on.Enter,on.Tab]},Xt=(He,$e)=>{let{currentCoordinates:yt}=$e;switch(He.code){case on.Right:return Za(Fo({},yt),{x:yt.x+25});case on.Left:return Za(Fo({},yt),{x:yt.x-25});case on.Down:return Za(Fo({},yt),{y:yt.y+25});case on.Up:return Za(Fo({},yt),{y:yt.y-25})}};class gn{constructor($e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=$e;const{event:{target:yt}}=$e;this.props=$e,this.listeners=new xt((0,it.r3)(yt)),this.windowListeners=new xt((0,it.Jj)(yt)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(hn.Resize,this.handleCancel),this.windowListeners.add(hn.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(hn.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:$e,onStart:yt}=this.props,Ot=$e.node.current;Ot&&Bt(Ot),yt(le)}handleKeyDown($e){if((0,it.vd)($e)){const{active:yt,context:Ot,options:en}=this.props,{keyboardCodes:nt=jt,coordinateGetter:kt=Xt,scrollBehavior:Gt="smooth"}=en,{code:Rt}=$e;if(nt.end.includes(Rt)){this.handleEnd($e);return}if(nt.cancel.includes(Rt)){this.handleCancel($e);return}const{collisionRect:an}=Ot.current,si=an?{x:an.left,y:an.top}:le;this.referenceCoordinates||(this.referenceCoordinates=si);const Ee=kt($e,{active:yt,context:Ot.current,currentCoordinates:si});if(Ee){const Ue=(0,it.$X)(Ee,si),Re={x:0,y:0},{scrollableAncestors:ot}=Ot.current;for(const ut of ot){const Zt=$e.code,{isTop:Vt,isRight:tn,isLeft:An,isBottom:In,maxScroll:pn,minScroll:Qn}=be(ut),mi=Ke(ut),ht={x:Math.min(Zt===on.Right?mi.right-mi.width/2:mi.right,Math.max(Zt===on.Right?mi.left:mi.left+mi.width/2,Ee.x)),y:Math.min(Zt===on.Down?mi.bottom-mi.height/2:mi.bottom,Math.max(Zt===on.Down?mi.top:mi.top+mi.height/2,Ee.y))},_n=Zt===on.Right&&!tn||Zt===on.Left&&!An,ni=Zt===on.Down&&!In||Zt===on.Up&&!Vt;if(_n&&ht.x!==Ee.x){const On=ut.scrollLeft+Ue.x,ii=Zt===on.Right&&On<=pn.x||Zt===on.Left&&On>=Qn.x;if(ii&&!Ue.y){ut.scrollTo({left:On,behavior:Gt});return}ii?Re.x=ut.scrollLeft-On:Re.x=Zt===on.Right?ut.scrollLeft-pn.x:ut.scrollLeft-Qn.x,Re.x&&ut.scrollBy({left:-Re.x,behavior:Gt});break}else if(ni&&ht.y!==Ee.y){const On=ut.scrollTop+Ue.y,ii=Zt===on.Down&&On<=pn.y||Zt===on.Up&&On>=Qn.y;if(ii&&!Ue.x){ut.scrollTo({top:On,behavior:Gt});return}ii?Re.y=ut.scrollTop-On:Re.y=Zt===on.Down?ut.scrollTop-pn.y:ut.scrollTop-Qn.y,Re.y&&ut.scrollBy({top:-Re.y,behavior:Gt});break}}this.handleMove($e,(0,it.IH)((0,it.$X)(Ee,this.referenceCoordinates),Re))}}}handleMove($e,yt){const{onMove:Ot}=this.props;$e.preventDefault(),Ot(yt)}handleEnd($e){const{onEnd:yt}=this.props;$e.preventDefault(),this.detach(),yt()}handleCancel($e){const{onCancel:yt}=this.props;$e.preventDefault(),this.detach(),yt()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}gn.activators=[{eventName:"onKeyDown",handler:(He,$e,yt)=>{let{keyboardCodes:Ot=jt,onActivation:en}=$e,{active:nt}=yt;const{code:kt}=He.nativeEvent;if(Ot.start.includes(kt)){const Gt=nt.activatorNode.current;return Gt&&He.target!==Gt?!1:(He.preventDefault(),en==null||en({event:He.nativeEvent}),!0)}return!1}}];function En(He){return!!(He&&"distance"in He)}function Vn(He){return!!(He&&"delay"in He)}class ri{constructor($e,yt,Ot){var en;Ot===void 0&&(Ot=Tt($e.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=$e,this.events=yt;const{event:nt}=$e,{target:kt}=nt;this.props=$e,this.events=yt,this.document=(0,it.r3)(kt),this.documentListeners=new xt(this.document),this.listeners=new xt(Ot),this.windowListeners=new xt((0,it.Jj)(kt)),this.initialCoordinates=(en=(0,it.DC)(nt))!=null?en:le,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:$e,props:{options:{activationConstraint:yt,bypassActivationConstraint:Ot}}}=this;if(this.listeners.add($e.move.name,this.handleMove,{passive:!1}),this.listeners.add($e.end.name,this.handleEnd),$e.cancel&&this.listeners.add($e.cancel.name,this.handleCancel),this.windowListeners.add(hn.Resize,this.handleCancel),this.windowListeners.add(hn.DragStart,kn),this.windowListeners.add(hn.VisibilityChange,this.handleCancel),this.windowListeners.add(hn.ContextMenu,kn),this.documentListeners.add(hn.Keydown,this.handleKeydown),yt){if(Ot!=null&&Ot({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Vn(yt)){this.timeoutId=setTimeout(this.handleStart,yt.delay),this.handlePending(yt);return}if(En(yt)){this.handlePending(yt);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($e,yt){const{active:Ot,onPending:en}=this.props;en(Ot,$e,this.initialCoordinates,yt)}handleStart(){const{initialCoordinates:$e}=this,{onStart:yt}=this.props;$e&&(this.activated=!0,this.documentListeners.add(hn.Click,xn,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(hn.SelectionChange,this.removeTextSelection),yt($e))}handleMove($e){var yt;const{activated:Ot,initialCoordinates:en,props:nt}=this,{onMove:kt,options:{activationConstraint:Gt}}=nt;if(!en)return;const Rt=(yt=(0,it.DC)($e))!=null?yt:le,an=(0,it.$X)(en,Rt);if(!Ot&&Gt){if(En(Gt)){if(Gt.tolerance!=null&&Ut(an,Gt.tolerance))return this.handleCancel();if(Ut(an,Gt.distance))return this.handleStart()}if(Vn(Gt)&&Ut(an,Gt.tolerance))return this.handleCancel();this.handlePending(Gt,an);return}$e.cancelable&&$e.preventDefault(),kt(Rt)}handleEnd(){const{onAbort:$e,onEnd:yt}=this.props;this.detach(),this.activated||$e(this.props.active),yt()}handleCancel(){const{onAbort:$e,onCancel:yt}=this.props;this.detach(),this.activated||$e(this.props.active),yt()}handleKeydown($e){$e.code===on.Esc&&this.handleCancel()}removeTextSelection(){var $e;($e=this.document.getSelection())==null||$e.removeAllRanges()}}const vi={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class mn extends ri{constructor($e){const{event:yt}=$e,Ot=(0,it.r3)(yt.target);super($e,vi,Ot)}}mn.activators=[{eventName:"onPointerDown",handler:(He,$e)=>{let{nativeEvent:yt}=He,{onActivation:Ot}=$e;return!yt.isPrimary||yt.button!==0?!1:(Ot==null||Ot({event:yt}),!0)}}];const Ai={move:{name:"mousemove"},end:{name:"mouseup"}};var Yi;(function(He){He[He.RightClick=2]="RightClick"})(Yi||(Yi={}));class gr extends ri{constructor($e){super($e,Ai,(0,it.r3)($e.event.target))}}gr.activators=[{eventName:"onMouseDown",handler:(He,$e)=>{let{nativeEvent:yt}=He,{onActivation:Ot}=$e;return yt.button===Yi.RightClick?!1:(Ot==null||Ot({event:yt}),!0)}}];const rr={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class nr extends ri{constructor($e){super($e,rr)}static setup(){return window.addEventListener(rr.move.name,$e,{capture:!1,passive:!1}),function(){window.removeEventListener(rr.move.name,$e)};function $e(){}}}nr.activators=[{eventName:"onTouchStart",handler:(He,$e)=>{let{nativeEvent:yt}=He,{onActivation:Ot}=$e;const{touches:en}=yt;return en.length>1?!1:(Ot==null||Ot({event:yt}),!0)}}];var pr;(function(He){He[He.Pointer=0]="Pointer",He[He.DraggableRect=1]="DraggableRect"})(pr||(pr={}));var sr;(function(He){He[He.TreeOrder=0]="TreeOrder",He[He.ReversedTreeOrder=1]="ReversedTreeOrder"})(sr||(sr={}));function cr(He){let{acceleration:$e,activator:yt=pr.Pointer,canScroll:Ot,draggingRect:en,enabled:nt,interval:kt=5,order:Gt=sr.TreeOrder,pointerCoordinates:Rt,scrollableAncestors:an,scrollableAncestorRects:si,delta:Ee,threshold:Ue}=He;const Re=yr({delta:Ee,disabled:!nt}),[ot,ut]=(0,it.Yz)(),Zt=(0,ye.useRef)({x:0,y:0}),Vt=(0,ye.useRef)({x:0,y:0}),tn=(0,ye.useMemo)(()=>{switch(yt){case pr.Pointer:return Rt?{top:Rt.y,bottom:Rt.y,left:Rt.x,right:Rt.x}:null;case pr.DraggableRect:return en}},[yt,en,Rt]),An=(0,ye.useRef)(null),In=(0,ye.useCallback)(()=>{const Qn=An.current;if(!Qn)return;const mi=Zt.current.x*Vt.current.x,ht=Zt.current.y*Vt.current.y;Qn.scrollBy(mi,ht)},[]),pn=(0,ye.useMemo)(()=>Gt===sr.TreeOrder?[...an].reverse():an,[Gt,an]);(0,ye.useEffect)(()=>{if(!nt||!an.length||!tn){ut();return}for(const Qn of pn){if((Ot==null?void 0:Ot(Qn))===!1)continue;const mi=an.indexOf(Qn),ht=si[mi];if(!ht)continue;const{direction:_n,speed:ni}=Be(Qn,ht,tn,$e,Ue);for(const On of["x","y"])Re[On][_n[On]]||(ni[On]=0,_n[On]=0);if(ni.x>0||ni.y>0){ut(),An.current=Qn,ot(In,kt),Zt.current=ni,Vt.current=_n;return}}Zt.current={x:0,y:0},Vt.current={x:0,y:0},ut()},[$e,In,Ot,ut,nt,kt,JSON.stringify(tn),JSON.stringify(Re),ot,an,pn,si,JSON.stringify(Ue)])}const Ji={x:{[qn.Backward]:!1,[qn.Forward]:!1},y:{[qn.Backward]:!1,[qn.Forward]:!1}};function yr(He){let{delta:$e,disabled:yt}=He;const Ot=(0,it.D9)($e);return(0,it.Gj)(en=>{if(yt||!Ot||!en)return Ji;const nt={x:Math.sign($e.x-Ot.x),y:Math.sign($e.y-Ot.y)};return{x:{[qn.Backward]:en.x[qn.Backward]||nt.x===-1,[qn.Forward]:en.x[qn.Forward]||nt.x===1},y:{[qn.Backward]:en.y[qn.Backward]||nt.y===-1,[qn.Forward]:en.y[qn.Forward]||nt.y===1}}},[yt,$e,Ot])}function Ce(He,$e){const yt=$e!=null?He.get($e):void 0,Ot=yt?yt.node.current:null;return(0,it.Gj)(en=>{var nt;return $e==null?null:(nt=Ot!=null?Ot:en)!=null?nt:null},[Ot,$e])}function Sn(He,$e){return(0,ye.useMemo)(()=>He.reduce((yt,Ot)=>{const{sensor:en}=Ot,nt=en.activators.map(kt=>({eventName:kt.eventName,handler:$e(kt.handler,Ot)}));return[...yt,...nt]},[]),[He,$e])}var Wn;(function(He){He[He.Always=0]="Always",He[He.BeforeDragging=1]="BeforeDragging",He[He.WhileDragging=2]="WhileDragging"})(Wn||(Wn={}));var gi;(function(He){He.Optimized="optimized"})(gi||(gi={}));const hi=new Map;function Zn(He,$e){let{dragging:yt,dependencies:Ot,config:en}=$e;const[nt,kt]=(0,ye.useState)(null),{frequency:Gt,measure:Rt,strategy:an}=en,si=(0,ye.useRef)(He),Ee=Zt(),Ue=(0,it.Ey)(Ee),Re=(0,ye.useCallback)(function(Vt){Vt===void 0&&(Vt=[]),!Ue.current&&kt(tn=>tn===null?Vt:tn.concat(Vt.filter(An=>!tn.includes(An))))},[Ue]),ot=(0,ye.useRef)(null),ut=(0,it.Gj)(Vt=>{if(Ee&&!yt)return hi;if(!Vt||Vt===hi||si.current!==He||nt!=null){const tn=new Map;for(let An of He){if(!An)continue;if(nt&&nt.length>0&&!nt.includes(An.id)&&An.rect.current){tn.set(An.id,An.rect.current);continue}const In=An.node.current,pn=In?new vt(Rt(In),In):null;An.rect.current=pn,pn&&tn.set(An.id,pn)}return tn}return Vt},[He,nt,yt,Ee,Rt]);return(0,ye.useEffect)(()=>{si.current=He},[He]),(0,ye.useEffect)(()=>{Ee||Re()},[yt,Ee]),(0,ye.useEffect)(()=>{nt&&nt.length>0&&kt(null)},[JSON.stringify(nt)]),(0,ye.useEffect)(()=>{Ee||typeof Gt!="number"||ot.current!==null||(ot.current=setTimeout(()=>{Re(),ot.current=null},Gt))},[Gt,Ee,Re,...Ot]),{droppableRects:ut,measureDroppableContainers:Re,measuringScheduled:nt!=null};function Zt(){switch(an){case Wn.Always:return!1;case Wn.BeforeDragging:return yt;default:return!yt}}}function nn(He,$e){return(0,it.Gj)(yt=>He?yt||(typeof $e=="function"?$e(He):He):null,[$e,He])}function Hn(He,$e){return nn(He,$e)}function di(He){let{callback:$e,disabled:yt}=He;const Ot=(0,it.zX)($e),en=(0,ye.useMemo)(()=>{if(yt||typeof window=="undefined"||typeof window.MutationObserver=="undefined")return;const{MutationObserver:nt}=window;return new nt(Ot)},[Ot,yt]);return(0,ye.useEffect)(()=>()=>en==null?void 0:en.disconnect(),[en]),en}function At(He){let{callback:$e,disabled:yt}=He;const Ot=(0,it.zX)($e),en=(0,ye.useMemo)(()=>{if(yt||typeof window=="undefined"||typeof window.ResizeObserver=="undefined")return;const{ResizeObserver:nt}=window;return new nt(Ot)},[yt]);return(0,ye.useEffect)(()=>()=>en==null?void 0:en.disconnect(),[en]),en}function Dt(He){return new vt(yn(He),He)}function bt(He,$e,yt){$e===void 0&&($e=Dt);const[Ot,en]=(0,ye.useState)(null);function nt(){en(Rt=>{if(!He)return null;if(He.isConnected===!1){var an;return(an=Rt!=null?Rt:yt)!=null?an:null}const si=$e(He);return JSON.stringify(Rt)===JSON.stringify(si)?Rt:si})}const kt=di({callback(Rt){if(He)for(const an of Rt){const{type:si,target:Ee}=an;if(si==="childList"&&Ee instanceof HTMLElement&&Ee.contains(He)){nt();break}}}}),Gt=At({callback:nt});return(0,it.LI)(()=>{nt(),He?(Gt==null||Gt.observe(He),kt==null||kt.observe(document.body,{childList:!0,subtree:!0})):(Gt==null||Gt.disconnect(),kt==null||kt.disconnect())},[He]),Ot}function ti(He){const $e=nn(He);return bn(He,$e)}const yi=[];function ci(He){const $e=(0,ye.useRef)(He),yt=(0,it.Gj)(Ot=>He?Ot&&Ot!==yi&&He&&$e.current&&He.parentNode===$e.current.parentNode?Ot:Mn(He):yi,[He]);return(0,ye.useEffect)(()=>{$e.current=He},[He]),yt}function Pn(He){const[$e,yt]=(0,ye.useState)(null),Ot=(0,ye.useRef)(He),en=(0,ye.useCallback)(nt=>{const kt=Wt(nt.target);kt&&yt(Gt=>Gt?(Gt.set(kt,bi(kt)),new Map(Gt)):null)},[]);return(0,ye.useEffect)(()=>{const nt=Ot.current;if(He!==nt){kt(nt);const Gt=He.map(Rt=>{const an=Wt(Rt);return an?(an.addEventListener("scroll",en,{passive:!0}),[an,bi(an)]):null}).filter(Rt=>Rt!=null);yt(Gt.length?new Map(Gt):null),Ot.current=He}return()=>{kt(He),kt(nt)};function kt(Gt){Gt.forEach(Rt=>{const an=Wt(Rt);an==null||an.removeEventListener("scroll",en)})}},[en,He]),(0,ye.useMemo)(()=>He.length?$e?Array.from($e.values()).reduce((nt,kt)=>(0,it.IH)(nt,kt),le):ke(He):le,[He,$e])}function fi(He,$e){$e===void 0&&($e=[]);const yt=(0,ye.useRef)(null);return(0,ye.useEffect)(()=>{yt.current=null},$e),(0,ye.useEffect)(()=>{const Ot=He!==le;Ot&&!yt.current&&(yt.current=He),!Ot&&yt.current&&(yt.current=null)},[He]),yt.current?(0,it.$X)(He,yt.current):le}function Cn(He){(0,ye.useEffect)(()=>{if(!it.Nq)return;const $e=He.map(yt=>{let{sensor:Ot}=yt;return Ot.setup==null?void 0:Ot.setup()});return()=>{for(const yt of $e)yt==null||yt()}},He.map($e=>{let{sensor:yt}=$e;return yt}))}function Qi(He,$e){return(0,ye.useMemo)(()=>He.reduce((yt,Ot)=>{let{eventName:en,handler:nt}=Ot;return yt[en]=kt=>{nt(kt,$e)},yt},{}),[He,$e])}function dr(He){return(0,ye.useMemo)(()=>He?Yn(He):null,[He])}const Ge=[];function Pt(He,$e){$e===void 0&&($e=yn);const[yt]=He,Ot=dr(yt?(0,it.Jj)(yt):null),[en,nt]=(0,ye.useState)(Ge);function kt(){nt(()=>He.length?He.map(Rt=>je(Rt)?Ot:new vt($e(Rt),Rt)):Ge)}const Gt=At({callback:kt});return(0,it.LI)(()=>{Gt==null||Gt.disconnect(),kt(),He.forEach(Rt=>Gt==null?void 0:Gt.observe(Rt))},[He]),en}function Kn(He){if(!He)return null;if(He.children.length>1)return He;const $e=He.children[0];return(0,it.Re)($e)?$e:He}function Bn(He){let{measure:$e}=He;const[yt,Ot]=(0,ye.useState)(null),en=(0,ye.useCallback)(an=>{for(const{target:si}of an)if((0,it.Re)(si)){Ot(Ee=>{const Ue=$e(si);return Ee?Za(Fo({},Ee),{width:Ue.width,height:Ue.height}):Ue});break}},[$e]),nt=At({callback:en}),kt=(0,ye.useCallback)(an=>{const si=Kn(an);nt==null||nt.disconnect(),si&&(nt==null||nt.observe(si)),Ot(si?$e(si):null)},[$e,nt]),[Gt,Rt]=(0,it.wm)(kt);return(0,ye.useMemo)(()=>({nodeRef:Gt,rect:yt,setRef:Rt}),[yt,Gt,Rt])}const zt=[{sensor:mn,options:{}},{sensor:gn,options:{}}],Fn={current:{}},zn={draggable:{measure:oi},droppable:{measure:oi,strategy:Wn.WhileDragging,frequency:gi.Optimized},dragOverlay:{measure:yn}};class Xn extends Map{get($e){var yt;return $e!=null&&(yt=super.get($e))!=null?yt:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter($e=>{let{disabled:yt}=$e;return!yt})}getNodeFor($e){var yt,Ot;return(yt=(Ot=this.get($e))==null?void 0:Ot.node.current)!=null?yt:void 0}}const Mi={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Xn,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:ne},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:zn,measureDroppableContainers:ne,windowRect:null,measuringScheduled:!1},ai={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:ne,draggableNodes:new Map,over:null,measureDroppableContainers:ne},Li=(0,ye.createContext)(ai),wi=(0,ye.createContext)(Mi);function ir(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Xn}}}function Wi(He,$e){switch($e.type){case Ne.DragStart:return Za(Fo({},He),{draggable:Za(Fo({},He.draggable),{initialCoordinates:$e.initialCoordinates,active:$e.active})});case Ne.DragMove:return He.draggable.active==null?He:Za(Fo({},He),{draggable:Za(Fo({},He.draggable),{translate:{x:$e.coordinates.x-He.draggable.initialCoordinates.x,y:$e.coordinates.y-He.draggable.initialCoordinates.y}})});case Ne.DragEnd:case Ne.DragCancel:return Za(Fo({},He),{draggable:Za(Fo({},He.draggable),{active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}})});case Ne.RegisterDroppable:{const{element:yt}=$e,{id:Ot}=yt,en=new Xn(He.droppable.containers);return en.set(Ot,yt),Za(Fo({},He),{droppable:Za(Fo({},He.droppable),{containers:en})})}case Ne.SetDroppableDisabled:{const{id:yt,key:Ot,disabled:en}=$e,nt=He.droppable.containers.get(yt);if(!nt||Ot!==nt.key)return He;const kt=new Xn(He.droppable.containers);return kt.set(yt,Za(Fo({},nt),{disabled:en})),Za(Fo({},He),{droppable:Za(Fo({},He.droppable),{containers:kt})})}case Ne.UnregisterDroppable:{const{id:yt,key:Ot}=$e,en=He.droppable.containers.get(yt);if(!en||Ot!==en.key)return He;const nt=new Xn(He.droppable.containers);return nt.delete(yt),Za(Fo({},He),{droppable:Za(Fo({},He.droppable),{containers:nt})})}default:return He}}function Ii(He){let{disabled:$e}=He;const{active:yt,activatorEvent:Ot,draggableNodes:en}=(0,ye.useContext)(Li),nt=(0,it.D9)(Ot),kt=(0,it.D9)(yt==null?void 0:yt.id);return(0,ye.useEffect)(()=>{if(!$e&&!Ot&&nt&&kt!=null){if(!(0,it.vd)(nt)||document.activeElement===nt.target)return;const Gt=en.get(kt);if(!Gt)return;const{activatorNode:Rt,node:an}=Gt;if(!Rt.current&&!an.current)return;requestAnimationFrame(()=>{for(const si of[Rt.current,an.current]){if(!si)continue;const Ee=(0,it.so)(si);if(Ee){Ee.focus();break}}})}},[Ot,$e,en,kt,nt]),null}function un(He,$e){let en=$e,{transform:yt}=en,Ot=nv(en,["transform"]);return He!=null&&He.length?He.reduce((nt,kt)=>kt(Fo({transform:nt},Ot)),yt):yt}function vr(He){return(0,ye.useMemo)(()=>({draggable:Fo(Fo({},zn.draggable),He==null?void 0:He.draggable),droppable:Fo(Fo({},zn.droppable),He==null?void 0:He.droppable),dragOverlay:Fo(Fo({},zn.dragOverlay),He==null?void 0:He.dragOverlay)}),[He==null?void 0:He.draggable,He==null?void 0:He.droppable,He==null?void 0:He.dragOverlay])}function Mr(He){let{activeNode:$e,measure:yt,initialRect:Ot,config:en=!0}=He;const nt=(0,ye.useRef)(!1),{x:kt,y:Gt}=typeof en=="boolean"?{x:en,y:en}:en;(0,it.LI)(()=>{if(!kt&&!Gt||!$e){nt.current=!1;return}if(nt.current||!Ot)return;const an=$e==null?void 0:$e.node.current;if(!an||an.isConnected===!1)return;const si=yt(an),Ee=bn(si,Ot);if(kt||(Ee.x=0),Gt||(Ee.y=0),nt.current=!0,Math.abs(Ee.x)>0||Math.abs(Ee.y)>0){const Ue=xi(an);Ue&&Ue.scrollBy({top:Ee.y,left:Ee.x})}},[$e,kt,Gt,Ot,yt])}const Yr=(0,ye.createContext)(Za(Fo({},le),{scaleX:1,scaleY:1}));var wn;(function(He){He[He.Uninitialized=0]="Uninitialized",He[He.Initializing=1]="Initializing",He[He.Initialized=2]="Initialized"})(wn||(wn={}));const Pi=(0,ye.memo)(function($e){var yt,Ot,en,nt;let Qo=$e,{id:kt,accessibility:Gt,autoScroll:Rt=!0,children:an,sensors:si=zt,collisionDetection:Ee=gt,measuring:Ue,modifiers:Re}=Qo,ot=nv(Qo,["id","accessibility","autoScroll","children","sensors","collisionDetection","measuring","modifiers"]);const ut=(0,ye.useReducer)(Wi,void 0,ir),[Zt,Vt]=ut,[tn,An]=Me(),[In,pn]=(0,ye.useState)(wn.Uninitialized),Qn=In===wn.Initialized,{draggable:{active:mi,nodes:ht,translate:_n},droppable:{containers:ni}}=Zt,On=mi!=null?ht.get(mi):null,ii=(0,ye.useRef)({initial:null,translated:null}),Ci=(0,ye.useMemo)(()=>{var ro;return mi!=null?{id:mi,data:(ro=On==null?void 0:On.data)!=null?ro:Fn,rect:ii}:null},[mi,On]),Ti=(0,ye.useRef)(null),[Ni,Oi]=(0,ye.useState)(null),[zi,fr]=(0,ye.useState)(null),kr=(0,it.Ey)(ot,Object.values(ot)),Hr=(0,it.Ld)("DndDescribedBy",kt),Zr=(0,ye.useMemo)(()=>ni.getEnabled(),[ni]),Bi=vr(Ue),{droppableRects:Fr,measureDroppableContainers:Er,measuringScheduled:Rr}=Zn(Zr,{dragging:Qn,dependencies:[_n.x,_n.y],config:Bi.droppable}),xr=Ce(ht,mi),jr=(0,ye.useMemo)(()=>zi?(0,it.DC)(zi):null,[zi]),ei=vo(),Vi=Hn(xr,Bi.draggable.measure);Mr({activeNode:mi!=null?ht.get(mi):null,config:ei.layoutShiftCompensation,initialRect:Vi,measure:Bi.draggable.measure});const _i=bt(xr,Bi.draggable.measure,Vi),ur=bt(xr?xr.parentElement:null),qi=(0,ye.useRef)({activatorEvent:null,active:null,activeNode:xr,collisionRect:null,collisions:null,droppableRects:Fr,draggableNodes:ht,draggingNode:null,draggingNodeRect:null,droppableContainers:ni,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),or=ni.getNodeFor((yt=qi.current.over)==null?void 0:yt.id),Di=Bn({measure:Bi.dragOverlay.measure}),zr=(Ot=Di.nodeRef.current)!=null?Ot:xr,Kr=Qn?(en=Di.rect)!=null?en:_i:null,Qr=!!(Di.nodeRef.current&&Di.rect),Ar=ti(Qr?null:_i),eo=dr(zr?(0,it.Jj)(zr):null),Xr=ci(Qn?or!=null?or:xr:null),_r=Pt(Xr),fo=un(Re,{transform:{x:_n.x-Ar.x,y:_n.y-Ar.y,scaleX:1,scaleY:1},activatorEvent:zi,active:Ci,activeNodeRect:_i,containerNodeRect:ur,draggingNodeRect:Kr,over:qi.current.over,overlayNodeRect:Di.rect,scrollableAncestors:Xr,scrollableAncestorRects:_r,windowRect:eo}),mo=jr?(0,it.IH)(jr,_n):null,Bo=Pn(Xr),so=fi(Bo),ia=fi(Bo,[_i]),po=(0,it.IH)(fo,so),Jo=Kr?Yt(Kr,fo):null,Po=Ci&&Jo?Ee({active:Ci,collisionRect:Jo,droppableRects:Fr,droppableContainers:Zr,pointerCoordinates:mo}):null,Vo=Ze(Po,"id"),[Go,Yo]=(0,ye.useState)(null),Ro=Qr?fo:(0,it.IH)(fo,ia),Lo=ln(Ro,(nt=Go==null?void 0:Go.rect)!=null?nt:null,_i),oa=(0,ye.useRef)(null),wa=(0,ye.useCallback)((ro,ta)=>{let{sensor:wr,options:hr}=ta;if(Ti.current==null)return;const Dr=ht.get(Ti.current);if(!Dr)return;const Sr=ro.nativeEvent,Si=new wr({active:Ti.current,activeNode:Dr,event:Sr,options:hr,context:qi,onAbort(mt){if(!ht.get(mt))return;const{onDragAbort:ha}=kr.current,ga={id:mt};ha==null||ha(ga),tn({type:"onDragAbort",event:ga})},onPending(mt,Tn,ha,ga){if(!ht.get(mt))return;const{onDragPending:sa}=kr.current,ya={id:mt,constraint:Tn,initialCoordinates:ha,offset:ga};sa==null||sa(ya),tn({type:"onDragPending",event:ya})},onStart(mt){const Tn=Ti.current;if(Tn==null)return;const ha=ht.get(Tn);if(!ha)return;const{onDragStart:ga}=kr.current,aa={activatorEvent:Sr,active:{id:Tn,data:ha.data,rect:ii}};(0,tt.unstable_batchedUpdates)(()=>{ga==null||ga(aa),pn(wn.Initializing),Vt({type:Ne.DragStart,initialCoordinates:mt,active:Tn}),tn({type:"onDragStart",event:aa}),Oi(oa.current),fr(Sr)})},onMove(mt){Vt({type:Ne.DragMove,coordinates:mt})},onEnd:Do(Ne.DragEnd),onCancel:Do(Ne.DragCancel)});oa.current=Si;function Do(mt){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}=kr.current;ya={activatorEvent:Sr,active:ha,collisions:ga,delta:sa,over:aa},mt===Ne.DragEnd&&typeof Pa=="function"&&(yield Promise.resolve(Pa(ya)))&&(mt=Ne.DragCancel)}Ti.current=null,(0,tt.unstable_batchedUpdates)(()=>{Vt({type:mt}),pn(wn.Uninitialized),Yo(null),Oi(null),fr(null),oa.current=null;const Pa=mt===Ne.DragEnd?"onDragEnd":"onDragCancel";if(ya){const hs=kr.current[Pa];hs==null||hs(ya),tn({type:Pa,event:ya})}})})}}},[ht]),zo=(0,ye.useCallback)((ro,ta)=>(wr,hr)=>{const Dr=wr.nativeEvent,Sr=ht.get(hr);if(Ti.current!==null||!Sr||Dr.dndKit||Dr.defaultPrevented)return;const Si={active:Sr};ro(wr,ta.options,Si)===!0&&(Dr.dndKit={capturedBy:ta.sensor},Ti.current=hr,wa(wr,ta))},[ht,wa]),Oa=Sn(si,zo);Cn(si),(0,it.LI)(()=>{_i&&In===wn.Initializing&&pn(wn.Initialized)},[_i,In]),(0,ye.useEffect)(()=>{const{onDragMove:ro}=kr.current,{active:ta,activatorEvent:wr,collisions:hr,over:Dr}=qi.current;if(!ta||!wr)return;const Sr={active:ta,activatorEvent:wr,collisions:hr,delta:{x:po.x,y:po.y},over:Dr};(0,tt.unstable_batchedUpdates)(()=>{ro==null||ro(Sr),tn({type:"onDragMove",event:Sr})})},[po.x,po.y]),(0,ye.useEffect)(()=>{const{active:ro,activatorEvent:ta,collisions:wr,droppableContainers:hr,scrollAdjustedTranslate:Dr}=qi.current;if(!ro||Ti.current==null||!ta||!Dr)return;const{onDragOver:Sr}=kr.current,Si=hr.get(Vo),Do=Si&&Si.rect.current?{id:Si.id,rect:Si.rect.current,data:Si.data,disabled:Si.disabled}:null,mt={active:ro,activatorEvent:ta,collisions:wr,delta:{x:Dr.x,y:Dr.y},over:Do};(0,tt.unstable_batchedUpdates)(()=>{Yo(Do),Sr==null||Sr(mt),tn({type:"onDragOver",event:mt})})},[Vo]),(0,it.LI)(()=>{qi.current={activatorEvent:zi,active:Ci,activeNode:xr,collisionRect:Jo,collisions:Po,droppableRects:Fr,draggableNodes:ht,draggingNode:zr,draggingNodeRect:Kr,droppableContainers:ni,over:Go,scrollableAncestors:Xr,scrollAdjustedTranslate:po},ii.current={initial:Kr,translated:Jo}},[Ci,xr,Po,Jo,ht,zr,Kr,Fr,ni,Go,Xr,po]),cr(Za(Fo({},ei),{delta:_n,draggingRect:Jo,pointerCoordinates:mo,scrollableAncestors:Xr,scrollableAncestorRects:_r}));const bo=(0,ye.useMemo)(()=>({active:Ci,activeNode:xr,activeNodeRect:_i,activatorEvent:zi,collisions:Po,containerNodeRect:ur,dragOverlay:Di,draggableNodes:ht,droppableContainers:ni,droppableRects:Fr,over:Go,measureDroppableContainers:Er,scrollableAncestors:Xr,scrollableAncestorRects:_r,measuringConfiguration:Bi,measuringScheduled:Rr,windowRect:eo}),[Ci,xr,_i,zi,Po,ur,Di,ht,ni,Fr,Go,Er,Xr,_r,Bi,Rr,eo]),yo=(0,ye.useMemo)(()=>({activatorEvent:zi,activators:Oa,active:Ci,activeNodeRect:_i,ariaDescribedById:{draggable:Hr},dispatch:Vt,draggableNodes:ht,over:Go,measureDroppableContainers:Er}),[zi,Oa,Ci,_i,Vt,Hr,ht,Go,Er]);return ye.createElement(Kt.Provider,{value:An},ye.createElement(Li.Provider,{value:yo},ye.createElement(wi.Provider,{value:bo},ye.createElement(Yr.Provider,{value:Lo},an)),ye.createElement(Ii,{disabled:(Gt==null?void 0:Gt.restoreFocus)===!1})),ye.createElement(Ht,Za(Fo({},Gt),{hiddenTextDescribedById:Hr})));function vo(){const ro=(Ni==null?void 0:Ni.autoScrollEnabled)===!1,ta=typeof Rt=="object"?Rt.enabled===!1:Rt===!1,wr=Qn&&!ro&&!ta;return typeof Rt=="object"?Za(Fo({},Rt),{enabled:wr}):{enabled:wr}}}),Gi=(0,ye.createContext)(null),Hi="button",er="Draggable";function Pr(He){let{id:$e,data:yt,disabled:Ot=!1,attributes:en}=He;const nt=(0,it.Ld)(er),{activators:kt,activatorEvent:Gt,active:Rt,activeNodeRect:an,ariaDescribedById:si,draggableNodes:Ee,over:Ue}=(0,ye.useContext)(Li),{role:Re=Hi,roleDescription:ot="draggable",tabIndex:ut=0}=en!=null?en:{},Zt=(Rt==null?void 0:Rt.id)===$e,Vt=(0,ye.useContext)(Zt?Yr:Gi),[tn,An]=(0,it.wm)(),[In,pn]=(0,it.wm)(),Qn=Qi(kt,$e),mi=(0,it.Ey)(yt);(0,it.LI)(()=>(Ee.set($e,{id:$e,key:nt,node:tn,activatorNode:In,data:mi}),()=>{const _n=Ee.get($e);_n&&_n.key===nt&&Ee.delete($e)}),[Ee,$e]);const ht=(0,ye.useMemo)(()=>({role:Re,tabIndex:ut,"aria-disabled":Ot,"aria-pressed":Zt&&Re===Hi?!0:void 0,"aria-roledescription":ot,"aria-describedby":si.draggable}),[Ot,Re,ut,Zt,ot,si.draggable]);return{active:Rt,activatorEvent:Gt,activeNodeRect:an,attributes:ht,isDragging:Zt,listeners:Ot?void 0:Qn,node:tn,over:Ue,setNodeRef:An,setActivatorNodeRef:pn,transform:Vt}}function br(){return(0,ye.useContext)(wi)}const Zi="Droppable",tr={timeout:25};function Ki(He){let{data:$e,disabled:yt=!1,id:Ot,resizeObserverConfig:en}=He;const nt=(0,it.Ld)(Zi),{active:kt,dispatch:Gt,over:Rt,measureDroppableContainers:an}=(0,ye.useContext)(Li),si=(0,ye.useRef)({disabled:yt}),Ee=(0,ye.useRef)(!1),Ue=(0,ye.useRef)(null),Re=(0,ye.useRef)(null),{disabled:ot,updateMeasurementsFor:ut,timeout:Zt}=Fo(Fo({},tr),en),Vt=(0,it.Ey)(ut!=null?ut:Ot),tn=(0,ye.useCallback)(()=>{if(!Ee.current){Ee.current=!0;return}Re.current!=null&&clearTimeout(Re.current),Re.current=setTimeout(()=>{an(Array.isArray(Vt.current)?Vt.current:[Vt.current]),Re.current=null},Zt)},[Zt]),An=At({callback:tn,disabled:ot||!kt}),In=(0,ye.useCallback)((ht,_n)=>{An&&(_n&&(An.unobserve(_n),Ee.current=!1),ht&&An.observe(ht))},[An]),[pn,Qn]=(0,it.wm)(In),mi=(0,it.Ey)($e);return(0,ye.useEffect)(()=>{!An||!pn.current||(An.disconnect(),Ee.current=!1,An.observe(pn.current))},[pn,An]),(0,ye.useEffect)(()=>(Gt({type:Ne.RegisterDroppable,element:{id:Ot,key:nt,disabled:yt,node:pn,rect:Ue,data:mi}}),()=>Gt({type:Ne.UnregisterDroppable,key:nt,id:Ot})),[Ot]),(0,ye.useEffect)(()=>{yt!==si.current.disabled&&(Gt({type:Ne.SetDroppableDisabled,id:Ot,key:nt,disabled:yt}),si.current.disabled=yt)},[Ot,nt,yt,Gt]),{active:kt,rect:Ue,isOver:(Rt==null?void 0:Rt.id)===Ot,node:pn,over:Rt,setNodeRef:Qn}}function dn(He){let{animation:$e,children:yt}=He;const[Ot,en]=useState(null),[nt,kt]=useState(null),Gt=usePrevious(yt);return!yt&&!Ot&&Gt&&en(Gt),useIsomorphicLayoutEffect(()=>{if(!nt)return;const Rt=Ot==null?void 0:Ot.key,an=Ot==null?void 0:Ot.props.id;if(Rt==null||an==null){en(null);return}Promise.resolve($e(an,nt)).then(()=>{en(null)})},[$e,Ot,nt]),React.createElement(React.Fragment,null,yt,Ot?cloneElement(Ot,{ref:kt}):null)}const lr={x:0,y:0,scaleX:1,scaleY:1};function vn(He){let{children:$e}=He;return React.createElement(Li.Provider,{value:ai},React.createElement(Yr.Provider,{value:lr},$e))}const Fi={position:"fixed",touchAction:"none"},Cr=He=>isKeyboardEvent(He)?"transform 250ms ease":void 0,Nr=null,Br={duration:250,easing:"ease",keyframes:He=>{let{transform:{initial:$e,final:yt}}=He;return[{transform:it.ux.Transform.toString($e)},{transform:it.ux.Transform.toString(yt)}]},sideEffects:(He=>$e=>{let{active:yt,dragOverlay:Ot}=$e;const en={},{styles:nt,className:kt}=He;if(nt!=null&&nt.active)for(const[Gt,Rt]of Object.entries(nt.active))Rt!==void 0&&(en[Gt]=yt.node.style.getPropertyValue(Gt),yt.node.style.setProperty(Gt,Rt));if(nt!=null&&nt.dragOverlay)for(const[Gt,Rt]of Object.entries(nt.dragOverlay))Rt!==void 0&&Ot.node.style.setProperty(Gt,Rt);return kt!=null&&kt.active&&yt.node.classList.add(kt.active),kt!=null&&kt.dragOverlay&&Ot.node.classList.add(kt.dragOverlay),function(){for(const[Rt,an]of Object.entries(en))yt.node.style.setProperty(Rt,an);kt!=null&&kt.active&&yt.node.classList.remove(kt.active)}})({styles:{active:{opacity:"0"}}})};function ao(He){let{config:$e,draggableNodes:yt,droppableContainers:Ot,measuringConfiguration:en}=He;return useEvent((nt,kt)=>{if($e===null)return;const Gt=yt.get(nt);if(!Gt)return;const Rt=Gt.node.current;if(!Rt)return;const an=Kn(kt);if(!an)return;const{transform:si}=getWindow(kt).getComputedStyle(kt),Ee=Ln(si);if(!Ee)return;const Ue=typeof $e=="function"?$e:Qt($e);return Bt(Rt,en.draggable.measure),Ue({active:{id:nt,data:Gt.data,node:Rt,rect:en.draggable.measure(Rt)},draggableNodes:yt,dragOverlay:{node:kt,rect:en.dragOverlay.measure(an)},droppableContainers:Ot,measuringConfiguration:en,transform:Ee})})}function Qt(He){const{duration:$e,easing:yt,sideEffects:Ot,keyframes:en}=Fo(Fo({},Br),He);return nt=>{let tn=nt,{active:kt,dragOverlay:Gt,transform:Rt}=tn,an=nv(tn,["active","dragOverlay","transform"]);if(!$e)return;const si={x:Gt.rect.left-kt.rect.left,y:Gt.rect.top-kt.rect.top},Ee={scaleX:Rt.scaleX!==1?kt.rect.width*Rt.scaleX/Gt.rect.width:1,scaleY:Rt.scaleY!==1?kt.rect.height*Rt.scaleY/Gt.rect.height:1},Ue=Fo({x:Rt.x-si.x,y:Rt.y-si.y},Ee),Re=en(Za(Fo({},an),{active:kt,dragOverlay:Gt,transform:{initial:Rt,final:Ue}})),[ot]=Re,ut=Re[Re.length-1];if(JSON.stringify(ot)===JSON.stringify(ut))return;const Zt=Ot==null?void 0:Ot(Fo({active:kt,dragOverlay:Gt},an)),Vt=Gt.node.animate(Re,{duration:$e,easing:yt,fill:"forwards"});return new Promise(An=>{Vt.onfinish=()=>{Zt==null||Zt(),An()}})}}let jn=0;function $t(He){return useMemo(()=>{if(He!=null)return jn++,jn},[He])}const Te=null},18257:function(Un,pi,De){"use strict";De.d(pi,{DL:function(){return ct}});var ye=De(35241);function tt(Me){return It=>{let{transform:Ye}=It;return Za(Fo({},Ye),{x:Math.ceil(Ye.x/Me)*Me,y:Math.ceil(Ye.y/Me)*Me})}}const it=Me=>{let{transform:It}=Me;return Za(Fo({},It),{y:0})};function Ft(Me,It,Ye){const Ht=Fo({},Me);return It.top+Me.y<=Ye.top?Ht.y=Ye.top-It.top:It.bottom+Me.y>=Ye.top+Ye.height&&(Ht.y=Ye.top+Ye.height-It.bottom),It.left+Me.x<=Ye.left?Ht.x=Ye.left-It.left:It.right+Me.x>=Ye.left+Ye.width&&(Ht.x=Ye.left+Ye.width-It.right),Ht}const Et=Me=>{let{containerNodeRect:It,draggingNodeRect:Ye,transform:Ht}=Me;return!Ye||!It?Ht:Ft(Ht,Ye,It)},ze=Me=>{let{draggingNodeRect:It,transform:Ye,scrollableAncestorRects:Ht}=Me;const Ne=Ht[0];return!It||!Ne?Ye:Ft(Ye,It,Ne)},ct=Me=>{let{transform:It}=Me;return Za(Fo({},It),{x:0})},Kt=Me=>{let{transform:It,draggingNodeRect:Ye,windowRect:Ht}=Me;return!Ye||!Ht?It:Ft(It,Ye,Ht)},ft=Me=>{let{activatorEvent:It,draggingNodeRect:Ye,transform:Ht}=Me;if(Ye&&It){const Ne=getEventCoordinates(It);if(!Ne)return Ht;const ne=Ne.x-Ye.left,te=Ne.y-Ye.top;return Za(Fo({},Ht),{x:Ht.x+ne-Ye.width/2,y:Ht.y+te-Ye.height/2})}return Ht}},19719:function(Un,pi,De){"use strict";De.d(pi,{Fo:function(){return me},Rp:function(){return Ft},nB:function(){return wt},qw:function(){return te}});var ye=De(59301),tt=De(87954),it=De(35241);function Ft(Yt,Ln,lt){const qe=Yt.slice();return qe.splice(lt<0?qe.length+lt:lt,0,qe.splice(Ln,1)[0]),qe}function Et(Yt,Ln,lt){const qe=Yt.slice();return qe[Ln]=Yt[lt],qe[lt]=Yt[Ln],qe}function ze(Yt,Ln){return Yt.reduce((lt,qe,yn)=>{const oi=Ln.get(qe);return oi&&(lt[yn]=oi),lt},Array(Yt.length))}function ct(Yt){return Yt!==null&&Yt>=0}function Kt(Yt,Ln){if(Yt===Ln)return!0;if(Yt.length!==Ln.length)return!1;for(let lt=0;lt{var Ln;let{rects:lt,activeNodeRect:qe,activeIndex:yn,overIndex:oi,index:Yn}=Yt;const rn=(Ln=lt[yn])!=null?Ln:qe;if(!rn)return null;const Gn=Ye(lt,Yn,yn);if(Yn===yn){const Mn=lt[oi];return Mn?Fo({x:ynyn&&Yn<=oi?Fo({x:-rn.width-Gn,y:0},Me):Yn=oi?Fo({x:rn.width+Gn,y:0},Me):Fo({x:0,y:0},Me)};function Ye(Yt,Ln,lt){const qe=Yt[Ln],yn=Yt[Ln-1],oi=Yt[Ln+1];return!qe||!yn&&!oi?0:lt{let{rects:Ln,activeIndex:lt,overIndex:qe,index:yn}=Yt;const oi=Ft(Ln,qe,lt),Yn=Ln[yn],rn=oi[yn];return!rn||!Yn?null:{x:rn.left-Yn.left,y:rn.top-Yn.top,scaleX:rn.width/Yn.width,scaleY:rn.height/Yn.height}},Ne=Yt=>{let{activeIndex:Ln,index:lt,rects:qe,overIndex:yn}=Yt,oi,Yn;return lt===Ln&&(oi=qe[lt],Yn=qe[yn]),lt===yn&&(oi=qe[lt],Yn=qe[Ln]),!Yn||!oi?null:{x:Yn.left-oi.left,y:Yn.top-oi.top,scaleX:Yn.width/oi.width,scaleY:Yn.height/oi.height}},ne={scaleX:1,scaleY:1},te=Yt=>{var Ln;let{activeIndex:lt,activeNodeRect:qe,index:yn,rects:oi,overIndex:Yn}=Yt;const rn=(Ln=oi[lt])!=null?Ln:qe;if(!rn)return null;if(yn===lt){const Mn=oi[Yn];return Mn?Fo({x:0,y:ltlt&&yn<=Yn?Fo({x:0,y:-rn.height-Gn},ne):yn=Yn?Fo({x:0,y:rn.height+Gn},ne):Fo({x:0,y:0},ne)};function de(Yt,Ln,lt){const qe=Yt[Ln],yn=Yt[Ln-1],oi=Yt[Ln+1];return qe?ltqe.map(et=>typeof et=="object"&&"id"in et?et.id:et),[qe]),bi=Yn!=null,qn=Yn?St.indexOf(Yn.id):-1,je=Mn?St.indexOf(Mn.id):-1,be=(0,ye.useRef)(St),we=!Kt(St,be.current),Be=je!==-1&&qn===-1||we,Ke=ft(oi);(0,it.LI)(()=>{we&&bi&&xi(St)},[we,St,bi,xi]),(0,ye.useEffect)(()=>{be.current=St},[St]);const ke=(0,ye.useMemo)(()=>({activeIndex:qn,containerId:Wt,disabled:Ke,disableTransforms:Be,items:St,overIndex:je,useDragOverlay:Nn,sortedRects:ze(St,Gn),strategy:yn}),[qn,Wt,Ke.draggable,Ke.droppable,Be,St,je,Gn,Nn,yn]);return ye.createElement(ge.Provider,{value:ke},Ln)}const Se=Yt=>{let{id:Ln,items:lt,activeIndex:qe,overIndex:yn}=Yt;return Ft(lt,qe,yn).indexOf(Ln)},Le=Yt=>{let{containerId:Ln,isSorting:lt,wasDragging:qe,index:yn,items:oi,newIndex:Yn,previousItems:rn,previousContainerId:Gn,transition:Mn}=Yt;return!Mn||!qe||rn!==oi&&yn===Yn?!1:lt?!0:Yn!==yn&&Ln===Gn},Ie={duration:200,easing:"ease"},Ze="transform",st=it.ux.Transition.toString({property:Ze,duration:0,easing:"linear"}),Ve={roleDescription:"sortable"};function Xe(Yt){let{disabled:Ln,index:lt,node:qe,rect:yn}=Yt;const[oi,Yn]=(0,ye.useState)(null),rn=(0,ye.useRef)(lt);return(0,it.LI)(()=>{if(!Ln&<!==rn.current&&qe.current){const Gn=yn.current;if(Gn){const Mn=(0,tt.VK)(qe.current,{ignoreTransform:!0}),xi={x:Gn.left-Mn.left,y:Gn.top-Mn.top,scaleX:Gn.width/Mn.width,scaleY:Gn.height/Mn.height};(xi.x||xi.y)&&Yn(xi)}}lt!==rn.current&&(rn.current=lt)},[Ln,lt,qe,yn]),(0,ye.useEffect)(()=>{oi&&Yn(null)},[oi]),oi}function wt(Yt){let{animateLayoutChanges:Ln=Le,attributes:lt,disabled:qe,data:yn,getNewIndex:oi=Se,id:Yn,strategy:rn,resizeObserverConfig:Gn,transition:Mn=Ie}=Yt;const{items:xi,containerId:Wt,activeIndex:Nn,disabled:St,disableTransforms:bi,sortedRects:qn,overIndex:je,useDragOverlay:be,strategy:we}=(0,ye.useContext)(ge),Be=gt(qe,St),Ke=xi.indexOf(Yn),ke=(0,ye.useMemo)(()=>Fo({sortable:{containerId:Wt,index:Ke,items:xi}},yn),[Wt,yn,Ke,xi]),et=(0,ye.useMemo)(()=>xi.slice(xi.indexOf(Yn)),[xi,Yn]),{rect:sn,node:Bt,isOver:_t,setNodeRef:vt}=(0,tt.Zj)({id:Yn,data:ke,disabled:Be.droppable,resizeObserverConfig:Fo({updateMeasurementsFor:et},Gn)}),{active:xt,activatorEvent:Tt,activeNodeRect:Ut,attributes:hn,setNodeRef:kn,listeners:xn,isDragging:on,over:jt,setActivatorNodeRef:Xt,transform:gn}=(0,tt.O1)({id:Yn,data:ke,attributes:Fo(Fo({},Ve),lt),disabled:Be.draggable}),En=(0,it.HB)(vt,kn),Vn=!!xt,ri=Vn&&!bi&&ct(Nn)&&ct(je),vi=!be&&on,mn=vi&&ri?gn:null,Ai=rn!=null?rn:we,Yi=ri?mn!=null?mn:Ai({rects:qn,activeNodeRect:Ut,activeIndex:Nn,overIndex:je,index:Ke}):null,gr=ct(Nn)&&ct(je)?oi({id:Yn,items:xi,activeIndex:Nn,overIndex:je}):Ke,rr=xt==null?void 0:xt.id,nr=(0,ye.useRef)({activeId:rr,items:xi,newIndex:gr,containerId:Wt}),pr=xi!==nr.current.items,sr=Ln({active:xt,containerId:Wt,isDragging:on,isSorting:Vn,id:Yn,index:Ke,items:xi,newIndex:nr.current.newIndex,previousItems:nr.current.items,previousContainerId:nr.current.containerId,transition:Mn,wasDragging:nr.current.activeId!=null}),cr=Xe({disabled:!sr,index:Ke,node:Bt,rect:sn});return(0,ye.useEffect)(()=>{Vn&&nr.current.newIndex!==gr&&(nr.current.newIndex=gr),Wt!==nr.current.containerId&&(nr.current.containerId=Wt),xi!==nr.current.items&&(nr.current.items=xi)},[Vn,gr,Wt,xi]),(0,ye.useEffect)(()=>{if(rr===nr.current.activeId)return;if(rr&&!nr.current.activeId){nr.current.activeId=rr;return}const yr=setTimeout(()=>{nr.current.activeId=rr},50);return()=>clearTimeout(yr)},[rr]),{active:xt,activeIndex:Nn,attributes:hn,data:ke,rect:sn,index:Ke,newIndex:gr,items:xi,isOver:_t,isSorting:Vn,isDragging:on,listeners:xn,node:Bt,overIndex:je,over:jt,setNodeRef:En,setActivatorNodeRef:Xt,setDroppableNodeRef:vt,setDraggableNodeRef:kn,transform:cr!=null?cr:Yi,transition:Ji()};function Ji(){if(cr||pr&&nr.current.newIndex===Ke)return st;if(!(vi&&!(0,it.vd)(Tt)||!Mn)&&(Vn||sr))return it.ux.Transition.toString(Za(Fo({},Mn),{property:Ze}))}}function gt(Yt,Ln){var lt,qe;return typeof Yt=="boolean"?{draggable:Yt,droppable:!1}:{draggable:(lt=Yt==null?void 0:Yt.draggable)!=null?lt:Ln.draggable,droppable:(qe=Yt==null?void 0:Yt.droppable)!=null?qe:Ln.droppable}}function Nt(Yt){if(!Yt)return!1;const Ln=Yt.data.current;return!!(Ln&&"sortable"in Ln&&typeof Ln.sortable=="object"&&"containerId"in Ln.sortable&&"items"in Ln.sortable&&"index"in Ln.sortable)}const Ct=[tt.g4.Down,tt.g4.Right,tt.g4.Up,tt.g4.Left],ln=(Yt,Ln)=>{let{context:{active:lt,collisionRect:qe,droppableRects:yn,droppableContainers:oi,over:Yn,scrollableAncestors:rn}}=Ln;if(Ct.includes(Yt.code)){if(Yt.preventDefault(),!lt||!qe)return;const Gn=[];oi.getEnabled().forEach(Wt=>{if(!Wt||Wt!=null&&Wt.disabled)return;const Nn=yn.get(Wt.id);if(Nn)switch(Yt.code){case KeyboardCode.Down:qe.topNn.top&&Gn.push(Wt);break;case KeyboardCode.Left:qe.left>Nn.left&&Gn.push(Wt);break;case KeyboardCode.Right:qe.left1&&(xi=Mn[1].id),xi!=null){const Wt=oi.get(lt.id),Nn=oi.get(xi),St=Nn?yn.get(Nn.id):null,bi=Nn==null?void 0:Nn.node.current;if(bi&&St&&Wt&&Nn){const je=getScrollableAncestors(bi).some((et,sn)=>rn[sn]!==et),be=bn(Wt,Nn),we=fn(Wt,Nn),Be=je||!be?{x:0,y:0}:{x:we?qe.width-St.width:0,y:we?qe.height-St.height:0},Ke={x:St.left,y:St.top};return Be.x&&Be.y?Ke:subtract(Ke,Be)}}}};function bn(Yt,Ln){return!Nt(Yt)||!Nt(Ln)?!1:Yt.data.current.sortable.containerId===Ln.data.current.sortable.containerId}function fn(Yt,Ln){return!Nt(Yt)||!Nt(Ln)||!bn(Yt,Ln)?!1:Yt.data.current.sortable.indexbn=>{Ct.forEach(fn=>fn(bn))},Ct)}const it=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";function Ft(Nt){const Ct=Object.prototype.toString.call(Nt);return Ct==="[object Window]"||Ct==="[object global]"}function Et(Nt){return"nodeType"in Nt}function ze(Nt){var Ct,ln;return Nt?Ft(Nt)?Nt:Et(Nt)&&(Ct=(ln=Nt.ownerDocument)==null?void 0:ln.defaultView)!=null?Ct:window:window}function ct(Nt){const{Document:Ct}=ze(Nt);return Nt instanceof Ct}function Kt(Nt){return Ft(Nt)?!1:Nt instanceof ze(Nt).HTMLElement}function ft(Nt){return Nt instanceof ze(Nt).SVGElement}function Me(Nt){return Nt?Ft(Nt)?Nt.document:Et(Nt)?ct(Nt)?Nt:Kt(Nt)||ft(Nt)?Nt.ownerDocument:document:document:document}const It=it?ye.useLayoutEffect:ye.useEffect;function Ye(Nt){const Ct=(0,ye.useRef)(Nt);return It(()=>{Ct.current=Nt}),(0,ye.useCallback)(function(){for(var ln=arguments.length,bn=new Array(ln),fn=0;fn{Nt.current=setInterval(bn,fn)},[]),ln=(0,ye.useCallback)(()=>{Nt.current!==null&&(clearInterval(Nt.current),Nt.current=null)},[]);return[Ct,ln]}function Ne(Nt,Ct){Ct===void 0&&(Ct=[Nt]);const ln=(0,ye.useRef)(Nt);return It(()=>{ln.current!==Nt&&(ln.current=Nt)},Ct),ln}function ne(Nt,Ct){const ln=(0,ye.useRef)();return(0,ye.useMemo)(()=>{const bn=Nt(ln.current);return ln.current=bn,bn},[...Ct])}function te(Nt){const Ct=Ye(Nt),ln=(0,ye.useRef)(null),bn=(0,ye.useCallback)(fn=>{fn!==ln.current&&(Ct==null||Ct(fn,ln.current)),ln.current=fn},[]);return[ln,bn]}function de(Nt){const Ct=(0,ye.useRef)();return(0,ye.useEffect)(()=>{Ct.current=Nt},[Nt]),Ct.current}let le={};function ge(Nt,Ct){return(0,ye.useMemo)(()=>{if(Ct)return Ct;const ln=le[Nt]==null?0:le[Nt]+1;return le[Nt]=ln,Nt+"-"+ln},[Nt,Ct])}function me(Nt){return function(Ct){for(var ln=arguments.length,bn=new Array(ln>1?ln-1:0),fn=1;fn{const lt=Object.entries(Ln);for(const[qe,yn]of lt){const oi=Yt[qe];oi!=null&&(Yt[qe]=oi+Nt*yn)}return Yt},Fo({},Ct))}}const Se=me(1),Le=me(-1);function Ie(Nt){return"clientX"in Nt&&"clientY"in Nt}function Ze(Nt){if(!Nt)return!1;const{KeyboardEvent:Ct}=ze(Nt.target);return Ct&&Nt instanceof Ct}function st(Nt){if(!Nt)return!1;const{TouchEvent:Ct}=ze(Nt.target);return Ct&&Nt instanceof Ct}function Ve(Nt){if(st(Nt)){if(Nt.touches&&Nt.touches.length){const{clientX:Ct,clientY:ln}=Nt.touches[0];return{x:Ct,y:ln}}else if(Nt.changedTouches&&Nt.changedTouches.length){const{clientX:Ct,clientY:ln}=Nt.changedTouches[0];return{x:Ct,y:ln}}}return Ie(Nt)?{x:Nt.clientX,y:Nt.clientY}:null}const Xe=Object.freeze({Translate:{toString(Nt){if(!Nt)return;const{x:Ct,y:ln}=Nt;return"translate3d("+(Ct?Math.round(Ct):0)+"px, "+(ln?Math.round(ln):0)+"px, 0)"}},Scale:{toString(Nt){if(!Nt)return;const{scaleX:Ct,scaleY:ln}=Nt;return"scaleX("+Ct+") scaleY("+ln+")"}},Transform:{toString(Nt){if(Nt)return[Xe.Translate.toString(Nt),Xe.Scale.toString(Nt)].join(" ")}},Transition:{toString(Nt){let{property:Ct,duration:ln,easing:bn}=Nt;return Ct+" "+ln+"ms "+bn}}}),wt="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function gt(Nt){return Nt.matches(wt)?Nt:Nt.querySelector(wt)}},8336:function(){"use strict"},12469:function(){"use strict"},99587:function(Un,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(Un,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(Un,pi,De){"use strict";var ye=De(59301),tt=Object.defineProperty,it=Object.getOwnPropertySymbols,Ft=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,ze=(ft,Me,It)=>Me in ft?tt(ft,Me,{enumerable:!0,configurable:!0,writable:!0,value:It}):ft[Me]=It,ct=(ft,Me)=>{for(var It in Me||(Me={}))Ft.call(Me,It)&&ze(ft,It,Me[It]);if(it)for(var It of it(Me))Et.call(Me,It)&&ze(ft,It,Me[It]);return ft};const Kt=ft=>React.createElement("svg",ct({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},ft),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(Un,pi,De){"use strict";var ye=De(59301),tt=Object.defineProperty,it=Object.getOwnPropertySymbols,Ft=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,ze=(ft,Me,It)=>Me in ft?tt(ft,Me,{enumerable:!0,configurable:!0,writable:!0,value:It}):ft[Me]=It,ct=(ft,Me)=>{for(var It in Me||(Me={}))Ft.call(Me,It)&&ze(ft,It,Me[It]);if(it)for(var It of it(Me))Et.call(Me,It)&&ze(ft,It,Me[It]);return ft};const Kt=ft=>React.createElement("svg",ct({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},ft),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 Un(Ne,ne,te,de){te===void 0&&(te=0),de===void 0&&(de=1/0),this._name=Ne,this._defaultValue=ne,this._minimum=te,this._maximum=de}Object.defineProperty(Un.prototype,"name",{get:function(){return this._name},set:function(Ne){if(typeof Ne!="string"||Ne==="")throw new Error("Shape name must be a valid string.");this._name=Ne}}),Object.defineProperty(Un.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Ne){if(typeof Ne!="number"||isNaN(Ne))throw new Error("The default value must be a real number, not: "+Ne);this._defaultValue=Ne}}),Object.defineProperty(Un.prototype,"minimum",{get:function(){return this._minimum},set:function(Ne){if(typeof Ne!="number"||isNaN(Ne))throw new Error("Minimum must be a real number, not: "+Ne);this._minimum=Ne}}),Object.defineProperty(Un.prototype,"maximum",{get:function(){return this._maximum},set:function(Ne){if(typeof Ne!="number"||isNaN(Ne))throw new Error("Maximum must be a real number, not: "+Ne);this._maximum=Ne}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Ne,ne){var te=go.Shape._FigureParameters[Ne];return te?te[ne]:null},go.Shape.setFigureParameter=function(Ne,ne,te){if(!(te instanceof Un))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+te);if(te.defaultValuete.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+te.defaultValue);var de=go.Shape._FigureParameters[Ne];de||(de=[],go.Shape._FigureParameters[Ne]=de),de[ne]=te};var pi=[];function De(Ne,ne){var te=pi.pop();return te===void 0?new go.Point(Ne,ne):(te.x=Ne,te.y=ne,te)}function ye(){var Ne=pi.pop();return Ne===void 0?new go.Point:Ne}function tt(Ne){pi.push(Ne)}function it(Ne,ne,te,de,le,ge,me,Se,Le){Le||(Le=new go.Point);var Ie=Ne-te,Ze=le-me,st=NaN,Ve=NaN;if(Ie===0)if(Ze===0)Ne===te&&(st=Ne,Ve=ne);else{var Xe=(ge-Se)/Ze,wt=ge-Xe*le;st=Ne,Ve=Xe*st+wt}else if(Ze===0){var gt=(ne-de)/Ie,Nt=ne-gt*Ne;st=le,Ve=gt*st+Nt}else{var gt=(ne-de)/Ie,Xe=(ge-Se)/Ze,Nt=ne-gt*Ne,wt=ge-Xe*le;st=(wt-Nt)/(gt-Xe),Ve=gt*st+Nt}return Le.x=st,Le.y=Ve,Le}function Ft(Ne,ne,te,de,le,ge,me,Se,Le,Ie,Ze,st,Ve,Xe){var wt=1-Le,gt=Le,Nt=Ne*wt+te*gt,Ct=ne*wt+de*gt,ln=te*wt+le*gt,bn=de*wt+ge*gt,fn=le*wt+me*gt,Yt=ge*wt+Se*gt,Ln=Nt*wt+ln*gt,lt=Ct*wt+bn*gt,qe=ln*wt+fn*gt,yn=bn*wt+Yt*gt,oi=Ln*wt+qe*gt,Yn=lt*wt+yn*gt;Ie.x=Nt,Ie.y=Ct,Ze.x=Ln,Ze.y=lt,st.x=oi,st.y=Yn,Ve.x=qe,Ve.y=yn,Xe.x=fn,Xe.y=Yt}var Et=new go.Spot(.156,.156),ze=new go.Spot(.844,.844),ct=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Un("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;(isNaN(de)||de<0)&&(de=5),de=Math.min(de,ne/3),de=Math.min(de,te/3);var le=de*ct,ge=new go.Geometry().add(new go.PathFigure(de,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne-de,0)).add(new go.PathSegment(go.PathSegment.Bezier,ne,de,ne-le,0,ne,le)).add(new go.PathSegment(go.PathSegment.Line,ne,te-de)).add(new go.PathSegment(go.PathSegment.Bezier,ne-de,te,ne,te-le,ne-le,te)).add(new go.PathSegment(go.PathSegment.Line,de,te)).add(new go.PathSegment(go.PathSegment.Bezier,0,te-de,le,te,0,te-le)).add(new go.PathSegment(go.PathSegment.Line,0,de)).add(new go.PathSegment(go.PathSegment.Bezier,de,0,0,le,le,0).close()));return le>1&&(ge.spot1=new go.Spot(0,0,le,le),ge.spot2=new go.Spot(1,1,-le,-le)),ge}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(ne,te).add(new go.PathSegment(go.PathSegment.Line,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(ne,te).add(new go.PathSegment(go.PathSegment.Line,0,te)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(.5*ne,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Ne,ne,te){var de=new go.Geometry(go.Geometry.Line);return de.startX=0,de.startY=te/2,de.endX=ne,de.endY=te/2,de}),go.Shape.defineFigureGenerator("LineV",function(Ne,ne,te){var de=new go.Geometry(go.Geometry.Line);return de.startX=ne/2,de.startY=0,de.endX=ne/2,de.endY=te,de}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,te/2,!1).add(new go.PathSegment(go.PathSegment.Line,ne,te/2)).add(new go.PathSegment(go.PathSegment.Move,ne/2,0)).add(new go.PathSegment(go.PathSegment.Line,ne/2,te)))}),go.Shape.defineFigureGenerator("XLine",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,te,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)))}),go.Shape.defineFigureGenerator("LineRight",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(.25*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.25*ne,te)))}),go.Shape.defineFigureGenerator("LineDown",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,.25*te,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,.75*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)))}),go.Shape.defineFigureGenerator("LineLeft",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(.75*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.75*ne,te)))}),go.Shape.defineFigureGenerator("LineUp",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,.75*te,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,.25*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.75*te)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Ne,ne,te){var de=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(de*ne,(1-de)*te,!1).add(new go.PathSegment(go.PathSegment.Line,(1-de)*ne,de*te)).add(new go.PathSegment(go.PathSegment.Move,de*ne,de*te)).add(new go.PathSegment(go.PathSegment.Line,(1-de)*ne,(1-de)*te)).add(new go.PathSegment(go.PathSegment.Move,0,te/2)).add(new go.PathSegment(go.PathSegment.Line,ne,te/2)).add(new go.PathSegment(go.PathSegment.Move,ne/2,0)).add(new go.PathSegment(go.PathSegment.Line,ne/2,te)))}),go.Shape.defineFigureGenerator("CircleLine",function(Ne,ne,te){var de=ne/2,le=new go.Geometry().add(new go.PathFigure(ne,ne/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,de,de,de,de).close()));return le.spot1=Et,le.spot2=ze,le.defaultStretch=go.GraphObject.Uniform,le}),go.Shape.defineFigureGenerator("Line1",function(Ne,ne,te){var de=new go.Geometry(go.Geometry.Line);return de.startX=0,de.startY=0,de.endX=ne,de.endY=te,de}),go.Shape.defineFigureGenerator("Line2",function(Ne,ne,te){var de=new go.Geometry(go.Geometry.Line);return de.startX=ne,de.startY=0,de.endX=0,de.endY=te,de}),go.Shape.defineFigureGenerator("Curve1",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,ne,te,ct*ne,0,ne,(1-ct)*te)))}),go.Shape.defineFigureGenerator("Curve2",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,ne,te,0,ct*te,(1-ct)*ne,te)))}),go.Shape.defineFigureGenerator("Curve3",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(ne,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,te,ne,ct*te,ct*ne,te)))}),go.Shape.defineFigureGenerator("Curve4",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(ne,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,te,(1-ct)*ne,0,0,(1-ct)*te)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(ne,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Un("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)?de=.1:de<-1?de=-1:de>1&&(de=1);var le=Math.abs(de)*ne;if(de===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=ne,ge.endY=te,ge}else{var ge=new go.Geometry;return de>0?ge.add(new go.PathFigure(le,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-le,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne-le,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,le,te).close())),lene&&(de=ne);var le=Math.abs(de);if(de===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=ne,ge.endY=te,ge}else{var ge=new go.Geometry;return de>0?ge.add(new go.PathFigure(le,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-le,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne-le,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,le,te).close())),le.5&&(de=.5);var le=Math.abs(de)*ne;if(de===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=ne,ge.endY=te,ge}else{var ge=new go.Geometry;return de>0?ge.add(new go.PathFigure(le,0).add(new go.PathSegment(go.PathSegment.Line,ne-le,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-le,te)).add(new go.PathSegment(go.PathSegment.Line,le,te).close())),lene&&(de=ne/2);var le=Math.abs(de);if(de===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=ne,ge.endY=te,ge}else{var ge=new go.Geometry;return de>0?ge.add(new go.PathFigure(le,0).add(new go.PathSegment(go.PathSegment.Line,ne-le,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-le,te)).add(new go.PathSegment(go.PathSegment.Line,le,te).close())),lene&&(de=ne/2);var le=Math.abs(de);if(de===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=ne,ge.endY=te,ge}else{var ge=new go.Geometry;return de>0?ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-le,te)).add(new go.PathSegment(go.PathSegment.Line,le,te).close())):ge.add(new go.PathFigure(le,0).add(new go.PathSegment(go.PathSegment.Line,ne-le,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())),le0&&(me.add(new go.PathSegment(go.PathSegment.Move,ne/2+Se,ne/2)),me.add(new go.PathSegment(go.PathSegment.Arc,0,-360,le,le,Se,Se).close())),ge.spot1=Et,ge.spot2=ze,ge.defaultStretch=go.GraphObject.Uniform,ge}),go.Shape.defineFigureGenerator("Cloud",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(.08034461*ne,.1944299*te,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*ne,.05349299*te,-.09239631*ne,.07836421*te,.1406031*ne,-.0542823*te)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*ne,.074219*te,.2450511*ne,-.00697547*te,.3776197*ne,-.01112067*te)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*ne,.07004196*te,.4539471*ne,0,.6066018*ne,-.02526587*te)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*ne,.08370865*te,.6914277*ne,-.01904177*te,.8921095*ne,-.01220843*te)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*ne,.3194596*te,1.036446*ne,.04105738*te,1.020377*ne,.3022052*te)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*ne,.562044*te,1.04448*ne,.360238*te,.992256*ne,.5219009*te)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*ne,.8217117*te,1.032337*ne,.5771781*te,1.018411*ne,.8120651*te)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*ne,.9156953*te,1.028411*ne,.9571472*te,.8556702*ne,1.052487*te)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*ne,.9310455*te,.7431877*ne,1.009325*te,.5624123*ne,1.021761*te)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*ne,.9344623*te,.4820677*ne,1.031761*te,.3030112*ne,1.002796*te)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*ne,.870098*te,.2329994*ne,1.01518*te,.03213784*ne,1.01518*te)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*ne,.6545475*te,-.02812061*ne,.9032597*te,-.01205169*ne,.6835638*te)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*ne,.4265613*te,-.01812061*ne,.6089503*te,-.00606892*ne,.4555777*te)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*ne,.1944299*te,-.01606892*ne,.3892545*te,-.01205169*ne,.1944299*te))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Ne,ne,te){var de=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(de*ne,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-de)*ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,de*te)).add(new go.PathSegment(go.PathSegment.Line,ne,(1-de)*te)).add(new go.PathSegment(go.PathSegment.Line,(1-de)*ne,te)).add(new go.PathSegment(go.PathSegment.Line,de*ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,(1-de)*te)).add(new go.PathSegment(go.PathSegment.Line,0,de*te).close())).setSpots(de/2,de/2,1-de/2,1-de/2)}),go.Shape.setFigureParameter("Pie",0,new Un("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Un("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN,le=Ne?Ne.parameter2:NaN;isNaN(de)&&(de=0),isNaN(le)&&(le=315);var ge=de%360;ge<0&&(ge+=360);var me=le%360,Se=Math.min(ne,te)/2;return new go.Geometry().add(new go.PathFigure(Se,Se).add(new go.PathSegment(go.PathSegment.Arc,ge,me,Se,Se,Se,Se).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Ne,ne,te){var de=ct/Math.SQRT2*.5,le=Math.SQRT2/2,ge=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(ne,te,!0).add(new go.PathSegment(go.PathSegment.Bezier,le*ne,ge*te,ne,(1-de)*te,(le+de)*ne,(ge+de)*te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Un("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;(isNaN(de)||de<0)&&(de=30);var le=Math.min(de,ne)/2,ge=ne/2,me=te/2;return new go.Geometry().add(new go.PathFigure(ge-le,0,!0).add(new go.PathSegment(go.PathSegment.Line,ge+le,0)).add(new go.PathSegment(go.PathSegment.Line,ge+le,me-le)).add(new go.PathSegment(go.PathSegment.Line,ne,me-le)).add(new go.PathSegment(go.PathSegment.Line,ne,me+le)).add(new go.PathSegment(go.PathSegment.Line,ge+le,me+le)).add(new go.PathSegment(go.PathSegment.Line,ge+le,te)).add(new go.PathSegment(go.PathSegment.Line,ge-le,te)).add(new go.PathSegment(go.PathSegment.Line,ge-le,me+le)).add(new go.PathSegment(go.PathSegment.Line,0,me+le)).add(new go.PathSegment(go.PathSegment.Line,0,me-le)).add(new go.PathSegment(go.PathSegment.Line,ge-le,me-le).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Un("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;(isNaN(de)||de<0)&&(de=10);var le=Math.min(de,ne)/2,ge=ne/2,me=te/2;return new go.Geometry().add(new go.PathFigure(ge-le,0,!0).add(new go.PathSegment(go.PathSegment.Line,ge+le,0)).add(new go.PathSegment(go.PathSegment.Line,ge+le,me-le)).add(new go.PathSegment(go.PathSegment.Line,ne,me-le)).add(new go.PathSegment(go.PathSegment.Line,ne,me+le)).add(new go.PathSegment(go.PathSegment.Line,ge+le,me+le)).add(new go.PathSegment(go.PathSegment.Line,ge+le,te)).add(new go.PathSegment(go.PathSegment.Line,ge-le,te)).add(new go.PathSegment(go.PathSegment.Line,ge-le,me+le)).add(new go.PathSegment(go.PathSegment.Line,0,me+le)).add(new go.PathSegment(go.PathSegment.Line,0,me-le)).add(new go.PathSegment(go.PathSegment.Line,ge-le,me-le).close()))}),go.Shape.setFigureParameter("ThickX",0,new Un("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;if((isNaN(de)||de<0)&&(de=30),ne===0||te===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=ne,le.endY=te,le}else{var ge=ne/2,me=te/2,Se=Math.atan2(te,ne),Le=de-Math.min(Math.cos(Se)*de/2,ge),Ie=de-Math.min(Math.sin(Se)*de/2,me),le=new go.Geometry,Ze=new go.PathFigure(Le,0,!0);return le.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Line,ge,.2*te)),Ze.add(new go.PathSegment(go.PathSegment.Line,ne-Le,0)),Ze.add(new go.PathSegment(go.PathSegment.Line,ne,Ie)),Ze.add(new go.PathSegment(go.PathSegment.Line,.8*ne,me)),Ze.add(new go.PathSegment(go.PathSegment.Line,ne,te-Ie)),Ze.add(new go.PathSegment(go.PathSegment.Line,ne-Le,te)),Ze.add(new go.PathSegment(go.PathSegment.Line,ge,.8*te)),Ze.add(new go.PathSegment(go.PathSegment.Line,Le,te)),Ze.add(new go.PathSegment(go.PathSegment.Line,0,te-Ie)),Ze.add(new go.PathSegment(go.PathSegment.Line,.2*ne,me)),Ze.add(new go.PathSegment(go.PathSegment.Line,0,Ie).close()),le}}),go.Shape.setFigureParameter("ThinX",0,new Un("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;(isNaN(de)||de<0)&&(de=10);var le=new go.Geometry,ge=new go.PathFigure(.1*ne,0,!0);return le.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.1*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.9*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.1*te).close()),le}),go.Shape.setFigureParameter("SquareIBeam",0,new Un("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=.2);var le=new go.Geometry,ge=new go.PathFigure(0,0,!0);return le.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,de*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5+de/2)*ne,de*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5+de/2)*ne,(1-de)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,(1-de)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,(1-de)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5-de/2)*ne,(1-de)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5-de/2)*ne,de*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,de*te).close()),le}),go.Shape.setFigureParameter("RoundedIBeam",0,new Un("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=.5);var le=new go.Geometry,ge=new go.PathFigure(0,0,!0);return le.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne,te,Math.abs(1-de)*ne,.25*te,Math.abs(1-de)*ne,.75*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,0,0,de*ne,.75*te,de*ne,.25*te).close()),le}),go.Shape.defineFigureGenerator("HalfEllipse",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,ct*ne,0,ne,(.5-ct/2)*te)).add(new go.PathSegment(go.PathSegment.Bezier,0,te,ne,(.5+ct/2)*te,ct*ne,te).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,te,ne,0,ne,te)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*ne,.75*te,.5*ne,.25*te).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(.5*ne,te,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*te,.1*ne,.8*te,0,.5*te)).add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.3*te,0,0,.45*ne,0)).add(new go.PathSegment(go.PathSegment.Bezier,ne,.3*te,.55*ne,0,ne,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,.5*te,.9*ne,.8*te).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(.5*ne,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*ne,.01*te)).add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,.6*ne,.2*te,ne,.25*te)).add(new go.PathSegment(go.PathSegment.Bezier,.55*ne,.7*te,ne,.8*te,.6*ne,.8*te)).add(new go.PathSegment(go.PathSegment.Bezier,.75*ne,te,.5*ne,.75*te,.55*ne,.95*te)).add(new go.PathSegment(go.PathSegment.Line,.25*ne,te)).add(new go.PathSegment(go.PathSegment.Bezier,.45*ne,.7*te,.45*ne,.95*te,.5*ne,.75*te)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,.4*ne,.8*te,0,.8*te)).add(new go.PathSegment(go.PathSegment.Bezier,.49*ne,.01*te,0,.25*te,.4*ne,.2*te).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.4*ne,.6*te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.15*ne,te,.5*ne,.75*te,.45*ne,.95*te)),le.add(new go.PathSegment(go.PathSegment.Line,.85*ne,te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.6*ne,.6*te,.55*ne,.95*te,.5*ne,.75*te));var ge=.2,me=.3,Se=0,Le=ge*ct;return le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*ne,(.5+ge+Se)*te,(.5-ge+me)*ne,(.5+Le+Se)*te,(.5-Le+me)*ne,(.5+ge+Se)*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ge+me)*ne,(.5+Se)*te,(.5+Le+me)*ne,(.5+ge+Se)*te,(.5+ge+me)*ne,(.5+Le+Se)*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*ne,(.5-ge+Se)*te,(1-.5+ge+me)*ne,(.5-Le+Se)*te,(.5+Le+me)*ne,(.5-ge+Se)*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.65*ne,.36771243*te,(.5-Le+me)*ne,(.5-ge+Se)*te,(.5-ge+me+.05)*ne,(.5-Le+Se-.02)*te)),ge=.2,me=0,Se=-.3,Le=ge*ct,le.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ge+me)*ne,(.5+Se)*te,(.5+Le+me)*ne,(.5+ge+Se)*te,(.5+ge+me)*ne,(.5+Le+Se)*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*ne,(.5-ge+Se)*te,(1-.5+ge+me)*ne,(.5-Le+Se)*te,(.5+Le+me)*ne,(.5-ge+Se)*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ge+me)*ne,(.5+Se)*te,(.5-Le+me)*ne,(.5-ge+Se)*te,(.5-ge+me)*ne,(.5-Le+Se)*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Le+me)*ne,(.5+ge+Se)*te,(.5-ge+me)*ne,(.5+Le+Se)*te,(.5-Le+me)*ne,(.5+ge+Se)*te)),ge=.2,me=-.3,Se=0,Le=ge*ct,le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*ne,(.5-ge+Se)*te,(1-.5+ge+me-.05)*ne,(.5-Le+Se-.02)*te,(.5+Le+me)*ne,(.5-ge+Se)*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ge+me)*ne,(.5+Se)*te,(.5-Le+me)*ne,(.5-ge+Se)*te,(.5-ge+me)*ne,(.5-Le+Se)*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*ne,(.5+ge+Se)*te,(.5-ge+me)*ne,(.5+Le+Se)*te,(.5-Le+me)*ne,(.5+ge+Se)*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.4*ne,.6*te,(.5+Le+me)*ne,(.5+ge+Se)*te,(.5+ge+me)*ne,(.5+Le+Se)*te).close()),de.setSpots(.06,.33,.93,.68),de}),go.Shape.defineFigureGenerator("YinYang",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne*.5,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,270,180,ne*.5,ne*.5,ne*.5,ne*.5)),le.add(new go.PathSegment(go.PathSegment.Arc,90,-180,ne*.5,ne*.75,ne*.25,ne*.25)),le.add(new go.PathSegment(go.PathSegment.Arc,90,180,ne*.5,ne*.25,ne*.25,ne*.25));var ge=.1,me=.5,Se=.25;return le.add(new go.PathSegment(go.PathSegment.Move,(me+ge)*ne,Se*te)),le.add(new go.PathSegment(go.PathSegment.Arc,0,-360,ne*me,te*Se,ge*ne,ge*ne).close()),le=new go.PathFigure(ne*.5,0,!1),de.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,270,-180,ne*.5,ne*.5,ne*.5,ne*.5)),Se=.75,le=new go.PathFigure((me+ge)*ne,Se*te,!0),de.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,0,360,ne*me,te*Se,ge*ne,ge*ne).close()),de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("Peace",function(Ne,ne,te){var de=.8535533905932737,le=.5*ne,ge=.5*te;return new go.Geometry().add(new go.PathFigure(le,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,le,ge,le,ge)).add(new go.PathSegment(go.PathSegment.Line,le,te)).add(new go.PathSegment(go.PathSegment.Move,le,ge)).add(new go.PathSegment(go.PathSegment.Line,(1-de)*ne,de*te)).add(new go.PathSegment(go.PathSegment.Move,le,ge)).add(new go.PathSegment(go.PathSegment.Line,de*ne,de*te)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Ne,ne,te){var de=new go.Geometry,le=ct*.5,ge=.5,me=.5,Se=.5,Le=new go.PathFigure(me*ne,(Se-ge)*te);de.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*ne,Se*te,(me-le)*ne,(Se-ge)*te,(me-ge)*ne,(Se-le)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se+ge)*te,(me-ge)*ne,(Se+le)*te,(me-le)*ne,(Se+ge)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,Se*te,(me+le)*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se-ge)*te,(me+ge)*ne,(Se-le)*te,(me+le)*ne,(Se-ge)*te)),ge=.4,le=ct*.4;var Ie=ye(),Ze=ye(),st=ye(),Ve=ye();Ft(me,Se-ge,me+le,Se-ge,me+ge,Se-le,me+ge,Se,.42,Ie,Ze,st,Ve,Ve);var Xe=ye(),wt=ye(),gt=ye();Ft(me,Se-ge,me+le,Se-ge,me+ge,Se-le,me+ge,Se,.58,Ve,Ve,gt,Xe,wt);var Nt=ye(),Ct=ye(),ln=ye();Ft(me,Se+ge,me-le,Se+ge,me-ge,Se+le,me-ge,Se,.42,Nt,Ct,ln,Ve,Ve);var bn=ye(),fn=ye(),Yt=ye();return Ft(me,Se+ge,me-le,Se+ge,me-ge,Se+le,me-ge,Se,.58,Ve,Ve,Yt,bn,fn),Le.add(new go.PathSegment(go.PathSegment.Move,Yt.x*ne,Yt.y*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*ne,Se*te,bn.x*ne,bn.y*te,fn.x*ne,fn.y*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se-ge)*te,(me-ge)*ne,(Se-le)*te,(me-le)*ne,(Se-ge)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,st.x*ne,st.y*te,Ie.x*ne,Ie.y*te,Ze.x*ne,Ze.y*te)),Le.add(new go.PathSegment(go.PathSegment.Line,Yt.x*ne,Yt.y*te).close()),Le.add(new go.PathSegment(go.PathSegment.Move,ln.x*ne,ln.y*te)),Le.add(new go.PathSegment(go.PathSegment.Line,gt.x*ne,gt.y*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,Se*te,Xe.x*ne,Xe.y*te,wt.x*ne,wt.y*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te,(me+le)*ne,(Se+ge)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ln.x*ne,ln.y*te,Nt.x*ne,Nt.y*te,Ct.x*ne,Ct.y*te).close()),tt(Ie),tt(Ze),tt(st),tt(Ve),tt(Xe),tt(wt),tt(gt),tt(Nt),tt(Ct),tt(ln),tt(bn),tt(fn),tt(Yt),de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("Fragile",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*ne,0)).add(new go.PathSegment(go.PathSegment.Line,.2*ne,.15*te)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,.25*te)).add(new go.PathSegment(go.PathSegment.Line,.29*ne,.33*te)).add(new go.PathSegment(go.PathSegment.Line,.35*ne,.25*te)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,.15*te)).add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*ne,.5*te,ne,.25*te,.75*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.55*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,te)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.45*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.45*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ne,.5*te,0,.25*te).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Un("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;(isNaN(de)||de<0)&&(de=30),de>ne&&(de=ne);var le=(ne-de)/2,ge=le+de;return new go.Geometry().add(new go.PathFigure(ge,.5*te).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te)).add(new go.PathSegment(go.PathSegment.Line,le,.5*te)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,ne,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,.55*te).add(new go.PathSegment(go.PathSegment.Line,.6*ne,0)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,.45*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.45*te)).add(new go.PathSegment(go.PathSegment.Line,.4*ne,te)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,.55*te).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Ne,ne,te){var de=new go.Geometry,le=ct*.4,ge=.4,me=.5,Se=.5,Le=ye(),Ie=ye(),Ze=ye(),st=ye(),Ve=new go.PathFigure((me-ge)*ne,Se*te,!1);de.add(Ve),Ve.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se-ge)*te,(me-ge)*ne,(Se-le)*te,(me-le)*ne,(Se-ge)*te)),Ft(me,Se-ge,me+le,Se-ge,me+ge,Se-le,me+ge,Se,.44,Ze,st,Ie,Le,Le),Ve.add(new go.PathSegment(go.PathSegment.Bezier,Ie.x*ne,Ie.y*te,Ze.x*ne,Ze.y*te,st.x*ne,st.y*te));var Xe=De(Ie.x,Ie.y);Ft(me,Se-ge,me+le,Se-ge,me+ge,Se-le,me+ge,Se,.56,Le,Le,Ie,Ze,st);var wt=De(Ie.x,Ie.y);Ve.add(new go.PathSegment(go.PathSegment.Line,(Xe.x*.1+.95*.9)*ne,Xe.y*.1*te)),Ve.add(new go.PathSegment(go.PathSegment.Line,.85*ne,Xe.y*.1*te)),Ve.add(new go.PathSegment(go.PathSegment.Line,.85*ne,0)),Ve.add(new go.PathSegment(go.PathSegment.Line,ne,0)),Ve.add(new go.PathSegment(go.PathSegment.Line,ne,.15*te)),Ve.add(new go.PathSegment(go.PathSegment.Line,(wt.x*.1+.9)*ne,.15*te)),Ve.add(new go.PathSegment(go.PathSegment.Line,(wt.x*.1+.9)*ne,(wt.y*.1+.05*.9)*te)),Ve.add(new go.PathSegment(go.PathSegment.Line,wt.x*ne,wt.y*te)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,Se*te,Ze.x*ne,Ze.y*te,st.x*ne,st.y*te)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te,(me+le)*ne,(Se+ge)*te)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*ne,Se*te,(me-le)*ne,(Se+ge)*te,(me-ge)*ne,(Se+le)*te)),ge=.35,le=ct*.35;var gt=new go.PathFigure(me*ne,(Se-ge)*te,!1);de.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*ne,Se*te,(me-le)*ne,(Se-ge)*te,(me-ge)*ne,(Se-le)*te)),gt.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se+ge)*te,(me-ge)*ne,(Se+le)*te,(me-le)*ne,(Se+ge)*te)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,Se*te,(me+le)*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te)),gt.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se-ge)*te,(me+ge)*ne,(Se-le)*te,(me+le)*ne,(Se-ge)*te));var Nt=new go.PathFigure((me-ge)*ne,Se*te,!1);return de.add(Nt),tt(Le),tt(Ie),tt(Ze),tt(st),tt(Xe),tt(wt),de.spot1=new go.Spot(.202,.257),de.spot2=new go.Spot(.792,.739),de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("GenderFemale",function(Ne,ne,te){var de=new go.Geometry,le=.375,ge=0,me=-.125,Se=le*ct,Le=new go.PathFigure((.525+ge)*ne,(.5+le+me)*te,!1);de.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+ge)*ne,(.5+me)*te,(.5+Se+ge)*ne,(.5+le+me)*te,(.5+le+ge)*ne,(.5+Se+me)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*ne,(.5-le+me)*te,(1-.5+le+ge)*ne,(.5-Se+me)*te,(.5+Se+ge)*ne,(.5-le+me)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+ge)*ne,(.5+me)*te,(.5-Se+ge)*ne,(.5-le+me)*te,(.5-le+ge)*ne,(.5-Se+me)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(.475+ge)*ne,(.5+le+me)*te,(.5-le+ge)*ne,(.5+Se+me)*te,(.5-Se+ge)*ne,(.5+le+me)*te)),Le.add(new go.PathSegment(go.PathSegment.Line,.475*ne,.85*te)),Le.add(new go.PathSegment(go.PathSegment.Line,.425*ne,.85*te)),Le.add(new go.PathSegment(go.PathSegment.Line,.425*ne,.9*te)),Le.add(new go.PathSegment(go.PathSegment.Line,.475*ne,.9*te)),Le.add(new go.PathSegment(go.PathSegment.Line,.475*ne,te)),Le.add(new go.PathSegment(go.PathSegment.Line,.525*ne,te)),Le.add(new go.PathSegment(go.PathSegment.Line,.525*ne,.9*te)),Le.add(new go.PathSegment(go.PathSegment.Line,.575*ne,.9*te)),Le.add(new go.PathSegment(go.PathSegment.Line,.575*ne,.85*te)),Le.add(new go.PathSegment(go.PathSegment.Line,.525*ne,.85*te).close()),le=.325,ge=0,me=-.125,Se=le*ct;var Le=new go.PathFigure((1-.5+le+ge)*ne,(.5+me)*te,!1);de.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*ne,(.5+le+me)*te,(.5+le+ge)*ne,(.5+Se+me)*te,(.5+Se+ge)*ne,(.5+le+me)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+ge)*ne,(.5+me)*te,(.5-Se+ge)*ne,(.5+le+me)*te,(.5-le+ge)*ne,(.5+Se+me)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*ne,(.5-le+me)*te,(.5-le+ge)*ne,(.5-Se+me)*te,(.5-Se+ge)*ne,(.5-le+me)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+ge)*ne,(.5+me)*te,(.5+Se+ge)*ne,(.5-le+me)*te,(1-.5+le+ge)*ne,(.5-Se+me)*te));var Le=new go.PathFigure((.525+ge)*ne,(.5+le+me)*te,!1);return de.add(Le),de.spot1=new go.Spot(.232,.136),de.spot2=new go.Spot(.682,.611),de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("LogicImplies",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;return isNaN(de)&&(de=.2),new go.Geometry().add(new go.PathFigure((1-de)*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,(1-de)*ne,te)).add(new go.PathSegment(go.PathSegment.Move,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;return isNaN(de)&&(de=.2),new go.Geometry().add(new go.PathFigure((1-de)*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,(1-de)*ne,te)).add(new go.PathSegment(go.PathSegment.Move,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Move,de*ne,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,de*ne,te))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,te,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)).add(new go.PathSegment(go.PathSegment.Line,ne,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Ne,ne,te){var de=new go.Geometry().add(new go.PathFigure(.5*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)).add(new go.PathSegment(go.PathSegment.Move,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*ne,.5*te,.5*ne,.5*te)));return de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("LogicTruth",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Move,.5*ne,0)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,te,!1).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Move,.5*ne,te)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,0,.5*te)).add(new go.PathSegment(go.PathSegment.Move,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Move,.25*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.75*ne,.5*te))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Move,0,te)).add(new go.PathSegment(go.PathSegment.Line,ne,te))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Ne,ne,te){var de=.5;return new go.Geometry().add(new go.PathFigure(0,te,!1).add(new go.PathSegment(go.PathSegment.Line,0,de*te)).add(new go.PathSegment(go.PathSegment.Arc,180,180,de*ne,de*te,de*ne,de*te)).add(new go.PathSegment(go.PathSegment.Line,ne,te))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Ne,ne,te){var de=.5;return new go.Geometry().add(new go.PathFigure(ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,de*te)).add(new go.PathSegment(go.PathSegment.Arc,0,180,de*ne,de*te,de*ne,de*te)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Un("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Un("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=.3);var le=Ne?Ne.parameter2:NaN;isNaN(le)&&(le=.3);var ge=(1-de)*ne,me=(.5-le/2)*te,Se=(.5+le/2)*te,Le=new go.Geometry,Ie=new go.PathFigure(0,me,!0);Le.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,ge,me)),Ie.add(new go.PathSegment(go.PathSegment.Line,ge,0)),Ie.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),Ie.add(new go.PathSegment(go.PathSegment.Line,ge,te)),Ie.add(new go.PathSegment(go.PathSegment.Line,ge,Se)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,Se).close()),Le.spot1=new go.Spot(0,me/te);var Ze=it(0,Se/te,1,Se/te,ge/ne,1,1,.5,ye());return Le.spot2=new go.Spot(Ze.x,Ze.y),tt(Ze),Le}),go.Shape.setFigureParameter("Arrow2",0,new Un("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Un("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=30),de>ne&&(de=ne);var le=Ne?Ne.parameter2:NaN;isNaN(le)&&(le=30),le=Math.min(le,te/2);var ge=ne-de,me=(te-le)/2,Se=me+le,Le=new go.Geometry,Ie=new go.PathFigure(0,me,!0);Le.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,ge,me)),Ie.add(new go.PathSegment(go.PathSegment.Line,ge,0)),Ie.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),Ie.add(new go.PathSegment(go.PathSegment.Line,ge,te)),Ie.add(new go.PathSegment(go.PathSegment.Line,ge,Se)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,Se).close()),Le.spot1=new go.Spot(0,me/te);var Ze=it(0,Se/te,1,Se/te,ge/ne,1,1,.5,ye());return Le.spot2=new go.Spot(Ze.x,Ze.y),tt(Ze),Le}),go.Shape.defineFigureGenerator("Chevron",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te).close()),de}),go.Shape.defineFigureGenerator("DoubleArrow",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.3*ne,.214*te)),le.add(new go.PathSegment(go.PathSegment.Line,.3*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,1*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,.3*ne,1*te)),le.add(new go.PathSegment(go.PathSegment.Line,.3*ne,.786*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,1*te).close()),de}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Un("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=.3);var le=(.5-de/2)*te,ge=(.5+de/2)*te,me=new go.Geometry,Se=new go.PathFigure(ne,.5*te,!0);me.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),Se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,ge)),Se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,0)),Se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,le)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,le)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0).close());var Le=it(0,.5,.3,0,0,le/te,.1,le/te,ye());return me.spot1=new go.Spot(Le.x,Le.y),Le=it(.7,1,1,.5,0,ge/te,1,ge/te,Le),me.spot2=new go.Spot(Le.x,Le.y),tt(Le),me}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Un("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Un("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=40);var le=Ne?Ne.parameter2:NaN;isNaN(le)&&(le=100);var ge=(te-de)/2,me=ge+de,Se=(te-le)/2,Le=Se+le;(de>te||le>te)&&(le>de?(de=de*te/le,ge=(te-de)/2,me=ge+de,Se=0,Le=te):(ge=0,me=te,Se=0,Le=te));var Ie=new go.Geometry,Ze=new go.PathFigure(ne,.5*te,!0);Ie.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Line,.7*ne,Le)),Ze.add(new go.PathSegment(go.PathSegment.Line,.7*ne,me)),Ze.add(new go.PathSegment(go.PathSegment.Line,.3*ne,me)),Ze.add(new go.PathSegment(go.PathSegment.Line,.3*ne,Le)),Ze.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),Ze.add(new go.PathSegment(go.PathSegment.Line,.3*ne,Se)),Ze.add(new go.PathSegment(go.PathSegment.Line,.3*ne,ge)),Ze.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),Ze.add(new go.PathSegment(go.PathSegment.Line,.7*ne,Se).close());var st=it(0,.5,.3,Se/te,0,ge/te,1,ge/te,ye());return Ie.spot1=new go.Spot(st.x,st.y),st=it(.7,Le/te,1,.5,0,me/te,1,me/te,st),Ie.spot2=new go.Spot(st.x,st.y),tt(st),Ie}),go.Shape.setFigureParameter("IBeamArrow",0,new Un("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=.3);var le=(.5-de/2)*te,ge=(.5+de/2)*te,me=new go.Geometry,Se=new go.PathFigure(ne,.5*te,!0);me.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,ge)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Line,0,te)),Se.add(new go.PathSegment(go.PathSegment.Line,0,0)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,0)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,le)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,le)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0).close()),me.spot1=new go.Spot(0,le/te);var Le=it(.7,1,1,.5,0,ge/te,1,ge/te,ye());return me.spot2=new go.Spot(Le.x,Le.y),tt(Le),me}),go.Shape.setFigureParameter("IBeamArrow2",0,new Un("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Un("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=40);var le=Ne?Ne.parameter2:NaN;isNaN(le)&&(le=100);var ge=(te-de)/2,me=ge+de,Se=(te-le)/2,Le=Se+le;(de>te||le>te)&&(le>de?(de=de*te/le,ge=(te-de)/2,me=ge+de,Se=0,Le=te):(ge=0,me=te,Se=0,Le=te));var Ie=new go.Geometry,Ze=new go.PathFigure(ne,.5*te,!0);Ie.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Line,.7*ne,Le)),Ze.add(new go.PathSegment(go.PathSegment.Line,.7*ne,me)),Ze.add(new go.PathSegment(go.PathSegment.Line,.2*ne,me)),Ze.add(new go.PathSegment(go.PathSegment.Line,.2*ne,Le)),Ze.add(new go.PathSegment(go.PathSegment.Line,0,Le)),Ze.add(new go.PathSegment(go.PathSegment.Line,0,Se)),Ze.add(new go.PathSegment(go.PathSegment.Line,.2*ne,Se)),Ze.add(new go.PathSegment(go.PathSegment.Line,.2*ne,ge)),Ze.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),Ze.add(new go.PathSegment(go.PathSegment.Line,.7*ne,Se).close()),Ie.spot1=new go.Spot(0,ge/te);var st=it(.7,Le/te,1,.5,0,me/te,1,me/te,ye());return Ie.spot2=new go.Spot(st.x,st.y),tt(st),Ie}),go.Shape.setFigureParameter("Pointer",0,new Un("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=.1);var le=new go.Geometry,ge=new go.PathFigure(ne,.5*te,!0);le.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,de*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),le.spot1=new go.Spot(de,.35);var me=it(.2,.65,1,.65,0,1,1,.5,ye());return le.spot2=new go.Spot(me.x,me.y),tt(me),le}),go.Shape.setFigureParameter("RoundedPointer",0,new Un("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=.3);var le=new go.Geometry,ge=new go.PathFigure(ne,.5*te,!0);le.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,0,0,de*ne,.75*te,de*ne,.25*te).close()),le.spot1=new go.Spot(de,.35);var me=it(0,.65,1,.65,0,1,1,.5,ye());return le.spot2=new go.Spot(me.x,me.y),tt(me),le}),go.Shape.setFigureParameter("SplitEndArrow",0,new Un("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=.4);var le=(.5-de/2)*te,ge=(.5+de/2)*te,me=new go.Geometry,Se=new go.PathFigure(ne,.5*te,!0);me.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),Se.add(new go.PathSegment(go.PathSegment.Line,0,ge)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.5*te)),Se.add(new go.PathSegment(go.PathSegment.Line,0,le)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,le)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0).close()),me.spot1=new go.Spot(.2,.3);var Le=it(.7,1,1,.5,0,ge/te,1,ge/te,ye());return me.spot2=new go.Spot(Le.x,Le.y),tt(Le),me}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Un("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=50);var le=(te-de)/2,ge=le+de;de>te&&(le=0,ge=te);var me=new go.Geometry,Se=new go.PathFigure(ne,.5*te,!0);me.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),Se.add(new go.PathSegment(go.PathSegment.Line,0,ge)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.5*te)),Se.add(new go.PathSegment(go.PathSegment.Line,0,le)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,le)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0).close()),me.spot1=new go.Spot(.2,le/te);var Le=it(.7,1,1,.5,0,ge/te,1,ge/te,ye());return me.spot2=new go.Spot(Le.x,Le.y),tt(Le),me}),go.Shape.setFigureParameter("SquareArrow",0,new Un("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=.7);var le=new go.Geometry,ge=new go.PathFigure(ne,.5*te,!0);return le.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,de*ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,de*ne,0).close()),le.spot1=go.Spot.TopLeft,le.spot2=new go.Spot(de,1),le}),go.Shape.defineFigureGenerator("Cone1",function(Ne,ne,te){var de=new go.Geometry,le=ct*.5,ge=ct*.1,me=new go.PathFigure(0,.9*te,!0);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),me.add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,(.9+ge)*te,(.5+le)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*te,(.5-le)*ne,te,0,(.9+ge)*te).close()),de.spot1=new go.Spot(.25,.5),de.spot2=new go.Spot(.75,.97),de}),go.Shape.defineFigureGenerator("Cone2",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,.9*te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ne,.9*te,(1-.85/.9)*ne,te,.85/.9*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,0,.9*te).close());var ge=new go.PathFigure(0,.9*te,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne,.9*te,(1-.85/.9)*ne,.8*te,.85/.9*ne,.8*te)),de.spot1=new go.Spot(.25,.5),de.spot2=new go.Spot(.75,.82),de}),go.Shape.defineFigureGenerator("Cube1",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.5*ne,te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,.85*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.15*te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,0,.15*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.85*te).close());var ge=new go.PathFigure(.5*ne,te,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.15*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.15*te)),de.spot1=new go.Spot(0,.3),de.spot2=new go.Spot(.5,.85),de}),go.Shape.defineFigureGenerator("Cube2",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,.3*te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.7*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.3*ne,0).close());var ge=new go.PathFigure(0,.3*te,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Move,.7*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),de.spot1=new go.Spot(0,.3),de.spot2=new go.Spot(.7,1),de}),go.Shape.defineFigureGenerator("Cylinder1",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=5),de=Math.min(de,te/3);var le=new go.Geometry,ge=ct*.5,me=new go.PathFigure(0,de,!0);le.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,ct*de,(.5-ge)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,1*ne,de,(.5+ge)*ne,0,1*ne,ct*de)),me.add(new go.PathSegment(go.PathSegment.Line,ne,te-de)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,1*te,1*ne,te-ct*de,(.5+ge)*ne,1*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,te-de,(.5-ge)*ne,1*te,0,te-ct*de)),me.add(new go.PathSegment(go.PathSegment.Line,0,de));var Se=new go.PathFigure(ne,de,!1);return le.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,2*de,1*ne,2*de-ct*de,(.5+ge)*ne,2*de)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,de,(.5-ge)*ne,2*de,0,2*de-ct*de)),le.spot1=new go.Spot(0,0,0,2*de),le.spot2=new go.Spot(1,1),le}),go.Shape.defineFigureGenerator("Cylinder2",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=5),de=Math.min(de,te/3);var le=new go.Geometry,ge=ct*.5,me=new go.PathFigure(0,te-de,!0);le.add(me),me.add(new go.PathSegment(go.PathSegment.Line,0,de)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,ct*de,(.5-ge)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,de,(.5+ge)*ne,0,ne,ct*de)),me.add(new go.PathSegment(go.PathSegment.Line,ne,te-de)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,te-ct*de,(.5+ge)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,te-de,(.5-ge)*ne,te,0,te-ct*de));var Se=new go.PathFigure(0,te-de,!1);return le.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te-2*de,0,te-de-ct*de,(.5-ge)*ne,te-2*de)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne,te-de,(.5+ge)*ne,te-2*de,ne,te-de-ct*de)),le.spot1=new go.Spot(0,0),le.spot2=new go.Spot(1,1,0,-2*de),le}),go.Shape.defineFigureGenerator("Cylinder3",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=5),de=Math.min(de,ne/3);var le=new go.Geometry,ge=ct*.5,me=new go.PathFigure(de,0,!0);le.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne-de,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,ne-ct*de,0,ne,(.5-ge)*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne-de,te,ne,(.5+ge)*te,ne-ct*de,te)),me.add(new go.PathSegment(go.PathSegment.Line,de,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,ct*de,te,0,(.5+ge)*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,de,0,0,(.5-ge)*te,ct*de,0));var Se=new go.PathFigure(de,0,!1);return le.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,2*de,.5*te,de+ct*de,0,2*de,(.5-ge)*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,de,te,2*de,(.5+ge)*te,de+ct*de,te)),le.spot1=new go.Spot(0,0,2*de,0),le.spot2=new go.Spot(1,1),le}),go.Shape.defineFigureGenerator("Cylinder4",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=5),de=Math.min(de,ne/3);var le=new go.Geometry,ge=ct*.5,me=new go.PathFigure(ne-de,0,!0);le.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,ne-ct*de,0,ne,(.5-ge)*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne-de,te,ne,(.5+ge)*te,ne-ct*de,te)),me.add(new go.PathSegment(go.PathSegment.Line,de,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,ct*de,te,0,(.5+ge)*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,de,0,0,(.5-ge)*te,ct*de,0)),me.add(new go.PathSegment(go.PathSegment.Line,ne-de,0));var Se=new go.PathFigure(ne-de,0,!1);return le.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne-2*de,.5*te,ne-de-ct*de,0,ne-2*de,(.5-ge)*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne-de,te,ne-2*de,(.5+ge)*te,ne-de-ct*de,te)),le.spot1=new go.Spot(0,0),le.spot2=new go.Spot(1,1,-2*de,0),le}),go.Shape.defineFigureGenerator("Prism1",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.25*ne,.25*te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var ge=new go.PathFigure(.25*ne,.25*te,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),de.spot1=new go.Spot(.408,.172),de.spot2=new go.Spot(.833,.662),de}),go.Shape.defineFigureGenerator("Prism2",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,.25*te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),le.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.75*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var ge=new go.PathFigure(0,te,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),ge.add(new go.PathSegment(go.PathSegment.Move,0,.25*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.5*te)),de.spot1=new go.Spot(.25,.5),de.spot2=new go.Spot(.75,.75),de}),go.Shape.defineFigureGenerator("Pyramid1",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.5*ne,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,.75*te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.75*te).close());var ge=new go.PathFigure(.5*ne,0,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),de.spot1=new go.Spot(.25,.367),de.spot2=new go.Spot(.75,.875),de}),go.Shape.defineFigureGenerator("Pyramid2",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.5*ne,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,.85*te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.85*te).close());var ge=new go.PathFigure(.5*ne,0,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.7*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.85*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.7*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.85*te)),de.spot1=new go.Spot(.25,.367),de.spot2=new go.Spot(.75,.875),de}),go.Shape.defineFigureGenerator("Actor",function(Ne,ne,te){var de=new go.Geometry,le=.2,ge=.1,me=ct*le,Se=ct*ge,Le=.5,Ie=.1,Ze=new go.PathFigure(Le*ne,(Ie+ge)*te,!0);de.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(Le-le)*ne,Ie*te,(Le-me)*ne,(Ie+ge)*te,(Le-le)*ne,(Ie+Se)*te)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,Le*ne,(Ie-ge)*te,(Le-le)*ne,(Ie-Se)*te,(Le-me)*ne,(Ie-ge)*te)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(Le+le)*ne,Ie*te,(Le+me)*ne,(Ie-ge)*te,(Le+le)*ne,(Ie-Se)*te)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,Le*ne,(Ie+ge)*te,(Le+le)*ne,(Ie+Se)*te,(Le+me)*ne,(Ie+ge)*te));var st=.05,Ve=ct*st;Le=.05,Ie=.25;var Xe=new go.PathFigure(.5*ne,.2*te,!0);return de.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Line,.95*ne,.2*te)),Le=.95,Ie=.25,Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Le+st)*ne,Ie*te,(Le+Ve)*ne,(Ie-st)*te,(Le+st)*ne,(Ie-Ve)*te)),Xe.add(new go.PathSegment(go.PathSegment.Line,ne,.6*te)),Xe.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.6*te)),Xe.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.35*te)),st=.025,Ve=ct*st,Le=.825,Ie=.35,Xe.add(new go.PathSegment(go.PathSegment.Bezier,Le*ne,(Ie-st)*te,(Le+st)*ne,(Ie-Ve)*te,(Le+Ve)*ne,(Ie-st)*te)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Le-st)*ne,Ie*te,(Le-Ve)*ne,(Ie-st)*te,(Le-st)*ne,(Ie-Ve)*te)),Xe.add(new go.PathSegment(go.PathSegment.Line,.8*ne,te)),Xe.add(new go.PathSegment(go.PathSegment.Line,.55*ne,te)),Xe.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.7*te)),st=.05,Ve=ct*st,Le=.5,Ie=.7,Xe.add(new go.PathSegment(go.PathSegment.Bezier,Le*ne,(Ie-st)*te,(Le+st)*ne,(Ie-Ve)*te,(Le+Ve)*ne,(Ie-st)*te)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Le-st)*ne,Ie*te,(Le-Ve)*ne,(Ie-st)*te,(Le-st)*ne,(Ie-Ve)*te)),Xe.add(new go.PathSegment(go.PathSegment.Line,.45*ne,te)),Xe.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),Xe.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.35*te)),st=.025,Ve=ct*st,Le=.175,Ie=.35,Xe.add(new go.PathSegment(go.PathSegment.Bezier,Le*ne,(Ie-st)*te,(Le+st)*ne,(Ie-Ve)*te,(Le+Ve)*ne,(Ie-st)*te)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Le-st)*ne,Ie*te,(Le-Ve)*ne,(Ie-st)*te,(Le-st)*ne,(Ie-Ve)*te)),Xe.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.6*te)),Xe.add(new go.PathSegment(go.PathSegment.Line,0,.6*te)),Xe.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),st=.05,Ve=ct*st,Le=.05,Ie=.25,Xe.add(new go.PathSegment(go.PathSegment.Bezier,Le*ne,(Ie-st)*te,(Le-st)*ne,(Ie-Ve)*te,(Le-Ve)*ne,(Ie-st)*te)),Xe.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.2*te)),de.spot1=new go.Spot(.2,.2),de.spot2=new go.Spot(.8,.65),de}),go.Shape.setFigureParameter("Card",0,new Un("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=.2);var le=new go.Geometry,ge=new go.PathFigure(ne,0,!0);return le.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,de*te)),ge.add(new go.PathSegment(go.PathSegment.Line,de*ne,0).close()),le.spot1=new go.Spot(0,de),le.spot2=go.Spot.BottomRight,le}),go.Shape.defineFigureGenerator("Collate",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.5*ne,.5*te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te));var ge=new go.PathFigure(.5*ne,.5*te,!0);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),de.spot1=new go.Spot(.25,0),de.spot2=new go.Spot(.75,.25),de}),go.Shape.defineFigureGenerator("CreateRequest",function(Ne,ne,te){var de=new go.Geometry,le=Ne?Ne.parameter1:NaN;isNaN(le)&&(le=.1);var ge=new go.PathFigure(0,0,!0);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var me=new go.PathFigure(0,le*te,!1);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,le*te)),me.add(new go.PathSegment(go.PathSegment.Move,0,(1-le)*te)),me.add(new go.PathSegment(go.PathSegment.Line,ne,(1-le)*te)),de}),go.Shape.defineFigureGenerator("Database",function(Ne,ne,te){var de=new go.Geometry,le=ct*.5,ge=ct*.1,me=new go.PathFigure(ne,.1*te,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,(.9+ge)*te,(.5+le)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*te,(.5-le)*ne,te,0,(.9+ge)*te)),me.add(new go.PathSegment(go.PathSegment.Line,0,.1*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,(.1-ge)*te,(.5-le)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,.1*te,(.5+le)*ne,0,ne,(.1-ge)*te));var Se=new go.PathFigure(ne,.1*te,!1);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.2*te,ne,(.1+ge)*te,(.5+le)*ne,.2*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*te,(.5-le)*ne,.2*te,0,(.1+ge)*te)),Se.add(new go.PathSegment(go.PathSegment.Move,ne,.2*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.3*te,ne,(.2+ge)*te,(.5+le)*ne,.3*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*te,(.5-le)*ne,.3*te,0,(.2+ge)*te)),Se.add(new go.PathSegment(go.PathSegment.Move,ne,.3*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.4*te,ne,(.3+ge)*te,(.5+le)*ne,.4*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*te,(.5-le)*ne,.4*te,0,(.3+ge)*te)),de.spot1=new go.Spot(0,.4),de.spot2=new go.Spot(1,.9),de}),go.Shape.defineFigureGenerator("DataStorage",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,.75*ne,te,ne,0,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ne,.9*te,.25*ne,.1*te).close()),de.spot1=new go.Spot(.226,0),de.spot2=new go.Spot(.81,1),de}),go.Shape.defineFigureGenerator("DiskStorage",function(Ne,ne,te){var de=new go.Geometry,le=ct*.5,ge=ct*.1,me=new go.PathFigure(ne,.1*te,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,(.9+ge)*te,(.5+le)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*te,(.5-le)*ne,te,0,(.9+ge)*te)),me.add(new go.PathSegment(go.PathSegment.Line,0,.1*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,(.1-ge)*te,(.5-le)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,.1*te,(.5+le)*ne,0,ne,(.1-ge)*te));var Se=new go.PathFigure(ne,.1*te,!1);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.2*te,ne,(.1+ge)*te,(.5+le)*ne,.2*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*te,(.5-le)*ne,.2*te,0,(.1+ge)*te)),Se.add(new go.PathSegment(go.PathSegment.Move,ne,.2*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.3*te,ne,(.2+ge)*te,(.5+le)*ne,.3*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*te,(.5-le)*ne,.3*te,0,(.2+ge)*te)),de.spot1=new go.Spot(0,.3),de.spot2=new go.Spot(1,.9),de}),go.Shape.defineFigureGenerator("Display",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.25*ne,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,.75*ne,te,ne,0,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.25*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*te).close()),de.spot1=new go.Spot(.25,0),de.spot2=new go.Spot(.75,1),de}),go.Shape.defineFigureGenerator("DividedEvent",function(Ne,ne,te){var de=new go.Geometry,le=Ne?Ne.parameter1:NaN;isNaN(le)?le=.2:le<.15&&(le=.15);var ge=ct*.2,me=new go.PathFigure(0,.2*te,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,0,0,(.2-ge)*te,(.2-ge)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Line,.8*ne,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,.2*te,(.8+ge)*ne,0,ne,(.2-ge)*te)),me.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,te,ne,(.8+ge)*te,(.8+ge)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*te,(.2-ge)*ne,te,0,(.8+ge)*te)),me.add(new go.PathSegment(go.PathSegment.Line,0,.2*te));var Se=new go.PathFigure(0,le*te,!1);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne,le*te)),de}),go.Shape.defineFigureGenerator("DividedProcess",function(Ne,ne,te){var de=new go.Geometry,le=Ne?Ne.parameter1:NaN;(isNaN(le)||le<.1)&&(le=.1);var ge=new go.PathFigure(0,0,!0);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var me=new go.PathFigure(0,le*te,!1);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,le*te)),de}),go.Shape.defineFigureGenerator("Document",function(Ne,ne,te){var de=new go.Geometry;te=te/.8;var le=new go.PathFigure(0,.7*te,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.7*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*te,.5*ne,.4*te,.5*ne,te).close()),de.spot1=go.Spot.TopLeft,de.spot2=new go.Spot(1,.6),de}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Ne,ne,te){var de=new go.Geometry,le=Ne?Ne.parameter1:NaN;(isNaN(le)||le<.2)&&(le=.2);var ge=new go.PathFigure(0,0,!0);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var me=new go.PathFigure(le*ne,0,!1);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,0,le*te)),me.add(new go.PathSegment(go.PathSegment.Move,ne,le*te)),me.add(new go.PathSegment(go.PathSegment.Line,(1-le)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Move,0,(1-le)*te)),me.add(new go.PathSegment(go.PathSegment.Line,le*ne,te)),me.add(new go.PathSegment(go.PathSegment.Move,(1-le)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,ne,(1-le)*te)),de}),go.Shape.defineFigureGenerator("ExternalProcess",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.5*ne,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*te).close());var ge=new go.PathFigure(.1*ne,.4*te,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.9*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.6*ne,.1*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.1*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.4*ne,.9*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.9*te)),de.spot1=new go.Spot(.25,.25),de.spot2=new go.Spot(.75,.75),de}),go.Shape.defineFigureGenerator("File",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var ge=new go.PathFigure(.75*ne,0,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.25*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),de.spot1=new go.Spot(0,.25),de.spot2=go.Spot.BottomRight,de}),go.Shape.defineFigureGenerator("Interrupt",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne,.5*te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te));var ge=new go.PathFigure(ne,.5*te,!1);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te));var me=new go.PathFigure(ne,.5*te,!1);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,0)),de.spot1=new go.Spot(0,.25),de.spot2=new go.Spot(.5,.75),de}),go.Shape.defineFigureGenerator("InternalStorage",function(Ne,ne,te){var de=new go.Geometry,le=Ne?Ne.parameter1:NaN,ge=Ne?Ne.parameter2:NaN;isNaN(le)&&(le=.1),isNaN(ge)&&(ge=.1);var me=new go.PathFigure(0,0,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,0)),me.add(new go.PathSegment(go.PathSegment.Line,ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var Se=new go.PathFigure(le*ne,0,!1);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,le*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Move,0,ge*te)),Se.add(new go.PathSegment(go.PathSegment.Line,ne,ge*te)),de}),go.Shape.defineFigureGenerator("Junction",function(Ne,ne,te){var de=new go.Geometry,le=1/Math.SQRT2,ge=(1-1/Math.SQRT2)/2,me=ct*.5,Se=.5,Le=new go.PathFigure(ne,Se*te,!0);de.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,te,ne,(Se+me)*te,(Se+me)*ne,te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,0,Se*te,(Se-me)*ne,te,0,(Se+me)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,0,0,(Se-me)*te,(Se-me)*ne,0)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ne,Se*te,(Se+me)*ne,0,ne,(Se-me)*te));var Ie=new go.PathFigure((ge+le)*ne,(ge+le)*te,!1);return de.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,ge*ne,ge*te)),Ie.add(new go.PathSegment(go.PathSegment.Move,ge*ne,(ge+le)*te)),Ie.add(new go.PathSegment(go.PathSegment.Line,(ge+le)*ne,ge*te)),de}),go.Shape.defineFigureGenerator("LinedDocument",function(Ne,ne,te){var de=new go.Geometry;te=te/.8;var le=new go.PathFigure(0,.7*te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.7*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*te,.5*ne,.4*te,.5*ne,te).close());var ge=new go.PathFigure(.1*ne,0,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.75*te)),de.spot1=new go.Spot(.1,0),de.spot2=new go.Spot(1,.6),de}),go.Shape.defineFigureGenerator("LoopLimit",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,te,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),le.add(new go.PathSegment(go.PathSegment.Line,.25*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te).close()),de.spot1=new go.Spot(0,.25),de.spot2=go.Spot.BottomRight,de}),go.Shape.defineFigureGenerator("MagneticTape",function(Ne,ne,te){var de=new go.Geometry,le=ct*.5,ge=.5,me=new go.PathFigure(.5*ne,te,!0);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*te,(ge-le)*ne,te,0,(ge+le)*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*ne,0,0,(ge-le)*te,(ge-le)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,ge*te,(ge+le)*ne,0,ne,(ge-le)*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ge+.1)*ne,.9*te,ne,(ge+le)*te,(ge+le)*ne,.9*te)),me.add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)),me.add(new go.PathSegment(go.PathSegment.Line,ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),de.spot1=new go.Spot(.15,.15),de.spot2=new go.Spot(.85,.8),de}),go.Shape.defineFigureGenerator("ManualInput",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*te).close()),de.spot1=new go.Spot(0,.25),de.spot2=go.Spot.BottomRight,de}),go.Shape.defineFigureGenerator("MessageFromUser",function(Ne,ne,te){var de=new go.Geometry,le=Ne?Ne.parameter1:NaN;isNaN(le)&&(le=.7);var ge=new go.PathFigure(0,0,!0);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,le*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),de.spot1=go.Spot.TopLeft,de}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Ne,ne,te){var de=new go.Geometry,le=Ne?Ne.parameter1:NaN;isNaN(le)&&(le=.25);var ge=new go.PathFigure(0,0,!0);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,le*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,(1-le)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),de}),go.Shape.defineFigureGenerator("MicroformRecording",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.25*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.15*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.85*te)),le.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.75*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),de.spot1=new go.Spot(0,.25),de.spot2=new go.Spot(1,.75),de}),go.Shape.defineFigureGenerator("MultiDocument",function(Ne,ne,te){var de=new go.Geometry;te=te/.8;var le=new go.PathFigure(ne,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,.44*te,.96*ne,.47*te,.93*ne,.45*te)),le.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.6*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.54*te,.86*ne,.57*te,.83*ne,.55*te)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.7*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*te,.4*ne,.4*te,.4*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.2*te)),le.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.2*te)),le.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.1*te)),le.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.1*te)),le.add(new go.PathSegment(go.PathSegment.Line,.2*ne,0).close());var ge=new go.PathFigure(.1*ne,.2*te,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.54*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.1*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.1*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.44*te)),de.spot1=new go.Spot(0,.25),de.spot2=new go.Spot(.8,.77),de}),go.Shape.defineFigureGenerator("MultiProcess",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.1*ne,.1*te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.1*te)),le.add(new go.PathSegment(go.PathSegment.Line,.2*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.9*te)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.9*te)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.2*te)),le.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.2*te).close());var ge=new go.PathFigure(.2*ne,.1*te,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.1*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.1*ne,.2*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.9*te)),de.spot1=new go.Spot(0,.2),de.spot2=new go.Spot(.8,1),de}),go.Shape.defineFigureGenerator("OfflineStorage",function(Ne,ne,te){var de=new go.Geometry,le=Ne?Ne.parameter1:NaN;isNaN(le)&&(le=.1);var ge=1-le,me=new go.PathFigure(0,0,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,0)),me.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te).close());var Se=new go.PathFigure(.5*le*ne,le*te,!1);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,(1-.5*le)*ne,le*te)),de}),go.Shape.defineFigureGenerator("OffPageConnector",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,.75*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),de.spot1=go.Spot.TopLeft,de.spot2=new go.Spot(.75,1),de}),go.Shape.defineFigureGenerator("Or",function(Ne,ne,te){var de=new go.Geometry,le=ct*.5,ge=.5,me=new go.PathFigure(ne,ge*te,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*ne,te,ne,(ge+le)*te,(ge+le)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*te,(ge-le)*ne,te,0,(ge+le)*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*ne,0,0,(ge-le)*te,(ge-le)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,ge*te,(ge+le)*ne,0,ne,(ge-le)*te));var Se=new go.PathFigure(ne,.5*te,!1);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),Se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),de}),go.Shape.defineFigureGenerator("PaperTape",function(Ne,ne,te){var de=new go.Geometry;te=te/.8;var le=new go.PathFigure(0,.7*te,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.3*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,ne,.3*te,.5*ne,.6*te,.5*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.7*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*te,.5*ne,.4*te,.5*ne,te).close()),de.spot1=new go.Spot(0,.49),de.spot2=new go.Spot(1,.75),de}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Ne,ne,te){var de=new go.Geometry,le=Ne?Ne.parameter1:NaN,ge=Ne?Ne.parameter2:NaN;isNaN(le)&&(le=.1),isNaN(ge)&&(ge=.3);var me=new go.PathFigure(0,0,!0);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,0)),me.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*ne,.5*te)),me.add(new go.PathSegment(go.PathSegment.Line,ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),de}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Ne,ne,te){var de=new go.Geometry,le=Ne?Ne.parameter1:NaN,ge=Ne?Ne.parameter2:NaN;isNaN(le)&&(le=.1),isNaN(ge)&&(ge=.3);var me=new go.PathFigure(0,0,!0);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),me.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),de}),go.Shape.defineFigureGenerator("Procedure",function(Ne,ne,te){var de=new go.Geometry,le=Ne?Ne.parameter1:NaN;isNaN(le)&&(le=.1);var ge=new go.PathFigure(0,0,!0);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var me=new go.PathFigure((1-le)*ne,0,!1);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,(1-le)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Move,le*ne,0)),me.add(new go.PathSegment(go.PathSegment.Line,le*ne,te)),de}),go.Shape.defineFigureGenerator("Process",function(Ne,ne,te){var de=new go.Geometry,le=Ne?Ne.parameter1:NaN;isNaN(le)&&(le=.1);var ge=new go.PathFigure(0,0,!0);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var me=new go.PathFigure(le*ne,0,!1);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,le*ne,te)),de.spot2=go.Spot.BottomRight,de}),go.Shape.defineFigureGenerator("Sort",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.5*ne,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*te).close());var ge=new go.PathFigure(0,.5*te,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),de.spot1=new go.Spot(.25,.25),de.spot2=new go.Spot(.75,.5),de}),go.Shape.defineFigureGenerator("Start",function(Ne,ne,te){var de=new go.Geometry,le=Ne?Ne.parameter1:NaN;isNaN(le)&&(le=.25);var ge=new go.PathFigure(le*ne,0,!0);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*ne,.5*te,.25*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*ne,.5*te,.25*ne,.5*te));var me=new go.PathFigure(le*ne,0,!1);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,le*ne,te)),me.add(new go.PathSegment(go.PathSegment.Move,(1-le)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Line,(1-le)*ne,te)),de.spot1=new go.Spot(le,0),de.spot2=new go.Spot(1-le,1),de}),go.Shape.defineFigureGenerator("Terminator",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.25*ne,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*ne,.5*te,.25*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*ne,.5*te,.25*ne,.5*te)),de.spot1=new go.Spot(.23,0),de.spot2=new go.Spot(.77,1),de}),go.Shape.defineFigureGenerator("TransmittalTape",function(Ne,ne,te){var de=new go.Geometry,le=Ne?Ne.parameter1:NaN;isNaN(le)&&(le=.1);var ge=new go.PathFigure(0,0,!0);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.75*ne,(1-le)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,(1-le)*te).close()),de.spot1=go.Spot.TopLeft,de}),go.Shape.defineFigureGenerator("AndGate",function(Ne,ne,te){var de=new go.Geometry,le=ct*.5,ge=new go.PathFigure(0,0,!0);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,(.5+le)*ne,0,ne,(.5-le)*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,(.5+le)*te,(.5+le)*ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),de.spot1=go.Spot.TopLeft,de.spot2=new go.Spot(.55,1),de}),go.Shape.defineFigureGenerator("Buffer",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),de.spot1=new go.Spot(0,.25),de.spot2=new go.Spot(.5,.75),de}),go.Shape.defineFigureGenerator("Clock",function(Ne,ne,te){var de=new go.Geometry,le=ct*.5,ge=.5,me=new go.PathFigure(ne,ge*te,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*ne,te,ne,(ge+le)*te,(ge+le)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*te,(ge-le)*ne,te,0,(ge+le)*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*ne,0,0,(ge-le)*te,(ge-le)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,ge*te,(ge+le)*ne,0,ne,(ge-le)*te));var Se=new go.PathFigure(ne,ge*te,!1);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne,ge*te));var Le=new go.PathFigure(.8*ne,.75*te,!1);return de.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.25*te)),Le.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.25*te)),Le.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.75*te)),Le.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.75*te)),Le.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.25*te)),Le.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.25*te)),Le.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.75*te)),de}),go.Shape.defineFigureGenerator("Ground",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.5*ne,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.4*te)),le.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.6*te)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.6*te)),le.add(new go.PathSegment(go.PathSegment.Move,.3*ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Move,.4*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.6*ne,te)),de}),go.Shape.defineFigureGenerator("Inverter",function(Ne,ne,te){var de=new go.Geometry,le=ct*.1,ge=.1,me=.9,Se=.5,Le=new go.PathFigure(.8*ne,.5*te,!0);de.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,0,te)),Le.add(new go.PathSegment(go.PathSegment.Line,0,0)),Le.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.5*te));var Ie=new go.PathFigure((me+ge)*ne,Se*te,!0);return de.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te,(me+le)*ne,(Se+ge)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*ne,Se*te,(me-le)*ne,(Se+ge)*te,(me-ge)*ne,(Se+le)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se-ge)*te,(me-ge)*ne,(Se-le)*te,(me-le)*ne,(Se-ge)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,Se*te,(me+le)*ne,(Se-ge)*te,(me+ge)*ne,(Se-le)*te)),de.spot1=new go.Spot(0,.25),de.spot2=new go.Spot(.4,.75),de}),go.Shape.defineFigureGenerator("NandGate",function(Ne,ne,te){var de=new go.Geometry,le=ct*.5,ge=ct*.4,me=ct*.1,Se=.1,Le=.9,Ie=.5,Ze=new go.PathFigure(.8*ne,.5*te,!0);de.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Bezier,.4*ne,te,.8*ne,(.5+ge)*te,(.4+le)*ne,te)),Ze.add(new go.PathSegment(go.PathSegment.Line,0,te)),Ze.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ze.add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.5*te,(.4+le)*ne,0,.8*ne,(.5-ge)*te));var st=new go.PathFigure((Le+Se)*ne,Ie*te,!0);return de.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,Le*ne,(Ie+Se)*te,(Le+Se)*ne,(Ie+me)*te,(Le+me)*ne,(Ie+Se)*te)),st.add(new go.PathSegment(go.PathSegment.Bezier,(Le-Se)*ne,Ie*te,(Le-me)*ne,(Ie+Se)*te,(Le-Se)*ne,(Ie+me)*te)),st.add(new go.PathSegment(go.PathSegment.Bezier,Le*ne,(Ie-Se)*te,(Le-Se)*ne,(Ie-me)*te,(Le-me)*ne,(Ie-Se)*te)),st.add(new go.PathSegment(go.PathSegment.Bezier,(Le+Se)*ne,Ie*te,(Le+me)*ne,(Ie-Se)*te,(Le+Se)*ne,(Ie-me)*te)),de.spot1=new go.Spot(0,.05),de.spot2=new go.Spot(.55,.95),de}),go.Shape.defineFigureGenerator("NorGate",function(Ne,ne,te){var de=new go.Geometry,le=.5,ge=ct*le,me=0,Se=.5,Le=new go.PathFigure(.8*ne,.5*te,!0);de.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,0,te,.7*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ne,.75*te,.25*ne,.25*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.5*te,(me+ge)*ne,(Se-le)*te,.7*ne,(Se-ge)*te)),le=.1,ge=ct*.1,me=.9,Se=.5;var Ie=new go.PathFigure((me-le)*ne,Se*te,!0);return de.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se-le)*te,(me-le)*ne,(Se-ge)*te,(me-ge)*ne,(Se-le)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(me+le)*ne,Se*te,(me+ge)*ne,(Se-le)*te,(me+le)*ne,(Se-ge)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se+le)*te,(me+le)*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(me-le)*ne,Se*te,(me-ge)*ne,(Se+le)*te,(me-le)*ne,(Se+ge)*te)),de.spot1=new go.Spot(.2,.25),de.spot2=new go.Spot(.6,.75),de}),go.Shape.defineFigureGenerator("OrGate",function(Ne,ne,te){var de=new go.Geometry,le=.5,ge=ct*le,me=0,Se=.5,Le=new go.PathFigure(0,0,!0);return de.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,(me+ge+ge)*ne,(Se-le)*te,.8*ne,(Se-ge)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,0,te,.8*ne,(Se+ge)*te,(me+ge+ge)*ne,(Se+le)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ne,.75*te,.25*ne,.25*te).close()),de.spot1=new go.Spot(.2,.25),de.spot2=new go.Spot(.75,.75),de}),go.Shape.defineFigureGenerator("XnorGate",function(Ne,ne,te){var de=new go.Geometry,le=.5,ge=ct*le,me=.2,Se=.5,Le=new go.PathFigure(.1*ne,0,!1);de.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,.1*ne,te,.35*ne,.25*te,.35*ne,.75*te));var Ie=new go.PathFigure(.8*ne,.5*te,!0);de.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,te,.7*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,0,.45*ne,.75*te,.45*ne,.25*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.5*te,(me+ge)*ne,(Se-le)*te,.7*ne,(Se-ge)*te)),le=.1,ge=ct*.1,me=.9,Se=.5;var Ze=new go.PathFigure((me-le)*ne,Se*te,!0);return de.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se-le)*te,(me-le)*ne,(Se-ge)*te,(me-ge)*ne,(Se-le)*te)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(me+le)*ne,Se*te,(me+ge)*ne,(Se-le)*te,(me+le)*ne,(Se-ge)*te)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se+le)*te,(me+le)*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(me-le)*ne,Se*te,(me-ge)*ne,(Se+le)*te,(me-le)*ne,(Se+ge)*te)),de.spot1=new go.Spot(.4,.25),de.spot2=new go.Spot(.65,.75),de}),go.Shape.defineFigureGenerator("XorGate",function(Ne,ne,te){var de=new go.Geometry,le=.5,ge=ct*le,me=.2,Se=.5,Le=new go.PathFigure(.1*ne,0,!1);de.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,.1*ne,te,.35*ne,.25*te,.35*ne,.75*te));var Ie=new go.PathFigure(.2*ne,0,!0);return de.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,(me+ge)*ne,(Se-le)*te,.9*ne,(Se-ge)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,te,.9*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,0,.45*ne,.75*te,.45*ne,.25*te).close()),de.spot1=new go.Spot(.4,.25),de.spot2=new go.Spot(.8,.75),de}),go.Shape.defineFigureGenerator("Capacitor",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Move,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),de}),go.Shape.defineFigureGenerator("Resistor",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,.5*te,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.1*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.3*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.4*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.6*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.5*te)),de}),go.Shape.defineFigureGenerator("Inductor",function(Ne,ne,te){var de=new go.Geometry,le=ct*.1,ge=.1,me=.1,Se=.5,Le=new go.PathFigure((me-le*.5)*ne,te,!1);return de.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,0,(me-le)*ne,te,(me-ge)*ne,0)),me=.3,Le.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,te,(me+ge)*ne,0,(me+le)*ne,te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,0,(me-le)*ne,te,(me-ge)*ne,0)),me=.5,Le.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,te,(me+ge)*ne,0,(me+le)*ne,te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,0,(me-le)*ne,te,(me-ge)*ne,0)),me=.7,Le.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,te,(me+ge)*ne,0,(me+le)*ne,te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,0,(me-le)*ne,te,(me-ge)*ne,0)),me=.9,Le.add(new go.PathSegment(go.PathSegment.Bezier,(me+le*.5)*ne,te,(me+ge)*ne,0,(me+le)*ne,te)),de}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Ne,ne,te){var de=new go.Geometry,le=ct*.5,ge=.5,me=.5,Se=.5,Le=new go.PathFigure((me-ge)*ne,Se*te,!1);return de.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se-ge)*te,(me-ge)*ne,(Se-le)*te,(me-le)*ne,(Se-ge)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,Se*te,(me+le)*ne,(Se-ge)*te,(me+ge)*ne,(Se-le)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te,(me+le)*ne,(Se+ge)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*ne,Se*te,(me-le)*ne,(Se+ge)*te,(me-ge)*ne,(Se+le)*te)),Le.add(new go.PathSegment(go.PathSegment.Move,(me-ge+.1)*ne,Se*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge-.1)*ne,Se*te,me*ne,(Se-ge)*te,me*ne,(Se+ge)*te)),de}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,.75*te,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),le.add(new go.PathSegment(go.PathSegment.Move,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),de}),go.Shape.defineFigureGenerator("Diode",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),de.spot1=new go.Spot(0,.25),de.spot2=new go.Spot(.5,.75),de}),go.Shape.defineFigureGenerator("Wifi",function(Ne,ne,te){var de=new go.Geometry,le=ne,ge=te;ne=ne*.38,te=te*.6;var me=ct*.8,Se=.8,Le=0,Ie=.5,Ze=(le-ne)/2,st=(ge-te)/2,Ve=new go.PathFigure(Le*ne+Ze,(Ie+Se)*te+st,!0);de.add(Ve),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(Le-Se)*ne+Ze,Ie*te+st,(Le-me)*ne+Ze,(Ie+Se)*te+st,(Le-Se)*ne+Ze,(Ie+me)*te+st)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,Le*ne+Ze,(Ie-Se)*te+st,(Le-Se)*ne+Ze,(Ie-me)*te+st,(Le-me)*ne+Ze,(Ie-Se)*te+st)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(Le-Se+me*.5)*ne+Ze,Ie*te+st,Le*ne+Ze,(Ie-Se)*te+st,(Le-Se+me*.5)*ne+Ze,(Ie-me)*te+st)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,Le*ne+Ze,(Ie+Se)*te+st,(Le-Se+me*.5)*ne+Ze,(Ie+me)*te+st,Le*ne+Ze,(Ie+Se)*te+st).close()),me=ct*.4,Se=.4,Le=.2,Ie=.5;var Xe=new go.PathFigure(Le*ne+Ze,(Ie+Se)*te+st,!0);de.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Le-Se)*ne+Ze,Ie*te+st,(Le-me)*ne+Ze,(Ie+Se)*te+st,(Le-Se)*ne+Ze,(Ie+me)*te+st)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Le*ne+Ze,(Ie-Se)*te+st,(Le-Se)*ne+Ze,(Ie-me)*te+st,(Le-me)*ne+Ze,(Ie-Se)*te+st)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Le-Se+me*.5)*ne+Ze,Ie*te+st,Le*ne+Ze,(Ie-Se)*te+st,(Le-Se+me*.5)*ne+Ze,(Ie-me)*te+st)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Le*ne+Ze,(Ie+Se)*te+st,(Le-Se+me*.5)*ne+Ze,(Ie+me)*te+st,Le*ne+Ze,(Ie+Se)*te+st).close()),me=ct*.2,Se=.2,Le=.5,Ie=.5;var wt=new go.PathFigure((Le-Se)*ne+Ze,Ie*te+st,!0);de.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,Le*ne+Ze,(Ie-Se)*te+st,(Le-Se)*ne+Ze,(Ie-me)*te+st,(Le-me)*ne+Ze,(Ie-Se)*te+st)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(Le+Se)*ne+Ze,Ie*te+st,(Le+me)*ne+Ze,(Ie-Se)*te+st,(Le+Se)*ne+Ze,(Ie-me)*te+st)),wt.add(new go.PathSegment(go.PathSegment.Bezier,Le*ne+Ze,(Ie+Se)*te+st,(Le+Se)*ne+Ze,(Ie+me)*te+st,(Le+me)*ne+Ze,(Ie+Se)*te+st)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(Le-Se)*ne+Ze,Ie*te+st,(Le-me)*ne+Ze,(Ie+Se)*te+st,(Le-Se)*ne+Ze,(Ie+me)*te+st)),me=ct*.4,Se=.4,Le=.8,Ie=.5;var gt=new go.PathFigure(Le*ne+Ze,(Ie-Se)*te+st,!0);de.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,(Le+Se)*ne+Ze,Ie*te+st,(Le+me)*ne+Ze,(Ie-Se)*te+st,(Le+Se)*ne+Ze,(Ie-me)*te+st)),gt.add(new go.PathSegment(go.PathSegment.Bezier,Le*ne+Ze,(Ie+Se)*te+st,(Le+Se)*ne+Ze,(Ie+me)*te+st,(Le+me)*ne+Ze,(Ie+Se)*te+st)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(Le+Se-me*.5)*ne+Ze,Ie*te+st,Le*ne+Ze,(Ie+Se)*te+st,(Le+Se-me*.5)*ne+Ze,(Ie+me)*te+st)),gt.add(new go.PathSegment(go.PathSegment.Bezier,Le*ne+Ze,(Ie-Se)*te+st,(Le+Se-me*.5)*ne+Ze,(Ie-me)*te+st,Le*ne+Ze,(Ie-Se)*te+st).close()),me=ct*.8,Se=.8,Le=1,Ie=.5;var Nt=new go.PathFigure(Le*ne+Ze,(Ie-Se)*te+st,!0);return de.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(Le+Se)*ne+Ze,Ie*te+st,(Le+me)*ne+Ze,(Ie-Se)*te+st,(Le+Se)*ne+Ze,(Ie-me)*te+st)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,Le*ne+Ze,(Ie+Se)*te+st,(Le+Se)*ne+Ze,(Ie+me)*te+st,(Le+me)*ne+Ze,(Ie+Se)*te+st)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(Le+Se-me*.5)*ne+Ze,Ie*te+st,Le*ne+Ze,(Ie+Se)*te+st,(Le+Se-me*.5)*ne+Ze,(Ie+me)*te+st)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,Le*ne+Ze,(Ie-Se)*te+st,(Le+Se-me*.5)*ne+Ze,(Ie-me)*te+st,Le*ne+Ze,(Ie-Se)*te+st).close()),de}),go.Shape.defineFigureGenerator("Email",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(0,0,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Move,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.54*te)),ge.add(new go.PathSegment(go.PathSegment.Move,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.54*te)),de}),go.Shape.defineFigureGenerator("Ethernet",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.35*ne,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.65*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.4*te)),le.add(new go.PathSegment(go.PathSegment.Line,.35*ne,.4*te)),le.add(new go.PathSegment(go.PathSegment.Line,.35*ne,0).close());var ge=new go.PathFigure(.1*ne,te,!0,!0);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.4*ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*ne,te).close());var me=new go.PathFigure(.6*ne,te,!0,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.9*ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.6*te)),me.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.6*te)),me.add(new go.PathSegment(go.PathSegment.Line,.6*ne,te).close());var Se=new go.PathFigure(0,.5*te,!1);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),Se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.5*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.4*te)),Se.add(new go.PathSegment(go.PathSegment.Move,.75*ne,.5*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.6*te)),Se.add(new go.PathSegment(go.PathSegment.Move,.25*ne,.5*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.6*te)),de}),go.Shape.defineFigureGenerator("Power",function(Ne,ne,te){var de=new go.Geometry,le=ct*.4,ge=.4,me=.5,Se=.5,Le=ye(),Ie=ye(),Ze=ye(),st=ye();Ft(me,Se-ge,me+le,Se-ge,me+ge,Se-le,me+ge,Se,.5,Le,Le,Ie,Ze,st);var Ve=De(Ie.x,Ie.y),Xe=new go.PathFigure(Ie.x*ne,Ie.y*te,!0);de.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,Se*te,Ze.x*ne,Ze.y*te,st.x*ne,st.y*te)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te,(me+le)*ne,(Se+ge)*te)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*ne,Se*te,(me-le)*ne,(Se+ge)*te,(me-ge)*ne,(Se+le)*te)),Ft(me-ge,Se,me-ge,Se-le,me-le,Se-ge,me,Se-ge,.5,Ze,st,Ie,Le,Le),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Ie.x*ne,Ie.y*te,Ze.x*ne,Ze.y*te,st.x*ne,st.y*te)),le=ct*.3,ge=.3,Ft(me-ge,Se,me-ge,Se-le,me-le,Se-ge,me,Se-ge,.5,Ze,st,Ie,Le,Le),Xe.add(new go.PathSegment(go.PathSegment.Line,Ie.x*ne,Ie.y*te)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*ne,Se*te,st.x*ne,st.y*te,Ze.x*ne,Ze.y*te)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se+ge)*te,(me-ge)*ne,(Se+le)*te,(me-le)*ne,(Se+ge)*te)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,Se*te,(me+le)*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te)),Ft(me,Se-ge,me+le,Se-ge,me+ge,Se-le,me+ge,Se,.5,Le,Le,Ie,Ze,st),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Ie.x*ne,Ie.y*te,st.x*ne,st.y*te,Ze.x*ne,Ze.y*te).close());var Xe=new go.PathFigure(.45*ne,0,!0);return de.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.5*te)),Xe.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.5*te)),Xe.add(new go.PathSegment(go.PathSegment.Line,.55*ne,0).close()),tt(Le),tt(Ie),tt(Ze),tt(st),tt(Ve),de.spot1=new go.Spot(.25,.45),de.spot2=new go.Spot(.75,.8),de}),go.Shape.defineFigureGenerator("Fallout",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,te/2,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,180,360,ne/2,te/2,ne/2,te/2));function ge(me,Se,Le){me.add(new go.PathSegment(go.PathSegment.Move,(.3+Se)*ne,(.8+Le)*te)),me.add(new go.PathSegment(go.PathSegment.Line,(.5+Se)*ne,(.5+Le)*te)),me.add(new go.PathSegment(go.PathSegment.Line,(.1+Se)*ne,(.5+Le)*te)),me.add(new go.PathSegment(go.PathSegment.Line,(.3+Se)*ne,(.8+Le)*te).close())}return ge(le,0,0),ge(le,.4,0),ge(le,.2,-.3),de}),go.Shape.defineFigureGenerator("IrritationHazard",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.2*ne,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.3*te)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te)),le.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.7*te)),le.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,.3*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.2*te).close()),de.spot1=new go.Spot(.3,.3),de.spot2=new go.Spot(.7,.7),de}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.37*ne,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.11*te)),le.add(new go.PathSegment(go.PathSegment.Line,.77*ne,.04*te)),le.add(new go.PathSegment(go.PathSegment.Line,.33*ne,.49*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.37*te)),le.add(new go.PathSegment(go.PathSegment.Line,.63*ne,.86*te)),le.add(new go.PathSegment(go.PathSegment.Line,.77*ne,.91*te)),le.add(new go.PathSegment(go.PathSegment.Line,.34*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.34*ne,.78*te)),le.add(new go.PathSegment(go.PathSegment.Line,.44*ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.56*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.68*te).close()),de}),go.Shape.defineFigureGenerator("FireHazard",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.1*ne,te,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.29*ne,0,-.25*ne,.63*te,.45*ne,.44*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.51*ne,.42*te,.48*ne,.17*te,.54*ne,.35*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.59*ne,.18*te,.59*ne,.29*te,.58*ne,.28*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.75*ne,.6*te,.8*ne,.34*te,.88*ne,.43*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.88*ne,.31*te,.87*ne,.48*te,.88*ne,.43*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,te,1.17*ne,.76*te,.82*ne,.8*te).close()),de.spot1=new go.Spot(.07,.445),de.spot2=new go.Spot(.884,.958),de}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Ne,ne,te){var de=new go.Geometry,le=.5,ge=0,me=0,Se=le*ct,Le=.4*Math.SQRT2/2+.5,Ie=.5-.5*Math.SQRT2/2,Ze=1,st=.5,Ve=.5,Xe=0,wt=new go.PathFigure(Le*ne,(1-Ie)*te,!1);return de.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,Ze*ne,st*te,Ze*ne,.7*te,Ze*ne,st*te)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(Ve+ge)*ne,(Xe+ge)*te,(.5+le+ge)*ne,(.5-Se+ge)*te,(.5+Se+ge)*ne,(.5-le+ge)*te)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+ge)*ne,(.5+me)*te,(.5-Se+ge)*ne,(.5-le+me)*te,(.5-le+ge)*ne,(.5-Se+me)*te)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(.35+ge)*ne,.9*te,(.5-le+ge)*ne,(.5+Se+me)*te,(.5-Se+ge)*ne,.9*te)),wt.add(new go.PathSegment(go.PathSegment.Move,(.25+ge)*ne,.8*te)),wt.add(new go.PathSegment(go.PathSegment.Line,(.35+ge)*ne,.9*te)),wt.add(new go.PathSegment(go.PathSegment.Line,(.2+ge)*ne,.95*te)),de}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Move,.5*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),le.add(new go.PathSegment(go.PathSegment.Move,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),de}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Move,0,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Move,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),de}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);de.add(le);var ge=new go.PathFigure(ne,te,!1);de.add(ge);var me=new go.PathFigure(0,.5*te,!1);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.5*te,.2*ne,.35*te,.3*ne,.35*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,.7*ne,.65*te,.8*ne,.65*te)),de}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,.5*te,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te).close()),de}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,.2*te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*te).close());var le=new go.PathFigure(0,.2*te,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te)),de}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.7*ne,te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.3*ne,te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,0,.6*ne,.5*te,0,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,.7*ne,te,.4*ne,.5*te,ne,.5*te).close());var ge=new go.PathFigure(.45*ne,.73*te,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.73*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.38*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.63*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.31*ne,.27*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.56*ne,.27*te)),de}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);de.add(le);var ge=new go.PathFigure(.335*ne,(1-.555)*te,!0);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.335*ne,(1-.405)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ne,(1-.405)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ne,(1-.555)*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne,.68*te,(1-.12)*ne,.46*te,(1-.02)*ne,.54*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.68*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.335*ne,(1-.555)*te,.02*ne,.54*te,.12*ne,.46*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.365*ne,(1-.595)*te));var me=.5-.285,Se=.5,Le=me,Ie=Math.PI/4,Ze=4*(1-Math.cos(Ie))/(3*Math.sin(Ie)),st=Ze*.5,Ve=me,Xe=me,wt=Ze*Ve,gt=Ze*Xe;ge.add(new go.PathSegment(go.PathSegment.Bezier,(Se-Ve)*ne,Le*te,(Se-(wt+Ve)/2)*ne,(Le+(Xe+gt)/2)*te,(Se-Ve)*ne,(Le+gt)*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,(Le-Xe)*te,(Se-Ve)*ne,(Le-gt)*te,(Se-wt)*ne,(Le-Xe)*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(Se+Ve)*ne,Le*te,(Se+wt)*ne,(Le-Xe)*te,(Se+Ve)*ne,(Le-gt)*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*ne,(1-.595)*te,(Se+Ve)*ne,(Le+gt)*te,(Se+(wt+Ve)/2)*ne,(Le+(Xe+gt)/2)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*ne,(1-.595)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ne,(1-.555)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ne,(1-.405)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.335*ne,(1-.405)*te));var Nt=new go.PathFigure(.2*ne,te,!1);de.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.8*te));var Ct=new go.PathFigure(.8*ne,te,!1);return de.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.8*te)),de}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.1*ne,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.9*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.9*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.1*ne,te).close());var ge=new go.PathFigure(.2*ne,.2*te,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.8*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.8*te)),de}),go.Shape.defineFigureGenerator("BpmnEventError",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,te,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.33*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.66*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.66*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.33*ne,.5*te).close()),de}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);de.add(le);var ge=new go.PathFigure(ne,te,!1);de.add(ge);var me=new go.PathFigure(.1*ne,te,!0);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),me.add(new go.PathSegment(go.PathSegment.Line,.9*ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te).close()),de}),go.Shape.defineFigureGenerator("Caution",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.05*ne,te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.1*ne,.8*te,0,te,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.1*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.55*ne,.1*te,.5*ne,0,.5*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.95*ne,.9*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,te,ne,te,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.05*ne,te));var ge=.05;return le.add(new go.PathSegment(go.PathSegment.Move,(.5-ge)*ne,.875*te)),le.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*ne,.875*te,ge*ne,ge*te)),le.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.75*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.325*te,.575*ne,.725*te,.625*ne,.375*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.75*te,.375*ne,.375*te,.425*ne,.725*te)),de}),go.Shape.defineFigureGenerator("Recycle",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.45*ne,.95*te,!1);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.95*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.185*ne,.85*te,.17*ne,.95*te,.15*ne,.9*te)),le.add(new go.PathSegment(go.PathSegment.Line,.235*ne,.75*te)),le.add(new go.PathSegment(go.PathSegment.Line,.3*ne,.625*te)),le.add(new go.PathSegment(go.PathSegment.Line,.35*ne,.65*te)),le.add(new go.PathSegment(go.PathSegment.Line,.275*ne,.45*te)),le.add(new go.PathSegment(go.PathSegment.Line,.05*ne,.45*te)),le.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,.05*ne,.575*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.1875*ne,.95*te,0,.675*te,0,.7*te)),le.add(new go.PathSegment(go.PathSegment.Move,.45*ne,.95*te)),le.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.775*te)),le.add(new go.PathSegment(go.PathSegment.Line,.22*ne,.775*te));var ge=new go.PathFigure(.475*ne,.2*te,!1);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.225*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.275*ne,.175*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.325*ne,.05*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*ne,.05*te,.35*ne,0,.375*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.575*ne,.375*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.525*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.475*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.315*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.32*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.05*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.575*ne,0,.65*ne,.05*te,.625*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.38*ne,.0105*te));var me=new go.PathFigure(.675*ne,.575*te,!1);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.875*ne,.525*te)),me.add(new go.PathSegment(go.PathSegment.Line,ne,.775*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,.85*ne,.95*te,ne,.8*te,ne,.85*te)),me.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.95*te)),me.add(new go.PathSegment(go.PathSegment.Line,.65*ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.85*te)),me.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.725*te)),me.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.775*te)),me.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.775*te)),me.add(new go.PathSegment(go.PathSegment.Line,ne,.775*te)),me.add(new go.PathSegment(go.PathSegment.Move,.675*ne,.575*te)),me.add(new go.PathSegment(go.PathSegment.Line,.775*ne,.775*te)),de}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Ne,ne,te){var de=new go.Geometry,le=.5,ge=ct*.5,me=new go.PathFigure(ne,le*te,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,le*ne,te,ne,(le+ge)*te,(le+ge)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,le*te,(le-ge)*ne,te,0,(le+ge)*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,le*ne,0,0,(le-ge)*te,(le-ge)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,le*te,(le+ge)*ne,0,ne,(le-ge)*te));var Se=new go.PathFigure(le*ne,0,!1);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,le*ne,.15*te)),Se.add(new go.PathSegment(go.PathSegment.Move,le*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Line,le*ne,.85*te)),Se.add(new go.PathSegment(go.PathSegment.Move,0,le*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,le*te)),Se.add(new go.PathSegment(go.PathSegment.Move,ne,le*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*ne,le*te)),Se.add(new go.PathSegment(go.PathSegment.Move,le*ne,le*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.58*ne,.1*te)),Se.add(new go.PathSegment(go.PathSegment.Move,le*ne,le*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.78*ne,.54*te)),de}),go.Shape.defineFigureGenerator("Package",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,.15*te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,.15*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var ge=new go.PathFigure(0,.15*te,!0);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.15*te).close()),de.spot1=new go.Spot(0,.1),de.spot2=new go.Spot(1,1),de}),go.Shape.defineFigureGenerator("Class",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(0,.2*te,!1);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te).close());var me=new go.PathFigure(0,.5*te,!1);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te).close()),de}),go.Shape.defineFigureGenerator("Component",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne,te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.15*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.15*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te).close());var ge=new go.PathFigure(0,.2*te,!0);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.2*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.2*te).close());var me=new go.PathFigure(0,.6*te,!0);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.6*te)),me.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.8*te)),me.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),me.add(new go.PathSegment(go.PathSegment.Line,0,.6*te).close()),de}),go.Shape.defineFigureGenerator("Boat Shipment",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.15*ne,.6*te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.6*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.6*te)),le.add(new go.PathSegment(go.PathSegment.Line,.15*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.85*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.6*te)),le.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.6*te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.6*te));var ge=new go.PathFigure(.15*ne,.6*te,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.6*te)),de}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne,te,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.66*ne,.33*te)),le.add(new go.PathSegment(go.PathSegment.Line,.66*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.33*ne,.33*te)),le.add(new go.PathSegment(go.PathSegment.Line,.33*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,0,.33*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te).close()),de}),go.Shape.defineFigureGenerator("Workcell",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,te,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.65*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.4*te)),le.add(new go.PathSegment(go.PathSegment.Line,.35*ne,.4*te)),le.add(new go.PathSegment(go.PathSegment.Line,.35*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),de}),go.Shape.defineFigureGenerator("Supermarket",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.33*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.33*te)),le.add(new go.PathSegment(go.PathSegment.Move,ne,.33*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.66*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.66*te)),le.add(new go.PathSegment(go.PathSegment.Move,ne,.66*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),de}),go.Shape.defineFigureGenerator("TruckShipment",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.6*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(ne,.8*te,!0);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.8*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te).close());var me=.1,Se=ct*.1,Le=.2,Ie=.9,Ze=new go.PathFigure((Le-me)*ne,Ie*te,!0);de.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Bezier,Le*ne,(Ie-me)*te,(Le-me)*ne,(Ie-Se)*te,(Le-Se)*ne,(Ie-me)*te)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(Le+me)*ne,Ie*te,(Le+Se)*ne,(Ie-me)*te,(Le+me)*ne,(Ie-Se)*te)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,Le*ne,(Ie+me)*te,(Le+me)*ne,(Ie+Se)*te,(Le+Se)*ne,(Ie+me)*te)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(Le-me)*ne,Ie*te,(Le-Se)*ne,(Ie+me)*te,(Le-me)*ne,(Ie+Se)*te).close()),me=.1,Se=ct*.1,Le=.8,Ie=.9;var st=new go.PathFigure((Le-me)*ne,Ie*te,!0);return de.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,Le*ne,(Ie-me)*te,(Le-me)*ne,(Ie-Se)*te,(Le-Se)*ne,(Ie-me)*te)),st.add(new go.PathSegment(go.PathSegment.Bezier,(Le+me)*ne,Ie*te,(Le+Se)*ne,(Ie-me)*te,(Le+me)*ne,(Ie-Se)*te)),st.add(new go.PathSegment(go.PathSegment.Bezier,Le*ne,(Ie+me)*te,(Le+me)*ne,(Ie+Se)*te,(Le+Se)*ne,(Ie+me)*te)),st.add(new go.PathSegment(go.PathSegment.Bezier,(Le-me)*ne,Ie*te,(Le-Se)*ne,(Ie+me)*te,(Le-me)*ne,(Ie+Se)*te).close()),de}),go.Shape.defineFigureGenerator("KanbanPost",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.2*ne,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ne,0)),le.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),le.add(new go.PathSegment(go.PathSegment.Move,.5*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ne,te)),de}),go.Shape.defineFigureGenerator("Forklift",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,0,0));var ge=new go.PathFigure(0,.5*te,!0);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.8*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*te));var me=new go.PathFigure(.5*ne,.8*te,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.1*te)),me.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.1*te)),me.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.8*te)),me.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.8*te));var Se=new go.PathFigure(.5*ne,.7*te,!1);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne,.7*te));var Le=.1,Ie=ct*.1,Ze=.1,st=.9,Ve=new go.PathFigure((Ze-Le)*ne,st*te,!0);de.add(Ve),Ve.add(new go.PathSegment(go.PathSegment.Bezier,Ze*ne,(st-Le)*te,(Ze-Le)*ne,(st-Ie)*te,(Ze-Ie)*ne,(st-Le)*te)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(Ze+Le)*ne,st*te,(Ze+Ie)*ne,(st-Le)*te,(Ze+Le)*ne,(st-Ie)*te)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,Ze*ne,(st+Le)*te,(Ze+Le)*ne,(st+Ie)*te,(Ze+Ie)*ne,(st+Le)*te)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(Ze-Le)*ne,st*te,(Ze-Ie)*ne,(st+Le)*te,(Ze-Le)*ne,(st+Ie)*te)),Le=.1,Ie=ct*.1,Ze=.4,st=.9;var Xe=new go.PathFigure((Ze-Le)*ne,st*te,!0);return de.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Ze*ne,(st-Le)*te,(Ze-Le)*ne,(st-Ie)*te,(Ze-Ie)*ne,(st-Le)*te)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Ze+Le)*ne,st*te,(Ze+Ie)*ne,(st-Le)*te,(Ze+Le)*ne,(st-Ie)*te)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Ze*ne,(st+Le)*te,(Ze+Le)*ne,(st+Ie)*te,(Ze+Ie)*ne,(st+Le)*te)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Ze-Le)*ne,st*te,(Ze-Ie)*ne,(st+Le)*te,(Ze-Le)*ne,(st+Ie)*te)),de}),go.Shape.defineFigureGenerator("RailShipment",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.1*ne,.4*te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.4*te)),le.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.9*te)),le.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.9*te)),le.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.4*te).close());var ge=new go.PathFigure(.45*ne,.7*te,!1);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.7*te));var me=new go.PathFigure(.55*ne,.4*te,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.4*te)),me.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.9*te)),me.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.9*te)),me.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.4*te).close());var Ze=.05,st=ct*.05,Ve=.175,Xe=.95,Se=new go.PathFigure((Ve-Ze)*ne,Xe*te,!0);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,Ve*ne,(Xe-Ze)*te,(Ve-Ze)*ne,(Xe-st)*te,(Ve-st)*ne,(Xe-Ze)*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(Ve+Ze)*ne,Xe*te,(Ve+st)*ne,(Xe-Ze)*te,(Ve+Ze)*ne,(Xe-st)*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,Ve*ne,(Xe+Ze)*te,(Ve+Ze)*ne,(Xe+st)*te,(Ve+st)*ne,(Xe+Ze)*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(Ve-Ze)*ne,Xe*te,(Ve-st)*ne,(Xe+Ze)*te,(Ve-Ze)*ne,(Xe+st)*te));var Ze=.05,st=ct*.05,Ve=.375,Xe=.95,Le=new go.PathFigure((Ve-Ze)*ne,Xe*te,!0);de.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,Ve*ne,(Xe-Ze)*te,(Ve-Ze)*ne,(Xe-st)*te,(Ve-st)*ne,(Xe-Ze)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Ve+Ze)*ne,Xe*te,(Ve+st)*ne,(Xe-Ze)*te,(Ve+Ze)*ne,(Xe-st)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,Ve*ne,(Xe+Ze)*te,(Ve+Ze)*ne,(Xe+st)*te,(Ve+st)*ne,(Xe+Ze)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Ve-Ze)*ne,Xe*te,(Ve-st)*ne,(Xe+Ze)*te,(Ve-Ze)*ne,(Xe+st)*te));var Ze=.05,st=ct*.05,Ve=.625,Xe=.95,Ie=new go.PathFigure((Ve-Ze)*ne,Xe*te,!0);de.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Ve*ne,(Xe-Ze)*te,(Ve-Ze)*ne,(Xe-st)*te,(Ve-st)*ne,(Xe-Ze)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ve+Ze)*ne,Xe*te,(Ve+st)*ne,(Xe-Ze)*te,(Ve+Ze)*ne,(Xe-st)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Ve*ne,(Xe+Ze)*te,(Ve+Ze)*ne,(Xe+st)*te,(Ve+st)*ne,(Xe+Ze)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ve-Ze)*ne,Xe*te,(Ve-st)*ne,(Xe+Ze)*te,(Ve-Ze)*ne,(Xe+st)*te));var Ze=.05,st=ct*.05,Ve=.825,Xe=.95,wt=new go.PathFigure((Ve-Ze)*ne,Xe*te,!0);de.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,Ve*ne,(Xe-Ze)*te,(Ve-Ze)*ne,(Xe-st)*te,(Ve-st)*ne,(Xe-Ze)*te)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(Ve+Ze)*ne,Xe*te,(Ve+st)*ne,(Xe-Ze)*te,(Ve+Ze)*ne,(Xe-st)*te)),wt.add(new go.PathSegment(go.PathSegment.Bezier,Ve*ne,(Xe+Ze)*te,(Ve+Ze)*ne,(Xe+st)*te,(Ve+st)*ne,(Xe+Ze)*te)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(Ve-Ze)*ne,Xe*te,(Ve-st)*ne,(Xe+Ze)*te,(Ve-Ze)*ne,(Xe+st)*te).close());var gt=new go.PathFigure(0,te,!1);return de.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,ne,te).close()),de}),go.Shape.defineFigureGenerator("Warehouse",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(0,.2*te,!1);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te).close());var me=new go.PathFigure(.15*ne,te,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.5*te)),me.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.5*te)),me.add(new go.PathSegment(go.PathSegment.Line,.4*ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,.15*ne,te).close());var Se=.05,Le=ct*.05,Ie=.35,Ze=.775,st=new go.PathFigure((Ie-Se)*ne,Ze*te,!0);return de.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,Ie*ne,(Ze-Se)*te,(Ie-Se)*ne,(Ze-Le)*te,(Ie-Le)*ne,(Ze-Se)*te)),st.add(new go.PathSegment(go.PathSegment.Bezier,(Ie+Se)*ne,Ze*te,(Ie+Le)*ne,(Ze-Se)*te,(Ie+Se)*ne,(Ze-Le)*te)),st.add(new go.PathSegment(go.PathSegment.Bezier,Ie*ne,(Ze+Se)*te,(Ie+Se)*ne,(Ze+Le)*te,(Ie+Le)*ne,(Ze+Se)*te)),st.add(new go.PathSegment(go.PathSegment.Bezier,(Ie-Se)*ne,Ze*te,(Ie-Le)*ne,(Ze+Se)*te,(Ie-Se)*ne,(Ze+Le)*te).close()),de}),go.Shape.defineFigureGenerator("ControlCenter",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,te,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,.1*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.9*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Move,.1*ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*te).close()),de}),go.Shape.defineFigureGenerator("Bluetooth",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,.75*te,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.75*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.75*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),de}),go.Shape.defineFigureGenerator("Bookmark",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.2*te)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*te)),le.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.4*te)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.4*te)),de}),go.Shape.defineFigureGenerator("Bookmark",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.2*te)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*te)),le.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.4*te)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.4*te)),de}),go.Shape.defineFigureGenerator("Globe",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.5*ne,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),le.add(new go.PathSegment(go.PathSegment.Move,0,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Move,.5*ne,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,.75*ne,0,ne,.25*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,.75*te,.75*ne,te)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,.25*ne,te,0,.75*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,.25*te,.25*ne,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,.15*ne,.25*te,.15*ne,.75*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,.85*ne,.75*te,.85*ne,.25*te)),le.add(new go.PathSegment(go.PathSegment.Move,.1675*ne,.15*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8325*ne,.15*te,.35*ne,.3*te,.65*ne,.3*te)),le.add(new go.PathSegment(go.PathSegment.Move,.1675*ne,.85*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8325*ne,.85*te,.35*ne,.7*te,.65*ne,.7*te)),de}),go.Shape.defineFigureGenerator("Wave",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,.25*te,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,.25*te,.1*ne,0,.2*ne,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,.7*ne,.25*te,.425*ne,.5*te,.575*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,ne,.25*te,.8*ne,0,.9*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.75*te)),le.add(new go.PathSegment(go.PathSegment.Move,0,.25*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.75*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,.75*te,.1*ne,.5*te,.2*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.7*ne,.75*te,.425*ne,te,.575*ne,te)),le.add(new go.PathSegment(go.PathSegment.Bezier,ne,.75*te,.8*ne,.5*te,.9*ne,.5*te)),de}),go.Shape.defineFigureGenerator("Operator",function(Ne,ne,te){var de=new go.Geometry,le=.3,ge=ct*.3,me=.5,Se=.7,Le=new go.PathFigure((me-le)*ne,Se*te,!0);de.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se-le)*te,(me-le)*ne,(Se-ge)*te,(me-ge)*ne,(Se-le)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(me+le)*ne,Se*te,(me+ge)*ne,(Se-le)*te,(me+le)*ne,(Se-ge)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se+le)*te,(me+le)*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(me-le)*ne,Se*te,(me-ge)*ne,(Se+le)*te,(me-le)*ne,(Se+ge)*te));var Ie=new go.PathFigure(0,.7*te,!1);return de.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,ne,.7*te,0,0,ne,0)),de}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.5*ne,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.65*te,.65*ne,.3*te,.65*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,.35*ne,.5*te,.35*ne,.3*te)),le.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.65*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,te,.3*ne,.6*te,.1*ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.65*te,.2*ne,te,.35*ne,.95*te)),le.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.65*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,ne,te,.7*ne,.6*te,.9*ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.65*te,.8*ne,te,.65*ne,.95*te)),de}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,0,.075*te,0,.5*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.4*ne,te,0,te,.4*ne,te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.4*te,.8*ne,te,.85*ne,.6*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.4*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),de}),go.Shape.defineFigureGenerator("Battery",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.1*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.1*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Move,.4*ne,.1*te)),le.add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.6*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.1*te));var ge=new go.PathFigure(0,.6*te,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Move,0,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.4*te)),de}),go.Shape.defineFigureGenerator("Delete",function(Ne,ne,te){var de=new go.Geometry,le=.5,ge=ct*.5,me=.5,Se=.5,Le=new go.PathFigure((me-le)*ne,Se*te,!0);de.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se-le)*te,(me-le)*ne,(Se-ge)*te,(me-ge)*ne,(Se-le)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(me+le)*ne,Se*te,(me+ge)*ne,(Se-le)*te,(me+le)*ne,(Se-ge)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se+le)*te,(me+le)*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(me-le)*ne,Se*te,(me-ge)*ne,(Se+le)*te,(me-le)*ne,(Se+ge)*te));var Ie=new go.PathFigure(.15*ne,.5*te,!1);return de.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.5*te)),de}),go.Shape.defineFigureGenerator("Flag",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,.1*te,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Move,0,.1*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.1*te,.15*ne,0,.35*ne,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,ne,.1*te,.65*ne,.2*te,.85*ne,.2*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.5*te,.85*ne,.6*te,.65*ne,.6*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,.35*ne,.4*te,.15*ne,.4*te).close()),de}),go.Shape.defineFigureGenerator("Help",function(Ne,ne,te){var de=new go.Geometry,le=.5,ge=ct*.5,me=.5,Se=.5,Le=new go.PathFigure((me-le)*ne,Se*te,!1);de.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se-le)*te,(me-le)*ne,(Se-ge)*te,(me-ge)*ne,(Se-le)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(me+le)*ne,Se*te,(me+ge)*ne,(Se-le)*te,(me+le)*ne,(Se-ge)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se+le)*te,(me+le)*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(me-le)*ne,Se*te,(me-ge)*ne,(Se+le)*te,(me-le)*ne,(Se+ge)*te).close()),le=.05,ge=ct*.05,me=.5,Se=.8;var Ie=new go.PathFigure((me-le)*ne,Se*te,!1);return de.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se-le)*te,(me-le)*ne,(Se-ge)*te,(me-ge)*ne,(Se-le)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(me+le)*ne,Se*te,(me+ge)*ne,(Se-le)*te,(me+le)*ne,(Se-ge)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se+le)*te,(me+le)*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(me-le)*ne,Se*te,(me-ge)*ne,(Se+le)*te,(me-le)*ne,(Se+ge)*te).close()),Ie.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.7*te)),Ie.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.2*te,.75*ne,.475*te,.75*ne,.225*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,.35*te,.4*ne,.2*te,.3*ne,.25*te)),de}),go.Shape.defineFigureGenerator("Location",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(.5*ne,te,!0).add(new go.PathSegment(go.PathSegment.Line,.75*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,.975*ne,.025*te,.5*ne,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*ne,.5*te,.5*ne,0,.025*ne,.025*te).close()).add(new go.PathSegment(go.PathSegment.Move,.5*ne,.2*te)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*ne,.3*te,.1*ne,.1*te).close()))}),go.Shape.defineFigureGenerator("Lock",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,.5*te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*te));var ge=new go.PathFigure(.2*ne,.5*te,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.3*te,.25*ne,0,.75*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.3*te)),de}),go.Shape.defineFigureGenerator("Unlocked",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,.5*te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*te));var ge=new go.PathFigure(.2*ne,.5*te,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.3*te,.25*ne,0,.75*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.35*te)),de}),go.Shape.defineFigureGenerator("Gear",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(.9375*ne,.56246875*te,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*ne,.4375*te)).add(new go.PathSegment(go.PathSegment.Line,.80621875*ne,.4375*te)).add(new go.PathSegment(go.PathSegment.Bezier,.763*ne,.3316875*te,.79840625*ne,.39915625*te,.7834375*ne,.3635*te)).add(new go.PathSegment(go.PathSegment.Line,.8566875*ne,.23796875*te)).add(new go.PathSegment(go.PathSegment.Line,.76825*ne,.14959375*te)).add(new go.PathSegment(go.PathSegment.Line,.67596875*ne,.24184375*te)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*ne,.19378125*te,.64228125*ne,.2188125*te,.603875*ne,.2021875*te)).add(new go.PathSegment(go.PathSegment.Line,.5625*ne,.0625*te)).add(new go.PathSegment(go.PathSegment.Line,.4375*ne,.0625*te)).add(new go.PathSegment(go.PathSegment.Line,.4375*ne,.19378125*te)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*ne,.239375*te,.39759375*ne,.20190625*te,.36053125*ne,.2176875*te)).add(new go.PathSegment(go.PathSegment.Line,.2379375*ne,.14959375*te)).add(new go.PathSegment(go.PathSegment.Line,.14953125*ne,.2379375*te)).add(new go.PathSegment(go.PathSegment.Line,.23934375*ne,.3278125*te)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*ne,.4375*te,.21765625*ne,.36059375*te,.201875*ne,.397625*te)).add(new go.PathSegment(go.PathSegment.Line,.0625*ne,.4375*te)).add(new go.PathSegment(go.PathSegment.Line,.0625*ne,.5625*te)).add(new go.PathSegment(go.PathSegment.Line,.1938125*ne,.5625*te)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*ne,.67596875*te,.20221875*ne,.603875*te,.21884375*ne,.64228125*te)).add(new go.PathSegment(go.PathSegment.Line,.1495625*ne,.76825*te)).add(new go.PathSegment(go.PathSegment.Line,.238*ne,.8566875*te)).add(new go.PathSegment(go.PathSegment.Line,.3316875*ne,.76296875*te)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*ne,.80621875*te,.36353125*ne,.78340625*te,.3991875*ne,.79840625*te)).add(new go.PathSegment(go.PathSegment.Line,.43753125*ne,.9375*te)).add(new go.PathSegment(go.PathSegment.Line,.5625*ne,.9375*te)).add(new go.PathSegment(go.PathSegment.Line,.5625*ne,.80621875*te)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*ne,.760625*te,.602375*ne,.79809375*te,.63946875*ne,.78234375*te)).add(new go.PathSegment(go.PathSegment.Line,.76828125*ne,.8566875*te)).add(new go.PathSegment(go.PathSegment.Line,.85671875*ne,.76825*te)).add(new go.PathSegment(go.PathSegment.Line,.76065625*ne,.67221875*te)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*ne,.56246875*te,.78234375*ne,.63940625*te,.798125*ne,.602375*te)).add(new go.PathSegment(go.PathSegment.Line,.9375*ne,.56246875*te).close()).add(new go.PathSegment(go.PathSegment.Move,.5*ne,.6*te)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*ne,.5*te,.1*ne,.1*te).close()))}),go.Shape.defineFigureGenerator("Hand",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,.5*te,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.1*ne,.3*te,0,.375*te,.05*ne,.325*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.45*ne,.075*te,.3*ne,.225*te,.4*ne,.175*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.525*ne,.075*te,.46*ne,.05*te,.525*ne,.05*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,.4*te,.525*ne,.275*te,.475*ne,.325*te)),le.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.4*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,.55*te,ne,.4*te,ne,.55*te)),le.add(new go.PathSegment(go.PathSegment.Line,.425*ne,.55*te)),le.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.55*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.6*ne,.7*te,.675*ne,.55*te,.675*ne,.7*te)),le.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.7*te)),le.add(new go.PathSegment(go.PathSegment.Line,.575*ne,.7*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.575*ne,.85*te,.65*ne,.7*te,.65*ne,.85*te)),le.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.85*te)),le.add(new go.PathSegment(go.PathSegment.Line,.525*ne,.85*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.535*ne,te,.61*ne,.85*te,.61*ne,te)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*te,.435*ne,te,0,te).close()),de}),go.Shape.defineFigureGenerator("Map",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,.2*te,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.25*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.2*te)),le.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),le.add(new go.PathSegment(go.PathSegment.Move,.25*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.2*te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),le.add(new go.PathSegment(go.PathSegment.Move,.75*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.8*te)),de}),go.Shape.defineFigureGenerator("Eject",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te*.7)),le.add(new go.PathSegment(go.PathSegment.Line,0,te*.7).close());var ge=new go.PathFigure(0,te*.6,!0);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0).close()),de}),go.Shape.defineFigureGenerator("Pencil",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*ne,.1*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.9*ne,te)).add(new go.PathSegment(go.PathSegment.Line,.1*ne,.2*te).close()))}),go.Shape.defineFigureGenerator("Building",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne*1,te*1,!1);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,0,te*.85)),le.add(new go.PathSegment(go.PathSegment.Line,.046*ne,te*.85)),le.add(new go.PathSegment(go.PathSegment.Line,.046*ne,te*.45)),le.add(new go.PathSegment(go.PathSegment.Line,0,te*.45)),le.add(new go.PathSegment(go.PathSegment.Line,0,te*.3)),le.add(new go.PathSegment(go.PathSegment.Line,.046*ne,te*.3)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te*0)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ne,te*.3)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te*.3)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te*.45)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ne,te*.45)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ne,te*.85)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te*.85).close());var ge=new go.PathFigure(.126*ne,.85*te,!1);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.126*ne,.45*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.322*ne,.45*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.322*ne,.85*te).close());var me=new go.PathFigure(.402*ne,.85*te,!1);de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.402*ne,.45*te)),me.add(new go.PathSegment(go.PathSegment.Line,.598*ne,.45*te)),me.add(new go.PathSegment(go.PathSegment.Line,.598*ne,.85*te).close());var Se=new go.PathFigure(.678*ne,.85*te,!1);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.678*ne,.45*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.874*ne,.45*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.874*ne,.85*te).close());var Le=new go.PathFigure(.5*ne,.1*te,!1);return de.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*ne,.3*te)),Le.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*ne,.3*te).close()),de}),go.Shape.defineFigureGenerator("Staircase",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,te*1,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne*.2,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.2,te*.8)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.8)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.6)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.6)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.4)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*.4)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*.2)),le.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.2)),le.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.15)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.15)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.35)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.35)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.55)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.35,te*.55)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.35,te*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.15,te*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.15,te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,0,te*.95).close()),de}),go.Shape.defineFigureGenerator("5Bars",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,te*1,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne*.184,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.184,te*(1-.184)).close());var ge=new go.PathFigure(ne*.204,te,!0);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.204,te*(1-.184))),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.388,te*(1-.184*2))),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.388,te*1).close());var me=new go.PathFigure(ne*.408,te,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne*.408,te*(1-.184*2))),me.add(new go.PathSegment(go.PathSegment.Line,ne*.592,te*(1-.184*3))),me.add(new go.PathSegment(go.PathSegment.Line,ne*.592,te*1).close());var Se=new go.PathFigure(ne*.612,te,!0);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.612,te*(1-.184*3))),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.796,te*(1-.184*4))),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.796,te*1).close());var Le=new go.PathFigure(ne*.816,te,!0);return de.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,ne*.816,te*(1-.184*4))),Le.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*(1-.184*5))),Le.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1).close()),de}),go.Shape.defineFigureGenerator("PC",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.3,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.3,0).close());var ge=new go.PathFigure(ne*.055,.07*te,!0);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.07)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.1)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.055,te*.1).close());var me=new go.PathFigure(ne*.055,.13*te,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.13)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.16)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.055,te*.16).close());var Se=new go.PathFigure(ne*.055,.18*te,!0);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.18)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.21)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.055,te*.21).close());var Le=new go.PathFigure(ne*1,0,!0);return de.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,ne*.4,0)),Le.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.65)),Le.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.65).close()),de}),go.Shape.defineFigureGenerator("Plane",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.55*ne,te,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te)),le.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.7*te)),le.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.475*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.35*ne,.525*te,0,.4*te,.225*ne,.45*te)),le.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.475*te)),le.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.35*te)),le.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.325*te)),le.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.325*te)),le.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.1*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,.2*te,.975*ne,0,ne,.08*te)),le.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.45*te)),le.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.95*te)),le.add(new go.PathSegment(go.PathSegment.Line,.55*ne,te).close()),de}),go.Shape.defineFigureGenerator("Key",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne*1,te*.5,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne*.9,.4*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.5,.4*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.5,.35*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.45,.35*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.3,.2*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.15,.2*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.35*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.65*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.15,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.3,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.45,.65*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.5,.65*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.5,.6*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.6,.6*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.65,.55*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.7,.6*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.75,.55*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.8,.6*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.85,.575*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.9,.6*te).close()),le.add(new go.PathSegment(go.PathSegment.Move,.17*ne,.425*te)),le.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*ne,.5*te,.075*ne,.075*te).close()),de}),go.Shape.defineFigureGenerator("FilmTape",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);de.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,270,180,ne*0,ne*.3,ne*.055)),le.add(new go.PathSegment(go.PathSegment.Line,0,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.08,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.08,te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*1),te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*1),te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*2),te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*2),te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*3),te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*3),te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*4),te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*4),te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*5),te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*5),te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*6),te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*6),te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*7),te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*7),te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*8),te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*8),te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*9),te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*9),te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*10),te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*10),te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*11),te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*11),te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*12),te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*12),te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*13),te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*13),te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*14),te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*14),te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*15),te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*15),te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1));var ge=new go.PathFigure(0,0,!1);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*0)),ge.add(new go.PathSegment(go.PathSegment.Arc,270,-180,ne*1,ne*.3,ne*.055)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1));var me=new go.PathFigure(ne*.11,te*.1,!1);de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*1+.028*0),te*.1)),me.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*1+.028*0),te*.8)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.11,te*.8).close());var Se=new go.PathFigure(ne*(.11+.24133333*1+.028*1),te*.1,!1);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*2+.028*1),te*.1)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*2+.028*1),te*.8)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*1+.028*1),te*.8).close());var Le=new go.PathFigure(ne*(.11+.24133333*2+.028*2),te*.1,!1);return de.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*3+.028*2),te*.1)),Le.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*3+.028*2),te*.8)),Le.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*2+.028*2),te*.8).close()),de}),go.Shape.defineFigureGenerator("FloppyDisk",function(Ne,ne,te){var de=new go.Geometry,le=8,ge=le*ct,me=new go.PathFigure(le,0,!1);de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne*.86,0)),me.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.14)),me.add(new go.PathSegment(go.PathSegment.Line,ne,te-le)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne-le,te,ne,te-ge,ne-ge,te)),me.add(new go.PathSegment(go.PathSegment.Line,le,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,te-le,ge,te,0,te-ge)),me.add(new go.PathSegment(go.PathSegment.Line,0,le)),me.add(new go.PathSegment(go.PathSegment.Bezier,le,0,0,ge,ge,0).close());var Se=new go.PathFigure(ne*.83,0,!1);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.83,te*.3)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.17,te*.3)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.17,te*0).close());var Le=new go.PathFigure(ne*.83,te*1,!1);de.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,ne*.83,te*.5)),Le.add(new go.PathSegment(go.PathSegment.Line,ne*.17,te*.5)),Le.add(new go.PathSegment(go.PathSegment.Line,ne*.17,te*1).close());var Ie=new go.PathFigure(ne*.78,te*.05,!1);return de.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*.05)),Ie.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*.25)),Ie.add(new go.PathSegment(go.PathSegment.Line,ne*.78,te*.25).close()),de}),go.Shape.defineFigureGenerator("SpeechBubble",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;(isNaN(de)||de<0)&&(de=15),de=Math.min(de,ne/3),de=Math.min(de,te/3);var le=de*ct,ge=te*.8,me=new go.Geometry,Se=new go.PathFigure(de,0,!0);return me.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne-de,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne,de,ne-le,0,ne,le)),Se.add(new go.PathSegment(go.PathSegment.Line,ne,ge-de)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne-de,ge,ne,ge-le,ne-le,ge)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.7,ge)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.7,te)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,ge)),Se.add(new go.PathSegment(go.PathSegment.Line,de,ge)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,ge-de,le,ge,0,ge-le)),Se.add(new go.PathSegment(go.PathSegment.Line,0,de)),Se.add(new go.PathSegment(go.PathSegment.Bezier,de,0,0,le,le,0).close()),le>1?(me.spot1=new go.Spot(0,0,le,le),me.spot2=new go.Spot(1,.8,-le,-le)):(me.spot1=go.Spot.TopLeft,me.spot2=new go.Spot(1,.8)),me}),go.Shape.defineFigureGenerator("Repeat",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne*0,te*.45,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne*.25,te*0)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.45)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.3,te*.45)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.3,te*.9)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.9)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.65,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.2,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.2,te*.45).close());var ge=new go.PathFigure(ne*1,te*.55,!0);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*1)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.55)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.7,te*.55)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.7,te*.1)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.1)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.35,te*0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*.55).close()),de}),go.Shape.defineFigureGenerator("Windows",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close()).add(new go.PathSegment(go.PathSegment.Move,.4*ne,.4*te)).add(new go.PathSegment(go.PathSegment.Line,.4*ne,.8*te)).add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*te)).add(new go.PathSegment(go.PathSegment.Line,.9*ne,.4*te).close()).add(new go.PathSegment(go.PathSegment.Move,.2*ne,.1*te)).add(new go.PathSegment(go.PathSegment.Line,.2*ne,.6*te)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,.6*te)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,.1*te).close()).add(new go.PathSegment(go.PathSegment.Move,.1*ne,.6*te)).add(new go.PathSegment(go.PathSegment.Line,.1*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne*0,te*.1,!1);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.9)),le.add(new go.PathSegment(go.PathSegment.Line,ne*0,te*.9).close());var ge=new go.PathFigure(ne*.1,te*.2,!0);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.1,te*.25)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.22,te*.285)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.1,te*.32)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.1,te*.37)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.275,te*.32)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.275,te*.25).close());var me=new go.PathFigure(ne*.28,te*.37,!0);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.37)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.41)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.28,te*.41).close()),de}),go.Shape.defineFigureGenerator("Beaker",function(Ne,ne,te){var de=new go.Geometry,le=15,ge=le*ct,me=new go.PathFigure(ne*.62,te*.475,!0);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,te-le)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne-le,te,ne,te-ge,ne-ge,te)),me.add(new go.PathSegment(go.PathSegment.Line,le,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,te-le,ge,te,0,te-ge)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.38,te*.475)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.38,te*.03)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.36,te*0)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.64,te*0)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.62,te*.03).close()),ge>1?(de.spot1=new go.Spot(0,0,ge,ge),de.spot2=new go.Spot(1,1,-ge,-ge)):(de.spot1=go.Spot.TopLeft,de.spot2=go.Spot.BottomRight),de}),go.Shape.defineFigureGenerator("Download",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne*0,te*1,!0);de.add(le);var ge=.1/.3;le.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*(1-ge))),le.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*0)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*0)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.755,te*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.93,te*(1-ge))),le.add(new go.PathSegment(go.PathSegment.Line,ne*.64,te*(1-ge))),le.add(new go.PathSegment(go.PathSegment.Line,ne*.61,te*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.39,te*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.36,te*(1-ge))),le.add(new go.PathSegment(go.PathSegment.Line,ne*.07,te*(1-ge))),le.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.755),te*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*0)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.8),te*0)),le.add(new go.PathSegment(go.PathSegment.Line,ne*0,te*(1-ge)).close());var me=new go.PathFigure(ne*.4,te*0,!0);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.44)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.26,te*.44)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.66)),me.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.26),te*.44)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.44)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*0).close()),de}),go.Shape.defineFigureGenerator("Bin",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne*0,te*1,!0);de.add(le);var ge=.1/.3;return le.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*(1-ge))),le.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*0)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*0)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.755,te*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.93,te*(1-ge))),le.add(new go.PathSegment(go.PathSegment.Line,ne*.64,te*(1-ge))),le.add(new go.PathSegment(go.PathSegment.Line,ne*.61,te*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.39,te*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.36,te*(1-ge))),le.add(new go.PathSegment(go.PathSegment.Line,ne*.07,te*(1-ge))),le.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.755),te*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*0)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.8),te*0)),le.add(new go.PathSegment(go.PathSegment.Line,ne*0,te*(1-ge)).close()),de}),go.Shape.defineFigureGenerator("Upload",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne*0,te*1,!0);de.add(le);var ge=.1/.3;le.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*(1-ge))),le.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*0)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*0)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.755,te*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.93,te*(1-ge))),le.add(new go.PathSegment(go.PathSegment.Line,ne*.64,te*(1-ge))),le.add(new go.PathSegment(go.PathSegment.Line,ne*.61,te*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.39,te*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.36,te*(1-ge))),le.add(new go.PathSegment(go.PathSegment.Line,ne*.07,te*(1-ge))),le.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.755),te*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*0)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.8),te*0)),le.add(new go.PathSegment(go.PathSegment.Line,ne*0,te*(1-ge)).close());var me=new go.PathFigure(ne*.5,te*0,!0);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne*.26,te*.25)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.25)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.63)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.63)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.25)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.74,te*.25).close()),de}),go.Shape.defineFigureGenerator("EmptyDrink",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne*.15,te*0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne*.85,te*0)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.7,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.3,te*1).close()),de}),go.Shape.defineFigureGenerator("Drink",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne*.15,te*0,!1);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne*.85,te*0)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.7,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.3,te*1).close());var ge=new go.PathFigure(ne*.235,te*.28,!0);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.765,te*.28)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.655,te*.97)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.345,te*.97).close()),de}),go.Shape.defineFigureGenerator("4Arrows",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne*.5,te*0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne*.65,te*.25)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.25)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.45)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.45)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.35)),le.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.5)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.65)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.55)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.55)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.65,te*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.35,te*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.55)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.25,te*.55)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.25,te*.65)),le.add(new go.PathSegment(go.PathSegment.Line,ne*0,te*.5)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.25,te*.35)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.25,te*.45)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.45)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.25)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.35,te*.25).close()),de}),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 Un={},pi="5.0",De={},ye=null,tt=!1,it=!1,Ft=null,Et=!1,ze=null,ct=null,Kt=0;Kt4?parseFloat(rn):5};Un.setHTML5Codebase=function(rn,Gn){ct=rn,yn(rn,Gn)},Un.setJavaCodebase=Un.setJavaCodebaseVersion=Un.isCompiledInstalled=Un.setPreCompiledScriptPath=Un.setPreCompiledResourcePath=function(){},Un.setHTML5CodebaseVersion=function(rn,Gn){var Mn=parseFloat(rn);if(Mn!==NaN&&Mn<5){console.log("The GeoGebra HTML5 codebase version "+Mn+" is deprecated. Using version latest instead.");return}ze=rn,qe(rn,Gn)},Un.getHTML5CodebaseVersion=function(){return Ne},Un.getParameters=function(){return De},Un.setFontsCSSURL=function(rn){me=rn},Un.setGiacJSURL=function(rn){},Un.setJNLPFile=function(rn){Me=rn},Un.setJNLPBaseDir=function(rn){},Un.inject=function(){function rn(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Gn="auto",Mn=De.id,xi,Wt=!1,Nn=0;Nn=5)return!0;var rn=Un.getAppletObject();return rn&&typeof rn.recalculateEnvironments=="function"?(rn.recalculateEnvironments(),!0):!1},Un.startAnimation=function(){var rn=Un.getAppletObject();return rn&&typeof rn.startAnimation=="function"?(rn.startAnimation(),!0):!1},Un.stopAnimation=function(){var rn=Un.getAppletObject();return rn&&typeof rn.stopAnimation=="function"?(rn.stopAnimation(),!0):!1},Un.getAppletObject=function(){var rn=De.id!==void 0?De.id:"ggbApplet";return window[rn]},Un.resize=function(){};var wt=function(rn,Gn,Mn){var xi=document.createElement("param");xi.setAttribute("name",Gn),xi.setAttribute("value",Mn),rn.appendChild(xi)},gt=function(rn){return rn&&rn!=="false"},Nt=function(rn,Gn,Mn){Le(Ne)<=4.2&&(Mn=!0);var xi=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ne||ggbHTML5LoadedCodebaseIsWebSimple&&!te)&&(xi=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Wt=document.createElement("div");Wt.classList.add("appletParameters","notranslate");var Nn=Gn.width,St=Gn.height;if(Gn.disableAutoScale=Gn.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Gn.disableAutoScale,Gn.width!==void 0)if(Le(Ne)<=4.4)gt(Gn.showToolBar)&&(Gn.height-=7),gt(Gn.showAlgebraInput)&&(Gn.height-=37),Gn.width<605&>(Gn.showToolBar)&&(Gn.width=605,Nn=605);else{var bi=100;(gt(Gn.showToolBar)||gt(Gn.showMenuBar))&&(Gn.hasOwnProperty("customToolBar")&&(Gn.customToolbar=Gn.customToolBar),bi=gt(Gn.showMenuBar)?245:155),Nn=5?(Gn.appletOnLoad=function(Tt){var Ut=rn.querySelector(".ggb_preview");Ut&&Ut.parentNode.removeChild(Ut),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(be),window.GGBT_wsf_view&&$(window).trigger("resize"),je(Tt)},we||be.appendChild(Be)):Wt.appendChild(Be),be.appendChild(Wt),we||rn.appendChild(be),setTimeout(function(){Un.resize()},1)}else{var Ke=document.createElement("div");Ke.className="applet_scaler",Ke.style.position="relative",Ke.style.display="block",Ke.appendChild(Wt),rn.appendChild(Ke),Gn.appletOnLoad=function(Tt){Un.resize(),je(Tt)}}function ke(Tt,Ut){Ut&&typeof Ut.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Tt,Ut.appletOnLoad):renderGGBElement(Tt),oi("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ut)}function et(Tt,Ut){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Tt,params:Ut}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(hn){ke(hn.article,hn.params)}),html5AppletsToProcess=null)},Le(Ne)<5&&(Tt.className+=" geogebraweb")):ke(Tt,Ut)}if(xi){scriptLoadStarted=!0;for(var sn=0;sn0?(qn.remove(),be.attr("id","fullscreencontent").show(),jQuery(je).append(be),window.dispatchEvent(new Event("resize"))):Nt(qn,Gn,!1),window.GGBT_wsf_view.launchFullScreen(je)}else Ht=xi,Nt(rn,Gn,!1);if(!window.GGBT_wsf_view)for(St=0;Strn/4*3&&(qn=rn/4*3),je=qn/5.8,bi.setAttribute("src",le),bi.setAttribute("width",qn),bi.setAttribute("height",je);var be=(rn-qn)/2,we=(Gn-je)/2;bi.style.left=be+"px",bi.style.top=we+"px",Wt.appendChild(bi)}}return Wt.appendChild(St),Wt},Ln=function(rn){return rn=rn.toLowerCase(),rn==="html5"||rn==="screenshot"?rn:"html5"},lt=["web","webSimple","web3d","tablet","tablet3d","phone"],qe=function(rn,Gn){if(Ne=rn,Gn){yn(Ne,!0);return}var Mn=!tt;if(Mn){var xi=Le(Ne);!isNaN(xi)&&xi<4.4&&(Mn=!1)}var Wt,Nn;window.location.protocol.substr(0,4)==="http"?Wt=window.location.protocol:Wt="http:";var St=Ne.indexOf("//");St>0?Nn=Ne:St===0?Nn=Wt+Ne:Nn="https://www.geogebra.org/apps/5.2.814.0/";for(var bi in lt)if(Ne.slice(lt[bi].length*-1)===lt[bi]||Ne.slice((lt[bi].length+1)*-1)===lt[bi]+"/"){yn(Nn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Mn&&!ye.is3D&&!ye.AV&&!ye.SV&&!ye.CV&&!ye.EV2&&!ye.CP&&!ye.PC&&!ye.DA&&!ye.FI&&!ye.PV&&!gt(De.showToolBar)&&!gt(De.showMenuBar)&&!gt(De.showAlgebraInput)&&!gt(De.enableRightClick)&&(!De.appName||De.appName=="classic")?Nn+="webSimple/":Nn+="web3d/",yn(Nn,!1)},yn=function(rn,Gn){if(rn.requirejs){It=rn;return}rn.slice(-1)!=="/"&&(rn+="/"),It=rn,Gn===null&&(Gn=rn.indexOf("http")===-1),Ye=Gn,ne="web.nocache.js",te=!1;var Mn=It.split("/");Mn.length>1&&(!Gn&&Mn[Mn.length-2]==="webSimple"?(ne="webSimple.nocache.js",te=!0):lt.indexOf(Mn[Mn.length-2])>=0&&(ne=Mn[Mn.length-2]+".nocache.js")),Mn=rn.split("/"),Ne=Mn[Mn.length-3],Ne.substr(0,4)==="test"?Ne=Ne.substr(4,1)+"."+Ne.substr(5,1):(Ne.substr(0,3)==="war"||Ne.substr(0,4)==="beta")&&(Ne="5.0");var xi=parseFloat(Ne);xi!==NaN&&xi<5&&rn.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+xi+" is deprecated. Using version latest instead."),qe("5.0",Gn))},oi=function(rn,Gn){window.console&&window.console.log&&(!Gn||typeof Gn.showLogging=="undefined"||Gn.showLogging&&Gn.showLogging!=="false")&&console.log(rn)};De.material_id!==void 0?st(Yn):Yn();function Yn(){var rn=pi;ze!==null?rn=ze:parseFloat(rn)<5&&(rn="5.0"),qe(rn,!1),ct!==null&&yn(ct,Ye),Et=!0}return Un},GGBAppletUtils=function(){"use strict";function Un(){return window.GGBT_wsf_edit!==void 0}function pi(Et,ze){ze!=1?(Et.style.transformOrigin="0% 0% 0px",Et.style.webkitTransformOrigin="0% 0% 0px",Et.style.transform="scale("+ze+","+ze+")",Et.style.webkitTransform="scale("+ze+","+ze+")",Et.style.maxWidth="initial",Et.querySelector(".ggb_preview")!==null&&(Et.querySelector(".ggb_preview").style.maxWidth="initial"),Et.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Et.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Et.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Et.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Et.style.transform="none",Et.style.webkitTransform="none")}function De(Et,ze,ct,Kt,ft,Me){var It=null;if(Me!=null&&Me!="")for(var Ye=Et.parentNode;Ye!=null;)if((" "+Ye.className+" ").indexOf(" "+Me+" ")>-1){It=Ye;break}else Ye=Ye.parentNode;var Ht=0,Ne=0,ne=0,te=0,de=0,le=0,ge=0;if(It)Ht=It.offsetWidth,Ne=Math.max(Kt?It.offsetWidth:0,It.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ht=Math.min(window.innerWidth,document.documentElement.clientWidth),Ne=Math.min(window.innerHeight,document.documentElement.clientHeight),ne=Ht):(Ht=window.innerWidth,Ne=window.innerHeight,ne=window.innerWidth),Et){var me=Et.getBoundingClientRect();me.left>0&&me.left<=Ht&&(ft===void 0||!ft)&&(document.dir==="rtl"?(de=Ht-me.width-me.left,le=ne<=480?10:30):(le=me.left,de=ne<=480?10:30),te=le+de)}if(Et&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Se=Et.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(te=40,ge=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(te=0,ge=40)}}return Et&&((ct===void 0||!ct)&&ze>0&&ze+te1&&(Me=!0)),ze&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Me=!0),!(Et.hasOwnProperty("disableAutoScale")&&Et.disableAutoScale))ft=ye(Et,ze,Me,ct,Et.scaleContainerClass);else return Kt;return Me&&(!Et.hasOwnProperty("scale")||Kt===1)?ft:Math.min(Kt,ft)}function it(Et){var ze=Math.min(window.innerWidth,document.documentElement.clientWidth),ct=Math.min(window.innerHeight,document.documentElement.clientHeight),Kt=Et.getBoundingClientRect(),ft=(ze-Kt.width)/2,Me=(ct-Kt.height)/2;Me<0&&(Me=0),Et.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ft<40?Et.style.left="40px":Et.style.left=ft+"px",Et.style.top=Me+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Me<40?Et.style.top="40px":Et.style.top=Me+"px",Et.style.left=ft+"px")}function Ft(Et,ze){var ct=Et.querySelector(".appletParameters");if(ct){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ze.id!==ct.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Et)}if(ct.parentElement&&/fullscreen/.test(ct.parentElement.className))return;var Kt=tt(ze,Et);Un()&&ct.setAttribute("data-param-scale",Kt);for(var ft=null,Me=0;Me=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(Un){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Un){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Un){var pi=c[Un];return pi==null?null:pi},r=d,webModule.__errFn=e}function B(){function Un(Et){var ze=Et.lastIndexOf(rb);ze==-1&&(ze=Et.length);var ct=Et.indexOf(sb);ct==-1&&(ct=Et.length);var Kt=Et.lastIndexOf(tb,Math.min(ct,ze));return Kt>=O?Et.substring(O,Kt+P):W}function pi(Et){if(!Et.match(/^\w+:\/\//)){var ze=o.createElement(ub);ze.src=Et+vb,Et=Un(ze.src)}return Et}function De(){var Et=__gwt_getMetaProperty(wb);return Et!=null?Et:W}function ye(){for(var Et=o.getElementsByTagName(_),ze=O;zeO?Et[Et.length-P].href:W}function it(){var Et=o.location;return Et.href==Et.protocol+zb+Et.host+Et.pathname+Et.search+Et.hash}var Ft=De();return Ft==W&&(Ft=ye()),Ft==W&&(Ft=tt()),Ft==W&&it()&&(Ft=Un(o.location.href)),Ft=pi(Ft),Ft}function C(Un){return Un.match(/^\//)||Un.match(/^[a-zA-Z]+:\/\//)?Un:webModule.__moduleBase+Un}function D(){var Un=[],pi=O,De=[],ye=[];function tt(Et){var ze=ye[Et](),ct=De[Et];if(ze in ct)return ze;var Kt=[];for(var ft in ct)Kt[ct[ft]]=ft;throw r&&r(Et,Kt,ze),null}if(__gwt_isKnownPropertyValue=function(Et,ze){return ze in De[Et]},webModule.__getPropMap=function(){var Et={};for(var ze in De)De.hasOwnProperty(ze)&&(Et[ze]=tt(ze));return Et},webModule.__computePropValue=tt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var it;try{it=Cb;var Ft=it.indexOf(Db);Ft!=-1&&(pi=parseInt(it.substring(Ft+P),$),it=it.substring(O,Ft))}catch(Et){}return webModule.__softPermutationId=pi,C(it+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(Un,pi,De){"use strict";De.d(pi,{Ax:function(){return Ft},Ds:function(){return Et},KI:function(){return ct},SI:function(){return it},f1:function(){return tt}});var ye=De(346);function tt(Kt){let ft=!0;if(Kt.length>0){for(let Me=0;Menew Promise((ne,te)=>{var de=me=>{try{ge(Ne.next(me))}catch(Se){te(Se)}},le=me=>{try{ge(Ne.throw(me))}catch(Se){te(Se)}},ge=me=>me.done?ne(me.value):Promise.resolve(me.value).then(de,le);ge((Ne=Ne.apply(Ye,Ht)).next())}),It=({data:Ye,className:Ht,fullWidth:Ne,style:ne={},onClose:te,onOk:de,showFullTools:le,noAssociationId:ge})=>{const me=(0,ye.useRef)(null),Se=(0,ye.useRef)(null),Le=(0,ye.useRef)(null),Ie=(0,ye.useRef)(null),[Ze,st]=(0,ye.useState)(!1),[Ve,Xe]=(0,ye.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ye.useEffect)(()=>(Le.current||(Le.current=document.createElement("style"),document.head.appendChild(Le.current)),Ye!=null&&Ye.visible?(document.body.setAttribute("data-custom","y-hidden"),Le.current.innerHTML=" html { overflow-y: hidden; }",Ye!=null&&Ye.src&&wt()):(document.body.removeAttribute("data-custom"),Le.current&&(document.head.removeChild(Le.current),Le.current=null)),()=>{document.body.removeAttribute("data-custom"),Le.current&&(document.head.removeChild(Le.current),Le.current=null)}),[Ye==null?void 0:Ye.visible]);const wt=()=>ft(void 0,null,function*(){st(!0),Xe("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ln=yield(0,Kt.ZJ)(Ye==null?void 0:Ye.src);me.current.src="",me.current.src=ln,me.current.onload=function(){Ct()},st(!1),Xe("")}),gt=ln=>ft(void 0,null,function*(){st(!0),Xe("\u6B63\u5728\u4FDD\u5B58\u4E2D");const bn=yield(0,ct.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ye.title,file:ln.dataUrl}});bn!=null&&bn.id&&!ge?(yield(0,ct.ZP)(`/api/attachments/${Ye.id}/add_subitem.json`,{method:"post",body:{subitem_id:bn==null?void 0:bn.id,settings:JSON.stringify(ln.state)}})).status===0&&de():bn!=null&&bn.id&&de(bn),st(!1),Xe("")}),Nt=()=>{const ln=document.querySelector('a[href="https://markerjs.com/"]');ln&&ln.parentNode&&(ln.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(fn=>{const Yt=document.querySelector(fn.name);Yt&&Yt.setAttribute("title",fn.title)})},Ct=()=>{Se.current=new ze.hP(me.current),Se.current.targetRoot=Ie.current,Se.current.addEventListener("render",gt),Se.current.addEventListener("beforeclose",te),le&&(Se.current.availableMarkerTypes=Se.current.ALL_MARKER_TYPES,Se.current.uiStyleSettings.redoButtonVisible=!0,Se.current.uiStyleSettings.notesButtonVisible=!0,Se.current.uiStyleSettings.zoomButtonVisible=!0,Se.current.uiStyleSettings.zoomOutButtonVisible=!0,Se.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Se.current.uiStyleSettings,Se.current.show(),Ye!=null&&Ye.snapshotData&&Se.current.restoreState(Ye.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Nt()},300)};return ye.createElement(ye.Fragment,null,(Ye==null?void 0:Ye.visible)&&ye.createElement(Et.Z,{spinning:Ze,tip:Ve,style:{position:"absolute",width:"100vw"}},ye.createElement("div",{ref:Ie,className:Ft()(tt.imageDimensions,Ht,Ne?tt.fullWidth:""),style:ne},ye.createElement("img",{className:tt.img,ref:me}))))}},76562:function(Un,pi,De){"use strict";var ye=De(59301),tt=De(77019),it=De(5269),Ft=De(20554),Et=De(99571),ze=De(76902),ct=De(99587),Kt=De(48136),ft=De(59301);const Me=(0,ye.forwardRef)(({callback:It,showSaveButton:Ye,value:Ht=""},Ne)=>{const ne=(0,ye.useRef)(),te=[{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 "}]}]}],de=[{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}`}]}]}],le=Se=>{ne.current.setValue(ne.current.getValue()+" "+Se.value+" ")},ge=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ft.createElement(tt.Z,{className:ct.Z.lists,gutter:[10,10]},te.map((Se,Le)=>ft.createElement(it.Z,{flex:"110px",className:ct.Z.item},ft.createElement("div",null,ft.createElement(ze.Z,{value:`$$${Se.value}$$`}),Se.name),ft.createElement("div",{className:ct.Z.children},Se.children.map((Ie,Ze)=>ft.createElement("div",{key:Ze},ft.createElement("h1",null,Ie.name),ft.createElement(tt.Z,{gutter:[10,10]},Ie.data.map((st,Ve)=>ft.createElement(it.Z,{key:Ve,onClick:()=>le(st),className:ct.Z.diamond},ft.createElement(ze.Z,{value:"`$$"+st.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ft.createElement(tt.Z,{className:ct.Z.lists,gutter:[10,10]},de.map((Se,Le)=>ft.createElement(it.Z,{flex:"110px",className:ct.Z.item},ft.createElement("div",null,ft.createElement(ze.Z,{value:"`$$"+Se.value+"$$`"}),Se.name),ft.createElement("div",{className:ct.Z.children},Se.children.map((Ie,Ze)=>ft.createElement("div",{key:Ze},Ie.name&&ft.createElement("h1",null,Ie.name),ft.createElement(tt.Z,{gutter:[10,10]},Ie.data.map((st,Ve)=>ft.createElement(it.Z,{key:Ve,onClick:()=>le(st),className:ct.Z.diamond},ft.createElement(ze.Z,{value:"`$$"+st.value+"$$`"}))))))))))}],me=()=>{var Se=document.createElement("div");Se.innerHTML=ne.current.getValue();var Le=Se.innerText;return It&&It(Le),Le};return(0,ye.useImperativeHandle)(Ne,()=>({getData:me})),ft.createElement("div",{className:ct.Z.mathWrap},ft.createElement(Ft.default,{defaultActiveKey:"1",items:ge}),ft.createElement("math-field",{locale:"zh_cn",className:ct.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:ne,style:{width:800,marginTop:30,fontSize:18}},Ht||""),Ye&&ft.createElement("div",{className:ct.Z.button},ft.createElement(Et.ZP,{size:"large",onClick:me,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});pi.Z=Me},28426:function(Un,pi,De){"use strict";var ye=De(59301),tt=De(93314),it=De(99571),Ft=Object.defineProperty,Et=Object.defineProperties,ze=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,Kt=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,Me=(Ne,ne,te)=>ne in Ne?Ft(Ne,ne,{enumerable:!0,configurable:!0,writable:!0,value:te}):Ne[ne]=te,It=(Ne,ne)=>{for(var te in ne||(ne={}))Kt.call(ne,te)&&Me(Ne,te,ne[te]);if(ct)for(var te of ct(ne))ft.call(ne,te)&&Me(Ne,te,ne[te]);return Ne},Ye=(Ne,ne)=>Et(Ne,ze(ne));const Ht=({img:Ne,buttonProps:ne={},styles:te={},customText:de,ButtonText:le,ButtonClick:ge,Buttonclass:me,ButtonTwo:Se,imgStyles:Le,loading:Ie=!1,className:Ze=""})=>ye.createElement("section",{className:`tc animated fadeIn ${Ze}`,style:It({color:"#999",margin:"100px auto",visibility:Ie?"hidden":"visible"},te)},ye.createElement("img",{src:Ne||tt,style:Ye(It({},Le),{pointerEvents:"none",userSelect:"none"})}),ye.createElement("p",{className:"mt20 font14"},de||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),le&&ye.createElement(it.ZP,It({className:me,onClick:ge},ne),le),Se&&Se);pi.Z=Ht},43155:function(Un,pi,De){"use strict";De.d(pi,{Q:function(){return ze}});var ye=De(59301),tt=De(82326),it=De(47889),Ft=De(71051),Et=De(59301),ze=(Kt=>(Kt[Kt.Number=1]="Number",Kt[Kt.Percent=2]="Percent",Kt))(ze||{});const ct=({value:Kt,onChange:ft,disabled:Me,hidePercentOption:It=!1,percentType:Ye="select"})=>{const Ht=(0,ye.useMemo)(()=>It?1:2,[It]),[Ne,ne]=(0,ye.useState)(Ht);console.log(Ne);const te=le=>Kt.type===1?`${le}\u5206`:`${le}%`,de=(0,ye.useCallback)(le=>{if(Ne===1){const ge=le.replace("\u5206","");return isNaN(parseInt(ge,10))?0:ge}else return le.replace("%","")},[Ne]);return(0,ye.useEffect)(()=>{ne(Kt.type)},[Kt]),Et.createElement("div",{style:{display:"flex",alignItems:"center"}},Ye=="select"&&Et.createElement(tt.default,{size:"large",onChange:le=>{ne(le),ft({type:le,inputValue:le===1?5:20})},value:Ne||Ht,style:{width:100},options:It?[{label:"\u5206\u503C",value:1}]:[{label:"\u767E\u5206\u6BD4",value:2},{label:"\u5206\u503C",value:1}],disabled:Me}),Ye=="radio"&&Et.createElement(it.ZP.Group,{size:"large",onChange:le=>{const ge=le.target.value;ne(ge),ft({type:ge,inputValue:ge===1?5:20})},value:Ne||Ht,disabled:Me},!It&&Et.createElement(it.ZP,{value:2,style:{marginRight:"50px"}},"\u767E\u5206\u6BD4\u6263\u5206"),Et.createElement(it.ZP,{value:1},"\u56FA\u5B9A\u5206\u503C")),Ye=="radio"&&Et.createElement("div",{style:{marginRight:"10px",color:"#000000"}},Kt.type==2?"\u6263\u9664\u8865\u4EA4\u9636\u6BB5\u5F97\u5206\u7684":"\u6263\u9664\u603B\u6210\u7EE9\u7684"),Et.createElement(Ft.Z,{size:"large",disabled:Me,value:Kt.inputValue,style:{width:"120px"},parser:de,addonAfter:Kt.type===1?"\u5206":"%",max:Ne===2?100:Number.MAX_SAFE_INTEGER,min:0,precision:0,onChange:le=>{ft({type:Ne,inputValue:le})}}),Ye=="radio"&&Kt.type==2&&Et.createElement("div",{style:{marginLeft:"10px",color:"#000000"}},"\u5206\u6570"))};pi.Z=ct},45677:function(Un,pi,De){"use strict";De.d(pi,{Z:function(){return me}});var ye=De(59301),tt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},it=De(99571),Ft=De(70557),Et=De(75975),ze=De(25399),ct=De(51257),Kt=De(81722),ft=De(28426),Me=De(346),It=De(44203),Ye=De(59301),Ht=Object.defineProperty,Ne=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,de=(Se,Le,Ie)=>Le in Se?Ht(Se,Le,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):Se[Le]=Ie,le=(Se,Le)=>{for(var Ie in Le||(Le={}))ne.call(Le,Ie)&&de(Se,Ie,Le[Ie]);if(Ne)for(var Ie of Ne(Le))te.call(Le,Ie)&&de(Se,Ie,Le[Ie]);return Se},ge=(Se,Le,Ie)=>new Promise((Ze,st)=>{var Ve=gt=>{try{wt(Ie.next(gt))}catch(Nt){st(Nt)}},Xe=gt=>{try{wt(Ie.throw(gt))}catch(Nt){st(Nt)}},wt=gt=>gt.done?Ze(gt.value):Promise.resolve(gt.value).then(Ve,Xe);wt((Ie=Ie.apply(Se,Le)).next())}),me=({editOffice:Se="view",data:Le,issaver:Ie,onSaver:Ze,theme:st,type:Ve,filename:Xe,monacoEditor:wt,className:gt,style:Nt,close:Ct,onClose:ln,hasMask:bn,disabledDownload:fn,onImgDimensions:Yt,showNodata:Ln,recordInfo:lt})=>{const[qe,yn]=(0,ye.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[oi,Yn]=(0,ye.useState)(""),[rn,Gn]=(0,ye.useState)(),Mn=window.ENV==="build"?"/react/build":"",xi=location.host.startsWith("localhost")?Me.Z.PROXY_SERVER:Me.Z.API_SERVER,Nn=10*(1024*1024),St=(0,ye.useRef)();Le!=null&&Le.startsWith("/api")&&Ve!=="txt"&&(Le=Me.Z.API_SERVER+Le);const bi=Be=>Be.substring(Be.lastIndexOf("/")+1).split(".").pop();Xe&&wt&&(wt.filename=Xe),(0,ye.useEffect)(()=>{var Be,Ke;const ke=(Ke=(Be=document.cookie)==null?void 0:Be.replace(/\s/g,""))==null?void 0:Ke.split(";");ke==null||ke.map(et=>{let sn=et.split("=");sn[0]==="_educoder_session"&&Yn(sn[1])})},[]),(0,ye.useEffect)(()=>{Ve==="office"&&(Le.indexOf("bigfilescdn.")>-1||Le.indexOf("bigfiles1")>-1?Gn({url:Le,fileType:bi(Le),model:Le.indexOf("model=edit")?"edit":"view"}):je())},[Ve,Le]);function qn(Be){return ge(this,null,function*(){Be.data.type==="pdfdata"&&(Ze(Be.data.data),window.removeEventListener("message",qn,!1)),console.log("mess---:",Be.data)})}const je=()=>ge(void 0,null,function*(){console.log("data:",Le);let Be=Le;Le.startsWith("http")||(Be=location.origin+Be);let Ke=new URL(Be).pathname.split("/").pop();const ke=yield(0,Kt.gJ)({attachment_id:Ke});ke.url=xi+ke.url,Gn(ke)}),be=()=>{if(Le.startsWith("http")||Le.startsWith("blob:")){we();return}(0,ct.Sv)(Xe||"educoder",Le,Xe)},we=()=>{lt&&(0,It.fc)({id:lt==null?void 0:lt.id,watch_type:1,course_id:lt==null?void 0:lt.course_id}),(0,ct.Nd)(Xe||"educoder",decodeURIComponent(Le))};return Ye.createElement("div",{style:le({},Nt||{}),className:`${bn&&tt.bgBlack} ${Ve?tt.wrp:"hide"}`},Ct&&Ye.createElement("div",{className:tt.close,ref:St},!!Yt&&Ye.createElement(ze.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>St.current},Ye.createElement("span",{onClick:()=>{ln(),Yt()}},Ye.createElement("i",{className:"icon-yulanpizhu"}))),!fn&&Ye.createElement(ze.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>St.current},Ye.createElement("span",{onClick:we},Ye.createElement("i",{className:"icon-quxiaozhiding"}))),Ie&&Ye.createElement(ze.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>St.current},Ye.createElement("span",{className:"",onClick:()=>{const Be=document.getElementById("pdfiframe");window.addEventListener("message",qn,!1),setTimeout(()=>{Be.contentWindow.postMessage("getData","*")},300)}},Ye.createElement("i",{className:"icon-baocun"}))),Ye.createElement(ze.Z,{title:"\u5173\u95ED",getPopupContainer:()=>St.current},Ye.createElement("span",{className:"",onClick:()=>{ln()}},Ye.createElement("i",{className:"icon-guanbi1"})))),Ye.createElement("div",{className:`${tt[gt]} ${gt} ${tt.monaco} ${Ve==="txt"?"show":"hide"}`},Ve==="txt"&&Ye.createElement(Ye.Fragment,null,Ye.createElement(Et.ZP,le({},wt)))),Ve==="audio"&&Ye.createElement("audio",{src:`${(Le==null?void 0:Le.indexOf("http://"))>-1||(Le==null?void 0:Le.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Le}`,autoPlay:!0}),Ve==="video"&&Ye.createElement(Ye.Fragment,null,(Le==null?void 0:Le.indexOf("http"))>-1?Ye.createElement("video",{controls:!0,src:`${Le}`,autoPlay:!0}):Ye.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Le}`,autoPlay:!0})),Ve==="office"&&rn&&Ye.createElement("iframe",{src:`${Mn}/office.html?key=${rn.key}&url=${btoa(rn.url)}&callbackUrl=${xi+(rn.callbackUrl||"")}&fileType=${rn.fileType}&title=${rn.title||""}&model=${Se}&officeServer=${Me.Z.ONLYOFFICE}&disabledDownload=${!!fn}`}),Ve==="html"&&Ye.createElement("iframe",{src:Le+"&disposition=inline"}),Ve==="pdf"&&Ye.createElement("iframe",{id:"pdfiframe",src:`${Mn}/js/pdfview/index.html?filename=${Xe||"educoder.pdf"}&url=${encodeURIComponent(Le)}&disabledDownload=${!!fn}&model=${Se}`}),Ve==="image"&&Ye.createElement("img",{src:`${(Le==null?void 0:Le.indexOf("http://"))>-1||(Le==null?void 0:Le.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Le}`}),(Ve==="other"||Ve==="download")&&Ye.createElement(Ye.Fragment,null,Ln?Ye.createElement(ft.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Ye.createElement(it.ZP,{icon:Ye.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:be,disabled:fn},"\u4E0B\u8F7D")}):Ye.createElement(it.ZP,{type:"primary",size:"middle",onClick:be,disabled:fn},Ye.createElement(Ft.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},76902:function(Un,pi,De){"use strict";De.d(pi,{z:function(){return st},Z:function(){return Ve}});var ye=De(59301),tt=De(8944),it=De(81428),Ft=De(64018),Et=De(15360),ze=De(346),ct=De(51257),Kt=De(15342),ft=De(1012),Me=De(45677),It=De(59301),Ht=({html:Xe})=>{const wt=(0,ye.useRef)(null),gt=(0,ye.useRef)(null),Nt=`.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,ye.useEffect)(()=>{const Ct=wt.current.attachShadow({mode:"open"});gt.current=document.createElement("div"),gt.current.className="markdown-body",gt.current.innerHTML=Xe,Ct.appendChild(gt.current);const ln=document.createElement("style");return ln.textContent=Nt,Ct.appendChild(ln),()=>{Ct.innerHTML=""}},[]),(0,ye.useEffect)(()=>{gt.current&&(gt.current.innerHTML=Xe)},[Xe]),It.createElement("div",{ref:wt})};function Ne(Xe){const wt=["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"],gt=new RegExp(`\\b(${wt.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return Xe.replace(gt,"").trim()}var ne=Object.defineProperty,te=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,ge=(Xe,wt,gt)=>wt in Xe?ne(Xe,wt,{enumerable:!0,configurable:!0,writable:!0,value:gt}):Xe[wt]=gt,me=(Xe,wt)=>{for(var gt in wt||(wt={}))de.call(wt,gt)&&ge(Xe,gt,wt[gt]);if(te)for(var gt of te(wt))le.call(wt,gt)&&ge(Xe,gt,wt[gt]);return Xe};const Se="@\u2581\u2581@",Le="@\u2581@",Ie=/]*>/g;function Ze(Xe){let wt=document.createElement("div");return wt.innerHTML=Xe,wt.childNodes.length===0?"":wt.childNodes[0].nodeValue}const st=(Xe,wt)=>{Xe=Xe||"";const gt=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Nt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ct=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ln=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return wt?Xe.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(gt,(bn,fn,Yt,Ln,lt,qe,yn)=>{const oi=fn||Ln||qe,Yn=Yt||lt||yn||"?";return ze.Z.API_SERVER+"/api/attachments/"+oi+Yn+"&t="+(0,ct.Jn)(oi,Date.now())+(bn.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Xe=Xe.replace(ln,(bn,fn,Yt,Ln,lt,qe,yn)=>{const oi=fn||Ln||qe,Yn=Yt||lt||yn||"?";return ze.Z.API_SERVER+"/attachments/download/"+oi+Yn+"&t="+(0,ct.Jn)(oi,Date.now())+(bn.indexOf(")")>-1?")":"&")}).replace(gt,(bn,fn,Yt,Ln,lt,qe,yn)=>{const oi=fn||Ln||qe,Yn=Yt||lt||yn||"?";return ze.Z.API_SERVER+"/api/attachments/"+oi+Yn+"&t="+(0,ct.Jn)(oi,Date.now())+(bn.indexOf(")")>-1?")":"&")}).replace(Nt,(bn,fn,Yt,Ln,lt)=>{const qe=fn||Ln,yn=Yt||lt||"";return'"'+ze.Z.API_SERVER+"/api/attachments/"+qe+yn+qe+yn+"&t="+(0,ct.Jn)(qe,Date.now())}).replace(Ct,(bn,fn,Yt,Ln,lt)=>{const qe=fn||Ln,yn=Yt||lt||"";return"("+ze.Z.API_SERVER+"/files/uploads/"+qe+yn+qe+yn+"&t="+(0,ct.Jn)(qe,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,` `),Xe)};var Ve=({value:Xe="",className:wt,showTextOnly:gt,showLines:Nt,style:Ct={},stylesPrev:ln={},highlightKeywords:bn,showProgramFill:fn,isProgramFill:Yt,disabledFill:Ln=!1,programFillValue:lt,onFillChange:qe=Yn=>{},onFillBlur:yn=()=>{},onFillFocus:oi=()=>{}})=>{let Yn=Ne(String(Xe||""));const[rn,Gn]=(0,ye.useState)(""),[Mn,xi]=(0,ye.useState)("office"),[Wt,Nn]=(0,ye.useState)([]),St=(0,ye.useRef)("a"+(0,ft.Z)()),bi={},qn=xt=>//i.test(xt||""),je=(xt,Tt,Ut)=>{const hn=document.createElement(xt===Le?"input":"textarea");hn.style.width="100%",hn.style.height=xt===Le?"40px":"151px",hn.rows=5,hn.spellcheck=!1,hn.name="edu-program-fill",hn.placeholder="\u8BF7\u8F93\u5165",hn.dataset.id=Tt;const kn=Object.keys(bi).length;return bi[kn]=hn,`${hn.outerHTML}`};function be(xt){return xt=xt.replace(/!\[.*?\]\(.*?\)/g,""),xt=xt.replace(/\[.*?\]\(.*?\)/g,""),xt=xt.replace(new RegExp("","gs"),""),xt=xt.replace(//g,""),xt=xt.replace(//g,""),xt=xt.replace(new RegExp(".*?<\\/video>","gs"),""),xt=xt.replace(new RegExp(".*?<\\/audio>","gs"),""),xt=xt.replace(new RegExp(".*?<\\/style>","gs"),""),xt=xt.replace(new RegExp(".*?<\\/script>","gs"),""),xt}const we=xt=>!gt&&qn(Yn)?xt:xt.replace(/([\s\S]+?)<\/style>/gim,function(Tt,Ut){let hn=Ut.replace(/(\n|\r)/g,"").split("}"),kn=[];return hn.map(xn=>{xn!=""&&kn.push(`.${St.current} ${xn}`)}),``}),Be=(0,ye.useMemo)(()=>{try{const hn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,kn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,xn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,on=/\(\/attachments\/download\//g;Yn=Yn.replace(on,"("+ze.Z.API_SERVER+"/attachments/download/").replace(hn,"("+ze.Z.API_SERVER+"/api/attachments/").replace(kn,'"'+ze.Z.API_SERVER+"/api/attachments/").replace(xn,'"'+ze.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(hn){}if(fn){let hn=-1;return Yn=Yn.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(kn,xn,on){var jt;return++hn,je(kn,hn,(jt=lt==null?void 0:lt[hn])==null?void 0:jt.value.replaceAll("<","<").replaceAll(">",">"))}),`
${we(Yn||"")}
`}let xt=we(Yn);xt=(0,it.ZP)(xt);const Tt=(0,it.ez)();Yn.match(/\[TOC\]/)&&(xt=xt.replace("

[TOC]

",(0,it.Qv)()),(0,it.Iy)()),xt=xt.replace(/(__special_katext_id_\d+__)/g,(hn,kn)=>{const{type:xn,expression:on}=Tt[kn];return(0,Kt.renderToString)(Ze(on)||"",{displayMode:xn==="block",throwOnError:!1,output:"html"})}),xt=xt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,it.AL)();const Ut=document.createElement("div");if(Ut.innerHTML=xt,gt)return Ut.innerText;if(bn){const hn=bn.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return sn(Ut,hn),Ut.innerHTML}return setTimeout(()=>vt(),500),Ut.innerHTML},[Yn,bn]);(0,ye.useEffect)(()=>{Bt.current&&Bt.current.querySelectorAll(["input","textarea"]).forEach(Tt=>{Tt.oninput=Ke,Tt.onblur=ke,Tt.onfocus=et})},[Wt]),(0,ye.useEffect)(()=>{var xt,Tt,Ut,hn,kn;if(lt!=null&<.length)try{const xn=Bt.current.querySelectorAll(".edu-program-fill-score"),on=Bt.current.querySelectorAll('[name="edu-program-fill"]');for(const[jt,Xt]of on.entries())Xt.value=((xt=lt==null?void 0:lt[jt])==null?void 0:xt.value)||"",((Tt=lt==null?void 0:lt[jt])==null?void 0:Tt.type)==="warning"?Xt.className="program-fill-warning":((Ut=lt==null?void 0:lt[jt])==null?void 0:Ut.type)==="success"?Xt.className="program-fill-success":Xt.className="";for(const[jt,Xt]of xn.entries())Xt.innerHTML=(hn=lt==null?void 0:lt[jt])!=null&&hn.score?`${(kn=lt==null?void 0:lt[jt])==null?void 0:kn.score}\u5206`:"";Nn(lt)}catch(xn){console.log(xn,"error")}},[lt]);const Ke=xt=>{Wt[xt.target.dataset.id]=Wt[xt.target.dataset.id]||{},Wt[xt.target.dataset.id].value=xt.target.value,Nn([...Wt]),qe(Wt,xt.target.dataset.id)},ke=xt=>{Wt[xt.target.dataset.id]=Wt[xt.target.dataset.id]||{},Wt[xt.target.dataset.id].value=xt.target.value,Nn([...Wt]),yn(Wt,xt.target.dataset.id)},et=xt=>{Wt[xt.target.dataset.id]=Wt[xt.target.dataset.id]||{},Wt[xt.target.dataset.id].value=xt.target.value,Nn([...Wt]),oi(Wt,xt.target.dataset.id)};function sn(xt,Tt){return xt.childNodes.forEach(Ut=>{var hn;if(Ut.childNodes.length>0)sn(Ut,Tt);else if(Ut.nodeName!=="IMG")if(Ut.innerHTML)Ut.innerHTML=(hn=Ut.innerHTML)==null?void 0:hn.replace(new RegExp(Tt,"gi"),'$&');else{const kn=document.createElement("span");kn.innerHTML=Ut.textContent.replace(new RegExp(Tt,"gi"),'$&'),Ut.replaceWith(kn)}})}const Bt=(0,ye.useRef)();it.jb.WebkitLineClamp=Nt,Nt&&(Ct=me(me({},Ct),it.jb));function _t(xt){let Tt=xt.target;if(Tt.tagName.toUpperCase()==="A"){let Ut=Tt.getAttribute("href");if(Ut.indexOf("office")>-1)xt.preventDefault(),Gn(Ut),xi("office");else if(Ut.indexOf("application/pdf")>-1)xt.preventDefault(),Gn(Ut),xi("pdf");else if(Ut.indexOf("text/html")>-1)xt.preventDefault(),Gn(Ut),xi("html");else if(Ut.startsWith("#")){xt.preventDefault();let hn=document.getElementById(Ut.replace("#",""));hn&&hn.scrollIntoView(!0)}}}const vt=()=>{var xt;const Tt=(xt=Bt.current)==null?void 0:xt.querySelectorAll("video");Tt==null||Tt.forEach(Ut=>{if(Ut.oncontextmenu=()=>!1,Ut.src.indexOf(".m3u8")>-1&&!Ut.canPlayType("application/vnd.apple.mpegurl")){if(Et.ZP.isSupported()){var hn=new Et.ZP;hn.loadSource(Ut.src),hn.attachMedia(Ut)}}})};return(0,ye.useEffect)(()=>{if(Bt.current&&Be&&Be.match(Ie)&&window.PR.prettyPrint(),Bt.current)return Bt.current.addEventListener("click",_t),()=>{var xt;(xt=Bt.current)==null||xt.removeEventListener("click",_t),(0,it.AL)(),(0,it.Iy)()}},[Be,Bt.current,_t]),(0,ye.useEffect)(()=>{var xt;const Tt=Ut=>{Ut.preventDefault(),Ut.clipboardData.setData("text",window.getSelection().toString())};return(xt=Bt.current)==null||xt.addEventListener("copy",Tt),()=>{var Ut;(Ut=Bt.current)==null||Ut.removeEventListener("copy",Tt)}},[Bt.current]),ye.createElement(ye.Fragment,null,gt&&ye.createElement("div",{ref:Bt},Be),!gt&&!qn(Be)&&ye.createElement("div",{ref:Bt,style:me({},Ct),className:`${wt||""} ${Ln?"disabled-fill":""} markdown-body ${St.current}`,dangerouslySetInnerHTML:{__html:Be}}),!gt&&qn(Be)&&ye.createElement(Ht,{html:Be}),ye.createElement(Me.Z,{close:!0,data:rn,type:rn!=null&&rn.length?Mn:"",style:me({},ln),onClose:()=>Gn("")}))}},3039:function(Un,pi,De){"use strict";De.d(pi,{Z:function(){return Kt}});var ye=De(59301),tt={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"},it=De(62957),Ft="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",Et="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",ze=(ft,Me,It)=>new Promise((Ye,Ht)=>{var Ne=de=>{try{te(It.next(de))}catch(le){Ht(le)}},ne=de=>{try{te(It.throw(de))}catch(le){Ht(le)}},te=de=>de.done?Ye(de.value):Promise.resolve(de.value).then(Ne,ne);te((It=It.apply(ft,Me)).next())}),Kt=({type:ft,resdata:Me,onok:It,oktext:Ye,okloading:Ht})=>{const[Ne,ne]=(0,ye.useState)(!1),{can_copy_list:te,can_copy_num:de,challenge_type:le,course_data_list:ge,no_copy_list:me,no_copy_num:Se,no_use_list:Le,no_use_num:Ie,repeat_shixun_num:Ze,student_count:st,total_num:Ve,use_num:Xe}=Me;let wt=de>0||ft==="exercise";(0,ye.useEffect)(()=>{(Me==null?void 0:Me.student_count)>0&&ne(!0)},[Me]),console.log("---11",Ht),(0,ye.useEffect)(()=>{Ht||ne(!1)},[Ht]);const gt=()=>{if(ft==="exercise"&&le===1)return ye.createElement(ye.Fragment,null,"\u8BFE\u5802\u5185\u6709",ye.createElement("span",{className:tt.orangeColor},st),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ye.createElement("span",{className:tt.orangeColor},Xe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ye.createElement("span",{className:tt.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(ft==="exercise"&&le===2)return ye.createElement(ye.Fragment,null,"\u8BFE\u5802\u5185\u6709",ye.createElement("span",{className:tt.orangeColor},st),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ye.createElement("span",{className:tt.orangeColor},Xe),"\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",ye.createElement("span",{className:tt.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ft==="shixun"&&le===1)return ye.createElement(ye.Fragment,null,"\u8BFE\u5802\u5185\u6709",ye.createElement("span",{className:tt.orangeColor},st),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",ye.createElement("span",{className:tt.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ft==="shixun"&&le===2)return ye.createElement(ye.Fragment,null,"\u8BFE\u5802\u5185\u6709",ye.createElement("span",{className:tt.orangeColor},st),"\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",ye.createElement("span",{className:tt.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ft==="subject"&&le===1)return ye.createElement(ye.Fragment,null,"\u8BFE\u5802\u5185\u6709",ye.createElement("span",{className:tt.orangeColor},st),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ye.createElement("span",{className:tt.orangeColor},Xe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ye.createElement("span",{className:tt.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ft==="subject"&&le===2)return ye.createElement(ye.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",ye.createElement("span",{className:tt.orangeColor},st)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",ye.createElement("span",{className:tt.orangeColor},Xe)," \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",ye.createElement("span",{className:tt.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ft==="exercisepush")return ye.createElement(ye.Fragment,null,"\u8BFE\u5802\u5185\u6709",ye.createElement("span",{className:tt.orangeColor},st),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",ye.createElement("span",{className:tt.orangeColor},Xe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",ye.createElement("span",{className:tt.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(ft==="shixunpush"&&le===1)return ye.createElement(ye.Fragment,null,"\u8BFE\u5802\u5185\u6709",ye.createElement("span",{className:tt.orangeColor},st),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ye.createElement("span",{className:tt.orangeColor},Xe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ye.createElement("span",{className:tt.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ft==="shixunpush"&&le===2)return ye.createElement(ye.Fragment,null,"\u8BFE\u5802\u5185\u6709",ye.createElement("span",{className:tt.orangeColor},st),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",ye.createElement("span",{className:tt.orangeColor},Xe),"\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",ye.createElement("span",{className:tt.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},Nt=()=>{if(ft==="exercise"||ft==="subject"||ft==="exercisepush"||ft==="shixunpush")return ye.createElement("div",{style:{marginTop:20}},Se>0&&ye.createElement("div",null,ye.createElement("span",{className:tt.flex},ye.createElement("img",{src:Et,style:{width:14}}),ye.createElement("span",{className:tt.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),ye.createElement("div",{className:tt.statusbody},ft==="exercise"&&ye.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ye.createElement("span",{className:tt.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"),(ft==="subject"||ft==="exercisepush")&&ye.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",wt&&ye.createElement("span",{className:tt.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"),ft==="shixunpush"&&ye.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",wt&&ye.createElement("span",{className:tt.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"),ye.createElement("div",null,me==null?void 0:me.map((Ct,ln)=>ye.createElement("a",{href:`/shixuns/${Ct.identifier}/challenges`,target:"_blank"},"\u300A",Ct==null?void 0:Ct.name,"\u300B",ln+1!==Se&&"\u3001"))))),de>0&&ye.createElement("div",{style:{marginTop:20}},ye.createElement("span",{className:tt.flex},ye.createElement("img",{src:Ft,style:{width:14}}),ye.createElement("span",{className:tt.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),ye.createElement("div",{className:tt.statusbody},ft==="exercise"&&ye.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"),(ft==="subject"||ft==="exercisepush")&&ye.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"),ft==="shixunpush"&&ye.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"),ye.createElement("div",null,te==null?void 0:te.map((Ct,ln)=>ye.createElement("a",{href:`/shixuns/${Ct.identifier}/challenges`,target:"_blank"},"\u300A",Ct==null?void 0:Ct.name,"\u300B",ln+1!==de&&"\u3001"))))));if(ft==="shixun")return ye.createElement("div",{style:{marginTop:20}},de>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 ye.createElement(it.default,{open:Ne,onCancel:()=>{ne(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!wt&&"none"}},zIndex:1003,confirmLoading:Ht,okText:wt?Ye:"\u6211\u77E5\u9053\u4E86",onOk:()=>ze(void 0,null,function*(){wt?yield It([...te,...Le]):ne(!1)})},ye.createElement("div",{style:{maxHeight:600,overflow:"auto"}},gt(),Nt()))}},69720:function(Un,pi,De){"use strict";De.d(pi,{h:function(){return Se}});var ye=De(59301),tt=De(82326),it=De(28284),Ft=De(99571),Et=De(89780),ze=De.n(Et),ct=De(8336),Kt=De(12469),ft=Object.defineProperty,Me=Object.defineProperties,It=Object.getOwnPropertyDescriptors,Ye=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,ne=(Le,Ie,Ze)=>Ie in Le?ft(Le,Ie,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Le[Ie]=Ze,te=(Le,Ie)=>{for(var Ze in Ie||(Ie={}))Ht.call(Ie,Ze)&&ne(Le,Ze,Ie[Ze]);if(Ye)for(var Ze of Ye(Ie))Ne.call(Ie,Ze)&&ne(Le,Ze,Ie[Ze]);return Le},de=(Le,Ie)=>Me(Le,It(Ie));const le=tt.default.Option,ge={labelCol:{span:4},wrapperCol:{span:20}},me={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:Le,onCancel:Ie})=>{const[Ze,st]=(0,ye.useState)("python");function Ve(wt){st(me[wt][1])}function Xe(wt){Le(wt)}return ye.createElement(it.default,de(te({},ge),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Xe,style:{width:500}}),ye.createElement(it.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ye.createElement(tt.default,{getPopupContainer:wt=>wt.parentNode,onChange:Ve},Object.keys(me).map(wt=>ye.createElement(le,{key:wt,value:wt},me[wt][0])))),ye.createElement(it.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ye.createElement(Se,{mode:Ze})),ye.createElement("div",{className:"flex-container flex-end"},ye.createElement(Ft.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ye.createElement(Ft.ZP,{type:"ghost",onClick:Ie},"\u53D6\u6D88")))};function Se({value:Le,onChange:Ie,mode:Ze,options:st={}}){const Ve=(0,ye.useRef)(),[Xe,wt]=(0,ye.useState)();return(0,ye.useEffect)(()=>{if(Xe){let gt=function(Nt){const Ct=Nt.getValue();Ie&&Ie(Ct)};return Xe.on("change",gt),()=>{Xe.off("change",gt)}}},[Xe,Ie]),(0,ye.useEffect)(()=>{Xe&&Xe.setOption("mode",Ze)},[Xe,Ze]),(0,ye.useEffect)(()=>{Xe&&(Le!==Xe.getValue()||Le==="")&&setTimeout(()=>{Xe.setValue(Le||"")},300)},[Xe,Le]),(0,ye.useEffect)(()=>{if(Ve.current&&!Xe){const gt=ze().fromTextArea(Ve.current,te({mode:Ze,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},st));wt(gt)}},[Ve.current,Xe]),ye.createElement("div",{className:"my-codemirror-container"},ye.createElement("textarea",{ref:Ve}))}},39793:function(Un,pi,De){"use strict";De.d(pi,{Z:function(){return di}});var ye=De(59301),tt=De(89780),it=De.n(tt),Ft=De(76374),Et=De(8336),ze=De(6313),ct=De(25717),Kt=De(99498),ft=De(25419),Me=De(67549),It=De(76902),Ye=({value:At="",className:Dt,showTextOnly:bt,showLines:ti,style:yi={}})=>{const ci=(0,ye.useMemo)(()=>"",[At]);return ye.createElement(ye.Fragment,null,ye.createElement("div",{dangerouslySetInnerHTML:{__html:ci}}))},Ht=De(59301),Ne=Object.defineProperty,ne=Object.defineProperties,te=Object.getOwnPropertyDescriptors,de=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,me=(At,Dt,bt)=>Dt in At?Ne(At,Dt,{enumerable:!0,configurable:!0,writable:!0,value:bt}):At[Dt]=bt,Se=(At,Dt)=>{for(var bt in Dt||(Dt={}))le.call(Dt,bt)&&me(At,bt,Dt[bt]);if(de)for(var bt of de(Dt))ge.call(Dt,bt)&&me(At,bt,Dt[bt]);return At},Le=(At,Dt)=>ne(At,te(Dt));let Ie=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Ze({onActionCallback:At,title:Dt,icon:bt,actionName:ti,className:yi="",children:ci}){function Pn(){At(ti)}return Ht.createElement("a",{title:Dt,className:yi,onClick:Pn},Ht.createElement("i",{className:`${bt}`}),ci)}var st=({watch:At,showNullButton:Dt,showNullProgramButton:bt,onActionCallback:ti,fullScreen:yi,insertTemp:ci,hidetoolBar:Pn,extraUse:fi})=>{const Cn=[...Ie,{title:`${At?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${At?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ht.createElement("ul",{className:"markdown-toolbar-container"},!Pn&&Cn.map((Qi,dr)=>Ht.createElement("li",{key:dr},Qi.actionName?Ht.createElement(Ze,Le(Se({},Qi),{onActionCallback:ti})):Ht.createElement("span",{className:"v-line"}))),Dt?Ht.createElement("li",null,Ht.createElement(Ze,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ti},Ht.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,bt?Ht.createElement(Ht.Fragment,null,Ht.createElement("li",null,Ht.createElement(Ze,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:ti},Ht.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ht.createElement("li",null,Ht.createElement(Ze,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:ti},Ht.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,ci&&Ht.createElement("li",null,Ht.createElement(Ze,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ci}`,onActionCallback:ti},Ht.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),fi&&Ht.createElement("li",null,fi),Ht.createElement("li",{className:"btn-full-screen"},Ht.createElement(Ze,{icon:`${yi?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:yi?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ti})))},Ve=De(91558),Xe=De(28284),wt=De(37568),gt=De(99571),Nt=Object.defineProperty,Ct=Object.defineProperties,ln=Object.getOwnPropertyDescriptors,bn=Object.getOwnPropertySymbols,fn=Object.prototype.hasOwnProperty,Yt=Object.prototype.propertyIsEnumerable,Ln=(At,Dt,bt)=>Dt in At?Nt(At,Dt,{enumerable:!0,configurable:!0,writable:!0,value:bt}):At[Dt]=bt,lt=(At,Dt)=>{for(var bt in Dt||(Dt={}))fn.call(Dt,bt)&&Ln(At,bt,Dt[bt]);if(bn)for(var bt of bn(Dt))Yt.call(Dt,bt)&&Ln(At,bt,Dt[bt]);return At},qe=(At,Dt)=>Ct(At,ln(Dt));const yn={labelCol:{span:4},wrapperCol:{span:20}};var oi=({callback:At,onCancel:Dt})=>{function bt(ti){At(ti)}return ye.createElement(Xe.default,qe(lt({},yn),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:bt,style:{width:500}}),ye.createElement(Xe.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ye.createElement(wt.default,null)),ye.createElement(Xe.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ye.createElement(wt.default,null)),ye.createElement("div",{className:"flex-container flex-end"},ye.createElement(gt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ye.createElement(gt.ZP,{type:"ghost",onClick:Dt},"\u53D6\u6D88")))},Yn=De(69720),rn=De(17077),Gn=De(62957),Mn=De(77019),xi=De(9507),Wt=De(59301),Nn=({callback:At,onCancel:Dt})=>{const bt=document.createElement("canvas"),ti=bt.getContext("2d");bt.width=1e3,bt.height=800,ti.fillStyle="#ffffff",ti.fillRect(0,0,bt.width,bt.height);const yi=bt.toDataURL("image/png");return Wt.createElement(Gn.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Wt.createElement(Mn.Z,{style:{height:"100vh"}},Wt.createElement(xi.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:yi,visible:!0,title:String(Date.now())},onOk:ci=>{At({src:ci.url})},onClose:Dt})))},St=De(12378);function bi(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(bi,go.CommandHandler),bi.prototype.canAlignSelection=function(){var At=this.diagram;return!(At===null||At.isReadOnly||At.isModelReadOnly||At.selection.count<2)},bi.prototype.alignLeft=function(){var At=this.diagram;At.startTransaction("aligning left");var Dt=1/0;At.selection.each(function(bt){bt instanceof go.Link||(Dt=Math.min(bt.position.x,Dt))}),At.selection.each(function(bt){bt instanceof go.Link||bt.move(new go.Point(Dt,bt.position.y))}),At.commitTransaction("aligning left")},bi.prototype.alignRight=function(){var At=this.diagram;At.startTransaction("aligning right");var Dt=-1/0;At.selection.each(function(bt){if(!(bt instanceof go.Link)){var ti=bt.actualBounds.x+bt.actualBounds.width;Dt=Math.max(ti,Dt)}}),At.selection.each(function(bt){bt instanceof go.Link||bt.move(new go.Point(Dt-bt.actualBounds.width,bt.position.y))}),At.commitTransaction("aligning right")},bi.prototype.alignTop=function(){var At=this.diagram;At.startTransaction("alignTop");var Dt=1/0;At.selection.each(function(bt){bt instanceof go.Link||(Dt=Math.min(bt.position.y,Dt))}),At.selection.each(function(bt){bt instanceof go.Link||bt.move(new go.Point(bt.position.x,Dt))}),At.commitTransaction("alignTop")},bi.prototype.alignBottom=function(){var At=this.diagram;At.startTransaction("aligning bottom");var Dt=-1/0;At.selection.each(function(bt){if(!(bt instanceof go.Link)){var ti=bt.actualBounds.y+bt.actualBounds.height;Dt=Math.max(ti,Dt)}}),At.selection.each(function(bt){bt instanceof go.Link||bt.move(new go.Point(bt.actualBounds.x,Dt-bt.actualBounds.height))}),At.commitTransaction("aligning bottom")},bi.prototype.alignCenterX=function(){var At=this.diagram,Dt=At.selection.first();if(Dt){At.startTransaction("aligning Center X");var bt=Dt.actualBounds.x+Dt.actualBounds.width/2;At.selection.each(function(ti){ti instanceof go.Link||ti.move(new go.Point(bt-ti.actualBounds.width/2,ti.actualBounds.y))}),At.commitTransaction("aligning Center X")}},bi.prototype.alignCenterY=function(){var At=this.diagram,Dt=At.selection.first();if(Dt){At.startTransaction("aligning Center Y");var bt=Dt.actualBounds.y+Dt.actualBounds.height/2;At.selection.each(function(ti){ti instanceof go.Link||ti.move(new go.Point(ti.actualBounds.x,bt-ti.actualBounds.height/2))}),At.commitTransaction("aligning Center Y")}},bi.prototype.alignColumn=function(At){var Dt=this.diagram;Dt.startTransaction("align Column"),At===void 0&&(At=0),At=parseFloat(At);var bt=new Array;Dt.selection.each(function(fi){fi instanceof go.Link||bt.push(fi)});for(var ti=0;ti0){for(var fi=ci.elt(Pn-1);fi!==null&&fi.isTreeExpanded&&!fi.isTreeLeaf;){var Cn=this._sortTreeChildrenByY(fi);fi=Cn.last()}fi!==null&&At.select(fi)}else At.select(yi)}}else if(bt.key==="Down")if(Dt.isTreeExpanded&&!Dt.isTreeLeaf){var ti=this._sortTreeChildrenByY(Dt).first();ti!==null&&At.select(ti)}else for(;Dt!==null;){var yi=Dt.findTreeParentNode();if(yi===null)break;var ci=this._sortTreeChildrenByY(yi),Pn=ci.indexOf(Dt);if(Pnci.y?1:yi.xci.x?1:0}),Dt},bi.prototype.copyToClipboard=function(At){go.CommandHandler.prototype.copyToClipboard.call(this,At),this._lastPasteOffset.set(this.pasteOffset)},bi.prototype.pasteFromClipboard=function(){var At=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(At,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),At},Object.defineProperty(bi.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(At){if(At!=="move"&&At!=="select"&&At!=="scroll"&&At!=="tree"&&At!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+At);this._arrowKeyBehavior=At}}),Object.defineProperty(bi.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(At){if(!(At instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+At);this._pasteOffset.set(At)}});var qn=bi,je=De(63720),be=De(5269),we=De(38986),Be={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ke=De(48790),ke=De(59301),et=(At,Dt,bt)=>new Promise((ti,yi)=>{var ci=Cn=>{try{fi(bt.next(Cn))}catch(Qi){yi(Qi)}},Pn=Cn=>{try{fi(bt.throw(Cn))}catch(Qi){yi(Qi)}},fi=Cn=>Cn.done?ti(Cn.value):Promise.resolve(Cn.value).then(ci,Pn);fi((bt=bt.apply(At,Dt)).next())});function sn({onCancel:At,callback:Dt}){let bt=(0,ye.useRef)(),ti=(0,ye.useRef)(),yi=(0,ye.useRef)(),ci=(0,ye.useRef)(!1);const Pn=(0,ye.useRef)(!1),[fi,Cn]=(0,ye.useState)(0);function Qi(){const Ge=St.bx.make,Pt={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"};bt.current=new St.S0(ti.current,{padding:20,grid:Ge(St.s_,"Grid",Ge(St.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ge(St.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Pi=>{var Gi=Pi.diagram.commandHandler.addTopLevelParts(Pi.diagram.selection,!0);Gi||Pi.diagram.currentTool.doCancel()},commandHandler:Ge(qn),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Pi=>{var Gi=Pi.subject;Gi.location=Gi.location.copy().snapToGridPoint(Pi.diagram.grid.gridOrigin,Pi.diagram.grid.gridCellSize),setTimeout(()=>{Pi.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Pi=>{var Gi=Pi.subject;setTimeout(()=>{Pi.diagram.commandHandler.editTextBlock()})},LinkRelinked:Pi=>{var Gi=Pi.parameter.part;Gi.invalidateConnectedLinks();var Hi=Pi.subject;Pi.diagram.toolManager.linkingTool.isForwards?Hi.toNode.invalidateConnectedLinks():Hi.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),bt.current.nodeTemplate=Ge(St.NB,"Auto",{locationSpot:St.z6.Center,locationObjectName:"SHAPE",desiredSize:new St.$u(120,60),minSize:new St.$u(40,40),resizable:!0,resizeCellSize:new St.$u(10,10),rotatable:!0},new St.KX("location","loc",St.E9.parse).makeTwoWay(St.E9.stringify),new St.KX("desiredSize","size",St.$u.parse).makeTwoWay(St.$u.stringify),Ge(St.bn,{name:"SHAPE",fill:Pt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:St.z6.AllSides,toSpot:St.z6.AllSides},new St.KX("figure"),new St.KX("fill"),new St.KX("stroke","borderColor"),new St.KX("strokeWidth","thickness"),new St.KX("strokeDashArray","dash")),Ge(St.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Ge(St.al,{margin:1,textAlign:"center",overflow:St.al.OverflowEllipsis,editable:!0},new St.KX("text").makeTwoWay(),new St.KX("stroke","color"))),bt.current.nodeTemplate.toolTip=Ge("ToolTip",Ge(St.s_,"Vertical",{maxSize:new St.$u(200,NaN)},Ge(St.al,{font:"bold 10pt sans-serif",textAlign:"center"},new St.KX("text")),Ge(St.al,{font:"10pt sans-serif",textAlign:"center"},new St.KX("text","details"))));function Kn(Pi,Gi){var Hi=(er,Pr)=>{er.handled=!0,er.diagram.model.commit(br=>{var Zi=Pr.part.adornedPart,tr=new St.E9().setRectSpot(Zi.actualBounds,Pi);tr.subtract(Zi.location),tr.scale(2,2),tr.x+=Math.sign(tr.x)*130,tr.y+=Math.sign(tr.y)*130,tr.add(Zi.location),tr.snapToGridPoint(er.diagram.grid.gridOrigin,er.diagram.grid.gridCellSize);var Ki=br.copyNodeData(Zi.data);br.setGroupKeyForNodeData(Ki,br.getGroupKeyForNodeData(Zi.data)),br.addNodeData(Ki);var dn={from:Zi.key,to:br.getKeyForNodeData(Ki)};br.addLinkData(dn);var lr=er.diagram.findNodeForData(Ki);lr.location=tr,er.diagram.select(lr),setTimeout(()=>{er.diagram.commandHandler.editTextBlock()},20)})};return Ge(St.bn,{figure:Gi,alignment:Pi,alignmentFocus:Pi.opposite(),width:Pi.equals(St.z6.Top)||Pi.equals(St.z6.Bottom)?25:18,height:Pi.equals(St.z6.Top)||Pi.equals(St.z6.Bottom)?18:25,fill:"orange",stroke:Pt.white,strokeWidth:4,mouseEnter:(er,Pr)=>Pr.fill="dodgerblue",mouseLeave:(er,Pr)=>Pr.fill="orange",isActionable:!0,click:Hi,contextClick:Hi})}function Bn(Pi){return Ge(St.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:(Gi,Hi)=>Hi.fill="dodgerblue",mouseLeave:(Gi,Hi)=>Hi.fill="orange",click:(Gi,Hi)=>{Gi.diagram.commandHandler.showContextMenu(Hi.part.adornedPart)}},Pi||{})}bt.current.nodeTemplate.selectionAdornmentTemplate=Ge(St.uz,"Spot",Ge(St.Vm,{padding:10}),Kn(St.z6.Top,"TriangleUp"),Kn(St.z6.Left,"TriangleLeft"),Kn(St.z6.Right,"TriangleRight"),Kn(St.z6.Bottom,"TriangleDown"),Bn({alignment:new St.z6(.75,0)}));function zt(Pi,Gi){return(Hi,er)=>{Hi.handled=!0,Hi.diagram.model.commit(Pr=>{Pr.set(er.part.adornedPart.data,Pi,Gi)})}}function Fn(Pi,Gi){return Gi||(Gi="color"),Ge(St.bn,{width:16,height:16,stroke:"lightgray",fill:Pi,margin:1,background:"transparent",mouseEnter:(Hi,er)=>er.stroke="dodgerblue",mouseLeave:(Hi,er)=>er.stroke="lightgray",click:zt(Gi,Pi),contextClick:zt(Gi,Pi)})}function zn(){return[Ge("ContextMenuButton",Ge(St.s_,"Horizontal",Fn(Pt.white,"fill"),Fn(Pt.beige,"fill"),Fn(Pt.extralightblue,"fill"),Fn(Pt.extralightred,"fill"))),Ge("ContextMenuButton",Ge(St.s_,"Horizontal",Fn(Pt.lightgray,"fill"),Fn(Pt.lightgreen,"fill"),Fn(Pt.lightblue,"fill"),Fn(Pt.lightred,"fill")))]}function Xn(){return[Ge("ContextMenuButton",Ge(St.s_,"Horizontal",Fn(Pt.black),Fn(Pt.green),Fn(Pt.blue),Fn(Pt.red))),Ge("ContextMenuButton",Ge(St.s_,"Horizontal",Fn(Pt.white),Fn(Pt.magenta),Fn(Pt.purple),Fn(Pt.orange)))]}function Mi(Pi,Gi){return Gi||(Gi="thickness"),Ge(St.bn,"LineH",{width:16,height:16,strokeWidth:Pi,margin:1,background:"transparent",mouseEnter:(Hi,er)=>er.background="dodgerblue",mouseLeave:(Hi,er)=>er.background="transparent",click:zt(Gi,Pi),contextClick:zt(Gi,Pi)})}function ai(Pi,Gi){return Gi||(Gi="dash"),Ge(St.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Pi,margin:1,background:"transparent",mouseEnter:(Hi,er)=>er.background="dodgerblue",mouseLeave:(Hi,er)=>er.background="transparent",click:zt(Gi,Pi),contextClick:zt(Gi,Pi)})}function Li(){return[Ge("ContextMenuButton",Ge(St.s_,"Horizontal",Mi(1),Mi(2),Mi(3),Mi(4))),Ge("ContextMenuButton",Ge(St.s_,"Horizontal",ai(null),ai([2,4]),ai([4,4])))]}function wi(Pi,Gi){return Gi||(Gi="figure"),Ge(St.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Pi,margin:1,background:"transparent",mouseEnter:(Hi,er)=>er.fill="dodgerblue",mouseLeave:(Hi,er)=>er.fill="lightgray",click:zt(Gi,Pi),contextClick:zt(Gi,Pi)})}bt.current.nodeTemplate.contextMenu=Ge("ContextMenu",Ge("ContextMenuButton",Ge(St.s_,"Horizontal",wi("Rectangle"),wi("RoundedRectangle"),wi("Ellipse"),wi("Diamond"))),Ge("ContextMenuButton",Ge(St.s_,"Horizontal",wi("Parallelogram2"),wi("ManualOperation"),wi("Procedure"),wi("Cylinder1"))),Ge("ContextMenuButton",Ge(St.s_,"Horizontal",wi("Terminator"),wi("CreateRequest"),wi("Document"),wi("TriangleDown"))),zn(),Xn(),Li()),bt.current.groupTemplate=Ge(St.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:St.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Pi,Gi)=>{var Hi=Gi.addMembers(Gi.diagram.selection,!0);Hi||Gi.diagram.currentTool.doCancel()},avoidable:!1},new St.KX("location","loc",St.E9.parse).makeTwoWay(St.E9.stringify),Ge(St.s_,"Auto",{name:"BODY"},Ge(St.bn,{parameter1:10,fill:Pt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:St.z6.AllSides,toSpot:St.z6.AllSides},new St.KX("fill"),new St.KX("stroke","color"),new St.KX("strokeWidth","thickness"),new St.KX("strokeDashArray","dash")),Ge(St.Vm,{background:"transparent",margin:20})),Ge(St.al,{alignment:St.z6.Top,alignmentFocus:St.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new St.KX("text"),new St.KX("stroke","color"))),bt.current.groupTemplate.selectionAdornmentTemplate=Ge(St.uz,"Spot",Ge(St.s_,"Auto",Ge(St.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Ge(St.Vm,{margin:1.5})),Bn({alignment:St.z6.TopRight,alignmentFocus:St.z6.BottomRight})),bt.current.groupTemplate.contextMenu=Ge("ContextMenu",zn(),Xn(),Li()),bt.current.linkTemplate=Ge(St.rU,{layerName:"Foreground",routing:St.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new St.KX("fromSpot","fromSpot",St.z6.parse),new St.KX("toSpot","toSpot",St.z6.parse),new St.KX("fromShortLength","dir",Pi=>Pi>=1?10:0),new St.KX("toShortLength","dir",Pi=>Pi>=1?10:0),new St.KX("points").makeTwoWay(),Ge(St.bn,{strokeWidth:2},new St.KX("stroke","color"),new St.KX("strokeWidth","thickness"),new St.KX("strokeDashArray","dash")),Ge(St.bn,{segmentIndex:0,segmentOffset:new St.E9(15,0),segmentOrientation:St.rU.OrientAlong,alignmentFocus:St.z6.Right,figure:"circle",width:10,strokeWidth:0},new St.KX("fill","color"),new St.KX("visible","dir",Pi=>Pi===1)),Ge(St.bn,{segmentIndex:-1,segmentOffset:new St.E9(-10,6),segmentOrientation:St.rU.OrientPlus90,alignmentFocus:St.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new St.KX("fill","color"),new St.KX("visible","dir",Pi=>Pi>=1),new St.KX("width","thickness",Pi=>7+3*Pi),new St.KX("height","thickness",Pi=>7+3*Pi),new St.KX("segmentOffset","thickness",Pi=>new St.E9(-15,4+1.5*Pi))),Ge(St.bn,{segmentIndex:0,segmentOffset:new St.E9(15,-6),segmentOrientation:St.rU.OrientMinus90,alignmentFocus:St.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new St.KX("fill","color"),new St.KX("visible","dir",Pi=>Pi===2),new St.KX("width","thickness",Pi=>7+3*Pi),new St.KX("height","thickness",Pi=>7+3*Pi),new St.KX("segmentOffset","thickness",Pi=>new St.E9(-15,4+1.5*Pi))),Ge(St.al,{alignmentFocus:new St.z6(0,1,-4,0),editable:!0},new St.KX("text").makeTwoWay(),new St.KX("stroke","color"))),bt.current.linkTemplate.selectionAdornmentTemplate=Ge(St.uz,Ge(St.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:ir(2)},new St.KX("pathPattern","thickness",ir)),Bn({alignmentFocus:new St.z6(0,0,-6,-4)}));function ir(Pi){return Ge(St.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Pi+4).toString()+" H3"})}function Wi(Pi){var Gi="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Pi===0?Gi="M0 0 M16 16 M0 8 L16 8":Pi===2&&(Gi="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Ge(St.bn,{geometryString:Gi,margin:2,background:"transparent",mouseEnter:(Hi,er)=>er.background="dodgerblue",mouseLeave:(Hi,er)=>er.background="transparent",click:zt("dir",Pi),contextClick:zt("dir",Pi)})}function Ii(Pi){var Gi=(Hi,er)=>{Hi.handled=!0,Hi.diagram.model.commit(Pr=>{var br=er.part.adornedPart;Pr.set(br.data,Pi?"toSpot":"fromSpot",St.z6.stringify(St.z6.AllSides)),(Pi?br.toNode:br.fromNode).invalidateConnectedLinks()})};return Ge(St.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Hi,er)=>er.background="dodgerblue",mouseLeave:(Hi,er)=>er.background="transparent",click:Gi,contextClick:Gi})}function un(Pi,Gi){var Hi=0,er=St.z6.RightSide;Pi.equals(St.z6.Top)?(Hi=270,er=St.z6.TopSide):Pi.equals(St.z6.Left)?(Hi=180,er=St.z6.LeftSide):Pi.equals(St.z6.Bottom)&&(Hi=90,er=St.z6.BottomSide),Gi||(Hi-=180);var Pr=(br,Zi)=>{br.handled=!0,br.diagram.model.commit(tr=>{var Ki=Zi.part.adornedPart;tr.set(Ki.data,Gi?"toSpot":"fromSpot",St.z6.stringify(er)),(Gi?Ki.toNode:Ki.fromNode).invalidateConnectedLinks()})};return Ge(St.bn,{alignment:Pi,alignmentFocus:Pi.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Hi,background:"transparent",mouseEnter:(br,Zi)=>Zi.background="dodgerblue",mouseLeave:(br,Zi)=>Zi.background="transparent",click:Pr,contextClick:Pr})}bt.current.linkTemplate.contextMenu=Ge("ContextMenu",Xn(),Li(),Ge("ContextMenuButton",Ge(St.s_,"Horizontal",Wi(0),Wi(1),Wi(2))),Ge("ContextMenuButton",Ge(St.s_,"Horizontal",Ge(St.s_,"Spot",Ii(!1),un(St.z6.Top,!1),un(St.z6.Left,!1),un(St.z6.Right,!1),un(St.z6.Bottom,!1)),Ge(St.s_,"Spot",{margin:new St.Zt(0,0,0,2)},Ii(!0),un(St.z6.Top,!0),un(St.z6.Left,!0),un(St.z6.Right,!0),un(St.z6.Bottom,!0)))));const vr=`{ "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 Mr=["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 Yr(Pi){return console.log("shapeName:",Pi),Mr.indexOf(Pi)>=0}var wn=new St.YI(yi.current,{maxSelectionCount:1,linkTemplate:Ge(St.rU,{locationSpot:St.z6.Center,selectionAdornmentTemplate:Ge(St.uz,"Link",{locationSpot:St.z6.Center},Ge(St.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Ge(St.bn,{toArrow:"Standard",stroke:null}))},{routing:St.rU.AvoidsNodes,curve:St.rU.JumpOver,corner:5,toShortLength:4},new St.KX("points"),Ge(St.bn,{isPanelMain:!0,strokeWidth:2}),Ge(St.bn,{toArrow:"Standard",stroke:null})),model:new St.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...St.bn.getFigureGenerators().toArray().map(Pi=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Pi.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return bt.current.addDiagramListener("TextEdited",function(Pi){var Gi;const Hi=Pi.subject.part;var er=(Gi=document.activeElement)==null?void 0:Gi.value;typeof er=="string"&&er.trim()===""&&bt.current.model.commit(function(Pr){Pr.set(Hi.data,"text","\u672A\u547D\u540D"),bt.current.commandHandler.stopCommand()},"increment")}),wn.nodeTemplate=Ge(St.NB,"Auto",{locationSpot:St.z6.Center},new St.KX("location","location",St.E9.parse).makeTwoWay(St.E9.stringify),Ge(St.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 St.KX("stroke").makeTwoWay(),new St.KX("fill").makeTwoWay(),new St.KX("figure")),Ge(St.al,{margin:new St.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new St.$u(16,16),maxSize:new St.$u(10,NaN),textAlign:"center",editable:!0},new St.KX("key").makeTwoWay())),setTimeout(()=>{bt.current.grid=Ge(St.s_,"Grid",Ge(St.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ge(St.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),bt.current.grid.visible=!0,bt.current.grid.gridCellStroke="darkgray",bt.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=bt.current,bt.current}const dr=()=>et(this,null,function*(){var Ge,Pt=bt.current.makeImage();const Kn=yield(0,we.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Pt.src,file_data:JSON.stringify({login:(Ge=(0,Ke.eY)())==null?void 0:Ge.login,data:JSON.parse(bt.current.model.toJson())})}});Dt({src:Kn.url})});return(0,ye.useEffect)(()=>(setTimeout(()=>{Qi()},500),Cn(fi+1),()=>{bt.current=null}),[]),ke.createElement("div",{ref:Pn,className:"body-overflow-initial"},ke.createElement(Gn.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!fi,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:ke.createElement(Mn.Z,null,ke.createElement(be.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ke.createElement(be.Z,{onClick:()=>{var Ge,Pt,Kn=bt.current.selection.first();if(ci.current=!ci.current,document.activeElement&&Kn){let Bn=(Pt=(Ge=document.activeElement)==null?void 0:Ge.value)==null?void 0:Pt.trim();typeof Bn=="string"&&bt.current.model.commit(function(zt){zt.set(Kn.data,"text",Bn||"\u672A\u547D\u540D"),bt.current.commandHandler.stopCommand()},"increment")}Cn(fi+1)}},ke.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:At},ke.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:ci.current?"none":"block"},className:Be.flowChartWrp},ke.createElement("div",{style:{display:"flex",height:"100%"}},ke.createElement("div",{style:{width:"300px",height:"100%"}},ke.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),ke.createElement("div",{style:{height:"calc(100% - 50px)"},className:Be.myPaletteDiv,ref:yi})),ke.createElement("div",{style:{flex:1,position:"relative"}},ke.createElement("div",{ref:ti,style:{height:"80vh"}}))),ke.createElement("div",{className:"tr"},ke.createElement(gt.ZP,{size:"large",onClick:dr,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Bt=sn,_t=De(47889),vt=De(71051);const xt=_t.ZP.Group,Tt={margin:"0 8px"};var Ut=({callback:At,onCancel:Dt})=>{function bt(ti){At(ti)}return ye.createElement(Xe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:bt},ye.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ye.createElement("span",{style:Tt},"\u5355\u5143\u683C\u6570\uFF1A"),ye.createElement("span",{style:Tt},"\u884C\u6570"),ye.createElement(Xe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ye.createElement(vt.Z,null)),ye.createElement("span",{style:Tt},"\u5217\u6570"),ye.createElement(Xe.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ye.createElement(vt.Z,null))),ye.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ye.createElement("span",{style:Tt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ye.createElement(Xe.default.Item,{name:"align"},ye.createElement(xt,null,ye.createElement(_t.ZP,{value:"default"},ye.createElement("i",{className:"fa fa-align-justify"})),ye.createElement(_t.ZP,{value:"left"},ye.createElement("i",{className:"fa fa-align-left"})),ye.createElement(_t.ZP,{value:"center"},ye.createElement("i",{className:"fa fa-align-center"})),ye.createElement(_t.ZP,{value:"right"},ye.createElement("i",{className:"fa fa-align-right"}))))),ye.createElement("div",{className:"flex-container flex-end"},ye.createElement(gt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ye.createElement(gt.ZP,{type:"ghost",onClick:Dt},"\u53D6\u6D88")))},hn=De(71411),kn=De(43001),xn=De.n(kn),jt=(0,ye.forwardRef)(({use3d:At,width:Dt,height:bt,callback:ti,showSaveButton:yi},ci)=>{const Pn=(0,ye.useRef)(),fi=(0,ye.useRef)(),[Cn,Qi]=(0,ye.useState)(!1),dr=(0,ye.useRef)({id:Pn,appName:"graphing",width:Dt||1e3,height:bt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ye.useEffect)(()=>{fi.current=new(xn())(dr.current,!0),window.onload=function(){fi.current.inject("applet_container")}},[]);const Ge=()=>{var Pt=window.ggbApplet.getPNGBase64(1,!0,72);return ti&&ti(Pt),Pt};return(0,ye.useEffect)(()=>{dr.current.appName=Cn?"3D":"graphing",fi.current.inject("applet_container")},[Cn]),(0,ye.useEffect)(()=>{Qi(At)},[At]),(0,ye.useImperativeHandle)(ci,()=>({getImgData:Ge})),ye.createElement(ye.Fragment,null,ye.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Pn}),ye.createElement(Mn.Z,{align:"middle"},ye.createElement(be.Z,{flex:1},ye.createElement(hn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Cn,onChange:Pt=>Qi(Pt)})),ye.createElement(be.Z,null,ye.createElement(gt.ZP,{size:"large",onClick:Ge,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Xt=De(76562),gn=De(6767);const En="link",Vn="upload-image",ri="add-flowchart",vi="draw-image",mn="add-flowchart",Ai="code-block",Yi="add-table",gr="------------",rr={default:gr,left:`:${gr}`,center:`:${gr}:`,right:`${gr}:`};var nr=De(37808);function pr(){}let sr=0;const cr=1e4,Ji="\u2581",yr="@\u2581\u2581@",Ce="@\u2581@",Sn=` **\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`,Wn=["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 gi(At){return/^\d+$/.test(At)?`${At}px`:At}const Zn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",nn={[Zn+"-B"]:"bold",[Zn+"-I"]:"italic"},Hn={[En]:"\u6DFB\u52A0\u94FE\u63A5",[Ai]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Vn]:"\u6DFB\u52A0\u56FE\u7247",[vi]:"\u6DFB\u52A0\u753B\u56FE",[ri]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Yi]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var di=({defaultValue:At="",onChange:Dt,width:bt="100%",height:ti=400,miniToolbar:yi=!1,isFocus:ci=!1,watch:Pn,insertTemp:fi,mode:Cn="markdown",id:Qi="markdown-editor-id",showResizeBar:dr=!1,noStorage:Ge=!1,showNullButton:Pt=!1,showNullProgramButton:Kn=!1,hidetoolBar:Bn=!1,fullScreen:zt=!1,onBlur:Fn,onCMBeforeChange:zn,onFullScreen:Xn,className:Mi="",disablePaste:ai=!1,disabled:Li=!1,disabledFill:wi=!1,placeholder:ir="",values:Wi="",extraUse:Ii})=>{const[un,vr]=(0,ye.useState)(null),[Mr,Yr]=(0,ye.useState)(At),[wn,Pi]=(0,ye.useState)(Pn),[Gi,Hi]=(0,ye.useState)(zt),[er,Pr]=(0,ye.useState)(""),[br,Zi]=(0,ye.useState)(0),[tr,Ki]=(0,ye.useState)(ti),[dn,lr]=(0,ye.useState)(!1),[vn,Fi]=(0,ye.useState)(0),[Cr,Nr]=(0,ye.useState)(0),to=(0,ye.useRef)(),Ur=(0,ye.useRef)(),Br=(0,ye.useRef)(),ao=(0,ye.useRef)();(0,ye.useEffect)(()=>{const Ee=window.scrollY||window.pageYOffset;Yr(Wi),un==null||un.setValue(Wi),window.scrollTo(0,Ee)},[Wi]),(0,ye.useEffect)(()=>{Xn==null||Xn(Gi)},[Gi]),(0,ye.useEffect)(()=>{if(to.current){let Ee=function(Re,ot){var ut;if(ai){ot.preventDefault();return}const Zt=ot.clipboardData;if(Zt){const Vt=Zt.types.toString(),tn=Zt.items;if(Vt==="Files"||Zt.types.indexOf("Files")>-1){if(ot.preventDefault(),Cn=="stex")return;try{let An=tn[1];((ut=tn[0])==null?void 0:ut.kind)==="file"&&(An=tn[0]);const In=An.getAsFile(),pn=In.name.split(".").pop();(0,rn.I)(In,Qn=>{var mi,ht,_n;Qn.id?((mi=In==null?void 0:In.type)==null?void 0:mi.indexOf("image"))>-1?Ue.replaceSelection(``):((ht=In==null?void 0:In.type)==null?void 0:ht.indexOf("video"))>-1?Ue.replaceSelection(``):((_n=In==null?void 0:In.type)==null?void 0:_n.indexOf("pdf"))>-1?Ue.replaceSelection(`${In.name}`):Wn.includes(pn)?Ue.replaceSelection(`${In.name}`):Ue.replaceSelection(`[${In.name}](/api/attachments/${Qn.id}?type=${Qn.content_type})`):(Qn==null?void 0:Qn.status)===401&&(document.location.href="/user/login")})}catch(An){gn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Ue=it().fromTextArea(to.current,{mode:Cn,lineNumbers:!yi,lineWrapping:!0,value:At,autoCloseTags:!0,autoCloseBrackets:!0});return Ue.on("keyup",function(Re,ot){ot.keyCode===8&&(Re.getValue()==""?Ue.setOption("placeholder",ir):Ue.setOption("placeholder",null))}),Ue.on("keydown",function(Re,ot){if(ot.keyCode===8){var ut=jn(Re);ut&&ot.preventDefault()}}),ci&&Ue.focus(),Ue.on("paste",Ee),Li&&Ue.on("beforeChange",function(Re,ot){(ot.origin==="paste"||ot.origin==="+input")&&ot.cancel()}),vr(Ue),()=>{Ue.off("paste",Ee)}}},[]);const Qt=(0,ye.useCallback)(()=>{if(Ur.current)try{}catch(Ee){console.log(Ee,"---- to set md editor body height")}},[tr,Ur,Gi]);(0,ye.useEffect)(()=>{function Ee(){let Ue=new Ft.Z(Re=>{for(let ot of Re)(ot.target.offsetHeight>0||ot.target.offsetWidth>0)&&(Qt(),un.setSize("100%","100%"),un.refresh())});return Ue.observe(to.current.parentElement),Ue}if(un){const Ue=Ee();return()=>{var Re,ot;(Re=to.current)!=null&&Re.parentElement&&Ue.unobserve((ot=to.current)==null?void 0:ot.parentElement)}}},[un,Qt]),(0,ye.useEffect)(()=>{if(un){let Ee=[];for(const[Ue,Re]of Object.entries(nn)){let ot={[Ue]:()=>{$t(Re)}};Ee.push(ot),un.addKeyMap(ot)}return()=>{for(let Ue of Ee)un.removeKeyMap(Ue)}}},[un]),(0,ye.useEffect)(()=>{zt!==Gi&&Hi(zt)},[zt]),(0,nr.Z)(()=>{if(!Ge&&br>0){let Ee=new Date().getTime(),Ue=window.sessionStorage.getItem(Qi);Ee>=br+cr&&(!Ue||Ue!==Mr)&&(window.sessionStorage.setItem(Qi,Mr),lr(!0))}},cr),(0,ye.useEffect)(()=>{Pi(Pn)},[un,Pn]),(0,ye.useEffect)(()=>{un&&ci&&un.focus()},[un,ci]),(0,ye.useEffect)(()=>{if(wn&&un){let Ee=function(Re){let ot=Re.target;if(ao.current){let ut=ot.scrollTop/ot.scrollHeight;ao.current.scrollTop=ao.current.scrollHeight*ut}};const Ue=un.getScrollerElement();return Ue.addEventListener("scroll",Ee),()=>{Ue.removeEventListener("scroll",Ee)}}},[un,wn]),(0,ye.useEffect)(()=>{if(un&&zn){let Ee=function(Ue,Re){zn(Ue,Re)};return un.on("beforeChange",Ee),()=>{un.off("beforeChange",Ee)}}},[un,zn]),(0,ye.useEffect)(()=>{if(un&&Fn){let Ee=function(){Fn(un.getValue())};return un.on("blur",Ee),()=>{un.off("blur",Ee)}}},[un,Fn]);function jn(Ee,Ue){var Re=Ee.getDoc(),ot=Re.getCursor(),ut=Re.getLine(ot.line),Zt=ut.charAt(ot.ch-1),Vt=ut.lastIndexOf("@\u2581@",ot.ch),tn=ut.lastIndexOf("@\u2581\u2581@",ot.ch),An=Vt>tn?Vt:tn,In=Vt>tn?3:4;if(yr.indexOf(Zt)===-1)return null;if(console.log("change1:",Ue,Ee,ut,ot,An,Vt,tn,Zt),An>=0&&ot.ch-An<5){var pn=An+In;return Re.replaceRange("",{line:ot.line,ch:An},{line:ot.line,ch:pn}),{line:ot.line,ch:pn}}return null}(0,ye.useEffect)(()=>{if(un){let Ee=function(Ue,Re){const ot=Ue.getValue();Yr(ot),Zi(new Date().getTime()),Ue.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Dt&&(Kn?Dt(ot,kt(ot)):Dt(ot))};return un.on("change",Ee),()=>{un.off("change",Ee)}}},[un,Dt]),(0,ye.useEffect)(()=>{if(un)if(At==null)un.setValue(""),Yr("");else{const Ee=window.scrollY||window.pageYOffset;At!==un.getValue()&&(un.setValue(At),Yr(At),un.setCursor(Li?1:un.lineCount(),0),window.scrollTo(0,Ee))}},[un,At]);const $t=(0,ye.useCallback)(Ee=>{const Ue=un.getCursor(),Re=un.getSelection();let ot=Re.split(` `);switch(Ee){case"bold":return un.replaceSelection("**"+Re+"**"),Re===""&&un.setCursor(Ue.line,Ue.ch+2),un.focus();case"italic":return un.replaceSelection("*"+Re+"*"),Re===""&&un.setCursor(Ue.line,Ue.ch+1),un.focus();case"code":return un.replaceSelection("`"+Re+"`"),Re===""&&un.setCursor(Ue.line,Ue.ch+1),un.focus();case"inline-latex":return Pr("inline-latex"),un.focus();case"latex":return un.replaceSelection("```latex\n"+Re+"\n```"),un.setCursor(Ue.line+1,Re.length+1),un.focus();case"line-break":return un.replaceSelection(`
`),un.focus();case"list-ul":return Re===""?un.replaceSelection("- "+Re):un.replaceSelection(ot.map(ut=>ut===""?"":`- ${ut}`).join(` `)),un.focus();case"list-ol":return Re===""?un.replaceSelection("1. "+Re):un.replaceSelection(ot.map((ut,Zt)=>ut===""?"":`${Zt+1}. ${ut}`).join(` `)),un.focus();case"add-null-ch":return Re===""&&un.setCursor(Ue.line,Ue.ch),un.replaceSelection(Ji),un.focus();case"add-signal":return Re===""&&un.setCursor(Ue.line,Ue.ch),un.replaceSelection(Ce),un.focus();case"add-multiple":return Re===""&&un.setCursor(Ue.line,Ue.ch),un.replaceSelection(yr),un.focus();case"inster-template-1":return Re===""&&un.setCursor(Ue.line,Ue.ch),un.replaceSelection(Sn),un.focus();case"eraser":return un.setValue(""),un.focus();case"trigger-watch":return Pi(!wn),un.focus();case"trigger-full-screen":return Hi(!Gi),un.focus();case En:Pr(En);return;case Ai:Pr(Ai);return;case Vn:Pr(Vn);return;case vi:Pr(vi);return;case"maths-latex":Pr("maths-latex");return;case ri:Pr(ri);return;case Yi:Pr(Yi);return;default:throw new Error}},[un,wn,Gi]),Te=(0,ye.useCallback)((Ee,Ue)=>{var Re,ot,ut,Zt,Vt,tn;switch(Pr(""),er){case En:const{title:mi,link:ht}=Ee;return un.replaceSelection(`[${mi}](${ht})`),un.focus();case Ai:const{language:_n,content:ni}=Ee;return un.replaceSelection(["```"+_n,ni,"```"].join(` `)),un.focus();case"maths-latex":for(var An=atob(Ee),In=new Uint8Array(An.length),pn=0;pn{kr.id?un.replaceSelection(`![,](/api/attachments/${kr.id}?type=${kr.content_type})`):(kr==null?void 0:kr.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":un.replaceSelection("`$$"+Ee+"$$`");break;case Vn:case vi:case mn:const{src:On,alt:ii}=Ee,Ci=Ue,Ti=(ut=(ot=(Re=Ci==null?void 0:Ci.name)==null?void 0:Re.split("."))==null?void 0:ot.pop)==null?void 0:ut.call(ot);return((Zt=Ci==null?void 0:Ci.type)==null?void 0:Zt.indexOf("image"))>-1||!(Ci!=null&&Ci.type)?Ci!=null&&Ci.align||Ci!=null&&Ci.width?un.replaceSelection(`

${ii||

`):un.replaceSelection(`${ii||`):((Vt=Ci==null?void 0:Ci.type)==null?void 0:Vt.indexOf("video"))>-1?un.replaceSelection(``):((tn=Ci==null?void 0:Ci.type)==null?void 0:tn.indexOf("pdf"))>-1?un.replaceSelection(`${Ci.name}`):Wn.includes(Ti)?un.replaceSelection(`${Ci.name}`):un.replaceSelection(`[${Ci.name}](${On})`),un.focus();case Yi:const{row:Ni,col:Oi,align:zi}=Ee;let fr=` `;for(let kr=0;kr{switch(er){case En:return ye.createElement(oi,{callback:Te,onCancel:$e});case Ai:return ye.createElement(Yn.Z,{callback:Te,onCancel:$e});case Vn:return ye.createElement(rn.Z,{callback:Te,onCancel:$e});case ri:return ye.createElement(Bt,{callback:Te,onCancel:$e});case Yi:return ye.createElement(Ut,{callback:Te,onCancel:$e});case"maths-latex":return ye.createElement(jt,{showSaveButton:!0,callback:Te});case"inline-latex":return ye.createElement(Xt.Z,{showSaveButton:!0,callback:Te});default:return null}},[er]);function $e(){Pr("")}(0,ye.useEffect)(()=>{if(Br.current){let Ee=function(Vt){ut=!0,Zt=Vt.pageY},Ue=function(){ut=!1},Re=function(Vt){if(ut){let tn=Vt.pageY-Zt;tn<0&&(tn=0),tn>300&&(tn=300);let An=ti+tn+"px";Ki(An)}},ot=Br.current,ut=!1,Zt=0;return ot.addEventListener("mousedown",Ee),document.addEventListener("mousemove",Re),document.addEventListener("mouseup",Ue),()=>{ot.removeEventListener("mousedown",Ee),document.removeEventListener("mousemove",Re),document.removeEventListener("mouseup",Ue)}}},[un,Br]),(0,ye.useEffect)(()=>{Ki(ti)},[ti]);const yt=gi(bt),Ot=gi(tr),en={width:yt,height:Ot},nt=(0,ye.useMemo)(()=>{if(br){let Ee=new Date(br),Ue=Ee.getHours(),Re=Ee.getMinutes(),ot=Ee.getSeconds();return Ue=Ue<10?"0"+Ue:Ue,Re=Re<10?"0"+Re:Re,ot=ot<10?"0"+ot:ot,`${Ue}:${Re}:${ot}`}return 0},[br]),kt=Ee=>{const Ue=[];if(Kn){let Re=-1;Ee=Ee.replace(/(@▁▁@|@▁@)/g,function(ot,ut,Zt){Ue.push({multiLine:ot!==Ce})})}return Ue};function Gt(){window.sessionStorage.removeItem(Qi),lr(!1),Zi(0)}function Rt(){lr(!1),Zi(0),un.setValue(window.sessionStorage.getItem(Qi))}(0,ye.useEffect)(()=>{Hn[er]&&er!==vi&&er!==ri&&setTimeout(()=>{const Ee=document.getElementsByClassName("markdown-popup-form")[0],Ue=window.innerWidth/2-Ee.offsetWidth/2,Re=window.innerHeight/2-Ee.offsetHeight/2;Fi(Ue),Nr(Re)},0)},[er]);const an=Ee=>{Ee.preventDefault();const Ue=Ee.clientX-vn,Re=Ee.clientY-Cr;document.body.onmousemove=ot=>{let ut=ot.clientX-Ue,Zt=ot.clientY-Re;const Vt=document.getElementsByClassName("markdown-popup-form")[0],tn=window.innerWidth-Vt.offsetWidth,An=window.innerHeight-Vt.offsetHeight;ut=Math.max(0,Math.min(ut,tn)),Zt=Math.max(0,Math.min(Zt,An)),si(ot.clientX,ot.clientY,Ue,Re)&&(Fi(ut),Nr(Zt))},document.body.onmouseup=function(){document.body.onmousemove=null}},si=(Ee,Ue,Re,ot)=>{const ut=document.body.clientHeight,Zt=document.body.clientWidth;return Ee<20&&Re>Ee||Ee>Zt-20&&ReUe||Ue>ut-20&&otXe in Ve?It(Ve,Xe,{enumerable:!0,configurable:!0,writable:!0,value:wt}):Ve[Xe]=wt,le=(Ve,Xe)=>{for(var wt in Xe||(Xe={}))ne.call(Xe,wt)&&de(Ve,wt,Xe[wt]);if(Ne)for(var wt of Ne(Xe))te.call(Xe,wt)&&de(Ve,wt,Xe[wt]);return Ve},ge=(Ve,Xe)=>Ye(Ve,Ht(Xe));const{useForm:me}=ye.default,Se={width:280,marginRight:10},Le={labelCol:{span:5},wrapperCol:{span:19}};var Ie=({callback:Ve,onCancel:Xe})=>{const[wt]=me();let gt=(0,ft.useRef)();function Nt(bn){gt.current.width=wt.getFieldValue("width"),gt.current.align=wt.getFieldValue("align"),Ve(bn,gt.current)}function Ct(bn,fn){if(bn.status===-1){tt.ZP.error(bn.message);return}wt.setFieldsValue({src:`/api/attachments/${bn.id}`,type:fn.type})}function ln(bn){let fn=bn.target.files[0];gt.current=fn,st(fn,Ct)}return Me.createElement(ye.default,ge(le({form:wt},Le),{className:"upload-image-panel",onFinish:Nt,style:{width:470,overflow:"hidden"}}),Me.createElement(ye.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Me.createElement("div",{className:"flex-container"},Me.createElement(ye.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Me.createElement(it.default,{style:Se})),Me.createElement(Ze,{onFileChange:ln}))),Me.createElement(ye.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Me.createElement(it.default,{style:{width:264}})),Me.createElement(ye.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Me.createElement(Ft.Z,null,Me.createElement(ye.default.Item,{name:"width",style:{margin:0}},Me.createElement(Et.Z,{style:{width:264}})),Me.createElement("span",{className:"ml8"},"%"))),Me.createElement(ye.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Me.createElement(ze.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"}]})),Me.createElement("aside",null,Me.createElement(ye.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Me.createElement(ct.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Me.createElement(ct.ZP,{type:"default",onClick:Xe},"\u53D6\u6D88"))))};function Ze({onFileChange:Ve}){return Me.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Me.createElement("input",{type:"file",onChange:Ve}))}function st(Ve,Xe){if(!Ve)throw new String("\u6CA1\u6709\u6587\u4EF6");let wt=new FormData;wt.append("editormd-image-file",Ve),wt.append("file_param_name","editormd-image-file"),wt.append("byxhr","true");var gt=new window.XMLHttpRequest;gt.withCredentials=!0,gt.addEventListener("load",function(Nt){Xe(JSON.parse(Nt.target.responseText),Ve)},!1),gt.addEventListener("error",function(Nt){console.error(Nt)},!1),gt.open("POST",`${Kt.KI}/api/attachments.json`),gt.send(wt)}},91558:function(Un,pi,De){"use strict";De.d(pi,{Z:function(){return it}});var ye=De(59301),tt=De(4676);class it extends ye.Component{constructor(Et){super(Et);const ze=window.document;this.node=ze.createElement("div"),ze.body.appendChild(this.node)}render(){const{children:Et}=this.props;return(0,tt.createPortal)(Et,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},75975:function(Un,pi,De){"use strict";De.d(pi,{SV:function(){return sn},ZP:function(){return et}});var ye=De(59301),tt=De(76374);const it={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"]},Ft={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"]},Et={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 ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},ze={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(` `)}]},ct={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 Kt=De(53184),ft=De.n(Kt),Me=Object.defineProperty,It=Object.defineProperties,Ye=Object.getOwnPropertyDescriptors,Ht=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,te=(Bt,_t,vt)=>_t in Bt?Me(Bt,_t,{enumerable:!0,configurable:!0,writable:!0,value:vt}):Bt[_t]=vt,de=(Bt,_t)=>{for(var vt in _t||(_t={}))Ne.call(_t,vt)&&te(Bt,vt,_t[vt]);if(Ht)for(var vt of Ht(_t))ne.call(_t,vt)&&te(Bt,vt,_t[vt]);return Bt},le=(Bt,_t)=>It(Bt,Ye(_t)),ge=(Bt,_t,vt)=>new Promise((xt,Tt)=>{var Ut=xn=>{try{kn(vt.next(xn))}catch(on){Tt(on)}},hn=xn=>{try{kn(vt.throw(xn))}catch(on){Tt(on)}},kn=xn=>xn.done?xt(xn.value):Promise.resolve(xn.value).then(Ut,hn);kn((vt=vt.apply(Bt,_t)).next())});const me={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"]}},Se=(Bt,_t)=>_t.map(vt=>({label:vt,kind:Bt.languages.CompletionItemKind.Keyword,insertText:vt})),Le=Bt=>Object.keys(me.tables).map(_t=>({label:_t,kind:Bt.languages.CompletionItemKind.Variable,insertText:_t})),Ie=(Bt,_t)=>{const vt=me.tables[Bt];return vt?vt.map(xt=>({label:xt,kind:_t.languages.CompletionItemKind.Field,insertText:xt})):[]};function Ze(Bt,_t,vt,xt,Tt){let Ut=_t.getWordUntilPosition(vt),hn={startLineNumber:vt.lineNumber,endLineNumber:vt.lineNumber,startColumn:Ut.startColumn,endColumn:Ut.endColumn},kn=xt.map(xn=>({label:xn,kind:Bt.languages.CompletionItemKind.Keyword,insertText:xn,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:hn}));return Tt.map(xn=>{kn.push(le(de({},xn),{range:hn}))}),kn}var st=Bt=>{me.languages.map(Tt=>(Bt.languages.registerDocumentFormattingEditProvider(Tt,{provideDocumentFormattingEdits(Ut,hn,kn){return ge(this,null,function*(){const xn=ft()(Ut.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:Ut.getFullModelRange(),text:xn}]})}}),Tt));const _t=Et.quickKey.map(Tt=>({label:Tt.label,kind:Bt.languages.CompletionItemKind.Method,insertText:Tt.content,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),vt=ze.quickKey.map(Tt=>({label:Tt.label,kind:Bt.languages.CompletionItemKind.Method,insertText:Tt.content,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),xt=Ft.quickKey.map(Tt=>({label:Tt.label,kind:Bt.languages.CompletionItemKind.Method,insertText:Tt.content,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Bt.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Tt,Ut){var hn=Tt.getWordUntilPosition(Ut),kn={startLineNumber:Ut.lineNumber,endLineNumber:Ut.lineNumber,startColumn:hn.startColumn,endColumn:hn.endColumn},xn=Tt.getLineContent(Ut.lineNumber).substring(hn.startColumn-2,hn.endColumn);return{suggestions:[...Et.keywords.map(on=>({label:on,kind:Bt.languages.CompletionItemKind.Function,documentation:on,insertText:on,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:kn})),...Et.quickKey.map(on=>({label:on.label,kind:Bt.languages.CompletionItemKind.Function,documentation:on.content,insertText:xn.startsWith("#")?on.content.replace(/#/,""):on.content,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:kn}))]}}}),Bt.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Tt,Ut){var hn=Tt.getWordUntilPosition(Ut),kn={startLineNumber:Ut.lineNumber,endLineNumber:Ut.lineNumber,startColumn:hn.startColumn,endColumn:hn.endColumn};return{suggestions:[...it.keywords.map(xn=>({label:xn,kind:Bt.languages.CompletionItemKind.Function,documentation:xn,insertText:xn,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:kn}))]}}}),Bt.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Tt,Ut){var hn=Tt.getWordUntilPosition(Ut),kn={startLineNumber:Ut.lineNumber,endLineNumber:Ut.lineNumber,startColumn:hn.startColumn,endColumn:hn.endColumn},xn=Tt.getLineContent(Ut.lineNumber).substring(hn.startColumn-2,hn.endColumn);return{suggestions:[...Ft.keywords.map(on=>({label:on,kind:Bt.languages.CompletionItemKind.Function,documentation:on,insertText:on,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:kn})),...Ft.quickKey.map(on=>({label:on.label,kind:Bt.languages.CompletionItemKind.Function,documentation:on.content,insertText:xn.startsWith("#")?on.content.replace(/#/,""):on.content,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:kn}))]}}}),Bt.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Tt,Ut){var hn=Tt.getWordUntilPosition(Ut),kn={startLineNumber:Ut.lineNumber,endLineNumber:Ut.lineNumber,startColumn:hn.startColumn,endColumn:hn.endColumn},xn=Tt.getLineContent(Ut.lineNumber).substring(hn.startColumn-2,hn.endColumn);return{suggestions:[...ct.keywords.map(on=>({label:on,kind:Bt.languages.CompletionItemKind.Function,documentation:on,insertText:on,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:kn})),...ct.quickKey.map(on=>({label:on.label,kind:Bt.languages.CompletionItemKind.Function,documentation:on.content,insertText:xn.startsWith("#")?on.content.replace(/#/,""):on.content,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:kn}))]}}}),Bt.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Tt,Ut){var hn=Tt.getWordUntilPosition(Ut),kn={startLineNumber:Ut.lineNumber,endLineNumber:Ut.lineNumber,startColumn:hn.startColumn,endColumn:hn.endColumn},xn=Tt.getLineContent(Ut.lineNumber).substring(hn.startColumn-2,hn.endColumn);return{suggestions:[...ze.keywords.map(on=>({label:on,kind:Bt.languages.CompletionItemKind.Function,documentation:on,insertText:on,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:kn})),...ze.quickKey.map(on=>({label:on.label,kind:Bt.languages.CompletionItemKind.Function,documentation:on.content,insertText:xn.startsWith("#")?on.content.replace(/#/,""):on.content,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:kn}))]}}})};const Ve="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Xe=Object.defineProperty,wt=(Bt,_t,vt)=>_t in Bt?Xe(Bt,_t,{enumerable:!0,configurable:!0,writable:!0,value:vt}):Bt[_t]=vt,gt=(Bt,_t,vt)=>wt(Bt,typeof _t!="symbol"?_t+"":_t,vt);const Nt=class Ex{constructor(_t,vt,xt){this.placeholder=_t,this.editor=vt,this.monaco=xt,vt.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)}};gt(Nt,"ID","editor.widget.placeholderHint");var ln=Nt,bn=De(96236),fn=De(6767),Yt=De(25399),Ln=De(89392),lt=De(49535),qe=De(56102),yn=Object.defineProperty,oi=Object.defineProperties,Yn=Object.getOwnPropertyDescriptors,rn=Object.getOwnPropertySymbols,Gn=Object.prototype.hasOwnProperty,Mn=Object.prototype.propertyIsEnumerable,xi=(Bt,_t,vt)=>_t in Bt?yn(Bt,_t,{enumerable:!0,configurable:!0,writable:!0,value:vt}):Bt[_t]=vt,Wt=(Bt,_t)=>{for(var vt in _t||(_t={}))Gn.call(_t,vt)&&xi(Bt,vt,_t[vt]);if(rn)for(var vt of rn(_t))Mn.call(_t,vt)&&xi(Bt,vt,_t[vt]);return Bt},Nn=(Bt,_t)=>oi(Bt,Yn(_t)),St=(Bt,_t)=>{var vt={};for(var xt in Bt)Gn.call(Bt,xt)&&_t.indexOf(xt)<0&&(vt[xt]=Bt[xt]);if(Bt!=null&&rn)for(var xt of rn(Bt))_t.indexOf(xt)<0&&Mn.call(Bt,xt)&&(vt[xt]=Bt[xt]);return vt},bi=(Bt,_t,vt)=>new Promise((xt,Tt)=>{var Ut=xn=>{try{kn(vt.next(xn))}catch(on){Tt(on)}},hn=xn=>{try{kn(vt.throw(xn))}catch(on){Tt(on)}},kn=xn=>xn.done?xt(xn.value):Promise.resolve(xn.value).then(Ut,hn);kn((vt=vt.apply(Bt,_t)).next())});function qn(Bt){return/^\d+$/.test(Bt)?`${Bt}px`:Bt}function je(){}let be=!1;const we={"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 Be(Bt=[]){let _t=Bt;if(Array.isArray(Bt)){for(let vt=0;vtbi(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Bt){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Bt)}});var et=Bt=>{var _t=Bt,{width:vt="100%",height:xt="100%",value:Tt,language:Ut="javascript",style:hn={},options:kn={},overrideServices:xn={},theme:on="vs-dark",onEditBlur:jt,isCopy:Xt=!1,onSave:gn,autoHeight:En=!1,forbidCopy:Vn=!1,onChange:ri=je,editorDidMount:vi=je,onFocus:mn=je,onBreakPoint:Ai=je,breakPointValue:Yi=[],filename:gr="educoder.txt",errorLine:rr,errorContent:nr="",highlightLine:pr,openBreakPoint:sr=!1,placeholder:cr="",showMiniMap:Ji=!0}=_t,yr=St(_t,["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 Ce=(0,ye.useRef)(),Sn=(0,ye.useRef)({}),Wn=(0,ye.useRef)(),gi=(0,ye.useRef)(),hi=(0,ye.useRef)([]),Zn=(0,ye.useRef)(!1),nn=(0,ye.useRef)(),Hn=(0,ye.useRef)(),di=(0,ye.useRef)(!1),[At,Dt]=(0,ye.useState)(!1);function bt(){let zn;return Ce.current&&(zn=new tt.Z(Xn=>{for(let Mi of Xn)(Mi.target.offsetHeight>0||Mi.target.offsetWidth>0)&&Sn.current.instance.layout()}),zn.observe(Ce.current)),zn}function ti(){fn.ZP.warning({content:decodeURIComponent(Ve),key:"monaco-editor-tip"})}const yi=()=>{let zn=Sn.current.instance;if(Tt!=null&&zn&&At){const Xn=zn.getModel();Xn&&Tt!==Xn.getValue()&&(be=!0,Xn.setValue(Tt),zn.layout(),be=!1)}};(0,ye.useEffect)(()=>{const zn=lt.Z.subscribe("formatDocument",Xn=>{var Mi;let ai=Sn.current.instance;(Mi=ai==null?void 0:ai.getAction)==null||Mi.call(ai,"editor.action.formatDocument").run()});return window.updateMonacoValue=Xn=>{ri(Xn)},zn},[]),(0,ye.useEffect)(()=>{var zn;let Xn=Sn.current.instance;gi.current&&clearTimeout(gi.current),gi.current=setTimeout(()=>{yi()},500),Tt&&(Tt!=null&&Tt.length)&&((zn=Xn==null?void 0:Xn.updateOptions)==null||zn.call(Xn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Tt.split(/\r\n|\r|\n/g).length))+3,5)}))},[Tt,At,Sn.current]),(0,ye.useEffect)(()=>{if(rr&&Sn.current&&Sn.current.instance){let Xn=Sn.current.instance;Xn.changeViewZones(function(Mi){var ai=document.createElement("div");ai.style.padding="10px 20px",ai.style.width="calc(100% - 20px)",ai.className="my-error-line-wrp",ai.innerHTML=nr,Mi.addZone({afterLineNumber:rr||11,heightInLines:3,domNode:ai})});var zn={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}};Xn.addOverlayWidget(zn),Xn.revealPositionInCenter({lineNumber:20,column:1})}},[rr,Sn.current,At]);const ci=(zn="",Xn)=>{if(!zn||zn.trim()==="")return!0;const ai=Sn.current.instance.getModel().getLineTokens(Xn);let Li=!1;for(let wi=0;wi<2;wi++)ai.getStandardTokenType(wi)===1&&(Li=!0);return Li};(0,ye.useEffect)(()=>{var zn;const Xn=(zn=Sn.current)==null?void 0:zn.instance;if(Xn&&At&&Vn){const Mi=Xn.onDidBlurEditorWidget(()=>{di.current=!1}),ai=Xn.onDidFocusEditorText(()=>{di.current=!0});return()=>{Mi.dispose(),ai.dispose()}}},[Sn.current,At,Vn]),(0,ye.useEffect)(()=>{var zn;if((zn=Sn.current)!=null&&zn.instance&&At&&sr){let Xn=Sn.current.instance,Mi=Xn.getModel();if(!Mi)return;(()=>{var Pi;let Gi=[],Hi=[];const er=Mi.getAllDecorations();for(let br of er)br.options.className==="highlighted-line"&&(Gi.push((Pi=br==null?void 0:br.range)==null?void 0:Pi.startLineNumber),Hi.push(br==null?void 0:br.id));if(pr===Gi[0])return;Mi.deltaDecorations(Hi,[]);const Pr=Mi.getLineCount();pr&&pr<=Pr&&(Xn.deltaDecorations([],[{range:new Ke.Range(pr,1,pr,Mi.getLineMaxColumn(pr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Xn.revealLineInCenter(pr))})();const Li=(Pi=!1)=>{var Gi;let Hi=[],er=[];const Pr=Mi.getAllDecorations();for(let br of Pr)br.options.linesDecorationsClassName==="breakpoints-select"&&(Hi.push((Gi=br==null?void 0:br.range)==null?void 0:Gi.startLineNumber),er.push(br==null?void 0:br.id));if(Pi)return{lines:Hi,ids:er};Ai(Hi)},wi=Pi=>bi(void 0,null,function*(){let Gi={range:new Ke.Range(Pi,1,Pi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Mi.deltaDecorations([],[Gi]),Li()}),ir=Pi=>bi(void 0,null,function*(){let Gi=[];const Hi=Xn.getLineDecorations(Pi);for(let er of Hi)er.options.linesDecorationsClassName==="breakpoints-select"&&Gi.push(er.id);yield Mi.deltaDecorations(Gi,[]),Li()}),Wi=Pi=>{let Gi=Xn.getLineDecorations(Pi);for(let Hi of Gi)if(Hi.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Ln.isEqual)(Yi,Li(!0).lines)){Mi.deltaDecorations(Li(!0).ids,[]);const Pi=Yi.map(Gi=>({range:new Ke.Range(Gi,1,Gi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Mi.deltaDecorations([],Pi)}const Ii=Xn.onDidChangeModelContent(Pi=>{let Gi=Xn.getPosition();if(Gi){let Hi=Gi.lineNumber;clearTimeout(Hn.current),Hn.current=setTimeout(()=>{ci(Mi.getLineContent(Hi),Hi)?ir(Hi):Wi(Hi)?(ir(Hi),wi(Hi)):Li()},100)}}),un=Xn.onMouseDown(Pi=>{var Gi,Hi,er;if(Pi.target.detail&&((er=(Hi=(Gi=Pi.target)==null?void 0:Gi.element)==null?void 0:Hi.className)!=null&&er.includes("line-numbers"))){let Pr=Pi.target.position.lineNumber;if(ci(Mi.getLineContent(Pr),Pr))return;Wi(Pr)?ir(Pr):wi(Pr)}}),vr=Pi=>{let Gi={range:new Ke.Range(Pi,1,Pi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};hi.current=Xn.deltaDecorations(hi.current,[Gi])},Mr=()=>{hi.current=Xn.deltaDecorations(hi.current,[])},Yr=Xn.onMouseMove(Pi=>{var Gi,Hi,er;if(Mr(),Pi.target.detail&&((er=(Hi=(Gi=Pi.target)==null?void 0:Gi.element)==null?void 0:Hi.className)!=null&&er.includes("line-numbers"))){let Pr=Pi.target.position.lineNumber;if(ci(Mi.getLineContent(Pr),Pr))return;vr(Pr)}}),wn=Xn.onMouseLeave(()=>{Mr()});return()=>{Ii.dispose(),un.dispose(),Yr.dispose(),wn.dispose()}}},[Sn.current,At,Yi,pr,sr,Ut]),(0,ye.useEffect)(()=>{var zn;(zn=Sn.current)!=null&&zn.instance&&sr&&Sn.current.instance.setPosition({lineNumber:0,column:0})},[pr]);function Pn(){let zn=Sn.current.instance;if(zn){const Xn=zn.getSelection(),Mi=Sn.current.pastePos||{},ai=new Ke.Range(Mi.startLineNumber||Xn.endLineNumber,Mi.startColumn||Xn.endColumn,Mi.endLineNumber||Xn.endLineNumber,Mi.endColumn||Xn.endColumn);setTimeout(()=>{zn.executeEdits("",[{range:ai,text:""}])},300)}}function fi(zn){(window.navigator.platform.match("Mac")?zn.metaKey:zn.ctrlKey)&&zn.keyCode==83&&(zn.preventDefault(),gn())}const Cn=()=>{if(En&&Sn.current.instance){const zn=Sn.current.instance.getContentHeight();zt(zn{if(!di.current)return;const{keyCode:Xn,ctrlKey:Mi,metaKey:ai,target:Li,type:wi}=zn;return(wi==="paste"||(Xn===67||Xn===86)&&(ai||Mi))&&Li.nodeName==="TEXTAREA"&&(ti(),zn.preventDefault()),!1};function Ge(zn,Xn){var Mi=window.URL||window.webkitURL||window,ai=new Blob([Xn]),Li=document.createElementNS("http://www.w3.org/1999/xhtml","a");Li.href=Mi.createObjectURL(ai),Li.download=zn,Qi(Li)}(0,ye.useEffect)(()=>{Cn()},[Cn]),(0,ye.useEffect)(()=>{Ce.current&&!At&&Promise.all([De.e(8909),De.e(6656)]).then(De.bind(De,71448)).then(zn=>{try{Ke=zn,Sn.current.instance=Ke.editor.create(Ce.current,{value:Tt,language:Be(Ut),theme:on,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Ji||!1}},xn);const Xn=Sn.current.instance;let Li=[...bn.BH._menuItems].find(Ii=>Ii[0]._debugName=="EditorContext")[1],wi=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ir=(Ii,un)=>{var vr,Mr;let Yr=Ii._first;do un.includes((Mr=(vr=Yr.element)==null?void 0:vr.command)==null?void 0:Mr.id)&&Ii._remove(Yr);while(Yr=Yr.next)};if(vi(Xn,Ke),setTimeout(()=>{Cn(),Sn.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Ge(gr||"educoder.txt",Xn.getValue())}})},500),Sn.current.subscription=Xn.onDidChangeModelContent(Ii=>{Zn.current?clearTimeout(nn.current):(Cn(),ri(Xn.getValue(),Ii)),nn.current=setTimeout(()=>{Zn.current=!1},500)}),window.Monaco||st(Ke,Be(Ut)),Vn&&(ir(Li,wi),Ce.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",dr),window.removeEventListener("paste",dr),window.addEventListener("keydown",dr),window.addEventListener("paste",dr)),window.Monaco=Ke,jt&&Xn.onDidBlurEditorWidget(()=>{jt(Xn.getValue())}),mn&&Xn.onDidFocusEditorText(()=>{Vn&&ke(),mn(Xn.getValue())}),Vn){ke();try{Xn.onDidPaste(Ii=>{const un=Xn.getSelection(),vr=Sn.current.pastePos||{},Mr=new Ke.Range(vr.startLineNumber||un.endLineNumber,vr.startColumn||un.endColumn,vr.endLineNumber||un.endLineNumber,vr.endColumn||un.endColumn);Xn.executeEdits("",[{range:Ii.range,text:""}])})}catch(Ii){}}let Wi=bt();return cr&&typeof cr=="string"&&new ln(cr,Xn,Ke),Dt(!0),()=>{const Ii=Sn.current.instance;Ii.dispose();const un=Ii.getModel();un&&un.dispose(),Sn.current.subscription&&Sn.current.subscription.dispose(),Wi.unobserve(Ce.current)}}catch(Xn){}})},[]),(0,ye.useEffect)(()=>{if(Sn.current.instance&&At)return document.addEventListener("keydown",fi,!1),()=>{document.removeEventListener("keydown",fi)}},[gn,At]),(0,ye.useEffect)(()=>{let zn=Sn.current.instance;if(zn&&At){let Xn=Be(Ut);Ke.editor.setModelLanguage(zn.getModel(),Xn)}},[Ut,At]),(0,ye.useEffect)(()=>{Sn.current.instance&&At&&Ke.editor.setTheme(on)},[on,At]),(0,ye.useEffect)(()=>{let zn=Sn.current.instance;Wn.current=kn,zn&&At&&(zn.updateOptions(Wt({},kn)),setTimeout(()=>{zn.getModel().updateOptions(Wt({},kn))},200))},[JSON.stringify(kn),At]),(0,ye.useEffect)(()=>{let zn=Sn.current.instance;zn&&At&&zn.layout()},[vt,xt,At]);const[Pt,Kn]=(0,ye.useState)(qn(vt)),[Bn,zt]=(0,ye.useState)(qn(xt)),Fn=Nn(Wt({},hn),{width:Pt,height:Bn,position:"relative"});return ye.createElement("div",{className:"my-monaco-editor",ref:Ce,style:Fn},Xt&&ye.createElement(qe.CopyToClipboard,{text:Tt,onCopy:()=>fn.ZP.success("\u590D\u5236\u6210\u529F")},ye.createElement(Yt.Z,{title:"\u590D\u5236\u4EE3\u7801"},ye.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},ye.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function sn({width:Bt="100%",height:_t="100%",original:vt,modified:xt,language:Tt,options:Ut={}}){const hn=(0,ye.useRef)(),[kn,xn]=(0,ye.useState)(null);function on(En){let Vn;return hn.current&&(Vn=new tt.Z(ri=>{for(let vi of ri)(vi.target.offsetHeight>0||vi.target.offsetWidth>0)&&En.layout()}),Vn.observe(hn.current)),Vn}(0,ye.useEffect)(()=>(hn.current&&Promise.all([De.e(8909),De.e(9404)]).then(De.bind(De,2550)).then(En=>{Ke=En;const Vn=Ke.editor.createDiffEditor(hn.current,Nn(Wt({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},Ut),{wordWrap:!0}));xn(Vn);let ri=on(Vn);return()=>{Vn.dispose();const vi=Vn.getModel();vi&&vi.dispose(),ri.unobserve(hn.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,ye.useEffect)(()=>{kn&&kn.setModel({original:Ke.editor.createModel(vt,Tt),modified:Ke.editor.createModel(xt,Tt)})},[vt,xt,Tt,kn]);const jt=qn(Bt),Xt=qn(_t),gn={width:jt,height:Xt};return ye.createElement("div",{className:"my-diff-editor",ref:hn,style:gn})}},10661:function(Un,pi,De){"use strict";De.d(pi,{Z:function(){return It}});var ye={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"},tt=De(29787),it=De(25399),Ft=De(92310),Et=De.n(Ft),ze=De(51257),ct=De(28426),Kt=De(48790),ft=De(59301),It=({className:Ye,dataSource:Ht=[],col:Ne=4,right:ne,bottom:te=23,precision:de=0,wrapWidth:le=1200,trackEventItems:ge,loading:me,onRemove:Se=()=>{},isCurrent:Le=!0,showAlias:Ie=!1})=>{const Ze=Math.floor((le-(Ne-1)*ne)/Ne),st=[{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 ft.createElement(tt.Z,{spinning:me},ft.createElement("div",{className:Et()(ye.list,Ye)},!!(Ht!=null&&Ht.length)&&(Ht==null?void 0:Ht.map((Ve,Xe)=>{var wt;const{name:gt,id:Nt,identifier:Ct,featured:ln,school_name:bn,image_url:fn,excellent:Yt,is_plan:Ln}=Ve;return ft.createElement("div",{key:Nt,className:ye.wrap,style:{width:Ze,marginRight:(1+Xe)%Ne===0?0:ne+de,marginBottom:te}},ft.createElement("a",{className:ye.li,onClick:lt=>{lt.preventDefault(),lt.stopPropagation(),ge&&(0,ze.L9)([ge]),(0,ze.xg)(`/paths/${Ct}`)}},ft.createElement("div",{className:ye.img},ft.createElement("img",{className:ye.cover,src:`${fn}`}),Le&&(0,Kt.bg)()&&(Ve==null?void 0:Ve.studying)&&ft.createElement("div",{className:`${ye.movebq} user-path-items`,onClick:lt=>{lt.stopPropagation(),Se(Ve)}},ft.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),ft.createElement("span",{className:"c-red"},"\u79FB\u9664")),(wt=Ve==null?void 0:Ve.subject_tags)==null?void 0:wt.map((lt,qe)=>{var yn,oi;if(qe===0){const rn=(yn=st.find(Gn=>Gn.name==lt))==null?void 0:yn.swimg;return ft.createElement("img",{className:ye.sign,src:rn,style:{left:"-4px"}})}const Yn=(oi=st.find(rn=>rn.name==lt))==null?void 0:oi.ptimg;return ft.createElement("img",{className:ye.sign,src:Yn,style:{left:`${48+52*(qe-1)+2*qe}px`}})}),ft.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Ve==null?void 0:Ve.excellent)&&ft.createElement("div",{className:ye.bq},"\u5F00\u653E\u8BFE\u7A0B"))),ft.createElement("div",{className:ye.name},ft.createElement(it.Z,{title:Ie&&(Ve!=null&&Ve.excellent_alias_name)?ft.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${gt}`,ft.createElement("br",null),ft.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Ve==null?void 0:Ve.excellent_alias_name}`)):gt},ft.createElement("span",{className:ye.e},Ie&&(Ve==null?void 0:Ve.excellent_alias_name)||gt))),ft.createElement(it.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${bn}`},ft.createElement("div",{className:ye.unit},ft.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),bn)),ft.createElement("div",{className:ye.tags},ft.createElement("div",null,ft.createElement(it.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},ft.createElement("span",null,ft.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),ft.createElement("span",null,Ve.stages_count))),ft.createElement(it.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ft.createElement("span",null,ft.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),ft.createElement("span",null,Ve.members_count)))))))})),!Ht.length&&ft.createElement(ct.Z,null)))}},9148:function(Un,pi,De){"use strict";De.d(pi,{jL:function(){return Et},w9:function(){return yn},QD:function(){return jt},cQ:function(){return fn.Z},op:function(){return Tt},O5:function(){return Wn},_b:function(){return vi},t7:function(){return le},Gi:function(){return xi},YG:function(){return Gn},qp:function(){return It},vr:function(){return En},qE:function(){return kn},Je:function(){return Se},wb:function(){return bn},cq:function(){return je},tp:function(){return Ne}});var ye=De(59301),tt={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"},it="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL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WD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Et=({dataSource:gi=[],img:hi,imgWidth:Zn=346,title:nn,sunTitle:Hn,bannerExtraContent:di})=>ye.createElement("div",{className:tt.banner},ye.createElement("div",{className:tt.content},ye.createElement("aside",null,ye.createElement("p",null,ye.createElement("b",null,nn),ye.createElement("span",null,Hn)),gi.length>0&&ye.createElement("div",{className:tt.btns},gi.map((At,Dt)=>ye.createElement("div",{key:Dt,onClick:At.click},At.name,At.sign?ye.createElement("img",{src:it,width:39}):null))),di),hi&&ye.createElement("img",{style:{marginTop:33,marginRight:38},src:hi,width:Zn}))),ze={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"},ct=De(92310),Kt=De.n(ct),ft=De(89392),It=({dataSource:gi=[],value:hi,onChange:Zn,onTitleChange:nn,className:Hn,title:di,titleWidth:At=41,style:Dt={},fontColor:bt="#6A7283",showCount:ti})=>{const[yi,ci]=(0,ye.useState)(0),[Pn,fi]=(0,ye.useState)(!1),Cn=(0,ye.useRef)(null),Qi=(0,ye.useRef)(null);return(0,ye.useEffect)(()=>{var dr;gi.length!==0&&(((dr=Cn==null?void 0:Cn.current)==null?void 0:dr.clientHeight)>97?ci(1):ci(0)),gi.length===0&&ci(0),fi(!1)},[gi]),ye.createElement("div",{className:Kt()(ze.row,Hn),style:Dt},ye.createElement("div",{onClick:(0,ft.throttle)(()=>nn==null?void 0:nn(),2e3),style:{width:At,marginTop:Pn?12:4},className:`${ze.title} ${nn?"current":""}`},di),ye.createElement("div",{className:Pn?`${ze.tagsWrap} ${ze.tagsBorderWrap}`:ze.tagsWrap},ye.createElement("div",{className:ze.bar,ref:Qi,style:yi>0?{height:yi===1?97:"auto",overflow:yi===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ye.createElement("div",{className:ze.tag,ref:Cn},gi==null?void 0:gi.map(dr=>ye.createElement("span",{onClick:()=>Zn(dr.id),key:dr.id,style:{color:bt},className:hi===dr.id?ze.active:""},ye.createElement("span",{title:dr.name,className:ze.name},dr.name),!!ti&&ye.createElement("span",{className:ze.num},dr.count))))),!!yi&&ye.createElement(ye.Fragment,null,yi===1?ye.createElement("div",{onClick:()=>{var dr;ci(2),((dr=Cn==null?void 0:Cn.current)==null?void 0:dr.clientHeight)>245?fi(!0):fi(!1)},className:ze.action},"\u5C55\u5F00",ye.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ye.createElement("div",{onClick:()=>{Qi.current.scrollTop=0,ci(1),fi(!1)},className:ze.action},"\u6536\u8D77",ye.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Ye={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"},Ne=({dataSource:gi=[],value:hi,onChange:Zn,className:nn,style:Hn={}})=>ye.createElement("div",{style:Hn,className:Kt()(Ye.tabs,nn)},gi.map(di=>ye.createElement("span",{onClick:()=>Zn(di.id),className:hi===di.id?Ye.active:"",key:di.id},di.name))),ne={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"},te=De(37568),le=({dataSource:gi=[],value:hi="",onChange:Zn,onInputChange:nn=()=>{},className:Hn,style:di={},placeholder:At,allowClear:Dt=!1})=>{var bt;const[ti,yi]=(0,ye.useState)(""),[ci,Pn]=(0,ye.useState)("");(0,ye.useEffect)(()=>{var Qi;let dr=hi;(Qi=JSON.stringify(hi))!=null&&Qi.includes("{")&&(yi(hi.id),dr=hi.value||"");try{Pn(decodeURIComponent(dr||""))}catch(Ge){Pn(decodeURIComponent(dr||""))}},[hi]);const fi=()=>{Zn(encodeURIComponent(ci),ti||null)},Cn=Qi=>{Qi!==ti&&(yi(Qi),Zn(encodeURIComponent(ci),Qi))};return ye.createElement("div",{className:Kt()(ne.input,Hn),style:di},!!gi.length&&ye.createElement("div",{className:ne.dropdown},ye.createElement("div",{className:ne.text},(bt=gi.find(Qi=>Qi.id===ti))==null?void 0:bt.name,ye.createElement("i",{className:"iconfont icon-zhankai4"}),ye.createElement("b",{className:ne.b1}),ye.createElement("b",{className:ne.b2})),ye.createElement("div",{className:ne.menu},gi.map((Qi,dr)=>ye.createElement("div",{key:dr,onClick:()=>Cn(Qi.id)},Qi.name)))),ye.createElement(te.default,{onPressEnter:fi,value:ci,onChange:Qi=>{Pn(Qi.target.value),nn(encodeURIComponent(Qi.target.value),ti||null)},bordered:!1,placeholder:At}),ye.createElement("i",{onClick:fi,className:"iconfont icon-sousuo9 font14 pl10 current"}))},ge={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"},Se=({value:gi,onChange:hi,className:Zn,total:nn,pageSize:Hn,style:di={}})=>{const At=gi<2,Dt=gi>=Math.ceil(nn/Hn);return nn<=Hn?ye.createElement(ye.Fragment,null):ye.createElement("div",{className:Kt()(ge.quickPager,Zn),style:di},ye.createElement("div",{onClick:()=>{At||hi(gi-1,"prev")},className:At?ge.disabled:""},"\u4E0A\u4E00\u9875"),ye.createElement("div",{onClick:()=>{Dt||hi(gi+1,"next")},className:Dt?ge.disabled:""},"\u4E0B\u4E00\u9875"))},Le={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"},Ie=De(29787),Ze=De(25399),st=De(58018),Ve=De(346),Xe=De(51257),wt=De(96908),gt=De(57177),Nt=De(81378),Ct=De(28426),bn=({className:gi,dataSource:hi=[],col:Zn=4,right:nn,bottom:Hn=23,precision:di=0,wrapWidth:At=1200,trackEventItems:Dt,loading:bt})=>{const ti=Math.floor((At-(Zn-1)*nn)/Zn);return ye.createElement(Ie.Z,{spinning:bt},ye.createElement("div",{className:Kt()(Le.list,gi)},!!hi.length&&hi.map((yi,ci)=>{const{name:Pn,id:fi,identifier:Cn,power:Qi,cover_image_id:dr,pic:Ge}=yi;return ye.createElement("div",{className:Le.wrap,key:fi,style:{width:ti,marginRight:(1+ci)%Zn===0?0:nn+di,marginBottom:Hn}},ye.createElement("a",{target:"_blank",href:`/shixuns/${Cn}/challenges`,className:Le.li,onClick:Pt=>{Pt.preventDefault(),Dt&&(0,Xe.L9)([Dt]),Qi&&(0,Xe.xg)(`/shixuns/${Cn}/challenges`)}},ye.createElement("div",{className:Le.img},ye.createElement("img",{className:Le.cover,src:`${Ge}`}),yi.is_jupyter&&ye.createElement("img",{className:Le.sign,src:wt}),yi.is_jupyter_lab&&ye.createElement("img",{className:Le.sign,src:gt}),yi.is_unity_3d&&ye.createElement("img",{className:Le.sign,src:Nt})),ye.createElement("div",{className:Le.name},ye.createElement(Ze.Z,{title:Pn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ye.createElement("span",{className:Le.e},Pn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ye.createElement("div",{className:Le.tags},ye.createElement(Ze.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ye.createElement("span",null,ye.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ye.createElement("span",null,yi.challenges_count))),!!yi.myshixuns_count&&ye.createElement(Ze.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ye.createElement("span",null,ye.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ye.createElement("span",null,yi.myshixuns_count))),ye.createElement(Ze.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ye.createElement("span",null,ye.createElement("span",null,yi.level))),ye.createElement("div",{className:Le.rate},ye.createElement(st.Z,{allowHalf:!0,disabled:!0,defaultValue:yi.score_info}),ye.createElement("span",null,"\xA0",yi.score_info?`${yi.score_info}\u5206`:"5\u5206")))),!Qi&&ye.createElement("div",{className:Le.lockWrap},ye.createElement("img",{src:`${Ve.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ye.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!hi.length&&ye.createElement(Ct.Z,null)))},fn=De(10661),Yt={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"},Ln="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9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ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",lt=De(59301),yn=({className:gi,dataSource:hi=[],col:Zn=4,right:nn,bottom:Hn=23,precision:di=0,wrapWidth:At=1200,trackEventItems:Dt,loading:bt,handleVery:ti=()=>!0})=>{const yi=Math.floor((At-(Zn-1)*nn)/Zn);return lt.createElement(Ie.Z,{spinning:bt},lt.createElement("div",{className:Kt()(Yt.list,gi)},!!hi.length&&hi.map((ci,Pn)=>{const{subject_identifier:fi,id:Cn,identifier:Qi,power:dr}=ci,Ge=ci.is_public!=0&&ci.is_public;return lt.createElement("div",{className:Yt.wrap,key:Cn,style:{width:yi,marginRight:(1+Pn)%Zn===0?0:nn+di,marginBottom:Hn}},lt.createElement("a",{className:Yt.li,onClick:Pt=>{Pt.preventDefault(),ti(ci==null?void 0:ci.first_category_url)&&(Dt&&(0,Xe.L9)([Dt]),(0,Xe.xg)(ci.first_category_url))}},lt.createElement("div",{className:Yt.top},lt.createElement(Ze.Z,{title:ci.name},lt.createElement("div",{className:Yt.name},ci.name)),lt.createElement("img",{className:Yt.img,src:Ve.Z.IMG_SERVER+"/images/"+ci.avatar_url}),lt.createElement("div",{className:Yt.text,title:ci.creator},ci.creator),fi&<.createElement("div",{className:Yt.btns},lt.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),lt.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Ge&<.createElement("div",{className:Yt.sign},"\u516C\u5F00")),lt.createElement("div",{className:Yt.bottom},ci.visits>0&<.createElement(Ze.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},lt.createElement("span",null,lt.createElement("i",{className:"iconfont icon-liulanyan"}),lt.createElement("span",null,ci.visits))),ci.course_members_count>0&<.createElement(Ze.Z,{title:"\u6210\u5458",placement:"bottom"},lt.createElement("span",null,lt.createElement("i",{className:"iconfont icon-chengyuan"}),ci.course_members_count)),ci.tasks_count>0&<.createElement(Ze.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},lt.createElement("span",null,lt.createElement("i",{className:"iconfont icon-zuoye"}),ci.tasks_count)),ci.is_end?lt.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):lt.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!ci.is_accessible&<.createElement("div",{className:Yt.lockWrap},lt.createElement("img",{src:`${Ve.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),lt.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!hi.length&<.createElement(Ct.Z,null)))},oi={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"},Yn=De(25690),Gn=({dataSource:gi=[],value:hi,onChange:Zn,className:nn,style:Hn={},tabBarExtraContent:di})=>ye.createElement("div",{className:Kt()(oi.tabs,nn),style:Hn},ye.createElement("div",{className:oi.tabsWrap},gi.map((At,Dt)=>!(At!=null&&At.hide)&&ye.createElement("aside",{className:oi.tab,onClick:()=>{Zn(At.id),At.link&&Yn.history.push(At.link)},key:Dt},ye.createElement("div",{className:hi===At.id?oi.active:""},At.name),(At==null?void 0:At.resetCount)==null&&(At==null?void 0:At.total)!==void 0&&ye.createElement("span",null,"\uFF08",At==null?void 0:At.total,"\uFF09"),(At==null?void 0:At.resetCount)!==void 0&&(At==null?void 0:At.total)!==void 0&&ye.createElement(Ze.Z,{title:(At==null?void 0:At.tip)!=null?At==null?void 0:At.tip:""},ye.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ye.createElement("span",{style:{color:"#000"}},At==null?void 0:At.resetCount),"/",ye.createElement("span",null,At==null?void 0:At.total),"\uFF09"))))),ye.createElement("div",{className:oi.tabBar},di)),xi=({className:gi,style:hi={},children:Zn})=>ye.createElement("div",{className:Kt()(gi),style:hi},Zn),Wt={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"},Nn=De(75727),St=De(93041);const bi=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var je=({sortValue:gi,dropValue:hi,className:Zn,onSort:nn,onDrop:Hn,dataSource:di=bi})=>{var At;return ye.createElement("div",{className:Kt()(Wt.orderWrap,Zn)},ye.createElement(Nn.Z,{dropdownRender:()=>ye.createElement(St.default,null,di.map((Dt,bt)=>ye.createElement(St.default.Item,{key:bt,onClick:()=>Hn(Dt.id)},Dt.name)))},ye.createElement("span",{className:Wt.orderTextWrap},(At=di.find(Dt=>hi===Dt.id))==null?void 0:At.name)),ye.createElement("span",{className:Wt.orderIconWrap},ye.createElement("span",{className:Wt.orderAsc},ye.createElement("i",{className:gi==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Wt.cursorPointer} ${Wt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Wt.cursorPointer}`,onClick:()=>nn(gi==="asc"?"desc":"asc")})),ye.createElement("span",{className:Wt.orderDesc},ye.createElement("i",{className:gi==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Wt.cursorPointer} ${Wt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Wt.cursorPointer}`,onClick:()=>nn(gi==="asc"?"desc":"asc")}))))},be={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"},we=De(99571),Be=Object.defineProperty,Ke=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,sn=(gi,hi,Zn)=>hi in gi?Be(gi,hi,{enumerable:!0,configurable:!0,writable:!0,value:Zn}):gi[hi]=Zn,Bt=(gi,hi)=>{for(var Zn in hi||(hi={}))ke.call(hi,Zn)&&sn(gi,Zn,hi[Zn]);if(Ke)for(var Zn of Ke(hi))et.call(hi,Zn)&&sn(gi,Zn,hi[Zn]);return gi},_t=(gi,hi)=>{var Zn={};for(var nn in gi)ke.call(gi,nn)&&hi.indexOf(nn)<0&&(Zn[nn]=gi[nn]);if(gi!=null&&Ke)for(var nn of Ke(gi))hi.indexOf(nn)<0&&et.call(gi,nn)&&(Zn[nn]=gi[nn]);return Zn},vt=(gi,hi,Zn)=>new Promise((nn,Hn)=>{var di=bt=>{try{Dt(Zn.next(bt))}catch(ti){Hn(ti)}},At=bt=>{try{Dt(Zn.throw(bt))}catch(ti){Hn(ti)}},Dt=bt=>bt.done?nn(bt.value):Promise.resolve(bt.value).then(di,At);Dt((Zn=Zn.apply(gi,hi)).next())}),Tt=gi=>{var hi=gi,{className:Zn,style:nn,children:Hn,loading:di=!1,openLoading:At,onClick:Dt=()=>{},size:bt="middle",shape:ti="round"}=hi,yi=_t(hi,["className","style","children","loading","openLoading","onClick","size","shape"]);const[ci,Pn]=(0,ye.useState)(!1);return ye.createElement(we.ZP,Bt({onClick:(0,ft.throttle)(fi=>vt(void 0,null,function*(){At&&Pn(!0);try{yield Dt(fi)}catch(Cn){console.log("error",Cn)}At&&Pn(!1)}),2e3,{leading:!0,trailing:!1}),className:Kt()(be.btn,be[`${bt}-${ti}`],Zn),style:nn,size:bt,shape:ti,loading:ci||di},yi),Hn)},Ut={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"},kn=({className:gi,style:hi,children:Zn=null,onClick:nn,title:Hn})=>ye.createElement("div",{className:Kt()(Ut.head,gi),style:hi},ye.createElement("span",{className:"primary-hover",onClick:nn},ye.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ye.createElement("b",{title:Hn},Hn),ye.createElement("div",{className:Ut.node},Zn)),xn={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"},jt=({confirmShow:gi=!0,confirmTitle:hi,confirmClick:Zn,cancelShow:nn=!0,cancelTitle:Hn,cancelClick:di,className:At,style:Dt,confirmLoading:bt=!1})=>ye.createElement("div",{className:Kt()(xn.btns,At),style:Dt},gi&&ye.createElement(we.ZP,{loading:bt,onClick:Zn,type:"primary",className:xn.confirm},hi),nn&&ye.createElement(we.ZP,{onClick:di,className:xn.cancel},Hn)),Xt={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"},En=({className:gi,style:hi={},LeftContent:Zn,children:nn,RightContent:Hn})=>ye.createElement("div",{className:Kt()(Xt.fixedBottom,gi),style:hi},ye.createElement("div",{className:Xt.wrap},ye.createElement("div",{className:Xt.left},Zn),ye.createElement("div",{className:Xt.center},nn),ye.createElement("div",{className:Xt.right},Hn))),Vn={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"},vi=({className:gi,style:hi={},dataSource:Zn=[]})=>ye.createElement("div",{className:Kt()(Vn.crumbs,gi),style:hi},Zn.map((nn,Hn)=>HnYn.history.push(nn.path)},nn.name):ye.createElement("span",null,nn.name),ye.createElement("span",null,"\xA0",">","\xA0")):ye.createElement("span",{key:Hn,style:{color:"#5F6368"}},nn.name))),mn=De(11938),Ai=Object.defineProperty,Yi=Object.defineProperties,gr=Object.getOwnPropertyDescriptors,rr=Object.getOwnPropertySymbols,nr=Object.prototype.hasOwnProperty,pr=Object.prototype.propertyIsEnumerable,sr=(gi,hi,Zn)=>hi in gi?Ai(gi,hi,{enumerable:!0,configurable:!0,writable:!0,value:Zn}):gi[hi]=Zn,cr=(gi,hi)=>{for(var Zn in hi||(hi={}))nr.call(hi,Zn)&&sr(gi,Zn,hi[Zn]);if(rr)for(var Zn of rr(hi))pr.call(hi,Zn)&&sr(gi,Zn,hi[Zn]);return gi},Ji=(gi,hi)=>Yi(gi,gr(hi)),yr=(gi,hi)=>{var Zn={};for(var nn in gi)nr.call(gi,nn)&&hi.indexOf(nn)<0&&(Zn[nn]=gi[nn]);if(gi!=null&&rr)for(var nn of rr(gi))hi.indexOf(nn)<0&&pr.call(gi,nn)&&(Zn[nn]=gi[nn]);return Zn};const{Countdown:Ce}=mn.default;var Wn=gi=>{var hi=gi,{onChange:Zn}=hi,nn=yr(hi,["onChange"]);const[Hn,di]=(0,ye.useState)(null);(0,ye.useEffect)(()=>{typeof Hn=="number"&&Hn>=0&&Zn(Hn)},[Hn]);const At=Dt=>{const bt=Math.floor(Dt/1e3);di(bt)};return ye.createElement(Ce,Ji(cr({},nn),{onChange:At}))}},37808:function(Un,pi,De){"use strict";De.d(pi,{Z:function(){return tt}});var ye=De(59301);function tt(it,Ft){const Et=(0,ye.useRef)();(0,ye.useEffect)(()=>{Et.current=it}),(0,ye.useEffect)(()=>{function ze(){Et.current()}if(Ft!==null){let ct=setInterval(ze,Ft);return()=>clearInterval(ct)}},[Ft])}},35171:function(Un,pi,De){"use strict";De.r(pi),De.d(pi,{default:function(){return Zn}});var ye=De(59301),tt={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"},it=De(92310),Ft=De.n(it),Et=De(9148),ze=De(39793),ct=De(77019),Kt=De(99571),ft=De(62957),Me=De(37568),It=De(54172),Ye=De(28284),Ht=De(25399),Ne=De(71051),ne=De(6767),te=De(29787),de=De(62673),le=De(47889),ge=De(16326),me=De(51257),Se=De(25690),Le=De(56082),Ie=De(87954),Ze=De(18257),st=De(19719),Ve=De(35241),Xe=De(28426),wt=Object.defineProperty,gt=Object.defineProperties,Nt=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,ln=Object.prototype.hasOwnProperty,bn=Object.prototype.propertyIsEnumerable,fn=(nn,Hn,di)=>Hn in nn?wt(nn,Hn,{enumerable:!0,configurable:!0,writable:!0,value:di}):nn[Hn]=di,Yt=(nn,Hn)=>{for(var di in Hn||(Hn={}))ln.call(Hn,di)&&fn(nn,di,Hn[di]);if(Ct)for(var di of Ct(Hn))bn.call(Hn,di)&&fn(nn,di,Hn[di]);return nn},Ln=(nn,Hn)=>gt(nn,Nt(Hn));const lt=ye.createContext({}),qe=()=>{const{setActivatorNodeRef:nn,listeners:Hn}=(0,ye.useContext)(lt);return ye.createElement(Kt.ZP,Yt({type:"text",size:"small",icon:ye.createElement(Ht.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"},ye.createElement(Le.Z,null)),style:{cursor:"move"},ref:nn},Hn))},yn=nn=>{const{attributes:Hn,listeners:di,setNodeRef:At,setActivatorNodeRef:Dt,transform:bt,transition:ti,isDragging:yi}=(0,st.nB)({id:nn["data-row-key"]}),ci=Yt(Ln(Yt({},nn.style),{transform:Ve.ux.Translate.toString(bt),transition:ti}),yi?{position:"relative",zIndex:99}:{}),Pn=(0,ye.useMemo)(()=>({setActivatorNodeRef:Dt,listeners:di}),[Dt,di]);return ye.createElement(lt.Provider,{value:Pn},ye.createElement("tr",Yt(Ln(Yt({},nn),{ref:At,style:ci}),Hn)))};var Yn=({columns:nn,dataSource:Hn,setDataSource:di,loading:At})=>{const Dt=({active:bt,over:ti})=>{bt.id!==(ti==null?void 0:ti.id)&&di(yi=>{const ci=yi.findIndex(fi=>fi.id===(bt==null?void 0:bt.id)),Pn=yi.findIndex(fi=>fi.id===(ti==null?void 0:ti.id));return(0,st.Rp)(yi,ci,Pn)})};return ye.createElement(Ie.LB,{modifiers:[Ze.DL],onDragEnd:Dt},ye.createElement(st.Fo,{items:Hn.map(bt=>bt.id),strategy:st.qw},ye.createElement(It.default,{pagination:!1,scroll:{y:400},rowKey:"id",loading:At,locale:{emptyText:ye.createElement(Xe.Z,{styles:{margin:"80px auto"},customText:ye.createElement("span",null,"\u8FD8\u6CA1\u6709\u8BD5\u9898\uFF0C\u8BF7\u4ECE",ye.createElement("span",{style:{color:"#CA7720"}},"\u53F3\u4E0A\u89D2\u64CD\u4F5C\u6309\u94AE"),"\u8FDB\u884C\u6DFB\u52A0\uFF5E")})},dataSource:Hn,components:{body:{row:yn}},columns:[{key:"sort",align:"center",width:80,render:()=>ye.createElement(qe,null)},...nn],size:"middle"})))},rn=De(20554),Gn=De(17149),Mn=De(82326),xi=De(69219),Wt=De(13747),Nn=De(38986),St={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"},bi=De(55305),qn={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"},je=De(76902),be=De(24334);const we=["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 Ke=({qitem:nn})=>{var Hn,di,At,Dt,bt,ti,yi,ci,Pn,fi;return ye.createElement("div",{className:qn.warp},ye.createElement("div",{className:qn.mainPart},ye.createElement("div",{className:qn.qcount},(nn==null?void 0:nn.question_type)===8&&ye.createElement(je.Z,{className:qn.content,showProgramFill:!0,value:(Hn=nn==null?void 0:nn.program_attr)==null?void 0:Hn.description}),(nn==null?void 0:nn.question_type)!=8&&ye.createElement(je.Z,{className:qn.qtitle,value:(nn==null?void 0:nn.name)||(nn==null?void 0:nn.title)})),((nn==null?void 0:nn.question_type)===0||(nn==null?void 0:nn.question_type)===2)&&ye.createElement("div",null,(di=nn==null?void 0:nn.choices)==null?void 0:di.map((Cn,Qi)=>ye.createElement("div",{className:qn.redio},!(Cn!=null&&Cn.is_answer)&&ye.createElement("span",{className:qn.redioitem}),(Cn==null?void 0:Cn.is_answer)&&ye.createElement("i",{className:`${qn.redioitemyes} icon-duigou1`}),ye.createElement(je.Z,{className:Cn!=null&&Cn.is_answer?qn.titleyes:qn.title,value:we[Qi]+(Cn==null?void 0:Cn.choice_text)}),(Cn==null?void 0:Cn.is_answer)&&ye.createElement("div",{className:qn.yestag},"\u6B63\u786E\u7B54\u6848")))),(nn==null?void 0:nn.question_type)===1&&ye.createElement("div",null,(At=nn==null?void 0:nn.choices)==null?void 0:At.map((Cn,Qi)=>ye.createElement("div",{className:qn.checkbox},!(Cn!=null&&Cn.is_answer)&&ye.createElement("span",{className:qn.checkboxitem}),(Cn==null?void 0:Cn.is_answer)&&ye.createElement("i",{className:`${qn.checkboxitemyes} icon-duigou1`}),ye.createElement(je.Z,{className:Cn!=null&&Cn.is_answer?qn.titleyes:qn.title,value:we[Qi]+(Cn==null?void 0:Cn.choice_text)}),(Cn==null?void 0:Cn.is_answer)&&ye.createElement("div",{className:qn.yestag},"\u6B63\u786E\u7B54\u6848")))),(nn==null?void 0:nn.question_type)===3&&ye.createElement("div",{className:qn.completion},(Dt=nn==null?void 0:nn.standard_answer)==null?void 0:Dt.map((Cn,Qi)=>{var dr;return ye.createElement("div",{style:{display:"flex"}},ye.createElement("span",{className:qn.title},"\u586B\u7A7A\u9879",Qi+1),ye.createElement("div",{className:qn.content},(dr=Cn==null?void 0:Cn.answer_text)==null?void 0:dr.map((Ge,Pt)=>ye.createElement("div",{className:qn.items},Ge))))})),(nn==null?void 0:nn.question_type)===4&&ye.createElement("div",{className:qn.simple},ye.createElement("div",{className:qn.title},"\u53C2\u8003\u7B54\u6848"),ye.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(bt=nn==null?void 0:nn.answer_texts)!=null&&bt[0]?ye.createElement(je.Z,{className:qn.content,value:(ti=nn==null?void 0:nn.answer_texts)==null?void 0:ti[0]}):ye.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(nn==null?void 0:nn.question_type)===5&&((yi=nn==null?void 0:nn.challenge_names)==null?void 0:yi.map((Cn,Qi)=>ye.createElement("div",{className:qn.shixun},ye.createElement("span",{className:qn.qtitle},ye.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,me.EM)(Qi+1),"\u9898"),Cn)))),(nn==null?void 0:nn.question_type)===6&&ye.createElement("div",{className:qn.program},ye.createElement(je.Z,{className:qn.content,value:((ci=nn==null?void 0:nn.program_attr)==null?void 0:ci.description)||"- -"})),(nn==null?void 0:nn.question_type)===7&&((Pn=nn==null?void 0:nn.sub_item_banks)==null?void 0:Pn.map((Cn,Qi)=>{var dr,Ge,Pt,Kn,Bn;return ye.createElement("div",null,ye.createElement("div",{className:qn.combination},ye.createElement("span",{className:qn.qtitle},Cn==null?void 0:Cn.name)),ye.createElement("div",{className:qn.warp,style:{padding:"0px",paddingTop:20}},ye.createElement("div",null,((Cn==null?void 0:Cn.item_type)=="SINGLE"||(Cn==null?void 0:Cn.item_type)=="JUDGMENT")&&((dr=Cn==null?void 0:Cn.choices)==null?void 0:dr.map((zt,Fn)=>ye.createElement("div",{className:qn.redio},!(zt!=null&&zt.is_answer)&&ye.createElement("span",{className:qn.redioitem}),(zt==null?void 0:zt.is_answer)&&ye.createElement("i",{className:`${qn.redioitemyes} icon-duigou1`}),ye.createElement(je.Z,{className:zt!=null&&zt.is_answer?qn.titleyes:qn.title,value:we[Fn]+(zt==null?void 0:zt.choice_text)}),(zt==null?void 0:zt.is_answer)&&ye.createElement("div",{className:qn.yestag},"\u6B63\u786E\u7B54\u6848")))),(Cn==null?void 0:Cn.item_type)=="MULTIPLE"&&((Ge=Cn==null?void 0:Cn.choices)==null?void 0:Ge.map((zt,Fn)=>ye.createElement("div",{className:qn.checkbox},!(zt!=null&&zt.is_answer)&&ye.createElement("span",{className:qn.checkboxitem}),(zt==null?void 0:zt.is_answer)&&ye.createElement("i",{className:`${qn.checkboxitemyes} icon-duigou1`}),ye.createElement(je.Z,{className:zt!=null&&zt.is_answer?qn.titleyes:qn.title,value:we[Fn]+(zt==null?void 0:zt.choice_text)}),(zt==null?void 0:zt.is_answer)&&ye.createElement("div",{className:qn.yestag},"\u6B63\u786E\u7B54\u6848")))),(Cn==null?void 0:Cn.item_type)=="COMPLETION"&&ye.createElement("div",{className:qn.completion},(Pt=Cn==null?void 0:Cn.standard_answer)==null?void 0:Pt.map((zt,Fn)=>{var zn;return ye.createElement("div",{style:{display:"flex"}},ye.createElement("span",{className:qn.title},"\u586B\u7A7A\u9879",Fn+1),ye.createElement("div",{className:qn.content},(zn=zt==null?void 0:zt.answer_text)==null?void 0:zn.map((Xn,Mi)=>ye.createElement("div",{className:qn.items},Xn))))})),(Cn==null?void 0:Cn.item_type)=="SUBJECTIVE"&&ye.createElement("div",{className:qn.simple},ye.createElement("div",{className:qn.title},"\u53C2\u8003\u7B54\u6848"),ye.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Kn=Cn==null?void 0:Cn.answer_texts)!=null&&Kn[0]?ye.createElement(je.Z,{className:qn.content,value:(Bn=Cn==null?void 0:Cn.answer_texts)==null?void 0:Bn[0]}):ye.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(nn==null?void 0:nn.question_type)===8&&ye.createElement("div",null,ye.createElement(je.Z,{disabledFill:!0,className:qn.content,showProgramFill:!0,value:be.Base64.decode(((fi=nn==null?void 0:nn.program_attr)==null?void 0:fi.code)||"")})),(nn==null?void 0:nn.question_type)===5&&ye.createElement("div",{style:{background:"#F6F7F9",padding:"0px 20px",height:46,lineHeight:"46px",marginTop:40,display:"flex",alignItems:"center"}},ye.createElement("div",{style:{flex:1,alignItems:"center",display:"flex"}},ye.createElement("div",{style:{marginRight:30}},ye.createElement("span",{style:{marginRight:10}},"\u521B\u5EFA\u8005"),ye.createElement("span",{style:{color:"#000000"}},(nn==null?void 0:nn.author_name)||"- -")),ye.createElement("div",{style:{marginRight:30}},ye.createElement("span",{style:{marginRight:10}},"\u6240\u5C5E\u5355\u4F4D"),ye.createElement("span",{style:{color:"#000000"}},(nn==null?void 0:nn.author_school_name)||"- -")),ye.createElement("div",{style:{marginRight:30}},ye.createElement("span",{style:{marginRight:10}},"\u5B66\u4E60\u4EBA\u6570"),ye.createElement("span",{style:{color:"#000000"}},(nn==null?void 0:nn.study_count)||"0"))),ye.createElement("a",{className:qn.shixunbutton,href:`/shixuns/${nn==null?void 0:nn.identifier}/challenges?exercise=true`,target:"_blank"},ye.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((nn==null?void 0:nn.question_type)<=4||[6,8].includes(nn==null?void 0:nn.question_type))&&ye.createElement("div",{className:qn.bottom},ye.createElement("div",{className:qn.bottomitem},ye.createElement("span",{className:qn.left},"\u89E3\u6790"),ye.createElement("span",{className:qn.right},nn!=null&&nn.analysis?ye.createElement(je.Z,{value:nn==null?void 0:nn.analysis}):ye.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),ye.createElement("div",{className:qn.bottomitem},ye.createElement("span",{className:qn.left},"\u96BE\u5EA6"),ye.createElement("span",{className:qn.right},(nn==null?void 0:nn.difficulty)===1?"\u7B80\u5355":(nn==null?void 0:nn.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),ye.createElement("div",{className:qn.bottomitem},ye.createElement("span",{className:qn.left},"\u77E5\u8BC6\u70B9"),ye.createElement("span",{className:qn.right},nn!=null&&nn.tag_discipline?nn==null?void 0:nn.tag_discipline:ye.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},ke=De(61250),et=De(57149),sn=De(46722),Bt=De(61485),_t=De(59301),vt=Object.defineProperty,xt=Object.defineProperties,Tt=Object.getOwnPropertyDescriptors,Ut=Object.getOwnPropertySymbols,hn=Object.prototype.hasOwnProperty,kn=Object.prototype.propertyIsEnumerable,xn=(nn,Hn,di)=>Hn in nn?vt(nn,Hn,{enumerable:!0,configurable:!0,writable:!0,value:di}):nn[Hn]=di,on=(nn,Hn)=>{for(var di in Hn||(Hn={}))hn.call(Hn,di)&&xn(nn,di,Hn[di]);if(Ut)for(var di of Ut(Hn))kn.call(Hn,di)&&xn(nn,di,Hn[di]);return nn},jt=(nn,Hn)=>xt(nn,Tt(Hn)),Xt=(nn,Hn,di)=>new Promise((At,Dt)=>{var bt=ci=>{try{yi(di.next(ci))}catch(Pn){Dt(Pn)}},ti=ci=>{try{yi(di.throw(ci))}catch(Pn){Dt(Pn)}},yi=ci=>ci.done?At(ci.value):Promise.resolve(ci.value).then(bt,ti);yi((di=di.apply(nn,Hn)).next())});const gn=({setScoreShow:nn,ScoreShow:Hn,onOk:di,isshixuns:At,isloadings:Dt,dispatch:bt,selectedIds:ti,user:yi,virtualId:ci,shixunsDetail:Pn})=>{var fi;let[Cn,Qi]=(0,ye.useState)({type:"0",page:1,per_page:10,updated_at:"",quotes:"",item_type:"PROGRAM"}),[dr,Ge]=(0,ye.useState)([]),[Pt,Kn]=(0,ye.useState)([]),[Bn,zt]=(0,ye.useState)([]),[Fn,zn]=(0,ye.useState)([]);const[Xn,Mi]=(0,ye.useState)(!1),[ai]=Ye.default.useForm(),[Li,wi]=(0,ye.useState)(),[ir,Wi]=(0,ye.useState)(!1);let[Ii,un]=(0,ye.useState)(At);const[vr,Mr]=(0,ye.useState)([]),[Yr,wn]=(0,ye.useState)(0),[Pi,Gi]=(0,ye.useState)(!0),[Hi,er]=(0,ye.useState)([]),[Pr,br]=(0,ye.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}],[tr,Ki]=(0,ye.useState)([]),dn=(0,ye.useRef)(new Set),lr=(0,ye.useRef)(new Set),vn=(0,ye.useRef)(1),Fi=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],Cr=[{name:"\u521D\u7EA7",value:1},{name:"\u4E2D\u7EA7",value:2},{name:"\u4E2D\u9AD8\u7EA7",value:3},{name:"\u9AD8\u7EA7",value:4}],Nr=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[to,Ur]=(0,ye.useState)(!1),Br=()=>{ai.resetFields(),Ii=!1,un(!1),Ur(!1),ai.submit()};(0,ye.useEffect)(()=>{Hn&&(ai.setFieldsValue({item_type:"",courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,teach_group_id:null}),Pi&&Ii&&(ai.setFieldsValue({item_type:"SHIXUN"}),Cn.item_type="SHIXUN",Qi(on({},Cn)),Gi(!1)),Cn.type="0",Kn(ti),zt(ti),lr.current=new Set(ti),ao(Cn),Qt(),jn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),$t())},[Hn]),console.log(Pt,Bn,"listitems"),(0,ye.useEffect)(()=>{Yr>0&&setTimeout(()=>{wn(0)},2e3)},[Yr]);function ao(nt){return Xt(this,null,function*(){var kt,Gt,Rt;if(Mi(!0),Qi(on({},nt)),(Bn==null?void 0:Bn.length)<=0&&nt.type==="5"){zn([]),Mi(!1);return}let an=nt.type==="5"?Bn==null?void 0:Bn.filter(Re=>!vr.includes(Re)):null,si=nt.type==="5"?Bn==null?void 0:Bn.filter(Re=>vr.includes(Re)):null;vn.current=vn.current+1;const Ee=vn.current;let Ue=yield(0,Nn.ZP)("/api/item_banks.json",{method:"get",params:jt(on({},nt),{discipline_id:((kt=nt==null?void 0:nt.courseid)==null?void 0:kt[0])||null,sub_discipline_id:((Gt=nt==null?void 0:nt.courseid)==null?void 0:Gt[1])||null,ids:an,shixun_ids:si,include_shixuns:!0,group_id:((Rt=nt.group_id)==null?void 0:Rt.map(Re=>Re==null?void 0:Re.value))||null,keyword:nt.keyword?encodeURIComponent(nt.keyword):nt.keyword,type:nt.type==="5"?null:nt.type,clazz:nt.type==="3"?"ItemBanksGroup":null})});vn.current===Ee&&(zn(Ue),Mi(!1))})}function Qt(){return Xt(this,null,function*(){let nt=yield(0,Nn.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:Cn.type==="5"?null:Cn.type,clazz:"ItemBanksGroup"}});Ge((0,bi.L)(nt==null?void 0:nt.disciplines))})}function jn(nt){return Xt(this,null,function*(){var kt;let Gt=yield(0,Nn.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:nt}),Rt=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(kt=Gt==null?void 0:Gt.data)==null?void 0:kt.map(an=>({title:an.name,id:an.id,pid:an.id,value:an.id,key:an.id,isLeaf:!an.have_child}))}];er(Rt)})}function $t(){return Xt(this,null,function*(){let nt=yield(0,sn.Dm)({});(nt==null?void 0:nt.status)===0&&br(nt==null?void 0:nt.groups)})}function Te(nt){return Xt(this,null,function*(){var kt,Gt,Rt,an;Mi(!0);let si=(kt=nt.list)==null?void 0:kt.filter(Re=>!vr.includes(Re)),Ee=(Gt=nt.list)==null?void 0:Gt.filter(Re=>vr.includes(Re));if(si.length===0&&Ee.length===0){Mi(!1),zn([]);return}let Ue=yield(0,Nn.ZP)("/api/item_banks.json",{method:"get",params:jt(on({},nt),{discipline_id:((Rt=nt==null?void 0:nt.courseid)==null?void 0:Rt[0])||null,sub_discipline_id:((an=nt==null?void 0:nt.courseid)==null?void 0:an[1])||null,ids:si,shixun_ids:Ee,type:nt.type==="5"?null:nt.type,clazz:nt.type==="3"?"ItemBanksGroup":null})});Mi(!1),zn(Ue)})}const He=nt=>Xt(void 0,null,function*(){const kt=yield bt({type:"shixunsDetail/release",payload:{id:nt}});let Gt=kt==null?void 0:kt.tag_position,Rt=(kt==null?void 0:kt.evaluation_set_position)||[],an=kt.status;return an===0?(ne.ZP.success("\u53D1\u5E03\u6210\u529F"),ao(Cn),!0):(an===2?ne.ZP.error(`\u7B2C${Rt.join(",")}\u5173\u5C1A\u672A\u5B8C\u6210\uFF0C\u65E0\u6CD5\u7533\u8BF7\u53D1\u5E03`):an===3?ne.ZP.error(`\u6BCF\u4E00\u4E2A\u5173\u5361\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u6280\u80FD\u6807\u7B7E, \u7B2C${Gt.join(",")}\u5173\u5C1A\u672A\u8BBE\u7F6E\u6280\u80FD\u6807\u7B7E\uFF0C\u8BF7\u8865\u5145`):ne.ZP.error("\u5C1A\u672A\u521B\u5EFA\u4EFB\u52A1\u7684\u5B9E\u8BAD\uFF0C\u4E0D\u80FD\u7533\u8BF7\u53D1\u5E03"),!1)}),$e=nt=>(nt==null?void 0:nt.shixun_tag_num)===1?"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528\uFF0C\u8BF7\u5148\u8FDB\u884C\u53D1\u5E03":"",yt=()=>Xn?"\u6682\u65E0\u6570\u636E":Cn.type==="3"&&!(Pr!=null&&Pr.length)?_t.createElement("span",null,"\u4F60\u8FD8\u672A\u52A0\u5165\u6559\u7814\u56E2\u961F\uFF0C\u8BF7\u5148 ",_t.createElement("span",{onClick:()=>{var nt;return(0,me.xg)(`/users/${(nt=yi==null?void 0:yi.userInfo)==null?void 0:nt.login}/teach-group`)},style:{color:"#3061D0",cursor:"pointer"}},"\u65B0\u521B\u5EFA\u6559\u7814\u56E2\u961F")):Cn.type==="0"&&(Fn==null?void 0:Fn.items_count)===0&&!(Cn!=null&&Cn.tag_discipline_id)&&!(Cn!=null&&Cn.difficulty)&&!(Cn!=null&&Cn.keyword)&&!(Cn!=null&&Cn.group_id)&&!(Cn!=null&&Cn.difficulty)?_t.createElement("span",null,"\u4F60\u8FD8\u672A\u521B\u5EFA\u8FC7\u7F16\u7A0B\u9898\uFF0C\u8BF7\u5148 ",_t.createElement("span",{onClick:()=>{(0,me.xg)(`/problems/newcreate?&pageId=${ci}`),nn(!1)},style:{color:"#3061D0",cursor:"pointer"}},"\u521B\u5EFA\u7F16\u7A0B\u9898")):"\u6682\u65E0\u6570\u636E",Ot=(nt,kt,Gt)=>nt.map(Rt=>Rt.key===kt?on(on({},Rt),Gt):Rt.children?jt(on({},Rt),{children:Ot(Rt.children,kt,Gt)}):Rt),en=nt=>Xt(void 0,null,function*(){const{key:kt}=nt;let Gt=Cn.type;const Rt=yield(0,sn.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(kt),type:Gt}),{data:an,total_count:si}=Rt||{};si>0&&er(Ee=>Ot(Ee,kt,{children:an.map(Ue=>({title:Ue.name,id:Ue.id,pid:Ue.id,value:Ue.id,key:Ue.id,isLeaf:!Ue.have_child}))}))});return _t.createElement("div",null,_t.createElement(ft.default,{title:!1,footer:!1,open:Hn,width:1200,centered:!0,className:St.scoremodal,onCancel:()=>{nn(!1)}},_t.createElement("div",{style:{display:"flex",alignItems:"center"}},_t.createElement("div",{className:St.title},"\u9009\u62E9\u7F16\u7A0B\u9898")),_t.createElement(rn.default,{className:St.tabWrap,activeKey:Cn.type,onChange:nt=>{nt==="3"?(Cn.show_all_share=!0,jn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"3"})):Cn.show_all_share=null,nt==="0"&&jn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),Cn.type=nt,Cn.page=1,Cn.updated_at="",Cn.quotes="",Cn.courseid="",Cn.tag_discipline_id=null,Cn.difficulty=null,Cn.keyword=null,Cn.group_id=null,Cn.teach_group_id=null,ai.setFieldsValue({courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[],teach_group_id:null}),(Cn==null?void 0:Cn.item_type)==="SHIXUN"&&Cn.type!=="5"&&(Ii=!0,un(!0)),Ur(!1),Cn.type==="5"&&(Ii=!1,un(!1)),Qi(on({},Cn)),ao(on({},Cn)),Qt()},items:[{label:"\u6211\u521B\u5EFA\u7684",key:"0"},{label:"\u56E2\u961F\u5171\u4EAB",key:"3"},{label:"\u516C\u5171",key:"1"},{label:_t.createElement("div",null,"\u5DF2\u9009",Bn.length>0&&_t.createElement("span",{className:St.titlecount},Bn.length),Yr>0&&_t.createElement("span",{className:St.add},"+",Yr)),key:"5"}]}),_t.createElement(Ye.default,{layout:"inline",form:ai,onValuesChange:(nt,kt)=>{const Gt=Object.values(kt).some(an=>an!==null&&an!==""&&an!==void 0),Rt=kt.keyword==="";if(Ur(Gt||!Rt),Cn.page=1,(kt==null?void 0:kt.item_type)==="SHIXUN"){if(Cn.type==="5"?un(!1):un(!0),nt.keyword||nt.keyword==="")return;ai.submit()}else{if(nt!=null&&nt.courseid&&ai.setFieldsValue({tag_discipline_id:""}),un(!1),nt.keyword||nt.keyword==="")return;ai.submit()}},onFinish:nt=>{var kt;Cn.type==="3"&&(!nt.group_id||((kt=nt==null?void 0:nt.group_id)==null?void 0:kt.length)===0)?Cn.show_all_share=!0:Cn.show_all_share=null,Qi(on(on({},Cn),nt)),ao(on(on({},Cn),nt))}},_t.createElement(Ye.default.Item,{name:"courseid"},_t.createElement(Gn.Z,{className:St.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:dr})),!Ii&&_t.createElement(Ye.default.Item,{name:"tag_discipline_id"},_t.createElement(Mn.default,{className:St.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(fi=Fn==null?void 0:Fn.tag_disciplines)==null?void 0:fi.map(nt=>_t.createElement(Mn.default.Option,{key:nt.id},nt.name)))),_t.createElement(Ye.default.Item,{name:Ii?"diff":"difficulty"},_t.createElement(Mn.default,{className:St.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0},!Ii&&Fi.map(nt=>_t.createElement(Mn.default.Option,{key:nt.value},nt.name)),Ii&&Cr.map(nt=>_t.createElement(Mn.default.Option,{key:nt.value},nt.name)))),Ii&&_t.createElement(Ye.default.Item,{name:"shixun_publish_status"},_t.createElement(Mn.default,{className:St.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},Nr.map(nt=>_t.createElement(Mn.default.Option,{key:nt.value},nt.name)))),Cn.type==="3"&&!Ii&&_t.createElement(Ye.default.Item,{name:"teach_group_id"},_t.createElement(Mn.default,{className:St.selectWrapper,placeholder:"\u56E2\u961F",style:{width:118},size:"middle",showSearch:!0,allowClear:!0,filterOption:(nt,kt)=>(console.log("---",nt,kt),kt.children.toUpperCase().indexOf(nt.toUpperCase())!==-1)},Pr==null?void 0:Pr.map(nt=>_t.createElement(Mn.default.Option,{key:nt.group_id},nt.name)))),(Cn.type==="3"||Cn.type==="0")&&!Ii&&_t.createElement(Ye.default.Item,{name:"group_id"},_t.createElement(xi.default,{treeDataSimpleMode:!0,style:{width:118},className:St.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(nt,kt)=>kt.title.toUpperCase().indexOf(nt.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:Hi})),to&&_t.createElement("span",{className:St.allqingchu,onClick:Br},_t.createElement("i",{className:"iconfont icon-guanbi4"}),_t.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),_t.createElement(Ye.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},_t.createElement(Me.default.Search,{className:St.search,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u9898\u7F16\u53F7\u6216\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:_t.createElement("i",{className:`iconfont icon-sousuo9 font14 ${St.searchIcon}`,onClick:()=>ai.submit()}),onSearch:nt=>{ai.submit()}}))),_t.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},_t.createElement("div",{onClick:()=>{Cn.updated_at==="asc"?Cn.updated_at="desc":Cn.updated_at="asc",Qi(jt(on({},Cn),{page:1})),ao(jt(on({},Cn),{page:1}))}}," ",Cn.updated_at?_t.createElement("img",{src:Cn.updated_at==="asc"?ke.Z:et.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):_t.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),_t.createElement("div",{onClick:()=>{Cn.quotes==="asc"?Cn.quotes="desc":Cn.quotes="asc",Qi(jt(on({},Cn),{page:1})),ao(jt(on({},Cn),{page:1}))},style:{marginLeft:20}}," ",Cn.quotes?_t.createElement("img",{src:Cn.quotes==="asc"?ke.Z:et.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):_t.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),_t.createElement(It.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(Fn==null?void 0:Fn.items)||(Fn==null?void 0:Fn.shixun_list),pagination:!1,locale:{emptyText:_t.createElement(Xe.Z,{styles:{margin:"18px auto"},customText:yt()})},loading:Xn,rowKey:nt=>nt.id,rowSelection:{type:"checkbox",selectedRowKeys:Pt,getCheckboxProps:nt=>({disabled:nt.shixun_tag_num===1}),onSelect(nt,kt,Gt){if(kt)Ii&&Mr([...vr,nt.id]),Kn([...Pt,nt.id]),Ki([...tr,nt]),nt.identifier?dn.current.add(nt.id):lr.current.add(nt.id),wn(1),zt([...Bn,nt.id]);else{const Rt=tr.filter(Ee=>Ee.id!==nt.id);Ki(Rt);const an=Rt.map(Ee=>Ee.id);Kn([...an]),nt.identifier?dn.current.delete(nt.id):lr.current.delete(nt.id);let si=Bn.filter(Ee=>Ee!==nt.id);if(zt(si),Ii){let Ee=vr.filter(Ue=>Ue!==nt.id);Mr([...Ee])}if(Cn.type==="5"){Te(jt(on({},Cn),{list:[...si]}));return}}},onSelectAll(nt,kt,Gt){if(nt){const Rt=Gt.map(an=>an.id);Ii&&Mr([...vr,...Rt]),Ki([...tr,...Gt]),Kn([...Pt,...Rt]),zt([...Bn,...Rt]);for(const an of Gt)an.identifier?dn.current.add(an.id):lr.current.add(an.id)}else{const Rt=Gt.map(Ee=>Ee.id),an=Pt.filter(Ee=>!Rt.some(Ue=>Ue===Ee)),si=tr.filter(Ee=>!Rt.some(Ue=>Ue===Ee.id));if(Ki(si),Kn([...an]),zt([...an]),Ii){let Ee=vr.filter(Ue=>!Rt.some(Re=>Re===Ue.id));Mr([...Ee])}Cn.type==="5"&&Te(jt(on({},Cn),{list:[...an]}));for(const Ee of Rt)Ee.identifier?dn.current.delete(Ee):lr.current.delete(Ee)}}},columns:[{title:"\u8BD5\u9898\u7F16\u53F7",dataIndex:"id",key:"id",width:110,render:(nt,kt,Gt)=>{const Rt=`No.${nt}`;return _t.createElement(Ht.Z,{title:Rt},_t.createElement("span",null,Rt))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:Ii?"30%":"60%",key:"name",render:(nt,kt,Gt)=>{var Rt;return _t.createElement(Ht.Z,{title:$e(kt)},_t.createElement("span",null,_t.createElement(je.Z,{key:1,showLines:1,showTextOnly:!0,value:Ii||kt!=null&&kt.challenge_names?kt!=null&&kt.title||nt===null?"--":nt:(kt==null?void 0:kt.item_type)=="BPROGRAM"?(Rt=kt==null?void 0:kt.program_attr)==null?void 0:Rt.description:nt})))}},{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline",key:"tag_discipline",ellipsis:!0,width:150,render:(nt,kt,Gt)=>_t.createElement(Ht.Z,{title:nt},_t.createElement("span",null,nt||"- -"))},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!Ii,render:(nt,kt,Gt)=>{var Rt;return _t.createElement(Ht.Z,{title:$e(kt)},_t.createElement("span",null,nt?(Rt=nt==null?void 0:nt.split("\u3001"))==null?void 0:Rt[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!Ii,render:(nt,kt,Gt)=>_t.createElement(Ht.Z,{title:$e(kt)},_t.createElement("span",null,nt||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",width:50,render:(nt,kt,Gt)=>{var Rt,an,si,Ee;return _t.createElement(Ht.Z,{title:$e(kt)},_t.createElement("div",null,Ii||kt!=null&&kt.challenge_names?(kt==null?void 0:kt.level)||((an=(Rt=Fi==null?void 0:Fi.filter(Ue=>Ue.value===nt))==null?void 0:Rt[0])==null?void 0:an.name):(Ee=(si=Fi==null?void 0:Fi.filter(Ue=>Ue.value===nt))==null?void 0:si[0])==null?void 0:Ee.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!Ii,render:(nt,kt,Gt)=>_t.createElement(Ht.Z,{title:$e(kt)},_t.createElement("div",null,nt||"- -"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",width:74,render:(nt,kt,Gt)=>_t.createElement(Ht.Z,{title:$e(kt)},_t.createElement("div",null,Ii||kt!=null&&kt.challenge_names?(kt==null?void 0:kt.study_count)||(kt==null?void 0:kt.stu_num):nt))},{title:_t.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",_t.createElement(Ht.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},_t.createElement(Bt.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!Ii,render:(nt,kt,Gt)=>_t.createElement(Ht.Z,{title:$e(kt)},_t.createElement("div",null,nt||"- -"))},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",width:50,align:"right",render:(nt,kt,Gt)=>_t.createElement(Ht.Z,{title:$e(kt)},_t.createElement("div",{style:{flex:1,textAlign:"start"}},_t.createElement("a",{onClick:()=>{var Rt,an;wi(jt(on({},kt),{question_type:Ii||kt!=null&&kt.challenge_names?5:(an=(Rt=Zi==null?void 0:Zi.filter(si=>si.value===(kt==null?void 0:kt.item_type)))==null?void 0:Rt[0])==null?void 0:an.question_type})),Wi(!0)}},"\u67E5\u770B"),(kt==null?void 0:kt.shixun_tag_num)===1&&_t.createElement("a",{style:{marginLeft:10},onClick:()=>{ft.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:_t.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",_t.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${kt==null?void 0:kt.identifier}/challenges`)}},(kt==null?void 0:kt.shixun_name)||"--"),"\uFF1F"),onOk:()=>Xt(void 0,null,function*(){if(!He(kt==null?void 0:kt.identifier))return new Promise((Rt,an)=>{an()})})})}},"\u53D1\u5E03")))}].filter(nt=>!nt.hidden)}),_t.createElement(Wt.Z,{current:Cn.page,total:(Fn==null?void 0:Fn.items_count)||(Fn==null?void 0:Fn.shixuns_count),style:{marginBottom:20},defaultPageSize:Cn.per_page,hideOnSinglePage:!(Fn!=null&&Fn.items_count),showTotal:nt=>_t.createElement("span",null,"\u5171\xA0",_t.createElement("span",{style:{color:"#165DFF"}},nt),"\xA0\u6761\u6570\u636E"),pageSize:Cn.per_page,onChange:(nt,kt)=>{Cn.page=nt,Cn.per_page=kt,Qi(on({},Cn)),ao(on({},Cn))}}),_t.createElement("div",{className:St.bottom},_t.createElement(Kt.ZP,{className:St.no,onClick:()=>{nn(!1)}},"\u53D6\u6D88"),_t.createElement(Kt.ZP,{loading:Dt,style:{width:Dt&&75},className:St.yes,onClick:()=>Xt(void 0,null,function*(){if((Bn==null?void 0:Bn.length)<=0){ne.ZP.info("\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}di([...lr.current],[...dn.current],!0,Bn==null?void 0:Bn.length)})},"\u786E\u8BA4"))),_t.createElement(ft.default,{open:ir,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:St.previewModal,width:1e3,centered:!0,onCancel:()=>{Wi(!1)},onOk:()=>{Wi(!1)}},_t.createElement(Ke,{qitem:Li})))};var En=(0,Se.connect)(({shixunsDetail:nn,user:Hn})=>({shixunsDetail:nn,user:Hn}))(gn),Vn=De(29267),ri=De(61186),vi=De.n(ri),mn=De(59301),Ai=Object.defineProperty,Yi=Object.defineProperties,gr=Object.getOwnPropertyDescriptors,rr=Object.getOwnPropertySymbols,nr=Object.prototype.hasOwnProperty,pr=Object.prototype.propertyIsEnumerable,sr=(nn,Hn,di)=>Hn in nn?Ai(nn,Hn,{enumerable:!0,configurable:!0,writable:!0,value:di}):nn[Hn]=di,cr=(nn,Hn)=>{for(var di in Hn||(Hn={}))nr.call(Hn,di)&&sr(nn,di,Hn[di]);if(rr)for(var di of rr(Hn))pr.call(Hn,di)&&sr(nn,di,Hn[di]);return nn},Ji=(nn,Hn)=>Yi(nn,gr(Hn)),yr=(nn,Hn)=>{var di={};for(var At in nn)nr.call(nn,At)&&Hn.indexOf(At)<0&&(di[At]=nn[At]);if(nn!=null&&rr)for(var At of rr(nn))Hn.indexOf(At)<0&&pr.call(nn,At)&&(di[At]=nn[At]);return di},Ce=(nn,Hn,di)=>new Promise((At,Dt)=>{var bt=ci=>{try{yi(di.next(ci))}catch(Pn){Dt(Pn)}},ti=ci=>{try{yi(di.throw(ci))}catch(Pn){Dt(Pn)}},yi=ci=>ci.done?At(ci.value):Promise.resolve(ci.value).then(bt,ti);yi((di=di.apply(nn,Hn)).next())});const Sn=({title:nn,icon:Hn,className:di,style:At,children:Dt})=>mn.createElement("div",{className:Ft()(tt.card,di),style:At},mn.createElement("div",{className:tt.head},mn.createElement("i",{className:Hn}),mn.createElement("b",null,nn)),mn.createElement("div",{className:tt.element},Dt)),Wn=nn=>{var Hn=nn,{value:di,onChange:At}=Hn,Dt=yr(Hn,["value","onChange"]);return mn.createElement(ze.Z,Ji(cr({},Dt),{defaultValue:di,onChange:At}))},gi=({value:nn=[],onChange:Hn,params:di,className:At})=>{const[Dt,bt]=(0,ye.useState)(!1),[ti,yi]=(0,ye.useState)([]),[ci,Pn]=(0,ye.useState)(""),[fi,Cn]=(0,ye.useState)([]),[Qi,dr]=(0,ye.useState)("");(0,ye.useEffect)(()=>{Ge()},[]);function Ge(){return Ce(this,null,function*(){let Pt=yield(0,Nn.ZP)(`/api/courses/${di==null?void 0:di.coursesId}/teachers`,{method:"get",params:{homework_id:di.categoryId,limit:1e3}});Cn((Pt==null?void 0:Pt.teacher_list)||[])})}return mn.createElement(ye.Fragment,null,mn.createElement("div",{className:Ft()(tt.collaborator,At)},nn==null?void 0:nn.map(Pt=>mn.createElement(ct.Z,{align:"middle",className:`${tt.btn} ${Qi==(Pt==null?void 0:Pt.user_id)?tt.delBorder:""}`,key:Pt.user_id},mn.createElement("span",{className:"c-grey-333"},Pt==null?void 0:Pt.name),mn.createElement("span",{className:`iconfont icon-guanbi11 current ml20 c-grey-ccc ${tt.delSty}`,onMouseEnter:()=>{dr(Pt==null?void 0:Pt.user_id)},onMouseLeave:()=>{dr("")},onClick:()=>{const Kn=nn.filter(Bn=>Bn.user_id!==Pt.user_id);yi(Kn.map(Bn=>Bn.user_id)),Hn(Kn)}}))),mn.createElement(Kt.ZP,{className:tt.copHover,style:{height:38,padding:"6px 15px"},type:"primary",ghost:!0,onClick:()=>bt(!0)},"\u6DFB\u52A0\u534F\u4F5C\u8005")),mn.createElement(ft.default,{title:"\u6DFB\u52A0\u534F\u4F5C\u8005",open:Dt,onCancel:()=>bt(!1),onOk:()=>{const Pt=fi.filter(Kn=>ti.includes(Kn.user_id));Hn(Pt),bt(!1)},afterClose:()=>{Pn("")}},mn.createElement(ct.Z,{align:"middle"},mn.createElement("label",null,"\u59D3\u540D\uFF1A"),mn.createElement(Me.default.Search,{value:ci,size:"middle",style:{flex:1},onChange:Pt=>Pn(Pt.target.value)})),mn.createElement(It.default,{style:{marginTop:10,height:300,overflow:"auto"},rowSelection:{type:"checkbox",onChange:Pt=>{yi(Pt)},selectedRowKeys:ti,getCheckboxProps:Pt=>({disabled:Pt.is_collaborator})},pagination:!1,rowKey:"user_id",size:"middle",dataSource:fi.filter(Pt=>Pt.name.includes(ci)),columns:[{title:"\u59D3\u540D",dataIndex:"name"},{title:"\u89D2\u8272",dataIndex:"role"}]})))};var Zn=()=>{var nn;const Hn=(0,Se.useParams)(),di=(0,Se.useDispatch)(),[At]=Ye.default.useForm(),Dt=Ye.default.useWatch("hack_score_settings",At),bt=Ye.default.useWatch("open_code",At),ti=Ye.default.useWatch("rank_forbidden",At),yi=Ye.default.useWatch("hack_analysis",At),ci=Ye.default.useWatch("hack_answer",At),[Pn,fi]=(0,ye.useState)([]),[Cn,Qi]=(0,ye.useState)({}),[dr,Ge]=(0,ye.useState)({course_end_date:null,manage_all_group:!0,send_type:0,can_publish:!0,difficult_settings:[],difficult_count:[],unified_setting:!0}),[Pt,Kn]=(0,ye.useState)(!0),[Bn,zt]=(0,ye.useState)(!1),[Fn,zn]=(0,ye.useState)(!1),[Xn,Mi]=(0,ye.useState)({}),[ai,Li]=(0,ye.useState)(!1),[wi,ir]=(0,ye.useState)(!1),Wi=(0,ye.useRef)(!1),Ii=(0,ye.useRef)(String(Math.random()).slice(-6)),un=(nn=window.location.pathname)==null?void 0:nn.includes("add");(0,ye.useEffect)(()=>(window.addEventListener("visibilitychange",vr),()=>{window.removeEventListener("visibilitychange",vr)}),[Pn,Xn]),(0,ye.useEffect)(()=>(di({type:"globalSetting/footerToggle",payload:!1}),()=>{di({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,ye.useEffect)(()=>{Pn.length&&Dt!==void 0&&Hi()},[Dt,JSON.stringify(Pn==null?void 0:Pn.map(Zi=>Zi.id+Zi.hack_score))]),(0,ye.useEffect)(()=>{Mr(),un?Kn(!1):Yr()},[]);const vr=()=>Ce(void 0,null,function*(){var Zi;if(document.visibilityState==="visible"){ir(!0);let tr=Pn.map(lr=>lr.id),Ki=localStorage.getItem(Ii.current);Ki&&(Ki=JSON.parse(Ki),Ki=Array.isArray(Ki)?Ki:[],tr=[...tr,...Ki],localStorage.removeItem(Ii.current));const dn=yield(0,Nn.ZP)("/api/item_banks.json",{method:"get",params:{hack_item_bank_ids:tr.length?tr:-1,homework_common_id:un?null:Xn==null?void 0:Xn.homework_id}});if(dn!=null&&dn.items){const lr=(Zi=dn==null?void 0:dn.items)==null?void 0:Zi.map(vn=>{const Fi=Pn.find(Cr=>Cr.id===vn.id);return Fi?Ji(cr({},vn),{hack_score:Fi.hack_score}):vn});fi(lr)}ir(!1)}}),Mr=()=>Ce(void 0,null,function*(){const Zi=yield(0,Nn.ZP)(`/api/courses/${Hn.coursesId}/homework_commons/new.json`,{method:"get",params:{category:Hn==null?void 0:Hn.categoryId,type:5}});Zi!=null&&Zi.course_name&&Qi(Zi)}),Yr=()=>Ce(void 0,null,function*(){var Zi,tr;const Ki=yield(0,Nn.ZP)(`/api/homework_commons/${Hn==null?void 0:Hn.categoryId}/edit_hack.json`,{method:"get"});if((Ki==null?void 0:Ki.status)===0){const dn=(Zi=Ki==null?void 0:Ki.collaborators_data)==null?void 0:Zi.map(vn=>({user_id:vn.id,name:vn.real_name}));At.setFieldsValue(Ji(cr({},Ki),{user_ids:dn,rank_forbidden_start:Ki!=null&&Ki.rank_forbidden_start?vi()(Ki==null?void 0:Ki.rank_forbidden_start):"",rank_forbidden_end:Ki!=null&&Ki.rank_forbidden_end?vi()(Ki==null?void 0:Ki.rank_forbidden_end):""}));const lr=(tr=Ki==null?void 0:Ki.items)==null?void 0:tr.map((vn,Fi)=>{var Cr,Nr;return Ji(cr({},vn),{hack_score:(Nr=(Cr=Ki==null?void 0:Ki.hack_settings)==null?void 0:Cr[Fi])==null?void 0:Nr.hack_score})});fi(lr||[]),Mi(cr({},Ki))}Kn(!1)}),wn=()=>{let Zi=`/classrooms/${Hn==null?void 0:Hn.coursesId}/program_homework`;return un||(Zi=`/classrooms/${Hn==null?void 0:Hn.coursesId}/program_homework/${Hn==null?void 0:Hn.categoryId}/detail`),Zi},Pi=[{name:(Cn==null?void 0:Cn.course_name)||"",path:`/classrooms/${Cn==null?void 0:Cn.course_id}/program_homework`},{name:un?"\u7F16\u7A0B\u4F5C\u4E1A":Xn==null?void 0:Xn.name,path:wn()},{name:(un?"\u65B0\u5EFA":"\u7F16\u8F91")+"\u7F16\u7A0B\u4F5C\u4E1A"}],Gi=[{title:"\u5E8F\u53F7",dataIndex:"index",width:80,render:(Zi,tr,Ki)=>Ki+1},{title:"\u6807\u9898",dataIndex:"name",ellipsis:!0,render:Zi=>mn.createElement(Ht.Z,{placement:"topLeft",title:Zi},mn.createElement("span",null,Zi||"--"))},{title:"\u5206\u503C",dataIndex:"hack_score",render:(Zi,tr,Ki)=>mn.createElement(Ne.Z,{disabled:Dt!==2,size:"middle",min:0,precision:1,addonAfter:"\u5206",value:Zi,onChange:dn=>{Pn[Ki].hack_score=dn;const lr=Pn.reduce((vn,Fi)=>vn+Number(Fi.hack_score||0),0);At.setFieldsValue({total_score:lr.toFixed(2)}),fi([...Pn])}})},{title:"\u96BE\u5EA6",dataIndex:"difficulty",align:"center",width:90,render:Zi=>mn.createElement("span",null,Zi===1?"\u7B80\u5355":Zi===2?"\u4E2D\u7B49":"\u56F0\u96BE")},{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline",render:Zi=>mn.createElement(Ht.Z,{placement:"topLeft",title:Zi},mn.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,tr)=>mn.createElement("span",null,mn.createElement("span",{onClick:()=>Ce(void 0,null,function*(){var Ki;di({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u521D\u59CB\u5316\uFF0C\u8BF7\u7A0D\u540E..."}});let dn=yield(0,Nn.ZP)(`/api/problems/${(Ki=tr==null?void 0:tr.program_attr)==null?void 0:Ki.identifier}/start.json`,{method:"get"});(dn==null?void 0:dn.status)===0&&(0,me.xg)(`/myproblems/${dn==null?void 0:dn.identifier}?type=1&pageId=edit&backUrl=${wn()}`),di({type:"globalSetting/setGlobalLoading",payload:{show:!1}})}),className:"c-light-primary current"},"\u4F53\u9A8C"),mn.createElement("span",{onClick:()=>{var Ki;return(0,me.xg)(`/problems/newedit/${(Ki=tr==null?void 0:tr.program_attr)==null?void 0:Ki.identifier}?type=1&pageId=edit&backUrl=${window.location.pathname}`)},className:"c-light-primary current mr20 ml20"},"\u7F16\u8F91"),mn.createElement("span",{onClick:()=>{const Ki=Pn.filter(dn=>dn.id!==tr.id);fi(Ki),ne.ZP.success("\u5220\u9664\u6210\u529F")},className:"current",style:{color:"#E30000"}},"\u5220\u9664"))}],Hi=()=>{const Zi=[...Pn],tr=At.getFieldValue("total_score"),Ki=Zi==null?void 0:Zi.length;let dn=0,lr;switch(Dt){case 0:const vn=(tr/Ki).toFixed(2);Zi.map((Qt,jn)=>{dn=jn,Qt.hack_score=vn>0?vn:0}),lr=(tr-vn*(Ki-1)).toFixed(2),Zi[dn].hack_score=lr>0?lr:0;break;case 1:const Fi=[0,1,3,6];let Cr=0;const Nr=Zi.filter(Qt=>Qt.difficulty===1).length*Fi[1],to=Zi.filter(Qt=>Qt.difficulty===2).length*Fi[2],Ur=Zi.filter(Qt=>Qt.difficulty===3).length*Fi[3],Br=tr/(Nr+to+Ur);Zi.map((Qt,jn)=>{dn=jn,Qt.hack_score=(Fi[Qt.difficulty]*Br).toFixed(2),Cr=Cr+Number(Qt.hack_score)});let ao=Zi[dn].hack_score;lr=(tr-Cr+Number(ao)).toFixed(2),Zi[dn].hack_score=lr>0?lr:0;break}fi(Zi)},er=Zi=>{Wi.current=Zi,At.submit()},Pr=Zi=>Ce(void 0,null,function*(){var tr;if(!Pn.length){ne.ZP.error("\u672A\u8BBE\u7F6E\u7F16\u7A0B\u9898\uFF0C\u8BF7\u6DFB\u52A0\u7F16\u7A0B\u9898"),At.scrollToField("hack_score_settings",{behavior:"smooth",block:"center"});return}Li(!0);const Ki=[],dn=Pn.map(Fi=>(Ki.push(Fi.hack_id),{hack_id:Fi.hack_id,hack_name:Fi.name,hack_score:Fi.hack_score,difficult:Fi.difficulty})),lr=(tr=Zi==null?void 0:Zi.user_ids)==null?void 0:tr.map(Fi=>Fi.user_id),vn=yield(0,Nn.ZP)(`/api/courses/${Hn.coursesId}/homework_commons/create_hack_homework.json`,{method:"post",body:Ji(cr({},Zi),{category:un?Number(Hn==null?void 0:Hn.categoryId):null,homework_id:un?null:Xn==null?void 0:Xn.homework_id,hack_settings:dn,user_ids:lr,hack_ids:Ki})});if((vn==null?void 0:vn.status)===0)if(ne.ZP.success("\u4FDD\u5B58\u6210\u529F"),Wi.current){const Fi=cr({},vn);Ge(Fi),di({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u53D1\u5E03",selectArrs:[vn==null?void 0:vn.id],selectArrsAll:[Fi],params:Hn,detail:!0,type:2,manage_all_group:Fi==null?void 0:Fi.manage_all_group}})}else Se.history.push(`/classrooms/${Hn.coursesId}/program_homework/${vn==null?void 0:vn.id}/detail`);Li(!1)}),br=Zi=>Ce(void 0,null,function*(){if(!Zi.length){ne.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u9898");return}if(Zi.length>200){ne.ZP.warning("\u7F16\u7A0B\u9898\u6570\u91CF\u4E0D\u5F97\u8D85\u8FC7200\u9053");return}const tr=[],Ki=Pn.map(vn=>{var Fi;return(Fi=vn.program_attr)==null?void 0:Fi.origin_item_bank_id}),dn=[];Zi.forEach(vn=>{if(Ki.includes(vn)){const Fi=Pn.find(Cr=>{var Nr;return((Nr=Cr.program_attr)==null?void 0:Nr.origin_item_bank_id)===vn});dn.push(Fi)}else tr.push(vn)}),zn(!0);const lr=yield(0,Nn.ZP)("/api/problems/copy_item_banks.json",{method:"post",body:{ids:tr}});if(lr!=null&&lr.items){const vn=[...dn,...lr==null?void 0:lr.items];if(Dt===2){const Fi=vn.reduce((Cr,Nr)=>Cr+Number(Nr.hack_score||0),0);At.setFieldsValue({total_score:Fi.toFixed(2)})}fi(vn),zt(!1)}zn(!1)});return mn.createElement("div",{className:tt.wrap},mn.createElement(te.Z,{spinning:Pt},mn.createElement("div",{className:tt.center},mn.createElement(Et._b,{dataSource:Pi,className:"mb20"}),mn.createElement(Ye.default,{form:At,preserve:!1,onValuesChange:Zi=>{"total_score"in Zi&&Hi()},onFinishFailed:Zi=>Ce(void 0,null,function*(){var tr,Ki;ne.ZP.error(Zi.errorFields[0].errors[0]),At.scrollToField((Ki=(tr=Zi==null?void 0:Zi.errorFields)==null?void 0:tr[0])==null?void 0:Ki.name,{behavior:"smooth",block:"center"})}),onFinish:Pr,colon:!1,size:"large"},mn.createElement(Sn,{className:"mb20",title:"\u57FA\u672C\u4FE1\u606F",icon:"iconfont icon-jibenxinxi2"},mn.createElement(Ye.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"}]},mn.createElement(Me.default,{placeholder:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0",showCount:!0,maxLength:60})),mn.createElement(Ye.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"}]},mn.createElement(Wn,{placeholder:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u8BF4\u660E\uFF0C\u6700\u5927\u9650\u523650000\u4E2A\u5B57\u7B26",watch:!0}))),mn.createElement(Sn,{className:"mb20",title:"\u9898\u76EE\u8BBE\u7F6E",icon:"iconfont icon-timushezhi"},mn.createElement(Ye.default.Item,{label:"\u8BD5\u9898\u7F16\u7A0B\u8BED\u8A00",name:"languages",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BD5\u9898\u7F16\u7A0B\u8BED\u8A00"}]},mn.createElement(de.default.Group,null,mn.createElement(de.default,{value:"c"},"C\u8BED\u8A00"),mn.createElement(de.default,{value:"c++"},"C++\u8BED\u8A00"),mn.createElement(de.default,{value:"java"},"Java\u8BED\u8A00"),mn.createElement(de.default,{value:"python"},"Python\u8BED\u8A00"))),mn.createElement(ct.Z,{align:"middle"},mn.createElement(Ye.default.Item,{label:"\u603B\u5206\u503C",name:"total_score",rules:[{required:!0,message:"\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A"}],initialValue:100},mn.createElement(Ne.Z,{precision:1,disabled:Dt===2,min:0,style:{width:223},addonAfter:"\u5206"})),mn.createElement(Ye.default.Item,{label:"\u6D4B\u8BC4\u5355\u6B21\u62A5\u9519\u589E\u52A0\u65F6\u957F",name:"punish_time",initialValue:0,style:{marginLeft:40}},mn.createElement(Ne.Z,{min:0,style:{width:223},addonAfter:"\u5206\u949F"}))),mn.createElement(Ye.default.Item,{label:"\u8BD5\u9898\u5206\u503C",name:"hack_score_settings",initialValue:0},mn.createElement(le.ZP.Group,null,mn.createElement(le.ZP,{value:0},"\u5747\u5206\u6BD4\u4F8B"),mn.createElement(le.ZP,{style:{margin:"0 40px"},value:1},"\u96BE\u6613\u5EA6"),mn.createElement(le.ZP,{value:2},"\u81EA\u5B9A\u4E49\u5206\u503C"))),mn.createElement(ct.Z,{align:"middle"},mn.createElement("span",null,"\u9898\u76EE\u5217\u8868"),mn.createElement(Kt.ZP,{onClick:()=>zt(!0),style:{marginLeft:"auto",width:110},type:"primary",ghost:!0},"\u9009\u62E9\u7F16\u7A0B\u9898"),mn.createElement(Kt.ZP,{onClick:()=>(0,me.xg)(`/problems/newcreate?pageId=${Ii.current}`),style:{marginLeft:20,width:110},type:"primary"},"\u65B0\u589E\u7F16\u7A0B\u9898")),mn.createElement("div",{className:tt.tip},mn.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"),mn.createElement(Ye.default.Item,{name:"hack_settings",className:"mb0",initialValue:[]},mn.createElement(Yn,{dataSource:Pn,setDataSource:fi,columns:Gi,loading:wi}))),mn.createElement(Sn,{style:{marginBottom:100},title:"\u4F5C\u4E1A\u8BBE\u7F6E",icon:"iconfont icon-zuoyeshezhi"},mn.createElement("div",{className:tt.title},"\u6392\u884C\u699C\u65F6\u95F4\u540D\u6B21\u89C4\u5219"),mn.createElement("div",{className:`${tt.content} mb30`},mn.createElement(Ye.default.Item,{name:"hack_rank_rule",noStyle:!0,initialValue:0},mn.createElement(le.ZP.Group,null,mn.createElement(le.ZP,{value:0},mn.createElement("span",{className:"c-black"},"\u8017\u65F6\u65F6\u957F\u4F18\u5148"),mn.createElement("span",{className:"c-grey-666 font14"},"\uFF08\u540C\u6210\u7EE9\uFF0C\u8017\u65F6\u8D8A\u77ED\u540D\u6B21\u8D8A\u524D\uFF09")),mn.createElement(le.ZP,{style:{marginLeft:40},value:1},mn.createElement("span",{className:"c-black"},"\u5B8C\u6210\u65F6\u95F4\u70B9\u4F18\u5148"),mn.createElement("span",{className:"c-grey-666 font14"},"\uFF08\u540C\u6210\u7EE9\uFF0C\u5B8C\u6210\u65F6\u95F4\u8D8A\u65E9\u540D\u6B21\u8D8A\u524D\uFF09"))))),mn.createElement("div",{className:`${tt.title} mt30`},"\u5B66\u751F\u5B9E\u9A8C\u62A5\u544A\u4EE3\u7801\u5C55\u793A\u8BBE\u7F6E"),mn.createElement("div",{className:tt.content},mn.createElement(Ye.default.Item,{name:"show_late_code",noStyle:!0,valuePropName:"checked",initialValue:!0},mn.createElement(de.default,null,mn.createElement("span",{className:"c-black"},"\u5C55\u793A\u6240\u6709\u8BC4\u6D4B\u4EE3\u7801"),mn.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")))),mn.createElement("div",{className:`${tt.title} mt30`},"\u516C\u5F00\u8BBE\u7F6E"),mn.createElement("div",{className:tt.content},mn.createElement(Ye.default.Item,{name:"score_open",valuePropName:"checked",className:"mb0",initialValue:!1},mn.createElement(de.default,null,mn.createElement("span",{className:"c-black"},"\u516C\u5F00\u6210\u7EE9"),mn.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"))),mn.createElement(Ye.default.Item,{name:"open_code",valuePropName:"checked",className:"mb0",initialValue:!1},mn.createElement(de.default,null,mn.createElement("span",{className:"c-black"},"\u516C\u5F00\u4EE3\u7801"),mn.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"))),!!bt&&mn.createElement(Ye.default.Item,{name:"open_code_type",className:"mb0 ml25",initialValue:1},mn.createElement(le.ZP.Group,null,mn.createElement(le.ZP,{value:1},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),mn.createElement(le.ZP,{style:{marginLeft:60},value:0},"\u4EFB\u610F\u65F6\u95F4"))),mn.createElement(Ye.default.Item,{name:"rank_forbidden",valuePropName:"checked",className:"mb0",initialValue:!1},mn.createElement(de.default,null,mn.createElement("span",{className:"c-black"},"\u5F00\u542F\u5C01\u699C"),mn.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"))),!!ti&&mn.createElement(ct.Z,{align:"middle",className:"ml25"},mn.createElement(Ye.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"},mn.createElement(ge.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:me.Q8,disabledTime:me.d0})),mn.createElement(Ye.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"},mn.createElement(ge.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:me.Q8,disabledTime:me.d0}))),mn.createElement(Ye.default.Item,{name:"hack_analysis",valuePropName:"checked",className:"mb0",initialValue:!1},mn.createElement(de.default,null,mn.createElement("span",{className:"c-black"},"\u516C\u5F00\u89E3\u6790"),mn.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&&mn.createElement(Ye.default.Item,{name:"hack_analysis_type",className:"mb0 ml25",initialValue:2},mn.createElement(le.ZP.Group,null,mn.createElement(le.ZP,{value:2},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),mn.createElement(le.ZP,{value:0,style:{marginLeft:60}},"\u4EFB\u610F\u65F6\u95F4"),mn.createElement(le.ZP,{style:{marginLeft:60},value:1},"\u5B66\u751F\u901A\u8FC7\u7B54\u9898\u540E/\u672A\u901A\u8FC7\u7684\u5B66\u751F\u4F5C\u4E1A\u622A\u6B62\u540E"))),mn.createElement(Ye.default.Item,{name:"hack_answer",valuePropName:"checked",className:"mb0",initialValue:!1},mn.createElement(de.default,null,mn.createElement("span",{className:"c-black"},"\u516C\u5F00\u7B54\u6848"),mn.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u5728\u5B9E\u9A8C\u9875\u9762\u67E5\u770B\u8BD5\u9898\u7B54\u6848\uFF09"))),!!ci&&mn.createElement(Ye.default.Item,{name:"hack_answer_type",className:"mb0 ml25",initialValue:1},mn.createElement(le.ZP.Group,null,mn.createElement(le.ZP,{value:1},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),mn.createElement(le.ZP,{value:0,style:{marginLeft:60}},"\u4EFB\u610F\u65F6\u95F4")))),mn.createElement("div",{className:`${tt.title} mt30`},"\u534F\u4F5C\u8BBE\u7F6E"),mn.createElement(Ye.default.Item,{name:"user_ids",noStyle:!0,initialValue:[]},mn.createElement(gi,{params:Hn}))))),mn.createElement("div",{className:tt.fixedBtns},mn.createElement(ct.Z,{align:"middle",className:tt.center},mn.createElement(Kt.ZP,{onClick:()=>Se.history.push(wn()),style:{padding:"6px 15px"},type:"primary",ghost:!0},"\u53D6\u6D88"),mn.createElement(Kt.ZP,{loading:ai&&!Wi.current,disabled:ai&&Wi.current,onClick:()=>er(!1),style:{marginLeft:"auto",marginRight:20,padding:"6px 40px"},type:"primary",ghost:!0},"\u4FDD\u5B58\u4F5C\u4E1A"),mn.createElement(Kt.ZP,{loading:ai&&Wi.current,disabled:ai&&!Wi.current,onClick:()=>er(!0),style:{padding:"6px 19px"},type:"primary"},"\u4FDD\u5B58\u5E76\u53D1\u5E03\u4F5C\u4E1A")))),mn.createElement(En,{setScoreShow:zt,isshixuns:!1,ScoreShow:Bn,virtualId:Ii.current,isloadings:Fn,onOk:br,selectedIds:Pn.map(Zi=>{var tr;return(tr=Zi.program_attr)==null?void 0:tr.origin_item_bank_id})||[]}),mn.createElement(Vn.Z,{courseEndTime:dr==null?void 0:dr.course_end_date,onWindowBack:()=>{window.location.href=`/classrooms/${Hn==null?void 0:Hn.coursesId}/program_homework/${dr==null?void 0:dr.id}/detail`}}))}},29267:function(Un,pi,De){"use strict";var ye=De(59301),tt=De(28284),it=De(6767),Ft=De(62957),Et=De(77019),ze=De(47889),ct=De(71051),Kt=De(5269),ft=De(16326),Me=De(62673),It=De(61186),Ye=De.n(It),Ht=De(38986),Ne=De(48790),ne=De(51257),te=De(25690),de=De(73410),le=De(82264),ge=De(48716),me=De(59301),Se=Object.defineProperty,Le=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,Xe=(bn,fn,Yt)=>fn in bn?Se(bn,fn,{enumerable:!0,configurable:!0,writable:!0,value:Yt}):bn[fn]=Yt,wt=(bn,fn)=>{for(var Yt in fn||(fn={}))st.call(fn,Yt)&&Xe(bn,Yt,fn[Yt]);if(Ze)for(var Yt of Ze(fn))Ve.call(fn,Yt)&&Xe(bn,Yt,fn[Yt]);return bn},gt=(bn,fn)=>Le(bn,Ie(fn)),Nt=(bn,fn)=>{var Yt={};for(var Ln in bn)st.call(bn,Ln)&&fn.indexOf(Ln)<0&&(Yt[Ln]=bn[Ln]);if(bn!=null&&Ze)for(var Ln of Ze(bn))fn.indexOf(Ln)<0&&Ve.call(bn,Ln)&&(Yt[Ln]=bn[Ln]);return Yt},Ct=(bn,fn,Yt)=>new Promise((Ln,lt)=>{var qe=Yn=>{try{oi(Yt.next(Yn))}catch(rn){lt(rn)}},yn=Yn=>{try{oi(Yt.throw(Yn))}catch(rn){lt(rn)}},oi=Yn=>Yn.done?Ln(Yn.value):Promise.resolve(Yn.value).then(qe,yn);oi((Yt=Yt.apply(bn,fn)).next())});const ln=bn=>{var fn=bn,{classroomList:Yt,dispatch:Ln,courseEndTime:lt,onWindowBack:qe}=fn,yn=Nt(fn,["classroomList","dispatch","courseEndTime","onWindowBack"]),oi,Yn,rn,Gn,Mn,xi,Wt,Nn,St,bi,qn,je,be,we,Be,Ke,ke,et,sn,Bt,_t,vt,xt,Tt,Ut,hn,kn,xn,on,jt,Xt,gn,En,Vn,ri,vi,mn,Ai,Yi;const gr=(0,te.useParams)(),[rr]=tt.default.useForm(),[nr,pr]=(0,ye.useState)(1),[sr,cr]=(0,ye.useState)([]),[Ji,yr]=(0,ye.useState)(0),[Ce,Sn]=(0,ye.useState)(2e3),[Wn,gi]=(0,ye.useState)(!0),[hi,Zn]=(0,ye.useState)(!1),[nn,Hn]=(0,ye.useState)(!1),[di,At]=(0,ye.useState)([]),[Dt,bt]=(0,ye.useState)(!0),[ti,yi]=(0,ye.useState)(!((rn=(Yn=(oi=Yt.actionTabs)==null?void 0:oi.selectArrsAll)==null?void 0:Yn[0])!=null&&rn.send_type));let[ci,Pn]=(0,ye.useState)([0,0,0]);(0,ye.useEffect)(()=>{var Bn,zt,Fn,zn,Xn,Mi,ai,Li,wi,ir,Wi,Ii,un;if(Yt.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03")if(dr(),(Fn=(zt=(Bn=Yt.actionTabs)==null?void 0:Bn.selectArrsAll)==null?void 0:zt[0])!=null&&Fn.can_publish?Pn([...(wi=(Li=(ai=Yt.actionTabs)==null?void 0:ai.selectArrsAll)==null?void 0:Li[0])==null?void 0:wi.difficult_count]):Pn([...(Mi=(Xn=(zn=Yt.actionTabs)==null?void 0:zn.selectArrsAll)==null?void 0:Xn[0])==null?void 0:Mi.difficult_settings]),yi(!((Ii=(Wi=(ir=Yt.actionTabs)==null?void 0:ir.selectArrsAll)==null?void 0:Wi[0])!=null&&Ii.send_type)),fi(),Yt.actionTabs.type===2){const vr=(un=Yt.actionTabs.selectArrsAll)==null?void 0:un[0];bt(vr.unified_setting)}else bt(!1)},[Yt.actionTabs]),(0,ye.useEffect)(()=>{if(hi){if(nn)return;Ln({type:"classroomList/setActionTabs",payload:{}}),(0,Ne.GJ)()?(Ln({type:"classroomList/getClassroomTeacherCommonList",payload:gt(wt({},Yt.actionTabs.params),{type:1})}),Ln({type:"shixunHomeworks/getWorkList",payload:wt({},gr)})):Ln({type:"classroomList/getClassroomCommonList",payload:wt({},Yt.actionTabs.params)})}},[hi]);const fi=Bn=>Ct(void 0,null,function*(){gi(!0);const zt=yield(0,le.c_)(gt(wt({},gr),{page:Bn||nr,limit:2e4,homework_id:Yt.actionTabs.type===1?"":Yt.actionTabs.selectArrs[0]}));zt==null||zt.course_groups.map((Fn,zn)=>{Fn.key=Fn.id,Fn.title=Fn.name,Fn.disabled=Fn.is_published}),zt&&(cr([...zt==null?void 0:zt.course_groups]),yr(zt==null?void 0:zt.course_groups_count),gi(!1),Bn||rr.setFieldsValue({publish_time:Ye()(Ye()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:Ye()(Ye()(new Date).add(7,"days").format("YYYY-MM-DD HH:mm"))}))}),Cn=()=>{(0,Ne.GJ)()?Yt.actionTabs.detail?(Ln({type:"shixunHomeworks/setActionTabs",payload:{}}),Ln({type:"shixunHomeworks/getWorkList",payload:wt({},gr)}),Ln({type:"shixunHomeworks/getWorkSetting",payload:wt({},gr)})):Ln({type:"classroomList/getClassroomTeacherCommonList",payload:gt(wt({},Yt.actionTabs.params),{type:5,category:Yt.actionTabs.params.categoryId})}):Ln({type:"classroomList/getClassroomCommonList",payload:wt({},Yt.actionTabs.params)})},Qi=()=>Ct(void 0,null,function*(){var Bn,zt;if((0,Ne.Rm)()&&!((Bn=Yt.AssistantObject.hack)!=null&&Bn.can_publish)){it.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"),Kn(!1);return}const Fn=wt({},rr.getFieldsValue());if(Fn.end_time<=Fn.publish_time){it.ZP.info("\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u5927\u4E8E\u6216\u7B49\u4E8E\u53D1\u5E03\u65F6\u95F4"),Kn(!1);return}if((di==null?void 0:di.length)<=0&&!Dt&&sr.length>0){it.ZP.info("\u53D1\u5E03\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),Kn(!1);return}if(ci.reduce((Mi,ai)=>Mi+ai)===0&&!ti){it.ZP.info("\u7B80\u5355\u9002\u4E2D\u56F0\u96BE\u9898\u6570\u76F8\u52A0\u4E0D\u80FD\u4E3A0"),Kn(!1);return}let zn={homework_ids:[...Yt.actionTabs.selectArrs],group_ids:di.length>0?di.map(Mi=>Mi.id):(zt=Yt.detailCommonHomeworksList)==null?void 0:zt.course_groups,end_time:Ye()(Fn.end_time).format("YYYY-MM-DD HH:mm"),publish_time:Ye()(Fn.publish_time).format("YYYY-MM-DD HH:mm"),difficult_settings:ci==null?void 0:ci.map(Mi=>Mi),send_type:ti?"0":"1",unified_setting:!di.length};if(Kn(!0),(yield(0,Ht.ZP)(`/api/courses/${gr.coursesId}/homework_commons/publish_with_homework_list_position.json`,{method:"post",body:wt({},zn)})).status===0){if(Kn(!1),(0,ne.L9)(["\u6559\u5B66\u8BFE\u5802","\u56FE\u6587\u4F5C\u4E1A","\u7ACB\u5373\u53D1\u5E03"]),it.ZP.success("\u53D1\u5E03\u6210\u529F"),Ln({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),qe){qe();return}yn.onCallback&&yn.onCallback(),Cn(),localStorage.getItem("Noviceguide")==="0"||Ln({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:13,text:me.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 Kn(!1)}),dr=()=>{pr(1),cr([]),At([])},Ge=Ji>nr*Ce,[Pt,Kn]=(0,ye.useState)(!1);return me.createElement(Ft.default,{width:600,confirmLoading:Pt,centered:!0,title:"\u53D1\u5E03\u4F5C\u4E1A",open:Yt.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03",okText:"\u53D1\u5E03\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u53D1\u5E03",onOk:Qi,onCancel:()=>{if(dr(),Ln({type:"classroomList/setActionTabs",payload:{}}),qe){qe();return}Cn()}},me.createElement("p",{className:"tc"},"\u5B66\u751F\u5C06\u7ACB\u5373\u6536\u5230\u4F5C\u4E1A",me.createElement("br",null),'\u672C\u64CD\u4F5C\u53EA\u5BF9"\u672A\u53D1\u5E03"\u7684\u4F5C\u4E1A\u6709\u6548'),sr&&me.createElement(tt.default,{form:rr},me.createElement("div",{style:{paddingLeft:0}},Yt.actionTabs.type===2&&me.createElement(Et.Z,{style:{marginBottom:"10px"}},me.createElement("span",{className:"mr5"},"\u8BD5\u9898\u53D1\u9001:"),me.createElement(ze.ZP.Group,{value:ti,disabled:!((xi=(Mn=(Gn=Yt.actionTabs)==null?void 0:Gn.selectArrsAll)==null?void 0:Mn[0])!=null&&xi.can_publish),onChange:Bn=>{yi(Bn.target.value)}},me.createElement(ze.ZP,{value:!0},"\u5168\u90E8\u56FA\u5B9A\u8BD5\u9898"),me.createElement(ze.ZP,{className:"ml20",value:!1},"\u968F\u673A\u62BD\u53D6"))),!ti&&me.createElement(Et.Z,{style:{marginBottom:"10px"}},me.createElement("span",{style:{marginRight:65}}),me.createElement("span",null,"\u7B80\u5355\u9898\u6570 ",me.createElement(ct.Z,{value:ci[0],onChange:Bn=>{ci[0]=Bn,Pn([...ci])},min:0,disabled:!((St=(Nn=(Wt=Yt.actionTabs)==null?void 0:Wt.selectArrsAll)==null?void 0:Nn[0])!=null&&St.can_publish),placeholder:`\u6700\u5927${(be=(je=(qn=(bi=Yt.actionTabs)==null?void 0:bi.selectArrsAll)==null?void 0:qn[0])==null?void 0:je.difficult_count)==null?void 0:be[0]}`,max:(ke=(Ke=(Be=(we=Yt.actionTabs)==null?void 0:we.selectArrsAll)==null?void 0:Be[0])==null?void 0:Ke.difficult_count)==null?void 0:ke[0],style:{width:60}})),me.createElement("span",{style:{margin:"0px 40px"}},"\u9002\u4E2D\u9898\u6570 ",me.createElement(ct.Z,{value:ci[1],onChange:Bn=>{ci[1]=Bn,Pn([...ci])},min:0,disabled:!((Bt=(sn=(et=Yt.actionTabs)==null?void 0:et.selectArrsAll)==null?void 0:sn[0])!=null&&Bt.can_publish),max:(Tt=(xt=(vt=(_t=Yt.actionTabs)==null?void 0:_t.selectArrsAll)==null?void 0:vt[0])==null?void 0:xt.difficult_count)==null?void 0:Tt[1],placeholder:`\u6700\u5927${(xn=(kn=(hn=(Ut=Yt.actionTabs)==null?void 0:Ut.selectArrsAll)==null?void 0:hn[0])==null?void 0:kn.difficult_count)==null?void 0:xn[1]}`,style:{width:60}})),me.createElement("span",null,"\u56F0\u96BE\u9898\u6570 ",me.createElement(ct.Z,{value:ci[2],onChange:Bn=>{ci[2]=Bn,Pn([...ci])},min:0,disabled:!((Xt=(jt=(on=Yt.actionTabs)==null?void 0:on.selectArrsAll)==null?void 0:jt[0])!=null&&Xt.can_publish),placeholder:`\u6700\u5927${(ri=(Vn=(En=(gn=Yt.actionTabs)==null?void 0:gn.selectArrsAll)==null?void 0:En[0])==null?void 0:Vn.difficult_count)==null?void 0:ri[2]}`,max:(Yi=(Ai=(mn=(vi=Yt.actionTabs)==null?void 0:vi.selectArrsAll)==null?void 0:mn[0])==null?void 0:Ai.difficult_count)==null?void 0:Yi[2],style:{width:60}}))),me.createElement(Et.Z,{className:"mt30",align:"middle"},me.createElement(Kt.Z,null,me.createElement(tt.default.Item,{name:"publish_time",label:"\u53D1\u5E03\u65F6\u95F4"},me.createElement(ft.default,{style:{width:170,marginRight:"25px"},disabledDate:Bn=>(0,ge.Q8)(Bn,lt),disabledTime:Bn=>(0,ge.d0)(Bn),placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ye()((0,ne.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),me.createElement(Kt.Z,{className:"ml20"},me.createElement(tt.default.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4"},me.createElement(ft.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ye()((0,ne.U6)(),"HH:mm")},disabledDate:Bn=>(0,ge.Q8)(Bn,lt,rr.getFieldValue("publish_time")),disabledTime:Bn=>(0,ge.d0)(Bn,rr.getFieldValue("publish_time")),format:"YYYY-MM-DD HH:mm",allowClear:!1})))),Yt.actionTabs.type===2&&me.createElement(Et.Z,{style:{marginBottom:"10px"}},me.createElement("span",{className:"mr5"},"\u53D1\u5E03\u8BBE\u7F6E:"),me.createElement(ze.ZP.Group,{value:Dt,onChange:Bn=>{bt(Bn.target.value),At([])}},me.createElement(ze.ZP,{value:!0,disabled:!Yt.actionTabs.manage_all_group},"\u7EDF\u4E00\u53D1\u5E03"),me.createElement(ze.ZP,{className:"ml20",disabled:sr.length<=0,value:!1},"\u5206\u73ED\u53D1\u5E03"))),sr.length<=0&&Yt.actionTabs.type===2&&me.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"')),(Yt.actionTabs.type===1||!Dt)&&sr.length>0&&me.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},me.createElement("span",{style:{flex:1}},me.createElement(Me.default,{checked:di.length===sr.length,onChange:Bn=>{di.length===sr.length?At([]):At(sr.filter(zt=>!zt.is_published))}},"\u5168\u9009")," "),me.createElement("span",{style:{width:16}}),me.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",di.length||0,"\u4E2A\u5206\u73ED")),(Yt.actionTabs.type===1||!Dt)&&sr.length>0&&me.createElement(de.Z,{data:sr,selectedRowKeys:di,setSelectedRowKeys:At})))};pi.Z=(0,te.connect)(({classroomList:bn})=>({classroomList:bn}))(ln)},48716:function(Un,pi,De){"use strict";De.d(pi,{Q8:function(){return qe},d0:function(){return yn},w6:function(){return lt}});var ye=De(59301),tt=De(16326),it=De(82326),Ft=De(6767),Et=De(62957),ze=De(47889),ct=De(77019),Kt=De(5269),ft=De(25399),Me=De(62673),It=De(99571),Ye=De(61186),Ht=De.n(Ye),Ne=De(48790),ne=De(38986),te=De(89392),de=De.n(te),le=De(51257),ge=De(22982),me=De(25690),Se=De(43155),Le=De(40197),Ie=De(59229),Ze=De(3039),st=De(75736),Ve=De(59301),Xe=Object.defineProperty,wt=Object.defineProperties,gt=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,ln=Object.prototype.propertyIsEnumerable,bn=(Mn,xi,Wt)=>xi in Mn?Xe(Mn,xi,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):Mn[xi]=Wt,fn=(Mn,xi)=>{for(var Wt in xi||(xi={}))Ct.call(xi,Wt)&&bn(Mn,Wt,xi[Wt]);if(Nt)for(var Wt of Nt(xi))ln.call(xi,Wt)&&bn(Mn,Wt,xi[Wt]);return Mn},Yt=(Mn,xi)=>wt(Mn,gt(xi)),Ln=(Mn,xi,Wt)=>new Promise((Nn,St)=>{var bi=be=>{try{je(Wt.next(be))}catch(we){St(we)}},qn=be=>{try{je(Wt.throw(be))}catch(we){St(we)}},je=be=>be.done?Nn(be.value):Promise.resolve(be.value).then(bi,qn);je((Wt=Wt.apply(Mn,xi)).next())});function lt(Mn,xi){const Wt=[];for(let Nn=Mn;Nn{const Nn=MnHt()(xi).endOf("day"),bi=Mn{const Wt=parseInt(Ht()(Mn).format("HH")),Nn=parseInt(Ht()().format("HH")),St=parseInt(Ht()().format("mm"));if(!Mn)return{disabledHours:()=>lt(0,Nn),disabledMinutes:()=>lt(0,St)};if(xi){const bi=parseInt(Ht()(xi).format("HH")),qn=parseInt(Ht()(xi).format("mm"));return Ht()(Mn).isSame(Ht()(xi),"day")?{disabledHours:()=>lt(0,bi),disabledMinutes:()=>Wt<=bi?lt(0,qn):[]}:void 0}if(Ht()(Mn).isSame(Ht()(),"day"))return{disabledHours:()=>lt(0,Nn),disabledMinutes:()=>Ht()(Mn).isSame(Ht()(),"hour")&&Wt<=Nn?lt(0,St):[]}},oi=(Mn,xi)=>Mn==null?void 0:Mn.map(Wt=>{var Nn;return(Nn=xi==null?void 0:xi.find(St=>St.value===Wt))==null?void 0:Nn.id}),{RangePicker:Yn}=tt.default,{Option:rn}=it.default,Gn=({shixunHomeworks:Mn,loading:xi,dispatch:Wt,classroomList:Nn,user:St})=>{var bi,qn,je,be,we,Be,Ke,ke,et;const sn=(0,me.useParams)(),{workSetting:Bt,workList:_t,shixunWorkList:vt,headerInfo:xt,changeData:Tt}=Mn,[Ut,hn]=(0,ye.useState)(!1),[kn,xn]=(0,ye.useState)(!1);let[on,jt]=(0,ye.useState)([]),[Xt,gn]=(0,ye.useState)([]),[En,Vn]=(0,ye.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,penalty_type:Se.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[ri,vi]=(0,ye.useState)({}),[mn,Ai]=(0,ye.useState)({});(0,ye.useEffect)(()=>()=>{jt([])},[]),(0,ye.useEffect)(()=>{hn(!(0,Ne.GJ)())},[(0,Ne.GJ)()]);const Yi=()=>{Wt({type:"shixunHomeworks/getWorkSetting",payload:fn({},sn)})};(0,ye.useEffect)(()=>{if(!(Bt!=null&&Bt.course_id))return;Object.keys(En).map(function(Wn){En[Wn]=Bt[Wn]}),(!En.allow_late||!En.unified_late)&&(En.late_penalty=20,En.penalty_type=Se.Q.Percent),En.unified_setting||(En.unified_late=!1,En.unified_anonymous_comment=!1,En.unified_anonymous_appeal=!1),on=JSON.parse(JSON.stringify(Bt.group_settings.map(Wn=>Yt(fn({},Wn),{group_name:[Wn.group_name]})).filter(Wn=>Wn.publish_time!==null))),Xt=JSON.parse(JSON.stringify(Bt.allow_late_settings.map(Wn=>Yt(fn({},Wn),{group_name:[Wn.group_name]})).filter(Wn=>Wn.late_time!==null))),Vn(fn({},En));const Sn=(0,le.QE)((on==null?void 0:on.length)>0?on:[]);jt([...Sn]),(Xt==null?void 0:Xt.length)<=0?gn([{penalty_type:Se.Q.Percent,late_penalty:20}]):gn([...Xt])},[Bt]);const gr=()=>Ln(void 0,null,function*(){var Sn,Wn;if(((Sn=St==null?void 0:St.userInfo)==null?void 0:Sn.user_status)===2){(0,Le.Rd)();return}const gi=JSON.parse(JSON.stringify(En));if(gi.challenge_settings.filter(Zn=>!Zn.hide),gi.categoryId=sn.categoryId,(Wn=gi.challenge_settings)!=null&&Wn.every(Zn=>!Zn.checked)){Ft.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(console.log(on),!En.unified_setting)on=on==null?void 0:on.map(Zn=>{var nn;if(!Zn.publish_time||!Zn.end_time)throw Ft.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(!Zn.group_name)throw Ft.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Zn.group_name=typeof(Zn==null?void 0:Zn.group_name)=="string"?[Zn==null?void 0:Zn.group_name]:Zn==null?void 0:Zn.group_name,Zn.group_id=(nn=Bt.group_settings)==null?void 0:nn.filter(Hn=>{var di;return(di=Zn==null?void 0:Zn.group_name)==null?void 0:di.includes(Hn.group_name)}).map(Hn=>Hn.group_id||Hn.id).toString().split(","),Zn});else if(!En.publish_time||!En.end_time)throw Ft.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(gi.group_settings=on,En.allow_late)if(En.unified_late){if(En.late_penalty===null||En.late_penalty===void 0||En.late_penalty<0||En.late_penalty>100)throw Ft.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(!En.late_time)throw Ft.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 Xt=Xt==null?void 0:Xt.map(Zn=>{var nn,Hn;if(Zn.late_penalty===null||Zn.late_penalty===void 0||Zn.late_penalty<0||Zn.late_penalty>100)throw Ft.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(!Zn.late_time)throw Ft.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(!Zn.group_name)throw Ft.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Zn.group_name=typeof(Zn==null?void 0:Zn.group_name)=="string"?[Zn==null?void 0:Zn.group_name]:Zn==null?void 0:Zn.group_name,Zn.group_id=(Hn=(nn=Zn==null?void 0:Zn.group_name)==null?void 0:nn.map(di=>{var At,Dt;let bt=(Dt=(At=Bt.group_settings)==null?void 0:At.filter(ti=>(ti==null?void 0:ti.group_name)===di))==null?void 0:Dt[0];return bt==null?void 0:bt.group_id}))==null?void 0:Hn.toString().split(","),Zn}),gi.allow_late_settings=Xt;let hi=yield(0,st.Tr)({homework_common_ids:[parseInt(sn.categoryId)],course_id:sn.coursesId,type:"homework_common"});(hi==null?void 0:hi.student_count)===0?rr(gi):(Ai(gi),vi(hi))}),rr=Sn=>{var Wn;if(Sn.total_score===null){Ft.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(Sn!=null&&Sn.work_efficiency&&Sn.eff_score===null){Ft.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const gi=Sn.challenge_settings.reduce((nn,Hn)=>nn+Number(Hn.challenge_score),0);if((gi==null?void 0:gi.toFixed(10))!==((Wn=Sn.total_score-Sn.eff_score)==null?void 0:Wn.toFixed(10))){Ft.ZP.warning(`\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A${Sn.total_score}\u5206`);return}const hi={shixun_evaluation:Sn.shixun_evaluation,challenge_settings:Sn.challenge_settings};let Zn=()=>{var nn;const Hn=()=>Ln(void 0,null,function*(){xn(!0),(yield(0,ne.ZP)(`/api/homework_commons/${sn.categoryId}/publish_setting.json`,{method:"post",body:fn({},Sn)})).status===0&&(Ft.ZP.success("\u66F4\u65B0\u6210\u529F"),Yi(),Wt({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:fn({},sn)})),xn(!1)});!(0,te.isEqual)(Tt,hi)&&!((nn=xt==null?void 0:xt.homework_status)!=null&&nn.includes("\u672A\u53D1\u5E03"))?Et.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:Hn}):Hn()};Bt!=null&&Bt.high_resources_consume&&!(Bt!=null&&Bt.high_resources_consume_permission)?Wt({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:sn.coursesId,type:"shixun",type_id:sn.categoryId,name:Bt.homework_name,fn:()=>{Zn()}}}):Zn()},nr=(Sn,Wn,gi="group_id")=>{var hi;return Wn?Wn.find(Zn=>Zn[gi]===Sn):(hi=Bt==null?void 0:Bt.group_settings)==null?void 0:hi.find(Zn=>Zn.group_id[0]===Sn)},pr=(Bt==null?void 0:Bt.allow_late)||(Bt==null?void 0:Bt.anonymous_comment),sr=Sn=>{var Wn,gi;const hi=nr(Sn,Bt==null?void 0:Bt.allow_late_settings,"id"),Zn=nr(Sn,Bt==null?void 0:Bt.anonymous_comment_settings),nn=nr(Sn);return(Bt==null?void 0:Bt.allow_late)&&hi&&Ht()(hi==null?void 0:hi.late_time)<=Ht()()||(Bt==null?void 0:Bt.anonymous_comment)&&Zn&&(Zn==null?void 0:Zn.evaluation_start)!==null||((gi=(Ht()(nn==null?void 0:nn.end_time)<=Ht()()&&((Wn=Bt==null?void 0:Bt.allow_late_settings)==null?void 0:Wn.filter(Hn=>Hn.group_id.includes(Sn))))[0])==null?void 0:gi.late_time)!=null},cr=(0,ye.useMemo)(()=>(Bt==null?void 0:Bt.allow_late)||(Bt==null?void 0:Bt.all_group_late),[Bt,xt]),Ji=Bt==null?void 0:Bt.anonymous_comment,yr=Sn=>{if(!Sn)return!1;const Wn=nr(Sn,Bt==null?void 0:Bt.anonymous_comment_settings);return(Bt==null?void 0:Bt.anonymous_comment)&&Wn&&(Wn==null?void 0:Wn.evaluation_start)!==null},Ce=(Sn,Wn)=>{var gi,hi,Zn,nn,Hn;Sn!=null&&Sn.group_id||(Sn.group_id=oi(Sn==null?void 0:Sn.group_name,Bt==null?void 0:Bt.group_settings)),Wt({type:"classroomList/setActionTabs",payload:{key:"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",data:Sn,index:Wn,rangePickerDisabled:(hi=(gi=Sn==null?void 0:Sn.group_id)==null?void 0:gi[0])!=null&&hi.publish_time?Ut||(Ht()()<=Ht()((nn=nr((Zn=Sn==null?void 0:Sn.group_id)==null?void 0:Zn[0]))==null?void 0:nn.publish_time)?!1:[!0,sr((Hn=Sn==null?void 0:Sn.group_id)==null?void 0:Hn[0])]):!1,disabledDate:Bt==null?void 0:Bt.course_end_date}})};return Ve.createElement("section",{className:ge.Z.form},Ve.createElement("div",{className:ge.Z.title},"\u4F5C\u4E1A\u53D1\u5E03",Ve.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")),Ve.createElement("div",null,Ve.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Ve.createElement(ze.ZP.Group,{disabled:Ut||!((bi=xt==null?void 0:xt.homework_status)!=null&&bi.includes("\u672A\u53D1\u5E03"))||(0,Ne.Rm)()&&!((qn=Nn.AssistantObject.practice)!=null&&qn.can_publish),value:En.unified_setting,onChange:Sn=>{var Wn;if(!((Wn=xt==null?void 0:xt.homework_status)!=null&&Wn.includes("\u672A\u53D1\u5E03"))){Ft.ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(En.unified_setting=!En.unified_setting,En.unified_setting||(En.unified_late=!1,gn([{late_penalty:5}])),Vn(Object.assign({},En)),En.unified_setting===!1&&on==""){jt(on.concat({}));return}En.unified_setting&&(jt([]),gn([{late_penalty:5}]))}},Ve.createElement(ze.ZP,{value:!0,disabled:Ut||!(Bt!=null&&Bt.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u53D1\u5E03"),Ve.createElement(ze.ZP,{disabled:Ut||!((je=Bt==null?void 0:Bt.group_settings)!=null&&je.length),value:!1},"\u5206\u73ED\u53D1\u5E03")),((be=Bt==null?void 0:Bt.group_settings)==null?void 0:be.length)===0&&Ve.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")),En.unified_setting&&Ve.createElement("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",height:"50px",marginTop:"1px"}},Ve.createElement(ct.Z,{align:"middle"},Ve.createElement(Kt.Z,{style:{marginLeft:"23px"}},"\u53D1\u5E03\u65F6\u95F4"),Ve.createElement(Kt.Z,{className:"ml10"},Ve.createElement(tt.default,{size:"large",disabled:Ut||!((we=xt==null?void 0:xt.homework_status)!=null&&we.includes("\u672A\u53D1\u5E03")||(Be=xt==null?void 0:xt.homework_status)!=null&&Be.includes("\u672A\u5F00\u59CB"))||(0,Ne.Rm)()&&!((Ke=Nn.AssistantObject.practice)!=null&&Ke.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:Sn=>qe(Sn,Bt==null?void 0:Bt.course_end_date),disabledTime:Sn=>yn(Sn),value:En.publish_time?Ht()(En.publish_time):"",onChange:(Sn,Wn)=>{En.publish_time=Wn,(En.end_time==""||!En.end_time)&&En.unified_setting&&(En.end_time=Ht()(Sn).add(7,"days").format("YYYY-MM-DD HH:mm:ss")),Vn(Object.assign({},En))}}))),Ve.createElement(ct.Z,{align:"middle",className:"pl30"},Ve.createElement(Kt.Z,null,"\u622A\u6B62\u65F6\u95F4"),Ve.createElement(Kt.Z,{className:"ml10"},Ve.createElement(tt.default,{size:"large",style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ht()((0,le.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:(Bt==null?void 0:Bt.allow_late)&&(Bt==null?void 0:Bt.homework_status.includes("\u5DF2\u622A\u6B62"))||Ut||(Bt==null?void 0:Bt.allow_late)&&Ht()()>=Ht()(Bt==null?void 0:Bt.end_time)||(0,Ne.Rm)()&&!((ke=Nn.AssistantObject.practice)!=null&&ke.can_publish),disabledDate:Sn=>qe(Sn,Bt==null?void 0:Bt.course_end_date,En.publish_time),disabledTime:Sn=>yn(Sn,En.publish_time),value:En.end_time?Ht()(En.end_time):"",onChange:(Sn,Wn)=>{En.end_time=Wn,Vn(Object.assign({},En))}})))),!En.unified_setting&&(on==null?void 0:on.length)>0&&Ve.createElement(ct.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},on&&on.map(function(Sn,Wn){var gi,hi,Zn,nn,Hn,di,At;return Ve.createElement(Kt.Z,{span:24,key:Wn},Ve.createElement(ct.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:Wn==(on==null?void 0:on.length)-1?"0px":"10px"}},Ve.createElement("div",{style:{minWidth:85,marginRight:"15px",textAlign:"right"}},"\u53D1\u5E03\u89C4\u5219",Wn+1),Ve.createElement(it.default,{disabled:Ut||((gi=xt==null?void 0:xt.homework_status)!=null&&gi.includes("\u672A\u53D1\u5E03")&&Sn.id||Ht()(){var bt;if((0,Ne.Rm)()&&!((bt=Nn.AssistantObject.practice)!=null&&bt.can_publish)){Ft.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}on[Wn].group_name=Dt,on[Wn].group_id=Sn.group_id;const ti=(0,te.flattenDeep)(on.map(ci=>ci.group_name)),yi=Xt.map(ci=>{let Pn=(ci==null?void 0:ci.group_name)||[];return Yt(fn({},ci),{group_name:(0,te.remove)(Pn,fi=>ti.includes(fi))})});gn(yi),jt(on.slice())},maxTagCount:4,maxTagPlaceholder:Dt=>Ve.createElement("div",{style:{cursor:"pointer"},onClick:()=>Ce(Sn,Wn)},"+",Dt==null?void 0:Dt.length)},Bt.group_settings&&Bt.group_settings.map(function(Dt){if(!on.map(ti=>ti.group_name).flat().includes(Dt.group_name))return Ve.createElement(rn,{value:Dt.group_name,key:Dt.id},Dt.group_name)})),Ve.createElement("div",{className:"ml20"},Ve.createElement(Yn,{size:"large",ranges:{\u6B64\u523B:[Sn.publish_time?Ht()(Sn.publish_time):Ht()(),Ht()()]},allowClear:!1,disabled:Ut||(Ht()()<=Ht()((nn=nr((Zn=Sn==null?void 0:Sn.group_id)==null?void 0:Zn[0]))==null?void 0:nn.publish_time)?!1:[!0,sr((Hn=Sn==null?void 0:Sn.group_id)==null?void 0:Hn[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:Dt=>qe(Dt,Bt==null?void 0:Bt.course_end_date),disabledTime:Dt=>yn(Dt),showTime:{showNow:!0,format:"HH:mm",defaultValue:[Ht()((0,le.U6)(),"HH:mm"),Ht()((0,le.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:[Sn.publish_time?Ht()(Sn.publish_time):void 0,Sn.end_time?Ht()(Sn.end_time):void 0],onChange:(Dt,bt)=>{var ti;if((0,Ne.Rm)()&&!((ti=Nn.AssistantObject.practice)!=null&&ti.can_publish)){Ft.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}on[Wn].publish_time=bt[0],!Sn.end_time&&bt[0]?on[Wn].end_time=Ht()(bt[0]).add(7,"days"):on[Wn].end_time=bt[1],jt([...on])},onCalendarChange:(Dt,bt,ti)=>{if(bt!=null&&bt[0]&&!bt[1]){const yi=Ht()(bt[0]).add(7,"days");on[Wn].publish_time=bt[0],on[Wn].end_time=yi,jt([...on])}}})),!Ut&&Ve.createElement("div",{style:{display:"flex",width:"50px"}},((di=Sn==null?void 0:Sn.group_id)==null?void 0:di.length)>1&&Ve.createElement(ft.Z,{title:"\u89C4\u5219\u62C6\u5206"},Ve.createElement("i",{className:"iconfont icon-chaifen ml10",style:{cursor:"pointer",color:"#3061d0"},onClick:()=>Ce(Sn,Wn)})),on.length<((At=Bt==null?void 0:Bt.group_settings)==null?void 0:At.length)&&Ve.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var Dt;if((0,Ne.Rm)()&&!((Dt=Nn.AssistantObject.practice)!=null&&Dt.can_publish)){Ft.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}jt(on.concat({}))}}),((Sn==null?void 0:Sn.publish_time)&&Ht()(){const Dt=(0,te.cloneDeep)(Xt);Dt.forEach((bt,ti)=>{bt.group_name&&(bt.group_name=bt.group_name.filter(yi=>{var ci;return!((ci=on[Wn].group_name)!=null&&ci.includes(yi))}))}),on=on.filter((bt,ti)=>Wn!==ti),gn(Dt),jt(on.slice()),setTimeout(()=>jt(on.slice()),10)}}))))}))),Ve.createElement(ct.Z,null,Ve.createElement(Kt.Z,null,Ve.createElement("div",{className:ge.Z.title,style:{marginTop:"30px"}},"\u8865\u4EA4\u8BBE\u7F6E",Ve.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"))),Ve.createElement(Kt.Z,{span:24,style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Ve.createElement(Me.default,{checked:En.allow_late,disabled:Ut||cr,onChange:Sn=>{var Wn;if((0,Ne.Rm)()&&!((Wn=Nn.AssistantObject.practice)!=null&&Wn.can_late)){Ft.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}Sn.target.checked&&Et.default.warning({title:"\u5F00\u542F\u8865\u4EA4\u63D0\u793A",centered:!0,width:480,content:Ve.createElement("div",{style:{padding:10,background:"#f5f6f9"}},Ve.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"),Ve.createElement("div",null,"2.\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u5FC5\u987B\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\uFF1B"),Ve.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"))}),En.allow_late=!En.allow_late,Xt==""&&gn([{late_penalty:5}]),Vn(Object.assign({},En))}},Ve.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")))),(En==null?void 0:En.allow_late)&&Ve.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:"1px",color:"#666666"}},Ve.createElement("div",{style:{display:"flex"}},Ve.createElement("div",{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u65B9\u5F0F"),Ve.createElement(ze.ZP.Group,{style:{marginLeft:"20px"},disabled:Ut||(Bt==null?void 0:Bt.anonymous_comment)||(Bt==null?void 0:Bt.allow_late),value:En.unified_late,onChange:Sn=>{var Wn;if((0,Ne.Rm)()&&!((Wn=Nn.AssistantObject.practice)!=null&&Wn.can_late)){Ft.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}En.unified_late=Sn.target.value,Xt==""&&!Sn.target.value&&gn([{penalty_type:Se.Q.Percent,late_penalty:20}]),Vn(fn({},En))}},(En==null?void 0:En.unified_setting)&&Ve.createElement(ze.ZP,{value:!0,disabled:!(Bt!=null&&Bt.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u8865\u4EA4"),((et=Bt==null?void 0:Bt.group_settings)==null?void 0:et.length)>0&&Ve.createElement(ze.ZP,{value:!1},"\u5206\u73ED\u8865\u4EA4"))),En!=null&&En.unified_late?Ve.createElement(Ve.Fragment,null,Ve.createElement(ct.Z,{align:"middle",style:{marginTop:"10px"}},Ve.createElement(Kt.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u6263\u5206"),Ve.createElement(Kt.Z,{className:"ml20"},Ve.createElement(Se.Z,{disabled:Ut||Ji,value:{type:En.penalty_type,inputValue:En.late_penalty},onChange:Sn=>{var Wn;if((0,Ne.Rm)()&&!((Wn=Nn.AssistantObject.practice)!=null&&Wn.can_late)){Ft.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}Vn(Yt(fn({},En),{late_penalty:Sn.inputValue,penalty_type:Sn.type}))}})),Ve.createElement(Kt.Z,{flex:"1",className:"ml5"},Ve.createElement("span",{className:"c-grey-c ml10"},En.penalty_type===Se.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)"))),Ve.createElement(ct.Z,{align:"middle",style:{marginTop:"15px"}},Ve.createElement(Kt.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Ve.createElement(Kt.Z,{className:"ml20"},Ve.createElement(tt.default,{size:"large",allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ht()((0,le.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:Ut||Ji,value:En.late_time?Ht()(En.late_time):"",disabledDate:Sn=>qe(Sn,Bt==null?void 0:Bt.course_end_date),onChange:(Sn,Wn)=>{var gi;if((0,Ne.Rm)()&&!((gi=Nn.AssistantObject.practice)!=null&&gi.can_late)){Ft.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}En.late_time=Wn,Vn(Object.assign({},En))}})))):Xt.map(function(Sn,Wn){var gi;return Ve.createElement(Kt.Z,{span:24,key:Wn},Ve.createElement(ct.Z,{style:{display:"flex",alignItems:"center",marginTop:"10px"}},Ve.createElement("div",{style:{width:"85px",marginLeft:"27px",textAlign:"right"}},"\u8865\u4EA4\u89C4\u5219",Wn+1),Ve.createElement(it.default,{disabled:Ut||!((gi=xt==null?void 0:xt.homework_status)!=null&&gi.includes("\u672A\u53D1\u5E03"))&&Sn.id||(Bt==null?void 0:Bt.anonymous_comment),mode:"multiple",className:ge.Z.multiple_select,style:{width:"212px",marginLeft:"18px"},value:typeof Sn.group_name=="string"?[Sn.group_name]:Sn.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:hi=>{var Zn;if((0,Ne.Rm)()&&!((Zn=Nn.AssistantObject.practice)!=null&&Zn.can_late)){Ft.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}Xt[Wn].group_name=hi,Xt[Wn].group_id=Sn.group_id,gn(Xt.slice())}},Bt.group_settings&&Bt.group_settings.map(function(hi){const Zn=Xt.map(Hn=>Hn.group_name).flat(),nn=on.map(Hn=>Hn.group_name).flat();if(En!=null&&En.unified_setting){if(!Zn.includes(hi.group_name))return Ve.createElement(rn,{value:hi.group_name,key:hi.id},hi.group_name)}else if(nn.includes(hi.group_name)&&!Zn.includes(hi.group_name))return Ve.createElement(rn,{value:hi.group_name,key:hi.id},hi.group_name)})),Ve.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u6263\u5206"),Ve.createElement(Se.Z,{disabled:Ut||yr(Sn.id),value:{type:Sn.penalty_type,inputValue:Sn.late_penalty},onChange:hi=>{var Zn;if((0,Ne.Rm)()&&!((Zn=Nn.AssistantObject.practice)!=null&&Zn.can_late)){Ft.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}Xt[Wn].late_penalty=hi.inputValue,Xt[Wn].penalty_type=hi.type,gn([...Xt])}}),Ve.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Ve.createElement(tt.default,{size:"large",disabled:Ut||yr(Sn.id),style:{width:225},showTime:{format:"HH:mm",defaultValue:Ht()((0,le.U6)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:hi=>qe(hi,Bt==null?void 0:Bt.course_end_date),format:"YYYY-MM-DD HH:mm",value:Sn!=null&&Sn.late_time?Ht()(Sn.late_time):void 0,onChange:(hi,Zn)=>{var nn;if((0,Ne.Rm)()&&!((nn=Nn.AssistantObject.practice)!=null&&nn.can_late)){Ft.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}Xt[Wn].late_time=Zn,gn([...Xt])}}),!Ut&&Ve.createElement("div",{style:{display:"flex",width:"50px"}},Ve.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var hi;if((0,Ne.Rm)()&&!((hi=Nn.AssistantObject.practice)!=null&&hi.can_late)){Ft.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}gn(Xt.concat({penalty_type:Se.Q.Percent,late_penalty:20}))}}),Wn>0&&!Sn.id&&Ve.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{var hi;if((0,Ne.Rm)()&&!((hi=Nn.AssistantObject.practice)!=null&&hi.can_late)){Ft.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}Xt=Xt.filter((Zn,nn)=>Wn!==nn),gn(Xt.slice()),setTimeout(()=>gn(Xt.slice()),10)}}))))})),!Ut&&Ve.createElement(Ve.Fragment,null,Ve.createElement(It.ZP,{type:"primary",size:"large",loading:kn,style:{width:"138px",marginTop:"30px"},onClick:()=>gr()},"\u4FDD\u5B58")),Ve.createElement(Ie.Z,{onConfirm:(Sn,Wn)=>{on.splice(Sn,0,...Wn),on.splice(Sn+Wn.length,1);const gi=(0,le.QE)([...on]);jt([...gi])}}),Ve.createElement(Ze.Z,{resdata:ri,type:"shixun",okloading:kn,oktext:(ri==null?void 0:ri.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Sn=>Ln(void 0,null,function*(){xn(!0);let Wn=yield(0,ne.ZP)(`/api/courses/${sn.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"homework_common",ids:[parseInt(sn.categoryId)]}});xn(!1),(Wn==null?void 0:Wn.status)===0&&rr(mn)})}))};pi.ZP=(0,me.connect)(({shixunHomeworks:Mn,classroomList:xi,loading:Wt,user:Nn})=>({shixunHomeworks:Mn,classroomList:xi,loading:Wt.effects,user:Nn}))(Gn)},73410:function(Un,pi,De){"use strict";De.d(pi,{Z:function(){return Me}});var ye=De(59301),tt=De(37568),it=De(62673),Ft=De(77019),Et={leftdiv:"leftdiv___aBzsX",listClass:"listClass___bxIEW",spantitle:"spantitle___v_Vc4",rightdiv:"rightdiv___xWu4M"},ze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",ct=De(28426),Kt=(It,Ye,Ht)=>new Promise((Ne,ne)=>{var te=ge=>{try{le(Ht.next(ge))}catch(me){ne(me)}},de=ge=>{try{le(Ht.throw(ge))}catch(me){ne(me)}},le=ge=>ge.done?Ne(ge.value):Promise.resolve(ge.value).then(te,de);le((Ht=Ht.apply(It,Ye)).next())}),Me=({data:It,value:Ye=[],handleChangePage:Ht,className:Ne="",setSelectedRowKeys:ne,selectedRowKeys:te,onChange:de=()=>{}})=>{const[le,ge]=(0,ye.useState)([]),[me,Se]=(0,ye.useState)([]),[Le,Ie]=(0,ye.useState)([]);let[Ze,st]=(0,ye.useState)(1),[Ve,Xe]=(0,ye.useState)();return(0,ye.useEffect)(()=>{ge(It),Se([]),Ie([])},[It]),(0,ye.useEffect)(()=>{ne&&(Se(te),Ie(te))},[te]),ye.createElement("div",{className:`flex justify-between w-full ${Ne}`},ye.createElement("div",{className:Et.leftdiv},ye.createElement(tt.default.Search,{size:"middle",style:{marginBottom:"10rem"},onChange:wt=>Kt(void 0,null,function*(){ge(It.filter(gt=>{var Nt;return(Nt=gt==null?void 0:gt.name)==null?void 0:Nt.includes(wt.target.value)}))}),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),le.length===0&&ye.createElement(ct.Z,{styles:{margin:"70rem auto"},customText:"\u6682\u65E0\u5206\u73ED"}),ye.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},ye.createElement(it.default.Group,{value:me.map(wt=>`${wt.id}`),onChange:wt=>{ne(le.filter(gt=>wt.includes(`${gt.id}`)))},style:{marginTop:"10px",flexDirection:"column"}},le.map((wt,gt)=>ye.createElement(Ft.Z,{key:wt.id,style:{marginTop:"10rem",lineHeight:"24rem",display:"flex",width:"200rem"}},ye.createElement(it.default,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:wt.is_published,value:`${wt.id}`},ye.createElement("div",{className:Et.listClass},ye.createElement("span",{className:Et.spantitle,style:{width:wt.is_published?"108px":"170px"}},wt.name),wt.is_published&&ye.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03")))))))),ye.createElement("div",{className:Et.rightdiv},ye.createElement(tt.default.Search,{onChange:wt=>{Ie(me.filter(gt=>gt.name.includes(wt.target.value)))},size:"middle",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),Le.length===0&&ye.createElement(ct.Z,{imgStyles:{width:"200rem"},styles:{margin:"70rem auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),Le.length>0&&ye.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},ye.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},Le.map((wt,gt)=>ye.createElement("div",{className:"flex justify-between item-center",style:{marginTop:"10rem"},key:wt.id},ye.createElement("div",{className:"multi_ellipsis1 flex-1 minW-0",style:{margin:"0 5rem"}},wt.name),ye.createElement("img",{src:ze,className:"current",style:{height:"16rem",marginRight:"17rem"},onClick:()=>{ne(me.filter(Nt=>`${Nt.id}`!=`${wt.id}`))}})))))))}},59229:function(Un,pi,De){"use strict";De.d(pi,{Z:function(){return de}});var ye=De(59301),tt=De(25690),it=De(16326),Ft=De(62957),Et=De(37568),ze=De(6767),ct=De(77019),Kt=De(5269),ft={title_tooltip:"title_tooltip___LLdrn",multiple_select:"multiple_select___kDXUm",modal_con:"modal_con___ERnkW"},Me=De(61186),It=De.n(Me),Ye=De(51257),Ht=De(28426),Ne=De(59301);const{RangePicker:ne}=it.default,te=({dispatch:le,classroomList:ge,onConfirm:me})=>{const[Se,Le]=(0,ye.useState)([]),[Ie,Ze]=(0,ye.useState)([]),[st,Ve]=(0,ye.useState)(""),[Xe,wt]=(0,ye.useState)([!1,!1]);(0,ye.useEffect)(()=>{var Ct,ln,bn,fn;if(ge.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206"){console.log((Ct=ge.actionTabs)==null?void 0:Ct.rangePickerDisabled),(ln=ge.actionTabs)!=null&&ln.rangePickerDisabled?wt((bn=ge.actionTabs)==null?void 0:bn.rangePickerDisabled):wt([!1,!1]);let Yt=ge.actionTabs.data,Ln=(fn=Yt==null?void 0:Yt.group_name)==null?void 0:fn.map((lt,qe)=>{var yn;return{group_id:Yt==null?void 0:Yt.group_id[qe],group_name:Yt==null?void 0:Yt.group_name[qe],is_admin:Yt==null?void 0:Yt.is_admin,end_time:Yt==null?void 0:Yt.end_time,publish_time:Array.isArray(Yt==null?void 0:Yt.publish_time)?(yn=Yt==null?void 0:Yt.publish_time)==null?void 0:yn[0]:Yt==null?void 0:Yt.publish_time}});Ln&&(Le([...Ln]),Ze([...Ln]))}},[ge.actionTabs]);const gt=()=>{le({type:"classroomList/setActionTabs",payload:{}}),Ve("")},Nt=Ct=>{if(Ct){const ln=Ie==null?void 0:Ie.filter(bn=>{var fn,Yt;return(Yt=(fn=bn==null?void 0:bn.group_name)==null?void 0:fn.toLowerCase())==null?void 0:Yt.includes(Ct==null?void 0:Ct.toLowerCase())});Le(ln)}else Le(Ie)};return Ne.createElement(Ft.default,{width:980,title:Ne.createElement("div",{style:{fontWeight:"bold",display:"flex"}},Ne.createElement("div",null,"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",Ne.createElement("span",{className:ft.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")),Ne.createElement(Et.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",style:{width:220,marginLeft:"60px"},value:st,onChange:Ct=>{Ve(Ct.target.value.trim()),Nt(Ct.target.value.trim())}})),centered:!0,maskClosable:!1,open:ge.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",onCancel:()=>gt(),onOk:()=>{var Ct;if(Ie.some(bn=>!bn.end_time||!bn.publish_time)){ze.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}me((Ct=ge.actionTabs)==null?void 0:Ct.index,Ie),gt()}},Ne.createElement("div",{className:ft.modal_con},Ne.createElement(ct.Z,{style:{display:"flex",color:"#666666",padding:"5px",marginTop:"1px"}},(Se==null?void 0:Se.length)>0?Se.map(function(Ct,ln){return Ne.createElement(Kt.Z,{span:24,key:ln},Ne.createElement(ct.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:ln==(Se==null?void 0:Se.length)-1?"0px":"10px"}},Ne.createElement("div",{className:ft.multiple_select,title:Ct==null?void 0:Ct.group_name},Ct==null?void 0:Ct.group_name),Ne.createElement("div",{className:"ml20"},Ne.createElement(ne,{size:"large",allowClear:!1,disabled:Xe,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:bn=>{var fn;return(0,Ye.Q8)(bn,(fn=ge.actionTabs)==null?void 0:fn.disabledDate)},disabledTime:bn=>(0,Ye.d0)(bn),showTime:{showNow:!0,format:"HH:mm",defaultValue:[It()((0,Ye.U6)(),"HH:mm"),It()((0,Ye.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:(Ct==null?void 0:Ct.publish_time)&&[It()(Ct==null?void 0:Ct.publish_time),Ct!=null&&Ct.end_time?It()(Ct==null?void 0:Ct.end_time):void 0],onChange:(bn,fn)=>{Se[ln].publish_time=fn[0],Se[ln].end_time=fn[1],Le([...Se]),Ie.forEach(Yt=>{Yt.group_id===(Ct==null?void 0:Ct.group_id)&&(Yt.publish_time=fn[0],Yt.end_time=fn[1])}),Ze([...Ie])},onCalendarChange:(bn,fn,Yt)=>{if(fn!=null&&fn[0]&&!fn[1]){const Ln=It()(fn[0]).add(7,"days");Se[ln].publish_time=fn[0],Se[ln].end_time=Ln,Le([...Se]),Ie.forEach(lt=>{lt.group_id===(Ct==null?void 0:Ct.group_id)&&(lt.publish_time=fn[0],lt.end_time=Ln)}),Ze([...Ie])}}})),Xe[0]?Ne.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{color:"#E30000",opacity:"0.2",cursor:"not-allowed"}}):Ne.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{Se.splice(ln,1),Le([...Se]),Ie.forEach((bn,fn)=>{bn.group_id===(Ct==null?void 0:Ct.group_id)&&Ie.splice(fn,1)}),Ze([...Ie])}})))}):Ne.createElement(Ht.Z,null))))};var de=(0,tt.connect)(({classroomList:le})=>({classroomList:le}))(te)},81428:function(Un,pi,De){"use strict";De.d(pi,{AL:function(){return Se},Iy:function(){return It},Qv:function(){return Ne},ez:function(){return me},jb:function(){return Ye}});var ye=De(32834),tt=De.n(ye),it=De(11690),Ft=De.n(it);let Et=1;function ze(Ve,Xe){const wt=Ve.match(/^(\s+)(?:```)/);if(wt===null)return Xe;const gt=wt[1];return Xe.split(` `).map(Nt=>{const Ct=Nt.match(/^\s+/);if(Ct===null)return Nt;const[ln]=Ct;return ln.length>=gt.length?Nt.slice(gt.length):Nt}).join(` `)}let ct=[],Kt=["
    "];const ft=new(tt()).Renderer,Me=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function It(){ct.length=0,Kt=["
      "]}const Ye={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Ht(Ve,Xe,wt,gt){if(Xe>=Ve.length||Ve[Xe].level<=wt)return Xe;var Nt=Ve[Xe];gt.push("
    • "+Nt.text+""),Xe++;var Ct=[];return Xe=Ht(Ve,Xe,Nt.level,Ct),Ct.length>0&&(gt.push("
        "),Ct.forEach(function(ln){gt.push(ln)}),gt.push("
      ")),gt.push("
    • "),Xe=Ht(Ve,Xe,wt,gt),Xe}function Ne(){return Ht(ct,0,0,Kt),Kt.push("
    "),Kt.join("")}const ne={heading(Ve){const Xe=Me.exec(Ve);if(Et+=1,Xe)return{type:"heading",raw:Xe[0],depth:Xe[1].length,text:Xe[2]}},fences(Ve){const Xe=this.rules.block.fences.exec(Ve);if(Xe){const wt=Xe[0];let gt=ze(wt,Xe[3]||"");const Nt=Xe[2]?Xe[2].trim():Xe[2];if(["latex","katex","math"].indexOf(Nt)>=0){const Ct=le(),ln=gt;gt=Ct,ge[Ct]={type:"block",expression:ln}}return{type:"code",raw:wt,lang:Nt,text:gt}}}},te=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let de=0;const le=()=>`__special_katext_id_${de++}__`;let ge={};function me(){return ge}function Se(){de=0,ge={}}function Le(Ve){return Ve=Ve.replace(te,(Xe,wt)=>{const gt=le();return ge[gt]={type:"inline",expression:wt},gt}),Ve}const Ie=ft.listitem;ft.listitem=function(Ve){return Ie(Le(Ve))};const Ze=ft.paragraph;ft.paragraph=function(Ve){return Ze(Le(Ve))};const st=ft.tablecell;ft.tablecell=function(Ve,Xe){return st(Le(Ve),Xe)},ft.code=function(Ve,Xe,wt){const gt=(Xe||"").match(/\S*/)[0];return gt?["latex","katex","math"].indexOf(gt)>=0?`

    ${Ve}

    `:`
    ${wt?Ve:(0,it.escape)(Ve,!0)}
    `:'
    '+(wt?Ve:(0,it.escape)(Ve,!0))+"
    "},ft.heading=function(Ve,Xe,wt){let gt=this.options.headerPrefix+wt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ct.push({anchor:gt,level:Xe,text:Ve}),"'+Ve+""},tt().setOptions({silent:!0,gfm:!0,pedantic:!1}),tt().use({tokenizer:ne,renderer:ft}),pi.ZP=tt()},40197:function(Un,pi,De){"use strict";De.d(pi,{rX:function(){return Le},pW:function(){return Ie},gy:function(){return Ze},xY:function(){return Se},O5:function(){return me},hs:function(){return te},tJ:function(){return Ne},o1:function(){return ne},Rd:function(){return ge}});var ye=De(25690),tt=De(62957),it=De(37285),Ft=De(6767),Et=De(48790),ze=De(51257),ct=De(87169),Kt=De(25510),ft="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UIIBgBAgeR0AwAAjEJgAQAZCCwAIAOBBQBkILAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMxfhbOedOt7a/nKUmcrbT2aIUxned8Xaa/DhMbsi2dppk8nO3ovG27XnbemTbDmE4wgIAQhBYAEAGAgsAyEBgAQAZCCwAIAOBBQBk5DGsIaedO3dWVFRY3cpVq1atXLnS4JuNj3WwgvF7tCbHZFhxe9u2dZp8Z04uHGlhxbAbKz44F/6KB2I2sCoqKqqqqqzuajgctnoTACMWoV8xTgkBgAwEFgCQgcACADIQWABABgILAMgwe5cwJ5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AQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",Me=De.p+"static/newqrcode.a8740efb.png",It=De(32637),Ye=De(59301),Ht=(st,Ve,Xe)=>new Promise((wt,gt)=>{var Nt=bn=>{try{ln(Xe.next(bn))}catch(fn){gt(fn)}},Ct=bn=>{try{ln(Xe.throw(bn))}catch(fn){gt(fn)}},ln=bn=>bn.done?wt(bn.value):Promise.resolve(bn.value).then(Nt,Ct);ln((Xe=Xe.apply(st,Ve)).next())});const Ne=(st,Ve=!1,Xe=!1,wt="",gt=!1)=>!!(ne(st)&&de(st,Ve,Xe,wt,gt)),ne=st=>(0,Et.bg)()?!0:(st({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),te=st=>{var Ve,Xe,wt;const{user:gt}=(0,ye.getDvaApp)()._store.getState();(0,Et.bg)()&&!((Xe=(Ve=gt==null?void 0:gt.userInfo)==null?void 0:Ve.course)!=null&&Xe.course_public)&&!((wt=gt==null?void 0:gt.userInfo)!=null&&wt.profile_completed)&&st({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:"/account/profile/edit",isCurrentPage:!0}})},de=(st,Ve=!1,Xe=!0,wt="",gt=!1)=>{var Nt;const{user:Ct}=(0,ye.getDvaApp)()._store.getState();return(Nt=Ct.userInfo)!=null&&Nt.profile_completed?!0:(Xe?st({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:wt,isCurrentPage:gt}}):tt.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,ze.xg)("/account/profile/edit"),le()}}),!1)},le=()=>{tt.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()}})},ge=()=>{tt.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:Ye.createElement("div",{style:{textAlign:"center"}},Ye.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"),Ye.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:It}),Ye.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},me=()=>{var st;const{user:Ve}=(0,ye.getDvaApp)()._store.getState();return(st=Ve.userInfo)!=null&&st.professional_certification?!0:(tt.default.confirm({title:"\u63D0\u793A",centered:!0,content:Ye.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,ze.xg)("/account/certification")}}),!1)},Se=()=>(0,Et.V9)()?!0:(tt.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:Ye.createElement("div",{className:"tc",style:{marginLeft:-38}},Ye.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),Ye.createElement("img",{src:Me,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),Le=(st,Ve)=>st?!0:(tt.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:Ye.createElement("div",null,Ye.createElement("p",null,Ve||"\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"),Ye.createElement("div",{style:{marginLeft:"110px"}},Ye.createElement("img",{src:ft,width:200}),Ye.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,ze.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),Ie=st=>{tt.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:Ye.createElement("div",null,Ye.createElement("div",null,Ye.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"),Ye.createElement(it.Z,null),Ye.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Ye.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 ",Ye.createElement("a",null,st),"\u5929\u3002"),Ye.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Ye.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")),Ye.createElement("div",{style:{textAlign:"center",marginTop:30}},Ye.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Kt,alt:"\u4E8C\u7EF4\u7801",width:160})))})},Ze=(st,Ve="")=>{const{shixunsDetail:{detail:Xe}}=(0,ye.getDvaApp)()._store.getState();if((Xe==null?void 0:Xe.public)===2||(Xe==null?void 0:Xe.public)===1||(Xe==null?void 0:Xe.shixun_status)===3){let wt="";return(Xe==null?void 0:Xe.public)===2&&(wt="\u5DF2\u516C\u5F00"),(Xe==null?void 0:Xe.public)===1&&(wt="\u5F85\u5BA1\u6838"),(Xe==null?void 0:Xe.shixun_status)===3&&(wt="\u5DF2\u5173\u95ED"),tt.default.info({centered:!0,icon:Ye.createElement(ct.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:Ye.createElement("div",{className:"tc",style:{marginLeft:-38}},Ye.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},Ye.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",wt,"\uFF0C",Ve,"\u3002"),Ye.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),Ye.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Kt,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(Xe==null?void 0:Xe.shixun_status)===2?(tt.default.confirm({centered:!0,icon:Ye.createElement(ct.Z,null),title:"\u63D0\u793A",content:Ye.createElement("div",null,Ye.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",Ve,"\u3002"),Ye.createElement("br",null),Ye.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:()=>{tt.default.confirm({width:440,centered:!0,icon:Ye.createElement(ct.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:()=>Ht(void 0,null,function*(){(yield st({type:"shixunsDetail/cancelRelease",payload:{id:Xe==null?void 0:Xe.identifier}})).status!==401&&(Ft.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),st({type:"shixunsDetail/getShixunsDetail",payload:{id:Xe==null?void 0:Xe.identifier}}),st({type:"practiceSetting/getCommonData",payload:{id:Xe==null?void 0:Xe.identifier}}))})})}}),!0):!1}},99498:function(Un,pi,De){(function(ye){ye(De(89780))})(function(ye){ye.defineOption("placeholder","",function(Kt,ft,Me){var It=Me&&Me!=ye.Init;if(ft&&!It)Kt.on("blur",Et),Kt.on("change",ze),Kt.on("swapDoc",ze),ye.on(Kt.getInputField(),"compositionupdate",Kt.state.placeholderCompose=function(){Ft(Kt)}),ze(Kt);else if(!ft&&It){Kt.off("blur",Et),Kt.off("change",ze),Kt.off("swapDoc",ze),ye.off(Kt.getInputField(),"compositionupdate",Kt.state.placeholderCompose),tt(Kt);var Ye=Kt.getWrapperElement();Ye.className=Ye.className.replace(" CodeMirror-empty","")}ft&&!Kt.hasFocus()&&Et(Kt)});function tt(Kt){Kt.state.placeholder&&(Kt.state.placeholder.parentNode.removeChild(Kt.state.placeholder),Kt.state.placeholder=null)}function it(Kt){tt(Kt);var ft=Kt.state.placeholder=document.createElement("pre");ft.style.cssText="height: 0; overflow: visible",ft.style.direction=Kt.getOption("direction"),ft.className="CodeMirror-placeholder CodeMirror-line-like";var Me=Kt.getOption("placeholder");typeof Me=="string"&&(Me=document.createTextNode(Me)),ft.appendChild(Me),Kt.display.lineSpace.insertBefore(ft,Kt.display.lineSpace.firstChild)}function Ft(Kt){setTimeout(function(){var ft=!1,Me=Kt.getInputField();Me.nodeName=="TEXTAREA"?ft=!Me.value:Kt.lineCount()==1&&(ft=!/[^\u200b]/.test(Me.querySelector(".CodeMirror-line").textContent)),ft?it(Kt):tt(Kt)},20)}function Et(Kt){ct(Kt)&&it(Kt)}function ze(Kt){var ft=Kt.getWrapperElement(),Me=ct(Kt);ft.className=ft.className.replace(" CodeMirror-empty","")+(Me?" CodeMirror-empty":""),Me?it(Kt):tt(Kt)}function ct(Kt){return Kt.lineCount()===1&&Kt.getLine(0)===""}})},25717:function(Un,pi,De){(function(ye){ye(De(89780))})(function(ye){var tt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},it=ye.Pos;ye.defineOption("autoCloseBrackets",!1,function(ne,te,de){de&&de!=ye.Init&&(ne.removeKeyMap(Et),ne.state.closeBrackets=null),te&&(ze(Ft(te,"pairs")),ne.state.closeBrackets=te,ne.addKeyMap(Et))});function Ft(ne,te){return te=="pairs"&&typeof ne=="string"?ne:typeof ne=="object"&&ne[te]!=null?ne[te]:tt[te]}var Et={Backspace:ft,Enter:Me};function ze(ne){for(var te=0;te=0;ge--){var Se=le[ge].head;ne.replaceRange("",it(Se.line,Se.ch-1),it(Se.line,Se.ch+1),"+delete")}}function Me(ne){var te=Kt(ne),de=te&&Ft(te,"explode");if(!de||ne.getOption("disableInput"))return ye.Pass;for(var le=ne.listSelections(),ge=0;ge0;return{anchor:new it(ne.anchor.line,ne.anchor.ch+(te?-1:1)),head:new it(ne.head.line,ne.head.ch+(te?1:-1))}}function Ye(ne,te){var de=Kt(ne);if(!de||ne.getOption("disableInput"))return ye.Pass;var le=Ft(de,"pairs"),ge=le.indexOf(te);if(ge==-1)return ye.Pass;for(var me=Ft(de,"closeBefore"),Se=Ft(de,"triples"),Le=le.charAt(ge+1)==te,Ie=ne.listSelections(),Ze=ge%2==0,st,Ve=0;Ve=0&&ne.getRange(wt,it(wt.line,wt.ch+3))==te+te+te?gt="skipThree":gt="skip";else if(Le&&wt.ch>1&&Se.indexOf(te)>=0&&ne.getRange(it(wt.line,wt.ch-2),wt)==te+te){if(wt.ch>2&&/\bstring/.test(ne.getTokenTypeAt(it(wt.line,wt.ch-2))))return ye.Pass;gt="addFour"}else if(Le){var Ct=wt.ch==0?" ":ne.getRange(it(wt.line,wt.ch-1),wt);if(!ye.isWordChar(Nt)&&Ct!=te&&!ye.isWordChar(Ct))gt="both";else return ye.Pass}else if(Ze&&(Nt.length===0||/\s/.test(Nt)||me.indexOf(Nt)>-1))gt="both";else return ye.Pass;if(!st)st=gt;else if(st!=gt)return ye.Pass}var ln=ge%2?le.charAt(ge-1):te,bn=ge%2?te:le.charAt(ge+1);ne.operation(function(){if(st=="skip")ne.execCommand("goCharRight");else if(st=="skipThree")for(var fn=0;fn<3;fn++)ne.execCommand("goCharRight");else if(st=="surround"){for(var Yt=ne.getSelections(),fn=0;fn'"]=function(Ht){return Ft(Ht)}),ft.addKeyMap(Ye)}});var tt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],it=["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 Ft(ft){if(ft.getOption("disableInput"))return ye.Pass;for(var Me=ft.listSelections(),It=[],Ye=ft.getOption("autoCloseTags"),Ht=0;HtNe.ch&&(ge=ge.slice(0,ge.length-ne.end+Ne.ch));var Ie=ge.toLowerCase();if(!ge||ne.type=="string"&&(ne.end!=Ne.ch||!/[\"\']/.test(ne.string.charAt(ne.string.length-1))||ne.string.length==1)||ne.type=="tag"&&le.close||ne.string.indexOf("/")==Ne.ch-ne.start-1||Se&&ct(Se,Ie)>-1||Kt(ft,te.mode.xmlCurrentContext&&te.mode.xmlCurrentContext(de)||[],ge,Ne,!0))return ye.Pass;var Ze=typeof Ye=="object"&&Ye.emptyTags;if(Ze&&ct(Ze,ge)>-1){It[Ht]={text:"/>",newPos:ye.Pos(Ne.line,Ne.ch+2)};continue}var st=Le&&ct(Le,Ie)>-1;It[Ht]={indent:st,text:">"+(st?` `:"")+"",newPos:st?ye.Pos(Ne.line+1,0):ye.Pos(Ne.line,Ne.ch+1)}}for(var Ve=typeof Ye=="object"&&Ye.dontIndentOnAutoClose,Ht=Me.length-1;Ht>=0;Ht--){var Xe=It[Ht];ft.replaceRange(Xe.text,Me[Ht].head,Me[Ht].anchor,"+insert");var wt=ft.listSelections().slice(0);wt[Ht]={head:Xe.newPos,anchor:Xe.newPos},ft.setSelections(wt),!Ve&&Xe.indent&&(ft.indentLine(Xe.newPos.line,null,!0),ft.indentLine(Xe.newPos.line+1,null,!0))}}function Et(ft,Me){for(var It=ft.listSelections(),Ye=[],Ht=Me?"/":""&&(Se+=">"),Ye[te]=Se}if(ft.replaceSelections(Ye),It=ft.listSelections(),!ne)for(var te=0;te=0&&Me[de]==It;de--)++te;Ye=ne.to;for(var de=1;de=de.max))return de.ch=0,de.text=de.cm.getLine(++de.line),!0}function Me(de){if(!(de.line<=de.min))return de.text=de.cm.getLine(--de.line),de.ch=de.text.length,!0}function It(de){for(;;){var le=de.text.indexOf(">",de.ch);if(le==-1){if(ft(de))continue;return}if(!Kt(de,le+1)){de.ch=le+1;continue}var ge=de.text.lastIndexOf("/",le),me=ge>-1&&!/\S/.test(de.text.slice(ge+1,le));return de.ch=le+1,me?"selfClose":"regular"}}function Ye(de){for(;;){var le=de.ch?de.text.lastIndexOf("<",de.ch-1):-1;if(le==-1){if(Me(de))continue;return}if(!Kt(de,le+1)){de.ch=le;continue}ze.lastIndex=le,de.ch=le;var ge=ze.exec(de.text);if(ge&&ge.index==le)return ge}}function Ht(de){for(;;){ze.lastIndex=de.ch;var le=ze.exec(de.text);if(!le){if(ft(de))continue;return}if(!Kt(de,le.index+1)){de.ch=le.index+1;continue}return de.ch=le.index+le[0].length,le}}function Ne(de){for(;;){var le=de.ch?de.text.lastIndexOf(">",de.ch-1):-1;if(le==-1){if(Me(de))continue;return}if(!Kt(de,le+1)){de.ch=le;continue}var ge=de.text.lastIndexOf("/",le),me=ge>-1&&!/\S/.test(de.text.slice(ge+1,le));return de.ch=le+1,me?"selfClose":"regular"}}function ne(de,le){for(var ge=[];;){var me=Ht(de),Se,Le=de.line,Ie=de.ch-(me?me[0].length:0);if(!me||!(Se=It(de)))return;if(Se!="selfClose")if(me[1]){for(var Ze=ge.length-1;Ze>=0;--Ze)if(ge[Ze]==me[2]){ge.length=Ze;break}if(Ze<0&&(!le||le==me[2]))return{tag:me[2],from:tt(Le,Ie),to:tt(de.line,de.ch)}}else ge.push(me[2])}}function te(de,le){for(var ge=[];;){var me=Ne(de);if(!me)return;if(me=="selfClose"){Ye(de);continue}var Se=de.line,Le=de.ch,Ie=Ye(de);if(!Ie)return;if(Ie[1])ge.push(Ie[2]);else{for(var Ze=ge.length-1;Ze>=0;--Ze)if(ge[Ze]==Ie[2]){ge.length=Ze;break}if(Ze<0&&(!le||le==Ie[2]))return{tag:Ie[2],from:tt(de.line,de.ch),to:tt(Se,Le)}}}}ye.registerHelper("fold","xml",function(de,le){for(var ge=new ct(de,le.line,0);;){var me=Ht(ge);if(!me||ge.line!=le.line)return;var Se=It(ge);if(!Se)return;if(!me[1]&&Se!="selfClose"){var Le=tt(ge.line,ge.ch),Ie=ne(ge,me[2]);return Ie&&it(Ie.from,Le)>0?{from:Le,to:Ie.from}:null}}}),ye.findMatchingTag=function(de,le,ge){var me=new ct(de,le.line,le.ch,ge);if(!(me.text.indexOf(">")==-1&&me.text.indexOf("<")==-1)){var Se=It(me),Le=Se&&tt(me.line,me.ch),Ie=Se&&Ye(me);if(!(!Se||!Ie||it(me,le)>0)){var Ze={from:tt(me.line,me.ch),to:Le,tag:Ie[2]};return Se=="selfClose"?{open:Ze,close:null,at:"open"}:Ie[1]?{open:te(me,Ie[2]),close:Ze,at:"close"}:(me=new ct(de,Le.line,Le.ch,ge),{open:Ze,close:ne(me,Ie[2]),at:"open"})}}},ye.findEnclosingTag=function(de,le,ge,me){for(var Se=new ct(de,le.line,le.ch,ge);;){var Le=te(Se,me);if(!Le)break;var Ie=new ct(de,le.line,le.ch,ge),Ze=ne(Ie,Le.tag);if(Ze)return{open:Le,close:Ze}}},ye.scanForClosingTag=function(de,le,ge,me){var Se=new ct(de,le.line,le.ch,me?{from:0,to:me}:null);return ne(Se,ge)}})},89780:function(Un){(function(pi,De){Un.exports=De()})(this,function(){"use strict";var pi=navigator.userAgent,De=navigator.platform,ye=/gecko\/\d/i.test(pi),tt=/MSIE \d/.test(pi),it=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(pi),Ft=/Edge\/(\d+)/.exec(pi),Et=tt||it||Ft,ze=Et&&(tt?document.documentMode||6:+(Ft||it)[1]),ct=!Ft&&/WebKit\//.test(pi),Kt=ct&&/Qt\/\d+\.\d+/.test(pi),ft=!Ft&&/Chrome\//.test(pi),Me=/Opera\//.test(pi),It=/Apple Computer/.test(navigator.vendor),Ye=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(pi),Ht=/PhantomJS/.test(pi),Ne=!Ft&&/AppleWebKit/.test(pi)&&/Mobile\/\w+/.test(pi),ne=/Android/.test(pi),te=Ne||ne||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(pi),de=Ne||/Mac/.test(De),le=/\bCrOS\b/.test(pi),ge=/win/i.test(De),me=Me&&pi.match(/Version\/(\d*\.\d*)/);me&&(me=Number(me[1])),me&&me>=15&&(Me=!1,ct=!0);var Se=de&&(Kt||Me&&(me==null||me<12.11)),Le=ye||Et&&ze>=9;function Ie(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var Ze=function(ie,ae){var ce=ie.className,he=Ie(ae).exec(ce);if(he){var pe=ce.slice(he.index+he[0].length);ie.className=ce.slice(0,he.index)+(pe?he[1]+pe:"")}};function st(ie){for(var ae=ie.childNodes.length;ae>0;--ae)ie.removeChild(ie.firstChild);return ie}function Ve(ie,ae){return st(ie).appendChild(ae)}function Xe(ie,ae,ce,he){var pe=document.createElement(ie);if(ce&&(pe.className=ce),he&&(pe.style.cssText=he),typeof ae=="string")pe.appendChild(document.createTextNode(ae));else if(ae)for(var Ae=0;Ae=ae)return Oe+(ae-Ae);Oe+=Qe-Ae,Oe+=ce-Oe%ce,Ae=Qe+1}}var qe=function(){this.id=null,this.f=null,this.time=0,this.handler=Yt(this.onTimeout,this)};qe.prototype.onTimeout=function(ie){ie.id=0,ie.time<=+new Date?ie.f():setTimeout(ie.handler,ie.time-+new Date)},qe.prototype.set=function(ie,ae){this.f=ae;var ce=+new Date+ie;(!this.id||ce=ae)return he+Math.min(Oe,ae-pe);if(pe+=Ae-he,pe+=ce-pe%ce,he=Ae+1,pe>=ae)return he}}var Wt=[""];function Nn(ie){for(;Wt.length<=ie;)Wt.push(St(Wt)+" ");return Wt[ie]}function St(ie){return ie[ie.length-1]}function bi(ie,ae){for(var ce=[],he=0;he"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||we.test(ie))}function Ke(ie,ae){return ae?ae.source.indexOf("\\w")>-1&&Be(ie)?!0:ae.test(ie):Be(ie)}function ke(ie){for(var ae in ie)if(ie.hasOwnProperty(ae)&&ie[ae])return!1;return!0}var et=/[\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 sn(ie){return ie.charCodeAt(0)>=768&&et.test(ie)}function Bt(ie,ae,ce){for(;(ce<0?ae>0:aece?-1:1;;){if(ae==ce)return ae;var pe=(ae+ce)/2,Ae=he<0?Math.ceil(pe):Math.floor(pe);if(Ae==ae)return ie(Ae)?ae:ce;ie(Ae)?ce=Ae:ae=Ae+he}}function vt(ie,ae,ce,he){if(!ie)return he(ae,ce,"ltr",0);for(var pe=!1,Ae=0;Aeae||ae==ce&&Oe.to==ae)&&(he(Math.max(Oe.from,ae),Math.min(Oe.to,ce),Oe.level==1?"rtl":"ltr",Ae),pe=!0)}pe||he(ae,ce,"ltr")}var xt=null;function Tt(ie,ae,ce){var he;xt=null;for(var pe=0;peae)return pe;Ae.to==ae&&(Ae.from!=Ae.to&&ce=="before"?he=pe:xt=pe),Ae.from==ae&&(Ae.from!=Ae.to&&ce!="before"?he=pe:xt=pe)}return he!=null?he:xt}var Ut=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ae="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ce(pt){return pt<=247?ie.charAt(pt):1424<=pt&&pt<=1524?"R":1536<=pt&&pt<=1785?ae.charAt(pt-1536):1774<=pt&&pt<=2220?"r":8192<=pt&&pt<=8203?"w":pt==8204?"b":"L"}var he=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,pe=/[stwN]/,Ae=/[LRr]/,Oe=/[Lb1n]/,Qe=/[1n]/;function _e(pt,cn,Mt){this.level=pt,this.from=cn,this.to=Mt}return function(pt,cn){var Mt=cn=="ltr"?"L":"R";if(pt.length==0||cn=="ltr"&&!he.test(pt))return!1;for(var Jn=pt.length,Rn=[],Ui=0;Ui-1&&(he[ae]=pe.slice(0,Ae).concat(pe.slice(Ae+1)))}}}function Xt(ie,ae){var ce=on(ie,ae);if(ce.length)for(var he=Array.prototype.slice.call(arguments,2),pe=0;pe0}function ri(ie){ie.prototype.on=function(ae,ce){xn(this,ae,ce)},ie.prototype.off=function(ae,ce){jt(this,ae,ce)}}function vi(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function mn(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function Ai(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function Yi(ie){vi(ie),mn(ie)}function gr(ie){return ie.target||ie.srcElement}function rr(ie){var ae=ie.which;return ae==null&&(ie.button&1?ae=1:ie.button&2?ae=3:ie.button&4&&(ae=2)),de&&ie.ctrlKey&&ae==1&&(ae=3),ae}var nr=function(){if(Et&&ze<9)return!1;var ie=Xe("div");return"draggable"in ie||"dragDrop"in ie}(),pr;function sr(ie){if(pr==null){var ae=Xe("span","\u200B");Ve(ie,Xe("span",[ae,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(pr=ae.offsetWidth<=1&&ae.offsetHeight>2&&!(Et&&ze<8))}var ce=pr?Xe("span","\u200B"):Xe("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ce.setAttribute("cm-text",""),ce}var cr;function Ji(ie){if(cr!=null)return cr;var ae=Ve(ie,document.createTextNode("A\u062EA")),ce=gt(ae,0,1).getBoundingClientRect(),he=gt(ae,1,2).getBoundingClientRect();return st(ie),!ce||ce.left==ce.right?!1:cr=he.right-ce.right<3}var yr=` b`.split(/\n/).length!=3?function(ie){for(var ae=0,ce=[],he=ie.length;ae<=he;){var pe=ie.indexOf(` `,ae);pe==-1&&(pe=ie.length);var Ae=ie.slice(ae,ie.charAt(pe-1)=="\r"?pe-1:pe),Oe=Ae.indexOf("\r");Oe!=-1?(ce.push(Ae.slice(0,Oe)),ae+=Oe+1):(ce.push(Ae),ae=pe+1)}return ce}:function(ie){return ie.split(/\r\n?|\n/)},Ce=window.getSelection?function(ie){try{return ie.selectionStart!=ie.selectionEnd}catch(ae){return!1}}:function(ie){var ae;try{ae=ie.ownerDocument.selection.createRange()}catch(ce){}return!ae||ae.parentElement()!=ie?!1:ae.compareEndPoints("StartToEnd",ae)!=0},Sn=function(){var ie=Xe("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),Wn=null;function gi(ie){if(Wn!=null)return Wn;var ae=Ve(ie,Xe("span","x")),ce=ae.getBoundingClientRect(),he=gt(ae,0,1).getBoundingClientRect();return Wn=Math.abs(ce.left-he.left)>1}var hi={},Zn={};function nn(ie,ae){arguments.length>2&&(ae.dependencies=Array.prototype.slice.call(arguments,2)),hi[ie]=ae}function Hn(ie,ae){Zn[ie]=ae}function di(ie){if(typeof ie=="string"&&Zn.hasOwnProperty(ie))ie=Zn[ie];else if(ie&&typeof ie.name=="string"&&Zn.hasOwnProperty(ie.name)){var ae=Zn[ie.name];typeof ae=="string"&&(ae={name:ae}),ie=be(ae,ie),ie.name=ae.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return di("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return di("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function At(ie,ae){ae=di(ae);var ce=hi[ae.name];if(!ce)return At(ie,"text/plain");var he=ce(ie,ae);if(Dt.hasOwnProperty(ae.name)){var pe=Dt[ae.name];for(var Ae in pe)pe.hasOwnProperty(Ae)&&(he.hasOwnProperty(Ae)&&(he["_"+Ae]=he[Ae]),he[Ae]=pe[Ae])}if(he.name=ae.name,ae.helperType&&(he.helperType=ae.helperType),ae.modeProps)for(var Oe in ae.modeProps)he[Oe]=ae.modeProps[Oe];return he}var Dt={};function bt(ie,ae){var ce=Dt.hasOwnProperty(ie)?Dt[ie]:Dt[ie]={};Ln(ae,ce)}function ti(ie,ae){if(ae===!0)return ae;if(ie.copyState)return ie.copyState(ae);var ce={};for(var he in ae){var pe=ae[he];pe instanceof Array&&(pe=pe.concat([])),ce[he]=pe}return ce}function yi(ie,ae){for(var ce;ie.innerMode&&(ce=ie.innerMode(ae),!(!ce||ce.mode==ie));)ae=ce.state,ie=ce.mode;return ce||{mode:ie,state:ae}}function ci(ie,ae,ce){return ie.startState?ie.startState(ae,ce):!0}var Pn=function(ie,ae,ce){this.pos=this.start=0,this.string=ie,this.tabSize=ae||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ce};Pn.prototype.eol=function(){return this.pos>=this.string.length},Pn.prototype.sol=function(){return this.pos==this.lineStart},Pn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Pn.prototype.next=function(){if(this.posae},Pn.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},Pn.prototype.skipToEnd=function(){this.pos=this.string.length},Pn.prototype.skipTo=function(ie){var ae=this.string.indexOf(ie,this.pos);if(ae>-1)return this.pos=ae,!0},Pn.prototype.backUp=function(ie){this.pos-=ie},Pn.prototype.column=function(){return this.lastColumnPos0?null:(Ae&&ae!==!1&&(this.pos+=Ae[0].length),Ae)}},Pn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Pn.prototype.hideFirstChars=function(ie,ae){this.lineStart+=ie;try{return ae()}finally{this.lineStart-=ie}},Pn.prototype.lookAhead=function(ie){var ae=this.lineOracle;return ae&&ae.lookAhead(ie)},Pn.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function fi(ie,ae){if(ae-=ie.first,ae<0||ae>=ie.size)throw new Error("There is no line "+(ae+ie.first)+" in the document.");for(var ce=ie;!ce.lines;)for(var he=0;;++he){var pe=ce.children[he],Ae=pe.chunkSize();if(ae=ie.first&&aece?zt(ce,fi(ie,ce).text.length):ir(ae,fi(ie,ae.line).text.length)}function ir(ie,ae){var ce=ie.ch;return ce==null||ce>ae?zt(ie.line,ae):ce<0?zt(ie.line,0):ie}function Wi(ie,ae){for(var ce=[],he=0;hethis.maxLookAhead&&(this.maxLookAhead=ie),ae},un.prototype.baseToken=function(ie){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=ie;)this.baseTokenPos+=2;var ae=this.baseTokens[this.baseTokenPos+1];return{type:ae&&ae.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-ie}},un.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},un.fromSaved=function(ie,ae,ce){return ae instanceof Ii?new un(ie,ti(ie.mode,ae.state),ce,ae.lookAhead):new un(ie,ti(ie.mode,ae),ce)},un.prototype.save=function(ie){var ae=ie!==!1?ti(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Ii(ae,this.maxLookAhead):ae};function vr(ie,ae,ce,he){var pe=[ie.state.modeGen],Ae={};br(ie,ae.text,ie.doc.mode,ce,function(pt,cn){return pe.push(pt,cn)},Ae,he);for(var Oe=ce.state,Qe=function(pt){ce.baseTokens=pe;var cn=ie.state.overlays[pt],Mt=1,Jn=0;ce.state=!0,br(ie,ae.text,cn.mode,ce,function(Rn,Ui){for(var $i=Mt;JnRn&&pe.splice(Mt,1,Rn,pe[Mt+1],mr),Mt+=2,Jn=Math.min(Rn,mr)}if(Ui)if(cn.opaque)pe.splice($i,Mt-$i,Rn,"overlay "+Ui),Mt=$i+2;else for(;$iie.options.maxHighlightLength&&ti(ie.doc.mode,he.state),Ae=vr(ie,ae,he);pe&&(he.state=pe),ae.stateAfter=he.save(!pe),ae.styles=Ae.styles,Ae.classes?ae.styleClasses=Ae.classes:ae.styleClasses&&(ae.styleClasses=null),ce===ie.doc.highlightFrontier&&(ie.doc.modeFrontier=Math.max(ie.doc.modeFrontier,++ie.doc.highlightFrontier))}return ae.styles}function Yr(ie,ae,ce){var he=ie.doc,pe=ie.display;if(!he.mode.startState)return new un(he,!0,ae);var Ae=Zi(ie,ae,ce),Oe=Ae>he.first&&fi(he,Ae-1).stateAfter,Qe=Oe?un.fromSaved(he,Oe,Ae):new un(he,ci(he.mode),Ae);return he.iter(Ae,ae,function(_e){wn(ie,_e.text,Qe);var pt=Qe.line;_e.stateAfter=pt==ae-1||pt%5==0||pt>=pe.viewFrom&&ptae.start)return Ae}throw new Error("Mode "+ie.name+" failed to advance stream.")}var Hi=function(ie,ae,ce){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=ae||null,this.state=ce};function er(ie,ae,ce,he){var pe=ie.doc,Ae=pe.mode,Oe;ae=wi(pe,ae);var Qe=fi(pe,ae.line),_e=Yr(ie,ae.line,ce),pt=new Pn(Qe.text,ie.options.tabSize,_e),cn;for(he&&(cn=[]);(he||pt.posie.options.maxHighlightLength?(Qe=!1,Oe&&wn(ie,ae,he,cn.pos),cn.pos=ae.length,Mt=null):Mt=Pr(Gi(ce,cn,he.state,Jn),Ae),Jn){var Rn=Jn[0].name;Rn&&(Mt="m-"+(Mt?Rn+" "+Mt:Rn))}if(!Qe||pt!=Mt){for(;_eOe;--Qe){if(Qe<=Ae.first)return Ae.first;var _e=fi(Ae,Qe-1),pt=_e.stateAfter;if(pt&&(!ce||Qe+(pt instanceof Ii?pt.lookAhead:0)<=Ae.modeFrontier))return Qe;var cn=lt(_e.text,null,ie.options.tabSize);(pe==null||he>cn)&&(pe=Qe-1,he=cn)}return pe}function tr(ie,ae){if(ie.modeFrontier=Math.min(ie.modeFrontier,ae),!(ie.highlightFrontierce;he--){var pe=fi(ie,he).stateAfter;if(pe&&(!(pe instanceof Ii)||he+pe.lookAhead=ae:Ae.to>ae);(he||(he=[])).push(new Fi(Oe,Ae.from,_e?null:Ae.to))}}return he}function Br(ie,ae,ce){var he;if(ie)for(var pe=0;pe=ae:Ae.to>ae);if(Qe||Ae.from==ae&&Oe.type=="bookmark"&&(!ce||Ae.marker.insertLeft)){var _e=Ae.from==null||(Oe.inclusiveLeft?Ae.from<=ae:Ae.from0&&Qe)for(var oo=0;oo0)){var cn=[_e,1],Mt=Fn(pt.from,Qe.from),Jn=Fn(pt.to,Qe.to);(Mt<0||!Oe.inclusiveLeft&&!Mt)&&cn.push({from:pt.from,to:Qe.from}),(Jn>0||!Oe.inclusiveRight&&!Jn)&&cn.push({from:Qe.to,to:pt.to}),pe.splice.apply(pe,cn),_e+=cn.length-3}}return pe}function $t(ie){var ae=ie.markedSpans;if(ae){for(var ce=0;ceae)&&(!he||yt(he,Ae.marker)<0)&&(he=Ae.marker)}return he}function Gt(ie,ae,ce,he,pe){var Ae=fi(ie,ae),Oe=dn&&Ae.markedSpans;if(Oe)for(var Qe=0;Qe=0&&Mt<=0||cn<=0&&Mt>=0)&&(cn<=0&&(_e.marker.inclusiveRight&&pe.inclusiveLeft?Fn(pt.to,ce)>=0:Fn(pt.to,ce)>0)||cn>=0&&(_e.marker.inclusiveRight&&pe.inclusiveLeft?Fn(pt.from,he)<=0:Fn(pt.from,he)<0)))return!0}}}function Rt(ie){for(var ae;ae=en(ie);)ie=ae.find(-1,!0).line;return ie}function an(ie){for(var ae;ae=nt(ie);)ie=ae.find(1,!0).line;return ie}function si(ie){for(var ae,ce;ae=nt(ie);)ie=ae.find(1,!0).line,(ce||(ce=[])).push(ie);return ce}function Ee(ie,ae){var ce=fi(ie,ae),he=Rt(ce);return ce==he?ae:Ge(he)}function Ue(ie,ae){if(ae>ie.lastLine())return ae;var ce=fi(ie,ae),he;if(!Re(ie,ce))return ae;for(;he=nt(ce);)ce=he.find(1,!0).line;return Ge(ce)+1}function Re(ie,ae){var ce=dn&&ae.markedSpans;if(ce){for(var he=void 0,pe=0;peae.maxLineLength&&(ae.maxLineLength=pe,ae.maxLine=he)})}var tn=function(ie,ae,ce){this.text=ie,Te(this,ae),this.height=ce?ce(this):1};tn.prototype.lineNo=function(){return Ge(this)},ri(tn);function An(ie,ae,ce,he){ie.text=ae,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),$t(ie),Te(ie,ce);var pe=he?he(ie):1;pe!=ie.height&&dr(ie,pe)}function In(ie){ie.parent=null,$t(ie)}var pn={},Qn={};function mi(ie,ae){if(!ie||/^\s*$/.test(ie))return null;var ce=ae.addModeClass?Qn:pn;return ce[ie]||(ce[ie]=ie.replace(/\S+/g,"cm-$&"))}function ht(ie,ae){var ce=wt("span",null,null,ct?"padding-right: .1px":null),he={pre:wt("pre",[ce],"CodeMirror-line"),content:ce,col:0,pos:0,cm:ie,trailingSpace:!1,splitSpaces:ie.getOption("lineWrapping")};ae.measure={};for(var pe=0;pe<=(ae.rest?ae.rest.length:0);pe++){var Ae=pe?ae.rest[pe-1]:ae.line,Oe=void 0;he.pos=0,he.addToken=ni,Ji(ie.display.measure)&&(Oe=hn(Ae,ie.doc.direction))&&(he.addToken=ii(he.addToken,Oe)),he.map=[];var Qe=ae!=ie.display.externalMeasured&&Ge(Ae);Ti(Ae,he,Mr(ie,Ae,Qe)),Ae.styleClasses&&(Ae.styleClasses.bgClass&&(he.bgClass=bn(Ae.styleClasses.bgClass,he.bgClass||"")),Ae.styleClasses.textClass&&(he.textClass=bn(Ae.styleClasses.textClass,he.textClass||""))),he.map.length==0&&he.map.push(0,0,he.content.appendChild(sr(ie.display.measure))),pe==0?(ae.measure.map=he.map,ae.measure.cache={}):((ae.measure.maps||(ae.measure.maps=[])).push(he.map),(ae.measure.caches||(ae.measure.caches=[])).push({}))}if(ct){var _e=he.content.lastChild;(/\bcm-tab\b/.test(_e.className)||_e.querySelector&&_e.querySelector(".cm-tab"))&&(he.content.className="cm-tab-wrap-hack")}return Xt(ie,"renderLine",ie,ae.line,he.pre),he.pre.className&&(he.textClass=bn(he.pre.className,he.textClass||"")),he}function _n(ie){var ae=Xe("span","\u2022","cm-invalidchar");return ae.title="\\u"+ie.charCodeAt(0).toString(16),ae.setAttribute("aria-label",ae.title),ae}function ni(ie,ae,ce,he,pe,Ae,Oe){if(ae){var Qe=ie.splitSpaces?On(ae,ie.trailingSpace):ae,_e=ie.cm.state.specialChars,pt=!1,cn;if(!_e.test(ae))ie.col+=ae.length,cn=document.createTextNode(Qe),ie.map.push(ie.pos,ie.pos+ae.length,cn),Et&&ze<9&&(pt=!0),ie.pos+=ae.length;else{cn=document.createDocumentFragment();for(var Mt=0;;){_e.lastIndex=Mt;var Jn=_e.exec(ae),Rn=Jn?Jn.index-Mt:ae.length-Mt;if(Rn){var Ui=document.createTextNode(Qe.slice(Mt,Mt+Rn));Et&&ze<9?cn.appendChild(Xe("span",[Ui])):cn.appendChild(Ui),ie.map.push(ie.pos,ie.pos+Rn,Ui),ie.col+=Rn,ie.pos+=Rn}if(!Jn)break;Mt+=Rn+1;var $i=void 0;if(Jn[0]==" "){var mr=ie.cm.options.tabSize,Ir=mr-ie.col%mr;$i=cn.appendChild(Xe("span",Nn(Ir),"cm-tab")),$i.setAttribute("role","presentation"),$i.setAttribute("cm-text"," "),ie.col+=Ir}else Jn[0]=="\r"||Jn[0]==` `?($i=cn.appendChild(Xe("span",Jn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),$i.setAttribute("cm-text",Jn[0]),ie.col+=1):($i=ie.cm.options.specialCharPlaceholder(Jn[0]),$i.setAttribute("cm-text",Jn[0]),Et&&ze<9?cn.appendChild(Xe("span",[$i])):cn.appendChild($i),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,$i),ie.pos++}}if(ie.trailingSpace=Qe.charCodeAt(ae.length-1)==32,ce||he||pe||pt||Ae||Oe){var $r=ce||"";he&&($r+=he),pe&&($r+=pe);var Gr=Xe("span",[cn],$r,Ae);if(Oe)for(var oo in Oe)Oe.hasOwnProperty(oo)&&oo!="style"&&oo!="class"&&Gr.setAttribute(oo,Oe[oo]);return ie.content.appendChild(Gr)}ie.content.appendChild(cn)}}function On(ie,ae){if(ie.length>1&&!/ /.test(ie))return ie;for(var ce=ae,he="",pe=0;pept&&Mt.from<=pt));Jn++);if(Mt.to>=cn)return ie(ce,he,pe,Ae,Oe,Qe,_e);ie(ce,he.slice(0,Mt.to-pt),pe,Ae,null,Qe,_e),Ae=null,he=he.slice(Mt.to-pt),pt=Mt.to}}}function Ci(ie,ae,ce,he){var pe=!he&&ce.widgetNode;pe&&ie.map.push(ie.pos,ie.pos+ae,pe),!he&&ie.cm.display.input.needsContentAttribute&&(pe||(pe=ie.content.appendChild(document.createElement("span"))),pe.setAttribute("cm-marker",ce.id)),pe&&(ie.cm.display.input.setUneditable(pe),ie.content.appendChild(pe)),ie.pos+=ae,ie.trailingSpace=!1}function Ti(ie,ae,ce){var he=ie.markedSpans,pe=ie.text,Ae=0;if(!he){for(var Oe=1;Oe_e||_o.collapsed&&Vr.to==_e&&Vr.from==_e)){if(Vr.to!=null&&Vr.to!=_e&&Rn>Vr.to&&(Rn=Vr.to,$i=""),_o.className&&(Ui+=" "+_o.className),_o.css&&(Jn=(Jn?Jn+";":"")+_o.css),_o.startStyle&&Vr.from==_e&&(mr+=" "+_o.startStyle),_o.endStyle&&Vr.to==Rn&&(oo||(oo=[])).push(_o.endStyle,Vr.to),_o.title&&(($r||($r={})).title=_o.title),_o.attributes)for(var ja in _o.attributes)($r||($r={}))[ja]=_o.attributes[ja];_o.collapsed&&(!Ir||yt(Ir.marker,_o)<0)&&(Ir=Vr)}else Vr.from>_e&&Rn>Vr.from&&(Rn=Vr.from)}if(oo)for(var Ss=0;Ss=Qe)break;for(var ul=Math.min(Qe,Rn);;){if(cn){var Ys=_e+cn.length;if(!Ir){var ps=Ys>ul?cn.slice(0,ul-_e):cn;ae.addToken(ae,ps,Mt?Mt+Ui:Ui,mr,_e+ps.length==Rn?$i:"",Jn,$r)}if(Ys>=ul){cn=cn.slice(ul-_e),_e=ul;break}_e=Ys,mr=""}cn=pe.slice(Ae,Ae=ce[pt++]),Mt=mi(ce[pt++],ae.cm.options)}}}function Ni(ie,ae,ce){this.line=ae,this.rest=si(ae),this.size=this.rest?Ge(St(this.rest))-ce+1:1,this.node=this.text=null,this.hidden=Re(ie,ae)}function Oi(ie,ae,ce){for(var he=[],pe,Ae=ae;Ae2&&Ae.push((_e.bottom+pt.top)/2-ce.top)}}Ae.push(ce.bottom-ce.top)}}function so(ie,ae,ce){if(ie.line==ae)return{map:ie.measure.map,cache:ie.measure.cache};for(var he=0;hece)return{map:ie.measure.maps[pe],cache:ie.measure.caches[pe],before:!0}}function ia(ie,ae){ae=Rt(ae);var ce=Ge(ae),he=ie.display.externalMeasured=new Ni(ie.doc,ae,ce);he.lineN=ce;var pe=he.built=ht(ie,he);return he.text=pe.pre,Ve(ie.display.lineMeasure,pe.pre),he}function po(ie,ae,ce,he){return Vo(ie,Po(ie,ae),ce,he)}function Jo(ie,ae){if(ae>=ie.display.viewFrom&&ae=ce.lineN&&aeae)&&(Ae=_e-Qe,pe=Ae-1,ae>=_e&&(Oe="right")),pe!=null){if(he=ie[pt+2],Qe==_e&&ce==(he.insertLeft?"left":"right")&&(Oe=ce),ce=="left"&&pe==0)for(;pt&&ie[pt-2]==ie[pt-3]&&ie[pt-1].insertLeft;)he=ie[(pt-=3)+2],Oe="left";if(ce=="right"&&pe==_e-Qe)for(;pt=0&&(ce=ie[pe]).left==ce.right;pe--);return ce}function Lo(ie,ae,ce,he){var pe=Yo(ae.map,ce,he),Ae=pe.node,Oe=pe.start,Qe=pe.end,_e=pe.collapse,pt;if(Ae.nodeType==3){for(var cn=0;cn<4;cn++){for(;Oe&&sn(ae.line.text.charAt(pe.coverStart+Oe));)--Oe;for(;pe.coverStart+Qe0&&(_e=he="right");var Mt;ie.options.lineWrapping&&(Mt=Ae.getClientRects()).length>1?pt=Mt[he=="right"?Mt.length-1:0]:pt=Ae.getBoundingClientRect()}if(Et&&ze<9&&!Oe&&(!pt||!pt.left&&!pt.right)){var Jn=Ae.parentNode.getClientRects()[0];Jn?pt={left:Jn.left,right:Jn.left+ya(ie.display),top:Jn.top,bottom:Jn.bottom}:pt=Go}for(var Rn=pt.top-ae.rect.top,Ui=pt.bottom-ae.rect.top,$i=(Rn+Ui)/2,mr=ae.view.measure.heights,Ir=0;Ir=he.text.length?(_e=he.text.length,pt="before"):_e<=0&&(_e=0,pt="after"),!Qe)return Oe(pt=="before"?_e-1:_e,pt=="before");function cn(Ui,$i,mr){var Ir=Qe[$i],$r=Ir.level==1;return Oe(mr?Ui-1:Ui,$r!=mr)}var Mt=Tt(Qe,_e,pt),Jn=xt,Rn=cn(_e,Mt,pt=="before");return Jn!=null&&(Rn.other=cn(_e,Jn,pt!="before")),Rn}function hr(ie,ae){var ce=0;ae=wi(ie.doc,ae),ie.options.lineWrapping||(ce=ya(ie.display)*ae.ch);var he=fi(ie.doc,ae.line),pe=ut(he)+Ar(ie.display);return{left:ce,right:ce,top:pe,bottom:pe+he.height}}function Dr(ie,ae,ce,he,pe){var Ae=zt(ie,ae,ce);return Ae.xRel=pe,he&&(Ae.outside=he),Ae}function Sr(ie,ae,ce){var he=ie.doc;if(ce+=ie.display.viewOffset,ce<0)return Dr(he.first,0,null,-1,-1);var pe=Pt(he,ce),Ae=he.first+he.size-1;if(pe>Ae)return Dr(he.first+he.size-1,fi(he,Ae).text.length,null,1,1);ae<0&&(ae=0);for(var Oe=fi(he,pe);;){var Qe=Tn(ie,Oe,pe,ae,ce),_e=kt(Oe,Qe.ch+(Qe.xRel>0||Qe.outside>0?1:0));if(!_e)return Qe;var pt=_e.find(1);if(pt.line==pe)return pt;Oe=fi(he,pe=pt.line)}}function Si(ie,ae,ce,he){he-=vo(ae);var pe=ae.text.length,Ae=_t(function(Oe){return Vo(ie,ce,Oe-1).bottom<=he},pe,0);return pe=_t(function(Oe){return Vo(ie,ce,Oe).top>he},Ae,pe),{begin:Ae,end:pe}}function Do(ie,ae,ce,he){ce||(ce=Po(ie,ae));var pe=Qo(ie,ae,Vo(ie,ce,he),"line").top;return Si(ie,ae,ce,pe)}function mt(ie,ae,ce,he){return ie.bottom<=ce?!1:ie.top>ce?!0:(he?ie.left:ie.right)>ae}function Tn(ie,ae,ce,he,pe){pe-=ut(ae);var Ae=Po(ie,ae),Oe=vo(ae),Qe=0,_e=ae.text.length,pt=!0,cn=hn(ae,ie.doc.direction);if(cn){var Mt=(ie.options.lineWrapping?ga:ha)(ie,ae,ce,Ae,cn,he,pe);pt=Mt.level!=1,Qe=pt?Mt.from:Mt.to-1,_e=pt?Mt.to:Mt.from-1}var Jn=null,Rn=null,Ui=_t(function(ko){var Vr=Vo(ie,Ae,ko);return Vr.top+=Oe,Vr.bottom+=Oe,mt(Vr,he,pe,!1)?(Vr.top<=pe&&Vr.left<=he&&(Jn=ko,Rn=Vr),!0):!1},Qe,_e),$i,mr,Ir=!1;if(Rn){var $r=he-Rn.left=oo.bottom?1:0}return Ui=Bt(ae.text,Ui,1),Dr(ce,Ui,mr,Ir,he-$i)}function ha(ie,ae,ce,he,pe,Ae,Oe){var Qe=_t(function(Mt){var Jn=pe[Mt],Rn=Jn.level!=1;return mt(wr(ie,zt(ce,Rn?Jn.to:Jn.from,Rn?"before":"after"),"line",ae,he),Ae,Oe,!0)},0,pe.length-1),_e=pe[Qe];if(Qe>0){var pt=_e.level!=1,cn=wr(ie,zt(ce,pt?_e.from:_e.to,pt?"after":"before"),"line",ae,he);mt(cn,Ae,Oe,!0)&&cn.top>Oe&&(_e=pe[Qe-1])}return _e}function ga(ie,ae,ce,he,pe,Ae,Oe){var Qe=Si(ie,ae,he,Oe),_e=Qe.begin,pt=Qe.end;/\s/.test(ae.text.charAt(pt-1))&&pt--;for(var cn=null,Mt=null,Jn=0;Jn=pt||Rn.to<=_e)){var Ui=Rn.level!=1,$i=Vo(ie,he,Ui?Math.min(pt,Rn.to)-1:Math.max(_e,Rn.from)).right,mr=$imr)&&(cn=Rn,Mt=mr)}}return cn||(cn=pe[pe.length-1]),cn.from<_e&&(cn={from:_e,to:cn.to,level:cn.level}),cn.to>pt&&(cn={from:cn.from,to:pt,level:cn.level}),cn}var aa;function sa(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(aa==null){aa=Xe("pre",null,"CodeMirror-line-like");for(var ae=0;ae<49;++ae)aa.appendChild(document.createTextNode("x")),aa.appendChild(Xe("br"));aa.appendChild(document.createTextNode("x"))}Ve(ie.measure,aa);var ce=aa.offsetHeight/50;return ce>3&&(ie.cachedTextHeight=ce),st(ie.measure),ce||1}function ya(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var ae=Xe("span","xxxxxxxxxx"),ce=Xe("pre",[ae],"CodeMirror-line-like");Ve(ie.measure,ce);var he=ae.getBoundingClientRect(),pe=(he.right-he.left)/10;return pe>2&&(ie.cachedCharWidth=pe),pe||10}function Pa(ie){for(var ae=ie.display,ce={},he={},pe=ae.gutters.clientLeft,Ae=ae.gutters.firstChild,Oe=0;Ae;Ae=Ae.nextSibling,++Oe){var Qe=ie.display.gutterSpecs[Oe].className;ce[Qe]=Ae.offsetLeft+Ae.clientLeft+pe,he[Qe]=Ae.clientWidth}return{fixedPos:hs(ae),gutterTotalWidth:ae.gutters.offsetWidth,gutterLeft:ce,gutterWidth:he,wrapperWidth:ae.wrapper.clientWidth}}function hs(ie){return ie.scroller.getBoundingClientRect().left-ie.sizer.getBoundingClientRect().left}function da(ie){var ae=sa(ie.display),ce=ie.options.lineWrapping,he=ce&&Math.max(5,ie.display.scroller.clientWidth/ya(ie.display)-3);return function(pe){if(Re(ie.doc,pe))return 0;var Ae=0;if(pe.widgets)for(var Oe=0;Oe0&&(pt=fi(ie.doc,_e.line).text).length==_e.ch){var cn=lt(pt,pt.length,ie.options.tabSize)-pt.length;_e=zt(_e.line,Math.max(0,Math.round((Ae-Xr(ie.display).left)/ya(ie.display))-cn))}return _e}function ts(ie,ae){if(ae>=ie.display.viewTo||(ae-=ie.display.viewFrom,ae<0))return null;for(var ce=ie.display.view,he=0;heae)&&(pe.updateLineNumbers=ae),ie.curOp.viewChanged=!0,ae>=pe.viewTo)dn&&Ee(ie.doc,ae)pe.viewFrom?Sa(ie):(pe.viewFrom+=he,pe.viewTo+=he);else if(ae<=pe.viewFrom&&ce>=pe.viewTo)Sa(ie);else if(ae<=pe.viewFrom){var Ae=ds(ie,ce,ce+he,1);Ae?(pe.view=pe.view.slice(Ae.index),pe.viewFrom=Ae.lineN,pe.viewTo+=he):Sa(ie)}else if(ce>=pe.viewTo){var Oe=ds(ie,ae,ae,-1);Oe?(pe.view=pe.view.slice(0,Oe.index),pe.viewTo=Oe.lineN):Sa(ie)}else{var Qe=ds(ie,ae,ae,-1),_e=ds(ie,ce,ce+he,1);Qe&&_e?(pe.view=pe.view.slice(0,Qe.index).concat(Oi(ie,Qe.lineN,_e.lineN)).concat(pe.view.slice(_e.index)),pe.viewTo+=he):Sa(ie)}var pt=pe.externalMeasured;pt&&(ce=pe.lineN&&ae=he.viewTo)){var Ae=he.view[ts(ie,ae)];if(Ae.node!=null){var Oe=Ae.changes||(Ae.changes=[]);yn(Oe,ce)==-1&&Oe.push(ce)}}}function Sa(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function ds(ie,ae,ce,he){var pe=ts(ie,ae),Ae,Oe=ie.display.view;if(!dn||ce==ie.doc.first+ie.doc.size)return{index:pe,lineN:ce};for(var Qe=ie.display.viewFrom,_e=0;_e0){if(pe==Oe.length-1)return null;Ae=Qe+Oe[pe].size-ae,pe++}else Ae=Qe-ae;ae+=Ae,ce+=Ae}for(;Ee(ie.doc,ce)!=ce;){if(pe==(he<0?0:Oe.length-1))return null;ce+=he*Oe[pe-(he<0?1:0)].size,pe+=he}return{index:pe,lineN:ce}}function ua(ie,ae,ce){var he=ie.display,pe=he.view;pe.length==0||ae>=he.viewTo||ce<=he.viewFrom?(he.view=Oi(ie,ae,ce),he.viewFrom=ae):(he.viewFrom>ae?he.view=Oi(ie,ae,he.viewFrom).concat(he.view):he.viewFromce&&(he.view=he.view.slice(0,ts(ie,ce)))),he.viewTo=ce}function cs(ie){for(var ae=ie.display.view,ce=0,he=0;he=ie.display.viewTo||Qe.to().line0?ae.blinker=setInterval(function(){ie.hasFocus()||pl(ie),ae.cursorDiv.style.visibility=(ce=!ce)?"":"hidden"},ie.options.cursorBlinkRate):ie.options.cursorBlinkRate<0&&(ae.cursorDiv.style.visibility="hidden")}}function pa(ie){ie.state.focused||(ie.display.input.focus(),qo(ie))}function xa(ie){ie.state.delayingBlurEvent=!0,setTimeout(function(){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1,pl(ie))},100)}function qo(ie,ae){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1),ie.options.readOnly!="nocursor"&&(ie.state.focused||(Xt(ie,"focus",ie,ae),ie.state.focused=!0,ln(ie.display.wrapper,"CodeMirror-focused"),!ie.curOp&&ie.display.selForContextMenu!=ie.doc.sel&&(ie.display.input.reset(),ct&&setTimeout(function(){return ie.display.input.reset(!0)},20)),ie.display.input.receivedFocus()),$o(ie))}function pl(ie,ae){ie.state.delayingBlurEvent||(ie.state.focused&&(Xt(ie,"blur",ie,ae),ie.state.focused=!1,Ze(ie.display.wrapper,"CodeMirror-focused")),clearInterval(ie.display.blinker),setTimeout(function(){ie.state.focused||(ie.display.shift=!1)},150))}function no(ie){for(var ae=ie.display,ce=ae.lineDiv.offsetTop,he=0;he.005||cn<-.005)&&(dr(pe.line,Oe),vu(pe.line),pe.rest))for(var Mt=0;Mtie.display.sizerWidth){var Jn=Math.ceil(Qe/ya(ie.display));Jn>ie.display.maxLineLength&&(ie.display.maxLineLength=Jn,ie.display.maxLine=pe.line,ie.display.maxLineChanged=!0)}}}}function vu(ie){if(ie.widgets)for(var ae=0;ae=Oe&&(Ae=Pt(ae,ut(fi(ae,_e))-ie.wrapper.clientHeight),Oe=_e)}return{from:Ae,to:Math.max(Oe,Ae+1)}}function Kl(ie,ae){if(!gn(ie,"scrollCursorIntoView")){var ce=ie.display,he=ce.sizer.getBoundingClientRect(),pe=null;if(ae.top+he.top<0?pe=!0:ae.bottom+he.top>(window.innerHeight||document.documentElement.clientHeight)&&(pe=!1),pe!=null&&!Ht){var Ae=Xe("div","\u200B",null,`position: absolute; top: `+(ae.top-ce.viewOffset-Ar(ie.display))+`px; height: `+(ae.bottom-ae.top+_r(ie)+ce.barHeight)+`px; left: `+ae.left+"px; width: "+Math.max(2,ae.right-ae.left)+"px;");ie.display.lineSpace.appendChild(Ae),Ae.scrollIntoView(pe),ie.display.lineSpace.removeChild(Ae)}}}function qs(ie,ae,ce,he){he==null&&(he=0);var pe;!ie.options.lineWrapping&&ae==ce&&(ae=ae.ch?zt(ae.line,ae.sticky=="before"?ae.ch-1:ae.ch,"after"):ae,ce=ae.sticky=="before"?zt(ae.line,ae.ch+1,"before"):ae);for(var Ae=0;Ae<5;Ae++){var Oe=!1,Qe=wr(ie,ae),_e=!ce||ce==ae?Qe:wr(ie,ce);pe={left:Math.min(Qe.left,_e.left),top:Math.min(Qe.top,_e.top)-he,right:Math.max(Qe.left,_e.left),bottom:Math.max(Qe.bottom,_e.bottom)+he};var pt=yu(ie,pe),cn=ie.doc.scrollTop,Mt=ie.doc.scrollLeft;if(pt.scrollTop!=null&&(ml(ie,pt.scrollTop),Math.abs(ie.doc.scrollTop-cn)>1&&(Oe=!0)),pt.scrollLeft!=null&&(vl(ie,pt.scrollLeft),Math.abs(ie.doc.scrollLeft-Mt)>1&&(Oe=!0)),!Oe)break}return pe}function Nl(ie,ae){var ce=yu(ie,ae);ce.scrollTop!=null&&ml(ie,ce.scrollTop),ce.scrollLeft!=null&&vl(ie,ce.scrollLeft)}function yu(ie,ae){var ce=ie.display,he=sa(ie.display);ae.top<0&&(ae.top=0);var pe=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:ce.scroller.scrollTop,Ae=mo(ie),Oe={};ae.bottom-ae.top>Ae&&(ae.bottom=ae.top+Ae);var Qe=ie.doc.height+eo(ce),_e=ae.topQe-he;if(ae.toppe+Ae){var cn=Math.min(ae.top,(pt?Qe:ae.bottom)-Ae);cn!=pe&&(Oe.scrollTop=cn)}var Mt=ie.options.fixedGutter?0:ce.gutters.offsetWidth,Jn=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:ce.scroller.scrollLeft-Mt,Rn=fo(ie)-ce.gutters.offsetWidth,Ui=ae.right-ae.left>Rn;return Ui&&(ae.right=ae.left+Rn),ae.left<10?Oe.scrollLeft=0:ae.leftRn+Jn-3&&(Oe.scrollLeft=ae.right+(Ui?0:10)-Rn),Oe}function Su(ie,ae){ae!=null&&(Gs(ie),ie.curOp.scrollTop=(ie.curOp.scrollTop==null?ie.doc.scrollTop:ie.curOp.scrollTop)+ae)}function Vs(ie){Gs(ie);var ae=ie.getCursor();ie.curOp.scrollToPos={from:ae,to:ae,margin:ie.options.cursorScrollMargin}}function Yl(ie,ae,ce){(ae!=null||ce!=null)&&Gs(ie),ae!=null&&(ie.curOp.scrollLeft=ae),ce!=null&&(ie.curOp.scrollTop=ce)}function Uo(ie,ae){Gs(ie),ie.curOp.scrollToPos=ae}function Gs(ie){var ae=ie.curOp.scrollToPos;if(ae){ie.curOp.scrollToPos=null;var ce=hr(ie,ae.from),he=hr(ie,ae.to);xu(ie,ce,he,ae.margin)}}function xu(ie,ae,ce,he){var pe=yu(ie,{left:Math.min(ae.left,ce.left),top:Math.min(ae.top,ce.top)-he,right:Math.max(ae.right,ce.right),bottom:Math.max(ae.bottom,ce.bottom)+he});Yl(ie,pe.scrollLeft,pe.scrollTop)}function ml(ie,ae){Math.abs(ie.doc.scrollTop-ae)<2||(ye||ph(ie,{top:ae}),Nu(ie,ae,!0),ye&&ph(ie),rs(ie,100))}function Nu(ie,ae,ce){ae=Math.max(0,Math.min(ie.display.scroller.scrollHeight-ie.display.scroller.clientHeight,ae)),!(ie.display.scroller.scrollTop==ae&&!ce)&&(ie.doc.scrollTop=ae,ie.display.scrollbars.setScrollTop(ae),ie.display.scroller.scrollTop!=ae&&(ie.display.scroller.scrollTop=ae))}function vl(ie,ae,ce,he){ae=Math.max(0,Math.min(ae,ie.display.scroller.scrollWidth-ie.display.scroller.clientWidth)),!((ce?ae==ie.doc.scrollLeft:Math.abs(ie.doc.scrollLeft-ae)<2)&&!he)&&(ie.doc.scrollLeft=ae,of(ie),ie.display.scroller.scrollLeft!=ae&&(ie.display.scroller.scrollLeft=ae),ie.display.scrollbars.setScrollLeft(ae))}function No(ie){var ae=ie.display,ce=ae.gutters.offsetWidth,he=Math.round(ie.doc.height+eo(ie.display));return{clientHeight:ae.scroller.clientHeight,viewHeight:ae.wrapper.clientHeight,scrollWidth:ae.scroller.scrollWidth,clientWidth:ae.scroller.clientWidth,viewWidth:ae.wrapper.clientWidth,barLeft:ie.options.fixedGutter?ce:0,docHeight:he,scrollHeight:he+_r(ie)+ae.barHeight,nativeBarWidth:ae.nativeBarWidth,gutterWidth:ce}}var Ko=function(ie,ae,ce){this.cm=ce;var he=this.vert=Xe("div",[Xe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),pe=this.horiz=Xe("div",[Xe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");he.tabIndex=pe.tabIndex=-1,ie(he),ie(pe),xn(he,"scroll",function(){he.clientHeight&&ae(he.scrollTop,"vertical")}),xn(pe,"scroll",function(){pe.clientWidth&&ae(pe.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Et&&ze<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ko.prototype.update=function(ie){var ae=ie.scrollWidth>ie.clientWidth+1,ce=ie.scrollHeight>ie.clientHeight+1,he=ie.nativeBarWidth;if(ce){this.vert.style.display="block",this.vert.style.bottom=ae?he+"px":"0";var pe=ie.viewHeight-(ae?he:0);this.vert.firstChild.style.height=Math.max(0,ie.scrollHeight-ie.clientHeight+pe)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(ae){this.horiz.style.display="block",this.horiz.style.right=ce?he+"px":"0",this.horiz.style.left=ie.barLeft+"px";var Ae=ie.viewWidth-ie.barLeft-(ce?he:0);this.horiz.firstChild.style.width=Math.max(0,ie.scrollWidth-ie.clientWidth+Ae)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&ie.clientHeight>0&&(he==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ce?he:0,bottom:ae?he:0}},Ko.prototype.setScrollLeft=function(ie){this.horiz.scrollLeft!=ie&&(this.horiz.scrollLeft=ie),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ko.prototype.setScrollTop=function(ie){this.vert.scrollTop!=ie&&(this.vert.scrollTop=ie),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ko.prototype.zeroWidthHack=function(){var ie=de&&!Ye?"12px":"18px";this.horiz.style.height=this.vert.style.width=ie,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new qe,this.disableVert=new qe},Ko.prototype.enableZeroWidthBar=function(ie,ae,ce){ie.style.pointerEvents="auto";function he(){var pe=ie.getBoundingClientRect(),Ae=ce=="vert"?document.elementFromPoint(pe.right-1,(pe.top+pe.bottom)/2):document.elementFromPoint((pe.right+pe.left)/2,pe.bottom-1);Ae!=ie?ie.style.pointerEvents="none":ae.set(1e3,he)}ae.set(1e3,he)},Ko.prototype.clear=function(){var ie=this.horiz.parentNode;ie.removeChild(this.horiz),ie.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(ie,ae){ae||(ae=No(ie));var ce=ie.display.barWidth,he=ie.display.barHeight;Qa(ie,ae);for(var pe=0;pe<4&&ce!=ie.display.barWidth||he!=ie.display.barHeight;pe++)ce!=ie.display.barWidth&&ie.options.lineWrapping&&no(ie),Qa(ie,No(ie)),ce=ie.display.barWidth,he=ie.display.barHeight}function Qa(ie,ae){var ce=ie.display,he=ce.scrollbars.update(ae);ce.sizer.style.paddingRight=(ce.barWidth=he.right)+"px",ce.sizer.style.paddingBottom=(ce.barHeight=he.bottom)+"px",ce.heightForcer.style.borderBottom=he.bottom+"px solid transparent",he.right&&he.bottom?(ce.scrollbarFiller.style.display="block",ce.scrollbarFiller.style.height=he.bottom+"px",ce.scrollbarFiller.style.width=he.right+"px"):ce.scrollbarFiller.style.display="",he.bottom&&ie.options.coverGutterNextToScrollbar&&ie.options.fixedGutter?(ce.gutterFiller.style.display="block",ce.gutterFiller.style.height=he.bottom+"px",ce.gutterFiller.style.width=ae.gutterWidth+"px"):ce.gutterFiller.style.display=""}var Bl={native:Ko,null:ka};function yl(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&Ze(ie.display.wrapper,ie.display.scrollbars.addClass)),ie.display.scrollbars=new Bl[ie.options.scrollbarStyle](function(ae){ie.display.wrapper.insertBefore(ae,ie.display.scrollbarFiller),xn(ae,"mousedown",function(){ie.state.focused&&setTimeout(function(){return ie.display.input.focus()},0)}),ae.setAttribute("cm-not-content","true")},function(ae,ce){ce=="horizontal"?vl(ie,ae):ml(ie,ae)},ie),ie.display.scrollbars.addClass&&ln(ie.display.wrapper,ie.display.scrollbars.addClass)}var Oo=0;function xo(ie){ie.curOp={cm:ie,viewChanged:!1,startHeight:ie.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},fr(ie.curOp)}function Ua(ie){var ae=ie.curOp;ae&&Hr(ae,function(ce){for(var he=0;he=ce.viewTo)||ce.maxLineChanged&&ae.options.lineWrapping,ie.update=ie.mustUpdate&&new Xh(ae,ie.mustUpdate&&{top:ie.scrollTop,ensure:ie.scrollToPos},ie.forceUpdate)}function cg(ie){ie.updatedDisplay=ie.mustUpdate&&rf(ie.cm,ie.update)}function nf(ie){var ae=ie.cm,ce=ae.display;ie.updatedDisplay&&no(ae),ie.barMeasure=No(ae),ce.maxLineChanged&&!ae.options.lineWrapping&&(ie.adjustWidthTo=po(ae,ce.maxLine,ce.maxLine.text.length).left+3,ae.display.sizerWidth=ie.adjustWidthTo,ie.barMeasure.scrollWidth=Math.max(ce.scroller.clientWidth,ce.sizer.offsetLeft+ie.adjustWidthTo+_r(ae)+ae.display.barWidth),ie.maxScrollLeft=Math.max(0,ce.sizer.offsetLeft+ie.adjustWidthTo-fo(ae))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=ce.input.prepareSelection())}function Va(ie){var ae=ie.cm;ie.adjustWidthTo!=null&&(ae.display.sizer.style.minWidth=ie.adjustWidthTo+"px",ie.maxScrollLeft=ie.display.viewTo)){var ce=+new Date+ie.options.workTime,he=Yr(ie,ae.highlightFrontier),pe=[];ae.iter(he.line,Math.min(ae.first+ae.size,ie.display.viewTo+500),function(Ae){if(he.line>=ie.display.viewFrom){var Oe=Ae.styles,Qe=Ae.text.length>ie.options.maxHighlightLength?ti(ae.mode,he.state):null,_e=vr(ie,Ae,he,!0);Qe&&(he.state=Qe),Ae.styles=_e.styles;var pt=Ae.styleClasses,cn=_e.classes;cn?Ae.styleClasses=cn:pt&&(Ae.styleClasses=null);for(var Mt=!Oe||Oe.length!=Ae.styles.length||pt!=cn&&(!pt||!cn||pt.bgClass!=cn.bgClass||pt.textClass!=cn.textClass),Jn=0;!Mt&&Jnce)return rs(ie,ie.options.workDelay),!0}),ae.highlightFrontier=he.line,ae.modeFrontier=Math.max(ae.modeFrontier,he.line),pe.length&&lo(ie,function(){for(var Ae=0;Ae=ce.viewFrom&&ae.visible.to<=ce.viewTo&&(ce.updateLineNumbers==null||ce.updateLineNumbers>=ce.viewTo)&&ce.renderedView==ce.view&&cs(ie)==0)return!1;us(ie)&&(Sa(ie),ae.dims=Pa(ie));var pe=he.first+he.size,Ae=Math.max(ae.visible.from-ie.options.viewportMargin,he.first),Oe=Math.min(pe,ae.visible.to+ie.options.viewportMargin);ce.viewFromOe&&ce.viewTo-Oe<20&&(Oe=Math.min(pe,ce.viewTo)),dn&&(Ae=Ee(ie.doc,Ae),Oe=Ue(ie.doc,Oe));var Qe=Ae!=ce.viewFrom||Oe!=ce.viewTo||ce.lastWrapHeight!=ae.wrapperHeight||ce.lastWrapWidth!=ae.wrapperWidth;ua(ie,Ae,Oe),ce.viewOffset=ut(fi(ie.doc,ce.viewFrom)),ie.display.mover.style.top=ce.viewOffset+"px";var _e=cs(ie);if(!Qe&&_e==0&&!ae.force&&ce.renderedView==ce.view&&(ce.updateLineNumbers==null||ce.updateLineNumbers>=ce.viewTo))return!1;var pt=Gp(ie);return _e>4&&(ce.lineDiv.style.display="none"),fg(ie,ce.updateLineNumbers,ae.dims),_e>4&&(ce.lineDiv.style.display=""),ce.renderedView=ce.view,sl(pt),st(ce.cursorDiv),st(ce.selectionDiv),ce.gutters.style.height=ce.sizer.style.minHeight=0,Qe&&(ce.lastWrapHeight=ae.wrapperHeight,ce.lastWrapWidth=ae.wrapperWidth,rs(ie,400)),ce.updateLineNumbers=null,!0}function Ea(ie,ae){for(var ce=ae.viewport,he=!0;;he=!1){if(!he||!ie.options.lineWrapping||ae.oldDisplayWidth==fo(ie)){if(ce&&ce.top!=null&&(ce={top:Math.min(ie.doc.height+eo(ie.display)-mo(ie),ce.top)}),ae.visible=Ao(ie.display,ie.doc,ce),ae.visible.from>=ie.display.viewFrom&&ae.visible.to<=ie.display.viewTo)break}else he&&(ae.visible=Ao(ie.display,ie.doc,ce));if(!rf(ie,ae))break;no(ie);var pe=No(ie);za(ie),ns(ie,pe),vh(ie,pe),ae.force=!1}ae.signal(ie,"update",ie),(ie.display.viewFrom!=ie.display.reportedViewFrom||ie.display.viewTo!=ie.display.reportedViewTo)&&(ae.signal(ie,"viewportChange",ie,ie.display.viewFrom,ie.display.viewTo),ie.display.reportedViewFrom=ie.display.viewFrom,ie.display.reportedViewTo=ie.display.viewTo)}function ph(ie,ae){var ce=new Xh(ie,ae);if(rf(ie,ce)){no(ie),Ea(ie,ce);var he=No(ie);za(ie),ns(ie,he),vh(ie,he),ce.finish()}}function fg(ie,ae,ce){var he=ie.display,pe=ie.options.lineNumbers,Ae=he.lineDiv,Oe=Ae.firstChild;function Qe(Ui){var $i=Ui.nextSibling;return ct&&de&&ie.display.currentWheelTarget==Ui?Ui.style.display="none":Ui.parentNode.removeChild(Ui),$i}for(var _e=he.view,pt=he.viewFrom,cn=0;cn<_e.length;cn++){var Mt=_e[cn];if(!Mt.hidden)if(!Mt.node||Mt.node.parentNode!=Ae){var Jn=qi(ie,Mt,pt,ce);Ae.insertBefore(Jn,Oe)}else{for(;Oe!=Mt.node;)Oe=Qe(Oe);var Rn=pe&&ae!=null&&ae<=pt&&Mt.lineNumber;Mt.changes&&(yn(Mt.changes,"gutter")>-1&&(Rn=!1),Er(ie,Mt,pt,ce)),Rn&&(st(Mt.lineNumber),Mt.lineNumber.appendChild(document.createTextNode(Bn(ie.options,pt)))),Oe=Mt.node.nextSibling}pt+=Mt.size}for(;Oe;)Oe=Qe(Oe)}function mh(ie){var ae=ie.gutters.offsetWidth;ie.sizer.style.marginLeft=ae+"px"}function vh(ie,ae){ie.display.sizer.style.minHeight=ae.docHeight+"px",ie.display.heightForcer.style.top=ae.docHeight+"px",ie.display.gutters.style.height=ae.docHeight+ie.display.barHeight+_r(ie)+"px"}function of(ie){var ae=ie.display,ce=ae.view;if(!(!ae.alignWidgets&&(!ae.gutters.firstChild||!ie.options.fixedGutter))){for(var he=hs(ae)-ae.scroller.scrollLeft+ie.doc.scrollLeft,pe=ae.gutters.offsetWidth,Ae=he+"px",Oe=0;OeOe.clientWidth,_e=Oe.scrollHeight>Oe.clientHeight;if(he&&Qe||pe&&_e){if(pe&&de&&ct){e:for(var pt=ae.target,cn=Ae.view;pt!=Oe;pt=pt.parentNode)for(var Mt=0;Mt=0&&Fn(ie,he.to())<=0)return ce}return-1};var Aa=function(ie,ae){this.anchor=ie,this.head=ae};Aa.prototype.from=function(){return ai(this.anchor,this.head)},Aa.prototype.to=function(){return Mi(this.anchor,this.head)},Aa.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function au(ie,ae,ce){var he=ie&&ie.options.selectionsMayTouch,pe=ae[ce];ae.sort(function(Jn,Rn){return Fn(Jn.from(),Rn.from())}),ce=yn(ae,pe);for(var Ae=1;Ae0:_e>=0){var pt=ai(Qe.from(),Oe.from()),cn=Mi(Qe.to(),Oe.to()),Mt=Qe.empty()?Oe.from()==Oe.head:Qe.from()==Qe.head;Ae<=ce&&--ce,ae.splice(--Ae,2,new Aa(Mt?cn:pt,Mt?pt:cn))}}return new Ul(ae,ce)}function qu(ie,ae){return new Ul([new Aa(ie,ae||ie)],0)}function Sh(ie){return ie.text?zt(ie.from.line+ie.text.length-1,St(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function Jh(ie,ae){if(Fn(ie,ae.from)<0)return ie;if(Fn(ie,ae.to)<=0)return Sh(ae);var ce=ie.line+ae.text.length-(ae.to.line-ae.from.line)-1,he=ie.ch;return ie.line==ae.to.line&&(he+=Sh(ae).ch-ae.to.ch),zt(ce,he)}function cc(ie,ae){for(var ce=[],he=0;he1&&ie.remove(Qe.line+1,Ui-1),ie.insert(Qe.line+1,Ir)}Bi(ie,"change",ie,ae)}function Pu(ie,ae,ce){function he(pe,Ae,Oe){if(pe.linked)for(var Qe=0;Qe1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),St(ie.done)}function vc(ie,ae,ce,he){var pe=ie.history;pe.undone.length=0;var Ae=+new Date,Oe,Qe;if((pe.lastOp==he||pe.lastOrigin==ae.origin&&ae.origin&&(ae.origin.charAt(0)=="+"&&pe.lastModTime>Ae-(ie.cm?ie.cm.options.historyEventDelay:500)||ae.origin.charAt(0)=="*"))&&(Oe=mc(pe,pe.lastOp==he)))Qe=St(Oe.changes),Fn(ae.from,ae.to)==0&&Fn(ae.from,Qe.to)==0?Qe.to=Sh(ae):Oe.changes.push(lf(ie,ae));else{var _e=St(pe.done);for((!_e||!_e.ranges)&&Od(ie.sel,pe.done),Oe={changes:[lf(ie,ae)],generation:pe.generation},pe.done.push(Oe);pe.done.length>pe.undoDepth;)pe.done.shift(),pe.done[0].ranges||pe.done.shift()}pe.done.push(ce),pe.generation=++pe.maxGeneration,pe.lastModTime=pe.lastSelTime=Ae,pe.lastOp=pe.lastSelOp=he,pe.lastOrigin=pe.lastSelOrigin=ae.origin,Qe||Xt(ie,"historyAdded")}function pg(ie,ae,ce,he){var pe=ae.charAt(0);return pe=="*"||pe=="+"&&ce.ranges.length==he.ranges.length&&ce.somethingSelected()==he.somethingSelected()&&new Date-ie.history.lastSelTime<=(ie.cm?ie.cm.options.historyEventDelay:500)}function yc(ie,ae,ce,he){var pe=ie.history,Ae=he&&he.origin;ce==pe.lastSelOp||Ae&&pe.lastSelOrigin==Ae&&(pe.lastModTime==pe.lastSelTime&&pe.lastOrigin==Ae||pg(ie,Ae,St(pe.done),ae))?pe.done[pe.done.length-1]=ae:Od(ae,pe.done),pe.lastSelTime=+new Date,pe.lastSelOrigin=Ae,pe.lastSelOp=ce,he&&he.clearRedo!==!1&&Td(pe.undone)}function Od(ie,ae){var ce=St(ae);ce&&ce.ranges&&ce.equals(ie)||ae.push(ie)}function xh(ie,ae,ce,he){var pe=ae["spans_"+ie.id],Ae=0;ie.iter(Math.max(ie.first,ce),Math.min(ie.first+ie.size,he),function(Oe){Oe.markedSpans&&((pe||(pe=ae["spans_"+ie.id]={}))[Ae]=Oe.markedSpans),++Ae})}function $s(ie){if(!ie)return null;for(var ae,ce=0;ce-1&&(St(Qe)[Mt]=pt[Mt],delete pt[Mt])}}return he}function hf(ie,ae,ce,he){if(he){var pe=ie.anchor;if(ce){var Ae=Fn(ae,pe)<0;Ae!=Fn(ce,pe)<0?(pe=ae,ae=ce):Ae!=Fn(ae,ce)<0&&(ae=ce)}return new Aa(pe,ae)}else return new Aa(ce||ae,ae)}function df(ie,ae,ce,he,pe){pe==null&&(pe=ie.cm&&(ie.cm.display.shift||ie.extend)),Ks(ie,new Ul([hf(ie.sel.primary(),ae,ce,pe)],0),he)}function Kp(ie,ae,ce){for(var he=[],pe=ie.cm&&(ie.cm.display.shift||ie.extend),Ae=0;Ae=ae.ch:Qe.to>ae.ch))){if(pe&&(Xt(_e,"beforeCursorEnter"),_e.explicitlyCleared))if(Ae.markedSpans){--Oe;continue}else break;if(!_e.atomic)continue;if(ce){var Mt=_e.find(he<0?1:-1),Jn=void 0;if((he<0?cn:pt)&&(Mt=vg(ie,Mt,-he,Mt&&Mt.line==ae.line?Ae:null)),Mt&&Mt.line==ae.line&&(Jn=Fn(Mt,ce))&&(he<0?Jn<0:Jn>0))return eh(ie,Mt,ae,he,pe)}var Rn=_e.find(he<0?-1:1);return(he<0?pt:cn)&&(Rn=vg(ie,Rn,he,Rn.line==ae.line?Ae:null)),Rn?eh(ie,Rn,ae,he,pe):null}}return ae}function wc(ie,ae,ce,he,pe){var Ae=he||1,Oe=eh(ie,ae,ce,Ae,pe)||!pe&&eh(ie,ae,ce,Ae,!0)||eh(ie,ae,ce,-Ae,pe)||!pe&&eh(ie,ae,ce,-Ae,!0);return Oe||(ie.cantEdit=!0,zt(ie.first,0))}function vg(ie,ae,ce,he){return ce<0&&ae.ch==0?ae.line>ie.first?wi(ie,zt(ae.line-1)):null:ce>0&&ae.ch==(he||fi(ie,ae.line)).text.length?ae.line=0;--pe)$h(ie,{from:he[pe].from,to:he[pe].to,text:pe?[""]:ae.text,origin:ae.origin});else $h(ie,ae)}}function $h(ie,ae){if(!(ae.text.length==1&&ae.text[0]==""&&Fn(ae.from,ae.to)==0)){var ce=cc(ie,ae);vc(ie,ae,ce,ie.cm?ie.cm.curOp.id:NaN),Id(ie,ae,ce,ao(ie,ae));var he=[];Pu(ie,function(pe,Ae){!Ae&&yn(he,pe.history)==-1&&(Sg(pe.history,ae),he.push(pe.history)),Id(pe,ae,null,ao(pe,ae))})}}function Cc(ie,ae,ce){var he=ie.cm&&ie.cm.state.suppressEdits;if(!(he&&!ce)){for(var pe=ie.history,Ae,Oe=ie.sel,Qe=ae=="undo"?pe.done:pe.undone,_e=ae=="undo"?pe.undone:pe.done,pt=0;pt=0;--Rn){var Ui=Jn(Rn);if(Ui)return Ui.v}}}}function yg(ie,ae){if(ae!=0&&(ie.first+=ae,ie.sel=new Ul(bi(ie.sel.ranges,function(pe){return new Aa(zt(pe.anchor.line+ae,pe.anchor.ch),zt(pe.head.line+ae,pe.head.ch))}),ie.sel.primIndex),ie.cm)){ca(ie.cm,ie.first,ie.first-ae,ae);for(var ce=ie.cm.display,he=ce.viewFrom;heie.lastLine())){if(ae.from.lineAe&&(ae={from:ae.from,to:zt(Ae,fi(ie,Ae).text.length),text:[ae.text[0]],origin:ae.origin}),ae.removed=Cn(ie,ae.from,ae.to),ce||(ce=cc(ie,ae)),ie.cm?Up(ie.cm,ae,he):af(ie,ae,he),qh(ie,ce,rn),ie.cantEdit&&wc(ie,zt(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function Up(ie,ae,ce){var he=ie.doc,pe=ie.display,Ae=ae.from,Oe=ae.to,Qe=!1,_e=Ae.line;ie.options.lineWrapping||(_e=Ge(Rt(fi(he,Ae.line))),he.iter(_e,Oe.line+1,function(Rn){if(Rn==pe.maxLine)return Qe=!0,!0})),he.sel.contains(ae.from,ae.to)>-1&&En(ie),af(he,ae,ce,da(ie)),ie.options.lineWrapping||(he.iter(_e,Ae.line+ae.text.length,function(Rn){var Ui=Zt(Rn);Ui>pe.maxLineLength&&(pe.maxLine=Rn,pe.maxLineLength=Ui,pe.maxLineChanged=!0,Qe=!1)}),Qe&&(ie.curOp.updateMaxLine=!0)),tr(he,Ae.line),rs(ie,400);var pt=ae.text.length-(Oe.line-Ae.line)-1;ae.full?ca(ie):Ae.line==Oe.line&&ae.text.length==1&&!gg(ie.doc,ae)?So(ie,Ae.line,"text"):ca(ie,Ae.line,Oe.line+1,pt);var cn=Vn(ie,"changes"),Mt=Vn(ie,"change");if(Mt||cn){var Jn={from:Ae,to:Oe,text:ae.text,removed:ae.removed,origin:ae.origin};Mt&&Bi(ie,"change",ie,Jn),cn&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(Jn)}ie.display.selForContextMenu=null}function ed(ie,ae,ce,he,pe){var Ae;he||(he=ce),Fn(he,ce)<0&&(Ae=[he,ce],ce=Ae[0],he=Ae[1]),typeof ae=="string"&&(ae=ie.splitLines(ae)),Ph(ie,{from:ce,to:he,text:ae,origin:pe})}function Xl(ie,ae,ce,he){ce1||!(this.children[0]instanceof Rd))){var Qe=[];this.collapse(Qe),this.children=[new Rd(Qe)],this.children[0].parent=this}},collapse:function(ie){for(var ae=0;ae50){for(var Oe=pe.lines.length%25+25,Qe=Oe;Qe10);ie.parent.maybeSpill()}},iterN:function(ie,ae,ce){for(var he=0;heie.display.maxLineLength&&(ie.display.maxLine=pt,ie.display.maxLineLength=cn,ie.display.maxLineChanged=!0)}he!=null&&ie&&this.collapsed&&ca(ie,he,pe+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,ie&&Sc(ie.doc)),ie&&Bi(ie,"markerCleared",ie,this,he,pe),ae&&Ua(ie),this.parent&&this.parent.clear()}},qt.prototype.find=function(ie,ae){ie==null&&this.type=="bookmark"&&(ie=1);for(var ce,he,pe=0;pe0||Oe==0&&Ae.clearWhenEmpty!==!1)return Ae;if(Ae.replacedWith&&(Ae.collapsed=!0,Ae.widgetNode=wt("span",[Ae.replacedWith],"CodeMirror-widget"),he.handleMouseEvents||Ae.widgetNode.setAttribute("cm-ignore-events","true"),he.insertLeft&&(Ae.widgetNode.insertLeft=!0)),Ae.collapsed){if(Gt(ie,ae.line,ae,ce,Ae)||ae.line!=ce.line&&Gt(ie,ce.line,ae,ce,Ae))throw new Error("Inserting collapsed marker partially overlapping an existing one");vn()}Ae.addToHistory&&vc(ie,{from:ae,to:ce,origin:"markText"},ie.sel,NaN);var Qe=ae.line,_e=ie.cm,pt;if(ie.iter(Qe,ce.line+1,function(Mt){_e&&Ae.collapsed&&!_e.options.lineWrapping&&Rt(Mt)==_e.display.maxLine&&(pt=!0),Ae.collapsed&&Qe!=ae.line&&dr(Mt,0),to(Mt,new Fi(Ae,Qe==ae.line?ae.ch:null,Qe==ce.line?ce.ch:null)),++Qe}),Ae.collapsed&&ie.iter(ae.line,ce.line+1,function(Mt){Re(ie,Mt)&&dr(Mt,0)}),Ae.clearOnEnter&&xn(Ae,"beforeCursorEnter",function(){return Ae.clear()}),Ae.readOnly&&(lr(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),Ae.collapsed&&(Ae.id=++Jp,Ae.atomic=!0),_e){if(pt&&(_e.curOp.updateMaxLine=!0),Ae.collapsed)ca(_e,ae.line,ce.line+1);else if(Ae.className||Ae.startStyle||Ae.endStyle||Ae.css||Ae.attributes||Ae.title)for(var cn=ae.line;cn<=ce.line;cn++)So(_e,cn,"text");Ae.atomic&&Sc(_e.doc),Bi(_e,"markerAdded",_e,Ae)}return Ae}var Tu=function(ie,ae){this.markers=ie,this.primary=ae;for(var ce=0;ce=0;_e--)Ph(this,he[_e]);Qe?cf(this,Qe):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(ie){this.extend=ie},getExtending:function(){return this.extend},historySize:function(){for(var ie=this.history,ae=0,ce=0,he=0;he=ie.ch)&&ae.push(pe.marker.parent||pe.marker)}return ae},findMarks:function(ie,ae,ce){ie=wi(this,ie),ae=wi(this,ae);var he=[],pe=ie.line;return this.iter(ie.line,ae.line+1,function(Ae){var Oe=Ae.markedSpans;if(Oe)for(var Qe=0;Qe=_e.to||_e.from==null&&pe!=ie.line||_e.from!=null&&pe==ae.line&&_e.from>=ae.ch)&&(!ce||ce(_e.marker))&&he.push(_e.marker.parent||_e.marker)}++pe}),he},getAllMarks:function(){var ie=[];return this.iter(function(ae){var ce=ae.markedSpans;if(ce)for(var he=0;heie)return ae=ie,!0;ie-=Ae,++ce}),wi(this,zt(ce,ae))},indexFromPos:function(ie){ie=wi(this,ie);var ae=ie.ch;if(ie.lineae&&(ae=ie.from),ie.to!=null&&ie.to-1){ae.state.draggingText(ie),setTimeout(function(){return ae.display.input.focus()},20);return}try{var cn=ie.dataTransfer.getData("Text");if(cn){var Mt;if(ae.state.draggingText&&!ae.state.draggingText.copy&&(Mt=ae.listSelections()),qh(ae.doc,qu(ce,ce)),Mt)for(var Jn=0;Jn=0;Qe--)ed(ie.doc,"",he[Qe].from,he[Qe].to,"+delete");Vs(ie)})}function Mg(ie,ae,ce){var he=Bt(ie.text,ae+ce,ce);return he<0||he>ie.text.length?null:he}function ss(ie,ae,ce){var he=Mg(ie,ae.ch,ce);return he==null?null:new zt(ae.line,he,ce<0?"after":"before")}function bc(ie,ae,ce,he,pe){if(ie){ae.doc.direction=="rtl"&&(pe=-pe);var Ae=hn(ce,ae.doc.direction);if(Ae){var Oe=pe<0?St(Ae):Ae[0],Qe=pe<0==(Oe.level==1),_e=Qe?"after":"before",pt;if(Oe.level>0||ae.doc.direction=="rtl"){var cn=Po(ae,ce);pt=pe<0?ce.text.length-1:0;var Mt=Vo(ae,cn,pt).top;pt=_t(function(Jn){return Vo(ae,cn,Jn).top==Mt},pe<0==(Oe.level==1)?Oe.from:Oe.to-1,pt),_e=="before"&&(pt=Mg(ce,pt,1))}else pt=pe<0?Oe.to:Oe.from;return new zt(he,pt,_e)}}return new zt(he,pe<0?ce.text.length:0,pe<0?"before":"after")}function pf(ie,ae,ce,he){var pe=hn(ae,ie.doc.direction);if(!pe)return ss(ae,ce,he);ce.ch>=ae.text.length?(ce.ch=ae.text.length,ce.sticky="before"):ce.ch<=0&&(ce.ch=0,ce.sticky="after");var Ae=Tt(pe,ce.ch,ce.sticky),Oe=pe[Ae];if(ie.doc.direction=="ltr"&&Oe.level%2==0&&(he>0?Oe.to>ce.ch:Oe.from=Oe.from&&Jn>=cn.begin)){var Rn=Mt?"before":"after";return new zt(ce.line,Jn,Rn)}}var Ui=function(Ir,$r,Gr){for(var oo=function(ja,Ss){return Ss?new zt(ce.line,Qe(ja,1),"before"):new zt(ce.line,ja,"after")};Ir>=0&&Ir0==(ko.level!=1),_o=Vr?Gr.begin:Qe(Gr.end,-1);if(ko.from<=_o&&_o0?cn.end:Qe(cn.begin,-1);return mr!=null&&!(he>0&&mr==ae.text.length)&&($i=Ui(he>0?0:pe.length-1,he,pt(mr)),$i)?$i:null}var Ch={selectAll:as,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),rn)},killLine:function(ie){return wl(ie,function(ae){if(ae.empty()){var ce=fi(ie.doc,ae.head.line).text.length;return ae.head.ch==ce&&ae.head.line0)pe=new zt(pe.line,pe.ch+1),ie.replaceRange(Ae.charAt(pe.ch-1)+Ae.charAt(pe.ch-2),zt(pe.line,pe.ch-2),pe,"+transpose");else if(pe.line>ie.doc.first){var Oe=fi(ie.doc,pe.line-1).text;Oe&&(pe=new zt(pe.line,1),ie.replaceRange(Ae.charAt(0)+ie.doc.lineSeparator()+Oe.charAt(Oe.length-1),zt(pe.line-1,Oe.length-1),pe,"+transpose"))}}ce.push(new Aa(pe,pe))}ie.setSelections(ce)})},newlineAndIndent:function(ie){return lo(ie,function(){for(var ae=ie.listSelections(),ce=ae.length-1;ce>=0;ce--)ie.replaceRange(ie.doc.lineSeparator(),ae[ce].anchor,ae[ce].head,"+input");ae=ie.listSelections();for(var he=0;heie&&Fn(ae,this.pos)==0&&ce==this.button};var Vd,ad;function Og(ie,ae){var ce=+new Date;return ad&&ad.compare(ce,ie,ae)?(Vd=ad=null,"triple"):Vd&&Vd.compare(ce,ie,ae)?(ad=new Tg(ce,ie,ae),Vd=null,"double"):(Vd=new Tg(ce,ie,ae),ad=null,"single")}function Eu(ie){var ae=this,ce=ae.display;if(!(gn(ae,ie)||ce.activeTouch&&ce.input.supportsTouch())){if(ce.input.ensurePolled(),ce.shift=ie.shiftKey,Qr(ce,ie)){ct||(ce.scroller.draggable=!1,setTimeout(function(){return ce.scroller.draggable=!0},100));return}if(!wf(ae,ie)){var he=Ya(ae,ie),pe=rr(ie),Ae=he?Og(he,pe):"single";window.focus(),pe==1&&ae.state.selectingText&&ae.state.selectingText(ie),!(he&&Ig(ae,pe,he,Ae,ie))&&(pe==1?he?om(ae,he,Ae,ie):gr(ie)==ce.scroller&&vi(ie):pe==2?(he&&df(ae.doc,he),setTimeout(function(){return ce.input.focus()},20)):pe==3&&(Le?ae.display.input.onContextMenu(ie):xa(ae)))}}}function Ig(ie,ae,ce,he,pe){var Ae="Click";return he=="double"?Ae="Double"+Ae:he=="triple"&&(Ae="Triple"+Ae),Ae=(ae==1?"Left":ae==2?"Middle":"Right")+Ae,rd(ie,bg(Ae,pe),pe,function(Oe){if(typeof Oe=="string"&&(Oe=Ch[Oe]),!Oe)return!1;var Qe=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),Qe=Oe(ie,ce)!=Yn}finally{ie.state.suppressEdits=!1}return Qe})}function Sf(ie,ae,ce){var he=ie.getOption("configureMouse"),pe=he?he(ie,ae,ce):{};if(pe.unit==null){var Ae=le?ce.shiftKey&&ce.metaKey:ce.altKey;pe.unit=Ae?"rectangle":ae=="single"?"char":ae=="double"?"word":"line"}return(pe.extend==null||ie.doc.extend)&&(pe.extend=ie.doc.extend||ce.shiftKey),pe.addNew==null&&(pe.addNew=de?ce.metaKey:ce.ctrlKey),pe.moveOnDrag==null&&(pe.moveOnDrag=!(de?ce.altKey:ce.ctrlKey)),pe}function om(ie,ae,ce,he){Et?setTimeout(Yt(pa,ie),0):ie.curOp.focus=Ct();var pe=Sf(ie,ce,he),Ae=ie.doc.sel,Oe;ie.options.dragDrop&&nr&&!ie.isReadOnly()&&ce=="single"&&(Oe=Ae.contains(ae))>-1&&(Fn((Oe=Ae.ranges[Oe]).from(),ae)<0||ae.xRel>0)&&(Fn(Oe.to(),ae)>0||ae.xRel<0)?Rg(ie,he,ae,pe):ov(ie,he,ae,pe)}function Rg(ie,ae,ce,he){var pe=ie.display,Ae=!1,Oe=co(ie,function(pt){ct&&(pe.scroller.draggable=!1),ie.state.draggingText=!1,jt(pe.wrapper.ownerDocument,"mouseup",Oe),jt(pe.wrapper.ownerDocument,"mousemove",Qe),jt(pe.scroller,"dragstart",_e),jt(pe.scroller,"drop",Oe),Ae||(vi(pt),he.addNew||df(ie.doc,ce,null,null,he.extend),ct&&!It||Et&&ze==9?setTimeout(function(){pe.wrapper.ownerDocument.body.focus({preventScroll:!0}),pe.input.focus()},20):pe.input.focus())}),Qe=function(pt){Ae=Ae||Math.abs(ae.clientX-pt.clientX)+Math.abs(ae.clientY-pt.clientY)>=10},_e=function(){return Ae=!0};ct&&(pe.scroller.draggable=!0),ie.state.draggingText=Oe,Oe.copy=!he.moveOnDrag,pe.scroller.dragDrop&&pe.scroller.dragDrop(),xn(pe.wrapper.ownerDocument,"mouseup",Oe),xn(pe.wrapper.ownerDocument,"mousemove",Qe),xn(pe.scroller,"dragstart",_e),xn(pe.scroller,"drop",Oe),xa(ie),setTimeout(function(){return pe.input.focus()},20)}function zg(ie,ae,ce){if(ce=="char")return new Aa(ae,ae);if(ce=="word")return ie.findWordAt(ae);if(ce=="line")return new Aa(zt(ae.line,0),wi(ie.doc,zt(ae.line+1,0)));var he=ce(ie,ae);return new Aa(he.from,he.to)}function ov(ie,ae,ce,he){var pe=ie.display,Ae=ie.doc;vi(ae);var Oe,Qe,_e=Ae.sel,pt=_e.ranges;if(he.addNew&&!he.extend?(Qe=Ae.sel.contains(ce),Qe>-1?Oe=pt[Qe]:Oe=new Aa(ce,ce)):(Oe=Ae.sel.primary(),Qe=Ae.sel.primIndex),he.unit=="rectangle")he.addNew||(Oe=new Aa(ce,ce)),ce=Ya(ie,ae,!0,!0),Qe=-1;else{var cn=zg(ie,ce,he.unit);he.extend?Oe=hf(Oe,cn.anchor,cn.head,he.extend):Oe=cn}he.addNew?Qe==-1?(Qe=pt.length,Ks(Ae,au(ie,pt.concat([Oe]),Qe),{scroll:!1,origin:"*mouse"})):pt.length>1&&pt[Qe].empty()&&he.unit=="char"&&!he.extend?(Ks(Ae,au(ie,pt.slice(0,Qe).concat(pt.slice(Qe+1)),0),{scroll:!1,origin:"*mouse"}),_e=Ae.sel):wh(Ae,Qe,Oe,Gn):(Qe=0,Ks(Ae,new Ul([Oe],0),Gn),_e=Ae.sel);var Mt=ce;function Jn(Gr){if(Fn(Mt,Gr)!=0)if(Mt=Gr,he.unit=="rectangle"){for(var oo=[],ko=ie.options.tabSize,Vr=lt(fi(Ae,ce.line).text,ce.ch,ko),_o=lt(fi(Ae,Gr.line).text,Gr.ch,ko),ja=Math.min(Vr,_o),Ss=Math.max(Vr,_o),_a=Math.min(ce.line,Gr.line),ul=Math.min(ie.lastLine(),Math.max(ce.line,Gr.line));_a<=ul;_a++){var Ys=fi(Ae,_a).text,ps=xi(Ys,ja,ko);ja==Ss?oo.push(new Aa(zt(_a,ps),zt(_a,ps))):Ys.length>ps&&oo.push(new Aa(zt(_a,ps),zt(_a,xi(Ys,Ss,ko))))}oo.length||oo.push(new Aa(ce,ce)),Ks(Ae,au(ie,_e.ranges.slice(0,Qe).concat(oo),Qe),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(Gr)}else{var Pl=Oe,Rs=zg(ie,Gr,he.unit),ms=Pl.anchor,ma;Fn(Rs.anchor,ms)>0?(ma=Rs.head,ms=ai(Pl.from(),Rs.anchor)):(ma=Rs.anchor,ms=Mi(Pl.to(),Rs.head));var qa=_e.ranges.slice(0);qa[Qe]=am(ie,new Aa(wi(Ae,ms),ma)),Ks(Ae,au(ie,qa,Qe),Gn)}}var Rn=pe.wrapper.getBoundingClientRect(),Ui=0;function $i(Gr){var oo=++Ui,ko=Ya(ie,Gr,!0,he.unit=="rectangle");if(ko)if(Fn(ko,Mt)!=0){ie.curOp.focus=Ct(),Jn(ko);var Vr=Ao(pe,Ae);(ko.line>=Vr.to||ko.lineRn.bottom?20:0;_o&&setTimeout(co(ie,function(){Ui==oo&&(pe.scroller.scrollTop+=_o,$i(Gr))}),50)}}function mr(Gr){ie.state.selectingText=!1,Ui=1/0,Gr&&(vi(Gr),pe.input.focus()),jt(pe.wrapper.ownerDocument,"mousemove",Ir),jt(pe.wrapper.ownerDocument,"mouseup",$r),Ae.history.lastSelOrigin=null}var Ir=co(ie,function(Gr){Gr.buttons===0||!rr(Gr)?mr(Gr):$i(Gr)}),$r=co(ie,mr);ie.state.selectingText=$r,xn(pe.wrapper.ownerDocument,"mousemove",Ir),xn(pe.wrapper.ownerDocument,"mouseup",$r)}function am(ie,ae){var ce=ae.anchor,he=ae.head,pe=fi(ie.doc,ce.line);if(Fn(ce,he)==0&&ce.sticky==he.sticky)return ae;var Ae=hn(pe);if(!Ae)return ae;var Oe=Tt(Ae,ce.ch,ce.sticky),Qe=Ae[Oe];if(Qe.from!=ce.ch&&Qe.to!=ce.ch)return ae;var _e=Oe+(Qe.from==ce.ch==(Qe.level!=1)?0:1);if(_e==0||_e==Ae.length)return ae;var pt;if(he.line!=ce.line)pt=(he.line-ce.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var cn=Tt(Ae,he.ch,he.sticky),Mt=cn-Oe||(he.ch-ce.ch)*(Qe.level==1?-1:1);cn==_e-1||cn==_e?pt=Mt<0:pt=Mt>0}var Jn=Ae[_e+(pt?-1:0)],Rn=pt==(Jn.level==1),Ui=Rn?Jn.from:Jn.to,$i=Rn?"after":"before";return ce.ch==Ui&&ce.sticky==$i?ae:new Aa(new zt(ce.line,Ui,$i),he)}function xf(ie,ae,ce,he){var pe,Ae;if(ae.touches)pe=ae.touches[0].clientX,Ae=ae.touches[0].clientY;else try{pe=ae.clientX,Ae=ae.clientY}catch(Jn){return!1}if(pe>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;he&&vi(ae);var Oe=ie.display,Qe=Oe.lineDiv.getBoundingClientRect();if(Ae>Qe.bottom||!Vn(ie,ce))return Ai(ae);Ae-=Qe.top-Oe.viewOffset;for(var _e=0;_e=pe){var cn=Pt(ie.doc,Ae),Mt=ie.display.gutterSpecs[_e];return Xt(ie,ce,ie,cn,Mt.className,ae),Ai(ae)}}}function wf(ie,ae){return xf(ie,ae,"gutterClick",!0)}function Pf(ie,ae){Qr(ie.display,ae)||sm(ie,ae)||gn(ie,ae,"contextmenu")||Le||ie.display.input.onContextMenu(ae)}function sm(ie,ae){return Vn(ie,"gutterContextMenu")?xf(ie,ae,"gutterContextMenu",!1):!1}function Cf(ie){ie.display.wrapper.className=ie.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+ie.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Oa(ie)}var Eh={toString:function(){return"CodeMirror.Init"}},jg={},Mc={};function lm(ie){var ae=ie.optionHandlers;function ce(he,pe,Ae,Oe){ie.defaults[he]=pe,Ae&&(ae[he]=Oe?function(Qe,_e,pt){pt!=Eh&&Ae(Qe,_e,pt)}:Ae)}ie.defineOption=ce,ie.Init=Eh,ce("value","",function(he,pe){return he.setValue(pe)},!0),ce("mode",null,function(he,pe){he.doc.modeOption=pe,Xo(he)},!0),ce("indentUnit",2,Xo,!0),ce("indentWithTabs",!1),ce("smartIndent",!0),ce("tabSize",4,function(he){gc(he),Oa(he),ca(he)},!0),ce("lineSeparator",null,function(he,pe){if(he.doc.lineSep=pe,!!pe){var Ae=[],Oe=he.doc.first;he.doc.iter(function(_e){for(var pt=0;;){var cn=_e.text.indexOf(pe,pt);if(cn==-1)break;pt=cn+pe.length,Ae.push(zt(Oe,cn))}Oe++});for(var Qe=Ae.length-1;Qe>=0;Qe--)ed(he.doc,pe,Ae[Qe],zt(Ae[Qe].line,Ae[Qe].ch+pe.length))}}),ce("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(he,pe,Ae){he.state.specialChars=new RegExp(pe.source+(pe.test(" ")?"":"| "),"g"),Ae!=Eh&&he.refresh()}),ce("specialCharPlaceholder",_n,function(he){return he.refresh()},!0),ce("electricChars",!0),ce("inputStyle",te?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ce("spellcheck",!1,function(he,pe){return he.getInputField().spellcheck=pe},!0),ce("autocorrect",!1,function(he,pe){return he.getInputField().autocorrect=pe},!0),ce("autocapitalize",!1,function(he,pe){return he.getInputField().autocapitalize=pe},!0),ce("rtlMoveVisually",!ge),ce("wholeLineUpdateBefore",!0),ce("theme","default",function(he){Cf(he),Tl(he)},!0),ce("keyMap","default",function(he,pe,Ae){var Oe=id(pe),Qe=Ae!=Eh&&id(Ae);Qe&&Qe.detach&&Qe.detach(he,Oe),Oe.attach&&Oe.attach(he,Qe||null)}),ce("extraKeys",null),ce("configureMouse",null),ce("lineWrapping",!1,um,!0),ce("gutters",[],function(he,pe){he.display.gutterSpecs=Cs(pe,he.options.lineNumbers),Tl(he)},!0),ce("fixedGutter",!0,function(he,pe){he.display.gutters.style.left=pe?hs(he.display)+"px":"0",he.refresh()},!0),ce("coverGutterNextToScrollbar",!1,function(he){return ns(he)},!0),ce("scrollbarStyle","native",function(he){yl(he),ns(he),he.display.scrollbars.setScrollTop(he.doc.scrollTop),he.display.scrollbars.setScrollLeft(he.doc.scrollLeft)},!0),ce("lineNumbers",!1,function(he,pe){he.display.gutterSpecs=Cs(he.options.gutters,pe),Tl(he)},!0),ce("firstLineNumber",1,Tl,!0),ce("lineNumberFormatter",function(he){return he},Tl,!0),ce("showCursorWhenSelecting",!1,za,!0),ce("resetSelectionOnContextMenu",!0),ce("lineWiseCopyCut",!0),ce("pasteLinesPerSelection",!0),ce("selectionsMayTouch",!1),ce("readOnly",!1,function(he,pe){pe=="nocursor"&&(pl(he),he.display.input.blur()),he.display.input.readOnlyChanged(pe)}),ce("screenReaderLabel",null,function(he,pe){pe=pe===""?null:pe,he.display.input.screenReaderLabelChanged(pe)}),ce("disableInput",!1,function(he,pe){pe||he.display.input.reset()},!0),ce("dragDrop",!0,Ef),ce("allowDropFileTypes",null),ce("cursorBlinkRate",530),ce("cursorScrollMargin",0),ce("cursorHeight",1,za,!0),ce("singleCursorHeightPerLine",!0,za,!0),ce("workTime",100),ce("workDelay",100),ce("flattenSpans",!0,gc,!0),ce("addModeClass",!1,gc,!0),ce("pollInterval",100),ce("undoDepth",200,function(he,pe){return he.doc.history.undoDepth=pe}),ce("historyEventDelay",1250),ce("viewportMargin",10,function(he){return he.refresh()},!0),ce("maxHighlightLength",1e4,gc,!0),ce("moveInputWithCursor",!0,function(he,pe){pe||he.display.input.resetPosition()}),ce("tabindex",null,function(he,pe){return he.display.input.getField().tabIndex=pe||""}),ce("autofocus",null),ce("direction","ltr",function(he,pe){return he.doc.setDirection(pe)},!0),ce("phrases",null)}function Ef(ie,ae,ce){var he=ce&&ce!=Eh;if(!ae!=!he){var pe=ie.display.dragFunctions,Ae=ae?xn:jt;Ae(ie.display.scroller,"dragstart",pe.start),Ae(ie.display.scroller,"dragenter",pe.enter),Ae(ie.display.scroller,"dragover",pe.over),Ae(ie.display.scroller,"dragleave",pe.leave),Ae(ie.display.scroller,"drop",pe.drop)}}function um(ie){ie.options.lineWrapping?(ln(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(Ze(ie.display.wrapper,"CodeMirror-wrap"),Vt(ie)),qr(ie),ca(ie),Oa(ie),setTimeout(function(){return ns(ie)},100)}function fa(ie,ae){var ce=this;if(!(this instanceof fa))return new fa(ie,ae);this.options=ae=ae?Ln(ae):{},Ln(jg,ae,!1);var he=ae.value;typeof he=="string"?he=new Is(he,ae.mode,null,ae.lineSeparator,ae.direction):ae.mode&&(he.modeOption=ae.mode),this.doc=he;var pe=new fa.inputStyles[ae.inputStyle](this),Ae=this.display=new yh(ie,he,pe,ae);Ae.wrapper.CodeMirror=this,Cf(this),ae.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 qe,keySeq:null,specialChars:null},ae.autofocus&&!te&&Ae.input.focus(),Et&&ze<11&&setTimeout(function(){return ce.display.input.reset(!0)},20),Gd(this),Il(),xo(this),this.curOp.forceUpdate=!0,sf(this,he),ae.autofocus&&!te||this.hasFocus()?setTimeout(function(){ce.hasFocus()&&!ce.state.focused&&qo(ce)},20):pl(this);for(var Oe in Mc)Mc.hasOwnProperty(Oe)&&Mc[Oe](this,ae[Oe],Eh);us(this),ae.finishInit&&ae.finishInit(this);for(var Qe=0;Qe20*20}xn(ae.scroller,"touchstart",function(_e){if(!gn(ie,_e)&&!Ae(_e)&&!wf(ie,_e)){ae.input.ensurePolled(),clearTimeout(ce);var pt=+new Date;ae.activeTouch={start:pt,moved:!1,prev:pt-he.end<=300?he:null},_e.touches.length==1&&(ae.activeTouch.left=_e.touches[0].pageX,ae.activeTouch.top=_e.touches[0].pageY)}}),xn(ae.scroller,"touchmove",function(){ae.activeTouch&&(ae.activeTouch.moved=!0)}),xn(ae.scroller,"touchend",function(_e){var pt=ae.activeTouch;if(pt&&!Qr(ae,_e)&&pt.left!=null&&!pt.moved&&new Date-pt.start<300){var cn=ie.coordsChar(ae.activeTouch,"page"),Mt;!pt.prev||Oe(pt,pt.prev)?Mt=new Aa(cn,cn):!pt.prev.prev||Oe(pt,pt.prev.prev)?Mt=ie.findWordAt(cn):Mt=new Aa(zt(cn.line,0),wi(ie.doc,zt(cn.line+1,0))),ie.setSelection(Mt.anchor,Mt.head),ie.focus(),vi(_e)}pe()}),xn(ae.scroller,"touchcancel",pe),xn(ae.scroller,"scroll",function(){ae.scroller.clientHeight&&(ml(ie,ae.scroller.scrollTop),vl(ie,ae.scroller.scrollLeft,!0),Xt(ie,"scroll",ie))}),xn(ae.scroller,"mousewheel",function(_e){return Es(ie,_e)}),xn(ae.scroller,"DOMMouseScroll",function(_e){return Es(ie,_e)}),xn(ae.wrapper,"scroll",function(){return ae.wrapper.scrollTop=ae.wrapper.scrollLeft=0}),ae.dragFunctions={enter:function(_e){gn(ie,_e)||Yi(_e)},over:function(_e){gn(ie,_e)||(em(ie,_e),Yi(_e))},start:function(_e){return $p(ie,_e)},drop:co(ie,Pg),leave:function(_e){gn(ie,_e)||tm(ie)}};var Qe=ae.input.getField();xn(Qe,"keyup",function(_e){return Bg.call(ie,_e)}),xn(Qe,"keydown",co(ie,Dg)),xn(Qe,"keypress",co(ie,Cu)),xn(Qe,"focus",function(_e){return qo(ie,_e)}),xn(Qe,"blur",function(_e){return pl(ie,_e)})}var sd=[];fa.defineInitHook=function(ie){return sd.push(ie)};function ys(ie,ae,ce,he){var pe=ie.doc,Ae;ce==null&&(ce="add"),ce=="smart"&&(pe.mode.indent?Ae=Yr(ie,ae).state:ce="prev");var Oe=ie.options.tabSize,Qe=fi(pe,ae),_e=lt(Qe.text,null,Oe);Qe.stateAfter&&(Qe.stateAfter=null);var pt=Qe.text.match(/^\s*/)[0],cn;if(!he&&!/\S/.test(Qe.text))cn=0,ce="not";else if(ce=="smart"&&(cn=pe.mode.indent(Ae,Qe.text.slice(pt.length),Qe.text),cn==Yn||cn>150)){if(!he)return;ce="prev"}ce=="prev"?ae>pe.first?cn=lt(fi(pe,ae-1).text,null,Oe):cn=0:ce=="add"?cn=_e+ie.options.indentUnit:ce=="subtract"?cn=_e-ie.options.indentUnit:typeof ce=="number"&&(cn=_e+ce),cn=Math.max(0,cn);var Mt="",Jn=0;if(ie.options.indentWithTabs)for(var Rn=Math.floor(cn/Oe);Rn;--Rn)Jn+=Oe,Mt+=" ";if(JnOe,_e=yr(ae),pt=null;if(Qe&&he.ranges.length>1)if(ll&&ll.text.join(` `)==ae){if(he.ranges.length%ll.text.length==0){pt=[];for(var cn=0;cn=0;Jn--){var Rn=he.ranges[Jn],Ui=Rn.from(),$i=Rn.to();Rn.empty()&&(ce&&ce>0?Ui=zt(Ui.line,Ui.ch-ce):ie.state.overwrite&&!Qe?$i=zt($i.line,Math.min(fi(Ae,$i.line).text.length,$i.ch+St(_e).length)):Qe&&ll&&ll.lineWise&&ll.text.join(` `)==_e.join(` `)&&(Ui=$i=zt(Ui.line,0)));var mr={from:Ui,to:$i,text:pt?pt[Jn%pt.length]:_e,origin:pe||(Qe?"paste":ie.state.cutIncoming>Oe?"cut":"+input")};Ph(ie.doc,mr),Bi(ie,"inputRead",ie,mr)}ae&&!Qe&&Hg(ie,ae),Vs(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=Mt),ie.curOp.typing=!0,ie.state.pasteIncoming=ie.state.cutIncoming=-1}function Wg(ie,ae){var ce=ie.clipboardData&&ie.clipboardData.getData("Text");if(ce)return ie.preventDefault(),!ae.isReadOnly()&&!ae.options.disableInput&&lo(ae,function(){return kc(ae,ce,0,null,"paste")}),!0}function Hg(ie,ae){if(!(!ie.options.electricChars||!ie.options.smartIndent))for(var ce=ie.doc.sel,he=ce.ranges.length-1;he>=0;he--){var pe=ce.ranges[he];if(!(pe.head.ch>100||he&&ce.ranges[he-1].head.line==pe.head.line)){var Ae=ie.getModeAt(pe.head),Oe=!1;if(Ae.electricChars){for(var Qe=0;Qe-1){Oe=ys(ie,pe.head.line,"smart");break}}else Ae.electricInput&&Ae.electricInput.test(fi(ie.doc,pe.head.line).text.slice(0,pe.head.ch))&&(Oe=ys(ie,pe.head.line,"smart"));Oe&&Bi(ie,"electricInput",ie,pe.head.line)}}}function Zg(ie){for(var ae=[],ce=[],he=0;heAe&&(ys(this,Qe.head.line,he,!0),Ae=Qe.head.line,Oe==this.doc.sel.primIndex&&Vs(this));else{var _e=Qe.from(),pt=Qe.to(),cn=Math.max(Ae,_e.line);Ae=Math.min(this.lastLine(),pt.line-(pt.ch?0:1))+1;for(var Mt=cn;Mt0&&wh(this.doc,Oe,new Aa(_e,Jn[Oe].to()),rn)}}}),getTokenAt:function(he,pe){return er(this,he,pe)},getLineTokens:function(he,pe){return er(this,zt(he),pe,!0)},getTokenTypeAt:function(he){he=wi(this.doc,he);var pe=Mr(this,fi(this.doc,he.line)),Ae=0,Oe=(pe.length-1)/2,Qe=he.ch,_e;if(Qe==0)_e=pe[2];else for(;;){var pt=Ae+Oe>>1;if((pt?pe[pt*2-1]:0)>=Qe)Oe=pt;else if(pe[pt*2+1]_e&&(he=_e,Oe=!0),Qe=fi(this.doc,he)}else Qe=he;return Qo(this,Qe,{top:0,left:0},pe||"page",Ae||Oe).top+(Oe?this.doc.height-ut(Qe):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(he,pe,Ae,Oe,Qe){var _e=this.display;he=wr(this,wi(this.doc,he));var pt=he.bottom,cn=he.left;if(pe.style.position="absolute",pe.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(pe),_e.sizer.appendChild(pe),Oe=="over")pt=he.top;else if(Oe=="above"||Oe=="near"){var Mt=Math.max(_e.wrapper.clientHeight,this.doc.height),Jn=Math.max(_e.sizer.clientWidth,_e.lineSpace.clientWidth);(Oe=="above"||he.bottom+pe.offsetHeight>Mt)&&he.top>pe.offsetHeight?pt=he.top-pe.offsetHeight:he.bottom+pe.offsetHeight<=Mt&&(pt=he.bottom),cn+pe.offsetWidth>Jn&&(cn=Jn-pe.offsetWidth)}pe.style.top=pt+"px",pe.style.left=pe.style.right="",Qe=="right"?(cn=_e.sizer.clientWidth-pe.offsetWidth,pe.style.right="0px"):(Qe=="left"?cn=0:Qe=="middle"&&(cn=(_e.sizer.clientWidth-pe.offsetWidth)/2),pe.style.left=cn+"px"),Ae&&Nl(this,{left:cn,top:pt,right:cn+pe.offsetWidth,bottom:pt+pe.offsetHeight})},triggerOnKeyDown:Mo(Dg),triggerOnKeyPress:Mo(Cu),triggerOnKeyUp:Bg,triggerOnMouseDown:Mo(Eu),execCommand:function(he){if(Ch.hasOwnProperty(he))return Ch[he].call(null,this)},triggerElectric:Mo(function(he){Hg(this,he)}),findPosH:function(he,pe,Ae,Oe){var Qe=1;pe<0&&(Qe=-1,pe=-pe);for(var _e=wi(this.doc,he),pt=0;pt0&&cn(Ae.charAt(Oe-1));)--Oe;for(;Qe.5||this.options.lineWrapping)&&qr(this),Xt(this,"refresh",this)}),swapDoc:Mo(function(he){var pe=this.doc;return pe.cm=null,this.state.selectingText&&this.state.selectingText(),sf(this,he),Oa(this),this.display.input.reset(),Yl(this,he.scrollLeft,he.scrollTop),this.curOp.forceScroll=!0,Bi(this,"swapDoc",this,pe),pe}),phrase:function(he){var pe=this.options.phrases;return pe&&Object.prototype.hasOwnProperty.call(pe,he)?pe[he]:he},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}},ri(ie),ie.registerHelper=function(he,pe,Ae){ce.hasOwnProperty(he)||(ce[he]=ie[he]={_global:[]}),ce[he][pe]=Ae},ie.registerGlobalHelper=function(he,pe,Ae,Oe){ie.registerHelper(he,pe,Oe),ce[he]._global.push({pred:Ae,val:Oe})}}function Fc(ie,ae,ce,he,pe){var Ae=ae,Oe=ce,Qe=fi(ie,ae.line),_e=pe&&ie.direction=="rtl"?-ce:ce;function pt(){var $r=ae.line+_e;return $r=ie.first+ie.size?!1:(ae=new zt($r,ae.ch,ae.sticky),Qe=fi(ie,$r))}function cn($r){var Gr;if(he=="codepoint"){var oo=Qe.text.charCodeAt(ae.ch+(he>0?0:-1));isNaN(oo)?Gr=null:Gr=new zt(ae.line,Math.max(0,Math.min(Qe.text.length,ae.ch+ce*(oo>=55296&&oo<56320?2:1))),-ce)}else pe?Gr=pf(ie.cm,Qe,ae,ce):Gr=ss(Qe,ae,ce);if(Gr==null)if(!$r&&pt())ae=bc(pe,ie.cm,Qe,ae.line,_e);else return!1;else ae=Gr;return!0}if(he=="char"||he=="codepoint")cn();else if(he=="column")cn(!0);else if(he=="word"||he=="group")for(var Mt=null,Jn=he=="group",Rn=ie.cm&&ie.cm.getHelper(ae,"wordChars"),Ui=!0;!(ce<0&&!cn(!Ui));Ui=!1){var $i=Qe.text.charAt(ae.ch)||` `,mr=Ke($i,Rn)?"w":Jn&&$i==` `?"n":!Jn||/\s/.test($i)?null:"p";if(Jn&&!Ui&&!mr&&(mr="s"),Mt&&Mt!=mr){ce<0&&(ce=1,cn(),ae.sticky="after");break}if(mr&&(Mt=mr),ce>0&&!cn(!Ui))break}var Ir=wc(ie,ae,Ae,Oe,!0);return zn(Ae,Ir)&&(Ir.hitSide=!0),Ir}function Lh(ie,ae,ce,he){var pe=ie.doc,Ae=ae.left,Oe;if(he=="page"){var Qe=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),_e=Math.max(Qe-.5*sa(ie.display),3);Oe=(ce>0?ae.bottom:ae.top)+ce*_e}else he=="line"&&(Oe=ce>0?ae.bottom+3:ae.top-3);for(var pt;pt=Sr(ie,Ae,Oe),!!pt.outside;){if(ce<0?Oe<=0:Oe>=pe.height){pt.hitSide=!0;break}Oe+=ce*5}return pt}var Da=function(ie){this.cm=ie,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new qe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Da.prototype.init=function(ie){var ae=this,ce=this,he=ce.cm,pe=ce.div=ie.lineDiv;Vg(pe,he.options.spellcheck,he.options.autocorrect,he.options.autocapitalize);function Ae(Qe){for(var _e=Qe.target;_e;_e=_e.parentNode){if(_e==pe)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(_e.className))break}return!1}xn(pe,"paste",function(Qe){!Ae(Qe)||gn(he,Qe)||Wg(Qe,he)||ze<=11&&setTimeout(co(he,function(){return ae.updateFromDOM()}),20)}),xn(pe,"compositionstart",function(Qe){ae.composing={data:Qe.data,done:!1}}),xn(pe,"compositionupdate",function(Qe){ae.composing||(ae.composing={data:Qe.data,done:!1})}),xn(pe,"compositionend",function(Qe){ae.composing&&(Qe.data!=ae.composing.data&&ae.readFromDOMSoon(),ae.composing.done=!0)}),xn(pe,"touchstart",function(){return ce.forceCompositionEnd()}),xn(pe,"input",function(){ae.composing||ae.readFromDOMSoon()});function Oe(Qe){if(!(!Ae(Qe)||gn(he,Qe))){if(he.somethingSelected())ld({lineWise:!1,text:he.getSelections()}),Qe.type=="cut"&&he.replaceSelection("",null,"cut");else if(he.options.lineWiseCopyCut){var _e=Zg(he);ld({lineWise:!0,text:_e.text}),Qe.type=="cut"&&he.operation(function(){he.setSelections(_e.ranges,0,rn),he.replaceSelection("",null,"cut")})}else return;if(Qe.clipboardData){Qe.clipboardData.clearData();var pt=ll.text.join(` `);if(Qe.clipboardData.setData("Text",pt),Qe.clipboardData.getData("Text")==pt){Qe.preventDefault();return}}var cn=Gg(),Mt=cn.firstChild;he.display.lineSpace.insertBefore(cn,he.display.lineSpace.firstChild),Mt.value=ll.text.join(` `);var Jn=document.activeElement;fn(Mt),setTimeout(function(){he.display.lineSpace.removeChild(cn),Jn.focus(),Jn==pe&&ce.showPrimarySelection()},50)}}xn(pe,"copy",Oe),xn(pe,"cut",Oe)},Da.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},Da.prototype.prepareSelection=function(){var ie=Dl(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},Da.prototype.showSelection=function(ie,ae){!ie||!this.cm.display.view.length||((ie.focus||ae)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},Da.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Da.prototype.showPrimarySelection=function(){var ie=this.getSelection(),ae=this.cm,ce=ae.doc.sel.primary(),he=ce.from(),pe=ce.to();if(ae.display.viewTo==ae.display.viewFrom||he.line>=ae.display.viewTo||pe.line=ae.display.viewFrom&&Af(ae,he)||{node:Qe[0].measure.map[2],offset:0},pt=pe.lineie.firstLine()&&(he=zt(he.line-1,fi(ie.doc,he.line-1).length)),pe.ch==fi(ie.doc,pe.line).text.length&&pe.lineae.viewTo-1)return!1;var Ae,Oe,Qe;he.line==ae.viewFrom||(Ae=ts(ie,he.line))==0?(Oe=Ge(ae.view[0].line),Qe=ae.view[0].node):(Oe=Ge(ae.view[Ae].line),Qe=ae.view[Ae-1].node.nextSibling);var _e=ts(ie,pe.line),pt,cn;if(_e==ae.view.length-1?(pt=ae.viewTo-1,cn=ae.lineDiv.lastChild):(pt=Ge(ae.view[_e+1].line)-1,cn=ae.view[_e+1].node.previousSibling),!Qe)return!1;for(var Mt=ie.doc.splitLines(Yd(ie,Qe,cn,Oe,pt)),Jn=Cn(ie.doc,zt(Oe,0),zt(pt,fi(ie.doc,pt).text.length));Mt.length>1&&Jn.length>1;)if(St(Mt)==St(Jn))Mt.pop(),Jn.pop(),pt--;else if(Mt[0]==Jn[0])Mt.shift(),Jn.shift(),Oe++;else break;for(var Rn=0,Ui=0,$i=Mt[0],mr=Jn[0],Ir=Math.min($i.length,mr.length);Rnhe.ch&&$r.charCodeAt($r.length-Ui-1)==Gr.charCodeAt(Gr.length-Ui-1);)Rn--,Ui++;Mt[Mt.length-1]=$r.slice(0,$r.length-Ui).replace(/^\u200b+/,""),Mt[0]=Mt[0].slice(Rn).replace(/\u200b+$/,"");var ko=zt(Oe,Rn),Vr=zt(pt,Jn.length?St(Jn).length-Ui:0);if(Mt.length>1||Mt[0]||Fn(ko,Vr))return ed(ie.doc,Mt,ko,Vr,"+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 ie=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(ie.readDOMTimeout=null,ie.composing)if(ie.composing.done)ie.composing=null;else return;ie.updateFromDOM()},80))},Da.prototype.updateFromDOM=function(){var ie=this;(this.cm.isReadOnly()||!this.pollContent())&&lo(this.cm,function(){return ca(ie.cm)})},Da.prototype.setUneditable=function(ie){ie.contentEditable="false"},Da.prototype.onKeyPress=function(ie){ie.charCode==0||this.composing||(ie.preventDefault(),this.cm.isReadOnly()||co(this.cm,kc)(this.cm,String.fromCharCode(ie.charCode==null?ie.keyCode:ie.charCode),0))},Da.prototype.readOnlyChanged=function(ie){this.div.contentEditable=String(ie!="nocursor")},Da.prototype.onContextMenu=function(){},Da.prototype.resetPosition=function(){},Da.prototype.needsContentAttribute=!0;function Af(ie,ae){var ce=Jo(ie,ae.line);if(!ce||ce.hidden)return null;var he=fi(ie.doc,ae.line),pe=so(ce,he,ae.line),Ae=hn(he,ie.doc.direction),Oe="left";if(Ae){var Qe=Tt(Ae,ae.ch);Oe=Qe%2?"right":"left"}var _e=Yo(pe.map,ae.ch,Oe);return _e.offset=_e.collapse=="right"?_e.end:_e.start,_e}function Kg(ie){for(var ae=ie;ae;ae=ae.parentNode)if(/CodeMirror-gutter-wrapper/.test(ae.className))return!0;return!1}function Kd(ie,ae){return ae&&(ie.bad=!0),ie}function Yd(ie,ae,ce,he,pe){var Ae="",Oe=!1,Qe=ie.doc.lineSeparator(),_e=!1;function pt(Rn){return function(Ui){return Ui.id==Rn}}function cn(){Oe&&(Ae+=Qe,_e&&(Ae+=Qe),Oe=_e=!1)}function Mt(Rn){Rn&&(cn(),Ae+=Rn)}function Jn(Rn){if(Rn.nodeType==1){var Ui=Rn.getAttribute("cm-text");if(Ui){Mt(Ui);return}var $i=Rn.getAttribute("cm-marker"),mr;if($i){var Ir=ie.findMarks(zt(he,0),zt(pe+1,0),pt(+$i));Ir.length&&(mr=Ir[0].find(0))&&Mt(Cn(ie.doc,mr.from,mr.to).join(Qe));return}if(Rn.getAttribute("contenteditable")=="false")return;var $r=/^(pre|div|p|li|table|br)$/i.test(Rn.nodeName);if(!/^br$/i.test(Rn.nodeName)&&Rn.textContent.length==0)return;$r&&cn();for(var Gr=0;Gr=9&&ae.hasSelection&&(ae.hasSelection=null),ce.poll()}),xn(pe,"paste",function(Oe){gn(he,Oe)||Wg(Oe,he)||(he.state.pasteIncoming=+new Date,ce.fastPoll())});function Ae(Oe){if(!gn(he,Oe)){if(he.somethingSelected())ld({lineWise:!1,text:he.getSelections()});else if(he.options.lineWiseCopyCut){var Qe=Zg(he);ld({lineWise:!0,text:Qe.text}),Oe.type=="cut"?he.setSelections(Qe.ranges,null,rn):(ce.prevInput="",pe.value=Qe.text.join(` `),fn(pe))}else return;Oe.type=="cut"&&(he.state.cutIncoming=+new Date)}}xn(pe,"cut",Ae),xn(pe,"copy",Ae),xn(ie.scroller,"paste",function(Oe){if(!(Qr(ie,Oe)||gn(he,Oe))){if(!pe.dispatchEvent){he.state.pasteIncoming=+new Date,ce.focus();return}var Qe=new Event("paste");Qe.clipboardData=Oe.clipboardData,pe.dispatchEvent(Qe)}}),xn(ie.lineSpace,"selectstart",function(Oe){Qr(ie,Oe)||vi(Oe)}),xn(pe,"compositionstart",function(){var Oe=he.getCursor("from");ce.composing&&ce.composing.range.clear(),ce.composing={start:Oe,range:he.markText(Oe,he.getCursor("to"),{className:"CodeMirror-composing"})}}),xn(pe,"compositionend",function(){ce.composing&&(ce.poll(),ce.composing.range.clear(),ce.composing=null)})},gs.prototype.createField=function(ie){this.wrapper=Gg(),this.textarea=this.wrapper.firstChild},gs.prototype.screenReaderLabelChanged=function(ie){ie?this.textarea.setAttribute("aria-label",ie):this.textarea.removeAttribute("aria-label")},gs.prototype.prepareSelection=function(){var ie=this.cm,ae=ie.display,ce=ie.doc,he=Dl(ie);if(ie.options.moveInputWithCursor){var pe=wr(ie,ce.sel.primary().head,"div"),Ae=ae.wrapper.getBoundingClientRect(),Oe=ae.lineDiv.getBoundingClientRect();he.teTop=Math.max(0,Math.min(ae.wrapper.clientHeight-10,pe.top+Oe.top-Ae.top)),he.teLeft=Math.max(0,Math.min(ae.wrapper.clientWidth-10,pe.left+Oe.left-Ae.left))}return he},gs.prototype.showSelection=function(ie){var ae=this.cm,ce=ae.display;Ve(ce.cursorDiv,ie.cursors),Ve(ce.selectionDiv,ie.selection),ie.teTop!=null&&(this.wrapper.style.top=ie.teTop+"px",this.wrapper.style.left=ie.teLeft+"px")},gs.prototype.reset=function(ie){if(!(this.contextMenuPending||this.composing)){var ae=this.cm;if(ae.somethingSelected()){this.prevInput="";var ce=ae.getSelection();this.textarea.value=ce,ae.state.focused&&fn(this.textarea),Et&&ze>=9&&(this.hasSelection=ce)}else ie||(this.prevInput=this.textarea.value="",Et&&ze>=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"&&(!te||Ct()!=this.textarea))try{this.textarea.focus()}catch(ie){}},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 ie=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ie.poll(),ie.cm.state.focused&&ie.slowPoll()})},gs.prototype.fastPoll=function(){var ie=!1,ae=this;ae.pollingFast=!0;function ce(){var he=ae.poll();!he&&!ie?(ie=!0,ae.polling.set(60,ce)):(ae.pollingFast=!1,ae.slowPoll())}ae.polling.set(20,ce)},gs.prototype.poll=function(){var ie=this,ae=this.cm,ce=this.textarea,he=this.prevInput;if(this.contextMenuPending||!ae.state.focused||Ce(ce)&&!he&&!this.composing||ae.isReadOnly()||ae.options.disableInput||ae.state.keySeq)return!1;var pe=ce.value;if(pe==he&&!ae.somethingSelected())return!1;if(Et&&ze>=9&&this.hasSelection===pe||de&&/[\uf700-\uf7ff]/.test(pe))return ae.display.input.reset(),!1;if(ae.doc.sel==ae.display.selForContextMenu){var Ae=pe.charCodeAt(0);if(Ae==8203&&!he&&(he="\u200B"),Ae==8666)return this.reset(),this.cm.execCommand("undo")}for(var Oe=0,Qe=Math.min(he.length,pe.length);Oe1e3||pe.indexOf(` `)>-1?ce.value=ie.prevInput="":ie.prevInput=pe,ie.composing&&(ie.composing.range.clear(),ie.composing.range=ae.markText(ie.composing.start,ae.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},gs.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},gs.prototype.onKeyPress=function(){Et&&ze>=9&&(this.hasSelection=null),this.fastPoll()},gs.prototype.onContextMenu=function(ie){var ae=this,ce=ae.cm,he=ce.display,pe=ae.textarea;ae.contextMenuPending&&ae.contextMenuPending();var Ae=Ya(ce,ie),Oe=he.scroller.scrollTop;if(!Ae||Me)return;var Qe=ce.options.resetSelectionOnContextMenu;Qe&&ce.doc.sel.contains(Ae)==-1&&co(ce,Ks)(ce.doc,qu(Ae),rn);var _e=pe.style.cssText,pt=ae.wrapper.style.cssText,cn=ae.wrapper.offsetParent.getBoundingClientRect();ae.wrapper.style.cssText="position: static",pe.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(ie.clientY-cn.top-5)+"px; left: "+(ie.clientX-cn.left-5)+`px; z-index: 1000; background: `+(Et?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Mt;ct&&(Mt=window.scrollY),he.input.focus(),ct&&window.scrollTo(null,Mt),he.input.reset(),ce.somethingSelected()||(pe.value=ae.prevInput=" "),ae.contextMenuPending=Rn,he.selForContextMenu=ce.doc.sel,clearTimeout(he.detectingSelectAll);function Jn(){if(pe.selectionStart!=null){var $i=ce.somethingSelected(),mr="\u200B"+($i?pe.value:"");pe.value="\u21DA",pe.value=mr,ae.prevInput=$i?"":"\u200B",pe.selectionStart=1,pe.selectionEnd=mr.length,he.selForContextMenu=ce.doc.sel}}function Rn(){if(ae.contextMenuPending==Rn&&(ae.contextMenuPending=!1,ae.wrapper.style.cssText=pt,pe.style.cssText=_e,Et&&ze<9&&he.scrollbars.setScrollTop(he.scroller.scrollTop=Oe),pe.selectionStart!=null)){(!Et||Et&&ze<9)&&Jn();var $i=0,mr=function(){he.selForContextMenu==ce.doc.sel&&pe.selectionStart==0&&pe.selectionEnd>0&&ae.prevInput=="\u200B"?co(ce,as)(ce):$i++<10?he.detectingSelectAll=setTimeout(mr,500):(he.selForContextMenu=null,he.input.reset())};he.detectingSelectAll=setTimeout(mr,200)}}if(Et&&ze>=9&&Jn(),Le){Yi(ie);var Ui=function(){jt(window,"mouseup",Ui),setTimeout(Rn,20)};xn(window,"mouseup",Ui)}else setTimeout(Rn,50)},gs.prototype.readOnlyChanged=function(ie){ie||this.reset(),this.textarea.disabled=ie=="nocursor",this.textarea.readOnly=!!ie},gs.prototype.setUneditable=function(){},gs.prototype.needsContentAttribute=!1;function dm(ie,ae){if(ae=ae?Ln(ae):{},ae.value=ie.value,!ae.tabindex&&ie.tabIndex&&(ae.tabindex=ie.tabIndex),!ae.placeholder&&ie.placeholder&&(ae.placeholder=ie.placeholder),ae.autofocus==null){var ce=Ct();ae.autofocus=ce==ie||ie.getAttribute("autofocus")!=null&&ce==document.body}function he(){ie.value=Qe.getValue()}var pe;if(ie.form&&(xn(ie.form,"submit",he),!ae.leaveSubmitMethodAlone)){var Ae=ie.form;pe=Ae.submit;try{var Oe=Ae.submit=function(){he(),Ae.submit=pe,Ae.submit(),Ae.submit=Oe}}catch(_e){}}ae.finishInit=function(_e){_e.save=he,_e.getTextArea=function(){return ie},_e.toTextArea=function(){_e.toTextArea=isNaN,he(),ie.parentNode.removeChild(_e.getWrapperElement()),ie.style.display="",ie.form&&(jt(ie.form,"submit",he),!ae.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=pe))}},ie.style.display="none";var Qe=fa(function(_e){return ie.parentNode.insertBefore(_e,ie.nextSibling)},ae);return Qe}function Ud(ie){ie.off=jt,ie.on=xn,ie.wheelEventPixels=Ol,ie.Doc=Is,ie.splitLines=yr,ie.countColumn=lt,ie.findColumn=xi,ie.isWordChar=Be,ie.Pass=Yn,ie.signal=Xt,ie.Line=tn,ie.changeEnd=Sh,ie.scrollbarModel=Bl,ie.Pos=zt,ie.cmpPos=Fn,ie.modes=hi,ie.mimeModes=Zn,ie.resolveMode=di,ie.getMode=At,ie.modeExtensions=Dt,ie.extendMode=bt,ie.copyState=ti,ie.startState=ci,ie.innerMode=yi,ie.commands=Ch,ie.keyMap=xl,ie.keyName=im,ie.isModifierKey=jd,ie.lookupKey=_l,ie.normalizeKeyMap=Lg,ie.StringStream=Pn,ie.SharedTextMarker=Tu,ie.TextMarker=qt,ie.LineWidget=th,ie.e_preventDefault=vi,ie.e_stopPropagation=mn,ie.e_stop=Yi,ie.addClass=ln,ie.contains=Nt,ie.rmClass=Ze,ie.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)&&yn(nh,Nc)<0&&(fa.prototype[Nc]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(Is.prototype[Nc]));return ri(Is),fa.inputStyles={textarea:gs,contenteditable:Da},fa.defineMode=function(ie){!fa.defaults.mode&&ie!="null"&&(fa.defaults.mode=ie),nn.apply(this,arguments)},fa.defineMIME=Hn,fa.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),fa.defineMIME("text/plain","null"),fa.defineExtension=function(ie,ae){fa.prototype[ie]=ae},fa.defineDocExtension=function(ie,ae){Is.prototype[ie]=ae},fa.fromTextArea=dm,Ud(fa),fa.version="5.58.2",fa})},25419:function(Un,pi,De){(function(ye){ye(De(89780),De(15525),De(98101))})(function(ye){"use strict";ye.defineMode("markdown",function(tt,it){var Ft=ye.getMode(tt,"text/html"),Et=Ft.name=="null";function ze(lt){if(ye.findModeByName){var qe=ye.findModeByName(lt);qe&&(lt=qe.mime||qe.mimes[0])}var yn=ye.getMode(tt,lt);return yn.name=="null"?null:yn}it.highlightFormatting===void 0&&(it.highlightFormatting=!1),it.maxBlockquoteDepth===void 0&&(it.maxBlockquoteDepth=0),it.taskLists===void 0&&(it.taskLists=!1),it.strikethrough===void 0&&(it.strikethrough=!1),it.emoji===void 0&&(it.emoji=!1),it.fencedCodeBlockHighlighting===void 0&&(it.fencedCodeBlockHighlighting=!0),it.fencedCodeBlockDefaultMode===void 0&&(it.fencedCodeBlockDefaultMode="text/plain"),it.xml===void 0&&(it.xml=!0),it.tokenTypeOverrides===void 0&&(it.tokenTypeOverrides={});var ct={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 Kt in ct)ct.hasOwnProperty(Kt)&&it.tokenTypeOverrides[Kt]&&(ct[Kt]=it.tokenTypeOverrides[Kt]);var ft=/^([*\-_])(?:\s*\1){2,}\s*$/,Me=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,It=/^\[(x| )\](?=\s)/i,Ye=it.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Ht=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ne=/^[^#!\[\]*_\\<>` "'(~:]+/,ne=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,te=/^\s*\[[^\]]+?\]:.*$/,de=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,le=" ";function ge(lt,qe,yn){return qe.f=qe.inline=yn,yn(lt,qe)}function me(lt,qe,yn){return qe.f=qe.block=yn,yn(lt,qe)}function Se(lt){return!lt||!/\S/.test(lt.string)}function Le(lt){if(lt.linkTitle=!1,lt.linkHref=!1,lt.linkText=!1,lt.em=!1,lt.strong=!1,lt.strikethrough=!1,lt.quote=0,lt.indentedCode=!1,lt.f==Ze){var qe=Et;if(!qe){var yn=ye.innerMode(Ft,lt.htmlState);qe=yn.mode.name=="xml"&&yn.state.tagStart===null&&!yn.state.context&&yn.state.tokenize.isInText}qe&&(lt.f=wt,lt.block=Ie,lt.htmlState=null)}return lt.trailingSpace=0,lt.trailingSpaceNewLine=!1,lt.prevLine=lt.thisLine,lt.thisLine={stream:null},null}function Ie(lt,qe){var yn=lt.column()===qe.indentation,oi=Se(qe.prevLine.stream),Yn=qe.indentedCode,rn=qe.prevLine.hr,Gn=qe.list!==!1,Mn=(qe.listStack[qe.listStack.length-1]||0)+3;qe.indentedCode=!1;var xi=qe.indentation;if(qe.indentationDiff===null&&(qe.indentationDiff=qe.indentation,Gn)){for(qe.list=null;xi=4&&(Yn||qe.prevLine.fencedCodeEnd||qe.prevLine.header||oi))return lt.skipToEnd(),qe.indentedCode=!0,ct.code;if(lt.eatSpace())return null;if(yn&&qe.indentation<=Mn&&(St=lt.match(Ye))&&St[1].length<=6)return qe.quote=0,qe.header=St[1].length,qe.thisLine.header=!0,it.highlightFormatting&&(qe.formatting="header"),qe.f=qe.inline,Ve(qe);if(qe.indentation<=Mn&<.eat(">"))return qe.quote=yn?1:qe.quote+1,it.highlightFormatting&&(qe.formatting="quote"),lt.eatSpace(),Ve(qe);if(!Nn&&!qe.setext&&yn&&qe.indentation<=Mn&&(St=lt.match(Me))){var bi=St[1]?"ol":"ul";return qe.indentation=xi+lt.current().length,qe.list=!0,qe.quote=0,qe.listStack.push(qe.indentation),qe.em=!1,qe.strong=!1,qe.code=!1,qe.strikethrough=!1,it.taskLists&<.match(It,!1)&&(qe.taskList=!0),qe.f=qe.inline,it.highlightFormatting&&(qe.formatting=["list","list-"+bi]),Ve(qe)}else{if(yn&&qe.indentation<=Mn&&(St=lt.match(ne,!0)))return qe.quote=0,qe.fencedEndRE=new RegExp(St[1]+"+ *$"),qe.localMode=it.fencedCodeBlockHighlighting&&ze(St[2]||it.fencedCodeBlockDefaultMode),qe.localMode&&(qe.localState=ye.startState(qe.localMode)),qe.f=qe.block=st,it.highlightFormatting&&(qe.formatting="code-block"),qe.code=-1,Ve(qe);if(qe.setext||(!Wt||!Gn)&&!qe.quote&&qe.list===!1&&!qe.code&&!Nn&&!te.test(lt.string)&&(St=lt.lookAhead(1))&&(St=St.match(Ht)))return qe.setext?(qe.header=qe.setext,qe.setext=0,lt.skipToEnd(),it.highlightFormatting&&(qe.formatting="header")):(qe.header=St[0].charAt(0)=="="?1:2,qe.setext=qe.header),qe.thisLine.header=!0,qe.f=qe.inline,Ve(qe);if(Nn)return lt.skipToEnd(),qe.hr=!0,qe.thisLine.hr=!0,ct.hr;if(lt.peek()==="[")return ge(lt,qe,bn)}return ge(lt,qe,qe.inline)}function Ze(lt,qe){var yn=Ft.token(lt,qe.htmlState);if(!Et){var oi=ye.innerMode(Ft,qe.htmlState);(oi.mode.name=="xml"&&oi.state.tagStart===null&&!oi.state.context&&oi.state.tokenize.isInText||qe.md_inside&<.current().indexOf(">")>-1)&&(qe.f=wt,qe.block=Ie,qe.htmlState=null)}return yn}function st(lt,qe){var yn=qe.listStack[qe.listStack.length-1]||0,oi=qe.indentation=lt.quote?qe.push(ct.formatting+"-"+lt.formatting[yn]+"-"+lt.quote):qe.push("error"))}if(lt.taskOpen)return qe.push("meta"),qe.length?qe.join(" "):null;if(lt.taskClosed)return qe.push("property"),qe.length?qe.join(" "):null;if(lt.linkHref?qe.push(ct.linkHref,"url"):(lt.strong&&qe.push(ct.strong),lt.em&&qe.push(ct.em),lt.strikethrough&&qe.push(ct.strikethrough),lt.emoji&&qe.push(ct.emoji),lt.linkText&&qe.push(ct.linkText),lt.code&&qe.push(ct.code),lt.image&&qe.push(ct.image),lt.imageAltText&&qe.push(ct.imageAltText,"link"),lt.imageMarker&&qe.push(ct.imageMarker)),lt.header&&qe.push(ct.header,ct.header+"-"+lt.header),lt.quote&&(qe.push(ct.quote),!it.maxBlockquoteDepth||it.maxBlockquoteDepth>=lt.quote?qe.push(ct.quote+"-"+lt.quote):qe.push(ct.quote+"-"+it.maxBlockquoteDepth)),lt.list!==!1){var oi=(lt.listStack.length-1)%3;oi?oi===1?qe.push(ct.list2):qe.push(ct.list3):qe.push(ct.list1)}return lt.trailingSpaceNewLine?qe.push("trailing-space-new-line"):lt.trailingSpace&&qe.push("trailing-space-"+(lt.trailingSpace%2?"a":"b")),qe.length?qe.join(" "):null}function Xe(lt,qe){if(lt.match(Ne,!0))return Ve(qe)}function wt(lt,qe){var yn=qe.text(lt,qe);if(typeof yn!="undefined")return yn;if(qe.list)return qe.list=null,Ve(qe);if(qe.taskList){var oi=lt.match(It,!0)[1]===" ";return oi?qe.taskOpen=!0:qe.taskClosed=!0,it.highlightFormatting&&(qe.formatting="task"),qe.taskList=!1,Ve(qe)}if(qe.taskOpen=!1,qe.taskClosed=!1,qe.header&<.match(/^#+$/,!0))return it.highlightFormatting&&(qe.formatting="header"),Ve(qe);var Yn=lt.next();if(qe.linkTitle){qe.linkTitle=!1;var rn=Yn;Yn==="("&&(rn=")"),rn=(rn+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Gn="^\\s*(?:[^"+rn+"\\\\]+|\\\\\\\\|\\\\.)"+rn;if(lt.match(new RegExp(Gn),!0))return ct.linkHref}if(Yn==="`"){var Mn=qe.formatting;it.highlightFormatting&&(qe.formatting="code"),lt.eatWhile("`");var xi=lt.current().length;if(qe.code==0&&(!qe.quote||xi==1))return qe.code=xi,Ve(qe);if(xi==qe.code){var Wt=Ve(qe);return qe.code=0,Wt}else return qe.formatting=Mn,Ve(qe)}else if(qe.code)return Ve(qe);if(Yn==="\\"&&(lt.next(),it.highlightFormatting)){var Nn=Ve(qe),St=ct.formatting+"-escape";return Nn?Nn+" "+St:St}if(Yn==="!"&<.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return qe.imageMarker=!0,qe.image=!0,it.highlightFormatting&&(qe.formatting="image"),Ve(qe);if(Yn==="["&&qe.imageMarker&<.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return qe.imageMarker=!1,qe.imageAltText=!0,it.highlightFormatting&&(qe.formatting="image"),Ve(qe);if(Yn==="]"&&qe.imageAltText){it.highlightFormatting&&(qe.formatting="image");var Nn=Ve(qe);return qe.imageAltText=!1,qe.image=!1,qe.inline=qe.f=Nt,Nn}if(Yn==="["&&!qe.image)return qe.linkText&<.match(/^.*?\]/)||(qe.linkText=!0,it.highlightFormatting&&(qe.formatting="link")),Ve(qe);if(Yn==="]"&&qe.linkText){it.highlightFormatting&&(qe.formatting="link");var Nn=Ve(qe);return qe.linkText=!1,qe.inline=qe.f=lt.match(/\(.*?\)| ?\[.*?\]/,!1)?Nt:wt,Nn}if(Yn==="<"&<.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){qe.f=qe.inline=gt,it.highlightFormatting&&(qe.formatting="link");var Nn=Ve(qe);return Nn?Nn+=" ":Nn="",Nn+ct.linkInline}if(Yn==="<"&<.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){qe.f=qe.inline=gt,it.highlightFormatting&&(qe.formatting="link");var Nn=Ve(qe);return Nn?Nn+=" ":Nn="",Nn+ct.linkEmail}if(it.xml&&Yn==="<"&<.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var bi=lt.string.indexOf(">",lt.pos);if(bi!=-1){var qn=lt.string.substring(lt.start,bi);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(qn)&&(qe.md_inside=!0)}return lt.backUp(1),qe.htmlState=ye.startState(Ft),me(lt,qe,Ze)}if(it.xml&&Yn==="<"&<.match(/^\/\w*?>/))return qe.md_inside=!1,"tag";if(Yn==="*"||Yn==="_"){for(var je=1,be=lt.pos==1?" ":lt.string.charAt(lt.pos-2);je<3&<.eat(Yn);)je++;var we=lt.peek()||" ",Be=!/\s/.test(we)&&(!de.test(we)||/\s/.test(be)||de.test(be)),Ke=!/\s/.test(be)&&(!de.test(be)||/\s/.test(we)||de.test(we)),ke=null,et=null;if(je%2&&(!qe.em&&Be&&(Yn==="*"||!Ke||de.test(be))?ke=!0:qe.em==Yn&&Ke&&(Yn==="*"||!Be||de.test(we))&&(ke=!1)),je>1&&(!qe.strong&&Be&&(Yn==="*"||!Ke||de.test(be))?et=!0:qe.strong==Yn&&Ke&&(Yn==="*"||!Be||de.test(we))&&(et=!1)),et!=null||ke!=null){it.highlightFormatting&&(qe.formatting=ke==null?"strong":et==null?"em":"strong em"),ke===!0&&(qe.em=Yn),et===!0&&(qe.strong=Yn);var Wt=Ve(qe);return ke===!1&&(qe.em=!1),et===!1&&(qe.strong=!1),Wt}}else if(Yn===" "&&(lt.eat("*")||lt.eat("_"))){if(lt.peek()===" ")return Ve(qe);lt.backUp(1)}if(it.strikethrough){if(Yn==="~"&<.eatWhile(Yn)){if(qe.strikethrough){it.highlightFormatting&&(qe.formatting="strikethrough");var Wt=Ve(qe);return qe.strikethrough=!1,Wt}else if(lt.match(/^[^\s]/,!1))return qe.strikethrough=!0,it.highlightFormatting&&(qe.formatting="strikethrough"),Ve(qe)}else if(Yn===" "&<.match(/^~~/,!0)){if(lt.peek()===" ")return Ve(qe);lt.backUp(2)}}if(it.emoji&&Yn===":"&<.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){qe.emoji=!0,it.highlightFormatting&&(qe.formatting="emoji");var sn=Ve(qe);return qe.emoji=!1,sn}return Yn===" "&&(lt.match(/^ +$/,!1)?qe.trailingSpace++:qe.trailingSpace&&(qe.trailingSpaceNewLine=!0)),Ve(qe)}function gt(lt,qe){var yn=lt.next();if(yn===">"){qe.f=qe.inline=wt,it.highlightFormatting&&(qe.formatting="link");var oi=Ve(qe);return oi?oi+=" ":oi="",oi+ct.linkInline}return lt.match(/^[^>]+/,!0),ct.linkInline}function Nt(lt,qe){if(lt.eatSpace())return null;var yn=lt.next();return yn==="("||yn==="["?(qe.f=qe.inline=ln(yn==="("?")":"]"),it.highlightFormatting&&(qe.formatting="link-string"),qe.linkHref=!0,Ve(qe)):"error"}var Ct={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function ln(lt){return function(qe,yn){var oi=qe.next();if(oi===lt){yn.f=yn.inline=wt,it.highlightFormatting&&(yn.formatting="link-string");var Yn=Ve(yn);return yn.linkHref=!1,Yn}return qe.match(Ct[lt]),yn.linkHref=!0,Ve(yn)}}function bn(lt,qe){return lt.match(/^([^\]\\]|\\.)*\]:/,!1)?(qe.f=fn,lt.next(),it.highlightFormatting&&(qe.formatting="link"),qe.linkText=!0,Ve(qe)):ge(lt,qe,wt)}function fn(lt,qe){if(lt.match(/^\]:/,!0)){qe.f=qe.inline=Yt,it.highlightFormatting&&(qe.formatting="link");var yn=Ve(qe);return qe.linkText=!1,yn}return lt.match(/^([^\]\\]|\\.)+/,!0),ct.linkText}function Yt(lt,qe){return lt.eatSpace()?null:(lt.match(/^[^\s]+/,!0),lt.peek()===void 0?qe.linkTitle=!0:lt.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),qe.f=qe.inline=wt,ct.linkHref+" url")}var Ln={startState:function(){return{f:Ie,prevLine:{stream:null},thisLine:{stream:null},block:Ie,htmlState:null,indentation:0,inline:wt,text:Xe,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(lt){return{f:lt.f,prevLine:lt.prevLine,thisLine:lt.thisLine,block:lt.block,htmlState:lt.htmlState&&ye.copyState(Ft,lt.htmlState),indentation:lt.indentation,localMode:lt.localMode,localState:lt.localMode?ye.copyState(lt.localMode,lt.localState):null,inline:lt.inline,text:lt.text,formatting:!1,linkText:lt.linkText,linkTitle:lt.linkTitle,linkHref:lt.linkHref,code:lt.code,em:lt.em,strong:lt.strong,strikethrough:lt.strikethrough,emoji:lt.emoji,header:lt.header,setext:lt.setext,hr:lt.hr,taskList:lt.taskList,list:lt.list,listStack:lt.listStack.slice(0),quote:lt.quote,indentedCode:lt.indentedCode,trailingSpace:lt.trailingSpace,trailingSpaceNewLine:lt.trailingSpaceNewLine,md_inside:lt.md_inside,fencedEndRE:lt.fencedEndRE}},token:function(lt,qe){if(qe.formatting=!1,lt!=qe.thisLine.stream){if(qe.header=0,qe.hr=!1,lt.match(/^\s*$/,!0))return Le(qe),null;if(qe.prevLine=qe.thisLine,qe.thisLine={stream:lt},qe.taskList=!1,qe.trailingSpace=0,qe.trailingSpaceNewLine=!1,!qe.localState&&(qe.f=qe.block,qe.f!=Ze)){var yn=lt.match(/^\s*/,!0)[0].replace(/\t/g,le).length;if(qe.indentation=yn,qe.indentationDiff=null,yn>0)return null}}return qe.f(lt,qe)},innerMode:function(lt){return lt.block==Ze?{state:lt.htmlState,mode:Ft}:lt.localState?{state:lt.localState,mode:lt.localMode}:{state:lt,mode:Ln}},indent:function(lt,qe,yn){return lt.block==Ze&&Ft.indent?Ft.indent(lt.htmlState,qe,yn):lt.localState&<.localMode.indent?lt.localMode.indent(lt.localState,qe,yn):ye.Pass},blankLine:Le,getType:Ve,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Ln},"xml"),ye.defineMIME("text/markdown","markdown"),ye.defineMIME("text/x-markdown","markdown")})},98101:function(Un,pi,De){(function(ye){ye(De(89780))})(function(ye){"use strict";ye.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 tt=0;tt-1&&Ft.substring(ct+1,Ft.length);if(Kt)return ye.findModeByExtension(Kt)},ye.findModeByName=function(Ft){Ft=Ft.toLowerCase();for(var Et=0;Et0?Ne.cmdState[Ne.cmdState.length-1]:null}function ze(Ne){var ne=Ne.cmdState.pop();ne&&ne.closeBracket()}function ct(Ne){for(var ne=Ne.cmdState,te=ne.length-1;te>=0;te--){var de=ne[te];if(de.name!="DEFAULT")return de}return{styleIdentifier:function(){return null}}}function Kt(Ne,ne,te){return function(){this.name=Ne,this.bracketNo=0,this.style=ne,this.styles=te,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var ft={};ft.importmodule=Kt("importmodule","tag",["string","builtin"]),ft.documentclass=Kt("documentclass","tag",["","atom"]),ft.usepackage=Kt("usepackage","tag",["atom"]),ft.begin=Kt("begin","tag",["atom"]),ft.end=Kt("end","tag",["atom"]),ft.label=Kt("label","tag",["atom"]),ft.ref=Kt("ref","tag",["atom"]),ft.eqref=Kt("eqref","tag",["atom"]),ft.cite=Kt("cite","tag",["atom"]),ft.bibitem=Kt("bibitem","tag",["atom"]),ft.Bibitem=Kt("Bibitem","tag",["atom"]),ft.RBibitem=Kt("RBibitem","tag",["atom"]),ft.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Me(Ne,ne){Ne.f=ne}function It(Ne,ne){var te;if(Ne.match(/^\\[a-zA-Z@]+/)){var de=Ne.current().slice(1);return te=ft.hasOwnProperty(de)?ft[de]:ft.DEFAULT,te=new te,Ft(ne,te),Me(ne,Ht),te.style}if(Ne.match(/^\\[$&%#{}_]/)||Ne.match(/^\\[,;!\/\\]/))return"tag";if(Ne.match("\\["))return Me(ne,function(ge,me){return Ye(ge,me,"\\]")}),"keyword";if(Ne.match("\\("))return Me(ne,function(ge,me){return Ye(ge,me,"\\)")}),"keyword";if(Ne.match("$$"))return Me(ne,function(ge,me){return Ye(ge,me,"$$")}),"keyword";if(Ne.match("$"))return Me(ne,function(ge,me){return Ye(ge,me,"$")}),"keyword";var le=Ne.next();if(le=="%")return Ne.skipToEnd(),"comment";if(le=="}"||le=="]"){if(te=Et(ne),te)te.closeBracket(le),Me(ne,Ht);else return"error";return"bracket"}else return le=="{"||le=="["?(te=ft.DEFAULT,te=new te,Ft(ne,te),"bracket"):/\d/.test(le)?(Ne.eatWhile(/[\w.%]/),"atom"):(Ne.eatWhile(/[\w\-_]/),te=ct(ne),te.name=="begin"&&(te.argument=Ne.current()),te.styleIdentifier())}function Ye(Ne,ne,te){if(Ne.eatSpace())return null;if(te&&Ne.match(te))return Me(ne,It),"keyword";if(Ne.match(/^\\[a-zA-Z@]+/))return"tag";if(Ne.match(/^[a-zA-Z]+/))return"variable-2";if(Ne.match(/^\\[$&%#{}_]/)||Ne.match(/^\\[,;!\/]/)||Ne.match(/^[\^_&]/))return"tag";if(Ne.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ne.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var de=Ne.next();return de=="{"||de=="}"||de=="["||de=="]"||de=="("||de==")"?"bracket":de=="%"?(Ne.skipToEnd(),"comment"):"error"}function Ht(Ne,ne){var te=Ne.peek(),de;return te=="{"||te=="["?(de=Et(ne),de.openBracket(te),Ne.eat(te),Me(ne,It),"bracket"):/[ \t\r]/.test(te)?(Ne.eat(te),null):(Me(ne,It),ze(ne),It(Ne,ne))}return{startState:function(){var Ne=it.inMathMode?function(ne,te){return Ye(ne,te)}:It;return{cmdState:[],f:Ne}},copyState:function(Ne){return{cmdState:Ne.cmdState.slice(),f:Ne.f}},token:function(Ne,ne){return ne.f(Ne,ne)},blankLine:function(Ne){Ne.f=It,Ne.cmdState.length=0},lineComment:"%"}}),ye.defineMIME("text/x-stex","stex"),ye.defineMIME("text/x-latex","stex")})},15525:function(Un,pi,De){(function(ye){ye(De(89780))})(function(ye){"use strict";var tt={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},it={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ye.defineMode("xml",function(Ft,Et){var ze=Ft.indentUnit,ct={},Kt=Et.htmlMode?tt:it;for(var ft in Kt)ct[ft]=Kt[ft];for(var ft in Et)ct[ft]=Et[ft];var Me,It;function Ye(gt,Nt){function Ct(fn){return Nt.tokenize=fn,fn(gt,Nt)}var ln=gt.next();if(ln=="<")return gt.eat("!")?gt.eat("[")?gt.match("CDATA[")?Ct(ne("atom","]]>")):null:gt.match("--")?Ct(ne("comment","-->")):gt.match("DOCTYPE",!0,!0)?(gt.eatWhile(/[\w\._\-]/),Ct(te(1))):null:gt.eat("?")?(gt.eatWhile(/[\w\._\-]/),Nt.tokenize=ne("meta","?>"),"meta"):(Me=gt.eat("/")?"closeTag":"openTag",Nt.tokenize=Ht,"tag bracket");if(ln=="&"){var bn;return gt.eat("#")?gt.eat("x")?bn=gt.eatWhile(/[a-fA-F\d]/)&>.eat(";"):bn=gt.eatWhile(/[\d]/)&>.eat(";"):bn=gt.eatWhile(/[\w\.\-:]/)&>.eat(";"),bn?"atom":"error"}else return gt.eatWhile(/[^&<]/),null}Ye.isInText=!0;function Ht(gt,Nt){var Ct=gt.next();if(Ct==">"||Ct=="/"&>.eat(">"))return Nt.tokenize=Ye,Me=Ct==">"?"endTag":"selfcloseTag","tag bracket";if(Ct=="=")return Me="equals",null;if(Ct=="<"){Nt.tokenize=Ye,Nt.state=me,Nt.tagName=Nt.tagStart=null;var ln=Nt.tokenize(gt,Nt);return ln?ln+" tag error":"tag error"}else return/[\'\"]/.test(Ct)?(Nt.tokenize=Ne(Ct),Nt.stringStartCol=gt.column(),Nt.tokenize(gt,Nt)):(gt.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ne(gt){var Nt=function(Ct,ln){for(;!Ct.eol();)if(Ct.next()==gt){ln.tokenize=Ht;break}return"string"};return Nt.isInAttribute=!0,Nt}function ne(gt,Nt){return function(Ct,ln){for(;!Ct.eol();){if(Ct.match(Nt)){ln.tokenize=Ye;break}Ct.next()}return gt}}function te(gt){return function(Nt,Ct){for(var ln;(ln=Nt.next())!=null;){if(ln=="<")return Ct.tokenize=te(gt+1),Ct.tokenize(Nt,Ct);if(ln==">")if(gt==1){Ct.tokenize=Ye;break}else return Ct.tokenize=te(gt-1),Ct.tokenize(Nt,Ct)}return"meta"}}function de(gt,Nt,Ct){this.prev=gt.context,this.tagName=Nt,this.indent=gt.indented,this.startOfLine=Ct,(ct.doNotIndent.hasOwnProperty(Nt)||gt.context&>.context.noIndent)&&(this.noIndent=!0)}function le(gt){gt.context&&(gt.context=gt.context.prev)}function ge(gt,Nt){for(var Ct;;){if(!gt.context||(Ct=gt.context.tagName,!ct.contextGrabbers.hasOwnProperty(Ct)||!ct.contextGrabbers[Ct].hasOwnProperty(Nt)))return;le(gt)}}function me(gt,Nt,Ct){return gt=="openTag"?(Ct.tagStart=Nt.column(),Se):gt=="closeTag"?Le:me}function Se(gt,Nt,Ct){return gt=="word"?(Ct.tagName=Nt.current(),It="tag",st):ct.allowMissingTagName&>=="endTag"?(It="tag bracket",st(gt,Nt,Ct)):(It="error",Se)}function Le(gt,Nt,Ct){if(gt=="word"){var ln=Nt.current();return Ct.context&&Ct.context.tagName!=ln&&ct.implicitlyClosed.hasOwnProperty(Ct.context.tagName)&&le(Ct),Ct.context&&Ct.context.tagName==ln||ct.matchClosing===!1?(It="tag",Ie):(It="tag error",Ze)}else return ct.allowMissingTagName&>=="endTag"?(It="tag bracket",Ie(gt,Nt,Ct)):(It="error",Ze)}function Ie(gt,Nt,Ct){return gt!="endTag"?(It="error",Ie):(le(Ct),me)}function Ze(gt,Nt,Ct){return It="error",Ie(gt,Nt,Ct)}function st(gt,Nt,Ct){if(gt=="word")return It="attribute",Ve;if(gt=="endTag"||gt=="selfcloseTag"){var ln=Ct.tagName,bn=Ct.tagStart;return Ct.tagName=Ct.tagStart=null,gt=="selfcloseTag"||ct.autoSelfClosers.hasOwnProperty(ln)?ge(Ct,ln):(ge(Ct,ln),Ct.context=new de(Ct,ln,bn==Ct.indented)),me}return It="error",st}function Ve(gt,Nt,Ct){return gt=="equals"?Xe:(ct.allowMissing||(It="error"),st(gt,Nt,Ct))}function Xe(gt,Nt,Ct){return gt=="string"?wt:gt=="word"&&ct.allowUnquoted?(It="string",st):(It="error",st(gt,Nt,Ct))}function wt(gt,Nt,Ct){return gt=="string"?wt:st(gt,Nt,Ct)}return{startState:function(gt){var Nt={tokenize:Ye,state:me,indented:gt||0,tagName:null,tagStart:null,context:null};return gt!=null&&(Nt.baseIndent=gt),Nt},token:function(gt,Nt){if(!Nt.tagName&>.sol()&&(Nt.indented=gt.indentation()),gt.eatSpace())return null;Me=null;var Ct=Nt.tokenize(gt,Nt);return(Ct||Me)&&Ct!="comment"&&(It=null,Nt.state=Nt.state(Me||Ct,gt,Nt),It&&(Ct=It=="error"?Ct+" error":It)),Ct},indent:function(gt,Nt,Ct){var ln=gt.context;if(gt.tokenize.isInAttribute)return gt.tagStart==gt.indented?gt.stringStartCol+1:gt.indented+ze;if(ln&&ln.noIndent)return ye.Pass;if(gt.tokenize!=Ht&>.tokenize!=Ye)return Ct?Ct.match(/^(\s*)/)[0].length:0;if(gt.tagName)return ct.multilineTagIndentPastTag!==!1?gt.tagStart+gt.tagName.length+2:gt.tagStart+ze*(ct.multilineTagIndentFactor||1);if(ct.alignCDATA&&/$/,blockCommentStart:"",configuration:ct.htmlMode?"html":"xml",helperType:ct.htmlMode?"html":"xml",skipAttribute:function(gt){gt.state==Xe&&(gt.state=st)},xmlCurrentTag:function(gt){return gt.tagName?{name:gt.tagName,close:gt.type=="closeTag"}:null},xmlCurrentContext:function(gt){for(var Nt=[],Ct=gt.context;Ct;Ct=Ct.prev)Ct.tagName&&Nt.push(Ct.tagName);return Nt.reverse()}}}),ye.defineMIME("text/xml","xml"),ye.defineMIME("application/xml","xml"),ye.mimeModes.hasOwnProperty("text/html")||ye.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(Un,pi,De){"use strict";De.d(pi,{$u:function(){return ft},BD:function(){return je},E9:function(){return Kt},FF:function(){return pr},FJ:function(){return me},Hn:function(){return ge},KX:function(){return Le},NB:function(){return vt},S0:function(){return St},UL:function(){return Me},Vk:function(){return le},Vm:function(){return Tt},YI:function(){return bi},ZA:function(){return it},Zt:function(){return It},al:function(){return ke},bn:function(){return Ke},bx:function(){return be},g2:function(){return qn},h1:function(){return Xe},hD:function(){return ri},l4:function(){return ze},rU:function(){return xt},s_:function(){return we},uz:function(){return _t},z6:function(){return Ye}}),Un=De.hmd(Un),function(){var Ce;function Sn(a){var y=0;return function(){return yx&&(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=a.length?a.push(x):a.splice(y,0,x):Ge("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function Mi(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):Ge("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function ai(){var a=Yr.pop();return a===void 0?[]:a}function Li(a){a.length=0,Yr.push(a)}function wi(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(zt(a)&&a.constructor)return wi(a.constructor);return typeof a}function ir(a){var y=a;return zt(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 Wi(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 Ii(a,y,x){Object.defineProperty(Ao.prototype,a,{get:y,set:x})}function un(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;bx;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="",ee=0;ee-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 vr=Pn.navigator!==void 0&&0this.key)return!1;a=a.s;var y=a.length,x=++this.Za,E=this.qf;if(E!==null)for(;xthis.key)return!1;var y=--this.Za;return 0<=y?(this.key=y,this.value=a.s[y],!0):(this.de(),!1)},Ki.prototype.Ad=function(){return this.next()},Ki.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},Ki.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},Ki.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},Ki.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},Ki.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 dn,a.s=x,a.xb(),a.iterator},Ki.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 dn,a.s=x,a.xb(),a.iterator},Ki.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Ki.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},bt.Object.defineProperties(Ki.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Ki.prototype.first=Ki.prototype.first,Ki.prototype.hasNext=Ki.prototype.Ad,Ki.prototype.next=Ki.prototype.next,Ki.prototype.reset=Ki.prototype.reset,Ki.className="ListIteratorBackwards";function dn(a){Fi(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&Ge("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ce=dn.prototype,Ce.xb=function(){var a=this.Ja;a++,999999999a||a>=y.length)&&Kn(a,"0 <= i < length",dn,"elt:i"),y[a]},Ce.get=function(a){return this.M(a)},Ce.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Kn(a,"0 <= i < length",dn,"setElt:i"),this._isFrozen&&Pt(this,a),x[a]=y},Ce.set=function(a,y){this.cd(a,y)},Ce.first=function(){var a=this.s;return a.length===0?null:a[0]},Ce.jc=function(){var a=this.s,y=a.length;return 0a&&Kn(a,">= 0",dn,"insertAt:i"),this._isFrozen&&Pt(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Ce.remove=function(a){if(a===null)return!1;this._isFrozen&&Pt(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)},Ce.delete=function(a){return this.remove(a)},Ce.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Kn(a,"0 <= i < length",dn,"removeAt:i"),this._isFrozen&&Pt(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Ce.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&&Pt(this);for(var b=a,z=y+1;z=z)return this;if((0>y||y>=b-1)&&Kn(y,"0 <= from < length",dn,"sortRange:from"),z===2)return x=E[y],b=E[y+1],0=b)E.sort(a);else for(y=E.slice(0,x),y.sort(a),a=0;a=b)for(x=E.slice(y),x.sort(a),a=y;a=this.s.length)return br;var a=this.Sa;return a!==null?(a.reset(),a):new tr(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return br;var a=this.Hg;return a!==null?(a.reset(),a):new Ki(this)}}}),dn.prototype.reverse=dn.prototype.reverse,dn.prototype.sortRange=dn.prototype.zi,dn.prototype.sort=dn.prototype.sort,dn.prototype.toSet=dn.prototype.Iv,dn.prototype.toArray=dn.prototype.Fa,dn.prototype.removeRange=dn.prototype.removeRange,dn.prototype.removeAt=dn.prototype.mb,dn.prototype.delete=dn.prototype.delete,dn.prototype.remove=dn.prototype.remove,dn.prototype.insertAt=dn.prototype.Gb,dn.prototype.pop=dn.prototype.pop,dn.prototype.last=dn.prototype.jc,dn.prototype.first=dn.prototype.first,dn.prototype.set=dn.prototype.set,dn.prototype.setElt=dn.prototype.cd,dn.prototype.get=dn.prototype.get,dn.prototype.elt=dn.prototype.M,dn.prototype.indexOf=dn.prototype.indexOf,dn.prototype.has=dn.prototype.has,dn.prototype.contains=dn.prototype.contains,dn.prototype.clear=dn.prototype.clear,dn.prototype.addAll=dn.prototype.addAll,dn.prototype.push=dn.prototype.push,dn.prototype.add=dn.prototype.add,dn.prototype.thaw=dn.prototype.ka,dn.prototype.freeze=dn.prototype.freeze,dn.className="List";function lr(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}lr.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},lr.prototype.next=function(){var a=this.eg;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},lr.prototype.Ad=function(){return this.next()},lr.prototype.first=function(){var a=this.eg;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},lr.prototype.any=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},lr.prototype.all=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},lr.prototype.each=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},lr.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new dn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},lr.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new dn;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},lr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},lr.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},bt.Object.defineProperties(lr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),lr.prototype.first=lr.prototype.first,lr.prototype.hasNext=lr.prototype.Ad,lr.prototype.next=lr.prototype.next,lr.prototype.reset=lr.prototype.reset,lr.className="SetIterator";function vn(a){Fi(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Ge("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ce=vn.prototype,Ce.xb=function(){var a=this.Ja;a++,999999999=this.Sb)return br;var a=this.Sa;return a!==null?(a.reset(),a):new lr(this)}}}),vn.prototype.toList=vn.prototype.Hv,vn.prototype.toArray=vn.prototype.Fa,vn.prototype.clear=vn.prototype.clear,vn.prototype.retainAll=vn.prototype.pA,vn.prototype.removeAll=vn.prototype.hp,vn.prototype.delete=vn.prototype.delete,vn.prototype.remove=vn.prototype.remove,vn.prototype.first=vn.prototype.first,vn.prototype.containsAny=vn.prototype.Ty,vn.prototype.containsAll=vn.prototype.Sy,vn.prototype.has=vn.prototype.has,vn.prototype.contains=vn.prototype.contains,vn.prototype.addAll=vn.prototype.addAll,vn.prototype.add=vn.prototype.add,vn.prototype.thaw=vn.prototype.ka,vn.prototype.freeze=vn.prototype.freeze;var to=1;vn.className="Set",vn.uniqueHash=Fi,vn.hashIdUnique=Cr,vn.hashId=Nr;function Ur(a){this.ma=a,this.qa=a.Ja,this.sa=null}Ur.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Ur.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)},Ur.prototype.Ad=function(){return this.next()},Ur.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},Ur.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},Ur.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},Ur.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},Ur.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new dn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Ur.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new dn;for(y=y.ea;y!==null;){var E=y.key;a(E)&&x.add(E),y=y.va}return x.iterator},Ur.prototype.de=function(){this.value=this.key=null,this.qa=-1},Ur.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},bt.Object.defineProperties(Ur.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Ur.prototype.first=Ur.prototype.first,Ur.prototype.hasNext=Ur.prototype.Ad,Ur.prototype.next=Ur.prototype.next,Ur.prototype.reset=Ur.prototype.reset,Ur.className="MapKeySetIterator";function Br(a){vn.call(this),Fi(this),this._isFrozen=!0,this.ma=a}Dt(Br,vn),Ce=Br.prototype,Ce.freeze=function(){return this},Ce.ka=function(){return this},Ce.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Ce.add=function(){Ge("This Set is read-only: "+this.toString())},Ce.contains=function(a){return this.ma.contains(a)},Ce.has=function(a){return this.contains(a)},Ce.remove=function(){Ge("This Set is read-only: "+this.toString())},Ce.delete=function(a){return this.remove(a)},Ce.clear=function(){Ge("This Set is read-only: "+this.toString())},Ce.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Br.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Br.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Br.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Br.prototype.map=function(a){for(var y=new vn,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Br.prototype.filter=function(a){for(var y=new vn,x=this.ma.ea;x!==null;){var E=x.key;a(E)&&y.add(E),x=x.va}return y},Br.prototype.copy=function(){return new Br(this.ma)},Br.prototype.Iv=function(){var a=new vn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Br.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},Br.prototype.Hv=function(){var a=new dn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},bt.Object.defineProperties(Br.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?br:new Ur(this.ma)}}}),Br.prototype.toList=Br.prototype.Hv,Br.prototype.toArray=Br.prototype.Fa,Br.prototype.toSet=Br.prototype.Iv,Br.prototype.first=Br.prototype.first,Br.prototype.clear=Br.prototype.clear,Br.prototype.delete=Br.prototype.delete,Br.prototype.remove=Br.prototype.remove,Br.prototype.has=Br.prototype.has,Br.prototype.contains=Br.prototype.contains,Br.prototype.add=Br.prototype.add,Br.prototype.thaw=Br.prototype.ka,Br.prototype.freeze=Br.prototype.freeze,Br.className="MapKeySet";function ao(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}ao.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},ao.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)},ao.prototype.Ad=function(){return this.next()},ao.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},ao.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},ao.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},ao.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},ao.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new dn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},ao.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new dn;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},ao.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},ao.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},bt.Object.defineProperties(ao.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ao.prototype.first=ao.prototype.first,ao.prototype.hasNext=ao.prototype.Ad,ao.prototype.next=ao.prototype.next,ao.prototype.reset=ao.prototype.reset,ao.className="MapValueSetIterator";function Qt(a,y){this.key=a,this.value=y,this.ll=this.va=null}Qt.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Qt.className="KeyValuePair";function jn(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}jn.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},jn.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)},jn.prototype.Ad=function(){return this.next()},jn.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},jn.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},jn.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},jn.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},jn.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new dn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},jn.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new dn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},jn.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},jn.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},bt.Object.defineProperties(jn.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),jn.prototype.first=jn.prototype.first,jn.prototype.hasNext=jn.prototype.Ad,jn.prototype.next=jn.prototype.next,jn.prototype.reset=jn.prototype.reset,jn.className="MapIterator";function $t(a){Fi(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"&&Ge("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ce=$t.prototype,Ce.xb=function(){var a=this.Ja;a++,999999999=this.count)return br;var a=this.Sa;return a!==null?(a.reset(),a):new jn(this)}},iteratorKeys:{get:function(){return 0>=this.count?br:new Ur(this)}},iteratorValues:{get:function(){if(0>=this.count)return br;var a=this.jf;return a!==null?(a.reset(),a):new ao(this)}}}),$t.prototype.toKeySet=$t.prototype.Lf,$t.prototype.toArray=$t.prototype.Fa,$t.prototype.clear=$t.prototype.clear,$t.prototype.delete=$t.prototype.delete,$t.prototype.remove=$t.prototype.remove,$t.prototype.get=$t.prototype.get,$t.prototype.getValue=$t.prototype.I,$t.prototype.has=$t.prototype.has,$t.prototype.contains=$t.prototype.contains,$t.prototype.first=$t.prototype.first,$t.prototype.addAll=$t.prototype.addAll,$t.prototype.set=$t.prototype.set,$t.prototype.add=$t.prototype.add,$t.prototype.thaw=$t.prototype.ka,$t.prototype.freeze=$t.prototype.freeze,$t.className="Map";function Te(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):Ge("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var He,$e,yt,Ot,en;Te.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Te.prototype.h=function(a,y){return this.x=a,this.y=y,this},Te.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Te.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Te.prototype.copy=function(){var a=new Te;return a.x=this.x,a.y=this.y,a},Ce=Te.prototype,Ce.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ce.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return Object.isFrozen(this)&&Ge("cannot thaw constant: "+this),this._isFrozen=!1,this};function nt(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 Te(x,b)}return new Te}function kt(a){return a.x.toString()+" "+a.y.toString()}Ce.toString=function(){return"Point("+this.x+","+this.y+")"},Ce.D=function(a){return a instanceof Te?this.x===a.x&&this.y===a.y:!1},Ce.hi=function(a,y){return this.x===a&&this.y===y},Ce.Xa=function(a){return mt.B(this.x,a.x)&&mt.B(this.y,a.y)},Ce.add=function(a){return this.x+=a.x,this.y+=a.y,this},Ce.re=function(a){return this.x-=a.x,this.y-=a.y,this},Ce.offset=function(a,y){return this.x+=a,this.y+=y,this},Te.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},Ce=Te.prototype,Ce.scale=function(a,y){return this.x*=a,this.y*=y,this},Ce.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Ce.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Ce.normalize=function(){var a=this.x,y=this.y,x=Math.sqrt(a*a+y*y);return 0y?270:0;if(y===0)return 0a?x=0>y?x+180:180-x:0>y&&(x=360-x),x}Ce.Ry=function(a,y){return mt.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Ce.fA=function(a,y,x,E){return mt.qh(a,y,x,E,this.x,this.y,this),this},Ce.gA=function(a,y){return mt.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Ce.uA=function(a,y,x,E){return mt.No(this.x,this.y,a,y,x,E,this),this},Ce.vA=function(a,y){return mt.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Ce.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},Ce.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},Ce.transform=function(a){return a.Ga(this),this};function Rt(a,y){return y.Cd(a),a}function an(a,y,x,E,b,z){var ee=b-x,re=z-E,oe=ee*ee+re*re;x-=a,E-=y;var se=-x*ee-E*re;return 0>=se||se>=oe?(ee=b-a,re=z-y,Math.min(x*x+E*E,ee*ee+re*re)):(a=ee*E-re*x,a*a/oe)}function si(a,y,x,E){return a=x-a,y=E-y,a*a+y*y}function Ee(a,y,x,E){return a=x-a,y=E-y,a===0?0y?270:0:y===0?0a?E=0>y?E+180:180-E:0>y&&(E=360-E),E)}Ce.w=function(){return isFinite(this.x)&&isFinite(this.y)},Te.alloc=function(){var a=Ue.pop();return a===void 0?new Te:a},Te.allocAt=function(a,y){var x=Ue.pop();return x===void 0?new Te(a,y):(x.x=a,x.y=y,x)},Te.free=function(a){Ue.push(a)},Te.prototype.isReal=Te.prototype.w,Te.prototype.setSpot=Te.prototype.yi,Te.prototype.setRectSpot=Te.prototype.xi,Te.prototype.snapToGridPoint=Te.prototype.vA,Te.prototype.snapToGrid=Te.prototype.uA,Te.prototype.projectOntoLineSegmentPoint=Te.prototype.gA,Te.prototype.projectOntoLineSegment=Te.prototype.fA,Te.intersectingLineSegments=function(a,y,x,E,b,z,ee,re){return mt.Rl(a,y,x,E,b,z,ee,re)},Te.prototype.compareWithLineSegmentPoint=Te.prototype.Ry,Te.compareWithLineSegment=function(a,y,x,E,b,z){return mt.Fl(a,y,x,E,b,z)},Te.prototype.direction=Te.prototype.direction,Te.prototype.directionPoint=Te.prototype.ab,Te.prototype.normalize=Te.prototype.normalize,Te.prototype.distanceSquared=Te.prototype.zd,Te.prototype.distanceSquaredPoint=Te.prototype.Bf,Te.prototype.scale=Te.prototype.scale,Te.prototype.rotate=Te.prototype.rotate,Te.prototype.offset=Te.prototype.offset,Te.prototype.subtract=Te.prototype.re,Te.prototype.add=Te.prototype.add,Te.prototype.equalsApprox=Te.prototype.Xa,Te.prototype.equalTo=Te.prototype.hi,Te.prototype.equals=Te.prototype.D,Te.prototype.set=Te.prototype.set,Te.prototype.setTo=Te.prototype.sg;var Ue=[];Te.className="Point",Te.parse=nt,Te.stringify=kt,Te.distanceLineSegmentSquared=an,Te.distanceSquared=si,Te.direction=Ee,Te.Origin=He=new Te(0,0).ja(),Te.InfiniteTopLeft=$e=new Te(-1/0,-1/0).ja(),Te.InfiniteBottomRight=yt=new Te(1/0,1/0).ja(),Te.SixPoint=Ot=new Te(6,6).ja(),Te.NoPoint=en=new Te(NaN,NaN).ja(),Te.parse=nt,Te.stringify=kt,Te.distanceLineSegmentSquared=an,Te.distanceSquared=si,Te.direction=Ee;function Re(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):Ge("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var ot,ut,Zt,Vt,tn,An,In;Re.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Re.prototype.h=function(a,y){return this.width=a,this.height=y,this},Re.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Re.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Re.prototype.copy=function(){var a=new Re;return a.width=this.width,a.height=this.height,a},Ce=Re.prototype,Ce.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ce.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return Object.isFrozen(this)&&Ge("cannot thaw constant: "+this),this._isFrozen=!1,this};function pn(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new Re(x,b)}return new Re}function Qn(a){return a.width.toString()+" "+a.height.toString()}Ce.toString=function(){return"Size("+this.width+","+this.height+")"},Ce.D=function(a){return a instanceof Re?this.width===a.width&&this.height===a.height:!1},Ce.hi=function(a,y){return this.width===a&&this.height===y},Ce.Xa=function(a){return mt.B(this.width,a.width)&&mt.B(this.height,a.height)},Ce.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},Ce.w=function(){return isFinite(this.width)&&isFinite(this.height)},Re.alloc=function(){var a=mi.pop();return a===void 0?new Re:a},Re.free=function(a){mi.push(a)},Re.prototype.isReal=Re.prototype.w,Re.prototype.inflate=Re.prototype.Bc,Re.prototype.equalsApprox=Re.prototype.Xa,Re.prototype.equalTo=Re.prototype.hi,Re.prototype.equals=Re.prototype.D,Re.prototype.set=Re.prototype.set,Re.prototype.setTo=Re.prototype.sg;var mi=[];Re.className="Size",Re.parse=pn,Re.stringify=Qn,Re.ZeroSize=ot=new Re(0,0).ja(),Re.OneSize=ut=new Re(1,1).ja(),Re.SixSize=Zt=new Re(6,6).ja(),Re.EightSize=Vt=new Re(8,8).ja(),Re.TenSize=tn=new Re(10,10).ja(),Re.InfiniteSize=An=new Re(1/0,1/0).ja(),Re.NoSize=In=new Re(NaN,NaN).ja(),Re.parse=pn,Re.stringify=Qn;function ht(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 Te?(x=a.x,a=a.y,y instanceof Te?(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 Re?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):Ge("Incorrect second argument supplied to Rect constructor "+y)):Ge("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Ce=ht.prototype,Ce.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ce.h=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this};function _n(a,y,x){a.width=y,a.height=x}Ce.sg=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this},Ce.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ce.dd=function(a){return this.x=a.x,this.y=a.y,this},Ce.tA=function(a){return this.width=a.width,this.height=a.height,this},ht.prototype.copy=function(){var a=new ht;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Ce=ht.prototype,Ce.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ce.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return Object.isFrozen(this)&&Ge("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 ee=0;a[y]==="";)y++;return(E=a[y++])&&(ee=parseFloat(E)),new ht(x,b,z,ee)}return new ht}function On(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Ce.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Ce.D=function(a){return a instanceof ht?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Ce.hi=function(a,y,x,E){return this.x===a&&this.y===y&&this.width===x&&this.height===E},Ce.Xa=function(a){return mt.B(this.x,a.x)&&mt.B(this.y,a.y)&&mt.B(this.width,a.width)&&mt.B(this.height,a.height)};function ii(a,y){return mt.$(a.x,y.x)&&mt.$(a.y,y.y)&&mt.$(a.width,y.width)&&mt.$(a.height,y.height)}Ce.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Ce.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},Ce.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},Ce.offset=function(a,y){return this.x+=a,this.y+=y,this},Ce.Bc=function(a,y){return Ci(this,y,a,y,a)},Ce.Co=function(a){return Ci(this,a.top,a.right,a.bottom,a.left)},Ce.Fv=function(a){return Ci(this,-a.top,-a.right,-a.bottom,-a.left)},Ce.Hz=function(a,y,x,E){return Ci(this,a,y,x,E)};function Ci(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}Ce.Ex=function(a){return Ti(this,a.x,a.y,a.width,a.height)},Ce.Uu=function(a,y,x,E){return Ti(this,a,y,x,E)};function Ti(a,y,x,E,b){var z=Math.max(a.x,y),ee=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=ee,a.width=Math.max(0,y-z),a.height=Math.max(0,x-ee),a}Ce.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Ce.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 Ni(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))}Ce.Ye=function(a){return Oi(this,a.x,a.y,0,0)},Ce.ed=function(a){return Oi(this,a.x,a.y,a.width,a.height)},Ce.Kv=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),Oi(this,a,y,x,E)};function Oi(a,y,x,E,b){var z=Math.min(a.x,y),ee=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=ee,a.width=y-z,a.height=x-ee,a}Ce.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 zi(a,y,x,E,b,z,ee,re){return ee===void 0&&(ee=0),re===void 0&&(re=0),a<=b&&b+ee<=a+x&&y<=z&&z+re<=y+E}function fr(a,y,x,E,b,z,ee,re){return a>ee+b||b>x+a?!1:!(y>re+z||z>E+y)}Ce.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Ce.Mz=function(){return this.width===0&&this.height===0},ht.alloc=function(){var a=Zr.pop();return a===void 0?new ht:a},ht.allocAt=function(a,y,x,E){var b=Zr.pop();return b===void 0?new ht(a,y,x,E):b.h(a,y,x,E)},ht.free=function(a){Zr.push(a)},bt.Object.defineProperties(ht.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 Te(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Re(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Te(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}}}),ht.prototype.isEmpty=ht.prototype.Mz,ht.prototype.isReal=ht.prototype.w,ht.intersectsLineSegment=function(a,y,x,E,b,z,ee,re){return mt.Fx(a,y,x,E,b,z,ee,re)},ht.prototype.setSpot=ht.prototype.yi,ht.prototype.union=ht.prototype.Kv,ht.prototype.unionRect=ht.prototype.ed,ht.prototype.unionPoint=ht.prototype.Ye,ht.prototype.intersects=ht.prototype.Vu,ht.prototype.intersectsRect=ht.prototype.Yc,ht.prototype.intersect=ht.prototype.Uu,ht.prototype.intersectRect=ht.prototype.Ex,ht.prototype.grow=ht.prototype.Hz,ht.prototype.subtractMargin=ht.prototype.Fv,ht.prototype.addMargin=ht.prototype.Co,ht.prototype.inflate=ht.prototype.Bc,ht.prototype.offset=ht.prototype.offset,ht.prototype.contains=ht.prototype.contains,ht.prototype.containsRect=ht.prototype.Re,ht.prototype.containsPoint=ht.prototype.ca,ht.prototype.equalsApprox=ht.prototype.Xa,ht.prototype.equalTo=ht.prototype.hi,ht.prototype.equals=ht.prototype.D,ht.prototype.setSize=ht.prototype.tA,ht.prototype.setPoint=ht.prototype.dd,ht.prototype.set=ht.prototype.set,ht.prototype.setTo=ht.prototype.sg;var kr=null,Hr=null,Zr=[];ht.className="Rect",ht.parse=ni,ht.stringify=On,ht.contains=zi,ht.intersects=fr,ht.ZeroRect=kr=new ht(0,0,0,0).ja(),ht.NoRect=Hr=new ht(NaN,NaN,NaN,NaN).ja(),ht.parse=ni,ht.stringify=On,ht.contains=zi,ht.intersects=fr;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):Ge("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},Ce=Bi.prototype,Ce.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ce.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return Object.isFrozen(this)&&Ge("cannot thaw constant: "+this),this._isFrozen=!1,this};function Fr(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 ee=NaN;a[y]==="";)y++;return(E=a[y++])&&(ee=parseFloat(E)),isNaN(ee)?new Bi(x,b):new Bi(x,b,z,ee)}return new Bi}function Er(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Ce.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Ce.D=function(a){return a instanceof Bi?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Ce.hi=function(a,y,x,E){return this.top===a&&this.right===y&&this.bottom===x&&this.left===E},Ce.Xa=function(a){return mt.B(this.top,a.top)&&mt.B(this.right,a.right)&&mt.B(this.bottom,a.bottom)&&mt.B(this.left,a.left)},Ce.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Bi.alloc=function(){var a=jr.pop();return a===void 0?new Bi:a},Bi.free=function(a){jr.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 Rr=null,xr=null,jr=[];Bi.className="Margin",Bi.parse=Fr,Bi.stringify=Er,Bi.ZeroMargin=Rr=new Bi(0,0,0,0).ja(),Bi.TwoMargin=xr=new Bi(2,2,2,2).ja(),Bi.parse=Fr,Bi.stringify=Er;function ei(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,_i,ur,qi,or,Di,zr,Kr,Qr,Ar,eo,Xr,_r,fo,mo,Bo,so,ia,po,Jo,Po,Vo,Go,Yo,Ro,Lo,oa,wa,zo,Oa,bo,yo,vo,Qo,ro,ta;ei.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},ei.prototype.sg=function(a,y,x,E){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=E,this},ei.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},ei.prototype.copy=function(){var a=new ei;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Ce=ei.prototype,Ce.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ce.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return Object.isFrozen(this)&&Ge("cannot thaw constant: "+this),this._isFrozen=!1,this};function wr(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function hr(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Vi;if(a==="TopLeft")return _i;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return ur;if(a==="TopRight")return qi;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return or;if(a==="Center")return Di;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return zr;if(a==="BottomLeft")return Kr;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Qr;if(a==="BottomRight")return Ar;if(a==="TopSide")return eo;if(a==="LeftSide")return Xr;if(a==="RightSide")return _r;if(a==="BottomSide")return fo;if(a==="TopBottomSides")return mo;if(a==="LeftRightSides")return Bo;if(a==="TopLeftSides")return so;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&&0a&&(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,ee=this.m12*-E+this.m22*a;return this.m11=this.m11*a+this.m21*E,this.m12=b,this.m21=z,this.m22=ee,this.translate(-y,-x),this},Ce=Si.prototype,Ce.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Ce.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Ce.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)},Ce.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))},Ce.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))},Ce.pp=function(a){var y=a.x,x=a.y,E=y+a.width,b=x+a.height,z=this.m11,ee=this.m12,re=this.m21,oe=this.m22,se=this.dx,ue=this.dy,fe=y*z+x*re+se,ve=y*ee+x*oe+ue,xe=E*z+x*re+se,Pe=E*ee+x*oe+ue;return x=y*z+b*re+se,y=y*ee+b*oe+ue,z=E*z+b*re+se,E=E*ee+b*oe+ue,b=Math.min(fe,xe),fe=Math.max(fe,xe),xe=Math.min(ve,Pe),ve=Math.max(ve,Pe),b=Math.min(b,x),fe=Math.max(fe,x),xe=Math.min(xe,y),ve=Math.max(ve,y),b=Math.min(b,z),fe=Math.max(fe,z),xe=Math.min(xe,E),ve=Math.max(ve,E),a.h(b,xe,fe-b,ve-xe),a},Si.alloc=function(){var a=Do.pop();return a===void 0?new Si:a},Si.free=function(a){Do.push(a)},Si.prototype.transformRect=Si.prototype.pp,Si.prototype.transformPoint=Si.prototype.Ga,Si.prototype.scale=Si.prototype.scale,Si.prototype.translate=Si.prototype.translate,Si.prototype.rotate=Si.prototype.rotate,Si.prototype.invert=Si.prototype.Vj,Si.prototype.multiplyInverted=Si.prototype.bv,Si.prototype.multiply=Si.prototype.multiply,Si.prototype.reset=Si.prototype.reset,Si.prototype.isIdentity=Si.prototype.ws,Si.prototype.equals=Si.prototype.D,Si.prototype.setTransform=Si.prototype.setTransform,Si.prototype.set=Si.prototype.set;var Do=[];Si.className="Transform",Si.xF="54a702f3e53909c447824c6706603faf4c";var mt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=mt.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);mt.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&&-.5a&&-5e-8=b&&(b=1e-6),aue-se)if(a-x>b||x-a>b){if(z=(E-y)/(x-a)*(z-a)+y,z-b<=ee&&ee<=z+b)return!0}else return!0;else if(y-E>b||E-y>b){if(ee=(x-a)/(E-y)*(ee-y)+a,ee-b<=z&&z<=ee+b)return!0}else return!0;return!1},cs:function(a,y,x,E,b,z,ee,re,oe,se,ue,fe){if(mt.Yb(a,y,ee,re,fe,x,E)&&mt.Yb(a,y,ee,re,fe,b,z))return mt.Yb(a,y,ee,re,fe,se,ue);var ve=(a+x)/2,xe=(y+E)/2,Pe=(x+b)/2,Fe=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(ve+Pe)/2,x=(xe+Fe)/2,Pe=(Pe+b)/2,Fe=(Fe+z)/2;var Je=(E+Pe)/2,We=(x+Fe)/2;return mt.cs(a,y,ve,xe,E,x,Je,We,oe,se,ue,fe)||mt.cs(Je,We,Pe,Fe,b,z,ee,re,oe,se,ue,fe)},ax:function(a,y,x,E,b,z,ee,re,oe){var se=(x+b)/2,ue=(E+z)/2;return oe.h((((a+x)/2+se)/2+(se+(b+ee)/2)/2)/2,(((y+E)/2+ue)/2+(ue+(z+re)/2)/2)/2),oe},My:function(a,y,x,E,b,z,ee,re){var oe=(x+b)/2,se=(E+z)/2;return Ee(((a+x)/2+oe)/2,((y+E)/2+se)/2,(oe+(b+ee)/2)/2,(se+(z+re)/2)/2)},Dl:function(a,y,x,E,b,z,ee,re,oe,se){if(mt.Yb(a,y,ee,re,oe,x,E)&&mt.Yb(a,y,ee,re,oe,b,z))Oi(se,a,y,0,0),Oi(se,ee,re,0,0);else{var ue=(a+x)/2,fe=(y+E)/2,ve=(x+b)/2,xe=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(ue+ve)/2,x=(fe+xe)/2,ve=(ve+b)/2,xe=(xe+z)/2;var Pe=(E+ve)/2,Fe=(x+xe)/2;mt.Dl(a,y,ue,fe,E,x,Pe,Fe,oe,se),mt.Dl(Pe,Fe,ve,xe,b,z,ee,re,oe,se)}return se},Qe:function(a,y,x,E,b,z,ee,re,oe,se){if(mt.Yb(a,y,ee,re,oe,x,E)&&mt.Yb(a,y,ee,re,oe,b,z))se.length===0&&(se.push(a),se.push(y)),se.push(ee),se.push(re);else{var ue=(a+x)/2,fe=(y+E)/2,ve=(x+b)/2,xe=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(ue+ve)/2,x=(fe+xe)/2,ve=(ve+b)/2,xe=(xe+z)/2;var Pe=(E+ve)/2,Fe=(x+xe)/2;mt.Qe(a,y,ue,fe,E,x,Pe,Fe,oe,se),mt.Qe(Pe,Fe,ve,xe,b,z,ee,re,oe,se)}return se},jv:function(a,y,x,E,b,z,ee,re,oe,se){if(mt.Yb(a,y,b,z,se,x,E))return mt.Yb(a,y,b,z,se,re,oe);var ue=(a+x)/2,fe=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ve=(ue+x)/2,xe=(fe+E)/2;return mt.jv(a,y,ue,fe,ve,xe,ee,re,oe,se)||mt.jv(ve,xe,x,E,b,z,ee,re,oe,se)},OA:function(a,y,x,E,b,z,ee){return ee.h(((a+x)/2+(x+b)/2)/2,((y+E)/2+(E+z)/2)/2),ee},iv:function(a,y,x,E,b,z,ee,re){if(mt.Yb(a,y,b,z,ee,x,E))Oi(re,a,y,0,0),Oi(re,b,z,0,0);else{var oe=(a+x)/2,se=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ue=(oe+x)/2,fe=(se+E)/2;mt.iv(a,y,oe,se,ue,fe,ee,re),mt.iv(ue,fe,x,E,b,z,ee,re)}return re},ep:function(a,y,x,E,b,z,ee,re){if(mt.Yb(a,y,b,z,ee,x,E))re.length===0&&(re.push(a),re.push(y)),re.push(b),re.push(z);else{var oe=(a+x)/2,se=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ue=(oe+x)/2,fe=(se+E)/2;mt.ep(a,y,oe,se,ue,fe,ee,re),mt.ep(ue,fe,x,E,b,z,ee,re)}return re},Eo:function(a,y,x,E,b,z,ee,re,oe,se,ue,fe,ve,xe){if(mt.Yb(a,y,ee,re,ve,x,E)&&mt.Yb(a,y,ee,re,ve,b,z))return!mt.Rl(a,y,ee,re,oe,se,ue,fe)||(ve=(a-ee)*(se-fe)-(y-re)*(oe-ue),ve===0)?!1:(xe.h(((a*re-y*ee)*(oe-ue)-(a-ee)*(oe*fe-se*ue))/ve,((a*re-y*ee)*(se-fe)-(y-re)*(oe*fe-se*ue))/ve),!0);var Pe=(a+x)/2,Fe=(y+E)/2,Je=(x+b)/2,We=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(Pe+Je)/2,x=(Fe+We)/2,Je=(Je+b)/2,We=(We+z)/2;var rt=(E+Je)/2,at=(x+We)/2,dt=1/0,Lt=!1,Jt=0,Ei=0;return mt.Eo(a,y,Pe,Fe,E,x,rt,at,oe,se,ue,fe,ve,xe)&&(a=(xe.x-oe)*(xe.x-oe)+(xe.y-se)*(xe.y-se),a=ue)return xe;if((oe>ue?oe-ue:ue-oe)<(se>fe?se-fe:fe-se)){if(ya)return xe}else if(aa)return xe;0ve&&xe--}else{Pe=(a+x)/2,Fe=(y+E)/2;var Je=(x+b)/2,We=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(Pe+Je)/2,x=(Fe+We)/2,Je=(Je+b)/2,We=(We+z)/2;var rt=(E+Je)/2,at=(x+We)/2;xe+=mt.Fo(a,y,Pe,Fe,E,x,rt,at,oe,se,ue,fe,ve),xe+=mt.Fo(rt,at,Je,We,b,z,ee,re,oe,se,ue,fe,ve)}return xe},qh:function(a,y,x,E,b,z,ee){return mt.$(a,x)?(yy?(ee.h(a,y),!1):(ee.h(a,z),!0)):mt.$(y,E)?(aa?(ee.h(a,y),!1):(ee.h(b,y),!0)):(b=((a-b)*(a-x)+(y-z)*(y-E))/((x-a)*(x-a)+(E-y)*(E-y)),-5e-6>b?(ee.h(a,y),!1):1.000005y?(oe.h(a,y),!1):(oe.h(a,x),!0)):(ee=(E-y)/(x-a),mt.$(re,ee)?(mt.qh(a,y,x,E,b,z,oe),!1):(b=(ee*a-re*b+z-y)/(ee-re),mt.$(ee,0)?(aa?(oe.h(a,y),!1):(oe.h(b,y),!0)):mt.qh(a,y,x,E,b,ee*(b-a)+y,oe))))},MA:function(a,y,x,E,b){return mt.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,ee,re,oe,se){function ue(Je,We){var rt=(Je-a)*(Je-a)+(We-y)*(We-y);rt(x>a?x-a:a-x)){if(ve=1-(x-b)*(x-b)/(ve*ve),0>ve)return oe;ve=Math.sqrt(ve),E=-se*ve+z,ue(x,se*ve+z),ue(x,E)}else{if(x=(E-y)/(x-a),E=1/(ve*ve)+x*x/(se*se),re=2*x*(y-x*a)/(se*se)-2*x*z/(se*se)-2*b/(ve*ve),ve=re*re-4*E*(2*x*a*z/(se*se)-2*y*z/(se*se)+z*z/(se*se)+b*b/(ve*ve)-1+(y-x*a)*(y-x*a)/(se*se)),0>ve)return oe;ve=Math.sqrt(ve),se=(-re+ve)/(2*E),ue(se,x*se-x*a+y),ve=(-re-ve)/(2*E),ue(ve,x*ve-x*a+y)}return oe},Ff:function(a,y,x,E,b,z,ee,re,oe){var se=1e21,ue=a,fe=y;if(mt.Ve(a,y,a,E,b,z,ee,re,oe)){var ve=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z);vese},us:function(a,y,x){return mt.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,ee,re){var oe=a+x,se=y+E;return b===ee?(z=y):z===re?(b=a):!!(zi(a,y,x,E,b,z)||zi(a,y,x,E,ee,re)||mt.Rl(a,y,oe,y,b,z,ee,re)||mt.Rl(oe,y,oe,se,b,z,ee,re)||mt.Rl(oe,se,a,se,b,z,ee,re)||mt.Rl(a,se,a,y,b,z,ee,re))},Rl:function(a,y,x,E,b,z,ee,re){return a===x&&y===E&&b===ee&&z===re?a===b&&y===z:0>=mt.Fl(a,y,x,E,b,z)*mt.Fl(a,y,x,E,ee,re)&&0>=mt.Fl(b,z,ee,re,a,y)*mt.Fl(b,z,ee,re,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,0z&&(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 ee=Math.PI;z||(E*=ee/180,b*=ee/180);var re=E>b?-1:1;z=[];var oe=ee/2,se=E;if(E=Math.min(2*ee,Math.abs(b-E)),1e-5>E)return oe=se+re*Math.min(E,oe),re=a+x*Math.cos(se),se=y+x*Math.sin(se),a+=x*Math.cos(oe),y+=x*Math.sin(oe),x=(re+a)/2,oe=(se+y)/2,z.push([re,se,x,oe,x,oe,a,y]),z;for(;1e-5x,z=0>E;if(ase&&(y=.5*(re+oe),!(y===re||y===oe));++se){var ue=a/(y+b),fe=ee/(y+z);if(ue=ue*ue+fe*fe-1,0ue)oe=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,za?"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 Tn.u:var y=new ht(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 Tn.F:if(y=new ht(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 Tn.o:y="",x=this.figures.s;for(var E=x.length,b=0;b=dt-1?!0:se[Fe+1].match(Lt)!==null}function E(){return Fe++,se[Fe]}function b(Tr){var Lr=parseFloat(E()),ho=parseFloat(E());Je===Je.toLowerCase()&&(Lr=at.x+Lr,ho=at.y+ho),Tr.h(Lr,ho)}function z(){return b(at),at}function ee(){return b(rt),rt}function re(){var Tr=We.toLowerCase();return Tr!=="c"&&Tr!=="s"&&Tr!=="q"&&Tr!=="t"?at:new Te(2*at.x-rt.x,2*at.y-rt.y)}y===void 0&&(y=!1);var oe=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(oe,"$1 $2"),a=a.replace(oe,"$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 se=a.split(" ");for(a=0;a=dt-1);)if(We=Je,Je=E(),Je!=="")switch(Je.toUpperCase()){case"X":xe=!0,fe=ue=!1;break;case"M":for(Pe=z(),a.mc===null||xe===!0?(jf(a,Pe.x,Pe.y,ue,!fe,ve),xe=!1):a.moveTo(Pe.x,Pe.y),oe.assign(at);!x();)Pe=z(),a.lineTo(Pe.x,Pe.y);break;case"L":for(;!x();)Pe=z(),a.lineTo(Pe.x,Pe.y);break;case"H":for(;!x();)at=new Te((Je===Je.toLowerCase()?at.x:0)+parseFloat(E()),at.y),a.lineTo(at.x,at.y);break;case"V":for(;!x();)at=new Te(at.x,(Je===Je.toLowerCase()?at.y:0)+parseFloat(E())),a.lineTo(at.x,at.y);break;case"C":for(;!x();){Pe=new Te,b(Pe);var Jt=ee(),Ei=z();Fh(a,Pe.x,Pe.y,Jt.x,Jt.y,Ei.x,Ei.y)}break;case"S":for(;!x();)Pe=re(),Jt=ee(),Ei=z(),Fh(a,Pe.x,Pe.y,Jt.x,Jt.y,Ei.x,Ei.y);break;case"Q":for(;!x();)Pe=ee(),Jt=z(),Hm(a,Pe.x,Pe.y,Jt.x,Jt.y);break;case"T":for(;!x();)rt=Pe=re(),Jt=z(),Hm(a,Pe.x,Pe.y,Jt.x,Jt.y);break;case"B":for(;!x();){Pe=parseFloat(E()),Jt=parseFloat(E()),Ei=parseFloat(E());var ji=parseFloat(E()),Ri=parseFloat(E()),li=Ri,Dn=!1;x()||(li=parseFloat(E()),x()||(Dn=parseFloat(E())!==0)),Je===Je.toLowerCase()&&(Ei+=at.x,ji+=at.y),a.arcTo(Pe,Jt,Ei,ji,Ri,li,Dn)}break;case"A":for(;!x();)Pe=Math.abs(parseFloat(E())),Jt=Math.abs(parseFloat(E())),Ei=parseFloat(E()),Ri=ji=!1,Dn=li=0,li=E(),li.length===1?(ji=!!parseFloat(li),Ri=!!parseFloat(E()),li=parseFloat(E())):li.length===2?(ji=!!parseFloat(li[0]),Ri=!!parseFloat(li[1]),li=parseFloat(E())):(ji=!!parseFloat(li[0]),Ri=!!parseFloat(li[1]),li=parseFloat(li.slice(2))),Dn=parseFloat(E()),Je===Je.toLowerCase()&&(li=at.x+li,Dn=at.y+Dn),at.h(li,Dn),Dx(a,Pe,Jt,Ei,ji,Ri,li,Dn);break;case"Z":Fx(a),at.assign(oe);break;case"F":for(Pe="",Jt=1;se[Fe+Jt];)if(se[Fe+Jt]==="0")ve=!0,Jt++;else if(se[Fe+Jt].match(/[Uu]/)!==null)Jt++;else if(se[Fe+Jt].match(Lt)===null)Jt++;else{Pe=se[Fe+Jt];break}Pe.match(/[Mm]/)?ue=!0:0ee&&(ee+=360),Pe.startAngle+=ee),0>a&&(Pe.startAngle=180-Pe.startAngle,Pe.sweepAngle=-Pe.sweepAngle),0>E&&(Pe.startAngle=-Pe.startAngle,Pe.sweepAngle=-Pe.sweepAngle),Pe.radiusX*=Math.sqrt(a*a+x*x),Pe.radiusY!==void 0&&(Pe.radiusY*=Math.sqrt(y*y+E*E));break;case cs:if(ee=Pe.endX,re=Pe.endY,Pe.endX=ee*a+re*x+b,Pe.endY=ee*y+re*E+z,Pe.radiusX===0||Pe.radiusY===0)break;y!==0&&(ee=180*Math.atan2(y,a)/Math.PI,0>ee&&(ee+=360),Pe.xAxisRotation+=ee),0>a&&(Pe.xAxisRotation=180-Pe.xAxisRotation,Pe.isClockwiseArc=!Pe.isClockwiseArc),0>E&&(Pe.xAxisRotation=-Pe.xAxisRotation,Pe.isClockwiseArc=!Pe.isClockwiseArc),Pe.radiusX*=Math.sqrt(a*a+x*x),Pe.radiusY*=Math.sqrt(y*y+E*E);break;default:Ge("Unknown Segment type: "+Pe.type)}}}}return this._isInvalidBounds=!0,this},Ce.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 Tn.j:return mt.Yb(x,E,b,z,y,a.x,a.y);case Tn.u:var ee=ht.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=ee.ca(a),ht.free(ee),a;case Tn.F:ee=Math.min(x,b)-y;var re=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:(ee=a.x-(ee+x),re=a.y-(re+y),1>=ee*ee/(x*x)+re*re/(y*y));case Tn.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 ee=a.bounds.x-20,re=0,oe,se,ue,fe,ve=a.figures.s,xe=ve.length,Pe=0;Pe=a)return 0;if((b>ee?b-ee:ee-b)<(z>re?z-re:re-z)){if(zre)return 0}else if(yz)return 0}else if(bee)return 0}else if(seb)return 0;return 0a?a=0:1=z)return E=z-ee,E=ue===0?0:E/ue,x=x[re],re=x[2*a],b=x[2*a+1],y.h(re+(x[2*a+2]-re)*E,b+(x[2*a+3]-b)*E),y;ee+=ue}}return y},Ce.wx=function(a){if(0>a?a=0:1=b)return b=y[ee],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+=se}}return NaN},Ce.Qu=function(a,y){if(0>a?a=0:1=z)return E=z-ee,E=ue===0?0:E/ue,ue=x[re],x=ue[2*a],re=ue[2*a+1],b=ue[2*a+2],a=ue[2*a+3],y[0]=x+(b-x)*E,y[1]=re+(a-re)*E,y[2]=1>Math.abs(b-x)&&1>Math.abs(a-re)?0:1>Math.abs(b-x)?0<=a-re?90:270:1>Math.abs(a-re)?0<=b-x?0:180:180*Math.atan2(a-re,b-x)/Math.PI,y;ee+=ue}}return y},Ce.xx=function(a){if(this.type===Tn.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=E?E===x?0:1:Math.abs(a-x)/(E-ee)}if(x===b)return y=E?E===y?0:1:Math.abs(z-y)/(E-ee);ee=(E-y)*(E-y)+(b-x)*(b-x);var re=Te.alloc();return mt.qh(y,x,E,b,z,a,re),a=re.x,z=re.y,Te.free(re),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/ee)}}else if(this.type===Tn.u){ee=this.startX,re=this.startY;var oe=this.endX;if(b=this.endY,ee!==oe||re!==b){y=oe-ee,x=b-re,z=2*y+2*x,E=a.x,a=a.y,E=Math.min(Math.max(E,ee),oe),a=Math.min(Math.max(a,re),b),ee=Math.abs(E-ee),oe=Math.abs(E-oe),re=Math.abs(a-re),b=Math.abs(a-b);var se=Math.min(ee,oe,re,b);if(se===re)return E/z;if(se===oe)return(y+a)/z;if(se===b)return(2*y+x-E)/z;if(se===ee)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,E=Te.alloc(),b=1/0,re=ee=0,oe=y.length;for(var ue=se=0,fe=0;fea?0:1a?"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;ba&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(E,0),this.Pg=Math.max(b,0),typeof ee=="boolean"?ee&&(this.isLargeArc=!0):typeof ee=="number"&&ee&&(this.isLargeArc=!0),re&&(this.isClockwiseArc=!0)):(this.Ne=E,this.Vh=b,a===ua&&(z=Math.max(z,0)),this.Wh=z,typeof ee=="number"?(a===ua&&(ee=Math.max(ee,0)),this.Pg=ee):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},Ce=qr.prototype,Ce.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 mt.B(this.endX,a.endX)&&mt.B(this.endY,a.endY);case Sa:return mt.B(this.endX,a.endX)&&mt.B(this.endY,a.endY)&&mt.B(this.point1X,a.point1X)&&mt.B(this.point1Y,a.point1Y)&&mt.B(this.point2X,a.point2X)&&mt.B(this.point2Y,a.point2Y);case ds:return mt.B(this.endX,a.endX)&&mt.B(this.endY,a.endY)&&mt.B(this.point1X,a.point1X)&&mt.B(this.point1Y,a.point1Y);case ua:return mt.B(this.startAngle,a.startAngle)&&mt.B(this.sweepAngle,a.sweepAngle)&&mt.B(this.centerX,a.centerX)&&mt.B(this.centerY,a.centerY)&&mt.B(this.radiusX,a.radiusX)&&mt.B(this.radiusY,a.radiusY);case cs:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&mt.B(this.xAxisRotation,a.xAxisRotation)&&mt.B(this.endX,a.endX)&&mt.B(this.endY,a.endY)&&mt.B(this.radiusX,a.radiusX)&&mt.B(this.radiusY,a.radiusY);default:return!1}},Ce.qb=function(a){a.classType===qr&&(this.type=a)},Ce.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":"")},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return this._isFrozen=!1,this},Ce.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=mt.jx(0,0,x=xe?ee=Math.PI:1<=xe&&(ee=0),!oe&&0ee&&(ee+=2*Math.PI),oe=y>z?1:y/z,xe=y>z?z/y:1,y=mt.jx(0,0,y>z?y:z,ue,ue+ee,!0),z=Si.alloc(),z.reset(),z.translate(x,E),z.rotate(a.Ne,0,0),z.scale(oe,xe),Tn.Ha(y,z),Si.free(z),a.ae=y,a.ae}bt.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&&Pt(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Pt(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Pt(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Pt(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Pt(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&Pt(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&Pt(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Pt(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Pt(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Kn(a,">= zero",qr,"radiusX"),this._isFrozen&&Pt(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Kn(a,">= zero",qr,"radiusY"),this._isFrozen&&Pt(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Pt(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&&Pt(this,a),360a&&(a=-360),this.Ec=a,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&Pt(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&&Pt(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&&Pt(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),qr.prototype.equalsApprox=qr.prototype.Xa;var ca=new wn(qr,"Move",0),So=new wn(qr,"Line",1),Sa=new wn(qr,"Bezier",2),ds=new wn(qr,"QuadraticBezier",3),ua=new wn(qr,"Arc",4),cs=new wn(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 Te(0,0).freeze(),this.mt=new Te(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},bt.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},bt.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=zt(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=zt(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=zt(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=zt(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+=ir(this.object)),this.oldValue!==null&&(a+=" old: "+ir(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+ir(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))},bt.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 wn(Ho,"Transaction",-1),To=new wn(Ho,"Property",0),$o=new wn(Ho,"Insert",1),pa=new wn(Ho,"Remove",2);Ho.className="ChangedEvent",Ho.Transaction=Fa,Ho.Property=To,Ho.Insert=$o,Ho.Remove=pa;function xa(){this.o=new dn().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&&0y&&a.cd(y,E),y++);for(;a.length>y;)a.pop();a.freeze()}},bt.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 vn,this.Jd=!1,this.u=new dn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new dn().freeze(),this.hl=new dn,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;Ea.transactionLevel&&Bn("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=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}Ce.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&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||Bn("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},bt.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.historyIndexb||Math.abs(y.y-a.y)>E},bt.Object.defineProperties(no.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof qt&&(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}}}),no.prototype.startTransaction=no.prototype.Ea,no.className="Tool";function Ao(){no.call(this),this.name="ToolManager",this.hb=new dn,this.ob=new dn,this.Hb=new dn,this.F=this.V=850,this.o=new Re(2,2).ja(),this.Ha=5e3,this.ia=qs,this.u=Su,this.Mp=this.j=null,this.zj=-1}Dt(Ao,no),Ao.prototype.initializeStandardTools=function(){},Ao.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof uo&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},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;Eb.right&&(x.x-=E.width+5/y.scale),x.xb.bottom?x.y-(E.height+5/y.scale):x.y+20/y.scale,x.yx.pointsCount)){var E=a.diagram;if(!E.isReadOnly){var b=a.Oe;if(b!==null){var z=null,ee=null;x.fromNode===null&&(z=Oo(a,x.i(0),!1),z!==null&&(ee=z.part));var re=null,oe=null;x.toNode===null&&(re=Oo(a,x.i(x.pointsCount-1),!0),re!==null&&(oe=re.part)),b.isValidLink(ee,z,oe,re)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=ee,z!==null&&(x.fromPortId=z.portId),x.toNode=oe,re!==null&&(x.toPortId=re.portId),x.fromPort!==E.Mx&&E.R("LinkRelinked",x,E.Mx),x.toPort!==E.Nx&&E.R("LinkRelinked",x,E.Nx)):rf(b,ee,z,oe,re):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 ee=z.mouseDrop;if(ee!==null&&(ee(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 ki&&z.linksConnected.each(function(re){re.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||Va!==null){for(a=ht.alloc(),y=x.selection.iterator;y.next();)E=y.value,E instanceof ki&&Dd(x,E,a);ht.free(a)}}}function ou(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Or||(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 ui},!0,function(b){return b instanceof ui},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 qt||(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&&(0ee&&(ee=se),ue>re&&(re=ue))}}for(E===1/0?z.h(0,0,0,0):z.h(E,b,ee-E,re-b),E=z.x+z.width/2,b=z.y+z.height/2,ht.free(z),z=a.Fr,ee=new $t,re=Te.alloc(),oe=y.iterator;oe.next();)se=oe.value,se instanceof ui&&se.canCopy()&&(ue=x.I(se),ue!==null&&(ue.points=se.points,Bh(ue,z.x-E,z.y-b),ue.suspendsRouting=!0,ee.add(ue,a.Pd())));for(y=y.iterator;y.next();)se=y.value,se.Zc()&&se.canCopy()&&(oe=x.I(se),oe!==null&&(se=se.location,re.h(z.x-(E-se.x),z.y-(b-se.y)),oe.location=re,oe.Va(),ee.add(oe,a.Pd(re))));Te.free(re),a.copiedParts=ee,xu(a,ee.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 Te},bt.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 dn,Ii("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Ao.prototype.doCancel=function(){Va!==null&&Va.doCancel(),no.prototype.doCancel.call(this)};function lo(){no.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new ui,y=new Wr;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Wr,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new ki,y=new Wr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=ut,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new ki,y=new Wr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=ut,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 $t,this.Of=this.gj=this.Pf=null}Dt(lo,no),lo.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},lo.prototype.copyPortProperties=function(a,y,x,E,b){if(a!==null&&y!==null&&x!==null&&E!==null){var z=y.Df(),ee=Re.alloc();ee.width=y.naturalBounds.width*z,ee.height=y.naturalBounds.height*z,E.desiredSize=ee,Re.free(ee),b?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=Di,z=Te.alloc(),x.location=y.ga(Di,z),Te.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,E,b)}},lo.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=ut,y.fromSpot=Vi,y.toSpot=Vi),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},lo.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},lo.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof ki){var y=this.targetPort.part;this.isForwards?this.copyPortProperties(y,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(y,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},lo.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof ki))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof ki)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(E===!1)break;a=a.panel}return null},lo.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,E=this.portGravity;0>=E&&(E=.1);var b=this,z=y.og(x,E,function(fe){return b.findValidLinkablePort(fe,a)},null,!0);for(E=1/0,y=null,z=z.iterator;z.next();){var ee=z.value,re=ee.part;if(re instanceof ki){var oe=ee.ga(Di,Te.alloc()),se=x.x-oe.x,ue=x.y-oe.y;Te.free(oe),oe=se*se+ue*ue,oex){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=x)return!1}return!0},lo.prototype.isValidTo=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.toLinkable!==!0))return!1;var x=y.toMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=x)return!1}return!0},lo.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},lo.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof ki))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof ki))return!1;for(y=y.portId,y===null&&(y=""),y=E.Sd(y);y.next();)if(E=y.value,E.fromNode===x&&E.fromPortId===a)return!0;return!1},lo.prototype.isValidLink=function(a,y,x,E){if(!this.isValidFrom(a,y)||!this.isValidTo(x,E)||!(y===null||E===null||(y.fromLinkableSelfNode&&E.toLinkableSelfNode||!this.isInSameNode(y,E))&&(y.fromLinkableDuplicates&&E.toLinkableDuplicates||!this.isLinked(y,E)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var b=a.linkValidation;if(b!==null&&!b(a,y,x,E,this.originalLink))return!1}return x!==null&&(b=x.linkValidation,b!==null&&!b(a,y,x,E,this.originalLink))?!1:(b=this.linkValidation,b!==null?b(a,y,x,E,this.originalLink):!0)},lo.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var E=new vn;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))))}lo.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var E=this.diagram.validCycle;if(E!==kc){if(E===Vg){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=y.linksConnected;E.next();){var b=E.value;if(b!==x&&b.isTreeLink&&b.toNode===y)return!1}return!Mo(this,a,y,x,!0)}if(E===Gg){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=a.linksConnected;E.next();)if(b=E.value,b!==x&&b.isTreeLink&&b.fromNode===a)return!1;return!Mo(this,a,y,x,!0)}if(E===Wg)return a===y?a=!0:(E=new vn,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 vn,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 ee=z.value;if(ee!==E&&(!b||ee.isTreeLink)&&ee.toNode===y&&(ee=ee.fromNode,ee!==y&&Mo(a,ee,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 ee=z.value;if(ee!==b&&ee.toNode===x&&(ee=ee.fromNode,ee!==x&&ra(a,y,ee,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 ee=z.value;if(ee!==b){var re=ee.fromNode;if(ee=ee.toNode,re=re===x?ee:re,re!==x&&rs(a,y,re,E,b))return!0}}return!1}bt.Object.defineProperties(lo.prototype,{portGravity:{get:function(){return this.te},set:function(a){0<=a&&(this.te=a)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(a){this.Ha=a}},linkingCursor:{get:function(){return this.u},set:function(a){this.u=a}},temporaryLink:{get:function(){return this.Ci},set:function(a){this.Ci=a}},temporaryFromNode:{get:function(){return this.Bi},set:function(a){(this.Bi=a)&&(this.j=a.port)}},temporaryFromPort:{get:function(){return this.j},set:function(a){if(this.j!==null){var y=this.j.panel;if(y!==null){var x=y.O.indexOf(this.j);y.mb(x),y.Gb(x,a)}}this.j=a}},temporaryToNode:{get:function(){return this.Di},set:function(a){(this.Di=a)&&(this.o=a.port)}},temporaryToPort:{get:function(){return this.o},set:function(a){if(this.o!==null){var y=this.o.panel;if(y!==null){var x=y.O.indexOf(this.o);y.mb(x),y.Gb(x,a)}}this.o=a}},originalLink:{get:function(){return this.Hb},set:function(a){this.Hb=a}},originalFromNode:{get:function(){return this.hb},set:function(a){this.hb=a}},originalFromPort:{get:function(){return this.ob},set:function(a){this.ob=a}},originalToNode:{get:function(){return this.Oc},set:function(a){this.Oc=a}},originalToPort:{get:function(){return this.Pc},set:function(a){this.Pc=a}},isForwards:{get:function(){return this.ia},set:function(a){this.ia=a}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(a){this.Pf=a}},linkValidation:{get:function(){return this.gj},set:function(a){this.gj=a}},portTargeted:{get:function(){return this.Of},set:function(a){this.Of=a}}}),lo.className="LinkingBaseTool";function fs(){lo.call(this),this.name="Linking",this.V={},this.F=null,this.K=Xh,this.Xd=null}Dt(fs,lo),fs.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return a.isReadOnly||a.isModelReadOnly||!a.allowLink||!a.model.xs()||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},fs.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof ki)))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 ki&&(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 ki&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},fs.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},fs.prototype.doStop=function(){lo.prototype.doStop.call(this),this.startObject=null},fs.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,E=null,b=null,z=null;try{var ee=this.targetPort=this.findTargetPort(this.isForwards);if(ee!==null){var re=ee.part;re instanceof ki&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),E=re,b=ee):(y=re,x=ee,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?(ee===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 ui)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(){},bt.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 wn(fs,"Either",0),Vp=new wn(fs,"ForwardsOnly",0),Gp=new wn(fs,"BackwardsOnly",0);fs.className="LinkingTool",fs.Either=Xh,fs.ForwardsOnly=Vp,fs.BackwardsOnly=Gp;function sl(){lo.call(this),this.name="Relinking";var a=new Wr;a.figure="Diamond",a.desiredSize=Vt,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Wr,a.figure="Diamond",a.desiredSize=Vt,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new ht}Dt(sl,lo),sl.prototype.updateAdornments=function(a){if(a!==null&&a instanceof ui){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var E=a.selectionObject;E!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(E,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(E=a.selectionObject,E!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(E,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},sl.prototype.makeAdornment=function(a,y){var x=new uo;return x.type=$n.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},sl.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowRelink||!a.model.xs()||!a.lastInput.left)return!1;var y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom");return y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo")),y!==null},sl.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var x=y.part;if(!(x instanceof uo&&x.adornedPart instanceof ui))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&&0y.firstPickIndex+1&&x=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 e;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 $n)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=no.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,Te.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),Te.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,Te.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),Te.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 Or){var E=new dn;if(E.add(a),!this.dragsMembers&&a.placeholder===null){var b=new ae;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=Di);var ee=this.adornedObject.naturalBounds,re=ee.x,oe=ee.y,se=ee.x+ee.width,ue=ee.y+ee.height,fe=1;if(!z){fe=ee.width;var ve=ee.height;0>=fe&&(fe=1),0>=ve&&(ve=1),fe=ve/fe}return ve=Te.alloc(),mt.No(a.x,a.y,re,oe,b.width,b.height,ve),a=ee.copy(),0>=y.x?0>=y.y?(a.x=Math.max(ve.x,se-E.width),a.x=Math.min(a.x,se-x.width),a.width=Math.max(se-a.x,x.width),a.y=Math.max(ve.y,ue-E.height),a.y=Math.min(a.y,ue-x.height),a.height=Math.max(ue-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(fe*a.width,E.height),x.height),a.width=a.height/fe):(a.width=Math.max(Math.min(a.height/fe,E.width),x.width),a.height=fe*a.width),a.x=se-a.width,a.y=ue-a.height)):1<=y.y?(a.x=Math.max(ve.x,se-E.width),a.x=Math.min(a.x,se-x.width),a.width=Math.max(se-a.x,x.width),a.height=Math.max(Math.min(ve.y-oe,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(fe*a.width,E.height),x.height),a.width=a.height/fe):(a.width=Math.max(Math.min(a.height/fe,E.width),x.width),a.height=fe*a.width),a.x=se-a.width)):(a.x=Math.max(ve.x,se-E.width),a.x=Math.min(a.x,se-x.width),a.width=se-a.x,z||(a.height=Math.max(Math.min(fe*a.width,E.height),x.height),a.width=a.height/fe,a.y=oe+.5*(ue-oe-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(ve.x-re,E.width),x.width),a.y=Math.max(ve.y,ue-E.height),a.y=Math.min(a.y,ue-x.height),a.height=Math.max(ue-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(fe*a.width,E.height),x.height),a.width=a.height/fe):(a.width=Math.max(Math.min(a.height/fe,E.width),x.width),a.height=fe*a.width),a.y=ue-a.height)):1<=y.y?(a.width=Math.max(Math.min(ve.x-re,E.width),x.width),a.height=Math.max(Math.min(ve.y-oe,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(fe*a.width,E.height),x.height),a.width=a.height/fe):(a.width=Math.max(Math.min(a.height/fe,E.width),x.width),a.height=fe*a.width))):(a.width=Math.max(Math.min(ve.x-re,E.width),x.width),z||(a.height=Math.max(Math.min(fe*a.width,E.height),x.height),a.width=a.height/fe,a.y=oe+.5*(ue-oe-a.height))):0>=y.y?(a.y=Math.max(ve.y,ue-E.height),a.y=Math.min(a.y,ue-x.height),a.height=ue-a.y,z||(a.width=Math.max(Math.min(a.height/fe,E.width),x.width),a.height=fe*a.width,a.x=re+.5*(se-re-a.width))):1<=y.y&&(a.height=Math.max(Math.min(ve.y-oe,E.height),x.height),z||(a.width=Math.max(Math.min(a.height/fe,E.width),x.width),a.height=fe*a.width,a.x=re+.5*(se-re-a.width))),Te.free(ve),a},us.prototype.computeReshape=function(){var a=Rn;return this.adornedObject instanceof Wr&&(a=Mv(this.adornedObject)),!(a===Ui||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.widthx?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 Te(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Cs.prototype.stopTransaction=function(){var a=this.diagram,y=no.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&&0y-x&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},bt.Object.defineProperties(Cs.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof uo))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof uo)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),Cs.className="RotatingTool",Ii("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function _h(){no.call(this),this.name="ClickSelecting"}Dt(_h,no),_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(){no.call(this),this.name="Action",this.pk=null}Dt(Tl,no),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(){no.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Te(0,0)}Dt(yh,no),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 ar)x.Zc()&&(jl(x),E=x.copy(),E!==null&&y.add(E));else if(x!==null){var b=y.model.copyNodeData(x);zt(b)&&(y.model.xf(b),E=y.Lc(b))}if(E!==null){var z=Te.allocAt(a.x,a.y);this.isGridSnapEnabled&&vf(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),Te.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},bt.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(){no.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new ar;a.layerName="Tool",a.selectable=!1;var y=new Wr;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Dt(Sl,no),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.timestampb.right&&(x.x-=E.width+5/y.scale),x.xb.bottom&&(x.y-=E.height+5/y.scale),x.ya.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 ht(this.textBlock.ga(_i),this.textBlock.ga(Ar));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},bt.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 wn(Xo,"LostFocus",0),Pu=new wn(Xo,"MouseDown",1),sf=new wn(Xo,"Tab",2),pc=new wn(Xo,"Enter",3),iv=new wn(Xo,"SingleClick",0),Bd=new wn(Xo,"SingleClickSelected",1),lf=new wn(Xo,"DoubleClick",2),Td=new wn(Xo,"StateNone",0),mc=new wn(Xo,"StateActive",1),vc=new wn(Xo,"StateEditing",2),pg=new wn(Xo,"StateValidating",3),yc=new wn(Xo,"StateInvalid",4),Od=new wn(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,Ii("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=eh,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new vn,this.ce=new as,this.ce.Yd=this,this.Ei=new vn,this.pu=new vn,this.Sr=new vn,this.pr=new vn,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===eh?(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),Pn.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 ui&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,E,!1)}Ce=$s.prototype,Ce.fv=function(a){return this.ce.fv(a)},Ce.Xu=function(a){return this.ce.Xu(a)};function df(a,y){function x(){if(0z?z+=360:oe+=360),z=b(x,z,oe-z,E)%360,ee=b(x,ee,se-ee,E),re=b(x,re,ue-re,E),x=b(x,a,y-a,E),"hsla("+z+", "+ee+"%, "+re+"%, "+x+")"}function mg(){function a(x,E,b,z,ee,re){x.position=new Te(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re))}var y=new $t;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,E,b,z,ee,re){eea&&Kn(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,eh=new wn($s,"Default",1),wc=new wn($s,"AnimateLocations",2),vg=new wn($s,"None",3);$s.className="AnimationManager",$s.defineAnimationEffect=function(a,y){xc||(mg(),xc=!0),Sc.add(a,y)},$s.Default=eh,$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=He,this.vc=new $t,this.Tt=new $t,this.yl=new vn,this.Ut=new vn,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,0a.cn?a.Gd:E-a.Qd;y&&(b=a.gw,ba.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 Mt&&z.diagram===null)){var ee=E.value,re=b?ee.end:ee.start;ee=b?ee.start:ee.end;var oe=Sc,se;for(se in ee)se==="position"&&(ee["position:placeholder"]||ee["position:nodeCollapse"])||oe.get(se)===null||oe.get(se)(z,re[se],ee[se],a.Lp,y,x,a)}}}Ce.stop=function(){return this.bc?(this.Ml(!0),this):this},Ce.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 ee=E.key,re=E.value,oe=b?re.end:re.start,se=b?re.start:re.end,ue=re.Ku,fe;for(fe in se)if(z.get(fe)!==null){var ve=fe;!re.Hu||ve!=="position:nodeCollapse"&&ve!=="position:placeholder"||(ve="position"),z.get(ve)(ee,oe[fe],ue[fe]!==void 0?ue[fe]:re.Hu?oe[fe]:se[fe],this.Lp,this.Gd,this.Gd,this)}re.Hu&&ue.location!==void 0&&ee instanceof ar&&(ee.location=ue.location),re.nv&&ee instanceof ar&&ee.Zb(!1)}if(y.As.clear(),Ec(y,!1),y.Ya(),y.N(),wl(y,!0),x.defaultAnimation===this){for(fe=x.pr.iterator;fe.next();)b=fe.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())}},Ce.Cj=function(a,y){var x=y.actualBounds,E=null;if(y instanceof Or&&(E=y.placeholder),E!==null?(x=E.ga(_i),E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Te(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Or)for(a=a.memberParts;a.next();)E=a.value,E instanceof ki&&this.Cj(E,y)},Ce.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Or&&(x=y.placeholder),x!==null){var E=x.ga(_i);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 Or)for(a=a.memberParts;a.next();)E=a.value,E instanceof ki&&this.Aj(E,y)}},Ce.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},bt.Object.defineProperties(as.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Kn(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){0a?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 ed(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}ed.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=td))}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))}bt.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 wn(Xl,"Default",1),td=new wn(Xl,"Immediate",2),Rd=new wn(Xl,"Bundled",3);Xl.className="AnimationTrigger",Xl.Default=Sg,Xl.Immediate=td,Xl.Bundled=Rd;function Xa(a){Fi(this),this.H=null,this.Pa=new dn,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)}Ce=Xa.prototype,Ce.clear=function(){for(var a=this.Pa,y=0;y=a)return y;for(var x=0,E=0,b=0,z=0,ee=0,re=this.Pa.iterator;re.next();){var oe=re.value;oe instanceof Or?b++:oe instanceof ki?E++:oe instanceof ui?z++:oe instanceof uo?ee++:x++}if(re="",0x.Oq||re.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))}},Ce.g=function(a,y,x,E,b){var z=this.diagram;z!==null&&z.cb(To,a,this,y,x,E,b)},Ce.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},Ce.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 Or&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var E=-1,b=a.Pa.s,z=b.length,ee=0;eeE&&re.containingGroup===x&&(E=ee,0<=y))break}!(0>E)&&E=b)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,ee=NaN;0<=z&&(ee=a.M(z).zOrder,!!isNaN(ee));)z--;for(var re=y+1,oe=NaN;reE)for(;;){if(z===-1||ee<=E){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(ee=NaN;0<=--z&&(ee=a.M(z).zOrder,isNaN(ee)););}else if(!isNaN(oe)&&oe=E){if(re--,re===y)break;return a.mb(y),a.Gb(re,x),re}for(oe=NaN;++rea||1=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||Ge("Diagram setup requires an argument DIV."),a.Ka!==null&&Ge("Diagram has already completed setup."),typeof y=="string"?a.Ka=Pn.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:Ge("No DIV or DIV id supplied: "+y),a.Ka===null&&Ge("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&Ge("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Pn.ResizeObserver){var x=Cn(function(){a.$b()},250);a.ol=new Pn.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Pn.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=Pn.go;var b=new zl(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",Pn.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=dr("div");var z=dr("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=tm,b.addEventListener("pointerdown",nm),b.H=a,b.uy=!0,b.vy=!0,a.ku=b,a.hu=z}a.hk=Cn(function(){a.Yh=null,a.N()},300),a.Ov=Cn(function(){Pg(a)},250),a.preventDefault=function(ee){return ee.preventDefault(),!1},a.$j=function(ee){if(a.isEnabled){var re=xl(a,ee,!0);re.bubbles=!0;var oe=0,se=0;re.delta=0,ee.deltaX!==void 0?(ee.deltaX!==0&&(oe=0Math.abs(ee.deltaY)?-oe:-se):ee.wheelDeltaX!==void 0?(ee.wheelDeltaX!==0&&(oe=0Math.abs(ee.wheelDeltaY)?-oe:-se):ee.wheelDelta!==void 0&&ee.wheelDelta!==0&&(re.delta=0re||Math.abs(se.y-ee.screenY)>re)?a.yq++:a.yq=1,oe.clickCount=a.yq,a.tw=ee.timeStamp,a.uw.sg(ee.screenX,ee.screenY),a.doMouseDown(),ee.button===1?ee.preventDefault():_l(oe,ee)}},a.dk=function(ee){if(a.isEnabled){a.Vk=!0;var re=a.oj;if(re[0]===null||re[0].pointerId!==ee.pointerId&&re[0].pointerType===ee.pointerType){if(re[1]!==null&&re[1].pointerId===ee.pointerId){re[1]=ee;return}if(re[0]===null)re[0]=ee;else return}else re[0]=ee;if(re[0].pointerId===ee.pointerId){re=Lg(a,ee,!1,!1,!1,re[1]!==null);var oe=Pn.document.elementFromPoint(ee.clientX,ee.clientY)||null;oe!==null&&oe.shadowRoot!==void 0&&oe.shadowRoot!==null&&(oe=oe.shadowRoot.elementFromPoint(ee.clientX,ee.clientY));var se=a,ue=ee;oe&&oe.H&&(ue=ee,se=oe.H),re.targetDiagram=se,jd(a,ue,re),re.targetObject=null,a.doMouseMove(),_l(re,ee)}}},a.fk=function(ee){if(a.isEnabled){a.Vk=!0;var re=ee.pointerType==="touch"||ee.pointerType==="pen",oe=a.Yt;if(re&&a.qu)delete oe[ee.pointerId],ee.preventDefault();else if(oe=a.oj,oe[0]===null||oe[0].pointerId!==ee.pointerId&&oe[0].pointerType===ee.pointerType)oe[1]!==null&&oe[1].pointerId===ee.pointerId&&(oe[1]=null);else{oe[0]=null,oe=Lg(a,ee,!1,!0,!0,!1);var se=Pn.document.elementFromPoint(ee.clientX,ee.clientY)||null;se!==null&&se.shadowRoot!==void 0&&se.shadowRoot!==null&&(se=se.shadowRoot.elementFromPoint(ee.clientX,ee.clientY)),se!==null&&se.H instanceof qt&&se.H!==a&&jd(se.H,ee,oe),se===null&&(se=ee.target),jd(a,ee,oe),oe.clickCount=a.yq,oe.targetDiagram=Ag(ee,se),oe.targetObject=null,a.doMouseUp(),_l(oe,ee),re&&(a.wq=!1)}}},a.ek=function(ee){if(a.isEnabled){a.Vk=!1;var re=a.Yt;re[ee.pointerId]&&delete re[ee.pointerId],re=a.oj,re[0]!==null&&re[0].pointerId===ee.pointerId&&(re[0]=null),re[1]!==null&&re[1].pointerId===ee.pointerId&&(re[1]=null),ee.pointerType!=="touch"&&ee.pointerType!=="pen"&&(ee=a.currentTool,ee.cancelWaitAfter(),ee.standardMouseOver())}},a.ck=function(ee){var re=a.oj;re[0]!==null&&re[0].pointerId===ee.pointerId?(re[0]=null,a.wq=!1):re[1]!==null&&re[1].pointerId===ee.pointerId&&(re[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)}}qt.prototype.addEventListener=function(a,y,x,E){a.addEventListener(y,x,{capture:E,passive:!1})},qt.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(Pn,"resize",a.Ov,!1)}function Is(a){30Pe&&(this.position=Je.h(-(y.scrollWidth-this.Aa)+We-this.Aa/b+ue,this.position.y))),a.vy&&this.allowVerticalScroll&&(reFe&&(this.position=Je.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),Te.free(Je),this.vd=!0,this.Ee=this.qr=!1,E=this.documentBounds,b=this.viewportBounds,ue=E.right,Pe=b.right,z=E.bottom,Fe=b.bottom,ee=E.x,fe=b.x,re=E.y,E=b.y,ve>=oe&&ee>=fe&&ue<=Pe&&(x.style.width="1px"),xe>=se&&re>=E&&z<=Fe&&(x.style.height="1px"))}},qt.prototype.computeBounds=function(a){return a===void 0&&(a=new ht),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;zx&&(y=x),ya.maxScale&&(y=a.maxScale),y):y===ld?(y=oe>re?(ee-a.Db)/E:(z-a.Db)/b,y>x&&(y=x),ya.maxScale&&(y=a.maxScale),y):a.scale}qt.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},Ce=qt.prototype,Ce.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 Te(a.x,a.y)}},Ce.Jy=function(a,y){this.Va();var x=this.documentBounds,E=this.viewportBounds;this.position=new Te(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))},Ce.zz=function(a){if(a instanceof Mt){this.eq=a;var y=Te.alloc();this.fq=this.op(a.ga(_i,y)),Te.free(y)}else this.eq=null,this.fq=en};function Eg(a,y,x,E,b,z){var ee=Te.allocAt(a.pa.x,a.pa.y),re=ee.x,oe=ee.y;if(a.eq!==null){var se=Te.alloc();se=a.eq.ga(_i,se),re=se.x-a.fq.x/a.scale,oe=se.y-a.fq.y/a.scale,b=Vi,Te.free(se)}(z||a.scrollMode===Ah)&&(b.sb()&&(x>y.width&&(re=y.x+(b.x*y.width+b.offsetX)-(b.x*x-b.offsetX)),E>y.height&&(oe=y.y+(b.y*y.height+b.offsetY)-(b.y*E-b.offsetY))),b=a.rj,z=x-y.width,xy.left?re=y.left:rey.top?oe=y.top:oey;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new vn,a.Nv(x,a.De)}a.nodes.each(function(E){E instanceof Or&&E.U&65536&&(E.U=E.U^65536)})}}Ce.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Or||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Or&&x.isVisible()&&bc(this,x);for(a.reset();a.next();)x=a.value,x instanceof ui&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof uo&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function bc(a,y){for(var x=ai(),E=ai(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof Or?(hl(z)||Ls(z)||hd(z))&&bc(a,z):z instanceof ui?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;bLt&&(We=Ei.left,rt=Ei.right),Je.height>Jt&&(at=Ei.top,dt=Ei.bottom)):(We=Ei.left,rt=Ei.right,at=Ei.top,dt=Ei.bottom);var ji=Je.width+We+rt,Ri=Je.height+at+dt;Ei=a.scale;var li=ji>oe/Ei,Dn=Ri>se/Ei;if(!(z||a.gf||a.Be||li||Dn))return!0;We=Je.x-We,oe=ue.x,rt=Je.right+rt,se=ue.right+ee,at=Je.y-at;var Tr=ue.y;Je=Je.bottom+dt,ue=ue.bottom+re;var Lr="1px";if(dt="1px",a.scrollMode===Ah&&(li||Dn)&&(li&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(li=1,We+1se+1&&(li=Math.max((rt-se)*Ei+a.Aa,li)),Lt+ee+1ue+1&&(li=Math.max((Je-ue)*Ei+a.ya,li)),Jt+re+1se+1&&(ee=Math.max((rt-se)*Ei+a.Aa,ee)),Lt+1ue+1&&(re=Math.max((Je-ue)*Ei+ee,re)),Jt+1se+1&&(y=a.position.x*Ei)),a.tn)switch(a.bu){case"negative":y=-(Pe.scrollWidth-y-Pe.clientWidth);break;case"reverse":y=Pe.scrollWidth-y-Pe.clientWidth}return Pe.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Jt+1ue+1&&(Pe.scrollTop=a.position.y*Ei)),oe=a.Aa,se=a.ya,Pe.style.width=oe+(a.gf?a.Db:0)+"px",Pe.style.height=se+(a.Be?a.Db:0)+"px",x!==oe||E!==se||a.animationManager.zb?(x=ht.allocAt(b,fe,ve,xe),a.onViewportBoundsChanged(x,a.viewportBounds,Ei,z),ht.free(x),!1):!0}Ce=qt.prototype,Ce.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&Ge("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&&Ge('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)}},Ce.oi=function(a){this.partManager.oi(a);var y=this;Qd(a,function(x){Vd(y,x)}),(a instanceof uo||a instanceof Or&&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(ec(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(ec(a,a.actualBounds)),this.$b()},Ce.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(ec(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(ec(a,a.actualBounds)),this.$b()},Ce.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))}Ce.Is=function(a,y){if(y===void 0&&(y=!1),Fn(a))for(var x=a.length,E=0;EE&&this.Ya(),this},Ce.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;zE&&this.Ya(),this},Ce.kA=function(a){if(a.diagram!==this&&Ge("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()}}},Ce.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Ce.Yw=function(a){return this.pf===null&&(this.pf=new dn),this.pf.add(a),this.model.Pe(a),this},Ce.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Ce.Pe=function(a){return this.zg===null&&(this.zg=new dn),this.zg.add(a),this},Ce.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Ce.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;Efe.Pa.indexOf(xe)&&fe.oi(ve,xe,Pe):(xe.isSelected=!1,xe.isHighlighted=!1,xe.Wb(),fe.pc(Pe?ve:-1,xe,Pe)))}else fe instanceof qt?typeof ve=="number"&&xe instanceof Xa&&(y?(xe.Xe(this),this.Wa.Gb(ve,xe)):this.Wa.mb(ve)):Ge("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==Fa&&Ge("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},qt.prototype.Ea=function(a){return this.undoManager.Ea(a)},qt.prototype.eb=function(a){return this.undoManager.eb(a)},qt.prototype.Kf=function(){return this.undoManager.Kf()},qt.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}},qt.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},qt.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,ee=a.ya,re=a.zoomPoint.x,oe=a.zoomPoint.y,se=a.contentAlignment;isNaN(re)&&(se.$c()?se.Hf(Xr)?re=0:se.Hf(_r)&&(re=z-1):re=se.sb()?se.x*(z-1):z/2),isNaN(oe)&&(se.$c()?se.Hf(eo)?oe=0:se.Hf(fo)&&(oe=ee-1):oe=se.sb()?se.y*(ee-1):ee/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),xa.maxScale&&(x=a.maxScale),z=Te.allocAt(a.pa.x+re/y-re/x,a.pa.y+oe/y-oe/x),a.position=z,Te.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))}}qt.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=Re.alloc(),b=1,z=1,ee=x.O.s,re=ee.length,oe=0;oeue||(Sv(se.figure)?z=z*ue/mt.vx(z,ue):b=b*ue/mt.vx(b,ue))}if(ee=x.gridCellSize,E.h(z*ee.width,b*ee.height),y!==void 0)b=y.width,z=y.height,a=y.x,ee=y.y;else{if(y=ht.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){ht.free(y);return}b=y.width,z=y.height,a=y.x,ee=y.y,ht.free(y)}x.width=b+2*E.width,x.height=z+2*E.height,y=Te.alloc(),mt.No(a,ee,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),Re.free(E),x.part.location=y,Te.free(y)}}qt.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&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Bu(z,"Layout")),a.xh=!1;for(var ee=a.ai.iterator;ee.next();)zg(a,ee.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)}}Ce.yz=function(){for(var a=new dn,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(),ee=new dn;x.add(b,ee),x.add(z,ee),E.add(b,b),E.add(z,b)}var x=new $t,E=new $t;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;Ge("Unknown DiagramEvent name: "+y)}Ce.Bj=function(a,y){return a=xf(this,a),a!==null&&a.add(y),this},Ce.am=function(a,y){a=xf(this,a),a!==null&&a.remove(y)},Ce.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=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var E=this.viewportBounds,b=this.scale;E=ht.allocAt(0,0,E.width*b,E.height*b);var z=Te.allocAt(0,0);if(a.x>=E.x&&a.xE.x+E.width-x.right&&this.allowHorizontalScroll&&(ee=Math.max(this.scrollHorizontalLineChange,1),ee|=0,z.x+=ee,a.x>E.x+E.width-x.right/2&&(z.x+=ee),a.x>E.x+E.width-x.right/4&&(z.x+=4*ee));return a.y>=E.y&&a.yE.y+E.height-x.bottom&&this.allowVerticalScroll&&(ee=Math.max(this.scrollVerticalLineChange,1),ee|=0,z.y+=ee,a.y>E.y+E.height-x.bottom/2&&(z.y+=ee),a.y>E.y+E.height-x.bottom/4&&(z.y+=4*ee)),z.Xa(He)||(y=new Te(y.x+z.x/b,y.y+z.y/b)),ht.free(E),Te.free(z),y},Ce=qt.prototype,Ce.Cs=function(){return null},Ce.av=function(){return null},Ce.bs=function(a,y){this.pj.add(a,y)},Ce.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Or&&(y.$p=null)})};function Mc(a,y,x){function E(){var ue=+new Date;for(z=!0,ee.reset();ee.next();)if(!ee.value[0].al){z=!1;break}z||ue-se>oe?y(x,b,re):Pn.requestAnimationFrame(E)}for(var b=x.callback,z=!0,ee=a.Og.iterator;ee.next();)if(!ee.value[0].al){z=!1;break}if(typeof b!="function"||z)return y(x,b,a);var re=a,oe=x.callbackTimeout||300,se=+new Date;return Pn.requestAnimationFrame(function(){E()}),null}Ce.Wz=function(a){return fa?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Ce.Jx=function(a){return a===void 0&&(a={}),Mc(this,this.Xz,a)},Ce.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"&&Ge('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"&&Ge("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 ee=y.maxSize;y.maxSize===void 0&&(ee=x==="SVG"?new Re(1/0,1/0):new Re(2e3,2e3));var re=y.position||null,oe=y.parts||null,se=y.padding===void 0?1:y.padding,ue=y.background||null,fe=y.omitTemporary;fe===void 0&&(fe=!0);var ve=y.document||document,xe=y.elementFinished||null,Pe=y.showTemporary;Pe===void 0&&(Pe=!fe),y=y.showGrid,y===void 0&&(y=Pe),b!==null&&isNaN(b.width)&&isNaN(b.height)&&(b=null),typeof se=="number"?se=new Bi(se):se instanceof Bi||Ge("MakeImage padding must be a Margin or a number."),se.left=Math.max(se.left,0),se.right=Math.max(se.right,0),se.top=Math.max(se.top,0),se.bottom=Math.max(se.bottom,0),a.ib.Vc(!0),fe=new zl(null,ve,void 0,!0);var Fe=fe.context;if(!(b||z||oe||re))return fe.width=a.Aa+Math.ceil(se.left+se.right),fe.height=a.ya+Math.ceil(se.top+se.bottom),x==="SVG"?E===null?null:(E.resize(fe.width,fe.height,fe.width,fe.height),E.ownerDocument=ve,E.hs=xe,pf(a,E.context,se,new Re(fe.width,fe.height),a.Ca,a.pa,oe,ue,Pe,y),E.context):(a.Xm=!1,pf(a,Fe,se,new Re(fe.width,fe.height),a.Ca,a.pa,oe,ue,Pe,y),a.Xm=!0,fe.context);var Je=a.Pp,We=a.documentBounds.copy();if(We.Fv(a.yb),Pe)for(var rt=a.Wa.s,at=rt.length,dt=0;dtJe?(z=Je,b=We.width,We=We.height):(b=ee.width,We=ee.height)):(b=We.width*z,We=We.height*z):(z=Je,b=We.width,We=We.height),se!==null?(b+=re,We+=at):se=new Bi(0),ee!==null&&(Je=ee.width,ee=ee.height,isNaN(Je)&&(Je=2e3),isNaN(ee)&&(ee=2e3),isFinite(Je)&&(b=Math.min(b,Je)),isFinite(ee)&&(We=Math.min(We,ee))),fe.width=Math.ceil(b),fe.height=Math.ceil(We),x==="SVG"?E===null?null:(E.resize(fe.width,fe.height,fe.width,fe.height),E.ownerDocument=ve,E.hs=xe,pf(a,E.context,se,new Re(Math.ceil(b),Math.ceil(We)),z,rt,oe,ue,Pe,y),E.context):(a.Xm=!1,pf(a,Fe,se,new Re(Math.ceil(b),Math.ceil(We)),z,rt,oe,ue,Pe,y),a.Xm=!0,fe.context)}bt.Object.defineProperties(qt.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof pe||(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,Pn.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,Pn.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(Pn,"resize",this.Ov,!1),this.removeEventListener(Pn,"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||1a&&Kn(a,">= 0",qt,"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&&Kn(a,">= 0",qt,"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= 0",qt,"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&&Ge("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;bthis.scale&&(this.scale=a)):Kn(a,"> 0",qt,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0 0",qt,"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&&Ge("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&&Ge("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 Re(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))}}}),bt.Object.defineProperties(qt,{licenseKey:{get:function(){return Kg.jc()},set:function(a){Kg.add(a.replace(/\s/g,""))}},version:{get:function(){return Kd}}}),qt.prototype.makeImageData=qt.prototype.Jx,qt.prototype.makeImage=qt.prototype.Wz,qt.prototype.cacheGroupExternalLinks=qt.prototype.Fu,qt.prototype.addRenderer=qt.prototype.bs,qt.prototype.makeSVG=qt.prototype.av,qt.prototype.makeSvg=qt.prototype.Cs,qt.prototype.stopAutoScroll=qt.prototype.ug,qt.prototype.doAutoScroll=qt.prototype.gs,qt.prototype.isUnoccupied=qt.prototype.Yj,qt.prototype.raiseDiagramEvent=qt.prototype.R,qt.prototype.removeDiagramListener=qt.prototype.am,qt.prototype.addDiagramListener=qt.prototype.Bj,qt.prototype.findTreeRoots=qt.prototype.yz,qt.prototype.layoutDiagram=qt.prototype.Uz,qt.prototype.findTopLevelGroups=qt.prototype.qz,qt.prototype.findTopLevelNodesAndLinks=qt.prototype.rz,qt.prototype.ensureBounds=qt.prototype.Va,qt.prototype.findLinksByExample=qt.prototype.ls,qt.prototype.findNodesByExample=qt.prototype.ms,qt.prototype.findLinkForData=qt.prototype.Kc,qt.prototype.findNodeForData=qt.prototype.ii,qt.prototype.findPartForData=qt.prototype.Lc,qt.prototype.findLinkForKey=qt.prototype.findLinkForKey,qt.prototype.findNodeForKey=qt.prototype.Vb,qt.prototype.findPartForKey=qt.prototype.findPartForKey,qt.prototype.rebuildParts=qt.prototype.Wd,qt.prototype.transformViewToDoc=qt.prototype.Ps,qt.prototype.transformRectDocToView=qt.prototype.zA,qt.prototype.transformDocToView=qt.prototype.op,qt.prototype.centerRect=qt.prototype.es,qt.prototype.scrollToRect=qt.prototype.tv,qt.prototype.scroll=qt.prototype.scroll,qt.prototype.highlightCollection=qt.prototype.Jz,qt.prototype.highlight=qt.prototype.Iz,qt.prototype.selectCollection=qt.prototype.rA,qt.prototype.select=qt.prototype.select,qt.prototype.updateAllRelationshipsFromData=qt.prototype.rp,qt.prototype.updateAllTargetBindings=qt.prototype.updateAllTargetBindings,qt.prototype.commit=qt.prototype.commit,qt.prototype.rollbackTransaction=qt.prototype.Kf,qt.prototype.commitTransaction=qt.prototype.eb,qt.prototype.startTransaction=qt.prototype.Ea,qt.prototype.raiseChanged=qt.prototype.g,qt.prototype.raiseChangedEvent=qt.prototype.cb,qt.prototype.removeChangedListener=qt.prototype.ik,qt.prototype.addChangedListener=qt.prototype.Pe,qt.prototype.removeModelChangedListener=qt.prototype.mA,qt.prototype.addModelChangedListener=qt.prototype.Yw,qt.prototype.findLayer=qt.prototype.Qj,qt.prototype.removeLayer=qt.prototype.kA,qt.prototype.addLayerAfter=qt.prototype.Cy,qt.prototype.addLayerBefore=qt.prototype.Ww,qt.prototype.addLayer=qt.prototype.Al,qt.prototype.moveParts=qt.prototype.moveParts,qt.prototype.copyParts=qt.prototype.Kj,qt.prototype.removeParts=qt.prototype.Is,qt.prototype.remove=qt.prototype.remove,qt.prototype.add=qt.prototype.add,qt.prototype.clearDelayedGeometries=qt.prototype.bx,qt.prototype.setProperties=qt.prototype.nm,qt.prototype.attach=qt.prototype.Du,qt.prototype.set=qt.prototype.set,qt.prototype.resetInputOptions=qt.prototype.Sx,qt.prototype.setInputOption=qt.prototype.sA,qt.prototype.getInputOption=qt.prototype.Ql,qt.prototype.resetRenderingHints=qt.prototype.Tx,qt.prototype.setRenderingHint=qt.prototype.Xx,qt.prototype.getRenderingHint=qt.prototype.Gf,qt.prototype.maybeUpdate=qt.prototype.bd,qt.prototype.requestUpdate=qt.prototype.$b,qt.prototype.delayInitialization=qt.prototype.Xy,qt.prototype.isUpdateRequested=qt.prototype.Pz,qt.prototype.invalidateDocumentBounds=qt.prototype.Ya,qt.prototype.findObjectsNear=qt.prototype.og,qt.prototype.findPartsNear=qt.prototype.mz,qt.prototype.findObjectsIn=qt.prototype.Cf,qt.prototype.findPartsIn=qt.prototype.ux,qt.prototype.findObjectsAt=qt.prototype.ji,qt.prototype.findPartsAt=qt.prototype.lz,qt.prototype.findObjectAt=qt.prototype.ic,qt.prototype.findPartAt=qt.prototype.Ol,qt.prototype.focusObject=qt.prototype.zz,qt.prototype.alignDocument=qt.prototype.Jy,qt.prototype.zoomToRect=qt.prototype.BA,qt.prototype.zoomToFit=qt.prototype.zoomToFit,qt.prototype.diagramScroll=qt.prototype.kx,qt.prototype.focus=qt.prototype.focus;var Ef=new $t,um=null,fa=Pn.document!==void 0,Gd=null,sd="",ys=new wn(qt,"None",0),ll=new wn(qt,"Uniform",1),ld=new wn(qt,"UniformToFill",2),kc=new wn(qt,"CycleAll",10),Wg=new wn(qt,"CycleNotDirected",11),Hg=new wn(qt,"CycleNotDirectedFast",12),Zg=new wn(qt,"CycleNotUndirected",13),Vg=new wn(qt,"CycleDestinationTree",14),Gg=new wn(qt,"CycleSourceTree",15),Ah=new wn(qt,"DocumentScroll",1),Fc=new wn(qt,"InfiniteScroll",2),Lh=new wn(qt,"TreeParentCollapsed",21),Da=new wn(qt,"AllParentsCollapsed",22),Af=new wn(qt,"AnyParentsCollapsed",23),Kg=new dn,Kd="2.3.10",Yd="image",Dc=null,hm=!1;function gs(){if(fa){var a=Pn.document.createElement("canvas"),y=a.getContext("2d"),x=un("7ca11abfd022028846");y[x]=un("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",fi.Dx+"4ae6247590da4bb21c324ba3a84e385776",Si.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",mt.za],b=1;5>b;b++)y[un("7ca11abfd7330390")](un(E[b-1]),10,15*b);for(y[x]=un("39f046ebb36e4b"),x=1;5>x;x++)y[un("7ca11abfd7330390")](un(E[x-1]),10,15*x);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(Si.prototype.Cd=Si.prototype.Eu),Dc=a}}qt.className="Diagram",qt.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Pn.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof qt?y.H:null},qt.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},qt.useDOM=function(a){fa=a?Pn.document!==void 0:!1},qt.isUsingDOM=function(){return fa},qt.None=ys,qt.Uniform=ll,qt.UniformToFill=ld,qt.CycleAll=kc,qt.CycleNotDirected=Wg,qt.CycleNotDirectedFast=Hg,qt.CycleNotUndirected=Zg,qt.CycleDestinationTree=Vg,qt.CycleSourceTree=Gg,qt.DocumentScroll=Ah,qt.InfiniteScroll=Fc,qt.TreeParentCollapsed=Lh,qt.AllParentsCollapsed=Da,qt.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)e:{y="f";var x=Pn[un("76a715b2f73f148a")][un("72ba13b5")]||"";if(a.Rc=!0,fa){var E=qt[un("76a115b6ed251eaf4692")];if(E)for(var b=Kg.iterator;b.next()&&(E=b.value,E=un(E).split(un("39e9")),!(6>E.length));){var z=un(E[1]).split(".");if(E[4]!=="7da71ca0")break;var ee=un(fi[un("6cae19")]).split(".");if(z[0]>ee[0]||z[0]===ee[0]&&z[1]>=ee[1]){var re=Pn[un("74a900bae4370f8b51")][un("6fbb13a1c2311e8a57")].toLowerCase();if(ee=re[un("73a612b6fb191d")](un("3aad1ab6e022098b4dc4")),z=un(E[2]),-1ee&&z!==un("7da71ca0ad381e90")&&(ee=y[un("73a612b6fb191d")](un("76a715b2ef3e149757"))),0>ee&&(ee=y[un("73a612b6fb191d")](un("76a715b2ef3e149757"))),0>ee&&(ee=y[un("73a612b6fb191d")](un("2bfa41fdb3784bca12"))),0>ee&&(ee=x[un("73a612b6fb191d")](un("7baa19a6f76c1988428554"))),a.Rc=!(0<=ee&&eere),!a.Rc)))break;if(z[0]==="#"){ee=Pn.document.createElement("div");for(var oe=E[0].replace(/[A-Za-z]/g,"");4>oe.length;)oe+="9";if(re=oe,oe=oe.substr(oe.length-4),E="",E+=["gsh","gsf"][parseInt(oe.substr(0,1),10)%2],E+=["Header","Background","Display","Feedback"][parseInt(oe.substr(0,1),10)%4],ee[un("79a417a0f0181a8946")]=E,Pn.document[un("78a712aa")]){Pn.document[un("78a712aa")][un("7bb806b6ed32388c4a875b")](ee),oe=Pn.getComputedStyle(ee).getPropertyValue(un("78a704b7e62456904c9b12701b6532a8"));var se=Pn.getComputedStyle(ee).getPropertyValue(un("75b817b0ea2202"));if(Pn.document[un("78a712aa")][un("68ad1bbcf533388c4a875b")](ee),oe){if(ee=Pn[un("77a902b0eb1b1e804a8a")],se==="0."+parseInt(re,10)%100||oe.indexOf(parseInt(z[1]+z[2],16))!==-1&&oe.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(ee&&ee(un("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(E="."+E,z=0;zE.updateDelay?E.N():E.o||(E.o=!0,setTimeout(function(){return E.redraw()},E.updateDelay))},x.Of=function(){E.observed!==null&&Oe(E)},x.autoScale=ll,x.vb=!1,y&&Object.assign(x,y),x}Dt(pe,qt),pe.prototype.computePixelRatio=function(){return 1},pe.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),Ae(this)}finally{this.ta=a,this.ib=y}}}qt.prototype.redraw.call(this)},pe.prototype.gc=function(){if(this.Ka===null&&Ge("No div specified"),this.ta===null&&Ge("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?Ae(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;Ea&&(a=0),this.ia!==a&&(this.ia=a)}}}),pe.className="Overview";function Qe(){Uo.call(this),this.j=null}Dt(Qe,Uo),Qe.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.timestampy.maxScale||(y.scale=a))},_e.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==ys?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},_e.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===ys&&(a=y.scale*a,ay.maxScale||(y.scale=a))},_e.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==ys?!1:(a=y.scale*a,ay.maxScale?!1:y.allowZoom)},_e.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;ay.maxScale||(y.scale=a)},_e.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return ay.maxScale?!1:y.allowZoom},_e.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=kr):(this.Jt=E,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),uf(y)},_e.prototype.canZoomToFit=function(){return this.diagram.allowZoom},_e.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(oe){this.cg=null}a===null&&(0a&&(a+=360)),a},Ce.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Ce.qs=function(a,y){return y===void 0&&(y=new Te),y.assign(a),this.oe.Cd(y),y},Ce.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Ce.Sj=function(a,y,x,E,b){var z=this.transform,ee=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*ee,oe=-z.m12*ee,se=-z.m21*ee,ue=z.m11*ee,fe=ee*(z.m21*z.dy-z.m22*z.dx),ve=ee*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,mt.Ff(z.left,z.top,z.right,z.bottom,a,y,x,E,b)):(ee=a*re+y*se+fe,a=a*oe+y*ue+ve,y=x*re+E*se+fe,x=x*oe+E*ue+ve,b.h(0,0),E=this.naturalBounds,x=mt.Ff(0,0,E.width,E.height,ee,a,y,x,b),b.transform(z),x)},Mt.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 ee=this.kq();z===90||z===270?(a=isFinite(b.height)?b.height+ee:a,y=isFinite(b.width)?b.width+ee:y):(a=isFinite(b.width)?b.width+ee:a,y=isFinite(b.height)?b.height+ee:y),b=x||0,ee=E||0;var re=this instanceof $n;switch(zs(this,!0)){case Rn:ee=b=0,re&&(y=a=1/0);break;case Jn:isFinite(a)&&a>x&&(b=a),isFinite(y)&&y>E&&(ee=y);break;case $i:isFinite(a)&&a>x&&(b=a),ee=0,re&&(y=1/0);break;case mr:isFinite(y)&&y>E&&(ee=y),b=0,re&&(a=1/0)}re=this.maxSize;var oe=this.minSize;b>re.width&&oe.widthre.height&&oe.heighta.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||Ge("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Ru(this,!1),ht.free(z)},Ce=Mt.prototype,Ce.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 ee=x.top+x.bottom;switch(x=z.width+y,z=z.height+ee,E+=y,b+=ee,y=zs(a,!0),x===E&&z===b&&(y=Rn),y){case Rn:(x>E||z>b)&&(Na(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case Jn:Na(a,!0),a.measure(E,b,0,0);break;case $i:Na(a,!0),a.measure(E,z,0,0);break;case mr:Na(a,!0),a.measure(x,b,0,0)}}}Ce.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(),ii(a,y)||(x.oh(),this.Pn(x)))},Ce.Pn=function(a){this.portId!==null&&(Zv(a,!0),a instanceof ki&&X1(a,this))},Ce.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 $n&&kh(this),ee=this.Ib;if(z){var re=this.Ib,oe=this.dc,se=this.areaBackground,ue=this.Ma;se===null&&ue===null||a.yc(),se!==null&&(ma(this,a,se,!0,!0,oe,re),se instanceof wo&&se.type===Al?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(se)):a.fillRect(re.x,re.y,re.width,re.height)),ue!==null&&(ma(this,a,ue,!0,!1,oe,re),ue instanceof wo&&ue.type===Al?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(ue)):a.fillRect(re.x,re.y,re.width,re.height)),this.hh(a,y)}if(!z&&(z||ee.width!==0&&ee.height!==0&&!isNaN(ee.x)&&!isNaN(ee.y))){z=this.transform,re=this.panel,this.l&4096&&qa(this),se=this.part,oe=!1;var fe=0;se&&y.Gf("drawShadows")&&(oe=se.isShadowed)&&(ue=se.shadowOffset,fe=Math.max(ue.y,ue.x)*y.scale*y.Mb),ue=this.Dd();var ve;if(!(ve=y.$i||!ue)){var xe=this.naturalBounds;ve=this.wh;var Pe=ve.m11,Fe=ve.m21,Je=ve.dx,We=ve.m12,rt=ve.m22,at=ve.dy,dt,Lt=dt=0;ve=dt*Pe+Lt*Fe+Je;var Jt=dt*We+Lt*rt+at;dt=xe.width+fe,Lt=0;var Ei=dt*Pe+Lt*Fe+Je;dt=dt*We+Lt*rt+at,Lt=Math.min(ve,Ei);var ji=Math.min(Jt,dt),Ri=Math.max(ve+0,Ei)-Lt,li=Math.max(Jt+0,dt)-ji;ve=Lt,Jt=ji,dt=xe.width+fe,Lt=xe.height+fe,Ei=dt*Pe+Lt*Fe+Je,dt=dt*We+Lt*rt+at,Lt=Math.min(ve,Ei),ji=Math.min(Jt,dt),Ri=Math.max(ve+Ri,Ei)-Lt,li=Math.max(Jt+li,dt)-ji,ve=Lt,Jt=ji,dt=0,Lt=xe.height+fe,Ei=dt*Pe+Lt*Fe+Je,dt=dt*We+Lt*rt+at,Lt=Math.min(ve,Ei),ji=Math.min(Jt,dt),Ri=Math.max(ve+Ri,Ei)-Lt,li=Math.max(Jt+li,dt)-ji,ve=Lt,Jt=ji,fe=y.viewportBounds,xe=fe.x,Pe=fe.y,ve=!(ve>fe.width+xe||xe>Ri+ve||Jt>fe.height+Pe||Pe>li+Jt)}if(ve){if(ve=(this.l&256)!==0,a.clipInsteadOfFill&&(ve=!1),this instanceof jo&&(a.font=this.font),ve){if(Jt=re.se()?re.naturalBounds:re.actualBounds,Ri=Math.max(ee.x,Jt.x),li=Math.max(ee.y,Jt.y),fe=Math.min(ee.right,Jt.right)-Ri,xe=Math.min(ee.bottom,Jt.bottom)-li,Pe=this.tb,Pe!==null&&(Ri=Pe.x,li=Pe.y,fe=Pe.width,xe=Pe.height),Ri>ee.width+ee.x||ee.x>Jt.width+Jt.x){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(Ri,li,fe,xe),a.clip()}if(ue){if(!se.isVisible()){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}oe&&(Jt=se.shadowOffset,a.Ev(Jt.x*y.scale*this.scale*y.Mb,Jt.y*y.scale*this.scale*y.Mb,se.shadowBlur),ih(a),a.shadowColor=se.shadowColor)}oe&&this.shadowVisible===!0?ih(a):oe&&this.shadowVisible===!1&&zu(a),se=this.naturalBounds,this.areaBackground!==null&&(a.yc(),ul(this,a,se,ee)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),oe&&_a(this,re)&&this.shadowVisible===null&&zu(a),this.Ma!==null&&(a.yc(),Ys(this,a,se,ee)),oe&&(this.Ma!==null||this.areaBackground!==null||_a(this,re))?(Jl(this,!0),this.shadowVisible===null&&zu(a)):Jl(this,!1),this.hh(a,y),oe&&this.l&512&&ih(a),ue&&oe&&zu(a),ve&&(a.restore(),a.Vc(this instanceof $n)),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===$n.Auto||y.type===$n.Spot)&&y.Pb()!==a)}Ce.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,ee=x.y,re=x.width+b,oe=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,ee-b/2,re,oe),y.ng(a.Ma)):y.fillRect(z-b/2,ee-b/2,re,oe)}function ps(a,y,x){for(var E=y.O.s,b=E.length,z=-1,ee=0;eeb)&&Ge("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)&&Ge("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new Hi;for(x in y)x!=="row"&&x!=="column"&&(b[x]=y[x]);Wd(a,b)}else Wd(a,y);else Ge('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}bt.Object.defineProperties(Mt.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&&(Vr(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&&(Vr(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:1a||1=a&&Ge("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,qy(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,E=this.jd,b=E.width,z=E.height;(b===y||isNaN(b)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof Wr&&this.qc(),this.g("desiredSize",E,a),is(this)&&(a=this.part,a!==null&&(_o(this,a,"width"),_o(this,a,"height"))))}},width:{get:function(){return this.jd.width},set:function(a){var y=this.jd.width;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Re(a,this.jd.height).freeze(),this.v(),this instanceof Wr&&this.qc(),this.g("desiredSize",y,a),is(this)&&(a=this.part,a!==null&&_o(this,a,"width")))}},height:{get:function(){return this.jd.height},set:function(a){var y=this.jd.height;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Re(this.jd.width,a).freeze(),this.v(),this instanceof Wr&&this.qc(),this.g("desiredSize",y,a),is(this)&&(a=this.part,a!==null&&_o(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:ot},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(),Vr(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:An},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(),Vr(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&&(Vr(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Rn},set:function(a){this.reshapingBehavior!==a&&(Vr(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()&&Ge("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&&Kn(a,">= 0",Mt,"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&&Kn(a,">= 1",Mt,"columnSpan"),Vr(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&&Kn(a,">= 0",Mt,"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&&Kn(a,">= 1",Mt,"rowSpan"),Vr(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&&(Vr(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 ki||Ge("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&&Kn(a,">= 0",Mt,"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&&Kn(a,">= 0",Mt,"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&&Kn(a,">= 0",Mt,"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&&Kn(a,">= 0",Mt,"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&&(Vr(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&&(Vr(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&&(Vr(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&&(Vr(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&&(Vr(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&&(Vr(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&&(Vr(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&&(Vr(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&&(Vr(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&&(Vr(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&&(Vr(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&&(Vr(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&&(Vr(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&&(Vr(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&&(Vr(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&&(Vr(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&&(Vr(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&&(Vr(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Mt.prototype.trigger=Mt.prototype.Jv,Mt.prototype.findBindingPanel=Mt.prototype.ih,Mt.prototype.findTemplateBinder=Mt.prototype.pz,Mt.prototype.setProperties=Mt.prototype.nm,Mt.prototype.apply=Mt.prototype.apply,Mt.prototype.attach=Mt.prototype.Du,Mt.prototype.set=Mt.prototype.set,Mt.prototype.isEnabledObject=Mt.prototype.If,Mt.prototype.isVisibleObject=Mt.prototype.Ed,Mt.prototype.isContainedBy=Mt.prototype.rg,Mt.prototype.getNearestIntersectionPoint=Mt.prototype.rs,Mt.prototype.getLocalPoint=Mt.prototype.qs,Mt.prototype.getDocumentScale=Mt.prototype.Df,Mt.prototype.getDocumentAngle=Mt.prototype.li,Mt.prototype.getDocumentBounds=Mt.prototype.mi,Mt.prototype.getDocumentPoint=Mt.prototype.ga,Mt.prototype.intersectsRect=Mt.prototype.Yc,Mt.prototype.containedInRect=Mt.prototype.fh,Mt.prototype.containsRect=Mt.prototype.Re,Mt.prototype.containsPoint=Mt.prototype.ca,Mt.prototype.raiseChanged=Mt.prototype.g,Mt.prototype.raiseChangedEvent=Mt.prototype.cb,Mt.prototype.addCopyProperty=Mt.prototype.Vw;var Lf=null;Mt.className="GraphObject",Lf=new $t,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($n,$n.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof $n){var b=x.fb("ButtonBorder");b!==null&&(b.fill=E?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},El(Wr,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new ei(0,0,2.76142374915397,2.761423749153969),spot2:new ei(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 $n&&(x=E.fb("ButtonBorder"),x instanceof Wr)){var b=E._buttonFillOver;E._buttonFillNormal=x.fill,x.fill=b,b=E._buttonStrokeOver,E._buttonStrokeNormal=x.stroke,x.stroke=b}},y.mouseLeave=function(x,E){E.If()&&E instanceof $n&&(x=E.fb("ButtonBorder"),x instanceof Wr&&(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal))},y.actionDown=function(x,E){if(E.If()&&E instanceof $n&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Wr){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var ee=E._buttonFillPressed;E._buttonFillOver=b.fill,b.fill=ee,ee=E._buttonStrokePressed,E._buttonStrokeOver=b.stroke,b.stroke=ee,x.skipsUndoManager=z}}},y.actionUp=function(x,E){if(E.If()&&E instanceof $n&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Wr){var z=x.diagram,ee=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=ee}}},y.actionCancel=function(x,E){if(E.If()&&E instanceof $n&&E._buttonFillPressed!==null){var b=E.fb("ButtonBorder");if(b instanceof Wr){var z=x.diagram,ee=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=ee}}},y.actionMove=function(x,E){if(E.If()&&E instanceof $n&&E._buttonFillPressed!==null){var b=x.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(x,E)&&(x=E.fb("ButtonBorder"),x instanceof Wr))){var z=b.skipsUndoManager;b.skipsUndoManager=!0;var ee=E._buttonFillPressed;x.fill!==ee&&(x.fill=ee),ee=E._buttonStrokePressed,x.stroke!==ee&&(x.stroke=ee),b.skipsUndoManager=z}}},y}),bh("TreeExpanderButton",function(){var a=El("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},El(Wr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Vt},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 uo&&(x=x.adornedPart),x instanceof ki){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isTreeExpanded){if(!E.canCollapseTree(x))return}else if(!E.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?E.collapseTree(x):E.expandTree(x)}}},a}),bh("SubGraphExpanderButton",function(){var a=El("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},El(Wr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Vt},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 uo&&(x=x.adornedPart),x instanceof Or){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isSubGraphExpanded){if(!E.canCollapseSubGraph(x))return}else if(!E.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?E.collapseSubGraph(x):E.expandSubGraph(x)}}},a}),bh("ToolTip",function(){return El(uo,$n.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Te(0,3),shadowBlur:5},El(Wr,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new ei(0,0,4,6),spot2:new ei(1,1,-4,-4)}))}),bh("ContextMenu",function(){return El(uo,$n.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Te(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 Wr&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new ei(0,0,2,3),y.spot2=new ei(1,1,-2,-2)),a}),bh("PanelExpanderButton",function(a){var y=cm(a,"COLLAPSIBLE"),x=El("Button",{_buttonExpandedFigure:"M0 0 M0 6 L4 2 8 6 M8 8",_buttonCollapsedFigure:"M0 0 M0 2 L4 6 8 2 M8 8",_buttonFillNormal:"rgba(0, 0, 0, 0)",_buttonStrokeNormal:null,_buttonFillOver:"rgba(0, 0, 0, .2)",_buttonStrokeOver:null,_buttonFillPressed:"rgba(0, 0, 0, .4)",_buttonStrokePressed:null},El(Wr,{name:"ButtonIcon",strokeWidth:2},new La("geometryString","visible",function(E){return E?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Wr&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(E,b){var z=b.diagram;if(z!==null&&!z.isReadOnly){var ee=b.ih();ee===null&&(ee=b.part),ee!==null&&(b=ee.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 Re(14,14)},El(Wr,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Jn,geometryStretch:Ui,visible:!1},y!==""?new La("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof $n){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($n,"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}),Mt.None=Rn=new wn(Mt,"None",0),Mt.Default=Ir=new wn(Mt,"Default",0),Mt.Vertical=mr=new wn(Mt,"Vertical",4),Mt.Horizontal=$i=new wn(Mt,"Horizontal",5),Mt.Fill=Jn=new wn(Mt,"Fill",3),Mt.Uniform=Ui=new wn(Mt,"Uniform",1),Mt.UniformToFill=$r=new wn(Mt,"UniformToFill",2),Mt.FlipVertical=Gr=new wn(Mt,"FlipVertical",1),Mt.FlipHorizontal=oo=new wn(Mt,"FlipHorizontal",2),Mt.FlipBoth=ko=new wn(Mt,"FlipBoth",3),Mt.make=El,Mt.getBuilders=function(){var a=new $t,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},Mt.defineBuilder=bh,Mt.build=function(a,y,x){for(var E=[],b=2;ba&&(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,ee=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]=ee,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?Pn.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 el(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),zt(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},bt.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 el(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=to++,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,ee){a.Nj===void 0?Ug(a,y,x,E,b,z,ee):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+E+", "+b+", "+z+", "+ee+")")}Ce=el.prototype,Ce.arc=function(a,y,x,E,b,z,ee,re){var oe=2*Math.PI,se=oe-1e-6,ue=x*Math.cos(E),fe=x*Math.sin(E),ve=a+ue,xe=y+fe,Pe=z?0:1;E=z?E-b:b-E,(1e-6E&&(E=E%oe+oe),E>se?(this.path.push(["A",x,x,0,1,Pe,a-ue,y-fe]),this.path.push(["A",x,x,0,1,Pe,ve,xe])):1e-6=Math.PI),Pe,a+x*Math.cos(b),y+x*Math.sin(b)])},Ce.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Ce.Se=function(a){this.addPath(this.path,this.rb,a||0)},Ce.bezierCurveTo=function(a,y,x,E,b,z){this.path.push(["C",a,y,x,E,b,z])},Ce.clearRect=function(){},Ce.clip=function(){this.Yl.clipPath=!0},Ce.closePath=function(){this.path.push(["z"])},Ce.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},Ce.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"+to++,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+")"},Ce.createRadialGradient=function(a,y,x,E,b,z){var ee=new Oc("radial");return ee.x1=a,ee.y1=y,ee.r1=x,ee.x2=E,ee.y2=b,ee.r2=z,ee};function e1(a,y,x,E,b,z,ee,re,oe){E=re/E,b=oe/b,z===0&&ee===0||a.rb.translate(z,ee),E===1&&b===1||a.rb.scale(E,b),y===0&&x===0||a.rb.translate(-y,-x)}Ce.drawImage=function(a,y,x,E,b,z,ee,re,oe){var se="";a instanceof HTMLCanvasElement&&(se=a.toDataURL()),a instanceof HTMLImageElement&&(se=a.getAttribute("src"));var ue=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,E===void 0&&(z=y,ee=x,re=E=ue,oe=b=a),E=E||0,b=b||0,re=re||0,oe=oe||0,e1(this,y,x,E,b,z||0,ee||0,re,oe),z={x:0,y:0,width:ue||E,height:a||b,href:se},mt.$(E,re)&&mt.$(b,oe)?se.toLowerCase().indexOf(".svg")===-1&&se.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||E!==ue||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)},Ce.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),sv(this,this.Yl)},Ce.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Ce.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)},Ce.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))},Ce.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])},Ce.lineTo=function(a,y){this.path.push(["L",a,y])},Ce.moveTo=function(a,y){this.path.push(["M",a,y])},Ce.quadraticCurveTo=function(a,y,x,E){this.path.push(["Q",a,y,x,E])},Ce.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"])},Ce.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},Ce.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;yue.offset?1:-1}),b=0;bx?(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)},Ce.jk=function(){this.Hm||this.stroke()},Ce.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Ce.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Ce.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(Ax),a.lineDashOffset=0)},Ce.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Ce.Hs=function(){},bt.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),Fi(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=ur,this.Lk=Qr):this.Lk=a===Al?this.Qd=Di: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},Ce=wo.prototype,Ce.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Ce.ka=function(){return Object.isFrozen(this)&&Ge("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Ce.qb=function(a){a.classType===wo&&(this.type=a)},Ce.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+")"},Ce.addColorStop=function(a,y){return this._isFrozen&&Pt(this),(typeof a!="number"||!isFinite(a)||1a)&&Kn(a,"0 <= loc <= 1",wo,"addColorStop:loc"),this.we===null&&(this.we=new $t),this.we.add(a,y),this.na===Mh&&(this.type=oh),this.xe=null,this},Ce.Vz=function(a,y){if(this._isFrozen&&Pt(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)}Ce.Wy=function(a,y){if(this._isFrozen&&Pt(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)+")"}Ce.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 ee=y.key,re=Math.abs(.5-y.key);b>z&&re=b&&reE&&(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),255Zo.j&&(Zo.j=0),Zo.u=Math.round(Zo.u),255Zo.u&&(Zo.u=0),Zo.o=Math.round(Zo.o),255Zo.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:Ge("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 ee=a=0;else{switch(E){case a:ee=(y-x)/z%6;break;case y:ee=(x-a)/z+2;break;case x:ee=(a-y)/z+4}ee*=60,0>ee&&(ee+=360),a=z/(1-Math.abs(2*b-1))}dl.j=Math.round(ee),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||Ge("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}bt.Object.defineProperties(wo.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&Pt(this,a),this.na=a,this.start.Mc()&&(a===oh?this.start=ur:a===Al&&(this.start=Di)),this.end.Mc()&&(a===oh?this.end=Qr:a===Al&&(this.end=Di)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&Pt(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&Pt(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&Pt(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&Pt(this,a),0>a&&Kn(a,">= zero",wo,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&Pt(this,a),0>a&&Kn(a,">= zero",wo,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&Pt(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&Pt(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 wn(wo,"Solid",0);var oh;wo.Linear=oh=new wn(wo,"Linear",1);var Al;wo.Radial=Al=new wn(wo,"Radial",2);var Nf;wo.Pattern=Nf=new wn(wo,"Pattern",4);var Bf;wo.Lab=Bf=new wn(wo,"Lab",5);var s1;wo.HSL=s1=new wn(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(){},bt.Object.defineProperties(Ia.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return $n}}}),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"}Dt(mm,Ia),mm.prototype.measure=function(a,y,x,E,b,z,ee){var re=E.length;a=ah(a);for(var oe=0;oeji&&(Ha=Math.max(ji-Ed,0));var G0=Dn.oa===0;Dn.oc=Dn.oc+Ha,Dn.actual=Dn.oa+Ha,ji=Math.max(ji-(Ha+(G0?Ed:0)),0)}if(Xs.columnSpan===1&&(Ps===Rn||Ps===mr)){Dn=a.Eb(ws);var Ip=Dn.Wc();Ha=Math.max(oc-Dn.actual,0),Ha+Ip>Ei&&(Ha=Math.max(Ei-Ip,0));var Gy=Dn.oa===0;Dn.oc=Dn.oc+Ha,Dn.actual=Dn.oa+Ha,Ei=Math.max(Ei-(Ha+(Gy?Ip:0)),0)}Cd&&Xs.Uj()}}}}}Li(rt);var Xu=0,uh=0;z=a.columnCount;for(var _c=0;_c=a.rowCount);Vh++)Dn=a.Fb(va.row+Vh),Ha=0,Ha=Ps===Jn||Ps===mr?Math.max(Dn.minimum,pu[va.row+Vh]===0?Dn.maximum:Math.min(pu[va.row+Vh],Dn.maximum)):Math.max(Dn.minimum,isNaN(Dn.Hc)?Dn.maximum:Math.min(Dn.Hc,Dn.maximum)),ch.height+=Ha,al+=Dn.minimum;for(var Gl=1;Gl=a.columnCount);Gl++)Dn=a.Eb(va.column+Gl),Ha=0,Ha=Ps===Jn||Ps===$i?Math.max(Dn.minimum,Fl[va.column+Gl]===0?Dn.maximum:Math.min(Fl[va.column+Gl],Dn.maximum)):Math.max(Dn.minimum,isNaN(Dn.Hc)?Dn.maximum:Math.min(Dn.Hc,Dn.maximum)),ch.width+=Ha,X0+=Dn.minimum;es.width+=ch.width,es.height+=ch.height;var ug=va.margin,kd=ug.right+ug.left,zp=ug.top+ug.bottom;va.measure(es.width,es.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=a.rowCount);dg++)Dn=a.Fb(va.row+dg),Fd+=Dn.total||0;if(Fd=Gh)&&!(va.row+fh>=a.rowCount);fh++){Dn=a.Fb(va.row+fh);var Yh=Dn.oa||0,hc=Kh(va,Dn,Ju);Dn.actual=Math.min(Dn.maximum,Yh+hc),Dn.oa!==Yh&&(Gh-=Dn.oa-Yh)}for(;0mu&&(Dn.actual=Math.min(Dn.maximum,mu+Gh),Dn.oa!==mu&&(Gh-=Dn.oa-mu)),Dn.index===0)break;Dn=a.Fb(Dn.index-1)}}for(var qc=0,Uh=0;Uh=a.columnCount);Uh++)Dn=a.Eb(va.column+Uh),qc+=Dn.total||0;if(qc=$c)&&!(va.column+dc>=a.columnCount);dc++){Dn=a.Eb(va.column+dc);var jp=Dn.oa||0,Uy=gh(va,Dn,Yy);Dn.actual=Math.min(Dn.maximum,jp+Uy),Dn.oa!==jp&&($c-=Dn.oa-jp)}for(;0<$c;){var _0=Dn.oa||0;if(isNaN(Dn.width)&&Dn.maximum>_0&&(Dn.actual=Math.min(Dn.maximum,_0+$c),Dn.oa!==_0&&($c-=Dn.oa-_0)),Dn.index===0)break;Dn=a.Eb(Dn.index-1)}}}}Li(at),Re.free(ch),Re.free(es),pu!==void 0&&Li(pu),Fl!==void 0&&Li(Fl);var ef=0,tf=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=a.rowCount);Dn++){var Tr=a.Fb(rt+Dn);Tr.oa!==0&&(We.height+=Tr.total)}for(Dn=1;Dn=a.columnCount);Dn++)Tr=a.Eb(dt+Dn),Tr.oa!==0&&(We.width+=Tr.total);var Lr=Lt.oa+We.width,ho=at.oa+We.height;Dn=re,Tr=oe;var Io=Lr,Wa=ho,Ka=re,xs=oe,Ha=Lr,jh=ho;re+Lr>x.width&&(Ha=Math.max(x.width-re,0)),oe+ho>x.height&&(jh=Math.max(x.height-oe,0));var ba=Ri.alignment;if(ba.Xb()){ba=a.defaultAlignment,ba.sb()||(ba=Di);var cu=ba.x,ws=ba.y,Wh=ba.offsetX;ba=ba.offsetY;var gl=Lt.alignment,Zl=at.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=li.width,Zl=li.height;var il=Ri.margin,Xs=il.left+il.right,Cd=il.top+il.bottom,fu=su(Ri,at,Lt,!1);!isNaN(Ri.desiredSize.width)||fu!==Jn&&fu!==$i||(gl=Math.max(Lr-Xs,0)),!isNaN(Ri.desiredSize.height)||fu!==Jn&&fu!==mr||(Zl=Math.max(ho-Cd,0)),Lr=Ri.maxSize,ho=Ri.minSize,gl=Math.min(Lr.width,gl),Zl=Math.min(Lr.height,Zl),gl=Math.max(ho.width,gl),Zl=Math.max(ho.height,Zl),Lr=Zl+Cd,Dn+=Io*cu-(gl+Xs)*cu+Wh+il.left,Tr+=Wa*ws-Lr*ws+ba+il.top,Ri.visible&&(zi(Ka,xs,Ha,jh,Dn,Tr,li.width,li.height)?Ri.arrange(Dn,Tr,gl,Zl):Ri.arrange(Dn,Tr,gl,Zl,new ht(Ka,xs,Ha,jh)))}}}for(Re.free(We),a=0;a=x&&(x=1);var E=a.gridCellSize,b=E.width;E=E.height;var z=a.naturalBounds,ee=a.actualBounds,re=z.width,oe=z.height,se=Math.ceil(re/b),ue=Math.ceil(oe/E),fe=a.gridOrigin,ve=fe.x;fe=fe.y,y.save(),y.beginPath(),y.rect(0,0,re,oe),y.clip(),y.Se();for(var xe=[],Pe=a.O.s,Fe=Pe.length,Je=0;Jeat)){We=Sv(We.figure);for(var dt=0;dtat&&rt.push(Lt))}}}}for(Pe=a.O.s,Fe=Pe.length,Je=0;Jeb*We*x))){if(at=Jt.segmentIndex,(!isFinite(at)||isNaN(at))&&(at=0),0>at&&(at=We-Math.min(-at,We)),at=Math.round(at%We),We=Jt.opacity,dt=1,We!==1){if(We===0)continue;dt=y.globalAlpha,y.globalAlpha=dt*We}Lt=xe[Je];var Ei=!1,ji=Jt.strokeDashArray;if(ji!==null&&(Ei=!0,y.js(ji,Jt.strokeDashOffset)),Jt.figure==="LineV"&&Jt.stroke!==null&&0y)return a%y===x;if(a%y!==x)return!1;y=E.length;for(var b=0;bfe)rt.measure(1/0,1/0,0,0),at=rt.measuredBounds,x.ed(at),xe.push(at);else{var dt=rt.segmentIndex,Lt=rt.segmentFraction,Jt=rt.alignmentFocus;Jt.Mc()&&(Jt=Di);var Ei=rt.segmentOrientation,ji=rt.segmentOffset;if(isNaN(dt)){var Ri=oe.ua;at=ai(),Ri.Qu(Lt,at);var li=Te.allocAt(at[0],at[1]);if(li.add(oe.i(0)),Ri.type===Tn.j?li.offset(-Ri.startX,-Ri.startY):(Ri=Ri.figures.first(),Ri!==null&&li.offset(-Ri.startX,-Ri.startY)),Ri=at[2],Ei!==ks){var Dn=oe.computeAngle(rt,Ei,Ri);rt.Kb=Dn}Dn=li.x-y.x;var Tr=li.y-y.y;Te.free(li),Li(at)}else if(dt<-fe||dt>=fe)at=Te.alloc(),oe.vg(),oe.computeMidPoint(at),Ri=oe.midAngle,Ei!==ks&&(Dn=oe.computeAngle(rt,Ei,Ri),rt.Kb=Dn),Dn=at.x-y.x,Tr=at.y-y.y,Te.free(at);else{if(Dn=0,0<=dt?(Tr=ue.M(dt),at=dtLr+10?0<=dt?Ri.ab(Tr):Tr.ab(Ri):Lr>li+10?0<=dt?at.ab(Dn):Dn.ab(at):0<=dt?Ri.ab(Dn):Dn.ab(Ri)}else Ri=0<=dt?Tr.ab(at):at.ab(Tr);Ei!==ks&&(Dn=oe.computeAngle(rt,Ei,Ri),rt.Kb=Dn),Dn=Tr.x+(at.x-Tr.x)*Lt-y.x,Tr=Tr.y+(at.y-Tr.y)*Lt-y.y}rt.measure(1/0,1/0,0,0),at=rt.measuredBounds,li=rt.naturalBounds;var ho=0;rt instanceof Wr&&(ho=rt.strokeWidth),Lr=li.width+ho;var Io=li.height+ho;Pe.reset(),Pe.translate(-at.x,-at.y),Pe.scale(rt.scale,rt.scale),Pe.rotate(Ei===ks?rt.angle:Ri,Lr/2,Io/2),Ei!==lp&&Ei!==hp||Pe.rotate(90,Lr/2,Io/2),Ei!==up&&Ei!==dp||Pe.rotate(-90,Lr/2,Io/2),Ei===n0&&(45Ri||225Ri)&&Pe.rotate(-Ri,Lr/2,Io/2),li=new ht(0,0,Lr,Io),Fe.xi(li,Jt),Pe.Ga(Fe),Jt=-Fe.x+ho/2*rt.scale,rt=-Fe.y+ho/2*rt.scale,Je.assign(ji),ho=isNaN(ji.x);var Wa=isNaN(ji.y);if(ho||Wa){Lr=Lr/2+3,Io=Io/2+3;var Ka=45<=Ri&&135>=Ri,xs=225<=Ri&&315>=Ri;Ei===ks&&(Ka||xs)?(Je.x=Wa?Lr:ji.y,Je.y=ho?Io:ji.x,Ka?0<=dt||isNaN(dt)&&.5>Lt||!ho||(Je.y=-Io):xs&&((0<=dt||isNaN(dt)&&.5>Lt)&&ho&&(Je.y=-Io),Wa&&(Je.x=-Lr))):(ho&&(Je.x=0<=dt||isNaN(dt)&&.5>Lt?Lr:-Lr),Wa&&(Je.y=-Io),Je.rotate(Ri))}else Je.rotate(Ri);Dn+=Je.x,Tr+=Je.y,li.set(at),li.h(Dn+Jt,Tr+rt,at.width,at.height),xe.push(li),x.ed(li)}}if(ee!==null)for(E=ee.labelNodes;E.next();)E.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),_n(b,x.width||0,x.height||0),Si.free(Pe),Te.free(Fe),Te.free(Je)}}}},Lm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof uo||a instanceof ui){var E=a,b=null;a instanceof uo&&(b=a,E=b.adornedPart);var z=a instanceof uo?null:E.path,ee=a.j;if(ee.length!==0){var re=0;if(z!==null&&re=x)Pe=Te.alloc(),xe=fe,Je=Pe,xe.vg(),xe.computeMidPoint(Je),xe=fe.midAngle,se!==ks&&(fe=fe.computeAngle(ee,se,xe),ee.angle=fe),fe=Pe.x,Je=Pe.y,Te.free(Pe);else{if(Fe=0,0<=re?(Pe=y.s[re],Je=rert+10?0<=re?xe.ab(Pe):Pe.ab(xe):rt>We+10?0<=re?Je.ab(Fe):Fe.ab(Je):0<=re?xe.ab(Fe):Fe.ab(xe)}else xe=0<=re?Pe.ab(Je):Je.ab(Pe);se!==ks&&(fe=fe.computeAngle(ee,se,xe),ee.angle=fe),fe=Pe.x+(Je.x-Pe.x)*oe,Je=Pe.y+(Je.y-Pe.y)*oe}if(ve.ys())ee.location=new Te(fe,Je);else{ve.Mc()&&(ve=Di),Pe=Si.alloc(),Pe.reset(),Pe.scale(ee.scale,ee.scale),Pe.rotate(ee.angle,0,0);var at=ee.naturalBounds;Fe=ht.allocAt(0,0,at.width,at.height),We=Te.alloc(),We.xi(Fe,ve),Pe.Ga(We),ve=-We.x,rt=-We.y;var dt=at.width,Lt=at.height;at=Te.alloc(),at.assign(ue);var Jt=isNaN(ue.x),Ei=isNaN(ue.y);if(Jt||Ei){dt=dt/2+3,Lt=Lt/2+3;var ji=45<=xe&&135>=xe,Ri=225<=xe&&315>=xe;se===ks&&(ji||Ri)?(at.x=Ei?dt:ue.y,at.y=Jt?Lt:ue.x,ji?0<=re||isNaN(re)&&.5>oe||!Jt||(at.y=-Lt):Ri&&((0<=re||isNaN(re)&&.5>oe)&&Jt&&(at.y=-Lt),Ei&&(at.x=-dt))):(Jt&&(at.x=0<=re||isNaN(re)&&.5>oe?dt:-dt),Ei&&(at.y=-Lt),at.rotate(xe))}else at.rotate(xe);fe+=at.x,Je+=at.y,Pe.pp(Fe),ve+=Fe.x,rt+=Fe.y,re=Te.allocAt(fe+ve,Je+rt),ee.move(re),Te.free(re),Te.free(at),Te.free(We),ht.free(Fe),Si.free(Pe)}}b!==null?b.Ul(!1):E.Ul(!1),E=R1(a),a.location.h(a.position.x+E.x,a.position.y+E.y),Te.free(E)}};function l1(a,y,x,E){if(hl(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof uo&&a.type===$n.Link&&a.adornedObject instanceof Wr&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof ui&&a.ua!==null?(a=a.geometry.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):a instanceof uo&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):E.Ge(-(b/2),-(b/2),y+b,x+b),b=E.desiredSize,b.w()||E.ua===null?E.dc.h(0,0,b.width,b.height):E.dc.assign(E.ua.bounds),Na(E,!1)}}function Jg(){this.xa="Base"}Dt(Jg,Ia),Jg.prototype.measure=function(a,y,x,E,b,z,ee){var re=a.Pb();a.graduatedBounds=[];var oe=re.margin,se=oe.right+oe.left,ue=oe.top+oe.bottom;re.measure(y,x,z,ee);var fe=re.measuredBounds,ve=new ht(-oe.left,-oe.top,Math.max(fe.width+se,0),Math.max(fe.height+ue,0));a.graduatedBounds.push(ve),b.assign(ve);for(var xe=re.geometry,Pe=re.strokeWidth,Fe=xe.flattenedSegments,Je=xe.flattenedLengths,We=xe.flattenedTotalLength,rt=Fe.length,at=0,dt=0,Lt=ai(),Jt=0;JtLr&&(Lr+=360),ji.push(Lr)}at=Dn,dt=Tr}Lt.push(ji)}if(a.graduatedIntervals===null){for(var ho=[],Io=a.O.s,Wa=Io.length,Ka=0;Kajh)){for(var ba=0;bajh&&Ha.push(ws)}}}}}a.graduatedIntervals=ho}var Wh=a.graduatedIntervals,gl=a.O.s,Zl=gl.length,il=0,Xs=0,Cd=We;a.graduatedMarks=[];for(var fu,ng=0;ngOp*Ps*We/a.graduatedRange&&rl.graduatedSkip===null)){var Xc=Je[0][0],Mu=0,_s=0;Xs=We*rl.graduatedStart-1e-4,Cd=We*rl.graduatedEnd+1e-4;var oc=Op*Ps,ol=a.graduatedTickBase;if(ola.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++){e:{for(var uh=G0.length,_c=0;_c-ig){var Ld=!1;break e}}Ld=!0}if(Ld&&(ol>a.graduatedMax&&(ol=a.graduatedMax),rl.graduatedSkip===null||rl instanceof jo&&!rl.graduatedSkip(ol,rl)||rl instanceof Wr&&!rl.graduatedSkip(ol,rl))&&(il=(ol-a.graduatedMin)*We/a.graduatedRange,il>We&&(il=We),Xs<=il&&il<=Cd)){for(var _u=Lt[Mu][_s],Hh=Je[Mu][_s];MuXc&&_shh&&.4995hh?0<_s?Fu=ac[_s-1]:mt.$(Js[0],Js[Js.length-2])&&mt.$(Js[1],Js[Js.length-1])&&(Fu=ac[ac.length-1]):.5hh||.9995Jc){var og=1-Math.abs(.5-hh);_u=(gu*og+Fu*(1-og))%360;break e}}}_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)}Li(Lt);var es=a.graduatedMarks;if(es!==null)for(var Rp=E.length,Ts=0;Tsru;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)}Te.free(Qs),dh.graduatedBounds!==null&&dh.graduatedBounds.push(Fl),Oi(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=ur);for(var Gl=Ma.segmentOrientation,ug=Ma.segmentOffset,kd=new ht,zp=0,hg=0,Du=0,uc=0,Fd=0,dg=Os.length,Gh=0;GhDu||225Du)&&mu.rotate(-Du,Yh/2,hc/2);var qc=ht.allocAt(0,0,Yh,hc),Uh=Te.alloc();Uh.xi(qc,Vh),mu.Ga(Uh);var $c=-Uh.x,Yy=-Uh.y,gh=Te.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 ht(zp,hg,Kh.width,Kh.height),jp=new ht(Kh.x,Kh.y,Kh.width,Kh.height),Uy=new ht(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),Te.free(gh),Te.free(Uh),ht.free(qc),Si.free(mu)}Vl.graduatedBounds!==null&&Vl.graduatedBounds.push(kd),Oi(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,ee=0,re=z[ee];ee++,E!==null&&E.arrange(re.x-x.x,re.y-x.y,re.width,re.height);for(var oe=y.length,se=0;se=ee&&(ee=1);for(var re=z.actualBounds,oe=a.O.s,se=a.graduatedMarks,ue=oe.length,fe=0;fea.graduatedTickUnit*ve.interval*z.geometry.flattenedTotalLength/a.graduatedRange*ee&&ve.graduatedSkip===null)){var Fe=ve.measuredBounds,Je=ve.strokeWidth*ve.scale,We=ve.alignmentFocus;We.Mc()&&(We=ur);for(var rt=0;rtee.height)continue}else if(se.position>ee.width)continue;var ue=se.separatorStrokeWidth;isNaN(ue)&&(ue=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var fe=se.separatorStroke;if(fe===null&&(fe=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ue!==0&&fe!==null){ma(a,y,fe,!1,!1,ee,z),fe=!1;var ve=se.separatorDashArray;ve===null&&(ve=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),ve!==null&&(fe=!0,y.js(ve,0)),y.beginPath(),ve=se.position+ue,x?ve>ee.height&&(ue-=ve-ee.height):ve>ee.width&&(ue-=ve-ee.width),se=se.position+ue/2,y.lineWidth=ue,ue=a.yb,x?(se+=ue.top,ve=ee.width-ue.right,y.moveTo(ue.left,se),y.lineTo(ve,se)):(se+=ue.left,ve=ee.height-ue.bottom,y.moveTo(se,ue.top),y.lineTo(se,ve)),y.stroke(),y.Se(),fe&&y.fs()}}}}function bm(a,y,x,E,b){for(var z=E.length,ee=a.actualBounds,re=a.naturalBounds,oe=h1(a,!0),se=h1(a,!1),ue=0;ueve)){var xe=fe.Wc(),Pe=fe.separatorStrokeWidth;isNaN(Pe)&&(Pe=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Fe=fe.separatorStroke;Fe===null&&(Fe=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Fe===null||fe.index===(x?oe:se))&&(Pe=0),xe-=Pe,Pe=fe.position+Pe,xe+=fe.actual,Pe+xe>ve&&(xe=ve-Pe),0>=xe||(ve=a.yb,ma(a,y,fe.background,!0,!1,re,ee),x?y.fillRect(ve.left,Pe+ve.top,ee.width-(ve.left+ve.right),xe):y.fillRect(Pe+ve.left,ve.top,xe,ee.height-(ve.top+ve.bottom)))}}}}function h1(a,y){for(var x=y?a.rowCount:a.columnCount,E=0;EE&&b.set(Pe),Te.free(Pe)),Te.free(ue),z&&b.transform(ee),se},Ce.Gj=function(){for(var a=this.O.s,y=a.length,x=0;xx||z>E)&&(this.v(),this.measure(y>x?x:y,z>E?E:z,0,0));break;case Jn:this.v(!0),this.measure(x+re,E+ee,0,0);break;case $i:this.v(!0),this.measure(x+re,z+ee,0,0);break;case mr:this.v(!0),this.measure(y+re,E+ee,0,0)}}this.na.arrange(this,b,this.jg)}},Ce.gh=function(a){var y=this.naturalBounds,x=ah(this);if(zi(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,b=Te.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(Rt(b.set(a),z.transform),z.ca(b)))return Te.free(b),!0}return Te.free(b),!(this.Ma===null&&this.areaBackground===null)}return!1},Ce.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,E=0;Eve.width||fe.y>ve.height||0>fe.x+fe.width||0>fe.y+fe.height||(fe=ue,ue=ue instanceof $n?ue:null,ve=Si.alloc(),ve.set(ee),(ue!==null?ue.Cf(a,y,x,E,b,ve):ja(fe,a,E,ve))&&(y!==null&&(fe=y(fe)),fe===null||x!==null&&!x(fe)||b.add(fe)),Si.free(ve))}}return z===void 0&&Si.free(ee),E}return z===void 0&&Si.free(ee),!1};function xv(a,y,x,E){for(var b=a.O.s,z=b.length;z--;){var ee=b[z];if(ee.visible){var re=ee.actualBounds,oe=a.naturalBounds;re.x>oe.width||re.y>oe.height||0>re.x+re.width||0>re.y+re.height||(ee instanceof $n&&xv(ee,y,x,E),y!==null&&(ee=y(ee)),ee===null||x!==null&&!x(ee)||E.add(ee))}}}Ce.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 ee=this.naturalBounds,re=this.se(),oe=re?a:Rt(Te.allocAt(a.x,a.y),this.transform),se=re?y:Rt(Te.allocAt(y.x,y.y),this.transform),ue=oe.Bf(se),fe=0Je.width||Fe.y>Je.height||0>Fe.x+Fe.width||0>Fe.y+Fe.height))&&(Pe.se()?(Fe=Pe.transform,Rt(oe.set(a),Fe),Rt(se.set(y),Fe)):(oe.set(a),se.set(y)),Fe=Pe,Pe=Pe instanceof $n?Pe:null,(Pe!==null?Pe.og(oe,se,x,E,b,z):Fe.tx(oe,se,b))&&(x!==null&&(Fe=x(Fe)),Fe===null||E!==null&&!E(Fe)||z.add(Fe)))}}Te.free(oe),Te.free(se)}return b?fe:ee}return!1};function wv(a){var y=null;return a instanceof Wr&&(y=a.spot1,y===Lo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=_i),y}function Pv(a){var y=null;return a instanceof Wr&&(y=a.spot2,y===Lo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=Ar),y}Ce.add=function(a){for(var y=[],x=0;x=b.count&&a>=b.count)return;b.mb(z),E=z}else Ge("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 $n&&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 ki&&(x.Te=!0),x.Te&&x instanceof ki&&(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}Ce.remove=function(a){for(var y=this.O.s,x=y.length,E=-1,b=0;ba&&Kn(a,">= 0",$n,"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]},Ce.oA=function(a){if(0>a&&Kn(a,">= 0",$n,"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()}}Ce.Eb=function(a){0>a&&Kn(a,">= 0",$n,"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]},Ce.jA=function(a){if(0>a&&Kn(a,">= 0",$n,"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()}}Ce.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},Ce.Hy=function(a,y){return(a=this.Fb(a))&&Fm(a,new Ba(y)),this},Ce.By=function(a,y){return(a=this.Eb(a))&&Fm(a,new Ba(y)),this},Ce.nz=function(a){if(0>a||this.type!==$n.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,E=x.length,b=this.topIndex;ba||this.type!==$n.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,E=x.length,b=this.leftIndex;ba;)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;Ex)){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 $t),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;ya&&Kn(a,">= 0",$n,"padding"),a=new Bi(a)):(0>a.left&&Kn(a.left,">= 0",$n,"padding:value.left"),0>a.right&&Kn(a.right,">= 0",$n,"padding:value.right"),0>a.top&&Kn(a.top,">= 0",$n,"padding:value.top"),0>a.bottom&&Kn(a.bottom,">= 0",$n,"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:Rr},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;ba)&&Ge("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)&&Ge("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 ar&&!(this instanceof uo);jl(this),this.ub=a;var E=this.diagram;E!==null&&(x?(x=E.partManager,this instanceof ui?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof ar&&(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 $t}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof ar||a.isPanelMain)&&Ge("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(););Vr(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&&(Vr(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 Or&&(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))}}}),bt.Object.defineProperties($n,{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")}}}),$n.prototype.rebuildItemElements=$n.prototype.mv,$n.prototype.findItemPanelForData=$n.prototype.sx,$n.prototype.updateTargetBindings=$n.prototype.La,$n.prototype.copyTemplate=$n.prototype.Uy,$n.prototype.graduatedValueForPoint=$n.prototype.Gz,$n.prototype.graduatedPointForValue=$n.prototype.Fz,$n.prototype.findColumnForLocalX=$n.prototype.fz,$n.prototype.findRowForLocalY=$n.prototype.nz,$n.prototype.addColumnDefinition=$n.prototype.By,$n.prototype.addRowDefinition=$n.prototype.Hy,$n.prototype.addRowColumnDefinition=$n.prototype.Gy,$n.prototype.removeColumnDefinition=$n.prototype.jA,$n.prototype.getColumnDefinition=$n.prototype.Eb,$n.prototype.removeRowDefinition=$n.prototype.oA,$n.prototype.getRowDefinition=$n.prototype.Fb,$n.prototype.removeAt=$n.prototype.mb,$n.prototype.remove=$n.prototype.remove,$n.prototype.insertAt=$n.prototype.Gb,$n.prototype.elt=$n.prototype.M,$n.prototype.add=$n.prototype.add,$n.prototype.findObject=$n.prototype.fb,$n.prototype.findInVisualTree=$n.prototype.Nl,$n.prototype.walkVisualTreeFrom=$n.prototype.qm,$n.prototype.findMainElement=$n.prototype.Pb;var S1=!1,x1=null,Ql=new $t;$n.className="Panel",$n.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=Rr,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;za&&Kn(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&&Kn(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))&&Kn(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&&Kn(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;bb)){var z=E.measuredBounds,ee=Math.max(1,z.width);z=z.height;for(var re=x[0],oe=x[1],se,ue,fe,ve,xe,Pe,Fe=0,Je=ai(),We=2;Wefe&&(fe=1),b=x=fe,se=ee/2,ue=se!==0,We=0,Pe=Je[We],fe=Pe[0],xe=Pe[1],ve=Pe[2],Pe=Pe[3];for(var rt=0;.1<=Fe;){if(rt===0&&(ue?(b=x,b-=se,Fe-=se,ue=!1):b=x,b===0&&(b=1)),b>Fe){Li(Je);return}b>Pe?(rt=b-Pe,b=Pe):rt=0;var at=Math.sqrt(b*b/(1+ve*ve));if(0>fe&&(at=-at),re+=at,oe+=ve*at,a.translate(re,oe),a.rotate(xe),a.translate(-(ee/2),-(z/2)),rt===0&&E.hh(a,y),a.translate(ee/2,z/2),a.rotate(-xe),a.translate(-re,-oe),Fe-=b,Pe-=b,rt!==0){if(We++,We===Je.length){Li(Je);return}Pe=Je[We],fe=Pe[0],xe=Pe[1],ve=Pe[2],Pe=Pe[3],b=rt}}Li(Je)}}Ce.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,ee=this.naturalBounds;E!==null&&ma(this,a,E,!0,!1,ee,z);var re=this.part,oe=this.ig;if(x===null||oe!==0||re===null||!this.isPanelMain&&re.Pb()!==this||(oe=re.type===$n.Link&&re instanceof uo&&re.category==="Selection"&&re.adornedObject instanceof Wr&&re.adornedPart.Pb()===re.adornedObject?re.adornedObject.strokeWidth:0),oe===0&&(x=null),x!==null&&oe!==0&&(ma(this,a,x,!1,!1,ee,z),a.lineWidth=oe,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,re&&y.Gf("drawShadows")&&(z=re.isShadowed),a.Il===!1&&(z=!1),re=!0,x===null||E!==null&&E!=="transparent"||(re=!1),ee=!1,oe=this.strokeDashArray,oe!==null&&(ee=!0,a.js(oe,this.strokeDashOffset)),b.type===Tn.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===Tn.u){var se=b.startX;oe=b.startY;var ue=b.endX,fe=b.endY;b=Math.min(se,ue);var ve=Math.min(oe,fe);se=Math.abs(ue-se),oe=Math.abs(fe-oe),a.beginPath(),a.rect(b,ve,se,oe),E!==null&&a.ng(E),x!==null&&(re&&z&&zu(a),a.jk(),re&&z&&ih(a)),a.Se()}else if(b.type===Tn.F)se=b.startX,oe=b.startY,ue=b.endX,fe=b.endY,b=Math.abs(ue-se)/2,ve=Math.abs(fe-oe)/2,se=Math.min(se,ue)+b,oe=Math.min(oe,fe)+ve,a.beginPath(),a.moveTo(se,oe-ve),a.bezierCurveTo(se+mt.wg*b,oe-ve,se+b,oe-mt.wg*ve,se+b,oe),a.bezierCurveTo(se+b,oe+mt.wg*ve,se+mt.wg*b,oe+ve,se,oe+ve),a.bezierCurveTo(se-mt.wg*b,oe+ve,se-b,oe+mt.wg*ve,se-b,oe),a.bezierCurveTo(se-b,oe-mt.wg*ve,se-mt.wg*b,oe-ve,se,oe-ve),a.closePath(),E!==null&&a.ng(E),x!==null&&(re&&z&&zu(a),a.jk(),re&&z&&ih(a)),a.Se();else if(b.type===Tn.o)for(b=b.figures,oe=b.length,ve=0;veFe.sweepAngle,xe!==null?xe.endX:se.startX,xe!==null?xe.endY:se.startY)}else if(xe=Ya(Fe,se),Je=xe.length,Je===0)a.lineTo(Fe.centerX,Fe.centerY);else for(var We=0;We(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>E)?!1:(ht.free(z),mt.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===Tn.u){y=x.startX;var ee=x.startY,re=x.endX;if(x=x.endY,z.x=Math.min(y,re),z.y=Math.min(ee,x),z.width=Math.abs(re-y),z.height=Math.abs(x-ee),this.fill===null){if(z.Bc(-E,-E),z.ca(a))return ht.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),ht.free(z),a}if(x.type===Tn.F){ee=x.startX,b=x.startY,re=x.endX;var oe=x.endY;if(x=Math.min(ee,re),y=Math.min(b,oe),ee=Math.abs(re-ee)/2,b=Math.abs(oe-b)/2,x=a.x-(x+ee),y=a.y-(y+b),this.fill===null){if(ee-=E,b-=E,0>=ee||0>=b||1>=x*x/(ee*ee)+y*y/(b*b))return ht.free(z),!1;ee+=E,b+=E}return this.stroke!==null&&(ee+=E,b+=E),ht.free(z),0>=ee||0>=b?!1:1>=x*x/(ee*ee)+y*y/(b*b)}if(x.type===Tn.o)return ht.free(z),this.fill===null?ya(x,a.x,a.y,b):aa(x,a,b,1=this.strokeWidth)ue=mt.Ve(se.startX,se.startY,se.endX,se.endY,z,ee,re,oe,b);else{if(se.startX===se.endX?(E=fe,ue=0):(y=(se.endY-se.startY)/(se.endX-se.startX),ue=fe/Math.sqrt(1+y*y),E=ue*y),y=ai(),a=new Te,mt.Ve(se.startX+E,se.startY+ue,se.endX+E,se.endY+ue,z,ee,re,oe,a)&&y.push(a),a=new Te,mt.Ve(se.startX-E,se.startY-ue,se.endX-E,se.endY-ue,z,ee,re,oe,a)&&y.push(a),a=new Te,mt.Ve(se.startX+E,se.startY+ue,se.startX-E,se.startY-ue,z,ee,re,oe,a)&&y.push(a),a=new Te,mt.Ve(se.endX+E,se.endY+ue,se.endX-E,se.endY-ue,z,ee,re,oe,a)&&y.push(a),re=y.length,re===0)return Li(y),!1;for(ue=!0,oe=1/0,E=0;EMath.abs(x)){if(oe=ee-ue-x*(z-E),0>a*a*x*x+se*se-oe*oe){b.x=NaN,b.y=NaN,ue=!1;break e}fe=Math.sqrt(a*a*x*x+se*se-oe*oe),re=(-(a*a*x*oe)+a*se*fe)/(se*se+a*a*x*x)+E,a=(-(a*a*x*oe)-a*se*fe)/(se*se+a*a*x*x)+E,se=x*(re-E)+oe+ue,oe=x*(a-E)+oe+ue,Math.abs((z-re)*(z-re))+Math.abs((ee-se)*(ee-se))re){b.x=NaN,b.y=NaN,ue=!1;break e}oe=Math.sqrt(re),re=ue+oe,oe=ue-oe,Math.abs(re-ee)Math.abs(Pe)?(Fe*=.5/Pe,Pe=.5):Fe!==0&&.5>Math.abs(Fe)&&(Pe*=.5/Fe,Fe=.5),We-=Pe,rt-=Fe;xe.contains(We,rt);)We-=Pe,rt-=Fe;for(b.x=re,b.y=oe,Fe=0;Fex?a-x:x-a)<(y>E?y-E:E-y)?(a=ya||mt.$(oe.y,a))&&(oe.yy||mt.$(oe.x,y))&&(oe.x=a&&E<=y):(a=E&&x<=a)}Ce.tx=function(a,y,x){function E(Je,We){for(var rt=Je.length,at=0;atb)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=b||si(y,z,0,-fe)>=b||si(y,z,0,fe)>=b||si(y,z,ue,0)>=b)}else if(y.type===Tn.o){if(se=y.bounds,z=se.x,re=se.y,oe=se.x+se.width,se=se.y+se.height,a.x>oe&&a.xse&&a.yb&&an(a.x,a.y,z,re,oe,re)>b&&an(a.x,a.y,oe,se,z,se)>b&&an(a.x,a.y,oe,se,oe,re)>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;yb)return!1;for(re=z.segments.s,oe=re.length,se=0;seb)return!1;break;case Sa:var ve=ai();if(mt.Qe(ee,ue,fe.point1X,fe.point1Y,fe.point2X,fe.point2Y,fe.endX,fe.endY,.8,ve),ee=E(ve,a),Li(ve),ee||(ee=fe.endX,ue=fe.endY,a.zd(ee,ue)>b))return!1;break;case ds:if(ve=ai(),mt.ep(ee,ue,fe.point1X,fe.point1Y,fe.endX,fe.endY,.8,ve),ee=E(ve,a),Li(ve),ee||(ee=fe.endX,ue=fe.endY,a.zd(ee,ue)>b))return!1;break;case ua:case cs:ve=fe.type===ua?Ya(fe,z):ts(fe,z,ee,ue);var xe=ve.length;if(xe===0){if(ee=fe.type===ua?fe.centerX:fe.endX,ue=fe.type===ua?fe.centerY:fe.endY,a.zd(ee,ue)>b)return!1;break}fe=null;for(var Pe=ai(),Fe=0;Fe= 0",Wr,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(a){var y=this.strokeCap;y!==a&&(typeof a!="string"||a!=="butt"&&a!=="round"&&a!=="square"?Kn(a,'"butt", "round", or "square"',Wr,"strokeCap"):(qd(this),this.Na.Hr=a,this.N(),this.g("strokeCap",y,a)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(a){var y=this.strokeJoin;y!==a&&(typeof a!="string"||a!=="miter"&&a!=="bevel"&&a!=="round"?Kn(a,'"miter", "bevel", or "round"',Wr,"strokeJoin"):(qd(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){qd(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;ba?a=0:1a?a=0:1(fe*fe+ue*ue)*ve*ve&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof el&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,fe=this.spacingBelow,this.flip){case oo:a.translate(b,0),a.scale(-1,1);break;case Gr:a.translate(0,z),a.scale(1,-1);break;case ko:a.translate(b,z),a.scale(-1,-1)}if(a.yc(),ue=this.Gc,ve=(y+ee+fe)*ue,z>ve&&(E=this.verticalAlignment,E=E.y*z-E.y*ve+E.offsetY),ue===1&&this.ze!==null)fe=this.Cb,fe>b&&(fe=b),this.Oj(this.ze,a,0,E+y,b,ee,fe,x,re,oe,se);else if(this.Qc!==null&&this.Qb!==null)for(ve=0;veb&&(xe=b),E+=y,this.Oj(this.Qb[ve],a,0,E,b,ee,xe,x,re,oe,se),E+=ee+fe}switch(this.flip){case oo:a.scale(-1,1),a.translate(-b,0);break;case Gr:a.scale(1,-1),a.translate(0,-z);break;case ko:a.scale(-1,-1),a.translate(-b,-z)}}},Ce.Oj=function(a,y,x,E,b,z,ee,re,oe,se,ue){var fe=0;if(re)oe==="left"?fe=0:oe==="right"?fe=b-ee:oe==="center"&&(fe=(b-ee)/2),y.fillRect(x+fe,E+.25*z,ee,1);else{if(oe==="left"?fe=0:oe==="right"?fe=b:oe==="center"&&(fe=b/2),b=Om!==null?Om(this,z):.75*z,y.fillText(a,x+fe,E+b),a=z/20|0,a===0&&(a=1),oe==="right"?fe-=ee:oe==="center"&&(fe-=ee/2),se){re=Im!==null?Im(this,z):.8*z,oe=x+fe,se=E+re,b=x+fe+ee,re=E+re;var ve=a;y.beginPath(),y.lineWidth=ve,y.moveTo(oe,se),y.lineTo(b,re),y.stroke(),y.Se(),y instanceof el&&y.ad.classList.add("gojs-td")}ue&&(ue=E+z-z/2.2|0,a%2!==0&&(ue+=.5),E=x+fe,z=ue,x=x+fe+ee,ee=ue,fe=a,y.beginPath(),y.lineWidth=fe,y.moveTo(E,z),y.lineTo(x,ee),y.stroke(),y.Se(),y instanceof el&&y.ad.classList.add("gojs-td"))}},Ce.kk=function(a,y,x){if(!Mt.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=this.Qb.length))){for(this.l|=16777216,se=this.Qb[oe],y=Math.max(1,a-y);ql(se)>y&&1a.maxLines&&(a.l|=16777216))}function Dv(a,y,x,E){var b=a.formatting===tp;b&&(y=y.trim());var z=0,ee=a.Ae,re=a.spacingAbove+a.spacingBelow;re=Math.max(0,ep(a)+re);var oe=a.overflow===Rm?E1(ee):0;if(a.Gc>=a.maxLines)E!==null&&E.h(0,re);else if(ee=y,a.wrap===Nv){a.Le=1;var se=ql(y);if(oe===0||se<=x)a.Cb=Math.max(a.Cb,se),$g(a,y,a.Cb),E!==null&&E.h(se,re);else{for(z=Of(a,ee),ee=ee.substr(z.length),y=Of(a,ee),se=ql(z+y);0x&&1x;){var fe=1;for(se=ql(y.substr(0,fe)),ue=0;se<=x;)fe++,ue=se,se=ql(y.substr(0,fe));if(fe===1){var ve=se;z=Math.max(z,se)}else ve=ue,z=Math.max(z,ue);if(fe--,1>fe&&(fe=1),$g(a,y.substr(0,fe),ve),oe++,y=y.substr(fe),a.Gc+oe>a.maxLines)break}for(ue=Of(a,ee),se=ql(y+ue);0a.maxLines))break}a.Le=Math.min(a.maxLines,oe),a.Cb=Math.max(a.Cb,z),E!==null&&E.h(a.Cb,re*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=y.length?y:y.substr(0,E)}function ql(a){return js===null?8*a.length:js.measureText(a).width}function ep(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,ep(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,ee,re=!1;!re;){if(ee=x.indexOf(` `,z),ee===-1&&(ee=x.length,re=!0),z<=ee){if(z=x.substr(z,ee-z),a.wrap!==Nv){a.Le=0;var oe=Re.alloc();Dv(a,z,y,oe),b+=oe.height,Re.free(oe),a.Gc+=a.Le}else Dv(a,z,y,null),b+=E,a.Gc++;a.Gc===a.maxLines&&(re=!0)}z=ee+1}return a.Lq=b}bt.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:Rn},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=Re.alloc();Dv(this,this.ec,999999,a);var y=a.width;Re.free(a),a=A1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),_n(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 ep(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:1a?a=0:1=a&&Kn(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 wn(jo,"None",0),L1=new wn(jo,"WrapFit",1),Bv=new wn(jo,"WrapDesiredSize",2),b1=new wn(jo,"WrapBreakAll",3),Tv=new wn(jo,"OverflowClip",0),Rm=new wn(jo,"OverflowEllipsis",1),tp=new wn(jo,"FormatTrim",0),M1=new wn(jo,"FormatNone",0),Mx=/[ \u200b\u00ad]/,Ov=new Hi,k1=0,zm=new Hi,Iv=0,np="...",F1="",js=null,jm=!1;jo.className="TextBlock";function Rv(){this.nc=!1,this.Hd=null,this.Xf=Rn,this.gq=tp,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 Hi,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=tp,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){Mt.call(this),this.Eg=null,this.qo="",this.Xg=Hr,this.Nk=Jn,this.Zg=this.Hd=null,this.Mk=Di,this.Xf=Rn,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;Dt(Ws,Mt),Ws.prototype.cloneProtected=function(a){Mt.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===Rn||a===Ui||a===$r?this.imageStretch=a:Mt.prototype.qb.call(this,a)},Ws.prototype.toString=function(){return"Picture("+this.source+")#"+Nr(this)};function Rf(a){a===void 0&&(a=""),a!==""?If[a]&&(delete If[a],Wm--):(If=new Hi,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")||"",ee=b.Og.I(z);if(ee!==null)for(var re=ee.length,oe=0;oe=E.width&&(z=z+Pe.offsetX+(fe*Pe.x-E.width*Pe.x)),ve>=E.height&&(ee=ee+Pe.offsetY+(ve*Pe.y-E.height*Pe.y)),oe=Math.min(E.width,fe),re=Math.min(E.height,ve);break;case Jn:fe=E.width,ve=E.height;break;case Ui:case $r:xe===Ui?(xe=Math.min(E.height/ve,E.width/fe),fe*=xe,ve*=xe):xe===$r&&(xe=Math.max(E.height/ve,E.width/fe),fe*=xe,ve*=xe,fe>=E.width&&(z=(z+Pe.offsetX+(fe*Pe.x-E.width*Pe.x)/fe)*oe),ve>=E.height&&(ee=(ee+Pe.offsetY+(ve*Pe.y-E.height*Pe.y)/ve)*re),oe*=1/(fe/E.width),re*=1/(ve/E.height),fe=E.width,ve=E.height)}xe=this.Df()*y.scale;var Fe=fe*xe*ve*xe,Je=oe*re/Fe,We=x.__goCache;xe=null;var rt=kx;if(!b){if(x.sq&&We!==void 0&&4rt*rt)for(We.gi===null&&(B1(We,4,se,ue,x),B1(We,16,se,ue,x)),b=We.gi,se=b.length,ue=0;uea)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var E="rr"+y+","+x+","+a,b=mt.Mf[E];if(b!==void 0)return b;var z=a*mt.wg;return b=new Tn().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())),1b.x&&a.y>b.y&&a.rightb.x&&y.y>b.y&&y.right=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 ui?(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:In},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&&Ge("Cannot make a Group a member of itself: "+this.toString()),Ge("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 Or&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Xv(a,this):this instanceof Or&&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 Or){for(x=new vn,cd(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof ki)for(E=E.linksConnected;E.next();)Wf(E.value)}if(this instanceof ki){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 Ge("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 ki&&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:Ot},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))}}}),ar.prototype.invalidateLayout=ar.prototype.C,ar.prototype.findCommonContainingGroup=ar.prototype.px,ar.prototype.isMemberOf=ar.prototype.Td,ar.prototype.findTopLevelPart=ar.prototype.sz,ar.prototype.findSubGraphLevel=ar.prototype.oz,ar.prototype.ensureBounds=ar.prototype.Va,ar.prototype.getDocumentBounds=ar.prototype.mi,ar.prototype.findObject=ar.prototype.fb,ar.prototype.moveTo=ar.prototype.moveTo,ar.prototype.invalidateAdornments=ar.prototype.Wb,ar.prototype.clearAdornments=ar.prototype.Ej,ar.prototype.removeAdornment=ar.prototype.Jf,ar.prototype.addAdornment=ar.prototype.bh,ar.prototype.findAdornment=ar.prototype.Pj,ar.prototype.updateTargetBindings=ar.prototype.La;var K1=!1;ar.className="Part",ar.LayoutNone=0,ar.LayoutAdded=1,ar.LayoutRemoved=2,ar.LayoutShown=4,ar.LayoutHidden=8,ar.LayoutNodeSized=16,ar.LayoutGroupLayout=32,ar.LayoutNodeReplaced=64,ar.LayoutStandard=127,ar.LayoutAll=16777215;function uo(a,y){a===void 0||a instanceof Ia||typeof a=="string"?ar.call(this,a):(ar.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)}Dt(uo,ar),uo.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},uo.prototype.updateRelationshipsFromData=function(){},uo.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof ui&&y instanceof Wr){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var E=0;Ea&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new vn;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,ee){if(1a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new vn;x.add(this),tS(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Lh),y.Ue=!1}};function tS(a,y,x,E,b,z,ee){for(var re=z===a?!1:a.isTreeExpanded,oe=x?a.Mo():a.Sd(),se={};oe.next();){var ue=oe.value;if(ue.isTreeLink&&(re||ue.fd||ue.bb(),ue=ue.To(a),ue!==null&&ue!==a&&!y.contains(ue))){if(y.add(ue),!re){ue.Zb(!0),ue.oh();var fe=x?ue.Oo():ue.Po();se.vv=a,fe.all(function(ve){return function(xe){return xe===ve.vv||!xe.isTreeExpanded}}(se))&&b.Cj(ue,z)}(2b&&(b=re.right),re.bottom>z&&(z=re.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},bt.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 ui(a){ar.call(this,$n.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=ey,this.po=.5,this.wd=null,this.Nb=new dn().freeze(),this.Tg=this.Mg=null,this.ml=new ht,this.ua=new Tn,this.u=this.o=this.Sf=this.Wf=null,this.su=new Te,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Dt(ui,ar),ui.prototype.cloneProtected=function(a){ar.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())},Ce=ui.prototype,Ce.Af=function(a){ar.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&&tl(y),a=a.toPort,a!==null&&tl(a)},Ce.qb=function(a){a.classType===ui?(a.value&2)===2?this.routing=a:a===cl||a===Th||a===Zf?this.curve=a:a===ap||a===$m||a===e0?this.adjusting=a:a!==ey&&a!==ks&&Ge("Unknown Link enum value for a Link property: "+a):ar.prototype.qb.call(this,a)},Ce.Xc=function(){this.ba===null&&(this.ba=new Yg)},Ce.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)))},Ce.zv=function(){return!1},Ce.Av=function(){},Ce.Zc=function(){return!1},ui.prototype.computeAngle=function(a,y,x){return ui.computeAngle(y,x)},ui.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 ty:a=y+180;break;case t0:a=mt.bp(y),90a&&(a-=180);break;case hp:a=mt.bp(y+90),90a&&(a-=180);break;case dp:a=mt.bp(y-90),90a&&(a-=180);break;case n0:if(a=mt.bp(y),45a||225a)return 0;90a&&(a-=180)}return mt.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,ee=a.diagram;ee!==null&&(z=ee.aa,ee.aa=!0),b(a,x,y),ee!==null&&(ee.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}Ce=ui.prototype,Ce.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&ar.prototype.oh.call(this)},Ce.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Ce.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function rS(a,y){a.wd===null&&(a.wd=new vn),a.wd.add(y),a.v()}Ce.Vo=function(a){if(ar.prototype.Vo.call(this,a),tc(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)}},Ce.Wo=function(a){if(ar.prototype.Wo.call(this,a),tc(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)}},Ce.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))},ui.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},ui.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?ar.prototype.move.call(this,a,!1):(a=Te.allocAt(x.x+E,x.y+b),ar.prototype.move.call(this,a,!1),Te.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)},ui.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},ui.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},ui.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 mt.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),mt.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 ee=this.flattenedLengths;for(x=this.flattenedTotalLength,b=z=E=0;Ex/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},ui.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),mt.My(a.x,a.y,y.x,y.y,E.x,E.y,x.x,x.y)}if(0E/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(0Math.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)},Ce=ui.prototype,Ce.i=function(a){return this.Nb.s[a]},Ce.dd=function(a,y){this.Nb.cd(a,y)},Ce.L=function(a,y,x){this.Nb.cd(a,new Te(y,x))},Ce.Kz=function(a,y){this.Nb.Gb(a,y)},Ce.m=function(a,y,x){this.Nb.Gb(a,new Te(y,x))},Ce.ne=function(a){this.Nb.add(a)},Ce.yf=function(a,y){this.Nb.add(new Te(a,y))},Ce.pv=function(a){this.Nb.mb(a)},Ce.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 dn,z=a.Nb.iterator;z.next();){var ee=z.value;b.add(new Te(ee.x+y,ee.y+x).freeze())}b.freeze(),z=a.Nb,a.Nb=b,ee=a.diagram,isNaN(y)||isNaN(x)||ee!==null&&ee.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))),ee!==null&&ee.animationManager.zb&&cf(ee.animationManager,a,b),a.g("points",z,b)}}Ce.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Ce.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,ee=0;eese&&(fe=-fe),Fe=(0>oe?-1:1)*fe+xe,Je=ue*(Fe-xe)+Pe),xe=z.x+2*re/3,Pe=z.y+2*oe/3;var We=xe,rt=Pe;mt.B(oe,0)?rt=0oe?-1:1)*fe+xe,rt=ue*(We-xe)+Pe),this.Fj(),this.ne(z),this.yf(Fe,Je),this.yf(We,rt),this.ne(ve),this.dd(0,this.getLinkPoint(a,y,ee,!0,!1,E,b)),this.dd(3,this.getLinkPoint(E,b,x,!1,!1,a,y))}else z=E,ve=b,E=this.getLinkPoint(a,y,ee,!0,!1,z,ve),b=this.getLinkPoint(z,ve,x,!1,!1,a,y),this.hasCurviness()?(ve=b.x-E.x,x=b.y-E.y,ee=this.computeCurviness(),a=E.x+ve/2,y=E.y+x/2,z=a,re=y,mt.B(x,0)?re=0ee&&(z=-z),z=(0>x?-1:1)*z+a,re=ve*(z-a)+y),this.ne(E),this.yf(z,re),this.ne(b)):(this.ne(E),this.ne(b),re=ht.alloc(),y.mi(re),oe=re.ca(b),ve.mi(re),se=re.ca(E),(oe||se)&&(ee=y.ga(Jm(ee),new Te),this.dd(0,this.getLinkPointFromPoint(a,y,ee,b,!0,ee)),x=ve.ga(Jm(x),new Te),this.dd(1,this.getLinkPointFromPoint(z,ve,x,E,!1,x))),ht.free(re))}else{fe=this.isAvoiding,ve&&(ue&&fe||se)&&this.Fj();var at=se?this.computeCurviness():0;fe=this.getLinkPoint(a,y,ee,!0,ue,E,b),xe=Fe=Pe=0,(ue||!re||se)&&(Je=this.computeEndSegmentLength(a,y,ee,!0),xe=this.getLinkDirection(a,y,fe,ee,!0,ue,E,b),se&&(re||ee.D(x)||!ue&&ee.x+x.x===1&&ee.y+x.y===1)&&(xe-=ue?90:30,0>at&&(xe-=180)),0>xe?xe+=360:360<=xe&&(xe-=360),se&&(Je+=Math.abs(at)*(ue?1:2)),xe===0?Pe=Je:xe===90?Fe=Je:xe===180?Pe=-Je:xe===270?Fe=-Je:(Pe=Je*Math.cos(xe*Math.PI/180),Fe=Je*Math.sin(xe*Math.PI/180)),ee.Mc()&&se&&(Je=y.ga(Di,Te.alloc()),We=Te.allocAt(Je.x+1e3*Pe,Je.y+1e3*Fe),this.getLinkPointFromPoint(a,y,Je,We,!0,fe),Te.free(Je),Te.free(We))),Je=this.getLinkPoint(E,b,x,!1,ue,a,y);var dt=rt=We=0;if(ue||!oe||se){var Lt=this.computeEndSegmentLength(E,b,x,!1);dt=this.getLinkDirection(E,b,Je,x,!1,ue,a,y),se&&(oe||ee.D(x)||!ue&&ee.x+x.x===1&&ee.y+x.y===1)&&(dt+=ue?0:30,0>at&&(dt+=180)),0>dt?dt+=360:360<=dt&&(dt-=360),se&&(Lt+=Math.abs(at)*(ue?1:2)),dt===0?We=Lt:dt===90?rt=Lt:dt===180?We=-Lt:dt===270?rt=-Lt:(We=Lt*Math.cos(dt*Math.PI/180),rt=Lt*Math.sin(dt*Math.PI/180)),x.Mc()&&se&&(x=b.ga(Di,Te.alloc()),ee=Te.allocAt(x.x+1e3*We,x.y+1e3*rt),this.getLinkPointFromPoint(E,b,x,ee,!1,Je),Te.free(x),Te.free(ee))}x=fe,(ue||!re||se)&&(x=new Te(fe.x+Pe,fe.y+Fe)),ee=Je,(ue||!oe||se)&&(ee=new Te(Je.x+We,Je.y+rt)),!ve&&!ue&&re&&3Math.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}ui.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new Te),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 ee=x.x;x=x.y}else{a=b.oe,b=1/(a.m11*a.m22-a.m12*a.m21),ee=a.m22*b;var re=-a.m12*b,oe=-a.m21*b,se=a.m11*b,ue=b*(a.m21*a.dy-a.m22*a.dx),fe=b*(a.m12*a.dx-a.m11*a.dy);b=E.x*ee+E.y*oe+ue,E=E.x*re+E.y*se+fe,ee=x.x*ee+x.y*oe+ue,x=x.x*re+x.y*se+fe}return y.Sj(b,E,ee,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)}ui.prototype.getLinkPoint=function(a,y,x,E,b,z,ee,re){if(re===void 0&&(re=new Te),x.sb()&&!Hf(x))return y.ga(x,re),re;if(x.$c()){var oe=_m(this,y);if(oe!==null){if(re.assign(oe.Zo),b&&this.routing===aS){var se=_m(this,ee);if(se!==null&&oe.Gl=ue.y&&a.y<=ue.y+ue.height?re.y=a.y:(x.Hf(eo)||x.Hf(fo))&&a.x>=ue.x&&a.x<=ue.x+ue.width&&(re.x=a.x),Te.free(oe),Te.free(se)}}return re}}return x=y.ga(Jm(x),Te.alloc()),this.pointsCount>(b?6:2)?(ee=E?this.i(1):this.i(this.pointsCount-2),b&&(ee=Jv(x,ee.copy()))):(oe=this.computeSpot(!E,ee),z=Te.alloc(),ee=ee.ga(Jm(oe),z),b&&(ee=Jv(x,ee)),Te.free(z)),this.getLinkPointFromPoint(a,y,x,ee,E,re),Te.free(x),re},ui.prototype.getLinkDirection=function(a,y,x,E,b,z,ee,re){e:if(E.sb())var oe=E.x>E.y?E.x>1-E.y?0:E.x<1-E.y?270:315:E.x1-E.y?90:E.x<1-E.y?180:135:.5>E.x?225:.5(z?6:2)?(re=b?this.i(1):this.i(this.pointsCount-2),re=z?Jv(oe,re.copy()):x):(x=Te.alloc(),re=re.ga(Di,x),Te.free(x)),x=Math.abs(re.x-oe.x)>Math.abs(re.y-oe.y)?re.x>=oe.x?0:180:re.y>=oe.y?90:270,Te.free(oe),oe=x}return E.Mc()&&ee.Td(a)&&(oe+=180,360<=oe&&(oe-=360)),Hf(E)||(a=y.li(),a===0)||(45<=a&&135>a?oe+=90:135<=a&&225>a?oe+=180:225<=a&&315>a&&(oe+=270),360<=oe&&(oe-=360)),oe},ui.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)},ui.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=Di:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Lo?Vi:y)):(a=y||this.toPort,a===null?a=Di:(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:Di}ui.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==ks&&4ve.width||fe.y>ve.height||0>fe.x+fe.width||0>fe.y+fe.height)){if(fe=Si.alloc(),fe.set(ee),ue instanceof $n)re=ue.Cf(a,y,x,E,b,fe);else if(this.path===ue){if(ue instanceof Wr)if(re=a,ve=E,ue.pickable===!1)re=!1;else if(fe.multiply(ue.transform),ve)e:{var xe=re,Pe=fe;if(ue.fh(xe,Pe))re=!0;else{if(Pe===void 0&&(Pe=ue.transform,xe.Re(ue.actualBounds))){re=!0;break e}re=xe.left,ve=xe.right;var Fe=xe.top;xe=xe.bottom;var Je=Te.alloc(),We=Te.alloc(),rt=Te.alloc(),at=Si.alloc();at.set(Pe),at.bv(ue.transform),at.Vj(),We.x=ve,We.y=Fe,We.transform(at),Je.x=re,Je.y=Fe,Je.transform(at),Pe=!1,$d(ue,Je,We,rt)?Pe=!0:(Je.x=ve,Je.y=xe,Je.transform(at),$d(ue,Je,We,rt)?Pe=!0:(We.x=re,We.y=xe,We.transform(at),$d(ue,Je,We,rt)?Pe=!0:(Je.x=re,Je.y=Fe,Je.transform(at),$d(ue,Je,We,rt)&&(Pe=!0)))),Si.free(at),Te.free(Je),Te.free(We),Te.free(rt),re=Pe}}else re=ue.fh(re,fe)}else re=ja(ue,a,E,fe);re&&(ve=ue,y!==null&&(ve=y(ue)),ve&&(x===null||x(ve))&&b.add(ve)),Si.free(fe)}}}return z===void 0&&Si.free(ee),re||this.background!==null||this.areaBackground!==null}return z===void 0&&Si.free(ee),!1},ui.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},ui.prototype.computeCorner=function(){if(this.curve===cl)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},ui.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,E=0;Eoe?-Math.PI/2:Math.PI/2;else ue=Math.atan(oe/Math.abs(re)),0>re&&(ue=Math.PI-ue);ee=y.x;var fe=y.y;re=E.x-ee;var ve=E.y-fe;for(oe=Math.sqrt(re*re+ve*ve),mt.$(re,0)?ve=0>ve?-Math.PI/2:Math.PI/2:(ve=Math.atan(ve/Math.abs(re)),0>re&&(ve=Math.PI-ve)),se=oe/se,ue=ve-ue,this.dd(a,y),a+=1;aoe?-Math.PI/2:Math.PI/2:(oe=Math.atan(oe/Math.abs(re)),0>re&&(oe=Math.PI-oe)),re=oe+ue,y*=se,this.L(a,ee+y*Math.cos(re),fe+y*Math.sin(re)));this.dd(x,E)}}return!0;case e0:if(z=this.i(a),fe=this.i(x),!z.Xa(y)||!fe.Xa(E)){b=z.x,z=z.y,ee=fe.x,fe=fe.y,se=(ee-b)*(ee-b)+(fe-z)*(fe-z),re=y.x,ue=y.y,oe=E.x,ve=E.y;var xe=1;if(oe-re!==0){var Pe=(ve-ue)/(oe-re);xe=Math.sqrt(1+1/(Pe*Pe))}else Pe=9e9;for(this.dd(a,y),a+=1;ay?y+=360:360<=y&&(y-=360),0>E?E+=360:360<=E&&(E-=360);var ee=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 re=b.actualBounds.copy(),oe=z.actualBounds.copy();if(re.w()&&oe.w()){re.Bc(cp,cp),oe.Bc(cp,cp),re.Ye(a),oe.Ye(x);var se=Te.alloc(),ue=Te.alloc();y===0?x.x>a.x||E===270&&x.ya.x||E===90&&x.y>a.y&&oe.right>a.x?(se.h(x.x,a.y),ue.h(x.x,(a.y+x.y)/2),E===180?(se.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ue.x=se.x,ue.y=x.y):E===270&&x.ya.y?(se.x=a.xoe.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):oe.right,ue.x=se.x,ue.y=x.y):E===0&&a.xoe.top&&a.yre.bottom)&&(E===180&&(oe.ca(a)||re.ca(x))?se.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(E===180||E===270)&&(se.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,oe.top),!0)),ue.x=x.x,ue.y=se.y),se.y>re.top&&se.y=re.left&&x.x<=a.x||a.x<=oe.right&&a.x>=x.x?(E===90||E===270)&&(se.h(Math.max((a.x+x.x)/2,a.x),a.y),ue.h(se.x,x.y)):(se.y=E===270||(E===0||E===180)&&x.ya.y&&oe.lefta.y?(se.x=a.x>oe.right?this.computeMidOrthoPosition(a.x,a.y,oe.right,x.y,!1):a.x>oe.left&&(E===270&&a.yoe.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):oe.left,ue.x=se.x,ue.y=x.y):E===180&&a.x>oe.right&&a.y>oe.top&&a.yre.bottom)&&(E===0&&(oe.ca(a)||re.ca(x))?se.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.ya.y&&(E===0||E===270)&&(se.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,oe.top),!0)),ue.x=x.x,ue.y=se.y),se.y>re.top&&se.y=a.x||a.x>=oe.left&&a.x<=x.x?(E===90||E===270)&&(se.h(Math.min((a.x+x.x)/2,a.x),a.y),ue.h(se.x,x.y)):(se.y=E===270||(E===0||E===180)&&x.ya.y||E===180&&x.xa.y||E===0&&x.x>a.x&&oe.bottom>a.y?(se.h(a.x,x.y),ue.h((a.x+x.x)/2,x.y),E===270?(se.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ue.x=x.x,ue.y=se.y):E===180&&x.xa.x?(se.y=a.yoe.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):oe.bottom,ue.x=x.x,ue.y=se.y):E===90&&a.yoe.left&&a.xre.right)&&(E===270&&(oe.ca(a)||re.ca(x))?se.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(E===270||E===180)&&(se.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,oe.left),x.y,!1)),ue.x=se.x,ue.y=x.y),se.x>re.left&&se.x=re.top&&x.y<=a.y||a.y<=oe.bottom&&a.y>=x.y?(E===0||E===180)&&(se.h(a.x,Math.max((a.y+x.y)/2,a.y)),ue.h(x.x,se.y)):(se.x=E===180||(E===90||E===270)&&x.xa.x&&oe.top=a.x?(se.y=a.y>oe.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,oe.bottom,!0):a.y>oe.top&&(E===180&&a.xoe.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):oe.top,ue.x=x.x,ue.y=se.y):E===270&&a.y>oe.bottom&&a.x>oe.left&&a.xre.right)&&(E===90&&(oe.ca(a)||re.ca(x))?se.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.xa.x&&(E===90||E===180)&&(se.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,oe.left),x.y,!1)),ue.x=se.x,ue.y=x.y),se.x>re.left&&se.x=a.y||a.y>=oe.top&&a.y<=x.y?(E===0||E===180)&&(se.h(a.x,Math.min((a.y+x.y)/2,a.y)),ue.h(x.x,se.y)):(se.x=E===180||(E===90||E===270)&&x.x=Gf&&(uS(xe),re.Bc(xe.Ho*xe.Hx,xe.Go*xe.Ix),hS(xe,a,y,fe,E,re,!1),oe=Zu(xe,fe.x,fe.y)),!xe.abort&&oethis.pointsCount?(y===0||y===180?(re.x=a.x,re.y=fe.y):(re.x=fe.x,re.y=a.y),this.L(2,re.x,re.y),this.m(3,re.x,re.y)):(ee=this.i(3),y===0||y===180?mt.B(re.x,ee.x)?(re=y===0?Math.max(re.x,a.x):Math.min(re.x,a.x),this.L(2,re,a.y),this.L(3,re,ee.y)):mt.B(re.y,ee.y)?(Math.abs(a.y-re.y)<=xe.Go/2&&(this.L(2,re.x,a.y),this.L(3,ee.x,a.y)),this.m(2,re.x,a.y)):this.L(2,a.x,re.y):(y===90||y===270)&&(mt.B(re.y,ee.y)?(re=y===90?Math.max(re.y,a.y):Math.min(re.y,a.y),this.L(2,a.x,re),this.L(3,ee.x,re)):mt.B(re.x,ee.x)?(Math.abs(a.x-re.x)<=xe.Ho/2&&(this.L(2,a.x,re.y),this.L(3,a.x,ee.y)),this.m(2,a.x,re.y)):this.L(2,re.x,a.y))),x!==null&&(a=this.i(1),ee=this.i(2),a.x!==ee.x&&a.y!==ee.y?y===0||y===180?this.m(2,a.x,ee.y):this.m(2,ee.x,a.y):y===0||y===180?this.m(2,b.x,x.y):this.m(2,x.x,b.y)),Pe!==null&&(E===0||E===180?this.yf(z.x,Pe.y):this.yf(Pe.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(se.copy()),this.ne(ue.copy())),Te.free(se),Te.free(ue)}},ui.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;Enc&&Zu(y,ue,fe)!==se-1&&(Zu(y,x-re,E)===se-1?(b=180,ue=x-re,fe=E):Zu(y,x+re,E)===se-1?(b=0,ue=x+re,fe=E):Zu(y,x,E-oe)===se-1?(b=270,ue=x,fe=E-oe):Zu(y,x,E+oe)===se-1&&(b=90,ue=x,fe=E+oe));se>nc&&Zu(y,ue,fe)===se-1;)x=ue,E=fe,b===0?ue+=re:b===90?fe+=oe:b===180?ue-=re:fe-=oe,--se;z?se>nc&&(b===180||b===0?x=Math.floor(x/re)*re+re/2:(b===90||b===270)&&(E=Math.floor(E/oe)*oe+oe/2)):(x=Math.floor(x/re)*re+re/2,E=Math.floor(E/oe)*oe+oe/2),se>nc&&(z=b,ee=x,ue=E,b===0?(z=90,ue+=oe):b===90?(z=180,ee-=re):b===180?(z=270,ue-=oe):b===270&&(z=0,ee+=re),Zu(y,ee,ue)===se-1?qv(a,y,ee,ue,z,!1,z):(ee=x,ue=E,b===0?(z=270,ue-=oe):b===90?(z=0,ee+=re):b===180?(z=90,ue+=oe):b===270&&(z=180,ee-=re),Zu(y,ee,ue)===se-1&&qv(a,y,ee,ue,z,!1,z))),a.yf(x,E)}ui.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),E=this.i(1),b=an(y,a,x.x,x.y,E.x,E.y),z=0,ee=1;eethis.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=y&&(E=y-1),oe=this.i(E),z.x=Math.min(oe.x,z.x),z.y=Math.min(oe.y,z.y);E=z.x,oe=z.y}else{for(oe=0;oeJe?Pe>xe?(z.x=We-at,z.y=xe-at,b.x=We+Fe,b.y=xe+Fe):(z.x=We-at,z.y=xe+at,b.x=We+Fe,b.y=xe-Fe):Pe>xe?(z.x=We+at,z.y=xe-at,b.x=We-Fe,b.y=xe+Fe):(z.x=We+at,z.y=xe+at,b.x=We-Fe,b.y=xe-Fe)),mt.$(Je,We)&&mt.$(xe,Pe)&&(xe>ve?(rt>We?(z.x=We-at,z.y=xe-at,b.x=We+Fe):(z.x=We+at,z.y=xe-at,b.x=We-Fe),b.y=xe+Fe):(rt>We?(z.x=We-at,z.y=xe+at,b.x=We+Fe):(z.x=We+at,z.y=xe+at,b.x=We-Fe),b.y=xe-Fe)),(mt.$(Je,We)&&mt.$(We,rt)||mt.$(ve,xe)&&mt.$(xe,Pe))&&(Je=.5*(Je+rt),ve=.5*(ve+Pe),z.x=Je,z.y=ve,b.x=Je,b.y=ve),(fe===1||fe===2&&mt.$(ee.x,this.i(0).x)&&mt.$(ee.y,this.i(0).y))&&(x.x=.5*(ee.x+se.x),x.y=.5*(ee.y+se.y)),Fh(re,x.x-E,x.y-oe,z.x-E,z.y-oe,se.x-E,se.y-oe),y.set(z),x.set(b),ee=se}}se=ee.x,ee=ee.y,ue=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ue=Rc(this,ue.copy(),!1,He)),se=.5*(se+ue.x),ee=.5*(ee+ue.y),Fh(re,b.x-E,b.y-oe,se-E,ee-oe,ue.x-E,ue.y-oe),Te.free(y),Te.free(x),Te.free(z),Te.free(b)}else for(x=3;x=y&&(x=y-1),b=this.i(x-1),ee=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(ee=Rc(this,ee.copy(),!1,He)),Fh(re,z.x-E,z.y-oe,b.x-E,b.y-oe,ee.x-E,ee.y-oe);else{for(z=Te.alloc(),z.assign(this.i(0)),b=Te.alloc(),b.assign(z),ee=this.computeCorner(),fe=1,se=0;fe=y-1){if(!z.D(ue))this.computeShortLength(!1)!==0&&(ue=Rc(this,ue.copy(),!1,He)),zc(this,re,-E,-oe,z,ue,x);else if(se===0)for(fe=1;fez.x?dt=ve.x-Pe:dt=ve.x+Pe,We.y>ve.y?rt=ve.y+at:rt=ve.y-at,We=Te.allocAt(dt,Lt),zc(this,re,fe,Je,z,We,Fe),Te.free(We),Hm(re,ve.x+fe,ve.y+Je,xe+fe,rt+Je),z.h(xe,rt)}else mt.B(z.x,ve.x)&&mt.B(ve.y,We.y)?(Pe=Math.min(ee,Math.abs(ve.y-b.y)/2),Pe=at=Math.min(Pe,Math.abs(We.x-ve.x)/2),mt.B(at,0)?(zc(this,re,fe,Je,z,ve,Fe),z.assign(ve)):(dt=ve.x,Lt=ve.y,xe=dt,rt=Lt,ve.y>z.y?Lt=ve.y-Pe:Lt=ve.y+Pe,We.x>ve.x?xe=ve.x+at:xe=ve.x-at,We=Te.allocAt(dt,Lt),zc(this,re,fe,Je,z,We,Fe),Te.free(We),Hm(re,ve.x+fe,ve.y+Je,xe+fe,rt+Je),z.h(xe,rt))):(zc(this,re,fe,Je,z,ve,Fe),z.assign(ve));b.assign(ue),fe=se}Te.free(z)}Zm=re}else re=this.i(1).copy(),re.x-=E,re.y-=oe,this.computeShortLength(!0)!==0&&(b=Rc(this,b,!0,z)),this.computeShortLength(!1)!==0&&(re=Rc(this,re,!1,z)),a.type=Tn.j,a.startX=b.x,a.startY=b.y,a.endX=re.x,a.endY=re.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),mt.$(a,0)?y:mt.$(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;mt.$(y.x,z.x)&&mt.$(y.y,z.y);){if(x>=b)return b-1;z=a.i(x++)}if(!mt.$(y.x,z.x)&&!mt.$(y.y,z.y))return x-1;for(var ee=z;mt.$(y.x,z.x)&&mt.$(z.x,ee.x)&&(!E||(y.y>=z.y?z.y>=ee.y:z.y<=ee.y))||mt.$(y.y,z.y)&&mt.$(z.y,ee.y)&&(!E||(y.x>=z.x?z.x>=ee.x:z.x<=ee.x));){if(x>=b)return b-1;ee=a.i(x++)}return x-2}ui.prototype.computeJumpLength=function(){return 10};function zc(a,y,x,E,b,z,ee){if(!ee&&tc(a)){ee=a.computeJumpLength();var re=ee/2,oe=[],se=0;if(a.isVisible()&&(se=Tx(a,b,z,oe)),0fe-ee);)se--,fe=Math.max(ue-re,z.x);ue=z.y-ee+E,fe+=x,xe=z.y+E,a.curve===Th?jf(y,fe,xe,!1):Fh(y,ve,ue,fe,ue,fe,xe)}else if(mt.B(b.x,z.x))if(b.yue-ee);)se--,ue=Math.max(fe-re,z.y);fe=z.x-ee+x,xe=z.x+x,ue+=E,a.curve===Th?jf(y,xe,ue,!1):Fh(y,fe,ve,fe,ue,xe,ue)}}}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 ee=z.length,re=0;reee.x&&ue.x>=se.x||se.xee.y&&ue.y>=se.y||se.yee&&Math.min(Pe,Fe)ue&&!mt.B(Pe,Fe)){re.x=ue,re.y=ee,ue=!0;break e}}else if(mt.B(fe,xe)&&mt.B(Pe,Fe)&&Math.min(ue,ve)Pe&&Math.min(ee,Je)fe&&!mt.B(ee,Je)){re.x=Pe,re.y=fe,ue=!0;break e}re.x=0,re.y=0,ue=!1}ue&&(b?x.push(re.x):x.push(re.y)),ee=se}Te.free(re)}function tc(a){return a=a.curve,a===Zf||a===Th}function qm(a,y){(y||tc(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()))}ui.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 ee=b.length,re=0;rea&&Kn(a,">= 0",ui,"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&&tl(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&&Kn(a,">= 0",ui,"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=E&&(z=E-1);var re=this.i(z-1),oe=this.i(z);mt.Dl(b.x,b.y,ee.x,ee.y,re.x,re.y,oe.x,oe.y,.5,a),y=Math.min(oe.x,y),x=Math.min(oe.y,x),b=oe}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;bE&&(E=-E)):mt.$(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;Ethis.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)}}}),ui.prototype.invalidateOtherJumpOvers=ui.prototype.Xo,ui.prototype.findClosestSegment=ui.prototype.ez,ui.prototype.updateRoute=ui.prototype.vg,ui.prototype.invalidateRoute=ui.prototype.bb,ui.prototype.rollbackRoute=ui.prototype.rv,ui.prototype.commitRoute=ui.prototype.zf,ui.prototype.startRoute=ui.prototype.uh,ui.prototype.clearPoints=ui.prototype.Fj,ui.prototype.removePoint=ui.prototype.pv,ui.prototype.addPointAt=ui.prototype.yf,ui.prototype.addPoint=ui.prototype.ne,ui.prototype.insertPointAt=ui.prototype.m,ui.prototype.insertPoint=ui.prototype.Kz,ui.prototype.setPointAt=ui.prototype.L,ui.prototype.setPoint=ui.prototype.dd,ui.prototype.getPoint=ui.prototype.i,ui.prototype.getOtherPort=ui.prototype.Cz,ui.prototype.getOtherNode=ui.prototype.To;var jc=null,Wc=null,ey=new wn(ui,"Normal",1),Ix=new wn(ui,"Orthogonal",2),Rx=new wn(ui,"AvoidsNodes",6),aS=new wn(ui,"AvoidsNodesStraight",7),ks=new wn(ui,"None",0),cl=new wn(ui,"Bezier",9),Th=new wn(ui,"JumpGap",10),Zf=new wn(ui,"JumpOver",11),ap=new wn(ui,"End",17),$m=new wn(ui,"Scale",18),e0=new wn(ui,"Stretch",19),sp=new wn(ui,"OrientAlong",21),lp=new wn(ui,"OrientPlus90",22),up=new wn(ui,"OrientMinus90",23),ty=new wn(ui,"OrientOpposite",24),t0=new wn(ui,"OrientUpright",25),hp=new wn(ui,"OrientPlus90Upright",26),dp=new wn(ui,"OrientMinus90Upright",27),n0=new wn(ui,"OrientUpright45",28),sS=16,lS=14,cp=8;ui.className="Link",ui.Normal=ey,ui.Orthogonal=Ix,ui.AvoidsNodes=Rx,ui.AvoidsNodesStraight=aS,ui.None=ks,ui.Bezier=cl,ui.JumpGap=Th,ui.JumpOver=Zf,ui.End=ap,ui.Scale=$m,ui.Stretch=e0,ui.OrientAlong=sp,ui.OrientPlus90=lp,ui.OrientMinus90=up,ui.OrientOpposite=ty,ui.OrientUpright=t0,ui.OrientPlus90Upright=hp,ui.OrientMinus90Upright=dp,ui.OrientUpright45=n0,ui.EndSegmentStep=8,ui.CurvinessStart=sS,ui.SpacingMin=lS,ui.OrthoShortCut=cp;function i0(a,y,x,E){Fi(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.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=nc&&(x[E]=ny)}fp.prototype.Yj=function(a,y,x,E){if(a>this.En||a+xthis.Fn||y+Ea&&(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,ee,re,oe){if(!(yee||xoe)){var se=y|0,ue=x|0,fe=a.ac[se][ue];if(fe>=nc&&fe=a.ac[se][ue]);)a.ac[se][ue]=fe,fe+=1,b?ue+=E:se+=E;if(se=b?ue:se,b)if(0se;x+=E)Vu(a,y,x,1,!b,z,ee,re,oe),Vu(a,y,x,-1,!b,z,ee,re,oe);else if(0se;y+=E)Vu(a,y,x,1,!b,z,ee,re,oe),Vu(a,y,x,-1,!b,z,ee,re,oe)}}function r0(a,y,x,E,b,z,ee,re,oe){y|=0,x|=0;var se=Oh,ue=nc;for(a.ac[y][x]=ue;se===Oh&&y>z&&yre&&xz&&yre&&x=Math.abs(re-se)&&1>=Math.abs(oe-ue))a.abort=!0;else{var fe=z.x;E=z.y,y=z.x+z.width;var ve=z.y+z.height;fe-=a.Nd,fe/=a.rc,E-=a.Od,E/=a.sc,y-=a.Nd,y/=a.rc,ve-=a.Od,ve/=a.sc,z=Math.max(0,Math.min(a.di,fe|0)),y=Math.min(a.di,Math.max(0,y|0)),fe=Math.max(0,Math.min(a.ei,E|0)),ve=Math.min(a.ei,Math.max(0,ve|0)),E=a.ac,re|=0,oe|=0,se|=0,ue|=0;var xe=x===0||x===90?1:-1;if(x=x===90||x===270,E[re][oe]===Oh?(r0(a,re,oe,xe,x,z,y,fe,ve),r0(a,re,oe,1,!x,z,y,fe,ve),r0(a,re,oe,-1,!x,z,y,fe,ve)):r0(a,re,oe,xe,x,re,oe,re,oe),E[se][ue]===Oh?(o0(a,se,ue,b===0||b===90?1:-1,b===90||b===270,z,y,fe,ve),o0(a,se,ue,1,!(b===90||b===270),z,y,fe,ve),o0(a,se,ue,-1,!(b===90||b===270),z,y,fe,ve)):o0(a,se,ue,xe,x,se,ue,se,ue),x=ai(),ee&&dS(a,se,ue,b,re,oe,x))for((x[0]!==se||x[1]!==ue)&&(x.unshift(ue),x.unshift(se)),(x[x.length-2]!==re||x[x.length-1]!==oe)&&(x.push(re),x.push(oe)),a=nc,b=x[x.length-2],ee=x[x.length-1],E[b][ee]=a++,z=x.length-4;0<=z;z-=2)for(b=x[z+2],ee=x[z+3],y=x[z],se=x[z+1];y>b?b++:yee?ee++:seb)ue--;else break;else if(fe>z)fe--;else break;var ve=re[ue][fe];if(ve===0||ve===iy)break;oe=ue,se=fe}for(;;){if(ue=E,fe=oe,ve=se,E===0?vez&&(ue=270,ve--):E===90?feb&&(ue=180,fe--):E===180?vez&&(ue=270,ve--):feb&&(ue=180,fe--),fe=re[fe][ve],ue!==E&&fe!==0&&fe!==iy){if(ee.push(oe),ee.push(se),dS(a,oe,se,ue,b,z,ee))return!0;ee.pop(),ee.pop()}if(re[oe][se]=iy,E===0){if(oe===y)return!1;oe--}else if(E===90){if(se===x)return!1;se--}else if(E===180){if(oe===y)return!1;oe++}else{if(se===x)return!1;se++}}}bt.Object.defineProperties(fp.prototype,{bounds:{get:function(){return new ht(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0=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 90180+a&&x<=360-a?270:0;case 13:return 180a&&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){e:if(!a.ap){x=a.ap,a.ap=!0;var E=null,b=a.node,z=b instanceof Or?b:null;if(z===null||z.isSubGraphExpanded)var ee=b.isTreeExpanded?b.findLinksConnected(a.port.portId):b.qx();else{if(!z.actualBounds.w()){a.ap=x;break e}E=z,ee=E.Lu()}z=a.pe.length=0;var re=a.port.ga(_i,Te.alloc()),oe=a.port.ga(Ar,Te.alloc());for(b=ht.allocAt(re.x,re.y,0,0),b.Ye(oe),Te.free(re),Te.free(oe),re=Te.allocAt(b.x+b.width/2,b.y+b.height/2),oe=a.port.li(),ee=ee.iterator;ee.next();){var se=ee.value;if(se.isVisible()&&se.fromPort!==se.toPort){var ue=se.fromPort===a.port||se.fromNode!==null&&se.fromNode.Td(E),fe=se.computeSpot(ue,a.port);if(fe.$c()&&(ue=ue?se.toPort:se.fromPort,ue!==null)){var ve=ue.part;if(ve!==null){var xe=ve.findVisibleNode();xe!==null&&xe!==ve&&(ve=xe,ue=ve.port),ue=se.computeOtherPoint(ve,ue),ve=re.ab(ue),ve-=oe,0>ve?ve+=360:360<=ve&&(ve-=360),fe=zx(b,fe,ve,se.isOrthogonal),fe===0?(fe=4,180ve&&(ve+=360)),xe=a.pe[z],xe===void 0?(xe=new ry(se,ve,fe),a.pe[z]=xe):(xe.link=se,xe.angle=ve,xe.Nc=fe),xe.hv.set(ue),z++}}}}for(Te.free(re),a.pe.sort(Hc.prototype.j),oe=a.pe.length,E=-1,z=re=0;zMath.abs(Fe)?(rt=Math.abs(Fe)/ve,ve=Math.abs(Fe)):rt=1;break;case 2:xe>Math.abs(at)?(rt=Math.abs(at)/xe,xe=Math.abs(at)):rt=1;break;case 1:fe>Math.abs(Fe)?(rt=Math.abs(Fe)/fe,fe=Math.abs(Fe)):rt=1;break;default:case 4:ue>Math.abs(at)?(rt=Math.abs(at)/ue,ue=Math.abs(at)):rt=1}We=0}var Jt=dt.Zo;if(E===Uv){switch(dt=dt.link.computeThickness(),dt*=rt,Jt.set(Lt),Pe){case 8:Jt.x=Lt.x+Fe/2+ve/2-We-dt/2;break;case 2:Jt.y=Lt.y+at/2+xe/2-We-dt/2;break;case 1:Jt.x=Lt.x+Fe/2-fe/2+We+dt/2;break;default:case 4:Jt.y=Lt.y+at/2-ue/2+We+dt/2}We+=dt}else{var Ei=.5;E===Um&&(Ei=(dt.Uo+1)/(dt.Gl+1)),Jt.x=Lt.x+Fe*Ei,Jt.y=Lt.y+at*Ei}}}for(Te.free(re),Te.free(oe),Te.free(ee),Te.free(se),Lt=a.pe,z=0;zy.Nc?1:a.angley.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=y-1?(z=0,E=x,b+=ee+20,ee=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,ee=this.network.vertexes.iterator;ee.next();){var re=ee.value.node;if(!(re===null||re instanceof ui)&&(gp(re),this.rh(re))){var oe=re.measuredBounds,se=oe.width;oe=oe.height,re.moveTo(x,E),re instanceof Or&&(re.rh=!1),x+=Math.max(se,50)+20,z=Math.max(z,Math.max(oe,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 Or&&a.rh)};function fd(a,y,x,E,b,z,ee,re){for(x=x.iterator;x.next();){var oe=x.value;E&&!oe.isTopLevel||b!==null&&!b(oe)||!oe.canLayout()||(z&&oe instanceof ki?oe.isLinkLabel||(oe instanceof Or&&oe.layout===null?fd(a,y,oe.memberParts,!1,b,z,ee,re):(gp(oe),y.add(oe))):ee&&oe instanceof ui?y.add(oe):!re||!oe.Zc()||oe instanceof ki||(gp(oe),y.add(oe)))}}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 ht),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},na.prototype.ex=function(a){var y=new vn;return a instanceof qt?(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 Or?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(_i),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},bt.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){Fi(this),this.Sc=a,this.wf=new vn,this.ye=new vn,this.Es=new $t,this.zs=new $t}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 vn,this.ye=new vn,this.Es=new $t,this.zs=new $t},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,1y?1:0):1:y!==null?-1:0}bt.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=ht.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),ht.free(x),!(a instanceof Or)&&(a=a.locationObject.ga(Di),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 vn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new vn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new vn,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 dn,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 "+(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},bt.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 Re(NaN,NaN).freeze(),this.tf=new Re(10,10).freeze(),this.Jb=pp,this.Rb=s0,this.nd=mp,this.hd=gS,a&&Object.assign(this,a)}Dt($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:Ge("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 Or)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 ee=this.wrappingWidth;switch(isNaN(ee)&&a!==null?(y=a.padding,ee=Math.max(a.viewportBounds.width-y.left-y.right,0)):ee=Math.max(this.wrappingWidth,0),0>=z&&0>=ee&&(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 re=y,oe=x,se=ht.alloc(),ue=Math.max(this.cellSize.width,1);if(!isFinite(ue))for(var fe=ue=0;fez-1||0ee)&&(E.push(new ht(0,Fe,ee+re,We)),Je=0,Pe=xe,Fe+=We,We=0),We=Math.max(We,Jt),ve){case lu:dt=-dt.width;break;default:dt=0}switch(at.moveTo(Pe+dt,Fe),ve){case lu:Pe-=Lt;break;default:Pe+=Lt}Je++}E.push(new ht(0,Fe,ee+re,We)),ht.free(se);break;case pp:for(oe=ee,ue=z,fe=y,ve=x,ee=ht.alloc(),xe=Math.max(this.cellSize.width,1),z=Fe=se=0,re=Te.alloc(),Pe=0;Pe=se&&(oe-=se),se=at=0,Lt=Math.max(this.cellSize.height,1),dt=z=0,Jt=!0,Je=Te.alloc(),Ei=0;Eiue-1||0oe){for(E.push(new ht(0,Jt?rt-z:rt,oe+fe,dt+z+ve)),ji=0;jise&&(z.width+=z.x-se,z.x=se);ht.free(ee)}for(re=z=ee=b=0;rey?1:0}bt.Object.defineProperties($a.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0fe)){var Fe=fe+Qg(Pe);Pe.pc(Fe,!0),Ev(Pe,Fe,fe)}}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 vn,x=a.nodeDataArray,E=0;E=E)return"[]";var b=new Gi;b.add("["),x&&1E)return;Mi(a.Tc,E)}Ta(a,"nodeDataArray",pa,"nodeDataArray",a,y,null,E,null),a.qp(y)}Ce.nA=function(a){if(Fn(a))for(var y=a.length,x=0;xy&&(y=a.length),Xn(a,y,x),Ta(this,"",$o,"",a,null,x,null,y)},Ce.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&Ge("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];Mi(a,y),Ta(this,"",pa,"",a,x,null,y,null)},Ce.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;Ge("getCategoryForNodeData found a non-string category for "+a+": "+y)},Ce.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&&(ea(a,x,y),Ta(this,"nodeCategory",To,x,a,E,y))}else ea(a,x,y)}},Ce.lm=function(a,y){this.jm(y,this.Ro(a))},Ce.Tl=function(){return!1},Ce.Wj=function(){return!1},Ce.ri=function(){return!1},Ce.xs=function(){return!1},Ce.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]:Pn.go!==void 0&&Pn.go[a]?Pn.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 ea(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){}}bt.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===""&&Ge("Model.nodeKeyProperty may not be the empty string"),0"+fl(this,b,!1)}return y},Ce.Qv=function(a,y){this.linkKeyProperty===""&&Ge("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 vn,z=new vn,ee=new vn,re=this.vh;a.changes.each(function(ue){ue.model===E&&(ue.modelChange==="linkDataArray"?ue.change===$o?b.add(ue.newValue):ue.change===pa&&ee.add(ue.oldValue):E.Jc(ue.object)?z.add(ue.object):ue.object!==null&&(ue.object!==null&&re&&re.contains(ue.object)?re.get(ue.object).each(function(fe){E.Jc(fe)&&z.add(fe)}):ue.object instanceof Xi||E.lb(ue.object)||BS(E,ue.object).each(function(fe){z.add(fe)})))});var oe=this.il;oe.clear(),b.each(function(ue){oe.add(E.Ac(ue)),y||z.add(ue)});var se=this.kl;return se.clear(),ee.each(function(ue){se.add(E.Ac(ue)),y&&z.add(ue)}),a=E.cloneDeep(z.Fa()),0E.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,zt(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)}},Ce=io.prototype,Ce.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),ea(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Ce.yx=function(a){return fl(this,a,!0)},Ce.wv=function(a,y){Yf(this,a,y,!0)},Ce.Bx=function(a){return fl(this,a,!1)},Ce.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;Ge((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),ea(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 ea(y,b,x)}}Ce.zx=function(a){return g0(this,a,!0)},Ce.xv=function(a,y){Uf(this,a,y,!0)},Ce.Cx=function(a){return g0(this,a,!1)},Ce.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&&(ea(y,b,x),Ta(a,E?"linkFromPortId":"linkToPortId",To,b,y,z,x),typeof b=="string"&&a.La(y,b))}else ea(y,b,x)}}Ce.Ef=function(a){if(a===null)return p0;var y=this.je;return y===""?p0:(a=Ca(a,y),a===void 0?p0:a)},Ce.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;zb||(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&&Ge(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Ce.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=Ca(a,y),y!==void 0)){if(pd(y))return y;Ge("Key value for link data "+a+" is not a number or a string: "+y)}}},Ce.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&&(ea(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 ea(a,x,y)}},Ce.jh=function(a){return a===null&&Ge("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&pd(a)?this.wb.I(a):null},Ce.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))){ea(a,y,x);return}if(typeof x=="string"){for(E=2;this.wb.contains(x+E);)E++;ea(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;ea(a,y,x)}}}}},Ce.Jc=function(a){return a===null?!1:this.$f.contains(a)},Ce.fi=function(a){a!==null&&(Cr(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&&Ge("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)}Ce.Ey=function(a){if(Array.isArray(a))for(var y=a.length,x=0;xE)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=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new dn;y.addAll(a.iterator),a=new dn;var x=new dn,E=this.sort(y),b,z,ee=this.Jp,re=this.arrangement,oe=this.nodeDiameterFormula,se=this.radius;(!isFinite(se)||0>=se)&&(se=NaN);var ue=this.aspectRatio;(!isFinite(ue)||0>=ue)&&(ue=1);var fe=this.startAngle;isFinite(fe)||(fe=0);var ve=this.sweepAngle;if((!isFinite(ve)||360ve)&&(ve=360),y=this.spacing,isFinite(y)||(y=NaN),re===tu&&oe===Zc?re=eu:re===tu&&oe!==Zc&&(re=this.arrangement),(this.direction===ic||this.direction===Xf)&&this.sorting!==_f){for(oe=0;!(oe>=E.length)&&(a.add(E.M(oe)),!(oe+1>=E.length));oe+=2)x.add(E.M(oe+1));this.direction===ic?(this.arrangement===tu&&a.reverse(),E=new dn,E.addAll(a),E.addAll(x)):(this.arrangement===tu&&x.reverse(),E=new dn,E.addAll(x),E.addAll(a))}oe=E.length;for(var xe=z=b=0;xeve&&(xe===0||xe===E.length-1)&&(Fe/=2),b+=Fe,z++}if(isNaN(se)||re===tu){if(isNaN(y)&&(y=6),re!==eu&&re!==tu){for(z=-1/0,ee=0;eese?(se=b,z=se*ue):ee=xe/(360<=ve?oe:oe-1)}if(this.kw=re,this.lc=se,this.Zm=ue,this.lw=fe,this.Wp=ve,this.Ti=y,this.me=z,this.Jp=ee,y=E,E=this.kw,re=this.lc,se=this.lw,ue=this.Wp,fe=this.Ti,ve=this.me,oe=this.Jp,this.direction!==ic&&this.direction!==Xf||E!==tu)if(this.direction===ic||this.direction===Xf){switch(ee=0,E){case md:ee=180*v0(this,re,ve,se,oe)/Math.PI;break;case eu:oe=y=0,ee=a.first(),ee!==null&&(y=yd(ee,Math.PI/2)),ee=x.first(),ee!==null&&(oe=yd(ee,Math.PI/2)),ee=180*v0(this,re,ve,se,fe+(y+oe)/2)/Math.PI;break;case Ih:ee=ue/y.length}if(this.direction===ic){switch(E){case md:Pp(this,a,se,vd);break;case eu:wp(this,a,se,vd);break;case Ih:xp(this,a,ue/2,se,vd)}switch(E){case md:Pp(this,x,se+ee,Bs);break;case eu:wp(this,x,se+ee,Bs);break;case Ih:xp(this,x,ue/2,se+ee,Bs)}}else{switch(E){case md:Pp(this,x,se,vd);break;case eu:wp(this,x,se,vd);break;case Ih:xp(this,x,ue/2,se,vd)}switch(E){case md:Pp(this,a,se+ee,Bs);break;case eu:wp(this,a,se+ee,Bs);break;case Ih:xp(this,a,ue/2,se+ee,Bs)}}}else switch(E){case md:Pp(this,y,se,this.direction);break;case eu:wp(this,y,se,this.direction);break;case Ih:xp(this,y,ue,se,this.direction);break;case tu:RS(this,y,ue,se,this.direction)}else RS(this,y,ue,se-ue/2,Bs)}this.updateParts(),this.network=null,this.isValidLayout=!0};function xp(a,y,x,E,b){var z=a.Wp,ee=a.lc;a=a.me,E=E*Math.PI/180,x=x*Math.PI/180;for(var re=y.length,oe=0;oex){for(z=E+(b===Bs?z:-z);0>z;)z+=360;z%=360,180=ue.length-1));fe++)WS(a,oe,se,ue,fe,b,z)||HS(a,oe,se,ue,fe,b,z),oe=z.x,se=z.y;if(Te.free(z),a.mj++,!(23Math.abs(xe)?Math.abs(oe-z)<(ue[0].width+ue[ue.length-1].width)/2&&(ee=0):ee=0Math.abs(ve)?0:ve,oe=Math.abs(z)>Math.abs(fe)?0fe:0a.mj?a.lc-ee/(2*Math.PI):5>ue.length&&10=fe.length-1));ve++)WS(a,oe,se,fe,ve,b,ue)||HS(a,oe,se,fe,ve,b,ue),oe=ue.x,se=ue.y;if(Te.free(ue),a.mj++,!(23a.mj?a.lc-z/(2*Math.PI):a.lc-(0re){if(z=y-a,z<-re)return ee.x=z,ee.y=se,!1;ue=!0}}else if(z=y-a,z<-re){if(z=y+a,z>re)return ee.x=z,ee.y=se,!1;ue=!0}return se=Math.sqrt(1-Math.min(1,z*z/(re*re)))*oe,0>x!==ue&&(se=-se),Math.abs(x-se)>(E[b].height+E[b+1].height)/2?(ee.x=z,ee.y=se,!1):(ee.x=z,ee.y=se,!0)}function HS(a,y,x,E,b,z,ee){var re=a.lc,oe=a.me,se=0;if(a=(E[b].height+E[b+1].height)/2+a.Ti,E=!1,0<=y!=(z===Bs)){if(z=x-a,z<-oe){if(z=x+a,z>oe){ee.x=se,ee.y=z;return}E=!0}}else if(z=x+a,z>oe){if(z=x-a,z<-oe){ee.x=se,ee.y=z;return}E=!0}se=Math.sqrt(1-Math.min(1,z*z/(oe*oe)))*re,0>y!==E&&(se=-se),ee.x=se,ee.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 Te(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 ee=0,re=E!==void 0&&b!==void 0?b/(z+1):Math.PI/(2*(z+1)),oe=0,se=0;se<=z;se++){E!==void 0&&b!==void 0?oe=E+se*b/z:oe=se*Math.PI/(2*z);var ue=Math.sin(oe);ee+=Math.sqrt(1-a*a*ue*ue)*re}return E!==void 0&&b!==void 0?(y>x?y:x)*ee:4*(y>x?y:x)*ee}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,ee=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(E+=Math.PI/2);for(var re=0;;re++){var oe=Math.sin(E+re*a);if(ee+=(y>x?y:x)*Math.sqrt(1-z*z*oe*oe)*a,ee>=b)return re*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:Ge("Invalid sorting type.")}return a};function Zx(a){for(var y=[],x=0;xb&&(b=re,z=ee)}else for(ee=0;eeb&&(b=re,z=ee);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),ee=z.sourceEdges;ee.next();)b=a.indexOf(ee.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;xy[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;xy[x[Pe]].indexOf(x[Pe===x.length-1?0:Pe+1])&&xe.push(Pe===x.length-1?0:Pe+1);if(xe.length===0)for(Pe=0;Pex.indexOf(Jt)||Ltx.indexOf(Jt)||Lt=Fe?Lt+1:Lt)),We+=Lt=Fe&&Lt++,at>=Fe&&at++,Lt>at&&(dt=at,at=Lt,Lt=dt),at-Lt<(x.length+2)/2==(Ltxe||xe===ue||(Pe=xe>ue?xe-ue:ue-xe,fe+=xeee-Pe?1:-1);x.splice(0>fe?ue:ue+1,0,oe),E.splice(re,1),re--}else z=!1;if(z)break;x.push(E[0]),E.splice(0,1)}for(y=0;y=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==tu&&a!==eu&&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 eu=new wn(la,"ConstantSpacing",0),md=new wn(la,"ConstantDistance",1),Ih=new wn(la,"ConstantAngle",2),tu=new wn(la,"Packed",3),Bs=new wn(la,"Clockwise",4),vd=new wn(la,"Counterclockwise",5),ic=new wn(la,"BidirectionalLeft",6),Xf=new wn(la,"BidirectionalRight",7),y0=new wn(la,"Forwards",8),S0=new wn(la,"Reverse",9),x0=new wn(la,"Ascending",10),w0=new wn(la,"Descending",11),_f=new wn(la,"Optimized",12),P0=new wn(la,"Pythagorean",13),Zc=new wn(la,"Circular",14);la.className="CircularLayout",la.ConstantSpacing=eu,la.ConstantDistance=md,la.ConstantAngle=Ih,la.Packed=tu,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(0this.Pl||Math.abs(a)a&&0re?(b=ve.x+ve.width/2,z=ve.y+ve.height/2,se[0]=new Te(ve.x+ve.width+E.width,ve.y),se[1]=new Te(ve.x,ve.y+ve.height+E.height),re=2):(oe=VS(se,re,b,z,ve.width,ve.height,E),fe=se[oe],xe=new Te(fe.x+ve.width+E.width,fe.y),ve=new Te(fe.x,fe.y+ve.height+E.height),oe+1this.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++,2a.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=ee))){for(var se=re=0,ue=oe.count-ee;uexe&&(xe=1),re=mt.sqrt((re+xe+se*se*4/(ee*ee))/xe),ee=(re-1)*ue/2,re=(re-1)*fe/2,b.bounds=new ht(z-ve.x-ee,oe-ve.y-re,ue+2*ee,fe+2*re),b.focus=new Te(ve.x+ee,ve.y+re)}}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,ee=b.Tv;E.bounds=new ht(E.centerX-z,E.centerY-ee,b.Ss,b.Qs),E.focus=new Te(z,ee),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,ee=y.height;y.We!==null&&0=fe.Vd?oe++:(re=!0,se++,ee+=Math.atan2(y.centerY-fe.centerY,y.centerX-fe.centerX))}if(oe!==0){for(0>1)+se)*(re%2===0?1:-1),oe.centerX=E+ue*Math.cos(fe),oe.centerY=b+ue*Math.sin(fe),re++}}}}function VS(a,y,x,E,b,z,ee){var re=9e19,oe=-1,se=0;e:for(;seue.y&&a[ve].x-ue.xue.x&&a[ve].y-ue.yy+z?(x=E+b-ee,a=a-y-z,mt.sqrt(x*x+a*a)):a+xee+re?a>y+z?(x=E-ee-re,a=a-y-z,mt.sqrt(x*x+a*a)):a+xy+z?a-(y+z):a+x=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,ee=1;eez-x)?y.sort(function(Fe,Je){return Fe===null||Je===null||Fe===Je?0:Fe.centerX-Je.centerX}):y.sort(function(Fe,Je){return Fe===null||Je===null||Fe===Je?0:Fe.centerY-Je.centerY}),x=a.Zf;var se=E=re=0;for(z=0;zx||se-oe>x){if(b)break}else if(ue-xe>x||xe-ue>x){if(!b)break}else{var Pe=GS(ee,ve);1>Pe?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new E0),Pe=E.random(),re=E.random(),oe>se?(E=Math.abs(ve.bounds.right-ee.bounds.x),E=(1+E)*Pe):oexe?(se=Math.abs(ve.bounds.bottom-ee.bounds.y),se=(1+se)*re):oefe?(fe=a.randomNumberGenerator,fe===null&&(a.randomNumberGenerator=fe=new E0),re=fe.random(),fe=fe.random(),E=(E>oe?1:-1)*(1+(z.width>x.width?z.width:x.width))*re,se=(ee>ue?1:-1)*(1+(z.height>x.height?z.height:x.height))*fe):(re=re.stiffness*(fe-re.length),E=(oe-E)/fe*re,se=(ue-ee)/fe*re),x.forceX+=E,x.forceY+=se,z.forceX-=E,z.forceY-=se;for(b=E=0;ba.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=ht.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,ht.free(x)}x=ht.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()}ht.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},bt.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&&0Fe&&0Fe&&0a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]ee)for(var ue=ee+1;ueoe;ue--)fe=E[ue],fe.near===se&&fe.Dj===se.Dj||re++;var ve;if(0<=x)for(oe=E[ee].sourceEdgesArrayAccess,se=0;seFe||fe===Fe&&xe>Pe)&&re++,Jefe||Fe===fe&&Pe>xe)&&re++}}}if(0>=x){for(oe=E[ee].destinationEdgesArrayAccess,se=0;seFe||fe===Fe&&ue>Je)&&re++,Pefe||Fe===fe&&Je>ue)&&re++)}for(z[ee*b+ee]=re,oe=ee+1;oe=x){for(re=E[ee].destinationEdgesArrayAccess,at=E[oe].destinationEdgesArrayAccess,se=0;se=x&&(oe=re.sourceEdgesArrayAccess);var se=null;0<=x&&(se=re.destinationEdgesArrayAccess);var ue=0,fe=0,ve=re.near;if(ve!==null&&ve.layer===re.layer&&(ue+=ve.column-1,fe++),oe!==null)for(ve=0;ve=x&&(oe=re.sourceEdgesArrayAccess);var se=null;0<=x&&(se=re.destinationEdgesArrayAccess);var ue=0,fe=[],ve=re.near;if(ve!==null&&ve.layer===re.layer&&(fe[ue]=ve.column-1,ue++),re=void 0,oe!==null)for(ve=0;ve>1,z[ee]=ue&1?fe[se]:fe[se-1]+fe[se]>>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 ee=y.destinationEdges;ee.next();){var re=ee.value,oe=re.toVertex,se=y.layer-oe.layer;re=a.linkMinLength(re),se===re&&bp(a,oe,x,E,b,z)}if(z)for(ee=y.sourceEdges;ee.next();)re=ee.value,oe=re.fromVertex,se=oe.layer-y.layer,re=a.linkMinLength(re),se===re&&bp(a,oe,x,E,b,z)}}function xy(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var ee=y.destinationEdges;ee.next();)xy(a,ee.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,ee=this.network.vertexes.iterator;ee.next();){var re=ee.value;if(re.valid){for(var oe=0,se=re.destinationEdges;se.next();)se.value.toVertex.valid&&oe++;se=0;for(var ue=re.sourceEdges;ue.next();)ue.value.fromVertex.valid&&se++;(b===null||zy.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.LlE){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;xee&&bp(a,re,0,-1,!0,!1)}for(bp(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,E=1/0,re=0,oe=null,ee=a.network.vertexes.iterator;ee.next();){var se=ee.value;if(se.component===1){var ue=0,fe=!1,ve=se.sourceEdgesArrayAccess;b=ve.length;for(var xe=0;xez)&&!ue&&(re=ee,z=se)}if(0>E){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer-=b);y.component=0}else re.component=0}}}function tx(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;Ez.portFromColOffset&&(x=!0,y[E]=z,y[E+1]=b)}}for(x=0;xz.portToColOffset&&(E=!0,y[x]=z,y[x+1]=b)}for(x=0;x=ee;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>=ee;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=ee;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=ee;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>=ee;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=ee;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,ee=0,re=a+1;(E=this.countCrossings())=ee;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>=ee;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=ee;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=ee;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>=ee;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=ee;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),ee=Sy(a,y,x);for(x=0;xz+1&&(ve+=4*(rt-z),xe+=4*(rt-(z+1)))}for(dt=E[z].destinationEdges.iterator,dt.reset();dt.next();)if(rt=dt.value,at=rt.toVertex,rt.valid&&at.layer===y){for(rt=0;E[rt]!==at;)rt++;rt===z+1&&(xe+=1)}for(dt=E[z+1].sourceEdges.iterator,dt.reset();dt.next();)if(rt=dt.value,at=rt.fromVertex,rt.valid&&at.layer===y){for(rt=0;E[rt]!==at;)rt++;rtz+1&&(ve+=4*(rt-(z+1)),xe+=4*(rt-z))}for(dt=E[z+1].destinationEdges.iterator,dt.reset();dt.next();)if(rt=dt.value,at=rt.toVertex,rt.valid&&at.layer===y){for(rt=0;E[rt]!==at;)rt++;rt===z&&(ve+=1)}rt=at=0,dt=ee[E[z].index];var Lt=re[E[z].index],Jt=ee[E[z+1].index],Ei=re[E[z+1].index];dt!==-1&&(at+=Math.abs(dt-Pe),rt+=Math.abs(dt-We)),Lt!==-1&&(at+=Math.abs(Lt-Pe),rt+=Math.abs(Lt-We)),Jt!==-1&&(at+=Math.abs(Jt-Fe),rt+=Math.abs(Jt-Je)),Ei!==-1&&(at+=Math.abs(Ei-Fe),rt+=Math.abs(Ei-Je)),(xe>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],ee=Sy(a,y,-1);if(0x)for(E=0;EE-1||ue-b[E-1].column-1>fe+a.nodeMinColumnSpace(b[E-1],!1)?xe=ue-1:xe=ue,fe=E+1>=z||b[E+1].column-ue-1>ve+a.nodeMinColumnSpace(b[E+1],!0)?ue+1:ue;var Pe=ve=0,Fe=0;if(0>=x)for(var Je=b[E].sourceEdges.iterator;Je.next();){var We=Je.value,rt=We.fromVertex;if(We.valid&&rt.layer!==y){var at=yy(We),dt=We.portFromColOffset;We=We.portToColOffset,rt=rt.column,ve+=(Math.abs(ue+We-(rt+dt))+1)*at,Pe+=(Math.abs(xe+We-(rt+dt))+1)*at,Fe+=(Math.abs(fe+We-(rt+dt))+1)*at}}if(0<=x)for(Je=b[E].destinationEdges.iterator;Je.next();)We=Je.value,rt=We.toVertex,We.valid&&rt.layer!==y&&(at=yy(We),dt=We.portFromColOffset,We=We.portToColOffset,rt=rt.column,ve+=(Math.abs(ue+dt-(rt+We))+1)*at,Pe+=(Math.abs(xe+dt-(rt+We))+1)*at,Fe+=(Math.abs(fe+dt-(rt+We))+1)*at);We=dt=at=0,Je=ee[b[E].index],rt=re[b[E].index],Je!==-1&&(at+=Math.abs(Je-ue),dt+=Math.abs(Je-xe),We+=Math.abs(Je-fe)),rt!==-1&&(at+=Math.abs(rt-ue),dt+=Math.abs(rt-xe),We+=Math.abs(rt-fe)),Pe=ee[x]?ue=oe:se<=ee[x]&&(ue=se));ue!==re&&(z=!0,E[x].column=ue)}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),ee=a.nodeMinColumnSpace(b,!1);if(b.column-z<=y&&b.column+ee>=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 ee=a.network.vertexes.iterator;ee.next();){E=ee.value;var re=E.column-a.nodeMinColumnSpace(E,!0),oe=E.column+a.nodeMinColumnSpace(E,!1);re<=y&&oe>=y&&(b[E.layer]=!0),re<=x&&oe>=x&&(z[E.layer]=!0)}for(re=!0,x=!1,E=0;E<=a.Ia;E++)re=re&&!(b[E]&&z[E]);if(re)for(ee.reset();ee.next();)a=ee.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;xz?Ml(a,b):eey)for(x=a.Ra;0<=x;x--)for(b=Zs(a),z=A0(a),E=z+1;zz?Ml(a,b):eex)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;zx)for(ee=a.Ra;0x)for(E.reset();E.next();)x=E.value,b[x.component]&&(x.column+=1)}function qx(a){for(var y=ai(),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 vn,$x(y,x);var z=null,ee=null,re=null,oe=null,se=(a.ve&1)!==0,ue=(a.ve&2)!==0,fe=(a.ve&4)!==0,ve=(a.ve&8)!==0;for(se&&(a.verticalAlignment(y,x,!0),z=b0(a,y,!0,!1)),y.reverse(),fe&&(a.verticalAlignment(y,x,!1),re=b0(a,y,!1,!1)),E=Wn(y),b=E.next();!b.done;b=E.next())b.value.reverse();ve&&(a.verticalAlignment(y,x,!1),oe=b0(a,y,!1,!0)),y.reverse(),ue&&(a.verticalAlignment(y,x,!0),ee=b0(a,y,!0,!0)),Li(y),a.u(z,ee,re,oe),a.network.vertexes.each(function(xe){var Pe=ai();se&&Pe.push(z.get(xe)),ue&&Pe.push(ee.get(xe)),fe&&Pe.push(re.get(xe)),ve&&Pe.push(oe.get(xe)),Pe.sort(function(Je,We){return Je-We});var Fe=Pe.length;Fe=(Pe[Math.floor((Fe-1)/2)]+Pe[Math.ceil((Fe-1)/2)])/2,Li(Pe),xe.zc=Fe})}function $x(a,y){for(var x=a.length,E=1;Eue)&&y.add(fe);z++}b=ue}}}Eo.prototype.verticalAlignment=function(a,y,x){ew(a),a=Wn(a);for(var E=a.next();!E.done;E=a.next()){var b=-1;E=Wn(E.value);for(var z=E.next();!z.done;z=E.next()){z=z.value;var ee=x?Fy(z):iw(z),re=ee.length;if(0=y[x].length)&&(ee=y[x][0],ee.sd===ee)){ee.sd.shift===1/0&&(ee.sd.shift=0),ee=x,re=0;do{for(z=y[ee][re];z.align!==z.root;)z=z.align,ee++,0a&&Ge("Could not determine previous vertex in layer"),y[x][a-1]}Eo.prototype.u=function(a){for(var y=[],x=0;xee;ee++)if(y[ee]){var re=tw(this,y[ee],E,b,ee);reee;z={delta:z.delta},ee++)y[ee]&&(z.delta=ee===0||ee===2?E[x]-E[ee]:b[x]-b[ee],z.delta!==0&&y[ee].each(function(oe){return function(se){se.value+=oe.delta}}(z)));Li(E),Li(b)};function tw(a,y,x,E,b){if(!y||y.count===0)return x[b]=0,E[b]=0,1/0;var z=1/0,ee=-1/0;return y.each(function(re){var oe=re.key;re=re.value,oe=a.K===90||a.K===270?oe.width:oe.height,reee&&(ee=re+oe)}),x[b]=z,E[b]=ee,ee-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=fe.bounds.bottom?(fe=fe.bounds.y+fe.bounds.height,y.m(Fe++,dt,fe+Jt),y.m(Fe++,dt,fe),y.m(Fe++,dt,fe-at)):(y.m(Fe++,dt,Lt+Jt),y.m(Fe++,dt,Lt),y.m(Fe++,dt,Lt-at)):this.K===270?Lt<=fe.bounds.y?(fe=fe.bounds.y,y.m(Fe++,dt,fe-at),y.m(Fe++,dt,fe),y.m(Fe++,dt,fe+Jt)):(y.m(Fe++,dt,Lt-at),y.m(Fe++,dt,Lt),y.m(Fe++,dt,Lt+Jt)):this.K===0&&(dt>=fe.bounds.right?(fe=fe.bounds.x+fe.bounds.width,y.m(Fe++,fe+Jt,Lt),y.m(Fe++,fe,Lt),y.m(Fe++,fe-at,Lt)):(y.m(Fe++,dt+Jt,Lt),y.m(Fe++,dt,Lt),y.m(Fe++,dt-at,Lt)));else{y.m(Fe++,We,rt);var Ei=0;this.K===180||this.K===0?((this.K===180?dt>=fe.bounds.right:dt<=fe.bounds.x)&&(Ei=(this.K===0?-at:Jt)/2),y.m(Fe++,We+Ei,Lt)):((this.K===270?Lt>=fe.bounds.bottom:Lt<=fe.bounds.y)&&(Ei=(this.K===90?-at:Jt)/2),y.m(Fe++,dt,rt+Ei)),y.m(Fe++,dt,Lt)}}else at=Math.max(10,this.he[Je.layer]),Jt=Math.max(10,this.Ld[Je.layer]),ve?this.K===180?(y.m(Fe++,dt-at-Pe,Lt),y.m(Fe++,Math.min(dt-at+Pe/2,dt),Lt),y.m(Fe++,dt,Lt),y.m(Fe++,dt,Lt),y.m(Fe++,Math.max(dt+Jt-Pe/2,dt),Lt),y.m(Fe++,dt+Jt+Pe,Lt)):this.K===90?(y.m(Fe++,dt,Lt+Jt+Pe),y.m(Fe++,dt,Math.max(Lt+Jt-Pe/2,Lt)),y.m(Fe++,dt,Lt),y.m(Fe++,dt,Lt),y.m(Fe++,dt,Math.min(Lt-at+Pe/2,Lt)),y.m(Fe++,dt,Lt-at-Pe)):this.K===270?(y.m(Fe++,dt,Lt-at-Pe),y.m(Fe++,dt,Math.min(Lt-at+Pe/2,Lt)),y.m(Fe++,dt,Lt),y.m(Fe++,dt,Lt),y.m(Fe++,dt,Math.max(Lt+Jt-Pe/2,Lt)),y.m(Fe++,dt,Lt+Jt+Pe)):(y.m(Fe++,dt+Jt+Pe,Lt),y.m(Fe++,Math.max(dt+Jt-Pe/2,dt),Lt),y.m(Fe++,dt,Lt),y.m(Fe++,dt,Lt),y.m(Fe++,Math.min(dt-at+Pe/2,dt),Lt),y.m(Fe++,dt-at-Pe,Lt)):y.m(Fe++,dt,Lt)}fe=Je}(re===null||se!==Vi||xe)&&(We=y.i(Fe-1).x,rt=y.i(Fe-1).y,dt=y.i(Fe).x,Lt=y.i(Fe).y,xe?(Pe=this.Ld[ue.layer],this.K===180||this.K===0?(xe=rt,xe>=ue.bounds.y&&xe<=ue.bounds.bottom&&(this.K===180?dt>=ue.bounds.x:dt<=ue.bounds.right)&&(fe=ue.centerX+(this.K===180?-Pe:Pe),xe=ue.bounds.x&&xe<=ue.bounds.right&&(this.K===270?Lt>=ue.bounds.y:Lt<=ue.bounds.bottom)&&(fe=ue.centerY+(this.K===270?-Pe:Pe),xe=ue.bounds.x?(fe=ue.bounds.x+ue.bounds.width,y.L(Fe-2,fe,rt),y.L(Fe-1,fe+Jt,rt)):this.K===90&&Lt<=ue.bounds.bottom?(fe=ue.bounds.y,y.L(Fe-2,We,fe),y.L(Fe-1,We,fe-at)):this.K===270&&Lt>=ue.bounds.y?(fe=ue.bounds.y+ue.bounds.height,y.L(Fe-2,We,fe),y.L(Fe-1,We,fe+Jt)):this.K===0&&dt<=ue.bounds.right&&(fe=ue.bounds.x,y.L(Fe-2,fe,rt),y.L(Fe-1,fe-at,rt))):(at=Math.max(10,this.he[ue.layer]),Jt=Math.max(10,this.Ld[ue.layer]),xe=0,this.K===180||this.K===0?((this.K===180?dt<=ue.bounds.x:dt>=ue.bounds.right)&&(xe=(this.K===0?Jt:-at)/2),y.m(Fe++,dt+xe,rt)):((this.K===270?Lt<=ue.bounds.y:Lt>=ue.bounds.bottom)&&(xe=(this.K===90?Jt:-at)/2),y.m(Fe++,We,Lt+xe)),y.m(Fe++,dt,Lt)))}else{for(;ue!==null&&ue!==fe;){for(at=Je=null,ue=ue.destinationEdges.iterator;ue.next()&&(We=ue.value,We.link!==x.link||(Je=We.toVertex,at=We.fromVertex,at.node!==null&&(at=null),Je.node!==null)););if(Je===null)break;Je!==fe&&(We=y.i(Fe-1).x,rt=y.i(Fe-1).y,dt=Je.centerX,Lt=Je.centerY,xe?this.K===180||this.K===0?(at!==null?at.centerY:rt)!==Lt&&(at=this.Ta[Je.layer]+this.Rf.x,Fe===y.firstPickIndex+1&&(at=this.K===0?Math.max(at,We):Math.min(at,We)),y.m(Fe++,at,rt),y.m(Fe++,at,Lt)):(at!==null?at.centerX:We)!==dt&&(at=this.Ta[Je.layer]+this.Rf.y,Fe===y.firstPickIndex+1&&(at=this.K===90?Math.max(at,rt):Math.min(at,rt)),y.m(Fe++,We,at),y.m(Fe++,dt,at)):(at=Math.max(10,this.he[Je.layer]),Jt=Math.max(10,this.Ld[Je.layer]),ve?this.K===180?(y.m(Fe++,dt+Jt+Pe,Lt),y.m(Fe++,Math.max(dt+Jt-Pe/2,dt),Lt),y.m(Fe++,dt,Lt),y.m(Fe++,dt,Lt),y.m(Fe++,Math.min(dt-at+Pe/2,dt),Lt),y.m(Fe++,dt-at-Pe,Lt)):this.K===90?(y.m(Fe++,dt,Lt-at-Pe),y.m(Fe++,dt,Math.min(Lt-at+Pe/2,Lt)),y.m(Fe++,dt,Lt),y.m(Fe++,dt,Lt),y.m(Fe++,dt,Math.max(Lt+Jt-Pe/2,Lt)),y.m(Fe++,dt,Lt+Jt+Pe)):this.K===270?(y.m(Fe++,dt,Lt+Jt+Pe),y.m(Fe++,dt,Math.max(Lt+Jt-Pe/2,Lt)),y.m(Fe++,dt,Lt),y.m(Fe++,dt,Lt),y.m(Fe++,dt,Math.min(Lt-at+Pe/2,Lt)),y.m(Fe++,dt,Lt-at-Pe)):(y.m(Fe++,dt-at-Pe,Lt),y.m(Fe++,Math.min(dt-at+Pe/2,dt),Lt),y.m(Fe++,dt,Lt),y.m(Fe++,dt,Lt),y.m(Fe++,Math.max(dt+Jt-Pe/2,dt),Lt),y.m(Fe++,dt+Jt+Pe,Lt)):this.K===180?(y.m(Fe++,dt+Jt,Lt),y.m(Fe++,dt-at,Lt)):this.K===90?(y.m(Fe++,dt,Lt-at),y.m(Fe++,dt,Lt+Jt)):this.K===270?(y.m(Fe++,dt,Lt+Jt),y.m(Fe++,dt,Lt-at)):(y.m(Fe++,dt-at,Lt),y.m(Fe++,dt+Jt,Lt)))),ue=Je}xe&&(We=y.i(Fe-1).x,rt=y.i(Fe-1).y,dt=y.i(Fe).x,Lt=y.i(Fe).y,this.K===180||this.K===0?rt!==Lt&&(at=this.K===0?Math.min(Math.max((dt+We)/2,this.Ta[fe.layer]+this.Rf.x),dt):Math.max(Math.min((dt+We)/2,this.Ta[fe.layer]+this.Rf.x),dt),y.m(Fe++,at,rt),y.m(Fe++,at,Lt)):We!==dt&&(at=this.K===90?Math.min(Math.max((Lt+rt)/2,this.Ta[fe.layer]+this.Rf.y),Lt):Math.max(Math.min((Lt+rt)/2,this.Ta[fe.layer]+this.Rf.y),Lt),y.m(Fe++,We,at),y.m(Fe++,dt,at)))}E!==null&&ve&&4<=y.pointsCount&&(ee!==null&&(ee=se===Vi?y.getLinkPointFromPoint(b,ee,ee.ga(Di),y.i(3),!0):y.i(0),se===Vi&&(se=y.i(2),E=y.i(3),this.direction===90||this.direction===270?(y.L(1,(ee.x+se.x)/2,se.y),y.L(2,E.x,(se.y+E.y)/2)):(y.L(1,se.x,(ee.y+se.y)/2),y.L(2,(se.x+E.x)/2,E.y))),ee.w()||ee.set(b.actualBounds.center),y.L(0,ee.x,ee.y)),re!==null&&(b=oe===Vi?y.getLinkPointFromPoint(z,re,re.ga(Di),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),oe===Vi&&(re=y.i(y.pointsCount-3),oe=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(b.x+re.x)/2,re.y),y.L(y.pointsCount-2,oe.x,(re.y+oe.y)/2)):(y.L(y.pointsCount-2,re.x,(b.y+re.y)/2),y.L(y.pointsCount-3,(re.x+oe.x)/2,oe.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 dn,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0z.y&&(ue=se.y>z.y?0:ee.xz.x&&(ue=se.x>z.x?0:ee.yy.layer?1:a.rdy.rd?1:a.Icy.Ic?1:0:0},Ce.Ux=function(a,y){return a instanceof wd&&y instanceof wd&&a!==y?a.firsty.first||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},Ce.Js=function(a,y){return a instanceof wd&&y instanceof wd&&a!==y?a.jcy.jc||a.jy.j||a.rdy.rd?1:a.Icy.Ic?1:0:0},Ce.B=function(a,y){return a-=y,-1a},Ce.zi=function(a,y,x,E){var b=a.length,z=E-x;if(!(1>=z))if((0>x||x>=b-1)&&Ge("not in range 0 <= from < length: "+x),z===2)E=a[x],b=a[x+1],0=b)a.sort(y);else for(x=a.slice(0,E),x.sort(y),y=0;y=b)for(E=a.slice(x),E.sort(y),y=x;y=a.He.length){for(var E=[],b=0;ba&&(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 wn(Eo,"CycleDepthFirst",0),Cy=new wn(Eo,"CycleGreedy",1),Mp=new wn(Eo,"CycleFromLayers",2),F0=new wn(Eo,"LayerOptimalLinkLength",0),Ey=new wn(Eo,"LayerLongestPathSink",1),Ay=new wn(Eo,"LayerLongestPathSource",2),D0=new wn(Eo,"InitDepthFirstOut",0),Ly=new wn(Eo,"InitDepthFirstIn",1),by=new wn(Eo,"InitNaive",2),My=new wn(Eo,"AggressiveNone",0),N0=new wn(Eo,"AggressiveLess",1),ky=new wn(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)}Dt(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}Dt(kl,Ra);function lx(a,y){return a.index-y.index}function B0(a,y){if(!a.$n){for(var x=[],E=Wn(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&x.push(b);a.$n=x}for(a=Wn(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;Ge("Unable to find destination edge to given vertex")}function Fy(a){if(!a.co){for(var y=[],x=Wn(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=Wn(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},bt.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}Dt(kp,nl),bt.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 vn,this.Wn=R0,this.ud=Gu,this.vo=j0,this.Bq=Hy,this.$v=[],this.td=!0,this.Rb=W0,this.$d=new Re(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)}Dt(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:Ge("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 ki)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof ui){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 qt?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Or?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 qt&&(y=a),this.path===R0&&y!==null?this.ud=y.isTreePathToChildren?Gu:Kc:this.ud=this.path===R0?Gu:this.path,0y.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;bb?px(this,a,ee,Lr,We,rt):mx(this,a,ee,Lr,We,rt),Lr=rt.x,We=rt.width,rt=rt.height;break;case zh:for(dt=0;dtfe&&(jiKa&&(Gc(a,-Ka,0,Tr,ho-1),I0(dt,-Ka,0),I0(Lt,-Ka,0),Ka=0)}Io.S.h(Ka,Ri),We=Math.max(We,Jt),rt=Math.max(rt,at+(li===0?0:Pe)+Wa.height),ji=Jt}else 0fe&&(RiKa&&(Gc(a,0,-Ka,Tr,ho-1),I0(dt,0,-Ka),I0(Lt,0,-Ka),Ka=0)),Io.S.h(ji,Ka),rt=Math.max(rt,Ei),We=Math.max(We,at+(li===0?0:Pe)+Wa.width),Ri=Ei;Dn++}switch(0se&&(se=0),135Fe&&(Fe=0),oe===lh&&(re+=ve/2+a.focus.y),ee+=E+x):y?(a.comments===null?E>We&&(We=Oy(oe,E-We,0),ee=We.x,re=We.y,We=E,se=0):We=By(a,We,se),0>se&&(ee-=se,se=0),135rt&&(rt=Oy(oe,0,Je-rt),ee=rt.x,re=rt.y,rt=Je,Fe=0):rt=Ty(a,rt,Fe),0>Fe&&(re-=Fe,Fe=0),ee+=E+x),0b[0].x?b[2].assign(b[1]):b[1].assign(b[2])),b[3].yb[0].x?b[3].assign(b[2]):b[2].assign(b[3])),li[0].h(se+E,0),li[1].h(li[0].x,Je),li[2].yb[0].y?b[2].assign(b[1]):b[1].assign(b[2])),b[3].xb[0].y?b[3].assign(b[2]):b[2].assign(b[3])),li[0].h(0,Fe+Je),li[1].h(E,li[0].y),li[2].xE?px(a,y,b,Dn,at,dt):mx(a,y,b,Dn,at,dt),Dn=dt.x,at=dt.width,dt=dt.height;break;case zh:for(ve=0;veve&&(Jtve&&(Eife&&(fe=0),135We&&(We=0)),y.la.h(fe,We),y.Da.h(at,dt)}}Jr.prototype.customAlignment=function(a,y,x,E,b){return[y,x,E,b]};function px(a,y,x,E,b,z){var ee=x.length;if(ee===0)return new ht(E,0,b,z);if(ee===1)return y=x[0],b=y.Da.width,z=y.Da.height,new ht(E,0,b,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,se=nu(y)===90,ue=0,fe=0,ve=0,xe=0;xese&&(b-=se),z=Math.max(z,Math.max(xe,ve)+a+ee.height),0>x.S.x&&(E=T0(y,x.S.x,!1,E,re))):(x.S.h(b+a,E+re/2-x.focus.y-x.la.y),b=Math.max(b,Math.max(Pe,fe)+a+ee.width),ve=E+re/2-x.focus.y-x.la.y,z=Math.max(z,ve+ee.height),0>ve&&(z-=ve),0>x.S.y&&(E=T0(y,x.S.y,!0,E,re)))),new ht(E,0,b,z)}function mx(a,y,x,E,b,z){var ee=x.length;if(ee===0)return new ht(E,0,b,z);if(ee===1)return x=x[0],b=x.Da.width,z=x.Da.height,new ht(E,0,b,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,se=nu(y)===270,ue=0,fe=0,ve=0,xe=0;xefe&&(b-=fe),z=Math.max(z,Math.abs(Math.min(xe,ve))+a+ue.height),0>oe.S.x&&(E=T0(y,oe.S.x,!1,E,re))):(oe.S.h(-b-ue.width-a,E+re/2-oe.focus.y-oe.la.y),b=Math.max(b,Math.abs(Math.min(Pe,fe))+a+ue.width),ve=E+re/2-oe.focus.y-oe.la.y,z=Math.max(z,ve+ue.height),0>ve&&(z-=ve),0>oe.S.y&&(E=T0(y,oe.S.y,!0,E,re)))),y=0;yy&&(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 eg: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 eg:y/=2,x/=2;break;case Yc:y/=2,x/=2;break;case Ku:x=y=0;break;case Yu:break;default:Ge("Unhandled alignment value "+a.toString())}return new Te(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:Ge("Unhandled path value "+a.ud.toString())}}function I0(a,y,x){for(var E=0;Efe.length||xe===null||2>xe.length))for(b=x=0;xse&&z.yz.y&&sey.length||x===null||2>x.length)E=null;else{for(ue=Us(a,y.length+x.length),E=z=oe=0;zoe;)se=x[z++],ue[E++].h(se.x+b,se.y);for(x=Us(a,E),oe=0;oefe.length||z===null||2>z.length)b=null;else{for(ue=Us(a,fe.length+z.length),b=se=x=0;xz;)oe=fe[x++],ue[b++].h(oe.x,oe.y);for(z=Us(a,b),x=0;xfe.length||xe===null||2>xe.length))for(b=x=0;xoe&&z.xz.x&&oey.length||x===null||2>x.length)E=null;else{for(ue=Us(a,y.length+x.length),E=z=oe=0;zoe;)se=x[z++],ue[E++].h(se.x,se.y+b);for(x=Us(a,E),oe=0;oefe.length||z===null||2>z.length)b=null;else{for(ue=Us(a,fe.length+z.length),b=se=x=0;xz;)oe=fe[x++],ue[b++].h(oe.x,oe.y);for(z=Us(a,b),x=0;x=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&&(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 wn(Jr,"PathDefault",-1),Gu=new wn(Jr,"PathDestination",0),Kc=new wn(Jr,"PathSource",1),$f=new wn(Jr,"SortingForwards",10),Dp=new wn(Jr,"SortingReverse",11),Np=new wn(Jr,"SortingAscending",12),Bp=new wn(Jr,"SortingDescending",13),eg=new wn(Jr,"AlignmentCenterSubtrees",20),Yc=new wn(Jr,"AlignmentCenterChildren",21),Ku=new wn(Jr,"AlignmentStart",22),Yu=new wn(Jr,"AlignmentEnd",23),Rh=new wn(Jr,"AlignmentBus",24),Uu=new wn(Jr,"AlignmentBusBranching",25),zh=new wn(Jr,"AlignmentTopLeftBus",26),lh=new wn(Jr,"AlignmentBottomRightBus",27),z0=new wn(Jr,"CompactionNone",30),Tp=new wn(Jr,"CompactionBlock",31),j0=new wn(Jr,"StyleLayered",40),Ry=new wn(Jr,"StyleLastParents",41),zy=new wn(Jr,"StyleAlternating",42),jy=new wn(Jr,"StyleRootOnly",43),W0=new wn(Jr,"ArrangementVertical",50),Wy=new wn(Jr,"ArrangementHorizontal",51),H0=new wn(Jr,"ArrangementFixedRoots",52),Hy=new wn(Jr,"LayerIndividual",60),Zy=new wn(Jr,"LayerSiblings",61),Z0=new wn(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=eg,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)}Dt(Uc,Wo),Uc.prototype.createVertex=function(){return new Hl(this)},Uc.prototype.createEdge=function(){return new tg(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 Te(0,0),this.Da=new Re(0,0),this.la=new Te(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}Dt(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)},bt.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;xxe.y+x.rowIndent&&(z=Math.min(z,Math.max(fe.y,z-y.computeNodeIndent(x))))):x.alignment===Ku?(z=E.top+b.y,b.y===0&&fe.yxe.x+x.rowIndent&&(z=Math.min(z,Math.max(fe.x,z-y.computeNodeIndent(x))))):x.alignment===Ku?(z=E.left+b.x,b.x===0&&fe.xxe.y+x.rowIndent&&(z=Math.min(z,Math.max(fe.y,z-y.computeNodeIndent(x))))):x.alignment===Ku?(z=E.top+b.y,b.y===0&&fe.yxe.x+x.rowIndent&&(z=Math.min(z,Math.max(fe.x,z-y.computeNodeIndent(x))))):x.alignment===Ku?(z=E.left+b.x,b.x===0&&fe.x>>6)+Kt(128|ln&63):Kt(224|ln>>>12&15)+Kt(128|ln>>>6&63)+Kt(128|ln&63)}else{var ln=65536+(Ct.charCodeAt(0)-55296)*1024+(Ct.charCodeAt(1)-56320);return Kt(240|ln>>>18&7)+Kt(128|ln>>>12&63)+Kt(128|ln>>>6&63)+Kt(128|ln&63)}},Me=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,It=function(Ct){return Ct.replace(Me,ft)},Ye=function(Ct){var ln=[0,2,1][Ct.length%3],bn=Ct.charCodeAt(0)<<16|(Ct.length>1?Ct.charCodeAt(1):0)<<8|(Ct.length>2?Ct.charCodeAt(2):0),fn=[ze.charAt(bn>>>18),ze.charAt(bn>>>12&63),ln>=2?"=":ze.charAt(bn>>>6&63),ln>=1?"=":ze.charAt(bn&63)];return fn.join("")},Ht=it.btoa&&typeof it.btoa=="function"?function(Ct){return it.btoa(Ct)}:function(Ct){if(Ct.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Ct.replace(/[\s\S]{1,3}/g,Ye)},Ne=function(Ct){return Ht(It(String(Ct)))},ne=function(Ct){return Ct.replace(/[+\/]/g,function(ln){return ln=="+"?"-":"_"}).replace(/=/g,"")},te=function(Ct,ln){return ln?ne(Ne(Ct)):Ne(Ct)},de=function(Ct){return te(Ct,!0)},le;it.Uint8Array&&(le=function(Ct,ln){for(var bn="",fn=0,Yt=Ct.length;fn>>18)+ze.charAt(yn>>>12&63)+(typeof lt!="undefined"?ze.charAt(yn>>>6&63):"=")+(typeof qe!="undefined"?ze.charAt(yn&63):"=")}return ln?ne(bn):bn});var ge=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,me=function(Ct){switch(Ct.length){case 4:var ln=(7&Ct.charCodeAt(0))<<18|(63&Ct.charCodeAt(1))<<12|(63&Ct.charCodeAt(2))<<6|63&Ct.charCodeAt(3),bn=ln-65536;return Kt((bn>>>10)+55296)+Kt((bn&1023)+56320);case 3:return Kt((15&Ct.charCodeAt(0))<<12|(63&Ct.charCodeAt(1))<<6|63&Ct.charCodeAt(2));default:return Kt((31&Ct.charCodeAt(0))<<6|63&Ct.charCodeAt(1))}},Se=function(Ct){return Ct.replace(ge,me)},Le=function(Ct){var ln=Ct.length,bn=ln%4,fn=(ln>0?ct[Ct.charAt(0)]<<18:0)|(ln>1?ct[Ct.charAt(1)]<<12:0)|(ln>2?ct[Ct.charAt(2)]<<6:0)|(ln>3?ct[Ct.charAt(3)]:0),Yt=[Kt(fn>>>16),Kt(fn>>>8&255),Kt(fn&255)];return Yt.length-=[0,0,2,1][bn],Yt.join("")},Ie=it.atob&&typeof it.atob=="function"?function(Ct){return it.atob(Ct)}:function(Ct){return Ct.replace(/\S{1,4}/g,Le)},Ze=function(Ct){return Ie(String(Ct).replace(/[^A-Za-z0-9\+\/]/g,""))},st=function(Ct){return Se(Ie(Ct))},Ve=function(Ct){return String(Ct).replace(/[-_]/g,function(ln){return ln=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Xe=function(Ct){return st(Ve(Ct))},wt;it.Uint8Array&&(wt=function(Ct){return Uint8Array.from(Ze(Ve(Ct)),function(ln){return ln.charCodeAt(0)})});var gt=function(){var Ct=it.Base64;return it.Base64=Ft,Ct};if(it.Base64={VERSION:Et,atob:Ze,btoa:Ht,fromBase64:Xe,toBase64:te,utob:It,encode:te,encodeURI:de,btou:Se,decode:Xe,noConflict:gt,fromUint8Array:le,toUint8Array:wt},typeof Object.defineProperty=="function"){var Nt=function(Ct){return{value:Ct,enumerable:!1,writable:!0,configurable:!0}};it.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Nt(function(){return Xe(this)})),Object.defineProperty(String.prototype,"toBase64",Nt(function(Ct){return te(this,Ct)})),Object.defineProperty(String.prototype,"toBase64URI",Nt(function(){return te(this,!0)}))}}return it.Meteor&&(Base64=it.Base64),Un.exports?Un.exports.Base64=it.Base64:(ye=[],tt=function(){return it.Base64}.apply(pi,ye),tt!==void 0&&(Un.exports=tt)),{Base64:it.Base64}})},2859:function(Un,pi,De){"use strict";De.d(pi,{hP:function(){return qn}});var ye=function(je,be){return(ye=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(we,Be){we.__proto__=Be}||function(we,Be){for(var Ke in Be)Object.prototype.hasOwnProperty.call(Be,Ke)&&(we[Ke]=Be[Ke])})(je,be)};function tt(je,be){function we(){this.constructor=je}ye(je,be),je.prototype=be===null?Object.create(be):(we.prototype=be.prototype,new we)}function it(je,be,we,Be){return new(we||(we=Promise))(function(Ke,ke){function et(_t){try{Bt(Be.next(_t))}catch(vt){ke(vt)}}function sn(_t){try{Bt(Be.throw(_t))}catch(vt){ke(vt)}}function Bt(_t){var vt;_t.done?Ke(_t.value):(vt=_t.value,vt instanceof we?vt:new we(function(xt){xt(vt)})).then(et,sn)}Bt((Be=Be.apply(je,be||[])).next())})}function Ft(je,be){var we,Be,Ke,ke,et={label:0,sent:function(){if(1&Ke[0])throw Ke[1];return Ke[1]},trys:[],ops:[]};return ke={next:sn(0),throw:sn(1),return:sn(2)},typeof Symbol=="function"&&(ke[Symbol.iterator]=function(){return this}),ke;function sn(Bt){return function(_t){return function(vt){if(we)throw new TypeError("Generator is already executing.");for(;et;)try{if(we=1,Be&&(Ke=2&vt[0]?Be.return:vt[0]?Be.throw||((Ke=Be.return)&&Ke.call(Be),0):Be.next)&&!(Ke=Ke.call(Be,vt[1])).done)return Ke;switch(Be=0,Ke&&(vt=[2&vt[0],Ke.value]),vt[0]){case 0:case 1:Ke=vt;break;case 4:return et.label++,{value:vt[1],done:!1};case 5:et.label++,Be=vt[1],vt=[0];continue;case 7:vt=et.ops.pop(),et.trys.pop();continue;default:if(Ke=et.trys,!((Ke=Ke.length>0&&Ke[Ke.length-1])||vt[0]!==6&&vt[0]!==2)){et=0;continue}if(vt[0]===3&&(!Ke||vt[1]>Ke[0]&&vt[1]',"select"),this.addActionButton(Be,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(Be,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(Be,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(Be,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(Be,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(Be,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(Be,'',"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(ke){var et=document.createElement("div");et.className=""+we.toolbarButtonStyleClass.name,et.setAttribute("data-type-name",ke.typeName),et.innerHTML=ke.icon,et.addEventListener("click",function(){we.markerToolbarButtonClicked(et,ke)}),we.buttons.push(et),we.markerButtons.push(et)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var Ke=document.createElement("div");Ke.className=this.toolbarBlockStyleClass.name,Ke.style.whiteSpace="nowrap",Ke.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Ke),this.addActionButton(Ke,'',"render"),this.addActionButton(Ke,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},je.prototype.addButtonClickListener=function(be){this.buttonClickListeners.push(be)},je.prototype.removeButtonClickListener=function(be){this.buttonClickListeners.indexOf(be)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(be),1)},je.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},je.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var be=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var we=0;we0&&this.buttonClickListeners.forEach(function(Be){return Be("marker",we)}),this.markerButtonOverflowBlock.style.display="none"},je.prototype.actionToolbarButtonClicked=function(be,we){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Be){return Be("action",we)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},je.prototype.setActiveButton=function(be){this.resetButtonStyles(),be.className=be.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),be.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},je.prototype.setActiveMarkerButton=function(be){var we=this.markerButtons.find(function(Be){return Be.getAttribute("data-type-name")===be});we&&this.setActiveButton(we)},je.prototype.setCurrentMarker=function(be){var we=this;this.currentMarker=be,this.buttons.filter(function(Be){return/delete|notes/.test(Be.getAttribute("data-action"))}).forEach(function(Be){we.currentMarker===void 0?(Be.style.fillOpacity="0.4",Be.style.pointerEvents="none"):(Be.style.fillOpacity="1",Be.style.pointerEvents="all")})},je}(),Ne=function(){function je(be,we,Be,Ke){this.panels=[],this.panelButtons=[],this.markerjsContainer=be,this.displayMode=we,this.uiStyleSettings=Be,this.styles=Ke,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return je.prototype.addStyles=function(){var be;this.toolboxStyleClass=this.styles.addClass(new Ye("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 Ye("toolbox_colors",` color: `+this.uiStyleSettings.toolboxColor+`; `));var we=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Ye("toolbox-button-row",` display: flex; cursor: default; box-sizing: content-box; `)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Ye("toolbox-button-row_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`; `)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Ye("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 Ye("toolbox-panel-row_colors",` background-color: `+((be=this.uiStyleSettings.toolboxBackgroundColor)!==null&&be!==void 0?be:this.uiStyleSettings.toolbarBackgroundHoverColor)+`; `)),this.toolboxButtonStyleClass=this.styles.addClass(new Ye("toolbox_button",` display: inline-block; width: `+(this.uiStyleSettings.toolbarHeight-2*we)+`px; height: `+(this.uiStyleSettings.toolbarHeight-2*we)+`px; padding: `+we+`px; box-sizing: content-box; `)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Ye("toolbox-button_colors",` fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Ye("toolbox-active-button_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`; fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.styles.addRule(new It("."+this.toolboxButtonStyleColorsClass.name+":hover",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+` `)),this.styles.addRule(new It("."+this.toolboxButtonStyleClass.name+" svg",` height: `+this.uiStyleSettings.toolbarHeight/2+`px; `))},je.prototype.show=function(be){var we;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=be,this.uiContainer.className=this.toolboxStyleClass.name+" "+((we=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&we!==void 0?we:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},je.prototype.setPanelButtons=function(be){var we,Be,Ke=this;this.panels=be,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((we=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&we!==void 0?we:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Be=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Be!==void 0?Be:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ke){var et;ke.uiStyleSettings=Ke.uiStyleSettings;var sn=document.createElement("div");sn.className=Ke.toolboxButtonStyleClass.name+" "+((et=Ke.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&et!==void 0?et:Ke.toolboxButtonStyleColorsClass.name),sn.innerHTML=ke.icon,sn.title=ke.title,sn.addEventListener("click",function(){Ke.panelButtonClick(ke)}),Ke.panelButtons.push(sn),Ke.buttonRow.appendChild(sn)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},je.prototype.panelButtonClick=function(be){var we=this,Be=-1;if(be!==this.activePanel){Be=this.panels.indexOf(be),this.panelRow.innerHTML="";var Ke=be.getUi();Ke.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Ke),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=be}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){we.displayMode==="inline"?we.panelRow.style.display="none":we.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ke,et){var sn,Bt;ke.className=we.toolboxButtonStyleClass.name+" "+(et===Be?""+((sn=we.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&sn!==void 0?sn:we.toolboxActiveButtonStyleColorsClass.name):""+((Bt=we.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Bt!==void 0?Bt:we.toolboxButtonStyleColorsClass.name))})},je}(),ne=function(je,be){this.title=je,this.icon=be},te=function(je){function be(we,Be,Ke,ke){var et=je.call(this,we,ke||'')||this;return et.colors=[],et.addTransparent=!1,et.colorBoxes=[],et.colors=Be,et.currentColor=Ke,et.setCurrentColor=et.setCurrentColor.bind(et),et.getColorBox=et.getColorBox.bind(et),et}return tt(be,je),be.prototype.getUi=function(){var we=this,Be=document.createElement("div");return Be.style.overflow="hidden",Be.style.whiteSpace="nowrap",this.colors.forEach(function(Ke){var ke=we.getColorBox(Ke);Be.appendChild(ke),we.colorBoxes.push(ke)}),Be},be.prototype.getColorBox=function(we){var Be=this,Ke=this.uiStyleSettings.toolbarHeight/4,ke=this.uiStyleSettings.toolbarHeight-Ke,et=document.createElement("div");et.style.display="inline-block",et.style.boxSizing="content-box",et.style.width=ke-2+"px",et.style.height=ke-2+"px",et.style.padding="1px",et.style.marginRight="2px",et.style.marginBottom="2px",et.style.borderWidth="2px",et.style.borderStyle="solid",et.style.borderRadius=(ke+2)/2+"px",et.style.borderColor=we===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",et.addEventListener("click",function(){Be.setCurrentColor(we,et)});var sn=document.createElement("div");return sn.style.display="inline-block",sn.style.width=ke-2+"px",sn.style.height=ke-2+"px",sn.style.backgroundColor=we,sn.style.borderRadius=ke/2+"px",we==="transparent"&&(sn.style.fill=this.uiStyleSettings.toolboxAccentColor,sn.innerHTML=` `),et.appendChild(sn),et},be.prototype.setCurrentColor=function(we,Be){var Ke=this;this.currentColor=we,this.colorBoxes.forEach(function(ke){ke.style.borderColor=ke===Be?Ke.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(we)},be}(ne),de=function(){function je(be,we,Be){this._state="new",this._isSelected=!1,this._container=be,this._overlayContainer=we,this.globalSettings=Be,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(je.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),je.prototype.ownsTarget=function(be){return!1},Object.defineProperty(je.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),je.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},je.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},je.prototype.pointerDown=function(be,we){},je.prototype.dblClick=function(be,we){},je.prototype.manipulate=function(be){},je.prototype.pointerUp=function(be){this.stateChanged()},je.prototype.dispose=function(){},je.prototype.addMarkerVisualToContainer=function(be){this.container.childNodes.length>0?this.container.insertBefore(be,this.container.childNodes[0]):this.container.appendChild(be)},je.prototype.getState=function(){return{typeName:je.typeName,state:this.state,notes:this.notes}},je.prototype.restoreState=function(be){this._state=be.state,this.notes=be.notes},je.prototype.scale=function(be,we){},je.prototype.colorChanged=function(be){this.onColorChanged&&this.onColorChanged(be),this.stateChanged()},je.prototype.fillColorChanged=function(be){this.onFillColorChanged&&this.onFillColorChanged(be),this.stateChanged()},je.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var be=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),be.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(be)&&this.onStateChanged(this)}},je.typeName="MarkerBase",je}(),le=function(){function je(){this.findGripByVisual=this.findGripByVisual.bind(this)}return je.prototype.findGripByVisual=function(be){return this.topLeft.ownsTarget(be)?this.topLeft:this.topCenter.ownsTarget(be)?this.topCenter:this.topRight.ownsTarget(be)?this.topRight:this.centerLeft.ownsTarget(be)?this.centerLeft:this.centerRight.ownsTarget(be)?this.centerRight:this.bottomLeft.ownsTarget(be)?this.bottomLeft:this.bottomCenter.ownsTarget(be)?this.bottomCenter:this.bottomRight.ownsTarget(be)?this.bottomRight:void 0},je}(),ge=function(){function je(){this.GRIP_SIZE=10,this.visual=ze.createGroup(),this.visual.appendChild(ze.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ze.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return je.prototype.ownsTarget=function(be){return be===this.visual||be===this.visual.childNodes[0]||be===this.visual.childNodes[1]},je}(),me=function(){function je(){}return je.toITransformMatrix=function(be){return{a:be.a,b:be.b,c:be.c,d:be.d,e:be.e,f:be.f}},je.toSVGMatrix=function(be,we){return be.a=we.a,be.b=we.b,be.c=we.c,be.d=we.d,be.e=we.e,be.f=we.f,be},je}(),Se=function(je){function be(we,Be,Ke){var ke=je.call(this,we,Be,Ke)||this;return ke.left=0,ke.top=0,ke.width=0,ke.height=0,ke.defaultSize={x:50,y:20},ke.offsetX=0,ke.offsetY=0,ke.rotationAngle=0,ke.CB_DISTANCE=10,ke._suppressMarkerCreateEvent=!1,ke.container.transform.baseVal.appendItem(ze.createTransform()),ke.setupControlBox(),ke}return tt(be,je),Object.defineProperty(be.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"visual",{get:function(){return this._visual},set:function(we){this._visual=we;var Be=ze.createTransform();this._visual.transform.baseVal.appendItem(Be)},enumerable:!1,configurable:!0}),be.prototype.ownsTarget=function(we){return!!je.prototype.ownsTarget.call(this,we)||!!(this.controlGrips.findGripByVisual(we)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(we))},be.prototype.pointerDown=function(we,Be){je.prototype.pointerDown.call(this,we,Be),this.state==="new"&&(this.left=we.x,this.top=we.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Ke=this.unrotatePoint(we);if(this.manipulationStartX=Ke.x,this.manipulationStartY=Ke.y,this.offsetX=Ke.x-this.left,this.offsetY=Ke.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Be),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Be)){this.activeGrip=this.rotatorGrip;var ke=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=ke.x-this.width/2,this.top=ke.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var et=this.container.transform.baseVal.getItem(0);et.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(et,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},be.prototype.pointerUp=function(we){var Be=this.state;je.prototype.pointerUp.call(this,we),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(we),this._state="select",Be==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},be.prototype.moveVisual=function(we){this.visual.style.transform="translate("+we.x+"px, "+we.y+"px)"},be.prototype.manipulate=function(we){var Be=this.unrotatePoint(we);this.state==="creating"?this.resize(we):this.state==="move"?(this.left=this.manipulationStartLeft+(Be.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Be.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Be):this.state==="rotate"&&this.rotate(we)},be.prototype.resize=function(we){var Be=this.manipulationStartLeft,Ke=this.manipulationStartWidth,ke=this.manipulationStartTop,et=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Be=this.manipulationStartLeft+we.x-this.manipulationStartX,Ke=this.manipulationStartWidth+this.manipulationStartLeft-Be;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Ke=this.manipulationStartWidth+we.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ke=this.manipulationStartTop+we.y-this.manipulationStartY,et=this.manipulationStartHeight+this.manipulationStartTop-ke;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:et=this.manipulationStartHeight+we.y-this.manipulationStartY}Ke>=0?(this.left=Be,this.width=Ke):(this.left=Be+Ke,this.width=-Ke),et>=0?(this.top=ke,this.height=et):(this.top=ke+et,this.height=-et),this.setSize()},be.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},be.prototype.rotate=function(we){if(Math.abs(we.x-this.centerX)>.1){var Be=Math.sign(we.x-this.centerX);this.rotationAngle=180*Math.atan((we.y-this.centerY)/(we.x-this.centerX))/Math.PI+90*Be,this.applyRotation()}},be.prototype.applyRotation=function(){var we=this.container.transform.baseVal.getItem(0);we.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(we,0)},be.prototype.rotatePoint=function(we){if(this.rotationAngle===0)return we;var Be=this.container.getCTM(),Ke=ze.createPoint(we.x,we.y);return{x:(Ke=Ke.matrixTransform(Be)).x,y:Ke.y}},be.prototype.unrotatePoint=function(we){if(this.rotationAngle===0)return we;var Be=this.container.getCTM();Be=Be.inverse();var Ke=ze.createPoint(we.x,we.y);return{x:(Ke=Ke.matrixTransform(Be)).x,y:Ke.y}},be.prototype.select=function(){je.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},be.prototype.deselect=function(){je.prototype.deselect.call(this),this.controlBox.style.display="none"},be.prototype.setupControlBox=function(){this.controlBox=ze.createGroup();var we=ze.createTransform();we.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(we),this.container.appendChild(this.controlBox),this.controlRect=ze.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=ze.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 le,this.addControlGrips(),this.controlBox.style.display="none"},be.prototype.adjustControlBox=function(){var we=this.controlBox.transform.baseVal.getItem(0);we.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(we,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()},be.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()},be.prototype.createGrip=function(){var we=new ge;return we.visual.transform.baseVal.appendItem(ze.createTransform()),this.controlBox.appendChild(we.visual),we},be.prototype.positionGrips=function(){var we=this.controlGrips.topLeft.GRIP_SIZE,Be=-we/2,Ke=Be,ke=(this.width+this.CB_DISTANCE)/2-we/2,et=(this.height+this.CB_DISTANCE)/2-we/2,sn=this.height+this.CB_DISTANCE-we/2,Bt=this.width+this.CB_DISTANCE-we/2;this.positionGrip(this.controlGrips.topLeft.visual,Be,Ke),this.positionGrip(this.controlGrips.topCenter.visual,ke,Ke),this.positionGrip(this.controlGrips.topRight.visual,Bt,Ke),this.positionGrip(this.controlGrips.centerLeft.visual,Be,et),this.positionGrip(this.controlGrips.centerRight.visual,Bt,et),this.positionGrip(this.controlGrips.bottomLeft.visual,Be,sn),this.positionGrip(this.controlGrips.bottomCenter.visual,ke,sn),this.positionGrip(this.controlGrips.bottomRight.visual,Bt,sn),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ke,Ke-3*this.CB_DISTANCE)},be.prototype.positionGrip=function(we,Be,Ke){var ke=we.transform.baseVal.getItem(0);ke.setTranslate(Be,Ke),we.transform.baseVal.replaceItem(ke,0)},be.prototype.hideControlBox=function(){this.controlBox.style.display="none"},be.prototype.showControlBox=function(){this.controlBox.style.display=""},be.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:me.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:me.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},je.prototype.getState.call(this))},be.prototype.restoreState=function(we){je.prototype.restoreState.call(this,we);var Be=we;this.left=Be.left,this.top=Be.top,this.width=Be.width,this.height=Be.height,this.rotationAngle=Be.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(me.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Be.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(me.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Be.containerTransformMatrix))},be.prototype.scale=function(we,Be){je.prototype.scale.call(this,we,Be);var Ke=this.rotatePoint({x:this.left,y:this.top}),ke=this.unrotatePoint({x:Ke.x*we,y:Ke.y*Be});this.left=ke.x,this.top=ke.y,this.width=this.width*we,this.height=this.height*Be,this.adjustControlBox()},be}(de),Le=function(je){function be(we,Be,Ke){var ke=je.call(this,we,Be,Ke)||this;return ke.fillColor="transparent",ke.strokeColor="transparent",ke.strokeWidth=0,ke.strokeDasharray="",ke.opacity=1,ke.setStrokeColor=ke.setStrokeColor.bind(ke),ke.setFillColor=ke.setFillColor.bind(ke),ke.setStrokeWidth=ke.setStrokeWidth.bind(ke),ke.setStrokeDasharray=ke.setStrokeDasharray.bind(ke),ke.createVisual=ke.createVisual.bind(ke),ke}return tt(be,je),be.prototype.ownsTarget=function(we){return!(!je.prototype.ownsTarget.call(this,we)&&we!==this.visual)},be.prototype.createVisual=function(){this.visual=ze.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)},be.prototype.pointerDown=function(we,Be){je.prototype.pointerDown.call(this,we,Be),this.state==="new"&&(this.createVisual(),this.moveVisual(we),this._state="creating")},be.prototype.manipulate=function(we){je.prototype.manipulate.call(this,we)},be.prototype.resize=function(we){je.prototype.resize.call(this,we),this.setSize()},be.prototype.setSize=function(){je.prototype.setSize.call(this),ze.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},be.prototype.pointerUp=function(we){je.prototype.pointerUp.call(this,we),this.setSize()},be.prototype.setStrokeColor=function(we){this.strokeColor=we,this.visual&&ze.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(we),this.stateChanged()},be.prototype.setFillColor=function(we){this.fillColor=we,this.visual&&ze.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},be.prototype.setStrokeWidth=function(we){this.strokeWidth=we,this.visual&&ze.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},be.prototype.setStrokeDasharray=function(we){this.strokeDasharray=we,this.visual&&ze.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},be.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},je.prototype.getState.call(this))},be.prototype.restoreState=function(we){var Be=we;this.fillColor=Be.fillColor,this.strokeColor=Be.strokeColor,this.strokeWidth=Be.strokeWidth,this.strokeDasharray=Be.strokeDasharray,this.opacity=Be.opacity,this.createVisual(),je.prototype.restoreState.call(this,we),this.setSize()},be.prototype.scale=function(we,Be){je.prototype.scale.call(this,we,Be),this.setSize()},be.title="Rectangle marker",be}(Se),Ie=function(je){function be(we,Be,Ke,ke){var et=je.call(this,we,ke||'')||this;return et.widths=[],et.widthBoxes=[],et.widths=Be,et.currentWidth=Ke,et.setCurrentWidth=et.setCurrentWidth.bind(et),et}return tt(be,je),be.prototype.getUi=function(){var we=this,Be=document.createElement("div");return Be.style.display="flex",Be.style.overflow="hidden",Be.style.flexGrow="2",this.widths.forEach(function(Ke){var ke=document.createElement("div");ke.style.display="flex",ke.style.flexGrow="2",ke.style.alignItems="center",ke.style.justifyContent="space-between",ke.style.padding="5px",ke.style.borderWidth="2px",ke.style.borderStyle="solid",ke.style.borderColor=Ke===we.currentWidth?we.uiStyleSettings.toolboxAccentColor:"transparent",ke.addEventListener("click",function(){we.setCurrentWidth(Ke,ke)}),Be.appendChild(ke);var et=document.createElement("div");et.innerText=Ke.toString(),et.style.marginRight="5px",ke.appendChild(et);var sn=document.createElement("div");sn.style.minHeight="20px",sn.style.flexGrow="2",sn.style.display="flex",sn.style.alignItems="center";var Bt=document.createElement("hr");Bt.style.minWidth="20px",Bt.style.border="0px",Bt.style.borderTop=Ke+"px solid "+we.uiStyleSettings.toolboxColor,Bt.style.flexGrow="2",sn.appendChild(Bt),ke.appendChild(sn),we.widthBoxes.push(ke)}),Be},be.prototype.setCurrentWidth=function(we,Be){var Ke=this;this.currentWidth=we,this.widthBoxes.forEach(function(ke){ke.style.borderColor=ke===Be?Ke.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},be}(ne),Ze=function(je){function be(we,Be,Ke,ke){var et=je.call(this,we,ke||'')||this;return et.styles=[],et.styleBoxes=[],et.styles=Be,et.currentStyle=Ke,et.setCurrentStyle=et.setCurrentStyle.bind(et),et}return tt(be,je),be.prototype.getUi=function(){var we=this,Be=document.createElement("div");return Be.style.display="flex",Be.style.overflow="hidden",Be.style.flexGrow="2",this.styles.forEach(function(Ke){var ke=document.createElement("div");ke.style.display="flex",ke.style.alignItems="center",ke.style.justifyContent="space-between",ke.style.padding="5px",ke.style.borderWidth="2px",ke.style.borderStyle="solid",ke.style.overflow="hidden",ke.style.maxWidth=100/we.styles.length-5+"%",ke.style.borderColor=Ke===we.currentStyle?we.uiStyleSettings.toolboxAccentColor:"transparent",ke.addEventListener("click",function(){we.setCurrentStyle(Ke,ke)}),Be.appendChild(ke);var et=document.createElement("div");et.style.minHeight="20px",et.style.flexGrow="2",et.style.overflow="hidden";var sn=` `;et.innerHTML=sn,ke.appendChild(et),we.styleBoxes.push(ke)}),Be},be.prototype.setCurrentStyle=function(we,Be){var Ke=this;this.currentStyle=we,this.styleBoxes.forEach(function(ke){ke.style.borderColor=ke===Be?Ke.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},be}(ne),st=function(je){function be(we,Be,Ke){var ke=je.call(this,we,Be,Ke)||this;return ke.strokeColor=Ke.defaultColor,ke.strokeWidth=Ke.defaultStrokeWidth,ke.strokeDasharray=Ke.defaultStrokeDasharray,ke.strokePanel=new te("Line color",Ke.defaultColorSet,Ke.defaultColor),ke.strokePanel.onColorChanged=ke.setStrokeColor,ke.strokeWidthPanel=new Ie("Line width",Ke.defaultStrokeWidths,Ke.defaultStrokeWidth),ke.strokeWidthPanel.onWidthChanged=ke.setStrokeWidth,ke.strokeStylePanel=new Ze("Line style",Ke.defaultStrokeDasharrays,Ke.defaultStrokeDasharray),ke.strokeStylePanel.onStyleChanged=ke.setStrokeDasharray,ke}return tt(be,je),Object.defineProperty(be.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),be.prototype.getState=function(){var we=je.prototype.getState.call(this);return we.typeName=be.typeName,we},be.typeName="FrameMarker",be.title="Frame marker",be.icon='',be}(Le),Ve=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"},Xe=function(je){function be(we,Be,Ke){var ke=je.call(this,we,Be,Ke)||this;return ke.x1=0,ke.y1=0,ke.x2=0,ke.y2=0,ke.defaultLength=50,ke.manipulationStartX=0,ke.manipulationStartY=0,ke.manipulationStartX1=0,ke.manipulationStartY1=0,ke.manipulationStartX2=0,ke.manipulationStartY2=0,ke.setupControlBox(),ke}return tt(be,je),be.prototype.ownsTarget=function(we){return!!je.prototype.ownsTarget.call(this,we)||!(!this.grip1.ownsTarget(we)&&!this.grip2.ownsTarget(we))},be.prototype.pointerDown=function(we,Be){je.prototype.pointerDown.call(this,we,Be),this.manipulationStartX=we.x,this.manipulationStartY=we.y,this.state==="new"&&(this.x1=we.x,this.y1=we.y,this.x2=we.x,this.y2=we.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(Be)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Be)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},be.prototype.pointerUp=function(we){var Be=this.state;je.prototype.pointerUp.call(this,we),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(we),this._state="select",Be==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},be.prototype.adjustVisual=function(){},be.prototype.manipulate=function(we){this.state==="creating"?this.resize(we):this.state==="move"?(this.x1=this.manipulationStartX1+we.x-this.manipulationStartX,this.y1=this.manipulationStartY1+we.y-this.manipulationStartY,this.x2=this.manipulationStartX2+we.x-this.manipulationStartX,this.y2=this.manipulationStartY2+we.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(we)},be.prototype.resize=function(we){switch(this.activeGrip){case this.grip1:this.x1=we.x,this.y1=we.y;break;case this.grip2:case void 0:this.x2=we.x,this.y2=we.y}this.adjustVisual(),this.adjustControlBox()},be.prototype.select=function(){je.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},be.prototype.deselect=function(){je.prototype.deselect.call(this),this.controlBox.style.display="none"},be.prototype.setupControlBox=function(){this.controlBox=ze.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},be.prototype.adjustControlBox=function(){this.positionGrips()},be.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},be.prototype.createGrip=function(){var we=new ge;return we.visual.transform.baseVal.appendItem(ze.createTransform()),this.controlBox.appendChild(we.visual),we},be.prototype.positionGrips=function(){var we=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-we/2,this.y1-we/2),this.positionGrip(this.grip2.visual,this.x2-we/2,this.y2-we/2)},be.prototype.positionGrip=function(we,Be,Ke){var ke=we.transform.baseVal.getItem(0);ke.setTranslate(Be,Ke),we.transform.baseVal.replaceItem(ke,0)},be.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},je.prototype.getState.call(this))},be.prototype.restoreState=function(we){je.prototype.restoreState.call(this,we);var Be=we;this.x1=Be.x1,this.y1=Be.y1,this.x2=Be.x2,this.y2=Be.y2},be.prototype.scale=function(we,Be){je.prototype.scale.call(this,we,Be),this.x1=this.x1*we,this.y1=this.y1*Be,this.x2=this.x2*we,this.y2=this.y2*Be,this.adjustVisual(),this.adjustControlBox()},be}(de),wt=function(je){function be(we,Be,Ke){var ke=je.call(this,we,Be,Ke)||this;return ke.strokeColor="transparent",ke.strokeWidth=0,ke.strokeDasharray="",ke.setStrokeColor=ke.setStrokeColor.bind(ke),ke.setStrokeWidth=ke.setStrokeWidth.bind(ke),ke.setStrokeDasharray=ke.setStrokeDasharray.bind(ke),ke.strokeColor=Ke.defaultColor,ke.strokeWidth=Ke.defaultStrokeWidth,ke.strokeDasharray=Ke.defaultStrokeDasharray,ke.strokePanel=new te("Line color",Ke.defaultColorSet,Ke.defaultColor),ke.strokePanel.onColorChanged=ke.setStrokeColor,ke.strokeWidthPanel=new Ie("Line width",Ke.defaultStrokeWidths,Ke.defaultStrokeWidth),ke.strokeWidthPanel.onWidthChanged=ke.setStrokeWidth,ke.strokeStylePanel=new Ze("Line style",Ke.defaultStrokeDasharrays,Ke.defaultStrokeDasharray),ke.strokeStylePanel.onStyleChanged=ke.setStrokeDasharray,ke}return tt(be,je),be.prototype.ownsTarget=function(we){return!(!je.prototype.ownsTarget.call(this,we)&&we!==this.visual&&we!==this.selectorLine&&we!==this.visibleLine)},be.prototype.createVisual=function(){this.visual=ze.createGroup(),this.selectorLine=ze.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ze.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)},be.prototype.pointerDown=function(we,Be){je.prototype.pointerDown.call(this,we,Be),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},be.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()),ze.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ze.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ze.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},be.prototype.setStrokeColor=function(we){this.strokeColor=we,this.adjustVisual(),this.colorChanged(we)},be.prototype.setStrokeWidth=function(we){this.strokeWidth=we,this.adjustVisual()},be.prototype.setStrokeDasharray=function(we){this.strokeDasharray=we,this.adjustVisual(),this.stateChanged()},Object.defineProperty(be.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),be.prototype.getState=function(){var we=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},je.prototype.getState.call(this));return we.typeName=be.typeName,we},be.prototype.restoreState=function(we){je.prototype.restoreState.call(this,we);var Be=we;this.strokeColor=Be.strokeColor,this.strokeWidth=Be.strokeWidth,this.strokeDasharray=Be.strokeDasharray,this.createVisual(),this.adjustVisual()},be.typeName="LineMarker",be.title="Line marker",be.icon='',be}(Xe),gt=function(je){function be(we,Be,Ke,ke){var et=je.call(this,we,ke||'')||this;return et.fonts=[],et.fontBoxes=[],et.fonts=Be,et.currentFont=Ke,et.setCurrentFont=et.setCurrentFont.bind(et),et}return tt(be,je),be.prototype.getUi=function(){var we=this,Be=document.createElement("div");return Be.style.overflow="hidden",Be.style.flexGrow="2",this.fonts.forEach(function(Ke){var ke=document.createElement("div");ke.style.display="inline-block",ke.style.alignItems="center",ke.style.justifyContent="space-between",ke.style.padding="5px",ke.style.borderWidth="2px",ke.style.borderStyle="solid",ke.style.overflow="hidden",ke.style.maxWidth=100/we.fonts.length-5+"%",ke.style.borderColor=Ke===we.currentFont?we.uiStyleSettings.toolboxAccentColor:"transparent",ke.addEventListener("click",function(){we.setCurrentFont(Ke,ke)}),Be.appendChild(ke);var et=document.createElement("div");et.style.display="flex",et.style.minHeight="20px",et.style.flexGrow="2",et.style.fontFamily=Ke,et.style.overflow="hidden";var sn=document.createElement("div");sn.style.whiteSpace="nowrap",sn.style.overflow="hidden",sn.style.textOverflow="ellipsis",sn.innerHTML="The quick brown fox jumps over the lazy dog",et.appendChild(sn),ke.appendChild(et),we.fontBoxes.push(ke)}),Be},be.prototype.setCurrentFont=function(we,Be){var Ke=this;this.currentFont=we,this.fontBoxes.forEach(function(ke){ke.style.borderColor=ke===Be?Ke.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},be}(ne),Nt=function(je){function be(we,Be,Ke){var ke=je.call(this,we,Be,Ke)||this;return ke.color="transparent",ke.padding=5,ke.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",ke.text=ke.DEFAULT_TEXT,ke.isMoved=!1,ke.color=Ke.defaultColor,ke.fontFamily=Ke.defaultFontFamily,ke.defaultSize={x:100,y:30},ke.setColor=ke.setColor.bind(ke),ke.setFont=ke.setFont.bind(ke),ke.renderText=ke.renderText.bind(ke),ke.sizeText=ke.sizeText.bind(ke),ke.textEditDivClicked=ke.textEditDivClicked.bind(ke),ke.showTextEditor=ke.showTextEditor.bind(ke),ke.setSize=ke.setSize.bind(ke),ke.positionTextEditor=ke.positionTextEditor.bind(ke),ke.colorPanel=new te("Color",Ke.defaultColorSet,Ke.defaultColor),ke.colorPanel.onColorChanged=ke.setColor,ke.fontFamilyPanel=new gt("Font",Ke.defaultFontFamilies,Ke.defaultFontFamily),ke.fontFamilyPanel.onFontChanged=ke.setFont,ke}return tt(be,je),be.prototype.ownsTarget=function(we){if(je.prototype.ownsTarget.call(this,we)||we===this.visual||we===this.textElement||we===this.bgRectangle)return!0;var Be=!1;return this.textElement.childNodes.forEach(function(Ke){Ke===we&&(Be=!0)}),Be},be.prototype.createVisual=function(){this.visual=ze.createGroup(),this.bgRectangle=ze.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ze.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ze.createTransform()),this.textElement.transform.baseVal.appendItem(ze.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},be.prototype.pointerDown=function(we,Be){je.prototype.pointerDown.call(this,we,Be),this.isMoved=!1,this.pointerDownPoint=we,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(we),this._state="creating")},be.prototype.renderText=function(){var we=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(Be){we.textElement.appendChild(ze.createTSpan(Be.trim()===""?" ":Be.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},be.prototype.getTextScale=function(){var we=this.textElement.getBBox(),Be=1;if(we.width>0&&we.height>0){var Ke=(1*this.width-this.width*this.padding*2/100)/we.width,ke=(1*this.height-this.height*this.padding*2/100)/we.height;Be=Math.min(Ke,ke)}return Be},be.prototype.getTextPosition=function(we){var Be=this.textElement.getBBox(),Ke=0,ke=0;return Be.width>0&&Be.height>0&&(Ke=(this.width-Be.width*we)/2,ke=this.height/2-Be.height*we/2),{x:Ke,y:ke}},be.prototype.sizeText=function(){var we=this.textElement.getBBox(),Be=this.getTextScale(),Ke=this.getTextPosition(Be);Ke.y-=we.y*Be,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Ke.x+"px, "+Ke.y+"px) scale("+Be+", "+Be+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Ke.x,Ke.y),this.textElement.transform.baseVal.getItem(1).setScale(Be,Be))},be.prototype.manipulate=function(we){je.prototype.manipulate.call(this,we),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(we.x-this.pointerDownPoint.x)>5||Math.abs(we.y-this.pointerDownPoint.y)>5)},be.prototype.resize=function(we){je.prototype.resize.call(this,we),this.isMoved=!0,this.setSize(),this.sizeText()},be.prototype.setSize=function(){je.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(ze.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ze.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},be.prototype.pointerUp=function(we){var Be=this.state;Be==="creating"&&(this._suppressMarkerCreateEvent=!0),je.prototype.pointerUp.call(this,we),this.setSize(),(Be==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},be.prototype.showTextEditor=function(){var we=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(Be){Be.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Be=Number.parseFloat(we.textEditor.style.fontSize);we.textEditor.clientWidth>=Number.parseInt(we.textEditor.style.maxWidth)&&Be>.9;)Be-=.1,we.textEditor.style.fontSize=Math.max(Be,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Be){Be.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Be){if(Be.clipboardData){var Ke=Be.clipboardData.getData("text"),ke=window.getSelection();if(!ke.rangeCount)return!1;ke.deleteFromDocument(),ke.getRangeAt(0).insertNode(document.createTextNode(Ke)),Be.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){we.textEditDivClicked(we.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},be.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var we=this.getTextScale(),Be=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Ke=this.textElement.getBBox(),ke={x:Ke.width*we,y:Ke.height*we};Be.x-=ke.x/2,Be.y-=ke.y/2,this.textEditor.style.top=Be.y+"px",this.textEditor.style.left=Be.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Be.x+"px",this.textEditor.style.fontSize=Math.max(16*we,12)+"px",this.textElement.style.display="none"}},be.prototype.textEditDivClicked=function(we){this.text=we.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},be.prototype.select=function(){je.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},be.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),je.prototype.deselect.call(this)},be.prototype.dblClick=function(we,Be){je.prototype.dblClick.call(this,we,Be),this.showTextEditor()},be.prototype.setColor=function(we){this.textElement&&ze.setAttributes(this.textElement,[["fill",we]]),this.color=we,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(we)},be.prototype.setFont=function(we){this.textElement&&ze.setAttributes(this.textElement,[["font-family",we]]),this.fontFamily=we,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},be.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},be.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(be.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),be.prototype.getState=function(){var we=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},je.prototype.getState.call(this));return we.typeName=be.typeName,we},be.prototype.restoreState=function(we){var Be=we;this.color=Be.color,this.fontFamily=Be.fontFamily,this.padding=Be.padding,this.text=Be.text,this.createVisual(),je.prototype.restoreState.call(this,we),this.setSize()},be.prototype.scale=function(we,Be){je.prototype.scale.call(this,we,Be),this.setSize(),this.sizeText(),this.positionTextEditor()},be.typeName="TextMarker",be.title="Text marker",be.icon='',be}(Se),Ct=function(je){function be(we,Be,Ke){var ke=je.call(this,we,Be,Ke)||this;return ke.color="transparent",ke.lineWidth=3,ke.drawing=!1,ke.pixelRatio=1,ke.color=Ke.defaultColor,ke.lineWidth=Ke.defaultStrokeWidth,ke.pixelRatio=Ke.freehandPixelRatio,ke.setColor=ke.setColor.bind(ke),ke.addCanvas=ke.addCanvas.bind(ke),ke.finishCreation=ke.finishCreation.bind(ke),ke.setLineWidth=ke.setLineWidth.bind(ke),ke.colorPanel=new te("Color",Ke.defaultColorSet,Ke.defaultColor),ke.colorPanel.onColorChanged=ke.setColor,ke.lineWidthPanel=new Ie("Line width",Ke.defaultStrokeWidths,Ke.defaultStrokeWidth),ke.lineWidthPanel.onWidthChanged=ke.setLineWidth,ke}return tt(be,je),be.prototype.ownsTarget=function(we){return!(!je.prototype.ownsTarget.call(this,we)&&we!==this.visual&&we!==this.drawingImage)},be.prototype.createVisual=function(){this.visual=ze.createGroup(),this.drawingImage=ze.createImage(),this.visual.appendChild(this.drawingImage);var we=ze.createTransform();this.visual.transform.baseVal.appendItem(we),this.addMarkerVisualToContainer(this.visual)},be.prototype.pointerDown=function(we,Be){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(we.x,we.y),this.drawing=!0):je.prototype.pointerDown.call(this,we,Be)},be.prototype.manipulate=function(we){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(we.x,we.y),this.canvasContext.stroke()):je.prototype.manipulate.call(this,we)},be.prototype.resize=function(we){je.prototype.resize.call(this,we),ze.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ze.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},be.prototype.pointerUp=function(we){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):je.prototype.pointerUp.call(this,we)},be.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)},be.prototype.select=function(){this.state==="creating"&&this.finishCreation(),je.prototype.select.call(this)},be.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),je.prototype.deselect.call(this)},be.prototype.finishCreation=function(){for(var we=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Be=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Ke=Be[0],ke=Be[1],et=Be[2],sn=Be[3],Bt=!1,_t=0;_t0&&(Bt=!0,_tsn&&(sn=_t),vt>et&&(et=vt));if(Bt){this.left=Ke/this.pixelRatio,this.top=ke/this.pixelRatio,this.width=(et-Ke)/this.pixelRatio,this.height=(sn-ke)/this.pixelRatio;var xt=document.createElement("canvas");xt.width=et-Ke,xt.height=sn-ke,xt.getContext("2d").putImageData(this.canvasContext.getImageData(Ke,ke,et-Ke,sn-ke),0,0),this.drawingImgUrl=xt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},be.prototype.setDrawingImage=function(){ze.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ze.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},be.prototype.setColor=function(we){this.color=we,this.colorChanged(we)},be.prototype.setLineWidth=function(we){this.lineWidth=we},Object.defineProperty(be.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),be.prototype.getState=function(){var we=Object.assign({drawingImgUrl:this.drawingImgUrl},je.prototype.getState.call(this));return we.typeName=be.typeName,we},be.prototype.restoreState=function(we){this.createVisual(),je.prototype.restoreState.call(this,we),this.drawingImgUrl=we.drawingImgUrl,this.setDrawingImage()},be.prototype.scale=function(we,Be){je.prototype.scale.call(this,we,Be),this.setDrawingImage()},be.typeName="FreehandMarker",be.title="Freehand marker",be.icon='',be}(Se),ln=function(je){function be(we,Be,Ke){var ke=je.call(this,we,Ke||'')||this;return ke.typeBoxes=[],ke.currentType=Be,ke.setCurrentType=ke.setCurrentType.bind(ke),ke}return tt(be,je),be.prototype.getUi=function(){var we=this,Be=document.createElement("div");Be.style.display="flex",Be.style.overflow="hidden",Be.style.flexGrow="2";for(var Ke=function(sn){var Bt="both";switch(sn){case 0:Bt="both";break;case 1:Bt="start";break;case 2:Bt="end";break;case 3:Bt="none"}var _t=document.createElement("div");if(_t.style.display="flex",_t.style.flexGrow="2",_t.style.alignItems="center",_t.style.justifyContent="space-between",_t.style.padding="5px",_t.style.borderWidth="2px",_t.style.borderStyle="solid",_t.style.borderColor=Bt===ke.currentType?ke.uiStyleSettings.toolboxAccentColor:"transparent",_t.addEventListener("click",function(){we.setCurrentType(Bt,_t)}),Be.appendChild(_t),Bt==="both"||Bt==="start"){var vt=document.createElement("div");vt.style.display="flex",vt.style.alignItems="center",vt.style.minHeight="20px",vt.innerHTML=` `,vt.style.marginLeft="5px",_t.appendChild(vt)}var xt=document.createElement("div");xt.style.display="flex",xt.style.alignItems="center",xt.style.minHeight="20px",xt.style.flexGrow="2";var Tt=document.createElement("hr");if(Tt.style.minWidth="20px",Tt.style.border="0px",Tt.style.borderTop="3px solid "+(ke.uiStyleSettings!==void 0?ke.uiStyleSettings.toolboxColor:"#eeeeee"),Tt.style.flexGrow="2",xt.appendChild(Tt),_t.appendChild(xt),Bt==="both"||Bt==="end"){var Ut=document.createElement("div");Ut.style.display="flex",Ut.style.alignItems="center",Ut.style.minHeight="20px",Ut.innerHTML=` `,Ut.style.marginRight="5px",_t.appendChild(Ut)}ke.typeBoxes.push(_t)},ke=this,et=0;et<4;et++)Ke(et);return Be},be.prototype.setCurrentType=function(we,Be){var Ke=this;this.currentType=we,this.typeBoxes.forEach(function(ke){ke.style.borderColor=ke===Be?Ke.uiStyleSettings!==void 0?Ke.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},be}(ne),bn=function(je){function be(we,Be,Ke){var ke=je.call(this,we,Be,Ke)||this;return ke.arrowType="end",ke.arrowBaseHeight=10,ke.arrowBaseWidth=10,ke.getArrowPoints=ke.getArrowPoints.bind(ke),ke.setArrowType=ke.setArrowType.bind(ke),ke.arrowTypePanel=new ln("Arrow type","end"),ke.arrowTypePanel.onArrowTypeChanged=ke.setArrowType,ke}return tt(be,je),be.prototype.ownsTarget=function(we){return!(!je.prototype.ownsTarget.call(this,we)&&we!==this.arrow1&&we!==this.arrow2)},be.prototype.getArrowPoints=function(we,Be){var Ke=this.arrowBaseWidth+2*this.strokeWidth,ke=this.arrowBaseHeight+2*this.strokeWidth;return we-Ke/2+","+(Be+ke/2)+" "+we+","+(Be-ke/2)+" "+(we+Ke/2)+","+(Be+ke/2)},be.prototype.createTips=function(){this.arrow1=ze.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ze.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ze.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ze.createTransform()),this.visual.appendChild(this.arrow2)},be.prototype.pointerDown=function(we,Be){je.prototype.pointerDown.call(this,we,Be),this.state==="creating"&&this.createTips()},be.prototype.adjustVisual=function(){if(je.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",ze.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ze.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var we=0;Math.abs(this.x1-this.x2)>.1&&(we=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Be=this.arrow1.transform.baseVal.getItem(0);Be.setRotate(we,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Be,0);var Ke=this.arrow2.transform.baseVal.getItem(0);Ke.setRotate(we+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Ke,0)}},be.prototype.setArrowType=function(we){this.arrowType=we,this.adjustVisual(),this.stateChanged()},Object.defineProperty(be.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),be.prototype.getState=function(){var we=Object.assign({arrowType:this.arrowType},je.prototype.getState.call(this));return we.typeName=be.typeName,we},be.prototype.restoreState=function(we){je.prototype.restoreState.call(this,we);var Be=we;this.arrowType=Be.arrowType,this.createTips(),this.adjustVisual()},be.typeName="ArrowMarker",be.title="Arrow marker",be.icon='',be}(wt),fn=function(je){function be(we,Be,Ke){var ke=je.call(this,we,Be,Ke)||this;return ke.fillColor=Ke.defaultFillColor,ke.strokeWidth=0,ke.fillPanel=new te("Color",Ke.defaultColorSet,Ke.defaultFillColor),ke.fillPanel.onColorChanged=ke.setFillColor,ke}return tt(be,je),Object.defineProperty(be.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),be.prototype.getState=function(){var we=je.prototype.getState.call(this);return we.typeName=be.typeName,we},be.typeName="CoverMarker",be.title="Cover marker",be.icon='',be}(Le),Yt=function(je){function be(we,Be,Ke,ke){var et=je.call(this,we,ke||'')||this;return et.opacities=[],et.opacityBoxes=[],et.opacities=Be,et.currentOpacity=Ke,et.setCurrentOpacity=et.setCurrentOpacity.bind(et),et}return tt(be,je),be.prototype.getUi=function(){var we=this,Be=document.createElement("div");return Be.style.display="flex",Be.style.overflow="hidden",Be.style.flexGrow="2",Be.style.justifyContent="space-between",this.opacities.forEach(function(Ke){var ke=document.createElement("div");ke.style.display="flex",ke.style.alignItems="center",ke.style.justifyContent="center",ke.style.padding="5px",ke.style.borderWidth="2px",ke.style.borderStyle="solid",ke.style.borderColor=Ke===we.currentOpacity?we.uiStyleSettings.toolboxAccentColor:"transparent",ke.addEventListener("click",function(){we.setCurrentOpacity(Ke,ke)}),Be.appendChild(ke);var et=document.createElement("div");et.innerText=100*Ke+"%",ke.appendChild(et),we.opacityBoxes.push(ke)}),Be},be.prototype.setCurrentOpacity=function(we,Be){var Ke=this;this.currentOpacity=we,this.opacityBoxes.forEach(function(ke){ke.style.borderColor=ke===Be?Ke.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},be}(ne),Ln=function(je){function be(we,Be,Ke){var ke=je.call(this,we,Be,Ke)||this;return ke.setOpacity=ke.setOpacity.bind(ke),ke.fillColor=Ke.defaultHighlightColor,ke.strokeWidth=0,ke.opacity=Ke.defaultHighlightOpacity,ke.fillPanel=new te("Color",Ke.defaultColorSet,ke.fillColor),ke.fillPanel.onColorChanged=ke.setFillColor,ke.opacityPanel=new Yt("Opacity",Ke.defaultOpacitySteps,ke.opacity),ke.opacityPanel.onOpacityChanged=ke.setOpacity,ke}return tt(be,je),be.prototype.setOpacity=function(we){this.opacity=we,this.visual&&ze.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(be.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),be.prototype.getState=function(){var we=je.prototype.getState.call(this);return we.typeName=be.typeName,we},be.typeName="HighlightMarker",be.title="Highlight marker",be.icon='',be}(fn),lt='',qe='',yn=function(je){function be(we,Be,Ke){var ke=je.call(this,we,Be,Ke)||this;return ke.bgColor="transparent",ke.tipPosition={x:0,y:0},ke.tipBase1Position={x:0,y:0},ke.tipBase2Position={x:0,y:0},ke.tipMoving=!1,ke.color=Ke.defaultStrokeColor,ke.bgColor=Ke.defaultFillColor,ke.fontFamily=Ke.defaultFontFamily,ke.defaultSize={x:100,y:30},ke.setBgColor=ke.setBgColor.bind(ke),ke.getTipPoints=ke.getTipPoints.bind(ke),ke.positionTip=ke.positionTip.bind(ke),ke.setTipPoints=ke.setTipPoints.bind(ke),ke.colorPanel=new te("Text color",Ke.defaultColorSet,ke.color,lt),ke.colorPanel.onColorChanged=ke.setColor,ke.bgColorPanel=new te("Fill color",Ke.defaultColorSet,ke.bgColor,qe),ke.bgColorPanel.onColorChanged=ke.setBgColor,ke.fontFamilyPanel=new gt("Font",Ke.defaultFontFamilies,Ke.defaultFontFamily),ke.fontFamilyPanel.onFontChanged=ke.setFont,ke.tipGrip=new ge,ke.tipGrip.visual.transform.baseVal.appendItem(ze.createTransform()),ke.controlBox.appendChild(ke.tipGrip.visual),ke}return tt(be,je),be.prototype.ownsTarget=function(we){return je.prototype.ownsTarget.call(this,we)||this.tipGrip.ownsTarget(we)||this.tip===we},be.prototype.createTip=function(){ze.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ze.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},be.prototype.pointerDown=function(we,Be){this.state==="new"&&je.prototype.pointerDown.call(this,we,Be),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Be)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):je.prototype.pointerDown.call(this,we,Be)},be.prototype.pointerUp=function(we){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,je.prototype.pointerUp.call(this,we);else{var Be=this.state==="creating";je.prototype.pointerUp.call(this,we),this.setTipPoints(Be),this.positionTip()}},be.prototype.manipulate=function(we){if(this.tipMoving){var Be=this.unrotatePoint(we);this.tipPosition={x:Be.x-this.manipulationStartLeft,y:Be.y-this.manipulationStartTop},this.positionTip()}else je.prototype.manipulate.call(this,we)},be.prototype.setBgColor=function(we){this.bgRectangle&&this.tip&&(ze.setAttributes(this.bgRectangle,[["fill",we]]),ze.setAttributes(this.tip,[["fill",we]])),this.bgColor=we,this.fillColorChanged(we)},be.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},be.prototype.setTipPoints=function(we){we===void 0&&(we=!1);var Be=Math.min(this.height/2,15),Ke=this.height/5;we&&(this.tipPosition={x:Be+Ke/2,y:this.height+20});var ke=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?ke.1)){var we=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Be=this.tip1.transform.baseVal.getItem(0);Be.setRotate(we,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Be,0);var Ke=this.tip2.transform.baseVal.getItem(0);Ke.setRotate(we+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Ke,0)}},Object.defineProperty(be.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),be.prototype.getState=function(){var we=je.prototype.getState.call(this);return we.typeName=be.typeName,we},be.prototype.restoreState=function(we){je.prototype.restoreState.call(this,we),this.createTips(),this.adjustVisual()},be.typeName="MeasurementMarker",be.title="Measurement marker",be.icon='',be}(wt),rn=function(je){function be(we,Be,Ke){var ke=je.call(this,we,Be,Ke)||this;return ke.strokePanel.colors=Ke.defaultColorSet,ke.fillColor="transparent",ke}return tt(be,je),Object.defineProperty(be.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),be.prototype.getState=function(){var we=je.prototype.getState.call(this);return we.typeName=be.typeName,we},be.typeName="EllipseFrameMarker",be.title="Ellipse frame marker",be.icon='',be}(oi),Gn=function(){function je(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(je.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),je.prototype.addUndoStep=function(be){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(be)||(this.undoStack.push(be),JSON.stringify(this.lastRedoStep)!==JSON.stringify(be)&&this.redoStack.splice(0,this.redoStack.length))},je.prototype.replaceLastUndoStep=function(be){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=be)},je.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},je.prototype.undo=function(){if(this.undoStack.length>1){var be=this.undoStack.pop();return be!==void 0&&this.redoStack.push(be),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},je.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},je}(),Mn=function(je){function be(we,Be,Ke){var ke=je.call(this,we,Be,Ke)||this;return ke.strokeColor="transparent",ke.strokeWidth=0,ke.strokeDasharray="",ke.curveX=0,ke.curveY=0,ke.manipulationStartCurveX=0,ke.manipulationStartCurveY=0,ke.setStrokeColor=ke.setStrokeColor.bind(ke),ke.setStrokeWidth=ke.setStrokeWidth.bind(ke),ke.setStrokeDasharray=ke.setStrokeDasharray.bind(ke),ke.positionGrips=ke.positionGrips.bind(ke),ke.addControlGrips=ke.addControlGrips.bind(ke),ke.adjustVisual=ke.adjustVisual.bind(ke),ke.setupControlBox=ke.setupControlBox.bind(ke),ke.resize=ke.resize.bind(ke),ke.strokeColor=Ke.defaultColor,ke.strokeWidth=Ke.defaultStrokeWidth,ke.strokeDasharray=Ke.defaultStrokeDasharray,ke.strokePanel=new te("Line color",Ke.defaultColorSet,Ke.defaultColor),ke.strokePanel.onColorChanged=ke.setStrokeColor,ke.strokeWidthPanel=new Ie("Line width",Ke.defaultStrokeWidths,Ke.defaultStrokeWidth),ke.strokeWidthPanel.onWidthChanged=ke.setStrokeWidth,ke.strokeStylePanel=new Ze("Line style",Ke.defaultStrokeDasharrays,Ke.defaultStrokeDasharray),ke.strokeStylePanel.onStyleChanged=ke.setStrokeDasharray,ke}return tt(be,je),be.prototype.ownsTarget=function(we){return!(!je.prototype.ownsTarget.call(this,we)&&we!==this.visual&&we!==this.selectorCurve&&we!==this.visibleCurve&&!this.curveGrip.ownsTarget(we))},be.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},be.prototype.createVisual=function(){this.visual=ze.createGroup(),this.selectorCurve=ze.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ze.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)},be.prototype.pointerDown=function(we,Be){je.prototype.pointerDown.call(this,we,Be),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=we.x,this.curveY=we.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Be)&&(this.activeGrip=this.curveGrip,this._state="resize")},be.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),ze.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ze.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ze.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},be.prototype.setupControlBox=function(){je.prototype.setupControlBox.call(this),this.curveControlLine1=ze.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ze.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)},be.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,je.prototype.addControlGrips.call(this)},be.prototype.positionGrips=function(){je.prototype.positionGrips.call(this);var we=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-we/2,this.curveY-we/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()))},be.prototype.manipulate=function(we){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+we.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+we.y-this.manipulationStartY),je.prototype.manipulate.call(this,we)},be.prototype.resize=function(we){this.activeGrip===this.curveGrip&&(this.curveX=we.x,this.curveY=we.y),je.prototype.resize.call(this,we),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},be.prototype.setStrokeColor=function(we){this.strokeColor=we,this.adjustVisual(),this.colorChanged(we)},be.prototype.setStrokeWidth=function(we){this.strokeWidth=we,this.adjustVisual()},be.prototype.setStrokeDasharray=function(we){this.strokeDasharray=we,this.adjustVisual()},be.prototype.scale=function(we,Be){this.curveX=this.curveX*we,this.curveY=this.curveY*Be,je.prototype.scale.call(this,we,Be)},Object.defineProperty(be.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),be.prototype.getState=function(){var we=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},je.prototype.getState.call(this));return we.typeName=be.typeName,we},be.prototype.restoreState=function(we){je.prototype.restoreState.call(this,we);var Be=we;this.strokeColor=Be.strokeColor,this.strokeWidth=Be.strokeWidth,this.strokeDasharray=Be.strokeDasharray,this.curveX=Be.curveX,this.curveY=Be.curveY,this.createVisual(),this.adjustVisual()},be.typeName="CurveMarker",be.title="Curve marker",be.icon='',be}(Xe),xi=function(je){function be(we,Be,Ke){var ke=je.call(this,we,Be,Ke)||this;return ke.fillColor="transparent",ke.strokeColor="transparent",ke.strokeWidth=0,ke.strokeDasharray="",ke.textColor="transparent",ke.fontSize="1rem",ke.isMoved=!1,ke.captionText="Caption",ke.PADDING=5,ke.captionBoxWidth=0,ke.captionBoxHeight=0,ke.strokeColor=Ke.defaultColor,ke.strokeWidth=Ke.defaultStrokeWidth,ke.strokeDasharray=Ke.defaultStrokeDasharray,ke.fillColor=Ke.defaultFillColor,ke.textColor=Ke.defaultStrokeColor,ke.fontFamily=Ke.defaultFontFamily,ke.fontSize=Ke.defaultCaptionFontSize,ke.captionText=Ke.defaultCaptionText,ke.setStrokeColor=ke.setStrokeColor.bind(ke),ke.setFillColor=ke.setFillColor.bind(ke),ke.setStrokeWidth=ke.setStrokeWidth.bind(ke),ke.setStrokeDasharray=ke.setStrokeDasharray.bind(ke),ke.createVisual=ke.createVisual.bind(ke),ke.sizeCaption=ke.sizeCaption.bind(ke),ke.setCaptionText=ke.setCaptionText.bind(ke),ke.showTextEditor=ke.showTextEditor.bind(ke),ke.positionTextEditor=ke.positionTextEditor.bind(ke),ke.finishTextEditing=ke.finishTextEditing.bind(ke),ke.setFont=ke.setFont.bind(ke),ke.setTextColor=ke.setTextColor.bind(ke),ke.strokePanel=new te("Line color",Et(Ke.defaultColorSet,["transparent"]),ke.strokeColor),ke.strokePanel.onColorChanged=ke.setStrokeColor,ke.fillPanel=new te("Fill color",Et(Ke.defaultColorSet,["transparent"]),ke.fillColor,qe),ke.fillPanel.onColorChanged=ke.setFillColor,ke.strokeWidthPanel=new Ie("Line width",Ke.defaultStrokeWidths,Ke.defaultStrokeWidth),ke.strokeWidthPanel.onWidthChanged=ke.setStrokeWidth,ke.strokeStylePanel=new Ze("Line style",Ke.defaultStrokeDasharrays,Ke.defaultStrokeDasharray),ke.strokeStylePanel.onStyleChanged=ke.setStrokeDasharray,ke.fontFamilyPanel=new gt("Font",Ke.defaultFontFamilies,Ke.defaultFontFamily),ke.fontFamilyPanel.onFontChanged=ke.setFont,ke.textColorPanel=new te("Text color",Ke.defaultColorSet,ke.textColor,lt),ke.textColorPanel.onColorChanged=ke.setTextColor,ke}return tt(be,je),be.prototype.ownsTarget=function(we){return!(!je.prototype.ownsTarget.call(this,we)&&we!==this.visual&&we!==this.frame&&we!==this.captionBg&&we!==this.captionElement)},be.prototype.createVisual=function(){this.visual=ze.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=ze.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=ze.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=ze.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()},be.prototype.setCaptionText=function(we){this.captionText=we,this.captionElement.textContent=this.captionText,this.sizeCaption()},be.prototype.pointerDown=function(we,Be){je.prototype.pointerDown.call(this,we,Be),this.isMoved=!1,this.pointerDownPoint=we,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(we),this._state="creating")},be.prototype.manipulate=function(we){je.prototype.manipulate.call(this,we),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(we.x-this.pointerDownPoint.x)>5||Math.abs(we.y-this.pointerDownPoint.y)>5)},be.prototype.resize=function(we){je.prototype.resize.call(this,we),this.setSize()},be.prototype.sizeCaption=function(){var we=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=we.width+2*this.PADDING,this.captionBoxHeight=we.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),ze.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')"]]),ze.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')"]])},be.prototype.showTextEditor=function(){var we=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(Be){Be.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Be){Be.key==="Enter"&&we.finishTextEditing(we.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Be){Be.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){we.finishTextEditing(we.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){we.finishTextEditing(we.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},be.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"))},be.prototype.finishTextEditing=function(we){this.setCaptionText(we.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},be.prototype.setFont=function(we){this.captionElement&&ze.setAttributes(this.captionElement,[["font-family",we]]),this.fontFamily=we,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},be.prototype.setTextColor=function(we){this.captionElement&&ze.setAttributes(this.captionElement,[["fill",we]]),this.textColor=we,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},be.prototype.setSize=function(){je.prototype.setSize.call(this),ze.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},be.prototype.pointerUp=function(we){je.prototype.pointerUp.call(this,we),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},be.prototype.dblClick=function(we,Be){je.prototype.dblClick.call(this,we,Be),this.showTextEditor()},be.prototype.setStrokeColor=function(we){this.strokeColor=we,this.frame&&ze.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(we),this.stateChanged()},be.prototype.setFillColor=function(we){this.fillColor=we,this.captionBg&&ze.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(we),this.stateChanged()},be.prototype.setStrokeWidth=function(we){this.strokeWidth=we,this.frame&&ze.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},be.prototype.setStrokeDasharray=function(we){this.strokeDasharray=we,this.frame&&ze.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(be.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),be.prototype.getState=function(){var we=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},je.prototype.getState.call(this));return we.typeName=this.typeName,we},be.prototype.restoreState=function(we){var Be=we;this.fillColor=Be.fillColor,this.strokeColor=Be.strokeColor,this.strokeWidth=Be.strokeWidth,this.strokeDasharray=Be.strokeDasharray,this.textColor=Be.textColor,this.fontFamily=Be.fontFamily,this.captionText=Be.captionText,this.fontSize=Be.fontSize,this.createVisual(),je.prototype.restoreState.call(this,we),this.setSize()},be.prototype.scale=function(we,Be){je.prototype.scale.call(this,we,Be),this.setSize()},be.typeName="CaptionFrameMarker",be.title="Caption frame marker",be.icon='',be}(Se),Wt=function(){function je(be,we){we===void 0&&(we=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=be,this.cancelable=we}return Object.defineProperty(je.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),je.prototype.preventDefault=function(){this._defaultPrevented=!0},je}(),Nn=function(je){function be(we,Be,Ke){var ke=je.call(this,we,!1)||this;return ke.dataUrl=Be,ke.state=Ke,ke}return tt(be,je),be}(Wt),St=function(je){function be(we,Be,Ke){Ke===void 0&&(Ke=!1);var ke=je.call(this,we,Ke)||this;return ke.marker=Be,ke}return tt(be,je),be}(Wt),bi=function(){function je(){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 je.prototype.addEventListener=function(be,we){this[be].push(we)},je.prototype.removeEventListener=function(be,we){var Be=this[be].indexOf(we);Be>-1&&this[be].splice(Be,1)},je}(),qn=function(){function je(be){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ve,this._isOpen=!1,this.undoRedoManager=new Gn,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 bi,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=je.instanceCounter++,this.styles=new Me(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=be,this.targetRoot=document.body,this.width=be.clientWidth,this.height=be.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(je.prototype,"ALL_MARKER_TYPES",{get:function(){return[st,Ct,bn,Nt,rn,oi,Ln,yn,Yn,fn,wt,Mn,xi]},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[st,Ct,bn,Nt,oi,Ln,yn]},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"BASIC_MARKER_TYPES",{get:function(){return[st,Ct,bn,Nt,Ln]},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(be){var we=this;this._availableMarkerTypes.splice(0),be.forEach(function(Be){if(typeof Be=="string"){var Ke=we.ALL_MARKER_TYPES.find(function(ke){return ke.typeName===Be});Ke!==void 0&&we._availableMarkerTypes.push(Ke)}else we._availableMarkerTypes.push(Be)})},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(be){this._zoomLevel=be,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(je.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),je.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ct.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},je.prototype.show=function(){var be=this;this.styles.styleSheetRoot===void 0&&ft.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ft.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(we){return we(new Wt(be))})},je.prototype.render=function(){return it(this,void 0,void 0,function(){var be;return Ft(this,function(we){switch(we.label){case 0:return this.setCurrentMarker(),(be=new Kt).naturalSize=this.renderAtNaturalSize,be.imageType=this.renderImageType,be.imageQuality=this.renderImageQuality,be.markersOnly=this.renderMarkersOnly,be.width=this.renderWidth,be.height=this.renderHeight,[4,be.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return we.sent(),[4,be.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,we.sent()]}})})},je.prototype.close=function(be){var we=this;if(be===void 0&&(be=!1),this.isOpen){var Be=!1;be||this.eventListeners.beforeclose.forEach(function(Ke){var ke=new Wt(we,!0);Ke(ke),ke.defaultPrevented&&(Be=!0)}),Be||(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(Ke){return Ke(new Wt(we))}),this.detachEvents(),this._isOpen=!1)}},je.prototype.addMarkersToToolbar=function(){for(var be,we=[],Be=0;Bethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*be:this.editorCanvas.clientWidth,Be=we',be.title="Powered by marker.js",be.style.display="grid",be.style.alignItems="center",be.style.justifyItems="center",be.style.padding="3px",be.style.width="20px",be.style.height="20px",this.logoUI.appendChild(be),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},je.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")},je.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"},je.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},je.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 be=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=be+"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 Ht(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-1&&this.markers.splice(this.markers.indexOf(be),1),be.dispose()},je.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())},je.prototype.toolbarButtonClicked=function(be,we){if(be==="marker"&&we!==void 0)this.createNewMarker(we);else if(be==="action")switch(we){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()}},je.prototype.deleteSelectedMarker=function(){var be=this;if(this._currentMarker!==void 0){var we=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Ke){var ke=new St(be,be._currentMarker,!0);Ke(ke),ke.defaultPrevented&&(we=!0)}),!we){var Be=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(Ke){return Ke(new St(be,Be))})}}},je.prototype.clear=function(){var be=this,we=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(et){var sn=new St(be,void 0,!0);et(sn),sn.defaultPrevented&&(we=!0)}),!we)){this.setCurrentMarker();for(var Be=function(et){var sn=Ke.markers[et];Ke.setCurrentMarker(Ke.markers[et]),Ke._currentMarker.dispose(),Ke.markerImage.removeChild(Ke._currentMarker.container),Ke.markers.splice(Ke.markers.indexOf(Ke._currentMarker),1),Ke.eventListeners.markerdelete.forEach(function(Bt){return Bt(new St(be,sn))})},Ke=this,ke=this.markers.length-1;ke>=0;ke--)Be(ke);this.addUndoStep()}},Object.defineProperty(je.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),je.prototype.showNotesEditor=function(){var be;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=(be=this._currentMarker.notes)!==null&&be!==void 0?be:"",this.overlayContainer.appendChild(this.notesArea))},je.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)},je.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},je.prototype.addUndoStep=function(){var be=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var we=this.getState(),Be=this.undoRedoManager.getLastUndoStep();if(!Be||Be.width===we.width&&Be.height===we.height){var Ke=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(we),Ke1&&this.panTo({x:be.clientX,y:be.clientY}))},je.prototype.onPointerUp=function(be){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(be.clientX,be.clientY)),this.isDragging=!1,this.addUndoStep()},je.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},je.prototype.onKeyUp=function(be){this._currentMarker===void 0||this.notesArea!==void 0||be.key!=="Delete"&&be.key!=="Backspace"||this.deleteSelectedMarker()},je.prototype.clientToLocalCoordinates=function(be,we){var Be=this.markerImage.getBoundingClientRect();return{x:(be-Be.left)/this.zoomLevel,y:(we-Be.top)/this.zoomLevel}},je.prototype.onWindowResize=function(){this.positionUI()},je.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var be=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=be+"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()},je.prototype.addLicenseKey=function(be){ct.addKey(be)},je.prototype.addEventListener=function(be,we){this.eventListeners.addEventListener(be,we)},je.prototype.removeEventListener=function(be,we){this.eventListeners.removeEventListener(be,we)},je.prototype.renderState=function(be){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(be),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(je.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),je.prototype.focus=function(){var be=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(we){return we(new Wt(be))}))},je.prototype.blur=function(){var be=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(we){return we(new Wt(be))}))},je.instanceCounter=0,je}()},63727:function(Un,pi,De){"use strict";De.d(pi,{s:function(){return vt},default:function(){return on}});var ye=De(14809),tt=De(20439),it=De(95190),Ft=De(50298),Et=De(62646),ze=De(37463),ct=De(6551),Kt=De(6089),ft=De(18929),Me=De(59301),It=Me.createContext({}),Ye=It,Ht=De(93664),Ne=De(4635),ne="__rc_cascader_search_mark__",te=function(Xt,gn,En){var Vn=En.label,ri=Vn===void 0?"":Vn;return gn.some(function(vi){return String(vi[ri]).toLowerCase().includes(Xt.toLowerCase())})},de=function(Xt,gn,En,Vn){return gn.map(function(ri){return ri[Vn.label]}).join(" / ")},le=function(Xt,gn,En,Vn,ri,vi){var mn=ri.filter,Ai=mn===void 0?te:mn,Yi=ri.render,gr=Yi===void 0?de:Yi,rr=ri.limit,nr=rr===void 0?50:rr,pr=ri.sort;return Me.useMemo(function(){var sr=[];if(!Xt)return[];function cr(Ji,yr){var Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Ji.forEach(function(Sn){if(!(!pr&&nr!==!1&&nr>0&&sr.length>=nr)){var Wn=[].concat((0,it.Z)(yr),[Sn]),gi=Sn[En.children],hi=Ce||Sn.disabled;if((!gi||gi.length===0||vi)&&Ai(Xt,Wn,{label:En.label})){var Zn;sr.push((0,tt.Z)((0,tt.Z)({},Sn),{},(Zn={disabled:hi},(0,Ne.Z)(Zn,En.label,gr(Xt,Wn,Vn,En)),(0,Ne.Z)(Zn,ne,Wn),(0,Ne.Z)(Zn,En.children,void 0),Zn)))}gi&&cr(Sn[En.children],Wn,hi)}})}return cr(gn,[]),pr&&sr.sort(function(Ji,yr){return pr(Ji[ne],yr[ne],Xt,En)}),nr!==!1&&nr>0?sr.slice(0,nr):sr},[Xt,gn,En,Vn,gr,vi,Ai,pr,nr])},ge=le,me="__RC_CASCADER_SPLIT__",Se="SHOW_PARENT",Le="SHOW_CHILD";function Ie(jt){return jt.join(me)}function Ze(jt){return jt.map(Ie)}function st(jt){return jt.split(me)}function Ve(jt){var Xt=jt||{},gn=Xt.label,En=Xt.value,Vn=Xt.children,ri=En||"value";return{label:gn||"label",value:ri,key:ri,children:Vn||"children"}}function Xe(jt,Xt){var gn,En;return(gn=jt.isLeaf)!==null&&gn!==void 0?gn:!((En=jt[Xt.children])!==null&&En!==void 0&&En.length)}function wt(jt){var Xt=jt.parentElement;if(Xt){var gn=jt.offsetTop-Xt.offsetTop;gn-Xt.scrollTop<0?Xt.scrollTo({top:gn}):gn+jt.offsetHeight-Xt.scrollTop>Xt.offsetHeight&&Xt.scrollTo({top:gn+jt.offsetHeight-Xt.offsetHeight})}}function gt(jt,Xt){return jt.map(function(gn){var En;return(En=gn[ne])===null||En===void 0?void 0:En.map(function(Vn){return Vn[Xt.value]})})}function Nt(jt){return Array.isArray(jt)&&Array.isArray(jt[0])}function Ct(jt){return jt?Nt(jt)?jt:(jt.length===0?[]:[jt]).map(function(Xt){return Array.isArray(Xt)?Xt:[Xt]}):[]}function ln(jt,Xt,gn){var En=new Set(jt),Vn=Xt();return jt.filter(function(ri){var vi=Vn[ri],mn=vi?vi.parent:null,Ai=vi?vi.children:null;return vi&&vi.node.disabled?!0:gn===Le?!(Ai&&Ai.some(function(Yi){return Yi.key&&En.has(Yi.key)})):!(mn&&!mn.node.disabled&&En.has(mn.key))})}function bn(jt,Xt,gn){for(var En=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Vn=Xt,ri=[],vi=function(){var Yi,gr,rr,nr=jt[mn],pr=(Yi=Vn)===null||Yi===void 0?void 0:Yi.findIndex(function(cr){var Ji=cr[gn.value];return En?String(Ji)===String(nr):Ji===nr}),sr=pr!==-1?(gr=Vn)===null||gr===void 0?void 0:gr[pr]:null;ri.push({value:(rr=sr==null?void 0:sr[gn.value])!==null&&rr!==void 0?rr:nr,index:pr,option:sr}),Vn=sr==null?void 0:sr[gn.children]},mn=0;mn1){var Zn=sr.slice(0,-1);Ce(Zn)}else Yi(!1)},gi=function(){var Zn,nn=((Zn=Ji[cr])===null||Zn===void 0?void 0:Zn[gn.children])||[],Hn=nn.find(function(At){return!At.disabled});if(Hn){var di=[].concat((0,it.Z)(sr),[Hn[gn.value]]);Ce(di)}};Me.useImperativeHandle(jt,function(){return{onKeyDown:function(Zn){var nn=Zn.which;switch(nn){case we.Z.UP:case we.Z.DOWN:{var Hn=0;nn===we.Z.UP?Hn=-1:nn===we.Z.DOWN&&(Hn=1),Hn!==0&&Sn(Hn);break}case we.Z.LEFT:{if(Ai)break;rr?gi():Wn();break}case we.Z.RIGHT:{if(Ai)break;rr?Wn():gi();break}case we.Z.BACKSPACE:{Ai||Wn();break}case we.Z.ENTER:{if(sr.length){var di=Ji[cr],At=(di==null?void 0:di[ne])||[];At.length?ri(At.map(function(Dt){return Dt[gn.value]}),At[At.length-1]):ri(sr,Ji[cr])}break}case we.Z.ESC:Yi(!1),gr&&Zn.stopPropagation()}},onKeyUp:function(){}}})},Ke=Me.forwardRef(function(jt,Xt){var gn,En,Vn,ri=jt.prefixCls,vi=jt.multiple,mn=jt.searchValue,Ai=jt.toggleOpen,Yi=jt.notFoundContent,gr=jt.direction,rr=jt.open,nr=jt.disabled,pr=Me.useRef(null),sr=gr==="rtl",cr=Me.useContext(Ye),Ji=cr.options,yr=cr.values,Ce=cr.halfValues,Sn=cr.fieldNames,Wn=cr.changeOnSelect,gi=cr.onSelect,hi=cr.searchOptions,Zn=cr.dropdownPrefixCls,nn=cr.loadData,Hn=cr.expandTrigger,di=Zn||ri,At=Me.useState([]),Dt=(0,Ft.Z)(At,2),bt=Dt[0],ti=Dt[1],yi=function(ir){if(!(!nn||mn)){var Wi=bn(ir,Ji,Sn),Ii=Wi.map(function(Mr){var Yr=Mr.option;return Yr}),un=Ii[Ii.length-1];if(un&&!Xe(un,Sn)){var vr=Ie(ir);ti(function(Mr){return[].concat((0,it.Z)(Mr),[vr])}),nn(Ii)}}};Me.useEffect(function(){bt.length&&bt.forEach(function(wi){var ir=st(wi),Wi=bn(ir,Ji,Sn,!0).map(function(un){var vr=un.option;return vr}),Ii=Wi[Wi.length-1];(!Ii||Ii[Sn.children]||Xe(Ii,Sn))&&ti(function(un){return un.filter(function(vr){return vr!==wi})})})},[Ji,bt,Sn]);var ci=Me.useMemo(function(){return new Set(Ze(yr))},[yr]),Pn=Me.useMemo(function(){return new Set(Ze(Ce))},[Ce]),fi=be(vi,rr),Cn=(0,Ft.Z)(fi,2),Qi=Cn[0],dr=Cn[1],Ge=function(ir){dr(ir),yi(ir)},Pt=function(ir){if(nr)return!1;var Wi=ir.disabled,Ii=Xe(ir,Sn);return!Wi&&(Ii||Wn||vi)},Kn=function(ir,Wi){var Ii=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;gi(ir),!vi&&(Wi||Wn&&(Hn==="hover"||Ii))&&Ai(!1)},Bn=Me.useMemo(function(){return mn?hi:Ji},[mn,hi,Ji]),zt=Me.useMemo(function(){for(var wi=[{options:Bn}],ir=Bn,Wi=gt(ir,Sn),Ii=function(){var Mr=Qi[un],Yr=ir.find(function(Pi,Gi){return(Wi[Gi]?Ie(Wi[Gi]):Pi[Sn.value])===Mr}),wn=Yr==null?void 0:Yr[Sn.children];if(!(wn!=null&&wn.length))return 1;ir=wn,wi.push({options:wn})},un=0;un":yr,Sn=gn.loadingIcon,Wn=gn.direction,gi=gn.notFoundContent,hi=gi===void 0?"Not Found":gi,Zn=gn.disabled,nn=!!Ai,Hn=(0,Bt.C8)(Yi,{value:gr,postState:Ct}),di=(0,Ft.Z)(Hn,2),At=di[0],Dt=di[1],bt=Me.useMemo(function(){return Ve(rr)},[JSON.stringify(rr)]),ti=qe(bt,mn),yi=(0,Ft.Z)(ti,3),ci=yi[0],Pn=yi[1],fi=yi[2],Cn=Yt(ci,bt),Qi=Gn(nn,At,Pn,fi,Cn),dr=(0,Ft.Z)(Qi,3),Ge=dr[0],Pt=dr[1],Kn=dr[2],Bn=(0,Bt.zX)(function(ai){if(Dt(ai),pr){var Li=Ct(ai),wi=Li.map(function(Ii){return bn(Ii,ci,bt).map(function(un){return un.option})}),ir=nn?Li:Li[0],Wi=nn?wi:wi[0];pr(ir,Wi)}}),zt=rn(nn,Bn,Ge,Pt,Kn,Pn,fi,sr),Fn=(0,Bt.zX)(function(ai){zt(ai)}),zn=Me.useMemo(function(){return{options:ci,fieldNames:bt,values:Ge,halfValues:Pt,changeOnSelect:nr,onSelect:Fn,checkable:Ai,searchOptions:[],dropdownPrefixCls:void 0,loadData:cr,expandTrigger:Ji,expandIcon:Ce,loadingIcon:Sn,dropdownMenuColumnStyle:void 0}},[ci,bt,Ge,Pt,nr,Fn,Ai,cr,Ji,Ce,Sn]),Xn="".concat(Vn,"-panel"),Mi=!ci.length;return Me.createElement(Ye.Provider,{value:zn},Me.createElement("div",{className:xi()(Xn,(Xt={},(0,Ne.Z)(Xt,"".concat(Xn,"-rtl"),Wn==="rtl"),(0,Ne.Z)(Xt,"".concat(Xn,"-empty"),Mi),Xt),vi),style:ri},Mi?hi:Me.createElement(ke,{prefixCls:Vn,searchValue:"",multiple:nn,toggleOpen:_t,open:!0,direction:Wn,disabled:Zn})))}function xt(jt){var Xt=jt.onPopupVisibleChange,gn=jt.popupVisible,En=jt.popupClassName,Vn=jt.popupPlacement;warning(!Xt,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(gn===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(En===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Vn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Tt(jt,Xt){if(jt){var gn=function En(Vn){for(var ri=0;ri":yi,Pn=jt.loadingIcon,fi=jt.children,Cn=jt.dropdownMatchSelectWidth,Qi=Cn===void 0?!1:Cn,dr=jt.showCheckedStrategy,Ge=dr===void 0?Se:dr,Pt=jt.optionRender,Kn=(0,Et.Z)(jt,hn),Bn=(0,ct.ZP)(gn),zt=!!rr,Fn=(0,ft.Z)(vi,{value:mn,postState:Ct}),zn=(0,Ft.Z)(Fn,2),Xn=zn[0],Mi=zn[1],ai=Me.useMemo(function(){return Ve(ri)},[JSON.stringify(ri)]),Li=qe(ai,Ce),wi=(0,Ft.Z)(Li,3),ir=wi[0],Wi=wi[1],Ii=wi[2],un=(0,ft.Z)("",{value:sr,postState:function(yt){return yt||""}}),vr=(0,Ft.Z)(un,2),Mr=vr[0],Yr=vr[1],wn=function(yt,Ot){Yr(yt),Ot.source!=="blur"&&cr&&cr(yt)},Pi=oi(Ji),Gi=(0,Ft.Z)(Pi,2),Hi=Gi[0],er=Gi[1],Pr=ge(Mr,ir,ai,Sn||Vn,er,Ai||zt),br=Yt(ir,ai),Zi=Gn(zt,Xn,Wi,Ii,br),tr=(0,Ft.Z)(Zi,3),Ki=tr[0],dn=tr[1],lr=tr[2],vn=Me.useMemo(function(){var $e=Ze(Ki),yt=ln($e,Wi,Ge);return[].concat((0,it.Z)(lr),(0,it.Z)(Ii(yt)))},[Ki,Wi,Ii,lr,Ge]),Fi=fn(vn,ir,ai,zt,gr),Cr=(0,Kt.Z)(function($e){if(Mi($e),Yi){var yt=Ct($e),Ot=yt.map(function(kt){return bn(kt,ir,ai).map(function(Gt){return Gt.option})}),en=zt?yt:yt[0],nt=zt?Ot:Ot[0];Yi(en,nt)}}),Nr=rn(zt,Cr,Ki,dn,lr,Wi,Ii,Ge),to=(0,Kt.Z)(function($e){(!zt||pr)&&Yr(""),Nr($e)}),Ur=function(yt,Ot){if(Ot.type==="clear"){Cr([]);return}var en=Ot.values[0],nt=en.valueCells;to(nt)},Br=hi!==void 0?hi:gi,ao=nn||Zn,Qt=Dt||At,jn=function(yt){bt==null||bt(yt),ti==null||ti(yt)},$t=Me.useMemo(function(){return{options:ir,fieldNames:ai,values:Ki,halfValues:dn,changeOnSelect:Ai,onSelect:to,checkable:rr,searchOptions:Pr,dropdownPrefixCls:Sn,loadData:Wn,expandTrigger:yr,expandIcon:ci,loadingIcon:Pn,dropdownMenuColumnStyle:Hn,optionRender:Pt}},[ir,ai,Ki,dn,Ai,to,rr,Pr,Sn,Wn,yr,ci,Pn,Hn,Pt]),Te=!(Mr?Pr:ir).length,He=Mr&&er.matchInputWidth||Te?{}:{minWidth:"auto"};return Me.createElement(Ye.Provider,{value:$t},Me.createElement(ze.Ac,(0,ye.Z)({},Kn,{ref:Xt,id:Bn,prefixCls:Vn,autoClearSearchValue:pr,dropdownMatchSelectWidth:Qi,dropdownStyle:(0,tt.Z)((0,tt.Z)({},He),di),displayValues:Fi,onDisplayValuesChange:Ur,mode:zt?"multiple":void 0,searchValue:Mr,onSearch:wn,showSearch:Hi,OptionList:sn,emptyOptions:Te,open:Br,dropdownClassName:ao,placement:Qt,onDropdownVisibleChange:jn,getRawInputElement:function(){return fi}})))});kn.SHOW_PARENT=Se,kn.SHOW_CHILD=Le,kn.Panel=vt;var xn=kn,on=xn},23425:function(Un,pi,De){"use strict";De.d(pi,{Z:function(){return Ze}});var ye=De(4635),tt=De(14809),it=De(93664),Ft=De(20439),Et=De(50298),ze=De(92310),ct=De.n(ze),Kt=De(18929),ft=De(10228),Me=De(26112),It=De(48736),Ye=De(59301),Ht=De(17119),Ne=[10,20,50,100],ne=function(Ve){var Xe=Ve.pageSizeOptions,wt=Xe===void 0?Ne:Xe,gt=Ve.locale,Nt=Ve.changeSize,Ct=Ve.pageSize,ln=Ve.goButton,bn=Ve.quickGo,fn=Ve.rootPrefixCls,Yt=Ve.disabled,Ln=Ve.buildOptionText,lt=Ve.showSizeChanger,qe=Ve.sizeChangerRender,yn=Ye.useState(""),oi=(0,Et.Z)(yn,2),Yn=oi[0],rn=oi[1],Gn=function(){return!Yn||Number.isNaN(Yn)?void 0:Number(Yn)},Mn=typeof Ln=="function"?Ln:function(we){return"".concat(we," ").concat(gt.items_per_page)},xi=function(Be){rn(Be.target.value)},Wt=function(Be){ln||Yn===""||(rn(""),!(Be.relatedTarget&&(Be.relatedTarget.className.indexOf("".concat(fn,"-item-link"))>=0||Be.relatedTarget.className.indexOf("".concat(fn,"-item"))>=0))&&(bn==null||bn(Gn())))},Nn=function(Be){Yn!==""&&(Be.keyCode===ft.Z.ENTER||Be.type==="click")&&(rn(""),bn==null||bn(Gn()))},St=function(){return wt.some(function(Be){return Be.toString()===Ct.toString()})?wt:wt.concat([Ct]).sort(function(Be,Ke){var ke=Number.isNaN(Number(Be))?0:Number(Be),et=Number.isNaN(Number(Ke))?0:Number(Ke);return ke-et})},bi="".concat(fn,"-options");if(!lt&&!bn)return null;var qn=null,je=null,be=null;return lt&&qe&&(qn=qe({disabled:Yt,size:Ct,onSizeChange:function(Be){Nt==null||Nt(Number(Be))},"aria-label":gt.page_size,className:"".concat(bi,"-size-changer"),options:St().map(function(we){return{label:Mn(we),value:we}})})),bn&&(ln&&(be=typeof ln=="boolean"?Ye.createElement("button",{type:"button",onClick:Nn,onKeyUp:Nn,disabled:Yt,className:"".concat(bi,"-quick-jumper-button")},gt.jump_to_confirm):Ye.createElement("span",{onClick:Nn,onKeyUp:Nn},ln)),je=Ye.createElement("div",{className:"".concat(bi,"-quick-jumper")},gt.jump_to,Ye.createElement("input",{disabled:Yt,type:"text",value:Yn,onChange:xi,onKeyUp:Nn,onBlur:Wt,"aria-label":gt.page}),gt.page,be)),Ye.createElement("li",{className:bi},qn,je)},te=ne,de=function(Ve){var Xe=Ve.rootPrefixCls,wt=Ve.page,gt=Ve.active,Nt=Ve.className,Ct=Ve.showTitle,ln=Ve.onClick,bn=Ve.onKeyPress,fn=Ve.itemRender,Yt="".concat(Xe,"-item"),Ln=ct()(Yt,"".concat(Yt,"-").concat(wt),(0,ye.Z)((0,ye.Z)({},"".concat(Yt,"-active"),gt),"".concat(Yt,"-disabled"),!wt),Nt),lt=function(){ln(wt)},qe=function(Yn){bn(Yn,ln,wt)},yn=fn(wt,"page",Ye.createElement("a",{rel:"nofollow"},wt));return yn?Ye.createElement("li",{title:Ct?String(wt):null,className:Ln,onClick:lt,onKeyDown:qe,tabIndex:0},yn):null},le=de,ge=function(Ve,Xe,wt){return wt};function me(){}function Se(st){var Ve=Number(st);return typeof Ve=="number"&&!Number.isNaN(Ve)&&isFinite(Ve)&&Math.floor(Ve)===Ve}function Le(st,Ve,Xe){var wt=typeof st=="undefined"?Ve:st;return Math.floor((Xe-1)/wt)+1}var Ie=function(Ve){var Xe=Ve.prefixCls,wt=Xe===void 0?"rc-pagination":Xe,gt=Ve.selectPrefixCls,Nt=gt===void 0?"rc-select":gt,Ct=Ve.className,ln=Ve.current,bn=Ve.defaultCurrent,fn=bn===void 0?1:bn,Yt=Ve.total,Ln=Yt===void 0?0:Yt,lt=Ve.pageSize,qe=Ve.defaultPageSize,yn=qe===void 0?10:qe,oi=Ve.onChange,Yn=oi===void 0?me:oi,rn=Ve.hideOnSinglePage,Gn=Ve.align,Mn=Ve.showPrevNextJumpers,xi=Mn===void 0?!0:Mn,Wt=Ve.showQuickJumper,Nn=Ve.showLessItems,St=Ve.showTitle,bi=St===void 0?!0:St,qn=Ve.onShowSizeChange,je=qn===void 0?me:qn,be=Ve.locale,we=be===void 0?Ht.Z:be,Be=Ve.style,Ke=Ve.totalBoundaryShowSizeChanger,ke=Ke===void 0?50:Ke,et=Ve.disabled,sn=Ve.simple,Bt=Ve.showTotal,_t=Ve.showSizeChanger,vt=_t===void 0?Ln>ke:_t,xt=Ve.sizeChangerRender,Tt=Ve.pageSizeOptions,Ut=Ve.itemRender,hn=Ut===void 0?ge:Ut,kn=Ve.jumpPrevIcon,xn=Ve.jumpNextIcon,on=Ve.prevIcon,jt=Ve.nextIcon,Xt=Ye.useRef(null),gn=(0,Kt.Z)(10,{value:lt,defaultValue:yn}),En=(0,Et.Z)(gn,2),Vn=En[0],ri=En[1],vi=(0,Kt.Z)(1,{value:ln,defaultValue:fn,postState:function(Cr){return Math.max(1,Math.min(Cr,Le(void 0,Vn,Ln)))}}),mn=(0,Et.Z)(vi,2),Ai=mn[0],Yi=mn[1],gr=Ye.useState(Ai),rr=(0,Et.Z)(gr,2),nr=rr[0],pr=rr[1];(0,Ye.useEffect)(function(){pr(Ai)},[Ai]);var sr=Yn!==me,cr="current"in Ve,Ji=Math.max(1,Ai-(Nn?3:5)),yr=Math.min(Le(void 0,Vn,Ln),Ai+(Nn?3:5));function Ce(Fi,Cr){var Nr=Fi||Ye.createElement("button",{type:"button","aria-label":Cr,className:"".concat(wt,"-item-link")});return typeof Fi=="function"&&(Nr=Ye.createElement(Fi,(0,Ft.Z)({},Ve))),Nr}function Sn(Fi){var Cr=Fi.target.value,Nr=Le(void 0,Vn,Ln),to;return Cr===""?to=Cr:Number.isNaN(Number(Cr))?to=nr:Cr>=Nr?to=Nr:to=Number(Cr),to}function Wn(Fi){return Se(Fi)&&Fi!==Ai&&Se(Ln)&&Ln>0}var gi=Ln>Vn?Wt:!1;function hi(Fi){(Fi.keyCode===ft.Z.UP||Fi.keyCode===ft.Z.DOWN)&&Fi.preventDefault()}function Zn(Fi){var Cr=Sn(Fi);switch(Cr!==nr&&pr(Cr),Fi.keyCode){case ft.Z.ENTER:di(Cr);break;case ft.Z.UP:di(Cr-1);break;case ft.Z.DOWN:di(Cr+1);break;default:break}}function nn(Fi){di(Sn(Fi))}function Hn(Fi){var Cr=Le(Fi,Vn,Ln),Nr=Ai>Cr&&Cr!==0?Cr:Ai;ri(Fi),pr(Nr),je==null||je(Ai,Fi),Yi(Nr),Yn==null||Yn(Nr,Fi)}function di(Fi){if(Wn(Fi)&&!et){var Cr=Le(void 0,Vn,Ln),Nr=Fi;return Fi>Cr?Nr=Cr:Fi<1&&(Nr=1),Nr!==nr&&pr(Nr),Yi(Nr),Yn==null||Yn(Nr,Vn),Nr}return Ai}var At=Ai>1,Dt=Ai2?Nr-2:0),Ur=2;UrLn?Ln:Ai*Vn])),zn=null,Xn=Le(void 0,Vn,Ln);if(rn&&Ln<=Vn)return null;var Mi=[],ai={rootPrefixCls:wt,onClick:di,onKeyPress:Pn,showTitle:bi,itemRender:hn,page:-1},Li=Ai-1>0?Ai-1:0,wi=Ai+1=vr*2&&Ai!==3&&(Mi[0]=Ye.cloneElement(Mi[0],{className:ct()("".concat(wt,"-item-after-jump-prev"),Mi[0].props.className)}),Mi.unshift(Bn)),Xn-Ai>=vr*2&&Ai!==Xn-2){var br=Mi[Mi.length-1];Mi[Mi.length-1]=Ye.cloneElement(br,{className:ct()("".concat(wt,"-item-before-jump-next"),br.props.className)}),Mi.push(zn)}Hi!==1&&Mi.unshift(Ye.createElement(le,(0,tt.Z)({},ai,{key:1,page:1}))),er!==Xn&&Mi.push(Ye.createElement(le,(0,tt.Z)({},ai,{key:Xn,page:Xn})))}var Zi=Ge(Li);if(Zi){var tr=!At||!Xn;Zi=Ye.createElement("li",{title:bi?we.prev_page:null,onClick:bt,tabIndex:tr?null:0,onKeyDown:fi,className:ct()("".concat(wt,"-prev"),(0,ye.Z)({},"".concat(wt,"-disabled"),tr)),"aria-disabled":tr},Zi)}var Ki=Pt(wi);if(Ki){var dn,lr;sn?(dn=!Dt,lr=At?0:null):(dn=!Dt||!Xn,lr=dn?null:0),Ki=Ye.createElement("li",{title:bi?we.next_page:null,onClick:ti,tabIndex:lr,onKeyDown:Cn,className:ct()("".concat(wt,"-next"),(0,ye.Z)({},"".concat(wt,"-disabled"),dn)),"aria-disabled":dn},Ki)}var vn=ct()(wt,Ct,(0,ye.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)({},"".concat(wt,"-start"),Gn==="start"),"".concat(wt,"-center"),Gn==="center"),"".concat(wt,"-end"),Gn==="end"),"".concat(wt,"-simple"),sn),"".concat(wt,"-disabled"),et));return Ye.createElement("ul",(0,tt.Z)({className:vn,style:Be,ref:Xt},zt),Fn,Zi,sn?un:Mi,Ki,Ye.createElement(te,{locale:we,rootPrefixCls:wt,disabled:et,selectPrefixCls:Nt,changeSize:Hn,pageSize:Vn,pageSizeOptions:Tt,quickGo:gi?di:null,goButton:Ii,showSizeChanger:vt,sizeChangerRender:xt}))},Ze=Ie},48365:function(Un,pi,De){"use strict";var ye=De(61186),tt=De.n(ye),it=De(90111),Ft=De.n(it),Et=De(58319),ze=De.n(Et),ct=De(23250),Kt=De.n(ct),ft=De(74959),Me=De.n(ft),It=De(10238),Ye=De.n(It),Ht=De(33656),Ne=De.n(Ht);tt().extend(Ne()),tt().extend(Ye()),tt().extend(Ft()),tt().extend(ze()),tt().extend(Kt()),tt().extend(Me()),tt().extend(function(ge,me){var Se=me.prototype,Le=Se.format;Se.format=function(Ze){var st=(Ze||"").replace("Wo","wo");return Le.bind(this)(st)}});var ne={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"},te=function(me){var Se=ne[me];return Se||me.split("_")[0]},de=function(){},le={getNow:function(){var me=tt()();return typeof me.tz=="function"?me.tz():me},getFixedDate:function(me){return tt()(me,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(me){return me.endOf("month")},getWeekDay:function(me){var Se=me.locale("en");return Se.weekday()+Se.localeData().firstDayOfWeek()},getYear:function(me){return me.year()},getMonth:function(me){return me.month()},getDate:function(me){return me.date()},getHour:function(me){return me.hour()},getMinute:function(me){return me.minute()},getSecond:function(me){return me.second()},getMillisecond:function(me){return me.millisecond()},addYear:function(me,Se){return me.add(Se,"year")},addMonth:function(me,Se){return me.add(Se,"month")},addDate:function(me,Se){return me.add(Se,"day")},setYear:function(me,Se){return me.year(Se)},setMonth:function(me,Se){return me.month(Se)},setDate:function(me,Se){return me.date(Se)},setHour:function(me,Se){return me.hour(Se)},setMinute:function(me,Se){return me.minute(Se)},setSecond:function(me,Se){return me.second(Se)},setMillisecond:function(me,Se){return me.millisecond(Se)},isAfter:function(me,Se){return me.isAfter(Se)},isValidate:function(me){return me.isValid()},locale:{getWeekFirstDay:function(me){return tt()().locale(te(me)).localeData().firstDayOfWeek()},getWeekFirstDate:function(me,Se){return Se.locale(te(me)).weekday(0)},getWeek:function(me,Se){return Se.locale(te(me)).week()},getShortWeekDays:function(me){return tt()().locale(te(me)).localeData().weekdaysMin()},getShortMonths:function(me){return tt()().locale(te(me)).localeData().monthsShort()},format:function(me,Se,Le){return Se.locale(te(me)).format(Le)},parse:function(me,Se,Le){for(var Ie=te(me),Ze=0;Ze2&&arguments[2]!==void 0?arguments[2]:"0",ot=String(Ee);ot.length2&&arguments[2]!==void 0?arguments[2]:[],ot=Me.useState([!1,!1]),ut=(0,Ft.Z)(ot,2),Zt=ut[0],Vt=ut[1],tn=function(pn,Qn){Vt(function(mi){return Ie(mi,Qn,pn)})},An=Me.useMemo(function(){return Zt.map(function(In,pn){if(In)return!0;var Qn=Ee[pn];return Qn?!!(!Re[pn]&&!Qn||Qn&&Ue(Qn,{activeIndex:pn})):!1})},[Ee,Zt,Ue,Re]);return[An,tn]}function Nt(Ee,Ue,Re,ot,ut){var Zt="",Vt=[];return Ee&&Vt.push(ut?"hh":"HH"),Ue&&Vt.push("mm"),Re&&Vt.push("ss"),Zt=Vt.join(":"),ot&&(Zt+=".SSS"),ut&&(Zt+=" A"),Zt}function Ct(Ee,Ue,Re,ot,ut,Zt){var Vt=Ee.fieldDateTimeFormat,tn=Ee.fieldDateFormat,An=Ee.fieldTimeFormat,In=Ee.fieldMonthFormat,pn=Ee.fieldYearFormat,Qn=Ee.fieldWeekFormat,mi=Ee.fieldQuarterFormat,ht=Ee.yearFormat,_n=Ee.cellYearFormat,ni=Ee.cellQuarterFormat,On=Ee.dayFormat,ii=Ee.cellDateFormat,Ci=Nt(Ue,Re,ot,ut,Zt);return(0,it.Z)((0,it.Z)({},Ee),{},{fieldDateTimeFormat:Vt||"YYYY-MM-DD ".concat(Ci),fieldDateFormat:tn||"YYYY-MM-DD",fieldTimeFormat:An||Ci,fieldMonthFormat:In||"YYYY-MM",fieldYearFormat:pn||"YYYY",fieldWeekFormat:Qn||"gggg-wo",fieldQuarterFormat:mi||"YYYY-[Q]Q",yearFormat:ht||"YYYY",cellYearFormat:_n||"YYYY",cellQuarterFormat:ni||"[Q]Q",cellDateFormat:ii||On||"D"})}function ln(Ee,Ue){var Re=Ue.showHour,ot=Ue.showMinute,ut=Ue.showSecond,Zt=Ue.showMillisecond,Vt=Ue.use12Hours;return Me.useMemo(function(){return Ct(Ee,Re,ot,ut,Zt,Vt)},[Ee,Re,ot,ut,Zt,Vt])}var bn=De(93664);function fn(Ee,Ue,Re){return Re!=null?Re:Ue.some(function(ot){return Ee.includes(ot)})}var Yt=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function Ln(Ee){var Ue=Ze(Ee,Yt),Re=Ee.format,ot=Ee.picker,ut=null;return Re&&(ut=Re,Array.isArray(ut)&&(ut=ut[0]),ut=(0,bn.Z)(ut)==="object"?ut.format:ut),ot==="time"&&(Ue.format=ut),[Ue,ut]}function lt(Ee){return Ee&&typeof Ee=="string"}function qe(Ee,Ue,Re,ot){return[Ee,Ue,Re,ot].some(function(ut){return ut!==void 0})}function yn(Ee,Ue,Re,ot,ut){var Zt=Ue,Vt=Re,tn=ot;if(!Ee&&!Zt&&!Vt&&!tn&&!ut)Zt=!0,Vt=!0,tn=!0;else if(Ee){var An,In,pn,Qn=[Zt,Vt,tn].some(function(_n){return _n===!1}),mi=[Zt,Vt,tn].some(function(_n){return _n===!0}),ht=Qn?!0:!mi;Zt=(An=Zt)!==null&&An!==void 0?An:ht,Vt=(In=Vt)!==null&&In!==void 0?In:ht,tn=(pn=tn)!==null&&pn!==void 0?pn:ht}return[Zt,Vt,tn,ut]}function oi(Ee){var Ue=Ee.showTime,Re=Ln(Ee),ot=(0,Ft.Z)(Re,2),ut=ot[0],Zt=ot[1],Vt=Ue&&(0,bn.Z)(Ue)==="object"?Ue:{},tn=(0,it.Z)((0,it.Z)({defaultOpenValue:Vt.defaultOpenValue||Vt.defaultValue},ut),Vt),An=tn.showMillisecond,In=tn.showHour,pn=tn.showMinute,Qn=tn.showSecond,mi=qe(In,pn,Qn,An),ht=yn(mi,In,pn,Qn,An),_n=(0,Ft.Z)(ht,3);return In=_n[0],pn=_n[1],Qn=_n[2],[tn,(0,it.Z)((0,it.Z)({},tn),{},{showHour:In,showMinute:pn,showSecond:Qn,showMillisecond:An}),tn.format,Zt]}function Yn(Ee,Ue,Re,ot,ut){var Zt=Ee==="time";if(Ee==="datetime"||Zt){for(var Vt=ot,tn=st(Ee,ut,null),An=tn,In=[Ue,Re],pn=0;pn1&&(Vt=Ue.addDate(Vt,-7)),Vt}function sn(Ee,Ue){var Re=Ue.generateConfig,ot=Ue.locale,ut=Ue.format;return Ee?typeof ut=="function"?ut(Ee):Re.locale.format(ot.locale,Ee,ut):""}function Bt(Ee,Ue,Re){var ot=Ue,ut=["getHour","getMinute","getSecond","getMillisecond"],Zt=["setHour","setMinute","setSecond","setMillisecond"];return Zt.forEach(function(Vt,tn){Re?ot=Ee[Vt](ot,Ee[ut[tn]](Re)):ot=Ee[Vt](ot,0)}),ot}function _t(Ee,Ue,Re,ot,ut){var Zt=(0,Et.zX)(function(Vt,tn){return!!(Re&&Re(Vt,tn)||ot&&Ee.isAfter(ot,Vt)&&!Be(Ee,Ue,ot,Vt,tn.type)||ut&&Ee.isAfter(Vt,ut)&&!Be(Ee,Ue,ut,Vt,tn.type))});return Zt}function vt(Ee,Ue,Re){return Me.useMemo(function(){var ot=st(Ee,Ue,Re),ut=Le(ot),Zt=ut[0],Vt=(0,bn.Z)(Zt)==="object"&&Zt.type==="mask"?Zt.format:null;return[ut.map(function(tn){return typeof tn=="string"||typeof tn=="function"?tn:tn.format}),Vt]},[Ee,Ue,Re])}function xt(Ee,Ue,Re){return typeof Ee[0]=="function"||Re?!0:Ue}function Tt(Ee,Ue,Re,ot){var ut=(0,Et.zX)(function(Zt,Vt){var tn=(0,it.Z)({type:Ue},Vt);if(delete tn.activeIndex,!Ee.isValidate(Zt)||Re&&Re(Zt,tn))return!0;if((Ue==="date"||Ue==="time")&&ot){var An,In=Vt&&Vt.activeIndex===1?"end":"start",pn=((An=ot.disabledTime)===null||An===void 0?void 0:An.call(ot,Zt,In,{from:tn.from}))||{},Qn=pn.disabledHours,mi=pn.disabledMinutes,ht=pn.disabledSeconds,_n=pn.disabledMilliseconds,ni=ot.disabledHours,On=ot.disabledMinutes,ii=ot.disabledSeconds,Ci=Qn||ni,Ti=mi||On,Ni=ht||ii,Oi=Ee.getHour(Zt),zi=Ee.getMinute(Zt),fr=Ee.getSecond(Zt),kr=Ee.getMillisecond(Zt);if(Ci&&Ci().includes(Oi)||Ti&&Ti(Oi).includes(zi)||Ni&&Ni(Oi,zi).includes(fr)||_n&&_n(Oi,zi,fr).includes(kr))return!0}return!1});return ut}function Ut(Ee){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Re=Me.useMemo(function(){var ot=Ee&&Le(Ee);return Ue&&ot&&(ot[1]=ot[1]||ot[0]),ot},[Ee,Ue]);return Re}function hn(Ee,Ue){var Re=Ee.generateConfig,ot=Ee.locale,ut=Ee.picker,Zt=ut===void 0?"date":ut,Vt=Ee.prefixCls,tn=Vt===void 0?"rc-picker":Vt,An=Ee.styles,In=An===void 0?{}:An,pn=Ee.classNames,Qn=pn===void 0?{}:pn,mi=Ee.order,ht=mi===void 0?!0:mi,_n=Ee.components,ni=_n===void 0?{}:_n,On=Ee.inputRender,ii=Ee.allowClear,Ci=Ee.clearIcon,Ti=Ee.needConfirm,Ni=Ee.multiple,Oi=Ee.format,zi=Ee.inputReadOnly,fr=Ee.disabledDate,kr=Ee.minDate,Hr=Ee.maxDate,Zr=Ee.showTime,Bi=Ee.value,Fr=Ee.defaultValue,Er=Ee.pickerValue,Rr=Ee.defaultPickerValue,xr=Ut(Bi),jr=Ut(Fr),ei=Ut(Er),Vi=Ut(Rr),_i=Zt==="date"&&Zr?"datetime":Zt,ur=_i==="time"||_i==="datetime",qi=ur||Ni,or=Ti!=null?Ti:ur,Di=oi(Ee),zr=(0,Ft.Z)(Di,4),Kr=zr[0],Qr=zr[1],Ar=zr[2],eo=zr[3],Xr=ln(ot,Qr),_r=Me.useMemo(function(){return Yn(_i,Ar,eo,Kr,Xr)},[_i,Ar,eo,Kr,Xr]),fo=Me.useMemo(function(){return(0,it.Z)((0,it.Z)({},Ee),{},{prefixCls:tn,locale:Xr,picker:Zt,styles:In,classNames:Qn,order:ht,components:(0,it.Z)({input:On},ni),clearIcon:rn(tn,ii,Ci),showTime:_r,value:xr,defaultValue:jr,pickerValue:ei,defaultPickerValue:Vi},Ue==null?void 0:Ue())},[Ee]),mo=vt(_i,Xr,Oi),Bo=(0,Ft.Z)(mo,2),so=Bo[0],ia=Bo[1],po=xt(so,zi,Ni),Jo=_t(Re,ot,fr,kr,Hr),Po=Tt(Re,Zt,Jo,_r),Vo=Me.useMemo(function(){return(0,it.Z)((0,it.Z)({},fo),{},{needConfirm:or,inputReadOnly:po,disabledDate:Jo})},[fo,or,po,Jo]);return[Vo,_i,qi,so,ia,Po]}var kn=De(16089);function xn(Ee,Ue,Re){var ot=(0,Et.C8)(Ue,{value:Ee}),ut=(0,Ft.Z)(ot,2),Zt=ut[0],Vt=ut[1],tn=Me.useRef(Ee),An=Me.useRef(),In=function(){kn.Z.cancel(An.current)},pn=(0,Et.zX)(function(){Vt(tn.current),Re&&Zt!==tn.current&&Re(tn.current)}),Qn=(0,Et.zX)(function(mi,ht){In(),tn.current=mi,mi||ht?pn():An.current=(0,kn.Z)(pn)});return Me.useEffect(function(){return In},[]),[Zt,Qn]}function on(Ee,Ue){var Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],ot=arguments.length>3?arguments[3]:void 0,ut=Re.every(function(pn){return pn})?!1:Ee,Zt=xn(ut,Ue||!1,ot),Vt=(0,Ft.Z)(Zt,2),tn=Vt[0],An=Vt[1];function In(pn){var Qn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!Qn.inherit||tn)&&An(pn,Qn.force)}return[tn,In]}function jt(Ee){var Ue=Me.useRef();return Me.useImperativeHandle(Ee,function(){var Re;return{nativeElement:(Re=Ue.current)===null||Re===void 0?void 0:Re.nativeElement,focus:function(ut){var Zt;(Zt=Ue.current)===null||Zt===void 0||Zt.focus(ut)},blur:function(){var ut;(ut=Ue.current)===null||ut===void 0||ut.blur()}}}),Ue}function Xt(Ee,Ue){return Me.useMemo(function(){return Ee||(Ue?((0,ft.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(Ue).map(function(Re){var ot=(0,Ft.Z)(Re,2),ut=ot[0],Zt=ot[1];return{label:ut,value:Zt}})):[])},[Ee,Ue])}function gn(Ee,Ue){var Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,ot=Me.useRef(Ue);ot.current=Ue,(0,ze.o)(function(){if(Ee)ot.current(Ee);else{var ut=(0,kn.Z)(function(){ot.current(Ee)},Re);return function(){kn.Z.cancel(ut)}}},[Ee])}function En(Ee){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ot=Me.useState(0),ut=(0,Ft.Z)(ot,2),Zt=ut[0],Vt=ut[1],tn=Me.useState(!1),An=(0,Ft.Z)(tn,2),In=An[0],pn=An[1],Qn=Me.useRef([]),mi=Me.useRef(null),ht=Me.useRef(null),_n=function(Ni){mi.current=Ni},ni=function(Ni){return mi.current===Ni},On=function(Ni){pn(Ni)},ii=function(Ni){return Ni&&(ht.current=Ni),ht.current},Ci=function(Ni){var Oi=Qn.current,zi=new Set(Oi.filter(function(kr){return Ni[kr]||Ue[kr]})),fr=Oi[Oi.length-1]===0?1:0;return zi.size>=2||Ee[fr]?null:fr};return gn(In||Re,function(){In||(Qn.current=[],_n(null))}),Me.useEffect(function(){In&&Qn.current.push(Zt)},[In,Zt]),[In,On,ii,Zt,Vt,Ci,Qn.current,_n,ni]}function Vn(Ee,Ue,Re,ot,ut,Zt){var Vt=Re[Re.length-1],tn=function(In,pn){var Qn=(0,Ft.Z)(Ee,2),mi=Qn[0],ht=Qn[1],_n=(0,it.Z)((0,it.Z)({},pn),{},{from:Ve(Ee,Re)});return Vt===1&&Ue[0]&&mi&&!Be(ot,ut,mi,In,_n.type)&&ot.isAfter(mi,In)||Vt===0&&Ue[1]&&ht&&!Be(ot,ut,ht,In,_n.type)&&ot.isAfter(In,ht)?!0:Zt==null?void 0:Zt(In,_n)};return tn}function ri(Ee,Ue,Re,ot){switch(Ue){case"date":case"week":return Ee.addMonth(Re,ot);case"month":case"quarter":return Ee.addYear(Re,ot);case"year":return Ee.addYear(Re,ot*10);case"decade":return Ee.addYear(Re,ot*100);default:return Re}}var vi=[];function mn(Ee,Ue,Re,ot,ut,Zt,Vt,tn){var An=arguments.length>8&&arguments[8]!==void 0?arguments[8]:vi,In=arguments.length>9&&arguments[9]!==void 0?arguments[9]:vi,pn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:vi,Qn=arguments.length>11?arguments[11]:void 0,mi=arguments.length>12?arguments[12]:void 0,ht=arguments.length>13?arguments[13]:void 0,_n=Vt==="time",ni=Zt||0,On=function(ei){var Vi=Ee.getNow();return _n&&(Vi=Bt(Ee,Vi)),An[ei]||Re[ei]||Vi},ii=(0,Ft.Z)(In,2),Ci=ii[0],Ti=ii[1],Ni=(0,Et.C8)(function(){return On(0)},{value:Ci}),Oi=(0,Ft.Z)(Ni,2),zi=Oi[0],fr=Oi[1],kr=(0,Et.C8)(function(){return On(1)},{value:Ti}),Hr=(0,Ft.Z)(kr,2),Zr=Hr[0],Bi=Hr[1],Fr=Me.useMemo(function(){var jr=[zi,Zr][ni];return _n?jr:Bt(Ee,jr,pn[ni])},[_n,zi,Zr,ni,Ee,pn]),Er=function(ei){var Vi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",_i=[fr,Bi][ni];_i(ei);var ur=[zi,Zr];ur[ni]=ei,Qn&&(!Be(Ee,Ue,zi,ur[0],Vt)||!Be(Ee,Ue,Zr,ur[1],Vt))&&Qn(ur,{source:Vi,range:ni===1?"end":"start",mode:ot})},Rr=function(ei,Vi){if(tn){var _i={date:"month",week:"month",month:"year",quarter:"year"},ur=_i[Vt];if(ur&&!Be(Ee,Ue,ei,Vi,ur))return ri(Ee,Vt,Vi,-1);if(Vt==="year"&&ei){var qi=Math.floor(Ee.getYear(ei)/10),or=Math.floor(Ee.getYear(Vi)/10);if(qi!==or)return ri(Ee,Vt,Vi,-1)}}return Vi},xr=Me.useRef(null);return(0,ze.Z)(function(){if(ut&&!An[ni]){var jr=_n?null:Ee.getNow();if(xr.current!==null&&xr.current!==ni?jr=[zi,Zr][ni^1]:Re[ni]?jr=ni===0?Re[0]:Rr(Re[0],Re[1]):Re[ni^1]&&(jr=Re[ni^1]),jr){mi&&Ee.isAfter(mi,jr)&&(jr=mi);var ei=tn?ri(Ee,Vt,jr,1):jr;ht&&Ee.isAfter(ei,ht)&&(jr=tn?ri(Ee,Vt,ht,-1):ht),Er(jr,"reset")}}},[ut,ni,Re[ni]]),Me.useEffect(function(){ut?xr.current=ni:xr.current=null},[ut,ni]),(0,ze.Z)(function(){ut&&An&&An[ni]&&Er(An[ni],"reset")},[ut,ni]),[Fr,Er]}function Ai(Ee,Ue){var Re=Me.useRef(Ee),ot=Me.useState({}),ut=(0,Ft.Z)(ot,2),Zt=ut[1],Vt=function(In){return In&&Ue!==void 0?Ue:Re.current},tn=function(In){Re.current=In,Zt({})};return[Vt,tn,Vt(!0)]}var Yi=[];function gr(Ee,Ue,Re){var ot=function(Vt){return Vt.map(function(tn){return sn(tn,{generateConfig:Ee,locale:Ue,format:Re[0]})})},ut=function(Vt,tn){for(var An=Math.max(Vt.length,tn.length),In=-1,pn=0;pn2&&arguments[2]!==void 0?arguments[2]:1,ot=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,ut=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],Zt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,Vt=[],tn=Re>=1?Re|0:1,An=Ee;An<=Ue;An+=tn){var In=ut.includes(An);(!In||!ot)&&Vt.push({label:Se(An,Zt),value:An,disabled:In})}return Vt}function Wn(Ee){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Re=arguments.length>2?arguments[2]:void 0,ot=Ue||{},ut=ot.use12Hours,Zt=ot.hourStep,Vt=Zt===void 0?1:Zt,tn=ot.minuteStep,An=tn===void 0?1:tn,In=ot.secondStep,pn=In===void 0?1:In,Qn=ot.millisecondStep,mi=Qn===void 0?100:Qn,ht=ot.hideDisabledOptions,_n=ot.disabledTime,ni=ot.disabledHours,On=ot.disabledMinutes,ii=ot.disabledSeconds,Ci=Me.useMemo(function(){return Re||Ee.getNow()},[Re,Ee]);if(0)var Ti,Ni,Oi;var zi=Me.useCallback(function(qi){var or=(_n==null?void 0:_n(qi))||{};return[or.disabledHours||ni||Ce,or.disabledMinutes||On||Ce,or.disabledSeconds||ii||Ce,or.disabledMilliseconds||Ce]},[_n,ni,On,ii]),fr=Me.useMemo(function(){return zi(Ci)},[Ci,zi]),kr=(0,Ft.Z)(fr,4),Hr=kr[0],Zr=kr[1],Bi=kr[2],Fr=kr[3],Er=Me.useCallback(function(qi,or,Di,zr){var Kr=Sn(0,23,Vt,ht,qi()),Qr=ut?Kr.map(function(_r){return(0,it.Z)((0,it.Z)({},_r),{},{label:Se(_r.value%12||12,2)})}):Kr,Ar=function(fo){return Sn(0,59,An,ht,or(fo))},eo=function(fo,mo){return Sn(0,59,pn,ht,Di(fo,mo))},Xr=function(fo,mo,Bo){return Sn(0,999,mi,ht,zr(fo,mo,Bo),3)};return[Qr,Ar,eo,Xr]},[ht,Vt,ut,mi,An,pn]),Rr=Me.useMemo(function(){return Er(Hr,Zr,Bi,Fr)},[Er,Hr,Zr,Bi,Fr]),xr=(0,Ft.Z)(Rr,4),jr=xr[0],ei=xr[1],Vi=xr[2],_i=xr[3],ur=function(or,Di){var zr=function(){return jr},Kr=ei,Qr=Vi,Ar=_i;if(Di){var eo=zi(Di),Xr=(0,Ft.Z)(eo,4),_r=Xr[0],fo=Xr[1],mo=Xr[2],Bo=Xr[3],so=Er(_r,fo,mo,Bo),ia=(0,Ft.Z)(so,4),po=ia[0],Jo=ia[1],Po=ia[2],Vo=ia[3];zr=function(){return po},Kr=Jo,Qr=Po,Ar=Vo}var Go=yr(or,zr,Kr,Qr,Ar,Ee);return Go};return[ur,jr,ei,Vi,_i]}function gi(Ee){var Ue=Ee.mode,Re=Ee.internalMode,ot=Ee.renderExtraFooter,ut=Ee.showNow,Zt=Ee.showTime,Vt=Ee.onSubmit,tn=Ee.onNow,An=Ee.invalid,In=Ee.needConfirm,pn=Ee.generateConfig,Qn=Ee.disabledDate,mi=Me.useContext(de),ht=mi.prefixCls,_n=mi.locale,ni=mi.button,On=ni===void 0?"button":ni,ii=pn.getNow(),Ci=Wn(pn,Zt,ii),Ti=(0,Ft.Z)(Ci,1),Ni=Ti[0],Oi=ot==null?void 0:ot(Ue),zi=Qn(ii,{type:Ue}),fr=function(){if(!zi){var Rr=Ni(ii);tn(Rr)}},kr="".concat(ht,"-now"),Hr="".concat(kr,"-btn"),Zr=ut&&Me.createElement("li",{className:kr},Me.createElement("a",{className:Ne()(Hr,zi&&"".concat(Hr,"-disabled")),"aria-disabled":zi,onClick:fr},Re==="date"?_n.today:_n.now)),Bi=In&&Me.createElement("li",{className:"".concat(ht,"-ok")},Me.createElement(On,{disabled:An,onClick:Vt},_n.ok)),Fr=(Zr||Bi)&&Me.createElement("ul",{className:"".concat(ht,"-ranges")},Zr,Bi);return!Oi&&!Fr?null:Me.createElement("div",{className:"".concat(ht,"-footer")},Oi&&Me.createElement("div",{className:"".concat(ht,"-footer-extra")},Oi),Fr)}function hi(Ee,Ue,Re){function ot(ut,Zt){var Vt=ut.findIndex(function(An){return Be(Ee,Ue,An,Zt,Re)});if(Vt===-1)return[].concat((0,tt.Z)(ut),[Zt]);var tn=(0,tt.Z)(ut);return tn.splice(Vt,1),tn}return ot}var Zn=Me.createContext(null);function nn(){return Me.useContext(Zn)}function Hn(Ee,Ue){var Re=Ee.prefixCls,ot=Ee.generateConfig,ut=Ee.locale,Zt=Ee.disabledDate,Vt=Ee.minDate,tn=Ee.maxDate,An=Ee.cellRender,In=Ee.hoverValue,pn=Ee.hoverRangeValue,Qn=Ee.onHover,mi=Ee.values,ht=Ee.pickerValue,_n=Ee.onSelect,ni=Ee.prevIcon,On=Ee.nextIcon,ii=Ee.superPrevIcon,Ci=Ee.superNextIcon,Ti=ot.getNow(),Ni={now:Ti,values:mi,pickerValue:ht,prefixCls:Re,disabledDate:Zt,minDate:Vt,maxDate:tn,cellRender:An,hoverValue:In,hoverRangeValue:pn,onHover:Qn,locale:ut,generateConfig:ot,onSelect:_n,panelType:Ue,prevIcon:ni,nextIcon:On,superPrevIcon:ii,superNextIcon:Ci};return[Ni,Ti]}var di=Me.createContext({});function At(Ee){for(var Ue=Ee.rowNum,Re=Ee.colNum,ot=Ee.baseDate,ut=Ee.getCellDate,Zt=Ee.prefixColumn,Vt=Ee.rowClassName,tn=Ee.titleFormat,An=Ee.getCellText,In=Ee.getCellClassName,pn=Ee.headerCells,Qn=Ee.cellSelection,mi=Qn===void 0?!0:Qn,ht=Ee.disabledDate,_n=nn(),ni=_n.prefixCls,On=_n.panelType,ii=_n.now,Ci=_n.disabledDate,Ti=_n.cellRender,Ni=_n.onHover,Oi=_n.hoverValue,zi=_n.hoverRangeValue,fr=_n.generateConfig,kr=_n.values,Hr=_n.locale,Zr=_n.onSelect,Bi=ht||Ci,Fr="".concat(ni,"-cell"),Er=Me.useContext(di),Rr=Er.onCellDblClick,xr=function(Di){return kr.some(function(zr){return zr&&Be(fr,Hr,Di,zr,On)})},jr=[],ei=0;ei1&&arguments[1]!==void 0?arguments[1]:!1;Ro(hr),On==null||On(hr),Dr&&Lo(hr)},wa=function(hr,Dr){Xr(hr),Dr&&oa(Dr),Lo(Dr,hr)},zo=function(hr){if(Po(hr),oa(hr),eo!==Ni){var Dr=["decade","year"],Sr=[].concat(Dr,["month"]),Si={quarter:[].concat(Dr,["quarter"]),week:[].concat((0,tt.Z)(Sr),["week"]),date:[].concat((0,tt.Z)(Sr),["date"])},Do=Si[Ni]||Sr,mt=Do.indexOf(eo),Tn=Do[mt+1];Tn&&wa(Tn,hr)}},Oa=Me.useMemo(function(){var wr,hr;if(Array.isArray(fr)){var Dr=(0,Ft.Z)(fr,2);wr=Dr[0],hr=Dr[1]}else wr=fr;return!wr&&!hr?null:(wr=wr||hr,hr=hr||wr,ut.isAfter(wr,hr)?[hr,wr]:[wr,hr])},[fr,ut]),bo=wt(kr,Hr,Zr),yo=Fr[_r]||ai[_r]||yi,vo=Me.useContext(di),Qo=Me.useMemo(function(){return(0,it.Z)((0,it.Z)({},vo),{},{hideHeader:Er})},[vo,Er]),ro="".concat(Rr,"-panel"),ta=Ze(Ee,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return Me.createElement(di.Provider,{value:Qo},Me.createElement("div",{ref:xr,tabIndex:An,className:Ne()(ro,(0,It.Z)({},"".concat(ro,"-rtl"),Zt==="rtl"))},Me.createElement(yo,(0,ye.Z)({},ta,{showTime:zr,prefixCls:Rr,locale:or,generateConfig:ut,onModeChange:wa,pickerValue:Yo,onPickerValueChange:function(hr){oa(hr,!0)},value:po[0],onSelect:zo,values:po,cellRender:bo,hoverRangeValue:Oa,hoverValue:zi}))))}var wi=Me.memo(Me.forwardRef(Li)),ir=wi;function Wi(Ee){var Ue=Ee.picker,Re=Ee.multiplePanel,ot=Ee.pickerValue,ut=Ee.onPickerValueChange,Zt=Ee.needConfirm,Vt=Ee.onSubmit,tn=Ee.range,An=Ee.hoverValue,In=Me.useContext(de),pn=In.prefixCls,Qn=In.generateConfig,mi=Me.useCallback(function(Ci,Ti){return ri(Qn,Ue,Ci,Ti)},[Qn,Ue]),ht=Me.useMemo(function(){return mi(ot,1)},[ot,mi]),_n=function(Ti){ut(mi(Ti,-1))},ni={onCellDblClick:function(){Zt&&Vt()}},On=Ue==="time",ii=(0,it.Z)((0,it.Z)({},Ee),{},{hoverValue:null,hoverRangeValue:null,hideHeader:On});return tn?ii.hoverRangeValue=An:ii.hoverValue=An,Re?Me.createElement("div",{className:"".concat(pn,"-panels")},Me.createElement(di.Provider,{value:(0,it.Z)((0,it.Z)({},ni),{},{hideNext:!0})},Me.createElement(ir,ii)),Me.createElement(di.Provider,{value:(0,it.Z)((0,it.Z)({},ni),{},{hidePrev:!0})},Me.createElement(ir,(0,ye.Z)({},ii,{pickerValue:ht,onPickerValueChange:_n})))):Me.createElement(di.Provider,{value:(0,it.Z)({},ni)},Me.createElement(ir,ii))}function Ii(Ee){return typeof Ee=="function"?Ee():Ee}function un(Ee){var Ue=Ee.prefixCls,Re=Ee.presets,ot=Ee.onClick,ut=Ee.onHover;return Re.length?Me.createElement("div",{className:"".concat(Ue,"-presets")},Me.createElement("ul",null,Re.map(function(Zt,Vt){var tn=Zt.label,An=Zt.value;return Me.createElement("li",{key:Vt,onClick:function(){ot(Ii(An))},onMouseEnter:function(){ut(Ii(An))},onMouseLeave:function(){ut(null)}},tn)}))):null}function vr(Ee){var Ue=Ee.panelRender,Re=Ee.internalMode,ot=Ee.picker,ut=Ee.showNow,Zt=Ee.range,Vt=Ee.multiple,tn=Ee.activeInfo,An=tn===void 0?[0,0,0]:tn,In=Ee.presets,pn=Ee.onPresetHover,Qn=Ee.onPresetSubmit,mi=Ee.onFocus,ht=Ee.onBlur,_n=Ee.onPanelMouseDown,ni=Ee.direction,On=Ee.value,ii=Ee.onSelect,Ci=Ee.isInvalid,Ti=Ee.defaultOpenValue,Ni=Ee.onOk,Oi=Ee.onSubmit,zi=Me.useContext(de),fr=zi.prefixCls,kr="".concat(fr,"-panel"),Hr=ni==="rtl",Zr=Me.useRef(null),Bi=Me.useRef(null),Fr=Me.useState(0),Er=(0,Ft.Z)(Fr,2),Rr=Er[0],xr=Er[1],jr=Me.useState(0),ei=(0,Ft.Z)(jr,2),Vi=ei[0],_i=ei[1],ur=Me.useState(0),qi=(0,Ft.Z)(ur,2),or=qi[0],Di=qi[1],zr=function(zo){zo.width&&xr(zo.width)},Kr=(0,Ft.Z)(An,3),Qr=Kr[0],Ar=Kr[1],eo=Kr[2],Xr=Me.useState(0),_r=(0,Ft.Z)(Xr,2),fo=_r[0],mo=_r[1];Me.useEffect(function(){mo(10)},[Qr]),Me.useEffect(function(){if(Zt&&Bi.current){var wa,zo=((wa=Zr.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=(Hr?Ar-zo:Qr)-Oa.left;if(Di(bo),Rr&&Rr=tn&&Re<=An)return Zt;var In=Math.min(Math.abs(Re-tn),Math.abs(Re-An));In0?hs:da));var ca=ts+sa,So=da-hs+1;return String(hs+(So+ca-hs)%So)};switch(Dr){case"Backspace":case"Delete":Sr="",Si=mt;break;case"ArrowLeft":Sr="",Tn(-1);break;case"ArrowRight":Sr="",Tn(1);break;case"ArrowUp":Sr="",Si=ha(1);break;case"ArrowDown":Sr="",Si=ha(-1);break;default:isNaN(Number(Dr))||(Sr=or+Dr,Si=Sr);break}if(Sr!==null&&(Di(Sr),Sr.length>=Do&&(Tn(1),Di(""))),Si!==null){var ga=mo.slice(0,Po)+Se(Si,Do)+mo.slice(Vo);Yo(ga.slice(0,Vt.length))}fo({})},ro=Me.useRef();(0,ze.Z)(function(){if(!(!Rr||!Vt||oa.current)){if(!ia.match(mo)){Yo(Vt);return}return so.current.setSelectionRange(Po,Vo),ro.current=(0,kn.Z)(function(){so.current.setSelectionRange(Po,Vo)}),function(){kn.Z.cancel(ro.current)}}},[ia,Vt,Rr,mo,Qr,Po,Vo,_r,Yo]);var ta=Vt?{onFocus:Oa,onBlur:yo,onKeyDown:Qo,onMouseDown:wa,onMouseUp:zo,onPaste:Lo}:{};return Me.createElement("div",{ref:Bo,className:Ne()(Bi,(0,It.Z)((0,It.Z)({},"".concat(Bi,"-active"),Re&&ut),"".concat(Bi,"-placeholder"),pn))},Me.createElement(Zr,(0,ye.Z)({ref:so,"aria-invalid":On,autoComplete:"off"},Ci,{onKeyDown:vo,onBlur:bo},ta,{value:mo,onChange:Ro})),Me.createElement(er,{type:"suffix",icon:Zt}),ii)}),Cr=Fi,Nr=["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"],to=["index"];function Ur(Ee,Ue){var Re=Ee.id,ot=Ee.prefix,ut=Ee.clearIcon,Zt=Ee.suffixIcon,Vt=Ee.separator,tn=Vt===void 0?"~":Vt,An=Ee.activeIndex,In=Ee.activeHelp,pn=Ee.allHelp,Qn=Ee.focused,mi=Ee.onFocus,ht=Ee.onBlur,_n=Ee.onKeyDown,ni=Ee.locale,On=Ee.generateConfig,ii=Ee.placeholder,Ci=Ee.className,Ti=Ee.style,Ni=Ee.onClick,Oi=Ee.onClear,zi=Ee.value,fr=Ee.onChange,kr=Ee.onSubmit,Hr=Ee.onInputChange,Zr=Ee.format,Bi=Ee.maskFormat,Fr=Ee.preserveInvalidOnBlur,Er=Ee.onInvalid,Rr=Ee.disabled,xr=Ee.invalid,jr=Ee.inputReadOnly,ei=Ee.direction,Vi=Ee.onOpenChange,_i=Ee.onActiveInfo,ur=Ee.placement,qi=Ee.onMouseDown,or=Ee.required,Di=Ee["aria-required"],zr=Ee.autoFocus,Kr=Ee.tabIndex,Qr=(0,Mr.Z)(Ee,Nr),Ar=ei==="rtl",eo=Me.useContext(de),Xr=eo.prefixCls,_r=Me.useMemo(function(){if(typeof Re=="string")return[Re];var bo=Re||{};return[bo.start,bo.end]},[Re]),fo=Me.useRef(),mo=Me.useRef(),Bo=Me.useRef(),so=function(yo){var vo;return(vo=[mo,Bo][yo])===null||vo===void 0?void 0:vo.current};Me.useImperativeHandle(Ue,function(){return{nativeElement:fo.current,focus:function(yo){if((0,bn.Z)(yo)==="object"){var vo,Qo=yo||{},ro=Qo.index,ta=ro===void 0?0:ro,wr=(0,Mr.Z)(Qo,to);(vo=so(ta))===null||vo===void 0||vo.focus(wr)}else{var hr;(hr=so(yo!=null?yo:0))===null||hr===void 0||hr.focus()}},blur:function(){var yo,vo;(yo=so(0))===null||yo===void 0||yo.blur(),(vo=so(1))===null||vo===void 0||vo.blur()}}});var ia=Pi(Qr),po=Me.useMemo(function(){return Array.isArray(ii)?ii:[ii,ii]},[ii]),Jo=Yr((0,it.Z)((0,it.Z)({},Ee),{},{id:_r,placeholder:po})),Po=(0,Ft.Z)(Jo,1),Vo=Po[0],Go=Me.useState({position:"absolute",width:0}),Yo=(0,Ft.Z)(Go,2),Ro=Yo[0],Lo=Yo[1],oa=(0,Et.zX)(function(){var bo=so(An);if(bo){var yo=bo.nativeElement.getBoundingClientRect(),vo=fo.current.getBoundingClientRect(),Qo=yo.left-vo.left;Lo(function(ro){return(0,it.Z)((0,it.Z)({},ro),{},{width:yo.width,left:Qo})}),_i([yo.left,yo.right,vo.width])}});Me.useEffect(function(){oa()},[An]);var wa=ut&&(zi[0]&&!Rr[0]||zi[1]&&!Rr[1]),zo=zr&&!Rr[0],Oa=zr&&!zo&&!Rr[1];return Me.createElement(Ji.Z,{onResize:oa},Me.createElement("div",(0,ye.Z)({},ia,{className:Ne()(Xr,"".concat(Xr,"-range"),(0,It.Z)((0,It.Z)((0,It.Z)((0,It.Z)({},"".concat(Xr,"-focused"),Qn),"".concat(Xr,"-disabled"),Rr.every(function(bo){return bo})),"".concat(Xr,"-invalid"),xr.some(function(bo){return bo})),"".concat(Xr,"-rtl"),Ar),Ci),style:Ti,ref:fo,onClick:Ni,onMouseDown:function(yo){var vo=yo.target;vo!==mo.current.inputElement&&vo!==Bo.current.inputElement&&yo.preventDefault(),qi==null||qi(yo)}}),ot&&Me.createElement("div",{className:"".concat(Xr,"-prefix")},ot),Me.createElement(Cr,(0,ye.Z)({ref:mo},Vo(0),{autoFocus:zo,tabIndex:Kr,"date-range":"start"})),Me.createElement("div",{className:"".concat(Xr,"-range-separator")},tn),Me.createElement(Cr,(0,ye.Z)({ref:Bo},Vo(1),{autoFocus:Oa,tabIndex:Kr,"date-range":"end"})),Me.createElement("div",{className:"".concat(Xr,"-active-bar"),style:Ro}),Me.createElement(er,{type:"suffix",icon:Zt}),wa&&Me.createElement(Pr,{icon:ut,onClear:Oi})))}var Br=Me.forwardRef(Ur),ao=Br;function Qt(Ee,Ue){var Re=Ee!=null?Ee:Ue;return Array.isArray(Re)?Re:[Re,Re]}function jn(Ee){return Ee===1?"end":"start"}function $t(Ee,Ue){var Re=hn(Ee,function(){var lo=Ee.disabled,co=Ee.allowEmpty,Mo=Qt(lo,!1),ra=Qt(co,!1);return{disabled:Mo,allowEmpty:ra}}),ot=(0,Ft.Z)(Re,6),ut=ot[0],Zt=ot[1],Vt=ot[2],tn=ot[3],An=ot[4],In=ot[5],pn=ut.prefixCls,Qn=ut.styles,mi=ut.classNames,ht=ut.defaultValue,_n=ut.value,ni=ut.needConfirm,On=ut.onKeyDown,ii=ut.disabled,Ci=ut.allowEmpty,Ti=ut.disabledDate,Ni=ut.minDate,Oi=ut.maxDate,zi=ut.defaultOpen,fr=ut.open,kr=ut.onOpenChange,Hr=ut.locale,Zr=ut.generateConfig,Bi=ut.picker,Fr=ut.showNow,Er=ut.showToday,Rr=ut.showTime,xr=ut.mode,jr=ut.onPanelChange,ei=ut.onCalendarChange,Vi=ut.onOk,_i=ut.defaultPickerValue,ur=ut.pickerValue,qi=ut.onPickerValueChange,or=ut.inputReadOnly,Di=ut.suffixIcon,zr=ut.onFocus,Kr=ut.onBlur,Qr=ut.presets,Ar=ut.ranges,eo=ut.components,Xr=ut.cellRender,_r=ut.dateRender,fo=ut.monthCellRender,mo=ut.onClick,Bo=jt(Ue),so=on(fr,zi,ii,kr),ia=(0,Ft.Z)(so,2),po=ia[0],Jo=ia[1],Po=function(co,Mo){(ii.some(function(ra){return!ra})||!co)&&Jo(co,Mo)},Vo=pr(Zr,Hr,tn,!0,!1,ht,_n,ei,Vi),Go=(0,Ft.Z)(Vo,5),Yo=Go[0],Ro=Go[1],Lo=Go[2],oa=Go[3],wa=Go[4],zo=Lo(),Oa=En(ii,Ci,po),bo=(0,Ft.Z)(Oa,9),yo=bo[0],vo=bo[1],Qo=bo[2],ro=bo[3],ta=bo[4],wr=bo[5],hr=bo[6],Dr=bo[7],Sr=bo[8],Si=function(co,Mo){vo(!0),zr==null||zr(co,{range:jn(Mo!=null?Mo:ro)})},Do=function(co,Mo){vo(!1),Kr==null||Kr(co,{range:jn(Mo!=null?Mo:ro)})},mt=Me.useMemo(function(){if(!Rr)return null;var lo=Rr.disabledTime,co=lo?function(Mo){var ra=jn(ro),rs=Ve(zo,hr,ro);return lo(Mo,ra,{from:rs})}:void 0;return(0,it.Z)((0,it.Z)({},Rr),{},{disabledTime:co})},[Rr,ro,zo,hr]),Tn=(0,Et.C8)([Bi,Bi],{value:xr}),ha=(0,Ft.Z)(Tn,2),ga=ha[0],aa=ha[1],sa=ga[ro]||Bi,ya=sa==="date"&&mt?"datetime":sa,Pa=ya===Bi&&ya!=="time",hs=cr(Bi,sa,Fr,Er,!0),da=sr(ut,Yo,Ro,Lo,oa,ii,tn,yo,po,In),qr=(0,Ft.Z)(da,2),Ya=qr[0],ts=qr[1],ca=Vn(zo,ii,hr,Zr,Hr,Ti),So=gt(zo,In,Ci),Sa=(0,Ft.Z)(So,2),ds=Sa[0],ua=Sa[1],cs=mn(Zr,Hr,zo,ga,po,ro,Zt,Pa,_i,ur,mt==null?void 0:mt.defaultOpenValue,qi,Ni,Oi),za=(0,Ft.Z)(cs,2),Dl=za[0],Ho=za[1],Fa=(0,Et.zX)(function(lo,co,Mo){var ra=Ie(ga,ro,co);if((ra[0]!==ga[0]||ra[1]!==ga[1])&&aa(ra),jr&&Mo!==!1){var rs=(0,tt.Z)(zo);lo&&(rs[ro]=lo),jr(rs,ra)}}),To=function(co,Mo){return Ie(zo,Mo,co)},$o=function(co,Mo){var ra=zo;co&&(ra=To(co,ro)),Dr(ro);var rs=wr(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=ii.findIndex(function(fs){return!fs});rs>=0&&Bo.current.focus({index:rs})}Po(!0),mo==null||mo(co)},xa=function(){ts(null),Po(!1,{force:!0})},qo=Me.useState(null),pl=(0,Ft.Z)(qo,2),no=pl[0],vu=pl[1],Ao=Me.useState(null),Kl=(0,Ft.Z)(Ao,2),qs=Kl[0],Nl=Kl[1],yu=Me.useMemo(function(){return qs||zo},[zo,qs]);Me.useEffect(function(){po||Nl(null)},[po]);var Su=Me.useState([0,0,0]),Vs=(0,Ft.Z)(Su,2),Yl=Vs[0],Uo=Vs[1],Gs=Xt(Qr,Ar),xu=function(co){Nl(co),vu("preset")},ml=function(co){var Mo=ts(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),Si(co)},Ko=function(){Qo("panel")},ka=function(co){var Mo=Ie(zo,ro,co);oa(Mo),!ni&&!Vt&&Zt===ya&&$o(co)},ns=function(){Po(!1)},Qa=wt(Xr,_r,fo,jn(ro)),Bl=zo[ro]||null,yl=(0,Et.zX)(function(lo){return In(lo,{activeIndex:ro})}),Oo=Me.useMemo(function(){var lo=(0,Kt.Z)(ut,!1),co=(0,ct.Z)(ut,[].concat((0,tt.Z)(Object.keys(lo)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return co},[ut]),xo=Me.createElement(vr,(0,ye.Z)({},Oo,{showNow:hs,showTime:mt,range:!0,multiplePanel:Pa,activeInfo:Yl,disabledDate:ca,onFocus:No,onBlur:Do,onPanelMouseDown:Ko,picker:Bi,mode:sa,internalMode:ya,onPanelChange:Fa,format:An,value:Bl,isInvalid:yl,onChange:null,onSelect:ka,pickerValue:Dl,defaultOpenValue:Le(Rr==null?void 0:Rr.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=hr.length,rs=hr[ra-1];if(ra&&rs!==Mo&&ni&&!Ci[rs]&&!Sr(rs)&&zo[rs]){Bo.current.focus({index:rs});return}Qo("input"),Po(!0,{inherit:!0}),ro!==Mo&&po&&!ni&&Vt&&$o(null,!0),ta(Mo),Si(co,Mo)},cg=function(co,Mo){if(Po(!1),!ni&&Qo()==="input"){var ra=wr(zo);Ya(ro,ra===null)}Do(co,Mo)},nf=function(co,Mo){co.key==="Tab"&&$o(null,!0),On==null||On(co,Mo)},Va=Me.useMemo(function(){return{prefixCls:pn,locale:Hr,generateConfig:Zr,button:eo.button,input:eo.input}},[pn,Hr,Zr,eo.button,eo.input]);if((0,ze.Z)(function(){po&&ro!==void 0&&Fa(null,Bi,!1)},[po,ro,Bi]),(0,ze.Z)(function(){var lo=Qo();!po&&lo==="input"&&(Po(!1),$o(null,!0)),!po&&Vt&&!ni&&lo==="panel"&&(Po(!0),$o())},[po]),0)var Qu;return Me.createElement(de.Provider,{value:Va},Me.createElement(me,(0,ye.Z)({},Xe(ut),{popupElement:xo,popupStyle:Qn.popup,popupClassName:mi.popup,visible:po,onClose:ns,range:!0}),Me.createElement(ao,(0,ye.Z)({},ut,{ref:Bo,suffixIcon:Di,activeIndex:yo||po?ro:null,activeHelp:!!qs,allHelp:!!qs&&no==="preset",focused:yo,onFocus:Dd,onBlur:cg,onKeyDown:nf,onSubmit:$o,value:yu,maskFormat:An,onChange:Ua,onInputChange:ou,format:tn,inputReadOnly:or,disabled:ii,open:po,onOpenChange:Po,onClick:pa,onClear:xa,invalid:ds,onInvalid:ua,onActiveInfo:Uo}))))}var Te=Me.forwardRef($t),He=Te,$e=De(11780);function yt(Ee){var Ue=Ee.prefixCls,Re=Ee.value,ot=Ee.onRemove,ut=Ee.removeIcon,Zt=ut===void 0?"\xD7":ut,Vt=Ee.formatDate,tn=Ee.disabled,An=Ee.maxTagCount,In=Ee.placeholder,pn="".concat(Ue,"-selector"),Qn="".concat(Ue,"-selection"),mi="".concat(Qn,"-overflow");function ht(On,ii){return Me.createElement("span",{className:Ne()("".concat(Qn,"-item")),title:typeof On=="string"?On:null},Me.createElement("span",{className:"".concat(Qn,"-item-content")},On),!tn&&ii&&Me.createElement("span",{onMouseDown:function(Ti){Ti.preventDefault()},onClick:ii,className:"".concat(Qn,"-item-remove")},Zt))}function _n(On){var ii=Vt(On),Ci=function(Ni){Ni&&Ni.stopPropagation(),ot(On)};return ht(ii,Ci)}function ni(On){var ii="+ ".concat(On.length," ...");return ht(ii)}return Me.createElement("div",{className:pn},Me.createElement($e.Z,{prefixCls:mi,data:Re,renderItem:_n,renderRest:ni,itemKey:function(ii){return Vt(ii)},maxCount:An}),!Re.length&&Me.createElement("span",{className:"".concat(Ue,"-selection-placeholder")},In))}var Ot=["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(Ee,Ue){var Re=Ee.id,ot=Ee.open,ut=Ee.prefix,Zt=Ee.clearIcon,Vt=Ee.suffixIcon,tn=Ee.activeHelp,An=Ee.allHelp,In=Ee.focused,pn=Ee.onFocus,Qn=Ee.onBlur,mi=Ee.onKeyDown,ht=Ee.locale,_n=Ee.generateConfig,ni=Ee.placeholder,On=Ee.className,ii=Ee.style,Ci=Ee.onClick,Ti=Ee.onClear,Ni=Ee.internalPicker,Oi=Ee.value,zi=Ee.onChange,fr=Ee.onSubmit,kr=Ee.onInputChange,Hr=Ee.multiple,Zr=Ee.maxTagCount,Bi=Ee.format,Fr=Ee.maskFormat,Er=Ee.preserveInvalidOnBlur,Rr=Ee.onInvalid,xr=Ee.disabled,jr=Ee.invalid,ei=Ee.inputReadOnly,Vi=Ee.direction,_i=Ee.onOpenChange,ur=Ee.onMouseDown,qi=Ee.required,or=Ee["aria-required"],Di=Ee.autoFocus,zr=Ee.tabIndex,Kr=Ee.removeIcon,Qr=(0,Mr.Z)(Ee,Ot),Ar=Vi==="rtl",eo=Me.useContext(de),Xr=eo.prefixCls,_r=Me.useRef(),fo=Me.useRef();Me.useImperativeHandle(Ue,function(){return{nativeElement:_r.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=Pi(Qr),Bo=function(Ro){zi([Ro])},so=function(Ro){var Lo=Oi.filter(function(oa){return oa&&!Be(_n,ht,oa,Ro,Ni)});zi(Lo),ot||fr()},ia=Yr((0,it.Z)((0,it.Z)({},Ee),{},{onChange:Bo}),function(Yo){var Ro=Yo.valueTexts;return{value:Ro[0]||"",active:In}}),po=(0,Ft.Z)(ia,2),Jo=po[0],Po=po[1],Vo=!!(Zt&&Oi.length&&!xr),Go=Hr?Me.createElement(Me.Fragment,null,Me.createElement(yt,{prefixCls:Xr,value:Oi,onRemove:so,formatDate:Po,maxTagCount:Zr,disabled:xr,removeIcon:Kr,placeholder:ni}),Me.createElement("input",{className:"".concat(Xr,"-multiple-input"),value:Oi.map(Po).join(","),ref:fo,readOnly:!0,autoFocus:Di,tabIndex:zr}),Me.createElement(er,{type:"suffix",icon:Vt}),Vo&&Me.createElement(Pr,{icon:Zt,onClear:Ti})):Me.createElement(Cr,(0,ye.Z)({ref:fo},Jo(),{autoFocus:Di,tabIndex:zr,suffixIcon:Vt,clearIcon:Vo&&Me.createElement(Pr,{icon:Zt,onClear:Ti}),showActiveCls:!1}));return Me.createElement("div",(0,ye.Z)({},mo,{className:Ne()(Xr,(0,It.Z)((0,It.Z)((0,It.Z)((0,It.Z)((0,It.Z)({},"".concat(Xr,"-multiple"),Hr),"".concat(Xr,"-focused"),In),"".concat(Xr,"-disabled"),xr),"".concat(Xr,"-invalid"),jr),"".concat(Xr,"-rtl"),Ar),On),style:ii,ref:_r,onClick:Ci,onMouseDown:function(Ro){var Lo,oa=Ro.target;oa!==((Lo=fo.current)===null||Lo===void 0?void 0:Lo.inputElement)&&Ro.preventDefault(),ur==null||ur(Ro)}}),ut&&Me.createElement("div",{className:"".concat(Xr,"-prefix")},ut),Go)}var nt=Me.forwardRef(en),kt=nt;function Gt(Ee,Ue){var Re=hn(Ee),ot=(0,Ft.Z)(Re,6),ut=ot[0],Zt=ot[1],Vt=ot[2],tn=ot[3],An=ot[4],In=ot[5],pn=ut,Qn=pn.prefixCls,mi=pn.styles,ht=pn.classNames,_n=pn.order,ni=pn.defaultValue,On=pn.value,ii=pn.needConfirm,Ci=pn.onChange,Ti=pn.onKeyDown,Ni=pn.disabled,Oi=pn.disabledDate,zi=pn.minDate,fr=pn.maxDate,kr=pn.defaultOpen,Hr=pn.open,Zr=pn.onOpenChange,Bi=pn.locale,Fr=pn.generateConfig,Er=pn.picker,Rr=pn.showNow,xr=pn.showToday,jr=pn.showTime,ei=pn.mode,Vi=pn.onPanelChange,_i=pn.onCalendarChange,ur=pn.onOk,qi=pn.multiple,or=pn.defaultPickerValue,Di=pn.pickerValue,zr=pn.onPickerValueChange,Kr=pn.inputReadOnly,Qr=pn.suffixIcon,Ar=pn.removeIcon,eo=pn.onFocus,Xr=pn.onBlur,_r=pn.presets,fo=pn.components,mo=pn.cellRender,Bo=pn.dateRender,so=pn.monthCellRender,ia=pn.onClick,po=jt(Ue);function Jo(Oo){return Oo===null?null:qi?Oo:Oo[0]}var Po=hi(Fr,Bi,Zt),Vo=on(Hr,kr,[Ni],Zr),Go=(0,Ft.Z)(Vo,2),Yo=Go[0],Ro=Go[1],Lo=function(xo,Ua,ou){if(_i){var Dd=(0,it.Z)({},ou);delete Dd.range,_i(Jo(xo),Jo(Ua),Dd)}},oa=function(xo){ur==null||ur(Jo(xo))},wa=pr(Fr,Bi,tn,!1,_n,ni,On,Lo,oa),zo=(0,Ft.Z)(wa,5),Oa=zo[0],bo=zo[1],yo=zo[2],vo=zo[3],Qo=zo[4],ro=yo(),ta=En([Ni]),wr=(0,Ft.Z)(ta,4),hr=wr[0],Dr=wr[1],Sr=wr[2],Si=wr[3],Do=function(xo){Dr(!0),eo==null||eo(xo,{})},mt=function(xo){Dr(!1),Xr==null||Xr(xo,{})},Tn=(0,Et.C8)(Er,{value:ei}),ha=(0,Ft.Z)(Tn,2),ga=ha[0],aa=ha[1],sa=ga==="date"&&jr?"datetime":ga,ya=cr(Er,ga,Rr,xr),Pa=Ci&&function(Oo,xo){Ci(Jo(Oo),Jo(xo))},hs=sr((0,it.Z)((0,it.Z)({},ut),{},{onChange:Pa}),Oa,bo,yo,vo,[],tn,hr,Yo,In),da=(0,Ft.Z)(hs,2),qr=da[1],Ya=gt(ro,In),ts=(0,Ft.Z)(Ya,2),ca=ts[0],So=ts[1],Sa=Me.useMemo(function(){return ca.some(function(Oo){return Oo})},[ca]),ds=function(xo,Ua){if(zr){var ou=(0,it.Z)((0,it.Z)({},Ua),{},{mode:Ua.mode[0]});delete ou.range,zr(xo[0],ou)}},ua=mn(Fr,Bi,ro,[ga],Yo,Si,Zt,!1,or,Di,Le(jr==null?void 0:jr.defaultOpenValue),ds,zi,fr),cs=(0,Ft.Z)(ua,2),za=cs[0],Dl=cs[1],Ho=(0,Et.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){!Ni&&!po.current.nativeElement.contains(document.activeElement)&&po.current.focus(),Ro(!0),ia==null||ia(xo)},$o=function(){qr(null),Ro(!1,{force:!0})},pa=Me.useState(null),xa=(0,Ft.Z)(pa,2),qo=xa[0],pl=xa[1],no=Me.useState(null),vu=(0,Ft.Z)(no,2),Ao=vu[0],Kl=vu[1],qs=Me.useMemo(function(){var Oo=[Ao].concat((0,tt.Z)(ro)).filter(function(xo){return xo});return qi?Oo:Oo.slice(0,1)},[ro,Ao,qi]),Nl=Me.useMemo(function(){return!qi&&Ao?[Ao]:ro.filter(function(Oo){return Oo})},[ro,Ao,qi]);Me.useEffect(function(){Yo||Kl(null)},[Yo]);var yu=Xt(_r),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(Sr("panel"),!(qi&&sa!==Er)){var Ua=qi?Po(yo(),xo):[xo];vo(Ua),!ii&&!Vt&&Zt===sa&&Fa()}},ml=function(){Ro(!1)},Nu=wt(mo,Bo,so),vl=Me.useMemo(function(){var Oo=(0,Kt.Z)(ut,!1),xo=(0,ct.Z)(ut,[].concat((0,tt.Z)(Object.keys(Oo)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,it.Z)((0,it.Z)({},xo),{},{multiple:ut.multiple})},[ut]),No=Me.createElement(vr,(0,ye.Z)({},vl,{showNow:ya,showTime:jr,disabledDate:Oi,onFocus:Gs,onBlur:mt,picker:Er,mode:ga,internalMode:sa,onPanelChange:Ho,format:An,value:ro,isInvalid:In,onChange:null,onSelect:xu,pickerValue:za,defaultOpenValue:jr==null?void 0:jr.defaultOpenValue,onPickerValueChange:Dl,hoverValue:qs,onHover:Uo,needConfirm:ii,onSubmit:Fa,onOk:Qo,presets:yu,onPresetHover:Su,onPresetSubmit:Vs,onNow:Yl,cellRender:Nu})),Ko=function(xo){vo(xo)},ka=function(){Sr("input")},ns=function(xo){Sr("input"),Ro(!0,{inherit:!0}),Do(xo)},Qa=function(xo){Ro(!1),mt(xo)},Bl=function(xo,Ua){xo.key==="Tab"&&Fa(),Ti==null||Ti(xo,Ua)},yl=Me.useMemo(function(){return{prefixCls:Qn,locale:Bi,generateConfig:Fr,button:fo.button,input:fo.input}},[Qn,Bi,Fr,fo.button,fo.input]);return(0,ze.Z)(function(){Yo&&Si!==void 0&&Ho(null,Er,!1)},[Yo,Si,Er]),(0,ze.Z)(function(){var Oo=Sr();!Yo&&Oo==="input"&&(Ro(!1),Fa()),!Yo&&Vt&&!ii&&Oo==="panel"&&Fa()},[Yo]),Me.createElement(de.Provider,{value:yl},Me.createElement(me,(0,ye.Z)({},Xe(ut),{popupElement:No,popupStyle:mi.popup,popupClassName:ht.popup,visible:Yo,onClose:ml}),Me.createElement(kt,(0,ye.Z)({},ut,{ref:po,suffixIcon:Qr,removeIcon:Ar,activeHelp:!!Ao,allHelp:!!Ao&&qo==="preset",focused:hr,onFocus:ns,onBlur:Qa,onKeyDown:Bl,onSubmit:Fa,value:Nl,maskFormat:An,onChange:Ko,onInputChange:ka,internalPicker:Zt,format:tn,inputReadOnly:Kr,disabled:Ni,open:Yo,onOpenChange:Ro,onClick:To,onClear:$o,invalid:Sa,onInvalid:function(xo){So(xo,0)}}))))}var Rt=Me.forwardRef(Gt),an=Rt,si=an},738:function(Un,pi,De){"use strict";De.d(pi,{Z:function(){return me}});var ye=De(14809),tt=De(4635),it=De(50298),Ft=De(62646),Et=De(92310),ze=De.n(Et),ct=De(18929),Kt=De(10228),ft=De(26112),Me=De(59301);function It(Se,Le){var Ie=Se.disabled,Ze=Se.prefixCls,st=Se.character,Ve=Se.characterRender,Xe=Se.index,wt=Se.count,gt=Se.value,Nt=Se.allowHalf,Ct=Se.focused,ln=Se.onHover,bn=Se.onClick,fn=function(rn){ln(rn,Xe)},Yt=function(rn){bn(rn,Xe)},Ln=function(rn){rn.keyCode===Kt.Z.ENTER&&bn(rn,Xe)},lt=Xe+1,qe=new Set([Ze]);gt===0&&Xe===0&&Ct?qe.add("".concat(Ze,"-focused")):Nt&>+.5>=lt&>Xe?"true":"false","aria-posinset":Xe+1,"aria-setsize":wt,tabIndex:Ie?-1:0},Me.createElement("div",{className:"".concat(Ze,"-first")},yn),Me.createElement("div",{className:"".concat(Ze,"-second")},yn)));return Ve&&(oi=Ve(oi,Se)),oi}var Ye=Me.forwardRef(It);function Ht(){var Se=Me.useRef({});function Le(Ze){return Se.current[Ze]}function Ie(Ze){return function(st){Se.current[Ze]=st}}return[Le,Ie]}function Ne(Se){var Le=Se.pageXOffset,Ie="scrollLeft";if(typeof Le!="number"){var Ze=Se.document;Le=Ze.documentElement[Ie],typeof Le!="number"&&(Le=Ze.body[Ie])}return Le}function ne(Se){var Le,Ie,Ze=Se.ownerDocument,st=Ze.body,Ve=Ze&&Ze.documentElement,Xe=Se.getBoundingClientRect();return Le=Xe.left,Ie=Xe.top,Le-=Ve.clientLeft||st.clientLeft||0,Ie-=Ve.clientTop||st.clientTop||0,{left:Le,top:Ie}}function te(Se){var Le=ne(Se),Ie=Se.ownerDocument,Ze=Ie.defaultView||Ie.parentWindow;return Le.left+=Ne(Ze),Le.left}var de=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function le(Se,Le){var Ie=Se.prefixCls,Ze=Ie===void 0?"rc-rate":Ie,st=Se.className,Ve=Se.defaultValue,Xe=Se.value,wt=Se.count,gt=wt===void 0?5:wt,Nt=Se.allowHalf,Ct=Nt===void 0?!1:Nt,ln=Se.allowClear,bn=ln===void 0?!0:ln,fn=Se.keyboard,Yt=fn===void 0?!0:fn,Ln=Se.character,lt=Ln===void 0?"\u2605":Ln,qe=Se.characterRender,yn=Se.disabled,oi=Se.direction,Yn=oi===void 0?"ltr":oi,rn=Se.tabIndex,Gn=rn===void 0?0:rn,Mn=Se.autoFocus,xi=Se.onHoverChange,Wt=Se.onChange,Nn=Se.onFocus,St=Se.onBlur,bi=Se.onKeyDown,qn=Se.onMouseLeave,je=(0,Ft.Z)(Se,de),be=Ht(),we=(0,it.Z)(be,2),Be=we[0],Ke=we[1],ke=Me.useRef(null),et=function(){if(!yn){var Ji;(Ji=ke.current)===null||Ji===void 0||Ji.focus()}};Me.useImperativeHandle(Le,function(){return{focus:et,blur:function(){if(!yn){var Ji;(Ji=ke.current)===null||Ji===void 0||Ji.blur()}}}});var sn=(0,ct.Z)(Ve||0,{value:Xe}),Bt=(0,it.Z)(sn,2),_t=Bt[0],vt=Bt[1],xt=(0,ct.Z)(null),Tt=(0,it.Z)(xt,2),Ut=Tt[0],hn=Tt[1],kn=function(Ji,yr){var Ce=Yn==="rtl",Sn=Ji+1;if(Ct){var Wn=Be(Ji),gi=te(Wn),hi=Wn.clientWidth;(Ce&&yr-gi>hi/2||!Ce&&yr-gi0&&!Ce||yr===Kt.Z.RIGHT&&_t>0&&Ce?(xn(_t-Sn),Ji.preventDefault()):yr===Kt.Z.LEFT&&_t5&&arguments[5]!==void 0?arguments[5]:!1,Xn=arguments.length>6?arguments[6]:void 0,Mi=arguments.length>7?arguments[7]:void 0,ai=Me.useMemo(function(){if((0,ct.Z)(zt)==="object")return zt.clearIcon;if(Fn)return Fn},[zt,Fn]),Li=Me.useMemo(function(){return!!(!zn&&zt&&(Bn.length||Xn)&&!(Mi==="combobox"&&Xn===""))},[zt,zn,Bn.length,Xn,Mi]);return{allowClear:Li,clearIcon:Me.createElement(de,{className:"".concat(Pt,"-clear"),onMouseDown:Kn,customizeIcon:ai},"\xD7")}},ge=Me.createContext(null);function me(){return Me.useContext(ge)}function Se(){var Ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Pt=Me.useState(!1),Kn=(0,Et.Z)(Pt,2),Bn=Kn[0],zt=Kn[1],Fn=Me.useRef(null),zn=function(){window.clearTimeout(Fn.current)};Me.useEffect(function(){return zn},[]);var Xn=function(ai,Li){zn(),Fn.current=window.setTimeout(function(){zt(ai),Li&&Li()},Ge)};return[Bn,Xn,zn]}function Le(){var Ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Pt=Me.useRef(null),Kn=Me.useRef(null);Me.useEffect(function(){return function(){window.clearTimeout(Kn.current)}},[]);function Bn(zt){(zt||Pt.current===null)&&(Pt.current=zt),window.clearTimeout(Kn.current),Kn.current=window.setTimeout(function(){Pt.current=null},Ge)}return[function(){return Pt.current},Bn]}function Ie(Ge,Pt,Kn,Bn){var zt=Me.useRef(null);zt.current={open:Pt,triggerOpen:Kn,customizedTrigger:Bn},Me.useEffect(function(){function Fn(zn){var Xn;if(!((Xn=zt.current)!==null&&Xn!==void 0&&Xn.customizedTrigger)){var Mi=zn.target;Mi.shadowRoot&&zn.composed&&(Mi=zn.composedPath()[0]||Mi),zt.current.open&&Ge().filter(function(ai){return ai}).every(function(ai){return!ai.contains(Mi)&&ai!==Mi})&&zt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Fn),function(){return window.removeEventListener("mousedown",Fn)}},[])}var Ze=De(10228);function st(Ge){return Ge&&![Ze.Z.ESC,Ze.Z.SHIFT,Ze.Z.BACKSPACE,Ze.Z.TAB,Ze.Z.WIN_KEY,Ze.Z.ALT,Ze.Z.META,Ze.Z.WIN_KEY_RIGHT,Ze.Z.CTRL,Ze.Z.SEMICOLON,Ze.Z.EQUALS,Ze.Z.CAPS_LOCK,Ze.Z.CONTEXT_MENU,Ze.Z.F1,Ze.Z.F2,Ze.Z.F3,Ze.Z.F4,Ze.Z.F5,Ze.Z.F6,Ze.Z.F7,Ze.Z.F8,Ze.Z.F9,Ze.Z.F10,Ze.Z.F11,Ze.Z.F12].includes(Ge)}var Ve=De(26112),Xe=De(11780);function wt(Ge,Pt,Kn){var Bn=(0,Ft.Z)((0,Ft.Z)({},Ge),Kn?Pt:{});return Object.keys(Pt).forEach(function(zt){var Fn=Pt[zt];typeof Fn=="function"&&(Bn[zt]=function(){for(var zn,Xn=arguments.length,Mi=new Array(Xn),ai=0;aiwn&&(Re="".concat(ot.slice(0,wn),"..."))}var ut=function(Vt){Vt&&Vt.stopPropagation(),Pr(Rt)};return typeof Hi=="function"?yt(Ee,Re,an,Ue,ut):$e(Rt,Re,an,Ue,ut)},en=function(Rt){if(!zt.length)return null;var an=typeof Gi=="function"?Gi(Rt):Gi;return typeof Hi=="function"?yt(void 0,an,!1,!1,void 0,!0):$e({title:an},an,!1)},nt=Me.createElement("div",{className:"".concat($t,"-search"),style:{width:to},onFocus:function(){jn(!0)},onBlur:function(){jn(!1)}},Me.createElement(bn,{ref:Mi,open:Fn,prefixCls:Bn,id:Kn,inputElement:null,disabled:Li,autoFocus:Wi,autoComplete:Ii,editable:He,activeDescendantId:un,value:Te,onKeyDown:tr,onMouseDown:Ki,onChange:br,onPaste:Zi,onCompositionStart:dn,onCompositionEnd:lr,onBlur:vn,tabIndex:vr,attrs:(0,Ve.Z)(Pt,!0)}),Me.createElement("span",{ref:Fi,className:"".concat($t,"-search-mirror"),"aria-hidden":!0},Te,"\xA0")),kt=Me.createElement(Xe.Z,{prefixCls:"".concat($t,"-overflow"),data:zt,renderItem:Ot,renderRest:en,suffix:nt,itemKey:rn,maxCount:Yr});return Me.createElement("span",{className:"".concat($t,"-wrap")},kt,!zt.length&&!Te&&Me.createElement("span",{className:"".concat($t,"-placeholder")},ai))},xi=Mn,Wt=function(Pt){var Kn=Pt.inputElement,Bn=Pt.prefixCls,zt=Pt.id,Fn=Pt.inputRef,zn=Pt.disabled,Xn=Pt.autoFocus,Mi=Pt.autoComplete,ai=Pt.activeDescendantId,Li=Pt.mode,wi=Pt.open,ir=Pt.values,Wi=Pt.placeholder,Ii=Pt.tabIndex,un=Pt.showSearch,vr=Pt.searchValue,Mr=Pt.activeValue,Yr=Pt.maxLength,wn=Pt.onInputKeyDown,Pi=Pt.onInputMouseDown,Gi=Pt.onInputChange,Hi=Pt.onInputPaste,er=Pt.onInputCompositionStart,Pr=Pt.onInputCompositionEnd,br=Pt.onInputBlur,Zi=Pt.title,tr=Me.useState(!1),Ki=(0,Et.Z)(tr,2),dn=Ki[0],lr=Ki[1],vn=Li==="combobox",Fi=vn||un,Cr=ir[0],Nr=vr||"";vn&&Mr&&!dn&&(Nr=Mr),Me.useEffect(function(){vn&&lr(!1)},[vn,Mr]);var to=Li!=="combobox"&&!wi&&!un?!1:!!Nr,Ur=Zi===void 0?oi(Cr):Zi,Br=Me.useMemo(function(){return Cr?null:Me.createElement("span",{className:"".concat(Bn,"-selection-placeholder"),style:to?{visibility:"hidden"}:void 0},Wi)},[Cr,to,Wi,Bn]);return Me.createElement("span",{className:"".concat(Bn,"-selection-wrap")},Me.createElement("span",{className:"".concat(Bn,"-selection-search")},Me.createElement(bn,{ref:Fn,prefixCls:Bn,id:zt,open:wi,inputElement:Kn,disabled:zn,autoFocus:Xn,autoComplete:Mi,editable:Fi,activeDescendantId:ai,value:Nr,onKeyDown:wn,onMouseDown:Pi,onChange:function(Qt){lr(!0),Gi(Qt)},onPaste:Hi,onCompositionStart:er,onCompositionEnd:Pr,onBlur:br,tabIndex:Ii,attrs:(0,Ve.Z)(Pt,!0),maxLength:vn?Yr:void 0})),!vn&&Cr?Me.createElement("span",{className:"".concat(Bn,"-selection-item"),title:Ur,style:to?{visibility:"hidden"}:void 0},Cr.label):null,Br)},Nn=Wt,St=function(Pt,Kn){var Bn=(0,Me.useRef)(null),zt=(0,Me.useRef)(!1),Fn=Pt.prefixCls,zn=Pt.open,Xn=Pt.mode,Mi=Pt.showSearch,ai=Pt.tokenWithEnter,Li=Pt.disabled,wi=Pt.prefix,ir=Pt.autoClearSearchValue,Wi=Pt.onSearch,Ii=Pt.onSearchSubmit,un=Pt.onToggleOpen,vr=Pt.onInputKeyDown,Mr=Pt.onInputBlur,Yr=Pt.domRef;Me.useImperativeHandle(Kn,function(){return{focus:function(Ur){Bn.current.focus(Ur)},blur:function(){Bn.current.blur()}}});var wn=Le(0),Pi=(0,Et.Z)(wn,2),Gi=Pi[0],Hi=Pi[1],er=function(Ur){var Br=Ur.which,ao=Bn.current instanceof HTMLTextAreaElement;!ao&&zn&&(Br===Ze.Z.UP||Br===Ze.Z.DOWN)&&Ur.preventDefault(),vr&&vr(Ur),Br===Ze.Z.ENTER&&Xn==="tags"&&!zt.current&&!zn&&(Ii==null||Ii(Ur.target.value)),!(ao&&!zn&&~[Ze.Z.UP,Ze.Z.DOWN,Ze.Z.LEFT,Ze.Z.RIGHT].indexOf(Br))&&st(Br)&&un(!0)},Pr=function(){Hi(!0)},br=(0,Me.useRef)(null),Zi=function(Ur){Wi(Ur,!0,zt.current)!==!1&&un(!0)},tr=function(){zt.current=!0},Ki=function(Ur){zt.current=!1,Xn!=="combobox"&&Zi(Ur.target.value)},dn=function(Ur){var Br=Ur.target.value;if(ai&&br.current&&/[\r\n]/.test(br.current)){var ao=br.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Br=Br.replace(ao,br.current)}br.current=null,Zi(Br)},lr=function(Ur){var Br=Ur.clipboardData,ao=Br==null?void 0:Br.getData("text");br.current=ao||""},vn=function(Ur){var Br=Ur.target;if(Br!==Bn.current){var ao=document.body.style.msTouchAction!==void 0;ao?setTimeout(function(){Bn.current.focus()}):Bn.current.focus()}},Fi=function(Ur){var Br=Gi();Ur.target!==Bn.current&&!Br&&!(Xn==="combobox"&&Li)&&Ur.preventDefault(),(Xn!=="combobox"&&(!Mi||!Br)||!zn)&&(zn&&ir!==!1&&Wi("",!0,!1),un())},Cr={inputRef:Bn,onInputKeyDown:er,onInputMouseDown:Pr,onInputChange:dn,onInputPaste:lr,onInputCompositionStart:tr,onInputCompositionEnd:Ki,onInputBlur:Mr},Nr=Xn==="multiple"||Xn==="tags"?Me.createElement(xi,(0,ye.Z)({},Pt,Cr)):Me.createElement(Nn,(0,ye.Z)({},Pt,Cr));return Me.createElement("div",{ref:Yr,className:"".concat(Fn,"-selector"),onClick:vn,onMouseDown:Fi},wi&&Me.createElement("div",{className:"".concat(Fn,"-prefix")},wi),Nr)},bi=Me.forwardRef(St),qn=bi,je=De(65352),be=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],we=function(Pt){var Kn=Pt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Kn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Kn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Kn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Kn,adjustY:1},htmlRegion:"scroll"}}},Be=function(Pt,Kn){var Bn=Pt.prefixCls,zt=Pt.disabled,Fn=Pt.visible,zn=Pt.children,Xn=Pt.popupElement,Mi=Pt.animation,ai=Pt.transitionName,Li=Pt.dropdownStyle,wi=Pt.dropdownClassName,ir=Pt.direction,Wi=ir===void 0?"ltr":ir,Ii=Pt.placement,un=Pt.builtinPlacements,vr=Pt.dropdownMatchSelectWidth,Mr=Pt.dropdownRender,Yr=Pt.dropdownAlign,wn=Pt.getPopupContainer,Pi=Pt.empty,Gi=Pt.getTriggerDOMNode,Hi=Pt.onPopupVisibleChange,er=Pt.onPopupMouseEnter,Pr=(0,ze.Z)(Pt,be),br="".concat(Bn,"-dropdown"),Zi=Xn;Mr&&(Zi=Mr(Xn));var tr=Me.useMemo(function(){return un||we(vr)},[un,vr]),Ki=Mi?"".concat(br,"-").concat(Mi):ai,dn=typeof vr=="number",lr=Me.useMemo(function(){return dn?null:vr===!1?"minWidth":"width"},[vr,dn]),vn=Li;dn&&(vn=(0,Ft.Z)((0,Ft.Z)({},vn),{},{width:vr}));var Fi=Me.useRef(null);return Me.useImperativeHandle(Kn,function(){return{getPopupElement:function(){var Nr;return(Nr=Fi.current)===null||Nr===void 0?void 0:Nr.popupElement}}}),Me.createElement(je.Z,(0,ye.Z)({},Pr,{showAction:Hi?["click"]:[],hideAction:Hi?["click"]:[],popupPlacement:Ii||(Wi==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:tr,prefixCls:br,popupTransitionName:Ki,popup:Me.createElement("div",{onMouseEnter:er},Zi),ref:Fi,stretch:lr,popupAlign:Yr,popupVisible:Fn,getPopupContainer:wn,popupClassName:Ye()(wi,(0,it.Z)({},"".concat(br,"-empty"),Pi)),popupStyle:vn,getTriggerDOMNode:Gi,onPopupVisibleChange:Hi}),zn)},Ke=Me.forwardRef(Be),ke=Ke,et=De(21696);function sn(Ge,Pt){var Kn=Ge.key,Bn;return"value"in Ge&&(Bn=Ge.value),Kn!=null?Kn:Bn!==void 0?Bn:"rc-index-key-".concat(Pt)}function Bt(Ge){return typeof Ge!="undefined"&&!Number.isNaN(Ge)}function _t(Ge,Pt){var Kn=Ge||{},Bn=Kn.label,zt=Kn.value,Fn=Kn.options,zn=Kn.groupLabel,Xn=Bn||(Pt?"children":"label");return{label:Xn,value:zt||"value",options:Fn||"options",groupLabel:zn||Xn}}function vt(Ge){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Kn=Pt.fieldNames,Bn=Pt.childrenAsData,zt=[],Fn=_t(Kn,!1),zn=Fn.label,Xn=Fn.value,Mi=Fn.options,ai=Fn.groupLabel;function Li(wi,ir){Array.isArray(wi)&&wi.forEach(function(Wi){if(ir||!(Mi in Wi)){var Ii=Wi[Xn];zt.push({key:sn(Wi,zt.length),groupOption:ir,data:Wi,label:Wi[zn],value:Ii})}else{var un=Wi[ai];un===void 0&&Bn&&(un=Wi.label),zt.push({key:sn(Wi,zt.length),group:!0,data:Wi,label:un}),Li(Wi[Mi],!0)}})}return Li(Ge,!1),zt}function xt(Ge){var Pt=(0,Ft.Z)({},Ge);return"props"in Pt||Object.defineProperty(Pt,"props",{get:function(){return(0,ft.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Pt}}),Pt}var Tt=function(Pt,Kn,Bn){if(!Kn||!Kn.length)return null;var zt=!1,Fn=function Xn(Mi,ai){var Li=(0,et.Z)(ai),wi=Li[0],ir=Li.slice(1);if(!wi)return[Mi];var Wi=Mi.split(wi);return zt=zt||Wi.length>1,Wi.reduce(function(Ii,un){return[].concat((0,tt.Z)(Ii),(0,tt.Z)(Xn(un,ir)))},[]).filter(Boolean)},zn=Fn(Pt,Kn);return zt?typeof Bn!="undefined"?zn.slice(0,Bn):zn:null},Ut=Me.createContext(null),hn=Ut;function kn(Ge){var Pt=Ge.visible,Kn=Ge.values;if(!Pt)return null;var Bn=50;return Me.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Kn.slice(0,Bn).map(function(zt){var Fn=zt.label,zn=zt.value;return["number","string"].includes((0,ct.Z)(Fn))?Fn:zn}).join(", ")),Kn.length>Bn?", ...":null)}var xn=["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"],on=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],jt=function(Pt){return Pt==="tags"||Pt==="multiple"},Xt=Me.forwardRef(function(Ge,Pt){var Kn,Bn=Ge.id,zt=Ge.prefixCls,Fn=Ge.className,zn=Ge.showSearch,Xn=Ge.tagRender,Mi=Ge.direction,ai=Ge.omitDomProps,Li=Ge.displayValues,wi=Ge.onDisplayValuesChange,ir=Ge.emptyOptions,Wi=Ge.notFoundContent,Ii=Wi===void 0?"Not Found":Wi,un=Ge.onClear,vr=Ge.mode,Mr=Ge.disabled,Yr=Ge.loading,wn=Ge.getInputElement,Pi=Ge.getRawInputElement,Gi=Ge.open,Hi=Ge.defaultOpen,er=Ge.onDropdownVisibleChange,Pr=Ge.activeValue,br=Ge.onActiveValueChange,Zi=Ge.activeDescendantId,tr=Ge.searchValue,Ki=Ge.autoClearSearchValue,dn=Ge.onSearch,lr=Ge.onSearchSplit,vn=Ge.tokenSeparators,Fi=Ge.allowClear,Cr=Ge.prefix,Nr=Ge.suffixIcon,to=Ge.clearIcon,Ur=Ge.OptionList,Br=Ge.animation,ao=Ge.transitionName,Qt=Ge.dropdownStyle,jn=Ge.dropdownClassName,$t=Ge.dropdownMatchSelectWidth,Te=Ge.dropdownRender,He=Ge.dropdownAlign,$e=Ge.placement,yt=Ge.builtinPlacements,Ot=Ge.getPopupContainer,en=Ge.showAction,nt=en===void 0?[]:en,kt=Ge.onFocus,Gt=Ge.onBlur,Rt=Ge.onKeyUp,an=Ge.onKeyDown,si=Ge.onMouseDown,Ee=(0,ze.Z)(Ge,xn),Ue=jt(vr),Re=(zn!==void 0?zn:Ue)||vr==="combobox",ot=(0,Ft.Z)({},Ee);on.forEach(function(hr){delete ot[hr]}),ai==null||ai.forEach(function(hr){delete ot[hr]});var ut=Me.useState(!1),Zt=(0,Et.Z)(ut,2),Vt=Zt[0],tn=Zt[1];Me.useEffect(function(){tn((0,Ne.Z)())},[]);var An=Me.useRef(null),In=Me.useRef(null),pn=Me.useRef(null),Qn=Me.useRef(null),mi=Me.useRef(null),ht=Me.useRef(!1),_n=Se(),ni=(0,Et.Z)(_n,3),On=ni[0],ii=ni[1],Ci=ni[2];Me.useImperativeHandle(Pt,function(){var hr,Dr;return{focus:(hr=Qn.current)===null||hr===void 0?void 0:hr.focus,blur:(Dr=Qn.current)===null||Dr===void 0?void 0:Dr.blur,scrollTo:function(Si){var Do;return(Do=mi.current)===null||Do===void 0?void 0:Do.scrollTo(Si)},nativeElement:An.current||In.current}});var Ti=Me.useMemo(function(){var hr;if(vr!=="combobox")return tr;var Dr=(hr=Li[0])===null||hr===void 0?void 0:hr.value;return typeof Dr=="string"||typeof Dr=="number"?String(Dr):""},[tr,vr,Li]),Ni=vr==="combobox"&&typeof wn=="function"&&wn()||null,Oi=typeof Pi=="function"&&Pi(),zi=(0,ne.x1)(In,Oi==null||(Kn=Oi.props)===null||Kn===void 0?void 0:Kn.ref),fr=Me.useState(!1),kr=(0,Et.Z)(fr,2),Hr=kr[0],Zr=kr[1];(0,Ht.Z)(function(){Zr(!0)},[]);var Bi=(0,Kt.Z)(!1,{defaultValue:Hi,value:Gi}),Fr=(0,Et.Z)(Bi,2),Er=Fr[0],Rr=Fr[1],xr=Hr?Er:!1,jr=!Ii&&ir;(Mr||jr&&xr&&vr==="combobox")&&(xr=!1);var ei=jr?!1:xr,Vi=Me.useCallback(function(hr){var Dr=hr!==void 0?hr:!xr;Mr||(Rr(Dr),xr!==Dr&&(er==null||er(Dr)))},[Mr,xr,Rr,er]),_i=Me.useMemo(function(){return(vn||[]).some(function(hr){return[` `,`\r `].includes(hr)})},[vn]),ur=Me.useContext(hn)||{},qi=ur.maxCount,or=ur.rawValues,Di=function(Dr,Sr,Si){if(!(Ue&&Bt(qi)&&(or==null?void 0:or.size)>=qi)){var Do=!0,mt=Dr;br==null||br(null);var Tn=Tt(Dr,vn,Bt(qi)?qi-or.size:void 0),ha=Si?null:Tn;return vr!=="combobox"&&ha&&(mt="",lr==null||lr(ha),Vi(!1),Do=!1),dn&&Ti!==mt&&dn(mt,{source:Sr?"typing":"effect"}),Do}},zr=function(Dr){!Dr||!Dr.trim()||dn(Dr,{source:"submit"})};Me.useEffect(function(){!xr&&!Ue&&vr!=="combobox"&&Di("",!1,!1)},[xr]),Me.useEffect(function(){Er&&Mr&&Rr(!1),Mr&&!ht.current&&ii(!1)},[Mr]);var Kr=Le(),Qr=(0,Et.Z)(Kr,2),Ar=Qr[0],eo=Qr[1],Xr=Me.useRef(!1),_r=function(Dr){var Sr=Ar(),Si=Dr.key,Do=Si==="Enter";if(Do&&(vr!=="combobox"&&Dr.preventDefault(),xr||Vi(!0)),eo(!!Ti),Si==="Backspace"&&!Sr&&Ue&&!Ti&&Li.length){for(var mt=(0,tt.Z)(Li),Tn=null,ha=mt.length-1;ha>=0;ha-=1){var ga=mt[ha];if(!ga.disabled){mt.splice(ha,1),Tn=ga;break}}Tn&&wi(mt,{type:"remove",values:[Tn]})}for(var aa=arguments.length,sa=new Array(aa>1?aa-1:0),ya=1;ya1?Sr-1:0),Do=1;Do1?Tn-1:0),ga=1;ga=Ii},[Xn,Ii,Pi==null?void 0:Pi.size]),vn=function(nt){nt.preventDefault()},Fi=function(nt){var kt;(kt=dn.current)===null||kt===void 0||kt.scrollTo(typeof nt=="number"?{index:nt}:nt)},Cr=Me.useCallback(function(en){return Mi==="combobox"?!1:Pi.has(en)},[Mi,(0,tt.Z)(Pi).toString(),Pi.size]),Nr=function(nt){for(var kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Gt=Ki.length,Rt=0;Rt1&&arguments[1]!==void 0?arguments[1]:!1;ao(nt);var Gt={source:kt?"keyboard":"mouse"},Rt=Ki[nt];if(!Rt){vr(null,-1,Gt);return}vr(Rt.value,nt,Gt)};(0,Me.useEffect)(function(){Qt(Mr!==!1?Nr(0):-1)},[Ki.length,ai]);var jn=Me.useCallback(function(en){return Mi==="combobox"?String(en).toLowerCase()===ai.toLowerCase():Pi.has(en)},[Mi,ai,(0,tt.Z)(Pi).toString(),Pi.size]);(0,Me.useEffect)(function(){var en=setTimeout(function(){if(!Xn&&zn&&Pi.size===1){var kt=Array.from(Pi)[0],Gt=Ki.findIndex(function(Rt){var an=Rt.data;return ai?String(an.value).startsWith(ai):an.value===kt});Gt!==-1&&(Qt(Gt),Fi(Gt))}});if(zn){var nt;(nt=dn.current)===null||nt===void 0||nt.scrollTo(void 0)}return function(){return clearTimeout(en)}},[zn,ai]);var $t=function(nt){nt!==void 0&&Yr(nt,{selected:!Pi.has(nt)}),Xn||Li(!1)};if(Me.useImperativeHandle(Kn,function(){return{onKeyDown:function(nt){var kt=nt.which,Gt=nt.ctrlKey;switch(kt){case Ze.Z.N:case Ze.Z.P:case Ze.Z.UP:case Ze.Z.DOWN:{var Rt=0;if(kt===Ze.Z.UP?Rt=-1:kt===Ze.Z.DOWN?Rt=1:gr()&&Gt&&(kt===Ze.Z.N?Rt=1:kt===Ze.Z.P&&(Rt=-1)),Rt!==0){var an=Nr(Br+Rt,Rt);Fi(an),Qt(an,!0)}break}case Ze.Z.TAB:case Ze.Z.ENTER:{var si,Ee=Ki[Br];Ee&&!(Ee!=null&&(si=Ee.data)!==null&&si!==void 0&&si.disabled)&&!lr?$t(Ee.value):$t(void 0),zn&&nt.preventDefault();break}case Ze.Z.ESC:Li(!1),zn&&nt.stopPropagation()}},onKeyUp:function(){},scrollTo:function(nt){Fi(nt)}}}),Ki.length===0)return Me.createElement("div",{role:"listbox",id:"".concat(Fn,"_list"),className:"".concat(tr,"-empty"),onMouseDown:vn},wi);var Te=Object.keys(Gi).map(function(en){return Gi[en]}),He=function(nt){return nt.label};function $e(en,nt){var kt=en.group;return{role:kt?"presentation":"option",id:"".concat(Fn,"_list_").concat(nt)}}var yt=function(nt){var kt=Ki[nt];if(!kt)return null;var Gt=kt.data||{},Rt=Gt.value,an=kt.group,si=(0,Ve.Z)(Gt,!0),Ee=He(kt);return kt?Me.createElement("div",(0,ye.Z)({"aria-label":typeof Ee=="string"&&!an?Ee:null},si,{key:nt},$e(kt,nt),{"aria-selected":jn(Rt)}),Rt):null},Ot={role:"listbox",id:"".concat(Fn,"_list")};return Me.createElement(Me.Fragment,null,Hi&&Me.createElement("div",(0,ye.Z)({},Ot,{style:{height:0,width:0,overflow:"hidden"}}),yt(Br-1),yt(Br),yt(Br+1)),Me.createElement(Yi.Z,{itemKey:"key",ref:dn,data:Ki,height:Pr,itemHeight:br,fullHeight:!1,onMouseDown:vn,onScroll:ir,virtual:Hi,direction:er,innerProps:Hi?null:Ot},function(en,nt){var kt=en.group,Gt=en.groupOption,Rt=en.data,an=en.label,si=en.value,Ee=Rt.key;if(kt){var Ue,Re=(Ue=Rt.title)!==null&&Ue!==void 0?Ue:nr(an)?an.toString():void 0;return Me.createElement("div",{className:Ye()(tr,"".concat(tr,"-group"),Rt.className),title:Re},an!==void 0?an:Ee)}var ot=Rt.disabled,ut=Rt.title,Zt=Rt.children,Vt=Rt.style,tn=Rt.className,An=(0,ze.Z)(Rt,rr),In=(0,Ai.Z)(An,Te),pn=Cr(si),Qn=ot||!pn&&lr,mi="".concat(tr,"-option"),ht=Ye()(tr,mi,tn,(0,it.Z)((0,it.Z)((0,it.Z)((0,it.Z)({},"".concat(mi,"-grouped"),Gt),"".concat(mi,"-active"),Br===nt&&!Qn),"".concat(mi,"-disabled"),Qn),"".concat(mi,"-selected"),pn)),_n=He(en),ni=!wn||typeof wn=="function"||pn,On=typeof _n=="number"?_n:_n||si,ii=nr(On)?On.toString():void 0;return ut!==void 0&&(ii=ut),Me.createElement("div",(0,ye.Z)({},(0,Ve.Z)(In),Hi?{}:$e(en,nt),{"aria-selected":jn(si),className:ht,title:ii,onMouseMove:function(){Br===nt||Qn||Qt(nt)},onClick:function(){Qn||$t(si)},style:Vt}),Me.createElement("div",{className:"".concat(mi,"-content")},typeof Zi=="function"?Zi(en,{index:nt}):On),Me.isValidElement(wn)||pn,ni&&Me.createElement(de,{className:"".concat(tr,"-option-state"),customizeIcon:wn,customizeIconProps:{value:si,disabled:Qn,isSelected:pn}},pn?"\u2713":null))}))},sr=Me.forwardRef(pr),cr=sr,Ji=function(Ge,Pt){var Kn=Me.useRef({values:new Map,options:new Map}),Bn=Me.useMemo(function(){var Fn=Kn.current,zn=Fn.values,Xn=Fn.options,Mi=Ge.map(function(wi){if(wi.label===void 0){var ir;return(0,Ft.Z)((0,Ft.Z)({},wi),{},{label:(ir=zn.get(wi.value))===null||ir===void 0?void 0:ir.label})}return wi}),ai=new Map,Li=new Map;return Mi.forEach(function(wi){ai.set(wi.value,wi),Li.set(wi.value,Pt.get(wi.value)||Xn.get(wi.value))}),Kn.current.values=ai,Kn.current.options=Li,Mi},[Ge,Pt]),zt=Me.useCallback(function(Fn){return Pt.get(Fn)||Kn.current.options.get(Fn)},[Pt]);return[Bn,zt]};function yr(Ge,Pt){return fn(Ge).join("").toUpperCase().includes(Pt)}var Ce=function(Ge,Pt,Kn,Bn,zt){return Me.useMemo(function(){if(!Kn||Bn===!1)return Ge;var Fn=Pt.options,zn=Pt.label,Xn=Pt.value,Mi=[],ai=typeof Bn=="function",Li=Kn.toUpperCase(),wi=ai?Bn:function(Wi,Ii){return zt?yr(Ii[zt],Li):Ii[Fn]?yr(Ii[zn!=="children"?zn:"label"],Li):yr(Ii[Xn],Li)},ir=ai?function(Wi){return xt(Wi)}:function(Wi){return Wi};return Ge.forEach(function(Wi){if(Wi[Fn]){var Ii=wi(Kn,ir(Wi));if(Ii)Mi.push(Wi);else{var un=Wi[Fn].filter(function(vr){return wi(Kn,ir(vr))});un.length&&Mi.push((0,Ft.Z)((0,Ft.Z)({},Wi),{},(0,it.Z)({},Fn,un)))}return}wi(Kn,ir(Wi))&&Mi.push(Wi)}),Mi},[Ge,Bn,zt,Kn,Pt])},Sn=De(6551),Wn=De(11592),gi=["children","value"],hi=["children"];function Zn(Ge){var Pt=Ge,Kn=Pt.key,Bn=Pt.props,zt=Bn.children,Fn=Bn.value,zn=(0,ze.Z)(Bn,gi);return(0,Ft.Z)({key:Kn,value:Fn!==void 0?Fn:Kn,children:zt},zn)}function nn(Ge){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Wn.Z)(Ge).map(function(Kn,Bn){if(!Me.isValidElement(Kn)||!Kn.type)return null;var zt=Kn,Fn=zt.type.isSelectOptGroup,zn=zt.key,Xn=zt.props,Mi=Xn.children,ai=(0,ze.Z)(Xn,hi);return Pt||!Fn?Zn(Kn):(0,Ft.Z)((0,Ft.Z)({key:"__RC_SELECT_GRP__".concat(zn===null?Bn:zn,"__"),label:zn},ai),{},{options:nn(Mi)})}).filter(function(Kn){return Kn})}var Hn=function(Pt,Kn,Bn,zt,Fn){return Me.useMemo(function(){var zn=Pt,Xn=!Pt;Xn&&(zn=nn(Kn));var Mi=new Map,ai=new Map,Li=function(Wi,Ii,un){un&&typeof un=="string"&&Wi.set(Ii[un],Ii)},wi=function ir(Wi){for(var Ii=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,un=0;un1&&arguments[1]!==void 0?arguments[1]:!1,zn=0;zn0?Vi(qi.options):qi.options}):qi})},ni=Me.useMemo(function(){return Yr?_n(ht):ht},[ht,Yr,Ot]),On=Me.useMemo(function(){return vt(ni,{fieldNames:He,childrenAsData:$t})},[ni,He,$t]),ii=function(_i){var ur=an(_i);if(Re(ur),Ur&&(ur.length!==Vt.length||ur.some(function(Di,zr){var Kr;return((Kr=Vt[zr])===null||Kr===void 0?void 0:Kr.value)!==(Di==null?void 0:Di.value)}))){var qi=to?ur:ur.map(function(Di){return Di.value}),or=ur.map(function(Di){return xt(tn(Di.value))});Ur(jn?qi:qi[0],jn?or:or[0])}},Ci=Me.useState(null),Ti=(0,Et.Z)(Ci,2),Ni=Ti[0],Oi=Ti[1],zi=Me.useState(0),fr=(0,Et.Z)(zi,2),kr=fr[0],Hr=fr[1],Zr=Pr!==void 0?Pr:Bn!=="combobox",Bi=Me.useCallback(function(Vi,_i){var ur=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},qi=ur.source,or=qi===void 0?"keyboard":qi;Hr(_i),zn&&Bn==="combobox"&&Vi!==null&&or==="keyboard"&&Oi(String(Vi))},[zn,Bn]),Fr=function(_i,ur,qi){var or=function(){var mo,Bo=tn(_i);return[to?{label:Bo==null?void 0:Bo[He.label],value:_i,key:(mo=Bo==null?void 0:Bo.key)!==null&&mo!==void 0?mo:_i}:_i,xt(Bo)]};if(ur&&Wi){var Di=or(),zr=(0,Et.Z)(Di,2),Kr=zr[0],Qr=zr[1];Wi(Kr,Qr)}else if(!ur&&Ii&&qi!=="clear"){var Ar=or(),eo=(0,Et.Z)(Ar,2),Xr=eo[0],_r=eo[1];Ii(Xr,_r)}},Er=At(function(Vi,_i){var ur,qi=jn?_i.selected:!0;qi?ur=jn?[].concat((0,tt.Z)(Vt),[Vi]):[Vi]:ur=Vt.filter(function(or){return or.value!==Vi}),ii(ur),Fr(Vi,qi),Bn==="combobox"?Oi(""):(!jt||ir)&&(en(""),Oi(""))}),Rr=function(_i,ur){ii(_i);var qi=ur.type,or=ur.values;(qi==="remove"||qi==="clear")&&or.forEach(function(Di){Fr(Di.value,!1,qi)})},xr=function(_i,ur){if(en(_i),Oi(null),ur.source==="submit"){var qi=(_i||"").trim();if(qi){var or=Array.from(new Set([].concat((0,tt.Z)(In),[qi])));ii(or),Fr(qi,!0),en("")}return}ur.source!=="blur"&&(Bn==="combobox"&&ii(_i),Li==null||Li(_i))},jr=function(_i){var ur=_i;Bn!=="tags"&&(ur=_i.map(function(or){var Di=Gt.get(or);return Di==null?void 0:Di.value}).filter(function(or){return or!==void 0}));var qi=Array.from(new Set([].concat((0,tt.Z)(In),(0,tt.Z)(ur))));ii(qi),qi.forEach(function(or){Fr(or,!0)})},ei=Me.useMemo(function(){var Vi=Zi!==!1&&vr!==!1;return(0,Ft.Z)((0,Ft.Z)({},nt),{},{flattenOptions:On,onActiveValue:Bi,defaultActiveFirstOption:Zr,onSelect:Er,menuItemSelectedIcon:br,rawValues:In,fieldNames:He,virtual:Vi,direction:tr,listHeight:dn,listItemHeight:vn,childrenAsData:$t,maxCount:Br,optionRender:Hi})},[Br,nt,On,Bi,Zr,Er,br,In,He,Zi,vr,tr,dn,vn,$t,Hi]);return Me.createElement(hn.Provider,{value:ei},Me.createElement(gn,(0,ye.Z)({},ao,{id:Qt,prefixCls:Fn,ref:Pt,omitDomProps:ci,mode:Bn,displayValues:An,onDisplayValuesChange:Rr,direction:tr,searchValue:Ot,onSearch:xr,autoClearSearchValue:ir,onSearchSplit:jr,dropdownMatchSelectWidth:vr,OptionList:cr,emptyOptions:!On.length,activeValue:Ni,activeDescendantId:"".concat(Qt,"_list_").concat(kr)})))}),Cn=fi;Cn.Option=vi,Cn.OptGroup=Vn;var Qi=Cn,dr=Qi},63158:function(Un,pi,De){"use strict";var ye=De(14809),tt=De(4635),it=De(50298),Ft=De(62646),Et=De(59301),ze=De(92310),ct=De.n(ze),Kt=De(18929),ft=De(10228),Me=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],It=Et.forwardRef(function(Ye,Ht){var Ne,ne=Ye.prefixCls,te=ne===void 0?"rc-switch":ne,de=Ye.className,le=Ye.checked,ge=Ye.defaultChecked,me=Ye.disabled,Se=Ye.loadingIcon,Le=Ye.checkedChildren,Ie=Ye.unCheckedChildren,Ze=Ye.onClick,st=Ye.onChange,Ve=Ye.onKeyDown,Xe=(0,Ft.Z)(Ye,Me),wt=(0,Kt.Z)(!1,{value:le,defaultValue:ge}),gt=(0,it.Z)(wt,2),Nt=gt[0],Ct=gt[1];function ln(Ln,lt){var qe=Nt;return me||(qe=Ln,Ct(qe),st==null||st(qe,lt)),qe}function bn(Ln){Ln.which===ft.Z.LEFT?ln(!1,Ln):Ln.which===ft.Z.RIGHT&&ln(!0,Ln),Ve==null||Ve(Ln)}function fn(Ln){var lt=ln(!Nt,Ln);Ze==null||Ze(lt,Ln)}var Yt=ct()(te,de,(Ne={},(0,tt.Z)(Ne,"".concat(te,"-checked"),Nt),(0,tt.Z)(Ne,"".concat(te,"-disabled"),me),Ne));return Et.createElement("button",(0,ye.Z)({},Xe,{type:"button",role:"switch","aria-checked":Nt,disabled:me,className:Yt,ref:Ht,onKeyDown:bn,onClick:fn}),Se,Et.createElement("span",{className:"".concat(te,"-inner")},Et.createElement("span",{className:"".concat(te,"-inner-checked")},Le),Et.createElement("span",{className:"".concat(te,"-inner-unchecked")},Ie)))});It.displayName="Switch",pi.Z=It},86351:function(Un,pi,De){"use strict";De.d(pi,{R:function(){return tt},w:function(){return ye}});var ye={},tt="rc-table-internal-hook"},97347:function(Un,pi,De){"use strict";De.d(pi,{L:function(){return te},Z:function(){return Se}});var ye=De(50298),tt=De(4635),it=De(95190),Ft=De(93664),Et=De(20439),ze=De(62646),ct=De(11592),Kt=De(48736),ft=De(59301),Me=De(86351),It=De(54451);function Ye(Le){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Ie=="number"?Ie:Ie.endsWith("%")?Le*parseFloat(Ie)/100:null}function Ht(Le,Ie,Ze){return ft.useMemo(function(){if(Ie&&Ie>0){var st=0,Ve=0;Le.forEach(function(fn){var Yt=Ye(Ie,fn.width);Yt?st+=Yt:Ve+=1});var Xe=Math.max(Ie,Ze),wt=Math.max(Xe-st,Ve),gt=Ve,Nt=wt/Ve,Ct=0,ln=Le.map(function(fn){var Yt=(0,Et.Z)({},fn),Ln=Ye(Ie,Yt.width);if(Ln)Yt.width=Ln;else{var lt=Math.floor(Nt);Yt.width=gt===1?wt:lt,wt-=lt,gt-=1}return Ct+=Yt.width,Yt});if(Ct0?(0,Et.Z)((0,Et.Z)({},Ie),{},{children:de(Ze)}):Ie})}function le(Le){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Le.filter(function(Ze){return Ze&&(0,Ft.Z)(Ze)==="object"}).reduce(function(Ze,st,Ve){var Xe=st.fixed,wt=Xe===!0?"left":Xe,gt="".concat(Ie,"-").concat(Ve),Nt=st.children;return Nt&&Nt.length>0?[].concat((0,it.Z)(Ze),(0,it.Z)(le(Nt,gt).map(function(Ct){return(0,Et.Z)({fixed:wt},Ct)}))):[].concat((0,it.Z)(Ze),[(0,Et.Z)((0,Et.Z)({key:gt},st),{},{fixed:wt})])},[])}function ge(Le){return Le.map(function(Ie){var Ze=Ie.fixed,st=(0,ze.Z)(Ie,ne),Ve=Ze;return Ze==="left"?Ve="right":Ze==="right"&&(Ve="left"),(0,Et.Z)({fixed:Ve},st)})}function me(Le,Ie){var Ze=Le.prefixCls,st=Le.columns,Ve=Le.children,Xe=Le.expandable,wt=Le.expandedKeys,gt=Le.columnTitle,Nt=Le.getRowKey,Ct=Le.onTriggerExpand,ln=Le.expandIcon,bn=Le.rowExpandable,fn=Le.expandIconColumnIndex,Yt=Le.direction,Ln=Le.expandRowByClick,lt=Le.columnWidth,qe=Le.fixed,yn=Le.scrollWidth,oi=Le.clientWidth,Yn=ft.useMemo(function(){var qn=st||te(Ve)||[];return de(qn.slice())},[st,Ve]),rn=ft.useMemo(function(){if(Xe){var qn=Yn.slice();if(!qn.includes(Me.w)){var je=fn||0;je>=0&&(je||qe==="left"||!qe)&&qn.splice(je,0,Me.w),qe==="right"&&qn.splice(Yn.length,0,Me.w)}var be=qn.indexOf(Me.w);qn=qn.filter(function(ke,et){return ke!==Me.w||et===be});var we=Yn[be],Be;qe?Be=qe:Be=we?we.fixed:null;var Ke=(0,tt.Z)((0,tt.Z)((0,tt.Z)((0,tt.Z)((0,tt.Z)((0,tt.Z)({},It.v,{className:"".concat(Ze,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",gt),"fixed",Be),"className","".concat(Ze,"-row-expand-icon-cell")),"width",lt),"render",function(et,sn,Bt){var _t=Nt(sn,Bt),vt=wt.has(_t),xt=bn?bn(sn):!0,Tt=ln({prefixCls:Ze,expanded:vt,expandable:xt,record:sn,onExpand:Ct});return Ln?ft.createElement("span",{onClick:function(hn){return hn.stopPropagation()}},Tt):Tt});return qn.map(function(ke){return ke===Me.w?Ke:ke})}return Yn.filter(function(ke){return ke!==Me.w})},[Xe,Yn,Nt,wt,ln,Yt]),Gn=ft.useMemo(function(){var qn=rn;return Ie&&(qn=Ie(qn)),qn.length||(qn=[{render:function(){return null}}]),qn},[Ie,rn,Yt]),Mn=ft.useMemo(function(){return Yt==="rtl"?ge(le(Gn)):le(Gn)},[Gn,Yt,yn]),xi=ft.useMemo(function(){for(var qn=-1,je=Mn.length-1;je>=0;je-=1){var be=Mn[je].fixed;if(be==="left"||be===!0){qn=je;break}}if(qn>=0)for(var we=0;we<=qn;we+=1){var Be=Mn[we].fixed;if(Be!=="left"&&Be!==!0)return!0}var Ke=Mn.findIndex(function(sn){var Bt=sn.fixed;return Bt==="right"});if(Ke>=0)for(var ke=Ke;ke=$t}function Mn(Qt,jn){return ft(Le,function($t){var Te=Gn(Qt,jn||1,$t.hoverStartRow,$t.hoverEndRow);return[Te,$t.onHover]})}var xi=De(70425),Wt=function(jn){var $t=jn.ellipsis,Te=jn.rowType,He=jn.children,$e,yt=$t===!0?{showTitle:!0}:$t;return yt&&(yt.showTitle||Te==="header")&&(typeof He=="string"||typeof He=="number"?$e=He.toString():ze.isValidElement(He)&&typeof He.props.children=="string"&&($e=He.props.children)),$e};function Nn(Qt){var jn,$t,Te,He,$e,yt,Ot,en,nt=Qt.component,kt=Qt.children,Gt=Qt.ellipsis,Rt=Qt.scope,an=Qt.prefixCls,si=Qt.className,Ee=Qt.align,Ue=Qt.record,Re=Qt.render,ot=Qt.dataIndex,ut=Qt.renderIndex,Zt=Qt.shouldCellUpdate,Vt=Qt.index,tn=Qt.rowType,An=Qt.colSpan,In=Qt.rowSpan,pn=Qt.fixLeft,Qn=Qt.fixRight,mi=Qt.firstFixLeft,ht=Qt.lastFixLeft,_n=Qt.firstFixRight,ni=Qt.lastFixRight,On=Qt.appendNode,ii=Qt.additionalProps,Ci=ii===void 0?{}:ii,Ti=Qt.isSticky,Ni="".concat(an,"-cell"),Oi=ft(Le,["supportSticky","allColumnsFixedLeft","rowHoverable"]),zi=Oi.supportSticky,fr=Oi.allColumnsFixedLeft,kr=Oi.rowHoverable,Hr=rn(Ue,ot,ut,kt,Re,Zt),Zr=(0,tt.Z)(Hr,2),Bi=Zr[0],Fr=Zr[1],Er={},Rr=typeof pn=="number"&&zi,xr=typeof Qn=="number"&&zi;Rr&&(Er.position="sticky",Er.left=pn),xr&&(Er.position="sticky",Er.right=Qn);var jr=(jn=($t=(Te=Fr==null?void 0:Fr.colSpan)!==null&&Te!==void 0?Te:Ci.colSpan)!==null&&$t!==void 0?$t:An)!==null&&jn!==void 0?jn:1,ei=(He=($e=(yt=Fr==null?void 0:Fr.rowSpan)!==null&&yt!==void 0?yt:Ci.rowSpan)!==null&&$e!==void 0?$e:In)!==null&&He!==void 0?He:1,Vi=Mn(Vt,ei),_i=(0,tt.Z)(Vi,2),ur=_i[0],qi=_i[1],or=(0,xi.zX)(function(Xr){var _r;Ue&&qi(Vt,Vt+ei-1),Ci==null||(_r=Ci.onMouseEnter)===null||_r===void 0||_r.call(Ci,Xr)}),Di=(0,xi.zX)(function(Xr){var _r;Ue&&qi(-1,-1),Ci==null||(_r=Ci.onMouseLeave)===null||_r===void 0||_r.call(Ci,Xr)});if(jr===0||ei===0)return null;var zr=(Ot=Ci.title)!==null&&Ot!==void 0?Ot:Wt({rowType:tn,ellipsis:Gt,children:Bi}),Kr=Nt()(Ni,si,(en={},(0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)(en,"".concat(Ni,"-fix-left"),Rr&&zi),"".concat(Ni,"-fix-left-first"),mi&&zi),"".concat(Ni,"-fix-left-last"),ht&&zi),"".concat(Ni,"-fix-left-all"),ht&&fr&&zi),"".concat(Ni,"-fix-right"),xr&&zi),"".concat(Ni,"-fix-right-first"),_n&&zi),"".concat(Ni,"-fix-right-last"),ni&&zi),"".concat(Ni,"-ellipsis"),Gt),"".concat(Ni,"-with-append"),On),"".concat(Ni,"-fix-sticky"),(Rr||xr)&&Ti&&zi),(0,wt.Z)(en,"".concat(Ni,"-row-hover"),!Fr&&ur)),Ci.className,Fr==null?void 0:Fr.className),Qr={};Ee&&(Qr.textAlign=Ee);var Ar=(0,Xe.Z)((0,Xe.Z)((0,Xe.Z)((0,Xe.Z)({},Fr==null?void 0:Fr.style),Er),Qr),Ci.style),eo=Bi;return(0,Ve.Z)(eo)==="object"&&!Array.isArray(eo)&&!ze.isValidElement(eo)&&(eo=null),Gt&&(ht||_n)&&(eo=ze.createElement("span",{className:"".concat(Ni,"-content")},eo)),ze.createElement(nt,(0,Me.Z)({},Fr,Ci,{className:Kr,style:Ar,title:zr,scope:Rt,onMouseEnter:kr?or:void 0,onMouseLeave:kr?Di:void 0,colSpan:jr!==1?jr:null,rowSpan:ei!==1?ei:null}),On,eo)}var St=ze.memo(Nn);function bi(Qt,jn,$t,Te,He){var $e=$t[Qt]||{},yt=$t[jn]||{},Ot,en;$e.fixed==="left"?Ot=Te.left[He==="rtl"?jn:Qt]:yt.fixed==="right"&&(en=Te.right[He==="rtl"?Qt:jn]);var nt=!1,kt=!1,Gt=!1,Rt=!1,an=$t[jn+1],si=$t[Qt-1],Ee=an&&!an.fixed||si&&!si.fixed||$t.every(function(Zt){return Zt.fixed==="left"});if(He==="rtl"){if(Ot!==void 0){var Ue=si&&si.fixed==="left";Rt=!Ue&&Ee}else if(en!==void 0){var Re=an&&an.fixed==="right";Gt=!Re&&Ee}}else if(Ot!==void 0){var ot=an&&an.fixed==="left";nt=!ot&&Ee}else if(en!==void 0){var ut=si&&si.fixed==="right";kt=!ut&&Ee}return{fixLeft:Ot,fixRight:en,lastFixLeft:nt,firstFixRight:kt,lastFixRight:Gt,firstFixLeft:Rt,isSticky:Te.isSticky}}var qn=ze.createContext({}),je=qn;function be(Qt){var jn=Qt.className,$t=Qt.index,Te=Qt.children,He=Qt.colSpan,$e=He===void 0?1:He,yt=Qt.rowSpan,Ot=Qt.align,en=ft(Le,["prefixCls","direction"]),nt=en.prefixCls,kt=en.direction,Gt=ze.useContext(je),Rt=Gt.scrollColumnIndex,an=Gt.stickyOffsets,si=Gt.flattenColumns,Ee=$t+$e-1,Ue=Ee+1===Rt?$e+1:$e,Re=bi($t,$t+Ue-1,si,an,kt);return ze.createElement(St,(0,Me.Z)({className:jn,index:$t,component:"td",prefixCls:nt,record:null,dataIndex:null,align:Ot,colSpan:Ue,rowSpan:yt,render:function(){return Te}},Re))}var we=De(62646),Be=["children"];function Ke(Qt){var jn=Qt.children,$t=(0,we.Z)(Qt,Be);return ze.createElement("tr",$t,jn)}function ke(Qt){var jn=Qt.children;return jn}ke.Row=Ke,ke.Cell=be;var et=ke;function sn(Qt){var jn=Qt.children,$t=Qt.stickyOffsets,Te=Qt.flattenColumns,He=ft(Le,"prefixCls"),$e=Te.length-1,yt=Te[$e],Ot=ze.useMemo(function(){return{stickyOffsets:$t,flattenColumns:Te,scrollColumnIndex:yt!=null&&yt.scrollbar?$e:null}},[yt,Te,$e,$t]);return ze.createElement(je.Provider,{value:Ot},ze.createElement("tfoot",{className:"".concat(He,"-summary")},jn))}var Bt=ge(sn),_t=et,vt=De(29301),xt=De(24514),Tt=De(75152),Ut=De(26112);function hn(Qt,jn,$t,Te,He,$e,yt){Qt.push({record:jn,indent:$t,index:yt});var Ot=$e(jn),en=He==null?void 0:He.has(Ot);if(jn&&Array.isArray(jn[Te])&&en)for(var nt=0;nt1?mi-1:0),_n=1;_n=1)),style:(0,Xe.Z)((0,Xe.Z)({},$t),Re==null?void 0:Re.style)}),si.map(function(pn,Qn){var mi=pn.render,ht=pn.dataIndex,_n=pn.className,ni=Vn(Rt,pn,Qn,en,He),On=ni.key,ii=ni.fixedInfo,Ci=ni.appendCellNode,Ti=ni.additionalCellProps;return ze.createElement(St,(0,Me.Z)({className:_n,ellipsis:pn.ellipsis,align:pn.align,scope:pn.rowScope,component:pn.rowScope?Gt:kt,prefixCls:an,key:On,record:Te,index:He,renderIndex:$e,dataIndex:ht,render:mi,shouldCellUpdate:pn.shouldCellUpdate},ii,{appendNode:Ci,additionalProps:Ti}))})),An;if(ut&&(Zt.current||ot)){var In=Ue(Te,He,en+1,ot);An=ze.createElement(jt,{expanded:ot,className:Nt()("".concat(an,"-expanded-row"),"".concat(an,"-expanded-row-level-").concat(en+1),Vt),prefixCls:an,component:nt,cellComponent:kt,colSpan:si.length,isEmpty:!1},In)}return ze.createElement(ze.Fragment,null,tn,An)}var vi=ge(ri);function mn(Qt){var jn=Qt.columnKey,$t=Qt.onColumnResize,Te=ze.useRef();return(0,Ft.Z)(function(){Te.current&&$t(jn,Te.current.offsetWidth)},[]),ze.createElement(vt.Z,{data:jn},ze.createElement("td",{ref:Te,style:{padding:0,border:0,height:0}},ze.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var Ai=De(29194);function Yi(Qt){var jn=Qt.prefixCls,$t=Qt.columnsKey,Te=Qt.onColumnResize,He=ze.useRef(null);return ze.createElement("tr",{"aria-hidden":"true",className:"".concat(jn,"-measure-row"),style:{height:0,fontSize:0},ref:He},ze.createElement(vt.Z.Collection,{onBatchResize:function(yt){(0,Ai.Z)(He.current)&&yt.forEach(function(Ot){var en=Ot.data,nt=Ot.size;Te(en,nt.offsetWidth)})}},$t.map(function($e){return ze.createElement(mn,{key:$e,columnKey:$e,onColumnResize:Te})})))}function gr(Qt){var jn=Qt.data,$t=Qt.measureColumnWidth,Te=ft(Le,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),He=Te.prefixCls,$e=Te.getComponent,yt=Te.onColumnResize,Ot=Te.flattenColumns,en=Te.getRowKey,nt=Te.expandedKeys,kt=Te.childrenColumnName,Gt=Te.emptyNode,Rt=kn(jn,kt,nt,en),an=ze.useRef({renderWithProps:!1}),si=$e(["body","wrapper"],"tbody"),Ee=$e(["body","row"],"tr"),Ue=$e(["body","cell"],"td"),Re=$e(["body","cell"],"th"),ot;jn.length?ot=Rt.map(function(Zt,Vt){var tn=Zt.record,An=Zt.indent,In=Zt.index,pn=en(tn,Vt);return ze.createElement(vi,{key:pn,rowKey:pn,record:tn,index:Vt,renderIndex:In,rowComponent:Ee,cellComponent:Ue,scopeCellComponent:Re,indent:An})}):ot=ze.createElement(jt,{expanded:!0,className:"".concat(He,"-placeholder"),prefixCls:He,component:Ee,cellComponent:Ue,colSpan:Ot.length,isEmpty:!0},Gt);var ut=qe(Ot);return ze.createElement(Yt.Provider,{value:an.current},ze.createElement(si,{className:"".concat(He,"-tbody")},$t&&ze.createElement(Yi,{prefixCls:He,columnsKey:ut,onColumnResize:yt}),ot))}var rr=ge(gr),nr=De(54451),pr=["columnType"];function sr(Qt){for(var jn=Qt.colWidths,$t=Qt.columns,Te=Qt.columCount,He=ft(Le,["tableLayout"]),$e=He.tableLayout,yt=[],Ot=Te||$t.length,en=!1,nt=Ot-1;nt>=0;nt-=1){var kt=jn[nt],Gt=$t&&$t[nt],Rt=void 0,an=void 0;if(Gt&&(Rt=Gt[nr.v],$e==="auto"&&(an=Gt.minWidth)),kt||an||Rt||en){var si=Rt||{},Ee=si.columnType,Ue=(0,we.Z)(si,pr);yt.unshift(ze.createElement("col",(0,Me.Z)({key:nt,style:{width:kt,minWidth:an}},Ue))),en=!0}}return ze.createElement("colgroup",null,yt)}var cr=sr,Ji=De(95190),yr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Ce(Qt,jn){return(0,ze.useMemo)(function(){for(var $t=[],Te=0;Te1?"colgroup":"col":null,ellipsis:Ue.ellipsis,align:Ue.align,component:yt,prefixCls:kt,key:an[Ee]},Re,{additionalProps:ot,rowType:"header"}))}))},hi=gi;function Zn(Qt){var jn=[];function $t(yt,Ot){var en=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;jn[en]=jn[en]||[];var nt=Ot,kt=yt.filter(Boolean).map(function(Gt){var Rt={key:Gt.key,className:Gt.className||"",children:Gt.title,column:Gt,colStart:nt},an=1,si=Gt.children;return si&&si.length>0&&(an=$t(si,nt,en+1).reduce(function(Ee,Ue){return Ee+Ue},0),Rt.hasSubColumns=!0),"colSpan"in Gt&&(an=Gt.colSpan),"rowSpan"in Gt&&(Rt.rowSpan=Gt.rowSpan),Rt.colSpan=an,Rt.colEnd=Rt.colStart+an-1,jn[en].push(Rt),nt+=an,an});return kt}$t(Qt,0);for(var Te=jn.length,He=function(Ot){jn[Ot].forEach(function(en){!("rowSpan"in en)&&!en.hasSubColumns&&(en.rowSpan=Te-Ot)})},$e=0;$e=Ci-Ot?ot(function(Ti){return(0,Xe.Z)((0,Xe.Z)({},Ti),{},{isHiddenScrollBar:!0})}):ot(function(Ti){return(0,Xe.Z)((0,Xe.Z)({},Ti),{},{isHiddenScrollBar:!1})})}})},_n=function(On){ot(function(ii){return(0,Xe.Z)((0,Xe.Z)({},ii),{},{scrollLeft:On/Gt*Rt||0})})};return ze.useImperativeHandle($t,function(){return{setScrollLeft:_n,checkScrollBarVisible:ht}}),ze.useEffect(function(){var ni=(0,Pt.Z)(document.body,"mouseup",pn,!1),On=(0,Pt.Z)(document.body,"mousemove",mi,!1);return ht(),function(){ni.remove(),On.remove()}},[an,tn]),ze.useEffect(function(){if($e.current){for(var ni=[],On=(0,Bn.bn)($e.current);On;)ni.push(On),On=On.parentElement;return ni.forEach(function(ii){return ii.addEventListener("scroll",ht,!1)}),window.addEventListener("resize",ht,!1),window.addEventListener("scroll",ht,!1),en.addEventListener("scroll",ht,!1),function(){ni.forEach(function(ii){return ii.removeEventListener("scroll",ht)}),window.removeEventListener("resize",ht),window.removeEventListener("scroll",ht),en.removeEventListener("scroll",ht)}}},[en]),ze.useEffect(function(){Re.isHiddenScrollBar||ot(function(ni){var On=$e.current;return On?(0,Xe.Z)((0,Xe.Z)({},ni),{},{scrollLeft:On.scrollLeft/On.scrollWidth*On.clientWidth}):ni})},[Re.isHiddenScrollBar]),Gt<=Rt||!an||Re.isHiddenScrollBar?null:ze.createElement("div",{style:{height:(0,Tt.Z)(),width:Rt,bottom:Ot},className:"".concat(kt,"-sticky-scroll")},ze.createElement("div",{onMouseDown:Qn,ref:si,className:Nt()("".concat(kt,"-sticky-scroll-bar"),(0,wt.Z)({},"".concat(kt,"-sticky-scroll-bar-active"),tn)),style:{width:"".concat(an,"px"),transform:"translate3d(".concat(Re.scrollLeft,"px, 0, 0)")}}))},zn=ze.forwardRef(Fn);function Xn(Qt){return null}var Mi=Xn;function ai(Qt){return null}var Li=ai,wi="rc-table",ir=[],Wi={};function Ii(){return"No Data"}function un(Qt,jn){var $t=(0,Xe.Z)({rowKey:"key",prefixCls:wi,emptyText:Ii},Qt),Te=$t.prefixCls,He=$t.className,$e=$t.rowClassName,yt=$t.style,Ot=$t.data,en=$t.rowKey,nt=$t.scroll,kt=$t.tableLayout,Gt=$t.direction,Rt=$t.title,an=$t.footer,si=$t.summary,Ee=$t.caption,Ue=$t.id,Re=$t.showHeader,ot=$t.components,ut=$t.emptyText,Zt=$t.onRow,Vt=$t.onHeaderRow,tn=$t.onScroll,An=$t.internalHooks,In=$t.transformColumns,pn=$t.internalRefs,Qn=$t.tailor,mi=$t.getContainerWidth,ht=$t.sticky,_n=$t.rowHoverable,ni=_n===void 0?!0:_n,On=Ot||ir,ii=!!On.length,Ci=An===ye.R,Ti=ze.useCallback(function(No,Ko){return(0,ln.Z)(ot,No)||Ko},[ot]),Ni=ze.useMemo(function(){return typeof en=="function"?en:function(No){var Ko=No&&No[en];return Ko}},[en]),Oi=Ti(["body"]),zi=yi(),fr=(0,tt.Z)(zi,3),kr=fr[0],Hr=fr[1],Zr=fr[2],Bi=At($t,On,Ni),Fr=(0,tt.Z)(Bi,6),Er=Fr[0],Rr=Fr[1],xr=Fr[2],jr=Fr[3],ei=Fr[4],Vi=Fr[5],_i=nt==null?void 0:nt.x,ur=ze.useState(0),qi=(0,tt.Z)(ur,2),or=qi[0],Di=qi[1],zr=(0,di.Z)((0,Xe.Z)((0,Xe.Z)((0,Xe.Z)({},$t),Er),{},{expandable:!!Er.expandedRowRender,columnTitle:Er.columnTitle,expandedKeys:xr,getRowKey:Ni,onTriggerExpand:Vi,expandIcon:jr,expandIconColumnIndex:Er.expandIconColumnIndex,direction:Gt,scrollWidth:Ci&&Qn&&typeof _i=="number"?_i:null,clientWidth:or}),Ci?In:null),Kr=(0,tt.Z)(zr,4),Qr=Kr[0],Ar=Kr[1],eo=Kr[2],Xr=Kr[3],_r=eo!=null?eo:_i,fo=ze.useMemo(function(){return{columns:Qr,flattenColumns:Ar}},[Qr,Ar]),mo=ze.useRef(),Bo=ze.useRef(),so=ze.useRef(),ia=ze.useRef();ze.useImperativeHandle(jn,function(){return{nativeElement:mo.current,scrollTo:function(Ko){var ka;if(so.current instanceof HTMLElement){var ns=Ko.index,Qa=Ko.top,Bl=Ko.key;if(oi(Qa)){var yl;(yl=so.current)===null||yl===void 0||yl.scrollTo({top:Qa})}else{var Oo,xo=Bl!=null?Bl:Ni(On[ns]);(Oo=so.current.querySelector('[data-row-key="'.concat(xo,'"]')))===null||Oo===void 0||Oo.scrollIntoView()}}else(ka=so.current)!==null&&ka!==void 0&&ka.scrollTo&&so.current.scrollTo(Ko)}}});var po=ze.useRef(),Jo=ze.useState(!1),Po=(0,tt.Z)(Jo,2),Vo=Po[0],Go=Po[1],Yo=ze.useState(!1),Ro=(0,tt.Z)(Yo,2),Lo=Ro[0],oa=Ro[1],wa=ze.useState(new Map),zo=(0,tt.Z)(wa,2),Oa=zo[0],bo=zo[1],yo=qe(Ar),vo=yo.map(function(No){return Oa.get(No)}),Qo=ze.useMemo(function(){return vo},[vo.join("_")]),ro=Qi(Qo,Ar,Gt),ta=nt&&yn(nt.y),wr=nt&&yn(_r)||!!Er.fixed,hr=wr&&Ar.some(function(No){var Ko=No.fixed;return Ko}),Dr=ze.useRef(),Sr=fi(ht,Te),Si=Sr.isSticky,Do=Sr.offsetHeader,mt=Sr.offsetSummary,Tn=Sr.offsetScroll,ha=Sr.stickyClassName,ga=Sr.container,aa=ze.useMemo(function(){return si==null?void 0:si(On)},[si,On]),sa=(ta||Si)&&ze.isValidElement(aa)&&aa.type===et&&aa.props.fixed,ya,Pa,hs;ta&&(Pa={overflowY:ii?"scroll":"auto",maxHeight:nt.y}),wr&&(ya={overflowX:"auto"},ta||(Pa={overflowY:"hidden"}),hs={width:_r===!0?"auto":_r,minWidth:"100%"});var da=ze.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=ti(null),Ya=(0,tt.Z)(qr,2),ts=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,it.Z)(function(No){var Ko=No.currentTarget,ka=No.scrollLeft,ns=Gt==="rtl",Qa=typeof ka=="number"?ka:Ko.scrollLeft,Bl=Ko||Wi;if(!ca()||ca()===Bl){var yl;ts(Bl),So(Qa,Bo.current),So(Qa,so.current),So(Qa,po.current),So(Qa,(yl=Dr.current)===null||yl===void 0?void 0:yl.setScrollLeft)}var Oo=Ko||Bo.current;if(Oo){var xo=Ci&&Qn&&typeof _r=="number"?_r:Oo.scrollWidth,Ua=Oo.clientWidth;if(xo===Ua){Go(!1),oa(!1);return}ns?(Go(-Qa0)):(Go(Qa>0),oa(Qa1?Ue-ni:0,ii=(0,Xe.Z)((0,Xe.Z)((0,Xe.Z)({},In),nt),{},{flex:"0 0 ".concat(ni,"px"),width:"".concat(ni,"px"),marginRight:On,pointerEvents:"auto"}),Ci=ze.useMemo(function(){return Gt?ht<=1:Qn===0||ht===0||ht>1},[ht,Qn,Gt]);Ci?ii.visibility="hidden":Gt&&(ii.height=Rt==null?void 0:Rt(ht));var Ti=Ci?function(){return null}:an,Ni={};return(ht===0||Qn===0)&&(Ni.rowSpan=1,Ni.colSpan=1),ze.createElement(St,(0,Me.Z)({className:Nt()(Ee,kt),ellipsis:$t.ellipsis,align:$t.align,scope:$t.rowScope,component:yt,prefixCls:jn.prefixCls,key:Zt,record:en,index:$e,renderIndex:Ot,dataIndex:si,render:Ti,shouldCellUpdate:$t.shouldCellUpdate},Vt,{appendNode:tn,additionalProps:(0,Xe.Z)((0,Xe.Z)({},An),{},{style:ii},Ni)}))}var br=Pr,Zi=["data","index","className","rowKey","style","extra","getHeight"],tr=ze.forwardRef(function(Qt,jn){var $t=Qt.data,Te=Qt.index,He=Qt.className,$e=Qt.rowKey,yt=Qt.style,Ot=Qt.extra,en=Qt.getHeight,nt=(0,we.Z)(Qt,Zi),kt=$t.record,Gt=$t.indent,Rt=$t.index,an=ft(Le,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),si=an.scrollX,Ee=an.flattenColumns,Ue=an.prefixCls,Re=an.fixColumn,ot=an.componentWidth,ut=ft(Gi,["getComponent"]),Zt=ut.getComponent,Vt=xn(kt,$e,Te,Gt),tn=Zt(["body","row"],"div"),An=Zt(["body","cell"],"div"),In=Vt.rowSupportExpand,pn=Vt.expanded,Qn=Vt.rowProps,mi=Vt.expandedRowRender,ht=Vt.expandedRowClassName,_n;if(In&&pn){var ni=mi(kt,Te,Gt+1,pn),On=En(ht,kt,Te,Gt),ii={};Re&&(ii={style:(0,wt.Z)({},"--virtual-width","".concat(ot,"px"))});var Ci="".concat(Ue,"-expanded-row-cell");_n=ze.createElement(tn,{className:Nt()("".concat(Ue,"-expanded-row"),"".concat(Ue,"-expanded-row-level-").concat(Gt+1),On)},ze.createElement(St,{component:An,prefixCls:Ue,className:Nt()(Ci,(0,wt.Z)({},"".concat(Ci,"-fixed"),Re)),additionalProps:ii},ni))}var Ti=(0,Xe.Z)((0,Xe.Z)({},yt),{},{width:si});Ot&&(Ti.position="absolute",Ti.pointerEvents="none");var Ni=ze.createElement(tn,(0,Me.Z)({},Qn,nt,{"data-row-key":$e,ref:In?null:jn,className:Nt()(He,"".concat(Ue,"-row"),Qn==null?void 0:Qn.className,(0,wt.Z)({},"".concat(Ue,"-row-extra"),Ot)),style:(0,Xe.Z)((0,Xe.Z)({},Ti),Qn==null?void 0:Qn.style)}),Ee.map(function(Oi,zi){return ze.createElement(br,{key:zi,component:An,rowInfo:Vt,column:Oi,colIndex:zi,indent:Gt,index:Te,renderIndex:Rt,record:kt,inverse:Ot,getHeight:en})}));return In?ze.createElement("div",{ref:jn},Ni,_n):Ni}),Ki=ge(tr),dn=Ki,lr=ze.forwardRef(function(Qt,jn){var $t=Qt.data,Te=Qt.onScroll,He=ft(Le,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),$e=He.flattenColumns,yt=He.onColumnResize,Ot=He.getRowKey,en=He.expandedKeys,nt=He.prefixCls,kt=He.childrenColumnName,Gt=He.scrollX,Rt=He.direction,an=ft(Gi),si=an.sticky,Ee=an.scrollY,Ue=an.listItemHeight,Re=an.getComponent,ot=an.onScroll,ut=ze.useRef(),Zt=kn($t,kt,en,Ot),Vt=ze.useMemo(function(){var _n=0;return $e.map(function(ni){var On=ni.width,ii=ni.key;return _n+=On,[ii,On,_n]})},[$e]),tn=ze.useMemo(function(){return Vt.map(function(_n){return _n[2]})},[Vt]);ze.useEffect(function(){Vt.forEach(function(_n){var ni=(0,tt.Z)(_n,2),On=ni[0],ii=ni[1];yt(On,ii)})},[Vt]),ze.useImperativeHandle(jn,function(){var _n,ni={scrollTo:function(ii){var Ci;(Ci=ut.current)===null||Ci===void 0||Ci.scrollTo(ii)},nativeElement:(_n=ut.current)===null||_n===void 0?void 0:_n.nativeElement};return Object.defineProperty(ni,"scrollLeft",{get:function(){var ii;return((ii=ut.current)===null||ii===void 0?void 0:ii.getScrollInfo().x)||0},set:function(ii){var Ci;(Ci=ut.current)===null||Ci===void 0||Ci.scrollTo({left:ii})}}),ni});var An=function(ni,On){var ii,Ci=(ii=Zt[On])===null||ii===void 0?void 0:ii.record,Ti=ni.onCell;if(Ti){var Ni,Oi=Ti(Ci,On);return(Ni=Oi==null?void 0:Oi.rowSpan)!==null&&Ni!==void 0?Ni:1}return 1},In=function(ni){var On=ni.start,ii=ni.end,Ci=ni.getSize,Ti=ni.offsetY;if(ii<0)return null;for(var Ni=$e.filter(function(jr){return An(jr,On)===0}),Oi=On,zi=function(ei){if(Ni=Ni.filter(function(Vi){return An(Vi,ei)===0}),!Ni.length)return Oi=ei,1},fr=On;fr>=0&&!zi(fr);fr-=1);for(var kr=$e.filter(function(jr){return An(jr,ii)!==1}),Hr=ii,Zr=function(ei){if(kr=kr.filter(function(Vi){return An(Vi,ei)!==1}),!kr.length)return Hr=Math.max(ei-1,ii),1},Bi=ii;Bi1})&&Fr.push(ei)},Rr=Oi;Rr<=Hr;Rr+=1)Er(Rr);var xr=Fr.map(function(jr){var ei=Zt[jr],Vi=Ot(ei.record,jr),_i=function(or){var Di=jr+or-1,zr=Ot(Zt[Di].record,Di),Kr=Ci(Vi,zr);return Kr.bottom-Kr.top},ur=Ci(Vi);return ze.createElement(dn,{key:jr,data:ei,rowKey:Vi,index:jr,style:{top:-Ti+ur.top},extra:!0,getHeight:_i})});return xr},pn=ze.useMemo(function(){return{columnsOffset:tn}},[tn]),Qn="".concat(nt,"-tbody"),mi=Re(["body","wrapper"]),ht={};return si&&(ht.position="sticky",ht.bottom=0,(0,Ve.Z)(si)==="object"&&si.offsetScroll&&(ht.bottom=si.offsetScroll)),ze.createElement(Hi.Provider,{value:pn},ze.createElement(Pi.Z,{fullHeight:!1,ref:ut,prefixCls:"".concat(Qn,"-virtual"),styles:{horizontalScrollBar:ht},className:Qn,height:Ee,itemHeight:Ue||24,data:Zt,itemKey:function(ni){return Ot(ni.record)},component:mi,scrollWidth:Gt,direction:Rt,onVirtualScroll:function(ni){var On,ii=ni.x;Te({currentTarget:(On=ut.current)===null||On===void 0?void 0:On.nativeElement,scrollLeft:ii})},onScroll:ot,extraRender:In},function(_n,ni,On){var ii=Ot(_n.record,ni);return ze.createElement(dn,{data:_n,rowKey:ii,index:ni,style:On.style})}))}),vn=ge(lr),Fi=vn,Cr=function(jn,$t){var Te=$t.ref,He=$t.onScroll;return ze.createElement(Fi,{ref:Te,data:jn,onScroll:He})};function Nr(Qt,jn){var $t=Qt.data,Te=Qt.columns,He=Qt.scroll,$e=Qt.sticky,yt=Qt.prefixCls,Ot=yt===void 0?wi:yt,en=Qt.className,nt=Qt.listItemHeight,kt=Qt.components,Gt=Qt.onScroll,Rt=He||{},an=Rt.x,si=Rt.y;typeof an!="number"&&(an=1),typeof si!="number"&&(si=500);var Ee=(0,xi.zX)(function(ot,ut){return(0,ln.Z)(kt,ot)||ut}),Ue=(0,xi.zX)(Gt),Re=ze.useMemo(function(){return{sticky:$e,scrollY:si,listItemHeight:nt,getComponent:Ee,onScroll:Ue}},[$e,si,nt,Ee,Ue]);return ze.createElement(Gi.Provider,{value:Re},ze.createElement(wn,(0,Me.Z)({},Qt,{className:Nt()(en,"".concat(Ot,"-virtual")),scroll:(0,Xe.Z)((0,Xe.Z)({},He),{},{x:an}),components:(0,Xe.Z)((0,Xe.Z)({},kt),{},{body:$t!=null&&$t.length?Cr:void 0}),columns:Te,internalHooks:ye.R,tailor:!0,ref:jn})))}var to=ze.forwardRef(Nr);function Ur(Qt){return le(to,Qt)}var Br=Ur(),ao=null},54451:function(Un,pi,De){"use strict";De.d(pi,{g:function(){return ze},v:function(){return Et}});var ye=De(20439),tt=De(62646),it=De(48736),Ft=["expandable"],Et="RC_TABLE_INTERNAL_COL_DEFINE";function ze(ct){var Kt=ct.expandable,ft=(0,tt.Z)(ct,Ft),Me;return"expandable"in ct?Me=(0,ye.Z)((0,ye.Z)({},ft),Kt):Me=ft,Me.showExpandColumn===!1&&(Me.expandIconColumnIndex=-1),Me}},22711:function(Un,pi,De){"use strict";De.r(pi),De.d(pi,{ResizableTextArea:function(){return gt},default:function(){return bn}});var ye=De(14809),tt=De(4635),it=De(20439),Ft=De(95190),Et=De(50298),ze=De(62646),ct=De(92310),Kt=De.n(ct),ft=De(36901),Me=De(66003),It=De(30292),Ye=De(18929),Ht=De(59301),Ne=De(93664),ne=De(29301),te=De(34280),de=De(16089),le=` 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; `,ge=["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"],me={},Se;function Le(fn){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ln=fn.getAttribute("id")||fn.getAttribute("data-reactid")||fn.getAttribute("name");if(Yt&&me[Ln])return me[Ln];var lt=window.getComputedStyle(fn),qe=lt.getPropertyValue("box-sizing")||lt.getPropertyValue("-moz-box-sizing")||lt.getPropertyValue("-webkit-box-sizing"),yn=parseFloat(lt.getPropertyValue("padding-bottom"))+parseFloat(lt.getPropertyValue("padding-top")),oi=parseFloat(lt.getPropertyValue("border-bottom-width"))+parseFloat(lt.getPropertyValue("border-top-width")),Yn=ge.map(function(Gn){return"".concat(Gn,":").concat(lt.getPropertyValue(Gn))}).join(";"),rn={sizingStyle:Yn,paddingSize:yn,borderSize:oi,boxSizing:qe};return Yt&&Ln&&(me[Ln]=rn),rn}function Ie(fn){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,lt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Se||(Se=document.createElement("textarea"),Se.setAttribute("tab-index","-1"),Se.setAttribute("aria-hidden","true"),Se.setAttribute("name","hiddenTextarea"),document.body.appendChild(Se)),fn.getAttribute("wrap")?Se.setAttribute("wrap",fn.getAttribute("wrap")):Se.removeAttribute("wrap");var qe=Le(fn,Yt),yn=qe.paddingSize,oi=qe.borderSize,Yn=qe.boxSizing,rn=qe.sizingStyle;Se.setAttribute("style","".concat(rn,";").concat(le)),Se.value=fn.value||fn.placeholder||"";var Gn=void 0,Mn=void 0,xi,Wt=Se.scrollHeight;if(Yn==="border-box"?Wt+=oi:Yn==="content-box"&&(Wt-=yn),Ln!==null||lt!==null){Se.value=" ";var Nn=Se.scrollHeight-yn;Ln!==null&&(Gn=Nn*Ln,Yn==="border-box"&&(Gn=Gn+yn+oi),Wt=Math.max(Gn,Wt)),lt!==null&&(Mn=Nn*lt,Yn==="border-box"&&(Mn=Mn+yn+oi),xi=Wt>Mn?"":"hidden",Wt=Math.min(Mn,Wt))}var St={height:Wt,overflowY:xi,resize:"none"};return Gn&&(St.minHeight=Gn),Mn&&(St.maxHeight=Mn),St}var Ze=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],st=0,Ve=1,Xe=2,wt=Ht.forwardRef(function(fn,Yt){var Ln=fn,lt=Ln.prefixCls,qe=Ln.defaultValue,yn=Ln.value,oi=Ln.autoSize,Yn=Ln.onResize,rn=Ln.className,Gn=Ln.style,Mn=Ln.disabled,xi=Ln.onChange,Wt=Ln.onInternalAutoSize,Nn=(0,ze.Z)(Ln,Ze),St=(0,Ye.Z)(qe,{value:yn,postState:function(vi){return vi!=null?vi:""}}),bi=(0,Et.Z)(St,2),qn=bi[0],je=bi[1],be=function(vi){je(vi.target.value),xi==null||xi(vi)},we=Ht.useRef();Ht.useImperativeHandle(Yt,function(){return{textArea:we.current}});var Be=Ht.useMemo(function(){return oi&&(0,Ne.Z)(oi)==="object"?[oi.minRows,oi.maxRows]:[]},[oi]),Ke=(0,Et.Z)(Be,2),ke=Ke[0],et=Ke[1],sn=!!oi,Bt=function(){try{if(document.activeElement===we.current){var vi=we.current,mn=vi.selectionStart,Ai=vi.selectionEnd,Yi=vi.scrollTop;we.current.setSelectionRange(mn,Ai),we.current.scrollTop=Yi}}catch(gr){}},_t=Ht.useState(Xe),vt=(0,Et.Z)(_t,2),xt=vt[0],Tt=vt[1],Ut=Ht.useState(),hn=(0,Et.Z)(Ut,2),kn=hn[0],xn=hn[1],on=function(){Tt(st)};(0,te.Z)(function(){sn&&on()},[yn,ke,et,sn]),(0,te.Z)(function(){if(xt===st)Tt(Ve);else if(xt===Ve){var ri=Ie(we.current,!1,ke,et);Tt(Xe),xn(ri)}else Bt()},[xt]);var jt=Ht.useRef(),Xt=function(){de.Z.cancel(jt.current)},gn=function(vi){xt===Xe&&(Yn==null||Yn(vi),oi&&(Xt(),jt.current=(0,de.Z)(function(){on()})))};Ht.useEffect(function(){return Xt},[]);var En=sn?kn:null,Vn=(0,it.Z)((0,it.Z)({},Gn),En);return(xt===st||xt===Ve)&&(Vn.overflowY="hidden",Vn.overflowX="hidden"),Ht.createElement(ne.Z,{onResize:gn,disabled:!(oi||Yn)},Ht.createElement("textarea",(0,ye.Z)({},Nn,{ref:we,style:Vn,className:Kt()(lt,rn,(0,tt.Z)({},"".concat(lt,"-disabled"),Mn)),disabled:Mn,value:qn,onChange:be})))}),gt=wt,Nt=["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"],Ct=Ht.forwardRef(function(fn,Yt){var Ln,lt=fn.defaultValue,qe=fn.value,yn=fn.onFocus,oi=fn.onBlur,Yn=fn.onChange,rn=fn.allowClear,Gn=fn.maxLength,Mn=fn.onCompositionStart,xi=fn.onCompositionEnd,Wt=fn.suffix,Nn=fn.prefixCls,St=Nn===void 0?"rc-textarea":Nn,bi=fn.showCount,qn=fn.count,je=fn.className,be=fn.style,we=fn.disabled,Be=fn.hidden,Ke=fn.classNames,ke=fn.styles,et=fn.onResize,sn=fn.onClear,Bt=fn.onPressEnter,_t=fn.readOnly,vt=fn.autoSize,xt=fn.onKeyDown,Tt=(0,ze.Z)(fn,Nt),Ut=(0,Ye.Z)(lt,{value:qe,defaultValue:lt}),hn=(0,Et.Z)(Ut,2),kn=hn[0],xn=hn[1],on=kn==null?"":String(kn),jt=Ht.useState(!1),Xt=(0,Et.Z)(jt,2),gn=Xt[0],En=Xt[1],Vn=Ht.useRef(!1),ri=Ht.useState(null),vi=(0,Et.Z)(ri,2),mn=vi[0],Ai=vi[1],Yi=(0,Ht.useRef)(null),gr=(0,Ht.useRef)(null),rr=function(){var Cn;return(Cn=gr.current)===null||Cn===void 0?void 0:Cn.textArea},nr=function(){rr().focus()};(0,Ht.useImperativeHandle)(Yt,function(){var fi;return{resizableTextArea:gr.current,focus:nr,blur:function(){rr().blur()},nativeElement:((fi=Yi.current)===null||fi===void 0?void 0:fi.nativeElement)||rr()}}),(0,Ht.useEffect)(function(){En(function(fi){return!we&&fi})},[we]);var pr=Ht.useState(null),sr=(0,Et.Z)(pr,2),cr=sr[0],Ji=sr[1];Ht.useEffect(function(){if(cr){var fi;(fi=rr()).setSelectionRange.apply(fi,(0,Ft.Z)(cr))}},[cr]);var yr=(0,Me.Z)(qn,bi),Ce=(Ln=yr.max)!==null&&Ln!==void 0?Ln:Gn,Sn=Number(Ce)>0,Wn=yr.strategy(on),gi=!!Ce&&Wn>Ce,hi=function(Cn,Qi){var dr=Qi;!Vn.current&&yr.exceedFormatter&&yr.max&&yr.strategy(Qi)>yr.max&&(dr=yr.exceedFormatter(Qi,{max:yr.max}),Qi!==dr&&Ji([rr().selectionStart||0,rr().selectionEnd||0])),xn(dr),(0,It.rJ)(Cn.currentTarget,Cn,Yn,dr)},Zn=function(Cn){Vn.current=!0,Mn==null||Mn(Cn)},nn=function(Cn){Vn.current=!1,hi(Cn,Cn.currentTarget.value),xi==null||xi(Cn)},Hn=function(Cn){hi(Cn,Cn.target.value)},di=function(Cn){Cn.key==="Enter"&&Bt&&Bt(Cn),xt==null||xt(Cn)},At=function(Cn){En(!0),yn==null||yn(Cn)},Dt=function(Cn){En(!1),oi==null||oi(Cn)},bt=function(Cn){xn(""),nr(),(0,It.rJ)(rr(),Cn,Yn)},ti=Wt,yi;yr.show&&(yr.showFormatter?yi=yr.showFormatter({value:on,count:Wn,maxLength:Ce}):yi="".concat(Wn).concat(Sn?" / ".concat(Ce):""),ti=Ht.createElement(Ht.Fragment,null,ti,Ht.createElement("span",{className:Kt()("".concat(St,"-data-count"),Ke==null?void 0:Ke.count),style:ke==null?void 0:ke.count},yi)));var ci=function(Cn){var Qi;et==null||et(Cn),(Qi=rr())!==null&&Qi!==void 0&&Qi.style.height&&Ai(!0)},Pn=!vt&&!bi&&!rn;return Ht.createElement(ft.BaseInput,{ref:Yi,value:on,allowClear:rn,handleReset:bt,suffix:ti,prefixCls:St,classNames:(0,it.Z)((0,it.Z)({},Ke),{},{affixWrapper:Kt()(Ke==null?void 0:Ke.affixWrapper,(0,tt.Z)((0,tt.Z)({},"".concat(St,"-show-count"),bi),"".concat(St,"-textarea-allow-clear"),rn))}),disabled:we,focused:gn,className:Kt()(je,gi&&"".concat(St,"-out-of-range")),style:(0,it.Z)((0,it.Z)({},be),mn&&!Pn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof yi=="string"?yi:void 0}},hidden:Be,readOnly:_t,onClear:sn},Ht.createElement(gt,(0,ye.Z)({},Tt,{autoSize:vt,maxLength:Gn,onKeyDown:di,onChange:Hn,onFocus:At,onBlur:Dt,onCompositionStart:Zn,onCompositionEnd:nn,className:Kt()(Ke==null?void 0:Ke.textarea),style:(0,it.Z)((0,it.Z)({},ke==null?void 0:ke.textarea),{},{resize:be==null?void 0:be.resize}),disabled:we,prefixCls:St,onResize:ci,ref:gr,readOnly:_t})))}),ln=Ct,bn=ln},9940:function(Un,pi,De){"use strict";De.d(pi,{Qw:function(){return bi},FJ:function(){return je},hT:function(){return qn},OF:function(){return Se},ZP:function(){return _t}});var ye=De(14809),tt=De(95190),it=De(20439),Ft=De(50298),Et=De(62646),ze=De(93664),ct=De(37463),Kt=De(6551),ft=De(34643),Me=De(18929),It=De(48736),Ye=De(59301),Ht=function(vt){var xt=Ye.useRef({valueLabels:new Map});return Ye.useMemo(function(){var Tt=xt.current.valueLabels,Ut=new Map,hn=vt.map(function(kn){var xn=kn.value,on=kn.label,jt=on!=null?on:Tt.get(xn);return Ut.set(xn,jt),(0,it.Z)((0,it.Z)({},kn),{},{label:jt})});return xt.current.valueLabels=Ut,[hn]},[vt])},Ne=function(xt,Tt,Ut,hn){return Ye.useMemo(function(){var kn=function(ri){return ri.map(function(vi){var mn=vi.value;return mn})},xn=kn(xt),on=kn(Tt),jt=xn.filter(function(Vn){return!hn[Vn]}),Xt=xn,gn=on;if(Ut){var En=(0,ft.S)(xn,!0,hn);Xt=En.checkedKeys,gn=En.halfCheckedKeys}return[Array.from(new Set([].concat((0,tt.Z)(jt),(0,tt.Z)(Xt)))),gn]},[xt,Tt,Ut,hn])},ne=Ne,te=De(34061),de=function(vt,xt){return Ye.useMemo(function(){var Tt=(0,te.I8)(vt,{fieldNames:xt,initWrapper:function(hn){return(0,it.Z)((0,it.Z)({},hn),{},{valueEntities:new Map})},processEntity:function(hn,kn){var xn=hn.node[xt.value];if(0)var on;kn.valueEntities.set(xn,hn)}});return Tt},[vt,xt])},le=De(4635),ge=De(11592),me=function(){return null},Se=me,Le=["children","value"];function Ie(vt){return(0,ge.Z)(vt).map(function(xt){if(!Ye.isValidElement(xt)||!xt.type)return null;var Tt=xt,Ut=Tt.key,hn=Tt.props,kn=hn.children,xn=hn.value,on=(0,Et.Z)(hn,Le),jt=(0,it.Z)({key:Ut,value:xn},on),Xt=Ie(kn);return Xt.length&&(jt.children=Xt),jt}).filter(function(xt){return xt})}function Ze(vt){if(!vt)return vt;var xt=(0,it.Z)({},vt);return"props"in xt||Object.defineProperty(xt,"props",{get:function(){return(0,It.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),xt}}),xt}function st(vt,xt,Tt,Ut,hn,kn){var xn=null,on=null;function jt(){function Xt(gn){var En=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Vn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return gn.map(function(ri,vi){var mn="".concat(En,"-").concat(vi),Ai=ri[kn.value],Yi=Tt.includes(Ai),gr=Xt(ri[kn.children]||[],mn,Yi),rr=Ye.createElement(Se,ri,gr.map(function(pr){return pr.node}));if(xt===Ai&&(xn=rr),Yi){var nr={pos:mn,node:rr,children:gr};return Vn||on.push(nr),nr}return null}).filter(function(ri){return ri})}on||(on=[],Xt(Ut),on.sort(function(gn,En){var Vn=gn.node.props.value,ri=En.node.props.value,vi=Tt.indexOf(Vn),mn=Tt.indexOf(ri);return vi-mn}))}Object.defineProperty(vt,"triggerNode",{get:function(){return(0,It.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),jt(),xn}}),Object.defineProperty(vt,"allCheckedNodes",{get:function(){return(0,It.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),jt(),hn?on:on.map(function(gn){var En=gn.node;return En})}})}var Ve=function(xt,Tt,Ut){var hn=Ut.fieldNames,kn=Ut.treeNodeFilterProp,xn=Ut.filterTreeNode,on=hn.children;return Ye.useMemo(function(){if(!Tt||xn===!1)return xt;var jt=typeof xn=="function"?xn:function(gn,En){return String(En[kn]).toUpperCase().includes(Tt.toUpperCase())},Xt=function gn(En){var Vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return En.reduce(function(ri,vi){var mn=vi[on],Ai=Vn||jt(Tt,Ze(vi)),Yi=gn(mn||[],Ai);return(Ai||Yi.length)&&ri.push((0,it.Z)((0,it.Z)({},vi),{},(0,le.Z)({isLeaf:void 0},on,Yi))),ri},[])};return Xt(xt)},[xt,Tt,on,kn,xn])},Xe=Ve;function wt(vt){var xt=Ye.useRef();xt.current=vt;var Tt=Ye.useCallback(function(){return xt.current.apply(xt,arguments)},[]);return Tt}function gt(vt,xt){var Tt=xt.id,Ut=xt.pId,hn=xt.rootPId,kn=new Map,xn=[];return vt.forEach(function(on){var jt=on[Tt],Xt=(0,it.Z)((0,it.Z)({},on),{},{key:on.key||jt});kn.set(jt,Xt)}),kn.forEach(function(on){var jt=on[Ut],Xt=kn.get(jt);Xt?(Xt.children=Xt.children||[],Xt.children.push(on)):(jt===hn||hn===null)&&xn.push(on)}),xn}function Nt(vt,xt,Tt){return Ye.useMemo(function(){if(vt){if(Tt){var Ut=(0,it.Z)({id:"id",pId:"pId",rootPId:null},(0,ze.Z)(Tt)==="object"?Tt:{});return gt(vt,Ut)}return vt}return Ie(xt)},[xt,Tt,vt])}var Ct=Ye.createContext(null),ln=Ct,bn=De(37530),fn=De(29530),Yt=De(10228),Ln=De(80547),lt=Ye.createContext(null),qe=lt,yn=function(xt){return Array.isArray(xt)?xt:xt!==void 0?[xt]:[]},oi=function(xt){var Tt=xt||{},Ut=Tt.label,hn=Tt.value,kn=Tt.children;return{_title:Ut?[Ut]:["title","label"],value:hn||"value",key:hn||"value",children:kn||"children"}},Yn=function(xt){return!xt||xt.disabled||xt.disableCheckbox||xt.checkable===!1},rn=function(xt,Tt){var Ut=[],hn=function kn(xn){xn.forEach(function(on){var jt=on[Tt.children];jt&&(Ut.push(on[Tt.value]),kn(jt))})};return hn(xt),Ut},Gn=function(xt){return xt==null},Mn=De(70425),xi={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Wt=function(xt,Tt){var Ut=(0,ct.lk)(),hn=Ut.prefixCls,kn=Ut.multiple,xn=Ut.searchValue,on=Ut.toggleOpen,jt=Ut.open,Xt=Ut.notFoundContent,gn=Ye.useContext(qe),En=gn.virtual,Vn=gn.listHeight,ri=gn.listItemHeight,vi=gn.listItemScrollOffset,mn=gn.treeData,Ai=gn.fieldNames,Yi=gn.onSelect,gr=gn.dropdownMatchSelectWidth,rr=gn.treeExpandAction,nr=gn.treeTitleRender,pr=gn.onPopupScroll,sr=gn.leftMaxCount,cr=gn.leafCountOnly,Ji=gn.valueEntities,yr=Ye.useContext(ln),Ce=yr.checkable,Sn=yr.checkedKeys,Wn=yr.halfCheckedKeys,gi=yr.treeExpandedKeys,hi=yr.treeDefaultExpandAll,Zn=yr.treeDefaultExpandedKeys,nn=yr.onTreeExpand,Hn=yr.treeIcon,di=yr.showTreeIcon,At=yr.switcherIcon,Dt=yr.treeLine,bt=yr.treeNodeFilterProp,ti=yr.loadData,yi=yr.treeLoadedKeys,ci=yr.treeMotion,Pn=yr.onTreeLoad,fi=yr.keyEntities,Cn=Ye.useRef(),Qi=(0,Ln.Z)(function(){return mn},[jt,mn],function(dn,lr){return lr[0]&&dn[1]!==lr[1]}),dr=Ye.useMemo(function(){return Ce?{checked:Sn,halfChecked:Wn}:null},[Ce,Sn,Wn]);Ye.useEffect(function(){if(jt&&!kn&&Sn.length){var dn;(dn=Cn.current)===null||dn===void 0||dn.scrollTo({key:Sn[0]})}},[jt]);var Ge=function(lr){lr.preventDefault()},Pt=function(lr,vn){var Fi=vn.node;Ce&&Yn(Fi)||(Yi(Fi.key,{selected:!Sn.includes(Fi.key)}),kn||on(!1))},Kn=Ye.useState(Zn),Bn=(0,Ft.Z)(Kn,2),zt=Bn[0],Fn=Bn[1],zn=Ye.useState(null),Xn=(0,Ft.Z)(zn,2),Mi=Xn[0],ai=Xn[1],Li=Ye.useMemo(function(){return gi?(0,tt.Z)(gi):xn?Mi:zt},[zt,Mi,gi,xn]),wi=function(lr){Fn(lr),ai(lr),nn&&nn(lr)},ir=String(xn).toLowerCase(),Wi=function(lr){return ir?String(lr[bt]).toLowerCase().includes(ir):!1};Ye.useEffect(function(){xn&&ai(rn(mn,Ai))},[xn]);var Ii=Ye.useState(function(){return new Map}),un=(0,Ft.Z)(Ii,2),vr=un[0],Mr=un[1];Ye.useEffect(function(){sr&&Mr(new Map)},[sr]);function Yr(dn){var lr=dn[Ai.value];if(!vr.has(lr)){var vn=Ji.get(lr),Fi=(vn.children||[]).length===0;if(Fi)vr.set(lr,!1);else{var Cr=vn.children.filter(function(to){return!to.node.disabled&&!to.node.disableCheckbox&&!Sn.includes(to.node[Ai.value])}),Nr=Cr.length;vr.set(lr,Nr>sr)}}return vr.get(lr)}var wn=(0,Mn.zX)(function(dn){var lr=dn[Ai.value];return Sn.includes(lr)||sr===null?!1:sr<=0?!0:cr&&sr?Yr(dn):!1}),Pi=function dn(lr){var vn=(0,bn.Z)(lr),Fi;try{for(vn.s();!(Fi=vn.n()).done;){var Cr=Fi.value;if(!(Cr.disabled||Cr.selectable===!1)){if(xn){if(Wi(Cr))return Cr}else return Cr;if(Cr[Ai.children]){var Nr=dn(Cr[Ai.children]);if(Nr)return Nr}}}}catch(to){vn.e(to)}finally{vn.f()}return null},Gi=Ye.useState(null),Hi=(0,Ft.Z)(Gi,2),er=Hi[0],Pr=Hi[1],br=fi[er];Ye.useEffect(function(){if(jt){var dn=null,lr=function(){var Fi=Pi(Qi);return Fi?Fi[Ai.value]:null};!kn&&Sn.length&&!xn?dn=Sn[0]:dn=lr(),Pr(dn)}},[jt,xn]),Ye.useImperativeHandle(Tt,function(){var dn;return{scrollTo:(dn=Cn.current)===null||dn===void 0?void 0:dn.scrollTo,onKeyDown:function(vn){var Fi,Cr=vn.which;switch(Cr){case Yt.Z.UP:case Yt.Z.DOWN:case Yt.Z.LEFT:case Yt.Z.RIGHT:(Fi=Cn.current)===null||Fi===void 0||Fi.onKeyDown(vn);break;case Yt.Z.ENTER:{if(br){var Nr=wn(br.node),to=(br==null?void 0:br.node)||{},Ur=to.selectable,Br=to.value,ao=to.disabled;Ur!==!1&&!ao&&!Nr&&Pt(null,{node:{key:er},selected:!Sn.includes(Br)})}break}case Yt.Z.ESC:on(!1)}},onKeyUp:function(){}}});var Zi=(0,Ln.Z)(function(){return!xn},[xn,gi||zt],function(dn,lr){var vn=(0,Ft.Z)(dn,1),Fi=vn[0],Cr=(0,Ft.Z)(lr,2),Nr=Cr[0],to=Cr[1];return Fi!==Nr&&!!(Nr||to)}),tr=Zi?ti:null;if(Qi.length===0)return Ye.createElement("div",{role:"listbox",className:"".concat(hn,"-empty"),onMouseDown:Ge},Xt);var Ki={fieldNames:Ai};return yi&&(Ki.loadedKeys=yi),Li&&(Ki.expandedKeys=Li),Ye.createElement("div",{onMouseDown:Ge},br&&jt&&Ye.createElement("span",{style:xi,"aria-live":"assertive"},br.node.value),Ye.createElement(fn.y6.Provider,{value:{nodeDisabled:wn}},Ye.createElement(fn.ZP,(0,ye.Z)({ref:Cn,focusable:!1,prefixCls:"".concat(hn,"-tree"),treeData:Qi,height:Vn,itemHeight:ri,itemScrollOffset:vi,virtual:En!==!1&&gr!==!1,multiple:kn,icon:Hn,showIcon:di,switcherIcon:At,showLine:Dt,loadData:tr,motion:ci,activeKey:er,checkable:Ce,checkStrictly:!0,checkedKeys:dr,selectedKeys:Ce?[]:Sn,defaultExpandAll:hi,titleRender:nr},Ki,{onActiveChange:Pr,onSelect:Pt,onCheck:Pt,onExpand:wi,onLoad:Pn,filterTreeNode:Wi,expandAction:rr,onScroll:pr}))))},Nn=Ye.forwardRef(Wt),St=Nn,bi="SHOW_ALL",qn="SHOW_PARENT",je="SHOW_CHILD";function be(vt,xt,Tt,Ut){var hn=new Set(vt);return xt===je?vt.filter(function(kn){var xn=Tt[kn];return!xn||!xn.children||!xn.children.some(function(on){var jt=on.node;return hn.has(jt[Ut.value])})||!xn.children.every(function(on){var jt=on.node;return Yn(jt)||hn.has(jt[Ut.value])})}):xt===qn?vt.filter(function(kn){var xn=Tt[kn],on=xn?xn.parent:null;return!on||Yn(on.node)||!hn.has(on.key)}):vt}function we(vt){var xt=vt.searchPlaceholder,Tt=vt.treeCheckStrictly,Ut=vt.treeCheckable,hn=vt.labelInValue,kn=vt.value,xn=vt.multiple,on=vt.showCheckedStrategy,jt=vt.maxCount;warning(!xt,"`searchPlaceholder` has been removed."),Tt&&hn===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(hn||Tt)&&warning(toArray(kn).every(function(Xt){return Xt&&_typeof(Xt)==="object"&&"value"in Xt}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Tt||xn||Ut?warning(!kn||Array.isArray(kn),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(kn),"`value` should not be array when `TreeSelect` is single mode."),jt&&(on==="SHOW_ALL"&&!Tt||on==="SHOW_PARENT")&&warning(!1,"`maxCount` not work with `showCheckedStrategy=SHOW_ALL` (when `treeCheckStrictly=false`) or `showCheckedStrategy=SHOW_PARENT`.")}var Be=null,Ke=["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 ke(vt){return!vt||(0,ze.Z)(vt)!=="object"}var et=Ye.forwardRef(function(vt,xt){var Tt=vt.id,Ut=vt.prefixCls,hn=Ut===void 0?"rc-tree-select":Ut,kn=vt.value,xn=vt.defaultValue,on=vt.onChange,jt=vt.onSelect,Xt=vt.onDeselect,gn=vt.searchValue,En=vt.inputValue,Vn=vt.onSearch,ri=vt.autoClearSearchValue,vi=ri===void 0?!0:ri,mn=vt.filterTreeNode,Ai=vt.treeNodeFilterProp,Yi=Ai===void 0?"value":Ai,gr=vt.showCheckedStrategy,rr=vt.treeNodeLabelProp,nr=vt.multiple,pr=vt.treeCheckable,sr=vt.treeCheckStrictly,cr=vt.labelInValue,Ji=vt.maxCount,yr=vt.fieldNames,Ce=vt.treeDataSimpleMode,Sn=vt.treeData,Wn=vt.children,gi=vt.loadData,hi=vt.treeLoadedKeys,Zn=vt.onTreeLoad,nn=vt.treeDefaultExpandAll,Hn=vt.treeExpandedKeys,di=vt.treeDefaultExpandedKeys,At=vt.onTreeExpand,Dt=vt.treeExpandAction,bt=vt.virtual,ti=vt.listHeight,yi=ti===void 0?200:ti,ci=vt.listItemHeight,Pn=ci===void 0?20:ci,fi=vt.listItemScrollOffset,Cn=fi===void 0?0:fi,Qi=vt.onDropdownVisibleChange,dr=vt.dropdownMatchSelectWidth,Ge=dr===void 0?!0:dr,Pt=vt.treeLine,Kn=vt.treeIcon,Bn=vt.showTreeIcon,zt=vt.switcherIcon,Fn=vt.treeMotion,zn=vt.treeTitleRender,Xn=vt.onPopupScroll,Mi=(0,Et.Z)(vt,Ke),ai=(0,Kt.ZP)(Tt),Li=pr&&!sr,wi=pr||sr,ir=sr||cr,Wi=wi||nr,Ii=(0,Me.Z)(xn,{value:kn}),un=(0,Ft.Z)(Ii,2),vr=un[0],Mr=un[1],Yr=Ye.useMemo(function(){return pr?gr||je:bi},[gr,pr]),wn=Ye.useMemo(function(){return oi(yr)},[JSON.stringify(yr)]),Pi=(0,Me.Z)("",{value:gn!==void 0?gn:En,postState:function(Re){return Re||""}}),Gi=(0,Ft.Z)(Pi,2),Hi=Gi[0],er=Gi[1],Pr=function(Re){er(Re),Vn==null||Vn(Re)},br=Nt(Sn,Wn,Ce),Zi=de(br,wn),tr=Zi.keyEntities,Ki=Zi.valueEntities,dn=Ye.useCallback(function(Ue){var Re=[],ot=[];return Ue.forEach(function(ut){Ki.has(ut)?ot.push(ut):Re.push(ut)}),{missingRawValues:Re,existRawValues:ot}},[Ki]),lr=Xe(br,Hi,{fieldNames:wn,treeNodeFilterProp:Yi,filterTreeNode:mn}),vn=Ye.useCallback(function(Ue){if(Ue){if(rr)return Ue[rr];for(var Re=wn._title,ot=0;otnt)){var Zt=Cr(Ue);if(Mr(Zt),vi&&er(""),on){var Vt=Ue;Li&&(Vt=ut.map(function(On){var ii=Ki.get(On);return ii?ii.node[wn.value]:On}));var tn=Re||{triggerValue:void 0,selected:void 0},An=tn.triggerValue,In=tn.selected,pn=Vt;if(sr){var Qn=ao.filter(function(On){return!Vt.includes(On.value)});pn=[].concat((0,tt.Z)(pn),(0,tt.Z)(Qn))}var mi=Cr(pn),ht={preValue:Br,triggerValue:An},_n=!0;(sr||ot==="selection"&&!In)&&(_n=!1),st(ht,An,Ue,br,_n,wn),wi?ht.checked=In:ht.selected=In;var ni=ir?mi:mi.map(function(On){return On.value});on(Wi?ni:ni[0],ir?null:mi.map(function(On){return On.label}),ht)}}}),Gt=Ye.useCallback(function(Ue,Re){var ot,ut=Re.selected,Zt=Re.source,Vt=tr[Ue],tn=Vt==null?void 0:Vt.node,An=(ot=tn==null?void 0:tn[wn.value])!==null&&ot!==void 0?ot:Ue;if(!Wi)kt([An],{selected:!0,triggerValue:An},"option");else{var In=ut?[].concat((0,tt.Z)(Qt),[An]):Te.filter(function(ii){return ii!==An});if(Li){var pn=dn(In),Qn=pn.missingRawValues,mi=pn.existRawValues,ht=mi.map(function(ii){return Ki.get(ii).key}),_n;if(ut){var ni=(0,ft.S)(ht,!0,tr);_n=ni.checkedKeys}else{var On=(0,ft.S)(ht,{checked:!1,halfCheckedKeys:He},tr);_n=On.checkedKeys}In=[].concat((0,tt.Z)(Qn),(0,tt.Z)(_n.map(function(ii){return tr[ii].node[wn.value]})))}kt(In,{selected:ut,triggerValue:An},Zt||"option")}ut||!Wi?jt==null||jt(An,Ze(tn)):Xt==null||Xt(An,Ze(tn))},[dn,Ki,tr,wn,Wi,Qt,kt,Li,jt,Xt,Te,He,Ji]),Rt=Ye.useCallback(function(Ue){if(Qi){var Re={};Object.defineProperty(Re,"documentClickClose",{get:function(){return(0,It.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Qi(Ue,Re)}},[Qi]),an=wt(function(Ue,Re){var ot=Ue.map(function(ut){return ut.value});if(Re.type==="clear"){kt(ot,{},"selection");return}Re.values.length&&Gt(Re.values[0].value,{selected:!1,source:"selection"})}),si=Ye.useMemo(function(){return{virtual:bt,dropdownMatchSelectWidth:Ge,listHeight:yi,listItemHeight:Pn,listItemScrollOffset:Cn,treeData:lr,fieldNames:wn,onSelect:Gt,treeExpandAction:Dt,treeTitleRender:zn,onPopupScroll:Xn,leftMaxCount:Ji===void 0?null:Ji-en.length,leafCountOnly:Yr==="SHOW_CHILD"&&!sr&&!!pr,valueEntities:Ki}},[bt,Ge,yi,Pn,Cn,lr,wn,Gt,Dt,zn,Xn,Ji,en.length,Yr,sr,pr,Ki]),Ee=Ye.useMemo(function(){return{checkable:wi,loadData:gi,treeLoadedKeys:hi,onTreeLoad:Zn,checkedKeys:Te,halfCheckedKeys:He,treeDefaultExpandAll:nn,treeExpandedKeys:Hn,treeDefaultExpandedKeys:di,onTreeExpand:At,treeIcon:Kn,treeMotion:Fn,showTreeIcon:Bn,switcherIcon:zt,treeLine:Pt,treeNodeFilterProp:Yi,keyEntities:tr}},[wi,gi,hi,Zn,Te,He,nn,Hn,di,At,Kn,Fn,Bn,zt,Pt,Yi,tr]);return Ye.createElement(qe.Provider,{value:si},Ye.createElement(ln.Provider,{value:Ee},Ye.createElement(ct.Ac,(0,ye.Z)({ref:xt},Mi,{id:ai,prefixCls:hn,mode:Wi?"multiple":void 0,displayValues:en,onDisplayValuesChange:an,searchValue:Hi,onSearch:Pr,OptionList:St,emptyOptions:!br.length,onDropdownVisibleChange:Rt,dropdownMatchSelectWidth:Ge}))))}),sn=et;sn.TreeNode=Se,sn.SHOW_ALL=bi,sn.SHOW_PARENT=qn,sn.SHOW_CHILD=je;var Bt=sn,_t=Bt},639:function(Un,pi,De){"use strict";De.d(pi,{Z:function(){return me}});var ye=De(14809),tt=De(4635),it=De(20439),Ft=De(50298),Et=De(62646),ze=De(59301),ct=De(92310),Kt=De.n(ct),ft=De(26112),Me=De(30699),It=function(Le){for(var Ie=Le.prefixCls,Ze=Le.level,st=Le.isStart,Ve=Le.isEnd,Xe="".concat(Ie,"-indent-unit"),wt=[],gt=0;gt0&&arguments[0]!==void 0?arguments[0]:[],Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ke=Be.length,et=Ke.length;if(Math.abs(ke-et)!==1)return{add:!1,key:null};function sn(Bt,_t){var vt=new Map;Bt.forEach(function(Tt){vt.set(Tt,!0)});var xt=_t.filter(function(Tt){return!vt.has(Tt)});return xt.length===1?xt[0]:null}return ke ").concat(Ke);return Ke}var xi=te.forwardRef(function(Be,Ke){var ke=Be.prefixCls,et=Be.data,sn=Be.selectable,Bt=Be.checkable,_t=Be.expandedKeys,vt=Be.selectedKeys,xt=Be.checkedKeys,Tt=Be.loadedKeys,Ut=Be.loadingKeys,hn=Be.halfCheckedKeys,kn=Be.keyEntities,xn=Be.disabled,on=Be.dragging,jt=Be.dragOverNodeKey,Xt=Be.dropPosition,gn=Be.motion,En=Be.height,Vn=Be.itemHeight,ri=Be.virtual,vi=Be.scrollWidth,mn=Be.focusable,Ai=Be.activeItem,Yi=Be.focused,gr=Be.tabIndex,rr=Be.onKeyDown,nr=Be.onFocus,pr=Be.onBlur,sr=Be.onActiveChange,cr=Be.onListChangeStart,Ji=Be.onListChangeEnd,yr=(0,Le.Z)(Be,Yt),Ce=te.useRef(null),Sn=te.useRef(null);te.useImperativeHandle(Ke,function(){return{scrollTo:function(Xn){Ce.current.scrollTo(Xn)},getIndentWidth:function(){return Sn.current.offsetWidth}}});var Wn=te.useState(_t),gi=(0,Se.Z)(Wn,2),hi=gi[0],Zn=gi[1],nn=te.useState(et),Hn=(0,Se.Z)(nn,2),di=Hn[0],At=Hn[1],Dt=te.useState(et),bt=(0,Se.Z)(Dt,2),ti=bt[0],yi=bt[1],ci=te.useState([]),Pn=(0,Se.Z)(ci,2),fi=Pn[0],Cn=Pn[1],Qi=te.useState(null),dr=(0,Se.Z)(Qi,2),Ge=dr[0],Pt=dr[1],Kn=te.useRef(et);Kn.current=et;function Bn(){var zn=Kn.current;At(zn),yi(zn),Cn([]),Pt(null),Ji()}(0,Ie.Z)(function(){Zn(_t);var zn=bn(hi,_t);if(zn.key!==null)if(zn.add){var Xn=di.findIndex(function(Wi){var Ii=Wi.key;return Ii===zn.key}),Mi=rn(fn(di,et,zn.key),ri,En,Vn),ai=di.slice();ai.splice(Xn+1,0,Yn),yi(ai),Cn(Mi),Pt("show")}else{var Li=et.findIndex(function(Wi){var Ii=Wi.key;return Ii===zn.key}),wi=rn(fn(et,di,zn.key),ri,En,Vn),ir=et.slice();ir.splice(Li+1,0,Yn),yi(ir),Cn(wi),Pt("hide")}else di!==et&&(At(et),yi(et))},[_t,et]),te.useEffect(function(){on||Bn()},[on]);var zt=gn?ti:et,Fn={expandedKeys:_t,selectedKeys:vt,loadedKeys:Tt,loadingKeys:Ut,checkedKeys:xt,halfCheckedKeys:hn,dragOverNodeKey:jt,dropPosition:Xt,keyEntities:kn};return te.createElement(te.Fragment,null,Yi&&Ai&&te.createElement("span",{style:Ln,"aria-live":"assertive"},Mn(Ai)),te.createElement("div",null,te.createElement("input",{style:Ln,disabled:mn===!1||xn,tabIndex:mn!==!1?gr:null,onKeyDown:rr,onFocus:nr,onBlur:pr,value:"",onChange:lt,"aria-label":"for screen reader"})),te.createElement("div",{className:"".concat(ke,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},te.createElement("div",{className:"".concat(ke,"-indent")},te.createElement("div",{ref:Sn,className:"".concat(ke,"-indent-unit")}))),te.createElement(Ze.Z,(0,ye.Z)({},yr,{data:zt,itemKey:Gn,height:En,fullHeight:!1,virtual:ri,itemHeight:Vn,scrollWidth:vi,prefixCls:"".concat(ke,"-list"),ref:Ce,role:"tree",onVisibleChange:function(Xn){Xn.every(function(Mi){return Gn(Mi)!==qe})&&Bn()}}),function(zn){var Xn=zn.pos,Mi=Object.assign({},(me(zn.data),zn.data)),ai=zn.title,Li=zn.key,wi=zn.isStart,ir=zn.isEnd,Wi=(0,gt.km)(Li,Xn);delete Mi.key,delete Mi.children;var Ii=(0,gt.H8)(Wi,Fn);return te.createElement(ln,(0,ye.Z)({},Mi,Ii,{title:ai,active:!!Ai&&Li===Ai.key,pos:Xn,data:zn.data,isStart:wi,isEnd:ir,motion:gn,motionNodes:Li===qe?fi:null,motionType:Ge,onMotionStart:cr,onMotionEnd:Bn,treeNodeRequiredProps:Fn,onMouseMove:function(){sr(null)}}))}))}),Wt=xi,Nn=De(82661),St=De(34643),bi=De(65065),qn=10,je=function(Be){(0,Kt.Z)(ke,Be);var Ke=(0,ft.Z)(ke);function ke(){var et;(0,Et.Z)(this,ke);for(var sn=arguments.length,Bt=new Array(sn),_t=0;_t2&&arguments[2]!==void 0?arguments[2]:!1,hn=et.state,kn=hn.dragChildrenKeys,xn=hn.dropPosition,on=hn.dropTargetKey,jt=hn.dropTargetPos,Xt=hn.dropAllowed;if(Xt){var gn=et.props.onDrop;if(et.setState({dragOverNodeKey:null}),et.cleanDragState(),on!==null){var En=(0,it.Z)((0,it.Z)({},(0,gt.H8)(on,et.getTreeNodeRequiredProps())),{},{active:((Tt=et.getActiveItem())===null||Tt===void 0?void 0:Tt.key)===on,data:(0,bi.Z)(et.state.keyEntities,on).node}),Vn=kn.includes(on);(0,ne.ZP)(!Vn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var ri=(0,Nn.yx)(jt),vi={event:vt,node:(0,gt.F)(En),dragNode:et.dragNodeProps?(0,gt.F)(et.dragNodeProps):null,dragNodesKeys:[et.dragNodeProps.eventKey].concat(kn),dropToGap:xn!==0,dropPosition:xn+Number(ri[ri.length-1])};Ut||gn==null||gn(vi),et.dragNodeProps=null}}}),(0,Me.Z)((0,ct.Z)(et),"cleanDragState",function(){var vt=et.state.draggingNodeKey;vt!==null&&et.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),et.dragStartMousePosition=null,et.currentMouseOverDroppableNodeKey=null}),(0,Me.Z)((0,ct.Z)(et),"triggerExpandActionExpand",function(vt,xt){var Tt=et.state,Ut=Tt.expandedKeys,hn=Tt.flattenNodes,kn=xt.expanded,xn=xt.key,on=xt.isLeaf;if(!(on||vt.shiftKey||vt.metaKey||vt.ctrlKey)){var jt=hn.filter(function(gn){return gn.key===xn})[0],Xt=(0,gt.F)((0,it.Z)((0,it.Z)({},(0,gt.H8)(xn,et.getTreeNodeRequiredProps())),{},{data:jt.data}));et.setExpandedKeys(kn?(0,Nn._5)(Ut,xn):(0,Nn.L0)(Ut,xn)),et.onNodeExpand(vt,Xt)}}),(0,Me.Z)((0,ct.Z)(et),"onNodeClick",function(vt,xt){var Tt=et.props,Ut=Tt.onClick,hn=Tt.expandAction;hn==="click"&&et.triggerExpandActionExpand(vt,xt),Ut==null||Ut(vt,xt)}),(0,Me.Z)((0,ct.Z)(et),"onNodeDoubleClick",function(vt,xt){var Tt=et.props,Ut=Tt.onDoubleClick,hn=Tt.expandAction;hn==="doubleClick"&&et.triggerExpandActionExpand(vt,xt),Ut==null||Ut(vt,xt)}),(0,Me.Z)((0,ct.Z)(et),"onNodeSelect",function(vt,xt){var Tt=et.state.selectedKeys,Ut=et.state,hn=Ut.keyEntities,kn=Ut.fieldNames,xn=et.props,on=xn.onSelect,jt=xn.multiple,Xt=xt.selected,gn=xt[kn.key],En=!Xt;En?jt?Tt=(0,Nn.L0)(Tt,gn):Tt=[gn]:Tt=(0,Nn._5)(Tt,gn);var Vn=Tt.map(function(ri){var vi=(0,bi.Z)(hn,ri);return vi?vi.node:null}).filter(Boolean);et.setUncontrolledState({selectedKeys:Tt}),on==null||on(Tt,{event:"select",selected:En,node:xt,selectedNodes:Vn,nativeEvent:vt.nativeEvent})}),(0,Me.Z)((0,ct.Z)(et),"onNodeCheck",function(vt,xt,Tt){var Ut=et.state,hn=Ut.keyEntities,kn=Ut.checkedKeys,xn=Ut.halfCheckedKeys,on=et.props,jt=on.checkStrictly,Xt=on.onCheck,gn=xt.key,En,Vn={event:"check",node:xt,checked:Tt,nativeEvent:vt.nativeEvent};if(jt){var ri=Tt?(0,Nn.L0)(kn,gn):(0,Nn._5)(kn,gn),vi=(0,Nn._5)(xn,gn);En={checked:ri,halfChecked:vi},Vn.checkedNodes=ri.map(function(nr){return(0,bi.Z)(hn,nr)}).filter(Boolean).map(function(nr){return nr.node}),et.setUncontrolledState({checkedKeys:ri})}else{var mn=(0,St.S)([].concat((0,Ft.Z)(kn),[gn]),!0,hn),Ai=mn.checkedKeys,Yi=mn.halfCheckedKeys;if(!Tt){var gr=new Set(Ai);gr.delete(gn);var rr=(0,St.S)(Array.from(gr),{checked:!1,halfCheckedKeys:Yi},hn);Ai=rr.checkedKeys,Yi=rr.halfCheckedKeys}En=Ai,Vn.checkedNodes=[],Vn.checkedNodesPositions=[],Vn.halfCheckedKeys=Yi,Ai.forEach(function(nr){var pr=(0,bi.Z)(hn,nr);if(pr){var sr=pr.node,cr=pr.pos;Vn.checkedNodes.push(sr),Vn.checkedNodesPositions.push({node:sr,pos:cr})}}),et.setUncontrolledState({checkedKeys:Ai},!1,{halfCheckedKeys:Yi})}Xt==null||Xt(En,Vn)}),(0,Me.Z)((0,ct.Z)(et),"onNodeLoad",function(vt){var xt,Tt=vt.key,Ut=et.state.keyEntities,hn=(0,bi.Z)(Ut,Tt);if(!(hn!=null&&(xt=hn.children)!==null&&xt!==void 0&&xt.length)){var kn=new Promise(function(xn,on){et.setState(function(jt){var Xt=jt.loadedKeys,gn=Xt===void 0?[]:Xt,En=jt.loadingKeys,Vn=En===void 0?[]:En,ri=et.props,vi=ri.loadData,mn=ri.onLoad;if(!vi||gn.includes(Tt)||Vn.includes(Tt))return null;var Ai=vi(vt);return Ai.then(function(){var Yi=et.state.loadedKeys,gr=(0,Nn.L0)(Yi,Tt);mn==null||mn(gr,{event:"load",node:vt}),et.setUncontrolledState({loadedKeys:gr}),et.setState(function(rr){return{loadingKeys:(0,Nn._5)(rr.loadingKeys,Tt)}}),xn()}).catch(function(Yi){if(et.setState(function(rr){return{loadingKeys:(0,Nn._5)(rr.loadingKeys,Tt)}}),et.loadingRetryTimes[Tt]=(et.loadingRetryTimes[Tt]||0)+1,et.loadingRetryTimes[Tt]>=qn){var gr=et.state.loadedKeys;(0,ne.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),et.setUncontrolledState({loadedKeys:(0,Nn.L0)(gr,Tt)}),xn()}on(Yi)}),{loadingKeys:(0,Nn.L0)(Vn,Tt)}})});return kn.catch(function(){}),kn}}),(0,Me.Z)((0,ct.Z)(et),"onNodeMouseEnter",function(vt,xt){var Tt=et.props.onMouseEnter;Tt==null||Tt({event:vt,node:xt})}),(0,Me.Z)((0,ct.Z)(et),"onNodeMouseLeave",function(vt,xt){var Tt=et.props.onMouseLeave;Tt==null||Tt({event:vt,node:xt})}),(0,Me.Z)((0,ct.Z)(et),"onNodeContextMenu",function(vt,xt){var Tt=et.props.onRightClick;Tt&&(vt.preventDefault(),Tt({event:vt,node:xt}))}),(0,Me.Z)((0,ct.Z)(et),"onFocus",function(){var vt=et.props.onFocus;et.setState({focused:!0});for(var xt=arguments.length,Tt=new Array(xt),Ut=0;Ut1&&arguments[1]!==void 0?arguments[1]:!1,Tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!et.destroyed){var Ut=!1,hn=!0,kn={};Object.keys(vt).forEach(function(xn){if(et.props.hasOwnProperty(xn)){hn=!1;return}Ut=!0,kn[xn]=vt[xn]}),Ut&&(!xt||hn)&&et.setState((0,it.Z)((0,it.Z)({},kn),Tt))}}),(0,Me.Z)((0,ct.Z)(et),"scrollTo",function(vt){et.listRef.current.scrollTo(vt)}),et}return(0,ze.Z)(ke,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var sn=this.props,Bt=sn.activeKey,_t=sn.itemScrollOffset,vt=_t===void 0?0:_t;Bt!==void 0&&Bt!==this.state.activeKey&&(this.setState({activeKey:Bt}),Bt!==null&&this.scrollTo({key:Bt,offset:vt}))}},{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 sn=this.state,Bt=sn.focused,_t=sn.flattenNodes,vt=sn.keyEntities,xt=sn.draggingNodeKey,Tt=sn.activeKey,Ut=sn.dropLevelOffset,hn=sn.dropContainerKey,kn=sn.dropTargetKey,xn=sn.dropPosition,on=sn.dragOverNodeKey,jt=sn.indent,Xt=this.props,gn=Xt.prefixCls,En=Xt.className,Vn=Xt.style,ri=Xt.showLine,vi=Xt.focusable,mn=Xt.tabIndex,Ai=mn===void 0?0:mn,Yi=Xt.selectable,gr=Xt.showIcon,rr=Xt.icon,nr=Xt.switcherIcon,pr=Xt.draggable,sr=Xt.checkable,cr=Xt.checkStrictly,Ji=Xt.disabled,yr=Xt.motion,Ce=Xt.loadData,Sn=Xt.filterTreeNode,Wn=Xt.height,gi=Xt.itemHeight,hi=Xt.scrollWidth,Zn=Xt.virtual,nn=Xt.titleRender,Hn=Xt.dropIndicatorRender,di=Xt.onContextMenu,At=Xt.onScroll,Dt=Xt.direction,bt=Xt.rootClassName,ti=Xt.rootStyle,yi=(0,Ne.Z)(this.props,{aria:!0,data:!0}),ci;pr&&((0,tt.Z)(pr)==="object"?ci=pr:typeof pr=="function"?ci={nodeDraggable:pr}:ci={});var Pn={prefixCls:gn,selectable:Yi,showIcon:gr,icon:rr,switcherIcon:nr,draggable:ci,draggingNodeKey:xt,checkable:sr,checkStrictly:cr,disabled:Ji,keyEntities:vt,dropLevelOffset:Ut,dropContainerKey:hn,dropTargetKey:kn,dropPosition:xn,dragOverNodeKey:on,indent:jt,direction:Dt,dropIndicatorRender:Hn,loadData:Ce,filterTreeNode:Sn,titleRender:nn,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return te.createElement(de.k.Provider,{value:Pn},te.createElement("div",{className:Ye()(gn,En,bt,(0,Me.Z)((0,Me.Z)((0,Me.Z)({},"".concat(gn,"-show-line"),ri),"".concat(gn,"-focused"),Bt),"".concat(gn,"-active-focused"),Tt!==null)),style:ti},te.createElement(Wt,(0,ye.Z)({ref:this.listRef,prefixCls:gn,style:Vn,data:_t,disabled:Ji,selectable:Yi,checkable:!!sr,motion:yr,dragging:xt!==null,height:Wn,itemHeight:gi,virtual:Zn,focusable:vi,focused:Bt,tabIndex:Ai,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:di,onScroll:At,scrollWidth:hi},this.getTreeNodeRequiredProps(),yi))))}}],[{key:"getDerivedStateFromProps",value:function(sn,Bt){var _t=Bt.prevProps,vt={prevProps:sn};function xt(Ai){return!_t&&sn.hasOwnProperty(Ai)||_t&&_t[Ai]!==sn[Ai]}var Tt,Ut=Bt.fieldNames;if(xt("fieldNames")&&(Ut=(0,gt.w$)(sn.fieldNames),vt.fieldNames=Ut),xt("treeData")?Tt=sn.treeData:xt("children")&&((0,ne.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Tt=(0,gt.zn)(sn.children)),Tt){vt.treeData=Tt;var hn=(0,gt.I8)(Tt,{fieldNames:Ut});vt.keyEntities=(0,it.Z)((0,Me.Z)({},qe,oi),hn.keyEntities)}var kn=vt.keyEntities||Bt.keyEntities;if(xt("expandedKeys")||_t&&xt("autoExpandParent"))vt.expandedKeys=sn.autoExpandParent||!_t&&sn.defaultExpandParent?(0,Nn.r7)(sn.expandedKeys,kn):sn.expandedKeys;else if(!_t&&sn.defaultExpandAll){var xn=(0,it.Z)({},kn);delete xn[qe];var on=[];Object.keys(xn).forEach(function(Ai){var Yi=xn[Ai];Yi.children&&Yi.children.length&&on.push(Yi.key)}),vt.expandedKeys=on}else!_t&&sn.defaultExpandedKeys&&(vt.expandedKeys=sn.autoExpandParent||sn.defaultExpandParent?(0,Nn.r7)(sn.defaultExpandedKeys,kn):sn.defaultExpandedKeys);if(vt.expandedKeys||delete vt.expandedKeys,Tt||vt.expandedKeys){var jt=(0,gt.oH)(Tt||Bt.treeData,vt.expandedKeys||Bt.expandedKeys,Ut);vt.flattenNodes=jt}if(sn.selectable&&(xt("selectedKeys")?vt.selectedKeys=(0,Nn.BT)(sn.selectedKeys,sn):!_t&&sn.defaultSelectedKeys&&(vt.selectedKeys=(0,Nn.BT)(sn.defaultSelectedKeys,sn))),sn.checkable){var Xt;if(xt("checkedKeys")?Xt=(0,Nn.E6)(sn.checkedKeys)||{}:!_t&&sn.defaultCheckedKeys?Xt=(0,Nn.E6)(sn.defaultCheckedKeys)||{}:Tt&&(Xt=(0,Nn.E6)(sn.checkedKeys)||{checkedKeys:Bt.checkedKeys,halfCheckedKeys:Bt.halfCheckedKeys}),Xt){var gn=Xt,En=gn.checkedKeys,Vn=En===void 0?[]:En,ri=gn.halfCheckedKeys,vi=ri===void 0?[]:ri;if(!sn.checkStrictly){var mn=(0,St.S)(Vn,!0,kn);Vn=mn.checkedKeys,vi=mn.halfCheckedKeys}vt.checkedKeys=Vn,vt.halfCheckedKeys=vi}}return xt("loadedKeys")&&(vt.loadedKeys=sn.loadedKeys),vt}}]),ke}(te.Component);(0,Me.Z)(je,"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:ge,allowDrop:function(){return!0},expandAction:!1}),(0,Me.Z)(je,"TreeNode",Ve.Z);var be=je,we=be},82661:function(Un,pi,De){"use strict";De.d(pi,{BT:function(){return te},E6:function(){return ge},L0:function(){return Me},OM:function(){return ne},_5:function(){return ft},r7:function(){return me},wA:function(){return Ye},yx:function(){return It}});var ye=De(95190),tt=De(93664),it=De(48736),Ft=De(59301),Et=De(639),ze=De(65065),ct=De(34061),Kt=null;function ft(Se,Le){if(!Se)return[];var Ie=Se.slice(),Ze=Ie.indexOf(Le);return Ze>=0&&Ie.splice(Ze,1),Ie}function Me(Se,Le){var Ie=(Se||[]).slice();return Ie.indexOf(Le)===-1&&Ie.push(Le),Ie}function It(Se){return Se.split("-")}function Ye(Se,Le){var Ie=[],Ze=(0,ze.Z)(Le,Se);function st(){var Ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ve.forEach(function(Xe){var wt=Xe.key,gt=Xe.children;Ie.push(wt),st(gt)})}return st(Ze.children),Ie}function Ht(Se){if(Se.parent){var Le=It(Se.pos);return Number(Le[Le.length-1])===Se.parent.children.length-1}return!1}function Ne(Se){var Le=It(Se.pos);return Number(Le[Le.length-1])===0}function ne(Se,Le,Ie,Ze,st,Ve,Xe,wt,gt,Nt){var Ct,ln=Se.clientX,bn=Se.clientY,fn=Se.target.getBoundingClientRect(),Yt=fn.top,Ln=fn.height,lt=(Nt==="rtl"?-1:1)*(((st==null?void 0:st.x)||0)-ln),qe=(lt-12)/Ze,yn=gt.filter(function(we){var Be;return(Be=wt[we])===null||Be===void 0||(Be=Be.children)===null||Be===void 0?void 0:Be.length}),oi=(0,ze.Z)(wt,Ie.eventKey);if(bn-1.5?Ve({dragNode:qn,dropNode:je,dropPosition:1})?Nn=1:be=!1:Ve({dragNode:qn,dropNode:je,dropPosition:0})?Nn=0:Ve({dragNode:qn,dropNode:je,dropPosition:1})?Nn=1:be=!1:Ve({dragNode:qn,dropNode:je,dropPosition:1})?Nn=1:be=!1,{dropPosition:Nn,dropLevelOffset:St,dropTargetKey:oi.key,dropTargetPos:oi.pos,dragOverNodeKey:Wt,dropContainerKey:Nn===0?null:((Ct=oi.parent)===null||Ct===void 0?void 0:Ct.key)||null,dropAllowed:be}}function te(Se,Le){if(Se){var Ie=Le.multiple;return Ie?Se.slice():Se.length?[Se[0]]:Se}}var de=function(Le){return Le};function le(Se,Le){if(!Se)return[];var Ie=Le||{},Ze=Ie.processProps,st=Ze===void 0?de:Ze,Ve=Array.isArray(Se)?Se:[Se];return Ve.map(function(Xe){var wt=Xe.children,gt=_objectWithoutProperties(Xe,Kt),Nt=le(wt,Le);return React.createElement(TreeNode,_extends({key:gt.key},st(gt)),Nt)})}function ge(Se){if(!Se)return null;var Le;if(Array.isArray(Se))Le={checkedKeys:Se,halfCheckedKeys:void 0};else if((0,tt.Z)(Se)==="object")Le={checkedKeys:Se.checked||void 0,halfCheckedKeys:Se.halfChecked||void 0};else return(0,it.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Le}function me(Se,Le){var Ie=new Set;function Ze(st){if(!Ie.has(st)){var Ve=(0,ze.Z)(Le,st);if(Ve){Ie.add(st);var Xe=Ve.parent,wt=Ve.node;wt.disabled||Xe&&Ze(Xe.key)}}}return(Se||[]).forEach(function(st){Ze(st)}),(0,ye.Z)(Ie)}},34643:function(Un,pi,De){"use strict";De.d(pi,{S:function(){return ct}});var ye=De(48736),tt=De(65065);function it(Kt,ft){var Me=new Set;return Kt.forEach(function(It){ft.has(It)||Me.add(It)}),Me}function Ft(Kt){var ft=Kt||{},Me=ft.disabled,It=ft.disableCheckbox,Ye=ft.checkable;return!!(Me||It)||Ye===!1}function Et(Kt,ft,Me,It){for(var Ye=new Set(Kt),Ht=new Set,Ne=0;Ne<=Me;Ne+=1){var ne=ft.get(Ne)||new Set;ne.forEach(function(ge){var me=ge.key,Se=ge.node,Le=ge.children,Ie=Le===void 0?[]:Le;Ye.has(me)&&!It(Se)&&Ie.filter(function(Ze){return!It(Ze.node)}).forEach(function(Ze){Ye.add(Ze.key)})})}for(var te=new Set,de=Me;de>=0;de-=1){var le=ft.get(de)||new Set;le.forEach(function(ge){var me=ge.parent,Se=ge.node;if(!(It(Se)||!ge.parent||te.has(ge.parent.key))){if(It(ge.parent.node)){te.add(me.key);return}var Le=!0,Ie=!1;(me.children||[]).filter(function(Ze){return!It(Ze.node)}).forEach(function(Ze){var st=Ze.key,Ve=Ye.has(st);Le&&!Ve&&(Le=!1),!Ie&&(Ve||Ht.has(st))&&(Ie=!0)}),Le&&Ye.add(me.key),Ie&&Ht.add(me.key),te.add(me.key)}})}return{checkedKeys:Array.from(Ye),halfCheckedKeys:Array.from(it(Ht,Ye))}}function ze(Kt,ft,Me,It,Ye){for(var Ht=new Set(Kt),Ne=new Set(ft),ne=0;ne<=It;ne+=1){var te=Me.get(ne)||new Set;te.forEach(function(me){var Se=me.key,Le=me.node,Ie=me.children,Ze=Ie===void 0?[]:Ie;!Ht.has(Se)&&!Ne.has(Se)&&!Ye(Le)&&Ze.filter(function(st){return!Ye(st.node)}).forEach(function(st){Ht.delete(st.key)})})}Ne=new Set;for(var de=new Set,le=It;le>=0;le-=1){var ge=Me.get(le)||new Set;ge.forEach(function(me){var Se=me.parent,Le=me.node;if(!(Ye(Le)||!me.parent||de.has(me.parent.key))){if(Ye(me.parent.node)){de.add(Se.key);return}var Ie=!0,Ze=!1;(Se.children||[]).filter(function(st){return!Ye(st.node)}).forEach(function(st){var Ve=st.key,Xe=Ht.has(Ve);Ie&&!Xe&&(Ie=!1),!Ze&&(Xe||Ne.has(Ve))&&(Ze=!0)}),Ie||Ht.delete(Se.key),Ze&&Ne.add(Se.key),de.add(Se.key)}})}return{checkedKeys:Array.from(Ht),halfCheckedKeys:Array.from(it(Ne,Ht))}}function ct(Kt,ft,Me,It){var Ye=[],Ht;It?Ht=It:Ht=Ft;var Ne=new Set(Kt.filter(function(le){var ge=!!(0,tt.Z)(Me,le);return ge||Ye.push(le),ge})),ne=new Map,te=0;Object.keys(Me).forEach(function(le){var ge=Me[le],me=ge.level,Se=ne.get(me);Se||(Se=new Set,ne.set(me,Se)),Se.add(ge),te=Math.max(te,me)}),(0,ye.ZP)(!Ye.length,"Tree missing follow keys: ".concat(Ye.slice(0,100).map(function(le){return"'".concat(le,"'")}).join(", ")));var de;return ft===!0?de=Et(Ne,ne,te,Ht):de=ze(Ne,ft.halfCheckedKeys,ne,te,Ht),de}},65065:function(Un,pi,De){"use strict";De.d(pi,{Z:function(){return ye}});function ye(tt,it){return tt[it]}},34061:function(Un,pi,De){"use strict";De.d(pi,{F:function(){return me},H8:function(){return ge},I8:function(){return le},km:function(){return Ye},oH:function(){return te},w$:function(){return Ht},zn:function(){return ne}});var ye=De(93664),tt=De(95190),it=De(20439),Ft=De(62646),Et=De(11592),ze=De(2738),ct=De(48736),Kt=De(65065),ft=["children"];function Me(Se,Le){return"".concat(Se,"-").concat(Le)}function It(Se){return Se&&Se.type&&Se.type.isTreeNode}function Ye(Se,Le){return Se!=null?Se:Le}function Ht(Se){var Le=Se||{},Ie=Le.title,Ze=Le._title,st=Le.key,Ve=Le.children,Xe=Ie||"title";return{title:Xe,_title:Ze||[Xe],key:st||"key",children:Ve||"children"}}function Ne(Se,Le){var Ie=new Map;function Ze(st){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(st||[]).forEach(function(Xe){var wt=Xe[Le.key],gt=Xe[Le.children];warning(wt!=null,"Tree node must have a certain key: [".concat(Ve).concat(wt,"]"));var Nt=String(wt);warning(!Ie.has(Nt)||wt===null||wt===void 0,"Same 'key' exist in the Tree: ".concat(Nt)),Ie.set(Nt,!0),Ze(gt,"".concat(Ve).concat(Nt," > "))})}Ze(Se)}function ne(Se){function Le(Ie){var Ze=(0,Et.Z)(Ie);return Ze.map(function(st){if(!It(st))return(0,ct.ZP)(!st,"Tree/TreeNode can only accept TreeNode as children."),null;var Ve=st.key,Xe=st.props,wt=Xe.children,gt=(0,Ft.Z)(Xe,ft),Nt=(0,it.Z)({key:Ve},gt),Ct=Le(wt);return Ct.length&&(Nt.children=Ct),Nt}).filter(function(st){return st})}return Le(Se)}function te(Se,Le,Ie){var Ze=Ht(Ie),st=Ze._title,Ve=Ze.key,Xe=Ze.children,wt=new Set(Le===!0?[]:Le),gt=[];function Nt(Ct){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ct.map(function(bn,fn){for(var Yt=Me(ln?ln.pos:"0",fn),Ln=Ye(bn[Ve],Yt),lt,qe=0;qe1&&arguments[1]!==void 0?arguments[1]:{},Ie=Le.initWrapper,Ze=Le.processEntity,st=Le.onProcessFinished,Ve=Le.externalGetKey,Xe=Le.childrenPropName,wt=Le.fieldNames,gt=arguments.length>2?arguments[2]:void 0,Nt=Ve||gt,Ct={},ln={},bn={posEntities:Ct,keyEntities:ln};return Ie&&(bn=Ie(bn)||bn),de(Se,function(fn){var Yt=fn.node,Ln=fn.index,lt=fn.pos,qe=fn.key,yn=fn.parentPos,oi=fn.level,Yn=fn.nodes,rn={node:Yt,nodes:Yn,index:Ln,key:qe,pos:lt,level:oi},Gn=Ye(qe,lt);Ct[lt]=rn,ln[Gn]=rn,rn.parent=Ct[yn],rn.parent&&(rn.parent.children=rn.parent.children||[],rn.parent.children.push(rn)),Ze&&Ze(rn,bn)},{externalGetKey:Nt,childrenPropName:Xe,fieldNames:wt}),st&&st(bn),bn}function ge(Se,Le){var Ie=Le.expandedKeys,Ze=Le.selectedKeys,st=Le.loadedKeys,Ve=Le.loadingKeys,Xe=Le.checkedKeys,wt=Le.halfCheckedKeys,gt=Le.dragOverNodeKey,Nt=Le.dropPosition,Ct=Le.keyEntities,ln=(0,Kt.Z)(Ct,Se),bn={eventKey:Se,expanded:Ie.indexOf(Se)!==-1,selected:Ze.indexOf(Se)!==-1,loaded:st.indexOf(Se)!==-1,loading:Ve.indexOf(Se)!==-1,checked:Xe.indexOf(Se)!==-1,halfChecked:wt.indexOf(Se)!==-1,pos:String(ln?ln.pos:""),dragOver:gt===Se&&Nt===0,dragOverGapTop:gt===Se&&Nt===-1,dragOverGapBottom:gt===Se&&Nt===1};return bn}function me(Se){var Le=Se.data,Ie=Se.expanded,Ze=Se.selected,st=Se.checked,Ve=Se.loaded,Xe=Se.loading,wt=Se.halfChecked,gt=Se.dragOver,Nt=Se.dragOverGapTop,Ct=Se.dragOverGapBottom,ln=Se.pos,bn=Se.active,fn=Se.eventKey,Yt=(0,it.Z)((0,it.Z)({},Le),{},{expanded:Ie,selected:Ze,checked:st,loaded:Ve,loading:Xe,halfChecked:wt,dragOver:gt,dragOverGapTop:Nt,dragOverGapBottom:Ct,pos:ln,active:bn,key:fn});return"props"in Yt||Object.defineProperty(Yt,"props",{get:function(){return(0,ct.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Se}}),Yt}},8224:function(Un,pi,De){"use strict";De.d(pi,{Z:function(){return tt}});var ye=De(4676);function tt(it,Ft,Et,ze){var ct=ye.unstable_batchedUpdates?function(ft){ye.unstable_batchedUpdates(Et,ft)}:Et;return it!=null&&it.addEventListener&&it.addEventListener(Ft,ct,ze),{remove:function(){it!=null&&it.removeEventListener&&it.removeEventListener(Ft,ct,ze)}}}},24514:function(Un,pi,De){"use strict";De.d(pi,{G:function(){return Ft}});var ye=De(47273),tt=function(ze){if((0,ye.Z)()&&window.document.documentElement){var ct=Array.isArray(ze)?ze:[ze],Kt=window.document.documentElement;return ct.some(function(ft){return ft in Kt.style})}return!1},it=function(ze,ct){if(!tt(ze))return!1;var Kt=document.createElement("div"),ft=Kt.style[ze];return Kt.style[ze]=ct,Kt.style[ze]!==ft};function Ft(Et,ze){return!Array.isArray(Et)&&ze!==void 0?it(Et,ze):tt(Et)}},65283:function(Un,pi,De){"use strict";De.d(pi,{Z:function(){return qn}});var ye=De(14809),tt=De(93664),it=De(20439),Ft=De(4635),Et=De(50298),ze=De(62646),ct=De(92310),Kt=De.n(ct),ft=De(29301),Me=De(70425),It=De(34280),Ye=De(59301),Ht=De(4676),Ne=Ye.forwardRef(function(je,be){var we=je.height,Be=je.offsetY,Ke=je.offsetX,ke=je.children,et=je.prefixCls,sn=je.onInnerResize,Bt=je.innerProps,_t=je.rtl,vt=je.extra,xt={},Tt={display:"flex",flexDirection:"column"};return Be!==void 0&&(xt={height:we,position:"relative",overflow:"hidden"},Tt=(0,it.Z)((0,it.Z)({},Tt),{},(0,Ft.Z)((0,Ft.Z)((0,Ft.Z)((0,Ft.Z)((0,Ft.Z)({transform:"translateY(".concat(Be,"px)")},_t?"marginRight":"marginLeft",-Ke),"position","absolute"),"left",0),"right",0),"top",0))),Ye.createElement("div",{style:xt},Ye.createElement(ft.Z,{onResize:function(hn){var kn=hn.offsetHeight;kn&&sn&&sn()}},Ye.createElement("div",(0,ye.Z)({style:Tt,className:Kt()((0,Ft.Z)({},"".concat(et,"-holder-inner"),et)),ref:be},Bt),ke,vt)))});Ne.displayName="Filler";var ne=Ne;function te(je){var be=je.children,we=je.setRef,Be=Ye.useCallback(function(Ke){we(Ke)},[]);return Ye.cloneElement(be,{ref:Be})}function de(je,be,we,Be,Ke,ke,et,sn){var Bt=sn.getKey;return je.slice(be,we+1).map(function(_t,vt){var xt=be+vt,Tt=et(_t,xt,{style:{width:Be},offsetX:Ke}),Ut=Bt(_t);return Ye.createElement(te,{key:Ut,setRef:function(kn){return ke(_t,kn)}},Tt)})}function le(je,be,we,Be){var Ke=we-je,ke=be-we,et=Math.min(Ke,ke)*2;if(Be<=et){var sn=Math.floor(Be/2);return Be%2?we+sn+1:we-sn}return Ke>ke?we-(Be-ke):we+(Be-Ke)}function ge(je,be,we){var Be=je.length,Ke=be.length,ke,et;if(Be===0&&Ke===0)return null;Be2&&arguments[2]!==void 0?arguments[2]:!1,xt=Bt?_t<0&&sn.current.left||_t>0&&sn.current.right:_t<0&&sn.current.top||_t>0&&sn.current.bottom;return vt&&xt?(clearTimeout(ke.current),Ke.current=!1):(!xt||Ke.current)&&et(),!Ke.current&&xt}};function st(je,be,we,Be,Ke,ke,et){var sn=(0,Ye.useRef)(0),Bt=(0,Ye.useRef)(null),_t=(0,Ye.useRef)(null),vt=(0,Ye.useRef)(!1),xt=Ze(be,we,Be,Ke);function Tt(jt,Xt){if(Se.Z.cancel(Bt.current),!xt(!1,Xt)){var gn=jt;if(!gn._virtualHandled)gn._virtualHandled=!0;else return;sn.current+=Xt,_t.current=Xt,Ie||gn.preventDefault(),Bt.current=(0,Se.Z)(function(){var En=vt.current?10:1;et(sn.current*En,!1),sn.current=0})}}function Ut(jt,Xt){et(Xt,!0),Ie||jt.preventDefault()}var hn=(0,Ye.useRef)(null),kn=(0,Ye.useRef)(null);function xn(jt){if(je){Se.Z.cancel(kn.current),kn.current=(0,Se.Z)(function(){hn.current=null},2);var Xt=jt.deltaX,gn=jt.deltaY,En=jt.shiftKey,Vn=Xt,ri=gn;(hn.current==="sx"||!hn.current&&En&&gn&&!Xt)&&(Vn=gn,ri=0,hn.current="sx");var vi=Math.abs(Vn),mn=Math.abs(ri);hn.current===null&&(hn.current=ke&&vi>mn?"x":"y"),hn.current==="y"?Tt(jt,ri):Ut(jt,Vn)}}function on(jt){je&&(vt.current=jt.detail===_t.current)}return[xn,on]}function Ve(je,be,we,Be){var Ke=Ye.useMemo(function(){return[new Map,[]]},[je,we.id,Be]),ke=(0,Et.Z)(Ke,2),et=ke[0],sn=ke[1],Bt=function(vt){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vt,Tt=et.get(vt),Ut=et.get(xt);if(Tt===void 0||Ut===void 0)for(var hn=je.length,kn=sn.length;kn0&&arguments[0]!==void 0?arguments[0]:!1;vt();var hn=function(){var on=!1;sn.current.forEach(function(jt,Xt){if(jt&&jt.offsetParent){var gn=jt.offsetHeight,En=getComputedStyle(jt),Vn=En.marginTop,ri=En.marginBottom,vi=Ct(Vn),mn=Ct(ri),Ai=gn+vi+mn;Bt.current.get(Xt)!==Ai&&(Bt.current.set(Xt,Ai),on=!0)}}),on&&et(function(jt){return jt+1})};if(Ut)hn();else{_t.current+=1;var kn=_t.current;Promise.resolve().then(function(){kn===_t.current&&hn()})}}function Tt(Ut,hn){var kn=je(Ut),xn=sn.current.get(kn);hn?(sn.current.set(kn,hn),xt()):sn.current.delete(kn),!xn!=!hn&&(hn?be==null||be(Ut):we==null||we(Ut))}return(0,Ye.useEffect)(function(){return vt},[]),[Tt,xt,Bt.current,ke]}var bn=14/15;function fn(je,be,we){var Be=(0,Ye.useRef)(!1),Ke=(0,Ye.useRef)(0),ke=(0,Ye.useRef)(0),et=(0,Ye.useRef)(null),sn=(0,Ye.useRef)(null),Bt,_t=function(Ut){if(Be.current){var hn=Math.ceil(Ut.touches[0].pageX),kn=Math.ceil(Ut.touches[0].pageY),xn=Ke.current-hn,on=ke.current-kn,jt=Math.abs(xn)>Math.abs(on);jt?Ke.current=hn:ke.current=kn;var Xt=we(jt,jt?xn:on,!1,Ut);Xt&&Ut.preventDefault(),clearInterval(sn.current),Xt&&(sn.current=setInterval(function(){jt?xn*=bn:on*=bn;var gn=Math.floor(jt?xn:on);(!we(jt,gn,!0)||Math.abs(gn)<=.1)&&clearInterval(sn.current)},16))}},vt=function(){Be.current=!1,Bt()},xt=function(Ut){Bt(),Ut.touches.length===1&&!Be.current&&(Be.current=!0,Ke.current=Math.ceil(Ut.touches[0].pageX),ke.current=Math.ceil(Ut.touches[0].pageY),et.current=Ut.target,et.current.addEventListener("touchmove",_t,{passive:!1}),et.current.addEventListener("touchend",vt,{passive:!0}))};Bt=function(){et.current&&(et.current.removeEventListener("touchmove",_t),et.current.removeEventListener("touchend",vt))},(0,It.Z)(function(){return je&&be.current.addEventListener("touchstart",xt,{passive:!0}),function(){var Tt;(Tt=be.current)===null||Tt===void 0||Tt.removeEventListener("touchstart",xt),Bt(),clearInterval(sn.current)}},[je])}function Yt(je){return Math.floor(Math.pow(je,.5))}function Ln(je,be){var we="touches"in je?je.touches[0]:je;return we[be?"pageX":"pageY"]-window[be?"scrollX":"scrollY"]}function lt(je,be,we){Ye.useEffect(function(){var Be=be.current;if(je&&Be){var Ke=!1,ke,et,sn=function(){Se.Z.cancel(ke)},Bt=function Tt(){sn(),ke=(0,Se.Z)(function(){we(et),Tt()})},_t=function(Ut){if(!(Ut.target.draggable||Ut.button!==0)){var hn=Ut;hn._virtualHandled||(hn._virtualHandled=!0,Ke=!0)}},vt=function(){Ke=!1,sn()},xt=function(Ut){if(Ke){var hn=Ln(Ut,!1),kn=Be.getBoundingClientRect(),xn=kn.top,on=kn.bottom;if(hn<=xn){var jt=xn-hn;et=-Yt(jt),Bt()}else if(hn>=on){var Xt=hn-on;et=Yt(Xt),Bt()}else sn()}};return Be.addEventListener("mousedown",_t),Be.ownerDocument.addEventListener("mouseup",vt),Be.ownerDocument.addEventListener("mousemove",xt),function(){Be.removeEventListener("mousedown",_t),Be.ownerDocument.removeEventListener("mouseup",vt),Be.ownerDocument.removeEventListener("mousemove",xt),sn()}}},[je])}var qe=10;function yn(je,be,we,Be,Ke,ke,et,sn){var Bt=Ye.useRef(),_t=Ye.useState(null),vt=(0,Et.Z)(_t,2),xt=vt[0],Tt=vt[1];return(0,It.Z)(function(){if(xt&&xt.times=0;nr-=1){var pr=Ke(be[nr]),sr=we.get(pr);if(sr===void 0){jt=!0;break}if(rr-=sr,rr<=0)break}switch(En){case"top":gn=ri-xn;break;case"bottom":gn=vi-on+xn;break;default:{var cr=je.current.scrollTop,Ji=cr+on;riJi&&(Xt="bottom")}}gn!==null&&et(gn),gn!==xt.lastTop&&(jt=!0)}jt&&Tt((0,it.Z)((0,it.Z)({},xt),{},{times:xt.times+1,targetAlign:Xt,lastTop:gn}))}},[xt,je.current]),function(Ut){if(Ut==null){sn();return}if(Se.Z.cancel(Bt.current),typeof Ut=="number")et(Ut);else if(Ut&&(0,tt.Z)(Ut)==="object"){var hn,kn=Ut.align;"index"in Ut?hn=Ut.index:hn=be.findIndex(function(jt){return Ke(jt)===Ut.key});var xn=Ut.offset,on=xn===void 0?0:xn;Tt({times:0,index:hn,offset:on,originAlign:kn})}}}var oi=Ye.forwardRef(function(je,be){var we=je.prefixCls,Be=je.rtl,Ke=je.scrollOffset,ke=je.scrollRange,et=je.onStartMove,sn=je.onStopMove,Bt=je.onScroll,_t=je.horizontal,vt=je.spinSize,xt=je.containerSize,Tt=je.style,Ut=je.thumbStyle,hn=je.showScrollBar,kn=Ye.useState(!1),xn=(0,Et.Z)(kn,2),on=xn[0],jt=xn[1],Xt=Ye.useState(null),gn=(0,Et.Z)(Xt,2),En=gn[0],Vn=gn[1],ri=Ye.useState(null),vi=(0,Et.Z)(ri,2),mn=vi[0],Ai=vi[1],Yi=!Be,gr=Ye.useRef(),rr=Ye.useRef(),nr=Ye.useState(hn),pr=(0,Et.Z)(nr,2),sr=pr[0],cr=pr[1],Ji=Ye.useRef(),yr=function(){hn===!0||hn===!1||(clearTimeout(Ji.current),cr(!0),Ji.current=setTimeout(function(){cr(!1)},3e3))},Ce=ke-xt||0,Sn=xt-vt||0,Wn=Ye.useMemo(function(){if(Ke===0||Ce===0)return 0;var bt=Ke/Ce;return bt*Sn},[Ke,Ce,Sn]),gi=function(ti){ti.stopPropagation(),ti.preventDefault()},hi=Ye.useRef({top:Wn,dragging:on,pageY:En,startTop:mn});hi.current={top:Wn,dragging:on,pageY:En,startTop:mn};var Zn=function(ti){jt(!0),Vn(Ln(ti,_t)),Ai(hi.current.top),et(),ti.stopPropagation(),ti.preventDefault()};Ye.useEffect(function(){var bt=function(Pn){Pn.preventDefault()},ti=gr.current,yi=rr.current;return ti.addEventListener("touchstart",bt,{passive:!1}),yi.addEventListener("touchstart",Zn,{passive:!1}),function(){ti.removeEventListener("touchstart",bt),yi.removeEventListener("touchstart",Zn)}},[]);var nn=Ye.useRef();nn.current=Ce;var Hn=Ye.useRef();Hn.current=Sn,Ye.useEffect(function(){if(on){var bt,ti=function(Pn){var fi=hi.current,Cn=fi.dragging,Qi=fi.pageY,dr=fi.startTop;Se.Z.cancel(bt);var Ge=gr.current.getBoundingClientRect(),Pt=xt/(_t?Ge.width:Ge.height);if(Cn){var Kn=(Ln(Pn,_t)-Qi)*Pt,Bn=dr;!Yi&&_t?Bn-=Kn:Bn+=Kn;var zt=nn.current,Fn=Hn.current,zn=Fn?Bn/Fn:0,Xn=Math.ceil(zn*zt);Xn=Math.max(Xn,0),Xn=Math.min(Xn,zt),bt=(0,Se.Z)(function(){Bt(Xn,_t)})}},yi=function(){jt(!1),sn()};return window.addEventListener("mousemove",ti,{passive:!0}),window.addEventListener("touchmove",ti,{passive:!0}),window.addEventListener("mouseup",yi,{passive:!0}),window.addEventListener("touchend",yi,{passive:!0}),function(){window.removeEventListener("mousemove",ti),window.removeEventListener("touchmove",ti),window.removeEventListener("mouseup",yi),window.removeEventListener("touchend",yi),Se.Z.cancel(bt)}}},[on]),Ye.useEffect(function(){return yr(),function(){clearTimeout(Ji.current)}},[Ke]),Ye.useImperativeHandle(be,function(){return{delayHidden:yr}});var di="".concat(we,"-scrollbar"),At={position:"absolute",visibility:sr?null:"hidden"},Dt={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return _t?(At.height=8,At.left=0,At.right=0,At.bottom=0,Dt.height="100%",Dt.width=vt,Yi?Dt.left=Wn:Dt.right=Wn):(At.width=8,At.top=0,At.bottom=0,Yi?At.right=0:At.left=0,Dt.width="100%",Dt.height=vt,Dt.top=Wn),Ye.createElement("div",{ref:gr,className:Kt()(di,(0,Ft.Z)((0,Ft.Z)((0,Ft.Z)({},"".concat(di,"-horizontal"),_t),"".concat(di,"-vertical"),!_t),"".concat(di,"-visible"),sr)),style:(0,it.Z)((0,it.Z)({},At),Tt),onMouseDown:gi,onMouseMove:yr},Ye.createElement("div",{ref:rr,className:Kt()("".concat(di,"-thumb"),(0,Ft.Z)({},"".concat(di,"-thumb-moving"),on)),style:(0,it.Z)((0,it.Z)({},Dt),Ut),onMouseDown:Zn}))}),Yn=oi,rn=20;function Gn(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,we=je/be*je;return isNaN(we)&&(we=0),we=Math.max(we,rn),Math.floor(we)}var Mn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],xi=[],Wt={overflowY:"auto",overflowAnchor:"none"};function Nn(je,be){var we=je.prefixCls,Be=we===void 0?"rc-virtual-list":we,Ke=je.className,ke=je.height,et=je.itemHeight,sn=je.fullHeight,Bt=sn===void 0?!0:sn,_t=je.style,vt=je.data,xt=je.children,Tt=je.itemKey,Ut=je.virtual,hn=je.direction,kn=je.scrollWidth,xn=je.component,on=xn===void 0?"div":xn,jt=je.onScroll,Xt=je.onVirtualScroll,gn=je.onVisibleChange,En=je.innerProps,Vn=je.extraRender,ri=je.styles,vi=je.showScrollBar,mn=vi===void 0?"optional":vi,Ai=(0,ze.Z)(je,Mn),Yi=Ye.useCallback(function(nt){return typeof Tt=="function"?Tt(nt):nt==null?void 0:nt[Tt]},[Tt]),gr=ln(Yi,null,null),rr=(0,Et.Z)(gr,4),nr=rr[0],pr=rr[1],sr=rr[2],cr=rr[3],Ji=!!(Ut!==!1&&ke&&et),yr=Ye.useMemo(function(){return Object.values(sr.maps).reduce(function(nt,kt){return nt+kt},0)},[sr.id,sr.maps]),Ce=Ji&&vt&&(Math.max(et*vt.length,yr)>ke||!!kn),Sn=hn==="rtl",Wn=Kt()(Be,(0,Ft.Z)({},"".concat(Be,"-rtl"),Sn),Ke),gi=vt||xi,hi=(0,Ye.useRef)(),Zn=(0,Ye.useRef)(),nn=(0,Ye.useRef)(),Hn=(0,Ye.useState)(0),di=(0,Et.Z)(Hn,2),At=di[0],Dt=di[1],bt=(0,Ye.useState)(0),ti=(0,Et.Z)(bt,2),yi=ti[0],ci=ti[1],Pn=(0,Ye.useState)(!1),fi=(0,Et.Z)(Pn,2),Cn=fi[0],Qi=fi[1],dr=function(){Qi(!0)},Ge=function(){Qi(!1)},Pt={getKey:Yi};function Kn(nt){Dt(function(kt){var Gt;typeof nt=="function"?Gt=nt(kt):Gt=nt;var Rt=Pr(Gt);return hi.current.scrollTop=Rt,Rt})}var Bn=(0,Ye.useRef)({start:0,end:gi.length}),zt=(0,Ye.useRef)(),Fn=me(gi,Yi),zn=(0,Et.Z)(Fn,1),Xn=zn[0];zt.current=Xn;var Mi=Ye.useMemo(function(){if(!Ji)return{scrollHeight:void 0,start:0,end:gi.length-1,offset:void 0};if(!Ce){var nt;return{scrollHeight:((nt=Zn.current)===null||nt===void 0?void 0:nt.offsetHeight)||0,start:0,end:gi.length-1,offset:void 0}}for(var kt=0,Gt,Rt,an,si=gi.length,Ee=0;Ee=At&&Gt===void 0&&(Gt=Ee,Rt=kt),ut>At+ke&&an===void 0&&(an=Ee),kt=ut}return Gt===void 0&&(Gt=0,Rt=0,an=Math.ceil(ke/et)),an===void 0&&(an=gi.length-1),an=Math.min(an+1,gi.length-1),{scrollHeight:kt,start:Gt,end:an,offset:Rt}},[Ce,Ji,At,gi,cr,ke]),ai=Mi.scrollHeight,Li=Mi.start,wi=Mi.end,ir=Mi.offset;Bn.current.start=Li,Bn.current.end=wi,Ye.useLayoutEffect(function(){var nt=sr.getRecord();if(nt.size===1){var kt=Array.from(nt.keys())[0],Gt=nt.get(kt),Rt=gi[Li];if(Rt&&Gt===void 0){var an=Yi(Rt);if(an===kt){var si=sr.get(kt),Ee=si-et;Kn(function(Ue){return Ue+Ee})}}}sr.resetRecord()},[ai]);var Wi=Ye.useState({width:0,height:ke}),Ii=(0,Et.Z)(Wi,2),un=Ii[0],vr=Ii[1],Mr=function(kt){vr({width:kt.offsetWidth,height:kt.offsetHeight})},Yr=(0,Ye.useRef)(),wn=(0,Ye.useRef)(),Pi=Ye.useMemo(function(){return Gn(un.width,kn)},[un.width,kn]),Gi=Ye.useMemo(function(){return Gn(un.height,ai)},[un.height,ai]),Hi=ai-ke,er=(0,Ye.useRef)(Hi);er.current=Hi;function Pr(nt){var kt=nt;return Number.isNaN(er.current)||(kt=Math.min(kt,er.current)),kt=Math.max(kt,0),kt}var br=At<=0,Zi=At>=Hi,tr=yi<=0,Ki=yi>=kn,dn=Ze(br,Zi,tr,Ki),lr=function(){return{x:Sn?-yi:yi,y:At}},vn=(0,Ye.useRef)(lr()),Fi=(0,Me.zX)(function(nt){if(Xt){var kt=(0,it.Z)((0,it.Z)({},lr()),nt);(vn.current.x!==kt.x||vn.current.y!==kt.y)&&(Xt(kt),vn.current=kt)}});function Cr(nt,kt){var Gt=nt;kt?((0,Ht.flushSync)(function(){ci(Gt)}),Fi()):Kn(Gt)}function Nr(nt){var kt=nt.currentTarget.scrollTop;kt!==At&&Kn(kt),jt==null||jt(nt),Fi()}var to=function(kt){var Gt=kt,Rt=kn?kn-un.width:0;return Gt=Math.max(Gt,0),Gt=Math.min(Gt,Rt),Gt},Ur=(0,Me.zX)(function(nt,kt){kt?((0,Ht.flushSync)(function(){ci(function(Gt){var Rt=Gt+(Sn?-nt:nt);return to(Rt)})}),Fi()):Kn(function(Gt){var Rt=Gt+nt;return Rt})}),Br=st(Ji,br,Zi,tr,Ki,!!kn,Ur),ao=(0,Et.Z)(Br,2),Qt=ao[0],jn=ao[1];fn(Ji,hi,function(nt,kt,Gt,Rt){var an=Rt;return dn(nt,kt,Gt)?!1:!an||!an._virtualHandled?(an&&(an._virtualHandled=!0),Qt({preventDefault:function(){},deltaX:nt?kt:0,deltaY:nt?0:kt}),!0):!1}),lt(Ce,hi,function(nt){Kn(function(kt){return kt+nt})}),(0,It.Z)(function(){function nt(Gt){var Rt=br&&Gt.detail<0,an=Zi&&Gt.detail>0;Ji&&!Rt&&!an&&Gt.preventDefault()}var kt=hi.current;return kt.addEventListener("wheel",Qt,{passive:!1}),kt.addEventListener("DOMMouseScroll",jn,{passive:!0}),kt.addEventListener("MozMousePixelScroll",nt,{passive:!1}),function(){kt.removeEventListener("wheel",Qt),kt.removeEventListener("DOMMouseScroll",jn),kt.removeEventListener("MozMousePixelScroll",nt)}},[Ji,br,Zi]),(0,It.Z)(function(){if(kn){var nt=to(yi);ci(nt),Fi({x:nt})}},[un.width,kn]);var $t=function(){var kt,Gt;(kt=Yr.current)===null||kt===void 0||kt.delayHidden(),(Gt=wn.current)===null||Gt===void 0||Gt.delayHidden()},Te=yn(hi,gi,sr,et,Yi,function(){return pr(!0)},Kn,$t);Ye.useImperativeHandle(be,function(){return{nativeElement:nn.current,getScrollInfo:lr,scrollTo:function(kt){function Gt(Rt){return Rt&&(0,tt.Z)(Rt)==="object"&&("left"in Rt||"top"in Rt)}Gt(kt)?(kt.left!==void 0&&ci(to(kt.left)),Te(kt.top)):Te(kt)}}}),(0,It.Z)(function(){if(gn){var nt=gi.slice(Li,wi+1);gn(nt,gi)}},[Li,wi,gi]);var He=Ve(gi,Yi,sr,et),$e=Vn==null?void 0:Vn({start:Li,end:wi,virtual:Ce,offsetX:yi,offsetY:ir,rtl:Sn,getSize:He}),yt=de(gi,Li,wi,kn,yi,nr,xt,Pt),Ot=null;ke&&(Ot=(0,it.Z)((0,Ft.Z)({},Bt?"height":"maxHeight",ke),Wt),Ji&&(Ot.overflowY="hidden",kn&&(Ot.overflowX="hidden"),Cn&&(Ot.pointerEvents="none")));var en={};return Sn&&(en.dir="rtl"),Ye.createElement("div",(0,ye.Z)({ref:nn,style:(0,it.Z)((0,it.Z)({},_t),{},{position:"relative"}),className:Wn},en,Ai),Ye.createElement(ft.Z,{onResize:Mr},Ye.createElement(on,{className:"".concat(Be,"-holder"),style:Ot,ref:hi,onScroll:Nr,onMouseEnter:$t},Ye.createElement(ne,{prefixCls:Be,height:ai,offsetX:yi,offsetY:ir,scrollWidth:kn,onInnerResize:pr,ref:Zn,innerProps:En,rtl:Sn,extra:$e},yt))),Ce&&ai>ke&&Ye.createElement(Yn,{ref:Yr,prefixCls:Be,scrollOffset:At,scrollRange:ai,rtl:Sn,onScroll:Cr,onStartMove:dr,onStopMove:Ge,spinSize:Gi,containerSize:un.height,style:ri==null?void 0:ri.verticalScrollBar,thumbStyle:ri==null?void 0:ri.verticalScrollBarThumb,showScrollBar:mn}),Ce&&kn>un.width&&Ye.createElement(Yn,{ref:wn,prefixCls:Be,scrollOffset:yi,scrollRange:kn,rtl:Sn,onScroll:Cr,onStartMove:dr,onStopMove:Ge,spinSize:Pi,containerSize:un.width,horizontal:!0,style:ri==null?void 0:ri.horizontalScrollBar,thumbStyle:ri==null?void 0:ri.horizontalScrollBarThumb,showScrollBar:mn}))}var St=Ye.forwardRef(Nn);St.displayName="List";var bi=St,qn=bi},25510:function(Un){"use strict";Un.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAi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x0oLtu8ff7zn99cffXVRd3SYuL73/9+8/d///ebeGPnQADJInJ2Fnrzm9/c/M7v/E5nuXkXWDrAknOX67M///M/bz74wQ8mF76SE+dNsN3YnrxXUtj/+q//OhHWocIii6bjouQMWuPKRn6/973vNa94xSsmO4AsTdQ/ncMiIPNzP/dzzf/7f/8vFd1pwH3Z5Uw6hVwV6KykTmsQc8csLFqWd2r7LIqYAyWPdo7ecccdDcY0J/s7bT6UjHtRZbCz11133aKab2136QCLemrDEigMlMmNN97YfOQjH5msMJeOmrugQ0z6Q4cOJcCyF1YrylfQrhzk7oYbbhhczk455ZTm61//enPeeedNDq/zh8J5cWIenHXWWc2TTz654yVtWeUMGj/++OPNy172sqRzBFZikdS/yNUAFloHtABYrrrqqglvkCPlGPXfw71bYwCWCt63xZDlYamoKopWUgCQctttt+0JwLJoOWN1idK2z7SwA9+98IUvbH76059WcnX5ii+znOHBwsOinU2inv/38lF1Z/WoFrAwOlIC8LAEb4bldQCWCvou2pBUdHXXFV1mQ9I3sRctZwFYlhMYB2Dpe6bl6wvAMh86z9JKAJYKqi3akFR0ddcVDcDSNPPy5AVgCcCy6xRIxYACsFQQa85FA7BUEDwASwWxei4agCUAS88ila1umeUsPCzzkIAmhUNLk27VowgJzYc3AVgq6ByApYJYPRddZkPS81BbD5oKD0vflN5a3zLLWQCW4flPCwFY5kPnWVoJwFJBtQAsFcTquegyG5KehxqApW+CVtS3zHIWgKWCkdsoGoBlG8Qb+NUALBUEDsBSQayeiy6zIel5qAFY+iZoRX3LLGcBWCoYuY2iAVi2QbyBXw3AUkHgACwVxOq56DIbkp6HGoClb4JW1LfMchaApYKR2ygagGUbxBv41QAsFQQOwFJBrJ6LLrMh6XmoAVj6JmhFfcssZwFYKhi5jaIBWLZBvIFfDcBSQeAALBXE6rnoMhuSnocagKVvglbUt8xyFoClgpHbKBqAZRvEG/jVACwVBO4TsHziE59oLr744orWd1fRT33qUw0/pSdDdhmSNt684x3vaB599NFi4j3vec9rPvvZzzb8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m7mWcjidEJATEAlTEhcV24yBsT0MbscAbSAw89YHt9aC+774H77JBDDw2ZgjdYfwObM3den0to1CgbiYUIT1Kf4aTPUjTidZsza7aNCX6qPuCFKWXeq6/ZSE6dDtmC2SreF4ATvHHBtTQ/cGb+VmwF6DRZWIhh8S4hv02WMcPyx0o+9eoWYPHvZ14Qk0dekbqLBZqP/ZgyZYrdcccdwWKUeg01YEGO01dZvflbC0pZl3MColP7rXIFsORSzKwAlgqaEXDLqsgrvthtkkrqqq1mPLvSSiv1r2BS6+o2YEltRyfKdRuwpLSx5wHL/Lwol112qZ155pn23f/9no0ZOzakrw8wJYCJ123U6FE2b+48W3yxxe3444+xf/rHXWxsiGWZf7AzlobZs23mK6/ajHvvs03evolNHD/Rfnveb22rrbYMW4+DFXN4rTMAACAASURBVGqRMcGFQsI3EA8Wjr4wWdwrCPYxfUBontkzTz9rl156mf3Xf33K/vbc88GSM/ktb7GJEybZE089Hd6FW2qddabZGWf8ypYKro++bcGLLDLGZs0iXgaghWtrtM187dWgvIlF6XvfPBs1t89yFLqLJYQAyZFgmNfswYcetD332sse+uv9dsghX7OtttzK1pu23vw525fuf97IEfbqrFk2iXqJlyH/zJxZ4cykMLfDP9xf7Djq6zvXmDEjbebM2TZuHGCvT6nR6b44tL48LKOw/pjZtddea8suu2z/2WM+WPXFF18Mhx/GpzV73sxdEAwWYFlllVVq5VPV7iCse7kW06EGLCkyoptlCmDJp24BLAWw5HNNB54ogKUvrqQuNX/YWcaJxrPn2LXXXWfnn3+eff3rX7fttt/e9tvv87baqqv1xUVguZvdl+skxOssvphNmjzBxuDSCAnPXrfnnn7K3jJpsr3y6hy7a8a9tunmW9gKKyxjp/7057bp299u80ZgPRltr816tS/ny2h2/mDkeD18wm6ZsG15bPg/773lllts///+b7vx8sttvfXXt403fpv956c/bRMnLWq33HyLnX7GGXb2OecEgLX/Vw+w9+32L7b88sv2Bdvi1ho9KgTPzglAaqYt9pbFwzbr2RhxQsoTdi+xM6jPwjJ6kTH24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Pfsqjtt+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/iBjRk5xh595CG76Y832gfe///sLYsvZr88/XTbfMstQv6Tm2+91fbYfY/g/thg/fUDYFl08mS7WoDl8CNtm222thN/eJLdfPNNAbj87ne/tX9833vtawd9LcTUAFiwrMx9ffb8RGucJzSq75yiESPt7rtn2JVXXm2f/cxnbf31N7Djjv2WTZ++QThO4PUR8+yggw6ys848y5576nk79LDDbM01VrPPf+m/QgDt6musbuedf74tOXVJe+WVl+0v9/3F9tjjQ/bIww/bN446Ouyauv322+yrB+5vSy+7tG2+xWb2trdvYiNHj7RzLrzYbrjyGpsy+S22z3982j7x8U/aH2/6g/3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NgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SLQSFjqFdmSGQEjYASMgBEwAqsVge1b1x12GCr/8p6D/12tQrjeRsAIGAEjYASMQN0ITAhL3WJaOiNgBIyAETACRmC1I/C/+Ryxj68oilIAAAAASUVORK5CYII="},32637:function(Un,pi,De){"use strict";Un.exports=De.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(Un){"use strict";Un.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FH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f09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},37530:function(Un,pi,De){"use strict";De.d(pi,{Z:function(){return tt}});var ye=De(58750);function tt(it,Ft){var Et=typeof Symbol!="undefined"&&it[Symbol.iterator]||it["@@iterator"];if(!Et){if(Array.isArray(it)||(Et=(0,ye.Z)(it))||Ft&&it&&typeof it.length=="number"){Et&&(it=Et);var ze=0,ct=function(){};return{s:ct,n:function(){return ze>=it.length?{done:!0}:{done:!1,value:it[ze++]}},e:function(Ye){throw Ye},f:ct}}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 Kt,ft=!0,Me=!1;return{s:function(){Et=Et.call(it)},n:function(){var Ye=Et.next();return ft=Ye.done,Ye},e:function(Ye){Me=!0,Kt=Ye},f:function(){try{ft||Et.return==null||Et.return()}finally{if(Me)throw Kt}}}}},16722:function(Un,pi,De){"use strict";De.d(pi,{Z:function(){return Kt}});const ye=ft=>typeof ft=="object"&&ft!=null&&ft.nodeType===1,tt=(ft,Me)=>(!Me||ft!=="hidden")&&ft!=="visible"&&ft!=="clip",it=(ft,Me)=>{if(ft.clientHeight{const Ht=(Ne=>{if(!Ne.ownerDocument||!Ne.ownerDocument.defaultView)return null;try{return Ne.ownerDocument.defaultView.frameElement}catch(ne){return null}})(Ye);return!!Ht&&(Ht.clientHeightNeMe||Ne>ft&&ne=Me&&te>=It?Ne-ft-Ye:ne>Me&&teIt?ne-Me+Ht:0,Et=ft=>{const Me=ft.parentElement;return Me==null?ft.getRootNode().host||null:Me},ze=(ft,Me)=>{var It,Ye,Ht,Ne;if(typeof document=="undefined")return[];const{scrollMode:ne,block:te,inline:de,boundary:le,skipOverflowHiddenElements:ge}=Me,me=typeof le=="function"?le:Yn=>Yn!==le;if(!ye(ft))throw new TypeError("Invalid target");const Se=document.scrollingElement||document.documentElement,Le=[];let Ie=ft;for(;ye(Ie)&&me(Ie);){if(Ie=Et(Ie),Ie===Se){Le.push(Ie);break}Ie!=null&&Ie===document.body&&it(Ie)&&!it(document.documentElement)||Ie!=null&&it(Ie,ge)&&Le.push(Ie)}const Ze=(Ye=(It=window.visualViewport)==null?void 0:It.width)!=null?Ye:innerWidth,st=(Ne=(Ht=window.visualViewport)==null?void 0:Ht.height)!=null?Ne:innerHeight,{scrollX:Ve,scrollY:Xe}=window,{height:wt,width:gt,top:Nt,right:Ct,bottom:ln,left:bn}=ft.getBoundingClientRect(),{top:fn,right:Yt,bottom:Ln,left:lt}=(Yn=>{const rn=window.getComputedStyle(Yn);return{top:parseFloat(rn.scrollMarginTop)||0,right:parseFloat(rn.scrollMarginRight)||0,bottom:parseFloat(rn.scrollMarginBottom)||0,left:parseFloat(rn.scrollMarginLeft)||0}})(ft);let qe=te==="start"||te==="nearest"?Nt-fn:te==="end"?ln+Ln:Nt+wt/2-fn+Ln,yn=de==="center"?bn+gt/2-lt+Yt:de==="end"?Ct+Yt:bn-lt;const oi=[];for(let Yn=0;Yn=0&&bn>=0&&ln<=st&&Ct<=Ze&&(rn===Se&&!it(rn)||Nt>=xi&&ln<=Nn&&bn>=St&&Ct<=Wt))return oi;const bi=getComputedStyle(rn),qn=parseInt(bi.borderLeftWidth,10),je=parseInt(bi.borderTopWidth,10),be=parseInt(bi.borderRightWidth,10),we=parseInt(bi.borderBottomWidth,10);let Be=0,Ke=0;const ke="offsetWidth"in rn?rn.offsetWidth-rn.clientWidth-qn-be:0,et="offsetHeight"in rn?rn.offsetHeight-rn.clientHeight-je-we:0,sn="offsetWidth"in rn?rn.offsetWidth===0?0:Mn/rn.offsetWidth:0,Bt="offsetHeight"in rn?rn.offsetHeight===0?0:Gn/rn.offsetHeight:0;if(Se===rn)Be=te==="start"?qe:te==="end"?qe-st:te==="nearest"?Ft(Xe,Xe+st,st,je,we,Xe+qe,Xe+qe+wt,wt):qe-st/2,Ke=de==="start"?yn:de==="center"?yn-Ze/2:de==="end"?yn-Ze:Ft(Ve,Ve+Ze,Ze,qn,be,Ve+yn,Ve+yn+gt,gt),Be=Math.max(0,Be+Xe),Ke=Math.max(0,Ke+Ve);else{Be=te==="start"?qe-xi-je:te==="end"?qe-Nn+we+et:te==="nearest"?Ft(xi,Nn,Gn,je,we+et,qe,qe+wt,wt):qe-(xi+Gn/2)+et/2,Ke=de==="start"?yn-St-qn:de==="center"?yn-(St+Mn/2)+ke/2:de==="end"?yn-Wt+be+ke:Ft(St,Wt,Mn,qn,be+ke,yn,yn+gt,gt);const{scrollLeft:_t,scrollTop:vt}=rn;Be=Bt===0?0:Math.max(0,Math.min(vt+Be/Bt,rn.scrollHeight-Gn/Bt+et)),Ke=sn===0?0:Math.max(0,Math.min(_t+Ke/sn,rn.scrollWidth-Mn/sn+ke)),qe+=vt-Be,yn+=_t-Ke}oi.push({el:rn,top:Be,left:Ke})}return oi},ct=ft=>ft===!1?{block:"end",inline:"nearest"}:(Me=>Me===Object(Me)&&Object.keys(Me).length!==0)(ft)?ft:{block:"start",inline:"nearest"};function Kt(ft,Me){if(!ft.isConnected||!(Ht=>{let Ne=Ht;for(;Ne&&Ne.parentNode;){if(Ne.parentNode===document)return!0;Ne=Ne.parentNode instanceof ShadowRoot?Ne.parentNode.host:Ne.parentNode}return!1})(ft))return;const It=(Ht=>{const Ne=window.getComputedStyle(Ht);return{top:parseFloat(Ne.scrollMarginTop)||0,right:parseFloat(Ne.scrollMarginRight)||0,bottom:parseFloat(Ne.scrollMarginBottom)||0,left:parseFloat(Ne.scrollMarginLeft)||0}})(ft);if((Ht=>typeof Ht=="object"&&typeof Ht.behavior=="function")(Me))return Me.behavior(ze(ft,Me));const Ye=typeof Me=="boolean"||Me==null?void 0:Me.behavior;for(const{el:Ht,top:Ne,left:ne}of ze(ft,ct(Me))){const te=Ne-It.top+It.bottom,de=ne-It.left+It.right;Ht.scroll({top:te,left:de,behavior:Ye})}}}}]); }());