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

1 line
1.1 MiB

This file contains invisible Unicode characters!

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

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

(self.webpackChunk=self.webpackChunk||[]).push([[4030],{87954:function(e,t,n){"use strict";n.d(t,{LB:function(){return He},y9:function(){return at},g4:function(){return _},we:function(){return se},pE:function(){return k},VK:function(){return P},Cj:function(){return Ue},O1:function(){return Ye},Zj:function(){return Xe},VT:function(){return m},Dy:function(){return v}});var r=n(59301),i=n(4676),o=n(35241);const a={display:"none"};function l(e){let{id:t,value:n}=e;return r.createElement("div",{id:t,style:a},n)}function s(e){let{id:t,announcement:n,ariaLiveType:i="assertive"}=e;return r.createElement("div",{id:t,style:{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"},role:"status","aria-live":i,"aria-atomic":!0},n)}const c=(0,r.createContext)(null);const u={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},d={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function h(e){let{announcements:t=d,container:n,hiddenTextDescribedById:a,screenReaderInstructions:h=u}=e;const{announce:f,announcement:p}=function(){const[e,t]=(0,r.useState)("");return{announce:(0,r.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}(),m=(0,o.Ld)("DndLiveRegion"),[v,g]=(0,r.useState)(!1);if((0,r.useEffect)((()=>{g(!0)}),[]),function(e){const t=(0,r.useContext)(c);(0,r.useEffect)((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}((0,r.useMemo)((()=>({onDragStart(e){let{active:n}=e;f(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&f(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;f(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;f(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;f(t.onDragCancel({active:n,over:r}))}})),[f,t])),!v)return null;const y=r.createElement(r.Fragment,null,r.createElement(l,{id:a,value:h.draggable}),r.createElement(s,{id:m,announcement:p}));return n?(0,i.createPortal)(y,n):y}var f;function p(){}function m(e,t){return(0,r.useMemo)((()=>({sensor:e,options:null!=t?t:{}})),[e,t])}function v(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)((()=>[...t].filter((e=>null!=e))),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(f||(f={}));const g=Object.freeze({x:0,y:0});function y(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function x(e,t){const n=(0,o.DC)(e);if(!n)return"0 0";return(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%"}function b(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function w(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function C(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const k=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=C(t,t.left,t.top),o=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=y(C(r),i);o.push({id:t,data:{droppableContainer:e,value:n}})}}return o.sort(b)};function A(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),a=i-r,l=o-n;if(r<i&&n<o){const n=t.width*t.height,r=e.width*e.height,i=a*l;return Number((i/(n+r-i)).toFixed(4))}return 0}const S=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const e of r){const{id:r}=e,o=n.get(r);if(o){const n=A(o,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(w)};function E(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:g}function N(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const L=N(1);function M(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const D={ignoreTransform:!1};function P(e,t){void 0===t&&(t=D);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=(0,o.Jj)(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=M(t);if(!r)return e;const{scaleX:i,scaleY:o,x:a,y:l}=r,s=e.left-a-(1-i)*parseFloat(n),c=e.top-l-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),u=i?e.width/i:e.width,d=o?e.height/o:e.height;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s}}(n,t,r))}const{top:r,left:i,width:a,height:l,bottom:s,right:c}=n;return{top:r,left:i,width:a,height:l,bottom:s,right:c}}function Z(e){return P(e,{ignoreTransform:!0})}function B(e,t){const n=[];return e?function r(i){if(null!=t&&n.length>=t)return n;if(!i)return n;if((0,o.qk)(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!(0,o.Re)(i)||(0,o.vZ)(i))return n;if(n.includes(i))return n;const a=(0,o.Jj)(e).getComputedStyle(i);return i!==e&&function(e,t){void 0===t&&(t=(0,o.Jj)(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(i,a)&&n.push(i),function(e,t){return void 0===t&&(t=(0,o.Jj)(e).getComputedStyle(e)),"fixed"===t.position}(i,a)?n:r(i.parentNode)}(e):n}function T(e){const[t]=B(e,1);return null!=t?t:null}function j(e){return o.Nq&&e?(0,o.FJ)(e)?e:(0,o.UG)(e)?(0,o.qk)(e)||e===(0,o.r3)(e).scrollingElement?window:(0,o.Re)(e)?e:null:null:null}function I(e){return(0,o.FJ)(e)?e.scrollX:e.scrollLeft}function F(e){return(0,o.FJ)(e)?e.scrollY:e.scrollTop}function O(e){return{x:I(e),y:F(e)}}var R;function W(e){return!(!o.Nq||!e)&&e===document.scrollingElement}function z(e){const t={x:0,y:0},n=W(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(R||(R={}));const H={x:.2,y:.2};function V(e,t,n,r,i){let{top:o,left:a,right:l,bottom:s}=n;void 0===r&&(r=10),void 0===i&&(i=H);const{isTop:c,isBottom:u,isLeft:d,isRight:h}=z(e),f={x:0,y:0},p={x:0,y:0},m=t.height*i.y,v=t.width*i.x;return!c&&o<=t.top+m?(f.y=R.Backward,p.y=r*Math.abs((t.top+m-o)/m)):!u&&s>=t.bottom-m&&(f.y=R.Forward,p.y=r*Math.abs((t.bottom-m-s)/m)),!h&&l>=t.right-v?(f.x=R.Forward,p.x=r*Math.abs((t.right-v-l)/v)):!d&&a<=t.left+v&&(f.x=R.Backward,p.x=r*Math.abs((t.left+v-a)/v)),{direction:f,speed:p}}function K(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function Y(e){return e.reduce(((e,t)=>(0,o.IH)(e,O(t))),g)}function U(e,t){if(void 0===t&&(t=P),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);T(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const G=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+I(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+F(t)),0)}]];class X{constructor(e,t){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 n=B(t),r=Y(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,i]of G)for(const o of t)Object.defineProperty(this,o,{get:()=>{const t=i(n),a=r[e]-t;return this.rect[o]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Q{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function J(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var q,_;function $(e){e.preventDefault()}function ee(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(q||(q={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(_||(_={}));const te={start:[_.Space,_.Enter],cancel:[_.Esc],end:[_.Space,_.Enter,_.Tab]},ne=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case _.Right:return{...n,x:n.x+25};case _.Left:return{...n,x:n.x-25};case _.Down:return{...n,y:n.y+25};case _.Up:return{...n,y:n.y-25}}};class re{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:t}}=e;this.props=e,this.listeners=new Q((0,o.r3)(t)),this.windowListeners=new Q((0,o.Jj)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(q.Resize,this.handleCancel),this.windowListeners.add(q.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(q.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&U(n),t(g)}handleKeyDown(e){if((0,o.vd)(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:i=te,coordinateGetter:a=ne,scrollBehavior:l="smooth"}=r,{code:s}=e;if(i.end.includes(s))return void this.handleEnd(e);if(i.cancel.includes(s))return void this.handleCancel(e);const{collisionRect:c}=n.current,u=c?{x:c.left,y:c.top}:g;this.referenceCoordinates||(this.referenceCoordinates=u);const d=a(e,{active:t,context:n.current,currentCoordinates:u});if(d){const t=(0,o.$X)(d,u),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(const n of i){const i=e.code,{isTop:o,isRight:a,isLeft:s,isBottom:c,maxScroll:u,minScroll:h}=z(n),f=K(n),p={x:Math.min(i===_.Right?f.right-f.width/2:f.right,Math.max(i===_.Right?f.left:f.left+f.width/2,d.x)),y:Math.min(i===_.Down?f.bottom-f.height/2:f.bottom,Math.max(i===_.Down?f.top:f.top+f.height/2,d.y))},m=i===_.Right&&!a||i===_.Left&&!s,v=i===_.Down&&!c||i===_.Up&&!o;if(m&&p.x!==d.x){const e=n.scrollLeft+t.x,o=i===_.Right&&e<=u.x||i===_.Left&&e>=h.x;if(o&&!t.y)return void n.scrollTo({left:e,behavior:l});r.x=o?n.scrollLeft-e:i===_.Right?n.scrollLeft-u.x:n.scrollLeft-h.x,r.x&&n.scrollBy({left:-r.x,behavior:l});break}if(v&&p.y!==d.y){const e=n.scrollTop+t.y,o=i===_.Down&&e<=u.y||i===_.Up&&e>=h.y;if(o&&!t.x)return void n.scrollTo({top:e,behavior:l});r.y=o?n.scrollTop-e:i===_.Down?n.scrollTop-u.y:n.scrollTop-h.y,r.y&&n.scrollBy({top:-r.y,behavior:l});break}}this.handleMove(e,(0,o.IH)((0,o.$X)(d,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function ie(e){return Boolean(e&&"distance"in e)}function oe(e){return Boolean(e&&"delay"in e)}re.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=te,onActivation:i}=t,{active:o}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=o.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==i||i({event:e.nativeEvent}),!0)}return!1}}];class ae{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=(0,o.Jj)(e);return e instanceof t?e:(0,o.r3)(e)}(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=t;const{event:i}=e,{target:a}=i;this.props=e,this.events=t,this.document=(0,o.r3)(a),this.documentListeners=new Q(this.document),this.listeners=new Q(n),this.windowListeners=new Q((0,o.Jj)(a)),this.initialCoordinates=null!=(r=(0,o.DC)(i))?r:g,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:t,bypassActivationConstraint:n}}}=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(q.Resize,this.handleCancel),this.windowListeners.add(q.DragStart,$),this.windowListeners.add(q.VisibilityChange,this.handleCancel),this.windowListeners.add(q.ContextMenu,$),this.documentListeners.add(q.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(oe(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(ie(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(q.Click,ee,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(q.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:i}=this,{onMove:a,options:{activationConstraint:l}}=i;if(!r)return;const s=null!=(t=(0,o.DC)(e))?t:g,c=(0,o.$X)(r,s);if(!n&&l){if(ie(l)){if(null!=l.tolerance&&J(c,l.tolerance))return this.handleCancel();if(J(c,l.distance))return this.handleStart()}return oe(l)&&J(c,l.tolerance)?this.handleCancel():void this.handlePending(l,c)}e.cancelable&&e.preventDefault(),a(s)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===_.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const le={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class se extends ae{constructor(e){const{event:t}=e,n=(0,o.r3)(t.target);super(e,le,n)}}se.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button)&&(null==r||r({event:n}),!0)}}];const ce={move:{name:"mousemove"},end:{name:"mouseup"}};var ue;!function(e){e[e.RightClick=2]="RightClick"}(ue||(ue={}));(class extends ae{constructor(e){super(e,ce,(0,o.r3)(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==ue.RightClick&&(null==r||r({event:n}),!0)}}];const de={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var he,fe;function pe(e){let{acceleration:t,activator:n=he.Pointer,canScroll:i,draggingRect:a,enabled:l,interval:s=5,order:c=fe.TreeOrder,pointerCoordinates:u,scrollableAncestors:d,scrollableAncestorRects:h,delta:f,threshold:p}=e;const m=function(e){let{delta:t,disabled:n}=e;const r=(0,o.D9)(t);return(0,o.Gj)((e=>{if(n||!r||!e)return me;const i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[R.Backward]:e.x[R.Backward]||-1===i.x,[R.Forward]:e.x[R.Forward]||1===i.x},y:{[R.Backward]:e.y[R.Backward]||-1===i.y,[R.Forward]:e.y[R.Forward]||1===i.y}}}),[n,t,r])}({delta:f,disabled:!l}),[v,g]=(0,o.Yz)(),y=(0,r.useRef)({x:0,y:0}),x=(0,r.useRef)({x:0,y:0}),b=(0,r.useMemo)((()=>{switch(n){case he.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case he.DraggableRect:return a}}),[n,a,u]),w=(0,r.useRef)(null),C=(0,r.useCallback)((()=>{const e=w.current;if(!e)return;const t=y.current.x*x.current.x,n=y.current.y*x.current.y;e.scrollBy(t,n)}),[]),k=(0,r.useMemo)((()=>c===fe.TreeOrder?[...d].reverse():d),[c,d]);(0,r.useEffect)((()=>{if(l&&d.length&&b){for(const e of k){if(!1===(null==i?void 0:i(e)))continue;const n=d.indexOf(e),r=h[n];if(!r)continue;const{direction:o,speed:a}=V(e,r,b,t,p);for(const e of["x","y"])m[e][o[e]]||(a[e]=0,o[e]=0);if(a.x>0||a.y>0)return g(),w.current=e,v(C,s),y.current=a,void(x.current=o)}y.current={x:0,y:0},x.current={x:0,y:0},g()}else g()}),[t,C,i,g,l,s,JSON.stringify(b),JSON.stringify(m),v,d,k,h,JSON.stringify(p)])}(class extends ae{constructor(e){super(e,de)}static setup(){return window.addEventListener(de.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(de.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return!(i.length>1)&&(null==r||r({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(he||(he={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(fe||(fe={}));const me={x:{[R.Backward]:!1,[R.Forward]:!1},y:{[R.Backward]:!1,[R.Forward]:!1}};var ve,ge;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(ve||(ve={})),function(e){e.Optimized="optimized"}(ge||(ge={}));const ye=new Map;function xe(e,t){return(0,o.Gj)((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function be(e){let{callback:t,disabled:n}=e;const i=(0,o.zX)(t),a=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(i)}),[n]);return(0,r.useEffect)((()=>()=>null==a?void 0:a.disconnect()),[a]),a}function we(e){return new X(P(e),e)}function Ce(e,t,n){void 0===t&&(t=we);const[i,a]=(0,r.useState)(null);function l(){a((r=>{if(!e)return null;var i;if(!1===e.isConnected)return null!=(i=null!=r?r:n)?i:null;const o=t(e);return JSON.stringify(r)===JSON.stringify(o)?r:o}))}const s=function(e){let{callback:t,disabled:n}=e;const i=(0,o.zX)(t),a=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(i)}),[i,n]);return(0,r.useEffect)((()=>()=>null==a?void 0:a.disconnect()),[a]),a}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){l();break}}}}),c=be({callback:l});return(0,o.LI)((()=>{l(),e?(null==c||c.observe(e),null==s||s.observe(document.body,{childList:!0,subtree:!0})):(null==c||c.disconnect(),null==s||s.disconnect())}),[e]),i}const ke=[];function Ae(e,t){void 0===t&&(t=[]);const n=(0,r.useRef)(null);return(0,r.useEffect)((()=>{n.current=null}),t),(0,r.useEffect)((()=>{const t=e!==g;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?(0,o.$X)(e,n.current):g}function Se(e){return(0,r.useMemo)((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const Ee=[];function Ne(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return(0,o.Re)(t)?t:e}const Le=[{sensor:se,options:{}},{sensor:re,options:{}}],Me={current:{}},De={draggable:{measure:Z},droppable:{measure:Z,strategy:ve.WhileDragging,frequency:ge.Optimized},dragOverlay:{measure:P}};class Pe extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const Ze={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Pe,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:p},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:De,measureDroppableContainers:p,windowRect:null,measuringScheduled:!1},Be={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:p,draggableNodes:new Map,over:null,measureDroppableContainers:p},Te=(0,r.createContext)(Be),je=(0,r.createContext)(Ze);function Ie(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Pe}}}function Fe(e,t){switch(t.type){case f.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case f.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case f.DragEnd:case f.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case f.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new Pe(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case f.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const a=new Pe(e.droppable.containers);return a.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case f.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new Pe(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function Oe(e){let{disabled:t}=e;const{active:n,activatorEvent:i,draggableNodes:a}=(0,r.useContext)(Te),l=(0,o.D9)(i),s=(0,o.D9)(null==n?void 0:n.id);return(0,r.useEffect)((()=>{if(!t&&!i&&l&&null!=s){if(!(0,o.vd)(l))return;if(document.activeElement===l.target)return;const e=a.get(s);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=(0,o.so)(e);if(t){t.focus();break}}}))}}),[i,t,a,s,l]),null}function Re(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const We=(0,r.createContext)({...g,scaleX:1,scaleY:1});var ze;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(ze||(ze={}));const He=(0,r.memo)((function(e){var t,n,a,l;let{id:s,accessibility:u,autoScroll:d=!0,children:p,sensors:m=Le,collisionDetection:v=S,measuring:y,modifiers:x,...b}=e;const w=(0,r.useReducer)(Fe,void 0,Ie),[C,k]=w,[A,N]=function(){const[e]=(0,r.useState)((()=>new Set)),t=(0,r.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]);return[(0,r.useCallback)((t=>{let{type:n,event:r}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[e]),t]}(),[M,D]=(0,r.useState)(ze.Uninitialized),Z=M===ze.Initialized,{draggable:{active:I,nodes:F,translate:R},droppable:{containers:z}}=C,H=null!=I?F.get(I):null,V=(0,r.useRef)({initial:null,translated:null}),K=(0,r.useMemo)((()=>{var e;return null!=I?{id:I,data:null!=(e=null==H?void 0:H.data)?e:Me,rect:V}:null}),[I,H]),U=(0,r.useRef)(null),[G,Q]=(0,r.useState)(null),[J,q]=(0,r.useState)(null),_=(0,o.Ey)(b,Object.values(b)),$=(0,o.Ld)("DndDescribedBy",s),ee=(0,r.useMemo)((()=>z.getEnabled()),[z]),te=(ne=y,(0,r.useMemo)((()=>({draggable:{...De.draggable,...null==ne?void 0:ne.draggable},droppable:{...De.droppable,...null==ne?void 0:ne.droppable},dragOverlay:{...De.dragOverlay,...null==ne?void 0:ne.dragOverlay}})),[null==ne?void 0:ne.draggable,null==ne?void 0:ne.droppable,null==ne?void 0:ne.dragOverlay]));var ne;const{droppableRects:re,measureDroppableContainers:ie,measuringScheduled:oe}=function(e,t){let{dragging:n,dependencies:i,config:a}=t;const[l,s]=(0,r.useState)(null),{frequency:c,measure:u,strategy:d}=a,h=(0,r.useRef)(e),f=function(){switch(d){case ve.Always:return!1;case ve.BeforeDragging:return n;default:return!n}}(),p=(0,o.Ey)(f),m=(0,r.useCallback)((function(e){void 0===e&&(e=[]),p.current||s((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[p]),v=(0,r.useRef)(null),g=(0,o.Gj)((t=>{if(f&&!n)return ye;if(!t||t===ye||h.current!==e||null!=l){const t=new Map;for(let n of e){if(!n)continue;if(l&&l.length>0&&!l.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new X(u(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t}),[e,l,n,f,u]);return(0,r.useEffect)((()=>{h.current=e}),[e]),(0,r.useEffect)((()=>{f||m()}),[n,f]),(0,r.useEffect)((()=>{l&&l.length>0&&s(null)}),[JSON.stringify(l)]),(0,r.useEffect)((()=>{f||"number"!=typeof c||null!==v.current||(v.current=setTimeout((()=>{m(),v.current=null}),c))}),[c,f,m,...i]),{droppableRects:g,measureDroppableContainers:m,measuringScheduled:null!=l}}(ee,{dragging:Z,dependencies:[R.x,R.y],config:te.droppable}),ae=function(e,t){const n=null!=t?e.get(t):void 0,r=n?n.node.current:null;return(0,o.Gj)((e=>{var n;return null==t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(F,I),le=(0,r.useMemo)((()=>J?(0,o.DC)(J):null),[J]),se=function(){const e=!1===(null==G?void 0:G.autoScrollEnabled),t="object"==typeof d?!1===d.enabled:!1===d,n=Z&&!e&&!t;if("object"==typeof d)return{...d,enabled:n};return{enabled:n}}(),ce=function(e,t){return xe(e,t)}(ae,te.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:i,config:a=!0}=e;const l=(0,r.useRef)(!1),{x:s,y:c}="boolean"==typeof a?{x:a,y:a}:a;(0,o.LI)((()=>{if(!s&&!c||!t)return void(l.current=!1);if(l.current||!i)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const r=E(n(e),i);if(s||(r.x=0),c||(r.y=0),l.current=!0,Math.abs(r.x)>0||Math.abs(r.y)>0){const t=T(e);t&&t.scrollBy({top:r.y,left:r.x})}}),[t,s,c,i,n])}({activeNode:null!=I?F.get(I):null,config:se.layoutShiftCompensation,initialRect:ce,measure:te.draggable.measure});const ue=Ce(ae,te.draggable.measure,ce),de=Ce(ae?ae.parentElement:null),he=(0,r.useRef)({activatorEvent:null,active:null,activeNode:ae,collisionRect:null,collisions:null,droppableRects:re,draggableNodes:F,draggingNode:null,draggingNodeRect:null,droppableContainers:z,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),fe=z.getNodeFor(null==(t=he.current.over)?void 0:t.id),me=function(e){let{measure:t}=e;const[n,i]=(0,r.useState)(null),a=be({callback:(0,r.useCallback)((e=>{for(const{target:n}of e)if((0,o.Re)(n)){i((e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r}));break}}),[t])}),l=(0,r.useCallback)((e=>{const n=Ne(e);null==a||a.disconnect(),n&&(null==a||a.observe(n)),i(n?t(n):null)}),[t,a]),[s,c]=(0,o.wm)(l);return(0,r.useMemo)((()=>({nodeRef:s,rect:n,setRef:c})),[n,s,c])}({measure:te.dragOverlay.measure}),ge=null!=(n=me.nodeRef.current)?n:ae,we=Z?null!=(a=me.rect)?a:ue:null,Pe=Boolean(me.nodeRef.current&&me.rect),Ze=E(Be=Pe?null:ue,xe(Be));var Be;const He=Se(ge?(0,o.Jj)(ge):null),Ve=function(e){const t=(0,r.useRef)(e),n=(0,o.Gj)((n=>e?n&&n!==ke&&e&&t.current&&e.parentNode===t.current.parentNode?n:B(e):ke),[e]);return(0,r.useEffect)((()=>{t.current=e}),[e]),n}(Z?null!=fe?fe:ae:null),Ke=function(e,t){void 0===t&&(t=P);const[n]=e,i=Se(n?(0,o.Jj)(n):null),[a,l]=(0,r.useState)(Ee);function s(){l((()=>e.length?e.map((e=>W(e)?i:new X(t(e),e))):Ee))}const c=be({callback:s});return(0,o.LI)((()=>{null==c||c.disconnect(),s(),e.forEach((e=>null==c?void 0:c.observe(e)))}),[e]),a}(Ve),Ye=Re(x,{transform:{x:R.x-Ze.x,y:R.y-Ze.y,scaleX:1,scaleY:1},activatorEvent:J,active:K,activeNodeRect:ue,containerNodeRect:de,draggingNodeRect:we,over:he.current.over,overlayNodeRect:me.rect,scrollableAncestors:Ve,scrollableAncestorRects:Ke,windowRect:He}),Ue=le?(0,o.IH)(le,R):null,Ge=function(e){const[t,n]=(0,r.useState)(null),i=(0,r.useRef)(e),a=(0,r.useCallback)((e=>{const t=j(e.target);t&&n((e=>e?(e.set(t,O(t)),new Map(e)):null))}),[]);return(0,r.useEffect)((()=>{const t=i.current;if(e!==t){r(t);const o=e.map((e=>{const t=j(e);return t?(t.addEventListener("scroll",a,{passive:!0}),[t,O(t)]):null})).filter((e=>null!=e));n(o.length?new Map(o):null),i.current=e}return()=>{r(e),r(t)};function r(e){e.forEach((e=>{const t=j(e);null==t||t.removeEventListener("scroll",a)}))}}),[a,e]),(0,r.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>(0,o.IH)(e,t)),g):Y(e):g),[e,t])}(Ve),Xe=Ae(Ge),Qe=Ae(Ge,[ue]),Je=(0,o.IH)(Ye,Xe),qe=we?L(we,Ye):null,_e=K&&qe?v({active:K,collisionRect:qe,droppableRects:re,droppableContainers:ee,pointerCoordinates:Ue}):null,$e=function(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}(_e,"id"),[et,tt]=(0,r.useState)(null),nt=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(Pe?Ye:(0,o.IH)(Ye,Qe),null!=(l=null==et?void 0:et.rect)?l:null,ue),rt=(0,r.useRef)(null),it=(0,r.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==U.current)return;const o=F.get(U.current);if(!o)return;const a=e.nativeEvent,l=new n({active:U.current,activeNode:o,event:a,options:r,context:he,onAbort(e){if(!F.get(e))return;const{onDragAbort:t}=_.current,n={id:e};null==t||t(n),A({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!F.get(e))return;const{onDragPending:i}=_.current,o={id:e,constraint:t,initialCoordinates:n,offset:r};null==i||i(o),A({type:"onDragPending",event:o})},onStart(e){const t=U.current;if(null==t)return;const n=F.get(t);if(!n)return;const{onDragStart:r}=_.current,o={activatorEvent:a,active:{id:t,data:n.data,rect:V}};(0,i.unstable_batchedUpdates)((()=>{null==r||r(o),D(ze.Initializing),k({type:f.DragStart,initialCoordinates:e,active:t}),A({type:"onDragStart",event:o}),Q(rt.current),q(a)}))},onMove(e){k({type:f.DragMove,coordinates:e})},onEnd:s(f.DragEnd),onCancel:s(f.DragCancel)});function s(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:o}=he.current;let l=null;if(t&&o){const{cancelDrop:i}=_.current;if(l={activatorEvent:a,active:t,collisions:n,delta:o,over:r},e===f.DragEnd&&"function"==typeof i){await Promise.resolve(i(l))&&(e=f.DragCancel)}}U.current=null,(0,i.unstable_batchedUpdates)((()=>{k({type:e}),D(ze.Uninitialized),tt(null),Q(null),q(null),rt.current=null;const t=e===f.DragEnd?"onDragEnd":"onDragCancel";if(l){const e=_.current[t];null==e||e(l),A({type:t,event:l})}}))}}rt.current=l}),[F]),ot=(0,r.useCallback)(((e,t)=>(n,r)=>{const i=n.nativeEvent,o=F.get(r);if(null!==U.current||!o||i.dndKit||i.defaultPrevented)return;const a={active:o};!0===e(n,t.options,a)&&(i.dndKit={capturedBy:t.sensor},U.current=r,it(n,t))}),[F,it]),at=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,n)})))]}),[])),[e,t])}(m,ot);!function(e){(0,r.useEffect)((()=>{if(!o.Nq)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(m),(0,o.LI)((()=>{ue&&M===ze.Initializing&&D(ze.Initialized)}),[ue,M]),(0,r.useEffect)((()=>{const{onDragMove:e}=_.current,{active:t,activatorEvent:n,collisions:r,over:o}=he.current;if(!t||!n)return;const a={active:t,activatorEvent:n,collisions:r,delta:{x:Je.x,y:Je.y},over:o};(0,i.unstable_batchedUpdates)((()=>{null==e||e(a),A({type:"onDragMove",event:a})}))}),[Je.x,Je.y]),(0,r.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:o}=he.current;if(!e||null==U.current||!t||!o)return;const{onDragOver:a}=_.current,l=r.get($e),s=l&&l.rect.current?{id:l.id,rect:l.rect.current,data:l.data,disabled:l.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:o.x,y:o.y},over:s};(0,i.unstable_batchedUpdates)((()=>{tt(s),null==a||a(c),A({type:"onDragOver",event:c})}))}),[$e]),(0,o.LI)((()=>{he.current={activatorEvent:J,active:K,activeNode:ae,collisionRect:qe,collisions:_e,droppableRects:re,draggableNodes:F,draggingNode:ge,draggingNodeRect:we,droppableContainers:z,over:et,scrollableAncestors:Ve,scrollAdjustedTranslate:Je},V.current={initial:we,translated:qe}}),[K,ae,_e,qe,F,ge,we,re,z,et,Ve,Je]),pe({...se,delta:R,draggingRect:qe,pointerCoordinates:Ue,scrollableAncestors:Ve,scrollableAncestorRects:Ke});const lt=(0,r.useMemo)((()=>({active:K,activeNode:ae,activeNodeRect:ue,activatorEvent:J,collisions:_e,containerNodeRect:de,dragOverlay:me,draggableNodes:F,droppableContainers:z,droppableRects:re,over:et,measureDroppableContainers:ie,scrollableAncestors:Ve,scrollableAncestorRects:Ke,measuringConfiguration:te,measuringScheduled:oe,windowRect:He})),[K,ae,ue,J,_e,de,me,F,z,re,et,ie,Ve,Ke,te,oe,He]),st=(0,r.useMemo)((()=>({activatorEvent:J,activators:at,active:K,activeNodeRect:ue,ariaDescribedById:{draggable:$},dispatch:k,draggableNodes:F,over:et,measureDroppableContainers:ie})),[J,at,K,ue,k,$,F,et,ie]);return r.createElement(c.Provider,{value:N},r.createElement(Te.Provider,{value:st},r.createElement(je.Provider,{value:lt},r.createElement(We.Provider,{value:nt},p)),r.createElement(Oe,{disabled:!1===(null==u?void 0:u.restoreFocus)})),r.createElement(h,{...u,hiddenTextDescribedById:$}))})),Ve=(0,r.createContext)(null),Ke="button";function Ye(e){let{id:t,data:n,disabled:i=!1,attributes:a}=e;const l=(0,o.Ld)("Draggable"),{activators:s,activatorEvent:c,active:u,activeNodeRect:d,ariaDescribedById:h,draggableNodes:f,over:p}=(0,r.useContext)(Te),{role:m=Ke,roleDescription:v="draggable",tabIndex:g=0}=null!=a?a:{},y=(null==u?void 0:u.id)===t,x=(0,r.useContext)(y?We:Ve),[b,w]=(0,o.wm)(),[C,k]=(0,o.wm)(),A=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e}),{})),[e,t])}(s,t),S=(0,o.Ey)(n);(0,o.LI)((()=>(f.set(t,{id:t,key:l,node:b,activatorNode:C,data:S}),()=>{const e=f.get(t);e&&e.key===l&&f.delete(t)})),[f,t]);return{active:u,activatorEvent:c,activeNodeRect:d,attributes:(0,r.useMemo)((()=>({role:m,tabIndex:g,"aria-disabled":i,"aria-pressed":!(!y||m!==Ke)||void 0,"aria-roledescription":v,"aria-describedby":h.draggable})),[i,m,g,y,v,h.draggable]),isDragging:y,listeners:i?void 0:A,node:b,over:p,setNodeRef:w,setActivatorNodeRef:k,transform:x}}function Ue(){return(0,r.useContext)(je)}const Ge={timeout:25};function Xe(e){let{data:t,disabled:n=!1,id:i,resizeObserverConfig:a}=e;const l=(0,o.Ld)("Droppable"),{active:s,dispatch:c,over:u,measureDroppableContainers:d}=(0,r.useContext)(Te),h=(0,r.useRef)({disabled:n}),p=(0,r.useRef)(!1),m=(0,r.useRef)(null),v=(0,r.useRef)(null),{disabled:g,updateMeasurementsFor:y,timeout:x}={...Ge,...a},b=(0,o.Ey)(null!=y?y:i),w=be({callback:(0,r.useCallback)((()=>{p.current?(null!=v.current&&clearTimeout(v.current),v.current=setTimeout((()=>{d(Array.isArray(b.current)?b.current:[b.current]),v.current=null}),x)):p.current=!0}),[x]),disabled:g||!s}),C=(0,r.useCallback)(((e,t)=>{w&&(t&&(w.unobserve(t),p.current=!1),e&&w.observe(e))}),[w]),[k,A]=(0,o.wm)(C),S=(0,o.Ey)(t);return(0,r.useEffect)((()=>{w&&k.current&&(w.disconnect(),p.current=!1,w.observe(k.current))}),[k,w]),(0,r.useEffect)((()=>(c({type:f.RegisterDroppable,element:{id:i,key:l,disabled:n,node:k,rect:m,data:S}}),()=>c({type:f.UnregisterDroppable,key:l,id:i}))),[i]),(0,r.useEffect)((()=>{n!==h.current.disabled&&(c({type:f.SetDroppableDisabled,id:i,key:l,disabled:n}),h.current.disabled=n)}),[i,l,n,c]),{active:s,rect:m,isOver:(null==u?void 0:u.id)===i,node:k,over:u,setNodeRef:A}}function Qe(e){let{animation:t,children:n}=e;const[i,a]=(0,r.useState)(null),[l,s]=(0,r.useState)(null),c=(0,o.D9)(n);return n||i||!c||a(c),(0,o.LI)((()=>{if(!l)return;const e=null==i?void 0:i.key,n=null==i?void 0:i.props.id;null!=e&&null!=n?Promise.resolve(t(n,l)).then((()=>{a(null)})):a(null)}),[t,i,l]),r.createElement(r.Fragment,null,n,i?(0,r.cloneElement)(i,{ref:s}):null)}const Je={x:0,y:0,scaleX:1,scaleY:1};function qe(e){let{children:t}=e;return r.createElement(Te.Provider,{value:Be},r.createElement(We.Provider,{value:Je},t))}const _e={position:"fixed",touchAction:"none"},$e=e=>(0,o.vd)(e)?"transform 250ms ease":void 0,et=(0,r.forwardRef)(((e,t)=>{let{as:n,activatorEvent:i,adjustScale:a,children:l,className:s,rect:c,style:u,transform:d,transition:h=$e}=e;if(!c)return null;const f=a?d:{...d,scaleX:1,scaleY:1},p={..._e,width:c.width,height:c.height,top:c.top,left:c.left,transform:o.ux.Transform.toString(f),transformOrigin:a&&i?x(i,c):void 0,transition:"function"==typeof h?h(i):h,...u};return r.createElement(n,{className:s,style:p,ref:t},l)})),tt=e=>t=>{let{active:n,dragOverlay:r}=t;const i={},{styles:o,className:a}=e;if(null!=o&&o.active)for(const[e,t]of Object.entries(o.active))void 0!==t&&(i[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=o&&o.dragOverlay)for(const[e,t]of Object.entries(o.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[e,t]of Object.entries(i))n.node.style.setProperty(e,t);null!=a&&a.active&&n.node.classList.remove(a.active)}},nt={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:o.ux.Transform.toString(t)},{transform:o.ux.Transform.toString(n)}]},sideEffects:tt({styles:{active:{opacity:"0"}}})};function rt(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return(0,o.zX)(((e,a)=>{if(null===t)return;const l=n.get(e);if(!l)return;const s=l.node.current;if(!s)return;const c=Ne(a);if(!c)return;const{transform:u}=(0,o.Jj)(a).getComputedStyle(a),d=M(u);if(!d)return;const h="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:i}={...nt,...e};return e=>{let{active:o,dragOverlay:a,transform:l,...s}=e;if(!t)return;const c={x:a.rect.left-o.rect.left,y:a.rect.top-o.rect.top},u={scaleX:1!==l.scaleX?o.rect.width*l.scaleX/a.rect.width:1,scaleY:1!==l.scaleY?o.rect.height*l.scaleY/a.rect.height:1},d={x:l.x-c.x,y:l.y-c.y,...u},h=i({...s,active:o,dragOverlay:a,transform:{initial:l,final:d}}),[f]=h,p=h[h.length-1];if(JSON.stringify(f)===JSON.stringify(p))return;const m=null==r?void 0:r({active:o,dragOverlay:a,...s}),v=a.node.animate(h,{duration:t,easing:n,fill:"forwards"});return new Promise((e=>{v.onfinish=()=>{null==m||m(),e()}}))}}(t);return U(s,i.draggable.measure),h({active:{id:e,data:l.data,node:s,rect:i.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:a,rect:i.dragOverlay.measure(c)},droppableContainers:r,measuringConfiguration:i,transform:d})}))}let it=0;function ot(e){return(0,r.useMemo)((()=>{if(null!=e)return it++,it}),[e])}const at=r.memo((e=>{let{adjustScale:t=!1,children:n,dropAnimation:i,style:o,transition:a,modifiers:l,wrapperElement:s="div",className:c,zIndex:u=999}=e;const{activatorEvent:d,active:h,activeNodeRect:f,containerNodeRect:p,draggableNodes:m,droppableContainers:v,dragOverlay:g,over:y,measuringConfiguration:x,scrollableAncestors:b,scrollableAncestorRects:w,windowRect:C}=Ue(),k=(0,r.useContext)(We),A=ot(null==h?void 0:h.id),S=Re(l,{activatorEvent:d,active:h,activeNodeRect:f,containerNodeRect:p,draggingNodeRect:g.rect,over:y,overlayNodeRect:g.rect,scrollableAncestors:b,scrollableAncestorRects:w,transform:k,windowRect:C}),E=xe(f),N=rt({config:i,draggableNodes:m,droppableContainers:v,measuringConfiguration:x}),L=E?g.setRef:void 0;return r.createElement(qe,null,r.createElement(Qe,{animation:N},h&&A?r.createElement(et,{key:A,id:h.id,ref:L,as:s,activatorEvent:d,adjustScale:t,className:c,transition:a,rect:E,style:{zIndex:u,...o},transform:S},n):null))}))},18257:function(e,t,n){"use strict";n.d(t,{DL:function(){return r}});n(35241);const r=e=>{let{transform:t}=e;return{...t,x:0}}},19719:function(e,t,n){"use strict";n.d(t,{Fo:function(){return p},Rp:function(){return a},U2:function(){return c},nB:function(){return w},qw:function(){return d}});var r=n(59301),i=n(87954),o=n(35241);function a(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function l(e,t){return e.reduce(((e,n,r)=>{const i=t.get(n);return i&&(e[r]=i),e}),Array(e.length))}function s(e){return null!==e&&e>=0}const c=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=a(t,r,n),l=t[i],s=o[i];return s&&l?{x:s.left-l.left,y:s.top-l.top,scaleX:s.width/l.width,scaleY:s.height/l.height}:null},u={scaleX:1,scaleY:1},d=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:i,rects:o,overIndex:a}=e;const l=null!=(t=o[n])?t:r;if(!l)return null;if(i===n){const e=o[a];return e?{x:0,y:n<a?e.top+e.height-(l.top+l.height):e.top-l.top,...u}:null}const s=function(e,t,n){const r=e[t],i=e[t-1],o=e[t+1];if(!r)return 0;if(n<t)return i?r.top-(i.top+i.height):o?o.top-(r.top+r.height):0;return o?o.top-(r.top+r.height):i?r.top-(i.top+i.height):0}(o,i,n);return i>n&&i<=a?{x:0,y:-l.height-s,...u}:i<n&&i>=a?{x:0,y:l.height+s,...u}:{x:0,y:0,...u}};const h="Sortable",f=r.createContext({activeIndex:-1,containerId:h,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:c,disabled:{draggable:!1,droppable:!1}});function p(e){let{children:t,id:n,items:a,strategy:s=c,disabled:u=!1}=e;const{active:d,dragOverlay:p,droppableRects:m,over:v,measureDroppableContainers:g}=(0,i.Cj)(),y=(0,o.Ld)(h,n),x=Boolean(null!==p.rect),b=(0,r.useMemo)((()=>a.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[a]),w=null!=d,C=d?b.indexOf(d.id):-1,k=v?b.indexOf(v.id):-1,A=(0,r.useRef)(b),S=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(b,A.current),E=-1!==k&&-1===C||S,N=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(u);(0,o.LI)((()=>{S&&w&&g(b)}),[S,b,w,g]),(0,r.useEffect)((()=>{A.current=b}),[b]);const L=(0,r.useMemo)((()=>({activeIndex:C,containerId:y,disabled:N,disableTransforms:E,items:b,overIndex:k,useDragOverlay:x,sortedRects:l(b,m),strategy:s})),[C,y,N.draggable,N.droppable,E,b,k,m,x,s]);return r.createElement(f.Provider,{value:L},t)}const m=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return a(n,r,i).indexOf(t)},v=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:o,newIndex:a,previousItems:l,previousContainerId:s,transition:c}=e;return!(!c||!r)&&((l===o||i!==a)&&(!!n||a!==i&&t===s))},g={duration:200,easing:"ease"},y="transform",x=o.ux.Transition.toString({property:y,duration:0,easing:"linear"}),b={roleDescription:"sortable"};function w(e){let{animateLayoutChanges:t=v,attributes:n,disabled:a,data:l,getNewIndex:c=m,id:u,strategy:d,resizeObserverConfig:h,transition:p=g}=e;const{items:w,containerId:C,activeIndex:k,disabled:A,disableTransforms:S,sortedRects:E,overIndex:N,useDragOverlay:L,strategy:M}=(0,r.useContext)(f),D=function(e,t){var n,r;if("boolean"==typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(a,A),P=w.indexOf(u),Z=(0,r.useMemo)((()=>({sortable:{containerId:C,index:P,items:w},...l})),[C,l,P,w]),B=(0,r.useMemo)((()=>w.slice(w.indexOf(u))),[w,u]),{rect:T,node:j,isOver:I,setNodeRef:F}=(0,i.Zj)({id:u,data:Z,disabled:D.droppable,resizeObserverConfig:{updateMeasurementsFor:B,...h}}),{active:O,activatorEvent:R,activeNodeRect:W,attributes:z,setNodeRef:H,listeners:V,isDragging:K,over:Y,setActivatorNodeRef:U,transform:G}=(0,i.O1)({id:u,data:Z,attributes:{...b,...n},disabled:D.draggable}),X=(0,o.HB)(F,H),Q=Boolean(O),J=Q&&!S&&s(k)&&s(N),q=!L&&K,_=q&&J?G:null,$=J?null!=_?_:(null!=d?d:M)({rects:E,activeNodeRect:W,activeIndex:k,overIndex:N,index:P}):null,ee=s(k)&&s(N)?c({id:u,items:w,activeIndex:k,overIndex:N}):P,te=null==O?void 0:O.id,ne=(0,r.useRef)({activeId:te,items:w,newIndex:ee,containerId:C}),re=w!==ne.current.items,ie=t({active:O,containerId:C,isDragging:K,isSorting:Q,id:u,index:P,items:w,newIndex:ne.current.newIndex,previousItems:ne.current.items,previousContainerId:ne.current.containerId,transition:p,wasDragging:null!=ne.current.activeId}),oe=function(e){let{disabled:t,index:n,node:a,rect:l}=e;const[s,c]=(0,r.useState)(null),u=(0,r.useRef)(n);return(0,o.LI)((()=>{if(!t&&n!==u.current&&a.current){const e=l.current;if(e){const t=(0,i.VK)(a.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&c(n)}}n!==u.current&&(u.current=n)}),[t,n,a,l]),(0,r.useEffect)((()=>{s&&c(null)}),[s]),s}({disabled:!ie,index:P,node:j,rect:T});return(0,r.useEffect)((()=>{Q&&ne.current.newIndex!==ee&&(ne.current.newIndex=ee),C!==ne.current.containerId&&(ne.current.containerId=C),w!==ne.current.items&&(ne.current.items=w)}),[Q,ee,C,w]),(0,r.useEffect)((()=>{if(te===ne.current.activeId)return;if(te&&!ne.current.activeId)return void(ne.current.activeId=te);const e=setTimeout((()=>{ne.current.activeId=te}),50);return()=>clearTimeout(e)}),[te]),{active:O,activeIndex:k,attributes:z,data:Z,rect:T,index:P,newIndex:ee,items:w,isOver:I,isSorting:Q,isDragging:K,listeners:V,node:j,overIndex:N,over:Y,setNodeRef:X,setActivatorNodeRef:U,setDroppableNodeRef:F,setDraggableNodeRef:H,transform:null!=oe?oe:$,transition:function(){if(oe||re&&ne.current.newIndex===P)return x;if(q&&!(0,o.vd)(R)||!p)return;if(Q||ie)return o.ux.Transition.toString({...p,property:y});return}()}}i.g4.Down,i.g4.Right,i.g4.Up,i.g4.Left},35241:function(e,t,n){"use strict";n.d(t,{$X:function(){return A},D9:function(){return x},DC:function(){return E},Ey:function(){return v},FJ:function(){return a},Gj:function(){return g},HB:function(){return i},IH:function(){return k},Jj:function(){return s},LI:function(){return f},Ld:function(){return w},Nq:function(){return o},Re:function(){return u},UG:function(){return l},Yz:function(){return m},qk:function(){return c},r3:function(){return h},so:function(){return M},ux:function(){return N},vZ:function(){return d},vd:function(){return S},wm:function(){return y},zX:function(){return p}});var r=n(59301);function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)((()=>e=>{t.forEach((t=>t(e)))}),t)}const o="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function a(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function l(e){return"nodeType"in e}function s(e){var t,n;return e?a(e)?e:l(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function c(e){const{Document:t}=s(e);return e instanceof t}function u(e){return!a(e)&&e instanceof s(e).HTMLElement}function d(e){return e instanceof s(e).SVGElement}function h(e){return e?a(e)?e.document:l(e)?c(e)?e:u(e)||d(e)?e.ownerDocument:document:document:document}const f=o?r.useLayoutEffect:r.useEffect;function p(e){const t=(0,r.useRef)(e);return f((()=>{t.current=e})),(0,r.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}function m(){const e=(0,r.useRef)(null);return[(0,r.useCallback)(((t,n)=>{e.current=setInterval(t,n)}),[]),(0,r.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}function v(e,t){void 0===t&&(t=[e]);const n=(0,r.useRef)(e);return f((()=>{n.current!==e&&(n.current=e)}),t),n}function g(e,t){const n=(0,r.useRef)();return(0,r.useMemo)((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function y(e){const t=p(e),n=(0,r.useRef)(null),i=(0,r.useCallback)((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,i]}function x(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e}),[e]),t.current}let b={};function w(e,t){return(0,r.useMemo)((()=>{if(t)return t;const n=null==b[e]?0:b[e]+1;return b[e]=n,e+"-"+n}),[e,t])}function C(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,i]of r){const r=t[n];null!=r&&(t[n]=r+e*i)}return t}),{...t})}}const k=C(1),A=C(-1);function S(e){if(!e)return!1;const{KeyboardEvent:t}=s(e.target);return t&&e instanceof t}function E(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=s(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const N=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[N.Translate.toString(e),N.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),L="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function M(e){return e.matches(L)?e:e.querySelector(L)}},24433:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},r=null,i=!1,o=!1,a=null,l=!1,s=null,c=null,u=0;u<arguments.length;u++){var d=arguments[u];if(null!==d)switch(_typeof(d)){case"number":t=d.toFixed(1);break;case"string":d.match(new RegExp("^[0-9]\\.[0-9]+$"))?t=d:a=d;break;case"object":void 0!==d.is3D?r=d:n=d;break;case"boolean":i=d,o=!0}}null===r&&(r={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},void 0===n.material_id||o||(i=!0)),null!==a&&void 0===n.id&&(n.id=a);var h="",f=!1,p=null,m=null,v=null,g=!1,y=null,x=null,b=null;void 0!==n.height&&(n.height=Math.round(n.height)),void 0!==n.width&&(n.width=Math.round(n.width));var w=function(e){return parseFloat(e)>4?parseFloat(e):5};function C(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,F(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(s=e,I(e,t))},e.getHTML5CodebaseVersion=function(){return m},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){b=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var r,i="auto",o=n.id,a=!1,s=0;s<arguments.length;s++){var c=arguments[s];"string"==typeof c?(c=c.toLowerCase()).match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?i=c:o=arguments[s]:"boolean"==typeof c?a=c:c instanceof HTMLElement&&(r=c)}function u(){if(l){i=T(i);var s=r||document.getElementById(o);if(s)if(e.removeExistingApplet(s,!1),void 0===n.width&&s.clientWidth&&(n.width=s.clientWidth),void 0===n.height&&s.clientHeight&&(n.height=s.clientHeight),n.width&&n.height||"html5"!==i||(delete n.width,delete n.height),p=i,"screenshot"===i)M(s,n);else{var c=!1;n.hasOwnProperty("playButton")&&n.playButton||n.hasOwnProperty("clickToLoad")&&n.clickToLoad?c=!0:n.hasOwnProperty("playButtonAutoDecide")&&n.playButtonAutoDecide&&(c=(!C()||t())&&k()),c?(p="screenshot",P(s,n,a,i)):L(s,n,a)}else console.log("possibly bug on ajax loading? ")}else setTimeout(u,200)}u()},e.getViews=function(){return r},e.isJavaInstalled=function(){return!1};var A=function(t){var i=function(){n.onError&&n.onError(),O("Error: Fetching material (id "+n.material_id+") failed.",n)},o=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",a="/materials/"+n.material_id+"?scope=basic";E("https://"+o+"/api/proxy.php?path="+encodeURIComponent(a),(function(o){var a=JSON.parse(o),l=a.elements?a.elements.filter((function(e){return"G"==e.type||"E"==e.type}))[0]:a;if(l&&l.url){n.fileName=l.url,S(l.settings||{}),r.is3D=!0;var s="https://www.geogebra.org/images/";e.setPreviewImage(y||l.previewUrl,s+"GeoGebra_loading.png",s+"applet_play.png"),t()}else i()}),i)};function S(e){["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach((function(t){e[t]=!!e[t]})),["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"].forEach((function(t){void 0===n[t]&&void 0!==e[t]&&(n[t]=e[t])})),void 0===n.showToolBarHelp&&(n.showToolBarHelp=n.showToolBar)}function E(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.onload=function(){t(r.responseText)},r.onerror=n,r.send()}e.isHTML5Installed=function(){return!0},e.getLoadedAppletType=function(){return p},e.setPreviewImage=function(e,t,n){y=e,x=t,n},e.removeExistingApplet=function(e,t){var r;"string"==typeof e&&(e=document.getElementById(e)),p=null;var i=null;for(r=0;r<e.childNodes.length;r++){var o=e.childNodes[r],a=o.className;"applet_screenshot"===a?t?(o.style.display="block",p="screenshot"):o.style.display="none":"applet_scaler prerender"!==a&&(e.removeChild(o),i=a&&-1!=a.indexOf("appletParameters")?o.id:null,r--)}var l=void 0!==n.id?n.id:i,s=window[l];s&&"function"==typeof s.getBase64&&(s.remove(),window[l]=null)},e.refreshHitPoints=function(){if(w(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var N=function(e){return e&&"false"!==e},L=function(t,n,r){w(m)<=4.2&&(r=!0);var i=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==m||ggbHTML5LoadedCodebaseIsWebSimple&&!g)&&(i=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var o=document.createElement("div");o.classList.add("appletParameters","notranslate");var a=n.width,l=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(w(m)<=4.4)N(n.showToolBar)&&(n.height-=7),N(n.showAlgebraInput)&&(n.height-=37),n.width<605&&N(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(N(n.showToolBar)||N(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=N(n.showMenuBar)?245:155),a<u&&(n.width=u,a=u)}for(var d in o.style.border="none",o.style.display="inline-block",n)n.hasOwnProperty(d)&&"appletOnLoad"!==d&&o.setAttribute("data-param-"+d,n[d]);b&&o.setAttribute("data-param-fontscssurl",b),e.resize=function(){GGBAppletUtils.responsiveResize(t,n)},window.addEventListener("resize",(function(t){e.resize()}));var f="function"==typeof n.appletOnLoad?n.appletOnLoad:function(){};if(r||void 0===n.width){var p=document.createElement("div");p.className="applet_scaler",p.style.position="relative",p.style.display="block",p.appendChild(o),t.appendChild(p),n.appletOnLoad=function(t){e.resize(),f(t)}}else{n.hasOwnProperty("showSplash")||o.setAttribute("data-param-showSplash","false");var y=t.querySelector(".applet_scaler.prerender"),x=null!==y;if(x)C=y.querySelector(".ggb_preview");else{var C=B(a,l,n.borderColor,!1);(y=document.createElement("div")).className="applet_scaler",y.style.position="relative",y.style.display="block",y.style.width=a+"px",y.style.height=l+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(y,"66%"),w(m)>=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(y),window.GGBT_wsf_view&&$(window).trigger("resize"),f(e)},x||y.appendChild(C)):o.appendChild(C),y.appendChild(o),x||t.appendChild(y),setTimeout((function(){e.resize()}),1)}function k(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),O("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function A(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){k(e.article,e.params)})),html5AppletsToProcess=null)},w(m)<5&&(e.className+=" geogebraweb")):k(e,t)}if(i){scriptLoadStarted=!0;for(var S=0;S<o.childNodes.length;S++){"TABLE"===o.childNodes[S].tagName&&(o.removeChild(o.childNodes[S]),S--)}if(null!==ggbHTML5LoadedScript){var E=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');null!=E&&E.parentNode.removeChild(E)}var L=document.createElement("script"),M=function(){A(o,n)};L.src=h+v,ggbHTML5LoadedCodebaseIsWebSimple=g,ggbHTML5LoadedCodebaseVersion=m,ggbHTML5LoadedScript=L.src,O("GeoGebra HTML5 codebase loaded: '"+h+"'.",n),c||s&&"5.0"!=s?h.requirejs?__webpack_require__.e(5178).then(function(){var e=[__webpack_require__(95178)];M.apply(null,e)}.bind(this)).catch(__webpack_require__.oe):(L.onload=M,t.appendChild(L)):(g?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),M())}else A(o,n);n.height=l,n.width=a},M=function(t,n,r){var i=B(n.width,n.height,n.borderColor,r),o=document.createElement("div");o.style.position="relative",o.style.display="block",o.style.width=n.width+"px",o.style.height=n.height+"px",o.className="applet_screenshot applet_scaler"+(r?" applet_screenshot_play":""),o.appendChild(i);var a=GGBAppletUtils.getScale(n,t,r);r?(t.appendChild(Z()),window.GGBT_wsf_view||(t.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(o,"66%"),t.appendChild(o),1===a||isNaN(a)||(GGBAppletUtils.scaleElement(o,a),o.style.width=n.width+"px",o.style.height=n.height+"px",o.parentNode.style.width=n.width*a+"px",o.parentNode.style.height=n.height*a+"px"),e.resize=function(){D(t,i,o,r)},window.addEventListener("resize",(function(t){e.resize()})),e.resize()};function D(e,t,r,i){if(e.contains(t)){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if("fullscreencontent"!==e.id)return;window.GGBT_wsf_view.setCloseBtnPosition(e)}var o=GGBAppletUtils.getScale(n,e,i);null!==r.parentNode&&(isNaN(o)||1===o?(GGBAppletUtils.scaleElement(r,1),r.parentNode.style.width=n.width+"px",r.parentNode.style.height=n.height+"px"):(GGBAppletUtils.scaleElement(r,o),r.parentNode.style.width=n.width*o+"px",r.parentNode.style.height=n.height*o+"px")),"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(e),"object"===_typeof(window.GGBT_ws_header_footer)&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}e.onExitFullscreen=function(e,t){t.appendChild(e)};var P=function(e,t,n,r){M(e,t,!0);for(var i=function(){var n=[];for(a=0;a<e.childNodes.length;a++)n.push(e.childNodes[a]);if(window.GGBT_wsf_view){var i=window.GGBT_wsf_view.renderFullScreen(e,t.id),o=document.getElementById("fullscreencontainer"),l=jQuery(e).find(".fullscreencontent");l.length>0?(i.remove(),l.attr("id","fullscreencontent").show(),jQuery(o).append(l),window.dispatchEvent(new Event("resize"))):L(i,t,!1),window.GGBT_wsf_view.launchFullScreen(o)}else p=r,L(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;a<n.length;a++)e.removeChild(n[a])},o=e.getElementsByClassName("ggb_preview_play"),a=0;a<o.length;a++)o[a].addEventListener("click",i,!1),o[a].addEventListener("ontouchstart",i,!1);"function"==typeof window.ggbAppletPlayerOnload&&window.ggbAppletPlayerOnload(e),k()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Z=function(){var e=document.createElement("div");if(e.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var t='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',n=document.createElement("style");n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t)),document.getElementsByTagName("head")[0].appendChild(n)}return e},B=function(e,t,n,r){var i=document.createElement("div");i.className="ggb_preview",i.style.position="absolute",i.style.zIndex="90",i.style.width=e-2+"px",i.style.height=t-2+"px",i.style.top="0px",i.style.left="0px",i.style.overflow="hidden",i.style.backgroundColor="white";var o="lightgrey";void 0!==n&&(o="none"===n?"transparent":n),i.style.border="1px solid "+o;var a,l,s,c=document.createElement("img");if((c.style.position="relative",c.style.zIndex="1000",c.style.top="-1px",c.style.left="-1px",null!==y&&c.setAttribute("src",y),c.style.opacity=.7,null!==x)&&!r){(a=document.createElement("img")).style.position="absolute",a.style.zIndex="1001",a.style.opacity=1,c.style.opacity=.3,(l=360)>e/4*3&&(l=e/4*3),s=l/5.8,a.setAttribute("src",x),a.setAttribute("width",l),a.setAttribute("height",s);var u=(e-l)/2,d=(t-s)/2;a.style.left=u+"px",a.style.top=d+"px",i.appendChild(a)}return i.appendChild(c),i},T=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},j=["web","webSimple","web3d","tablet","tablet3d","phone"],I=function(e,t){if(m=e,t)F(m,!0);else{var o,a,l=!i;if(l){var s=w(m);!isNaN(s)&&s<4.4&&(l=!1)}o="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=m.indexOf("//");for(var u in a=c>0?m:0===c?o+m:"https://www.geogebra.org/apps/5.2.814.0/",j)if(m.slice(-1*j[u].length)===j[u]||m.slice(-1*(j[u].length+1))===j[u]+"/")return void F(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||r.is3D||r.AV||r.SV||r.CV||r.EV2||r.CP||r.PC||r.DA||r.FI||r.PV||N(n.showToolBar)||N(n.showMenuBar)||N(n.showAlgebraInput)||N(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",F(a,!1)}},F=function(e,t){if(e.requirejs)h=e;else{"/"!==e.slice(-1)&&(e+="/"),h=e,null===t&&(t=-1===e.indexOf("http")),f=t,v="web.nocache.js",g=!1;var n=h.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?j.indexOf(n[n.length-2])>=0&&(v=n[n.length-2]+".nocache.js"):(v="webSimple.nocache.js",g=!0)),n=e.split("/"),"test"===(m=n[n.length-3]).substr(0,4)?m=m.substr(4,1)+"."+m.substr(5,1):"war"!==m.substr(0,3)&&"beta"!==m.substr(0,4)||(m="5.0");var r=parseFloat(m);NaN!==r&&r<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+r+" is deprecated. Using version latest instead."),I("5.0",t))}},O=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function R(){var e=t;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),I(e,!1),null!==c&&F(c,f),l=!0}return void 0!==n.material_id?A(R):R(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,r,i){if(e.isScreenshoGenerator)return 1;var o,a=void 0!==r&&r,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(o=e.autoHeight)&&"false"!==o,c=function(e,t,n,r,i,o){var a=null;if(null!=o&&""!=o)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+o+" ")>-1){a=l;break}l=l.parentNode}var s=0,c=0,u=0,d=0,h=0,f=0,p=0;if(a)s=a.offsetWidth,c=Math.max(r?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=s):(s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var m=e.getBoundingClientRect();m.left>0&&m.left<=s&&(void 0===i||!i)&&("rtl"===document.dir?(h=s-m.width-m.left,f=u<=480?10:30):(f=m.left,h=u<=480?10:30),d=f+h)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(d=40,p=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,p=40))}return e&&((void 0===n||!n)&&t>0&&t+d<s?s=t:s-=d,"object"!==_typeof(window.GGBT_wsf_view)||!window.GGBT_wsf_view.isFullscreen()||void 0!==n&&n||(c-=p)),{width:s,height:c}}(t,e.width,n,s,a&&window.GGBT_wsf_view||l,i),u=parseInt(c.width),d=e.width,h=e.height;if(void 0===d){var f=t.querySelector(".appletParameters");f&&(d=f.offsetWidth,h=f.offsetHeight)}var p=u/d,m=a?1:c.height/h;return void 0===n||n||(p=Math.min(1,p),m=Math.min(1,m)),Math.min(p,m)}function r(e,t,r){var i,o=1,a=!1;return e.hasOwnProperty("allowUpscale")&&(a=e.allowUpscale),e.hasOwnProperty("scale")&&(o=parseFloat(e.scale),(isNaN(o)||null===o||0===o)&&(o=1),o>1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?o:(i=n(e,t,a,r,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==o?Math.min(o,i):i)}function i(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),r=e.getBoundingClientRect(),i=(t-r.width)/2,o=(n-r.height)/2;o<0&&(o=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=i<40?"40px":i+"px",e.style.top=o+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=o<40?"40px":o+"px",e.style.left=i+"px")}return{responsiveResize:function(n,o){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(o.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var l=r(o,n);e()&&a.setAttribute("data-param-scale",l);for(var s=null,c=0;c<n.childNodes.length;c++)if(void 0!==n.childNodes[c].className&&n.childNodes[c].className.match(/^applet_scaler/)){s=n.childNodes[c];break}if(null!==s&&null!==s.querySelector(".noscale"))return;var u=void 0!==o.id?o.id:"ggbApplet",d=window[u];null!=d&&d.recalculateEnvironments||null===s||s.className.match(/fullscreen/)||(s.parentNode.style.transform="",isNaN(l)||1===l?(t(s,1),s.parentNode.style.width=o.width+"px",s.parentNode.style.height=o.height+"px"):(s.parentNode.style.width=o.width*l+"px",s.parentNode.style.height=o.height*l+"px",t(s,l))),"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&i(n),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(a).parents(".content-added-content"))}},isFlexibleWorksheetEditor:e,positionCenter:i,getScale:r,scaleElement:t}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var e=n.location.search;return-1!=e.indexOf(J)||-1!=e.indexOf(K)}function q(e,t){}q(H,I),webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{},t;function u(){return v(),t}function v(){if(!t){var e=o.createElement(Q);if(e.id=L,e.style.cssText=R+S,e.tabIndex=-1,o.body.appendChild(e),t=e.contentWindow.document,-1==navigator.userAgent.indexOf(T)){t.open();var n=document.compatMode==U?V:W;t.write(n+X),t.close()}}}function w(e){q(cb,eb),function(e){function t(){return _typeof(o.readyState)==Y?_typeof(o.body)!=Y&&null!=o.body:/loaded|complete/.test(o.readyState)}var n=t();if(n)e();else{o.addEventListener&&o.addEventListener(Z,i,!1);var r=setInterval((function(){i()}),$)}function i(){if(!n){if(!t())return;n=!0,e(),o.removeEventListener&&o.removeEventListener(Z,i,!1),r&&clearInterval(r)}}}((function(){var t,n,r,i;t=e,n=u(),r=n.body,(i=n.createElement(_)).language=ab,i.crossOrigin=W,i.src=t,webModule.__errFn&&(i.onerror=function(){webModule.__errFn(L,new Error(bb+t))}),r.appendChild(i),q(cb,db)}))}function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var r=e.lastIndexOf(tb,Math.min(n,t));return r>=O?e.substring(O,r+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;n<t.length;++n)if(-1!=t[n].src.indexOf(xb))return e(t[n].src);return W}()),n==W&&(n=function(){var e=o.getElementsByTagName(yb);return e.length>O?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,i=[],o=[];function a(e){var t=o[e](),n=i[e];if(t in n)return t;var a=[];for(var l in n)a[n[l]]=l;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in i[e]},webModule.__getPropMap=function(){var e={};for(var t in i)i.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},r=e[webModule.__softPermutationId],i=O;i<r.length;i++){var o=r[i];n[o[O]]=o[P]}return n}},webModule.__startLoadingFragment=function(e){return C(e)},webModule.__installRunAsyncCode=function(e){var t=u(),n=t.body,r=t.createElement(_);r.language=ab,r.text=e,n.appendChild(r),n.removeChild(r)},A(),webModule.__moduleBase="/react/build/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},"function"!=typeof window.web3d&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),"function"!=typeof window.webSimple&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet}else console.warn("deployggb.js was loaded twice")})()},20337:function(e,t,n){"use strict";function r(e){var t=!0;if(e.length>0){for(var n=0;n<e.length;n++)if(0==e[n].compile_success||!e[n].compile_success){t=!1;break}}else t=!1;return t}function i(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[],r=0;r<e.length;r++){var i=e[r],o=t?"".concat(t,"/").concat(i.name):"".concat(i.name);n.push({title:i.name,type:i.type,isLeaf:"tree"!==i.type,key:o})}return n}function o(e,t,n){for(var r=0;r<e.length;r++){var i=e[r];if(i.key===t){i.children=n;break}i.children&&o(i.children,t,n)}return e}function a(e,t,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||e.apply(i,o)},l=n&&!r;clearTimeout(r),r=setTimeout(a,t),l&&e.apply(i,o)}}n.d(t,{Ax:function(){return o},Ds:function(){return a},KI:function(){return l},SI:function(){return i},f1:function(){return r}});var l=n(6816).Z.API_SERVER},17086:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(7557),i=n.n(r),o=n(41498),a=n.n(o),l=n(79800),s=n.n(l),c=n(59301),u="imageDimensions___a7crR",d="img___Kroat",h="fullWidth___c492T",f=n(92310),p=n.n(f),m=n(29787),v=n(2859),g=n(67310),y=n(32985),x=n(37712),b=function(e){var t=e.data,n=e.className,r=e.fullWidth,o=e.style,l=void 0===o?{}:o,f=e.onClose,b=e.onOk,w=e.showFullTools,C=e.noAssociationId,k=(0,c.useRef)(null),A=(0,c.useRef)(null),S=(0,c.useRef)(null),E=(0,c.useRef)(null),N=(0,c.useState)(!1),L=s()(N,2),M=L[0],D=L[1],P=(0,c.useState)("正在加载中"),Z=s()(P,2),B=Z[0],T=Z[1];(0,c.useEffect)((function(){return S.current||(S.current=document.createElement("style"),document.head.appendChild(S.current)),null!=t&&t.visible?(document.body.setAttribute("data-custom","y-hidden"),S.current.innerHTML=" html { overflow-y: hidden; }",null!=t&&t.src&&j()):(document.body.removeAttribute("data-custom"),S.current&&(document.head.removeChild(S.current),S.current=null)),function(){document.body.removeAttribute("data-custom"),S.current&&(document.head.removeChild(S.current),S.current=null)}}),[null==t?void 0:t.visible]);var j=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return D(!0),T("正在加载中"),e.next=4,(0,y.ZJ)(null==t?void 0:t.src);case 4:n=e.sent,k.current.src="",k.current.src=n,k.current.onload=function(){F()},D(!1),T("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=a()(i()().mark((function e(n){var r;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return D(!0),T("正在保存中"),e.next=4,(0,g.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:t.title,file:n.dataUrl}});case 4:if(null==(r=e.sent)||!r.id||C){e.next=12;break}return e.next=8,(0,g.ZP)("/api/attachments/".concat(t.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==r?void 0:r.id,settings:JSON.stringify(n.state)}});case 8:0===e.sent.status&&b(),e.next=13;break;case 12:null!=r&&r.id&&b(r);case 13:D(!1),T("");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),F=function(){A.current=new v.hP(k.current),A.current.targetRoot=E.current,A.current.addEventListener("render",I),A.current.addEventListener("beforeclose",f),w&&(A.current.availableMarkerTypes=A.current.ALL_MARKER_TYPES,A.current.uiStyleSettings.redoButtonVisible=!0,A.current.uiStyleSettings.notesButtonVisible=!0,A.current.uiStyleSettings.zoomButtonVisible=!0,A.current.uiStyleSettings.zoomOutButtonVisible=!0,A.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=A.current.uiStyleSettings,A.current.show(),null!=t&&t.snapshotData&&A.current.restoreState(t.snapshotData),setTimeout((function(){var e;window.scrollTo(0,0),(e=document.querySelector('a[href="https://markerjs.com/"]'))&&e.parentNode&&(e.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"选择"},{name:'[data-action="delete"]',title:"删除元素"},{name:'[data-action="undo"]',title:"撤销"},{name:'[data-type-name="FrameMarker"]',title:"矩形"},{name:'[data-type-name="FreehandMarker"]',title:"画线"},{name:'[data-type-name="ArrowMarker"]',title:"箭头"},{name:'[data-type-name="TextMarker"]',title:"文本"},{name:'[data-type-name="EllipseMarker"]',title:"椭圆"},{name:'[data-type-name="HighlightMarker"]',title:"方块"},{name:'[data-type-name="CalloutMarker"]',title:"注释"},{name:'[data-action="render"]',title:"保存"},{name:'[data-action="close"]',title:"退出"}].forEach((function(e){var t=document.querySelector(e.name);t&&t.setAttribute("title",e.title)}))}),300)};return(0,x.jsx)(c.Fragment,{children:(null==t?void 0:t.visible)&&(0,x.jsx)(m.Z,{spinning:M,tip:B,style:{position:"absolute",width:"100vw"},children:(0,x.jsx)("div",{ref:E,className:p()(u,n,r?h:""),style:l,children:(0,x.jsx)("img",{className:d,ref:k})})})})}},74135:function(e,t,n){"use strict";var r=n(59301),i=n(77019),o=n(5269),a=n(20554),l=n(99571),s=n(76603),c=n(32313),u=(n(48136),n(37712)),d=(0,r.forwardRef)((function(e,t){var n=e.callback,d=e.showSaveButton,h=e.value,f=void 0===h?"":h,p=(0,r.useRef)(),m=function(e){p.current.setValue(p.current.getValue()+" "+e.value+" ")},v=[{key:"1",label:"快捷模板",children:(0,u.jsx)(i.Z,{className:c.Z.lists,gutter:[10,10],children:[{name:"分数得分",value:"\\frac{x}{y}",children:[{name:"分数 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:"导数 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"模算术 Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"根式角标",value:"\\sqrt{x}",children:[{name:"根式 Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"上下标 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"重音符及其他 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:"极限对数",value:"\\lim_{x \\to 0}",children:[{name:"极限 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"对数指数 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"界限 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"三角函数",value:"\\sin a",children:[{name:"三角函数 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"反三角函数 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:"双曲函数 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"反双曲函数 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:"积分运算",value:"\\int_{a}^{b}",children:[{name:"积分 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"双重积分 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"三重积分 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"曲线积分 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"大型运算",value:"\\sum_{a}^{b}",children:[{name:"求和 Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"乘积余积 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:"并集交集 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"析取合取 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"括号取整",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"括号 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 "}]}]}].map((function(e,t){return(0,u.jsxs)(o.Z,{flex:"110px",className:c.Z.item,children:[(0,u.jsxs)("div",{children:[(0,u.jsx)(s.Z,{value:"$$".concat(e.value,"$$")}),e.name]}),(0,u.jsx)("div",{className:c.Z.children,children:e.children.map((function(e,t){return(0,u.jsxs)("div",{children:[(0,u.jsx)("h1",{children:e.name}),(0,u.jsx)(i.Z,{gutter:[10,10],children:e.data.map((function(e,t){return(0,u.jsx)(o.Z,{onClick:function(){return m(e)},className:c.Z.diamond,children:(0,u.jsx)(s.Z,{value:"`$$"+e.value+"$$`"})},t)}))})]},t)}))})]})}))})},{key:"2",label:"公式模板",children:(0,u.jsx)(i.Z,{className:c.Z.lists,gutter:[10,10],children:[{name:"代数",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\n x=a + r\\text{cos}\\theta \\ \r\n y=b + r\\text{sin}\\theta \r\n\\end{matrix}\\right. "},{value:"\\begin{array}{l} \r\n \\text{对于方程形如:}x^{3}-1=0 \\ \r\n \\text{设}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r\n x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r\n x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r\n\\end{array} "},{value:"\\begin{array}{l} \r\n a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r\n \\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r\n \\left\\{\\begin{matrix} \r\n \\Delta \\gt 0\\text{方程有两个不相等的实根} \\ \r\n \\Delta = 0\\text{方程有两个相等的实根} \\ \r\n \\Delta \\lt 0\\text{方程无实根} \r\n\\end{matrix}\\right. \r\n\\end{array} "},{value:"\\begin{array}{l} \r\n a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r\n \\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r\n \\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r\n \\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r\n \\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r\n \\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r\n\\end{array} "}]}]},{name:"几何",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\n a \\perp \\alpha \\ \r\n b \\perp \\alpha \r\n\\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\n \\Rightarrow a \\perp \\beta "},{value:"\\left.\\begin{matrix} \r\n a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r\n a \\parallel \\partial ,b \\parallel \\partial \r\n\\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\n m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r\n a \\perp m,a \\perp n \r\n\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha "},{value:"\\begin{array}{c} \r\n \\text{直角三角形中,直角边长a,b,斜边边长c} \\ \r\n a^{2}+b^{2}=c^{2} \r\n\\end{array}"}]}]},{name:"不等式",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\n a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r\n a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r\n\\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\n a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r\n \\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r\n\\end{array}"},{value:"\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r\n\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) "},{value:"\\begin{array}{c} \r\n a,b \\in R^{+} \\ \r\n \\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r\n \\left( \\text{当且仅当}a=b\\text{时取“}=\\text{”号}\\right) \r\n\\end{array}"},{value:"\\begin{array}{c} \r\n a,b \\in R \\ \r\n \\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r\n \\left( \\text{当且仅当}a=b\\text{时取“}=\\text{”号}\\right) \r\n\\end{array}"},{value:"\\begin{array}{c} \r\n 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\n\\end{array}"}]}]},{name:"积分",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:"三角",value:"e^{i \\theta}",children:[{name:"求和 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:"统计",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\n \\text{若}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r\n \\text{则}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r\n\\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\n P \\left( \\emptyset \\right) =0 \\\\ \r\n P \\left( S \\right) =1 \r\n\\end{array}"},{value:"\\begin{array}{c} \r\n \\forall A \\in S \\\\ \r\n P \\left( A \\right) \\ge 0 \r\n\\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\n S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r\n P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r\n\\end{array}"},{value:"\\begin{array}{c} \r\n P_{n}=n! \\\\ \r\n A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r\n\\end{array}"}]}]}].map((function(e,t){return(0,u.jsxs)(o.Z,{flex:"110px",className:c.Z.item,children:[(0,u.jsxs)("div",{children:[(0,u.jsx)(s.Z,{value:"`$$"+e.value+"$$`"}),e.name]}),(0,u.jsx)("div",{className:c.Z.children,children:e.children.map((function(e,t){return(0,u.jsxs)("div",{children:[e.name&&(0,u.jsx)("h1",{children:e.name}),(0,u.jsx)(i.Z,{gutter:[10,10],children:e.data.map((function(e,t){return(0,u.jsx)(o.Z,{onClick:function(){return m(e)},className:c.Z.diamond,children:(0,u.jsx)(s.Z,{value:"`$$"+e.value+"$$`"})},t)}))})]},t)}))})]})}))})}],g=function(){var e=document.createElement("div");e.innerHTML=p.current.getValue();var t=e.innerText;return n&&n(t),t};return(0,r.useImperativeHandle)(t,(function(){return{getData:g}})),(0,u.jsxs)("div",{className:c.Z.mathWrap,children:[(0,u.jsx)(a.Z,{defaultActiveKey:"1",items:v}),(0,u.jsx)("math-field",{locale:"zh_cn",className:c.Z.mathField,placeholder:"请打开键盘,输入公式",ref:p,style:{width:800,marginTop:30,fontSize:18},children:f||""}),d&&(0,u.jsx)("div",{className:c.Z.button,children:(0,u.jsx)(l.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})}));t.Z=d},90059:function(e,t,n){"use strict";var r=n(82242),i=n.n(r),o=(n(59301),n(93314)),a=n(99571),l=n(37712);t.Z=function(e){var t=e.img,n=e.buttonProps,r=void 0===n?{}:n,s=e.styles,c=void 0===s?{}:s,u=e.customText,d=e.ButtonText,h=e.ButtonClick,f=e.Buttonclass,p=e.ButtonTwo,m=e.imgStyles,v=e.loading,g=void 0!==v&&v,y=e.className,x=void 0===y?"":y;return(0,l.jsxs)("section",{className:"tc animated fadeIn ".concat(x),style:i()({color:"#999",margin:"100px auto",visibility:g?"hidden":"visible"},c),children:[(0,l.jsx)("img",{src:t||o,style:i()(i()({},m),{},{pointerEvents:"none",userSelect:"none"})}),(0,l.jsx)("p",{className:"mt20 font14",children:u||"暂时还没有相关数据哦!"}),d&&(0,l.jsx)(a.ZP,i()(i()({className:f,onClick:h},r),{},{children:d})),p&&p]})}},94189:function(e,t,n){"use strict";n.d(t,{Q:function(){return u}});var r=n(79800),i=n.n(r),o=n(59301),a=n(82326),l=n(47889),s=n(71051),c=n(37712),u=function(e){return e[e.Number=1]="Number",e[e.Percent=2]="Percent",e}({});t.Z=function(e){var t=e.value,n=e.onChange,r=e.disabled,d=e.hidePercentOption,h=void 0!==d&&d,f=e.percentType,p=void 0===f?"select":f,m=(0,o.useMemo)((function(){return h?u.Number:u.Percent}),[h]),v=(0,o.useState)(m),g=i()(v,2),y=g[0],x=g[1];console.log(y);var b=(0,o.useCallback)((function(e){if(y===u.Number){var t=e.replace("分","");return isNaN(parseInt(t,10))?0:t}return e.replace("%","")}),[y]);return(0,o.useEffect)((function(){x(t.type)}),[t]),(0,c.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:["select"==p&&(0,c.jsx)(a.default,{size:"large",onChange:function(e){x(e),n({type:e,inputValue:e===u.Number?5:20})},value:y||m,style:{width:100},options:h?[{label:"分值",value:u.Number}]:[{label:"百分比",value:u.Percent},{label:"分值",value:u.Number}],disabled:r}),"radio"==p&&(0,c.jsxs)(l.ZP.Group,{size:"large",onChange:function(e){var t=e.target.value;x(t),n({type:t,inputValue:t===u.Number?5:20})},value:y||m,disabled:r,children:[!h&&(0,c.jsx)(l.ZP,{value:u.Percent,style:{marginRight:"50px"},children:"百分比扣分"}),(0,c.jsx)(l.ZP,{value:u.Number,children:"固定分值"})]}),"radio"==p&&(0,c.jsx)("div",{style:{marginRight:"10px",color:"#000000"},children:u.Percent==t.type?"扣除补交阶段得分的":"扣除总成绩的"}),(0,c.jsx)(s.Z,{size:"large",disabled:r,value:t.inputValue,style:{width:"120px"},parser:b,addonAfter:t.type===u.Number?"分":"%",max:y===u.Percent?100:Number.MAX_SAFE_INTEGER,min:0,precision:0,onChange:function(e){n({type:y,inputValue:e})}}),"radio"==p&&u.Percent==t.type&&(0,c.jsx)("div",{style:{marginLeft:"10px",color:"#000000"},children:"分数"})]})}},99074:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(82242),i=n.n(r),o=n(7557),a=n.n(o),l=n(41498),s=n.n(l),c=n(79800),u=n.n(c),d=n(59301),h={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},f=n(99571),p=n(70557),m=n(49337),v=n(25399),g=n(32985),y=n(99534),x=n(90059),b=n(6816),w=n(78288),C=n(37712),k=function(e){var t,n,r,o,l,c,k=e.editOffice,A=void 0===k?"view":k,S=e.data,E=e.issaver,N=e.onSaver,L=(e.theme,e.type),M=e.filename,D=e.monacoEditor,P=e.className,Z=e.style,B=e.close,T=e.onClose,j=e.hasMask,I=e.disabledDownload,F=e.onImgDimensions,O=e.showNodata,R=e.recordInfo,W=(0,d.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),z=u()(W,2),H=(z[0],z[1],(0,d.useState)("")),V=u()(H,2),K=(V[0],V[1]),Y=(0,d.useState)(),U=u()(Y,2),G=U[0],X=U[1],Q="build"===window.ENV?"/react/build":"",J=location.host.startsWith("localhost")?b.Z.PROXY_SERVER:b.Z.API_SERVER,q=(0,d.useRef)();null!==(t=S)&&void 0!==t&&t.startsWith("/api")&&"txt"!==L&&(S=b.Z.API_SERVER+S);function _(e){return $.apply(this,arguments)}function $(){return($=s()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:"pdfdata"===t.data.type&&(N(t.data.data),window.removeEventListener("message",_,!1)),console.log("mess---:",t.data);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}M&&D&&(D.filename=M),(0,d.useEffect)((function(){var e,t=null===(e=document.cookie)||void 0===e||null===(e=e.replace(/\s/g,""))||void 0===e?void 0:e.split(";");null==t||t.map((function(e){var t=e.split("=");"_educoder_session"===t[0]&&K(t[1])}))}),[]),(0,d.useEffect)((function(){var e;"office"===L&&(S.indexOf("bigfilescdn.")>-1||S.indexOf("bigfiles1")>-1?X({url:S,fileType:(e=S,e.substring(e.lastIndexOf("/")+1).split(".").pop()),model:S.indexOf("model=edit")?"edit":"view"}):ee())}),[L,S]);var ee=function(){var e=s()(a()().mark((function e(){var t,n,r;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("data:",S),t=S,S.startsWith("http")||(t=location.origin+t),n=new URL(t).pathname.split("/").pop(),e.next=6,(0,y.gJ)({attachment_id:n});case 6:(r=e.sent).url=J+r.url,X(r);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),te=function(){S.startsWith("http")||S.startsWith("blob:")?ne():(0,g.Sv)(M||"educoder",S,M)},ne=function(){R&&(0,w.fc)({id:null==R?void 0:R.id,watch_type:1,course_id:null==R?void 0:R.course_id}),(0,g.Nd)(M||"educoder",decodeURIComponent(S))};return(0,C.jsxs)("div",{style:i()({},Z||{}),className:"".concat(j&&h.bgBlack," ").concat(L?h.wrp:"hide"),children:[B&&(0,C.jsxs)("div",{className:h.close,ref:q,children:[!!F&&(0,C.jsx)(v.Z,{title:"点击对图片进行批注",getPopupContainer:function(){return q.current},children:(0,C.jsx)("span",{onClick:function(){T(),F()},children:(0,C.jsx)("i",{className:"icon-yulanpizhu"})})}),!I&&(0,C.jsx)(v.Z,{title:"点击下载此文件",getPopupContainer:function(){return q.current},children:(0,C.jsx)("span",{onClick:ne,children:(0,C.jsx)("i",{className:"icon-quxiaozhiding"})})}),E&&(0,C.jsx)(v.Z,{title:"保存pdf并退出",getPopupContainer:function(){return q.current},children:(0,C.jsx)("span",{className:"",onClick:function(){var e=document.getElementById("pdfiframe");window.addEventListener("message",_,!1),setTimeout((function(){e.contentWindow.postMessage("getData","*")}),300)},children:(0,C.jsx)("i",{className:"icon-baocun"})})}),(0,C.jsx)(v.Z,{title:"关闭",getPopupContainer:function(){return q.current},children:(0,C.jsx)("span",{className:"",onClick:function(){T()},children:(0,C.jsx)("i",{className:"icon-guanbi1"})})})]}),(0,C.jsx)("div",{className:"".concat(h[P]," ").concat(P," ").concat(h.monaco," ").concat("txt"===L?"show":"hide"),children:"txt"===L&&(0,C.jsx)(C.Fragment,{children:(0,C.jsx)(m.ZP,i()({},D))})}),"audio"===L&&(0,C.jsx)("audio",{src:"".concat((null===(n=S)||void 0===n?void 0:n.indexOf("http://"))>-1||(null===(r=S)||void 0===r?void 0:r.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(S),autoPlay:!0}),"video"===L&&(0,C.jsx)(C.Fragment,{children:(null===(o=S)||void 0===o?void 0:o.indexOf("http"))>-1?(0,C.jsx)("video",{controls:!0,src:"".concat(S),autoPlay:!0}):(0,C.jsx)("video",{controls:!0,src:"data:video/mp4;base64,".concat(S),autoPlay:!0})}),"office"===L&&G&&(0,C.jsx)("iframe",{src:"".concat(Q,"/office.html?key=").concat(G.key,"&url=").concat(btoa(G.url),"&callbackUrl=").concat(J+(G.callbackUrl||""),"&fileType=").concat(G.fileType,"&title=").concat(G.title||"","&model=").concat(A,"&officeServer=").concat(b.Z.ONLYOFFICE,"&disabledDownload=").concat(!!I)}),"html"===L&&(0,C.jsx)("iframe",{src:S+"&disposition=inline"}),"pdf"===L&&(0,C.jsx)("iframe",{id:"pdfiframe",src:"".concat(Q,"/js/pdfview/index.html?filename=").concat(M||"educoder.pdf","&url=").concat(encodeURIComponent(S),"&disabledDownload=").concat(!!I,"&model=").concat(A)}),"image"===L&&(0,C.jsx)("img",{src:"".concat((null===(l=S)||void 0===l?void 0:l.indexOf("http://"))>-1||(null===(c=S)||void 0===c?void 0:c.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(S)}),("other"===L||"download"===L)&&(0,C.jsx)(C.Fragment,{children:O?(0,C.jsx)(x.Z,{customText:"当前文件不支持预览,可点击下载查看",ButtonTwo:(0,C.jsx)(f.ZP,{icon:(0,C.jsx)("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:te,disabled:I,children:"下载"})}):(0,C.jsxs)(f.ZP,{type:"primary",size:"middle",onClick:te,disabled:I,children:[(0,C.jsx)(p.Z,{}),"点击下载"]})}),"flowChart"===L&&(0,C.jsx)("div",{className:"embed",children:(0,C.jsx)("iframe",{src:"/drawio/src/main/webapp/viewer.html?id=".concat(S||"","&gapi=0&od=0&db=0&gh=0&gl=0"),width:"100%",height:"100%",frameBorder:"0"})})]})}},76603:function(e,t,n){"use strict";n.d(t,{z:function(){return L},Z:function(){return M}});var r=n(82242),i=n.n(r),o=n(37205),a=n.n(o),l=n(91232),s=n.n(l),c=n(79800),u=n.n(c),d=n(59301),h=(n(73958),n(90969)),f=(n(64018),n(44523)),p=n(6816),m=n(32985),v=n(15342),g=n(77736),y=n(99571),x=n(1012),b=n(99074),w=n(37712),C=function(e){var t=e.html,n=(0,d.useRef)(null),r=(0,d.useRef)(null);return(0,d.useEffect)((function(){var e=n.current.attachShadow({mode:"open"});r.current=document.createElement("div"),r.current.className="markdown-body",r.current.innerHTML=t,e.appendChild(r.current);var i=document.createElement("style");return i.textContent='.markdown-body p {\n margin: 0 0 16px 0 !important;\n line-height: 28px;\n white-space: pre-wrap;\n }\n\n ol,\n ul,\n li {\n list-style-type: none\n }\n\n ol,\n ul,\n dl {\n margin-bottom: 0px;\n }\n\n .markdown-body {\n -ms-text-size-adjust: 100%;\n -webkit-text-size-adjust: 100%;\n color: #333;\n overflow: hidden;\n font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "华文细黑", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "宋体", Heiti, "黑体", sans-serif;\n word-break: break-word;\n font-size: 16px;\n line-height: 1.6;\n white-space: normal;\n word-wrap: break-word;\n position: relative;\n }\n\n .markdown-body ul>li {\n list-style-type: disc;\n }\n\n .markdown-body ol>li {\n list-style-type: decimal;\n }\n\n .markdown-body a {\n background: transparent;\n }\n\n .markdown-body a:active,\n .markdown-body a:hover {\n outline: 0;\n }\n\n .markdown-body strong {\n font-weight: bold;\n }\n\n .markdown-body h1 {\n font-size: 2em;\n margin: 0.67em 0;\n }\n\n .markdown-body img {\n border: 0;\n }\n\n .markdown-body hr {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n height: 0;\n }\n\n .markdown-body pre {\n overflow: auto;\n }\n\n .markdown-body code,\n .markdown-body kbd,\n .markdown-body pre {\n font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;\n font-size: 1em;\n }\n\n .markdown-body input {\n color: inherit;\n font: inherit;\n margin: 0;\n }\n\n .markdown-body html input[disabled] {\n cursor: default;\n }\n\n .markdown-body input {\n line-height: normal;\n }\n\n .markdown-body input[type="checkbox"] {\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n padding: 0;\n }\n\n .markdown-body table {\n border-collapse: collapse;\n border-spacing: 0;\n }\n\n .markdown-body td,\n .markdown-body th {\n padding: 0;\n }\n\n .markdown-body * {\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n }\n\n .markdown-body input {\n font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";\n }\n\n .markdown-body a {\n color: #4183c4;\n text-decoration: none;\n }\n\n .markdown-body a:hover,\n .markdown-body a:active {\n text-decoration: underline;\n }\n\n .markdown-body hr {\n height: 0;\n margin: 15px 0;\n overflow: hidden;\n background: transparent;\n border: 0;\n border-bottom: 1px solid #ddd;\n }\n\n .markdown-body hr:before {\n display: table;\n content: "";\n }\n\n .markdown-body hr:after {\n display: table;\n clear: both;\n content: "";\n }\n\n .markdown-body h1,\n .markdown-body h2,\n .markdown-body h3,\n .markdown-body h4,\n .markdown-body h5,\n .markdown-body h6 {\n margin-top: 15px;\n margin-bottom: 15px;\n line-height: 1.1;\n }\n\n .markdown-body h1 {\n font-size: 30px;\n }\n\n .markdown-body h2 {\n font-size: 21px;\n }\n\n .markdown-body h3 {\n font-size: 16px;\n }\n\n .markdown-body h4 {\n font-size: 14px;\n }\n\n .markdown-body h5 {\n font-size: 12px;\n }\n\n .markdown-body h6 {\n font-size: 11px;\n }\n\n .markdown-body blockquote {\n margin: 0;\n }\n\n .markdown-body ul,\n .markdown-body ol {\n padding: 0;\n margin-top: 0;\n margin-bottom: 0;\n }\n\n ul.linenums,\n ol.linenums {\n padding: 16px 0 0 56px !important;\n }\n\n .markdown-body ul,\n .markdown-body ol {\n padding-left: 2em;\n }\n\n\n .markdown-body ol ol,\n .markdown-body ul ol {\n list-style-type: lower-roman;\n }\n\n .markdown-body ul ul ol,\n .markdown-body ul ol ol,\n .markdown-body ol ul ol,\n .markdown-body ol ol ol {\n list-style-type: lower-alpha;\n }\n\n .markdown-body dd {\n margin-left: 0;\n }\n\n .markdown-body code {\n font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;\n font-size: 12px;\n }\n\n .markdown-body pre {\n margin-top: 0;\n margin-bottom: 0;\n font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;\n }\n\n .markdown-body .octicon {\n font: normal normal 16px octicons-anchor;\n line-height: 1;\n display: inline-block;\n text-decoration: none;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n\n .markdown-body .octicon-link:before {\n content: \'\f05c\';\n }\n\n .markdown-body>*:first-child {\n margin-top: 0 !important;\n }\n\n .markdown-body>*:last-child {\n margin-bottom: 0 !important;\n }\n\n .markdown-body .anchor {\n position: absolute;\n top: 0;\n left: 0;\n display: block;\n padding-right: 6px;\n padding-left: 30px;\n margin-left: -30px;\n }\n\n .markdown-body .anchor:focus {\n outline: none;\n }\n\n .markdown-body h1,\n .markdown-body h2,\n .markdown-body h3,\n .markdown-body h4,\n .markdown-body h5,\n .markdown-body h6 {\n position: relative;\n margin-top: 1em;\n margin-bottom: 16px;\n font-weight: bold;\n line-height: 1.4;\n }\n\n .markdown-body h1 .octicon-link,\n .markdown-body h2 .octicon-link,\n .markdown-body h3 .octicon-link,\n .markdown-body h4 .octicon-link,\n .markdown-body h5 .octicon-link,\n .markdown-body h6 .octicon-link {\n display: none;\n color: #000;\n vertical-align: middle;\n }\n\n .markdown-body h1:hover .anchor,\n .markdown-body h2:hover .anchor,\n .markdown-body h3:hover .anchor,\n .markdown-body h4:hover .anchor,\n .markdown-body h5:hover .anchor,\n .markdown-body h6:hover .anchor {\n padding-left: 8px;\n margin-left: -30px;\n text-decoration: none;\n }\n\n .markdown-body h1:hover .anchor .octicon-link,\n .markdown-body h2:hover .anchor .octicon-link,\n .markdown-body h3:hover .anchor .octicon-link,\n .markdown-body h4:hover .anchor .octicon-link,\n .markdown-body h5:hover .anchor .octicon-link,\n .markdown-body h6:hover .anchor .octicon-link {\n display: inline-block;\n }\n\n .markdown-body h1 {\n padding-bottom: 0.3em;\n font-size: 2.25em;\n line-height: 1.2;\n border-bottom: 1px solid #eee;\n }\n\n .markdown-body h1 .anchor {\n line-height: 1;\n }\n\n .markdown-body h2 {\n padding-bottom: 0.3em;\n font-size: 1.75em;\n line-height: 1.225;\n border-bottom: 1px solid #eee;\n }\n\n .markdown-body h2 .anchor {\n line-height: 1;\n }\n\n .markdown-body h3 {\n font-size: 1.5em;\n line-height: 1.43;\n }\n\n .markdown-body h3 .anchor {\n line-height: 1.2;\n }\n\n .markdown-body h4 {\n font-size: 1.25em;\n }\n\n .markdown-body h4 .anchor {\n line-height: 1.2;\n }\n\n .markdown-body h5 {\n font-size: 1em;\n }\n\n .markdown-body h5 .anchor {\n line-height: 1.1;\n }\n\n .markdown-body h6 {\n font-size: 1em;\n color: #777;\n }\n\n .markdown-body h6 .anchor {\n line-height: 1.1;\n }\n\n .markdown-body p,\n .markdown-body blockquote,\n .markdown-body ul,\n .markdown-body ol,\n .markdown-body dl,\n .markdown-body table,\n .markdown-body pre {\n margin-top: 0;\n margin-bottom: 16px;\n }\n\n .markdown-body ul ul,\n .markdown-body ul ol,\n .markdown-body ol ol,\n .markdown-body ol ul {\n margin-top: 0;\n margin-bottom: 0;\n }\n\n .markdown-body li>p {\n margin-top: 16px;\n }\n\n .markdown-body dl {\n padding: 0;\n }\n\n .markdown-body dl dt {\n padding: 0;\n margin-top: 16px;\n font-size: 1em;\n font-style: italic;\n font-weight: bold;\n }\n\n .markdown-body dl dd {\n padding: 0 16px;\n margin-bottom: 16px;\n }\n\n .markdown-body blockquote {\n padding: 0 15px;\n color: #777;\n border-left: 4px solid #ddd;\n }\n\n .markdown-body blockquote> :first-child {\n margin-top: 0;\n }\n\n .markdown-body blockquote> :last-child {\n margin-bottom: 0;\n }\n\n .markdown-body table {\n display: block;\n width: 100%;\n overflow: auto;\n word-break: normal;\n word-break: keep-all;\n }\n\n .markdown-body table th {\n font-weight: bold;\n text-align: revert;\n }\n\n .markdown-body table th,\n .markdown-body table td {\n padding: 6px 13px;\n border: 1px solid #ddd;\n }\n\n .markdown-body table tr {\n background-color: #fff;\n border-top: 1px solid #ccc;\n }\n\n .markdown-body table tr:nth-child(2n) {\n background-color: #f8f8f8;\n }\n\n .markdown-body img {\n max-width: 100%;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n }\n\n .markdown-body code {\n padding: 0;\n padding-top: 0.2em;\n padding-bottom: 0.2em;\n margin: 0;\n font-size: 85%;\n background-color: rgba(0, 0, 0, 0.04);\n border-radius: 3px;\n }\n\n .markdown-body code:has(.katex) {\n background-color: transparent;\n }\n\n .markdown-body code:before,\n .markdown-body code:after {\n letter-spacing: -0.2em;\n content: "\\00a0";\n }\n\n .markdown-body pre>code {\n padding: 0;\n margin: 0;\n font-size: 100%;\n word-break: normal;\n white-space: pre;\n background: transparent;\n border: 0;\n }\n\n .markdown-body .highlight {\n margin-bottom: 16px;\n }\n\n .markdown-body .highlight pre,\n .markdown-body pre {\n padding: 16px;\n overflow: auto;\n font-size: 85%;\n line-height: 1.45;\n background-color: #f7f7f7;\n border-radius: 3px;\n }\n\n .markdown-body .highlight pre {\n margin-bottom: 0;\n word-break: normal;\n }\n\n .markdown-body pre {\n word-wrap: normal;\n }\n\n .markdown-body pre code {\n display: inline;\n max-width: initial;\n padding: 0;\n margin: 0;\n overflow: initial;\n line-height: inherit;\n word-wrap: normal;\n background-color: transparent;\n border: 0;\n }\n\n .markdown-body pre code:before,\n .markdown-body pre code:after {\n content: normal;\n }\n\n .markdown-body kbd {\n display: inline-block;\n padding: 3px 5px;\n font-size: 11px;\n line-height: 10px;\n color: #555;\n vertical-align: middle;\n background-color: #fcfcfc;\n border: solid 1px #ccc;\n border-bottom-color: #bbb;\n border-radius: 3px;\n box-shadow: inset 0 -1px 0 #bbb;\n }\n\n .markdown-body .pl-c {\n color: #969896;\n }\n\n .markdown-body .pl-c1,\n .markdown-body .pl-mdh,\n .markdown-body .pl-mm,\n .markdown-body .pl-mp,\n .markdown-body .pl-mr,\n .markdown-body .pl-s1 .pl-v,\n .markdown-body .pl-s3,\n .markdown-body .pl-sc,\n .markdown-body .pl-sv {\n color: #0086b3;\n }\n\n .markdown-body .pl-e,\n .markdown-body .pl-en {\n color: #795da3;\n }\n\n .markdown-body .pl-s1 .pl-s2,\n .markdown-body .pl-smi,\n .markdown-body .pl-smp,\n .markdown-body .pl-stj,\n .markdown-body .pl-vo,\n .markdown-body .pl-vpf {\n color: #333;\n }\n\n .markdown-body .pl-ent {\n color: #63a35c;\n }\n\n .markdown-body .pl-k,\n .markdown-body .pl-s,\n .markdown-body .pl-st {\n color: #a71d5d;\n }\n\n .markdown-body .pl-pds,\n .markdown-body .pl-s1,\n .markdown-body .pl-s1 .pl-pse .pl-s2,\n .markdown-body .pl-sr,\n .markdown-body .pl-sr .pl-cce,\n .markdown-body .pl-sr .pl-sra,\n .markdown-body .pl-sr .pl-sre,\n .markdown-body .pl-src {\n color: #df5000;\n }\n\n .markdown-body .pl-mo,\n .markdown-body .pl-v {\n color: #1d3e81;\n }\n\n .markdown-body .pl-id {\n color: #b52a1d;\n }\n\n .markdown-body .pl-ii {\n background-color: #b52a1d;\n color: #f8f8f8;\n }\n\n .markdown-body .pl-sr .pl-cce {\n color: #63a35c;\n font-weight: bold;\n }\n\n .markdown-body .pl-ml {\n color: #693a17;\n }\n\n .markdown-body .pl-mh,\n .markdown-body .pl-mh .pl-en,\n .markdown-body .pl-ms {\n color: #1d3e81;\n font-weight: bold;\n }\n\n .markdown-body .pl-mq {\n color: #008080;\n }\n\n .markdown-body .pl-mi {\n color: #333;\n font-style: italic;\n }\n\n .markdown-body .pl-mb {\n color: #333;\n font-weight: bold;\n }\n\n .markdown-body .pl-md,\n .markdown-body .pl-mdhf {\n background-color: #ffecec;\n color: #bd2c00;\n }\n\n .markdown-body .pl-mdht,\n .markdown-body .pl-mi1 {\n background-color: #eaffea;\n color: #55a532;\n }\n\n .markdown-body .pl-mdr {\n color: #795da3;\n font-weight: bold;\n }\n\n .markdown-body kbd {\n display: inline-block;\n padding: 3px 5px;\n font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;\n line-height: 10px;\n color: #555;\n vertical-align: middle;\n background-color: #fcfcfc;\n border: solid 1px #ccc;\n border-bottom-color: #bbb;\n border-radius: 3px;\n box-shadow: inset 0 -1px 0 #bbb;\n }\n\n .markdown-body .task-list-item {\n list-style-type: none;\n }\n\n .markdown-body .task-list-item+.task-list-item {\n margin-top: 3px;\n }\n\n .markdown-body .task-list-item input {\n float: left;\n margin: 0.3em 0 0.25em -1.6em;\n vertical-align: middle;\n }\n\n .markdown-body :checked+.radio-label {\n z-index: 1;\n position: relative;\n border-color: #4183c4;\n }\n\n\n /*! Pretty printing styles. Used with prettify.js. */\n /* SPAN elements with the classes below are added by prettyprint. */\n .pln {\n color: #000\n }\n\n /* plain text */\n\n @media screen {\n .str {\n color: #080\n }\n\n /* string content */\n .kwd {\n color: #008\n }\n\n /* a keyword */\n .com {\n color: #800\n }\n\n /* a comment */\n .typ {\n color: #606\n }\n\n /* a type name */\n .lit {\n color: #066\n }\n\n /* a literal value */\n /* punctuation, lisp open bracket, lisp close bracket */\n .pun,\n .opn,\n .clo {\n color: #660\n }\n\n .tag {\n color: #008\n }\n\n /* a markup tag name */\n .atn {\n color: #606\n }\n\n /* a markup attribute name */\n .atv {\n color: #080\n }\n\n /* a markup attribute value */\n .dec,\n .var {\n color: #606\n }\n\n /* a declaration; a variable name */\n .fun {\n color: red\n }\n\n /* a function name */\n }\n\n /* Use higher contrast and text-weight for printable form. */\n @media print,\n projection {\n .str {\n color: #060\n }\n\n .kwd {\n color: #006;\n font-weight: bold\n }\n\n .com {\n color: #600;\n font-style: italic\n }\n\n .typ {\n color: #404;\n font-weight: bold\n }\n\n .lit {\n color: #044\n }\n\n .pun,\n .opn,\n .clo {\n color: #440\n }\n\n .tag {\n color: #006;\n font-weight: bold\n }\n\n .atn {\n color: #404\n }\n\n .atv {\n color: #060\n }\n }\n\n /* Put a border around prettyprinted code snippets. */\n pre.prettyprint {\n padding: 2px;\n /* border: 1px solid #888 */\n }\n\n /* Specify class=linenums on a pre to get line numbering */\n ol.linenums {\n margin-top: 0;\n margin-bottom: 0\n }\n\n /* IE indents via margin-left */\n li.L0,\n li.L1,\n li.L2,\n li.L3,\n li.L5,\n li.L6,\n li.L7,\n li.L8 {\n list-style-type: none\n }\n\n /* Alternate shading for lines */\n li.L1,\n li.L3,\n li.L5,\n li.L7,\n li.L9 {\n background: #eee\n }\n\n .markdown-body p,\n .markdown-body blockquote,\n .markdown-body ul,\n .markdown-body ol,\n .markdown-body dl,\n .markdown-body table,\n .markdown-body pre {\n margin-top: 0;\n margin-bottom: 16px;\n }',e.appendChild(i),function(){e.innerHTML=""}}),[]),(0,d.useEffect)((function(){r.current&&(r.current.innerHTML=t)}),[t]),(0,w.jsx)("div",{ref:n})};var k="mdBody___raKXb",A="button___Ch5Pc",S="previewFlowChart___vY1dq",E="@▁@",N=/<pre[^>]*>/g;var L=function(e,t){e=e||"";var n=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return t?e.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(n,(function(e,t,n,r,i,o,a){var l=t||r||o,s=n||i||a||"?";return p.Z.API_SERVER+"/api/attachments/"+l+s+"&t="+(0,m.Jn)(l,Date.now())+(e.indexOf(")")>-1?")":"&")})).replaceAll('src="(','src="').replaceAll("src='(",'src="'):e=e.replace(/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,(function(e,t,n,r,i,o,a){var l=t||r||o,s=n||i||a||"?";return p.Z.API_SERVER+"/attachments/download/"+l+s+"&t="+(0,m.Jn)(l,Date.now())+(e.indexOf(")")>-1?")":"&")})).replace(n,(function(e,t,n,r,i,o,a){var l=t||r||o,s=n||i||a||"?";return p.Z.API_SERVER+"/api/attachments/"+l+s+"&t="+(0,m.Jn)(l,Date.now())+(e.indexOf(")")>-1?")":"&")})).replace(/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,(function(e,t,n,r,i){var o=t||r,a=n||i||"";return'"'+p.Z.API_SERVER+"/api/attachments/"+o+a+o+a+"&t="+(0,m.Jn)(o,Date.now())})).replace(/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,(function(e,t,n,r,i){var o=t||r,a=n||i||"";return"("+p.Z.API_SERVER+"/files/uploads/"+o+a+o+a+"&t="+(0,m.Jn)(o,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,"\n")},M=function(e){var t=e.value,n=void 0===t?"":t,r=e.edit,o=void 0!==r&&r,l=e.className,c=e.showTextOnly,m=e.showLines,L=e.style,M=void 0===L?{}:L,D=e.stylesPrev,P=void 0===D?{}:D,Z=e.highlightKeywords,B=e.showProgramFill,T=(e.isProgramFill,e.disabledFill),j=void 0!==T&&T,I=e.programFillValue,F=e.openEditor,O=void 0===F?function(){}:F,R=e.onFillChange,W=void 0===R?function(e){}:R,z=e.onFillBlur,H=void 0===z?function(){}:z,V=e.onFillFocus,K=void 0===V?function(){}:V,Y=function(e){var t=new RegExp("\\b(".concat(["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"].join("|"),")\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s>]*)"),"gi");return e.replace(t,"").trim()}(String(n||"")),U=(0,d.useRef)(),G=(0,d.useRef)(),X=(0,d.useState)(""),Q=u()(X,2),J=Q[0],q=Q[1],_=(0,d.useState)("office"),$=u()(_,2),ee=$[0],te=$[1],ne=(0,d.useState)([]),re=u()(ne,2),ie=re[0],oe=re[1],ae=(0,d.useRef)("a"+(0,x.Z)()),le={},se=function(e){return/<style[\s\S]*?>/i.test(e||"")};var ce=function(e){return!c&&se(Y)?e:e.replace(/<style.*?>([\s\S]+?)<\/style>/gim,(function(e,t){var n=t.replace(/(\n|\r)/g,"").split("}"),r=[];return n.map((function(e){""!=e&&r.push(".".concat(ae.current," ").concat(e))})),"<style>".concat(r.join("}"),"</style>")}))},ue=(0,d.useMemo)((function(){try{Y=Y.replace(/\(\/attachments\/download\//g,"("+p.Z.API_SERVER+"/attachments/download/").replace(/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,"("+p.Z.API_SERVER+"/api/attachments/").replace(/\"\/api\/attachments\/|\"\/attachments\/download\//g,'"'+p.Z.API_SERVER+"/api/attachments/").replace(/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,'"'+p.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,"\n"),U.current.style.display="none"}catch(e){}if(B){var e=-1;return Y=Y.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,(function(t,n,r){var i;return function(e,t,n){var r=document.createElement(e===E?"input":"textarea");r.style.width="100%",r.style.height=e===E?"40px":"151px",r.rows=5,r.spellcheck=!1,r.name="edu-program-fill",r.placeholder="请输入",r.dataset.id=t;var i=Object.keys(le).length;return le[i]=r,'<span class="edu-program-fill-wrap '.concat(e===E?"":"show",'" style="width:').concat(e===E?"600px":"100%",'" title=').concat(n||"","><span>").concat(r.outerHTML,'<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>')}(t,++e,null==I||null===(i=I[e])||void 0===i?void 0:i.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))})),'<pre style="background:#fff;padding:4px">'.concat(ce(Y||""),"</pre>")}var t=ce(Y);t=(0,h.ZP)(t);var n=(0,h.ez)();Y.match(/\[TOC\]/)&&(t=t.replace("<p>[TOC]</p>",(0,h.Qv)()),(0,h.Iy)()),t=t.replace(/(__special_katext_id_\d+__)/g,(function(e,t){var r=n[t],i=r.type,o=r.expression;return(0,v.renderToString)(function(e){var t=document.createElement("div");return t.innerHTML=e,0===t.childNodes.length?"":t.childNodes[0].nodeValue}(o)||"",{displayMode:"block"===i,throwOnError:!1,output:"html"})})),t=t.replace(/▁/g,"▁▁▁▁▁"),(0,h.AL)();var r=document.createElement("div");return r.innerHTML=t,c?r.innerText:Z?(pe(r,Z.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),r.innerHTML):(setTimeout((function(){return ge()}),500),r.innerHTML)}),[Y,Z]);(0,d.useEffect)((function(){me.current&&me.current.querySelectorAll(["input","textarea"]).forEach((function(e){e.oninput=de,e.onblur=he,e.onfocus=fe}))}),[ie]),(0,d.useEffect)((function(){if(null!=I&&I.length)try{var e,t=me.current.querySelectorAll(".edu-program-fill-score"),n=me.current.querySelectorAll('[name="edu-program-fill"]'),r=s()(n.entries());try{for(r.s();!(e=r.n()).done;){var i,o,a,l=u()(e.value,2),c=l[0],d=l[1];d.value=(null==I||null===(i=I[c])||void 0===i?void 0:i.value)||"","warning"===(null==I||null===(o=I[c])||void 0===o?void 0:o.type)?d.className="program-fill-warning":"success"===(null==I||null===(a=I[c])||void 0===a?void 0:a.type)?d.className="program-fill-success":d.className=""}}catch(e){r.e(e)}finally{r.f()}var h,f=s()(t.entries());try{for(f.s();!(h=f.n()).done;){var p,m,v=u()(h.value,2),g=v[0];v[1].innerHTML=null!=I&&null!==(p=I[g])&&void 0!==p&&p.score?"".concat(null==I||null===(m=I[g])||void 0===m?void 0:m.score,"分"):""}}catch(e){f.e(e)}finally{f.f()}oe(I)}catch(e){console.log(e,"error")}}),[I]);var de=function(e){ie[e.target.dataset.id]=ie[e.target.dataset.id]||{},ie[e.target.dataset.id].value=e.target.value,oe(a()(ie)),W(ie,e.target.dataset.id)},he=function(e){ie[e.target.dataset.id]=ie[e.target.dataset.id]||{},ie[e.target.dataset.id].value=e.target.value,oe(a()(ie)),H(ie,e.target.dataset.id)},fe=function(e){ie[e.target.dataset.id]=ie[e.target.dataset.id]||{},ie[e.target.dataset.id].value=e.target.value,oe(a()(ie)),K(ie,e.target.dataset.id)};function pe(e,t){return e.childNodes.forEach((function(e){if(e.childNodes.length>0)pe(e,t);else if("IMG"!==e.nodeName)if(e.innerHTML){var n;e.innerHTML=null===(n=e.innerHTML)||void 0===n?void 0:n.replace(new RegExp(t,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>')}else{var r=document.createElement("span");r.innerHTML=e.textContent.replace(new RegExp(t,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),e.replaceWith(r)}}))}var me=(0,d.useRef)();function ve(e){var t=e.target;if("A"===t.tagName.toUpperCase()){var n=t.getAttribute("href");if(n.indexOf("office")>-1)e.preventDefault(),q(n),te("office");else if(n.indexOf("application/pdf")>-1)e.preventDefault(),q(n),te("pdf");else if(n.indexOf("text/html")>-1)e.preventDefault(),q(n),te("html");else if(n.startsWith("#")){e.preventDefault();var r=document.getElementById(n.replace("#",""));r&&r.scrollIntoView(!0)}}}h.jb.WebkitLineClamp=m,m&&(M=i()(i()({},M),h.jb));var ge=function(){var e,t=null===(e=me.current)||void 0===e?void 0:e.querySelectorAll("video");null==t||t.forEach((function(e){if(e.oncontextmenu=function(){return!1},e.src.indexOf(".m3u8")>-1)if(e.canPlayType("application/vnd.apple.mpegurl"));else if(f.ZP.isSupported()){var t=new f.ZP;t.loadSource(e.src),t.attachMedia(e)}}))};(0,d.useEffect)((function(){if(me.current&&ue&&ue.match(N)&&window.PR.prettyPrint(),me.current)return me.current.addEventListener("click",ve),function(){var e;null===(e=me.current)||void 0===e||e.removeEventListener("click",ve),(0,h.AL)(),(0,h.Iy)()}}),[ue,me.current,ve]);return(0,d.useEffect)((function(){var e,t=function(e){e.preventDefault(),e.clipboardData.setData("text",window.getSelection().toString())};return null===(e=me.current)||void 0===e||e.addEventListener("copy",t),function(){var e;null===(e=me.current)||void 0===e||e.removeEventListener("copy",t)}}),[me.current]),(0,w.jsxs)("div",{style:{position:"relative"},onMouseLeave:function(){U.current.style.display="none"},children:[c&&(0,w.jsx)("div",{ref:me,className:"".concat(k," "),children:ue}),!c&&!se(ue)&&(0,w.jsx)("div",{ref:me,style:i()({},M),onMouseOver:function(e){"IMG"===e.target.nodeName&&e.target.className.indexOf("draw-flowchart")>-1?(U.current.style.zIndex=1,U.current.style.display="flex",U.current.style.width=e.target.clientWidth+"px",U.current.style.height=e.target.clientHeight+"px",U.current.style.top=e.target.offsetTop+"px",U.current.style.left=e.target.offsetLeft+"px",e.target.id&&(G.current=e.target.id)):U.current.style.display="none"},className:"".concat(l||""," ").concat(j?"disabled-fill":""," markdown-body ").concat(k," ").concat(ae.current),dangerouslySetInnerHTML:{__html:ue}}),!c&&se(ue)&&(0,w.jsx)(C,{html:ue}),(0,w.jsx)("div",{ref:U,className:"".concat(A," ").concat(o?"":S),children:(0,w.jsx)(g.Z,{children:(0,w.jsx)(y.ZP,{onClick:function(){o?O(G.current):(q(G.current),te("flowChart"))},children:o?"编辑":"预览"})})}),(0,w.jsx)(b.Z,{close:!0,data:J,type:null!=J&&J.length?ee:"",style:i()({},P),onClose:function(){return q("")}})]})}},22449:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(7557),i=n.n(r),o=n(37205),a=n.n(o),l=n(41498),s=n.n(l),c=n(79800),u=n.n(c),d=n(59301),h="orangeColor___U5vU6",f="redColor___qYa6X",p="statustitle___pTBLm",m="statusbody___qUPQx",v="flex___VtL45",g=n(62957),y=n(37712),x=function(e){var t=e.type,n=e.resdata,r=e.onok,o=e.oktext,l=e.okloading,c=(0,d.useState)(!1),x=u()(c,2),b=x[0],w=x[1],C=n.can_copy_list,k=n.can_copy_num,A=n.challenge_type,S=(n.course_data_list,n.no_copy_list),E=n.no_copy_num,N=n.no_use_list,L=(n.no_use_num,n.repeat_shixun_num,n.student_count),M=(n.total_num,n.use_num),D=k>0||"exercise"===t;(0,d.useEffect)((function(){(null==n?void 0:n.student_count)>0&&w(!0)}),[n]),console.log("---11",l),(0,d.useEffect)((function(){l||w(!1)}),[l]);return(0,y.jsx)(g.Z,{open:b,onCancel:function(){w(!1)},cancelText:"取消",title:"提示",width:700,centered:!0,cancelButtonProps:{style:{display:!D&&"none"}},zIndex:1003,confirmLoading:l,okText:D?o:"我知道了",onOk:s()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!D){e.next=5;break}return e.next=3,r([].concat(a()(C),a()(N)));case 3:e.next=6;break;case 5:w(!1);case 6:case"end":return e.stop()}}),e)}))),children:(0,y.jsxs)("div",{style:{maxHeight:600,overflow:"auto"},children:["exercise"===t&&1===A?(0,y.jsxs)(y.Fragment,{children:["课堂内有",(0,y.jsx)("span",{className:h,children:L}),"名学生已在其他考试中挑战过其中的",(0,y.jsx)("span",{className:h,children:M}),"个实践项目,",(0,y.jsx)("span",{className:f,children:"重复发送会导致这部分学生无法作答已挑战过的实训题。"})]}):"exercise"===t&&2===A?(0,y.jsxs)(y.Fragment,{children:["课堂内有",(0,y.jsx)("span",{className:h,children:L}),"名学生已在课堂实验中挑战过其中的",(0,y.jsx)("span",{className:h,children:M}),"个实践项目,且作业已开启“作业截止后不允许学生编辑代码”设置项,",(0,y.jsx)("span",{className:f,children:"重复发布会导致这部分学生无法再提交作业。"})]}):"shixun"===t&&1===A?(0,y.jsxs)(y.Fragment,{children:["课堂内有",(0,y.jsx)("span",{className:h,children:L}),"名学生已在考试中挑战过该实践项目,",(0,y.jsx)("span",{className:f,children:"重复发送会导致这部分学生无法再提交作业。"})]}):"shixun"===t&&2===A?(0,y.jsxs)(y.Fragment,{children:["课堂内有",(0,y.jsx)("span",{className:h,children:L}),"名学生已在课堂实验中挑战过该实践项目,且作业已开启“作业截止后不允许学生编辑代码”设置项,",(0,y.jsx)("span",{className:f,children:"重复发送会导致这部分学生无法再提交作业。"})]}):"subject"===t&&1===A?(0,y.jsxs)(y.Fragment,{children:["课堂内有",(0,y.jsx)("span",{className:h,children:L}),"名学生已在考试中挑战过其中的",(0,y.jsx)("span",{className:h,children:M}),"个实践项目,",(0,y.jsx)("span",{className:f,children:"重复发送会导致这部分学生无法再提交作业。"})]}):"subject"===t&&2===A?(0,y.jsxs)(y.Fragment,{children:["课堂内有 ",(0,y.jsx)("span",{className:h,children:L})," 名学生已在课堂实验挑战过其中的 ",(0,y.jsx)("span",{className:h,children:M})," 个实践项目,且作业已开启“作业截止后不允许学生编辑代码”设置项,",(0,y.jsx)("span",{className:f,children:"重复发送会导致这部分学生无法再提交作业。"})]}):"exercisepush"===t?(0,y.jsxs)(y.Fragment,{children:["课堂内有",(0,y.jsx)("span",{className:h,children:L}),"名学生已在其他考试中挑战过试卷中的",(0,y.jsx)("span",{className:h,children:M}),"个实践项目 ",(0,y.jsx)("span",{className:f,children:"重复发布会导致这部分学生无法在当前考试中进行作答。"})]}):"shixunpush"===t&&1===A?(0,y.jsxs)(y.Fragment,{children:["课堂内有",(0,y.jsx)("span",{className:h,children:L}),"名学生已在考试中挑战过其中的",(0,y.jsx)("span",{className:h,children:M}),"个实践项目,",(0,y.jsx)("span",{className:f,children:"重复发布会导致这部分学生无法再提交作业。"})]}):"shixunpush"===t&&2===A?(0,y.jsxs)(y.Fragment,{children:["课堂内有",(0,y.jsx)("span",{className:h,children:L}),"名学生已在课堂实验中挑战过",(0,y.jsx)("span",{className:h,children:M}),"个实践项目,且作业已开启“作业截止后不允许学生编辑代码”设置项,",(0,y.jsx)("span",{className:f,children:"重复发布会导致这部分学生无法再提交作业。"})]}):void 0,"exercise"===t||"subject"===t||"exercisepush"===t||"shixunpush"===t?(0,y.jsxs)("div",{style:{marginTop:20},children:[E>0&&(0,y.jsxs)("div",{children:[(0,y.jsxs)("span",{className:v,children:[(0,y.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",style:{width:14}}),(0,y.jsx)("span",{className:p,children:"不支持复制的实践项目"})]}),(0,y.jsxs)("div",{className:m,children:["exercise"===t&&(0,y.jsxs)("div",{style:{marginBottom:15},children:["没有复制权限的实践项目,",(0,y.jsx)("span",{className:f,children:"以下试题将不会被发送至课堂中。"}),"您也可以联系项目创建者开启复制权限或者联系平台教研助理进行协助。"]}),("subject"===t||"exercisepush"===t)&&(0,y.jsxs)("div",{style:{marginBottom:15},children:["没有复制权限的实践项目,",D&&(0,y.jsx)("span",{className:f,children:"一键复制不会复制此部分项目。"}),"您可以联系项目创建者开启复制权限或者联系平台教研助理进行协助。"]}),"shixunpush"===t&&(0,y.jsxs)("div",{style:{marginBottom:15},children:["没有复制权限的实践项目,",D&&(0,y.jsx)("span",{className:f,children:"一键复制不会复制此部分项目。"}),"建议您重新选择实践项目再发布作业,也可联系项目创建者开启复制权限或联系平台教研助理进行协助。"]}),(0,y.jsx)("div",{children:null==S?void 0:S.map((function(e,t){return(0,y.jsxs)("a",{href:"/shixuns/".concat(e.identifier,"/challenges"),target:"_blank",children:["《",null==e?void 0:e.name,"》",t+1!==E&&"、"]})}))})]})]}),k>0&&(0,y.jsxs)("div",{style:{marginTop:20},children:[(0,y.jsxs)("span",{className:v,children:[(0,y.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",style:{width:14}}),(0,y.jsx)("span",{className:p,children:"支持复制的实践项目"})]}),(0,y.jsxs)("div",{className:m,children:["exercise"===t&&(0,y.jsx)("div",{style:{marginBottom:15},children:"建议您一键复制并替换试题(将复制并创建一个新的项目替换试卷中的原试题,不会复制学生的挑战记录,新的项目支持进行编辑并与原项目信息互不影响)。"}),("subject"===t||"exercisepush"===t)&&(0,y.jsx)("div",{style:{marginBottom:15},children:"建议您一键复制并发送(将复制并创建一个新的项目,不会复制学生的挑战记录,新的项目支持进行编辑并与原项目信息互不影响)。"}),"shixunpush"===t&&(0,y.jsx)("div",{style:{marginBottom:15},children:"建议您一键复制并替换试题(将复制并创建一个新的项目替换当前作业中的实践项目,不会复制学生的挑战记录,新的项目支持进行编辑并与原项目信息互不影响)。"}),(0,y.jsx)("div",{children:null==C?void 0:C.map((function(e,t){return(0,y.jsxs)("a",{href:"/shixuns/".concat(e.identifier,"/challenges"),target:"_blank",children:["《",null==e?void 0:e.name,"》",t+1!==k&&"、"]})}))})]})]})]}):"shixun"===t?(0,y.jsx)("div",{style:{marginTop:20},children:k>0?"该项目支持复制,建议您一键复制并发送(将复制并创建一个新的项目,不会复制学生的挑战记录,新的项目支持进行编辑并与原项目信息互不影响)。":"该项目不支持复制,您可以联系项目创建者开启复制权限或者联系平台教研助理进行协助。"}):void 0]})})}},2747:function(e,t,n){"use strict";n.d(t,{h:function(){return g}});var r=n(82242),i=n.n(r),o=n(79800),a=n.n(o),l=n(59301),s=n(82326),c=n(28284),u=n(99571),d=n(89780),h=n.n(d),f=(n(78318),n(44084),n(37712)),p=s.default.Option,m={labelCol:{span:4},wrapperCol:{span:20}},v={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"]};function g(e){var t=e.value,n=e.onChange,r=e.mode,o=e.options,s=void 0===o?{}:o,c=(0,l.useRef)(),u=(0,l.useState)(),d=a()(u,2),p=d[0],m=d[1];return(0,l.useEffect)((function(){if(p){var e=function(e){var t=e.getValue();n&&n(t)};return p.on("change",e),function(){p.off("change",e)}}}),[p,n]),(0,l.useEffect)((function(){p&&p.setOption("mode",r)}),[p,r]),(0,l.useEffect)((function(){p&&(t===p.getValue()&&""!==t||setTimeout((function(){p.setValue(t||"")}),300))}),[p,t]),(0,l.useEffect)((function(){if(c.current&&!p){var e=h().fromTextArea(c.current,i()({mode:r,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));m(e)}}),[c.current,p]),(0,f.jsx)("div",{className:"my-codemirror-container",children:(0,f.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,r=(0,l.useState)("python"),o=a()(r,2),d=o[0],h=o[1];return(0,f.jsxs)(c.Z,i()(i()({},m),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,f.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,f.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){h(v[e][1])},children:Object.keys(v).map((function(e){return(0,f.jsx)(p,{value:e,children:v[e][0]},e)}))})}),(0,f.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,f.jsx)(g,{mode:d})}),(0,f.jsxs)("div",{className:"flex-container flex-end",children:[(0,f.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,f.jsx)(u.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},15409:function(e,t,n){"use strict";n.d(t,{Z:function(){return he}});var r=n(91232),i=n.n(r),o=n(79800),a=n.n(o),l=n(85573),s=n.n(l),c=n(59301),u=n(5030),d=n(89780),h=n.n(d),f=n(76374),p=(n(78318),n(6313),n(25717),n(99498),n(25419),n(67549),n(76603)),m=n(37712),v=function(e){var t=e.value,n=void 0===t?"":t,r=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)("div",{dangerouslySetInnerHTML:{__html:r}})})},g=n(82242),y=n.n(g),x=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学公式",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"md-iconfont icon-formula",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function b(e){var t=e.onActionCallback,n=e.title,r=e.icon,i=e.actionName,o=e.className,a=void 0===o?"":o,l=e.children;return(0,m.jsxs)("a",{title:n,className:a,onClick:function(){t(i)},children:[(0,m.jsx)("i",{className:"".concat(r)}),l]})}var w=function(e){var t=e.watch,n=e.showNullButton,r=e.showNullProgramButton,i=e.onActionCallback,o=e.fullScreen,a=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(x,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,m.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,t){return(0,m.jsx)("li",{children:e.actionName?(0,m.jsx)(b,y()(y()({},e),{},{onActionCallback:i})):(0,m.jsx)("span",{className:"v-line"})},t)})),n?(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"增加填空",actionName:"add-null-ch",onActionCallback:i,children:(0,m.jsx)("span",{className:"fill-tip",children:"点击新增填空项"})})}):null,r?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:i,children:(0,m.jsx)("span",{className:"fill-tip",children:"添加单行填空项"})})}),(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:i,children:(0,m.jsx)("span",{className:"fill-tip",children:"添加多行填空项"})})})]}):null,a&&(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:i,children:(0,m.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,m.jsx)("li",{children:s}),(0,m.jsx)("li",{className:"btn-full-screen",children:(0,m.jsx)(b,{icon:"".concat(o?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:o?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:i})})]})},C=n(56946),k=n(28284),A=n(37568),S=n(99571),E={labelCol:{span:4},wrapperCol:{span:20}},N=function(e){var t=e.callback,n=e.onCancel;return(0,m.jsxs)(k.Z,y()(y()({},E),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,m.jsx)(k.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,m.jsx)(A.Z,{})}),(0,m.jsx)(k.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,m.jsx)(A.Z,{})}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},L=n(2747),M=n(26805),D=n(62957),P=n(77019),Z=n(17086),B=function(e){var t=e.callback,n=e.onCancel,r=document.createElement("canvas"),i=r.getContext("2d");r.width=1e3,r.height=800,i.fillStyle="#ffffff",i.fillRect(0,0,r.width,r.height);var o=r.toDataURL("image/png");return(0,m.jsx)(D.Z,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1,children:(0,m.jsx)(P.Z,{style:{height:"100vh"},children:(0,m.jsx)(Z.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:o,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})})},T=n(30641),j=n(5269),I=n(6767),F="drawerWrap___MfDw8",O=(0,c.forwardRef)((function(e,t){e.onCancel;var n=e.editImgId,r=e.callback,i=((0,c.useRef)(),(0,c.useRef)()),o=((0,c.useRef)(),(0,c.useRef)(!1),(0,c.useRef)(!1));console.log("ref:",t);var l=(0,c.useState)(0),s=a()(l,2),u=s[0],d=s[1],h=(0,c.useState)("100vh"),f=a()(h,2),p=f[0],v=f[1];return(0,c.useEffect)((function(){d(1)}),[]),(0,c.useImperativeHandle)(t,(function(){return{setHeight:v}})),(0,m.jsx)("div",{ref:o,className:"body-overflow-initial",children:(0,m.jsx)(T.Z,{width:"100vw",height:p,footer:null,closable:!0,placement:"bottom",open:!!u,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:"zIndex-9999 ".concat(F),onClose:function(){window.saveDrawData((function(e){r({src:"/api/attachments/".concat(e),id:e})}))},title:(0,m.jsxs)(P.Z,{align:"middle",children:[(0,m.jsx)(j.Z,{flex:1,children:"插入流程图"}),(0,m.jsx)(j.Z,{onClick:function(){v("60px"===p?"100vh":"60px")},children:(0,m.jsx)("span",{className:"current c-blue",style:{fontWeight:400},children:"展开/收起"})}),(0,m.jsx)(j.Z,{onClick:function(){window.saveDrawData((function(e){null!==e?(I.ZP.success({content:"保存成功",key:"saveFlowChart",style:{zIndex:999999999}}),r({src:"/api/attachments/".concat(e),id:e,disabledClose:!0})):I.ZP.warning({content:"内容为空,请先绘制流程图",key:"saveFlowChart"})}))},children:(0,m.jsx)(S.ZP,{type:"primary",className:"ml20",children:"保存"})})]}),children:(0,m.jsx)("iframe",{src:"/drawio/src/main/webapp/?id=".concat(n||"","&gapi=0&od=0&db=0&gh=0&gl=0&local=0"),width:"100%",height:"100%",frameBorder:"0",ref:i})})})})),R=n(6816),W=n(47889),z=n(71051),H=W.ZP.Group,V={margin:"0 8px"},K=function(e){var t=e.callback,n=e.onCancel;return(0,m.jsxs)(k.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,m.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,m.jsx)("span",{style:V,children:"单元格数:"}),(0,m.jsx)("span",{style:V,children:"行数"}),(0,m.jsx)(k.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,m.jsx)(z.Z,{})}),(0,m.jsx)("span",{style:V,children:"列数"}),(0,m.jsx)(k.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,m.jsx)(z.Z,{})})]}),(0,m.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,m.jsx)("span",{style:V,children:"对齐方式:"}),(0,m.jsx)(k.Z.Item,{name:"align",children:(0,m.jsxs)(H,{children:[(0,m.jsx)(W.ZP,{value:"default",children:(0,m.jsx)("i",{className:"fa fa-align-justify"})}),(0,m.jsx)(W.ZP,{value:"left",children:(0,m.jsx)("i",{className:"fa fa-align-left"})}),(0,m.jsx)(W.ZP,{value:"center",children:(0,m.jsx)("i",{className:"fa fa-align-center"})}),(0,m.jsx)(W.ZP,{value:"right",children:(0,m.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},Y=n(71411),U=n(24433),G=n.n(U),X=(0,c.forwardRef)((function(e,t){var n=e.use3d,r=e.width,i=e.height,o=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),h=d[0],f=d[1],p=(0,c.useRef)({id:l,appName:"graphing",width:r||1e3,height:i||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(G())(p.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var v=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return o&&o(e),e};return(0,c.useEffect)((function(){p.current.appName=h?"3D":"graphing",s.current.inject("applet_container")}),[h]),(0,c.useEffect)((function(){f(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:v}})),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,m.jsxs)(P.Z,{align:"middle",children:[(0,m.jsx)(j.Z,{flex:1,children:(0,m.jsx)(Y.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:h,onChange:function(e){return f(e)}})}),(0,m.jsx)(j.Z,{children:(0,m.jsx)(S.ZP,{size:"large",onClick:v,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),Q=n(74135),J="link",q="upload-image",_="add-flowchart",$="draw-image",ee="code-block",te="add-table",ne="------------",re={default:ne,left:":".concat(ne),center:":".concat(ne,":"),right:"".concat(ne,":")},ie=n(21323),oe=n(32985);var ae="@▁▁@",le=["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 se(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var ce=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",ue=s()(s()({},ce+"-B","bold"),ce+"-I","italic"),de=s()(s()(s()(s()(s()(s()(s()(s()({},J,"添加链接"),ee,"添加代码块"),q,"添加图片"),$,"添加画图"),_,"插入流程图"),te,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),he=function(e){var t=e.defaultValue,n=void 0===t?"":t,r=e.onChange,o=e.width,l=void 0===o?"100%":o,d=e.height,g=void 0===d?400:d,y=e.miniToolbar,x=void 0!==y&&y,b=e.isFocus,k=void 0!==b&&b,A=e.watch,S=e.insertTemp,E=e.mode,P=void 0===E?"markdown":E,Z=e.id,T=void 0===Z?"markdown-editor-id":Z,j=e.showResizeBar,F=void 0!==j&&j,W=e.noStorage,z=void 0!==W&&W,H=e.showNullButton,V=void 0!==H&&H,Y=e.showNullProgramButton,U=void 0!==Y&&Y,G=e.hidetoolBar,ne=void 0!==G&&G,ce=e.fullScreen,he=void 0!==ce&&ce,fe=e.onBlur,pe=e.onCMBeforeChange,me=e.onFullScreen,ve=e.className,ge=void 0===ve?"":ve,ye=e.disablePaste,xe=void 0!==ye&&ye,be=e.disabled,we=void 0!==be&&be,Ce=e.disabledFill,ke=void 0!==Ce&&Ce,Ae=e.placeholder,Se=void 0===Ae?"":Ae,Ee=e.values,Ne=void 0===Ee?"":Ee,Le=e.extraUse,Me=e.onAddBlank,De=(0,c.useState)(null),Pe=a()(De,2),Ze=Pe[0],Be=Pe[1],Te=(0,c.useState)(n),je=a()(Te,2),Ie=je[0],Fe=je[1],Oe=(0,c.useState)(A),Re=a()(Oe,2),We=Re[0],ze=Re[1],He=(0,c.useState)(he),Ve=a()(He,2),Ke=Ve[0],Ye=Ve[1],Ue=(0,c.useState)(""),Ge=a()(Ue,2),Xe=Ge[0],Qe=Ge[1],Je=(0,c.useState)(0),qe=a()(Je,2),_e=qe[0],$e=qe[1],et=(0,c.useState)(g),tt=a()(et,2),nt=tt[0],rt=tt[1],it=(0,c.useState)(!1),ot=a()(it,2),at=(ot[0],ot[1]),lt=(0,c.useState)(0),st=a()(lt,2),ct=st[0],ut=st[1],dt=(0,c.useState)(0),ht=a()(dt,2),ft=ht[0],pt=ht[1],mt=(0,c.useRef)(),vt=(0,c.useRef)(),gt=(0,c.useRef)(),yt=(0,c.useRef)(),xt=(0,c.useRef)(),bt=(0,c.useRef)(),wt=(0,u.useDispatch)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Fe(Ne),null==Ze||Ze.setValue(Ne),window.scrollTo(0,e)}),[Ne]),(0,c.useEffect)((function(){null==me||me(Ke)}),[Ke]),(0,c.useEffect)((function(){if(mt.current){var e=function(e,n){if(!xe){var r=n.clipboardData;if(r){var i=r.types.toString(),o=r.items;if("Files"===i||r.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==P)return;try{var a,l=o[1];"file"===(null===(a=o[0])||void 0===a?void 0:a.kind)&&(l=o[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,M.I)(s,(function(e){var n,r,i;e.id?(null==s||null===(n=s.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection('<img width="100%" src="/api/attachments/'.concat(e.id,"?type=").concat(e.content_type,')" alt="','" />')):(null==s||null===(r=s.type)||void 0===r?void 0:r.indexOf("video"))>-1?t.replaceSelection('<video width="100%" controls src="/api/attachments/'.concat(e.id,'"></video>')):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("pdf"))>-1?t.replaceSelection('<a href="/api/attachments/'.concat(e.id,"?type=").concat(s.type,'&disposition=inline" target="_blank">').concat(s.name,"</a>")):le.includes(c)?t.replaceSelection('<a href="/api/attachments/'.concat(e.id,'?type=office&disposition=inline" target="_blank">').concat(s.name,"</a>")):t.replaceSelection("[".concat(s.name,"](/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){I.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=h().fromTextArea(mt.current,{mode:P,lineNumbers:!x,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",Se):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),r=n.getCursor(),i=n.getLine(r.line),o=i.charAt(r.ch-1),a=i.lastIndexOf("@▁@",r.ch),l=i.lastIndexOf("@▁▁@",r.ch),s=a>l?a:l,c=a>l?3:4;if(-1===ae.indexOf(o))return null;if(console.log("change1:",t,e,i,r,s,a,l,o),s>=0&&r.ch-s<5){var u=s+c;return n.replaceRange("",{line:r.line,ch:s},{line:r.line,ch:u}),{line:r.line,ch:u}}return null}(e);n&&t.preventDefault()}})),k&&t.focus(),t.on("paste",e),we&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Be(t),function(){t.off("paste",e)}}}),[]);var Ct=(0,c.useCallback)((function(){vt.current}),[nt,vt,Ke]);(0,c.useEffect)((function(){if(Ze){var e=function(){var e=new f.Z((function(e){var t,n=i()(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;(r.target.offsetHeight>0||r.target.offsetWidth>0)&&(Ct(),Ze.setSize("100%","100%"),Ze.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(mt.current.parentElement),e}();return function(){var t,n;null!==(t=mt.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=mt.current)||void 0===n?void 0:n.parentElement)}}}),[Ze,Ct]),(0,c.useEffect)((function(){if(Ze){for(var e=[],t=function(){var t=a()(r[n],2),i=t[0],o=t[1],l=s()({},i,(function(){kt(o)}));e.push(l),Ze.addKeyMap(l)},n=0,r=Object.entries(ue);n<r.length;n++)t();return function(){for(var t=0,n=e;t<n.length;t++){var r=n[t];Ze.removeKeyMap(r)}}}}),[Ze]),(0,c.useEffect)((function(){he!==Ke&&Ye(he)}),[he]),(0,ie.Z)((function(){if(!z&&_e>0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(T);e>=_e+1e4&&(!t||t!==Ie)&&(window.sessionStorage.setItem(T,Ie),at(!0))}}),1e4),(0,c.useEffect)((function(){ze(A)}),[Ze,A]),(0,c.useEffect)((function(){Ze&&k&&Ze.focus()}),[Ze,k]),(0,c.useEffect)((function(){if(We&&Ze){var e=function(e){var t=e.target;if(yt.current){var n=t.scrollTop/t.scrollHeight;yt.current.scrollTop=yt.current.scrollHeight*n}},t=Ze.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Ze,We]),(0,c.useEffect)((function(){if(Ze&&pe){var e=function(e,t){pe(e,t)};return Ze.on("beforeChange",e),function(){Ze.off("beforeChange",e)}}}),[Ze,pe]),(0,c.useEffect)((function(){if(Ze&&fe){var e=function(){fe(Ze.getValue())};return Ze.on("blur",e),function(){Ze.off("blur",e)}}}),[Ze,fe]),(0,c.useEffect)((function(){if(Ze){var e=function(e,t){var n=e.getValue();Fe(n),$e((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),r&&(U?r(n,Lt(n)):r(n))};return Ze.on("change",e),function(){Ze.off("change",e)}}}),[Ze,r]),(0,c.useEffect)((function(){if(Ze)if(null==n)Ze.setValue(""),Fe("");else{var e=window.scrollY||window.pageYOffset;n!==Ze.getValue()&&(Ze.setValue(n),Fe(n),Ze.setCursor(we?1:Ze.lineCount(),0),window.scrollTo(0,e))}}),[Ze,n]);var kt=(0,c.useCallback)((function(e){var t=Ze.getCursor(),n=Ze.getSelection(),r=n.split("\n");switch(e){case"bold":return Ze.replaceSelection("**"+n+"**"),""===n&&Ze.setCursor(t.line,t.ch+2),Ze.focus();case"italic":return Ze.replaceSelection("*"+n+"*"),""===n&&Ze.setCursor(t.line,t.ch+1),Ze.focus();case"code":return Ze.replaceSelection("`"+n+"`"),""===n&&Ze.setCursor(t.line,t.ch+1),Ze.focus();case"inline-latex":if((0,oe.Ye)(wt))return;return Qe("inline-latex"),Ze.focus();case"latex":return Ze.replaceSelection("```latex\n"+n+"\n```"),Ze.setCursor(t.line+1,n.length+1),Ze.focus();case"line-break":return Ze.replaceSelection("<br/>\n"),Ze.focus();case"list-ul":return""===n?Ze.replaceSelection("- "+n):Ze.replaceSelection(r.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Ze.focus();case"list-ol":return""===n?Ze.replaceSelection("1. "+n):Ze.replaceSelection(r.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Ze.focus();case"add-null-ch":return void(null==Me||Me());case"add-signal":return""===n&&Ze.setCursor(t.line,t.ch),Ze.replaceSelection("@▁@"),Ze.focus();case"add-multiple":return""===n&&Ze.setCursor(t.line,t.ch),Ze.replaceSelection(ae),Ze.focus();case"inster-template-1":return""===n&&Ze.setCursor(t.line,t.ch),Ze.replaceSelection("\n**模板标题**\n模板正文内容可输入文本内容和粘贴图片等操作"),Ze.focus();case"eraser":return Ze.setValue(""),Ze.focus();case"trigger-watch":return ze(!We),Ze.focus();case"trigger-full-screen":return Ye(!Ke),Ze.focus();case J:return void Qe(J);case ee:return void Qe(ee);case q:return void Qe(q);case $:return void Qe($);case"maths-latex":if((0,oe.Ye)(wt))return;return void Qe("maths-latex");case _:return xt.current="",sessionStorage.removeItem("file_id"),void Qe(_);case te:return void Qe(te);default:throw new Error}}),[Ze,We,Ke]),At=(0,c.useCallback)((function(e,t){var n,r,i,o,a;null!=e&&e.disabledClose||Qe("");var l=e||{},s=l.src,c=l.alt,u=l.id;switch(Xe){case J:var d=e.title,h=e.link;return Ze.replaceSelection("[".concat(d,"](").concat(h,")")),Ze.focus();case ee:var f=e.language,p=e.content;return Ze.replaceSelection(["```"+f,p,"```"].join("\n")),Ze.focus();case"maths-latex":for(var m=atob(e),v=new Uint8Array(m.length),g=0;g<m.length;g++)v[g]=m.charCodeAt(g);var y=new Blob([v],{type:"image/png"});(0,M.I)(y,(function(e){e.id?Ze.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}));break;case"inline-latex":if((0,oe.Ye)(wt))return;Ze.replaceSelection("`$$"+e+"$$`");break;case"add-flowchart":if(!u)return;-1===Ze.getValue().indexOf(s)?Ze.replaceSelection('<center><img id="'.concat(u,'" width="80%" src="').concat(s,'" class="draw-flowchart" alt="').concat(c||"",'" /></center>')):document.getElementById(u).src=R.Z.API_SERVER+s+"?t="+Date.now();break;case q:case $:var x=t,b=null==x||null===(n=x.name)||void 0===n||null===(n=n.split("."))||void 0===n||null===(r=n.pop)||void 0===r?void 0:r.call(n);return(null==x||null===(i=x.type)||void 0===i?void 0:i.indexOf("image"))>-1||null==x||!x.type?null!=x&&x.align||null!=x&&x.width?Ze.replaceSelection('<p style="text-align:'.concat(x.align||"initial",'"><img width="').concat(x.width?x.width+"%":"initial",'" src="').concat(s,'" alt="').concat(c||"",'" /></p>')):Ze.replaceSelection('<img width="100%" src="'.concat(s,'" alt="').concat(c||"",'" />')):(null==x||null===(o=x.type)||void 0===o?void 0:o.indexOf("video"))>-1?Ze.replaceSelection('<video width="100%" controls src="'.concat(s,'"></video>')):(null==x||null===(a=x.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Ze.replaceSelection('<a href="'.concat(s,"?type=").concat(x.type,'&disposition=inline" target="_blank">').concat(x.name,"</a>")):le.includes(b)?Ze.replaceSelection('<a href="'.concat(s,'?type=office&disposition=inline" target="_blank">').concat(x.name,"</a>")):Ze.replaceSelection("[".concat(x.name,"](").concat(s,")")),Ze.focus();case te:for(var w=e.row,C=e.col,k=e.align,A="\n",S=0;S<w;S++){for(var E=[],N=[],L=0;L<C;L++)1===S&&N.push(re[k]),E.push(" ");1===S&&(A+="| ".concat(N.join(" | ")," |\n")),A+="| ".concat(E.join(1===C?"":" | ")," |\n")}return Ze.replaceSelection(A+"\n"),Ze.focus();default:throw new Error}}),[Ze,Xe]),St=(0,c.useMemo)((function(){switch(Xe){case J:return(0,m.jsx)(N,{callback:At,onCancel:Et});case ee:return(0,m.jsx)(L.Z,{callback:At,onCancel:Et});case q:return(0,m.jsx)(M.Z,{callback:At,onCancel:Et});case _:return(0,m.jsx)(O,{editImgId:xt.current,callback:At,onCancel:Et});case te:return(0,m.jsx)(K,{callback:At,onCancel:Et});case"maths-latex":return(0,m.jsx)(X,{showSaveButton:!0,callback:At});case"inline-latex":return(0,m.jsx)(Q.Z,{showSaveButton:!0,callback:At});default:return null}}),[Xe]);function Et(){Qe("")}(0,c.useEffect)((function(){if(gt.current){var e=function(e){i=!0,o=e.pageY},t=function(){i=!1},n=function(e){if(i){var t=e.pageY-o;t<0&&(t=0),t>300&&(t=300),rt(g+t+"px")}},r=gt.current,i=!1,o=0;return r.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){r.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Ze,gt]),(0,c.useEffect)((function(){rt(g)}),[g]);var Nt={width:se(l),height:se(nt)},Lt=((0,c.useMemo)((function(){if(_e){var e=new Date(_e),t=e.getHours(),n=e.getMinutes(),r=e.getSeconds();return n=n<10?"0"+n:n,r=r<10?"0"+r:r,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(r)}return 0}),[_e]),function(e){var t=[];if(U){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,r){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){de[Xe]&&Xe!==$&&Xe!==_&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;ut(t),pt(n)}),0)}),[Xe]);var Mt=function(e,t,n,r){var i=document.body.clientHeight,o=document.body.clientWidth;return!(e<20&&n>e||e>o-20&&n<e||t<20&&r>t||t>i-20&&r<t)||(document.body.onmousemove=null,document.body.onmouseup=null,!1)};return(0,m.jsxs)(c.Fragment,{children:[(0,m.jsx)("div",{className:"markdown-editor-wrapper",ref:vt,children:(0,m.jsxs)("div",{className:"markdown-editor-container ".concat(ge," ").concat(We?"on-preview":""," ").concat(x?"mini":""," ").concat(Ke?"full-screen":""),style:Nt,children:[(0,m.jsx)(w,{insertTemp:S,watch:We,fullScreen:Ke,showNullButton:V,showNullProgramButton:U,onActionCallback:kt,hidetoolBar:ne,extraUse:Le}),(0,m.jsxs)("div",{className:"markdown-editor-body",children:[(0,m.jsx)("div",{className:"codemirror-container",children:(0,m.jsx)("textarea",{ref:mt,placeholder:Se})}),We?(0,m.jsxs)("div",{ref:yt,className:"preview-container",children:["stex"===P&&(0,m.jsx)(v,{value:Ie}),"stex"!==P&&(0,m.jsx)(p.Z,{edit:!0,disabledFill:ke,showProgramFill:U,value:Ie,openEditor:function(e){var t;xt.current=e,null===(t=bt.current)||void 0===t||t.setHeight("100vh"),setTimeout((function(){Qe("add-flowchart")}),150)}})]}):null]})]})}),F?(0,m.jsx)("a",{ref:gt,className:"editor-resize"}):null,Xe===$&&(0,m.jsx)(B,{callback:At,onCancel:Et}),Xe===_&&(0,m.jsx)(O,{ref:bt,editImgId:xt.current,callback:At,onCancel:Et}),(0,m.jsx)(C.Z,{children:de[Xe]&&Xe!==$&&Xe!==_?(0,m.jsx)(D.Z,{maskClosable:!1,centered:!0,style:{position:"absolute",left:ct,top:ft},title:(0,m.jsx)("div",{style:{cursor:"move"},onMouseDown:function(e){e.preventDefault();var t=e.clientX-ct,n=e.clientY-ft;document.body.onmousemove=function(e){var r=e.clientX-t,i=e.clientY-n,o=document.getElementsByClassName("markdown-popup-form")[0],a=window.innerWidth-o.offsetWidth,l=window.innerHeight-o.offsetHeight;r=Math.max(0,Math.min(r,a)),i=Math.max(0,Math.min(i,l)),Mt(e.clientX,e.clientY,t,n)&&(ut(r),pt(i))},document.body.onmouseup=function(){document.body.onmousemove=null}},children:de[Xe]}),open:!0,onCancel:Et,footer:null,destroyOnClose:!0,width:Xe===_?"1200px":null,height:Xe===_?"80vh":null,className:"markdown-popup-form",children:St}):null})]})}},26805:function(e,t,n){"use strict";n.d(t,{Z:function(){return b},I:function(){return C}});var r=n(82242),i=n.n(r),o=n(79800),a=n.n(o),l=n(28284),s=n(6767),c=n(37568),u=n(77736),d=n(71051),h=n(47889),f=n(99571),p=n(20337),m=n(59301),v=n(37712),g=l.Z.useForm,y={width:280,marginRight:10},x={labelCol:{span:5},wrapperCol:{span:19}},b=function(e){var t=e.callback,n=e.onCancel,r=g(),o=a()(r,1)[0],p=(0,m.useRef)();function b(e,t){-1!==e.status?o.setFieldsValue({src:"/api/attachments/".concat(e.id),type:t.type}):s.ZP.error(e.message)}return(0,v.jsxs)(l.Z,i()(i()({form:o},x),{},{className:"upload-image-panel",onFinish:function(e){p.current.width=o.getFieldValue("width"),p.current.align=o.getFieldValue("align"),t(e,p.current)},style:{width:470,overflow:"hidden"},children:[(0,v.jsx)(l.Z.Item,{label:"图片地址",required:!0,children:(0,v.jsxs)("div",{className:"flex-container",children:[(0,v.jsx)(l.Z.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"请输入图片地址"}],children:(0,v.jsx)(c.Z,{style:y})}),(0,v.jsx)(w,{onFileChange:function(e){var t=e.target.files[0];p.current=t,C(t,b)}})]})}),(0,v.jsx)(l.Z.Item,{label:"图片描述",name:"alt",children:(0,v.jsx)(c.Z,{style:{width:264}})}),(0,v.jsx)(l.Z.Item,{label:"图片宽度",name:"width",children:(0,v.jsxs)(u.Z,{children:[(0,v.jsx)(l.Z.Item,{name:"width",style:{margin:0},children:(0,v.jsx)(d.Z,{style:{width:264}})}),(0,v.jsx)("span",{className:"ml8",children:"%"})]})}),(0,v.jsx)(l.Z.Item,{label:"对齐方式",name:"align",children:(0,v.jsx)(h.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"左对齐"},{value:"center",label:"居中对齐"},{value:"right",label:"右对齐"}]})}),(0,v.jsx)("aside",{children:(0,v.jsxs)(l.Z.Item,{style:{textAlign:"right",position:"relative",right:-98},children:[(0,v.jsx)(f.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,v.jsx)(f.ZP,{type:"default",onClick:n,children:"取消"})]})})]}))};function w(e){var t=e.onFileChange;return(0,v.jsxs)("label",{className:"upload-button",style:{cursor:"pointer"},children:["本地上传",(0,v.jsx)("input",{type:"file",onChange:t})]})}function C(e,t){if(!e)throw new String("没有文件");var n=new FormData;n.append("editormd-image-file",e),n.append("file_param_name","editormd-image-file"),n.append("byxhr","true");var r=new window.XMLHttpRequest;r.withCredentials=!0,r.addEventListener("load",(function(n){t(JSON.parse(n.target.responseText),e)}),!1),r.addEventListener("error",(function(e){console.error(e)}),!1),r.open("POST","".concat(p.KI,"/api/attachments.json")),r.send(n)}},56946:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(82100),i=n.n(r),o=n(29186),a=n.n(o),l=n(80619),s=n.n(l),c=n(47074),u=n.n(c),d=n(59301),h=n(4676),f=function(e){s()(n,e);var t=u()(n);function n(e){var r;i()(this,n),r=t.call(this,e);var o=window.document;return r.node=o.createElement("div"),o.body.appendChild(r.node),r}return a()(n,[{key:"render",value:function(){var e=this.props.children;return(0,h.createPortal)(e,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),n}(d.Component)},49337:function(e,t,n){"use strict";n.d(t,{SV:function(){return q},ZP:function(){return J}});var r=n(82242),i=n.n(r),o=n(37205),a=n.n(o),l=n(91232),s=n.n(l),c=n(79800),u=n.n(c),d=n(39647),h=n.n(d),f=n(7557),p=n.n(f),m=n(41498),v=n.n(m),g=n(59301),y=n(76374),x=["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"],b={quickKey:[{label:"main",content:["public static void main(String[] args) {","\t$0","}"].join("\n")},{label:"System.out.println",content:["System.out.println($0)"].join("\n")},{label:"System.out.print",content:["System.out.print($0)"].join("\n")}],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"]},w={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}) {","\t$0","} else {","\t","}"].join("\n")},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {","\t$0","}"].join("\n")},{label:"if",content:["if () {","\t$0","}"].join("\n")},{label:"for",content:["for(int j=0 ; j<10; j++){","\t$0","}"].join("\n")},{label:"trycatch",content:["try{","\t$0","}catch(ExceptionName e){","}"].join("\n")},{label:"using namespace std;",content:["using namespace std;"].join("\n")},{label:"include <iostream>",content:["#include <iostream>"].join("\n")},{label:"include <vector>",content:["#include <vector>"].join("\n")},{label:"include <cstdio>",content:["#include <cstdio>"].join("\n")},{label:"include <cstring>",content:["#include <cstring>"].join("\n")},{label:"include <sstream>",content:["#include <sstream>"].join("\n")},{label:"include <fstream>",content:["#include <fstream>"].join("\n")},{label:"include <map>",content:["#include <map>"].join("\n")},{label:"include <string>",content:["#include <string>"].join("\n")},{label:"include <cmath>",content:["#include <cmath>"].join("\n")}]},C={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("\n")}]},k={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("\n")}]},A=n(53184),S=n.n(A),E={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"]}},N=function(e,t,n,r){e.languages.registerCompletionItemProvider(t,{provideCompletionItems:function(t,i){var o=t.getWordUntilPosition(i),l={startLineNumber:i.lineNumber,endLineNumber:i.lineNumber,startColumn:o.startColumn,endColumn:o.endColumn},s=t.getLineContent(i.lineNumber).substring(o.startColumn-2,o.endColumn),c=function(e,t,n,r){var i=t.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:n.lineNumber,endColumn:n.column});return Array.from(new Set(i.match(/\b\w{2,}\b/g)||[])).map((function(t){return{label:t,kind:e.languages.CompletionItemKind.Text,insertText:t,range:r}}))}(e,t,i,l);return{suggestions:[].concat(a()(c),a()(n.map((function(t){return{label:t,kind:e.languages.CompletionItemKind.Keyword,documentation:t,insertText:t,insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:l}}))),a()(r.map((function(t){return{label:t.label,kind:e.languages.CompletionItemKind.Snippet,documentation:t.content,insertText:s.startsWith("#")?t.content.replace(/#/,""):t.content,insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:l}}))))}}})},L=n(82100),M=n.n(L),D=n(29186),P=n.n(D),Z=n(85573),B=n.n(Z),T=function(){function e(t,n,r){var i=this;M()(this,e),this.placeholder=t,this.editor=n,this.monaco=r,n.onDidChangeModelContent((function(){return i.onDidChangeModelContent()})),this.onDidChangeModelContent()}return P()(e,[{key:"onDidChangeModelContent",value:function(){""===this.editor.getValue()?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}},{key:"getId",value:function(){return e.ID}},{key:"getDomNode",value:function(){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}},{key:"getPosition",value:function(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}},{key:"dispose",value:function(){this.editor.removeContentWidget(this)}}]),e}();B()(T,"ID","editor.widget.placeholderHint");var j=T,I=n(96236),F=n(6767),O=n(25399),R=n(89392),W=n(13326),z=n(56102),H=n(37712),V=["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"];function K(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}function Y(){}var U={"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 G(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e;if(Array.isArray(e)){for(var n=0;n<e.length;n++){var r=U[e[n]];if(r)return r}return t[0]}return U[t]||t}var X=null,Q=function(){var e=v()(p()().mark((function e(){return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,navigator.clipboard.writeText(" ");case 3:console.log("内容已自动复制到剪贴板:"),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),console.error("自动复制失败:",e.t0);case 9:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(){return e.apply(this,arguments)}}(),J=function(e){var t=e.width,r=void 0===t?"100%":t,o=e.height,l=void 0===o?"100%":o,c=e.value,d=e.language,f=void 0===d?"javascript":d,m=e.style,A=void 0===m?{}:m,L=e.options,M=void 0===L?{}:L,D=e.overrideServices,P=void 0===D?{}:D,Z=e.theme,B=void 0===Z?"vs-dark":Z,T=e.onEditBlur,U=e.isCopy,J=void 0!==U&&U,q=e.onSave,_=e.autoHeight,$=void 0!==_&&_,ee=e.forbidCopy,te=void 0!==ee&&ee,ne=e.onChange,re=void 0===ne?Y:ne,ie=e.editorDidMount,oe=void 0===ie?Y:ie,ae=e.onFocus,le=void 0===ae?Y:ae,se=e.onBreakPoint,ce=void 0===se?Y:se,ue=e.breakPointValue,de=void 0===ue?[]:ue,he=e.filename,fe=void 0===he?"educoder.txt":he,pe=e.errorLine,me=e.errorContent,ve=void 0===me?"":me,ge=e.highlightLine,ye=e.openBreakPoint,xe=void 0!==ye&&ye,be=e.placeholder,we=void 0===be?"":be,Ce=e.showMiniMap,ke=void 0===Ce||Ce,Ae=(h()(e,V),(0,g.useRef)()),Se=(0,g.useRef)({}),Ee=(0,g.useRef)(),Ne=(0,g.useRef)(),Le=(0,g.useRef)([]),Me=(0,g.useRef)(!1),De=(0,g.useRef)(),Pe=(0,g.useRef)(),Ze=(0,g.useRef)(!1),Be=(0,g.useState)(!1),Te=u()(Be,2),je=Te[0],Ie=Te[1];(0,g.useEffect)((function(){var e=W.Z.subscribe("formatDocument",(function(e){var t,n=Se.current.instance;null==n||null===(t=n.getAction)||void 0===t||t.call(n,"editor.action.formatDocument").run()}));return window.updateMonacoValue=function(e){re(e)},e}),[]),(0,g.useEffect)((function(){var e,t=Se.current.instance;(Ne.current&&clearTimeout(Ne.current),Ne.current=setTimeout((function(){!function(){var e=Se.current.instance;if(null!=c&&e&&je){var t=e.getModel();t&&c!==t.getValue()&&(!0,t.setValue(c),e.layout(),!1)}}()}),500),c&&null!=c&&c.length)&&(null==t||null===(e=t.updateOptions)||void 0===e||e.call(t,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(c.split(/\r\n|\r|\n/g).length))+3,5)}))}),[c,je,Se.current]),(0,g.useEffect)((function(){if(pe&&Se.current&&Se.current.instance){var e=Se.current.instance;e.changeViewZones((function(e){var t=document.createElement("div");t.style.padding="10px 20px",t.style.width="calc(100% - 20px)",t.className="my-error-line-wrp",t.innerHTML=ve,e.addZone({afterLineNumber:pe||11,heightInLines:3,domNode:t})}));var t={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}};e.addOverlayWidget(t),e.revealPositionInCenter({lineNumber:20,column:1})}}),[pe,Se.current,je]);var Fe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if(!e||""===e.trim())return!0;for(var n=Se.current.instance.getModel(),r=n.getLineTokens(t),i=!1,o=0;o<2;o++)1===r.getStandardTokenType(o)&&(i=!0);return i};function Oe(e){(window.navigator.platform.match("Mac")?e.metaKey:e.ctrlKey)&&83==e.keyCode&&(e.preventDefault(),q())}(0,g.useEffect)((function(){var e,t=null===(e=Se.current)||void 0===e?void 0:e.instance;if(t&&je&&te){var n=t.onDidBlurEditorWidget((function(){Ze.current=!1})),r=t.onDidFocusEditorText((function(){Ze.current=!0}));return function(){n.dispose(),r.dispose()}}}),[Se.current,je,te]),(0,g.useEffect)((function(){var e;if(null!==(e=Se.current)&&void 0!==e&&e.instance&&je&&xe){var t=Se.current.instance,n=t.getModel();if(!n)return;!function(){var e,r=[],i=[],o=n.getAllDecorations(),a=s()(o);try{for(a.s();!(e=a.n()).done;){var l,c=e.value;if("highlighted-line"===c.options.className)r.push(null==c||null===(l=c.range)||void 0===l?void 0:l.startLineNumber),i.push(null==c?void 0:c.id)}}catch(e){a.e(e)}finally{a.f()}if(ge!==r[0]){n.deltaDecorations(i,[]);var u=n.getLineCount();ge&&ge<=u&&(t.deltaDecorations([],[{range:new X.Range(ge,1,ge,n.getLineMaxColumn(ge)),options:{isWholeLine:!0,className:"highlighted-line"}}]),t.revealLineInCenter(ge))}}();var r=function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=[],i=[],o=n.getAllDecorations(),a=s()(o);try{for(a.s();!(e=a.n()).done;){var l,c=e.value;if("breakpoints-select"===c.options.linesDecorationsClassName)r.push(null==c||null===(l=c.range)||void 0===l?void 0:l.startLineNumber),i.push(null==c?void 0:c.id)}}catch(e){a.e(e)}finally{a.f()}if(t)return{lines:r,ids:i};ce(r)},i=function(){var e=v()(p()().mark((function e(t){var i;return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i={range:new X.Range(t,1,t,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}},e.next=3,n.deltaDecorations([],[i]);case 3:r();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),o=function(){var e=v()(p()().mark((function e(i){var o,a,l,c,u;return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=[],a=t.getLineDecorations(i),l=s()(a);try{for(l.s();!(c=l.n()).done;)"breakpoints-select"===(u=c.value).options.linesDecorationsClassName&&o.push(u.id)}catch(e){l.e(e)}finally{l.f()}return e.next=6,n.deltaDecorations(o,[]);case 6:r();case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a=function(e){var n,r=t.getLineDecorations(e),i=s()(r);try{for(i.s();!(n=i.n()).done;){if("breakpoints-select"===n.value.options.linesDecorationsClassName)return!0}}catch(e){i.e(e)}finally{i.f()}return!1};if(!(0,R.isEqual)(de,r(!0).lines)){n.deltaDecorations(r(!0).ids,[]);var l=de.map((function(e){return{range:new X.Range(e,1,e,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}}));n.deltaDecorations([],l)}var c=t.onDidChangeModelContent((function(e){var l=t.getPosition();if(l){var s=l.lineNumber;clearTimeout(Pe.current),Pe.current=setTimeout((function(){Fe(n.getLineContent(s),s)?o(s):a(s)?(o(s),i(s)):r()}),100)}})),u=t.onMouseDown((function(e){var t;if(e.target.detail&&null!==(t=e.target)&&void 0!==t&&null!==(t=t.element)&&void 0!==t&&null!==(t=t.className)&&void 0!==t&&t.includes("line-numbers")){var r=e.target.position.lineNumber;if(Fe(n.getLineContent(r),r))return;a(r)?o(r):i(r)}})),d=function(){Le.current=t.deltaDecorations(Le.current,[])},h=t.onMouseMove((function(e){var r;if(d(),e.target.detail&&null!==(r=e.target)&&void 0!==r&&null!==(r=r.element)&&void 0!==r&&null!==(r=r.className)&&void 0!==r&&r.includes("line-numbers")){var i=e.target.position.lineNumber;if(Fe(n.getLineContent(i),i))return;!function(e){var n={range:new X.Range(e,1,e,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Le.current=t.deltaDecorations(Le.current,[n])}(i)}})),f=t.onMouseLeave((function(){d()}));return function(){c.dispose(),u.dispose(),h.dispose(),f.dispose()}}}),[Se.current,je,de,ge,xe,f]),(0,g.useEffect)((function(){var e;null!==(e=Se.current)&&void 0!==e&&e.instance&&xe&&Se.current.instance.setPosition({lineNumber:0,column:0})}),[ge]);var Re=function(){if($&&Se.current.instance){var e=Se.current.instance.getContentHeight();Xe(e<l?l:e)}else Xe(l)};var We=function(e){if(Ze.current){var t=e.keyCode,n=e.ctrlKey,r=e.metaKey,i=e.target;return"paste"!==e.type&&(67!==t&&86!==t||!r&&!n)||"TEXTAREA"!==i.nodeName||(F.ZP.warning({content:decodeURIComponent("该任务关卡设置了禁止复制粘贴,请手动输入代码。"),key:"monaco-editor-tip"}),e.preventDefault()),!1}};function ze(e,t){var n,r,i=window.URL||window.webkitURL||window,o=new Blob([t]),a=document.createElementNS("http://www.w3.org/1999/xhtml","a");a.href=i.createObjectURL(o),a.download=e,n=a,(r=document.createEvent("MouseEvents")).initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(r)}(0,g.useEffect)((function(){Re()}),[Re]),(0,g.useEffect)((function(){Ae.current&&!je&&Promise.all([n.e(8909),n.e(1196)]).then(n.bind(n,71448)).then((function(e){try{X=e,Se.current.instance=X.editor.create(Ae.current,{value:c,language:G(f),theme:B,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:ke||!1}},P);var t=Se.current.instance,n=I.BH._menuItems,r=a()(n).find((function(e){return"EditorContext"==e[0]._debugName}))[1];if(oe(t,X),setTimeout((function(){Re(),Se.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){ze(fe||"educoder.txt",t.getValue())}})}),500),Se.current.subscription=t.onDidChangeModelContent((function(e){Me.current?clearTimeout(De.current):(Re(),re(t.getValue(),e)),De.current=setTimeout((function(){Me.current=!1}),500)})),window.Monaco||function(e){E.languages.forEach((function(t){e.languages.registerDocumentFormattingEditProvider(t,{provideDocumentFormattingEdits:function(e){return v()(p()().mark((function t(){var n;return p()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=S()(e.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}),t.abrupt("return",[{range:e.getFullModelRange(),text:n}]);case 2:case"end":return t.stop()}}),t)})))()}})})),N(e,"java",b.keywords,b.quickKey),N(e,"cpp",w.keywords,w.quickKey),N(e,"c",x,[]),N(e,"python",C.keywords,C.quickKey),N(e,"scala",k.keywords,k.quickKey)}(X,G(f)),te&&(!function(e,t){var n=e._first;do{var r;t.includes(null===(r=n.element)||void 0===r||null===(r=r.command)||void 0===r?void 0:r.id)&&e._remove(n)}while(n=n.next)}(r,["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"]),Ae.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",We),window.removeEventListener("paste",We),window.addEventListener("keydown",We),window.addEventListener("paste",We)),window.Monaco=X,T&&t.onDidBlurEditorWidget((function(){T(t.getValue())})),le&&t.onDidFocusEditorText((function(){te&&Q(),le(t.getValue())})),te){Q();try{t.onDidPaste((function(e){var n=t.getSelection(),r=Se.current.pastePos||{};new X.Range(r.startLineNumber||n.endLineNumber,r.startColumn||n.endColumn,r.endLineNumber||n.endLineNumber,r.endColumn||n.endColumn);t.executeEdits("",[{range:e.range,text:""}])}))}catch(e){}}var i=function(){var e;return Ae.current&&(e=new y.Z((function(e){var t,n=s()(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;(r.target.offsetHeight>0||r.target.offsetWidth>0)&&Se.current.instance.layout()}}catch(e){n.e(e)}finally{n.f()}}))).observe(Ae.current),e}();return we&&"string"==typeof we&&new j(we,t,X),Ie(!0),function(){var e=Se.current.instance;e.dispose();var t=e.getModel();t&&t.dispose(),Se.current.subscription&&Se.current.subscription.dispose(),i.unobserve(Ae.current)}}catch(e){}}))}),[]),(0,g.useEffect)((function(){if(Se.current.instance&&je)return document.addEventListener("keydown",Oe,!1),function(){document.removeEventListener("keydown",Oe)}}),[q,je]),(0,g.useEffect)((function(){var e=Se.current.instance;if(e&&je){var t=G(f);X.editor.setModelLanguage(e.getModel(),t)}}),[f,je]),(0,g.useEffect)((function(){Se.current.instance&&je&&X.editor.setTheme(B)}),[B,je]),(0,g.useEffect)((function(){var e=Se.current.instance;Ee.current=M,e&&je&&(e.updateOptions(i()({},M)),setTimeout((function(){e.getModel().updateOptions(i()({},M))}),200))}),[JSON.stringify(M),je]),(0,g.useEffect)((function(){var e=Se.current.instance;e&&je&&e.layout()}),[r,l,je]);var He=(0,g.useState)(K(r)),Ve=u()(He,2),Ke=Ve[0],Ye=(Ve[1],(0,g.useState)(K(l))),Ue=u()(Ye,2),Ge=Ue[0],Xe=Ue[1],Qe=i()(i()({},A),{},{width:Ke,height:Ge,position:"relative"});return(0,H.jsx)("div",{className:"my-monaco-editor",ref:Ae,style:Qe,children:J&&(0,H.jsx)(z.CopyToClipboard,{text:c,onCopy:function(){return F.ZP.success("复制成功")},children:(0,H.jsx)(O.Z,{title:"复制代码",children:(0,H.jsxs)("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"},children:[(0,H.jsx)("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," 复制代码"]})})})})};function q(e){var t=e.width,r=void 0===t?"100%":t,o=e.height,a=void 0===o?"100%":o,l=e.original,c=e.modified,d=e.language,h=e.options,f=void 0===h?{}:h,p=(0,g.useRef)(),m=(0,g.useState)(null),v=u()(m,2),x=v[0],b=v[1];(0,g.useEffect)((function(){return p.current&&Promise.all([n.e(8909),n.e(9404)]).then(n.bind(n,2550)).then((function(e){var t=(X=e).editor.createDiffEditor(p.current,i()(i()({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},f),{},{wordWrap:!0}));b(t);var n=function(e){var t;return p.current&&(t=new y.Z((function(t){var n,r=s()(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&e.layout()}}catch(e){r.e(e)}finally{r.f()}}))).observe(p.current),t}(t);return function(){t.dispose();var e=t.getModel();e&&e.dispose(),n.unobserve(p.current)}})),function(){window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}}),[]),(0,g.useEffect)((function(){x&&x.setModel({original:X.editor.createModel(l,d),modified:X.editor.createModel(c,d)})}),[l,c,d,x]);var w={width:K(r),height:K(a)};return(0,H.jsx)("div",{className:"my-diff-editor",ref:p,style:w})}},12532:function(e,t,n){"use strict";n.d(t,{jL:function(){return s},w9:function(){return ke},QD:function(){return rt},cQ:function(){return we},op:function(){return Je},O5:function(){return ht},_b:function(){return st},t7:function(){return j},Gi:function(){return Ne},YG:function(){return Ee},qp:function(){return A},vr:function(){return ot},qE:function(){return $e},Je:function(){return O},wb:function(){return oe},cq:function(){return Oe},tp:function(){return N}});var r=n(59301),i="banner___PoUBO",o="content___XoDjy",a="btns___Pb35j",l=n(37712),s=function(e){var t=e.dataSource,n=void 0===t?[]:t,r=e.img,s=e.imgWidth,c=void 0===s?346:s,u=e.title,d=e.sunTitle,h=e.bannerExtraContent;return(0,l.jsx)("div",{className:i,children:(0,l.jsxs)("div",{className:o,children:[(0,l.jsxs)("aside",{children:[(0,l.jsxs)("p",{children:[(0,l.jsx)("b",{children:u}),(0,l.jsx)("span",{children:d})]}),n.length>0&&(0,l.jsx)("div",{className:a,children:n.map((function(e,t){return(0,l.jsxs)("div",{onClick:e.click,children:[e.name,e.sign?(0,l.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv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N8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",width:39}):null]},t)}))}),h]}),r&&(0,l.jsx)("img",{style:{marginTop:33,marginRight:38},src:r,width:c})]})})},c=n(79800),u=n.n(c),d="row___aXJjm",h="title___HUKL0",f="tagsWrap___XB2W3",p="action___VdHb1",m="bar___t1kKC",v="tag___V7Eft",g="name___Hk1Ip",y="num___xQpcH",x="active___XryTX",b="tagsBorderWrap___OMxjs",w=n(92310),C=n.n(w),k=n(89392),A=function(e){var t=e.dataSource,n=void 0===t?[]:t,i=e.value,o=e.onChange,a=e.onTitleChange,s=e.className,c=e.title,w=e.titleWidth,A=void 0===w?41:w,S=e.style,E=void 0===S?{}:S,N=e.fontColor,L=void 0===N?"#6A7283":N,M=e.showCount,D=(0,r.useState)(0),P=u()(D,2),Z=P[0],B=P[1],T=(0,r.useState)(!1),j=u()(T,2),I=j[0],F=j[1],O=(0,r.useRef)(null),R=(0,r.useRef)(null);return(0,r.useEffect)((function(){var e;0!==n.length&&((null==O||null===(e=O.current)||void 0===e?void 0:e.clientHeight)>97?B(1):B(0));0===n.length&&B(0),F(!1)}),[n]),(0,l.jsxs)("div",{className:C()(d,s),style:E,children:[(0,l.jsx)("div",{onClick:(0,k.throttle)((function(){return null==a?void 0:a()}),2e3),style:{width:A,marginTop:I?12:4},className:"".concat(h," ").concat(a?"current":""),children:c}),(0,l.jsxs)("div",{className:I?"".concat(f," ").concat(b):f,children:[(0,l.jsx)("div",{className:m,ref:R,style:Z>0?{height:1===Z?97:"auto",overflow:1===Z?"hidden":"auto",paddingRight:55}:{paddingRight:0},children:(0,l.jsx)("div",{className:v,ref:O,children:null==n?void 0:n.map((function(e){return(0,l.jsxs)("span",{onClick:function(){return o(e.id)},style:{color:L},className:i===e.id?x:"",children:[(0,l.jsx)("span",{title:e.name,className:g,children:e.name}),!!M&&(0,l.jsx)("span",{className:y,children:e.count})]},e.id)}))})}),!!Z&&(0,l.jsx)(r.Fragment,{children:1===Z?(0,l.jsxs)("div",{onClick:function(){var e;B(2),(null==O||null===(e=O.current)||void 0===e?void 0:e.clientHeight)>245?F(!0):F(!1)},className:p,children:["展开",(0,l.jsx)("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})]}):(0,l.jsxs)("div",{onClick:function(){R.current.scrollTop=0,B(1),F(!1)},className:p,children:["收起",(0,l.jsx)("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})]})})]})]})},S="tabs___GTqPV",E="active___F26E8",N=function(e){var t=e.dataSource,n=void 0===t?[]:t,r=e.value,i=e.onChange,o=e.className,a=e.style,s=void 0===a?{}:a;return(0,l.jsx)("div",{style:s,className:C()(S,o),children:n.map((function(e){return(0,l.jsx)("span",{onClick:function(){return i(e.id)},className:r===e.id?E:"",children:e.name},e.id)}))})},L="input___PW2zI",M="dropdown___vSy8B",D="menu___NiyBu",P="text___Grueu",Z="b1___ZKryM",B="b2___aKyGa",T=n(37568),j=function(e){var t,n=e.dataSource,i=void 0===n?[]:n,o=e.value,a=void 0===o?"":o,s=e.onChange,c=e.onInputChange,d=void 0===c?function(){}:c,h=e.className,f=e.style,p=void 0===f?{}:f,m=e.placeholder,v=e.allowClear,g=void 0!==v&&v,y=(0,r.useState)(""),x=u()(y,2),b=x[0],w=x[1],k=(0,r.useState)(""),A=u()(k,2),S=A[0],E=A[1];(0,r.useEffect)((function(){var e,t=a;null!==(e=JSON.stringify(a))&&void 0!==e&&e.includes("{")&&(w(a.id),t=a.value||"");try{E(decodeURIComponent(t||""))}catch(e){E(decodeURIComponent(t||""))}}),[a]);var N=function(){s(encodeURIComponent(S),b||null)};return(0,l.jsxs)("div",{className:C()(L,h),style:p,children:[!!i.length&&(0,l.jsxs)("div",{className:M,children:[(0,l.jsxs)("div",{className:P,children:[null===(t=i.find((function(e){return e.id===b})))||void 0===t?void 0:t.name,(0,l.jsx)("i",{className:"iconfont icon-zhankai4"}),(0,l.jsx)("b",{className:Z}),(0,l.jsx)("b",{className:B})]}),(0,l.jsx)("div",{className:D,children:i.map((function(e,t){return(0,l.jsx)("div",{onClick:function(){var t;(t=e.id)!==b&&(w(t),s(encodeURIComponent(S),t))},children:e.name},t)}))})]}),(0,l.jsx)(T.Z,{onPressEnter:N,value:S,onChange:function(e){E(e.target.value),d(encodeURIComponent(e.target.value),b||null)},placeholder:m,variant:"borderless",allowClear:g,onClear:function(){return s("",b||null)}}),(0,l.jsx)("i",{onClick:N,className:"iconfont icon-sousuo9 font14 current"})]})},I="quickPager___GM30J",F="disabled___Ozc8I",O=function(e){var t=e.value,n=e.onChange,r=e.className,i=e.total,o=e.pageSize,a=e.style,s=void 0===a?{}:a,c=t<2,u=t>=Math.ceil(i/o);return i<=o?(0,l.jsx)(l.Fragment,{}):(0,l.jsxs)("div",{className:C()(I,r),style:s,children:[(0,l.jsx)("div",{onClick:function(){c||n(t-1,"prev")},className:c?F:"",children:"上一页"}),(0,l.jsx)("div",{onClick:function(){u||n(t+1,"next")},className:u?F:"",children:"下一页"})]})},R="list___oOsiS",W="wrap___G6T7F",z="lockWrap___Rl79E",H="li___oZZ7l",V="cover___b2bYW",K="img___IQX7w",Y="sign___HkT6C",U="name___SsJx8",G="e___TMqq0",X="tags___bcjyo",Q="rate___YACg7",J=n(29787),q=n(25399),_=n(58018),$=n(6816),ee=n(32985),te=n(96908),ne=n(57177),re=n(81378),ie=n(90059),oe=function(e){var t=e.className,n=e.dataSource,r=void 0===n?[]:n,i=e.col,o=void 0===i?4:i,a=e.right,s=e.bottom,c=void 0===s?23:s,u=e.precision,d=void 0===u?0:u,h=e.wrapWidth,f=void 0===h?1200:h,p=e.trackEventItems,m=e.loading,v=Math.floor((f-(o-1)*a)/o);return(0,l.jsx)(J.Z,{spinning:m,children:(0,l.jsxs)("div",{className:C()(R,t),children:[!!r.length&&r.map((function(e,t){var n=e.name,r=e.id,i=e.identifier,s=e.power,u=(e.cover_image_id,e.pic);return(0,l.jsxs)("div",{className:W,style:{width:v,marginRight:(1+t)%o==0?0:a+d,marginBottom:c},children:[(0,l.jsxs)("a",{target:"_blank",href:"/shixuns/".concat(i,"/challenges"),className:H,onClick:function(e){e.preventDefault(),p&&(0,ee.L9)([p]),s&&(0,ee.xg)("/shixuns/".concat(i,"/challenges"))},children:[(0,l.jsxs)("div",{className:K,children:[(0,l.jsx)("img",{className:V,src:"".concat(u)}),e.is_jupyter&&(0,l.jsx)("img",{className:Y,src:te}),e.is_jupyter_lab&&(0,l.jsx)("img",{className:Y,src:ne}),e.is_unity_3d&&(0,l.jsx)("img",{className:Y,src:re})]}),(0,l.jsx)("div",{className:U,children:(0,l.jsx)(q.Z,{title:n||"实践项目名称-未填写",children:(0,l.jsx)("span",{className:G,children:n||"实践项目名称-未填写"})})}),(0,l.jsxs)("div",{className:X,children:[(0,l.jsx)(q.Z,{placement:"bottom",title:"关卡数",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),(0,l.jsx)("span",{children:e.challenges_count})]})}),!!e.myshixuns_count&&(0,l.jsx)(q.Z,{placement:"bottom",title:"学习人数",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-chengyuan font14 mr2"}),(0,l.jsx)("span",{children:e.myshixuns_count})]})}),(0,l.jsx)(q.Z,{placement:"bottom",title:"难度等级",children:(0,l.jsx)("span",{children:(0,l.jsx)("span",{children:e.level})})}),(0,l.jsxs)("div",{className:Q,children:[(0,l.jsx)(_.Z,{allowHalf:!0,disabled:!0,defaultValue:e.score_info}),(0,l.jsxs)("span",{children:[" ",e.score_info?"".concat(e.score_info,"分"):"5分"]})]})]})]}),!s&&(0,l.jsxs)("div",{className:z,children:[(0,l.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,l.jsx)("span",{className:"mt15 font16 c-white",children:"定向开放内容,需要授权"})]})]},r)})),!r.length&&(0,l.jsx)(ie.Z,{})]})})},ae="list___jb2Ay",le="wrap___VsQDr",se="li___IxCLC",ce="cover___Mu8wr",ue="img___IpFLA",de="movebq___mF7wt",he="bq___Bil0T",fe="sign___DXJ4d",pe="name___l7FoJ",me="e___pXQUG",ve="unit___wCIFR",ge="tags___w_Mil",ye="wrapisCurrent___qIfQT",xe=n(60242),be=n(56800),we=function(e){var t=e.className,n=e.dataSource,r=void 0===n?[]:n,i=e.col,o=void 0===i?4:i,a=e.right,s=e.bottom,c=void 0===s?23:s,u=e.precision,d=void 0===u?0:u,h=e.wrapWidth,f=void 0===h?1200:h,p=e.trackEventItems,m=e.loading,v=e.onRemove,g=void 0===v?function(){}:v,y=e.isCurrent,x=void 0===y||y,b=e.showProgress,w=void 0!==b&&b,k=e.showAlias,A=void 0!==k&&k,S=Math.floor((f-(o-1)*a)/o),E=[{name:"推荐自学",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101计划",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"国家一流",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"省级一流",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"精品课程",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"军队一流",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"新型教材",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return(0,l.jsx)(J.Z,{spinning:m,children:(0,l.jsxs)("div",{className:C()(ae,t),children:[!(null==r||!r.length)&&(null==r?void 0:r.map((function(e,t){var n,r,i,s,u,h,f=e.name,m=e.id,v=e.identifier,y=(e.featured,e.school_name),b=e.image_url;e.excellent,e.is_plan;return(0,l.jsx)("div",{className:x&&w?ye:le,style:{width:S,marginRight:(1+t)%o==0?0:a+d,marginBottom:c},children:(0,l.jsxs)("a",{className:se,onClick:function(e){e.preventDefault(),e.stopPropagation(),p&&(0,ee.L9)([p]),(0,ee.xg)("/paths/".concat(v))},children:[(0,l.jsxs)("div",{className:ue,children:[(0,l.jsx)("img",{className:ce,src:"".concat(b)}),x&&(0,be.bg)()&&(null==e?void 0:e.studying)&&(0,l.jsxs)("div",{className:"".concat(de," user-path-items"),onClick:function(t){t.stopPropagation(),g(e)},children:[(0,l.jsx)("i",{className:"iconfont icon-yichu1 mr5 c-red"}),(0,l.jsx)("span",{className:"c-red",children:"移除"})]}),null==e||null===(n=e.subject_tags)||void 0===n?void 0:n.map((function(e,t){var n;if(0===t){var r,i=null===(r=E.find((function(t){return t.name==e})))||void 0===r?void 0:r.swimg;return(0,l.jsx)("img",{className:fe,src:i,style:{left:"-4px"}})}var o=null===(n=E.find((function(t){return t.name==e})))||void 0===n?void 0:n.ptimg;return(0,l.jsx)("img",{className:fe,src:o,style:{left:"".concat(48+52*(t-1)+2*t,"px")}})})),(0,l.jsx)("div",{style:{position:"absolute",top:"150px",left:"4px"},children:(null==e?void 0:e.excellent)&&(0,l.jsx)("div",{className:he,children:"开放课程"})})]}),(0,l.jsx)("div",{className:pe,children:(0,l.jsx)(q.Z,{title:A&&null!=e&&e.excellent_alias_name?(0,l.jsxs)("span",{children:["课程原名:".concat(f),(0,l.jsx)("br",{}),(0,l.jsx)("span",{children:"课程别名:".concat(null==e?void 0:e.excellent_alias_name)})]}):f,children:(0,l.jsx)("span",{className:me,children:A&&(null==e?void 0:e.excellent_alias_name)||f})})}),x&&w&&0!=(null==e||null===(r=e.progress)||void 0===r?void 0:r.all_score)&&(0,l.jsxs)("div",{style:{padding:"0px 10px",color:"#333",marginTop:10},children:[(0,l.jsx)(xe.Z,{strokeColor:"#44d7b6",gap:"small",percent:((null==e||null===(i=e.progress)||void 0===i?void 0:i.my_score)/(null==e||null===(s=e.progress)||void 0===s?void 0:s.all_score)*100).toFixed(),showInfo:!1}),"已完成 ",null==e||null===(u=e.progress)||void 0===u?void 0:u.my_score,"/",null==e||null===(h=e.progress)||void 0===h?void 0:h.all_score]}),(!x||!w)&&(0,l.jsx)(q.Z,{title:"发布单位:".concat(y),children:(0,l.jsxs)("div",{className:ve,children:[(0,l.jsx)("i",{className:"iconfont icon-danwei1 font14 mr3"}),y]})}),(!x||!w)&&(0,l.jsx)("div",{className:ge,children:(0,l.jsxs)("div",{children:[(0,l.jsx)(q.Z,{placement:"bottom",title:"章节数",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),(0,l.jsx)("span",{children:e.stages_count})]})}),(0,l.jsx)(q.Z,{placement:"bottom",title:"学习人数",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-chengyuan font14 mr3"}),(0,l.jsx)("span",{children:e.members_count})]})})]})})]})},m)}))),!r.length&&(0,l.jsx)(ie.Z,{})]})})},Ce={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"},ke=function(e){var t=e.className,n=e.dataSource,r=void 0===n?[]:n,i=e.col,o=void 0===i?4:i,a=e.right,s=e.bottom,c=void 0===s?23:s,u=e.precision,d=void 0===u?0:u,h=e.wrapWidth,f=void 0===h?1200:h,p=e.trackEventItems,m=e.loading,v=e.handleVery,g=void 0===v?function(){return!0}:v,y=Math.floor((f-(o-1)*a)/o);return(0,l.jsx)(J.Z,{spinning:m,children:(0,l.jsxs)("div",{className:C()(Ce.list,t),children:[!!r.length&&r.map((function(e,t){var n=e.subject_identifier,r=e.id,i=(e.identifier,e.power,0!=e.is_public&&e.is_public);return(0,l.jsxs)("div",{className:Ce.wrap,style:{width:y,marginRight:(1+t)%o==0?0:a+d,marginBottom:c},children:[(0,l.jsxs)("a",{className:Ce.li,onClick:function(t){t.preventDefault(),g(null==e?void 0:e.first_category_url)&&(p&&(0,ee.L9)([p]),(0,ee.xg)(e.first_category_url))},children:[(0,l.jsxs)("div",{className:Ce.top,children:[(0,l.jsx)(q.Z,{title:e.name,children:(0,l.jsx)("div",{className:Ce.name,children:e.name})}),(0,l.jsx)("img",{className:Ce.img,src:$.Z.IMG_SERVER+"/images/"+e.avatar_url}),(0,l.jsx)("div",{className:Ce.text,title:e.creator,children:e.creator}),n&&(0,l.jsxs)("div",{className:Ce.btns,children:[(0,l.jsx)("div",{children:"开放课程"}),(0,l.jsx)("aside",{children:"开放课堂"})]}),i&&(0,l.jsx)("div",{className:Ce.sign,children:"公开"})]}),(0,l.jsxs)("div",{className:Ce.bottom,children:[e.visits>0&&(0,l.jsx)(q.Z,{title:"访问量",placement:"bottom",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-liulanyan"}),(0,l.jsx)("span",{children:e.visits})]})}),e.course_members_count>0&&(0,l.jsx)(q.Z,{title:"成员",placement:"bottom",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-chengyuan"}),e.course_members_count]})}),e.tasks_count>0&&(0,l.jsx)(q.Z,{title:"作业",placement:"bottom",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-zuoye"}),e.tasks_count]})}),e.is_end?(0,l.jsx)("div",{style:{color:"#6B758B"},children:"已结束"}):(0,l.jsx)("div",{style:{color:"#00B187"},children:"进行中"})]})]}),!e.is_accessible&&(0,l.jsxs)("div",{className:Ce.lockWrap,children:[(0,l.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,l.jsx)("span",{className:"mt15 font16 c-white",children:"非课堂成员不可进入"})]})]},r)})),!r.length&&(0,l.jsx)(ie.Z,{})]})})},Ae={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"},Se=n(5030),Ee=function(e){var t=e.dataSource,n=void 0===t?[]:t,r=e.value,i=e.onChange,o=e.className,a=e.style,s=void 0===a?{}:a,c=e.tabBarExtraContent;return(0,l.jsxs)("div",{className:C()(Ae.tabs,o),style:s,children:[(0,l.jsx)("div",{className:Ae.tabsWrap,children:n.map((function(e,t){return!(null!=e&&e.hide)&&(0,l.jsxs)("aside",{className:Ae.tab,onClick:function(){i(e.id),e.link&&Se.history.push(e.link)},children:[(0,l.jsx)("div",{className:r===e.id?Ae.active:"",children:e.name}),null==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,l.jsxs)("span",{children:["",null==e?void 0:e.total,""]}),void 0!==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,l.jsx)(q.Z,{title:null!=(null==e?void 0:e.tip)?null==e?void 0:e.tip:"",children:(0,l.jsxs)("span",{style:{color:"#9096A3"},children:["",(0,l.jsx)("span",{style:{color:"#000"},children:null==e?void 0:e.resetCount}),"/",(0,l.jsx)("span",{children:null==e?void 0:e.total}),""]})})]},t)}))}),(0,l.jsx)("div",{className:Ae.tabBar,children:c})]})},Ne=function(e){var t=e.className,n=e.style,r=void 0===n?{}:n,i=e.children;return(0,l.jsx)("div",{className:C()(t),style:r,children:i})},Le="orderWrap___ZfyGX",Me="orderIconWrap___XTB_O",De="orderAsc___KWHmA",Pe="orderDesc___rHdbB",Ze="active___a7eSP",Be="cursorPointer___gs9kL",Te="orderTextWrap___teAKn",je=n(75727),Ie=n(93041),Fe=[{id:"updated_at",name:"最新动态"},{id:"created_at",name:"最新创建"},{id:"name",name:"名称排序"}],Oe=function(e){var t,n=e.sortValue,r=e.dropValue,i=e.className,o=e.onSort,a=e.onDrop,s=e.dataSource,c=void 0===s?Fe:s;return(0,l.jsxs)("div",{className:C()(Le,i),children:[(0,l.jsx)(je.Z,{dropdownRender:function(){return(0,l.jsx)(Ie.Z,{children:c.map((function(e,t){return(0,l.jsx)(Ie.Z.Item,{onClick:function(){return a(e.id)},children:e.name},t)}))})},children:(0,l.jsx)("span",{className:Te,children:null===(t=c.find((function(e){return r===e.id})))||void 0===t?void 0:t.name})}),(0,l.jsxs)("span",{className:Me,children:[(0,l.jsx)("span",{className:De,children:(0,l.jsx)("i",{className:"asc"===n?"iconfont icon-sanjiaoxing-up font12 ".concat(Be," ").concat(Ze):"iconfont icon-sanjiaoxing-up font12 ".concat(Be),onClick:function(){return o("asc"===n?"desc":"asc")}})}),(0,l.jsx)("span",{className:Pe,children:(0,l.jsx)("i",{className:"desc"===n?"iconfont icon-sanjiaoxing-down font12 ".concat(Be," ").concat(Ze):"iconfont icon-sanjiaoxing-down font12 ".concat(Be),onClick:function(){return o("asc"===n?"desc":"asc")}})})]})]})},Re=n(82242),We=n.n(Re),ze=n(7557),He=n.n(ze),Ve=n(41498),Ke=n.n(Ve),Ye=n(39647),Ue=n.n(Ye),Ge={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"},Xe=n(99571),Qe=["className","style","children","loading","openLoading","onClick","size","shape"],Je=function(e){var t=e.className,n=e.style,i=e.children,o=e.loading,a=void 0!==o&&o,s=e.openLoading,c=e.onClick,d=void 0===c?function(){}:c,h=e.size,f=void 0===h?"middle":h,p=e.shape,m=void 0===p?"round":p,v=Ue()(e,Qe),g=(0,r.useState)(!1),y=u()(g,2),x=y[0],b=y[1];return(0,l.jsx)(Xe.ZP,We()(We()({onClick:(0,k.throttle)(function(){var e=Ke()(He()().mark((function e(t){return He()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s&&b(!0),e.prev=1,e.next=4,d(t);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),console.log("error",e.t0);case 9:s&&b(!1);case 10:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(t){return e.apply(this,arguments)}}(),2e3,{leading:!0,trailing:!1}),className:C()(Ge.btn,Ge["".concat(f,"-").concat(m)],t),style:n,size:f,shape:m,loading:x||a},v),{},{children:i}))},qe="head___ghH72",_e="node___mjPEy",$e=function(e){var t=e.className,n=e.style,r=e.children,i=void 0===r?null:r,o=e.onClick,a=e.title;return(0,l.jsxs)("div",{className:C()(qe,t),style:n,children:[(0,l.jsxs)("span",{className:"primary-hover",onClick:o,children:[(0,l.jsx)("i",{className:"iconfont icon-fanhui2 font12"}),"返回"]}),(0,l.jsx)("b",{title:a,children:a}),(0,l.jsx)("div",{className:_e,children:i})]})},et="btns___sNgTb",tt="confirm___Ozirl",nt="cancel___aiq1I",rt=function(e){var t=e.confirmShow,n=void 0===t||t,r=e.confirmTitle,i=e.confirmClick,o=e.cancelShow,a=void 0===o||o,s=e.cancelTitle,c=e.cancelClick,u=e.className,d=e.style,h=e.confirmLoading,f=void 0!==h&&h;return(0,l.jsxs)("div",{className:C()(et,u),style:d,children:[n&&(0,l.jsx)(Xe.ZP,{loading:f,onClick:i,type:"primary",className:tt,children:r}),a&&(0,l.jsx)(Xe.ZP,{onClick:c,className:nt,children:s})]})},it={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"},ot=function(e){var t=e.className,n=e.style,r=void 0===n?{}:n,i=e.LeftContent,o=e.children,a=e.RightContent;return(0,l.jsx)("div",{className:C()(it.fixedBottom,t),style:r,children:(0,l.jsxs)("div",{className:it.wrap,children:[(0,l.jsx)("div",{className:it.left,children:i}),(0,l.jsx)("div",{className:it.center,children:o}),(0,l.jsx)("div",{className:it.right,children:a})]})})},at="crumbs___V41Oe",lt="hover___bEIVd",st=function(e){var t=e.className,n=e.style,i=void 0===n?{}:n,o=e.dataSource,a=void 0===o?[]:o;return(0,l.jsx)("div",{className:C()(at,t),style:i,children:a.map((function(e,t){return t<a.length-1?(0,l.jsxs)(r.Fragment,{children:[e.path||e.onClick?(0,l.jsx)("span",{className:lt,onClick:null!=e&&e.onClick?e.onClick:function(){return Se.history.push(e.path)},children:e.name}):(0,l.jsx)("span",{children:e.name}),(0,l.jsxs)("span",{children:[" ",">"," "]})]},t):(0,l.jsx)("span",{style:{color:"#5F6368"},children:e.name},t)}))})},ct=n(11938),ut=["onChange"],dt=ct.Z.Countdown,ht=function(e){var t=e.onChange,n=Ue()(e,ut),i=(0,r.useState)(null),o=u()(i,2),a=o[0],s=o[1];(0,r.useEffect)((function(){"number"==typeof a&&a>=0&&t(a)}),[a]);return(0,l.jsx)(dt,We()(We()({},n),{},{onChange:function(e){var t=Math.floor(e/1e3);s(t)}}))}},21323:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(59301);function i(e,t){var n=(0,r.useRef)();(0,r.useEffect)((function(){n.current=e})),(0,r.useEffect)((function(){if(null!==t){var e=setInterval((function(){n.current()}),t);return function(){return clearInterval(e)}}}),[t])}},6707:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Ge}});var r=n(37205),i=n.n(r),o=n(7557),a=n.n(o),l=n(41498),s=n.n(l),c=n(79800),u=n.n(c),d=n(82242),h=n.n(d),f=n(39647),p=n.n(f),m=n(59301),v="card___c4ypw",g="head___d2Dfo",y="element___PyfcV",x="collaborator___o6MF4",b="btn___CF6mw",w="delSty___Wm5pj",C="delBorder___IVg2Z",k="copHover___rNmmw",A="wrap___feope",S="center___uU09V",E="tip___yCX57",N="title___OpV1r",L="content___XU4yH",M="fixedBtns___ItSdd",D=n(92310),P=n.n(D),Z=n(12532),B=n(15409),T=n(77019),j=n(99571),I=n(62957),F=n(37568),O=n(54172),R=n(28284),W=n(25399),z=n(71051),H=n(6767),V=n(29787),K=n(62673),Y=n(47889),U=n(16326),G=n(32985),X=n(5030),Q=n(56082),J=n(87954),q=n(18257),_=n(19719),$=n(35241),ee=n(90059),te=n(37712),ne=m.createContext({}),re=function(){var e=(0,m.useContext)(ne),t=e.setActivatorNodeRef,n=e.listeners;return(0,te.jsx)(j.ZP,h()({type:"text",size:"small",icon:(0,te.jsx)(W.Z,{title:"可鼠标拖拽进行试题排序,学生端将按照此排序展示",children:(0,te.jsx)(Q.Z,{})}),style:{cursor:"move"},ref:t},n))},ie=function(e){var t=(0,_.nB)({id:e["data-row-key"]}),n=t.attributes,r=t.listeners,i=t.setNodeRef,o=t.setActivatorNodeRef,a=t.transform,l=t.transition,s=t.isDragging,c=h()(h()({},e.style),{},{transform:$.ux.Translate.toString(a),transition:l},s?{position:"relative",zIndex:99}:{}),u=(0,m.useMemo)((function(){return{setActivatorNodeRef:o,listeners:r}}),[o,r]);return(0,te.jsx)(ne.Provider,{value:u,children:(0,te.jsx)("tr",h()(h()({},e),{},{ref:i,style:c},n))})},oe=function(e){var t=e.columns,n=e.dataSource,r=e.setDataSource,o=e.loading;return(0,te.jsx)(J.LB,{modifiers:[q.DL],onDragEnd:function(e){var t=e.active,n=e.over;t.id!==(null==n?void 0:n.id)&&r((function(e){var r=e.findIndex((function(e){return e.id===(null==t?void 0:t.id)})),i=e.findIndex((function(e){return e.id===(null==n?void 0:n.id)}));return(0,_.Rp)(e,r,i)}))},children:(0,te.jsx)(_.Fo,{items:n.map((function(e){return e.id})),strategy:_.qw,children:(0,te.jsx)(O.Z,{pagination:!1,scroll:{y:400},rowKey:"id",loading:o,locale:{emptyText:(0,te.jsx)(ee.Z,{styles:{margin:"80px auto"},customText:(0,te.jsxs)("span",{children:["还没有试题,请从",(0,te.jsx)("span",{style:{color:"#CA7720"},children:"右上角操作按钮"}),"进行添加~"]})})},dataSource:n,components:{body:{row:ie}},columns:[{key:"sort",align:"center",width:80,render:function(){return(0,te.jsx)(re,{})}}].concat(i()(t)),size:"middle"})})})},ae=n(91232),le=n.n(ae),se=n(20554),ce=n(17149),ue=n(82326),de=n(69219),he=n(13747),fe=n(67310),pe="scoremodal___PYXCN",me="selectWrapper___RNoPX",ve="selectWrappers___fUTXA",ge="allqingchu___k6Qgb",ye="title___AAfdA",xe="bottom___jjylc",be="yes___Wh4La",we="no___fIya2",Ce="titlecount___pZQaF",ke="add___hT0xx",Ae="search___WBmWG",Se="searchIcon___LgZF_",Ee="tabWrap___lGZ3A",Ne="previewModal___jPoO2",Le=n(24569),Me={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"},De=n(76603),Pe=n(24334),Ze=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Be=function(e){var t,n,r,i,o,a,l,s,c,u,d=e.qitem;return(0,te.jsxs)("div",{className:Me.warp,children:[(0,te.jsxs)("div",{className:Me.mainPart,children:[(0,te.jsxs)("div",{className:Me.qcount,children:[8===(null==d?void 0:d.question_type)&&(0,te.jsx)(De.Z,{className:Me.content,showProgramFill:!0,value:null==d||null===(t=d.program_attr)||void 0===t?void 0:t.description}),8!=(null==d?void 0:d.question_type)&&(0,te.jsx)(De.Z,{className:Me.qtitle,value:(null==d?void 0:d.name)||(null==d?void 0:d.title)})]}),(0===(null==d?void 0:d.question_type)||2===(null==d?void 0:d.question_type))&&(0,te.jsx)("div",{children:null==d||null===(n=d.choices)||void 0===n?void 0:n.map((function(e,t){return(0,te.jsxs)("div",{className:Me.redio,children:[!(null!=e&&e.is_answer)&&(0,te.jsx)("span",{className:Me.redioitem}),(null==e?void 0:e.is_answer)&&(0,te.jsx)("i",{className:"".concat(Me.redioitemyes," icon-duigou1")}),(0,te.jsx)(De.Z,{className:null!=e&&e.is_answer?Me.titleyes:Me.title,value:Ze[t]+(null==e?void 0:e.choice_text)}),(null==e?void 0:e.is_answer)&&(0,te.jsx)("div",{className:Me.yestag,children:"正确答案"})]})}))}),1===(null==d?void 0:d.question_type)&&(0,te.jsx)("div",{children:null==d||null===(r=d.choices)||void 0===r?void 0:r.map((function(e,t){return(0,te.jsxs)("div",{className:Me.checkbox,children:[!(null!=e&&e.is_answer)&&(0,te.jsx)("span",{className:Me.checkboxitem}),(null==e?void 0:e.is_answer)&&(0,te.jsx)("i",{className:"".concat(Me.checkboxitemyes," icon-duigou1")}),(0,te.jsx)(De.Z,{className:null!=e&&e.is_answer?Me.titleyes:Me.title,value:Ze[t]+(null==e?void 0:e.choice_text)}),(null==e?void 0:e.is_answer)&&(0,te.jsx)("div",{className:Me.yestag,children:"正确答案"})]})}))}),3===(null==d?void 0:d.question_type)&&(0,te.jsx)("div",{className:Me.completion,children:null==d||null===(i=d.standard_answer)||void 0===i?void 0:i.map((function(e,t){var n;return(0,te.jsxs)("div",{style:{display:"flex"},children:[(0,te.jsxs)("span",{className:Me.title,children:["填空项",t+1]}),(0,te.jsx)("div",{className:Me.content,children:null==e||null===(n=e.answer_text)||void 0===n?void 0:n.map((function(e,t){return(0,te.jsx)("div",{className:Me.items,children:e})}))})]})}))}),4===(null==d?void 0:d.question_type)&&(0,te.jsxs)("div",{className:Me.simple,children:[(0,te.jsx)("div",{className:Me.title,children:"参考答案"}),(0,te.jsx)("div",{className:"mt10",style:{fontSize:"16px"},children:null!=d&&null!==(o=d.answer_texts)&&void 0!==o&&o[0]?(0,te.jsx)(De.Z,{className:Me.content,value:null==d||null===(a=d.answer_texts)||void 0===a?void 0:a[0]}):(0,te.jsx)("div",{style:{color:"#C1C1C1"},children:"暂未设置~"})})]}),5===(null==d?void 0:d.question_type)&&(null==d||null===(l=d.challenge_names)||void 0===l?void 0:l.map((function(e,t){return(0,te.jsx)("div",{className:Me.shixun,children:(0,te.jsxs)("span",{className:Me.qtitle,children:[(0,te.jsxs)("span",{style:{marginRight:10},children:["第",(0,G.EM)(t+1),"题"]}),e]})})}))),6===(null==d?void 0:d.question_type)&&(0,te.jsx)("div",{className:Me.program,children:(0,te.jsx)(De.Z,{className:Me.content,value:(null==d||null===(s=d.program_attr)||void 0===s?void 0:s.description)||"- -"})}),7===(null==d?void 0:d.question_type)&&(null==d||null===(c=d.sub_item_banks)||void 0===c?void 0:c.map((function(e,t){var n,r,i,o,a;return(0,te.jsxs)("div",{children:[(0,te.jsx)("div",{className:Me.combination,children:(0,te.jsx)("span",{className:Me.qtitle,children:null==e?void 0:e.name})}),(0,te.jsx)("div",{className:Me.warp,style:{padding:"0px",paddingTop:20},children:(0,te.jsxs)("div",{children:[("SINGLE"==(null==e?void 0:e.item_type)||"JUDGMENT"==(null==e?void 0:e.item_type))&&(null==e||null===(n=e.choices)||void 0===n?void 0:n.map((function(e,t){return(0,te.jsxs)("div",{className:Me.redio,children:[!(null!=e&&e.is_answer)&&(0,te.jsx)("span",{className:Me.redioitem}),(null==e?void 0:e.is_answer)&&(0,te.jsx)("i",{className:"".concat(Me.redioitemyes," icon-duigou1")}),(0,te.jsx)(De.Z,{className:null!=e&&e.is_answer?Me.titleyes:Me.title,value:Ze[t]+(null==e?void 0:e.choice_text)}),(null==e?void 0:e.is_answer)&&(0,te.jsx)("div",{className:Me.yestag,children:"正确答案"})]})}))),"MULTIPLE"==(null==e?void 0:e.item_type)&&(null==e||null===(r=e.choices)||void 0===r?void 0:r.map((function(e,t){return(0,te.jsxs)("div",{className:Me.checkbox,children:[!(null!=e&&e.is_answer)&&(0,te.jsx)("span",{className:Me.checkboxitem}),(null==e?void 0:e.is_answer)&&(0,te.jsx)("i",{className:"".concat(Me.checkboxitemyes," icon-duigou1")}),(0,te.jsx)(De.Z,{className:null!=e&&e.is_answer?Me.titleyes:Me.title,value:Ze[t]+(null==e?void 0:e.choice_text)}),(null==e?void 0:e.is_answer)&&(0,te.jsx)("div",{className:Me.yestag,children:"正确答案"})]})}))),"COMPLETION"==(null==e?void 0:e.item_type)&&(0,te.jsx)("div",{className:Me.completion,children:null==e||null===(i=e.standard_answer)||void 0===i?void 0:i.map((function(e,t){var n;return(0,te.jsxs)("div",{style:{display:"flex"},children:[(0,te.jsxs)("span",{className:Me.title,children:["填空项",t+1]}),(0,te.jsx)("div",{className:Me.content,children:null==e||null===(n=e.answer_text)||void 0===n?void 0:n.map((function(e,t){return(0,te.jsx)("div",{className:Me.items,children:e})}))})]})}))}),"SUBJECTIVE"==(null==e?void 0:e.item_type)&&(0,te.jsxs)("div",{className:Me.simple,children:[(0,te.jsx)("div",{className:Me.title,children:"参考答案"}),(0,te.jsx)("div",{className:"mt10",style:{fontSize:"16px"},children:null!=e&&null!==(o=e.answer_texts)&&void 0!==o&&o[0]?(0,te.jsx)(De.Z,{className:Me.content,value:null==e||null===(a=e.answer_texts)||void 0===a?void 0:a[0]}):(0,te.jsx)("div",{style:{color:"#C1C1C1"},children:"暂未设置~"})})]})]})})]})}))),8===(null==d?void 0:d.question_type)&&(0,te.jsx)("div",{children:(0,te.jsx)(De.Z,{disabledFill:!0,className:Me.content,showProgramFill:!0,value:Pe.Base64.decode((null==d||null===(u=d.program_attr)||void 0===u?void 0:u.code)||"")})}),5===(null==d?void 0:d.question_type)&&(0,te.jsxs)("div",{style:{background:"#F6F7F9",padding:"0px 20px",height:46,lineHeight:"46px",marginTop:40,display:"flex",alignItems:"center"},children:[(0,te.jsxs)("div",{style:{flex:1,alignItems:"center",display:"flex"},children:[(0,te.jsxs)("div",{style:{marginRight:30},children:[(0,te.jsx)("span",{style:{marginRight:10},children:"创建者"}),(0,te.jsx)("span",{style:{color:"#000000"},children:(null==d?void 0:d.author_name)||"- -"})]}),(0,te.jsxs)("div",{style:{marginRight:30},children:[(0,te.jsx)("span",{style:{marginRight:10},children:"所属单位"}),(0,te.jsx)("span",{style:{color:"#000000"},children:(null==d?void 0:d.author_school_name)||"- -"})]}),(0,te.jsxs)("div",{style:{marginRight:30},children:[(0,te.jsx)("span",{style:{marginRight:10},children:"学习人数"}),(0,te.jsx)("span",{style:{color:"#000000"},children:(null==d?void 0:d.study_count)||"0"})]})]}),(0,te.jsxs)("a",{className:Me.shixunbutton,href:"/shixuns/".concat(null==d?void 0:d.identifier,"/challenges?exercise=true"),target:"_blank",children:[(0,te.jsx)("i",{onClick:function(){},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"实训详情"]})]})]}),((null==d?void 0:d.question_type)<=4||[6,8].includes(null==d?void 0:d.question_type))&&(0,te.jsxs)("div",{className:Me.bottom,children:[(0,te.jsxs)("div",{className:Me.bottomitem,children:[(0,te.jsx)("span",{className:Me.left,children:"解析"}),(0,te.jsx)("span",{className:Me.right,children:null!=d&&d.analysis?(0,te.jsx)(De.Z,{value:null==d?void 0:d.analysis}):(0,te.jsx)("span",{style:{color:"#C1C1C1"},children:"暂未设置~"})})]}),(0,te.jsxs)("div",{className:Me.bottomitem,children:[(0,te.jsx)("span",{className:Me.left,children:"难度"}),(0,te.jsx)("span",{className:Me.right,children:1===(null==d?void 0:d.difficulty)?"简单":2===(null==d?void 0:d.difficulty)?"适中":"困难"})]}),(0,te.jsxs)("div",{className:Me.bottomitem,children:[(0,te.jsx)("span",{className:Me.left,children:"知识点"}),(0,te.jsx)("span",{className:Me.right,children:null!=d&&d.tag_discipline?null==d?void 0:d.tag_discipline:(0,te.jsx)("span",{style:{color:"#C1C1C1"},children:"暂未设置~"})})]})]})]})},Te=n(28774),je=n(60046),Ie=n(72940),Fe=n(61485),Oe=n(99603),Re=(0,X.connect)((function(e){return{shixunsDetail:e.shixunsDetail,user:e.user}}))((function(e){var t,n=e.setScoreShow,r=e.ScoreShow,o=e.onOk,l=e.isshixuns,c=e.isloadings,d=e.dispatch,f=e.selectedIds,p=e.user,v=e.virtualId,g=(e.shixunsDetail,(0,m.useState)({type:"0",page:1,per_page:10,updated_at:"",quotes:"",item_type:"PROGRAM"})),y=u()(g,2),x=y[0],b=y[1],w=(0,m.useState)([]),C=u()(w,2),k=C[0],A=C[1],S=(0,m.useState)([]),E=u()(S,2),N=E[0],L=E[1],M=(0,m.useState)([]),D=u()(M,2),P=D[0],Z=D[1],B=(0,m.useState)([]),T=u()(B,2),z=T[0],V=T[1],K=(0,m.useState)(!1),Y=u()(K,2),U=Y[0],X=Y[1],Q=R.Z.useForm(),J=u()(Q,1)[0],q=(0,m.useState)(),_=u()(q,2),$=_[0],ne=_[1],re=(0,m.useState)(!1),ie=u()(re,2),oe=ie[0],ae=ie[1],Me=(0,m.useState)(l),Pe=u()(Me,2),Ze=Pe[0],Re=Pe[1],We=(0,m.useState)([]),ze=u()(We,2),He=ze[0],Ve=ze[1],Ke=(0,m.useState)(0),Ye=u()(Ke,2),Ue=Ye[0],Ge=Ye[1],Xe=(0,m.useState)(!0),Qe=u()(Xe,2),Je=Qe[0],qe=Qe[1],_e=(0,m.useState)([]),$e=u()(_e,2),et=$e[0],tt=$e[1],nt=(0,m.useState)([]),rt=u()(nt,2),it=rt[0],ot=rt[1],at=[{name:"全部",value:"",question_type:0},{name:"单选题",value:"SINGLE",question_type:0},{name:"多选题",value:"MULTIPLE",question_type:1},{name:"判断题",value:"JUDGMENT",question_type:2},{name:"填空题",value:"COMPLETION",question_type:3},{name:"简答题",value:"SUBJECTIVE",question_type:4},{name:"实训题",value:"SHIXUN",question_type:5},{name:"编程题",value:"PROGRAM",question_type:6},{name:"组合题",value:"COMBINATION",question_type:7},{name:"程序填空题",value:"BPROGRAM",question_type:8}],lt=(0,m.useState)([]),st=u()(lt,2),ct=st[0],ut=st[1],dt=(0,m.useRef)(new Set),ht=(0,m.useRef)(new Set),ft=(0,m.useRef)(1),pt=[{name:"简单",value:1},{name:"适中",value:2},{name:"困难",value:3}],mt=(0,m.useState)(!1),vt=u()(mt,2),gt=vt[0],yt=vt[1];function xt(e){return bt.apply(this,arguments)}function bt(){return(bt=s()(a()().mark((function e(t){var n,r,i,o,l,s,c,u;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(X(!0),b(h()({},t)),!((null==P?void 0:P.length)<=0&&"5"===t.type)){e.next=6;break}return V([]),X(!1),e.abrupt("return");case 6:return r="5"===t.type?null==P?void 0:P.filter((function(e){return!He.includes(e)})):null,i="5"===t.type?null==P?void 0:P.filter((function(e){return He.includes(e)})):null,ft.current=ft.current+1,o=ft.current,l={course_discipline_id:null==t?void 0:t.courseid},"1"===(null==t?void 0:t.type)&&(l={discipline_id:(null==t||null===(s=t.courseid)||void 0===s?void 0:s[0])||null,sub_discipline_id:(null==t||null===(c=t.courseid)||void 0===c?void 0:c[1])||null}),e.next=14,(0,fe.ZP)("/api/item_banks.json",{method:"get",params:h()(h()(h()({},t),l),{},{ids:r,shixun_ids:i,include_shixuns:!0,group_id:(null===(n=t.group_id)||void 0===n?void 0:n.map((function(e){return null==e?void 0:e.value})))||null,keyword:t.keyword?encodeURIComponent(t.keyword):t.keyword,type:"5"===t.type?null:t.type,clazz:"3"===t.type?"ItemBanksGroup":null})});case 14:if(u=e.sent,ft.current===o){e.next=17;break}return e.abrupt("return");case 17:V(u),X(!1);case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function wt(){return Ct.apply(this,arguments)}function Ct(){return(Ct=s()(a()().mark((function e(){var t;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,fe.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:"5"===x.type?null:x.type,clazz:"ItemBanksGroup"}});case 2:t=e.sent,A((0,Le.L)(null==t?void 0:t.disciplines));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function kt(e){return At.apply(this,arguments)}function At(){return(At=s()(a()().mark((function e(t){var n,r,i;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,fe.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:t});case 2:r=e.sent,i=[{title:"根目录",id:0,pid:0,value:0,key:0,isLeaf:!1,children:null==r||null===(n=r.data)||void 0===n?void 0:n.map((function(e){return{title:e.name,id:e.id,pid:e.id,value:e.id,key:e.id,isLeaf:!e.have_child}}))}],tt(i);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function St(){return(St=s()(a()().mark((function e(){var t;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ie.Dm)({});case 2:0===(null==(t=e.sent)?void 0:t.status)&&ot(null==t?void 0:t.groups);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Et(e){return Nt.apply(this,arguments)}function Nt(){return(Nt=s()(a()().mark((function e(t){var n,r,i,o,l,s,c,u;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(X(!0),i=null===(n=t.list)||void 0===n?void 0:n.filter((function(e){return!He.includes(e)})),o=null===(r=t.list)||void 0===r?void 0:r.filter((function(e){return He.includes(e)})),0!==i.length||0!==o.length){e.next=7;break}return X(!1),V([]),e.abrupt("return");case 7:return l={course_discipline_id:null==t?void 0:t.courseid},"1"===(null==t?void 0:t.type)&&(l={discipline_id:(null==t||null===(s=t.courseid)||void 0===s?void 0:s[0])||null,sub_discipline_id:(null==t||null===(c=t.courseid)||void 0===c?void 0:c[1])||null}),e.next=11,(0,fe.ZP)("/api/item_banks.json",{method:"get",params:h()(h()(h()({},t),l),{},{ids:i,shixun_ids:o,type:"5"===t.type?null:t.type,clazz:"3"===t.type?"ItemBanksGroup":null})});case 11:u=e.sent,X(!1),V(u);case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,m.useEffect)((function(){r&&(J.setFieldsValue({item_type:"",courseid:null,tag_discipline_id:null,difficulty:null,keyword:null,teach_group_id:null}),Je&&Ze&&(J.setFieldsValue({item_type:"SHIXUN"}),x.item_type="SHIXUN",b(h()({},x)),qe(!1)),x.type="0",L(f),Z(f),ht.current=new Set(f),xt(x),wt(),kt({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),function(){St.apply(this,arguments)}())}),[r]),console.log(N,P,"listitems"),(0,m.useEffect)((function(){Ue>0&&setTimeout((function(){Ge(0)}),2e3)}),[Ue]);var Lt=function(){var e=s()(a()().mark((function e(t){var n,r,i,o;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d({type:"shixunsDetail/release",payload:{id:t}});case 2:if(n=e.sent,r=null==n?void 0:n.tag_position,i=(null==n?void 0:n.evaluation_set_position)||[],0!==(o=n.status)){e.next=12;break}return H.ZP.success("发布成功"),xt(x),e.abrupt("return",!0);case 12:2===o?H.ZP.error("第".concat(i.join(","),"关尚未完成,无法申请发布")):3===o?H.ZP.error("每一个关卡至少需要一个技能标签, 第".concat(r.join(","),"关尚未设置技能标签,请补充")):H.ZP.error("尚未创建任务的实训,不能申请发布");case 13:return e.abrupt("return",!1);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Mt=function(e){return 1===(null==e?void 0:e.shixun_tag_num)?"未发布的实践项目不能被选用,请先进行发布":""},Dt=function e(t,n,r){return t.map((function(t){return t.key===n?h()(h()({},t),r):t.children?h()(h()({},t),{},{children:e(t.children,n,r)}):t}))},Pt=function(){var e=s()(a()().mark((function e(t){var n,r,i,o,l;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.key,r=x.type,e.next=4,(0,Ie.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(n),type:r});case 4:i=e.sent,l=(o=i||{}).data,o.total_count>0&&tt((function(e){return Dt(e,n,{children:l.map((function(e){return{title:e.name,id:e.id,pid:e.id,value:e.id,key:e.id,isLeaf:!e.have_child}}))})}));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,te.jsxs)("div",{children:[(0,te.jsxs)(I.Z,{title:!1,footer:!1,open:r,width:1200,centered:!0,className:pe,onCancel:function(){n(!1)},children:[(0,te.jsx)("div",{style:{display:"flex",alignItems:"center"},children:(0,te.jsx)("div",{className:ye,children:"选择编程题"})}),(0,te.jsx)(se.Z,{className:Ee,activeKey:x.type,onChange:function(e){"3"===e?(x.show_all_share=!0,kt({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"3"})):x.show_all_share=null,"0"===e&&kt({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),x.type=e,x.page=1,x.updated_at="",x.quotes="",x.courseid=null,x.tag_discipline_id=null,x.difficulty=null,x.keyword=null,x.group_id=null,x.teach_group_id=null,J.setFieldsValue({courseid:null,tag_discipline_id:null,difficulty:null,keyword:null,group_id:[],teach_group_id:null}),"SHIXUN"===(null==x?void 0:x.item_type)&&"5"!==x.type&&(Ze=!0,Re(!0)),yt(!1),"5"===x.type&&(Ze=!1,Re(!1)),b(h()({},x)),xt(h()({},x)),wt()},items:[{label:"我创建的",key:"0"},{label:"团队共享",key:"3"},{label:"公共",key:"1"},{label:(0,te.jsxs)("div",{children:["已选",P.length>0&&(0,te.jsx)("span",{className:Ce,children:P.length}),Ue>0&&(0,te.jsxs)("span",{className:ke,children:["+",Ue]})]}),key:"5"}]}),(0,te.jsxs)(R.Z,{layout:"inline",form:J,onValuesChange:function(e,t){var n=Object.values(t).some((function(e){return null!==e&&""!==e&&void 0!==e})),r=""===t.keyword;if(yt(n||!r),x.page=1,"SHIXUN"===(null==t?void 0:t.item_type)){if("5"===x.type?Re(!1):Re(!0),e.keyword||""===e.keyword)return;J.submit()}else{if(null!=e&&e.courseid&&J.setFieldsValue({tag_discipline_id:null}),Re(!1),e.keyword||""===e.keyword)return;J.submit()}},onFinish:function(e){var t;"3"!==x.type||e.group_id&&0!==(null==e||null===(t=e.group_id)||void 0===t?void 0:t.length)?x.show_all_share=null:x.show_all_share=!0,b(h()(h()({},x),e)),xt(h()(h()({},x),e))},children:["1"==x.type?(0,te.jsx)(R.Z.Item,{name:"courseid",children:(0,te.jsx)(ce.Z,{className:me,style:{width:160},size:"middle",placeholder:"方向&课程",options:k})}):(0,te.jsx)(R.Z.Item,{name:"courseid",children:(0,te.jsx)(Oe.q,{style:{width:160,height:38},size:"middle",showLinkButton:!1,data:{container_type:"ItemBank",type:null==x?void 0:x.type}})}),!Ze&&(0,te.jsx)(R.Z.Item,{name:"tag_discipline_id",children:(0,te.jsx)(ue.default,{className:me,placeholder:"知识点",style:{width:160},size:"middle",allowClear:!0,children:null==z||null===(t=z.tag_disciplines)||void 0===t?void 0:t.map((function(e){return(0,te.jsx)(ue.default.Option,{children:e.name},e.id)}))})}),(0,te.jsx)(R.Z.Item,{name:Ze?"diff":"difficulty",children:(0,te.jsxs)(ue.default,{className:me,placeholder:"难度",style:{width:118},size:"middle",allowClear:!0,children:[!Ze&&pt.map((function(e){return(0,te.jsx)(ue.default.Option,{children:e.name},e.value)})),Ze&&[{name:"初级",value:1},{name:"中级",value:2},{name:"中高级",value:3},{name:"高级",value:4}].map((function(e){return(0,te.jsx)(ue.default.Option,{children:e.name},e.value)}))]})}),Ze&&(0,te.jsx)(R.Z.Item,{name:"shixun_publish_status",children:(0,te.jsx)(ue.default,{className:me,placeholder:"全部状态",style:{width:118},size:"middle",allowClear:!0,children:[{name:"未发布",value:"unpublish"},{name:"静默发布",value:"silent_publish"},{name:"公开发布",value:"public_publish"}].map((function(e){return(0,te.jsx)(ue.default.Option,{children:e.name},e.value)}))})}),"3"===x.type&&!Ze&&(0,te.jsx)(R.Z.Item,{name:"teach_group_id",children:(0,te.jsx)(ue.default,{className:me,placeholder:"团队",style:{width:118},size:"middle",showSearch:!0,allowClear:!0,filterOption:function(e,t){return console.log("---",e,t),-1!==t.children.toUpperCase().indexOf(e.toUpperCase())},children:null==it?void 0:it.map((function(e){return(0,te.jsx)(ue.default.Option,{children:e.name},e.group_id)}))})}),("3"===x.type||"0"===x.type)&&!Ze&&(0,te.jsx)(R.Z.Item,{name:"group_id",children:(0,te.jsx)(de.Z,{treeDataSimpleMode:!0,style:{width:134},className:ve,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:function(e,t){return-1!==t.title.toUpperCase().indexOf(e.toUpperCase())},dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"请选择文件夹",treeCheckStrictly:!0,loadData:Pt,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:et})}),gt&&(0,te.jsxs)("span",{className:ge,onClick:function(){J.resetFields(),Ze=!1,Re(!1),yt(!1),J.submit()},children:[(0,te.jsx)("i",{className:"iconfont icon-guanbi4"}),(0,te.jsx)("span",{children:"清除筛选条件"})]}),(0,te.jsx)(R.Z.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword",children:(0,te.jsx)(F.Z.Search,{className:Ae,placeholder:"请输入试题编号或关键词搜索",allowClear:!0,suffix:(0,te.jsx)("i",{className:"iconfont icon-sousuo9 font14 ".concat(Se),onClick:function(){return J.submit()}}),onSearch:function(e){J.submit()}})})]}),(0,te.jsxs)("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20},children:[(0,te.jsxs)("div",{onClick:function(){"asc"===x.updated_at?x.updated_at="desc":x.updated_at="asc",b(h()(h()({},x),{},{page:1})),xt(h()(h()({},x),{},{page:1}))},children:[" ",x.updated_at?(0,te.jsx)("img",{src:"asc"===x.updated_at?Te.Z:je.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):(0,te.jsx)("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"按更新时间排序"]}),(0,te.jsxs)("div",{onClick:function(){"asc"===x.quotes?x.quotes="desc":x.quotes="asc",b(h()(h()({},x),{},{page:1})),xt(h()(h()({},x),{},{page:1}))},style:{marginLeft:20},children:[" ",x.quotes?(0,te.jsx)("img",{src:"asc"===x.quotes?Te.Z:je.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):(0,te.jsx)("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"按使用次数排序"]})]}),(0,te.jsx)(O.Z,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(null==z?void 0:z.items)||(null==z?void 0:z.shixun_list),pagination:!1,locale:{emptyText:(0,te.jsx)(ee.Z,{styles:{margin:"18px auto"},customText:U?"暂无数据":"3"!==x.type||null!=it&&it.length?"0"!==x.type||0!==(null==z?void 0:z.items_count)||null!=x&&x.tag_discipline_id||null!=x&&x.difficulty||null!=x&&x.keyword||null!=x&&x.group_id||null!=x&&x.difficulty?"暂无数据":(0,te.jsxs)("span",{children:["你还未创建过编程题,请先 ",(0,te.jsx)("span",{onClick:function(){(0,G.xg)("/problems/newcreate?&pageId=".concat(v)),n(!1)},style:{color:"#3061D0",cursor:"pointer"},children:"创建编程题"})]}):(0,te.jsxs)("span",{children:["你还未加入教研团队,请先 ",(0,te.jsx)("span",{onClick:function(){var e;return(0,G.xg)("/users/".concat(null==p||null===(e=p.userInfo)||void 0===e?void 0:e.login,"/teach-group"))},style:{color:"#3061D0",cursor:"pointer"},children:"新创建教研团队"})]})})},loading:U,rowKey:function(e){return e.id},rowSelection:{type:"checkbox",selectedRowKeys:N,getCheckboxProps:function(e){return{disabled:1===e.shixun_tag_num}},onSelect:function(e,t,n){if(t)Ze&&Ve([].concat(i()(He),[e.id])),L([].concat(i()(N),[e.id])),ut([].concat(i()(ct),[e])),e.identifier?dt.current.add(e.id):ht.current.add(e.id),Ge(1),Z([].concat(i()(P),[e.id]));else{var r=ct.filter((function(t){return t.id!==e.id}));ut(r);var o=r.map((function(e){return e.id}));L(i()(o)),e.identifier?dt.current.delete(e.id):ht.current.delete(e.id);var a=P.filter((function(t){return t!==e.id}));if(Z(a),Ze){var l=He.filter((function(t){return t!==e.id}));Ve(i()(l))}if("5"===x.type)return void Et(h()(h()({},x),{},{list:i()(a)}))}},onSelectAll:function(e,t,n){if(e){var r=n.map((function(e){return e.id}));Ze&&Ve([].concat(i()(He),i()(r))),ut([].concat(i()(ct),i()(n))),L([].concat(i()(N),i()(r))),Z([].concat(i()(P),i()(r)));var o,a=le()(n);try{for(a.s();!(o=a.n()).done;){var l=o.value;l.identifier?dt.current.add(l.id):ht.current.add(l.id)}}catch(e){a.e(e)}finally{a.f()}}else{var s=n.map((function(e){return e.id})),c=N.filter((function(e){return!s.some((function(t){return t===e}))})),u=ct.filter((function(e){return!s.some((function(t){return t===e.id}))}));if(ut(u),L(i()(c)),Z(i()(c)),Ze){var d=He.filter((function(e){return!s.some((function(t){return t===e.id}))}));Ve(i()(d))}"5"===x.type&&Et(h()(h()({},x),{},{list:i()(c)}));var f,p=le()(s);try{for(p.s();!(f=p.n()).done;){var m=f.value;m.identifier?dt.current.delete(m):ht.current.delete(m)}}catch(e){p.e(e)}finally{p.f()}}}},columns:[{title:"试题编号",dataIndex:"id",key:"id",width:110,render:function(e,t,n){var r="No.".concat(e);return(0,te.jsx)(W.Z,{title:r,children:(0,te.jsx)("span",{children:r})})}},{title:"试题名称",dataIndex:"name",width:Ze?"30%":"60%",key:"name",render:function(e,t,n){var r;return(0,te.jsx)(W.Z,{title:Mt(t),children:(0,te.jsx)("span",{children:(0,te.jsx)(De.Z,{showLines:1,showTextOnly:!0,value:Ze||null!=t&&t.challenge_names?null!=t&&t.title||null===e?"--":e:"BPROGRAM"==(null==t?void 0:t.item_type)?null==t||null===(r=t.program_attr)||void 0===r?void 0:r.description:e},1)})})}},{title:"知识点",dataIndex:"tag_discipline",key:"tag_discipline",ellipsis:!0,width:150,render:function(e,t,n){return(0,te.jsx)(W.Z,{title:e,children:(0,te.jsx)("span",{children:e||"- -"})})}},{title:"创建者",dataIndex:"author_name",key:"author_name",hidden:!Ze,render:function(e,t,n){var r;return(0,te.jsx)(W.Z,{title:Mt(t),children:(0,te.jsx)("span",{children:e?null==e||null===(r=e.split("、"))||void 0===r?void 0:r[0]:"- -"})})}},{title:"所属单位",dataIndex:"author_school_name",key:"author_school_name",hidden:!Ze,render:function(e,t,n){return(0,te.jsx)(W.Z,{title:Mt(t),children:(0,te.jsx)("span",{children:e||"- -"})})}},{title:"难度",dataIndex:"difficulty",key:"difficulty",width:50,render:function(e,t,n){var r,i;return(0,te.jsx)(W.Z,{title:Mt(t),children:(0,te.jsx)("div",{children:Ze||null!=t&&t.challenge_names?(null==t?void 0:t.level)||(null==pt||null===(r=pt.filter((function(t){return t.value===e})))||void 0===r||null===(r=r[0])||void 0===r?void 0:r.name):null==pt||null===(i=pt.filter((function(t){return t.value===e})))||void 0===i||null===(i=i[0])||void 0===i?void 0:i.name})})}},{title:"关卡数量",dataIndex:"challenges_count",key:"challenges_count",hidden:!Ze,render:function(e,t,n){return(0,te.jsx)(W.Z,{title:Mt(t),children:(0,te.jsx)("div",{children:e||"- -"})})}},{title:"使用次数",dataIndex:"quotes",key:"quotes",width:74,render:function(e,t,n){return(0,te.jsx)(W.Z,{title:Mt(t),children:(0,te.jsx)("div",{children:Ze||null!=t&&t.challenge_names?(null==t?void 0:t.study_count)||(null==t?void 0:t.stu_num):e})})}},{title:(0,te.jsxs)("span",{children:["发布状态 ",(0,te.jsx)(W.Z,{title:"未发布的实践项目不能被选用",children:(0,te.jsx)(Fe.Z,{})})]}),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!Ze,render:function(e,t,n){return(0,te.jsx)(W.Z,{title:Mt(t),children:(0,te.jsx)("div",{children:e||"- -"})})}},{title:"操作",dataIndex:"id",key:"item_type",width:50,align:"right",render:function(e,t,n){return(0,te.jsx)(W.Z,{title:Mt(t),children:(0,te.jsxs)("div",{style:{flex:1,textAlign:"start"},children:[(0,te.jsx)("a",{onClick:function(){var e;ne(h()(h()({},t),{},{question_type:Ze||null!=t&&t.challenge_names?5:null==at||null===(e=at.filter((function(e){return e.value===(null==t?void 0:t.item_type)})))||void 0===e||null===(e=e[0])||void 0===e?void 0:e.question_type})),ae(!0)},children:"查看"}),1===(null==t?void 0:t.shixun_tag_num)&&(0,te.jsx)("a",{style:{marginLeft:10},onClick:function(){var e;I.Z.confirm({title:"提示",icon:null,centered:!0,width:400,content:(0,te.jsxs)("div",{children:["是否确定发布",(0,te.jsx)("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:function(){window.open("/shixuns/".concat(null==t?void 0:t.identifier,"/challenges"))},children:(null==t?void 0:t.shixun_name)||"--"}),""]}),onOk:(e=s()(a()().mark((function e(){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Lt(null==t?void 0:t.identifier)){e.next=2;break}return e.abrupt("return",new Promise((function(e,t){t()})));case 2:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},children:"发布"})]})})}}].filter((function(e){return!e.hidden}))}),(0,te.jsx)(he.Z,{current:x.page,total:(null==z?void 0:z.items_count)||(null==z?void 0:z.shixuns_count),style:{marginBottom:20},defaultPageSize:x.per_page,hideOnSinglePage:!(null!=z&&z.items_count),showTotal:function(e){return(0,te.jsxs)("span",{children:["共 ",(0,te.jsx)("span",{style:{color:"#165DFF"},children:e})," 条数据"]})},pageSize:x.per_page,onChange:function(e,t){x.page=e,x.per_page=t,b(h()({},x)),xt(h()({},x))}}),(0,te.jsxs)("div",{className:xe,children:[(0,te.jsx)(j.ZP,{className:we,onClick:function(){n(!1)},children:"取消"}),(0,te.jsx)(j.ZP,{loading:c,style:{width:c&&75},className:be,onClick:s()(a()().mark((function e(){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((null==P?void 0:P.length)<=0)){e.next=3;break}return H.ZP.info("当前暂未选择数据"),e.abrupt("return");case 3:o(i()(ht.current),i()(dt.current),!0,null==P?void 0:P.length);case 4:case"end":return e.stop()}}),e)}))),children:"确认"})]})]}),(0,te.jsx)(I.Z,{open:oe,title:"题目详情",footer:!1,className:Ne,width:1e3,centered:!0,onCancel:function(){ae(!1)},onOk:function(){ae(!1)},children:(0,te.jsx)(Be,{qitem:$})})]})})),We=n(88670),ze=n(56656),He=n.n(ze),Ve=["value","onChange"],Ke=function(e){var t=e.title,n=e.icon,r=e.className,i=e.style,o=e.children;return(0,te.jsxs)("div",{className:P()(v,r),style:i,children:[(0,te.jsxs)("div",{className:g,children:[(0,te.jsx)("i",{className:n}),(0,te.jsx)("b",{children:t})]}),(0,te.jsx)("div",{className:y,children:o})]})},Ye=function(e){var t=e.value,n=e.onChange,r=p()(e,Ve);return(0,te.jsx)(B.Z,h()(h()({},r),{},{defaultValue:t,onChange:n}))},Ue=function(e){var t=e.value,n=void 0===t?[]:t,r=e.onChange,i=e.params,o=e.className,l=(0,m.useState)(!1),c=u()(l,2),d=c[0],h=c[1],f=(0,m.useState)([]),p=u()(f,2),v=p[0],g=p[1],y=(0,m.useState)(""),A=u()(y,2),S=A[0],E=A[1],N=(0,m.useState)([]),L=u()(N,2),M=L[0],D=L[1],Z=(0,m.useState)(""),B=u()(Z,2),R=B[0],W=B[1];function z(){return(z=s()(a()().mark((function e(){var t;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,fe.ZP)("/api/courses/".concat(null==i?void 0:i.coursesId,"/teachers"),{method:"get",params:{homework_id:i.categoryId,limit:1e3}});case 2:t=e.sent,D((null==t?void 0:t.teacher_list)||[]);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,m.useEffect)((function(){!function(){z.apply(this,arguments)}()}),[]),(0,te.jsxs)(m.Fragment,{children:[(0,te.jsxs)("div",{className:P()(x,o),children:[null==n?void 0:n.map((function(e){return(0,te.jsxs)(T.Z,{align:"middle",className:"".concat(b," ").concat(R==(null==e?void 0:e.user_id)?C:""),children:[(0,te.jsx)("span",{className:"c-grey-333",children:null==e?void 0:e.name}),(0,te.jsx)("span",{className:"iconfont icon-guanbi11 current ml20 c-grey-ccc ".concat(w),onMouseEnter:function(){W(null==e?void 0:e.user_id)},onMouseLeave:function(){W("")},onClick:function(){var t=n.filter((function(t){return t.user_id!==e.user_id}));g(t.map((function(e){return e.user_id}))),r(t)}})]},e.user_id)})),(0,te.jsx)(j.ZP,{className:k,style:{height:38,padding:"6px 15px"},type:"primary",ghost:!0,onClick:function(){return h(!0)},children:"添加协作者"})]}),(0,te.jsxs)(I.Z,{title:"添加协作者",open:d,onCancel:function(){return h(!1)},onOk:function(){var e=M.filter((function(e){return v.includes(e.user_id)}));r(e),h(!1)},afterClose:function(){E("")},children:[(0,te.jsxs)(T.Z,{align:"middle",children:[(0,te.jsx)("label",{children:"姓名:"}),(0,te.jsx)(F.Z.Search,{value:S,size:"middle",style:{flex:1},onChange:function(e){return E(e.target.value)}})]}),(0,te.jsx)(O.Z,{style:{marginTop:10,height:300,overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(e){g(e)},selectedRowKeys:v,getCheckboxProps:function(e){return{disabled:e.is_collaborator}}},pagination:!1,rowKey:"user_id",size:"middle",dataSource:M.filter((function(e){return e.name.includes(S)})),columns:[{title:"姓名",dataIndex:"name"},{title:"角色",dataIndex:"role"}]})]})]})},Ge=function(){var e,t=(0,X.useParams)(),n=(0,X.useDispatch)(),r=R.Z.useForm(),o=u()(r,1)[0],l=R.Z.useWatch("hack_score_settings",o),c=R.Z.useWatch("open_code",o),d=R.Z.useWatch("rank_forbidden",o),f=R.Z.useWatch("hack_analysis",o),p=R.Z.useWatch("hack_answer",o),v=(0,m.useState)([]),g=u()(v,2),y=g[0],x=g[1],b=(0,m.useState)({}),w=u()(b,2),C=w[0],k=w[1],D=(0,m.useState)({course_end_date:null,manage_all_group:!0,send_type:0,can_publish:!0,difficult_settings:[],difficult_count:[],unified_setting:!0}),P=u()(D,2),B=P[0],I=P[1],O=(0,m.useState)(!0),Q=u()(O,2),J=Q[0],q=Q[1],_=(0,m.useState)(!1),$=u()(_,2),ee=$[0],ne=$[1],re=(0,m.useState)(!1),ie=u()(re,2),ae=ie[0],le=ie[1],se=(0,m.useState)({}),ce=u()(se,2),ue=ce[0],de=ce[1],he=(0,m.useState)(!1),pe=u()(he,2),me=pe[0],ve=pe[1],ge=(0,m.useState)(!1),ye=u()(ge,2),xe=ye[0],be=ye[1],we=(0,m.useRef)(!1),Ce=(0,m.useRef)(String(Math.random()).slice(-6)),ke=null===(e=window.location.pathname)||void 0===e?void 0:e.includes("add");(0,m.useEffect)((function(){return window.addEventListener("visibilitychange",Ae),function(){window.removeEventListener("visibilitychange",Ae)}}),[y,ue]),(0,m.useEffect)((function(){return n({type:"globalSetting/footerToggle",payload:!1}),function(){n({type:"globalSetting/footerToggle",payload:!0})}}),[]),(0,m.useEffect)((function(){y.length&&void 0!==l&&De()}),[l,JSON.stringify(null==y?void 0:y.map((function(e){return e.id+e.hack_score})))]),(0,m.useEffect)((function(){Se(),ke?q(!1):Ee()}),[]);var Ae=function(){var e=s()(a()().mark((function e(){var t,n,r,o,l;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("visible"!==document.visibilityState){e.next=10;break}return be(!0),t=y.map((function(e){return e.id})),(n=localStorage.getItem(Ce.current))&&(n=JSON.parse(n),n=Array.isArray(n)?n:[],t=[].concat(i()(t),i()(n)),localStorage.removeItem(Ce.current)),e.next=7,(0,fe.ZP)("/api/item_banks.json",{method:"get",params:{hack_item_bank_ids:t.length?t:-1,homework_common_id:ke?null:null==ue?void 0:ue.homework_id}});case 7:null!=(r=e.sent)&&r.items&&(l=null==r||null===(o=r.items)||void 0===o?void 0:o.map((function(e){var t=y.find((function(t){return t.id===e.id}));return t?h()(h()({},e),{},{hack_score:t.hack_score}):e})),x(l)),be(!1);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Se=function(){var e=s()(a()().mark((function e(){var n;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,fe.ZP)("/api/courses/".concat(t.coursesId,"/homework_commons/new.json"),{method:"get",params:{category:null==t?void 0:t.categoryId,type:5}});case 2:null!=(n=e.sent)&&n.course_name&&k(n);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ee=function(){var e=s()(a()().mark((function e(){var n,r,i,l,s;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,fe.ZP)("/api/homework_commons/".concat(null==t?void 0:t.categoryId,"/edit_hack.json"),{method:"get"});case 2:0===(null==(n=e.sent)?void 0:n.status)&&(l=null==n||null===(r=n.collaborators_data)||void 0===r?void 0:r.map((function(e){return{user_id:e.id,name:e.real_name}})),o.setFieldsValue(h()(h()({},n),{},{user_ids:l,rank_forbidden_start:null!=n&&n.rank_forbidden_start?He()(null==n?void 0:n.rank_forbidden_start):"",rank_forbidden_end:null!=n&&n.rank_forbidden_end?He()(null==n?void 0:n.rank_forbidden_end):""})),s=null==n||null===(i=n.items)||void 0===i?void 0:i.map((function(e,t){var r;return h()(h()({},e),{},{hack_score:null==n||null===(r=n.hack_settings)||void 0===r||null===(r=r[t])||void 0===r?void 0:r.hack_score})})),x(s||[]),de(h()({},n))),q(!1);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ne=function(){var e="/classrooms/".concat(null==t?void 0:t.coursesId,"/program_homework");return ke||(e="/classrooms/".concat(null==t?void 0:t.coursesId,"/program_homework/").concat(null==t?void 0:t.categoryId,"/detail")),e},Le=[{name:(null==C?void 0:C.course_name)||"",path:"/classrooms/".concat(null==C?void 0:C.course_id,"/program_homework")},{name:ke?"编程作业":null==ue?void 0:ue.name,path:Ne()},{name:(ke?"新建":"编辑")+"编程作业"}],Me=[{title:"序号",dataIndex:"index",width:80,render:function(e,t,n){return n+1}},{title:"标题",dataIndex:"name",ellipsis:!0,render:function(e){return(0,te.jsx)(W.Z,{placement:"topLeft",title:e,children:(0,te.jsx)("span",{children:e||"--"})})}},{title:"分值",dataIndex:"hack_score",render:function(e,t,n){return(0,te.jsx)(z.Z,{disabled:2!==l,size:"middle",min:0,precision:1,addonAfter:"分",value:e,onChange:function(e){y[n].hack_score=e;var t=y.reduce((function(e,t){return e+Number(t.hack_score||0)}),0);o.setFieldsValue({total_score:t.toFixed(2)}),x(i()(y))}})}},{title:"难度",dataIndex:"difficulty",align:"center",width:90,render:function(e){return(0,te.jsx)("span",{children:1===e?"简单":2===e?"中等":"困难"})}},{title:"知识点",dataIndex:"tag_discipline",render:function(e){return(0,te.jsx)(W.Z,{placement:"topLeft",title:e,children:(0,te.jsx)("span",{style:{backgroundColor:"#ECFAF5",color:"#1B8565",overflow:"hidden",textOverflow:"ellipsis",padding:"2px 6px"},children:e||"--"})})}},{title:"使用次数",dataIndex:"quotes"},{title:"操作",dataIndex:"action",width:146,render:function(e,t){return(0,te.jsxs)("span",{children:[(0,te.jsx)("span",{onClick:s()(a()().mark((function e(){var r,i;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"正在初始化,请稍后..."}}),e.next=3,(0,fe.ZP)("/api/problems/".concat(null==t||null===(r=t.program_attr)||void 0===r?void 0:r.identifier,"/start.json"),{method:"get"});case 3:0===(null==(i=e.sent)?void 0:i.status)&&(0,G.xg)("/myproblems/".concat(null==i?void 0:i.identifier,"?type=1&pageId=edit&backUrl=").concat(Ne())),n({type:"globalSetting/setGlobalLoading",payload:{show:!1}});case 6:case"end":return e.stop()}}),e)}))),className:"c-light-primary current",children:"体验"}),(0,te.jsx)("span",{onClick:function(){var e;return(0,G.xg)("/problems/newedit/".concat(null==t||null===(e=t.program_attr)||void 0===e?void 0:e.identifier,"?type=1&pageId=edit&backUrl=").concat(window.location.pathname))},className:"c-light-primary current mr20 ml20",children:"编辑"}),(0,te.jsx)("span",{onClick:function(){var e=y.filter((function(e){return e.id!==t.id}));x(e),H.ZP.success("删除成功")},className:"current",style:{color:"#E30000"},children:"删除"})]})}}],De=function(){var e,t=i()(y),n=o.getFieldValue("total_score"),r=null==t?void 0:t.length,a=0;switch(l){case 0:var s=(n/r).toFixed(2);t.map((function(e,t){a=t,e.hack_score=s>0?s:0})),e=(n-s*(r-1)).toFixed(2),t[a].hack_score=e>0?e:0;break;case 1:var c=[0,1,3,6],u=0,d=n/(t.filter((function(e){return 1===e.difficulty})).length*c[1]+t.filter((function(e){return 2===e.difficulty})).length*c[2]+t.filter((function(e){return 3===e.difficulty})).length*c[3]);t.map((function(e,t){a=t,e.hack_score=(c[e.difficulty]*d).toFixed(2),u+=Number(e.hack_score)}));var h=t[a].hack_score;e=(n-u+Number(h)).toFixed(2),t[a].hack_score=e>0?e:0}x(t)},Pe=function(e){we.current=e,o.submit()},Ze=function(){var e=s()(a()().mark((function e(r){var i,l,s,c,u,d;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(y.length){e.next=4;break}return H.ZP.error("未设置编程题,请添加编程题"),o.scrollToField("hack_score_settings",{behavior:"smooth",block:"center"}),e.abrupt("return");case 4:return ve(!0),l=[],s=y.map((function(e){return l.push(e.hack_id),{hack_id:e.hack_id,hack_name:e.name,hack_score:e.hack_score,difficult:e.difficulty}})),c=null==r||null===(i=r.user_ids)||void 0===i?void 0:i.map((function(e){return e.user_id})),e.next=10,(0,fe.ZP)("/api/courses/".concat(t.coursesId,"/homework_commons/create_hack_homework.json"),{method:"post",body:h()(h()({},r),{},{category:ke?Number(null==t?void 0:t.categoryId):null,homework_id:ke?null:null==ue?void 0:ue.homework_id,hack_settings:s,user_ids:c,hack_ids:l})});case 10:0===(null==(u=e.sent)?void 0:u.status)&&(H.ZP.success("保存成功"),we.current?(d=h()({},u),I(d),n({type:"classroomList/setActionTabs",payload:{key:"立即发布",selectArrs:[null==u?void 0:u.id],selectArrsAll:[d],params:t,detail:!0,type:2,manage_all_group:null==d?void 0:d.manage_all_group}})):X.history.push("/classrooms/".concat(t.coursesId,"/program_homework/").concat(null==u?void 0:u.id,"/detail"))),ve(!1);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Be=function(){var e=s()(a()().mark((function e(t){var n,r,s,c,u,d;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.length){e.next=3;break}return H.ZP.warning("请选择编程题"),e.abrupt("return");case 3:if(!(t.length>200)){e.next=6;break}return H.ZP.warning("编程题数量不得超过200道"),e.abrupt("return");case 6:return n=[],r=y.map((function(e){var t;return null===(t=e.program_attr)||void 0===t?void 0:t.origin_item_bank_id})),s=[],t.forEach((function(e){if(r.includes(e)){var t=y.find((function(t){var n;return(null===(n=t.program_attr)||void 0===n?void 0:n.origin_item_bank_id)===e}));s.push(t)}else n.push(e)})),le(!0),e.next=13,(0,fe.ZP)("/api/problems/copy_item_banks.json",{method:"post",body:{ids:n}});case 13:null!=(c=e.sent)&&c.items&&(u=[].concat(s,i()(null==c?void 0:c.items)),2===l&&(d=u.reduce((function(e,t){return e+Number(t.hack_score||0)}),0),o.setFieldsValue({total_score:d.toFixed(2)})),x(u),ne(!1)),le(!1);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,te.jsxs)("div",{className:A,children:[(0,te.jsxs)(V.Z,{spinning:J,children:[(0,te.jsxs)("div",{className:S,children:[(0,te.jsx)(Z._b,{dataSource:Le,className:"mb20"}),(0,te.jsxs)(R.Z,{form:o,preserve:!1,onValuesChange:function(e){"total_score"in e&&De()},onFinishFailed:function(){var e=s()(a()().mark((function e(t){var n;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:H.ZP.error(t.errorFields[0].errors[0]),o.scrollToField(null==t||null===(n=t.errorFields)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.name,{behavior:"smooth",block:"center"});case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),onFinish:Ze,colon:!1,size:"large",children:[(0,te.jsxs)(Ke,{className:"mb20",title:"基本信息",icon:"iconfont icon-jibenxinxi2",children:[(0,te.jsx)(R.Z.Item,{label:"作业名称",name:"name",rules:[{required:!0,message:"请输入作业名称"},{whitespace:!0,message:"作业名称不能为空"}],children:(0,te.jsx)(F.Z,{placeholder:"请输入作业名称",showCount:!0,maxLength:60})}),(0,te.jsx)(R.Z.Item,{labelCol:{flex:"81px"},label:"作业说明",name:"description",initialValue:"",rules:[{max:5e4,message:"作业说明最大限制50000个字符"}],children:(0,te.jsx)(Ye,{placeholder:"请输入作业说明最大限制50000个字符",watch:!0})})]}),(0,te.jsxs)(Ke,{className:"mb20",title:"题目设置",icon:"iconfont icon-timushezhi",children:[(0,te.jsx)(R.Z.Item,{label:"试题编程语言",name:"languages",rules:[{required:!0,message:"请选择试题编程语言"}],children:(0,te.jsxs)(K.Z.Group,{children:[(0,te.jsx)(K.Z,{value:"c",children:"C语言"}),(0,te.jsx)(K.Z,{value:"c++",children:"C++语言"}),(0,te.jsx)(K.Z,{value:"java",children:"Java语言"}),(0,te.jsx)(K.Z,{value:"python",children:"Python语言"})]})}),(0,te.jsxs)(T.Z,{align:"middle",children:[(0,te.jsx)(R.Z.Item,{label:"总分值",name:"total_score",rules:[{required:!0,message:"总分值不能为空"}],initialValue:100,children:(0,te.jsx)(z.Z,{precision:1,disabled:2===l,min:0,style:{width:223},addonAfter:"分"})}),(0,te.jsx)(R.Z.Item,{label:"测评单次报错增加时长",name:"punish_time",initialValue:0,style:{marginLeft:40},children:(0,te.jsx)(z.Z,{min:0,style:{width:223},addonAfter:"分钟"})})]}),(0,te.jsx)(R.Z.Item,{label:"试题分值",name:"hack_score_settings",initialValue:0,children:(0,te.jsxs)(Y.ZP.Group,{children:[(0,te.jsx)(Y.ZP,{value:0,children:"均分比例"}),(0,te.jsx)(Y.ZP,{style:{margin:"0 40px"},value:1,children:"难易度"}),(0,te.jsx)(Y.ZP,{value:2,children:"自定义分值"})]})}),(0,te.jsxs)(T.Z,{align:"middle",children:[(0,te.jsx)("span",{children:"题目列表"}),(0,te.jsx)(j.ZP,{onClick:function(){return ne(!0)},style:{marginLeft:"auto",width:110},type:"primary",ghost:!0,children:"选择编程题"}),(0,te.jsx)(j.ZP,{onClick:function(){return(0,G.xg)("/problems/newcreate?pageId=".concat(Ce.current))},style:{marginLeft:20,width:110},type:"primary",children:"新增编程题"})]}),(0,te.jsxs)("div",{className:E,children:[(0,te.jsx)("i",{className:"iconfont icon-tishi12 mr5 font14"}),"提示:可以点击“编辑”对该试题的测试用例/初始代码进行修改,修改的内容并不会同步到试题库"]}),(0,te.jsx)(R.Z.Item,{name:"hack_settings",className:"mb0",initialValue:[],children:(0,te.jsx)(oe,{dataSource:y,setDataSource:x,columns:Me,loading:xe})})]}),(0,te.jsxs)(Ke,{style:{marginBottom:100},title:"作业设置",icon:"iconfont icon-zuoyeshezhi",children:[(0,te.jsx)("div",{className:N,children:"排行榜时间名次规则"}),(0,te.jsx)("div",{className:"".concat(L," mb30"),children:(0,te.jsx)(R.Z.Item,{name:"hack_rank_rule",noStyle:!0,initialValue:0,children:(0,te.jsxs)(Y.ZP.Group,{children:[(0,te.jsxs)(Y.ZP,{value:0,children:[(0,te.jsx)("span",{className:"c-black",children:"耗时时长优先"}),(0,te.jsx)("span",{className:"c-grey-666 font14",children:"(同成绩,耗时越短名次越前)"})]}),(0,te.jsxs)(Y.ZP,{style:{marginLeft:40},value:1,children:[(0,te.jsx)("span",{className:"c-black",children:"完成时间点优先"}),(0,te.jsx)("span",{className:"c-grey-666 font14",children:"(同成绩,完成时间越早名次越前)"})]})]})})}),(0,te.jsx)("div",{className:"".concat(N," mt30"),children:"学生实验报告代码展示设置"}),(0,te.jsx)("div",{className:L,children:(0,te.jsx)(R.Z.Item,{name:"show_late_code",noStyle:!0,valuePropName:"checked",initialValue:!0,children:(0,te.jsxs)(K.Z,{children:[(0,te.jsx)("span",{className:"c-black",children:"展示所有评测代码"}),(0,te.jsx)("span",{className:"c-grey-666 ml10",children:"(勾选后,展示所有评测代码,否则只展示在作业时间范围内提交的代码)"})]})})}),(0,te.jsx)("div",{className:"".concat(N," mt30"),children:"公开设置"}),(0,te.jsxs)("div",{className:L,children:[(0,te.jsx)(R.Z.Item,{name:"score_open",valuePropName:"checked",className:"mb0",initialValue:!1,children:(0,te.jsxs)(K.Z,{children:[(0,te.jsx)("span",{className:"c-black",children:"公开成绩"}),(0,te.jsx)("span",{className:"c-grey-666 ml10",children:"(勾选后学生在作业截止/补交结束后,可查看其他学生的成绩)"})]})}),(0,te.jsx)(R.Z.Item,{name:"open_code",valuePropName:"checked",className:"mb0",initialValue:!1,children:(0,te.jsxs)(K.Z,{children:[(0,te.jsx)("span",{className:"c-black",children:"公开代码"}),(0,te.jsx)("span",{className:"c-grey-666 ml10",children:"(设置学生可在排行榜中查看他人试题通过代码详情)"})]})}),!!c&&(0,te.jsx)(R.Z.Item,{name:"open_code_type",className:"mb0 ml25",initialValue:1,children:(0,te.jsxs)(Y.ZP.Group,{children:[(0,te.jsx)(Y.ZP,{value:1,children:"作业结束后"}),(0,te.jsx)(Y.ZP,{style:{marginLeft:60},value:0,children:"任意时间"})]})}),(0,te.jsx)(R.Z.Item,{name:"rank_forbidden",valuePropName:"checked",className:"mb0",initialValue:!1,children:(0,te.jsxs)(K.Z,{children:[(0,te.jsx)("span",{className:"c-black",children:"开启封榜"}),(0,te.jsx)("span",{className:"c-grey-666 ml10",children:"(设置学生不可查看排行榜信息的时间段)"})]})}),!!d&&(0,te.jsxs)(T.Z,{align:"middle",className:"ml25",children:[(0,te.jsx)(R.Z.Item,{label:"开始时间",name:"rank_forbidden_start",initialValue:"",rules:[{required:!0,message:"封榜开始时间不能为空"}],className:"mb0",children:(0,te.jsx)(U.default,{style:{width:170},placeholder:"请选择开始时间",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:G.Q8,disabledTime:G.d0})}),(0,te.jsx)(R.Z.Item,{label:"截止时间",name:"rank_forbidden_end",style:{marginLeft:40},initialValue:"",rules:[{required:!0,message:"封榜截止时间不能为空"}],className:"mb0",children:(0,te.jsx)(U.default,{style:{width:170},allowClear:!1,placeholder:"请选择截止时间",showTime:{format:"HH:mm"},format:"YYYY-MM-DD HH:mm",disabledDate:G.Q8,disabledTime:G.d0})})]}),(0,te.jsx)(R.Z.Item,{name:"hack_analysis",valuePropName:"checked",className:"mb0",initialValue:!1,children:(0,te.jsxs)(K.Z,{children:[(0,te.jsx)("span",{className:"c-black",children:"公开解析"}),(0,te.jsx)("span",{className:"c-grey-666 ml10",children:"(设置学生在实验页面查看试题解析)"})]})}),!!f&&(0,te.jsx)(R.Z.Item,{name:"hack_analysis_type",className:"mb0 ml25",initialValue:2,children:(0,te.jsxs)(Y.ZP.Group,{children:[(0,te.jsx)(Y.ZP,{value:2,children:"作业结束后"}),(0,te.jsx)(Y.ZP,{value:0,style:{marginLeft:60},children:"任意时间"}),(0,te.jsx)(Y.ZP,{style:{marginLeft:60},value:1,children:"学生通过答题后/未通过的学生作业截止后"})]})}),(0,te.jsx)(R.Z.Item,{name:"hack_answer",valuePropName:"checked",className:"mb0",initialValue:!1,children:(0,te.jsxs)(K.Z,{children:[(0,te.jsx)("span",{className:"c-black",children:"公开答案"}),(0,te.jsx)("span",{className:"c-grey-666 ml10",children:"(设置学生在实验页面查看试题答案)"})]})}),!!p&&(0,te.jsx)(R.Z.Item,{name:"hack_answer_type",className:"mb0 ml25",initialValue:1,children:(0,te.jsxs)(Y.ZP.Group,{children:[(0,te.jsx)(Y.ZP,{value:1,children:"作业结束后"}),(0,te.jsx)(Y.ZP,{value:0,style:{marginLeft:60},children:"任意时间"})]})})]}),(0,te.jsx)("div",{className:"".concat(N," mt30"),children:"协作设置"}),(0,te.jsx)(R.Z.Item,{name:"user_ids",noStyle:!0,initialValue:[],children:(0,te.jsx)(Ue,{params:t})})]})]})]}),(0,te.jsx)("div",{className:M,children:(0,te.jsxs)(T.Z,{align:"middle",className:S,children:[(0,te.jsx)(j.ZP,{onClick:function(){return X.history.push(Ne())},style:{padding:"6px 15px"},type:"primary",ghost:!0,children:"取消"}),(0,te.jsx)(j.ZP,{loading:me&&!we.current,disabled:me&&we.current,onClick:function(){return Pe(!1)},style:{marginLeft:"auto",marginRight:20,padding:"6px 40px"},type:"primary",ghost:!0,children:"保存作业"}),(0,te.jsx)(j.ZP,{loading:me&&we.current,disabled:me&&!we.current,onClick:function(){return Pe(!0)},style:{padding:"6px 19px"},type:"primary",children:"保存并发布作业"})]})})]}),(0,te.jsx)(Re,{setScoreShow:ne,isshixuns:!1,ScoreShow:ee,virtualId:Ce.current,isloadings:ae,onOk:Be,selectedIds:y.map((function(e){var t;return null===(t=e.program_attr)||void 0===t?void 0:t.origin_item_bank_id}))||[]}),(0,te.jsx)(We.Z,{courseEndTime:null==B?void 0:B.course_end_date,onWindowBack:function(){window.location.href="/classrooms/".concat(null==t?void 0:t.coursesId,"/program_homework/").concat(null==B?void 0:B.id,"/detail")}})]})}},88670:function(e,t,n){"use strict";var r=n(7557),i=n.n(r),o=n(85573),a=n.n(o),l=n(41498),s=n.n(l),c=n(82242),u=n.n(c),d=n(37205),h=n.n(d),f=n(79800),p=n.n(f),m=n(39647),v=n.n(m),g=n(59301),y=n(28284),x=n(6767),b=n(62957),w=n(77019),C=n(47889),k=n(71051),A=n(5269),S=n(16326),E=n(62673),N=n(56656),L=n.n(N),M=n(67310),D=n(56800),P=n(32985),Z=n(5030),B=n(86430),T=n(83986),j=n(54384),I=n(37712),F=["classroomList","dispatch","courseEndTime","onWindowBack"];t.Z=(0,Z.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n,r,o,l,c,d,f,m,N,O,R=e.classroomList,W=e.dispatch,z=e.courseEndTime,H=e.onWindowBack,V=v()(e,F),K=(0,Z.useParams)(),Y=y.Z.useForm(),U=p()(Y,1)[0],G=(0,g.useState)(1),X=p()(G,2),Q=X[0],J=X[1],q=(0,g.useState)([]),_=p()(q,2),$=_[0],ee=_[1],te=(0,g.useState)(0),ne=p()(te,2),re=(ne[0],ne[1]),ie=(0,g.useState)(2e3),oe=p()(ie,2),ae=(oe[0],oe[1],(0,g.useState)(!0)),le=p()(ae,2),se=(le[0],le[1]),ce=(0,g.useState)(!1),ue=p()(ce,2),de=ue[0],he=(ue[1],(0,g.useState)(!1)),fe=p()(he,2),pe=fe[0],me=(fe[1],(0,g.useState)([])),ve=p()(me,2),ge=ve[0],ye=ve[1],xe=(0,g.useState)(!0),be=p()(xe,2),we=be[0],Ce=be[1],ke=(0,g.useState)(!(null!==(t=R.actionTabs)&&void 0!==t&&null!==(t=t.selectArrsAll)&&void 0!==t&&null!==(t=t[0])&&void 0!==t&&t.send_type)),Ae=p()(ke,2),Se=Ae[0],Ee=Ae[1],Ne=(0,g.useState)([0,0,0]),Le=p()(Ne,2),Me=Le[0],De=Le[1];(0,g.useEffect)((function(){if("立即发布"===R.actionTabs.key){var e,t,n,r;if(Te(),null!==(e=R.actionTabs)&&void 0!==e&&null!==(e=e.selectArrsAll)&&void 0!==e&&null!==(e=e[0])&&void 0!==e&&e.can_publish)De(h()(null===(n=R.actionTabs)||void 0===n||null===(n=n.selectArrsAll)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.difficult_count));else De(h()(null===(r=R.actionTabs)||void 0===r||null===(r=r.selectArrsAll)||void 0===r||null===(r=r[0])||void 0===r?void 0:r.difficult_settings));if(Ee(!(null!==(t=R.actionTabs)&&void 0!==t&&null!==(t=t.selectArrsAll)&&void 0!==t&&null!==(t=t[0])&&void 0!==t&&t.send_type)),Pe(),2===R.actionTabs.type){var i,o=null===(i=R.actionTabs.selectArrsAll)||void 0===i?void 0:i[0];Ce(o.unified_setting)}else Ce(!1)}}),[R.actionTabs]),(0,g.useEffect)((function(){if(de){if(pe)return;W({type:"classroomList/setActionTabs",payload:{}}),(0,D.GJ)()?(W({type:"classroomList/getClassroomTeacherCommonList",payload:u()(u()({},R.actionTabs.params),{},{type:1})}),W({type:"shixunHomeworks/getWorkList",payload:u()({},K)})):W({type:"classroomList/getClassroomCommonList",payload:u()({},R.actionTabs.params)})}}),[de]);var Pe=function(){var e=s()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return se(!0),e.next=3,(0,T.c_)(u()(u()({},K),{},{page:t||Q,limit:2e4,homework_id:1===R.actionTabs.type?"":R.actionTabs.selectArrs[0]}));case 3:null==(n=e.sent)||n.course_groups.map((function(e,t){e.key=e.id,e.title=e.name,e.disabled=e.is_published})),n&&(ee(h()(null==n?void 0:n.course_groups)),re(null==n?void 0:n.course_groups_count),se(!1),t||U.setFieldsValue(a()(a()({},"publish_time",L()(L()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",L()(L()(new Date).add(7,"days").format("YYYY-MM-DD HH:mm")))));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ze=function(){(0,D.GJ)()?R.actionTabs.detail?(W({type:"shixunHomeworks/setActionTabs",payload:{}}),W({type:"shixunHomeworks/getWorkList",payload:u()({},K)}),W({type:"shixunHomeworks/getWorkSetting",payload:u()({},K)})):W({type:"classroomList/getClassroomTeacherCommonList",payload:u()(u()({},R.actionTabs.params),{},{type:5,category:R.actionTabs.params.categoryId})}):W({type:"classroomList/getClassroomCommonList",payload:u()({},R.actionTabs.params)})},Be=function(){var e=s()(i()().mark((function e(){var t,n,r,o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,D.Rm)()||null!==(t=R.AssistantObject.hack)&&void 0!==t&&t.can_publish){e.next=4;break}return x.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能"),Oe(!1),e.abrupt("return");case 4:if(!((r=u()({},U.getFieldsValue())).end_time<=r.publish_time)){e.next=9;break}return x.ZP.info("截止时间不能大于或等于发布时间"),Oe(!1),e.abrupt("return");case 9:if(!((null==ge?void 0:ge.length)<=0&&!we&&$.length>0)){e.next=13;break}return x.ZP.info("发布班级不能为空"),Oe(!1),e.abrupt("return");case 13:if(0!==Me.reduce((function(e,t){return e+t}),0)||Se){e.next=17;break}return x.ZP.info("简单适中困难题数相加不能为0"),Oe(!1),e.abrupt("return");case 17:return o={homework_ids:h()(R.actionTabs.selectArrs),group_ids:ge.length>0?ge.map((function(e){return e.id})):null===(n=R.detailCommonHomeworksList)||void 0===n?void 0:n.course_groups,end_time:L()(r.end_time).format("YYYY-MM-DD HH:mm"),publish_time:L()(r.publish_time).format("YYYY-MM-DD HH:mm"),difficult_settings:null==Me?void 0:Me.map((function(e){return e})),send_type:Se?"0":"1",unified_setting:!ge.length},Oe(!0),e.next=21,(0,M.ZP)("/api/courses/".concat(K.coursesId,"/homework_commons/publish_with_homework_list_position.json"),{method:"post",body:u()({},o)});case 21:if(0!==e.sent.status){e.next=35;break}if(Oe(!1),(0,P.L9)(["教学课堂","图文作业","立即发布"]),x.ZP.success("发布成功"),W({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),!H){e.next=30;break}return H(),e.abrupt("return");case 30:V.onCallback&&V.onCallback(),Ze(),"0"===localStorage.getItem("Noviceguide")||W({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:13,text:(0,I.jsx)("div",{children:"最后,咱们给教学课堂添加一名学生~点击“添加学生”,在弹窗页面中输入并搜索学生姓名,点击“确定”就可以为您的课堂添加第一位学生啦~"})}}),e.next=36;break;case 35:Oe(!1);case 36:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Te=function(){J(1),ee([]),ye([])},je=(0,g.useState)(!1),Ie=p()(je,2),Fe=Ie[0],Oe=Ie[1];return(0,I.jsxs)(b.Z,{width:600,confirmLoading:Fe,centered:!0,title:"发布作业",open:"立即发布"===R.actionTabs.key,okText:"发布作业",cancelText:"暂不发布",onOk:Be,onCancel:function(){Te(),W({type:"classroomList/setActionTabs",payload:{}}),H?H():Ze()},children:[(0,I.jsxs)("p",{className:"tc",children:["学生将立即收到作业",(0,I.jsx)("br",{}),'本操作只对"未发布"的作业有效']}),$&&(0,I.jsxs)(y.Z,{form:U,children:[(0,I.jsxs)("div",{style:{paddingLeft:0},children:[2===R.actionTabs.type&&(0,I.jsxs)(w.Z,{style:{marginBottom:"10px"},children:[(0,I.jsx)("span",{className:"mr5",children:"试题发送:"}),(0,I.jsxs)(C.ZP.Group,{value:Se,disabled:!(null!==(n=R.actionTabs)&&void 0!==n&&null!==(n=n.selectArrsAll)&&void 0!==n&&null!==(n=n[0])&&void 0!==n&&n.can_publish),onChange:function(e){Ee(e.target.value)},children:[(0,I.jsx)(C.ZP,{value:!0,children:"全部固定试题"}),(0,I.jsx)(C.ZP,{className:"ml20",value:!1,children:"随机抽取"})]})]}),!Se&&(0,I.jsxs)(w.Z,{style:{marginBottom:"10px"},children:[(0,I.jsx)("span",{style:{marginRight:65}}),(0,I.jsxs)("span",{children:["简单题数 ",(0,I.jsx)(k.Z,{value:Me[0],onChange:function(e){Me[0]=e,De(h()(Me))},min:0,disabled:!(null!==(r=R.actionTabs)&&void 0!==r&&null!==(r=r.selectArrsAll)&&void 0!==r&&null!==(r=r[0])&&void 0!==r&&r.can_publish),placeholder:"最大".concat(null===(o=R.actionTabs)||void 0===o||null===(o=o.selectArrsAll)||void 0===o||null===(o=o[0])||void 0===o||null===(o=o.difficult_count)||void 0===o?void 0:o[0]),max:null===(l=R.actionTabs)||void 0===l||null===(l=l.selectArrsAll)||void 0===l||null===(l=l[0])||void 0===l||null===(l=l.difficult_count)||void 0===l?void 0:l[0],style:{width:60}})]}),(0,I.jsxs)("span",{style:{margin:"0px 40px"},children:["适中题数 ",(0,I.jsx)(k.Z,{value:Me[1],onChange:function(e){Me[1]=e,De(h()(Me))},min:0,disabled:!(null!==(c=R.actionTabs)&&void 0!==c&&null!==(c=c.selectArrsAll)&&void 0!==c&&null!==(c=c[0])&&void 0!==c&&c.can_publish),max:null===(d=R.actionTabs)||void 0===d||null===(d=d.selectArrsAll)||void 0===d||null===(d=d[0])||void 0===d||null===(d=d.difficult_count)||void 0===d?void 0:d[1],placeholder:"最大".concat(null===(f=R.actionTabs)||void 0===f||null===(f=f.selectArrsAll)||void 0===f||null===(f=f[0])||void 0===f||null===(f=f.difficult_count)||void 0===f?void 0:f[1]),style:{width:60}})]}),(0,I.jsxs)("span",{children:["困难题数 ",(0,I.jsx)(k.Z,{value:Me[2],onChange:function(e){Me[2]=e,De(h()(Me))},min:0,disabled:!(null!==(m=R.actionTabs)&&void 0!==m&&null!==(m=m.selectArrsAll)&&void 0!==m&&null!==(m=m[0])&&void 0!==m&&m.can_publish),placeholder:"最大".concat(null===(N=R.actionTabs)||void 0===N||null===(N=N.selectArrsAll)||void 0===N||null===(N=N[0])||void 0===N||null===(N=N.difficult_count)||void 0===N?void 0:N[2]),max:null===(O=R.actionTabs)||void 0===O||null===(O=O.selectArrsAll)||void 0===O||null===(O=O[0])||void 0===O||null===(O=O.difficult_count)||void 0===O?void 0:O[2],style:{width:60}})]})]}),(0,I.jsxs)(w.Z,{className:"mt30",align:"middle",children:[(0,I.jsx)(A.Z,{children:(0,I.jsx)(y.Z.Item,{name:"publish_time",label:"发布时间",children:(0,I.jsx)(S.default,{style:{width:170,marginRight:"25px"},disabledDate:function(e){return(0,j.Q8)(e,z)},disabledTime:function(e){return(0,j.d0)(e)},placeholder:"请选择发布时间",showTime:{format:"HH:mm",defaultValue:L()((0,P.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})})}),(0,I.jsx)(A.Z,{className:"ml20",children:(0,I.jsx)(y.Z.Item,{name:"end_time",label:"截止时间",children:(0,I.jsx)(S.default,{style:{width:170},placeholder:"请选择截止时间",showTime:{format:"HH:mm",defaultValue:L()((0,P.U6)(),"HH:mm")},disabledDate:function(e){return(0,j.Q8)(e,z,U.getFieldValue("publish_time"))},disabledTime:function(e){return(0,j.d0)(e,U.getFieldValue("publish_time"))},format:"YYYY-MM-DD HH:mm",allowClear:!1})})})]}),2===R.actionTabs.type&&(0,I.jsxs)(w.Z,{style:{marginBottom:"10px"},children:[(0,I.jsx)("span",{className:"mr5",children:"发布设置:"}),(0,I.jsxs)(C.ZP.Group,{value:we,onChange:function(e){Ce(e.target.value),ye([])},children:[(0,I.jsx)(C.ZP,{value:!0,disabled:!R.actionTabs.manage_all_group,children:"统一发布"}),(0,I.jsx)(C.ZP,{className:"ml20",disabled:$.length<=0,value:!1,children:"分班发布"})]})]}),$.length<=0&&2===R.actionTabs.type&&(0,I.jsx)("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"},children:'课堂无分班,仅支持选择“统一发布"'})]}),(1===R.actionTabs.type||!we)&&$.length>0&&(0,I.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"},children:[(0,I.jsxs)("span",{style:{flex:1},children:[(0,I.jsx)(E.Z,{checked:ge.length===$.length,onChange:function(e){ge.length===$.length?ye([]):ye($.filter((function(e){return!e.is_published})))},children:"全选"})," "]}),(0,I.jsx)("span",{style:{width:16}}),(0,I.jsxs)("span",{style:{flex:1},children:["已选择",ge.length||0,"个分班"]})]}),(1===R.actionTabs.type||!we)&&$.length>0&&(0,I.jsx)(B.Z,{data:$,selectedRowKeys:ge,setSelectedRowKeys:ye})]})]})}))},54384:function(e,t,n){"use strict";n.d(t,{Q8:function(){return R},d0:function(){return W},w6:function(){return O}});var r=n(7557),i=n.n(r),o=n(41498),a=n.n(o),l=n(37205),s=n.n(l),c=n(82242),u=n.n(c),d=n(79800),h=n.n(d),f=n(59301),p=n(16326),m=n(82326),v=n(6767),g=n(62957),y=n(47889),x=n(77019),b=n(5269),w=n(25399),C=n(62673),k=n(99571),A=n(56656),S=n.n(A),E=n(56800),N=n(67310),L=n(89392),M=n(32985),D=n(5337),P=n(5030),Z=n(94189),B=n(13851),T=n(68045),j=n(22449),I=n(37556),F=n(37712);function O(e,t){for(var n=[],r=e;r<t;r++)n.push(r);return n}var R=function(e,t,n){var r=e<S()().startOf("day"),i=e>S()(t).endOf("day"),o=e<S()(n).startOf("day");return t?n?S()()<=S()(n)?o||i:r||i:e&&r||i:n&&S()()<=S()(n)?o:r},W=function(e,t){var n=parseInt(S()(e).format("HH")),r=parseInt(S()().format("HH")),i=parseInt(S()().format("mm"));if(!e)return{disabledHours:function(){return O(0,r)},disabledMinutes:function(){return O(0,i)}};if(t){var o=parseInt(S()(t).format("HH")),a=parseInt(S()(t).format("mm"));return S()(e).isSame(S()(t),"day")?{disabledHours:function(){return O(0,o)},disabledMinutes:function(){return n<=o?O(0,a):[]}}:void 0}return S()(e).isSame(S()(),"day")?{disabledHours:function(){return O(0,r)},disabledMinutes:function(){return S()(e).isSame(S()(),"hour")&&n<=r?O(0,i):[]}}:void 0},z=p.default.RangePicker,H=m.default.Option;t.ZP=(0,P.connect)((function(e){var t=e.shixunHomeworks,n=e.classroomList,r=e.loading,i=e.user;return{shixunHomeworks:t,classroomList:n,loading:r.effects,user:i}}))((function(e){var t,n,r,o,l,c,d,A,O,V,K=e.shixunHomeworks,Y=(e.loading,e.dispatch),U=e.classroomList,G=e.user,X=(0,P.useParams)(),Q=K.workSetting,J=(K.workList,K.shixunWorkList,K.headerInfo),q=K.changeData,_=(0,f.useState)(!1),$=h()(_,2),ee=$[0],te=$[1],ne=(0,f.useState)(!1),re=h()(ne,2),ie=re[0],oe=re[1],ae=(0,f.useState)([]),le=h()(ae,2),se=le[0],ce=le[1],ue=(0,f.useState)([]),de=h()(ue,2),he=de[0],fe=de[1],pe=(0,f.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,penalty_type:Z.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}),me=h()(pe,2),ve=me[0],ge=me[1],ye=(0,f.useState)({}),xe=h()(ye,2),be=xe[0],we=xe[1],Ce=(0,f.useState)({}),ke=h()(Ce,2),Ae=ke[0],Se=ke[1];(0,f.useEffect)((function(){return function(){ce([].concat())}}),[]),(0,f.useEffect)((function(){te(!(0,E.GJ)())}),[(0,E.GJ)()]);(0,f.useEffect)((function(){var e,t;if(null!=Q&&Q.course_id){Object.keys(ve).map((function(e){ve[e]=Q[e]})),ve.allow_late&&ve.unified_late||(ve.late_penalty=20,ve.penalty_type=Z.Q.Percent),ve.unified_setting||(ve.unified_late=!1,ve.unified_anonymous_comment=!1,ve.unified_anonymous_appeal=!1),se=JSON.parse(JSON.stringify(Q.group_settings.map((function(e){return u()(u()({},e),{},{group_name:[e.group_name]})})).filter((function(e){return null!==e.publish_time})))),he=JSON.parse(JSON.stringify(Q.allow_late_settings.map((function(e){return u()(u()({},e),{},{group_name:[e.group_name]})})).filter((function(e){return null!==e.late_time})))),ge(u()({},ve));var n=(0,M.QE)((null===(e=se)||void 0===e?void 0:e.length)>0?se:[]);ce(s()(n)),(null===(t=he)||void 0===t?void 0:t.length)<=0?fe([{penalty_type:Z.Q.Percent,late_penalty:20}]):fe(s()(he))}}),[Q]);var Ee=function(){var e=a()(i()().mark((function e(){var t,n,r,o,a,l;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(2!==(null==G||null===(t=G.userInfo)||void 0===t?void 0:t.user_status)){e.next=3;break}return(0,B.Rd)(),e.abrupt("return");case 3:if((o=JSON.parse(JSON.stringify(ve))).challenge_settings.filter((function(e){return!e.hide})),o.categoryId=X.categoryId,null===(n=o.challenge_settings)||void 0===n||!n.every((function(e){return!e.checked}))){e.next=9;break}return v.ZP.warning("关卡不能全部设置为可不做"),e.abrupt("return");case 9:if(console.log(se),ve.unified_setting){e.next=14;break}se=null===(r=se)||void 0===r?void 0:r.map((function(e){var t;if(!e.publish_time||!e.end_time)throw v.ZP.error("请把发布时间填写完整"),new String("请把发布时间填写完整");if(!e.group_name)throw v.ZP.error("请选择分班名称"),new String("请选择分班名称");return e.group_name="string"==typeof(null==e?void 0:e.group_name)?[null==e?void 0:e.group_name]:null==e?void 0:e.group_name,e.group_id=null===(t=Q.group_settings)||void 0===t?void 0:t.filter((function(t){var n;return null==e||null===(n=e.group_name)||void 0===n?void 0:n.includes(t.group_name)})).map((function(e){return e.group_id||e.id})).toString().split(","),e})),e.next=17;break;case 14:if(ve.publish_time&&ve.end_time){e.next=17;break}throw v.ZP.error("发布截止时间不能为空"),new String("发布截止时间不能为空");case 17:if(o.group_settings=se,!ve.allow_late){e.next=30;break}if(!ve.unified_late){e.next=28;break}if(!(null===ve.late_penalty||void 0===ve.late_penalty||ve.late_penalty<0||ve.late_penalty>100)){e.next=23;break}throw v.ZP.error("迟交扣分填写区间为0~100"),new String("迟交扣分填写区间为0~100");case 23:if(ve.late_time){e.next=26;break}throw v.ZP.error("请把截止时间填写完整"),new String("请把截止时间填写完整");case 26:e.next=30;break;case 28:he=null===(a=he)||void 0===a?void 0:a.map((function(e){var t;if(null===e.late_penalty||void 0===e.late_penalty||e.late_penalty<0||e.late_penalty>100)throw v.ZP.error("迟交扣分填写区间为0~100"),new String("迟交扣分填写区间为0~100");if(!e.late_time)throw v.ZP.error("请把截止时间填写完整"),new String("请把截止时间填写完整");if(!e.group_name)throw v.ZP.error("请选择分班名称"),new String("请选择分班名称");return e.group_name="string"==typeof(null==e?void 0:e.group_name)?[null==e?void 0:e.group_name]:null==e?void 0:e.group_name,e.group_id=null==e||null===(t=e.group_name)||void 0===t||null===(t=t.map((function(e){var t,n=null===(t=Q.group_settings)||void 0===t||null===(t=t.filter((function(t){return(null==t?void 0:t.group_name)===e})))||void 0===t?void 0:t[0];return null==n?void 0:n.group_id})))||void 0===t?void 0:t.toString().split(","),e})),o.allow_late_settings=he;case 30:return e.next=32,(0,I.Tr)({homework_common_ids:[parseInt(X.categoryId)],course_id:X.coursesId,type:"homework_common"});case 32:0===(null==(l=e.sent)?void 0:l.student_count)?Ne(o):(Se(o),we(l));case 34:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ne=function(e){var t;if(null!==e.total_score)if(null!=e&&e.work_efficiency&&null===e.eff_score)v.ZP.warning("效率分不能为空");else{var n=e.challenge_settings.reduce((function(e,t){return e+Number(t.challenge_score)}),0);if((null==n?void 0:n.toFixed(10))===(null===(t=e.total_score-e.eff_score)||void 0===t?void 0:t.toFixed(10))){var r={shixun_evaluation:e.shixun_evaluation,challenge_settings:e.challenge_settings},o=function(){var t,n=function(){var t=a()(i()().mark((function t(){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return oe(!0),t.next=3,(0,N.ZP)("/api/homework_commons/".concat(X.categoryId,"/publish_setting.json"),{method:"post",body:u()({},e)});case 3:0===t.sent.status&&(v.ZP.success("更新成功"),Y({type:"shixunHomeworks/getWorkSetting",payload:u()({},X)}),Y({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:u()({},X)})),oe(!1);case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();(0,L.isEqual)(q,r)||null!=J&&null!==(t=J.homework_status)&&void 0!==t&&t.includes("未发布")?n():g.Z.confirm({title:"更新成绩",content:"您改动了本次作业的关卡得分设置,这可能导致已完成作业的学生的成绩产生错误。点击“确定”按钮将保存最新设置并按最新设置更新全班成绩。",okText:"确认",cancelText:"取消",onOk:n})};null==Q||!Q.high_resources_consume||null!=Q&&Q.high_resources_consume_permission?o():Y({type:"classroomList/setActionTabs",payload:{key:"授权使用",id:X.coursesId,type:"shixun",type_id:X.categoryId,name:Q.homework_name,fn:function(){o()}}})}else v.ZP.warning("效率分加关卡任务总分必须等于总分值:".concat(e.total_score,"分"))}else v.ZP.warning("总分值不能为空")},Le=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"group_id";return t?t.find((function(t){return t[r]===e})):null==Q||null===(n=Q.group_settings)||void 0===n?void 0:n.find((function(t){return t.group_id[0]===e}))},Me=((null==Q?void 0:Q.allow_late)||(null==Q||Q.anonymous_comment),function(e){var t,n,r=Le(e,null==Q?void 0:Q.allow_late_settings,"id"),i=Le(e,null==Q?void 0:Q.anonymous_comment_settings),o=Le(e);return(null==Q?void 0:Q.allow_late)&&r&&S()(null==r?void 0:r.late_time)<=S()()||(null==Q?void 0:Q.anonymous_comment)&&i&&null!==(null==i?void 0:i.evaluation_start)||null!=(null===(t=(S()(null==o?void 0:o.end_time)<=S()()&&(null==Q||null===(n=Q.allow_late_settings)||void 0===n?void 0:n.filter((function(t){return t.group_id.includes(e)}))))[0])||void 0===t?void 0:t.late_time)}),De=(0,f.useMemo)((function(){return(null==Q?void 0:Q.allow_late)||(null==Q?void 0:Q.all_group_late)}),[Q,J]),Pe=null==Q?void 0:Q.anonymous_comment,Ze=function(e){if(!e)return!1;var t=Le(e,null==Q?void 0:Q.anonymous_comment_settings);return(null==Q?void 0:Q.anonymous_comment)&&t&&null!==(null==t?void 0:t.evaluation_start)},Be=function(e,t){var n,r,i,o,a,l;null!=e&&e.group_id||(e.group_id=(a=null==e?void 0:e.group_name,l=null==Q?void 0:Q.group_settings,null==a?void 0:a.map((function(e){var t;return null==l||null===(t=l.find((function(t){return t.value===e})))||void 0===t?void 0:t.id})))),Y({type:"classroomList/setActionTabs",payload:{key:"分班发布-发布规则拆分",data:e,index:t,rangePickerDisabled:!(null==e||null===(n=e.group_id)||void 0===n||null===(n=n[0])||void 0===n||!n.publish_time)&&(ee||!(S()()<=S()(null===(r=Le(null==e||null===(i=e.group_id)||void 0===i?void 0:i[0]))||void 0===r?void 0:r.publish_time))&&[!0,Me(null==e||null===(o=e.group_id)||void 0===o?void 0:o[0])]),disabledDate:null==Q?void 0:Q.course_end_date}})};return(0,F.jsxs)("section",{className:D.Z.form,children:[(0,F.jsxs)("div",{className:D.Z.title,children:["作业发布",(0,F.jsx)("span",{className:"c-grey-666 font14",style:{fontWeight:400},children:"(作业一旦发布后不可变更试题发布模式)"})]}),(0,F.jsxs)("div",{children:[(0,F.jsxs)("div",{style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"},children:[(0,F.jsxs)(y.ZP.Group,{disabled:ee||!(null!=J&&null!==(t=J.homework_status)&&void 0!==t&&t.includes("未发布"))||(0,E.Rm)()&&!(null!==(n=U.AssistantObject.practice)&&void 0!==n&&n.can_publish),value:ve.unified_setting,onChange:function(e){var t;null!=J&&null!==(t=J.homework_status)&&void 0!==t&&t.includes("未发布")?(ve.unified_setting=!ve.unified_setting,ve.unified_setting||(ve.unified_late=!1,fe([{late_penalty:5}])),ge(Object.assign({},ve)),!1!==ve.unified_setting||""!=se?ve.unified_setting&&(ce([]),fe([{late_penalty:5}])):ce(se.concat({}))):v.ZP.error("已发布,不能再修改统一设置")},children:[(0,F.jsx)(y.ZP,{value:!0,disabled:ee||!(null!=Q&&Q.manage_all_group),style:{marginRight:"50px"},children:"统一发布"}),(0,F.jsx)(y.ZP,{disabled:ee||!(null!=Q&&null!==(r=Q.group_settings)&&void 0!==r&&r.length),value:!1,children:"分班发布"})]}),0===(null==Q||null===(o=Q.group_settings)||void 0===o?void 0:o.length)&&(0,F.jsx)("div",{style:{color:"rgba(0, 0, 0, 0.25)",height:"22px"},children:"(本课堂无分班,仅支持选择“统一发布“)"})]}),ve.unified_setting&&(0,F.jsxs)("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",height:"50px",marginTop:"1px"},children:[(0,F.jsxs)(x.Z,{align:"middle",children:[(0,F.jsx)(b.Z,{style:{marginLeft:"23px"},children:"发布时间"}),(0,F.jsx)(b.Z,{className:"ml10",children:(0,F.jsx)(p.default,{size:"large",disabled:ee||!(null!=J&&null!==(l=J.homework_status)&&void 0!==l&&l.includes("未发布")||null!=J&&null!==(c=J.homework_status)&&void 0!==c&&c.includes("未开始"))||(0,E.Rm)()&&!(null!==(d=U.AssistantObject.practice)&&void 0!==d&&d.can_publish),style:{width:170},placeholder:"请选择发布时间",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:function(e){return R(e,null==Q?void 0:Q.course_end_date)},disabledTime:function(e){return W(e)},value:ve.publish_time?S()(ve.publish_time):"",onChange:function(e,t){ve.publish_time=t,""!=ve.end_time&&ve.end_time||!ve.unified_setting||(ve.end_time=S()(e).add(7,"days").format("YYYY-MM-DD HH:mm:ss")),ge(Object.assign({},ve))}})})]}),(0,F.jsxs)(x.Z,{align:"middle",className:"pl30",children:[(0,F.jsx)(b.Z,{children:"截止时间"}),(0,F.jsx)(b.Z,{className:"ml10",children:(0,F.jsx)(p.default,{size:"large",style:{width:170},allowClear:!1,placeholder:"请选择截止时间",showTime:{format:"HH:mm",defaultValue:S()((0,M.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:(null==Q?void 0:Q.allow_late)&&(null==Q?void 0:Q.homework_status.includes("已截止"))||ee||(null==Q?void 0:Q.allow_late)&&S()()>=S()(null==Q?void 0:Q.end_time)||(0,E.Rm)()&&!(null!==(A=U.AssistantObject.practice)&&void 0!==A&&A.can_publish),disabledDate:function(e){return R(e,null==Q?void 0:Q.course_end_date,ve.publish_time)},disabledTime:function(e){return W(e,ve.publish_time)},value:ve.end_time?S()(ve.end_time):"",onChange:function(e,t){ve.end_time=t,ge(Object.assign({},ve))}})})]})]}),!ve.unified_setting&&(null===(O=se)||void 0===O?void 0:O.length)>0&&(0,F.jsx)(x.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"},children:se&&se.map((function(e,t){var n,r,i,o,a,l,c,d;return(0,F.jsx)(b.Z,{span:24,children:(0,F.jsxs)(x.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:t==(null===(n=se)||void 0===n?void 0:n.length)-1?"0px":"10px"},children:[(0,F.jsxs)("div",{style:{minWidth:85,marginRight:"15px",textAlign:"right"},children:["发布规则",t+1]}),(0,F.jsx)(m.default,{disabled:ee||!(null!=J&&null!==(r=J.homework_status)&&void 0!==r&&r.includes("未发布")&&e.id||S()()<S()(null==e?void 0:e.publish_time))&&!(null==e||!e.publish_time)||(0,E.Rm)()&&!(null!==(i=U.AssistantObject.practice)&&void 0!==i&&i.can_publish),mode:"multiple",className:D.Z.multiple_select,style:{width:"250px"},value:e.group_name,placeholder:"请选择分班名称",onChange:function(n){var r;if(!(0,E.Rm)()||null!==(r=U.AssistantObject.practice)&&void 0!==r&&r.can_publish){se[t].group_name=n,se[t].group_id=e.group_id;var i=(0,L.flattenDeep)(se.map((function(e){return e.group_name}))),o=he.map((function(e){var t=(null==e?void 0:e.group_name)||[];return u()(u()({},e),{},{group_name:(0,L.remove)(t,(function(e){return i.includes(e)}))})}));fe(o),ce(se.slice())}else v.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能")},maxTagCount:4,maxTagPlaceholder:function(n){return(0,F.jsxs)("div",{style:{cursor:"pointer"},onClick:function(){return Be(e,t)},children:["+",null==n?void 0:n.length]})},children:Q.group_settings&&Q.group_settings.map((function(e){if(!se.map((function(e){return e.group_name})).flat().includes(e.group_name))return(0,F.jsx)(H,{value:e.group_name,children:e.group_name},e.id)}))}),(0,F.jsx)("div",{className:"ml20",children:(0,F.jsx)(z,{size:"large",ranges:{"此刻":[e.publish_time?S()(e.publish_time):S()(),S()()]},allowClear:!1,disabled:ee||!(S()()<=S()(null===(o=Le(null==e||null===(a=e.group_id)||void 0===a?void 0:a[0]))||void 0===o?void 0:o.publish_time))&&[!0,Me(null==e||null===(l=e.group_id)||void 0===l?void 0:l[0])],style:{width:605},placeholder:["发布时间(学生收到作业时间)","截止时间(学生“按时”提交作品时间截点)"],disabledDate:function(e){return R(e,null==Q?void 0:Q.course_end_date)},disabledTime:function(e){return W(e)},showTime:{showNow:!0,format:"HH:mm",defaultValue:[S()((0,M.U6)(),"HH:mm"),S()((0,M.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:[e.publish_time?S()(e.publish_time):void 0,e.end_time?S()(e.end_time):void 0],onChange:function(n,r){var i;!(0,E.Rm)()||null!==(i=U.AssistantObject.practice)&&void 0!==i&&i.can_publish?(se[t].publish_time=r[0],!e.end_time&&r[0]?se[t].end_time=S()(r[0]).add(7,"days"):se[t].end_time=r[1],ce(s()(se))):v.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能")},onCalendarChange:function(e,n,r){if(null!=n&&n[0]&&!n[1]){var i=S()(n[0]).add(7,"days");se[t].publish_time=n[0],se[t].end_time=i,ce(s()(se))}}})}),!ee&&(0,F.jsxs)("div",{style:{display:"flex",width:"50px"},children:[(null==e||null===(c=e.group_id)||void 0===c?void 0:c.length)>1&&(0,F.jsx)(w.Z,{title:"规则拆分",children:(0,F.jsx)("i",{className:"iconfont icon-chaifen ml10",style:{cursor:"pointer",color:"#3061d0"},onClick:function(){return Be(e,t)}})}),se.length<(null==Q||null===(d=Q.group_settings)||void 0===d?void 0:d.length)&&(0,F.jsx)("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:function(){var e;!(0,E.Rm)()||null!==(e=U.AssistantObject.practice)&&void 0!==e&&e.can_publish?ce(se.concat({})):v.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能")}}),((null==e?void 0:e.publish_time)&&S()()<S()(null==e?void 0:e.publish_time)||!(null!=e&&e.publish_time))&&0!=t&&(0,F.jsx)("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:function(){var e=(0,L.cloneDeep)(he);e.forEach((function(e,n){e.group_name&&(e.group_name=e.group_name.filter((function(e){var n;return!(null!==(n=se[t].group_name)&&void 0!==n&&n.includes(e))})))})),se=se.filter((function(e,n){return t!==n})),fe(e),ce(se.slice()),setTimeout((function(){return ce(se.slice())}),10)}})]})]})},t)}))})]}),(0,F.jsxs)(x.Z,{children:[(0,F.jsx)(b.Z,{children:(0,F.jsxs)("div",{className:D.Z.title,style:{marginTop:"30px"},children:["补交设置",(0,F.jsx)("span",{className:"c-grey-666 font14",style:{fontWeight:400},children:"(可对在作业发布时间范围内未完成作业的学生,延长时间进行补交)"})]})}),(0,F.jsx)(b.Z,{span:24,style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"},children:(0,F.jsx)(C.Z,{checked:ve.allow_late,disabled:ee||De,onChange:function(e){var t;!(0,E.Rm)()||null!==(t=U.AssistantObject.practice)&&void 0!==t&&t.can_late?(e.target.checked&&g.Z.warning({title:"开启补交提示",centered:!0,width:480,content:(0,F.jsxs)("div",{style:{padding:10,background:"#f5f6f9"},children:[(0,F.jsx)("div",{children:"1.开启补交后不可关闭,补交方式提交保存后不可修改;"}),(0,F.jsx)("div",{children:"2.补交截止时间必须晚于作业截止时间;"}),(0,F.jsx)("div",{children:"3.班级阶段进入“补交中”则不可变更作业截止时间。"})]})}),ve.allow_late=!ve.allow_late,""==he&&fe([{late_penalty:5}]),ge(Object.assign({},ve))):v.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能")},children:(0,F.jsx)("strong",{children:"开启补交"})})})]}),(null==ve?void 0:ve.allow_late)&&(0,F.jsxs)("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:"1px",color:"#666666"},children:[(0,F.jsxs)("div",{style:{display:"flex"},children:[(0,F.jsx)("div",{style:{width:"110px",textAlign:"right"},children:"补交方式"}),(0,F.jsxs)(y.ZP.Group,{style:{marginLeft:"20px"},disabled:ee||(null==Q?void 0:Q.anonymous_comment)||(null==Q?void 0:Q.allow_late),value:ve.unified_late,onChange:function(e){var t;!(0,E.Rm)()||null!==(t=U.AssistantObject.practice)&&void 0!==t&&t.can_late?(ve.unified_late=e.target.value,""!=he||e.target.value||fe([{penalty_type:Z.Q.Percent,late_penalty:20}]),ge(u()({},ve))):v.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能")},children:[(null==ve?void 0:ve.unified_setting)&&(0,F.jsx)(y.ZP,{value:!0,disabled:!(null!=Q&&Q.manage_all_group),style:{marginRight:"50px"},children:"统一补交"}),(null==Q||null===(V=Q.group_settings)||void 0===V?void 0:V.length)>0&&(0,F.jsx)(y.ZP,{value:!1,children:"分班补交"})]})]}),null!=ve&&ve.unified_late?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(x.Z,{align:"middle",style:{marginTop:"10px"},children:[(0,F.jsx)(b.Z,{style:{width:"110px",textAlign:"right"},children:"补交扣分"}),(0,F.jsx)(b.Z,{className:"ml20",children:(0,F.jsx)(Z.Z,{disabled:ee||Pe,value:{type:ve.penalty_type,inputValue:ve.late_penalty},onChange:function(e){var t;!(0,E.Rm)()||null!==(t=U.AssistantObject.practice)&&void 0!==t&&t.can_late?ge(u()(u()({},ve),{},{late_penalty:e.inputValue,penalty_type:e.type})):v.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}})}),(0,F.jsx)(b.Z,{flex:"1",className:"ml5",children:(0,F.jsx)("span",{className:"c-grey-c ml10",children:ve.penalty_type===Z.Q.Number?"(补交时按照学生总成绩扣分)":"(学生最终得分=补交前得分+补交阶段增加的分值*100%-百分比%)"})})]}),(0,F.jsxs)(x.Z,{align:"middle",style:{marginTop:"15px"},children:[(0,F.jsx)(b.Z,{style:{width:"110px",textAlign:"right"},children:"补交截止时间"}),(0,F.jsx)(b.Z,{className:"ml20",children:(0,F.jsx)(p.default,{size:"large",allowClear:!1,style:{width:170},placeholder:"请选择截止时间",showTime:{format:"HH:mm",defaultValue:S()((0,M.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:ee||Pe,value:ve.late_time?S()(ve.late_time):"",disabledDate:function(e){return R(e,null==Q?void 0:Q.course_end_date)},onChange:function(e,t){var n;!(0,E.Rm)()||null!==(n=U.AssistantObject.practice)&&void 0!==n&&n.can_late?(ve.late_time=t,ge(Object.assign({},ve))):v.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能")}})})]})]}):he.map((function(e,t){var n;return(0,F.jsx)(b.Z,{span:24,children:(0,F.jsxs)(x.Z,{style:{display:"flex",alignItems:"center",marginTop:"10px"},children:[(0,F.jsxs)("div",{style:{width:"85px",marginLeft:"27px",textAlign:"right"},children:["补交规则",t+1]}),(0,F.jsx)(m.default,{disabled:ee||!(null!=J&&null!==(n=J.homework_status)&&void 0!==n&&n.includes("未发布"))&&e.id||(null==Q?void 0:Q.anonymous_comment),mode:"multiple",className:D.Z.multiple_select,style:{width:"212px",marginLeft:"18px"},value:"string"==typeof e.group_name?[e.group_name]:e.group_name,placeholder:"请选择分班名称",onChange:function(n){var r;!(0,E.Rm)()||null!==(r=U.AssistantObject.practice)&&void 0!==r&&r.can_late?(he[t].group_name=n,he[t].group_id=e.group_id,fe(he.slice())):v.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能")},children:Q.group_settings&&Q.group_settings.map((function(e){var t=he.map((function(e){return e.group_name})).flat(),n=se.map((function(e){return e.group_name})).flat();if(null!=ve&&ve.unified_setting){if(!t.includes(e.group_name))return(0,F.jsx)(H,{value:e.group_name,children:e.group_name},e.id)}else if(n.includes(e.group_name)&&!t.includes(e.group_name))return(0,F.jsx)(H,{value:e.group_name,children:e.group_name},e.id)}))}),(0,F.jsx)("div",{className:"ml20 mr10",children:"补交扣分"}),(0,F.jsx)(Z.Z,{disabled:ee||Ze(e.id),value:{type:e.penalty_type,inputValue:e.late_penalty},onChange:function(e){var n;!(0,E.Rm)()||null!==(n=U.AssistantObject.practice)&&void 0!==n&&n.can_late?(he[t].late_penalty=e.inputValue,he[t].penalty_type=e.type,fe(s()(he))):v.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能")}}),(0,F.jsx)("div",{className:"ml20 mr10",children:"补交截止时间"}),(0,F.jsx)(p.default,{size:"large",disabled:ee||Ze(e.id),style:{width:225},showTime:{format:"HH:mm",defaultValue:S()((0,M.U6)(),"HH:mm")},placeholder:"请选择截止时间",disabledDate:function(e){return R(e,null==Q?void 0:Q.course_end_date)},format:"YYYY-MM-DD HH:mm",value:null!=e&&e.late_time?S()(e.late_time):void 0,onChange:function(e,n){var r;!(0,E.Rm)()||null!==(r=U.AssistantObject.practice)&&void 0!==r&&r.can_late?(he[t].late_time=n,fe(s()(he))):v.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能")}}),!ee&&(0,F.jsxs)("div",{style:{display:"flex",width:"50px"},children:[(0,F.jsx)("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:function(){var e;!(0,E.Rm)()||null!==(e=U.AssistantObject.practice)&&void 0!==e&&e.can_late?fe(he.concat({penalty_type:Z.Q.Percent,late_penalty:20})):v.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能")}}),t>0&&!e.id&&(0,F.jsx)("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:function(){var e;!(0,E.Rm)()||null!==(e=U.AssistantObject.practice)&&void 0!==e&&e.can_late?(he=he.filter((function(e,n){return t!==n})),fe(he.slice()),setTimeout((function(){return fe(he.slice())}),10)):v.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能")}})]})]})},t)}))]}),!ee&&(0,F.jsx)(F.Fragment,{children:(0,F.jsx)(k.ZP,{type:"primary",size:"large",loading:ie,style:{width:"138px",marginTop:"30px"},onClick:function(){return Ee()},children:"保存"})}),(0,F.jsx)(T.Z,{onConfirm:function(e,t){var n;(n=se).splice.apply(n,[e,0].concat(s()(t))),se.splice(e+t.length,1);var r=(0,M.QE)(s()(se));ce(s()(r))}}),(0,F.jsx)(j.Z,{resdata:be,type:"shixun",okloading:ie,oktext:0===(null==be?void 0:be.can_copy_num)?"确定":"一键复制并替换",onok:function(){var e=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return oe(!0),e.next=3,(0,N.ZP)("/api/courses/".concat(X.coursesId,"/batch_copy_shixuns.json"),{method:"post",body:{type:"homework_common",ids:[parseInt(X.categoryId)]}});case 3:n=e.sent,oe(!1),0===(null==n?void 0:n.status)&&Ne(Ae);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})]})}))},86430:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(7557),i=n.n(r),o=n(41498),a=n.n(o),l=n(79800),s=n.n(l),c=n(59301),u=n(37568),d=n(62673),h=n(77019),f="leftdiv___aBzsX",p="listClass___bxIEW",m="spantitle___v_Vc4",v="rightdiv___xWu4M",g=n(90059),y=n(37712),x=function(e){var t=e.data,n=(e.value,e.handleChangePage,e.className),r=void 0===n?"":n,o=e.setSelectedRowKeys,l=e.selectedRowKeys,x=(e.onChange,(0,c.useState)([])),b=s()(x,2),w=b[0],C=b[1],k=(0,c.useState)([]),A=s()(k,2),S=A[0],E=A[1],N=(0,c.useState)([]),L=s()(N,2),M=L[0],D=L[1],P=(0,c.useState)(1),Z=s()(P,2),B=(Z[0],Z[1],(0,c.useState)()),T=s()(B,2);T[0],T[1];return(0,c.useEffect)((function(){C(t),E([]),D([])}),[t]),(0,c.useEffect)((function(){o&&(E(l),D(l))}),[l]),(0,y.jsxs)("div",{className:"flex justify-between w-full ".concat(r),children:[(0,y.jsxs)("div",{className:f,children:[(0,y.jsx)(u.Z.Search,{size:"middle",style:{marginBottom:"10rem"},onChange:function(){var e=a()(i()().mark((function e(n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:C(t.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(n.target.value)})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),placeholder:"可输入班级名称查询"}),0===w.length&&(0,y.jsx)(g.Z,{styles:{margin:"70rem auto"},customText:"暂无分班"}),(0,y.jsx)("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"},children:(0,y.jsx)(d.Z.Group,{value:S.map((function(e){return"".concat(e.id)})),onChange:function(e){o(w.filter((function(t){return e.includes("".concat(t.id))})))},style:{marginTop:"10px",flexDirection:"column"},children:w.map((function(e,t){return(0,y.jsx)(h.Z,{style:{marginTop:"10rem",lineHeight:"24rem",display:"flex",width:"200rem"},children:(0,y.jsx)(d.Z,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:e.is_published,value:"".concat(e.id),children:(0,y.jsxs)("div",{className:p,children:[(0,y.jsx)("span",{className:m,style:{width:e.is_published?"108px":"170px"},children:e.name}),e.is_published&&(0,y.jsx)("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"},children:"已发布"})]})})},e.id)}))})})]}),(0,y.jsxs)("div",{className:v,children:[(0,y.jsx)(u.Z.Search,{onChange:function(e){D(S.filter((function(t){return t.name.includes(e.target.value)})))},size:"middle",placeholder:"可输入班级名称查询"}),0===M.length&&(0,y.jsx)(g.Z,{imgStyles:{width:"200rem"},styles:{margin:"70rem auto"},customText:"暂未选择分班"}),M.length>0&&(0,y.jsx)("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"},children:(0,y.jsx)("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0},children:M.map((function(e,t){return(0,y.jsxs)("div",{className:"flex justify-between item-center",style:{marginTop:"10rem"},children:[(0,y.jsx)("div",{className:"multi_ellipsis1 flex-1 minW-0",style:{margin:"0 5rem"},children:e.name}),(0,y.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",className:"current",style:{height:"16rem",marginRight:"17rem"},onClick:function(){o(S.filter((function(t){return"".concat(t.id)!="".concat(e.id)})))}})]},e.id)}))})})]})]})}},68045:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(37205),i=n.n(r),o=n(79800),a=n.n(o),l=n(59301),s=n(5030),c=n(16326),u=n(62957),d=n(37568),h=n(6767),f=n(77019),p=n(5269),m="title_tooltip___LLdrn",v="multiple_select___kDXUm",g="modal_con___ERnkW",y=n(56656),x=n.n(y),b=n(32985),w=n(90059),C=n(37712),k=c.default.RangePicker,A=(0,s.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.dispatch,n=e.classroomList,r=e.onConfirm,o=(0,l.useState)([]),s=a()(o,2),c=s[0],y=s[1],A=(0,l.useState)([]),S=a()(A,2),E=S[0],N=S[1],L=(0,l.useState)(""),M=a()(L,2),D=M[0],P=M[1],Z=(0,l.useState)([!1,!1]),B=a()(Z,2),T=B[0],j=B[1];(0,l.useEffect)((function(){if("分班发布-发布规则拆分"===n.actionTabs.key){var e,t,r,o;if(console.log(null===(e=n.actionTabs)||void 0===e?void 0:e.rangePickerDisabled),null!==(t=n.actionTabs)&&void 0!==t&&t.rangePickerDisabled)j(null===(o=n.actionTabs)||void 0===o?void 0:o.rangePickerDisabled);else j([!1,!1]);var a=n.actionTabs.data,l=null==a||null===(r=a.group_name)||void 0===r?void 0:r.map((function(e,t){var n;return{group_id:null==a?void 0:a.group_id[t],group_name:null==a?void 0:a.group_name[t],is_admin:null==a?void 0:a.is_admin,end_time:null==a?void 0:a.end_time,publish_time:Array.isArray(null==a?void 0:a.publish_time)?null==a||null===(n=a.publish_time)||void 0===n?void 0:n[0]:null==a?void 0:a.publish_time}}));l&&(y(i()(l)),N(i()(l)))}}),[n.actionTabs]);var I=function(){t({type:"classroomList/setActionTabs",payload:{}}),P("")};return(0,C.jsx)(u.Z,{width:980,title:(0,C.jsxs)("div",{style:{fontWeight:"bold",display:"flex"},children:[(0,C.jsxs)("div",{children:["分班发布-发布规则拆分",(0,C.jsx)("span",{className:m,children:"(当分班发布时间和截止时间不相同时候,班级自动拆分出去新起规则)"})]}),(0,C.jsx)(d.Z.Search,{allowClear:!0,placeholder:"请输入关键字进行搜索",style:{width:220,marginLeft:"60px"},value:D,onChange:function(e){P(e.target.value.trim()),function(e){if(e){var t=null==E?void 0:E.filter((function(t){var n;return null==t||null===(n=t.group_name)||void 0===n||null===(n=n.toLowerCase())||void 0===n?void 0:n.includes(null==e?void 0:e.toLowerCase())}));y(t)}else y(E)}(e.target.value.trim())}})]}),centered:!0,maskClosable:!1,open:"分班发布-发布规则拆分"===n.actionTabs.key,onCancel:function(){return I()},onOk:function(){var e;E.some((function(e){return!e.end_time||!e.publish_time}))?h.ZP.warning("请将列表数据中的发布时间和截止时间补充完整!"):(r(null===(e=n.actionTabs)||void 0===e?void 0:e.index,E),I())},children:(0,C.jsx)("div",{className:g,children:(0,C.jsx)(f.Z,{style:{display:"flex",color:"#666666",padding:"5px",marginTop:"1px"},children:(null==c?void 0:c.length)>0?c.map((function(e,t){return(0,C.jsx)(p.Z,{span:24,children:(0,C.jsxs)(f.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:t==(null==c?void 0:c.length)-1?"0px":"10px"},children:[(0,C.jsx)("div",{className:v,title:null==e?void 0:e.group_name,children:null==e?void 0:e.group_name}),(0,C.jsx)("div",{className:"ml20",children:(0,C.jsx)(k,{size:"large",allowClear:!1,disabled:T,style:{width:600},placeholder:["发布时间(学生收到作业时间)","截止时间(学生“按时”提交作品时间截点)"],disabledDate:function(e){var t;return(0,b.Q8)(e,null===(t=n.actionTabs)||void 0===t?void 0:t.disabledDate)},disabledTime:function(e){return(0,b.d0)(e)},showTime:{showNow:!0,format:"HH:mm",defaultValue:[x()((0,b.U6)(),"HH:mm"),x()((0,b.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:(null==e?void 0:e.publish_time)&&[x()(null==e?void 0:e.publish_time),null!=e&&e.end_time?x()(null==e?void 0:e.end_time):void 0],onChange:function(n,r){c[t].publish_time=r[0],c[t].end_time=r[1],y(i()(c)),E.forEach((function(t){t.group_id===(null==e?void 0:e.group_id)&&(t.publish_time=r[0],t.end_time=r[1])})),N(i()(E))},onCalendarChange:function(n,r,o){if(null!=r&&r[0]&&!r[1]){var a=x()(r[0]).add(7,"days");c[t].publish_time=r[0],c[t].end_time=a,y(i()(c)),E.forEach((function(t){t.group_id===(null==e?void 0:e.group_id)&&(t.publish_time=r[0],t.end_time=a)})),N(i()(E))}}})}),T[0]?(0,C.jsx)("i",{className:"iconfont icon-shanjian1 ml15",style:{color:"#E30000",opacity:"0.2",cursor:"not-allowed"}}):(0,C.jsx)("i",{className:"iconfont icon-shanjian1 ml15",style:{cursor:"pointer",color:"#E30000"},onClick:function(){c.splice(t,1),y(i()(c)),E.forEach((function(t,n){t.group_id===(null==e?void 0:e.group_id)&&E.splice(n,1)})),N(i()(E))}})]})},t)})):(0,C.jsx)(w.Z,{})})})})}))},99603:function(e,t,n){"use strict";n.d(t,{i:function(){return S},q:function(){return A}});var r=n(82242),i=n.n(r),o=n(7557),a=n.n(o),l=n(41498),s=n.n(l),c=n(79800),u=n.n(c),d=n(39647),h=n.n(d),f=n(59301),p={flex_box_center:"flex_box_center___yMUhy",flex_space_between:"flex_space_between___KNvG9",flex_box_vertical_center:"flex_box_vertical_center___yqWY9",flex_box_center_end:"flex_box_center_end___DJKuV",flex_box_column:"flex_box_column___NTtN1",singleSelect:"singleSelect___fU3O9",multipleSelect:"multipleSelect___LFXCB",plus:"plus___gdDhG"},m=n(92310),v=n.n(m),g=n(25399),y=n(82326),x=n(99571),b=n(67310),w=n(37712),C=["wrapClassName","wrapStyle","showLinkButton","tooltipTitle","loadGeneral","data"],k=["wrapClassName","wrapStyle","showLinkButton","courseDisciplineId","isPlusHeight","tooltipTitle","allowAcceptEmpty","data"],A=function(e){var t=e.wrapClassName,n=e.wrapStyle,r=void 0===n?{}:n,o=e.showLinkButton,l=void 0===o||o,c=e.tooltipTitle,d=void 0===c?"":c,m=e.loadGeneral,k=void 0!==m&&m,A=e.data,S=void 0===A?{}:A,E=h()(e,C),N="course_disciplines_list",L=(0,f.useState)((function(){var e=sessionStorage.getItem(N);return e?JSON.parse(e):[]})),M=u()(L,2),D=M[0],P=M[1],Z=(0,f.useState)(!1),B=u()(Z,2),T=B[0],j=B[1],I=(0,f.useState)(!0),F=u()(I,2),O=F[0],R=F[1];(0,f.useEffect)((function(){W()}),[]);var W=function(){var e=s()(a()().mark((function e(){var t,n,r,i,o;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return j(!0),e.next=3,(0,b.U2)("v2/course_disciplines.json",S);case 3:0===(t=e.sent).status&&(r=(null==t||null===(n=t.data)||void 0===n||null===(n=n.list)||void 0===n?void 0:n.map((function(e){return{value:e.id,label:e.name}})))||[],P(r),R(!1),sessionStorage.setItem(N,JSON.stringify(r)),O&&(o=null==t||null===(i=t.data)||void 0===i||null===(i=i.list)||void 0===i?void 0:i.find((function(e){return e.is_default})),k&&o&&E.onChange(null==o?void 0:o.id))),j(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,w.jsxs)("div",{className:v()(p.singleSelect,t),style:r,children:[(0,w.jsx)(g.Z,{title:d,children:(0,w.jsx)(y.default,i()({allowClear:!0,placeholder:"请选择课程",loading:T,options:D,onDropdownVisibleChange:function(e){e&&W()}},E))}),l&&(0,w.jsx)(x.ZP,{type:"link",target:"_blank",href:"/knowledgeHub",children:"管理课程"})]})},S=function(e){var t=e.wrapClassName,n=e.wrapStyle,r=void 0===n?{}:n,o=e.showLinkButton,l=void 0===o||o,c=e.courseDisciplineId,d=void 0===c?"":c,m=e.isPlusHeight,C=void 0!==m&&m,A=e.tooltipTitle,S=e.allowAcceptEmpty,E=void 0!==S&&S,N=e.data,L=void 0===N?{}:N,M=h()(e,k),D=(0,f.useState)([]),P=u()(D,2),Z=P[0],B=P[1],T=(0,f.useState)(!1),j=u()(T,2),I=j[0],F=j[1];(0,f.useEffect)((function(){O()}),[d]);var O=function(){var e=s()(a()().mark((function e(){var t,n,r;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(E||d){e.next=3;break}return B([]),e.abrupt("return");case 3:return F(!0),e.next=6,(0,b.U2)("v2/course_disciplines/".concat(d||"all",".json"),L);case 6:0===(t=e.sent).status&&(r=(null==t||null===(n=t.data)||void 0===n||null===(n=n.tag_disciplines)||void 0===n?void 0:n.map((function(e){return{value:e.id,label:e.name}})))||[]).length&&B(r),F(!1);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,w.jsxs)("div",{className:v()(p.multipleSelect,t),style:r,children:[(0,w.jsx)(g.Z,{title:A,children:(0,w.jsx)(y.default,i()(i()({allowClear:!0,mode:"multiple",optionFilterProp:"label",placeholder:"请选择知识点",loading:I,options:Z,maxTagCount:"responsive",onDropdownVisibleChange:function(e){e&&O()}},M),{},{className:v()(M.className,C&&p.plus)}))}),l&&(0,w.jsx)(x.ZP,{className:p.btn,type:"link",target:"_blank",href:"/knowledgeHub",children:"管理知识点"})]})}},90969:function(e,t,n){"use strict";n.d(t,{AL:function(){return k},Iy:function(){return f},Qv:function(){return v},ez:function(){return C},jb:function(){return p}});var r=n(79800),i=n.n(r),o=n(32834),a=n.n(o),l=n(11690),s=1;var c=[],u=["<ul>"],d=new(a().Renderer),h=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function f(){c.length=0,u=["<ul>"]}var p={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function m(e,t,n,r){if(t>=e.length||e[t].level<=n)return t;var i=e[t];r.push("<li><a href='#"+s+i.anchor+"'>"+i.text+"</a>");var o=[];return t=m(e,++t,i.level,o),o.length>0&&(r.push("<ul>"),o.forEach((function(e){r.push(e)})),r.push("</ul>")),r.push("</li>"),t=m(e,t,n,r)}function v(){return m(c,0,0,u),u.push("</ul>"),u.join("")}var g={heading:function(e){var t=h.exec(e);if(s+=1,t)return{type:"heading",raw:t[0],depth:t[1].length,text:t[2]}},fences:function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],r=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var r=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:i()(t,1)[0].length>=r.length?e.slice(r.length):e})).join("\n")}(n,t[3]||""),o=t[2]?t[2].trim():t[2];if(["latex","katex","math"].indexOf(o)>=0){var a=b(),l=r;r=a,w[a]={type:"block",expression:l}}return{type:"code",raw:n,lang:o,text:r}}}},y=/(?:\${2})([^\n`]+?)(?:\${2})/gi,x=0,b=function(){return"__special_katext_id_".concat(x++,"__")},w={};function C(){return w}function k(){x=0,w={}}function A(e){return e=e.replace(y,(function(e,t){var n=b();return w[n]={type:"inline",expression:t},n}))}var S=d.listitem;d.listitem=function(e){return S(A(e))};var E=d.paragraph;d.paragraph=function(e){return E(A(e))};var N=d.tablecell;d.tablecell=function(e,t){return N(A(e),t)},d.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];return r?["latex","katex","math"].indexOf(r)>=0?"<p class='editormd-tex'>".concat(e,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(t,'">').concat(n?e:(0,l.escape)(e,!0),"</code></pre>\n"):'<pre class="prettyprint linenums"><code>'+(n?e:(0,l.escape)(e,!0))+"</code></pre>"},d.heading=function(e,t,n){var r=this.options.headerPrefix+n.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return c.push({anchor:r,level:t,text:e}),"<h"+t+' id="'+s+r+'">'+e+"</h"+t+">"},a().setOptions({silent:!0,gfm:!0,pedantic:!1}),a().use({tokenizer:g,renderer:d}),t.ZP=a()},13851:function(e,t,n){"use strict";n.d(t,{rX:function(){return E},pW:function(){return N},gy:function(){return L},xY:function(){return S},O5:function(){return A},hs:function(){return b},tJ:function(){return y},o1:function(){return x},Rd:function(){return k}});var r=n(7557),i=n.n(r),o=n(41498),a=n.n(o),l=n(5030),s=n(62957),c=n(37285),u=n(6767),d=n(56800),h=n(32985),f=n(87169),p=n(25510),m=n.p+"static/newqrcode.a8740efb.png",v=n(32637),g=n(37712),y=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return!(!x(e)||!w(e,t,n,r,i))},x=function(e){return!!(0,d.bg)()||(e({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},b=function(e){var t,n,r=(0,l.getDvaApp)()._store.getState().user;!(0,d.bg)()||null!=r&&null!==(t=r.userInfo)&&void 0!==t&&null!==(t=t.course)&&void 0!==t&&t.course_public||null!=r&&null!==(n=r.userInfo)&&void 0!==n&&n.profile_completed||e({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:"/account/profile/edit",isCurrentPage:!0}})},w=function(e){var t,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=(0,l.getDvaApp)()._store.getState(),a=o.user;return!(null===(t=a.userInfo)||void 0===t||!t.profile_completed)||(n?e({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:r,isCurrentPage:i}}):s.Z.confirm({title:"提示",width:530,centered:!0,content:"您需要去完善您的个人资料,才能使用此功能",okText:"立即完善",cancelText:"稍后完善",onOk:function(){(0,h.xg)("/account/profile/edit"),C()}}),!1)},C=function(){s.Z.success({title:"提示",width:430,closable:!0,centered:!0,content:"已完善个人资料?请刷新页面",okText:"立即刷新",icon:null,onOk:function(){location.reload()}})},k=function(){s.Z.warning({title:"提示",icon:null,width:400,content:(0,g.jsxs)("div",{style:{textAlign:"center"},children:[(0,g.jsx)("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"},children:"老师您好,您的课堂试用期已结束,相关功能被限制。 如需继续使用,请尽快对接人工支持!"}),(0,g.jsx)("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:v}),(0,g.jsx)("div",{style:{color:"#666666",fontSize:14,marginTop:15},children:"添加客服人员微信,获得更多支持"})]})})},A=function(){var e;return!(null===(e=(0,l.getDvaApp)()._store.getState().user.userInfo)||void 0===e||!e.professional_certification)||(s.Z.confirm({title:"提示",centered:!0,content:(0,g.jsx)("div",{className:"tc",children:"您需要去完成您的职业认证,才能使用此功能"}),okText:"立即完善",cancelText:"稍后完善",onOk:function(){(0,h.xg)("/account/certification")}}),!1)},S=function(){return!!(0,d.V9)()||(s.Z.warning({centered:!0,width:530,title:"提示",content:(0,g.jsxs)("div",{className:"tc",style:{marginLeft:-38},children:[(0,g.jsx)("p",{children:"扫码加头歌助教,申请操作权限"}),(0,g.jsx)("img",{src:m,width:200})]}),okText:"我知道了",maskClosable:!0}),!1)},E=function(e,t){return!!e||(s.Z.confirm({centered:!0,zIndex:1e4,width:530,title:"提示",content:(0,g.jsxs)("div",{children:[(0,g.jsx)("p",{children:t||"该实践资源需授权后才可使用。 您可以在QQ服务群向管理员申请获得继续操作的权限。"}),(0,g.jsxs)("div",{style:{marginLeft:"110px"},children:[(0,g.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UIIBgBAgeR0AwAAjEJgAQAZCCwAIAOBBQBkILAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMxfhbOedOt7a/nKUmcrbT2aIUxned8Xaa/DhMbsi2dppk8nO3ovG27XnbemTbDmE4wgIAQhBYAEAGAgsAyEBgAQAZCCwAIAOBBQBk5DGsIaedO3dWVFRY3cpVq1atXLnS4JuNj3WwgvF7tCbHZFhxe9u2dZp8Z04uHGlhxbAbKz44F/6KB2I2sCoqKqqqqqzuajgctnoTACMWoV8xTgkBgAwEFgCQgcACADIQWABABgILAMgwe5cwJ5O3jVtaWgp+z8KKW+bOPvjuwq1bMaTD+OLG2+ks2/aSSS78FTMcYQEAIQgsACADgQUAZCCwAIAMBBYAkIHAAgAyLBnW4CxnS/fb9k4r7nk7W8LBClZUQbBiYIEVI2ycnXjFIjjCAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQU4bAGK25Fu/Besm03wm27i2/bEATbNmTbN6QoRzDkhCMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5F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FgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",width:200}),(0,g.jsxs)("div",{style:{marginLeft:"35px"},children:["群号:","714336072"]})]})]}),okText:"立即联系",cancelText:"取消",onOk:function(){(0,h.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},N=function(e){s.Z.info({title:"联系平台运营",icon:null,width:615,centered:!0,content:(0,g.jsxs)("div",{children:[(0,g.jsxs)("div",{children:[(0,g.jsx)("p",{style:{color:"#191919",fontWeight:400,fontSize:14},children:"“保存实验临时数据”功能为付费功能,请联系平台运营进行开通。"}),(0,g.jsx)(c.Z,{}),(0,g.jsxs)("p",{style:{color:"#666666",fontSize:12},children:[" ",(0,g.jsx)("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8},children:"1"})," 因平台的实验数据储存容量和成本消耗较大,实践项目默认保存实验环境中临时数据 ",(0,g.jsx)("a",{children:e}),"天。"]}),(0,g.jsxs)("p",{style:{color:"#666666",fontSize:12},children:[" ",(0,g.jsx)("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8},children:"2"}),"若您需要个性化的数据保存周期服务,我们可以提供相关技术支持,并根据您的需求收取定制费用。"]})]}),(0,g.jsx)("div",{style:{textAlign:"center",marginTop:30},children:(0,g.jsx)("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:p,alt:"二维码",width:160})})]})})},L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=(0,l.getDvaApp)()._store.getState(),r=n.shixunsDetail.detail;if(2===(null==r?void 0:r.public)||1===(null==r?void 0:r.public)||3===(null==r?void 0:r.shixun_status)){var o="";return 2===(null==r?void 0:r.public)&&(o="已公开"),1===(null==r?void 0:r.public)&&(o="待审核"),3===(null==r?void 0:r.shixun_status)&&(o="已关闭"),s.Z.info({centered:!0,icon:(0,g.jsx)(f.Z,{style:{color:"#faad14"}}),width:460,title:"提示",content:(0,g.jsxs)("div",{className:"tc",style:{marginLeft:-38},children:[(0,g.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"},children:[(0,g.jsxs)("span",{children:["该实践项目的状态为",o,"",t,"。"]}),(0,g.jsx)("p",{children:"如有需要,请联系平台管理员进行技术支持。"})]}),(0,g.jsx)("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:p,alt:"二维码",width:160})]}),okText:"我知道了"}),!0}return 2===(null==r?void 0:r.shixun_status)&&(s.Z.confirm({centered:!0,icon:(0,g.jsx)(f.Z,{}),title:"提示",content:(0,g.jsxs)("div",{children:[(0,g.jsxs)("span",{children:["该实践项目已发布,",t,"。"]}),(0,g.jsx)("br",{}),(0,g.jsx)("span",{children:"如有需要,您可以撤销发布后,再进行操作。"})]}),okText:"撤销发布",cancelText:"取消",onOk:function(){var t;s.Z.confirm({width:440,centered:!0,icon:(0,g.jsx)(f.Z,{style:{color:"#faad14"}}),title:"提示",content:"撤销发布后,学员将无法进行练习。是否确认撤销发布?",okText:"确定撤销发布",cancelText:"取消",onOk:(t=a()(i()().mark((function t(){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e({type:"shixunsDetail/cancelRelease",payload:{id:null==r?void 0:r.identifier}});case 2:401!==t.sent.status&&(u.ZP.success("撤销发布成功。实训回到未发布的状态。"),e({type:"shixunsDetail/getShixunsDetail",payload:{id:null==r?void 0:r.identifier}}),e({type:"practiceSetting/getCommonData",payload:{id:null==r?void 0:r.identifier}}));case 4:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)})})}}),!0)}},60046:function(e,t,n){"use strict";n(59301);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;t.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},28774:function(e,t,n){"use strict";n(59301);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;t.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},78318:function(){},44084:function(){},32313:function(e,t){"use strict";t.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},5337:function(e,t){"use strict";t.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",disabled_link:"disabled_link___usmze"}},99498:function(e,t,n){!function(e){function t(e){e.state.placeholder&&(e.state.placeholder.parentNode.removeChild(e.state.placeholder),e.state.placeholder=null)}function n(e){t(e);var n=e.state.placeholder=document.createElement("pre");n.style.cssText="height: 0; overflow: visible",n.style.direction=e.getOption("direction"),n.className="CodeMirror-placeholder CodeMirror-line-like";var r=e.getOption("placeholder");"string"==typeof r&&(r=document.createTextNode(r)),n.appendChild(r),e.display.lineSpace.insertBefore(n,e.display.lineSpace.firstChild)}function r(e){setTimeout((function(){var r=!1,i=e.getInputField();"TEXTAREA"==i.nodeName?r=!i.value:1==e.lineCount()&&(r=!/[^\u200b]/.test(i.querySelector(".CodeMirror-line").textContent)),r?n(e):t(e)}),20)}function i(e){a(e)&&n(e)}function o(e){var r=e.getWrapperElement(),i=a(e);r.className=r.className.replace(" CodeMirror-empty","")+(i?" CodeMirror-empty":""),i?n(e):t(e)}function a(e){return 1===e.lineCount()&&""===e.getLine(0)}e.defineOption("placeholder","",(function(n,a,l){var s=l&&l!=e.Init;if(a&&!s)n.on("blur",i),n.on("change",o),n.on("swapDoc",o),e.on(n.getInputField(),"compositionupdate",n.state.placeholderCompose=function(){r(n)}),o(n);else if(!a&&s){n.off("blur",i),n.off("change",o),n.off("swapDoc",o),e.off(n.getInputField(),"compositionupdate",n.state.placeholderCompose),t(n);var c=n.getWrapperElement();c.className=c.className.replace(" CodeMirror-empty","")}a&&!n.hasFocus()&&i(n)}))}(n(89780))},25717:function(e,t,n){!function(e){var t={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},n=e.Pos;function r(e,n){return"pairs"==n&&"string"==typeof e?e:"object"==typeof e&&null!=e[n]?e[n]:t[n]}e.defineOption("autoCloseBrackets",!1,(function(t,n,a){a&&a!=e.Init&&(t.removeKeyMap(i),t.state.closeBrackets=null),n&&(o(r(n,"pairs")),t.state.closeBrackets=n,t.addKeyMap(i))}));var i={Backspace:s,Enter:c};function o(e){for(var t=0;t<e.length;t++){var n=e.charAt(t),r="'"+n+"'";i[r]||(i[r]=a(n))}}function a(e){return function(t){return d(t,e)}}function l(e){var t=e.state.closeBrackets;return!t||t.override?t:e.getModeAt(e.getCursor()).closeBrackets||t}function s(t){var i=l(t);if(!i||t.getOption("disableInput"))return e.Pass;for(var o=r(i,"pairs"),a=t.listSelections(),s=0;s<a.length;s++){if(!a[s].empty())return e.Pass;var c=h(t,a[s].head);if(!c||o.indexOf(c)%2!=0)return e.Pass}for(s=a.length-1;s>=0;s--){var u=a[s].head;t.replaceRange("",n(u.line,u.ch-1),n(u.line,u.ch+1),"+delete")}}function c(t){var n=l(t),i=n&&r(n,"explode");if(!i||t.getOption("disableInput"))return e.Pass;for(var o=t.listSelections(),a=0;a<o.length;a++){if(!o[a].empty())return e.Pass;var s=h(t,o[a].head);if(!s||i.indexOf(s)%2!=0)return e.Pass}t.operation((function(){var e=t.lineSeparator()||"\n";t.replaceSelection(e+e,null),t.execCommand("goCharLeft"),o=t.listSelections();for(var n=0;n<o.length;n++){var r=o[n].head.line;t.indentLine(r,null,!0),t.indentLine(r+1,null,!0)}}))}function u(t){var r=e.cmpPos(t.anchor,t.head)>0;return{anchor:new n(t.anchor.line,t.anchor.ch+(r?-1:1)),head:new n(t.head.line,t.head.ch+(r?1:-1))}}function d(t,i){var o=l(t);if(!o||t.getOption("disableInput"))return e.Pass;var a=r(o,"pairs"),s=a.indexOf(i);if(-1==s)return e.Pass;for(var c,d=r(o,"closeBefore"),h=r(o,"triples"),p=a.charAt(s+1)==i,m=t.listSelections(),v=s%2==0,g=0;g<m.length;g++){var y,x=m[g],b=x.head,w=t.getRange(b,n(b.line,b.ch+1));if(v&&!x.empty())y="surround";else if(!p&&v||w!=i)if(p&&b.ch>1&&h.indexOf(i)>=0&&t.getRange(n(b.line,b.ch-2),b)==i+i){if(b.ch>2&&/\bstring/.test(t.getTokenTypeAt(n(b.line,b.ch-2))))return e.Pass;y="addFour"}else if(p){var C=0==b.ch?" ":t.getRange(n(b.line,b.ch-1),b);if(e.isWordChar(w)||C==i||e.isWordChar(C))return e.Pass;y="both"}else{if(!v||!(0===w.length||/\s/.test(w)||d.indexOf(w)>-1))return e.Pass;y="both"}else y=p&&f(t,b)?"both":h.indexOf(i)>=0&&t.getRange(b,n(b.line,b.ch+3))==i+i+i?"skipThree":"skip";if(c){if(c!=y)return e.Pass}else c=y}var k=s%2?a.charAt(s-1):i,A=s%2?i:a.charAt(s+1);t.operation((function(){if("skip"==c)t.execCommand("goCharRight");else if("skipThree"==c)for(var e=0;e<3;e++)t.execCommand("goCharRight");else if("surround"==c){var n=t.getSelections();for(e=0;e<n.length;e++)n[e]=k+n[e]+A;for(t.replaceSelections(n,"around"),n=t.listSelections().slice(),e=0;e<n.length;e++)n[e]=u(n[e]);t.setSelections(n)}else"both"==c?(t.replaceSelection(k+A,null),t.triggerElectric(k+A),t.execCommand("goCharLeft")):"addFour"==c&&(t.replaceSelection(k+k+k+k,"before"),t.execCommand("goCharRight"))}))}function h(e,t){var r=e.getRange(n(t.line,t.ch-1),n(t.line,t.ch+1));return 2==r.length?r:null}function f(e,t){var r=e.getTokenAt(n(t.line,t.ch+1));return/\bstring/.test(r.type)&&r.start==t.ch&&(0==t.ch||!/\bstring/.test(e.getTokenTypeAt(t)))}o(t.pairs+"`")}(n(89780))},6313:function(e,t,n){!function(e){e.defineOption("autoCloseTags",!1,(function(t,n,i){if(i!=e.Init&&i&&t.removeKeyMap("autoCloseTags"),n){var a={name:"autoCloseTags"};"object"==typeof n&&!1===n.whenClosing||(a["'/'"]=function(e){return o(e)}),"object"==typeof n&&!1===n.whenOpening||(a["'>'"]=function(e){return r(e)}),t.addKeyMap(a)}}));var t=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],n=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function r(r){if(r.getOption("disableInput"))return e.Pass;for(var i=r.listSelections(),o=[],s=r.getOption("autoCloseTags"),c=0;c<i.length;c++){if(!i[c].empty())return e.Pass;var u=i[c].head,d=r.getTokenAt(u),h=e.innerMode(r.getMode(),d.state),f=h.state,p=h.mode.xmlCurrentTag&&h.mode.xmlCurrentTag(f),m=p&&p.name;if(!m)return e.Pass;var v="html"==h.mode.configuration,g="object"==typeof s&&s.dontCloseTags||v&&t,y="object"==typeof s&&s.indentTags||v&&n;d.end>u.ch&&(m=m.slice(0,m.length-d.end+u.ch));var x=m.toLowerCase();if(!m||"string"==d.type&&(d.end!=u.ch||!/[\"\']/.test(d.string.charAt(d.string.length-1))||1==d.string.length)||"tag"==d.type&&p.close||d.string.indexOf("/")==u.ch-d.start-1||g&&a(g,x)>-1||l(r,h.mode.xmlCurrentContext&&h.mode.xmlCurrentContext(f)||[],m,u,!0))return e.Pass;var b="object"==typeof s&&s.emptyTags;if(b&&a(b,m)>-1)o[c]={text:"/>",newPos:e.Pos(u.line,u.ch+2)};else{var w=y&&a(y,x)>-1;o[c]={indent:w,text:">"+(w?"\n\n":"")+"</"+m+">",newPos:w?e.Pos(u.line+1,0):e.Pos(u.line,u.ch+1)}}}var C="object"==typeof s&&s.dontIndentOnAutoClose;for(c=i.length-1;c>=0;c--){var k=o[c];r.replaceRange(k.text,i[c].head,i[c].anchor,"+insert");var A=r.listSelections().slice(0);A[c]={head:k.newPos,anchor:k.newPos},r.setSelections(A),!C&&k.indent&&(r.indentLine(k.newPos.line,null,!0),r.indentLine(k.newPos.line+1,null,!0))}}function i(t,n){for(var r=t.listSelections(),i=[],o=n?"/":"</",a=t.getOption("autoCloseTags"),s="object"==typeof a&&a.dontIndentOnSlash,c=0;c<r.length;c++){if(!r[c].empty())return e.Pass;var u=r[c].head,d=t.getTokenAt(u),h=e.innerMode(t.getMode(),d.state),f=h.state;if(n&&("string"==d.type||"<"!=d.string.charAt(0)||d.start!=u.ch-1))return e.Pass;var p,m="xml"!=h.mode.name&&"htmlmixed"==t.getMode().name;if(m&&"javascript"==h.mode.name)p=o+"script";else if(m&&"css"==h.mode.name)p=o+"style";else{var v=h.mode.xmlCurrentContext&&h.mode.xmlCurrentContext(f);if(!v||v.length&&l(t,v,v[v.length-1],u))return e.Pass;p=o+v[v.length-1]}">"!=t.getLine(u.line).charAt(d.end)&&(p+=">"),i[c]=p}if(t.replaceSelections(i),r=t.listSelections(),!s)for(c=0;c<r.length;c++)(c==r.length-1||r[c].head.line<r[c+1].head.line)&&t.indentLine(r[c].head.line)}function o(t){return t.getOption("disableInput")?e.Pass:i(t,!0)}function a(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;++n)if(e[n]==t)return n;return-1}function l(t,n,r,i,o){if(!e.scanForClosingTag)return!1;var a=Math.min(t.lastLine()+1,i.line+500),l=e.scanForClosingTag(t,i,null,a);if(!l||l.tag!=r)return!1;for(var s=o?1:0,c=n.length-1;c>=0&&n[c]==r;c--)++s;for(i=l.to,c=1;c<s;c++){var u=e.scanForClosingTag(t,i,null,a);if(!u||u.tag!=r)return!1;i=u.to}return!0}e.commands.closeTag=function(e){return i(e)}}(n(89780),n(32855))},32855:function(e,t,n){!function(e){"use strict";var t=e.Pos;function n(e,t){return e.line-t.line||e.ch-t.ch}var r="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i=new RegExp("<(/?)(["+r+"]["+r+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");function o(e,t,n,r){this.line=t,this.ch=n,this.cm=e,this.text=e.getLine(t),this.min=r?Math.max(r.from,e.firstLine()):e.firstLine(),this.max=r?Math.min(r.to-1,e.lastLine()):e.lastLine()}function a(e,n){var r=e.cm.getTokenTypeAt(t(e.line,n));return r&&/\btag\b/.test(r)}function l(e){if(!(e.line>=e.max))return e.ch=0,e.text=e.cm.getLine(++e.line),!0}function s(e){if(!(e.line<=e.min))return e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0}function c(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(l(e))continue;return}if(a(e,t+1)){var n=e.text.lastIndexOf("/",t),r=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,r?"selfClose":"regular"}e.ch=t+1}}function u(e){for(;;){var t=e.ch?e.text.lastIndexOf("<",e.ch-1):-1;if(-1==t){if(s(e))continue;return}if(a(e,t+1)){i.lastIndex=t,e.ch=t;var n=i.exec(e.text);if(n&&n.index==t)return n}else e.ch=t}}function d(e){for(;;){i.lastIndex=e.ch;var t=i.exec(e.text);if(!t){if(l(e))continue;return}if(a(e,t.index+1))return e.ch=t.index+t[0].length,t;e.ch=t.index+1}}function h(e){for(;;){var t=e.ch?e.text.lastIndexOf(">",e.ch-1):-1;if(-1==t){if(s(e))continue;return}if(a(e,t+1)){var n=e.text.lastIndexOf("/",t),r=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,r?"selfClose":"regular"}e.ch=t}}function f(e,n){for(var r=[];;){var i,o=d(e),a=e.line,l=e.ch-(o?o[0].length:0);if(!o||!(i=c(e)))return;if("selfClose"!=i)if(o[1]){for(var s=r.length-1;s>=0;--s)if(r[s]==o[2]){r.length=s;break}if(s<0&&(!n||n==o[2]))return{tag:o[2],from:t(a,l),to:t(e.line,e.ch)}}else r.push(o[2])}}function p(e,n){for(var r=[];;){var i=h(e);if(!i)return;if("selfClose"!=i){var o=e.line,a=e.ch,l=u(e);if(!l)return;if(l[1])r.push(l[2]);else{for(var s=r.length-1;s>=0;--s)if(r[s]==l[2]){r.length=s;break}if(s<0&&(!n||n==l[2]))return{tag:l[2],from:t(e.line,e.ch),to:t(o,a)}}}else u(e)}}e.registerHelper("fold","xml",(function(e,r){for(var i=new o(e,r.line,0);;){var a=d(i);if(!a||i.line!=r.line)return;var l=c(i);if(!l)return;if(!a[1]&&"selfClose"!=l){var s=t(i.line,i.ch),u=f(i,a[2]);return u&&n(u.from,s)>0?{from:s,to:u.from}:null}}})),e.findMatchingTag=function(e,r,i){var a=new o(e,r.line,r.ch,i);if(-1!=a.text.indexOf(">")||-1!=a.text.indexOf("<")){var l=c(a),s=l&&t(a.line,a.ch),d=l&&u(a);if(l&&d&&!(n(a,r)>0)){var h={from:t(a.line,a.ch),to:s,tag:d[2]};return"selfClose"==l?{open:h,close:null,at:"open"}:d[1]?{open:p(a,d[2]),close:h,at:"close"}:{open:h,close:f(a=new o(e,s.line,s.ch,i),d[2]),at:"open"}}}},e.findEnclosingTag=function(e,t,n,r){for(var i=new o(e,t.line,t.ch,n);;){var a=p(i,r);if(!a)break;var l=f(new o(e,t.line,t.ch,n),a.tag);if(l)return{open:a,close:l}}},e.scanForClosingTag=function(e,t,n,r){return f(new o(e,t.line,t.ch,r?{from:0,to:r}:null),n)}}(n(89780))},89780:function(e){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,l=a&&(r?document.documentMode||6:+(o||i)[1]),s=!o&&/WebKit\//.test(e),c=s&&/Qt\/\d+\.\d+/.test(e),u=!o&&/Chrome\//.test(e),d=/Opera\//.test(e),h=/Apple Computer/.test(navigator.vendor),f=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),p=/PhantomJS/.test(e),m=!o&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),v=/Android/.test(e),g=m||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=m||/Mac/.test(t),x=/\bCrOS\b/.test(e),b=/win/i.test(t),w=d&&e.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(d=!1,s=!0);var C=y&&(c||d&&(null==w||w<12.11)),k=n||a&&l>=9;function A(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var S,E=function(e,t){var n=e.className,r=A(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function N(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function L(e,t){return N(e).appendChild(t)}function M(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function D(e,t,n,r){var i=M(e,t,n,r);return i.setAttribute("role","presentation"),i}function P(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function Z(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function B(e,t){var n=e.className;A(t).test(n)||(e.className+=(n?" ":"")+t)}function T(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!A(n[r]).test(t)&&(t+=" "+n[r]);return t}S=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var j=function(e){e.select()};function I(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function F(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function O(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var l=e.indexOf("\t",o);if(l<0||l>=t)return a+(t-o);a+=l-o,a+=n-a%n,o=l+1}}m?j=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(j=function(e){try{e.select()}catch(e){}});var R=function(){this.id=null,this.f=null,this.time=0,this.handler=I(this.onTimeout,this)};function W(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}R.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},R.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var z=50,H={toString:function(){return"CodeMirror.Pass"}},V={scroll:!1},K={origin:"*mouse"},Y={origin:"+move"};function U(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var G=[""];function X(e){for(;G.length<=e;)G.push(Q(G)+" ");return G[e]}function Q(e){return e[e.length-1]}function J(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function q(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}function _(){}function $(e,t){var n;return Object.create?n=Object.create(e):(_.prototype=e,n=new _),t&&F(t,n),n}var ee=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function te(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function ne(e,t){return t?!!(t.source.indexOf("\\w")>-1&&te(e))||t.test(e):te(e)}function re(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ie=/[\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 oe(e){return e.charCodeAt(0)>=768&&ie.test(e)}function ae(e,t,n){for(;(n<0?t>0:t<e.length)&&oe(e.charAt(t));)t+=n;return t}function le(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function se(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var ce=null;function ue(e,t,n){var r;ce=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:ce=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ce=i)}return null!=r?r:ce}var de=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,l=/[1n]/;function s(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var c="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var u=e.length,d=[],h=0;h<u;++h)d.push(n(e.charCodeAt(h)));for(var f=0,p=c;f<u;++f){var m=d[f];"m"==m?d[f]=p:p=m}for(var v=0,g=c;v<u;++v){var y=d[v];"1"==y&&"r"==g?d[v]="n":o.test(y)&&(g=y,"r"==y&&(d[v]="R"))}for(var x=1,b=d[0];x<u-1;++x){var w=d[x];"+"==w&&"1"==b&&"1"==d[x+1]?d[x]="1":","!=w||b!=d[x+1]||"1"!=b&&"n"!=b||(d[x]=b),b=w}for(var C=0;C<u;++C){var k=d[C];if(","==k)d[C]="N";else if("%"==k){var A=void 0;for(A=C+1;A<u&&"%"==d[A];++A);for(var S=C&&"!"==d[C-1]||A<u&&"1"==d[A]?"1":"N",E=C;E<A;++E)d[E]=S;C=A-1}}for(var N=0,L=c;N<u;++N){var M=d[N];"L"==L&&"1"==M?d[N]="L":o.test(M)&&(L=M)}for(var D=0;D<u;++D)if(i.test(d[D])){var P=void 0;for(P=D+1;P<u&&i.test(d[P]);++P);for(var Z="L"==(D?d[D-1]:c),B=Z==("L"==(P<u?d[P]:c))?Z?"L":"R":c,T=D;T<P;++T)d[T]=B;D=P-1}for(var j,I=[],F=0;F<u;)if(a.test(d[F])){var O=F;for(++F;F<u&&a.test(d[F]);++F);I.push(new s(0,O,F))}else{var R=F,W=I.length,z="rtl"==t?1:0;for(++F;F<u&&"L"!=d[F];++F);for(var H=R;H<F;)if(l.test(d[H])){R<H&&(I.splice(W,0,new s(1,R,H)),W+=z);var V=H;for(++H;H<F&&l.test(d[H]);++H);I.splice(W,0,new s(2,V,H)),W+=z,R=H}else++H;R<F&&I.splice(W,0,new s(1,R,F))}return"ltr"==t&&(1==I[0].level&&(j=e.match(/^\s+/))&&(I[0].from=j[0].length,I.unshift(new s(0,0,j[0].length))),1==Q(I).level&&(j=e.match(/\s+$/))&&(Q(I).to-=j[0].length,I.push(new s(0,u-j[0].length,u)))),"rtl"==t?I.reverse():I}}();function he(e,t){var n=e.order;return null==n&&(n=e.order=de(e.text,t)),n}var fe=[],pe=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||fe).concat(n)}};function me(e,t){return e._handlers&&e._handlers[t]||fe}function ve(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=W(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function ge(e,t){var n=me(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function ye(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),ge(e,n||t.type,e,t),Ae(t)||t.codemirrorIgnore}function xe(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==W(n,t[r])&&n.push(t[r])}function be(e,t){return me(e,t).length>0}function we(e){e.prototype.on=function(e,t){pe(this,e,t)},e.prototype.off=function(e,t){ve(this,e,t)}}function Ce(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ke(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ae(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Se(e){Ce(e),ke(e)}function Ee(e){return e.target||e.srcElement}function Ne(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var Le,Me,De=function(){if(a&&l<9)return!1;var e=M("div");return"draggable"in e||"dragDrop"in e}();function Pe(e){if(null==Le){var t=M("span","");L(e,M("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Le=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&l<8))}var n=Le?M("span",""):M("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ze(e){if(null!=Me)return Me;var t=L(e,document.createTextNode("AخA")),n=S(t,0,1).getBoundingClientRect(),r=S(t,1,2).getBoundingClientRect();return N(e),!(!n||n.left==n.right)&&(Me=r.right-n.right<3)}var Be,Te=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},je=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Ie="oncopy"in(Be=M("div"))||(Be.setAttribute("oncopy","return;"),"function"==typeof Be.oncopy),Fe=null;function Oe(e){if(null!=Fe)return Fe;var t=L(e,M("span","x")),n=t.getBoundingClientRect(),r=S(t,0,1).getBoundingClientRect();return Fe=Math.abs(n.left-r.left)>1}var Re={},We={};function ze(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Re[e]=t}function He(e,t){We[e]=t}function Ve(e){if("string"==typeof e&&We.hasOwnProperty(e))e=We[e];else if(e&&"string"==typeof e.name&&We.hasOwnProperty(e.name)){var t=We[e.name];"string"==typeof t&&(t={name:t}),(e=$(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ve("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ve("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ke(e,t){t=Ve(t);var n=Re[t.name];if(!n)return Ke(e,"text/plain");var r=n(e,t);if(Ye.hasOwnProperty(t.name)){var i=Ye[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Ye={};function Ue(e,t){F(t,Ye.hasOwnProperty(e)?Ye[e]:Ye[e]={})}function Ge(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Xe(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Qe(e,t,n){return!e.startState||e.startState(t,n)}var Je=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function qe(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function _e(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i})),r}function $e(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function et(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function tt(e){if(null==e.parent)return null;for(var t=e.parent,n=W(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function nt(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var l=e.lines[a].height;if(t<l)break;t-=l}return n+a}function rt(e,t){return t>=e.first&&t<e.first+e.size}function it(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ot(e,t,n){if(void 0===n&&(n=null),!(this instanceof ot))return new ot(e,t,n);this.line=e,this.ch=t,this.sticky=n}function at(e,t){return e.line-t.line||e.ch-t.ch}function lt(e,t){return e.sticky==t.sticky&&0==at(e,t)}function st(e){return ot(e.line,e.ch)}function ct(e,t){return at(e,t)<0?t:e}function ut(e,t){return at(e,t)<0?e:t}function dt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function ht(e,t){if(t.line<e.first)return ot(e.first,0);var n=e.first+e.size-1;return t.line>n?ot(n,qe(e,n).text.length):ft(t,qe(e,t.line).text.length)}function ft(e,t){var n=e.ch;return null==n||n>t?ot(e.line,t):n<0?ot(e.line,0):e}function pt(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=ht(e,t[r]);return n}Je.prototype.eol=function(){return this.pos>=this.string.length},Je.prototype.sol=function(){return this.pos==this.lineStart},Je.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Je.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Je.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Je.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Je.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Je.prototype.skipToEnd=function(){this.pos=this.string.length},Je.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Je.prototype.backUp=function(e){this.pos-=e},Je.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=O(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?O(this.string,this.lineStart,this.tabSize):0)},Je.prototype.indentation=function(){return O(this.string,null,this.tabSize)-(this.lineStart?O(this.string,this.lineStart,this.tabSize):0)},Je.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Je.prototype.current=function(){return this.string.slice(this.start,this.pos)},Je.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Je.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Je.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var mt=function(e,t){this.state=e,this.lookAhead=t},vt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function gt(e,t,n,r){var i=[e.state.modeGen],o={};Et(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,l=function(r){n.baseTokens=i;var l=e.state.overlays[r],s=1,c=0;n.state=!0,Et(e,t.text,l.mode,n,(function(e,t){for(var n=s;c<e;){var r=i[s];r>e&&i.splice(s,1,e,i[s+1],r),s+=2,c=Math.min(e,r)}if(t)if(l.opaque)i.splice(n,s-n,e,"overlay "+t),s=n+2;else for(;n<s;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}}),o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},s=0;s<e.state.overlays.length;++s)l(s);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function yt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=xt(e,tt(t)),i=t.text.length>e.options.maxHighlightLength&&Ge(e.doc.mode,r.state),o=gt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function xt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new vt(r,!0,t);var o=Nt(e,t,n),a=o>r.first&&qe(r,o-1).stateAfter,l=a?vt.fromSaved(r,a,o):new vt(r,Qe(r.mode),o);return r.iter(o,t,(function(n){bt(e,n.text,l);var r=l.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?l.save():null,l.nextLine()})),n&&(r.modeFrontier=l.line),l}function bt(e,t,n,r){var i=e.doc.mode,o=new Je(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&wt(i,n.state);!o.eol();)Ct(i,o,n.state),o.start=o.pos}function wt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Xe(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function Ct(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Xe(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}vt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},vt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},vt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},vt.fromSaved=function(e,t,n){return t instanceof mt?new vt(e,Ge(e.mode,t.state),n,t.lookAhead):new vt(e,Ge(e.mode,t),n)},vt.prototype.save=function(e){var t=!1!==e?Ge(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new mt(t,this.maxLookAhead):t};var kt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function At(e,t,n,r){var i,o,a=e.doc,l=a.mode,s=qe(a,(t=ht(a,t)).line),c=xt(e,t.line,n),u=new Je(s.text,e.options.tabSize,c);for(r&&(o=[]);(r||u.pos<t.ch)&&!u.eol();)u.start=u.pos,i=Ct(l,u,c.state),r&&o.push(new kt(u,i,Ge(a.mode,c.state)));return r?o:new kt(u,i,c.state)}function St(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function Et(e,t,n,r,i,o,a){var l=n.flattenSpans;null==l&&(l=e.options.flattenSpans);var s,c=0,u=null,d=new Je(t,e.options.tabSize,r),h=e.options.addModeClass&&[null];for(""==t&&St(wt(n,r.state),o);!d.eol();){if(d.pos>e.options.maxHighlightLength?(l=!1,a&&bt(e,t,r,d.pos),d.pos=t.length,s=null):s=St(Ct(n,d,r.state,h),o),h){var f=h[0].name;f&&(s="m-"+(s?f+" "+s:f))}if(!l||u!=s){for(;c<d.start;)i(c=Math.min(d.start,c+5e3),u);u=s}d.start=d.pos}for(;c<d.pos;){var p=Math.min(d.pos,c+5e3);i(p,u),c=p}}function Nt(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),l=t;l>a;--l){if(l<=o.first)return o.first;var s=qe(o,l-1),c=s.stateAfter;if(c&&(!n||l+(c instanceof mt?c.lookAhead:0)<=o.modeFrontier))return l;var u=O(s.text,null,e.options.tabSize);(null==i||r>u)&&(i=l-1,r=u)}return i}function Lt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=qe(e,r).stateAfter;if(i&&(!(i instanceof mt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}var Mt=!1,Dt=!1;function Pt(){Mt=!0}function Zt(){Dt=!0}function Bt(e,t,n){this.marker=e,this.from=t,this.to=n}function Tt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function jt(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function It(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function Ft(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var l=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new Bt(a,o.from,l?null:o.to))}}return r}function Ot(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var l=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new Bt(a,l?null:o.from-t,null==o.to?null:o.to-t))}}return r}function Rt(e,t){if(t.full)return null;var n=rt(e,t.from.line)&&qe(e,t.from.line).markedSpans,r=rt(e,t.to.line)&&qe(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==at(t.from,t.to),l=Ft(n,i,a),s=Ot(r,o,a),c=1==t.text.length,u=Q(t.text).length+(c?i:0);if(l)for(var d=0;d<l.length;++d){var h=l[d];if(null==h.to){var f=Tt(s,h.marker);f?c&&(h.to=null==f.to?null:f.to+u):h.to=i}}if(s)for(var p=0;p<s.length;++p){var m=s[p];null!=m.to&&(m.to+=u),null==m.from?Tt(l,m.marker)||(m.from=u,c&&(l||(l=[])).push(m)):(m.from+=u,c&&(l||(l=[])).push(m))}l&&(l=Wt(l)),s&&s!=l&&(s=Wt(s));var v=[l];if(!c){var g,y=t.text.length-2;if(y>0&&l)for(var x=0;x<l.length;++x)null==l[x].to&&(g||(g=[])).push(new Bt(l[x].marker,null,null));for(var b=0;b<y;++b)v.push(g);v.push(s)}return v}function Wt(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function zt(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=W(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],l=a.find(0),s=0;s<i.length;++s){var c=i[s];if(!(at(c.to,l.from)<0||at(c.from,l.to)>0)){var u=[s,1],d=at(c.from,l.from),h=at(c.to,l.to);(d<0||!a.inclusiveLeft&&!d)&&u.push({from:c.from,to:l.from}),(h>0||!a.inclusiveRight&&!h)&&u.push({from:l.to,to:c.to}),i.splice.apply(i,u),s+=u.length-3}}return i}function Ht(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Vt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Kt(e){return e.inclusiveLeft?-1:0}function Yt(e){return e.inclusiveRight?1:0}function Ut(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=at(r.from,i.from)||Kt(e)-Kt(t);if(o)return-o;var a=at(r.to,i.to)||Yt(e)-Yt(t);return a||t.id-e.id}function Gt(e,t){var n,r=Dt&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||Ut(n,i.marker)<0)&&(n=i.marker);return n}function Xt(e){return Gt(e,!0)}function Qt(e){return Gt(e,!1)}function Jt(e,t){var n,r=Dt&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||Ut(n,o.marker)<0)&&(n=o.marker)}return n}function qt(e,t,n,r,i){var o=qe(e,t),a=Dt&&o.markedSpans;if(a)for(var l=0;l<a.length;++l){var s=a[l];if(s.marker.collapsed){var c=s.marker.find(0),u=at(c.from,n)||Kt(s.marker)-Kt(i),d=at(c.to,r)||Yt(s.marker)-Yt(i);if(!(u>=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?at(c.to,n)>=0:at(c.to,n)>0)||u>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?at(c.from,r)<=0:at(c.from,r)<0)))return!0}}}function _t(e){for(var t;t=Xt(e);)e=t.find(-1,!0).line;return e}function $t(e){for(var t;t=Qt(e);)e=t.find(1,!0).line;return e}function en(e){for(var t,n;t=Qt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function tn(e,t){var n=qe(e,t),r=_t(n);return n==r?t:tt(r)}function nn(e,t){if(t>e.lastLine())return t;var n,r=qe(e,t);if(!rn(e,r))return t;for(;n=Qt(r);)r=n.find(1,!0).line;return tt(r)+1}function rn(e,t){var n=Dt&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&on(e,t,r))return!0}}function on(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return on(e,r.line,Tt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&on(e,t,i))return!0}function an(e){for(var t=0,n=(e=_t(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var l=o.children[a];if(l==n)break;t+=l.height}return t}function ln(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Xt(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=Qt(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function sn(e){var t=e.display,n=e.doc;t.maxLine=qe(n,n.first),t.maxLineLength=ln(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=ln(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var cn=function(e,t,n){this.text=e,Vt(this,t),this.height=n?n(this):1};function un(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Ht(e),Vt(e,n);var i=r?r(e):1;i!=e.height&&et(e,i)}function dn(e){e.parent=null,Ht(e)}cn.prototype.lineNo=function(){return tt(this)},we(cn);var hn={},fn={};function pn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?fn:hn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function mn(e,t){var n=D("span",null,null,s?"padding-right: .1px":null),r={pre:D("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=gn,Ze(e.display.measure)&&(a=he(o,e.doc.direction))&&(r.addToken=xn(r.addToken,a)),r.map=[],wn(o,r,yt(e,o,t!=e.display.externalMeasured&&tt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=T(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=T(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Pe(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(s){var l=r.content.lastChild;(/\bcm-tab\b/.test(l.className)||l.querySelector&&l.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ge(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=T(r.pre.className,r.textClass||"")),r}function vn(e){var t=M("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function gn(e,t,n,r,i,o,s){if(t){var c,u=e.splitSpaces?yn(t,e.trailingSpace):t,d=e.cm.state.specialChars,h=!1;if(d.test(t)){c=document.createDocumentFragment();for(var f=0;;){d.lastIndex=f;var p=d.exec(t),m=p?p.index-f:t.length-f;if(m){var v=document.createTextNode(u.slice(f,f+m));a&&l<9?c.appendChild(M("span",[v])):c.appendChild(v),e.map.push(e.pos,e.pos+m,v),e.col+=m,e.pos+=m}if(!p)break;f+=m+1;var g=void 0;if("\t"==p[0]){var y=e.cm.options.tabSize,x=y-e.col%y;(g=c.appendChild(M("span",X(x),"cm-tab"))).setAttribute("role","presentation"),g.setAttribute("cm-text","\t"),e.col+=x}else"\r"==p[0]||"\n"==p[0]?((g=c.appendChild(M("span","\r"==p[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",p[0]),e.col+=1):((g=e.cm.options.specialCharPlaceholder(p[0])).setAttribute("cm-text",p[0]),a&&l<9?c.appendChild(M("span",[g])):c.appendChild(g),e.col+=1);e.map.push(e.pos,e.pos+1,g),e.pos++}}else e.col+=t.length,c=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,c),a&&l<9&&(h=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||r||i||h||o||s){var b=n||"";r&&(b+=r),i&&(b+=i);var w=M("span",[c],b,o);if(s)for(var C in s)s.hasOwnProperty(C)&&"style"!=C&&"class"!=C&&w.setAttribute(C,s[C]);return e.content.appendChild(w)}e.content.appendChild(c)}}function yn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}function xn(e,t){return function(n,r,i,o,a,l,s){i=i?i+" cm-force-border":"cm-force-border";for(var c=n.pos,u=c+r.length;;){for(var d=void 0,h=0;h<t.length&&!((d=t[h]).to>c&&d.from<=c);h++);if(d.to>=u)return e(n,r,i,o,a,l,s);e(n,r.slice(0,d.to-c),i,o,null,l,s),o=null,r=r.slice(d.to-c),c=d.to}}}function bn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function wn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,l,s,c,u,d,h,f=i.length,p=0,m=1,v="",g=0;;){if(g==p){s=c=u=l="",h=null,d=null,g=1/0;for(var y=[],x=void 0,b=0;b<r.length;++b){var w=r[b],C=w.marker;if("bookmark"==C.type&&w.from==p&&C.widgetNode)y.push(C);else if(w.from<=p&&(null==w.to||w.to>p||C.collapsed&&w.to==p&&w.from==p)){if(null!=w.to&&w.to!=p&&g>w.to&&(g=w.to,c=""),C.className&&(s+=" "+C.className),C.css&&(l=(l?l+";":"")+C.css),C.startStyle&&w.from==p&&(u+=" "+C.startStyle),C.endStyle&&w.to==g&&(x||(x=[])).push(C.endStyle,w.to),C.title&&((h||(h={})).title=C.title),C.attributes)for(var k in C.attributes)(h||(h={}))[k]=C.attributes[k];C.collapsed&&(!d||Ut(d.marker,C)<0)&&(d=w)}else w.from>p&&g>w.from&&(g=w.from)}if(x)for(var A=0;A<x.length;A+=2)x[A+1]==g&&(c+=" "+x[A]);if(!d||d.from==p)for(var S=0;S<y.length;++S)bn(t,0,y[S]);if(d&&(d.from||0)==p){if(bn(t,(null==d.to?f+1:d.to)-p,d.marker,null==d.from),null==d.to)return;d.to==p&&(d=!1)}}if(p>=f)break;for(var E=Math.min(f,g);;){if(v){var N=p+v.length;if(!d){var L=N>E?v.slice(0,E-p):v;t.addToken(t,L,a?a+s:s,u,p+L.length==g?c:"",l,h)}if(N>=E){v=v.slice(E-p),p=E;break}p=N,u=""}v=i.slice(o,o=n[m++]),a=pn(n[m++],t.cm.options)}}else for(var M=1;M<n.length;M+=2)t.addToken(t,i.slice(o,o=n[M]),pn(n[M+1],t.cm.options))}function Cn(e,t,n){this.line=t,this.rest=en(t),this.size=this.rest?tt(Q(this.rest))-n+1:1,this.node=this.text=null,this.hidden=rn(e,t)}function kn(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new Cn(e.doc,qe(e.doc,o),o);r=o+a.size,i.push(a)}return i}var An=null;function Sn(e){An?An.ops.push(e):e.ownsGroup=An={ops:[e],delayedCallbacks:[]}}function En(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}function Nn(e,t){var n=e.ownsGroup;if(n)try{En(n)}finally{An=null,t(n)}}var Ln=null;function Mn(e,t){var n=me(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);An?r=An.delayedCallbacks:Ln?r=Ln:(r=Ln=[],setTimeout(Dn,0));for(var o=function(e){r.push((function(){return n[e].apply(null,i)}))},a=0;a<n.length;++a)o(a)}}function Dn(){var e=Ln;Ln=null;for(var t=0;t<e.length;++t)e[t]()}function Pn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?jn(e,t):"gutter"==o?Fn(e,t,n,r):"class"==o?In(e,t):"widget"==o&&On(e,t,r)}t.changes=null}function Zn(e){return e.node==e.text&&(e.node=M("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&l<8&&(e.node.style.zIndex=2)),e.node}function Bn(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=Zn(t);t.background=r.insertBefore(M("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}function Tn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):mn(e,t)}function jn(e,t){var n=t.text.className,r=Tn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,In(e,t)):n&&(t.text.className=n)}function In(e,t){Bn(e,t),t.line.wrapClass?Zn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function Fn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=Zn(t);t.gutterBackground=M("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=Zn(t),l=t.gutter=M("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(e.display.input.setUneditable(l),a.insertBefore(l,t.text),t.line.gutterClass&&(l.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=l.appendChild(M("div",it(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var s=0;s<e.display.gutterSpecs.length;++s){var c=e.display.gutterSpecs[s].className,u=o.hasOwnProperty(c)&&o[c];u&&l.appendChild(M("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function On(e,t,n){t.alignable&&(t.alignable=null);for(var r=A("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);Wn(e,t,n)}function Rn(e,t,n,r){var i=Tn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),In(e,t),Fn(e,t,n,r),Wn(e,t,r),t.node}function Wn(e,t,n){if(zn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)zn(e,t.rest[r],t,n,!1)}function zn(e,t,n,r,i){if(t.widgets)for(var o=Zn(n),a=0,l=t.widgets;a<l.length;++a){var s=l[a],c=M("div",[s.node],"CodeMirror-linewidget"+(s.className?" "+s.className:""));s.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),Hn(s,c,n,r),e.display.input.setUneditable(c),i&&s.above?o.insertBefore(c,n.gutter||n.text):o.appendChild(c),Mn(s,"redraw")}}function Hn(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function Vn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!P(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),L(t.display.measure,M("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Kn(e,t){for(var n=Ee(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Yn(e){return e.lineSpace.offsetTop}function Un(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Gn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=L(e.measure,M("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function Xn(e){return z-e.display.nativeBarWidth}function Qn(e){return e.display.scroller.clientWidth-Xn(e)-e.display.barWidth}function Jn(e){return e.display.scroller.clientHeight-Xn(e)-e.display.barHeight}function qn(e,t,n){var r=e.options.lineWrapping,i=r&&Qn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),l=0;l<a.length-1;l++){var s=a[l],c=a[l+1];Math.abs(s.bottom-c.bottom)>2&&o.push((s.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}function _n(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(tt(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function $n(e,t){var n=tt(t=_t(t)),r=e.display.externalMeasured=new Cn(e.doc,t,n);r.lineN=n;var i=r.built=mn(e,r);return r.text=i.pre,L(e.display.lineMeasure,i.pre),r}function er(e,t,n,r){return rr(e,nr(e,t),n,r)}function tr(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Ir(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function nr(e,t){var n=tt(t),r=tr(e,n);r&&!r.text?r=null:r&&r.changes&&(Pn(e,r,n,Pr(e)),e.curOp.forceUpdate=!0),r||(r=$n(e,t));var i=_n(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function rr(e,t,n,r,i){t.before&&(n=-1);var o,a=n+(r||"");return t.cache.hasOwnProperty(a)?o=t.cache[a]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(qn(e,t.view,t.rect),t.hasHeights=!0),(o=sr(e,t,n,r)).bogus||(t.cache[a]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var ir,or={left:0,right:0,top:0,bottom:0};function ar(e,t,n){for(var r,i,o,a,l,s,c=0;c<e.length;c+=3)if(l=e[c],s=e[c+1],t<l?(i=0,o=1,a="left"):t<s?o=1+(i=t-l):(c==e.length-3||t==s&&e[c+3]>t)&&(i=(o=s-l)-1,t>=s&&(a="right")),null!=i){if(r=e[c+2],l==s&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)r=e[2+(c-=3)],a="left";if("right"==n&&i==s-l)for(;c<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft;)r=e[(c+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:l,coverEnd:s}}function lr(e,t){var n=or;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function sr(e,t,n,r){var i,o=ar(t.map,n,r),s=o.node,c=o.start,u=o.end,d=o.collapse;if(3==s.nodeType){for(var h=0;h<4;h++){for(;c&&oe(t.line.text.charAt(o.coverStart+c));)--c;for(;o.coverStart+u<o.coverEnd&&oe(t.line.text.charAt(o.coverStart+u));)++u;if((i=a&&l<9&&0==c&&u==o.coverEnd-o.coverStart?s.parentNode.getBoundingClientRect():lr(S(s,c,u).getClientRects(),r)).left||i.right||0==c)break;u=c,c-=1,d="right"}a&&l<11&&(i=cr(e.display.measure,i))}else{var f;c>0&&(d=r="right"),i=e.options.lineWrapping&&(f=s.getClientRects()).length>1?f["right"==r?f.length-1:0]:s.getBoundingClientRect()}if(a&&l<9&&!c&&(!i||!i.left&&!i.right)){var p=s.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+Dr(e.display),top:p.top,bottom:p.bottom}:or}for(var m=i.top-t.rect.top,v=i.bottom-t.rect.top,g=(m+v)/2,y=t.view.measure.heights,x=0;x<y.length-1&&!(g<y[x]);x++);var b=x?y[x-1]:0,w=y[x],C={left:("right"==d?i.right:i.left)-t.rect.left,right:("left"==d?i.left:i.right)-t.rect.left,top:b,bottom:w};return i.left||i.right||(C.bogus=!0),e.options.singleCursorHeightPerLine||(C.rtop=m,C.rbottom=v),C}function cr(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!Oe(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function ur(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function dr(e){e.display.externalMeasure=null,N(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)ur(e.display.view[t])}function hr(e){dr(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function fr(){return u&&v?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function pr(){return u&&v?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function mr(e){var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;++n)e.widgets[n].above&&(t+=Vn(e.widgets[n]));return t}function vr(e,t,n,r,i){if(!i){var o=mr(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=an(t);if("local"==r?a+=Yn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var l=e.display.lineSpace.getBoundingClientRect();a+=l.top+("window"==r?0:pr());var s=l.left+("window"==r?0:fr());n.left+=s,n.right+=s}return n.top+=a,n.bottom+=a,n}function gr(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=fr(),i-=pr();else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function yr(e,t,n,r,i){return r||(r=qe(e.doc,t.line)),vr(e,r,er(e,r,t.ch,i),n)}function xr(e,t,n,r,i,o){function a(t,a){var l=rr(e,i,t,a?"right":"left",o);return a?l.left=l.right:l.right=l.left,vr(e,r,l,n)}r=r||qe(e.doc,t.line),i||(i=nr(e,r));var l=he(r,e.doc.direction),s=t.ch,c=t.sticky;if(s>=r.text.length?(s=r.text.length,c="before"):s<=0&&(s=0,c="after"),!l)return a("before"==c?s-1:s,"before"==c);function u(e,t,n){return a(n?e-1:e,1==l[t].level!=n)}var d=ue(l,s,c),h=ce,f=u(s,d,"before"==c);return null!=h&&(f.other=u(s,h,"before"!=c)),f}function br(e,t){var n=0;t=ht(e.doc,t),e.options.lineWrapping||(n=Dr(e.display)*t.ch);var r=qe(e.doc,t.line),i=an(r)+Yn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function wr(e,t,n,r,i){var o=ot(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Cr(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return wr(r.first,0,null,-1,-1);var i=nt(r,n),o=r.first+r.size-1;if(i>o)return wr(r.first+r.size-1,qe(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=qe(r,i);;){var l=Er(e,a,i,t,n),s=Jt(a,l.ch+(l.xRel>0||l.outside>0?1:0));if(!s)return l;var c=s.find(1);if(c.line==i)return c;a=qe(r,i=c.line)}}function kr(e,t,n,r){r-=mr(t);var i=t.text.length,o=le((function(t){return rr(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=le((function(t){return rr(e,n,t).top>r}),o,i)}}function Ar(e,t,n,r){return n||(n=nr(e,t)),kr(e,t,n,vr(e,t,rr(e,n,r),"line").top)}function Sr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Er(e,t,n,r,i){i-=an(t);var o=nr(e,t),a=mr(t),l=0,s=t.text.length,c=!0,u=he(t,e.doc.direction);if(u){var d=(e.options.lineWrapping?Lr:Nr)(e,t,n,o,u,r,i);l=(c=1!=d.level)?d.from:d.to-1,s=c?d.to:d.from-1}var h,f,p=null,m=null,v=le((function(t){var n=rr(e,o,t);return n.top+=a,n.bottom+=a,!!Sr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(p=t,m=n),!0)}),l,s),g=!1;if(m){var y=r-m.left<m.right-r,x=y==c;v=p+(x?0:1),f=x?"after":"before",h=y?m.left:m.right}else{c||v!=s&&v!=l||v++,f=0==v?"after":v==t.text.length?"before":rr(e,o,v-(c?1:0)).bottom+a<=i==c?"after":"before";var b=xr(e,ot(n,v,f),"line",t,o);h=b.left,g=i<b.top?-1:i>=b.bottom?1:0}return wr(n,v=ae(t.text,v,1),f,g,r-h)}function Nr(e,t,n,r,i,o,a){var l=le((function(l){var s=i[l],c=1!=s.level;return Sr(xr(e,ot(n,c?s.to:s.from,c?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),s=i[l];if(l>0){var c=1!=s.level,u=xr(e,ot(n,c?s.from:s.to,c?"after":"before"),"line",t,r);Sr(u,o,a,!0)&&u.top>a&&(s=i[l-1])}return s}function Lr(e,t,n,r,i,o,a){var l=kr(e,t,r,a),s=l.begin,c=l.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,d=null,h=0;h<i.length;h++){var f=i[h];if(!(f.from>=c||f.to<=s)){var p=rr(e,r,1!=f.level?Math.min(c,f.to)-1:Math.max(s,f.from)).right,m=p<o?o-p+1e9:p-o;(!u||d>m)&&(u=f,d=m)}}return u||(u=i[i.length-1]),u.from<s&&(u={from:s,to:u.to,level:u.level}),u.to>c&&(u={from:u.from,to:c,level:u.level}),u}function Mr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==ir){ir=M("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)ir.appendChild(document.createTextNode("x")),ir.appendChild(M("br"));ir.appendChild(document.createTextNode("x"))}L(e.measure,ir);var n=ir.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),N(e.measure),n||1}function Dr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=M("span","xxxxxxxxxx"),n=M("pre",[t],"CodeMirror-line-like");L(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Pr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var l=e.display.gutterSpecs[a].className;n[l]=o.offsetLeft+o.clientLeft+i,r[l]=o.clientWidth}return{fixedPos:Zr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Zr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Br(e){var t=Mr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Dr(e.display)-3);return function(i){if(rn(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function Tr(e){var t=e.doc,n=Br(e);t.iter((function(e){var t=n(e);t!=e.height&&et(e,t)}))}function jr(e,t,n,r){var i=e.display;if(!n&&"true"==Ee(t).getAttribute("cm-not-content"))return null;var o,a,l=i.lineSpace.getBoundingClientRect();try{o=t.clientX-l.left,a=t.clientY-l.top}catch(e){return null}var s,c=Cr(e,o,a);if(r&&c.xRel>0&&(s=qe(e.doc,c.line).text).length==c.ch){var u=O(s,s.length,e.options.tabSize)-s.length;c=ot(c.line,Math.max(0,Math.round((o-Gn(e.display).left)/Dr(e.display))-u))}return c}function Ir(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function Fr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Dt&&tn(e.doc,t)<i.viewTo&&Rr(e);else if(n<=i.viewFrom)Dt&&nn(e.doc,n+r)>i.viewFrom?Rr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)Rr(e);else if(t<=i.viewFrom){var o=Wr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):Rr(e)}else if(n>=i.viewTo){var a=Wr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):Rr(e)}else{var l=Wr(e,t,t,-1),s=Wr(e,n,n+r,1);l&&s?(i.view=i.view.slice(0,l.index).concat(kn(e,l.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):Rr(e)}var c=i.externalMeasured;c&&(n<c.lineN?c.lineN+=r:t<c.lineN+c.size&&(i.externalMeasured=null))}function Or(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[Ir(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==W(a,n)&&a.push(n)}}}function Rr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Wr(e,t,n,r){var i,o=Ir(e,t),a=e.display.view;if(!Dt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var l=e.display.viewFrom,s=0;s<o;s++)l+=a[s].size;if(l!=t){if(r>0){if(o==a.length-1)return null;i=l+a[o].size-t,o++}else i=l-t;t+=i,n+=i}for(;tn(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function zr(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=kn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=kn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(Ir(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(kn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Ir(e,n)))),r.viewTo=n}function Hr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function Vr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Kr(e,t){void 0===t&&(t=!0);for(var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=0;a<n.sel.ranges.length;a++)if(t||a!=n.sel.primIndex){var l=n.sel.ranges[a];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var s=l.empty();(s||e.options.showCursorWhenSelecting)&&Yr(e,l.head,i),s||Gr(e,l,o)}}return r}function Yr(e,t,n){var r=xr(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(M("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",r.other){var o=n.appendChild(M("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=r.other.left+"px",o.style.top=r.other.top+"px",o.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Ur(e,t){return e.top-t.top||e.left-t.left}function Gr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Gn(e.display),l=a.left,s=Math.max(r.sizerWidth,Qn(e)-r.sizer.offsetLeft)-a.right,c="ltr"==i.direction;function u(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(M("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?s-e:n)+"px;\n height: "+(r-t)+"px"))}function d(t,n,r){var o,a,d=qe(i,t),h=d.text.length;function f(n,r){return yr(e,ot(t,n),"div",d,r)}function p(t,n,r){var i=Ar(e,d,null,t),o="ltr"==n==("after"==r)?"left":"right";return f("after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1),o)[o]}var m=he(d,i.direction);return se(m,n||0,null==r?h:r,(function(e,t,i,d){var v="ltr"==i,g=f(e,v?"left":"right"),y=f(t-1,v?"right":"left"),x=null==n&&0==e,b=null==r&&t==h,w=0==d,C=!m||d==m.length-1;if(y.top-g.top<=3){var k=(c?b:x)&&C,A=(c?x:b)&&w?l:(v?g:y).left,S=k?s:(v?y:g).right;u(A,g.top,S-A,g.bottom)}else{var E,N,L,M;v?(E=c&&x&&w?l:g.left,N=c?s:p(e,i,"before"),L=c?l:p(t,i,"after"),M=c&&b&&C?s:y.right):(E=c?p(e,i,"before"):l,N=!c&&x&&w?s:g.right,L=!c&&b&&C?l:y.left,M=c?p(t,i,"after"):s),u(E,g.top,N-E,g.bottom),g.bottom<y.top&&u(l,g.bottom,null,y.top),u(L,y.top,M-L,y.bottom)}(!o||Ur(g,o)<0)&&(o=g),Ur(y,o)<0&&(o=y),(!a||Ur(g,a)<0)&&(a=g),Ur(y,a)<0&&(a=y)})),{start:o,end:a}}var h=t.from(),f=t.to();if(h.line==f.line)d(h.line,h.ch,f.ch);else{var p=qe(i,h.line),m=qe(i,f.line),v=_t(p)==_t(m),g=d(h.line,h.ch,v?p.text.length+1:null).end,y=d(f.line,v?0:null,f.ch).start;v&&(g.top<y.top-2?(u(g.right,g.top,null,g.bottom),u(l,y.top,y.left,y.bottom)):u(g.right,g.top,y.left-g.right,g.bottom)),g.bottom<y.top&&u(l,g.bottom,null,y.top)}n.appendChild(o)}function Xr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){e.hasFocus()||_r(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Qr(e){e.state.focused||(e.display.input.focus(),qr(e))}function Jr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,_r(e))}),100)}function qr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ge(e,"focus",e,t),e.state.focused=!0,B(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),s&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Xr(e))}function _r(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ge(e,"blur",e,t),e.state.focused=!1,E(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function $r(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var i=t.view[r],o=e.options.lineWrapping,s=void 0,c=0;if(!i.hidden){if(a&&l<8){var u=i.node.offsetTop+i.node.offsetHeight;s=u-n,n=u}else{var d=i.node.getBoundingClientRect();s=d.bottom-d.top,!o&&i.text.firstChild&&(c=i.text.firstChild.getBoundingClientRect().right-d.left-1)}var h=i.line.height-s;if((h>.005||h<-.005)&&(et(i.line,s),ei(i.line),i.rest))for(var f=0;f<i.rest.length;f++)ei(i.rest[f]);if(c>e.display.sizerWidth){var p=Math.ceil(c/Dr(e.display));p>e.display.maxLineLength&&(e.display.maxLineLength=p,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function ei(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function ti(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Yn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=nt(t,r),a=nt(t,i);if(n&&n.ensure){var l=n.ensure.from.line,s=n.ensure.to.line;l<o?(o=l,a=nt(t,an(qe(t,l))+e.wrapper.clientHeight)):Math.min(s,t.lastLine())>=a&&(o=nt(t,an(qe(t,s))-e.wrapper.clientHeight),a=s)}return{from:o,to:Math.max(a,o+1)}}function ni(e,t){if(!ye(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!p){var o=M("div","",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Yn(e.display))+"px;\n height: "+(t.bottom-t.top+Xn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}function ri(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?ot(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?ot(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,l=xr(e,t),s=n&&n!=t?xr(e,n):l,c=oi(e,i={left:Math.min(l.left,s.left),top:Math.min(l.top,s.top)-r,right:Math.max(l.left,s.left),bottom:Math.max(l.bottom,s.bottom)+r}),u=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=c.scrollTop&&(hi(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(pi(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}function ii(e,t){var n=oi(e,t);null!=n.scrollTop&&hi(e,n.scrollTop),null!=n.scrollLeft&&pi(e,n.scrollLeft)}function oi(e,t){var n=e.display,r=Mr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Jn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var l=e.doc.height+Un(n),s=t.top<r,c=t.bottom>l-r;if(t.top<i)a.scrollTop=s?0:t.top;else if(t.bottom>i+o){var u=Math.min(t.top,(c?l:t.bottom)-o);u!=i&&(a.scrollTop=u)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,h=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,f=Qn(e)-n.gutters.offsetWidth,p=t.right-t.left>f;return p&&(t.right=t.left+f),t.left<10?a.scrollLeft=0:t.left<h?a.scrollLeft=Math.max(0,t.left+d-(p?0:10)):t.right>f+h-3&&(a.scrollLeft=t.right+(p?0:10)-f),a}function ai(e,t){null!=t&&(ui(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function li(e){ui(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function si(e,t,n){null==t&&null==n||ui(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function ci(e,t){ui(e),e.curOp.scrollToPos=t}function ui(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,di(e,br(e,t.from),br(e,t.to),t.margin))}function di(e,t,n,r){var i=oi(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});si(e,i.scrollLeft,i.scrollTop)}function hi(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Vi(e,{top:t}),fi(e,t,!0),n&&Vi(e),ji(e,100))}function fi(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function pi(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Gi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function mi(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Un(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Xn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var vi=function(e,t,n){this.cm=n;var r=this.vert=M("div",[M("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=M("div",[M("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),pe(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),pe(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&l<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};vi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},vi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},vi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},vi.prototype.zeroWidthHack=function(){var e=y&&!f?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new R,this.disableVert=new R},vi.prototype.enableZeroWidthBar=function(e,t,n){function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",t.set(1e3,r)},vi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var gi=function(){};function yi(e,t){t||(t=mi(e));var n=e.display.barWidth,r=e.display.barHeight;xi(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&$r(e),xi(e,mi(e)),n=e.display.barWidth,r=e.display.barHeight}function xi(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}gi.prototype.update=function(){return{bottom:0,right:0}},gi.prototype.setScrollLeft=function(){},gi.prototype.setScrollTop=function(){},gi.prototype.clear=function(){};var bi={native:vi,null:gi};function wi(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&E(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new bi[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),pe(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?pi(e,t):hi(e,t)}),e),e.display.scrollbars.addClass&&B(e.display.wrapper,e.display.scrollbars.addClass)}var Ci=0;function ki(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.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:++Ci},Sn(e.curOp)}function Ai(e){var t=e.curOp;t&&Nn(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;Si(e)}))}function Si(e){for(var t=e.ops,n=0;n<t.length;n++)Ei(t[n]);for(var r=0;r<t.length;r++)Ni(t[r]);for(var i=0;i<t.length;i++)Li(t[i]);for(var o=0;o<t.length;o++)Mi(t[o]);for(var a=0;a<t.length;a++)Di(t[a])}function Ei(e){var t=e.cm,n=t.display;Oi(t),e.updateMaxLine&&sn(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Fi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Ni(e){e.updatedDisplay=e.mustUpdate&&zi(e.cm,e.update)}function Li(e){var t=e.cm,n=t.display;e.updatedDisplay&&$r(t),e.barMeasure=mi(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=er(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Xn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Qn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Mi(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&pi(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==Z();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&yi(t,e.barMeasure),e.updatedDisplay&&Ui(t,e.barMeasure),e.selectionChanged&&Xr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Qr(e.cm)}function Di(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&Hi(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&fi(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&pi(t,e.scrollLeft,!0,!0),e.scrollToPos&&ni(t,ri(t,ht(r,e.scrollToPos.from),ht(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||ge(i[a],"hide");if(o)for(var l=0;l<o.length;++l)o[l].lines.length&&ge(o[l],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&ge(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Pi(e,t){if(e.curOp)return t();ki(e);try{return t()}finally{Ai(e)}}function Zi(e,t){return function(){if(e.curOp)return t.apply(e,arguments);ki(e);try{return t.apply(e,arguments)}finally{Ai(e)}}}function Bi(e){return function(){if(this.curOp)return e.apply(this,arguments);ki(this);try{return e.apply(this,arguments)}finally{Ai(this)}}}function Ti(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);ki(t);try{return e.apply(this,arguments)}finally{Ai(t)}}}function ji(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,I(Ii,e))}function Ii(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=xt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,l=o.text.length>e.options.maxHighlightLength?Ge(t.mode,r.state):null,s=gt(e,o,r,!0);l&&(r.state=l),o.styles=s.styles;var c=o.styleClasses,u=s.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),h=0;!d&&h<a.length;++h)d=a[h]!=o.styles[h];d&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&bt(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return ji(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Pi(e,(function(){for(var t=0;t<i.length;t++)Or(e,i[t],"text")}))}}var Fi=function(e,t,n){var r=e.display;this.viewport=t,this.visible=ti(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Qn(e),this.force=n,this.dims=Pr(e),this.events=[]};function Oi(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Xn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Xn(e)+"px",t.scrollbarsClipped=!0)}function Ri(e){if(e.hasFocus())return null;var t=Z();if(!t||!P(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&P(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function Wi(e){if(e&&e.activeElt&&e.activeElt!=Z()&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&P(document.body,e.anchorNode)&&P(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}function zi(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return Rr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Hr(e))return!1;Xi(e)&&(Rr(e),t.dims=Pr(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Dt&&(o=tn(e.doc,o),a=nn(e.doc,a));var l=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;zr(e,o,a),n.viewOffset=an(qe(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var s=Hr(e);if(!l&&0==s&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=Ri(e);return s>4&&(n.lineDiv.style.display="none"),Ki(e,n.updateLineNumbers,t.dims),s>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Wi(c),N(n.cursorDiv),N(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,l&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ji(e,400)),n.updateLineNumbers=null,!0}function Hi(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Qn(e))r&&(t.visible=ti(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Un(e.display)-Jn(e),n.top)}),t.visible=ti(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!zi(e,t))break;$r(e);var i=mi(e);Vr(e),yi(e,i),Ui(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Vi(e,t){var n=new Fi(e,t);if(zi(e,n)){$r(e),Hi(e,n);var r=mi(e);Vr(e),yi(e,r),Ui(e,r),n.finish()}}function Ki(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function l(t){var n=t.nextSibling;return s&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var c=r.view,u=r.viewFrom,d=0;d<c.length;d++){var h=c[d];if(h.hidden);else if(h.node&&h.node.parentNode==o){for(;a!=h.node;)a=l(a);var f=i&&null!=t&&t<=u&&h.lineNumber;h.changes&&(W(h.changes,"gutter")>-1&&(f=!1),Pn(e,h,u,n)),f&&(N(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(it(e.options,u)))),a=h.node.nextSibling}else{var p=Rn(e,h,u,n);o.insertBefore(p,a)}u+=h.size}for(;a;)a=l(a)}function Yi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Ui(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Xn(e)+"px"}function Gi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Zr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var l=n[a].alignable;if(l)for(var s=0;s<l.length;s++)l[s].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function Xi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=it(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(M("div",[M("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",Yi(e.display),!0}return!1}function Qi(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function Ji(e){var t=e.gutters,n=e.gutterSpecs;N(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,l=t.appendChild(M("div",null,"CodeMirror-gutter "+o));a&&(l.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=l,l.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",Yi(e)}function qi(e){Ji(e.display),Fr(e),Gi(e)}function _i(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=M("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=M("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=D("div",null,"CodeMirror-code"),o.selectionDiv=M("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=M("div",null,"CodeMirror-cursors"),o.measure=M("div",null,"CodeMirror-measure"),o.lineMeasure=M("div",null,"CodeMirror-measure"),o.lineSpace=D("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var c=D("div",[o.lineSpace],"CodeMirror-lines");o.mover=M("div",[c],null,"position: relative"),o.sizer=M("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=M("div",null,null,"position: absolute; height: "+z+"px; width: 1px;"),o.gutters=M("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=M("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=M("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),a&&l<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),s||n&&g||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=Qi(i.gutters,i.lineNumbers),Ji(o),r.init(o)}Fi.prototype.signal=function(e,t){be(e,t)&&this.events.push(arguments)},Fi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ge.apply(null,this.events[e])};var $i=0,eo=null;function to(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function no(e){var t=to(e);return t.x*=eo,t.y*=eo,t}function ro(e,t){var r=to(t),i=r.x,o=r.y,a=e.display,l=a.scroller,c=l.scrollWidth>l.clientWidth,u=l.scrollHeight>l.clientHeight;if(i&&c||o&&u){if(o&&y&&s)e:for(var h=t.target,f=a.view;h!=l;h=h.parentNode)for(var p=0;p<f.length;p++)if(f[p].node==h){e.display.currentWheelTarget=h;break e}if(i&&!n&&!d&&null!=eo)return o&&u&&hi(e,Math.max(0,l.scrollTop+o*eo)),pi(e,Math.max(0,l.scrollLeft+i*eo)),(!o||o&&u)&&Ce(t),void(a.wheelStartX=null);if(o&&null!=eo){var m=o*eo,v=e.doc.scrollTop,g=v+a.wrapper.clientHeight;m<0?v=Math.max(0,v+m-50):g=Math.min(e.doc.height,g+m+50),Vi(e,{top:v,bottom:g})}$i<20&&(null==a.wheelStartX?(a.wheelStartX=l.scrollLeft,a.wheelStartY=l.scrollTop,a.wheelDX=i,a.wheelDY=o,setTimeout((function(){if(null!=a.wheelStartX){var e=l.scrollLeft-a.wheelStartX,t=l.scrollTop-a.wheelStartY,n=t&&a.wheelDY&&t/a.wheelDY||e&&a.wheelDX&&e/a.wheelDX;a.wheelStartX=a.wheelStartY=null,n&&(eo=(eo*$i+n)/($i+1),++$i)}}),200)):(a.wheelDX+=i,a.wheelDY+=o))}}a?eo=-.53:n?eo=15:u?eo=-.7:h&&(eo=-1/3);var io=function(e,t){this.ranges=e,this.primIndex=t};io.prototype.primary=function(){return this.ranges[this.primIndex]},io.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!lt(n.anchor,r.anchor)||!lt(n.head,r.head))return!1}return!0},io.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new oo(st(this.ranges[t].anchor),st(this.ranges[t].head));return new io(e,this.primIndex)},io.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},io.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(at(t,r.from())>=0&&at(e,r.to())<=0)return n}return-1};var oo=function(e,t){this.anchor=e,this.head=t};function ao(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return at(e.from(),t.from())})),n=W(t,i);for(var o=1;o<t.length;o++){var a=t[o],l=t[o-1],s=at(l.to(),a.from());if(r&&!a.empty()?s>0:s>=0){var c=ut(l.from(),a.from()),u=ct(l.to(),a.to()),d=l.empty()?a.from()==a.head:l.from()==l.head;o<=n&&--n,t.splice(--o,2,new oo(d?u:c,d?c:u))}}return new io(t,n)}function lo(e,t){return new io([new oo(e,t||e)],0)}function so(e){return e.text?ot(e.from.line+e.text.length-1,Q(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function co(e,t){if(at(e,t.from)<0)return e;if(at(e,t.to)<=0)return so(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=so(t).ch-t.to.ch),ot(n,r)}function uo(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new oo(co(i.anchor,t),co(i.head,t)))}return ao(e.cm,n,e.sel.primIndex)}function ho(e,t,n){return e.line==t.line?ot(n.line,e.ch-t.ch+n.ch):ot(n.line+(e.line-t.line),e.ch)}function fo(e,t,n){for(var r=[],i=ot(e.first,0),o=i,a=0;a<t.length;a++){var l=t[a],s=ho(l.from,i,o),c=ho(so(l),i,o);if(i=l.to,o=c,"around"==n){var u=e.sel.ranges[a],d=at(u.head,u.anchor)<0;r[a]=new oo(d?c:s,d?s:c)}else r[a]=new oo(s,s)}return new io(r,e.sel.primIndex)}function po(e){e.doc.mode=Ke(e.options,e.doc.modeOption),mo(e)}function mo(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ji(e,100),e.state.modeGen++,e.curOp&&Fr(e)}function vo(e,t){return 0==t.from.ch&&0==t.to.ch&&""==Q(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function go(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){un(e,n,i,r),Mn(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new cn(c[o],i(o),r));return n}var l=t.from,s=t.to,c=t.text,u=qe(e,l.line),d=qe(e,s.line),h=Q(c),f=i(c.length-1),p=s.line-l.line;if(t.full)e.insert(0,a(0,c.length)),e.remove(c.length,e.size-c.length);else if(vo(e,t)){var m=a(0,c.length-1);o(d,d.text,f),p&&e.remove(l.line,p),m.length&&e.insert(l.line,m)}else if(u==d)if(1==c.length)o(u,u.text.slice(0,l.ch)+h+u.text.slice(s.ch),f);else{var v=a(1,c.length-1);v.push(new cn(h+u.text.slice(s.ch),f,r)),o(u,u.text.slice(0,l.ch)+c[0],i(0)),e.insert(l.line+1,v)}else if(1==c.length)o(u,u.text.slice(0,l.ch)+c[0]+d.text.slice(s.ch),i(0)),e.remove(l.line+1,p);else{o(u,u.text.slice(0,l.ch)+c[0],i(0)),o(d,h+d.text.slice(s.ch),f);var g=a(1,c.length-1);p>1&&e.remove(l.line+1,p-1),e.insert(l.line+1,g)}Mn(e,"change",e,t)}function yo(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;a<e.linked.length;++a){var l=e.linked[a];if(l.doc!=i){var s=o&&l.sharedHist;n&&!s||(t(l.doc,s),r(l.doc,e,s))}}}r(e,null,!0)}function xo(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Tr(e),po(e),bo(e),e.options.lineWrapping||sn(e),e.options.mode=t.modeOption,Fr(e)}function bo(e){("rtl"==e.doc.direction?B:E)(e.display.lineDiv,"CodeMirror-rtl")}function wo(e){Pi(e,(function(){bo(e),Fr(e)}))}function Co(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function ko(e,t){var n={from:st(t.from),to:so(t),text:_e(e,t.from,t.to)};return Do(e,n,t.from.line,t.to.line+1),yo(e,(function(e){return Do(e,n,t.from.line,t.to.line+1)}),!0),n}function Ao(e){for(;e.length&&Q(e).ranges;)e.pop()}function So(e,t){return t?(Ao(e.done),Q(e.done)):e.done.length&&!Q(e.done).ranges?Q(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Q(e.done)):void 0}function Eo(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,l=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>l-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=So(i,i.lastOp==r)))a=Q(o.changes),0==at(t.from,t.to)&&0==at(t.from,a.to)?a.to=so(t):o.changes.push(ko(e,t));else{var s=Q(i.done);for(s&&s.ranges||Mo(e.sel,i.done),o={changes:[ko(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=l,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||ge(e,"historyAdded")}function No(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Lo(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||No(e,o,Q(i.done),t))?i.done[i.done.length-1]=t:Mo(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Ao(i.undone)}function Mo(e,t){var n=Q(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Do(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Po(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Zo(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(Po(n[i]));return r}function Bo(e,t){var n=Zo(e,t),r=Rt(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var l=0;l<a.length;++l){for(var s=a[l],c=0;c<o.length;++c)if(o[c].marker==s.marker)continue e;o.push(s)}else a&&(n[i]=a)}return n}function To(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?io.prototype.deepCopy.call(o):o);else{var a=o.changes,l=[];r.push({changes:l});for(var s=0;s<a.length;++s){var c=a[s],u=void 0;if(l.push({from:c.from,to:c.to,text:c.text}),t)for(var d in c)(u=d.match(/^spans_(\d+)$/))&&W(t,Number(u[1]))>-1&&(Q(l)[d]=c[d],delete c[d])}}}return r}function jo(e,t,n,r){if(r){var i=e.anchor;if(n){var o=at(t,i)<0;o!=at(n,i)<0?(i=t,t=n):o!=at(t,n)<0&&(t=n)}return new oo(i,t)}return new oo(n||t,t)}function Io(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Ho(e,new io([jo(e.sel.primary(),t,n,i)],0),r)}function Fo(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=jo(e.sel.ranges[o],t[o],null,i);Ho(e,ao(e.cm,r,e.sel.primIndex),n)}function Oo(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Ho(e,ao(e.cm,i,e.sel.primIndex),r)}function Ro(e,t,n,r){Ho(e,lo(t,n),r)}function Wo(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new oo(ht(e,t[n].anchor),ht(e,t[n].head))},origin:n&&n.origin};return ge(e,"beforeSelectionChange",e,r),e.cm&&ge(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?ao(e.cm,r.ranges,r.ranges.length-1):t}function zo(e,t,n){var r=e.history.done,i=Q(r);i&&i.ranges?(r[r.length-1]=t,Vo(e,t,n)):Ho(e,t,n)}function Ho(e,t,n){Vo(e,t,n),Lo(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Vo(e,t,n){(be(e,"beforeSelectionChange")||e.cm&&be(e.cm,"beforeSelectionChange"))&&(t=Wo(e,t,n));var r=n&&n.bias||(at(t.primary().head,e.sel.primary().head)<0?-1:1);Ko(e,Uo(e,t,r,!0)),n&&!1===n.scroll||!e.cm||li(e.cm)}function Ko(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,xe(e.cm)),Mn(e,"cursorActivity",e))}function Yo(e){Ko(e,Uo(e,e.sel,null,!1))}function Uo(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],l=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],s=Xo(e,a.anchor,l&&l.anchor,n,r),c=Xo(e,a.head,l&&l.head,n,r);(i||s!=a.anchor||c!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new oo(s,c))}return i?ao(e.cm,i,t.primIndex):t}function Go(e,t,n,r,i){var o=qe(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var l=o.markedSpans[a],s=l.marker,c="selectLeft"in s?!s.selectLeft:s.inclusiveLeft,u="selectRight"in s?!s.selectRight:s.inclusiveRight;if((null==l.from||(c?l.from<=t.ch:l.from<t.ch))&&(null==l.to||(u?l.to>=t.ch:l.to>t.ch))){if(i&&(ge(s,"beforeCursorEnter"),s.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!s.atomic)continue;if(n){var d=s.find(r<0?1:-1),h=void 0;if((r<0?u:c)&&(d=Qo(e,d,-r,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(h=at(d,n))&&(r<0?h<0:h>0))return Go(e,d,t,r,i)}var f=s.find(r<0?-1:1);return(r<0?c:u)&&(f=Qo(e,f,r,f.line==t.line?o:null)),f?Go(e,f,t,r,i):null}}return t}function Xo(e,t,n,r,i){var o=r||1,a=Go(e,t,n,o,i)||!i&&Go(e,t,n,o,!0)||Go(e,t,n,-o,i)||!i&&Go(e,t,n,-o,!0);return a||(e.cantEdit=!0,ot(e.first,0))}function Qo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ht(e,ot(t.line-1)):null:n>0&&t.ch==(r||qe(e,t.line)).text.length?t.line<e.first+e.size-1?ot(t.line+1,0):null:new ot(t.line,t.ch+n)}function Jo(e){e.setSelection(ot(e.firstLine(),0),ot(e.lastLine()),V)}function qo(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=ht(e,t)),n&&(r.to=ht(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),ge(e,"beforeChange",e,r),e.cm&&ge(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function _o(e,t,n){if(e.cm){if(!e.cm.curOp)return Zi(e.cm,_o)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(be(e,"beforeChange")||e.cm&&be(e.cm,"beforeChange"))||(t=qo(e,t,!0))){var r=Mt&&!n&&zt(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)$o(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else $o(e,t)}}function $o(e,t){if(1!=t.text.length||""!=t.text[0]||0!=at(t.from,t.to)){var n=uo(e,t);Eo(e,t,n,e.cm?e.cm.curOp.id:NaN),na(e,t,n,Rt(e,t));var r=[];yo(e,(function(e,n){n||-1!=W(r,e.history)||(la(e.history,t),r.push(e.history)),na(e,t,null,Rt(e,t))}))}}function ea(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,l="undo"==t?o.done:o.undone,s="undo"==t?o.undone:o.done,c=0;c<l.length&&(i=l[c],n?!i.ranges||i.equals(e.sel):i.ranges);c++);if(c!=l.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=l.pop()).ranges){if(r)return void l.push(i);break}if(Mo(i,s),n&&!i.equals(e.sel))return void Ho(e,i,{clearRedo:!1});a=i}var u=[];Mo(a,s),s.push({changes:u,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var d=be(e,"beforeChange")||e.cm&&be(e.cm,"beforeChange"),h=function(n){var r=i.changes[n];if(r.origin=t,d&&!qo(e,r,!1))return l.length=0,{};u.push(ko(e,r));var o=n?uo(e,r):Q(l);na(e,r,o,Bo(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:so(r)});var a=[];yo(e,(function(e,t){t||-1!=W(a,e.history)||(la(e.history,r),a.push(e.history)),na(e,r,null,Bo(e,r))}))},f=i.changes.length-1;f>=0;--f){var p=h(f);if(p)return p.v}}}}function ta(e,t){if(0!=t&&(e.first+=t,e.sel=new io(J(e.sel.ranges,(function(e){return new oo(ot(e.anchor.line+t,e.anchor.ch),ot(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Fr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)Or(e.cm,r,"gutter")}}function na(e,t,n,r){if(e.cm&&!e.cm.curOp)return Zi(e.cm,na)(e,t,n,r);if(t.to.line<e.first)ta(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);ta(e,i),t={from:ot(e.first,0),to:ot(t.to.line+i,t.to.ch),text:[Q(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:ot(o,qe(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=_e(e,t.from,t.to),n||(n=uo(e,t)),e.cm?ra(e.cm,t,r):go(e,t,r),Vo(e,n,V),e.cantEdit&&Xo(e,ot(e.firstLine(),0))&&(e.cantEdit=!1)}}function ra(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,l=!1,s=o.line;e.options.lineWrapping||(s=tt(_t(qe(r,o.line))),r.iter(s,a.line+1,(function(e){if(e==i.maxLine)return l=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&xe(e),go(r,t,n,Br(e)),e.options.lineWrapping||(r.iter(s,o.line+t.text.length,(function(e){var t=ln(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,l=!1)})),l&&(e.curOp.updateMaxLine=!0)),Lt(r,o.line),ji(e,400);var c=t.text.length-(a.line-o.line)-1;t.full?Fr(e):o.line!=a.line||1!=t.text.length||vo(e.doc,t)?Fr(e,o.line,a.line+1,c):Or(e,o.line,"text");var u=be(e,"changes"),d=be(e,"change");if(d||u){var h={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&Mn(e,"change",e,h),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}e.display.selForContextMenu=null}function ia(e,t,n,r,i){var o;r||(r=n),at(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),_o(e,{from:n,to:r,text:t,origin:i})}function oa(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function aa(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var l=0;l<o.ranges.length;l++)oa(o.ranges[l].anchor,t,n,r),oa(o.ranges[l].head,t,n,r)}else{for(var s=0;s<o.changes.length;++s){var c=o.changes[s];if(n<c.from.line)c.from=ot(c.from.line+r,c.from.ch),c.to=ot(c.to.line+r,c.to.ch);else if(t<=c.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function la(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;aa(e.done,n,r,i),aa(e.undone,n,r,i)}function sa(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=qe(e,dt(e,t)):i=tt(t),null==i?null:(r(o,i)&&e.cm&&Or(e.cm,i,n),o)}function ca(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function ua(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}oo.prototype.from=function(){return ut(this.anchor,this.head)},oo.prototype.to=function(){return ct(this.anchor,this.head)},oo.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},ca.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,dn(i),Mn(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},ua.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof ca))){var l=[];this.collapse(l),this.children=[new ca(l)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,l=a;l<i.lines.length;){var s=new ca(i.lines.slice(l,l+=25));i.height-=s.height,this.children.splice(++r,0,s),s.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new ua(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=W(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new ua(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var da=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function ha(e,t,n){an(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&ai(e,n)}function fa(e,t,n,r){var i=new da(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),sa(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length-1,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!rn(e,t)){var r=an(t)<e.scrollTop;et(t,t.height+Vn(i)),r&&ai(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&Mn(o,"lineWidgetAdded",o,i,"number"==typeof t?t:tt(t)),i}da.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=tt(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=Vn(this);et(n,Math.max(0,n.height-o)),e&&(Pi(e,(function(){ha(e,n,-o),Or(e,r,"widget")})),Mn(e,"lineWidgetCleared",e,this,r))}},da.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=Vn(this)-t;i&&(rn(this.doc,r)||et(r,r.height+i),n&&Pi(n,(function(){n.curOp.forceUpdate=!0,ha(n,r,i),Mn(n,"lineWidgetChanged",n,e,tt(r))})))},we(da);var pa=0,ma=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++pa};function va(e,t,n,r,i){if(r&&r.shared)return ya(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return Zi(e.cm,va)(e,t,n,r,i);var o=new ma(e,i),a=at(t,n);if(r&&F(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=D("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(qt(e,t.line,t,n,o)||t.line!=n.line&&qt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Zt()}o.addToHistory&&Eo(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var l,s=t.line,c=e.cm;if(e.iter(s,n.line+1,(function(e){c&&o.collapsed&&!c.options.lineWrapping&&_t(e)==c.display.maxLine&&(l=!0),o.collapsed&&s!=t.line&&et(e,0),It(e,new Bt(o,s==t.line?t.ch:null,s==n.line?n.ch:null)),++s})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){rn(e,t)&&et(t,0)})),o.clearOnEnter&&pe(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Pt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++pa,o.atomic=!0),c){if(l&&(c.curOp.updateMaxLine=!0),o.collapsed)Fr(c,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=t.line;u<=n.line;u++)Or(c,u,"text");o.atomic&&Yo(c.doc),Mn(c,"markerAdded",c,o)}return o}ma.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&ki(e),be(this,"clear")){var n=this.find();n&&Mn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],l=Tt(a.markedSpans,this);e&&!this.collapsed?Or(e,tt(a),"text"):e&&(null!=l.to&&(i=tt(a)),null!=l.from&&(r=tt(a))),a.markedSpans=jt(a.markedSpans,l),null==l.from&&this.collapsed&&!rn(this.doc,a)&&e&&et(a,Mr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var s=0;s<this.lines.length;++s){var c=_t(this.lines[s]),u=ln(c);u>e.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Fr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Yo(e.doc)),e&&Mn(e,"markerCleared",e,this,r,i),t&&Ai(e),this.parent&&this.parent.clear()}},ma.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=Tt(o.markedSpans,this);if(null!=a.from&&(n=ot(t?o:tt(o),a.from),-1==e))return n;if(null!=a.to&&(r=ot(t?o:tt(o),a.to),1==e))return r}return n&&{from:n,to:r}},ma.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Pi(r,(function(){var i=t.line,o=tt(t.line),a=tr(r,o);if(a&&(ur(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!rn(n.doc,i)&&null!=n.height){var l=n.height;n.height=null;var s=Vn(n)-l;s&&et(i,i.height+s)}Mn(r,"markerChanged",r,e)}))},ma.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=W(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ma.prototype.detachLine=function(e){if(this.lines.splice(W(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},we(ma);var ga=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function ya(e,t,n,r,i){(r=F(r)).shared=!1;var o=[va(e,t,n,r,i)],a=o[0],l=r.widgetNode;return yo(e,(function(e){l&&(r.widgetNode=l.cloneNode(!0)),o.push(va(e,ht(e,t),ht(e,n),r,i));for(var s=0;s<e.linked.length;++s)if(e.linked[s].isParent)return;a=Q(o)})),new ga(o,a)}function xa(e){return e.findMarks(ot(e.first,0),e.clipPos(ot(e.lastLine())),(function(e){return e.parent}))}function ba(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(at(o,a)){var l=va(e,o,a,r.primary,r.primary.type);r.markers.push(l),l.parent=r}}}function wa(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];yo(n.primary.doc,(function(e){return r.push(e)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==W(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}ga.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Mn(this,"clear")}},ga.prototype.find=function(e,t){return this.primary.find(e,t)},we(ga);var Ca=0,ka=function(e,t,n,r,i){if(!(this instanceof ka))return new ka(e,t,n,r,i);null==n&&(n=0),ua.call(this,[new ca([new cn("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=ot(n,0);this.sel=lo(o),this.history=new Co(null),this.id=++Ca,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),go(this,{from:o,to:o,text:e}),Ho(this,lo(o),V)};ka.prototype=$(ua.prototype,{constructor:ka,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=$e(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Ti((function(e){var t=ot(this.first,0),n=this.first+this.size-1;_o(this,{from:t,to:ot(n,qe(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&si(this.cm,0,0),Ho(this,lo(t),V)})),replaceRange:function(e,t,n,r){ia(this,e,t=ht(this,t),n=n?ht(this,n):t,r)},getRange:function(e,t,n){var r=_e(this,ht(this,e),ht(this,t));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(rt(this,e))return qe(this,e)},getLineNumber:function(e){return tt(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=qe(this,e)),_t(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ht(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ti((function(e,t,n){Ro(this,ht(this,"number"==typeof e?ot(e,t||0):e),null,n)})),setSelection:Ti((function(e,t,n){Ro(this,ht(this,e),ht(this,t||e),n)})),extendSelection:Ti((function(e,t,n){Io(this,ht(this,e),t&&ht(this,t),n)})),extendSelections:Ti((function(e,t){Fo(this,pt(this,e),t)})),extendSelectionsBy:Ti((function(e,t){Fo(this,pt(this,J(this.sel.ranges,e)),t)})),setSelections:Ti((function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new oo(ht(this,e[i].anchor),ht(this,e[i].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Ho(this,ao(this.cm,r,t),n)}})),addSelection:Ti((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new oo(ht(this,e),ht(this,t||e))),Ho(this,ao(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=_e(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=_e(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:Ti((function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var l=t&&"end"!=t&&fo(this,r,t),s=r.length-1;s>=0;s--)_o(this,r[s]);l?zo(this,l):this.cm&&li(this.cm)})),undo:Ti((function(){ea(this,"undo")})),redo:Ti((function(){ea(this,"redo")})),undoSelection:Ti((function(){ea(this,"undo",!0)})),redoSelection:Ti((function(){ea(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new Co(this.history.maxGeneration),yo(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:To(this.history.done),undone:To(this.history.undone)}},setHistory:function(e){var t=this.history=new Co(this.history.maxGeneration);t.done=To(e.done.slice(0),null,!0),t.undone=To(e.undone.slice(0),null,!0)},setGutterMarker:Ti((function(e,t,n){return sa(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&re(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:Ti((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&sa(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,re(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!rt(this,e))return null;if(t=e,!(e=qe(this,e)))return null}else if(null==(t=tt(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Ti((function(e,t,n){return sa(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(A(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:Ti((function(e,t,n){return sa(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(A(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:Ti((function(e,t,n){return fa(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return va(this,ht(this,e),ht(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return va(this,e=ht(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=qe(this,(e=ht(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=ht(this,e),t=ht(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var l=0;l<a.length;l++){var s=a[l];null!=s.to&&i==e.line&&e.ch>=s.to||null==s.from&&i!=e.line||null!=s.from&&i==t.line&&s.from>=t.ch||n&&!n(s.marker)||r.push(s.marker.parent||s.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n})),ht(this,ot(n,t))},indexFromPos:function(e){var t=(e=ht(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new ka($e(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new ka($e(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],ba(r,xa(this)),r},unlinkDoc:function(e){if(e instanceof Fl&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),wa(xa(this));break}if(e.history==this.history){var n=[e.id];yo(e,(function(e){return n.push(e.id)}),!0),e.history=new Co(null),e.history.done=To(this.history.done,n),e.history.undone=To(this.history.undone,n)}},iterLinkedDocs:function(e){yo(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Te(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Ti((function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&wo(this.cm))}))}),ka.prototype.eachLine=ka.prototype.iter;var Aa=0;function Sa(e){var t=this;if(La(t),!ye(t,e)&&!Kn(t.display,e)){Ce(e),a&&(Aa=+new Date);var n=jr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),l=0,s=function(){++l==i&&Zi(t,(function(){var e={from:n=ht(t.doc,n),to:n,text:t.doc.splitLines(o.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};_o(t.doc,e),zo(t.doc,lo(ht(t.doc,n),ht(t.doc,so(e))))}))()},c=function(e,n){if(t.options.allowDropFileTypes&&-1==W(t.options.allowDropFileTypes,e.type))s();else{var r=new FileReader;r.onerror=function(){return s()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),s()},r.readAsText(e)}},u=0;u<r.length;u++)c(r[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var d=e.dataTransfer.getData("Text");if(d){var h;if(t.state.draggingText&&!t.state.draggingText.copy&&(h=t.listSelections()),Vo(t.doc,lo(n,n)),h)for(var f=0;f<h.length;++f)ia(t.doc,"",h[f].anchor,h[f].head,"drag");t.replaceSelection(d,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Ea(e,t){if(a&&(!e.state.draggingText||+new Date-Aa<100))Se(t);else if(!ye(e,t)&&!Kn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!h)){var n=M("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),d&&n.parentNode.removeChild(n)}}function Na(e,t){var n=jr(e,t);if(n){var r=document.createDocumentFragment();Yr(e,n,r),e.display.dragCursor||(e.display.dragCursor=M("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),L(e.display.dragCursor,r)}}function La(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Ma(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var Da=!1;function Pa(){Da||(Za(),Da=!0)}function Za(){var e;pe(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Ma(Ba)}),100))})),pe(window,"blur",(function(){return Ma(_r)}))}function Ba(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Ta={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ja=0;ja<10;ja++)Ta[ja+48]=Ta[ja+96]=String(ja);for(var Ia=65;Ia<=90;Ia++)Ta[Ia]=String.fromCharCode(Ia);for(var Fa=1;Fa<=12;Fa++)Ta[Fa+111]=Ta[Fa+63235]="F"+Fa;var Oa={};function Ra(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var l=o[a];if(/^(cmd|meta|m)$/i.test(l))i=!0;else if(/^a(lt)?$/i.test(l))t=!0;else if(/^(c|ctrl|control)$/i.test(l))n=!0;else{if(!/^s(hift)?$/i.test(l))throw new Error("Unrecognized modifier name: "+l);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Wa(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=J(n.split(" "),Ra),o=0;o<i.length;o++){var a=void 0,l=void 0;o==i.length-1?(l=i.join(" "),a=r):(l=i.slice(0,o+1).join(" "),a="...");var s=t[l];if(s){if(s!=a)throw new Error("Inconsistent bindings for "+l)}else t[l]=a}delete e[n]}for(var c in t)e[c]=t[c];return e}function za(e,t,n,r){var i=(t=Ya(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return za(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=za(e,t.fallthrough[o],n,r);if(a)return a}}}function Ha(e){var t="string"==typeof e?e:Ta[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Va(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(C?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(C?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Ka(e,t){if(d&&34==e.keyCode&&e.char)return!1;var n=Ta[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Va(n,e,t))}function Ya(e){return"string"==typeof e?Oa[e]:e}function Ua(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&at(o.from,Q(r).to)<=0;){var a=r.pop();if(at(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Pi(e,(function(){for(var t=r.length-1;t>=0;t--)ia(e.doc,"",r[t].from,r[t].to,"+delete");li(e)}))}function Ga(e,t,n){var r=ae(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Xa(e,t,n){var r=Ga(e,t.ch,n);return null==r?null:new ot(t.line,r,n<0?"after":"before")}function Qa(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=he(n,t.doc.direction);if(o){var a,l=i<0?Q(o):o[0],s=i<0==(1==l.level)?"after":"before";if(l.level>0||"rtl"==t.doc.direction){var c=nr(t,n);a=i<0?n.text.length-1:0;var u=rr(t,c,a).top;a=le((function(e){return rr(t,c,e).top==u}),i<0==(1==l.level)?l.from:l.to-1,a),"before"==s&&(a=Ga(n,a,1))}else a=i<0?l.to:l.from;return new ot(r,a,s)}}return new ot(r,i<0?n.text.length:0,i<0?"before":"after")}function Ja(e,t,n,r){var i=he(t,e.doc.direction);if(!i)return Xa(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=ue(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return Xa(t,n,r);var l,s=function(e,n){return Ga(t,e instanceof ot?e.ch:e,n)},c=function(n){return e.options.lineWrapping?(l=l||nr(e,t),Ar(e,t,l,n)):{begin:0,end:t.text.length}},u=c("before"==n.sticky?s(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var d=1==a.level==r<0,h=s(n,d?1:-1);if(null!=h&&(d?h<=a.to&&h<=u.end:h>=a.from&&h>=u.begin)){var f=d?"before":"after";return new ot(n.line,h,f)}}var p=function(e,t,r){for(var o=function(e,t){return t?new ot(n.line,s(e,1),"before"):new ot(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],l=t>0==(1!=a.level),c=l?r.begin:s(r.end,-1);if(a.from<=c&&c<a.to)return o(c,l);if(c=l?a.from:s(a.to,-1),r.begin<=c&&c<r.end)return o(c,l)}},m=p(o+r,r,u);if(m)return m;var v=r>0?u.end:s(u.begin,-1);return null==v||r>0&&v==t.text.length||!(m=p(r>0?0:i.length-1,r,c(v)))?null:m}Oa.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Oa.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Oa.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Oa.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Oa.default=y?Oa.macDefault:Oa.pcDefault;var qa={selectAll:Jo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),V)},killLine:function(e){return Ua(e,(function(t){if(t.empty()){var n=qe(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:ot(t.head.line+1,0)}:{from:t.head,to:ot(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return Ua(e,(function(t){return{from:ot(t.from().line,0),to:ht(e.doc,ot(t.to().line+1,0))}}))},delLineLeft:function(e){return Ua(e,(function(e){return{from:ot(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return Ua(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return Ua(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(ot(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ot(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return _a(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return el(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return $a(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),Y)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),Y)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?el(e,t.head):r}),Y)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=O(e.getLine(o.line),o.ch,r);t.push(X(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Pi(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=qe(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new ot(i.line,i.ch-1)),i.ch>0)i=new ot(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ot(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=qe(e.doc,i.line-1).text;a&&(i=new ot(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),ot(i.line-1,a.length-1),i,"+transpose"))}n.push(new oo(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Pi(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);li(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function _a(e,t){var n=qe(e.doc,t),r=_t(n);return r!=n&&(t=tt(r)),Qa(!0,e,r,t,1)}function $a(e,t){var n=qe(e.doc,t),r=$t(n);return r!=n&&(t=tt(r)),Qa(!0,e,n,t,-1)}function el(e,t){var n=_a(e,t.line),r=qe(e.doc,n.line),i=he(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return ot(n.line,a?0:o,n.sticky)}return n}function tl(e,t,n){if("string"==typeof t&&!(t=qa[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=H}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function nl(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=za(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&za(t,e.options.extraKeys,n,e)||za(t,e.options.keyMap,n,e)}var rl=new R;function il(e,t,n,r){var i=e.state.keySeq;if(i){if(Ha(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:rl.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),ol(e,i+" "+t,n,r))return!0}return ol(e,t,n,r)}function ol(e,t,n,r){var i=nl(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&Mn(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(Ce(n),Xr(e)),!!i}function al(e,t){var n=Ka(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?il(e,"Shift-"+n,t,(function(t){return tl(e,t,!0)}))||il(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return tl(e,t)})):il(e,n,t,(function(t){return tl(e,t)})))}function ll(e,t,n){return il(e,"'"+n+"'",t,(function(t){return tl(e,t,!0)}))}var sl=null;function cl(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=Z(),ye(t,e)))){a&&l<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=al(t,e);d&&(sl=i?r:null,i||88!=r||Ie||!(y?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!y&&!i&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||ul(t)}}function ul(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(E(t,"CodeMirror-crosshair"),ve(document,"keyup",n),ve(document,"mouseover",n))}B(t,"CodeMirror-crosshair"),pe(document,"keyup",n),pe(document,"mouseover",n)}function dl(e){16==e.keyCode&&(this.doc.sel.shift=!1),ye(this,e)}function hl(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||Kn(t.display,e)||ye(t,e)||e.ctrlKey&&!e.altKey||y&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(d&&n==sl)return sl=null,void Ce(e);if(!d||e.which&&!(e.which<10)||!al(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(ll(t,e,i)||t.display.input.onKeyPress(e))}}}var fl,pl,ml=400,vl=function(e,t,n){this.time=e,this.pos=t,this.button=n};function gl(e,t){var n=+new Date;return pl&&pl.compare(n,e,t)?(fl=pl=null,"triple"):fl&&fl.compare(n,e,t)?(pl=new vl(n,e,t),fl=null,"double"):(fl=new vl(n,e,t),pl=null,"single")}function yl(e){var t=this,n=t.display;if(!(ye(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Kn(n,e))s||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!Nl(t,e)){var r=jr(t,e),i=Ne(e),o=r?gl(r,i):"single";window.focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&xl(t,i,r,o,e)||(1==i?r?wl(t,r,o,e):Ee(e)==n.scroller&&Ce(e):2==i?(r&&Io(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(k?t.display.input.onContextMenu(e):Jr(t)))}}function xl(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),il(e,Va(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,(function(t){if("string"==typeof t&&(t=qa[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=H}finally{e.state.suppressEdits=!1}return r}))}function bl(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=x?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=y?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(y?n.altKey:n.ctrlKey)),i}function wl(e,t,n,r){a?setTimeout(I(Qr,e),0):e.curOp.focus=Z();var i,o=bl(e,n,r),l=e.doc.sel;e.options.dragDrop&&De&&!e.isReadOnly()&&"single"==n&&(i=l.contains(t))>-1&&(at((i=l.ranges[i]).from(),t)<0||t.xRel>0)&&(at(i.to(),t)>0||t.xRel<0)?Cl(e,r,t,o):Al(e,r,t,o)}function Cl(e,t,n,r){var i=e.display,o=!1,c=Zi(e,(function(t){s&&(i.scroller.draggable=!1),e.state.draggingText=!1,ve(i.wrapper.ownerDocument,"mouseup",c),ve(i.wrapper.ownerDocument,"mousemove",u),ve(i.scroller,"dragstart",d),ve(i.scroller,"drop",c),o||(Ce(t),r.addNew||Io(e.doc,n,null,null,r.extend),s&&!h||a&&9==l?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),u=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return o=!0};s&&(i.scroller.draggable=!0),e.state.draggingText=c,c.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),pe(i.wrapper.ownerDocument,"mouseup",c),pe(i.wrapper.ownerDocument,"mousemove",u),pe(i.scroller,"dragstart",d),pe(i.scroller,"drop",c),Jr(e),setTimeout((function(){return i.input.focus()}),20)}function kl(e,t,n){if("char"==n)return new oo(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new oo(ot(t.line,0),ht(e.doc,ot(t.line+1,0)));var r=n(e,t);return new oo(r.from,r.to)}function Al(e,t,n,r){var i=e.display,o=e.doc;Ce(t);var a,l,s=o.sel,c=s.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),a=l>-1?c[l]:new oo(n,n)):(a=o.sel.primary(),l=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(a=new oo(n,n)),n=jr(e,t,!0,!0),l=-1;else{var u=kl(e,n,r.unit);a=r.extend?jo(a,u.anchor,u.head,r.extend):u}r.addNew?-1==l?(l=c.length,Ho(o,ao(e,c.concat([a]),l),{scroll:!1,origin:"*mouse"})):c.length>1&&c[l].empty()&&"char"==r.unit&&!r.extend?(Ho(o,ao(e,c.slice(0,l).concat(c.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):Oo(o,l,a,K):(l=0,Ho(o,new io([a],0),K),s=o.sel);var d=n;function h(t){if(0!=at(d,t))if(d=t,"rectangle"==r.unit){for(var i=[],c=e.options.tabSize,u=O(qe(o,n.line).text,n.ch,c),h=O(qe(o,t.line).text,t.ch,c),f=Math.min(u,h),p=Math.max(u,h),m=Math.min(n.line,t.line),v=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=v;m++){var g=qe(o,m).text,y=U(g,f,c);f==p?i.push(new oo(ot(m,y),ot(m,y))):g.length>y&&i.push(new oo(ot(m,y),ot(m,U(g,p,c))))}i.length||i.push(new oo(n,n)),Ho(o,ao(e,s.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var x,b=a,w=kl(e,t,r.unit),C=b.anchor;at(w.anchor,C)>0?(x=w.head,C=ut(b.from(),w.anchor)):(x=w.anchor,C=ct(b.to(),w.head));var k=s.ranges.slice(0);k[l]=Sl(e,new oo(ht(o,C),x)),Ho(o,ao(e,k,l),K)}}var f=i.wrapper.getBoundingClientRect(),p=0;function m(t){var n=++p,a=jr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=at(a,d)){e.curOp.focus=Z(),h(a);var l=ti(i,o);(a.line>=l.to||a.line<l.from)&&setTimeout(Zi(e,(function(){p==n&&m(t)})),150)}else{var s=t.clientY<f.top?-20:t.clientY>f.bottom?20:0;s&&setTimeout(Zi(e,(function(){p==n&&(i.scroller.scrollTop+=s,m(t))})),50)}}function v(t){e.state.selectingText=!1,p=1/0,t&&(Ce(t),i.input.focus()),ve(i.wrapper.ownerDocument,"mousemove",g),ve(i.wrapper.ownerDocument,"mouseup",y),o.history.lastSelOrigin=null}var g=Zi(e,(function(e){0!==e.buttons&&Ne(e)?m(e):v(e)})),y=Zi(e,v);e.state.selectingText=y,pe(i.wrapper.ownerDocument,"mousemove",g),pe(i.wrapper.ownerDocument,"mouseup",y)}function Sl(e,t){var n=t.anchor,r=t.head,i=qe(e.doc,n.line);if(0==at(n,r)&&n.sticky==r.sticky)return t;var o=he(i);if(!o)return t;var a=ue(o,n.ch,n.sticky),l=o[a];if(l.from!=n.ch&&l.to!=n.ch)return t;var s,c=a+(l.from==n.ch==(1!=l.level)?0:1);if(0==c||c==o.length)return t;if(r.line!=n.line)s=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=ue(o,r.ch,r.sticky),d=u-a||(r.ch-n.ch)*(1==l.level?-1:1);s=u==c-1||u==c?d<0:d>0}var h=o[c+(s?-1:0)],f=s==(1==h.level),p=f?h.from:h.to,m=f?"after":"before";return n.ch==p&&n.sticky==m?t:new oo(new ot(n.line,p,m),r)}function El(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Ce(t);var a=e.display,l=a.lineDiv.getBoundingClientRect();if(o>l.bottom||!be(e,n))return Ae(t);o-=l.top-a.viewOffset;for(var s=0;s<e.display.gutterSpecs.length;++s){var c=a.gutters.childNodes[s];if(c&&c.getBoundingClientRect().right>=i)return ge(e,n,e,nt(e.doc,o),e.display.gutterSpecs[s].className,t),Ae(t)}}function Nl(e,t){return El(e,t,"gutterClick",!0)}function Ll(e,t){Kn(e.display,t)||Ml(e,t)||ye(e,t,"contextmenu")||k||e.display.input.onContextMenu(t)}function Ml(e,t){return!!be(e,"gutterContextMenu")&&El(e,t,"gutterContextMenu",!1)}function Dl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),hr(e)}vl.prototype.compare=function(e,t,n){return this.time+ml>e&&0==at(t,this.pos)&&n==this.button};var Pl={toString:function(){return"CodeMirror.Init"}},Zl={},Bl={};function Tl(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Pl&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Pl,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,po(e)}),!0),n("indentUnit",2,po,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){mo(e),hr(e),Fr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(ot(r,o))}r++}));for(var i=n.length-1;i>=0;i--)ia(e.doc,t,n[i],ot(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Pl&&e.refresh()})),n("specialCharPlaceholder",vn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",g?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!b),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Dl(e),qi(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Ya(t),i=n!=Pl&&Ya(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Il,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=Qi(t,e.options.lineNumbers),qi(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Zr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return yi(e)}),!0),n("scrollbarStyle","native",(function(e){wi(e),yi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Qi(e.options.gutters,t),qi(e)}),!0),n("firstLineNumber",1,qi,!0),n("lineNumberFormatter",(function(e){return e}),qi,!0),n("showCursorWhenSelecting",!1,Vr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(_r(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,jl),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Vr,!0),n("singleCursorHeightPerLine",!0,Vr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,mo,!0),n("addModeClass",!1,mo,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,mo,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function jl(e,t,n){if(!t!=!(n&&n!=Pl)){var r=e.display.dragFunctions,i=t?pe:ve;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Il(e){e.options.lineWrapping?(B(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(E(e.display.wrapper,"CodeMirror-wrap"),sn(e)),Tr(e),Fr(e),hr(e),setTimeout((function(){return yi(e)}),100)}function Fl(e,t){var n=this;if(!(this instanceof Fl))return new Fl(e,t);this.options=t=t?F(t):{},F(Zl,t,!1);var r=t.value;"string"==typeof r?r=new ka(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Fl.inputStyles[t.inputStyle](this),o=this.display=new _i(e,r,i,t);for(var c in o.wrapper.CodeMirror=this,Dl(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),wi(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 R,keySeq:null,specialChars:null},t.autofocus&&!g&&o.input.focus(),a&&l<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Ol(this),Pa(),ki(this),this.curOp.forceUpdate=!0,xo(this,r),t.autofocus&&!g||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&qr(n)}),20):_r(this),Bl)Bl.hasOwnProperty(c)&&Bl[c](this,t[c],Pl);Xi(this),t.finishInit&&t.finishInit(this);for(var u=0;u<Rl.length;++u)Rl[u](this);Ai(this),s&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Ol(e){var t=e.display;pe(t.scroller,"mousedown",Zi(e,yl)),pe(t.scroller,"dblclick",a&&l<11?Zi(e,(function(t){if(!ye(e,t)){var n=jr(e,t);if(n&&!Nl(e,t)&&!Kn(e.display,t)){Ce(t);var r=e.findWordAt(n);Io(e.doc,r.anchor,r.head)}}})):function(t){return ye(e,t)||Ce(t)}),pe(t.scroller,"contextmenu",(function(t){return Ll(e,t)})),pe(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||Ll(e,n)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function o(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function s(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}pe(t.scroller,"touchstart",(function(i){if(!ye(e,i)&&!o(i)&&!Nl(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),pe(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),pe(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!Kn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||s(r,r.prev)?new oo(a,a):!r.prev.prev||s(r,r.prev.prev)?e.findWordAt(a):new oo(ot(a.line,0),ht(e.doc,ot(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),Ce(n)}i()})),pe(t.scroller,"touchcancel",i),pe(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(hi(e,t.scroller.scrollTop),pi(e,t.scroller.scrollLeft,!0),ge(e,"scroll",e))})),pe(t.scroller,"mousewheel",(function(t){return ro(e,t)})),pe(t.scroller,"DOMMouseScroll",(function(t){return ro(e,t)})),pe(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){ye(e,t)||Se(t)},over:function(t){ye(e,t)||(Na(e,t),Se(t))},start:function(t){return Ea(e,t)},drop:Zi(e,Sa),leave:function(t){ye(e,t)||La(e)}};var c=t.input.getField();pe(c,"keyup",(function(t){return dl.call(e,t)})),pe(c,"keydown",Zi(e,cl)),pe(c,"keypress",Zi(e,hl)),pe(c,"focus",(function(t){return qr(e,t)})),pe(c,"blur",(function(t){return _r(e,t)}))}Fl.defaults=Zl,Fl.optionHandlers=Bl;var Rl=[];function Wl(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=xt(e,t).state:n="prev");var a=e.options.tabSize,l=qe(o,t),s=O(l.text,null,a);l.stateAfter&&(l.stateAfter=null);var c,u=l.text.match(/^\s*/)[0];if(r||/\S/.test(l.text)){if("smart"==n&&((c=o.mode.indent(i,l.text.slice(u.length),l.text))==H||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?O(qe(o,t-1).text,null,a):0:"add"==n?c=s+e.options.indentUnit:"subtract"==n?c=s-e.options.indentUnit:"number"==typeof n&&(c=s+n),c=Math.max(0,c);var d="",h=0;if(e.options.indentWithTabs)for(var f=Math.floor(c/a);f;--f)h+=a,d+="\t";if(h<c&&(d+=X(c-h)),d!=u)return ia(o,d,ot(t,0),ot(t,u.length),"+input"),l.stateAfter=null,!0;for(var p=0;p<o.sel.ranges.length;p++){var m=o.sel.ranges[p];if(m.head.line==t&&m.head.ch<u.length){var v=ot(t,u.length);Oo(o,p,new oo(v,v));break}}}Fl.defineInitHook=function(e){return Rl.push(e)};var zl=null;function Hl(e){zl=e}function Vl(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,l="paste"==i||e.state.pasteIncoming>a,s=Te(t),c=null;if(l&&r.ranges.length>1)if(zl&&zl.text.join("\n")==t){if(r.ranges.length%zl.text.length==0){c=[];for(var u=0;u<zl.text.length;u++)c.push(o.splitLines(zl.text[u]))}}else s.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(c=J(s,(function(e){return[e]})));for(var d=e.curOp.updateInput,h=r.ranges.length-1;h>=0;h--){var f=r.ranges[h],p=f.from(),m=f.to();f.empty()&&(n&&n>0?p=ot(p.line,p.ch-n):e.state.overwrite&&!l?m=ot(m.line,Math.min(qe(o,m.line).text.length,m.ch+Q(s).length)):l&&zl&&zl.lineWise&&zl.text.join("\n")==s.join("\n")&&(p=m=ot(p.line,0)));var v={from:p,to:m,text:c?c[h%c.length]:s,origin:i||(l?"paste":e.state.cutIncoming>a?"cut":"+input")};_o(e.doc,v),Mn(e,"inputRead",e,v)}t&&!l&&Yl(e,t),li(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Kl(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Pi(t,(function(){return Vl(t,n,0,null,"paste")})),!0}function Yl(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var l=0;l<o.electricChars.length;l++)if(t.indexOf(o.electricChars.charAt(l))>-1){a=Wl(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(qe(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Wl(e,i.head.line,"smart"));a&&Mn(e,"electricInput",e,i.head.line)}}}function Ul(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:ot(i,0),head:ot(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Gl(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function Xl(){var e=M("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=M("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return s?e.style.width="1000px":e.setAttribute("wrap","off"),m&&(e.style.border="1px solid black"),Gl(e),t}function Ql(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&Zi(this,t[e])(this,n,i),ge(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Ya(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:Bi((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");q(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,Fr(this)})),removeOverlay:Bi((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void Fr(this)}})),indentLine:Bi((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),rt(this.doc,e)&&Wl(this,e,t,n)})),indentSelection:Bi((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(Wl(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&li(this));else{var o=i.from(),a=i.to(),l=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var s=l;s<n;++s)Wl(this,s,e);var c=this.doc.sel.ranges;0==o.ch&&t.length==c.length&&c[r].from().ch>0&&Oo(this.doc,r,new oo(o,c[r].to()),V)}}})),getTokenAt:function(e,t){return At(this,e,t)},getLineTokens:function(e,t){return At(this,ot(e),t,!0)},getTokenTypeAt:function(e){e=ht(this.doc,e);var t,n=yt(this,qe(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var l=t?t.indexOf("overlay "):-1;return l<0?t:0==l?null:t.slice(0,l-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var l=i[o[t][a]];l&&r.push(l)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var s=0;s<i._global.length;s++){var c=i._global[s];c.pred(o,this)&&-1==W(r,c.val)&&r.push(c.val)}return r},getStateAfter:function(e,t){var n=this.doc;return xt(this,(e=dt(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return xr(this,null==e?n.head:"object"==typeof e?ht(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return yr(this,ht(this.doc,e),t||"page")},coordsChar:function(e,t){return Cr(this,(e=gr(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=gr(this,{top:e,left:0},t||"page").top,nt(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=qe(this.doc,e)}else r=e;return vr(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-an(r):0)},defaultTextHeight:function(){return Mr(this.display)},defaultCharWidth:function(){return Dr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display,a=(e=xr(this,ht(this.doc,e))).bottom,l=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var s=Math.max(o.wrapper.clientHeight,this.doc.height),c=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>s)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=s&&(a=e.bottom),l+t.offsetWidth>c&&(l=c-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(l=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?l=0:"middle"==i&&(l=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=l+"px"),n&&ii(this,{left:l,top:a,right:l+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Bi(cl),triggerOnKeyPress:Bi(hl),triggerOnKeyUp:dl,triggerOnMouseDown:Bi(yl),execCommand:function(e){if(qa.hasOwnProperty(e))return qa[e].call(null,this)},triggerElectric:Bi((function(e){Yl(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=ht(this.doc,e),a=0;a<t&&!(o=Jl(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:Bi((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Jl(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),Y)})),deleteH:Bi((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Ua(this,(function(n){var i=Jl(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=ht(this.doc,e),l=0;l<t;++l){var s=xr(this,a,"div");if(null==o?o=s.left:s.left=o,(a=ql(this,s,i,n)).hitSide)break}return a},moveV:Bi((function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(o)return e<0?a.from():a.to();var l=xr(n,a.head,"div");null!=a.goalColumn&&(l.left=a.goalColumn),i.push(l.left);var s=ql(n,l,e,t);return"page"==t&&a==r.sel.primary()&&ai(n,yr(n,s,"div").top-l.top),s}),Y),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(e){var t=qe(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),a=ne(o,i)?function(e){return ne(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ne(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new oo(ot(e.line,n),ot(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?B(this.display.cursorDiv,"CodeMirror-overwrite"):E(this.display.cursorDiv,"CodeMirror-overwrite"),ge(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Z()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Bi((function(e,t){si(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Xn(this)-this.display.barHeight,width:e.scrollWidth-Xn(this)-this.display.barWidth,clientHeight:Jn(this),clientWidth:Qn(this)}},scrollIntoView:Bi((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:ot(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?ci(this,e):di(this,e.from,e.to,e.margin)})),setSize:Bi((function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&dr(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Or(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,ge(this,"refresh",this)})),operation:function(e){return Pi(this,e)},startOperation:function(){return ki(this)},endOperation:function(){return Ai(this)},refresh:Bi((function(){var e=this.display.cachedTextHeight;Fr(this),this.curOp.forceUpdate=!0,hr(this),si(this,this.doc.scrollLeft,this.doc.scrollTop),Yi(this.display),(null==e||Math.abs(e-Mr(this.display))>.5||this.options.lineWrapping)&&Tr(this),ge(this,"refresh",this)})),swapDoc:Bi((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),xo(this,e),hr(this),this.display.input.reset(),si(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Mn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},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}},we(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}function Jl(e,t,n,r,i){var o=t,a=n,l=qe(e,t.line),s=i&&"rtl"==e.direction?-n:n;function c(){var n=t.line+s;return!(n<e.first||n>=e.first+e.size)&&(t=new ot(n,t.ch,t.sticky),l=qe(e,n))}function u(o){var a;if("codepoint"==r){var u=l.text.charCodeAt(t.ch+(r>0?0:-1));a=isNaN(u)?null:new ot(t.line,Math.max(0,Math.min(l.text.length,t.ch+n*(u>=55296&&u<56320?2:1))),-n)}else a=i?Ja(e.cm,l,t,n):Xa(l,t,n);if(null==a){if(o||!c())return!1;t=Qa(i,e.cm,l,t.line,s)}else t=a;return!0}if("char"==r||"codepoint"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var d=null,h="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||u(!p);p=!1){var m=l.text.charAt(t.ch)||"\n",v=ne(m,f)?"w":h&&"\n"==m?"n":!h||/\s/.test(m)?null:"p";if(!h||p||v||(v="s"),d&&d!=v){n<0&&(n=1,u(),t.sticky="after");break}if(v&&(d=v),n>0&&!u(!p))break}var g=Xo(e,t,o,a,!0);return lt(o,g)&&(g.hitSide=!0),g}function ql(e,t,n,r){var i,o,a=e.doc,l=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(s-.5*Mr(e.display),3);i=(n>0?t.bottom:t.top)+n*c}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Cr(e,l,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var _l=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new R,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function $l(e,t){var n=tr(e,t.line);if(!n||n.hidden)return null;var r=qe(e.doc,t.line),i=_n(n,r,t.line),o=he(r,e.doc.direction),a="left";o&&(a=ue(o,t.ch)%2?"right":"left");var l=ar(i.map,t.ch,a);return l.offset="right"==l.collapse?l.end:l.start,l}function es(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function ts(e,t){return t&&(e.bad=!0),e}function ns(e,t,n,r,i){var o="",a=!1,l=e.doc.lineSeparator(),s=!1;function c(e){return function(t){return t.id==e}}function u(){a&&(o+=l,s&&(o+=l),a=s=!1)}function d(e){e&&(u(),o+=e)}function h(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void d(n);var o,f=t.getAttribute("cm-marker");if(f){var p=e.findMarks(ot(r,0),ot(i+1,0),c(+f));return void(p.length&&(o=p[0].find(0))&&d(_e(e.doc,o.from,o.to).join(l)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&u();for(var v=0;v<t.childNodes.length;v++)h(t.childNodes[v]);/^(pre|p)$/i.test(t.nodeName)&&(s=!0),m&&(a=!0)}else 3==t.nodeType&&d(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;h(t),t!=n;)t=t.nextSibling,s=!1;return o}function rs(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return ts(e.clipPos(ot(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return is(o,t,n)}}function is(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!P(r,t))return ts(ot(tt(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?Q(e.rest):e.line;return ts(ot(tt(o),o.text.length),i)}var a=3==t.nodeType?t:null,l=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));l.parentNode!=r;)l=l.parentNode;var s=e.measure,c=s.maps;function u(t,n,r){for(var i=-1;i<(c?c.length:0);i++)for(var o=i<0?s.map:c[i],a=0;a<o.length;a+=3){var l=o[a+2];if(l==t||l==n){var u=tt(i<0?e.line:e.rest[i]),d=o[a]+r;return(r<0||l!=t)&&(d=o[a+(r?1:0)]),ot(u,d)}}}var d=u(a,l,n);if(d)return ts(d,i);for(var h=l.nextSibling,f=a?a.nodeValue.length-n:0;h;h=h.nextSibling){if(d=u(h,h.firstChild,0))return ts(ot(d.line,d.ch-f),i);f+=h.textContent.length}for(var p=l.previousSibling,m=n;p;p=p.previousSibling){if(d=u(p,p.firstChild,-1))return ts(ot(d.line,d.ch+m),i);m+=p.textContent.length}}_l.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(o(e)&&!ye(r,e)){if(r.somethingSelected())Hl({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Ul(r);Hl({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,V),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var a=zl.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var l=Xl(),s=l.firstChild;r.display.lineSpace.insertBefore(l,r.display.lineSpace.firstChild),s.value=zl.text.join("\n");var c=document.activeElement;j(s),setTimeout((function(){r.display.lineSpace.removeChild(l),c.focus(),c==i&&n.showPrimarySelection()}),50)}}Gl(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),pe(i,"paste",(function(e){!o(e)||ye(r,e)||Kl(e,r)||l<=11&&setTimeout(Zi(r,(function(){return t.updateFromDOM()})),20)})),pe(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),pe(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),pe(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),pe(i,"touchstart",(function(){return n.forceCompositionEnd()})),pe(i,"input",(function(){t.composing||t.readFromDOMSoon()})),pe(i,"copy",a),pe(i,"cut",a)},_l.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},_l.prototype.prepareSelection=function(){var e=Kr(this.cm,!1);return e.focus=document.activeElement==this.div,e},_l.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},_l.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},_l.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=rs(t,e.anchorNode,e.anchorOffset),l=rs(t,e.focusNode,e.focusOffset);if(!a||a.bad||!l||l.bad||0!=at(ut(a,l),i)||0!=at(ct(a,l),o)){var s=t.display.view,c=i.line>=t.display.viewFrom&&$l(t,i)||{node:s[0].measure.map[2],offset:0},u=o.line<t.display.viewTo&&$l(t,o);if(!u){var d=s[s.length-1].measure,h=d.maps?d.maps[d.maps.length-1]:d.map;u={node:h[h.length-1],offset:h[h.length-2]-h[h.length-3]}}if(c&&u){var f,p=e.rangeCount&&e.getRangeAt(0);try{f=S(c.node,c.offset,u.offset,u.node)}catch(e){}f&&(!n&&t.state.focused?(e.collapse(c.node,c.offset),f.collapsed||(e.removeAllRanges(),e.addRange(f))):(e.removeAllRanges(),e.addRange(f)),p&&null==e.anchorNode?e.addRange(p):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},_l.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},_l.prototype.showMultipleSelections=function(e){L(this.cm.display.cursorDiv,e.cursors),L(this.cm.display.selectionDiv,e.selection)},_l.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},_l.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return P(this.div,t)},_l.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&document.activeElement==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},_l.prototype.blur=function(){this.div.blur()},_l.prototype.getField=function(){return this.div},_l.prototype.supportsTouch=function(){return!0},_l.prototype.receivedFocus=function(){var e=this;function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}this.selectionInEditor()?this.pollSelection():Pi(this.cm,(function(){return e.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,t)},_l.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},_l.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&u&&this.cm.display.gutterSpecs.length&&es(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=rs(t,e.anchorNode,e.anchorOffset),r=rs(t,e.focusNode,e.focusOffset);n&&r&&Pi(t,(function(){Ho(t.doc,lo(n,r),V),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},_l.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),l=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=ot(a.line-1,qe(r.doc,a.line-1).length)),l.ch==qe(r.doc,l.line).text.length&&l.line<r.lastLine()&&(l=ot(l.line+1,0)),a.line<i.viewFrom||l.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=Ir(r,a.line))?(t=tt(i.view[0].line),n=i.view[0].node):(t=tt(i.view[e].line),n=i.view[e-1].node.nextSibling);var s,c,u=Ir(r,l.line);if(u==i.view.length-1?(s=i.viewTo-1,c=i.lineDiv.lastChild):(s=tt(i.view[u+1].line)-1,c=i.view[u+1].node.previousSibling),!n)return!1;for(var d=r.doc.splitLines(ns(r,n,c,t,s)),h=_e(r.doc,ot(t,0),ot(s,qe(r.doc,s).text.length));d.length>1&&h.length>1;)if(Q(d)==Q(h))d.pop(),h.pop(),s--;else{if(d[0]!=h[0])break;d.shift(),h.shift(),t++}for(var f=0,p=0,m=d[0],v=h[0],g=Math.min(m.length,v.length);f<g&&m.charCodeAt(f)==v.charCodeAt(f);)++f;for(var y=Q(d),x=Q(h),b=Math.min(y.length-(1==d.length?f:0),x.length-(1==h.length?f:0));p<b&&y.charCodeAt(y.length-p-1)==x.charCodeAt(x.length-p-1);)++p;if(1==d.length&&1==h.length&&t==a.line)for(;f&&f>a.ch&&y.charCodeAt(y.length-p-1)==x.charCodeAt(x.length-p-1);)f--,p++;d[d.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),d[0]=d[0].slice(f).replace(/\u200b+$/,"");var w=ot(t,f),C=ot(s,h.length?Q(h).length-p:0);return d.length>1||d[0]||at(w,C)?(ia(r.doc,d,w,C,"+input"),!0):void 0},_l.prototype.ensurePolled=function(){this.forceCompositionEnd()},_l.prototype.reset=function(){this.forceCompositionEnd()},_l.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},_l.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},_l.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Pi(this.cm,(function(){return Fr(e.cm)}))},_l.prototype.setUneditable=function(e){e.contentEditable="false"},_l.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Zi(this.cm,Vl)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},_l.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},_l.prototype.onContextMenu=function(){},_l.prototype.resetPosition=function(){},_l.prototype.needsContentAttribute=!0;var os=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new R,this.hasSelection=!1,this.composing=null};function as(e,t){if((t=t?F(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=Z();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=l.getValue()}var i;if(e.form&&(pe(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ve(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var l=Fl((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return l}function ls(e){e.off=ve,e.on=pe,e.wheelEventPixels=no,e.Doc=ka,e.splitLines=Te,e.countColumn=O,e.findColumn=U,e.isWordChar=te,e.Pass=H,e.signal=ge,e.Line=cn,e.changeEnd=so,e.scrollbarModel=bi,e.Pos=ot,e.cmpPos=at,e.modes=Re,e.mimeModes=We,e.resolveMode=Ve,e.getMode=Ke,e.modeExtensions=Ye,e.extendMode=Ue,e.copyState=Ge,e.startState=Qe,e.innerMode=Xe,e.commands=qa,e.keyMap=Oa,e.keyName=Ka,e.isModifierKey=Ha,e.lookupKey=za,e.normalizeKeyMap=Wa,e.StringStream=Je,e.SharedTextMarker=ga,e.TextMarker=ma,e.LineWidget=da,e.e_preventDefault=Ce,e.e_stopPropagation=ke,e.e_stop=Se,e.addClass=B,e.contains=P,e.rmClass=E,e.keyNames=Ta}os.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!ye(r,e)){if(r.somethingSelected())Hl({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Ul(r);Hl({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,V):(n.prevInput="",i.value=t.text.join("\n"),j(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(i.style.width="0px"),pe(i,"input",(function(){a&&l>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),pe(i,"paste",(function(e){ye(r,e)||Kl(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),pe(i,"cut",o),pe(i,"copy",o),pe(e.scroller,"paste",(function(t){if(!Kn(e,t)&&!ye(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),pe(e.lineSpace,"selectstart",(function(t){Kn(e,t)||Ce(t)})),pe(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),pe(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},os.prototype.createField=function(e){this.wrapper=Xl(),this.textarea=this.wrapper.firstChild},os.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},os.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Kr(e);if(e.options.moveInputWithCursor){var i=xr(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},os.prototype.showSelection=function(e){var t=this.cm.display;L(t.cursorDiv,e.cursors),L(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},os.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&j(this.textarea),a&&l>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&l>=9&&(this.hasSelection=null))}},os.prototype.getField=function(){return this.textarea},os.prototype.supportsTouch=function(){return!1},os.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!g||Z()!=this.textarea))try{this.textarea.focus()}catch(e){}},os.prototype.blur=function(){this.textarea.blur()},os.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},os.prototype.receivedFocus=function(){this.slowPoll()},os.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},os.prototype.fastPoll=function(){var e=!1,t=this;function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},os.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||je(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&l>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var s=0,c=Math.min(r.length,i.length);s<c&&r.charCodeAt(s)==i.charCodeAt(s);)++s;return Pi(t,(function(){Vl(t,i.slice(s),r.length-s,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},os.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},os.prototype.onKeyPress=function(){a&&l>=9&&(this.hasSelection=null),this.fastPoll()},os.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=jr(n,e),c=r.scroller.scrollTop;if(o&&!d){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&Zi(n,Ho)(n.doc,lo(o),V);var u,h=i.style.cssText,f=t.wrapper.style.cssText,p=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-p.top-5)+"px; left: "+(e.clientX-p.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",s&&(u=window.scrollY),r.input.focus(),s&&window.scrollTo(null,u),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=g,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&l>=9&&v(),k){Se(e);var m=function(){ve(window,"mouseup",m),setTimeout(g,20)};pe(window,"mouseup",m)}else setTimeout(g,50)}function v(){if(null!=i.selectionStart){var e=n.somethingSelected(),o=""+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function g(){if(t.contextMenuPending==g&&(t.contextMenuPending=!1,t.wrapper.style.cssText=f,i.style.cssText=h,a&&l<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=i.selectionStart)){(!a||a&&l<9)&&v();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&""==t.prevInput?Zi(n,Jo)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},os.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},os.prototype.setUneditable=function(){},os.prototype.needsContentAttribute=!1,Tl(Fl),Ql(Fl);var ss="iter insert remove copy getEditor constructor".split(" ");for(var cs in ka.prototype)ka.prototype.hasOwnProperty(cs)&&W(ss,cs)<0&&(Fl.prototype[cs]=function(e){return function(){return e.apply(this.doc,arguments)}}(ka.prototype[cs]));return we(ka),Fl.inputStyles={textarea:os,contenteditable:_l},Fl.defineMode=function(e){Fl.defaults.mode||"null"==e||(Fl.defaults.mode=e),ze.apply(this,arguments)},Fl.defineMIME=He,Fl.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Fl.defineMIME("text/plain","null"),Fl.defineExtension=function(e,t){Fl.prototype[e]=t},Fl.defineDocExtension=function(e,t){ka.prototype[e]=t},Fl.fromTextArea=as,ls(Fl),Fl.version="5.58.2",Fl}()},25419:function(e,t,n){!function(e){"use strict";e.defineMode("markdown",(function(t,n){var r=e.getMode(t,"text/html"),i="null"==r.name;function o(n){if(e.findModeByName){var r=e.findModeByName(n);r&&(n=r.mime||r.mimes[0])}var i=e.getMode(t,n);return"null"==i.name?null:i}void 0===n.highlightFormatting&&(n.highlightFormatting=!1),void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),void 0===n.taskLists&&(n.taskLists=!1),void 0===n.strikethrough&&(n.strikethrough=!1),void 0===n.emoji&&(n.emoji=!1),void 0===n.fencedCodeBlockHighlighting&&(n.fencedCodeBlockHighlighting=!0),void 0===n.fencedCodeBlockDefaultMode&&(n.fencedCodeBlockDefaultMode="text/plain"),void 0===n.xml&&(n.xml=!0),void 0===n.tokenTypeOverrides&&(n.tokenTypeOverrides={});var a={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var l in a)a.hasOwnProperty(l)&&n.tokenTypeOverrides[l]&&(a[l]=n.tokenTypeOverrides[l]);var s=/^([*\-_])(?:\s*\1){2,}\s*$/,c=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,u=/^\[(x| )\](?=\s)/i,d=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,h=/^ {0,3}(?:\={1,}|-{2,})\s*$/,f=/^[^#!\[\]*_\\<>` "'(~:]+/,p=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,m=/^\s*\[[^\]]+?\]:.*$/,v=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,g=" ";function y(e,t,n){return t.f=t.inline=n,n(e,t)}function x(e,t,n){return t.f=t.block=n,n(e,t)}function b(e){return!e||!/\S/.test(e.string)}function w(t){if(t.linkTitle=!1,t.linkHref=!1,t.linkText=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,t.f==k){var n=i;if(!n){var o=e.innerMode(r,t.htmlState);n="xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText}n&&(t.f=N,t.block=C,t.htmlState=null)}return t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine={stream:null},null}function C(t,r){var i=t.column()===r.indentation,l=b(r.prevLine.stream),f=r.indentedCode,v=r.prevLine.hr,g=!1!==r.list,x=(r.listStack[r.listStack.length-1]||0)+3;r.indentedCode=!1;var w=r.indentation;if(null===r.indentationDiff&&(r.indentationDiff=r.indentation,g)){for(r.list=null;w<r.listStack[r.listStack.length-1];)r.listStack.pop(),r.listStack.length?r.indentation=r.listStack[r.listStack.length-1]:r.list=!1;!1!==r.list&&(r.indentationDiff=w-r.listStack[r.listStack.length-1])}var C=!(l||v||r.prevLine.header||g&&f||r.prevLine.fencedCodeEnd),k=(!1===r.list||v||l)&&r.indentation<=x&&t.match(s),E=null;if(r.indentationDiff>=4&&(f||r.prevLine.fencedCodeEnd||r.prevLine.header||l))return t.skipToEnd(),r.indentedCode=!0,a.code;if(t.eatSpace())return null;if(i&&r.indentation<=x&&(E=t.match(d))&&E[1].length<=6)return r.quote=0,r.header=E[1].length,r.thisLine.header=!0,n.highlightFormatting&&(r.formatting="header"),r.f=r.inline,S(r);if(r.indentation<=x&&t.eat(">"))return r.quote=i?1:r.quote+1,n.highlightFormatting&&(r.formatting="quote"),t.eatSpace(),S(r);if(!k&&!r.setext&&i&&r.indentation<=x&&(E=t.match(c))){var N=E[1]?"ol":"ul";return r.indentation=w+t.current().length,r.list=!0,r.quote=0,r.listStack.push(r.indentation),r.em=!1,r.strong=!1,r.code=!1,r.strikethrough=!1,n.taskLists&&t.match(u,!1)&&(r.taskList=!0),r.f=r.inline,n.highlightFormatting&&(r.formatting=["list","list-"+N]),S(r)}return i&&r.indentation<=x&&(E=t.match(p,!0))?(r.quote=0,r.fencedEndRE=new RegExp(E[1]+"+ *$"),r.localMode=n.fencedCodeBlockHighlighting&&o(E[2]||n.fencedCodeBlockDefaultMode),r.localMode&&(r.localState=e.startState(r.localMode)),r.f=r.block=A,n.highlightFormatting&&(r.formatting="code-block"),r.code=-1,S(r)):r.setext||!(C&&g||r.quote||!1!==r.list||r.code||k||m.test(t.string))&&(E=t.lookAhead(1))&&(E=E.match(h))?(r.setext?(r.header=r.setext,r.setext=0,t.skipToEnd(),n.highlightFormatting&&(r.formatting="header")):(r.header="="==E[0].charAt(0)?1:2,r.setext=r.header),r.thisLine.header=!0,r.f=r.inline,S(r)):k?(t.skipToEnd(),r.hr=!0,r.thisLine.hr=!0,a.hr):"["===t.peek()?y(t,r,Z):y(t,r,r.inline)}function k(t,n){var o=r.token(t,n.htmlState);if(!i){var a=e.innerMode(r,n.htmlState);("xml"==a.mode.name&&null===a.state.tagStart&&!a.state.context&&a.state.tokenize.isInText||n.md_inside&&t.current().indexOf(">")>-1)&&(n.f=N,n.block=C,n.htmlState=null)}return o}function A(e,t){var r,i=t.listStack[t.listStack.length-1]||0,o=t.indentation<i,l=i+3;return t.fencedEndRE&&t.indentation<=l&&(o||e.match(t.fencedEndRE))?(n.highlightFormatting&&(t.formatting="code-block"),o||(r=S(t)),t.localMode=t.localState=null,t.block=C,t.f=N,t.fencedEndRE=null,t.code=0,t.thisLine.fencedCodeEnd=!0,o?x(e,t,t.block):r):t.localMode?t.localMode.token(e,t.localState):(e.skipToEnd(),a.code)}function S(e){var t=[];if(e.formatting){t.push(a.formatting),"string"==typeof e.formatting&&(e.formatting=[e.formatting]);for(var r=0;r<e.formatting.length;r++)t.push(a.formatting+"-"+e.formatting[r]),"header"===e.formatting[r]&&t.push(a.formatting+"-"+e.formatting[r]+"-"+e.header),"quote"===e.formatting[r]&&(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(a.formatting+"-"+e.formatting[r]+"-"+e.quote):t.push("error"))}if(e.taskOpen)return t.push("meta"),t.length?t.join(" "):null;if(e.taskClosed)return t.push("property"),t.length?t.join(" "):null;if(e.linkHref?t.push(a.linkHref,"url"):(e.strong&&t.push(a.strong),e.em&&t.push(a.em),e.strikethrough&&t.push(a.strikethrough),e.emoji&&t.push(a.emoji),e.linkText&&t.push(a.linkText),e.code&&t.push(a.code),e.image&&t.push(a.image),e.imageAltText&&t.push(a.imageAltText,"link"),e.imageMarker&&t.push(a.imageMarker)),e.header&&t.push(a.header,a.header+"-"+e.header),e.quote&&(t.push(a.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(a.quote+"-"+e.quote):t.push(a.quote+"-"+n.maxBlockquoteDepth)),!1!==e.list){var i=(e.listStack.length-1)%3;i?1===i?t.push(a.list2):t.push(a.list3):t.push(a.list1)}return e.trailingSpaceNewLine?t.push("trailing-space-new-line"):e.trailingSpace&&t.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),t.length?t.join(" "):null}function E(e,t){if(e.match(f,!0))return S(t)}function N(t,i){var o=i.text(t,i);if(void 0!==o)return o;if(i.list)return i.list=null,S(i);if(i.taskList)return" "===t.match(u,!0)[1]?i.taskOpen=!0:i.taskClosed=!0,n.highlightFormatting&&(i.formatting="task"),i.taskList=!1,S(i);if(i.taskOpen=!1,i.taskClosed=!1,i.header&&t.match(/^#+$/,!0))return n.highlightFormatting&&(i.formatting="header"),S(i);var l=t.next();if(i.linkTitle){i.linkTitle=!1;var s=l;"("===l&&(s=")");var c="^\\s*(?:[^"+(s=(s+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+s;if(t.match(new RegExp(c),!0))return a.linkHref}if("`"===l){var d=i.formatting;n.highlightFormatting&&(i.formatting="code"),t.eatWhile("`");var h=t.current().length;if(0!=i.code||i.quote&&1!=h){if(h==i.code){var f=S(i);return i.code=0,f}return i.formatting=d,S(i)}return i.code=h,S(i)}if(i.code)return S(i);if("\\"===l&&(t.next(),n.highlightFormatting)){var p=S(i),m=a.formatting+"-escape";return p?p+" "+m:m}if("!"===l&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,n.highlightFormatting&&(i.formatting="image"),S(i);if("["===l&&i.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,n.highlightFormatting&&(i.formatting="image"),S(i);if("]"===l&&i.imageAltText){n.highlightFormatting&&(i.formatting="image");var p=S(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=M,p}if("["===l&&!i.image)return i.linkText&&t.match(/^.*?\]/)||(i.linkText=!0,n.highlightFormatting&&(i.formatting="link")),S(i);if("]"===l&&i.linkText){n.highlightFormatting&&(i.formatting="link");var p=S(i);return i.linkText=!1,i.inline=i.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?M:N,p}if("<"===l&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=L,n.highlightFormatting&&(i.formatting="link"),(p=S(i))?p+=" ":p="",p+a.linkInline;if("<"===l&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=L,n.highlightFormatting&&(i.formatting="link"),(p=S(i))?p+=" ":p="",p+a.linkEmail;if(n.xml&&"<"===l&&t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var g=t.string.indexOf(">",t.pos);if(-1!=g){var y=t.string.substring(t.start,g);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(y)&&(i.md_inside=!0)}return t.backUp(1),i.htmlState=e.startState(r),x(t,i,k)}if(n.xml&&"<"===l&&t.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===l||"_"===l){for(var b=1,w=1==t.pos?" ":t.string.charAt(t.pos-2);b<3&&t.eat(l);)b++;var C=t.peek()||" ",A=!/\s/.test(C)&&(!v.test(C)||/\s/.test(w)||v.test(w)),E=!/\s/.test(w)&&(!v.test(w)||/\s/.test(C)||v.test(C)),D=null,P=null;if(b%2&&(i.em||!A||"*"!==l&&E&&!v.test(w)?i.em!=l||!E||"*"!==l&&A&&!v.test(C)||(D=!1):D=!0),b>1&&(i.strong||!A||"*"!==l&&E&&!v.test(w)?i.strong!=l||!E||"*"!==l&&A&&!v.test(C)||(P=!1):P=!0),null!=P||null!=D)return n.highlightFormatting&&(i.formatting=null==D?"strong":null==P?"em":"strong em"),!0===D&&(i.em=l),!0===P&&(i.strong=l),f=S(i),!1===D&&(i.em=!1),!1===P&&(i.strong=!1),f}else if(" "===l&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return S(i);t.backUp(1)}if(n.strikethrough)if("~"===l&&t.eatWhile(l)){if(i.strikethrough)return n.highlightFormatting&&(i.formatting="strikethrough"),f=S(i),i.strikethrough=!1,f;if(t.match(/^[^\s]/,!1))return i.strikethrough=!0,n.highlightFormatting&&(i.formatting="strikethrough"),S(i)}else if(" "===l&&t.match(/^~~/,!0)){if(" "===t.peek())return S(i);t.backUp(2)}if(n.emoji&&":"===l&&t.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,n.highlightFormatting&&(i.formatting="emoji");var Z=S(i);return i.emoji=!1,Z}return" "===l&&(t.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),S(i)}function L(e,t){if(">"===e.next()){t.f=t.inline=N,n.highlightFormatting&&(t.formatting="link");var r=S(t);return r?r+=" ":r="",r+a.linkInline}return e.match(/^[^>]+/,!0),a.linkInline}function M(e,t){if(e.eatSpace())return null;var r=e.next();return"("===r||"["===r?(t.f=t.inline=P("("===r?")":"]"),n.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,S(t)):"error"}var D={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function P(e){return function(t,r){if(t.next()===e){r.f=r.inline=N,n.highlightFormatting&&(r.formatting="link-string");var i=S(r);return r.linkHref=!1,i}return t.match(D[e]),r.linkHref=!0,S(r)}}function Z(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=B,e.next(),n.highlightFormatting&&(t.formatting="link"),t.linkText=!0,S(t)):y(e,t,N)}function B(e,t){if(e.match(/^\]:/,!0)){t.f=t.inline=T,n.highlightFormatting&&(t.formatting="link");var r=S(t);return t.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),a.linkText}function T(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),t.f=t.inline=N,a.linkHref+" url")}var j={startState:function(){return{f:C,prevLine:{stream:null},thisLine:{stream:null},block:C,htmlState:null,indentation:0,inline:N,text:E,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(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&e.copyState(r,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?e.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,linkHref:t.linkHref,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,emoji:t.emoji,header:t.header,setext:t.setext,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedEndRE:t.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return w(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=k)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g,g).length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==k?{state:e.htmlState,mode:r}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:j}},indent:function(t,n,i){return t.block==k&&r.indent?r.indent(t.htmlState,n,i):t.localState&&t.localMode.indent?t.localMode.indent(t.localState,n,i):e.Pass},blankLine:w,getType:S,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return j}),"xml"),e.defineMIME("text/markdown","markdown"),e.defineMIME("text/x-markdown","markdown")}(n(89780),n(15525),n(98101))},98101:function(e,t,n){!function(e){"use strict";e.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 t=0;t<e.modeInfo.length;t++){var n=e.modeInfo[t];n.mimes&&(n.mime=n.mimes[0])}e.findModeByMIME=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.mime==t)return r;if(r.mimes)for(var i=0;i<r.mimes.length;i++)if(r.mimes[i]==t)return r}return/\+xml$/.test(t)?e.findModeByMIME("application/xml"):/\+json$/.test(t)?e.findModeByMIME("application/json"):void 0},e.findModeByExtension=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.ext)for(var i=0;i<r.ext.length;i++)if(r.ext[i]==t)return r}},e.findModeByFileName=function(t){for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.file&&r.file.test(t))return r}var i=t.lastIndexOf("."),o=i>-1&&t.substring(i+1,t.length);if(o)return e.findModeByExtension(o)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.name.toLowerCase()==t)return r;if(r.alias)for(var i=0;i<r.alias.length;i++)if(r.alias[i].toLowerCase()==t)return r}}}(n(89780))},67549:function(e,t,n){!function(e){"use strict";e.defineMode("stex",(function(e,t){function n(e,t){e.cmdState.push(t)}function r(e){return e.cmdState.length>0?e.cmdState[e.cmdState.length-1]:null}function i(e){var t=e.cmdState.pop();t&&t.closeBracket()}function o(e){for(var t=e.cmdState,n=t.length-1;n>=0;n--){var r=t[n];if("DEFAULT"!=r.name)return r}return{styleIdentifier:function(){return null}}}function a(e,t,n){return function(){this.name=e,this.bracketNo=0,this.style=t,this.styles=n,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var l={};function s(e,t){e.f=t}function c(e,t){var i;if(e.match(/^\\[a-zA-Z@]+/)){var a=e.current().slice(1);return n(t,i=new(i=l.hasOwnProperty(a)?l[a]:l.DEFAULT)),s(t,d),i.style}if(e.match(/^\\[$&%#{}_]/))return"tag";if(e.match(/^\\[,;!\/\\]/))return"tag";if(e.match("\\["))return s(t,(function(e,t){return u(e,t,"\\]")})),"keyword";if(e.match("\\("))return s(t,(function(e,t){return u(e,t,"\\)")})),"keyword";if(e.match("$$"))return s(t,(function(e,t){return u(e,t,"$$")})),"keyword";if(e.match("$"))return s(t,(function(e,t){return u(e,t,"$")})),"keyword";var c=e.next();return"%"==c?(e.skipToEnd(),"comment"):"}"==c||"]"==c?(i=r(t))?(i.closeBracket(c),s(t,d),"bracket"):"error":"{"==c||"["==c?(n(t,i=new(i=l.DEFAULT)),"bracket"):/\d/.test(c)?(e.eatWhile(/[\w.%]/),"atom"):(e.eatWhile(/[\w\-_]/),"begin"==(i=o(t)).name&&(i.argument=e.current()),i.styleIdentifier())}function u(e,t,n){if(e.eatSpace())return null;if(n&&e.match(n))return s(t,c),"keyword";if(e.match(/^\\[a-zA-Z@]+/))return"tag";if(e.match(/^[a-zA-Z]+/))return"variable-2";if(e.match(/^\\[$&%#{}_]/))return"tag";if(e.match(/^\\[,;!\/]/))return"tag";if(e.match(/^[\^_&]/))return"tag";if(e.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(e.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var r=e.next();return"{"==r||"}"==r||"["==r||"]"==r||"("==r||")"==r?"bracket":"%"==r?(e.skipToEnd(),"comment"):"error"}function d(e,t){var n=e.peek();return"{"==n||"["==n?(r(t).openBracket(n),e.eat(n),s(t,c),"bracket"):/[ \t\r]/.test(n)?(e.eat(n),null):(s(t,c),i(t),c(e,t))}return l.importmodule=a("importmodule","tag",["string","builtin"]),l.documentclass=a("documentclass","tag",["","atom"]),l.usepackage=a("usepackage","tag",["atom"]),l.begin=a("begin","tag",["atom"]),l.end=a("end","tag",["atom"]),l.label=a("label","tag",["atom"]),l.ref=a("ref","tag",["atom"]),l.eqref=a("eqref","tag",["atom"]),l.cite=a("cite","tag",["atom"]),l.bibitem=a("bibitem","tag",["atom"]),l.Bibitem=a("Bibitem","tag",["atom"]),l.RBibitem=a("RBibitem","tag",["atom"]),l.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}},{startState:function(){return{cmdState:[],f:t.inMathMode?function(e,t){return u(e,t)}:c}},copyState:function(e){return{cmdState:e.cmdState.slice(),f:e.f}},token:function(e,t){return t.f(e,t)},blankLine:function(e){e.f=c,e.cmdState.length=0},lineComment:"%"}})),e.defineMIME("text/x-stex","stex"),e.defineMIME("text/x-latex","stex")}(n(89780))},15525:function(e,t,n){!function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",(function(r,i){var o,a,l=r.indentUnit,s={},c=i.htmlMode?t:n;for(var u in c)s[u]=c[u];for(var u in i)s[u]=i[u];function d(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();return"<"==r?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(p("atom","]]>")):null:e.match("--")?n(p("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(m(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=p("meta","?>"),"meta"):(o=e.eat("/")?"closeTag":"openTag",t.tokenize=h,"tag bracket"):"&"==r?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function h(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=d,o=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return o="equals",null;if("<"==n){t.tokenize=d,t.state=x,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=f(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function f(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=h;break}return"string"};return t.isInAttribute=!0,t}function p(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=d;break}n.next()}return e}}function m(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=m(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=d;break}return n.tokenize=m(e-1),n.tokenize(t,n)}}return"meta"}}function v(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(s.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function g(e){e.context&&(e.context=e.context.prev)}function y(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!s.contextGrabbers.hasOwnProperty(n)||!s.contextGrabbers[n].hasOwnProperty(t))return;g(e)}}function x(e,t,n){return"openTag"==e?(n.tagStart=t.column(),b):"closeTag"==e?w:x}function b(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",A):s.allowMissingTagName&&"endTag"==e?(a="tag bracket",A(e,t,n)):(a="error",b)}function w(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&s.implicitlyClosed.hasOwnProperty(n.context.tagName)&&g(n),n.context&&n.context.tagName==r||!1===s.matchClosing?(a="tag",C):(a="tag error",k)}return s.allowMissingTagName&&"endTag"==e?(a="tag bracket",C(e,t,n)):(a="error",k)}function C(e,t,n){return"endTag"!=e?(a="error",C):(g(n),x)}function k(e,t,n){return a="error",C(e,t,n)}function A(e,t,n){if("word"==e)return a="attribute",S;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||s.autoSelfClosers.hasOwnProperty(r)?y(n,r):(y(n,r),n.context=new v(n,r,i==n.indented)),x}return a="error",A}function S(e,t,n){return"equals"==e?E:(s.allowMissing||(a="error"),A(e,t,n))}function E(e,t,n){return"string"==e?N:"word"==e&&s.allowUnquoted?(a="string",A):(a="error",A(e,t,n))}function N(e,t,n){return"string"==e?N:A(e,t,n)}return d.isInText=!0,{startState:function(e){var t={tokenize:d,state:x,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;o=null;var n=t.tokenize(e,t);return(n||o)&&"comment"!=n&&(a=null,t.state=t.state(o||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(t,n,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+l;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=h&&t.tokenize!=d)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==s.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+l*(s.multilineTagIndentFactor||1);if(s.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var o=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(o&&o[1])for(;i;){if(i.tagName==o[2]){i=i.prev;break}if(!s.implicitlyClosed.hasOwnProperty(i.tagName))break;i=i.prev}else if(o)for(;i;){var a=s.contextGrabbers[i.tagName];if(!a||!a.hasOwnProperty(o[2]))break;i=i.prev}for(;i&&i.prev&&!i.startOfLine;)i=i.prev;return i?i.indent+l:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:s.htmlMode?"html":"xml",helperType:s.htmlMode?"html":"xml",skipAttribute:function(e){e.state==E&&(e.state=A)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)n.tagName&&t.push(n.tagName);return t.reverse()}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n(89780))},24334:function(e,t,n){var r,i;i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:this,e.exports=function(n){"use strict";var i,o=(n=n||{}).Base64,a="2.6.4",l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=function(e){for(var t={},n=0,r=e.length;n<r;n++)t[e.charAt(n)]=n;return t}(l),c=String.fromCharCode,u=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?c(192|t>>>6)+c(128|63&t):c(224|t>>>12&15)+c(128|t>>>6&63)+c(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return c(240|t>>>18&7)+c(128|t>>>12&63)+c(128|t>>>6&63)+c(128|63&t)},d=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,h=function(e){return e.replace(d,u)},f=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[l.charAt(n>>>18),l.charAt(n>>>12&63),t>=2?"=":l.charAt(n>>>6&63),t>=1?"=":l.charAt(63&n)].join("")},p=n.btoa&&"function"==typeof n.btoa?function(e){return n.btoa(e)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,f)},m=function(e){return p(h(String(e)))},v=function(e){return e.replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,"")},g=function(e,t){return t?v(m(e)):m(e)},y=function(e){return g(e,!0)};n.Uint8Array&&(i=function(e,t){for(var n="",r=0,i=e.length;r<i;r+=3){var o=e[r],a=e[r+1],s=e[r+2],c=o<<16|a<<8|s;n+=l.charAt(c>>>18)+l.charAt(c>>>12&63)+(void 0!==a?l.charAt(c>>>6&63):"=")+(void 0!==s?l.charAt(63&c):"=")}return t?v(n):n});var x,b=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,w=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return c(55296+(t>>>10))+c(56320+(1023&t));case 3:return c((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return c((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},C=function(e){return e.replace(b,w)},k=function(e){var t=e.length,n=t%4,r=(t>0?s[e.charAt(0)]<<18:0)|(t>1?s[e.charAt(1)]<<12:0)|(t>2?s[e.charAt(2)]<<6:0)|(t>3?s[e.charAt(3)]:0),i=[c(r>>>16),c(r>>>8&255),c(255&r)];return i.length-=[0,0,2,1][n],i.join("")},A=n.atob&&"function"==typeof n.atob?function(e){return n.atob(e)}:function(e){return e.replace(/\S{1,4}/g,k)},S=function(e){return A(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},E=function(e){return C(A(e))},N=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},L=function(e){return E(N(e))};n.Uint8Array&&(x=function(e){return Uint8Array.from(S(N(e)),(function(e){return e.charCodeAt(0)}))});var M=function(){var e=n.Base64;return n.Base64=o,e};if(n.Base64={VERSION:a,atob:S,btoa:p,fromBase64:L,toBase64:g,utob:h,encode:g,encodeURI:y,btou:C,decode:L,noConflict:M,fromUint8Array:i,toUint8Array:x},"function"==typeof Object.defineProperty){var D=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};n.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",D((function(){return L(this)}))),Object.defineProperty(String.prototype,"toBase64",D((function(e){return g(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",D((function(){return g(this,!0)})))}}return n.Meteor&&(Base64=n.Base64),e.exports?e.exports.Base64=n.Base64:void 0===(r=function(){return n.Base64}.apply(t,[]))||(e.exports=r),{Base64:n.Base64}}(i)},2859:function(e,t,n){"use strict";n.d(t,{hP:function(){return _}});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function o(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{s(r.next(e))}catch(e){o(e)}}function l(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))}function a(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}function l(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,l=o.length;a<l;a++,i++)r[i]=o[a];return r}var s=function(){function e(){}return e.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},e.setAttributes=function(e,t){for(var n=0,r=t;n<r.length;n++){var i=r[n],o=i[0],a=i[1];e.setAttribute(o,a)}},e.createRect=function(t,n,r){var i=document.createElementNS("http://www.w3.org/2000/svg","rect");return i.setAttribute("width",t.toString()),i.setAttribute("height",n.toString()),r&&e.setAttributes(i,r),i},e.createLine=function(t,n,r,i,o){var a=document.createElementNS("http://www.w3.org/2000/svg","line");return a.setAttribute("x1",t.toString()),a.setAttribute("y1",n.toString()),a.setAttribute("x2",r.toString()),a.setAttribute("y2",i.toString()),o&&e.setAttributes(a,o),a},e.createPolygon=function(t,n){var r=document.createElementNS("http://www.w3.org/2000/svg","polygon");return r.setAttribute("points",t),n&&e.setAttributes(r,n),r},e.createCircle=function(t,n){var r=document.createElementNS("http://www.w3.org/2000/svg","circle");return r.setAttribute("cx",(t/2).toString()),r.setAttribute("cy",(t/2).toString()),r.setAttribute("r",t.toString()),n&&e.setAttributes(r,n),r},e.createEllipse=function(t,n,r){var i=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return i.setAttribute("cx",(t/2).toString()),i.setAttribute("cy",(n/2).toString()),i.setAttribute("rx",(t/2).toString()),i.setAttribute("ry",(n/2).toString()),r&&e.setAttributes(i,r),i},e.createGroup=function(t){var n=document.createElementNS("http://www.w3.org/2000/svg","g");return t&&e.setAttributes(n,t),n},e.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},e.createMarker=function(t,n,r,i,o,a,l){var s=document.createElementNS("http://www.w3.org/2000/svg","marker");return e.setAttributes(s,[["id",t],["orient",n],["markerWidth",r.toString()],["markerHeight",i.toString()],["refX",o.toString()],["refY",a.toString()]]),s.appendChild(l),s},e.createText=function(t){var n=document.createElementNS("http://www.w3.org/2000/svg","text");return n.setAttribute("x","0"),n.setAttribute("y","0"),t&&e.setAttributes(n,t),n},e.createTSpan=function(t,n){var r=document.createElementNS("http://www.w3.org/2000/svg","tspan");return r.textContent=t,n&&e.setAttributes(r,n),r},e.createImage=function(t){var n=document.createElementNS("http://www.w3.org/2000/svg","image");return t&&e.setAttributes(n,t),n},e.createPoint=function(e,t){var n=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return n.x=e,n.y=t,n},e.createPath=function(t,n){var r=document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("d",t),n&&e.setAttributes(r,n),r},e}(),c=function(){function e(){}return e.addKey=function(t){e.key=t},Object.defineProperty(e,"isLicensed",{get:function(){return!!e.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(e.key)},enumerable:!1,configurable:!0}),e}(),u=function(){function e(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return e.prototype.rasterize=function(e,t,n){var r=this;return new Promise((function(i){var o=void 0!==n?n:document.createElement("canvas");null===e&&(r.markersOnly=!0,r.naturalSize=!1);var a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttribute("xmlns","http://www.w3.org/2000/svg"),a.setAttribute("width",t.width.baseVal.valueAsString),a.setAttribute("height",t.height.baseVal.valueAsString),a.setAttribute("viewBox","0 0 "+t.viewBox.baseVal.width.toString()+" "+t.viewBox.baseVal.height.toString()),a.innerHTML=t.innerHTML,!0===r.naturalSize?(a.width.baseVal.value=e.naturalWidth,a.height.baseVal.value=e.naturalHeight):void 0!==r.width&&void 0!==r.height&&(a.width.baseVal.value=r.width,a.height.baseVal.value=r.height),o.width=a.width.baseVal.value,o.height=a.height.baseVal.value;var l=a.outerHTML,s=o.getContext("2d");!0!==r.markersOnly&&s.drawImage(e,0,0,o.width,o.height);var c=window.URL,u=new Image(o.width,o.height);u.setAttribute("crossOrigin","anonymous");var d=new Blob([l],{type:"image/svg+xml"}),h=c.createObjectURL(d);u.onload=function(){s.drawImage(u,0,0),c.revokeObjectURL(h);var e=o.toDataURL(r.imageType,r.imageQuality);i(e)},u.src=h}))},e}(),d=function(){},h=function(){function e(e){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+e+"_"}return Object.defineProperty(e.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),e.prototype.addClass=function(e){return void 0===this.styleSheet&&this.addStyleSheet(),e.name=""+this.classNamePrefix+e.localName,this.classes.push(e),this.styleSheet.sheet.insertRule("."+e.name+" {"+e.style+"}",this.styleSheet.sheet.cssRules.length),e},e.prototype.addRule=function(e){void 0===this.styleSheet&&this.addStyleSheet(),this.rules.push(e),this.styleSheet.sheet.insertRule(e.selector+" {"+e.style+"}",this.styleSheet.sheet.cssRules.length)},e.prototype.addStyleSheet=function(){var e;this.styleSheet=document.createElement("style"),(null!==(e=this.styleSheetRoot)&&void 0!==e?e:document.head).appendChild(this.styleSheet),this.addRule(new f("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new f("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames","\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n ")),this.addRule(new f("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames","\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n ")),this.addClass(new p("fade_in","\n animation-duration: 0.3s;\n animation-name: "+this.classNamePrefix+"_fade_in_animation_frames;\n ")),this.addClass(new p("fade_out","\n animation-duration: 0.3s;\n animation-name: "+this.classNamePrefix+"_fade_out_animation_frames;\n "))},e.prototype.removeStyleSheet=function(){var e;this.styleSheet&&((null!==(e=this.styleSheetRoot)&&void 0!==e?e:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},e}(),f=function(e,t){this.selector=e,this.style=t},p=function(e,t){this.localName=e,this.style=t},m=function(){function e(e,t,n,r,i){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=e,this.displayMode=t,this.markerItems=n,this.uiStyleSettings=r,this.styles=i,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return e.prototype.show=function(e){var t=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=e,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var n=document.createElement("div");n.className=this.toolbarBlockStyleClass.name,n.style.whiteSpace="nowrap",this.uiContainer.appendChild(n),this.addActionButton(n,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(n,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(n,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(n,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(n,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(n,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(n,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(n,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach((function(e){var n=document.createElement("div");n.className=""+t.toolbarButtonStyleClass.name,n.setAttribute("data-type-name",e.typeName),n.innerHTML=e.icon,n.addEventListener("click",(function(){t.markerToolbarButtonClicked(n,e)})),t.buttons.push(n),t.markerButtons.push(n)})),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var r=document.createElement("div");r.className=this.toolbarBlockStyleClass.name,r.style.whiteSpace="nowrap",r.style.display=!1!==this.uiStyleSettings.resultButtonBlockVisible?"":"none",this.uiContainer.appendChild(r),this.addActionButton(r,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(r,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},e.prototype.addButtonClickListener=function(e){this.buttonClickListeners.push(e)},e.prototype.removeButtonClickListener=function(e){this.buttonClickListeners.indexOf(e)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(e),1)},e.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},e.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var e=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var t=0;t<this.markerButtons.length;t++)t<e||t===e&&this.markerButtons.length-1===e?this.markerButtonBlock.appendChild(this.markerButtons[t]):(t===e&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[t]))}},e.prototype.overflowButtonClicked=function(){"none"!==this.markerButtonOverflowBlock.style.display?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},e.prototype.resetButtonStyles=function(){var e=this;this.buttons.forEach((function(t){t.className=t.className.replace(e.uiStyleSettings.toolbarButtonStyleColorsClassName?e.uiStyleSettings.toolbarButtonStyleColorsClassName:e.toolbarButtonStyleColorsClass.name,"").trim(),t.className=t.className.replace(e.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?e.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:e.toolbarActiveButtonStyleColorsClass.name,"").trim(),t.className+=" "+(e.uiStyleSettings.toolbarButtonStyleColorsClassName?e.uiStyleSettings.toolbarButtonStyleColorsClassName:e.toolbarButtonStyleColorsClass.name)}))},e.prototype.addActionButton=function(e,t,n){var r=this,i=document.createElement("div");switch(i.className=""+this.toolbarButtonStyleClass.name,i.innerHTML=t,i.setAttribute("data-action",n),i.addEventListener("click",(function(){r.actionToolbarButtonClicked(i,n)})),n){case"select":case"undo":case"redo":i.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":i.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"render":i.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":i.style.fill=this.uiStyleSettings.closeButtonColor}e.appendChild(i),this.buttons.push(i)},e.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new p("toolbar","\n width: 100%;\n flex-shrink: 0;\n display: flex;\n flex-direction: row;\n justify-content: space-between; \n height: "+this.uiStyleSettings.toolbarHeight+"px;\n box-sizing: content-box;\n "+("inline"===this.displayMode?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+"\n "+("inline"===this.displayMode?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+"\n overflow: hidden;\n ")),this.toolbarStyleColorsClass=this.styles.addClass(new p("toolbar_colors","\n background-color: "+this.uiStyleSettings.toolbarBackgroundColor+";\n box-shadow: 0px 3px rgba(33, 33, 33, 0.1);\n ")),this.toolbarBlockStyleClass=this.styles.addClass(new p("toolbar-block","\n display: inline-block;\n box-sizing: content-box;\n ")),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new p("toolbar-overflow-block","\n position: absolute;\n top: "+this.uiStyleSettings.toolbarHeight+"px;\n max-width: "+2*this.uiStyleSettings.toolbarHeight+"px;\n z-index: 10;\n box-sizing: content-box;\n ")),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new p("toolbar-overflow-block_colors","\n background-color: "+this.uiStyleSettings.toolbarBackgroundColor+";\n "));var e=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new p("toolbar_button","\n display: inline-block;\n width: "+(this.uiStyleSettings.toolbarHeight-2*e)+"px;\n height: "+(this.uiStyleSettings.toolbarHeight-2*e)+"px;\n padding: "+e+"px;\n box-sizing: content-box;\n ")),this.toolbarButtonStyleColorsClass=this.styles.addClass(new p("toolbar_button_colors","\n fill: "+this.uiStyleSettings.toolbarColor+";\n ")),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new p("toolbar_active_button","\n fill: "+this.uiStyleSettings.toolbarColor+";\n background-color: "+this.uiStyleSettings.toolbarBackgroundHoverColor+"\n ")),this.styles.addRule(new f("."+this.toolbarButtonStyleClass.name+" svg","\n height: "+this.uiStyleSettings.toolbarHeight/2+"px;\n ")),this.styles.addRule(new f("."+this.toolbarButtonStyleColorsClass.name+":hover","\n background-color: "+this.uiStyleSettings.toolbarBackgroundHoverColor+"\n "))},e.prototype.markerToolbarButtonClicked=function(e,t){this.setActiveButton(e),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach((function(e){return e("marker",t)})),this.markerButtonOverflowBlock.style.display="none"},e.prototype.actionToolbarButtonClicked=function(e,t){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach((function(e){return e("action",t)})),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},e.prototype.setActiveButton=function(e){this.resetButtonStyles(),e.className=e.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),e.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},e.prototype.setActiveMarkerButton=function(e){var t=this.markerButtons.find((function(t){return t.getAttribute("data-type-name")===e}));t&&this.setActiveButton(t)},e.prototype.setCurrentMarker=function(e){var t=this;this.currentMarker=e,this.buttons.filter((function(e){return/delete|notes/.test(e.getAttribute("data-action"))})).forEach((function(e){void 0===t.currentMarker?(e.style.fillOpacity="0.4",e.style.pointerEvents="none"):(e.style.fillOpacity="1",e.style.pointerEvents="all")}))},e}(),v=function(){function e(e,t,n,r){this.panels=[],this.panelButtons=[],this.markerjsContainer=e,this.displayMode=t,this.uiStyleSettings=n,this.styles=r,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return e.prototype.addStyles=function(){var e;this.toolboxStyleClass=this.styles.addClass(new p("toolbox","\n width: 100%;\n flex-shrink: 0;\n display: flex;\n flex-direction: column;\n font-family: sans-serif;\n "+("popup"===this.displayMode?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+"\n box-sizing: content-box;\n "+("popup"===this.displayMode?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+"\n "+("inline"===this.displayMode?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+"\n "+("inline"===this.displayMode?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+"\n overflow: hidden;\n ")),this.toolboxStyleColorsClass=this.styles.addClass(new p("toolbox_colors","\n color: "+this.uiStyleSettings.toolboxColor+";\n "));var t=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new p("toolbox-button-row","\n display: flex;\n cursor: default;\n box-sizing: content-box;\n ")),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new p("toolbox-button-row_colors","\n background-color: "+this.uiStyleSettings.toolbarBackgroundColor+";\n ")),this.toolboxPanelRowStyleClass=this.styles.addClass(new p("toolbox-panel-row","\n display: flex;\n "+("inline"===this.displayMode?"position: absolute;":"")+"\n "+("inline"===this.displayMode?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+"\n cursor: default;\n height: "+1.5*this.uiStyleSettings.toolbarHeight+"px;\n "+("inline"===this.displayMode?"width: 100%;":"")+"\n box-sizing: content-box;\n ")),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new p("toolbox-panel-row_colors","\n background-color: "+(null!==(e=this.uiStyleSettings.toolboxBackgroundColor)&&void 0!==e?e:this.uiStyleSettings.toolbarBackgroundHoverColor)+";\n ")),this.toolboxButtonStyleClass=this.styles.addClass(new p("toolbox_button","\n display: inline-block;\n width: "+(this.uiStyleSettings.toolbarHeight-2*t)+"px;\n height: "+(this.uiStyleSettings.toolbarHeight-2*t)+"px;\n padding: "+t+"px;\n box-sizing: content-box;\n ")),this.toolboxButtonStyleColorsClass=this.styles.addClass(new p("toolbox-button_colors","\n fill: "+this.uiStyleSettings.toolbarColor+";\n ")),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new p("toolbox-active-button_colors","\n background-color: "+this.uiStyleSettings.toolbarBackgroundHoverColor+";\n fill: "+this.uiStyleSettings.toolbarColor+";\n ")),this.styles.addRule(new f("."+this.toolboxButtonStyleColorsClass.name+":hover","\n background-color: "+this.uiStyleSettings.toolbarBackgroundHoverColor+"\n ")),this.styles.addRule(new f("."+this.toolboxButtonStyleClass.name+" svg","\n height: "+this.uiStyleSettings.toolbarHeight/2+"px;\n "))},e.prototype.show=function(e){var t;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=e,this.uiContainer.className=this.toolboxStyleClass.name+" "+(null!==(t=this.uiStyleSettings.toolboxStyleColorsClassName)&&void 0!==t?t:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},e.prototype.setPanelButtons=function(e){var t,n,r=this;this.panels=e,void 0!==this.uiContainer&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+(null!==(t=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)&&void 0!==t?t:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+(null!==(n=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)&&void 0!==n?n:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach((function(e){var t;e.uiStyleSettings=r.uiStyleSettings;var n=document.createElement("div");n.className=r.toolboxButtonStyleClass.name+" "+(null!==(t=r.uiStyleSettings.toolboxButtonStyleColorsClassName)&&void 0!==t?t:r.toolboxButtonStyleColorsClass.name),n.innerHTML=e.icon,n.title=e.title,n.addEventListener("click",(function(){r.panelButtonClick(e)})),r.panelButtons.push(n),r.buttonRow.appendChild(n)})),"inline"===this.displayMode?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},e.prototype.panelButtonClick=function(e){var t=this,n=-1;if(e!==this.activePanel){n=this.panels.indexOf(e),this.panelRow.innerHTML="";var r=e.getUi();r.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(r),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=e}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout((function(){"inline"===t.displayMode?t.panelRow.style.display="none":t.panelRow.style.visibility="hidden"}),200);this.panelButtons.forEach((function(e,r){var i,o;e.className=t.toolboxButtonStyleClass.name+" "+(r===n?""+(null!==(i=t.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)&&void 0!==i?i:t.toolboxActiveButtonStyleColorsClass.name):""+(null!==(o=t.uiStyleSettings.toolboxButtonStyleColorsClassName)&&void 0!==o?o:t.toolboxButtonStyleColorsClass.name))}))},e}(),g=function(e,t){this.title=e,this.icon=t},y=function(e){function t(t,n,r,i){var o=e.call(this,t,i||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return o.colors=[],o.addTransparent=!1,o.colorBoxes=[],o.colors=n,o.currentColor=r,o.setCurrentColor=o.setCurrentColor.bind(o),o.getColorBox=o.getColorBox.bind(o),o}return i(t,e),t.prototype.getUi=function(){var e=this,t=document.createElement("div");return t.style.overflow="hidden",t.style.whiteSpace="nowrap",this.colors.forEach((function(n){var r=e.getColorBox(n);t.appendChild(r),e.colorBoxes.push(r)})),t},t.prototype.getColorBox=function(e){var t=this,n=this.uiStyleSettings.toolbarHeight/4,r=this.uiStyleSettings.toolbarHeight-n,i=document.createElement("div");i.style.display="inline-block",i.style.boxSizing="content-box",i.style.width=r-2+"px",i.style.height=r-2+"px",i.style.padding="1px",i.style.marginRight="2px",i.style.marginBottom="2px",i.style.borderWidth="2px",i.style.borderStyle="solid",i.style.borderRadius=(r+2)/2+"px",i.style.borderColor=e===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",i.addEventListener("click",(function(){t.setCurrentColor(e,i)}));var o=document.createElement("div");return o.style.display="inline-block",o.style.width=r-2+"px",o.style.height=r-2+"px",o.style.backgroundColor=e,o.style.borderRadius=r/2+"px","transparent"===e&&(o.style.fill=this.uiStyleSettings.toolboxAccentColor,o.innerHTML='<svg viewBox="0 0 24 24">\n <path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />\n </svg>'),i.appendChild(o),i},t.prototype.setCurrentColor=function(e,t){var n=this;this.currentColor=e,this.colorBoxes.forEach((function(e){e.style.borderColor=e===t?n.uiStyleSettings.toolboxAccentColor:"transparent"})),this.onColorChanged&&this.onColorChanged(e)},t}(g),x=function(){function e(e,t,n){this._state="new",this._isSelected=!1,this._container=e,this._overlayContainer=t,this.globalSettings=n,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(e.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.ownsTarget=function(e){return!1},Object.defineProperty(e.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),e.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},e.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},e.prototype.pointerDown=function(e,t){},e.prototype.dblClick=function(e,t){},e.prototype.manipulate=function(e){},e.prototype.pointerUp=function(e){this.stateChanged()},e.prototype.dispose=function(){},e.prototype.addMarkerVisualToContainer=function(e){this.container.childNodes.length>0?this.container.insertBefore(e,this.container.childNodes[0]):this.container.appendChild(e)},e.prototype.getState=function(){return{typeName:e.typeName,state:this.state,notes:this.notes}},e.prototype.restoreState=function(e){this._state=e.state,this.notes=e.notes},e.prototype.scale=function(e,t){},e.prototype.colorChanged=function(e){this.onColorChanged&&this.onColorChanged(e),this.stateChanged()},e.prototype.fillColorChanged=function(e){this.onFillColorChanged&&this.onFillColorChanged(e),this.stateChanged()},e.prototype.stateChanged=function(){if(this.onStateChanged&&"creating"!==this.state&&"new"!==this.state){var e=this.getState();void 0!==this.manipulationStartState&&(this.manipulationStartState.state="select"),e.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(e)&&this.onStateChanged(this)}},e.typeName="MarkerBase",e}(),b=function(){function e(){this.findGripByVisual=this.findGripByVisual.bind(this)}return e.prototype.findGripByVisual=function(e){return this.topLeft.ownsTarget(e)?this.topLeft:this.topCenter.ownsTarget(e)?this.topCenter:this.topRight.ownsTarget(e)?this.topRight:this.centerLeft.ownsTarget(e)?this.centerLeft:this.centerRight.ownsTarget(e)?this.centerRight:this.bottomLeft.ownsTarget(e)?this.bottomLeft:this.bottomCenter.ownsTarget(e)?this.bottomCenter:this.bottomRight.ownsTarget(e)?this.bottomRight:void 0},e}(),w=function(){function e(){this.GRIP_SIZE=10,this.visual=s.createGroup(),this.visual.appendChild(s.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(s.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return e.prototype.ownsTarget=function(e){return e===this.visual||e===this.visual.childNodes[0]||e===this.visual.childNodes[1]},e}(),C=function(){function e(){}return e.toITransformMatrix=function(e){return{a:e.a,b:e.b,c:e.c,d:e.d,e:e.e,f:e.f}},e.toSVGMatrix=function(e,t){return e.a=t.a,e.b=t.b,e.c=t.c,e.d=t.d,e.e=t.e,e.f=t.f,e},e}(),k=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.left=0,i.top=0,i.width=0,i.height=0,i.defaultSize={x:50,y:20},i.offsetX=0,i.offsetY=0,i.rotationAngle=0,i.CB_DISTANCE=10,i._suppressMarkerCreateEvent=!1,i.container.transform.baseVal.appendItem(s.createTransform()),i.setupControlBox(),i}return i(t,e),Object.defineProperty(t.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visual",{get:function(){return this._visual},set:function(e){this._visual=e;var t=s.createTransform();this._visual.transform.baseVal.appendItem(t)},enumerable:!1,configurable:!0}),t.prototype.ownsTarget=function(t){return!!e.prototype.ownsTarget.call(this,t)||!!(void 0!==this.controlGrips.findGripByVisual(t)||void 0!==this.rotatorGrip&&this.rotatorGrip.ownsTarget(t))},t.prototype.pointerDown=function(t,n){e.prototype.pointerDown.call(this,t,n),"new"===this.state&&(this.left=t.x,this.top=t.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var r=this.unrotatePoint(t);if(this.manipulationStartX=r.x,this.manipulationStartY=r.y,this.offsetX=r.x-this.left,this.offsetY=r.y-this.top,"new"!==this.state)if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(n),void 0!==this.activeGrip)this._state="resize";else if(void 0!==this.rotatorGrip&&this.rotatorGrip.ownsTarget(n)){this.activeGrip=this.rotatorGrip;var i=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=i.x-this.width/2,this.top=i.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var o=this.container.transform.baseVal.getItem(0);o.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(o,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},t.prototype.pointerUp=function(t){var n=this.state;e.prototype.pointerUp.call(this,t),"creating"===this.state&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(t),this._state="select","creating"===n&&this.onMarkerCreated&&!1===this._suppressMarkerCreateEvent&&this.onMarkerCreated(this)},t.prototype.moveVisual=function(e){this.visual.style.transform="translate("+e.x+"px, "+e.y+"px)"},t.prototype.manipulate=function(e){var t=this.unrotatePoint(e);"creating"===this.state?this.resize(e):"move"===this.state?(this.left=this.manipulationStartLeft+(t.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(t.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):"resize"===this.state?this.resize(t):"rotate"===this.state&&this.rotate(e)},t.prototype.resize=function(e){var t=this.manipulationStartLeft,n=this.manipulationStartWidth,r=this.manipulationStartTop,i=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:t=this.manipulationStartLeft+e.x-this.manipulationStartX,n=this.manipulationStartWidth+this.manipulationStartLeft-t;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:n=this.manipulationStartWidth+e.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:r=this.manipulationStartTop+e.y-this.manipulationStartY,i=this.manipulationStartHeight+this.manipulationStartTop-r;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:i=this.manipulationStartHeight+e.y-this.manipulationStartY}n>=0?(this.left=t,this.width=n):(this.left=t+n,this.width=-n),i>=0?(this.top=r,this.height=i):(this.top=r+i,this.height=-i),this.setSize()},t.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},t.prototype.rotate=function(e){if(Math.abs(e.x-this.centerX)>.1){var t=Math.sign(e.x-this.centerX);this.rotationAngle=180*Math.atan((e.y-this.centerY)/(e.x-this.centerX))/Math.PI+90*t,this.applyRotation()}},t.prototype.applyRotation=function(){var e=this.container.transform.baseVal.getItem(0);e.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(e,0)},t.prototype.rotatePoint=function(e){if(0===this.rotationAngle)return e;var t=this.container.getCTM(),n=s.createPoint(e.x,e.y);return{x:(n=n.matrixTransform(t)).x,y:n.y}},t.prototype.unrotatePoint=function(e){if(0===this.rotationAngle)return e;var t=this.container.getCTM();t=t.inverse();var n=s.createPoint(e.x,e.y);return{x:(n=n.matrixTransform(t)).x,y:n.y}},t.prototype.select=function(){e.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},t.prototype.deselect=function(){e.prototype.deselect.call(this),this.controlBox.style.display="none"},t.prototype.setupControlBox=function(){this.controlBox=s.createGroup();var e=s.createTransform();e.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(e),this.container.appendChild(this.controlBox),this.controlRect=s.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),!0!==this.globalSettings.disableRotation&&(this.rotatorGripLine=s.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 b,this.addControlGrips(),this.controlBox.style.display="none"},t.prototype.adjustControlBox=function(){var e=this.controlBox.transform.baseVal.getItem(0);e.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(e,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),void 0!==this.rotatorGripLine&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},t.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),!0!==this.globalSettings.disableRotation&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},t.prototype.createGrip=function(){var e=new w;return e.visual.transform.baseVal.appendItem(s.createTransform()),this.controlBox.appendChild(e.visual),e},t.prototype.positionGrips=function(){var e=this.controlGrips.topLeft.GRIP_SIZE,t=-e/2,n=t,r=(this.width+this.CB_DISTANCE)/2-e/2,i=(this.height+this.CB_DISTANCE)/2-e/2,o=this.height+this.CB_DISTANCE-e/2,a=this.width+this.CB_DISTANCE-e/2;this.positionGrip(this.controlGrips.topLeft.visual,t,n),this.positionGrip(this.controlGrips.topCenter.visual,r,n),this.positionGrip(this.controlGrips.topRight.visual,a,n),this.positionGrip(this.controlGrips.centerLeft.visual,t,i),this.positionGrip(this.controlGrips.centerRight.visual,a,i),this.positionGrip(this.controlGrips.bottomLeft.visual,t,o),this.positionGrip(this.controlGrips.bottomCenter.visual,r,o),this.positionGrip(this.controlGrips.bottomRight.visual,a,o),void 0!==this.rotatorGrip&&this.positionGrip(this.rotatorGrip.visual,r,n-3*this.CB_DISTANCE)},t.prototype.positionGrip=function(e,t,n){var r=e.transform.baseVal.getItem(0);r.setTranslate(t,n),e.transform.baseVal.replaceItem(r,0)},t.prototype.hideControlBox=function(){this.controlBox.style.display="none"},t.prototype.showControlBox=function(){this.controlBox.style.display=""},t.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:C.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:C.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},e.prototype.getState.call(this))},t.prototype.restoreState=function(t){e.prototype.restoreState.call(this,t);var n=t;this.left=n.left,this.top=n.top,this.width=n.width,this.height=n.height,this.rotationAngle=n.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(C.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,n.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(C.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,n.containerTransformMatrix))},t.prototype.scale=function(t,n){e.prototype.scale.call(this,t,n);var r=this.rotatePoint({x:this.left,y:this.top}),i=this.unrotatePoint({x:r.x*t,y:r.y*n});this.left=i.x,this.top=i.y,this.width=this.width*t,this.height=this.height*n,this.adjustControlBox()},t}(x),A=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.fillColor="transparent",i.strokeColor="transparent",i.strokeWidth=0,i.strokeDasharray="",i.opacity=1,i.setStrokeColor=i.setStrokeColor.bind(i),i.setFillColor=i.setFillColor.bind(i),i.setStrokeWidth=i.setStrokeWidth.bind(i),i.setStrokeDasharray=i.setStrokeDasharray.bind(i),i.createVisual=i.createVisual.bind(i),i}return i(t,e),t.prototype.ownsTarget=function(t){return!(!e.prototype.ownsTarget.call(this,t)&&t!==this.visual)},t.prototype.createVisual=function(){this.visual=s.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)},t.prototype.pointerDown=function(t,n){e.prototype.pointerDown.call(this,t,n),"new"===this.state&&(this.createVisual(),this.moveVisual(t),this._state="creating")},t.prototype.manipulate=function(t){e.prototype.manipulate.call(this,t)},t.prototype.resize=function(t){e.prototype.resize.call(this,t),this.setSize()},t.prototype.setSize=function(){e.prototype.setSize.call(this),s.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},t.prototype.pointerUp=function(t){e.prototype.pointerUp.call(this,t),this.setSize()},t.prototype.setStrokeColor=function(e){this.strokeColor=e,this.visual&&s.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(e),this.stateChanged()},t.prototype.setFillColor=function(e){this.fillColor=e,this.visual&&s.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},t.prototype.setStrokeWidth=function(e){this.strokeWidth=e,this.visual&&s.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},t.prototype.setStrokeDasharray=function(e){this.strokeDasharray=e,this.visual&&s.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},t.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},e.prototype.getState.call(this))},t.prototype.restoreState=function(t){var n=t;this.fillColor=n.fillColor,this.strokeColor=n.strokeColor,this.strokeWidth=n.strokeWidth,this.strokeDasharray=n.strokeDasharray,this.opacity=n.opacity,this.createVisual(),e.prototype.restoreState.call(this,t),this.setSize()},t.prototype.scale=function(t,n){e.prototype.scale.call(this,t,n),this.setSize()},t.title="Rectangle marker",t}(k),S=function(e){function t(t,n,r,i){var o=e.call(this,t,i||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return o.widths=[],o.widthBoxes=[],o.widths=n,o.currentWidth=r,o.setCurrentWidth=o.setCurrentWidth.bind(o),o}return i(t,e),t.prototype.getUi=function(){var e=this,t=document.createElement("div");return t.style.display="flex",t.style.overflow="hidden",t.style.flexGrow="2",this.widths.forEach((function(n){var r=document.createElement("div");r.style.display="flex",r.style.flexGrow="2",r.style.alignItems="center",r.style.justifyContent="space-between",r.style.padding="5px",r.style.borderWidth="2px",r.style.borderStyle="solid",r.style.borderColor=n===e.currentWidth?e.uiStyleSettings.toolboxAccentColor:"transparent",r.addEventListener("click",(function(){e.setCurrentWidth(n,r)})),t.appendChild(r);var i=document.createElement("div");i.innerText=n.toString(),i.style.marginRight="5px",r.appendChild(i);var o=document.createElement("div");o.style.minHeight="20px",o.style.flexGrow="2",o.style.display="flex",o.style.alignItems="center";var a=document.createElement("hr");a.style.minWidth="20px",a.style.border="0px",a.style.borderTop=n+"px solid "+e.uiStyleSettings.toolboxColor,a.style.flexGrow="2",o.appendChild(a),r.appendChild(o),e.widthBoxes.push(r)})),t},t.prototype.setCurrentWidth=function(e,t){var n=this;this.currentWidth=e,this.widthBoxes.forEach((function(e){e.style.borderColor=e===t?n.uiStyleSettings.toolboxAccentColor:"transparent"})),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},t}(g),E=function(e){function t(t,n,r,i){var o=e.call(this,t,i||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return o.styles=[],o.styleBoxes=[],o.styles=n,o.currentStyle=r,o.setCurrentStyle=o.setCurrentStyle.bind(o),o}return i(t,e),t.prototype.getUi=function(){var e=this,t=document.createElement("div");return t.style.display="flex",t.style.overflow="hidden",t.style.flexGrow="2",this.styles.forEach((function(n){var r=document.createElement("div");r.style.display="flex",r.style.alignItems="center",r.style.justifyContent="space-between",r.style.padding="5px",r.style.borderWidth="2px",r.style.borderStyle="solid",r.style.overflow="hidden",r.style.maxWidth=100/e.styles.length-5+"%",r.style.borderColor=n===e.currentStyle?e.uiStyleSettings.toolboxAccentColor:"transparent",r.addEventListener("click",(function(){e.setCurrentStyle(n,r)})),t.appendChild(r);var i=document.createElement("div");i.style.minHeight="20px",i.style.flexGrow="2",i.style.overflow="hidden";var o='<svg width="100" height="20">\n <line x1="0" y1="10" x2="100" y2="10" stroke="'+e.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(""!==n?'stroke-dasharray="'+n+'"':"")+" />\n </svg>";i.innerHTML=o,r.appendChild(i),e.styleBoxes.push(r)})),t},t.prototype.setCurrentStyle=function(e,t){var n=this;this.currentStyle=e,this.styleBoxes.forEach((function(e){e.style.borderColor=e===t?n.uiStyleSettings.toolboxAccentColor:"transparent"})),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},t}(g),N=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.strokeColor=r.defaultColor,i.strokeWidth=r.defaultStrokeWidth,i.strokeDasharray=r.defaultStrokeDasharray,i.strokePanel=new y("Line color",r.defaultColorSet,r.defaultColor),i.strokePanel.onColorChanged=i.setStrokeColor,i.strokeWidthPanel=new S("Line width",r.defaultStrokeWidths,r.defaultStrokeWidth),i.strokeWidthPanel.onWidthChanged=i.setStrokeWidth,i.strokeStylePanel=new E("Line style",r.defaultStrokeDasharrays,r.defaultStrokeDasharray),i.strokeStylePanel.onStyleChanged=i.setStrokeDasharray,i}return i(t,e),Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var n=e.prototype.getState.call(this);return n.typeName=t.typeName,n},t.typeName="FrameMarker",t.title="Frame marker",t.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',t}(A),L=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"},M=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.x1=0,i.y1=0,i.x2=0,i.y2=0,i.defaultLength=50,i.manipulationStartX=0,i.manipulationStartY=0,i.manipulationStartX1=0,i.manipulationStartY1=0,i.manipulationStartX2=0,i.manipulationStartY2=0,i.setupControlBox(),i}return i(t,e),t.prototype.ownsTarget=function(t){return!!e.prototype.ownsTarget.call(this,t)||!(!this.grip1.ownsTarget(t)&&!this.grip2.ownsTarget(t))},t.prototype.pointerDown=function(t,n){e.prototype.pointerDown.call(this,t,n),this.manipulationStartX=t.x,this.manipulationStartY=t.y,"new"===this.state&&(this.x1=t.x,this.y1=t.y,this.x2=t.x,this.y2=t.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,"new"!==this.state&&(this.select(),this.grip1.ownsTarget(n)?this.activeGrip=this.grip1:this.grip2.ownsTarget(n)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},t.prototype.pointerUp=function(t){var n=this.state;e.prototype.pointerUp.call(this,t),"creating"===this.state&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(t),this._state="select","creating"===n&&this.onMarkerCreated&&this.onMarkerCreated(this)},t.prototype.adjustVisual=function(){},t.prototype.manipulate=function(e){"creating"===this.state?this.resize(e):"move"===this.state?(this.x1=this.manipulationStartX1+e.x-this.manipulationStartX,this.y1=this.manipulationStartY1+e.y-this.manipulationStartY,this.x2=this.manipulationStartX2+e.x-this.manipulationStartX,this.y2=this.manipulationStartY2+e.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):"resize"===this.state&&this.resize(e)},t.prototype.resize=function(e){switch(this.activeGrip){case this.grip1:this.x1=e.x,this.y1=e.y;break;case this.grip2:case void 0:this.x2=e.x,this.y2=e.y}this.adjustVisual(),this.adjustControlBox()},t.prototype.select=function(){e.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},t.prototype.deselect=function(){e.prototype.deselect.call(this),this.controlBox.style.display="none"},t.prototype.setupControlBox=function(){this.controlBox=s.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},t.prototype.adjustControlBox=function(){this.positionGrips()},t.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},t.prototype.createGrip=function(){var e=new w;return e.visual.transform.baseVal.appendItem(s.createTransform()),this.controlBox.appendChild(e.visual),e},t.prototype.positionGrips=function(){var e=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-e/2,this.y1-e/2),this.positionGrip(this.grip2.visual,this.x2-e/2,this.y2-e/2)},t.prototype.positionGrip=function(e,t,n){var r=e.transform.baseVal.getItem(0);r.setTranslate(t,n),e.transform.baseVal.replaceItem(r,0)},t.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},e.prototype.getState.call(this))},t.prototype.restoreState=function(t){e.prototype.restoreState.call(this,t);var n=t;this.x1=n.x1,this.y1=n.y1,this.x2=n.x2,this.y2=n.y2},t.prototype.scale=function(t,n){e.prototype.scale.call(this,t,n),this.x1=this.x1*t,this.y1=this.y1*n,this.x2=this.x2*t,this.y2=this.y2*n,this.adjustVisual(),this.adjustControlBox()},t}(x),D=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.strokeColor="transparent",i.strokeWidth=0,i.strokeDasharray="",i.setStrokeColor=i.setStrokeColor.bind(i),i.setStrokeWidth=i.setStrokeWidth.bind(i),i.setStrokeDasharray=i.setStrokeDasharray.bind(i),i.strokeColor=r.defaultColor,i.strokeWidth=r.defaultStrokeWidth,i.strokeDasharray=r.defaultStrokeDasharray,i.strokePanel=new y("Line color",r.defaultColorSet,r.defaultColor),i.strokePanel.onColorChanged=i.setStrokeColor,i.strokeWidthPanel=new S("Line width",r.defaultStrokeWidths,r.defaultStrokeWidth),i.strokeWidthPanel.onWidthChanged=i.setStrokeWidth,i.strokeStylePanel=new E("Line style",r.defaultStrokeDasharrays,r.defaultStrokeDasharray),i.strokeStylePanel.onStyleChanged=i.setStrokeDasharray,i}return i(t,e),t.prototype.ownsTarget=function(t){return!(!e.prototype.ownsTarget.call(this,t)&&t!==this.visual&&t!==this.selectorLine&&t!==this.visibleLine)},t.prototype.createVisual=function(){this.visual=s.createGroup(),this.selectorLine=s.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=s.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)},t.prototype.pointerDown=function(t,n){e.prototype.pointerDown.call(this,t,n),"new"===this.state&&(this.createVisual(),this.adjustVisual(),this._state="creating")},t.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()),s.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),s.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),s.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},t.prototype.setStrokeColor=function(e){this.strokeColor=e,this.adjustVisual(),this.colorChanged(e)},t.prototype.setStrokeWidth=function(e){this.strokeWidth=e,this.adjustVisual()},t.prototype.setStrokeDasharray=function(e){this.strokeDasharray=e,this.adjustVisual(),this.stateChanged()},Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var n=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},e.prototype.getState.call(this));return n.typeName=t.typeName,n},t.prototype.restoreState=function(t){e.prototype.restoreState.call(this,t);var n=t;this.strokeColor=n.strokeColor,this.strokeWidth=n.strokeWidth,this.strokeDasharray=n.strokeDasharray,this.createVisual(),this.adjustVisual()},t.typeName="LineMarker",t.title="Line marker",t.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',t}(M),P=function(e){function t(t,n,r,i){var o=e.call(this,t,i||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return o.fonts=[],o.fontBoxes=[],o.fonts=n,o.currentFont=r,o.setCurrentFont=o.setCurrentFont.bind(o),o}return i(t,e),t.prototype.getUi=function(){var e=this,t=document.createElement("div");return t.style.overflow="hidden",t.style.flexGrow="2",this.fonts.forEach((function(n){var r=document.createElement("div");r.style.display="inline-block",r.style.alignItems="center",r.style.justifyContent="space-between",r.style.padding="5px",r.style.borderWidth="2px",r.style.borderStyle="solid",r.style.overflow="hidden",r.style.maxWidth=100/e.fonts.length-5+"%",r.style.borderColor=n===e.currentFont?e.uiStyleSettings.toolboxAccentColor:"transparent",r.addEventListener("click",(function(){e.setCurrentFont(n,r)})),t.appendChild(r);var i=document.createElement("div");i.style.display="flex",i.style.minHeight="20px",i.style.flexGrow="2",i.style.fontFamily=n,i.style.overflow="hidden";var o=document.createElement("div");o.style.whiteSpace="nowrap",o.style.overflow="hidden",o.style.textOverflow="ellipsis",o.innerHTML="The quick brown fox jumps over the lazy dog",i.appendChild(o),r.appendChild(i),e.fontBoxes.push(r)})),t},t.prototype.setCurrentFont=function(e,t){var n=this;this.currentFont=e,this.fontBoxes.forEach((function(e){e.style.borderColor=e===t?n.uiStyleSettings.toolboxAccentColor:"transparent"})),this.onFontChanged&&this.onFontChanged(this.currentFont)},t}(g),Z=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.color="transparent",i.padding=5,i.DEFAULT_TEXT="请输入文本",i.text=i.DEFAULT_TEXT,i.isMoved=!1,i.color=r.defaultColor,i.fontFamily=r.defaultFontFamily,i.defaultSize={x:100,y:30},i.setColor=i.setColor.bind(i),i.setFont=i.setFont.bind(i),i.renderText=i.renderText.bind(i),i.sizeText=i.sizeText.bind(i),i.textEditDivClicked=i.textEditDivClicked.bind(i),i.showTextEditor=i.showTextEditor.bind(i),i.setSize=i.setSize.bind(i),i.positionTextEditor=i.positionTextEditor.bind(i),i.colorPanel=new y("Color",r.defaultColorSet,r.defaultColor),i.colorPanel.onColorChanged=i.setColor,i.fontFamilyPanel=new P("Font",r.defaultFontFamilies,r.defaultFontFamily),i.fontFamilyPanel.onFontChanged=i.setFont,i}return i(t,e),t.prototype.ownsTarget=function(t){if(e.prototype.ownsTarget.call(this,t)||t===this.visual||t===this.textElement||t===this.bgRectangle)return!0;var n=!1;return this.textElement.childNodes.forEach((function(e){e===t&&(n=!0)})),n},t.prototype.createVisual=function(){this.visual=s.createGroup(),this.bgRectangle=s.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=s.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(s.createTransform()),this.textElement.transform.baseVal.appendItem(s.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},t.prototype.pointerDown=function(t,n){e.prototype.pointerDown.call(this,t,n),this.isMoved=!1,this.pointerDownPoint=t,this.pointerDownTimestamp=Date.now(),"new"===this.state&&(this.createVisual(),this.moveVisual(t),this._state="creating")},t.prototype.renderText=function(){var e=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(t){e.textElement.appendChild(s.createTSpan(""===t.trim()?" ":t.trim(),[["x","0"],["dy","1.2em"]]))})),setTimeout(this.sizeText,10)}},t.prototype.getTextScale=function(){var e=this.textElement.getBBox(),t=1;if(e.width>0&&e.height>0){var n=(1*this.width-this.width*this.padding*2/100)/e.width,r=(1*this.height-this.height*this.padding*2/100)/e.height;t=Math.min(n,r)}return t},t.prototype.getTextPosition=function(e){var t=this.textElement.getBBox(),n=0,r=0;return t.width>0&&t.height>0&&(n=(this.width-t.width*e)/2,r=this.height/2-t.height*e/2),{x:n,y:r}},t.prototype.sizeText=function(){var e=this.textElement.getBBox(),t=this.getTextScale(),n=this.getTextPosition(t);n.y-=e.y*t,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+n.x+"px, "+n.y+"px) scale("+t+", "+t+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(n.x,n.y),this.textElement.transform.baseVal.getItem(1).setScale(t,t))},t.prototype.manipulate=function(t){e.prototype.manipulate.call(this,t),void 0!==this.pointerDownPoint&&(this.isMoved=Math.abs(t.x-this.pointerDownPoint.x)>5||Math.abs(t.y-this.pointerDownPoint.y)>5)},t.prototype.resize=function(t){e.prototype.resize.call(this,t),this.isMoved=!0,this.setSize(),this.sizeText()},t.prototype.setSize=function(){e.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(s.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),s.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},t.prototype.pointerUp=function(t){var n=this.state;"creating"===n&&(this._suppressMarkerCreateEvent=!0),e.prototype.pointerUp.call(this,t),this.setSize(),("creating"===n||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},t.prototype.showTextEditor=function(){var e=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(e){e.stopPropagation()})),this.textEditor.addEventListener("input",(function(){for(var t=Number.parseFloat(e.textEditor.style.fontSize);e.textEditor.clientWidth>=Number.parseInt(e.textEditor.style.maxWidth)&&t>.9;)t-=.1,e.textEditor.style.fontSize=Math.max(t,.9)+"em"})),this.textEditor.addEventListener("keyup",(function(e){e.cancelBubble=!0})),this.textEditor.addEventListener("paste",(function(e){if(e.clipboardData){var t=e.clipboardData.getData("text"),n=window.getSelection();if(!n.rangeCount)return!1;n.deleteFromDocument(),n.getRangeAt(0).insertNode(document.createTextNode(t)),e.preventDefault()}})),this.textEditDiv.addEventListener("pointerup",(function(){e.textEditDivClicked(e.textEditor.innerText)})),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},t.prototype.positionTextEditor=function(){if("edit"===this.state)if(void 0===this.textEditor)this.showTextEditor();else{this.textElement.style.display="";var e=this.getTextScale(),t=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),n=this.textElement.getBBox(),r={x:n.width*e,y:n.height*e};t.x-=r.x/2,t.y-=r.y/2,this.textEditor.style.top=t.y+"px",this.textEditor.style.left=t.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-t.x+"px",this.textEditor.style.fontSize=Math.max(16*e,12)+"px",this.textElement.style.display="none"}},t.prototype.textEditDivClicked=function(e){this.text=e.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},t.prototype.select=function(){e.prototype.select.call(this),"edit"===this.state&&this.textEditDivClicked(this.textEditor.innerText)},t.prototype.deselect=function(){"edit"===this.state&&this.textEditDivClicked(this.textEditor.innerText),e.prototype.deselect.call(this)},t.prototype.dblClick=function(t,n){e.prototype.dblClick.call(this,t,n),this.showTextEditor()},t.prototype.setColor=function(e){this.textElement&&s.setAttributes(this.textElement,[["fill",e]]),this.color=e,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(e)},t.prototype.setFont=function(e){this.textElement&&s.setAttributes(this.textElement,[["font-family",e]]),this.fontFamily=e,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},t.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},t.prototype.showVisual=function(){"edit"===this.state&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var n=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},e.prototype.getState.call(this));return n.typeName=t.typeName,n},t.prototype.restoreState=function(t){var n=t;this.color=n.color,this.fontFamily=n.fontFamily,this.padding=n.padding,this.text=n.text,this.createVisual(),e.prototype.restoreState.call(this,t),this.setSize()},t.prototype.scale=function(t,n){e.prototype.scale.call(this,t,n),this.setSize(),this.sizeText(),this.positionTextEditor()},t.typeName="TextMarker",t.title="Text marker",t.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',t}(k),B=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.color="transparent",i.lineWidth=3,i.drawing=!1,i.pixelRatio=1,i.color=r.defaultColor,i.lineWidth=r.defaultStrokeWidth,i.pixelRatio=r.freehandPixelRatio,i.setColor=i.setColor.bind(i),i.addCanvas=i.addCanvas.bind(i),i.finishCreation=i.finishCreation.bind(i),i.setLineWidth=i.setLineWidth.bind(i),i.colorPanel=new y("Color",r.defaultColorSet,r.defaultColor),i.colorPanel.onColorChanged=i.setColor,i.lineWidthPanel=new S("Line width",r.defaultStrokeWidths,r.defaultStrokeWidth),i.lineWidthPanel.onWidthChanged=i.setLineWidth,i}return i(t,e),t.prototype.ownsTarget=function(t){return!(!e.prototype.ownsTarget.call(this,t)&&t!==this.visual&&t!==this.drawingImage)},t.prototype.createVisual=function(){this.visual=s.createGroup(),this.drawingImage=s.createImage(),this.visual.appendChild(this.drawingImage);var e=s.createTransform();this.visual.transform.baseVal.appendItem(e),this.addMarkerVisualToContainer(this.visual)},t.prototype.pointerDown=function(t,n){"new"===this.state&&(this.addCanvas(),this.createVisual(),this._state="creating"),"creating"===this.state?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(t.x,t.y),this.drawing=!0):e.prototype.pointerDown.call(this,t,n)},t.prototype.manipulate=function(t){"creating"===this.state?this.drawing&&(this.canvasContext.lineTo(t.x,t.y),this.canvasContext.stroke()):e.prototype.manipulate.call(this,t)},t.prototype.resize=function(t){e.prototype.resize.call(this,t),s.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),s.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},t.prototype.pointerUp=function(t){"creating"===this._state?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):e.prototype.pointerUp.call(this,t)},t.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)},t.prototype.select=function(){"creating"===this.state&&this.finishCreation(),e.prototype.select.call(this)},t.prototype.deselect=function(){"creating"===this.state&&this.finishCreation(),e.prototype.deselect.call(this)},t.prototype.finishCreation=function(){for(var e=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),t=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],n=t[0],r=t[1],i=t[2],o=t[3],a=!1,l=0;l<this.canvasElement.height;l++)for(var s=0;s<this.canvasElement.width;s++)e.data[l*this.canvasElement.width*4+4*s+3]>0&&(a=!0,l<r&&(r=l),s<n&&(n=s),l>o&&(o=l),s>i&&(i=s));if(a){this.left=n/this.pixelRatio,this.top=r/this.pixelRatio,this.width=(i-n)/this.pixelRatio,this.height=(o-r)/this.pixelRatio;var c=document.createElement("canvas");c.width=i-n,c.height=o-r,c.getContext("2d").putImageData(this.canvasContext.getImageData(n,r,i-n,o-r),0,0),this.drawingImgUrl=c.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},t.prototype.setDrawingImage=function(){s.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),s.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},t.prototype.setColor=function(e){this.color=e,this.colorChanged(e)},t.prototype.setLineWidth=function(e){this.lineWidth=e},Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return"new"===this.state||"creating"===this.state?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var n=Object.assign({drawingImgUrl:this.drawingImgUrl},e.prototype.getState.call(this));return n.typeName=t.typeName,n},t.prototype.restoreState=function(t){this.createVisual(),e.prototype.restoreState.call(this,t),this.drawingImgUrl=t.drawingImgUrl,this.setDrawingImage()},t.prototype.scale=function(t,n){e.prototype.scale.call(this,t,n),this.setDrawingImage()},t.typeName="FreehandMarker",t.title="Freehand marker",t.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',t}(k),T=function(e){function t(t,n,r){var i=e.call(this,t,r||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return i.typeBoxes=[],i.currentType=n,i.setCurrentType=i.setCurrentType.bind(i),i}return i(t,e),t.prototype.getUi=function(){var e=this,t=document.createElement("div");t.style.display="flex",t.style.overflow="hidden",t.style.flexGrow="2";for(var n=function(n){var i="both";switch(n){case 0:i="both";break;case 1:i="start";break;case 2:i="end";break;case 3:i="none"}var o=document.createElement("div");if(o.style.display="flex",o.style.flexGrow="2",o.style.alignItems="center",o.style.justifyContent="space-between",o.style.padding="5px",o.style.borderWidth="2px",o.style.borderStyle="solid",o.style.borderColor=i===r.currentType?r.uiStyleSettings.toolboxAccentColor:"transparent",o.addEventListener("click",(function(){e.setCurrentType(i,o)})),t.appendChild(o),"both"===i||"start"===i){var a=document.createElement("div");a.style.display="flex",a.style.alignItems="center",a.style.minHeight="20px",a.innerHTML='<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">\n <polygon points="0,5 10,0 10,10" fill="'+(void 0!==r.uiStyleSettings?r.uiStyleSettings.toolboxColor:"#eeeeee")+'" />\n </svg>',a.style.marginLeft="5px",o.appendChild(a)}var l=document.createElement("div");l.style.display="flex",l.style.alignItems="center",l.style.minHeight="20px",l.style.flexGrow="2";var s=document.createElement("hr");if(s.style.minWidth="20px",s.style.border="0px",s.style.borderTop="3px solid "+(void 0!==r.uiStyleSettings?r.uiStyleSettings.toolboxColor:"#eeeeee"),s.style.flexGrow="2",l.appendChild(s),o.appendChild(l),"both"===i||"end"===i){var c=document.createElement("div");c.style.display="flex",c.style.alignItems="center",c.style.minHeight="20px",c.innerHTML='<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">\n <polygon points="0,0 10,5 0,10" fill="'+(void 0!==r.uiStyleSettings?r.uiStyleSettings.toolboxColor:"#eeeeee")+'" />\n </svg>',c.style.marginRight="5px",o.appendChild(c)}r.typeBoxes.push(o)},r=this,i=0;i<4;i++)n(i);return t},t.prototype.setCurrentType=function(e,t){var n=this;this.currentType=e,this.typeBoxes.forEach((function(e){e.style.borderColor=e===t?void 0!==n.uiStyleSettings?n.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"})),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},t}(g),j=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.arrowType="end",i.arrowBaseHeight=10,i.arrowBaseWidth=10,i.getArrowPoints=i.getArrowPoints.bind(i),i.setArrowType=i.setArrowType.bind(i),i.arrowTypePanel=new T("Arrow type","end"),i.arrowTypePanel.onArrowTypeChanged=i.setArrowType,i}return i(t,e),t.prototype.ownsTarget=function(t){return!(!e.prototype.ownsTarget.call(this,t)&&t!==this.arrow1&&t!==this.arrow2)},t.prototype.getArrowPoints=function(e,t){var n=this.arrowBaseWidth+2*this.strokeWidth,r=this.arrowBaseHeight+2*this.strokeWidth;return e-n/2+","+(t+r/2)+" "+e+","+(t-r/2)+" "+(e+n/2)+","+(t+r/2)},t.prototype.createTips=function(){this.arrow1=s.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(s.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=s.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(s.createTransform()),this.visual.appendChild(this.arrow2)},t.prototype.pointerDown=function(t,n){e.prototype.pointerDown.call(this,t,n),"creating"===this.state&&this.createTips()},t.prototype.adjustVisual=function(){if(e.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display="both"===this.arrowType||"start"===this.arrowType?"":"none",this.arrow2.style.display="both"===this.arrowType||"end"===this.arrowType?"":"none",s.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),s.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var t=0;Math.abs(this.x1-this.x2)>.1&&(t=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var n=this.arrow1.transform.baseVal.getItem(0);n.setRotate(t,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(n,0);var r=this.arrow2.transform.baseVal.getItem(0);r.setRotate(t+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(r,0)}},t.prototype.setArrowType=function(e){this.arrowType=e,this.adjustVisual(),this.stateChanged()},Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var n=Object.assign({arrowType:this.arrowType},e.prototype.getState.call(this));return n.typeName=t.typeName,n},t.prototype.restoreState=function(t){e.prototype.restoreState.call(this,t);var n=t;this.arrowType=n.arrowType,this.createTips(),this.adjustVisual()},t.typeName="ArrowMarker",t.title="Arrow marker",t.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',t}(D),I=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.fillColor=r.defaultFillColor,i.strokeWidth=0,i.fillPanel=new y("Color",r.defaultColorSet,r.defaultFillColor),i.fillPanel.onColorChanged=i.setFillColor,i}return i(t,e),Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var n=e.prototype.getState.call(this);return n.typeName=t.typeName,n},t.typeName="CoverMarker",t.title="Cover marker",t.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',t}(A),F=function(e){function t(t,n,r,i){var o=e.call(this,t,i||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return o.opacities=[],o.opacityBoxes=[],o.opacities=n,o.currentOpacity=r,o.setCurrentOpacity=o.setCurrentOpacity.bind(o),o}return i(t,e),t.prototype.getUi=function(){var e=this,t=document.createElement("div");return t.style.display="flex",t.style.overflow="hidden",t.style.flexGrow="2",t.style.justifyContent="space-between",this.opacities.forEach((function(n){var r=document.createElement("div");r.style.display="flex",r.style.alignItems="center",r.style.justifyContent="center",r.style.padding="5px",r.style.borderWidth="2px",r.style.borderStyle="solid",r.style.borderColor=n===e.currentOpacity?e.uiStyleSettings.toolboxAccentColor:"transparent",r.addEventListener("click",(function(){e.setCurrentOpacity(n,r)})),t.appendChild(r);var i=document.createElement("div");i.innerText=100*n+"%",r.appendChild(i),e.opacityBoxes.push(r)})),t},t.prototype.setCurrentOpacity=function(e,t){var n=this;this.currentOpacity=e,this.opacityBoxes.forEach((function(e){e.style.borderColor=e===t?n.uiStyleSettings.toolboxAccentColor:"transparent"})),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},t}(g),O=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.setOpacity=i.setOpacity.bind(i),i.fillColor=r.defaultHighlightColor,i.strokeWidth=0,i.opacity=r.defaultHighlightOpacity,i.fillPanel=new y("Color",r.defaultColorSet,i.fillColor),i.fillPanel.onColorChanged=i.setFillColor,i.opacityPanel=new F("Opacity",r.defaultOpacitySteps,i.opacity),i.opacityPanel.onOpacityChanged=i.setOpacity,i}return i(t,e),t.prototype.setOpacity=function(e){this.opacity=e,this.visual&&s.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var n=e.prototype.getState.call(this);return n.typeName=t.typeName,n},t.typeName="HighlightMarker",t.title="Highlight marker",t.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',t}(I),R='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',W='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',z=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.bgColor="transparent",i.tipPosition={x:0,y:0},i.tipBase1Position={x:0,y:0},i.tipBase2Position={x:0,y:0},i.tipMoving=!1,i.color=r.defaultStrokeColor,i.bgColor=r.defaultFillColor,i.fontFamily=r.defaultFontFamily,i.defaultSize={x:100,y:30},i.setBgColor=i.setBgColor.bind(i),i.getTipPoints=i.getTipPoints.bind(i),i.positionTip=i.positionTip.bind(i),i.setTipPoints=i.setTipPoints.bind(i),i.colorPanel=new y("Text color",r.defaultColorSet,i.color,R),i.colorPanel.onColorChanged=i.setColor,i.bgColorPanel=new y("Fill color",r.defaultColorSet,i.bgColor,W),i.bgColorPanel.onColorChanged=i.setBgColor,i.fontFamilyPanel=new P("Font",r.defaultFontFamilies,r.defaultFontFamily),i.fontFamilyPanel.onFontChanged=i.setFont,i.tipGrip=new w,i.tipGrip.visual.transform.baseVal.appendItem(s.createTransform()),i.controlBox.appendChild(i.tipGrip.visual),i}return i(t,e),t.prototype.ownsTarget=function(t){return e.prototype.ownsTarget.call(this,t)||this.tipGrip.ownsTarget(t)||this.tip===t},t.prototype.createTip=function(){s.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=s.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},t.prototype.pointerDown=function(t,n){"new"===this.state&&e.prototype.pointerDown.call(this,t,n),"creating"===this.state?this.createTip():this.tipGrip.ownsTarget(n)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):e.prototype.pointerDown.call(this,t,n)},t.prototype.pointerUp=function(t){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,e.prototype.pointerUp.call(this,t);else{var n="creating"===this.state;e.prototype.pointerUp.call(this,t),this.setTipPoints(n),this.positionTip()}},t.prototype.manipulate=function(t){if(this.tipMoving){var n=this.unrotatePoint(t);this.tipPosition={x:n.x-this.manipulationStartLeft,y:n.y-this.manipulationStartTop},this.positionTip()}else e.prototype.manipulate.call(this,t)},t.prototype.setBgColor=function(e){this.bgRectangle&&this.tip&&(s.setAttributes(this.bgRectangle,[["fill",e]]),s.setAttributes(this.tip,[["fill",e]])),this.bgColor=e,this.fillColorChanged(e)},t.prototype.getTipPoints=function(){return this.setTipPoints("creating"===this.state),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},t.prototype.setTipPoints=function(e){void 0===e&&(e=!1);var t=Math.min(this.height/2,15),n=this.height/5;e&&(this.tipPosition={x:t+n/2,y:this.height+20});var r=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?r<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(n=this.width/5,t=Math.min(this.width/2,15),this.tipBase1Position={x:t,y:0},this.tipBase2Position={x:t+n,y:0}):(this.tipBase1Position={x:0,y:t},this.tipBase2Position={x:0,y:t+n}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?r<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(n=this.width/5,t=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-t-n,y:0},this.tipBase2Position={x:this.width-t,y:0}):(this.tipBase1Position={x:this.width,y:t},this.tipBase2Position={x:this.width,y:t+n}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?r<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(n=this.width/5,t=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-t-n,y:this.height},this.tipBase2Position={x:this.width-t,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-t-n},this.tipBase2Position={x:this.width,y:this.height-t}):r<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(n=this.width/5,t=Math.min(this.width/2,15),this.tipBase1Position={x:t,y:this.height},this.tipBase2Position={x:t+n,y:this.height}):(this.tipBase1Position={x:0,y:this.height-t},this.tipBase2Position={x:0,y:this.height-t-n})},t.prototype.resize=function(t){e.prototype.resize.call(this,t),this.positionTip()},t.prototype.positionTip=function(){s.setAttributes(this.tip,[["points",this.getTipPoints()]]);var e=this.tipGrip.visual.transform.baseVal.getItem(0);e.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(e,0)},Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),t.prototype.select=function(){this.positionTip(),e.prototype.select.call(this)},t.prototype.getState=function(){var n=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},e.prototype.getState.call(this));return n.typeName=t.typeName,n},t.prototype.restoreState=function(t){var n=t;this.bgColor=n.bgColor,this.tipPosition=n.tipPosition,e.prototype.restoreState.call(this,t),this.createTip(),this.setTipPoints()},t.prototype.scale=function(t,n){e.prototype.scale.call(this,t,n),this.tipPosition={x:this.tipPosition.x*t,y:this.tipPosition.y*n},this.positionTip()},t.typeName="CalloutMarker",t.title="Callout marker",t.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',t}(Z),H=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.fillColor="transparent",i.strokeColor="transparent",i.strokeWidth=0,i.strokeDasharray="",i.opacity=1,i.strokeColor=r.defaultColor,i.strokeWidth=r.defaultStrokeWidth,i.strokeDasharray=r.defaultStrokeDasharray,i.fillColor=r.defaultFillColor,i.setStrokeColor=i.setStrokeColor.bind(i),i.setFillColor=i.setFillColor.bind(i),i.setStrokeWidth=i.setStrokeWidth.bind(i),i.setStrokeDasharray=i.setStrokeDasharray.bind(i),i.setOpacity=i.setOpacity.bind(i),i.createVisual=i.createVisual.bind(i),i.strokePanel=new y("Line color",l(r.defaultColorSet,["transparent"]),r.defaultColor),i.strokePanel.onColorChanged=i.setStrokeColor,i.fillPanel=new y("Fill color",l(r.defaultColorSet,["transparent"]),i.fillColor,W),i.fillPanel.onColorChanged=i.setFillColor,i.strokeWidthPanel=new S("Line width",r.defaultStrokeWidths,r.defaultStrokeWidth),i.strokeWidthPanel.onWidthChanged=i.setStrokeWidth,i.strokeStylePanel=new E("Line style",r.defaultStrokeDasharrays,r.defaultStrokeDasharray),i.strokeStylePanel.onStyleChanged=i.setStrokeDasharray,i.opacityPanel=new F("Opacity",r.defaultOpacitySteps,i.opacity),i.opacityPanel.onOpacityChanged=i.setOpacity,i}return i(t,e),t.prototype.ownsTarget=function(t){return!(!e.prototype.ownsTarget.call(this,t)&&t!==this.visual)},t.prototype.createVisual=function(){this.visual=s.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},t.prototype.pointerDown=function(t,n){e.prototype.pointerDown.call(this,t,n),"new"===this.state&&(this.createVisual(),this.moveVisual(t),this._state="creating")},t.prototype.manipulate=function(t){e.prototype.manipulate.call(this,t)},t.prototype.resize=function(t){e.prototype.resize.call(this,t),this.setSize()},t.prototype.setSize=function(){e.prototype.setSize.call(this),s.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},t.prototype.pointerUp=function(t){e.prototype.pointerUp.call(this,t),this.setSize()},t.prototype.setStrokeColor=function(e){this.strokeColor=e,this.visual&&s.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(e),this.stateChanged()},t.prototype.setFillColor=function(e){this.fillColor=e,this.visual&&s.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(e),this.stateChanged()},t.prototype.setStrokeWidth=function(e){this.strokeWidth=e,this.visual&&s.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},t.prototype.setStrokeDasharray=function(e){this.strokeDasharray=e,this.visual&&s.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},t.prototype.setOpacity=function(e){this.opacity=e,this.visual&&s.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var n=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},e.prototype.getState.call(this));return n.typeName=t.typeName,n},t.prototype.restoreState=function(t){var n=t;this.fillColor=n.fillColor,this.strokeColor=n.strokeColor,this.strokeWidth=n.strokeWidth,this.strokeDasharray=n.strokeDasharray,this.opacity=n.opacity,this.createVisual(),e.prototype.restoreState.call(this,t),this.setSize()},t.prototype.scale=function(t,n){e.prototype.scale.call(this,t,n),this.setSize()},t.typeName="EllipseMarker",t.title="Ellipse marker",t.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',t}(k),V=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}return i(t,e),Object.defineProperty(t.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),t.prototype.ownsTarget=function(t){return!(!e.prototype.ownsTarget.call(this,t)&&t!==this.tip1&&t!==this.tip2)},t.prototype.createTips=function(){this.tip1=s.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(s.createTransform()),this.visual.appendChild(this.tip1),this.tip2=s.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(s.createTransform()),this.visual.appendChild(this.tip2)},t.prototype.pointerDown=function(t,n){e.prototype.pointerDown.call(this,t,n),"creating"===this.state&&this.createTips()},t.prototype.adjustVisual=function(){if(e.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(s.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),s.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var t=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),n=this.tip1.transform.baseVal.getItem(0);n.setRotate(t,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(n,0);var r=this.tip2.transform.baseVal.getItem(0);r.setRotate(t+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(r,0)}},Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var n=e.prototype.getState.call(this);return n.typeName=t.typeName,n},t.prototype.restoreState=function(t){e.prototype.restoreState.call(this,t),this.createTips(),this.adjustVisual()},t.typeName="MeasurementMarker",t.title="Measurement marker",t.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',t}(D),K=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.strokePanel.colors=r.defaultColorSet,i.fillColor="transparent",i}return i(t,e),Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var n=e.prototype.getState.call(this);return n.typeName=t.typeName,n},t.typeName="EllipseFrameMarker",t.title="Ellipse frame marker",t.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',t}(H),Y=function(){function e(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(e.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),e.prototype.addUndoStep=function(e){0!==this.undoStack.length&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(e)||(this.undoStack.push(e),JSON.stringify(this.lastRedoStep)!==JSON.stringify(e)&&this.redoStack.splice(0,this.redoStack.length))},e.prototype.replaceLastUndoStep=function(e){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=e)},e.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},e.prototype.undo=function(){if(this.undoStack.length>1){var e=this.undoStack.pop();return void 0!==e&&this.redoStack.push(e),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},e.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},e}(),U=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.strokeColor="transparent",i.strokeWidth=0,i.strokeDasharray="",i.curveX=0,i.curveY=0,i.manipulationStartCurveX=0,i.manipulationStartCurveY=0,i.setStrokeColor=i.setStrokeColor.bind(i),i.setStrokeWidth=i.setStrokeWidth.bind(i),i.setStrokeDasharray=i.setStrokeDasharray.bind(i),i.positionGrips=i.positionGrips.bind(i),i.addControlGrips=i.addControlGrips.bind(i),i.adjustVisual=i.adjustVisual.bind(i),i.setupControlBox=i.setupControlBox.bind(i),i.resize=i.resize.bind(i),i.strokeColor=r.defaultColor,i.strokeWidth=r.defaultStrokeWidth,i.strokeDasharray=r.defaultStrokeDasharray,i.strokePanel=new y("Line color",r.defaultColorSet,r.defaultColor),i.strokePanel.onColorChanged=i.setStrokeColor,i.strokeWidthPanel=new S("Line width",r.defaultStrokeWidths,r.defaultStrokeWidth),i.strokeWidthPanel.onWidthChanged=i.setStrokeWidth,i.strokeStylePanel=new E("Line style",r.defaultStrokeDasharrays,r.defaultStrokeDasharray),i.strokeStylePanel.onStyleChanged=i.setStrokeDasharray,i}return i(t,e),t.prototype.ownsTarget=function(t){return!(!e.prototype.ownsTarget.call(this,t)&&t!==this.visual&&t!==this.selectorCurve&&t!==this.visibleCurve&&!this.curveGrip.ownsTarget(t))},t.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},t.prototype.createVisual=function(){this.visual=s.createGroup(),this.selectorCurve=s.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=s.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)},t.prototype.pointerDown=function(t,n){e.prototype.pointerDown.call(this,t,n),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,"new"===this.state&&(this.curveX=t.x,this.curveY=t.y),"new"===this.state?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(n)&&(this.activeGrip=this.curveGrip,this._state="resize")},t.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),s.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),s.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),s.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},t.prototype.setupControlBox=function(){e.prototype.setupControlBox.call(this),this.curveControlLine1=s.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=s.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)},t.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,e.prototype.addControlGrips.call(this)},t.prototype.positionGrips=function(){e.prototype.positionGrips.call(this);var t=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-t/2,this.curveY-t/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()))},t.prototype.manipulate=function(t){"move"===this.state&&(this.curveX=this.manipulationStartCurveX+t.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+t.y-this.manipulationStartY),e.prototype.manipulate.call(this,t)},t.prototype.resize=function(t){this.activeGrip===this.curveGrip&&(this.curveX=t.x,this.curveY=t.y),e.prototype.resize.call(this,t),"creating"===this.state&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},t.prototype.setStrokeColor=function(e){this.strokeColor=e,this.adjustVisual(),this.colorChanged(e)},t.prototype.setStrokeWidth=function(e){this.strokeWidth=e,this.adjustVisual()},t.prototype.setStrokeDasharray=function(e){this.strokeDasharray=e,this.adjustVisual()},t.prototype.scale=function(t,n){this.curveX=this.curveX*t,this.curveY=this.curveY*n,e.prototype.scale.call(this,t,n)},Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var n=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},e.prototype.getState.call(this));return n.typeName=t.typeName,n},t.prototype.restoreState=function(t){e.prototype.restoreState.call(this,t);var n=t;this.strokeColor=n.strokeColor,this.strokeWidth=n.strokeWidth,this.strokeDasharray=n.strokeDasharray,this.curveX=n.curveX,this.curveY=n.curveY,this.createVisual(),this.adjustVisual()},t.typeName="CurveMarker",t.title="Curve marker",t.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',t}(M),G=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.fillColor="transparent",i.strokeColor="transparent",i.strokeWidth=0,i.strokeDasharray="",i.textColor="transparent",i.fontSize="1rem",i.isMoved=!1,i.captionText="Caption",i.PADDING=5,i.captionBoxWidth=0,i.captionBoxHeight=0,i.strokeColor=r.defaultColor,i.strokeWidth=r.defaultStrokeWidth,i.strokeDasharray=r.defaultStrokeDasharray,i.fillColor=r.defaultFillColor,i.textColor=r.defaultStrokeColor,i.fontFamily=r.defaultFontFamily,i.fontSize=r.defaultCaptionFontSize,i.captionText=r.defaultCaptionText,i.setStrokeColor=i.setStrokeColor.bind(i),i.setFillColor=i.setFillColor.bind(i),i.setStrokeWidth=i.setStrokeWidth.bind(i),i.setStrokeDasharray=i.setStrokeDasharray.bind(i),i.createVisual=i.createVisual.bind(i),i.sizeCaption=i.sizeCaption.bind(i),i.setCaptionText=i.setCaptionText.bind(i),i.showTextEditor=i.showTextEditor.bind(i),i.positionTextEditor=i.positionTextEditor.bind(i),i.finishTextEditing=i.finishTextEditing.bind(i),i.setFont=i.setFont.bind(i),i.setTextColor=i.setTextColor.bind(i),i.strokePanel=new y("Line color",l(r.defaultColorSet,["transparent"]),i.strokeColor),i.strokePanel.onColorChanged=i.setStrokeColor,i.fillPanel=new y("Fill color",l(r.defaultColorSet,["transparent"]),i.fillColor,W),i.fillPanel.onColorChanged=i.setFillColor,i.strokeWidthPanel=new S("Line width",r.defaultStrokeWidths,r.defaultStrokeWidth),i.strokeWidthPanel.onWidthChanged=i.setStrokeWidth,i.strokeStylePanel=new E("Line style",r.defaultStrokeDasharrays,r.defaultStrokeDasharray),i.strokeStylePanel.onStyleChanged=i.setStrokeDasharray,i.fontFamilyPanel=new P("Font",r.defaultFontFamilies,r.defaultFontFamily),i.fontFamilyPanel.onFontChanged=i.setFont,i.textColorPanel=new y("Text color",r.defaultColorSet,i.textColor,R),i.textColorPanel.onColorChanged=i.setTextColor,i}return i(t,e),t.prototype.ownsTarget=function(t){return!(!e.prototype.ownsTarget.call(this,t)&&t!==this.visual&&t!==this.frame&&t!==this.captionBg&&t!==this.captionElement)},t.prototype.createVisual=function(){this.visual=s.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=s.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=s.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=s.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()},t.prototype.setCaptionText=function(e){this.captionText=e,this.captionElement.textContent=this.captionText,this.sizeCaption()},t.prototype.pointerDown=function(t,n){e.prototype.pointerDown.call(this,t,n),this.isMoved=!1,this.pointerDownPoint=t,this.pointerDownTimestamp=Date.now(),"new"===this.state&&(this.createVisual(),this.moveVisual(t),this._state="creating")},t.prototype.manipulate=function(t){e.prototype.manipulate.call(this,t),void 0!==this.pointerDownPoint&&(this.isMoved=Math.abs(t.x-this.pointerDownPoint.x)>5||Math.abs(t.y-this.pointerDownPoint.y)>5)},t.prototype.resize=function(t){e.prototype.resize.call(this,t),this.setSize()},t.prototype.sizeCaption=function(){var e=this.captionElement.getBBox();""!==this.captionText.trim()?(this.captionBoxWidth=e.width+2*this.PADDING,this.captionBoxHeight=e.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),s.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')"]]),s.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')"]])},t.prototype.showTextEditor=function(){var e=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(e){e.stopPropagation()})),this.textEditBox.addEventListener("keypress",(function(t){"Enter"===t.key&&e.finishTextEditing(e.textEditBox.value)})),this.textEditBox.addEventListener("keyup",(function(e){e.cancelBubble=!0})),this.textEditBox.addEventListener("blur",(function(){e.finishTextEditing(e.textEditBox.value)})),this.textEditDiv.addEventListener("pointerup",(function(){e.finishTextEditing(e.textEditBox.value)})),this.positionTextEditor(),this.textEditBox.focus()},t.prototype.positionTextEditor=function(){"edit"===this.state&&(void 0===this.textEditBox?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},t.prototype.finishTextEditing=function(e){this.setCaptionText(e.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},t.prototype.setFont=function(e){this.captionElement&&s.setAttributes(this.captionElement,[["font-family",e]]),this.fontFamily=e,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},t.prototype.setTextColor=function(e){this.captionElement&&s.setAttributes(this.captionElement,[["fill",e]]),this.textColor=e,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},t.prototype.setSize=function(){e.prototype.setSize.call(this),s.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},t.prototype.pointerUp=function(t){e.prototype.pointerUp.call(this,t),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},t.prototype.dblClick=function(t,n){e.prototype.dblClick.call(this,t,n),this.showTextEditor()},t.prototype.setStrokeColor=function(e){this.strokeColor=e,this.frame&&s.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(e),this.stateChanged()},t.prototype.setFillColor=function(e){this.fillColor=e,this.captionBg&&s.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(e),this.stateChanged()},t.prototype.setStrokeWidth=function(e){this.strokeWidth=e,this.frame&&s.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},t.prototype.setStrokeDasharray=function(e){this.strokeDasharray=e,this.frame&&s.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(t.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),t.prototype.getState=function(){var t=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},e.prototype.getState.call(this));return t.typeName=this.typeName,t},t.prototype.restoreState=function(t){var n=t;this.fillColor=n.fillColor,this.strokeColor=n.strokeColor,this.strokeWidth=n.strokeWidth,this.strokeDasharray=n.strokeDasharray,this.textColor=n.textColor,this.fontFamily=n.fontFamily,this.captionText=n.captionText,this.fontSize=n.fontSize,this.createVisual(),e.prototype.restoreState.call(this,t),this.setSize()},t.prototype.scale=function(t,n){e.prototype.scale.call(this,t,n),this.setSize()},t.typeName="CaptionFrameMarker",t.title="Caption frame marker",t.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',t}(k),X=function(){function e(e,t){void 0===t&&(t=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=e,this.cancelable=t}return Object.defineProperty(e.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),e.prototype.preventDefault=function(){this._defaultPrevented=!0},e}(),Q=function(e){function t(t,n,r){var i=e.call(this,t,!1)||this;return i.dataUrl=n,i.state=r,i}return i(t,e),t}(X),J=function(e){function t(t,n,r){void 0===r&&(r=!1);var i=e.call(this,t,r)||this;return i.marker=n,i}return i(t,e),t}(X),q=function(){function e(){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 e.prototype.addEventListener=function(e,t){this[e].push(t)},e.prototype.removeEventListener=function(e,t){var n=this[e].indexOf(t);n>-1&&this[e].splice(n,1)},e}(),_=function(){function e(t){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new L,this._isOpen=!1,this.undoRedoManager=new Y,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 q,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=e.instanceCounter++,this.styles=new h(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=t,this.targetRoot=document.body,this.width=t.clientWidth,this.height=t.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(e.prototype,"ALL_MARKER_TYPES",{get:function(){return[N,B,j,Z,K,H,O,z,V,I,D,U,G]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[N,B,j,Z,H,O,z]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"BASIC_MARKER_TYPES",{get:function(){return[N,B,j,Z,O]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(e){var t=this;this._availableMarkerTypes.splice(0),e.forEach((function(e){if("string"==typeof e){var n=t.ALL_MARKER_TYPES.find((function(t){return t.typeName===e}));void 0!==n&&t._availableMarkerTypes.push(n)}else t._availableMarkerTypes.push(e)}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(e){this._zoomLevel=e,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(e.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),e.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),"popup"===this.settings.displayMode&&this.onPopupTargetResize(),c.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},e.prototype.show=function(){var e=this;void 0===this.styles.styleSheetRoot&&void 0!==d.styleSheetRoot&&(this.styles.styleSheetRoot=d.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach((function(t){return t(new X(e))}))},e.prototype.render=function(){return o(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:return this.setCurrentMarker(),(e=new u).naturalSize=this.renderAtNaturalSize,e.imageType=this.renderImageType,e.imageQuality=this.renderImageQuality,e.markersOnly=this.renderMarkersOnly,e.width=this.renderWidth,e.height=this.renderHeight,[4,e.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return t.sent(),[4,e.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,t.sent()]}}))}))},e.prototype.close=function(e){var t=this;if(void 0===e&&(e=!1),this.isOpen){var n=!1;e||this.eventListeners.beforeclose.forEach((function(e){var r=new X(t,!0);e(r),r.defaultPrevented&&(n=!0)})),n||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),"popup"===this.settings.displayMode&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach((function(e){return e(new X(t))})),this.detachEvents(),this._isOpen=!1)}},e.prototype.addMarkersToToolbar=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];(e=this._availableMarkerTypes).push.apply(e,t)},e.prototype.addRenderEventListener=function(e){this.addEventListener("render",(function(t){e(t.dataUrl,t.state)}))},e.prototype.removeRenderEventListener=function(e){},e.prototype.addCloseEventListener=function(e){this.addEventListener("close",(function(){e()}))},e.prototype.removeCloseEventListener=function(e){},e.prototype.setupResizeObserver=function(){var e=this;"inline"===this.settings.displayMode?window.ResizeObserver&&(this.targetObserver=new ResizeObserver((function(){e.resize(e.target.clientWidth,e.target.clientHeight)})),this.targetObserver.observe(this.target)):"popup"===this.settings.displayMode&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver((function(){return e.onPopupTargetResize()})),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},e.prototype.onPopupTargetResize=function(){var e=1*this.target.clientWidth/this.target.clientHeight,t=this.editorCanvas.clientWidth/e>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*e:this.editorCanvas.clientWidth,n=t<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/e;this.resize(t,n)},e.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},e.prototype.resize=function(e,t){this._isResizing=!0;var n=e/this.imageWidth,r=t/this.imageHeight;this.imageWidth=Math.round(e),this.imageHeight=Math.round(t),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px","popup"!==this.settings.displayMode?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),void 0!==this.toolbar&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(n,r),this._isResizing=!1},e.prototype.scaleMarkers=function(e,t){var n,r=this;this._currentMarker&&this._currentMarker instanceof Z?this._currentMarker.scale(e,t):(n=this._currentMarker,this.setCurrentMarker()),this.markers.forEach((function(n){n!==r._currentMarker&&n.scale(e,t)})),void 0!==n&&this.setCurrentMarker(n)},e.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},e.prototype.setTopLeft=function(){var e=this.editingTarget.getBoundingClientRect(),t=this.editorCanvas.getBoundingClientRect();this.left=e.left-t.left,this.top=e.top-t.top},e.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},e.prototype.addDefs=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.defs=s.createDefs(),this.addDefsToImage(),(e=this.defs).append.apply(e,t)},e.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},e.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},e.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},e.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},e.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},e.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},e.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},e.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var e=document.createElement("a");e.href="https://markerjs.com/",e.target="_blank",e.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',e.title="Powered by marker.js",e.style.display="grid",e.style.alignItems="center",e.style.justifyItems="center",e.style.padding="3px",e.style.width="20px",e.style.height="20px",this.logoUI.appendChild(e),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},e.prototype.positionLogo=function(){this.logoUI&&("right"!==this.uiStyleSettings.logoPosition?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},e.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"},e.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},e.prototype.showUI=function(){switch("popup"===this.settings.displayMode&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var e=void 0!==this.settings.uiOffsetTop?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=e+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=void 0!==this.uiStyleSettings.zIndex?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=void 0!==this.uiStyleSettings.zIndex?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin="popup"===this.settings.displayMode?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new m(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1","popup"===this.settings.displayMode&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex","popup"===this.settings.displayMode&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),void 0===this.settings.uiOffsetTop&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new v(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},e.prototype.closeUI=function(){"popup"===this.settings.displayMode&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},e.prototype.removeMarker=function(e){this.markerImage.removeChild(e.container),this.markers.indexOf(e)>-1&&this.markers.splice(this.markers.indexOf(e),1),e.dispose()},e.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),void 0!==this._currentMarker&&("new"!==this._currentMarker.state?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},e.prototype.toolbarButtonClicked=function(e,t){if("marker"===e&&void 0!==t)this.createNewMarker(t);else if("action"===e)switch(t){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":void 0===this.notesArea?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},e.prototype.deleteSelectedMarker=function(){var e=this;if(void 0!==this._currentMarker){var t=!1;if(this.eventListeners.markerbeforedelete.forEach((function(n){var r=new J(e,e._currentMarker,!0);n(r),r.defaultPrevented&&(t=!0)})),!t){var n=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach((function(t){return t(new J(e,n))}))}}},e.prototype.clear=function(){var e=this,t=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach((function(n){var r=new J(e,void 0,!0);n(r),r.defaultPrevented&&(t=!0)})),!t)){this.setCurrentMarker();for(var n=function(t){var n=r.markers[t];r.setCurrentMarker(r.markers[t]),r._currentMarker.dispose(),r.markerImage.removeChild(r._currentMarker.container),r.markers.splice(r.markers.indexOf(r._currentMarker),1),r.eventListeners.markerdelete.forEach((function(t){return t(new J(e,n))}))},r=this,i=this.markers.length-1;i>=0;i--)n(i);this.addUndoStep()}},Object.defineProperty(e.prototype,"isNotesAreaOpen",{get:function(){return void 0!==this.notesArea},enumerable:!1,configurable:!0}),e.prototype.showNotesEditor=function(){var e;void 0!==this._currentMarker&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=null!==(e=this._currentMarker.notes)&&void 0!==e?e:"",this.overlayContainer.appendChild(this.notesArea))},e.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(void 0!==this._currentMarker&&(this._currentMarker.notes=""!==this.notesArea.value.trim()?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},e.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},e.prototype.addUndoStep=function(){var e=this;if(void 0===this._currentMarker||"edit"!==this._currentMarker.state){var t=this.getState(),n=this.undoRedoManager.getLastUndoStep();if(!n||n.width===t.width&&n.height===t.height){var r=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(t),r<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach((function(t){return t(new X(e))}))}else this.undoRedoManager.replaceLastUndoStep(t),this.eventListeners.statechange.forEach((function(t){return t(new X(e))}))}},e.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},e.prototype.undoStep=function(){var e=this,t=this.undoRedoManager.undo();void 0!==t&&(this.restoreState(t),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach((function(t){return t(new X(e))})))},e.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},e.prototype.redoStep=function(){var e=this,t=this.undoRedoManager.redo();void 0!==t&&(this.restoreState(t),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach((function(t){return t(new X(e))})))},e.prototype.stepZoom=function(){var e=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=e<this.zoomSteps.length-1?this.zoomSteps[e+1]:this.zoomSteps[0]},e.prototype.panTo=function(e){this.contentDiv.scrollBy({left:this.prevPanPoint.x-e.x,top:this.prevPanPoint.y-e.y}),this.prevPanPoint=e},e.prototype.startRenderAndClose=function(){return o(this,void 0,void 0,(function(){var e,t,n=this;return a(this,(function(r){switch(r.label){case 0:return[4,this.render()];case 1:return e=r.sent(),t=this.getState(),this.eventListeners.render.forEach((function(r){return r(new Q(n,e,t))})),this.close(!0),[2]}}))}))},e.prototype.getState=function(e){!0===e&&this.setCurrentMarker();var t={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach((function(e){return t.markers.push(e.getState())})),t},e.prototype.restoreState=function(e){var t=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);e.markers.forEach((function(e){var n=t._availableMarkerTypes.find((function(t){return t.typeName===e.typeName}));if(void 0!==n){var r=t.addNewMarker(n);r.restoreState(e),t.markers.push(r)}})),e.width&&e.height&&(e.width!==this.imageWidth||e.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/e.width,this.imageHeight/e.height),this.eventListeners.restorestate.forEach((function(e){return e(new X(t))}))},e.prototype.addNewMarker=function(e){var t=s.createGroup();return this.markerImage.appendChild(t),new e(t,this.overlayContainer,this.settings)},e.prototype.createNewMarker=function(e){var t,n=this;(t="string"==typeof e?this._availableMarkerTypes.find((function(t){return t.typeName===e})):e)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(t),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(t.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach((function(e){return e(new J(n,n._currentMarker))})))},e.prototype.markerCreated=function(e){var t=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(e),this.setCurrentMarker(e),e instanceof B&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(B):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach((function(e){return e(new J(t,t._currentMarker))}))},e.prototype.colorChanged=function(e){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=e,this.settings.defaultStrokeColor=e)},e.prototype.fillColorChanged=function(e){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=e)},e.prototype.markerStateChanged=function(e){var t=this;this.eventListeners.markerchange.forEach((function(n){return n(new J(t,e))}))},e.prototype.setCurrentMarker=function(e){var t=this;this._currentMarker!==e&&void 0!==this._currentMarker&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach((function(e){return e(new J(t,t._currentMarker))}))),this._currentMarker=e,void 0===this._currentMarker||this._currentMarker.isSelected||("new"!==this._currentMarker.state&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach((function(e){return e(new J(t,t._currentMarker))})))},e.prototype.onPointerDown=function(e){if(this._isFocused||this.focus(),this.touchPoints++,1===this.touchPoints||"touch"!==e.pointerType)if(void 0===this._currentMarker||"new"!==this._currentMarker.state&&"creating"!==this._currentMarker.state){if("select"===this.mode){var t=this.markers.find((function(t){return t.ownsTarget(e.target)}));void 0!==t?(this.setCurrentMarker(t),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(e.clientX,e.clientY),e.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:e.clientX,y:e.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(e.clientX,e.clientY))},e.prototype.onDblClick=function(e){if(this._isFocused||this.focus(),"select"===this.mode){var t=this.markers.find((function(t){return t.ownsTarget(e.target)}));void 0!==t&&t!==this._currentMarker&&this.setCurrentMarker(t),void 0!==this._currentMarker?this._currentMarker.dblClick(this.clientToLocalCoordinates(e.clientX,e.clientY),e.target):this.setCurrentMarker()}},e.prototype.onPointerMove=function(e){1!==this.touchPoints&&"touch"===e.pointerType||(void 0!==this._currentMarker||this.isDragging)&&(void 0!==this._currentMarker&&"edit"===this._currentMarker.state||e.preventDefault(),void 0!==this._currentMarker?this._currentMarker.manipulate(this.clientToLocalCoordinates(e.clientX,e.clientY)):this.zoomLevel>1&&this.panTo({x:e.clientX,y:e.clientY}))},e.prototype.onPointerUp=function(e){this.touchPoints>0&&this.touchPoints--,0===this.touchPoints&&this.isDragging&&void 0!==this._currentMarker&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(e.clientX,e.clientY)),this.isDragging=!1,this.addUndoStep()},e.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},e.prototype.onKeyUp=function(e){void 0===this._currentMarker||void 0!==this.notesArea||"Delete"!==e.key&&"Backspace"!==e.key||this.deleteSelectedMarker()},e.prototype.clientToLocalCoordinates=function(e,t){var n=this.markerImage.getBoundingClientRect();return{x:(e-n.left)/this.zoomLevel,y:(t-n.top)/this.zoomLevel}},e.prototype.onWindowResize=function(){this.positionUI()},e.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var e=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=e+"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()},e.prototype.addLicenseKey=function(e){c.addKey(e)},e.prototype.addEventListener=function(e,t){this.eventListeners.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventListeners.removeEventListener(e,t)},e.prototype.renderState=function(e){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(e),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),e.prototype.focus=function(){var e=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,void 0!==this._previousCurrentMarker&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach((function(t){return t(new X(e))})))},e.prototype.blur=function(){var e=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach((function(t){return t(new X(e))})))},e.instanceCounter=0,e}()},63727:function(e,t,n){"use strict";n.d(t,{s:function(){return _},default:function(){return te}});var r=n(54476),i=n(33885),o=n(94480),a=n(42978),l=n(75931),s=n(37463),c=n(6551),u=n(6089),d=n(18929),h=n(59301),f=h.createContext({}),p=n(76190),m=n(20068),v="__rc_cascader_search_mark__",g=function(e,t,n){var r=n.label,i=void 0===r?"":r;return t.some((function(t){return String(t[i]).toLowerCase().includes(e.toLowerCase())}))},y=function(e,t,n,r){return t.map((function(e){return e[r.label]})).join(" / ")},x=function(e,t,n,r,a,l){var s=a.filter,c=void 0===s?g:s,u=a.render,d=void 0===u?y:u,f=a.limit,p=void 0===f?50:f,x=a.sort;return h.useMemo((function(){var a=[];if(!e)return[];return function t(s,u){var h=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s.forEach((function(s){if(!(!x&&!1!==p&&p>0&&a.length>=p)){var f,g=[].concat((0,o.Z)(u),[s]),y=s[n.children],b=h||s.disabled;if(!y||0===y.length||l)if(c(e,g,{label:n.label}))a.push((0,i.Z)((0,i.Z)({},s),{},(f={disabled:b},(0,m.Z)(f,n.label,d(e,g,r,n)),(0,m.Z)(f,v,g),(0,m.Z)(f,n.children,void 0),f)));y&&t(s[n.children],g,b)}}))}(t,[]),x&&a.sort((function(t,r){return x(t[v],r[v],e,n)})),!1!==p&&p>0?a.slice(0,p):a}),[e,t,n,r,d,l,c,x,p])},b="__RC_CASCADER_SPLIT__",w="SHOW_PARENT",C="SHOW_CHILD";function k(e){return e.join(b)}function A(e){return e.map(k)}function S(e){var t=e||{},n=t.label,r=t.value||"value";return{label:n||"label",value:r,key:r,children:t.children||"children"}}function E(e,t){var n,r;return null!==(n=e.isLeaf)&&void 0!==n?n:!(null!==(r=e[t.children])&&void 0!==r&&r.length)}function N(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function L(e,t){return e.map((function(e){var n;return null===(n=e[v])||void 0===n?void 0:n.map((function(e){return e[t.value]}))}))}function M(e){return e?function(e){return Array.isArray(e)&&Array.isArray(e[0])}(e)?e:(0===e.length?[]:[e]).map((function(e){return Array.isArray(e)?e:[e]})):[]}function D(e,t,n){var r=new Set(e),i=t();return e.filter((function(e){var t=i[e],o=t?t.parent:null,a=t?t.children:null;return!(!t||!t.node.disabled)||(n===C?!(a&&a.some((function(e){return e.key&&r.has(e.key)}))):!(o&&!o.node.disabled&&r.has(o.key)))}))}function P(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=t,o=[],a=function(){var t,a,s,c=e[l],u=null===(t=i)||void 0===t?void 0:t.findIndex((function(e){var t=e[n.value];return r?String(t)===String(c):t===c})),d=-1!==u?null===(a=i)||void 0===a?void 0:a[u]:null;o.push({value:null!==(s=null==d?void 0:d[n.value])&&void 0!==s?s:c,index:u,option:d}),i=null==d?void 0:d[n.children]},l=0;l<e.length;l+=1)a();return o}function Z(e,t){return h.useCallback((function(n){var r=[],i=[];return n.forEach((function(n){P(n,e,t).every((function(e){return e.option}))?i.push(n):r.push(n)})),[i,r]}),[e,t])}var B=n(34061);function T(e,t){var n=h.useMemo((function(){return t||[]}),[t]),r=function(e,t){var n=h.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}});return h.useCallback((function(){return n.current.options!==e&&(n.current.options=e,n.current.info=(0,B.I8)(e,{fieldNames:t,initWrapper:function(e){return(0,i.Z)((0,i.Z)({},e),{},{pathKeyEntities:{}})},processEntity:function(e,n){var r=e.nodes.map((function(e){return e[t.value]})).join(b);n.pathKeyEntities[r]=e,e.key=r}})),n.current.info.pathKeyEntities}),[t,e])}(n,e),o=h.useCallback((function(t){var n=r();return t.map((function(t){return n[t].nodes.map((function(t){return t[e.value]}))}))}),[r,e]);return[n,r,o]}n(48736);var j=n(34643);function I(e,t,n,r,i,a,l,s){return function(c){if(e){var u=k(c),d=A(n),h=A(r),f=d.includes(u),p=i.some((function(e){return k(e)===u})),m=n,v=i;if(p&&!f)v=i.filter((function(e){return k(e)!==u}));else{var g,y=f?d.filter((function(e){return e!==u})):[].concat((0,o.Z)(d),[u]),x=a();if(f)g=(0,j.S)(y,{checked:!1,halfCheckedKeys:h},x).checkedKeys;else g=(0,j.S)(y,!0,x).checkedKeys;var b=D(g,a,s);m=l(b)}t([].concat((0,o.Z)(v),(0,o.Z)(m)))}else t(c)}}function F(e,t,n,r,i){return h.useMemo((function(){var o=i(t),l=(0,a.Z)(o,2),s=l[0],c=l[1];if(!e||!t.length)return[s,[],c];var u=A(s),d=n(),h=(0,j.S)(u,!0,d),f=h.checkedKeys,p=h.halfCheckedKeys;return[r(f),r(p),c]}),[e,t,n,r,i])}var O=n(92310),R=n.n(O);var W=h.memo((function(e){return e.children}),(function(e,t){return!t.open}));function z(e){var t,n=e.prefixCls,r=e.checked,i=e.halfChecked,o=e.disabled,a=e.onClick,l=e.disableCheckbox,s=h.useContext(f).checkable,c="boolean"!=typeof s?s:null;return h.createElement("span",{className:R()("".concat(n),(t={},(0,m.Z)(t,"".concat(n,"-checked"),r),(0,m.Z)(t,"".concat(n,"-indeterminate"),!r&&i),(0,m.Z)(t,"".concat(n,"-disabled"),o||l),t)),onClick:a},c)}var H="__cascader_fix_label__";function V(e){var t=e.prefixCls,n=e.multiple,r=e.options,i=e.activeValue,a=e.prevValuePath,l=e.onToggleOpen,s=e.onSelect,c=e.onActive,u=e.checkedSet,d=e.halfCheckedSet,p=e.loadingKeys,g=e.isSelectable,y=e.disabled,x="".concat(t,"-menu"),b="".concat(t,"-menu-item"),w=h.useContext(f),C=w.fieldNames,A=w.changeOnSelect,S=w.expandTrigger,N=w.expandIcon,L=w.loadingIcon,M=w.dropdownMenuColumnStyle,D=w.optionRender,P="hover"===S,Z=function(e){return y||e},B=h.useMemo((function(){return r.map((function(e){var t,n=e.disabled,r=e.disableCheckbox,i=e[v],l=null!==(t=e[H])&&void 0!==t?t:e[C.label],s=e[C.value],c=E(e,C),h=i?i.map((function(e){return e[C.value]})):[].concat((0,o.Z)(a),[s]),f=k(h);return{disabled:n,label:l,value:s,isLeaf:c,isLoading:p.includes(f),checked:u.has(f),halfChecked:d.has(f),option:e,disableCheckbox:r,fullPath:h,fullPathKey:f}}))}),[r,u,C,d,p,a]);return h.createElement("ul",{className:x,role:"menu"},B.map((function(e){var r,a,u=e.disabled,d=e.label,f=e.value,p=e.isLeaf,v=e.isLoading,y=e.checked,x=e.halfChecked,w=e.option,C=e.fullPath,k=e.fullPathKey,S=e.disableCheckbox,E=function(){if(!Z(u)){var e=(0,o.Z)(C);P&&p&&e.pop(),c(e)}},B=function(){g(w)&&!Z(u)&&s(C,p)};return"string"==typeof w.title?a=w.title:"string"==typeof d&&(a=d),h.createElement("li",{key:k,className:R()(b,(r={},(0,m.Z)(r,"".concat(b,"-expand"),!p),(0,m.Z)(r,"".concat(b,"-active"),i===f||i===k),(0,m.Z)(r,"".concat(b,"-disabled"),Z(u)),(0,m.Z)(r,"".concat(b,"-loading"),v),r)),style:M,role:"menuitemcheckbox",title:a,"aria-checked":y,"data-path-key":k,onClick:function(){E(),S||n&&!p||B()},onDoubleClick:function(){A&&l(!1)},onMouseEnter:function(){P&&E()},onMouseDown:function(e){e.preventDefault()}},n&&h.createElement(z,{prefixCls:"".concat(t,"-checkbox"),checked:y,halfChecked:x,disabled:Z(u)||S,disableCheckbox:S,onClick:function(e){S||(e.stopPropagation(),B())}}),h.createElement("div",{className:"".concat(b,"-content")},D?D(w):d),!v&&N&&!p&&h.createElement("div",{className:"".concat(b,"-expand-icon")},N),v&&L&&h.createElement("div",{className:"".concat(b,"-loading-icon")},L))})))}var K=function(e,t){var n=h.useContext(f).values[0],r=h.useState([]),i=(0,a.Z)(r,2),o=i[0],l=i[1];return h.useEffect((function(){e||l(n||[])}),[t,n]),[o,l]},Y=n(10228),U=function(e,t,n,r,i,l,s){var c=s.direction,u=s.searchValue,d=s.toggleOpen,f=s.open,p="rtl"===c,m=h.useMemo((function(){for(var e=-1,i=t,o=[],a=[],l=r.length,s=L(t,n),c=function(t){var l=i.findIndex((function(e,i){return(s[i]?k(s[i]):e[n.value])===r[t]}));if(-1===l)return 1;e=l,o.push(e),a.push(r[t]),i=i[e][n.children]},u=0;u<l&&i&&!c(u);u+=1);for(var d=t,h=0;h<o.length-1;h+=1)d=d[o[h]][n.children];return[a,e,d,s]}),[r,n,t]),g=(0,a.Z)(m,4),y=g[0],x=g[1],b=g[2],w=g[3],C=function(e){i(e)},A=function(){if(y.length>1){var e=y.slice(0,-1);C(e)}else d(!1)},S=function(){var e,t=((null===(e=b[x])||void 0===e?void 0:e[n.children])||[]).find((function(e){return!e.disabled}));if(t){var r=[].concat((0,o.Z)(y),[t[n.value]]);C(r)}};h.useImperativeHandle(e,(function(){return{onKeyDown:function(e){var t=e.which;switch(t){case Y.Z.UP:case Y.Z.DOWN:var r=0;t===Y.Z.UP?r=-1:t===Y.Z.DOWN&&(r=1),0!==r&&function(e){var t=b.length,r=x;-1===r&&e<0&&(r=t);for(var i=0;i<t;i+=1){var o=b[r=(r+e+t)%t];if(o&&!o.disabled){var a=y.slice(0,-1).concat(w[r]?k(w[r]):o[n.value]);return void C(a)}}}(r);break;case Y.Z.LEFT:if(u)break;p?S():A();break;case Y.Z.RIGHT:if(u)break;p?A():S();break;case Y.Z.BACKSPACE:u||A();break;case Y.Z.ENTER:if(y.length){var i=b[x],o=(null==i?void 0:i[v])||[];o.length?l(o.map((function(e){return e[n.value]})),o[o.length-1]):l(y,b[x])}break;case Y.Z.ESC:d(!1),f&&e.stopPropagation()}},onKeyUp:function(){}}}))},G=h.forwardRef((function(e,t){var n,l,s,c=e.prefixCls,u=e.multiple,d=e.searchValue,p=e.toggleOpen,v=e.notFoundContent,g=e.direction,y=e.open,x=e.disabled,w=h.useRef(null),C="rtl"===g,S=h.useContext(f),M=S.options,D=S.values,Z=S.halfValues,B=S.fieldNames,T=S.changeOnSelect,j=S.onSelect,I=S.searchOptions,F=S.dropdownPrefixCls,O=S.loadData,z=S.expandTrigger,Y=F||c,G=h.useState([]),X=(0,a.Z)(G,2),Q=X[0],J=X[1];h.useEffect((function(){Q.length&&Q.forEach((function(e){var t=P(e.split(b),M,B,!0).map((function(e){return e.option})),n=t[t.length-1];(!n||n[B.children]||E(n,B))&&J((function(t){return t.filter((function(t){return t!==e}))}))}))}),[M,Q,B]);var q=h.useMemo((function(){return new Set(A(D))}),[D]),_=h.useMemo((function(){return new Set(A(Z))}),[Z]),$=K(u,y),ee=(0,a.Z)($,2),te=ee[0],ne=ee[1],re=function(e){ne(e),function(e){if(O&&!d){var t=P(e,M,B).map((function(e){return e.option})),n=t[t.length-1];if(n&&!E(n,B)){var r=k(e);J((function(e){return[].concat((0,o.Z)(e),[r])})),O(t)}}}(e)},ie=function(e){if(x)return!1;var t=e.disabled,n=E(e,B);return!t&&(n||T||u)},oe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];j(e),!u&&(t||T&&("hover"===z||n))&&p(!1)},ae=h.useMemo((function(){return d?I:M}),[d,I,M]),le=h.useMemo((function(){for(var e=[{options:ae}],t=ae,n=L(t,B),r=function(){var r=te[i],o=t.find((function(e,t){return(n[t]?k(n[t]):e[B.value])===r})),a=null==o?void 0:o[B.children];if(null==a||!a.length)return 1;t=a,e.push({options:a})},i=0;i<te.length&&!r();i+=1);return e}),[ae,te,B]);U(t,ae,B,te,re,(function(e,t){ie(t)&&oe(e,E(t,B),!0)}),{direction:g,searchValue:d,toggleOpen:p,open:y}),h.useEffect((function(){if(!d)for(var e=0;e<te.length;e+=1){var t,n=k(te.slice(0,e+1)),r=null===(t=w.current)||void 0===t?void 0:t.querySelector('li[data-path-key="'.concat(n.replace(/\\{0,2}"/g,'\\"'),'"]'));r&&N(r)}}),[te,d]);var se=!(null!==(n=le[0])&&void 0!==n&&null!==(n=n.options)&&void 0!==n&&n.length),ce=[(l={},(0,m.Z)(l,B.value,"__EMPTY__"),(0,m.Z)(l,H,v),(0,m.Z)(l,"disabled",!0),l)],ue=(0,i.Z)((0,i.Z)({},e),{},{multiple:!se&&u,onSelect:oe,onActive:re,onToggleOpen:p,checkedSet:q,halfCheckedSet:_,loadingKeys:Q,isSelectable:ie}),de=(se?[{options:ce}]:le).map((function(e,t){var n=te.slice(0,t),i=te[t];return h.createElement(V,(0,r.Z)({key:t},ue,{prefixCls:Y,options:e.options,prevValuePath:n,activeValue:i}))}));return h.createElement(W,{open:y},h.createElement("div",{className:R()("".concat(Y,"-menus"),(s={},(0,m.Z)(s,"".concat(Y,"-menu-empty"),se),(0,m.Z)(s,"".concat(Y,"-rtl"),C),s)),ref:w},de))}));var X=G,Q=h.forwardRef((function(e,t){var n=(0,s.lk)();return h.createElement(X,(0,r.Z)({},e,n,{ref:t}))})),J=n(70425);function q(){}function _(e){var t,n=e,r=n.prefixCls,i=void 0===r?"rc-cascader":r,o=n.style,l=n.className,s=n.options,c=n.checkable,u=n.defaultValue,d=n.value,p=n.fieldNames,v=n.changeOnSelect,g=n.onChange,y=n.showCheckedStrategy,x=n.loadData,b=n.expandTrigger,w=n.expandIcon,C=void 0===w?">":w,k=n.loadingIcon,A=n.direction,E=n.notFoundContent,N=void 0===E?"Not Found":E,L=n.disabled,D=!!c,B=(0,J.C8)(u,{value:d,postState:M}),j=(0,a.Z)(B,2),O=j[0],W=j[1],z=h.useMemo((function(){return S(p)}),[JSON.stringify(p)]),H=T(z,s),V=(0,a.Z)(H,3),K=V[0],Y=V[1],U=V[2],G=Z(K,z),Q=F(D,O,Y,U,G),_=(0,a.Z)(Q,3),$=_[0],ee=_[1],te=_[2],ne=(0,J.zX)((function(e){if(W(e),g){var t=M(e),n=t.map((function(e){return P(e,K,z).map((function(e){return e.option}))})),r=D?t:t[0],i=D?n:n[0];g(r,i)}})),re=I(D,ne,$,ee,te,Y,U,y),ie=(0,J.zX)((function(e){re(e)})),oe=h.useMemo((function(){return{options:K,fieldNames:z,values:$,halfValues:ee,changeOnSelect:v,onSelect:ie,checkable:c,searchOptions:[],dropdownPrefixCls:void 0,loadData:x,expandTrigger:b,expandIcon:C,loadingIcon:k,dropdownMenuColumnStyle:void 0}}),[K,z,$,ee,v,ie,c,x,b,C,k]),ae="".concat(i,"-panel"),le=!K.length;return h.createElement(f.Provider,{value:oe},h.createElement("div",{className:R()(ae,(t={},(0,m.Z)(t,"".concat(ae,"-rtl"),"rtl"===A),(0,m.Z)(t,"".concat(ae,"-empty"),le),t),l),style:o},le?N:h.createElement(X,{prefixCls:i,searchValue:"",multiple:D,toggleOpen:q,open:!0,direction:A,disabled:L})))}var $=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],ee=h.forwardRef((function(e,t){var n=e.id,m=e.prefixCls,v=void 0===m?"rc-cascader":m,g=e.fieldNames,y=e.defaultValue,b=e.value,C=e.changeOnSelect,E=e.onChange,N=e.displayRender,L=e.checkable,B=e.autoClearSearchValue,j=void 0===B||B,O=e.searchValue,R=e.onSearch,W=e.showSearch,z=e.expandTrigger,H=e.options,V=e.dropdownPrefixCls,K=e.loadData,Y=e.popupVisible,U=e.open,G=e.popupClassName,X=e.dropdownClassName,J=e.dropdownMenuColumnStyle,q=e.dropdownStyle,_=e.popupPlacement,ee=e.placement,te=e.onDropdownVisibleChange,ne=e.onPopupVisibleChange,re=e.expandIcon,ie=void 0===re?">":re,oe=e.loadingIcon,ae=e.children,le=e.dropdownMatchSelectWidth,se=void 0!==le&&le,ce=e.showCheckedStrategy,ue=void 0===ce?w:ce,de=e.optionRender,he=(0,l.Z)(e,$),fe=(0,c.ZP)(n),pe=!!L,me=(0,d.Z)(y,{value:b,postState:M}),ve=(0,a.Z)(me,2),ge=ve[0],ye=ve[1],xe=h.useMemo((function(){return S(g)}),[JSON.stringify(g)]),be=T(xe,H),we=(0,a.Z)(be,3),Ce=we[0],ke=we[1],Ae=we[2],Se=(0,d.Z)("",{value:O,postState:function(e){return e||""}}),Ee=(0,a.Z)(Se,2),Ne=Ee[0],Le=Ee[1],Me=function(e){return h.useMemo((function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&"object"===(0,p.Z)(e)&&(t=(0,i.Z)((0,i.Z)({},t),e)),t.limit<=0&&(t.limit=!1),[!0,t]}),[e])}(W),De=(0,a.Z)(Me,2),Pe=De[0],Ze=De[1],Be=x(Ne,Ce,xe,V||v,Ze,C||pe),Te=Z(Ce,xe),je=F(pe,ge,ke,Ae,Te),Ie=(0,a.Z)(je,3),Fe=Ie[0],Oe=Ie[1],Re=Ie[2],We=function(e,t,n,r,i){return h.useMemo((function(){var a=i||function(e){var t=r?e.slice(-1):e;return t.every((function(e){return["string","number"].includes((0,p.Z)(e))}))?t.join(" / "):t.reduce((function(e,t,n){var r=h.isValidElement(t)?h.cloneElement(t,{key:n}):t;return 0===n?[r]:[].concat((0,o.Z)(e),[" / ",r])}),[])};return e.map((function(e){var r,i=P(e,t,n),o=a(i.map((function(e){var t,r=e.option,i=e.value;return null!==(t=null==r?void 0:r[n.label])&&void 0!==t?t:i})),i.map((function(e){return e.option}))),l=k(e);return{label:o,value:l,key:l,valueCells:e,disabled:null===(r=i[i.length-1])||void 0===r||null===(r=r.option)||void 0===r?void 0:r.disabled}}))}),[e,t,n,i,r])}(h.useMemo((function(){var e=D(A(Fe),ke,ue);return[].concat((0,o.Z)(Re),(0,o.Z)(Ae(e)))}),[Fe,ke,Ae,Re,ue]),Ce,xe,pe,N),ze=(0,u.Z)((function(e){if(ye(e),E){var t=M(e),n=t.map((function(e){return P(e,Ce,xe).map((function(e){return e.option}))})),r=pe?t:t[0],i=pe?n:n[0];E(r,i)}})),He=I(pe,ze,Fe,Oe,Re,ke,Ae,ue),Ve=(0,u.Z)((function(e){pe&&!j||Le(""),He(e)})),Ke=void 0!==U?U:Y,Ye=X||G,Ue=ee||_;var Ge=h.useMemo((function(){return{options:Ce,fieldNames:xe,values:Fe,halfValues:Oe,changeOnSelect:C,onSelect:Ve,checkable:L,searchOptions:Be,dropdownPrefixCls:V,loadData:K,expandTrigger:z,expandIcon:ie,loadingIcon:oe,dropdownMenuColumnStyle:J,optionRender:de}}),[Ce,xe,Fe,Oe,C,Ve,L,Be,V,K,z,ie,oe,J,de]),Xe=!(Ne?Be:Ce).length,Qe=Ne&&Ze.matchInputWidth||Xe?{}:{minWidth:"auto"};return h.createElement(f.Provider,{value:Ge},h.createElement(s.Ac,(0,r.Z)({},he,{ref:t,id:fe,prefixCls:v,autoClearSearchValue:j,dropdownMatchSelectWidth:se,dropdownStyle:(0,i.Z)((0,i.Z)({},Qe),q),displayValues:We,onDisplayValuesChange:function(e,t){if("clear"!==t.type){var n=t.values[0].valueCells;Ve(n)}else ze([])},mode:pe?"multiple":void 0,searchValue:Ne,onSearch:function(e,t){Le(e),"blur"!==t.source&&R&&R(e)},showSearch:Pe,OptionList:Q,emptyOptions:Xe,open:Ke,dropdownClassName:Ye,placement:Ue,onDropdownVisibleChange:function(e){null==te||te(e),null==ne||ne(e)},getRawInputElement:function(){return ae}})))}));ee.SHOW_PARENT=w,ee.SHOW_CHILD=C,ee.Panel=_;var te=ee},66042:function(e,t,n){"use strict";n.d(t,{Z:function(){return N}});var r=n(33885),i=n(42978),o=n(43403),a=n(34280),l=n(59301),s=l.createContext(null),c=l.createContext({}),u=s,d=n(20068),h=n(54476),f=n(92310),p=n.n(f),m=n(77900),v=n(10228),g=n(26112),y=n(75931),x=n(8654),b=["prefixCls","className","containerRef"];var w=function(e){var t=e.prefixCls,n=e.className,r=e.containerRef,i=(0,y.Z)(e,b),o=l.useContext(c).panel,a=(0,x.x1)(o,r);return l.createElement("div",(0,h.Z)({className:p()("".concat(t,"-content"),n),role:"dialog",ref:a},(0,g.Z)(e,{aria:!0}),{"aria-modal":"true"},i))},C=n(48736);function k(e){return"string"==typeof e&&String(Number(e))===e?((0,C.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var A={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function S(e,t){var n,o,a,s=e.prefixCls,c=e.open,f=e.placement,y=e.inline,x=e.push,b=e.forceRender,C=e.autoFocus,S=e.keyboard,E=e.classNames,N=e.rootClassName,L=e.rootStyle,M=e.zIndex,D=e.className,P=e.id,Z=e.style,B=e.motion,T=e.width,j=e.height,I=e.children,F=e.mask,O=e.maskClosable,R=e.maskMotion,W=e.maskClassName,z=e.maskStyle,H=e.afterOpenChange,V=e.onClose,K=e.onMouseEnter,Y=e.onMouseOver,U=e.onMouseLeave,G=e.onClick,X=e.onKeyDown,Q=e.onKeyUp,J=e.styles,q=e.drawerRender,_=l.useRef(),$=l.useRef(),ee=l.useRef();l.useImperativeHandle(t,(function(){return _.current}));l.useEffect((function(){var e;c&&C&&(null===(e=_.current)||void 0===e||e.focus({preventScroll:!0}))}),[c]);var te=l.useState(!1),ne=(0,i.Z)(te,2),re=ne[0],ie=ne[1],oe=l.useContext(u),ae=null!==(n=null!==(o=null===(a="boolean"==typeof x?x?{}:{distance:0}:x||{})||void 0===a?void 0:a.distance)&&void 0!==o?o:null==oe?void 0:oe.pushDistance)&&void 0!==n?n:180,le=l.useMemo((function(){return{pushDistance:ae,push:function(){ie(!0)},pull:function(){ie(!1)}}}),[ae]);l.useEffect((function(){var e,t;c?null==oe||null===(e=oe.push)||void 0===e||e.call(oe):null==oe||null===(t=oe.pull)||void 0===t||t.call(oe)}),[c]),l.useEffect((function(){return function(){var e;null==oe||null===(e=oe.pull)||void 0===e||e.call(oe)}}),[]);var se=F&&l.createElement(m.default,(0,h.Z)({key:"mask"},R,{visible:c}),(function(e,t){var n=e.className,i=e.style;return l.createElement("div",{className:p()("".concat(s,"-mask"),n,null==E?void 0:E.mask,W),style:(0,r.Z)((0,r.Z)((0,r.Z)({},i),z),null==J?void 0:J.mask),onClick:O&&c?V:void 0,ref:t})})),ce="function"==typeof B?B(f):B,ue={};if(re&&ae)switch(f){case"top":ue.transform="translateY(".concat(ae,"px)");break;case"bottom":ue.transform="translateY(".concat(-ae,"px)");break;case"left":ue.transform="translateX(".concat(ae,"px)");break;default:ue.transform="translateX(".concat(-ae,"px)")}"left"===f||"right"===f?ue.width=k(T):ue.height=k(j);var de={onMouseEnter:K,onMouseOver:Y,onMouseLeave:U,onClick:G,onKeyDown:X,onKeyUp:Q},he=l.createElement(m.default,(0,h.Z)({key:"panel"},ce,{visible:c,forceRender:b,onVisibleChanged:function(e){null==H||H(e)},removeOnLeave:!1,leavedClassName:"".concat(s,"-content-wrapper-hidden")}),(function(t,n){var i=t.className,o=t.style,a=l.createElement(w,(0,h.Z)({id:P,containerRef:n,prefixCls:s,className:p()(D,null==E?void 0:E.content),style:(0,r.Z)((0,r.Z)({},Z),null==J?void 0:J.content)},(0,g.Z)(e,{aria:!0}),de),I);return l.createElement("div",(0,h.Z)({className:p()("".concat(s,"-content-wrapper"),null==E?void 0:E.wrapper,i),style:(0,r.Z)((0,r.Z)((0,r.Z)({},ue),o),null==J?void 0:J.wrapper)},(0,g.Z)(e,{data:!0})),q?q(a):a)})),fe=(0,r.Z)({},L);return M&&(fe.zIndex=M),l.createElement(u.Provider,{value:le},l.createElement("div",{className:p()(s,"".concat(s,"-").concat(f),N,(0,d.Z)((0,d.Z)({},"".concat(s,"-open"),c),"".concat(s,"-inline"),y)),style:fe,tabIndex:-1,ref:_,onKeyDown:function(e){var t=e.keyCode,n=e.shiftKey;switch(t){case v.Z.TAB:var r;if(t===v.Z.TAB)if(n||document.activeElement!==ee.current){if(n&&document.activeElement===$.current){var i;null===(i=ee.current)||void 0===i||i.focus({preventScroll:!0})}}else null===(r=$.current)||void 0===r||r.focus({preventScroll:!0});break;case v.Z.ESC:V&&S&&(e.stopPropagation(),V(e))}}},se,l.createElement("div",{tabIndex:0,ref:$,style:A,"aria-hidden":"true","data-sentinel":"start"}),he,l.createElement("div",{tabIndex:0,ref:ee,style:A,"aria-hidden":"true","data-sentinel":"end"})))}var E=l.forwardRef(S);var N=function(e){var t=e.open,n=void 0!==t&&t,s=e.prefixCls,u=void 0===s?"rc-drawer":s,d=e.placement,h=void 0===d?"right":d,f=e.autoFocus,p=void 0===f||f,m=e.keyboard,v=void 0===m||m,g=e.width,y=void 0===g?378:g,x=e.mask,b=void 0===x||x,w=e.maskClosable,C=void 0===w||w,k=e.getContainer,A=e.forceRender,S=e.afterOpenChange,N=e.destroyOnClose,L=e.onMouseEnter,M=e.onMouseOver,D=e.onMouseLeave,P=e.onClick,Z=e.onKeyDown,B=e.onKeyUp,T=e.panelRef,j=l.useState(!1),I=(0,i.Z)(j,2),F=I[0],O=I[1];var R=l.useState(!1),W=(0,i.Z)(R,2),z=W[0],H=W[1];(0,a.Z)((function(){H(!0)}),[]);var V=!!z&&n,K=l.useRef(),Y=l.useRef();(0,a.Z)((function(){V&&(Y.current=document.activeElement)}),[V]);var U=l.useMemo((function(){return{panel:T}}),[T]);if(!A&&!F&&!V&&N)return null;var G={onMouseEnter:L,onMouseOver:M,onMouseLeave:D,onClick:P,onKeyDown:Z,onKeyUp:B},X=(0,r.Z)((0,r.Z)({},e),{},{open:V,prefixCls:u,placement:h,autoFocus:p,keyboard:v,width:y,mask:b,maskClosable:C,inline:!1===k,afterOpenChange:function(e){var t,n;(O(e),null==S||S(e),e||!Y.current||null!==(t=K.current)&&void 0!==t&&t.contains(Y.current))||(null===(n=Y.current)||void 0===n||n.focus({preventScroll:!0}))},ref:K},G);return l.createElement(c.Provider,{value:U},l.createElement(o.Z,{open:V||A||F,autoDestroy:!1,getContainer:k,autoLock:b&&(V||F)},l.createElement(E,X)))}},23425:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var r=n(20068),i=n(54476),o=n(76190),a=n(33885),l=n(42978),s=n(92310),c=n.n(s),u=n(18929),d=n(10228),h=n(26112),f=(n(48736),n(59301)),p=n(17119),m=[10,20,50,100];var v=function(e){var t=e.pageSizeOptions,n=void 0===t?m:t,r=e.locale,i=e.changeSize,o=e.pageSize,a=e.goButton,s=e.quickGo,c=e.rootPrefixCls,u=e.disabled,h=e.buildOptionText,p=e.showSizeChanger,v=e.sizeChangerRender,g=f.useState(""),y=(0,l.Z)(g,2),x=y[0],b=y[1],w=function(){return!x||Number.isNaN(x)?void 0:Number(x)},C="function"==typeof h?h:function(e){return"".concat(e," ").concat(r.items_per_page)},k=function(e){""!==x&&(e.keyCode!==d.Z.ENTER&&"click"!==e.type||(b(""),null==s||s(w())))},A="".concat(c,"-options");if(!p&&!s)return null;var S=null,E=null,N=null;return p&&v&&(S=v({disabled:u,size:o,onSizeChange:function(e){null==i||i(Number(e))},"aria-label":r.page_size,className:"".concat(A,"-size-changer"),options:(n.some((function(e){return e.toString()===o.toString()}))?n:n.concat([o]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))).map((function(e){return{label:C(e),value:e}}))})),s&&(a&&(N="boolean"==typeof a?f.createElement("button",{type:"button",onClick:k,onKeyUp:k,disabled:u,className:"".concat(A,"-quick-jumper-button")},r.jump_to_confirm):f.createElement("span",{onClick:k,onKeyUp:k},a)),E=f.createElement("div",{className:"".concat(A,"-quick-jumper")},r.jump_to,f.createElement("input",{disabled:u,type:"text",value:x,onChange:function(e){b(e.target.value)},onKeyUp:k,onBlur:function(e){a||""===x||(b(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(c,"-item"))>=0)||null==s||s(w()))},"aria-label":r.page}),r.page,N)),f.createElement("li",{className:A},S,E)};var g=function(e){var t=e.rootPrefixCls,n=e.page,i=e.active,o=e.className,a=e.showTitle,l=e.onClick,s=e.onKeyPress,u=e.itemRender,d="".concat(t,"-item"),h=c()(d,"".concat(d,"-").concat(n),(0,r.Z)((0,r.Z)({},"".concat(d,"-active"),i),"".concat(d,"-disabled"),!n),o),p=u(n,"page",f.createElement("a",{rel:"nofollow"},n));return p?f.createElement("li",{title:a?String(n):null,className:h,onClick:function(){l(n)},onKeyDown:function(e){s(e,l,n)},tabIndex:0},p):null},y=function(e,t,n){return n};function x(){}function b(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function w(e,t,n){var r=void 0===e?t:e;return Math.floor((n-1)/r)+1}var C=function(e){var t=e.prefixCls,n=void 0===t?"rc-pagination":t,s=e.selectPrefixCls,m=void 0===s?"rc-select":s,C=e.className,k=e.current,A=e.defaultCurrent,S=void 0===A?1:A,E=e.total,N=void 0===E?0:E,L=e.pageSize,M=e.defaultPageSize,D=void 0===M?10:M,P=e.onChange,Z=void 0===P?x:P,B=e.hideOnSinglePage,T=e.align,j=e.showPrevNextJumpers,I=void 0===j||j,F=e.showQuickJumper,O=e.showLessItems,R=e.showTitle,W=void 0===R||R,z=e.onShowSizeChange,H=void 0===z?x:z,V=e.locale,K=void 0===V?p.Z:V,Y=e.style,U=e.totalBoundaryShowSizeChanger,G=void 0===U?50:U,X=e.disabled,Q=e.simple,J=e.showTotal,q=e.showSizeChanger,_=void 0===q?N>G:q,$=e.sizeChangerRender,ee=e.pageSizeOptions,te=e.itemRender,ne=void 0===te?y:te,re=e.jumpPrevIcon,ie=e.jumpNextIcon,oe=e.prevIcon,ae=e.nextIcon,le=f.useRef(null),se=(0,u.Z)(10,{value:L,defaultValue:D}),ce=(0,l.Z)(se,2),ue=ce[0],de=ce[1],he=(0,u.Z)(1,{value:k,defaultValue:S,postState:function(e){return Math.max(1,Math.min(e,w(void 0,ue,N)))}}),fe=(0,l.Z)(he,2),pe=fe[0],me=fe[1],ve=f.useState(pe),ge=(0,l.Z)(ve,2),ye=ge[0],xe=ge[1];(0,f.useEffect)((function(){xe(pe)}),[pe]);var be=Math.max(1,pe-(O?3:5)),we=Math.min(w(void 0,ue,N),pe+(O?3:5));function Ce(t,r){var i=t||f.createElement("button",{type:"button","aria-label":r,className:"".concat(n,"-item-link")});return"function"==typeof t&&(i=f.createElement(t,(0,a.Z)({},e))),i}function ke(e){var t=e.target.value,n=w(void 0,ue,N);return""===t?t:Number.isNaN(Number(t))?ye:t>=n?n:Number(t)}var Ae=N>ue&&F;function Se(e){var t=ke(e);switch(t!==ye&&xe(t),e.keyCode){case d.Z.ENTER:Ee(t);break;case d.Z.UP:Ee(t-1);break;case d.Z.DOWN:Ee(t+1)}}function Ee(e){if(function(e){return b(e)&&e!==pe&&b(N)&&N>0}(e)&&!X){var t=w(void 0,ue,N),n=e;return e>t?n=t:e<1&&(n=1),n!==ye&&xe(n),me(n),null==Z||Z(n,ue),n}return pe}var Ne=pe>1,Le=pe<w(void 0,ue,N);function Me(){Ne&&Ee(pe-1)}function De(){Le&&Ee(pe+1)}function Pe(){Ee(be)}function Ze(){Ee(we)}function Be(e,t){if("Enter"===e.key||e.charCode===d.Z.ENTER||e.keyCode===d.Z.ENTER){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];t.apply(void 0,r)}}function Te(e){"click"!==e.type&&e.keyCode!==d.Z.ENTER||Ee(ye)}var je=null,Ie=(0,h.Z)(e,{aria:!0,data:!0}),Fe=J&&f.createElement("li",{className:"".concat(n,"-total-text")},J(N,[0===N?0:(pe-1)*ue+1,pe*ue>N?N:pe*ue])),Oe=null,Re=w(void 0,ue,N);if(B&&N<=ue)return null;var We=[],ze={rootPrefixCls:n,onClick:Ee,onKeyPress:Be,showTitle:W,itemRender:ne,page:-1},He=pe-1>0?pe-1:0,Ve=pe+1<Re?pe+1:Re,Ke=F&&F.goButton,Ye="object"===(0,o.Z)(Q)?Q.readOnly:!Q,Ue=Ke,Ge=null;Q&&(Ke&&(Ue="boolean"==typeof Ke?f.createElement("button",{type:"button",onClick:Te,onKeyUp:Te},K.jump_to_confirm):f.createElement("span",{onClick:Te,onKeyUp:Te},Ke),Ue=f.createElement("li",{title:W?"".concat(K.jump_to).concat(pe,"/").concat(Re):null,className:"".concat(n,"-simple-pager")},Ue)),Ge=f.createElement("li",{title:W?"".concat(pe,"/").concat(Re):null,className:"".concat(n,"-simple-pager")},Ye?ye:f.createElement("input",{type:"text","aria-label":K.jump_to,value:ye,disabled:X,onKeyDown:function(e){e.keyCode!==d.Z.UP&&e.keyCode!==d.Z.DOWN||e.preventDefault()},onKeyUp:Se,onChange:Se,onBlur:function(e){Ee(ke(e))},size:3}),f.createElement("span",{className:"".concat(n,"-slash")},"/"),Re));var Xe=O?1:2;if(Re<=3+2*Xe){Re||We.push(f.createElement(g,(0,i.Z)({},ze,{key:"noPager",page:1,className:"".concat(n,"-item-disabled")})));for(var Qe=1;Qe<=Re;Qe+=1)We.push(f.createElement(g,(0,i.Z)({},ze,{key:Qe,page:Qe,active:pe===Qe})))}else{var Je=O?K.prev_3:K.prev_5,qe=O?K.next_3:K.next_5,_e=ne(be,"jump-prev",Ce(re,"prev page")),$e=ne(we,"jump-next",Ce(ie,"next page"));I&&(je=_e?f.createElement("li",{title:W?Je:null,key:"prev",onClick:Pe,tabIndex:0,onKeyDown:function(e){Be(e,Pe)},className:c()("".concat(n,"-jump-prev"),(0,r.Z)({},"".concat(n,"-jump-prev-custom-icon"),!!re))},_e):null,Oe=$e?f.createElement("li",{title:W?qe:null,key:"next",onClick:Ze,tabIndex:0,onKeyDown:function(e){Be(e,Ze)},className:c()("".concat(n,"-jump-next"),(0,r.Z)({},"".concat(n,"-jump-next-custom-icon"),!!ie))},$e):null);var et=Math.max(1,pe-Xe),tt=Math.min(pe+Xe,Re);pe-1<=Xe&&(tt=1+2*Xe),Re-pe<=Xe&&(et=Re-2*Xe);for(var nt=et;nt<=tt;nt+=1)We.push(f.createElement(g,(0,i.Z)({},ze,{key:nt,page:nt,active:pe===nt})));if(pe-1>=2*Xe&&3!==pe&&(We[0]=f.cloneElement(We[0],{className:c()("".concat(n,"-item-after-jump-prev"),We[0].props.className)}),We.unshift(je)),Re-pe>=2*Xe&&pe!==Re-2){var rt=We[We.length-1];We[We.length-1]=f.cloneElement(rt,{className:c()("".concat(n,"-item-before-jump-next"),rt.props.className)}),We.push(Oe)}1!==et&&We.unshift(f.createElement(g,(0,i.Z)({},ze,{key:1,page:1}))),tt!==Re&&We.push(f.createElement(g,(0,i.Z)({},ze,{key:Re,page:Re})))}var it=function(e){var t=ne(e,"prev",Ce(oe,"prev page"));return f.isValidElement(t)?f.cloneElement(t,{disabled:!Ne}):t}(He);if(it){var ot=!Ne||!Re;it=f.createElement("li",{title:W?K.prev_page:null,onClick:Me,tabIndex:ot?null:0,onKeyDown:function(e){Be(e,Me)},className:c()("".concat(n,"-prev"),(0,r.Z)({},"".concat(n,"-disabled"),ot)),"aria-disabled":ot},it)}var at,lt,st=function(e){var t=ne(e,"next",Ce(ae,"next page"));return f.isValidElement(t)?f.cloneElement(t,{disabled:!Le}):t}(Ve);st&&(Q?(at=!Le,lt=Ne?0:null):lt=(at=!Le||!Re)?null:0,st=f.createElement("li",{title:W?K.next_page:null,onClick:De,tabIndex:lt,onKeyDown:function(e){Be(e,De)},className:c()("".concat(n,"-next"),(0,r.Z)({},"".concat(n,"-disabled"),at)),"aria-disabled":at},st));var ct=c()(n,C,(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},"".concat(n,"-start"),"start"===T),"".concat(n,"-center"),"center"===T),"".concat(n,"-end"),"end"===T),"".concat(n,"-simple"),Q),"".concat(n,"-disabled"),X));return f.createElement("ul",(0,i.Z)({className:ct,style:Y,ref:le},Ie),Fe,it,Q?Ge:We,st,f.createElement(v,{locale:K,rootPrefixCls:n,disabled:X,selectPrefixCls:m,changeSize:function(e){var t=w(e,ue,N),n=pe>t&&0!==t?t:pe;de(e),xe(n),null==H||H(pe,e),me(n),null==Z||Z(n,e)},pageSize:ue,pageSizeOptions:ee,quickGo:Ae?Ee:null,goButton:Ue,showSizeChanger:_,sizeChangerRender:$}))}},48365:function(e,t,n){"use strict";var r=n(56656),i=n.n(r),o=n(27112),a=n.n(o),l=n(54449),s=n.n(l),c=n(53501),u=n.n(c),d=n(36867),h=n.n(d),f=n(71912),p=n.n(f),m=n(48228),v=n.n(m);i().extend(v()),i().extend(p()),i().extend(a()),i().extend(s()),i().extend(u()),i().extend(h()),i().extend((function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=(e||"").replace("Wo","wo");return r.bind(this)(t)}}));var g={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"},y=function(e){return g[e]||e.split("_")[0]},x={getNow:function(){var e=i()();return"function"==typeof e.tz?e.tz():e},getFixedDate:function(e){return i()(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},getMillisecond:function(e){return e.millisecond()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},setMillisecond:function(e,t){return e.millisecond(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return i()().locale(y(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(y(e)).weekday(0)},getWeek:function(e,t){return t.locale(y(e)).week()},getShortWeekDays:function(e){return i()().locale(y(e)).localeData().weekdaysMin()},getShortMonths:function(e){return i()().locale(y(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(y(e)).format(n)},parse:function(e,t,n){for(var r=y(e),o=0;o<n.length;o+=1){var a=n[o],l=t;if(a.includes("wo")||a.includes("Wo")){for(var s=l.split("-")[0],c=l.split("-")[1],u=i()(s,"YYYY").startOf("year").locale(r),d=0;d<=52;d+=1){var h=u.add(d,"week");if(h.format("Wo")===c)return h}return null}var f=i()(l,a,!0).locale(r);if(f.isValid())return f}return null}}};t.Z=x},8571:function(e,t,n){"use strict";n.d(t,{Sq:function(){return pt},ZP:function(){return wt}});var r=n(54476),i=n(94480),o=n(33885),a=n(42978),l=n(70425),s=n(34280),c=n(2738),u=n(26112),d=n(48736),h=n(59301),f=n(20068),p=n(65030),m=n(92310),v=n.n(m);var g=h.createContext(null),y={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};var x=function(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,i=e.popupAlign,o=e.transitionName,a=e.getPopupContainer,l=e.children,s=e.range,c=e.placement,u=e.builtinPlacements,d=void 0===u?y:u,m=e.direction,x=e.visible,b=e.onClose,w=h.useContext(g).prefixCls,C="".concat(w,"-dropdown"),k=function(e,t){return void 0!==e?e:t?"bottomRight":"bottomLeft"}(c,"rtl"===m);return h.createElement(p.Z,{showAction:[],hideAction:["click"],popupPlacement:k,builtinPlacements:d,prefixCls:C,popupTransitionName:o,popup:t,popupAlign:i,popupVisible:x,popupClassName:v()(r,(0,f.Z)((0,f.Z)({},"".concat(C,"-range"),s),"".concat(C,"-rtl"),"rtl"===m)),popupStyle:n,stretch:"minWidth",getPopupContainer:a,onPopupVisibleChange:function(e){e||b()}},l)};function b(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function w(e){return null==e?[]:Array.isArray(e)?e:[e]}function C(e,t,n){var r=(0,i.Z)(e);return r[t]=n,r}function k(e,t){var n={};return(t||Object.keys(e)).forEach((function(t){void 0!==e[t]&&(n[t]=e[t])})),n}function A(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function S(e,t,n){var r=void 0!==n?n:t[t.length-1],i=t.find((function(t){return e[t]}));return r!==i?e[i]:void 0}function E(e){return k(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function N(e,t,n,r){var i=h.useMemo((function(){return e||function(e,r){var i=e;return t&&"date"===r.type?t(i,r.today):n&&"month"===r.type?n(i,r.locale):r.originNode}}),[e,n,t]);return h.useCallback((function(e,t){return i(e,(0,o.Z)((0,o.Z)({},t),{},{range:r}))}),[i,r])}function L(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=h.useState([!1,!1]),i=(0,a.Z)(r,2),o=i[0],l=i[1],s=function(e,t){l((function(n){return C(n,t,e)}))},c=h.useMemo((function(){return o.map((function(r,i){if(r)return!0;var o=e[i];return!!o&&(!n[i]&&!o||!(!o||!t(o,{activeIndex:i})))}))}),[e,o,t,n]);return[c,s]}function M(e,t,n,r,i){var o="",a=[];return e&&a.push(i?"hh":"HH"),t&&a.push("mm"),n&&a.push("ss"),o=a.join(":"),r&&(o+=".SSS"),i&&(o+=" A"),o}function D(e,t){var n=t.showHour,r=t.showMinute,i=t.showSecond,a=t.showMillisecond,l=t.use12Hours;return h.useMemo((function(){return function(e,t,n,r,i,a){var l=e.fieldDateTimeFormat,s=e.fieldDateFormat,c=e.fieldTimeFormat,u=e.fieldMonthFormat,d=e.fieldYearFormat,h=e.fieldWeekFormat,f=e.fieldQuarterFormat,p=e.yearFormat,m=e.cellYearFormat,v=e.cellQuarterFormat,g=e.dayFormat,y=e.cellDateFormat,x=M(t,n,r,i,a);return(0,o.Z)((0,o.Z)({},e),{},{fieldDateTimeFormat:l||"YYYY-MM-DD ".concat(x),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:c||x,fieldMonthFormat:u||"YYYY-MM",fieldYearFormat:d||"YYYY",fieldWeekFormat:h||"gggg-wo",fieldQuarterFormat:f||"YYYY-[Q]Q",yearFormat:p||"YYYY",cellYearFormat:m||"YYYY",cellQuarterFormat:v||"[Q]Q",cellDateFormat:y||g||"D"})}(e,n,r,i,a,l)}),[e,n,r,i,a,l])}var P=n(76190);function Z(e,t,n){return null!=n?n:t.some((function(t){return e.includes(t)}))}var B=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function T(e){return e&&"string"==typeof e}function j(e,t,n,r){return[e,t,n,r].some((function(e){return void 0!==e}))}function I(e,t,n,r,i){var o=t,a=n,l=r;if(e||o||a||l||i){if(e){var s,c,u,d=[o,a,l].some((function(e){return!1===e})),h=[o,a,l].some((function(e){return!0===e})),f=!!d||!h;o=null!==(s=o)&&void 0!==s?s:f,a=null!==(c=a)&&void 0!==c?c:f,l=null!==(u=l)&&void 0!==u?u:f}}else o=!0,a=!0,l=!0;return[o,a,l,i]}function F(e){var t=e.showTime,n=function(e){var t=k(e,B),n=e.format,r=e.picker,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i="object"===(0,P.Z)(i)?i.format:i),"time"===r&&(t.format=i),[t,i]}(e),r=(0,a.Z)(n,2),i=r[0],l=r[1],s=t&&"object"===(0,P.Z)(t)?t:{},c=(0,o.Z)((0,o.Z)({defaultOpenValue:s.defaultOpenValue||s.defaultValue},i),s),u=c.showMillisecond,d=c.showHour,h=c.showMinute,f=c.showSecond,p=I(j(d,h,f,u),d,h,f,u),m=(0,a.Z)(p,3);return d=m[0],h=m[1],f=m[2],[c,(0,o.Z)((0,o.Z)({},c),{},{showHour:d,showMinute:h,showSecond:f,showMillisecond:u}),c.format,l]}function O(e,t,n,r,i){if("datetime"===e||"time"===e){for(var l=r,s=A(e,i,null),c=[t,n],u=0;u<c.length;u+=1){var d=w(c[u])[0];if(T(d)){s=d;break}}var h=l.showHour,f=l.showMinute,p=l.showSecond,m=l.showMillisecond,v=Z(s,["a","A","LT","LLL","LTS"],l.use12Hours),g=j(h,f,p,m);g||(h=Z(s,["H","h","k","LT","LLL"]),f=Z(s,["m","LT","LLL"]),p=Z(s,["s","LTS"]),m=Z(s,["SSS"]));var y=I(g,h,f,p,m),x=(0,a.Z)(y,3);h=x[0],f=x[1],p=x[2];var b=t||M(h,f,p,m,v);return(0,o.Z)((0,o.Z)({},l),{},{format:b,showHour:h,showMinute:f,showSecond:p,showMillisecond:m,use12Hours:v})}return null}function R(e,t,n){return!1===t?null:(t&&"object"===(0,P.Z)(t)?t:{}).clearIcon||n||h.createElement("span",{className:"".concat(e,"-clear-btn")})}function W(e,t,n){return!e&&!t||e===t||!(!e||!t)&&n()}function z(e,t,n){return W(t,n,(function(){return Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10)}))}function H(e,t,n){return W(t,n,(function(){return e.getYear(t)===e.getYear(n)}))}function V(e,t){return Math.floor(e.getMonth(t)/3)+1}function K(e,t,n){return W(t,n,(function(){return H(e,t,n)&&e.getMonth(t)===e.getMonth(n)}))}function Y(e,t,n){return W(t,n,(function(){return H(e,t,n)&&K(e,t,n)&&e.getDate(t)===e.getDate(n)}))}function U(e,t,n){return W(t,n,(function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)}))}function G(e,t,n){return W(t,n,(function(){return Y(e,t,n)&&U(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)}))}function X(e,t,n,r){return W(n,r,(function(){var i=e.locale.getWeekFirstDate(t,n),o=e.locale.getWeekFirstDate(t,r);return H(e,i,o)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)}))}function Q(e,t,n,r,i){switch(i){case"date":return Y(e,n,r);case"week":return X(e,t.locale,n,r);case"month":return K(e,n,r);case"quarter":return function(e,t,n){return W(t,n,(function(){return H(e,t,n)&&V(e,t)===V(e,n)}))}(e,n,r);case"year":return H(e,n,r);case"decade":return z(e,n,r);case"time":return U(e,n,r);default:return G(e,n,r)}}function J(e,t,n,r){return!!(t&&n&&r)&&(e.isAfter(r,t)&&e.isAfter(n,r))}function q(e,t,n,r,i){return!!Q(e,t,n,r,i)||e.isAfter(n,r)}function _(e,t){var n=t.generateConfig,r=t.locale,i=t.format;return e?"function"==typeof i?i(e):n.locale.format(r.locale,e,i):""}function $(e,t,n){var r=t,i=["getHour","getMinute","getSecond","getMillisecond"];return["setHour","setMinute","setSecond","setMillisecond"].forEach((function(t,o){r=n?e[t](r,e[i[o]](n)):e[t](r,0)})),r}function ee(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=h.useMemo((function(){var n=e?w(e):e;return t&&n&&(n[1]=n[1]||n[0]),n}),[e,t]);return n}function te(e,t){var n=e.generateConfig,r=e.locale,i=e.picker,s=void 0===i?"date":i,c=e.prefixCls,u=void 0===c?"rc-picker":c,d=e.styles,f=void 0===d?{}:d,p=e.classNames,m=void 0===p?{}:p,v=e.order,g=void 0===v||v,y=e.components,x=void 0===y?{}:y,b=e.inputRender,C=e.allowClear,k=e.clearIcon,S=e.needConfirm,E=e.multiple,N=e.format,L=e.inputReadOnly,M=e.disabledDate,Z=e.minDate,B=e.maxDate,T=e.showTime,j=e.value,I=e.defaultValue,W=e.pickerValue,z=e.defaultPickerValue,H=ee(j),V=ee(I),K=ee(W),Y=ee(z),U="date"===s&&T?"datetime":s,G="time"===U||"datetime"===U,X=G||E,J=null!=S?S:G,q=F(e),_=(0,a.Z)(q,4),$=_[0],te=_[1],ne=_[2],re=_[3],ie=D(r,te),oe=h.useMemo((function(){return O(U,ne,re,$,ie)}),[U,ne,re,$,ie]);var ae=h.useMemo((function(){return(0,o.Z)((0,o.Z)({},e),{},{prefixCls:u,locale:ie,picker:s,styles:f,classNames:m,order:g,components:(0,o.Z)({input:b},x),clearIcon:R(u,C,k),showTime:oe,value:H,defaultValue:V,pickerValue:K,defaultPickerValue:Y},null==t?void 0:t())}),[e]),le=function(e,t,n){return h.useMemo((function(){var r=w(A(e,t,n)),i=r[0],o="object"===(0,P.Z)(i)&&"mask"===i.type?i.format:null;return[r.map((function(e){return"string"==typeof e||"function"==typeof e?e:e.format})),o]}),[e,t,n])}(U,ie,N),se=(0,a.Z)(le,2),ce=se[0],ue=se[1],de=function(e,t,n){return!("function"!=typeof e[0]&&!n)||t}(ce,L,E),he=function(e,t,n,r,i){return(0,l.zX)((function(o,a){return!(!n||!n(o,a))||!(!r||!e.isAfter(r,o)||Q(e,t,r,o,a.type))||!(!i||!e.isAfter(o,i)||Q(e,t,i,o,a.type))}))}(n,r,M,Z,B),fe=function(e,t,n,r){return(0,l.zX)((function(i,a){var l=(0,o.Z)({type:t},a);if(delete l.activeIndex,!e.isValidate(i)||n&&n(i,l))return!0;if(("date"===t||"time"===t)&&r){var s,c=a&&1===a.activeIndex?"end":"start",u=(null===(s=r.disabledTime)||void 0===s?void 0:s.call(r,i,c,{from:l.from}))||{},d=u.disabledHours,h=u.disabledMinutes,f=u.disabledSeconds,p=u.disabledMilliseconds,m=r.disabledHours,v=r.disabledMinutes,g=r.disabledSeconds,y=d||m,x=h||v,b=f||g,w=e.getHour(i),C=e.getMinute(i),k=e.getSecond(i),A=e.getMillisecond(i);if(y&&y().includes(w))return!0;if(x&&x(w).includes(C))return!0;if(b&&b(w,C).includes(k))return!0;if(p&&p(w,C,k).includes(A))return!0}return!1}))}(n,s,he,oe);return[h.useMemo((function(){return(0,o.Z)((0,o.Z)({},ae),{},{needConfirm:J,inputReadOnly:de,disabledDate:he})}),[ae,J,de,he]),U,X,ce,ue,fe]}var ne=n(16089);function re(e,t,n){var r=(0,l.C8)(t,{value:e}),i=(0,a.Z)(r,2),o=i[0],s=i[1],c=h.useRef(e),u=h.useRef(),d=function(){ne.Z.cancel(u.current)},f=(0,l.zX)((function(){s(c.current),n&&o!==c.current&&n(c.current)})),p=(0,l.zX)((function(e,t){d(),c.current=e,e||t?f():u.current=(0,ne.Z)(f)}));return h.useEffect((function(){return d}),[]),[o,p]}function ie(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,i=!n.every((function(e){return e}))&&e,o=re(i,t||!1,r),l=(0,a.Z)(o,2),s=l[0],c=l[1];function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.inherit&&!s||c(e,t.force)}return[s,u]}function oe(e){var t=h.useRef();return h.useImperativeHandle(e,(function(){var e;return{nativeElement:null===(e=t.current)||void 0===e?void 0:e.nativeElement,focus:function(e){var n;null===(n=t.current)||void 0===n||n.focus(e)},blur:function(){var e;null===(e=t.current)||void 0===e||e.blur()}}})),t}function ae(e,t){return h.useMemo((function(){return e||(t?((0,d.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map((function(e){var t=(0,a.Z)(e,2);return{label:t[0],value:t[1]}}))):[])}),[e,t])}function le(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=h.useRef(t);r.current=t,(0,s.o)((function(){if(!e){var t=(0,ne.Z)((function(){r.current(e)}),n);return function(){ne.Z.cancel(t)}}r.current(e)}),[e])}function se(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=h.useState(0),i=(0,a.Z)(r,2),o=i[0],l=i[1],s=h.useState(!1),c=(0,a.Z)(s,2),u=c[0],d=c[1],f=h.useRef([]),p=h.useRef(null),m=h.useRef(null),v=function(e){p.current=e},g=function(e){return p.current===e},y=function(e){d(e)},x=function(e){return e&&(m.current=e),m.current},b=function(n){var r=f.current,i=new Set(r.filter((function(e){return n[e]||t[e]}))),o=0===r[r.length-1]?1:0;return i.size>=2||e[o]?null:o};return le(u||n,(function(){u||(f.current=[],v(null))})),h.useEffect((function(){u&&f.current.push(o)}),[u,o]),[u,y,x,o,l,b,f.current,v,g]}function ce(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,10*r);case"decade":return e.addYear(n,100*r);default:return n}}var ue=[];function de(e,t,n,r,i,o,c,u){var d=arguments.length>8&&void 0!==arguments[8]?arguments[8]:ue,f=arguments.length>9&&void 0!==arguments[9]?arguments[9]:ue,p=arguments.length>10&&void 0!==arguments[10]?arguments[10]:ue,m=arguments.length>11?arguments[11]:void 0,v=arguments.length>12?arguments[12]:void 0,g=arguments.length>13?arguments[13]:void 0,y="time"===c,x=o||0,b=function(t){var r=e.getNow();return y&&(r=$(e,r)),d[t]||n[t]||r},w=(0,a.Z)(f,2),C=w[0],k=w[1],A=(0,l.C8)((function(){return b(0)}),{value:C}),S=(0,a.Z)(A,2),E=S[0],N=S[1],L=(0,l.C8)((function(){return b(1)}),{value:k}),M=(0,a.Z)(L,2),D=M[0],P=M[1],Z=h.useMemo((function(){var t=[E,D][x];return y?t:$(e,t,p[x])}),[y,E,D,x,e,p]),B=function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"panel",o=[N,P][x];o(n);var a=[E,D];a[x]=n,!m||Q(e,t,E,a[0],c)&&Q(e,t,D,a[1],c)||m(a,{source:i,range:1===x?"end":"start",mode:r})},T=function(n,r){if(u){var i={date:"month",week:"month",month:"year",quarter:"year"}[c];if(i&&!Q(e,t,n,r,i))return ce(e,c,r,-1);if("year"===c&&n)if(Math.floor(e.getYear(n)/10)!==Math.floor(e.getYear(r)/10))return ce(e,c,r,-1)}return r},j=h.useRef(null);return(0,s.Z)((function(){if(i&&!d[x]){var t=y?null:e.getNow();if(null!==j.current&&j.current!==x?t=[E,D][1^x]:n[x]?t=0===x?n[0]:T(n[0],n[1]):n[1^x]&&(t=n[1^x]),t){v&&e.isAfter(v,t)&&(t=v);var r=u?ce(e,c,t,1):t;g&&e.isAfter(r,g)&&(t=u?ce(e,c,g,-1):g),B(t,"reset")}}}),[i,x,n[x]]),h.useEffect((function(){j.current=i?x:null}),[i,x]),(0,s.Z)((function(){i&&d&&d[x]&&B(d[x],"reset")}),[i,x]),[Z,B]}function he(e,t){var n=h.useRef(e),r=h.useState({}),i=(0,a.Z)(r,2)[1],o=function(e){return e&&void 0!==t?t:n.current};return[o,function(e){n.current=e,i({})},o(!0)]}var fe=[];function pe(e,t,n){return[function(r){return r.map((function(r){return _(r,{generateConfig:e,locale:t,format:n[0]})}))},function(t,n){for(var r=Math.max(t.length,n.length),i=-1,o=0;o<r;o+=1){var a=t[o]||null,l=n[o]||null;if(a!==l&&!G(e,a,l)){i=o;break}}return[i<0,0!==i]}]}function me(e,t){return(0,i.Z)(e).sort((function(e,n){return t.isAfter(e,n)?1:-1}))}function ve(e,t,n,r,o,s,c,u,d){var f=(0,l.C8)(s,{value:c}),p=(0,a.Z)(f,2),m=p[0],v=p[1],g=m||fe,y=function(e){var t=he(e),n=(0,a.Z)(t,2),r=n[0],i=n[1],o=(0,l.zX)((function(){i(e)}));return h.useEffect((function(){o()}),[e]),[r,i]}(g),x=(0,a.Z)(y,2),b=x[0],w=x[1],C=pe(e,t,n),k=(0,a.Z)(C,2),A=k[0],S=k[1],E=(0,l.zX)((function(t){var n=(0,i.Z)(t);if(r)for(var l=0;l<2;l+=1)n[l]=n[l]||null;else o&&(n=me(n.filter((function(e){return e})),e));var s=S(b(),n),c=(0,a.Z)(s,2),d=c[0],h=c[1];if(!d&&(w(n),u)){var f=A(n);u(n,f,{range:h?"end":"start"})}}));return[g,v,b,E,function(){d&&d(b())}]}function ge(e,t,n,r,o,s,c,u,d,f){var p=e.generateConfig,m=e.locale,v=e.picker,g=e.onChange,y=e.allowEmpty,x=e.order,b=!s.some((function(e){return e}))&&x,w=pe(p,m,c),k=(0,a.Z)(w,2),A=k[0],S=k[1],E=he(t),N=(0,a.Z)(E,2),L=N[0],M=N[1],D=(0,l.zX)((function(){M(t)}));h.useEffect((function(){D()}),[t]);var P=(0,l.zX)((function(e){var r=null===e,l=(0,i.Z)(e||L());if(r)for(var c=Math.max(s.length,l.length),u=0;u<c;u+=1)s[u]||(l[u]=null);b&&l[0]&&l[1]&&(l=me(l,p)),o(l);var d=l,h=(0,a.Z)(d,2),w=h[0],C=h[1],k=!w,E=!C,N=!y||(!k||y[0])&&(!E||y[1]),M=!x||k||E||Q(p,m,w,C,v)||p.isAfter(C,w),D=(s[0]||!w||!f(w,{activeIndex:0}))&&(s[1]||!C||!f(C,{from:w,activeIndex:1})),P=r||N&&M&&D;if(P){n(l);var Z=S(l,t),B=(0,a.Z)(Z,1)[0];g&&!B&&g(r&&l.every((function(e){return!e}))?null:l,A(l))}return P})),Z=(0,l.zX)((function(e,t){var n=C(L(),e,r()[e]);M(n),t&&P()})),B=!u&&!d;return le(!B,(function(){B&&(P(),o(t),D())}),2),[Z,P]}function ye(e,t,n,r,i){return("date"===t||"time"===t)&&(void 0!==n?n:void 0!==r?r:!i&&("date"===e||"time"===e))}var xe=n(29301);function be(e,t,n,r,o,a){var l=e;function s(e,t,n){var r=a[e](l),o=n.find((function(e){return e.value===r}));if(!o||o.disabled){var s=n.filter((function(e){return!e.disabled})),c=(0,i.Z)(s).reverse().find((function(e){return e.value<=r}))||s[0];c&&(r=c.value,l=a[t](l,r))}return r}var c=s("getHour","setHour",t()),u=s("getMinute","setMinute",n(c)),d=s("getSecond","setSecond",r(c,u));return s("getMillisecond","setMillisecond",o(c,u,d)),l}function we(){return[]}function Ce(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2,a=[],l=n>=1?0|n:1,s=e;s<=t;s+=l){var c=i.includes(s);c&&r||a.push({label:b(s,o),value:s,disabled:c})}return a}function ke(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},i=r.use12Hours,l=r.hourStep,s=void 0===l?1:l,c=r.minuteStep,u=void 0===c?1:c,d=r.secondStep,f=void 0===d?1:d,p=r.millisecondStep,m=void 0===p?100:p,v=r.hideDisabledOptions,g=r.disabledTime,y=r.disabledHours,x=r.disabledMinutes,w=r.disabledSeconds,C=h.useMemo((function(){return n||e.getNow()}),[n,e]),k=h.useCallback((function(e){var t=(null==g?void 0:g(e))||{};return[t.disabledHours||y||we,t.disabledMinutes||x||we,t.disabledSeconds||w||we,t.disabledMilliseconds||we]}),[g,y,x,w]),A=h.useMemo((function(){return k(C)}),[C,k]),S=(0,a.Z)(A,4),E=S[0],N=S[1],L=S[2],M=S[3],D=h.useCallback((function(e,t,n,r){var a=Ce(0,23,s,v,e());return[i?a.map((function(e){return(0,o.Z)((0,o.Z)({},e),{},{label:b(e.value%12||12,2)})})):a,function(e){return Ce(0,59,u,v,t(e))},function(e,t){return Ce(0,59,f,v,n(e,t))},function(e,t,n){return Ce(0,999,m,v,r(e,t,n),3)}]}),[v,s,i,m,u,f]),P=h.useMemo((function(){return D(E,N,L,M)}),[D,E,N,L,M]),Z=(0,a.Z)(P,4),B=Z[0],T=Z[1],j=Z[2],I=Z[3],F=function(t,n){var r=function(){return B},i=T,o=j,l=I;if(n){var s=k(n),c=(0,a.Z)(s,4),u=c[0],d=c[1],h=c[2],f=c[3],p=D(u,d,h,f),m=(0,a.Z)(p,4),v=m[0];r=function(){return v},i=m[1],o=m[2],l=m[3]}return be(t,r,i,o,l,e)};return[F,B,T,j,I]}function Ae(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,i=e.showNow,o=e.showTime,l=e.onSubmit,s=e.onNow,c=e.invalid,u=e.needConfirm,d=e.generateConfig,f=e.disabledDate,p=h.useContext(g),m=p.prefixCls,y=p.locale,x=p.button,b=void 0===x?"button":x,w=d.getNow(),C=ke(d,o,w),k=(0,a.Z)(C,1)[0],A=null==r?void 0:r(t),S=f(w,{type:t}),E="".concat(m,"-now"),N="".concat(E,"-btn"),L=i&&h.createElement("li",{className:E},h.createElement("a",{className:v()(N,S&&"".concat(N,"-disabled")),"aria-disabled":S,onClick:function(){if(!S){var e=k(w);s(e)}}},"date"===n?y.today:y.now)),M=u&&h.createElement("li",{className:"".concat(m,"-ok")},h.createElement(b,{disabled:c,onClick:l},y.ok)),D=(L||M)&&h.createElement("ul",{className:"".concat(m,"-ranges")},L,M);return A||D?h.createElement("div",{className:"".concat(m,"-footer")},A&&h.createElement("div",{className:"".concat(m,"-footer-extra")},A),D):null}function Se(e,t,n){return function(r,o){var a=r.findIndex((function(r){return Q(e,t,r,o,n)}));if(-1===a)return[].concat((0,i.Z)(r),[o]);var l=(0,i.Z)(r);return l.splice(a,1),l}}var Ee=h.createContext(null);function Ne(){return h.useContext(Ee)}function Le(e,t){var n=e.prefixCls,r=e.generateConfig,i=e.locale,o=e.disabledDate,a=e.minDate,l=e.maxDate,s=e.cellRender,c=e.hoverValue,u=e.hoverRangeValue,d=e.onHover,h=e.values,f=e.pickerValue,p=e.onSelect,m=e.prevIcon,v=e.nextIcon,g=e.superPrevIcon,y=e.superNextIcon,x=r.getNow();return[{now:x,values:h,pickerValue:f,prefixCls:n,disabledDate:o,minDate:a,maxDate:l,cellRender:s,hoverValue:c,hoverRangeValue:u,onHover:d,locale:i,generateConfig:r,onSelect:p,panelType:t,prevIcon:m,nextIcon:v,superPrevIcon:g,superNextIcon:y},x]}var Me=h.createContext({});function De(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,i=e.getCellDate,l=e.prefixColumn,s=e.rowClassName,c=e.titleFormat,u=e.getCellText,d=e.getCellClassName,p=e.headerCells,m=e.cellSelection,g=void 0===m||m,y=e.disabledDate,x=Ne(),b=x.prefixCls,w=x.panelType,C=x.now,k=x.disabledDate,A=x.cellRender,S=x.onHover,E=x.hoverValue,N=x.hoverRangeValue,L=x.generateConfig,M=x.values,D=x.locale,P=x.onSelect,Z=y||k,B="".concat(b,"-cell"),T=h.useContext(Me).onCellDblClick,j=[],I=0;I<t;I+=1){for(var F=[],O=void 0,R=function(){var e=i(r,I*n+W),t=null==Z?void 0:Z(e,{type:w});0===W&&(O=e,l&&F.push(l(O)));var s=!1,p=!1,m=!1;if(g&&N){var y=(0,a.Z)(N,2),x=y[0],k=y[1];s=J(L,x,k,e),p=Q(L,D,e,x,w),m=Q(L,D,e,k,w)}var j,R=c?_(e,{locale:D,format:c,generateConfig:L}):void 0,z=h.createElement("div",{className:"".concat(B,"-inner")},u(e));F.push(h.createElement("td",{key:W,title:R,className:v()(B,(0,o.Z)((0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)({},"".concat(B,"-disabled"),t),"".concat(B,"-hover"),(E||[]).some((function(t){return Q(L,D,e,t,w)}))),"".concat(B,"-in-range"),s&&!p&&!m),"".concat(B,"-range-start"),p),"".concat(B,"-range-end"),m),"".concat(b,"-cell-selected"),!N&&"week"!==w&&(j=e,M.some((function(e){return e&&Q(L,D,j,e,w)})))),d(e))),onClick:function(){t||P(e)},onDoubleClick:function(){!t&&T&&T()},onMouseEnter:function(){t||null==S||S(e)},onMouseLeave:function(){t||null==S||S(null)}},A?A(e,{prefixCls:b,originNode:z,today:C,type:w,locale:D}):z))},W=0;W<n;W+=1)R();j.push(h.createElement("tr",{key:I,className:null==s?void 0:s(O)},F))}return h.createElement("div",{className:"".concat(b,"-body")},h.createElement("table",{className:"".concat(b,"-content")},p&&h.createElement("thead",null,h.createElement("tr",null,p)),h.createElement("tbody",null,j)))}var Pe={visibility:"hidden"};var Ze=function(e){var t=e.offset,n=e.superOffset,r=e.onChange,i=e.getStart,o=e.getEnd,a=e.children,l=Ne(),s=l.prefixCls,c=l.prevIcon,u=void 0===c?"":c,d=l.nextIcon,f=void 0===d?"":d,p=l.superPrevIcon,m=void 0===p?"«":p,g=l.superNextIcon,y=void 0===g?"»":g,x=l.minDate,b=l.maxDate,w=l.generateConfig,C=l.locale,k=l.pickerValue,A=l.panelType,S="".concat(s,"-header"),E=h.useContext(Me),N=E.hidePrev,L=E.hideNext,M=E.hideHeader,D=h.useMemo((function(){if(!x||!t||!o)return!1;var e=o(t(-1,k));return!q(w,C,e,x,A)}),[x,t,k,o,w,C,A]),P=h.useMemo((function(){if(!x||!n||!o)return!1;var e=o(n(-1,k));return!q(w,C,e,x,A)}),[x,n,k,o,w,C,A]),Z=h.useMemo((function(){if(!b||!t||!i)return!1;var e=i(t(1,k));return!q(w,C,b,e,A)}),[b,t,k,i,w,C,A]),B=h.useMemo((function(){if(!b||!n||!i)return!1;var e=i(n(1,k));return!q(w,C,b,e,A)}),[b,n,k,i,w,C,A]),T=function(e){t&&r(t(e,k))},j=function(e){n&&r(n(e,k))};if(M)return null;var I="".concat(S,"-prev-btn"),F="".concat(S,"-next-btn"),O="".concat(S,"-super-prev-btn"),R="".concat(S,"-super-next-btn");return h.createElement("div",{className:S},n&&h.createElement("button",{type:"button","aria-label":C.previousYear,onClick:function(){return j(-1)},tabIndex:-1,className:v()(O,P&&"".concat(O,"-disabled")),disabled:P,style:N?Pe:{}},m),t&&h.createElement("button",{type:"button","aria-label":C.previousMonth,onClick:function(){return T(-1)},tabIndex:-1,className:v()(I,D&&"".concat(I,"-disabled")),disabled:D,style:N?Pe:{}},u),h.createElement("div",{className:"".concat(S,"-view")},a),t&&h.createElement("button",{type:"button","aria-label":C.nextMonth,onClick:function(){return T(1)},tabIndex:-1,className:v()(F,Z&&"".concat(F,"-disabled")),disabled:Z,style:L?Pe:{}},f),n&&h.createElement("button",{type:"button","aria-label":C.nextYear,onClick:function(){return j(1)},tabIndex:-1,className:v()(R,B&&"".concat(R,"-disabled")),disabled:B,style:L?Pe:{}},y))};function Be(e){var t=e.prefixCls,n=e.panelName,i=void 0===n?"date":n,o=e.locale,l=e.generateConfig,s=e.pickerValue,c=e.onPickerValueChange,u=e.onModeChange,d=e.mode,p=void 0===d?"date":d,m=e.disabledDate,g=e.onSelect,y=e.onHover,x=e.showWeek,b="".concat(t,"-").concat(i,"-panel"),w="".concat(t,"-cell"),C="week"===p,k=Le(e,p),A=(0,a.Z)(k,2),S=A[0],E=A[1],N=l.locale.getWeekFirstDay(o.locale),L=l.setDate(s,1),M=function(e,t,n){var r=t.locale.getWeekFirstDay(e),i=t.setDate(n,1),o=t.getWeekDay(i),a=t.addDate(i,r-o);return t.getMonth(a)===t.getMonth(n)&&t.getDate(a)>1&&(a=t.addDate(a,-7)),a}(o.locale,l,L),D=l.getMonth(s),P=(void 0===x?C:x)?function(e){var t=null==m?void 0:m(e,{type:"week"});return h.createElement("td",{key:"week",className:v()(w,"".concat(w,"-week"),(0,f.Z)({},"".concat(w,"-disabled"),t)),onClick:function(){t||g(e)},onMouseEnter:function(){t||null==y||y(e)},onMouseLeave:function(){t||null==y||y(null)}},h.createElement("div",{className:"".concat(w,"-inner")},l.locale.getWeek(o.locale,e)))}:null,Z=[],B=o.shortWeekDays||(l.locale.getShortWeekDays?l.locale.getShortWeekDays(o.locale):[]);P&&Z.push(h.createElement("th",{key:"empty"},h.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},o.week)));for(var T=0;T<7;T+=1)Z.push(h.createElement("th",{key:T},B[(T+N)%7]));var j=o.shortMonths||(l.locale.getShortMonths?l.locale.getShortMonths(o.locale):[]),I=h.createElement("button",{type:"button","aria-label":o.yearSelect,key:"year",onClick:function(){u("year",s)},tabIndex:-1,className:"".concat(t,"-year-btn")},_(s,{locale:o,format:o.yearFormat,generateConfig:l})),F=h.createElement("button",{type:"button","aria-label":o.monthSelect,key:"month",onClick:function(){u("month",s)},tabIndex:-1,className:"".concat(t,"-month-btn")},o.monthFormat?_(s,{locale:o,format:o.monthFormat,generateConfig:l}):j[D]),O=o.monthBeforeYear?[F,I]:[I,F];return h.createElement(Ee.Provider,{value:S},h.createElement("div",{className:v()(b,x&&"".concat(b,"-show-week"))},h.createElement(Ze,{offset:function(e){return l.addMonth(s,e)},superOffset:function(e){return l.addYear(s,e)},onChange:c,getStart:function(e){return l.setDate(e,1)},getEnd:function(e){var t=l.setDate(e,1);return t=l.addMonth(t,1),l.addDate(t,-1)}},O),h.createElement(De,(0,r.Z)({titleFormat:o.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:M,headerCells:Z,getCellDate:function(e,t){return l.addDate(e,t)},getCellText:function(e){return _(e,{locale:o,format:o.cellDateFormat,generateConfig:l})},getCellClassName:function(e){return(0,f.Z)((0,f.Z)({},"".concat(t,"-cell-in-view"),K(l,e,s)),"".concat(t,"-cell-today"),Y(l,e,E))},prefixColumn:P,cellSelection:!C}))))}var Te=n(29194);function je(e){return e.map((function(e){return[e.value,e.label,e.disabled].join(",")})).join(";")}function Ie(e){var t=e.units,n=e.value,r=e.optionalValue,o=e.type,c=e.onChange,u=e.onHover,d=e.onDblClick,p=e.changeOnScroll,m=Ne(),g=m.prefixCls,y=m.cellRender,x=m.now,b=m.locale,w="".concat(g,"-time-panel"),C="".concat(g,"-time-panel-cell"),k=h.useRef(null),A=h.useRef(),S=function(){clearTimeout(A.current)},E=function(e,t){var n=h.useRef(!1),r=h.useRef(null),i=h.useRef(null),o=function(){ne.Z.cancel(r.current),n.current=!1},a=h.useRef();return[(0,l.zX)((function(){var l=e.current;if(i.current=null,a.current=0,l){var s=l.querySelector('[data-value="'.concat(t,'"]')),c=l.querySelector("li");s&&c&&function e(){o(),n.current=!0,a.current+=1;var t=l.scrollTop,u=c.offsetTop,d=s.offsetTop,h=d-u;if(0===d&&s!==c||!(0,Te.Z)(l))a.current<=5&&(r.current=(0,ne.Z)(e));else{var f=t+.3333333333333333*(h-t),p=Math.abs(h-f);if(null!==i.current&&i.current<p)o();else{if(i.current=p,p<=1)return l.scrollTop=h,void o();l.scrollTop=f,r.current=(0,ne.Z)(e)}}}()}})),o,function(){return n.current}]}(k,null!=n?n:r),N=(0,a.Z)(E,3),L=N[0],M=N[1],D=N[2];(0,s.Z)((function(){return L(),S(),function(){M(),S()}}),[n,r,je(t)]);var P="".concat(w,"-column");return h.createElement("ul",{className:P,ref:k,"data-type":o,onScroll:function(e){S();var n=e.target;!D()&&p&&(A.current=setTimeout((function(){var e=k.current,r=e.querySelector("li").offsetTop,o=Array.from(e.querySelectorAll("li")).map((function(e){return e.offsetTop-r})).map((function(e,r){return t[r].disabled?Number.MAX_SAFE_INTEGER:Math.abs(e-n.scrollTop)})),a=Math.min.apply(Math,(0,i.Z)(o)),l=o.findIndex((function(e){return e===a})),s=t[l];s&&!s.disabled&&c(s.value)}),300))}},t.map((function(e){var t=e.label,r=e.value,i=e.disabled,a=h.createElement("div",{className:"".concat(C,"-inner")},t);return h.createElement("li",{key:r,className:v()(C,(0,f.Z)((0,f.Z)({},"".concat(C,"-selected"),n===r),"".concat(C,"-disabled"),i)),onClick:function(){i||c(r)},onDoubleClick:function(){!i&&d&&d()},onMouseEnter:function(){u(r)},onMouseLeave:function(){u(null)},"data-value":r},y?y(r,{prefixCls:g,originNode:a,today:x,type:"time",subType:o,locale:b}):a)})))}function Fe(e){return e<12}function Oe(e){var t=e.showHour,n=e.showMinute,i=e.showSecond,o=e.showMillisecond,l=e.use12Hours,s=e.changeOnScroll,c=Ne(),u=c.prefixCls,d=c.values,f=c.generateConfig,p=c.locale,m=c.onSelect,v=c.onHover,g=void 0===v?function(){}:v,y=c.pickerValue,x=(null==d?void 0:d[0])||null,b=h.useContext(Me).onCellDblClick,w=ke(f,e,x),C=(0,a.Z)(w,5),k=C[0],A=C[1],S=C[2],E=C[3],N=C[4],L=function(e){return[x&&f[e](x),y&&f[e](y)]},M=L("getHour"),D=(0,a.Z)(M,2),P=D[0],Z=D[1],B=L("getMinute"),T=(0,a.Z)(B,2),j=T[0],I=T[1],F=L("getSecond"),O=(0,a.Z)(F,2),R=O[0],W=O[1],z=L("getMillisecond"),H=(0,a.Z)(z,2),V=H[0],K=H[1],Y=null===P?null:Fe(P)?"am":"pm",U=h.useMemo((function(){return l?Fe(P)?A.filter((function(e){return Fe(e.value)})):A.filter((function(e){return!Fe(e.value)})):A}),[P,A,l]),G=function(e,t){var n,r=e.filter((function(e){return!e.disabled}));return null!=t?t:null==r||null===(n=r[0])||void 0===n?void 0:n.value},X=G(A,P),Q=h.useMemo((function(){return S(X)}),[S,X]),J=G(Q,j),q=h.useMemo((function(){return E(X,J)}),[E,X,J]),$=G(q,R),ee=h.useMemo((function(){return N(X,J,$)}),[N,X,J,$]),te=G(ee,V),ne=h.useMemo((function(){if(!l)return[];var e=f.getNow(),t=f.setHour(e,6),n=f.setHour(e,18),r=function(e,t){var n=p.cellMeridiemFormat;return n?_(e,{generateConfig:f,locale:p,format:n}):t};return[{label:r(t,"AM"),value:"am",disabled:A.every((function(e){return e.disabled||!Fe(e.value)}))},{label:r(n,"PM"),value:"pm",disabled:A.every((function(e){return e.disabled||Fe(e.value)}))}]}),[A,l,f,p]),re=function(e){var t=k(e);m(t)},ie=h.useMemo((function(){var e=x||y||f.getNow(),t=function(e){return null!=e};return t(P)?(e=f.setHour(e,P),e=f.setMinute(e,j),e=f.setSecond(e,R),e=f.setMillisecond(e,V)):t(Z)?(e=f.setHour(e,Z),e=f.setMinute(e,I),e=f.setSecond(e,W),e=f.setMillisecond(e,K)):t(X)&&(e=f.setHour(e,X),e=f.setMinute(e,J),e=f.setSecond(e,$),e=f.setMillisecond(e,te)),e}),[x,y,P,j,R,V,X,J,$,te,Z,I,W,K,f]),oe=function(e,t){return null===e?null:f[t](ie,e)},ae=function(e){return oe(e,"setHour")},le=function(e){return oe(e,"setMinute")},se=function(e){return oe(e,"setSecond")},ce=function(e){return oe(e,"setMillisecond")},ue=function(e){return null===e?null:"am"!==e||Fe(P)?"pm"===e&&Fe(P)?f.setHour(ie,P+12):ie:f.setHour(ie,P-12)},de={onDblClick:b,changeOnScroll:s};return h.createElement("div",{className:"".concat(u,"-content")},t&&h.createElement(Ie,(0,r.Z)({units:U,value:P,optionalValue:Z,type:"hour",onChange:function(e){re(ae(e))},onHover:function(e){g(ae(e))}},de)),n&&h.createElement(Ie,(0,r.Z)({units:Q,value:j,optionalValue:I,type:"minute",onChange:function(e){re(le(e))},onHover:function(e){g(le(e))}},de)),i&&h.createElement(Ie,(0,r.Z)({units:q,value:R,optionalValue:W,type:"second",onChange:function(e){re(se(e))},onHover:function(e){g(se(e))}},de)),o&&h.createElement(Ie,(0,r.Z)({units:ee,value:V,optionalValue:K,type:"millisecond",onChange:function(e){re(ce(e))},onHover:function(e){g(ce(e))}},de)),l&&h.createElement(Ie,(0,r.Z)({units:ne,value:Y,type:"meridiem",onChange:function(e){re(ue(e))},onHover:function(e){g(ue(e))}},de)))}function Re(e){var t=e.prefixCls,n=e.value,r=e.locale,i=e.generateConfig,o=e.showTime,l=(o||{}).format,s="".concat(t,"-time-panel"),c=Le(e,"time"),u=(0,a.Z)(c,1)[0];return h.createElement(Ee.Provider,{value:u},h.createElement("div",{className:v()(s)},h.createElement(Ze,null,n?_(n,{locale:r,format:l,generateConfig:i}):" "),h.createElement(Oe,o)))}var We={date:Be,datetime:function(e){var t=e.prefixCls,n=e.generateConfig,i=e.showTime,o=e.onSelect,l=e.value,s=e.pickerValue,c=e.onHover,u="".concat(t,"-datetime-panel"),d=ke(n,i),f=(0,a.Z)(d,1)[0],p=function(e){return $(n,e,l||s)};return h.createElement("div",{className:u},h.createElement(Be,(0,r.Z)({},e,{onSelect:function(e){var t=p(e);o(f(t,t))},onHover:function(e){null==c||c(e?p(e):e)}})),h.createElement(Re,e))},week:function(e){var t=e.prefixCls,n=e.generateConfig,i=e.locale,o=e.value,l=e.hoverValue,s=e.hoverRangeValue,c=i.locale,u="".concat(t,"-week-panel-row");return h.createElement(Be,(0,r.Z)({},e,{mode:"week",panelName:"week",rowClassName:function(e){var t={};if(s){var r=(0,a.Z)(s,2),i=r[0],d=r[1],h=X(n,c,i,e),p=X(n,c,d,e);t["".concat(u,"-range-start")]=h,t["".concat(u,"-range-end")]=p,t["".concat(u,"-range-hover")]=!h&&!p&&J(n,i,d,e)}return l&&(t["".concat(u,"-hover")]=l.some((function(t){return X(n,c,e,t)}))),v()(u,(0,f.Z)({},"".concat(u,"-selected"),!s&&X(n,c,o,e)),t)}}))},month:function(e){var t=e.prefixCls,n=e.locale,i=e.generateConfig,o=e.pickerValue,l=e.disabledDate,s=e.onPickerValueChange,c=e.onModeChange,u="".concat(t,"-month-panel"),d=Le(e,"month"),p=(0,a.Z)(d,1)[0],m=i.setMonth(o,0),v=n.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(n.locale):[]),g=l?function(e,t){var n=i.setDate(e,1),r=i.setMonth(n,i.getMonth(n)+1),o=i.addDate(r,-1);return l(n,t)&&l(o,t)}:null,y=h.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){c("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},_(o,{locale:n,format:n.yearFormat,generateConfig:i}));return h.createElement(Ee.Provider,{value:p},h.createElement("div",{className:u},h.createElement(Ze,{superOffset:function(e){return i.addYear(o,e)},onChange:s,getStart:function(e){return i.setMonth(e,0)},getEnd:function(e){return i.setMonth(e,11)}},y),h.createElement(De,(0,r.Z)({},e,{disabledDate:g,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:m,getCellDate:function(e,t){return i.addMonth(e,t)},getCellText:function(e){var t=i.getMonth(e);return n.monthFormat?_(e,{locale:n,format:n.monthFormat,generateConfig:i}):v[t]},getCellClassName:function(){return(0,f.Z)({},"".concat(t,"-cell-in-view"),!0)}}))))},quarter:function(e){var t=e.prefixCls,n=e.locale,i=e.generateConfig,o=e.pickerValue,l=e.onPickerValueChange,s=e.onModeChange,c="".concat(t,"-quarter-panel"),u=Le(e,"quarter"),d=(0,a.Z)(u,1)[0],p=i.setMonth(o,0),m=h.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){s("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},_(o,{locale:n,format:n.yearFormat,generateConfig:i}));return h.createElement(Ee.Provider,{value:d},h.createElement("div",{className:c},h.createElement(Ze,{superOffset:function(e){return i.addYear(o,e)},onChange:l,getStart:function(e){return i.setMonth(e,0)},getEnd:function(e){return i.setMonth(e,11)}},m),h.createElement(De,(0,r.Z)({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:p,getCellDate:function(e,t){return i.addMonth(e,3*t)},getCellText:function(e){return _(e,{locale:n,format:n.cellQuarterFormat,generateConfig:i})},getCellClassName:function(){return(0,f.Z)({},"".concat(t,"-cell-in-view"),!0)}}))))},year:function(e){var t=e.prefixCls,n=e.locale,i=e.generateConfig,o=e.pickerValue,l=e.disabledDate,s=e.onPickerValueChange,c=e.onModeChange,u="".concat(t,"-year-panel"),d=Le(e,"year"),p=(0,a.Z)(d,1)[0],m=function(e){var t=10*Math.floor(i.getYear(e)/10);return i.setYear(e,t)},v=function(e){var t=m(e);return i.addYear(t,9)},g=m(o),y=v(o),x=i.addYear(g,-1),b=l?function(e,t){var n=i.setMonth(e,0),r=i.setDate(n,1),o=i.addYear(r,1),a=i.addDate(o,-1);return l(r,t)&&l(a,t)}:null,w=h.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){c("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},_(g,{locale:n,format:n.yearFormat,generateConfig:i}),"-",_(y,{locale:n,format:n.yearFormat,generateConfig:i}));return h.createElement(Ee.Provider,{value:p},h.createElement("div",{className:u},h.createElement(Ze,{superOffset:function(e){return i.addYear(o,10*e)},onChange:s,getStart:m,getEnd:v},w),h.createElement(De,(0,r.Z)({},e,{disabledDate:b,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:x,getCellDate:function(e,t){return i.addYear(e,t)},getCellText:function(e){return _(e,{locale:n,format:n.cellYearFormat,generateConfig:i})},getCellClassName:function(e){return(0,f.Z)({},"".concat(t,"-cell-in-view"),H(i,e,g)||H(i,e,y)||J(i,g,y,e))}}))))},decade:function(e){var t=e.prefixCls,n=e.locale,i=e.generateConfig,o=e.pickerValue,l=e.disabledDate,s=e.onPickerValueChange,c="".concat(t,"-decade-panel"),u=Le(e,"decade"),d=(0,a.Z)(u,1)[0],p=function(e){var t=100*Math.floor(i.getYear(e)/100);return i.setYear(e,t)},m=function(e){var t=p(e);return i.addYear(t,99)},v=p(o),g=m(o),y=i.addYear(v,-10),x=l?function(e,t){var n=i.setDate(e,1),r=i.setMonth(n,0),o=i.setYear(r,10*Math.floor(i.getYear(r)/10)),a=i.addYear(o,10),s=i.addDate(a,-1);return l(o,t)&&l(s,t)}:null,b="".concat(_(v,{locale:n,format:n.yearFormat,generateConfig:i}),"-").concat(_(g,{locale:n,format:n.yearFormat,generateConfig:i}));return h.createElement(Ee.Provider,{value:d},h.createElement("div",{className:c},h.createElement(Ze,{superOffset:function(e){return i.addYear(o,100*e)},onChange:s,getStart:p,getEnd:m},b),h.createElement(De,(0,r.Z)({},e,{disabledDate:x,colNum:3,rowNum:4,baseDate:y,getCellDate:function(e,t){return i.addYear(e,10*t)},getCellText:function(e){var t=n.cellYearFormat,r=_(e,{locale:n,format:t,generateConfig:i}),o=_(i.addYear(e,9),{locale:n,format:t,generateConfig:i});return"".concat(r,"-").concat(o)},getCellClassName:function(e){return(0,f.Z)({},"".concat(t,"-cell-in-view"),z(i,e,v)||z(i,e,g)||J(i,v,g,e))}}))))},time:Re};function ze(e,t){var n,s=e.locale,c=e.generateConfig,u=e.direction,d=e.prefixCls,p=e.tabIndex,m=void 0===p?0:p,y=e.multiple,x=e.defaultValue,b=e.value,C=e.onChange,A=e.onSelect,S=e.defaultPickerValue,E=e.pickerValue,L=e.onPickerValueChange,M=e.mode,P=e.onPanelChange,Z=e.picker,B=void 0===Z?"date":Z,T=e.showTime,j=e.hoverValue,I=e.hoverRangeValue,R=e.cellRender,W=e.dateRender,z=e.monthCellRender,H=e.components,V=void 0===H?{}:H,K=e.hideHeader,Y=(null===(n=h.useContext(g))||void 0===n?void 0:n.prefixCls)||d||"rc-picker",U=h.useRef();h.useImperativeHandle(t,(function(){return{nativeElement:U.current}}));var G=F(e),X=(0,a.Z)(G,4),J=X[0],q=X[1],_=X[2],$=X[3],ee=D(s,q),te="date"===B&&T?"datetime":B,ne=h.useMemo((function(){return O(te,_,$,J,ee)}),[te,_,$,J,ee]),re=c.getNow(),ie=(0,l.C8)(B,{value:M,postState:function(e){return e||"date"}}),oe=(0,a.Z)(ie,2),ae=oe[0],le=oe[1],se="date"===ae&&ne?"datetime":ae,ce=Se(c,s,te),ue=(0,l.C8)(x,{value:b}),de=(0,a.Z)(ue,2),he=de[0],fe=de[1],pe=h.useMemo((function(){var e=w(he).filter((function(e){return e}));return y?e:e.slice(0,1)}),[he,y]),me=(0,l.zX)((function(e){fe(e),C&&(null===e||pe.length!==e.length||pe.some((function(t,n){return!Q(c,s,t,e[n],te)})))&&(null==C||C(y?e:e[0]))})),ve=(0,l.zX)((function(e){if(null==A||A(e),ae===B){var t=y?ce(pe,e):[e];me(t)}})),ge=(0,l.C8)(S||pe[0]||re,{value:E}),ye=(0,a.Z)(ge,2),xe=ye[0],be=ye[1];h.useEffect((function(){pe[0]&&!E&&be(pe[0])}),[pe[0]]);var we=function(e,t){null==P||P(e||E,t||ae)},Ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];be(e),null==L||L(e),t&&we(e)},ke=function(e,t){le(e),t&&Ce(t),we(t,e)},Ae=h.useMemo((function(){var e,t;if(Array.isArray(I)){var n=(0,a.Z)(I,2);e=n[0],t=n[1]}else e=I;return e||t?(e=e||t,t=t||e,c.isAfter(e,t)?[t,e]:[e,t]):null}),[I,c]),Ee=N(R,W,z),Ne=V[se]||We[se]||Be,Le=h.useContext(Me),De=h.useMemo((function(){return(0,o.Z)((0,o.Z)({},Le),{},{hideHeader:K})}),[Le,K]);var Pe="".concat(Y,"-panel"),Ze=k(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return h.createElement(Me.Provider,{value:De},h.createElement("div",{ref:U,tabIndex:m,className:v()(Pe,(0,f.Z)({},"".concat(Pe,"-rtl"),"rtl"===u))},h.createElement(Ne,(0,r.Z)({},Ze,{showTime:ne,prefixCls:Y,locale:ee,generateConfig:c,onModeChange:ke,pickerValue:xe,onPickerValueChange:function(e){Ce(e,!0)},value:pe[0],onSelect:function(e){if(ve(e),Ce(e),ae!==B){var t=["decade","year"],n=[].concat(t,["month"]),r={quarter:[].concat(t,["quarter"]),week:[].concat((0,i.Z)(n),["week"]),date:[].concat((0,i.Z)(n),["date"])}[B]||n,o=r.indexOf(ae),a=r[o+1];a&&ke(a,e)}},values:pe,cellRender:Ee,hoverRangeValue:Ae,hoverValue:j}))))}var He=h.memo(h.forwardRef(ze));function Ve(e){var t=e.picker,n=e.multiplePanel,i=e.pickerValue,a=e.onPickerValueChange,l=e.needConfirm,s=e.onSubmit,c=e.range,u=e.hoverValue,d=h.useContext(g),f=d.prefixCls,p=d.generateConfig,m=h.useCallback((function(e,n){return ce(p,t,e,n)}),[p,t]),v=h.useMemo((function(){return m(i,1)}),[i,m]),y={onCellDblClick:function(){l&&s()}},x="time"===t,b=(0,o.Z)((0,o.Z)({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:x});return c?b.hoverRangeValue=u:b.hoverValue=u,n?h.createElement("div",{className:"".concat(f,"-panels")},h.createElement(Me.Provider,{value:(0,o.Z)((0,o.Z)({},y),{},{hideNext:!0})},h.createElement(He,b)),h.createElement(Me.Provider,{value:(0,o.Z)((0,o.Z)({},y),{},{hidePrev:!0})},h.createElement(He,(0,r.Z)({},b,{pickerValue:v,onPickerValueChange:function(e){a(m(e,-1))}})))):h.createElement(Me.Provider,{value:(0,o.Z)({},y)},h.createElement(He,b))}function Ke(e){return"function"==typeof e?e():e}function Ye(e){var t=e.prefixCls,n=e.presets,r=e.onClick,i=e.onHover;return n.length?h.createElement("div",{className:"".concat(t,"-presets")},h.createElement("ul",null,n.map((function(e,t){var n=e.label,o=e.value;return h.createElement("li",{key:t,onClick:function(){r(Ke(o))},onMouseEnter:function(){i(Ke(o))},onMouseLeave:function(){i(null)}},n)})))):null}function Ue(e){var t=e.panelRender,n=e.internalMode,i=e.picker,o=e.showNow,l=e.range,s=e.multiple,c=e.activeInfo,u=void 0===c?[0,0,0]:c,d=e.presets,p=e.onPresetHover,m=e.onPresetSubmit,y=e.onFocus,x=e.onBlur,b=e.onPanelMouseDown,C=e.direction,k=e.value,A=e.onSelect,S=e.isInvalid,E=e.defaultOpenValue,N=e.onOk,L=e.onSubmit,M=h.useContext(g).prefixCls,D="".concat(M,"-panel"),P="rtl"===C,Z=h.useRef(null),B=h.useRef(null),T=h.useState(0),j=(0,a.Z)(T,2),I=j[0],F=j[1],O=h.useState(0),R=(0,a.Z)(O,2),W=R[0],z=R[1],H=h.useState(0),V=(0,a.Z)(H,2),K=V[0],Y=V[1],U=(0,a.Z)(u,3),G=U[0],X=U[1],Q=U[2],J=h.useState(0),q=(0,a.Z)(J,2),_=q[0],$=q[1];function ee(e){return e.filter((function(e){return e}))}h.useEffect((function(){$(10)}),[G]),h.useEffect((function(){if(l&&B.current){var e,t=(null===(e=Z.current)||void 0===e?void 0:e.offsetWidth)||0,n=B.current.getBoundingClientRect();if(!n.height||n.right<0)return void $((function(e){return Math.max(0,e-1)}));var r=(P?X-t:G)-n.left;if(Y(r),I&&I<Q){var i=P?n.right-(X-t+I):G+t-n.left-I,o=Math.max(0,i);z(o)}else z(0)}}),[_,P,I,G,X,Q,l]);var te=h.useMemo((function(){return ee(w(k))}),[k]),ne="time"===i&&!te.length,re=h.useMemo((function(){return ne?ee([E]):te}),[ne,te,E]),ie=ne?E:te,oe=h.useMemo((function(){return!re.length||re.some((function(e){return S(e)}))}),[re,S]),ae=h.createElement("div",{className:"".concat(M,"-panel-layout")},h.createElement(Ye,{prefixCls:M,presets:d,onClick:m,onHover:p}),h.createElement("div",null,h.createElement(Ve,(0,r.Z)({},e,{value:ie})),h.createElement(Ae,(0,r.Z)({},e,{showNow:!s&&o,invalid:oe,onSubmit:function(){ne&&A(E),N(),L()}}))));t&&(ae=t(ae));var le="".concat(D,"-container"),se="marginLeft",ce="marginRight",ue=h.createElement("div",{onMouseDown:b,tabIndex:-1,className:v()(le,"".concat(M,"-").concat(n,"-panel-container")),style:(0,f.Z)((0,f.Z)({},P?ce:se,W),P?se:ce,"auto"),onFocus:y,onBlur:x},ae);return l&&(ue=h.createElement("div",{onMouseDown:b,ref:B,className:v()("".concat(M,"-range-wrapper"),"".concat(M,"-").concat(i,"-range-wrapper"))},h.createElement("div",{ref:Z,className:"".concat(M,"-range-arrow"),style:{left:K}}),h.createElement(xe.Z,{onResize:function(e){e.width&&F(e.width)}},ue))),ue}var Ge=n(75931);function Xe(e,t){var n=e.format,r=e.maskFormat,i=e.generateConfig,a=e.locale,l=e.preserveInvalidOnBlur,s=e.inputReadOnly,c=e.required,d=e["aria-required"],f=e.onSubmit,p=e.onFocus,m=e.onBlur,v=e.onInputChange,g=e.onInvalid,y=e.open,x=e.onOpenChange,b=e.onKeyDown,w=e.onChange,C=e.activeHelp,k=e.name,A=e.autoComplete,S=e.id,E=e.value,N=e.invalid,L=e.placeholder,M=e.disabled,D=e.activeIndex,P=e.allHelp,Z=e.picker,B=function(e,t){var n=i.locale.parse(a.locale,e,[t]);return n&&i.isValidate(n)?n:null},T=n[0],j=h.useCallback((function(e){return _(e,{locale:a,format:T,generateConfig:i})}),[a,i,T]),I=h.useMemo((function(){return E.map(j)}),[E,j]),F=h.useMemo((function(){var e="time"===Z?8:10,t="function"==typeof T?T(i.getNow()).length:T.length;return Math.max(e,t)+2}),[T,Z,i]),O=function(e){for(var t=0;t<n.length;t+=1){var r=n[t];if("string"==typeof r){var i=B(e,r);if(i)return i}}return!1};return[function(n){function i(e){return void 0!==n?e[n]:e}var a=(0,u.Z)(e,{aria:!0,data:!0}),h=(0,o.Z)((0,o.Z)({},a),{},{format:r,validateFormat:function(e){return!!O(e)},preserveInvalidOnBlur:l,readOnly:s,required:c,"aria-required":d,name:k,autoComplete:A,size:F,id:i(S),value:i(I)||"",invalid:i(N),placeholder:i(L),active:D===n,helped:P||C&&D===n,disabled:i(M),onFocus:function(e){p(e,n)},onBlur:function(e){m(e,n)},onSubmit:f,onChange:function(e){v();var t=O(e);if(t)return g(!1,n),void w(t,n);g(!!e,n)},onHelp:function(){x(!0,{index:n})},onKeyDown:function(e){var t=!1;if(null==b||b(e,(function(){t=!0})),!e.defaultPrevented&&!t)switch(e.key){case"Escape":x(!1,{index:n});break;case"Enter":y||x(!0)}}},null==t?void 0:t({valueTexts:I}));return Object.keys(h).forEach((function(e){void 0===h[e]&&delete h[e]})),h},j]}var Qe=["onMouseEnter","onMouseLeave"];function Je(e){return h.useMemo((function(){return k(e,Qe)}),[e])}var qe=["icon","type"],_e=["onClear"];function $e(e){var t=e.icon,n=e.type,i=(0,Ge.Z)(e,qe),o=h.useContext(g).prefixCls;return t?h.createElement("span",(0,r.Z)({className:"".concat(o,"-").concat(n)},i),t):null}function et(e){var t=e.onClear,n=(0,Ge.Z)(e,_e);return h.createElement($e,(0,r.Z)({},n,{type:"clear",role:"button",onMouseDown:function(e){e.preventDefault()},onClick:function(e){e.stopPropagation(),t()}}))}var tt=n(67732),nt=n(83652),rt=["YYYY","MM","DD","HH","mm","ss","SSS"],it=function(){function e(t){(0,tt.Z)(this,e),(0,f.Z)(this,"format",void 0),(0,f.Z)(this,"maskFormat",void 0),(0,f.Z)(this,"cells",void 0),(0,f.Z)(this,"maskCells",void 0),this.format=t;var n=rt.map((function(e){return"(".concat(e,")")})).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,(function(e){return"顧".repeat(e.length)}));var i=new RegExp("(".concat(rt.join("|"),")")),o=(t.split(i)||[]).filter((function(e){return e})),a=0;this.cells=o.map((function(e){var t=rt.includes(e),n=a,r=a+e.length;return a=r,{text:e,mask:t,start:n,end:r}})),this.maskCells=this.cells.filter((function(e){return e.mask}))}return(0,nt.Z)(e,[{key:"getSelection",value:function(e){var t=this.maskCells[e]||{};return[t.start||0,t.end||0]}},{key:"match",value:function(e){for(var t=0;t<this.maskFormat.length;t+=1){var n=this.maskFormat[t],r=e[t];if(!r||"顧"!==n&&n!==r)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(e){for(var t=Number.MAX_SAFE_INTEGER,n=0,r=0;r<this.maskCells.length;r+=1){var i=this.maskCells[r],o=i.start,a=i.end;if(e>=o&&e<=a)return r;var l=Math.min(Math.abs(e-o),Math.abs(e-a));l<t&&(t=l,n=r)}return n}}]),e}();var ot=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"];var at=h.forwardRef((function(e,t){var n=e.active,i=e.showActiveCls,o=void 0===i||i,c=e.suffixIcon,u=e.format,d=e.validateFormat,p=e.onChange,m=(e.onInput,e.helped),y=e.onHelp,x=e.onSubmit,w=e.onKeyDown,C=e.preserveInvalidOnBlur,k=void 0!==C&&C,A=e.invalid,S=e.clearIcon,E=(0,Ge.Z)(e,ot),N=e.value,L=e.onFocus,M=e.onBlur,D=e.onMouseUp,P=h.useContext(g),Z=P.prefixCls,B=P.input,T=void 0===B?"input":B,j="".concat(Z,"-input"),I=h.useState(!1),F=(0,a.Z)(I,2),O=F[0],R=F[1],W=h.useState(N),z=(0,a.Z)(W,2),H=z[0],V=z[1],K=h.useState(""),Y=(0,a.Z)(K,2),U=Y[0],G=Y[1],X=h.useState(null),Q=(0,a.Z)(X,2),J=Q[0],q=Q[1],_=h.useState(null),$=(0,a.Z)(_,2),ee=$[0],te=$[1],re=H||"";h.useEffect((function(){V(N)}),[N]);var ie=h.useRef(),oe=h.useRef();h.useImperativeHandle(t,(function(){return{nativeElement:ie.current,inputElement:oe.current,focus:function(e){oe.current.focus(e)},blur:function(){oe.current.blur()}}}));var ae=h.useMemo((function(){return new it(u||"")}),[u]),se=h.useMemo((function(){return m?[0,0]:ae.getSelection(J)}),[ae,J,m]),ce=(0,a.Z)(se,2),ue=ce[0],de=ce[1],he=function(e){e&&e!==u&&e!==N&&y()},fe=(0,l.zX)((function(e){d(e)&&p(e),V(e),he(e)})),pe=h.useRef(!1),me=function(e){M(e)};le(n,(function(){n||k||V(N)}));var ve=function(e){"Enter"===e.key&&d(re)&&x(),null==w||w(e)},ge=h.useRef();(0,s.Z)((function(){if(O&&u&&!pe.current){if(ae.match(re))return oe.current.setSelectionRange(ue,de),ge.current=(0,ne.Z)((function(){oe.current.setSelectionRange(ue,de)})),function(){ne.Z.cancel(ge.current)};fe(u)}}),[ae,u,O,re,J,ue,de,ee,fe]);var ye=u?{onFocus:function(e){R(!0),q(0),G(""),L(e)},onBlur:function(e){R(!1),me(e)},onKeyDown:function(e){ve(e);var t=e.key,n=null,r=null,i=de-ue,o=u.slice(ue,de),l=function(e){q((function(t){var n=t+e;return n=Math.max(n,0),n=Math.min(n,ae.size()-1)}))},s=function(e){var t=function(e){return{YYYY:[0,9999,(new Date).getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]}[e]}(o),n=(0,a.Z)(t,3),r=n[0],i=n[1],l=n[2],s=re.slice(ue,de),c=Number(s);if(isNaN(c))return String(l||(e>0?r:i));var u=i-r+1;return String(r+(u+(c+e)-r)%u)};switch(t){case"Backspace":case"Delete":n="",r=o;break;case"ArrowLeft":n="",l(-1);break;case"ArrowRight":n="",l(1);break;case"ArrowUp":n="",r=s(1);break;case"ArrowDown":n="",r=s(-1);break;default:isNaN(Number(t))||(r=n=U+t)}if(null!==n&&(G(n),n.length>=i&&(l(1),G(""))),null!==r){var c=re.slice(0,ue)+b(r,i)+re.slice(de);fe(c.slice(0,u.length))}te({})},onMouseDown:function(){pe.current=!0},onMouseUp:function(e){var t=e.target.selectionStart,n=ae.getMaskCellIndex(t);q(n),te({}),null==D||D(e),pe.current=!1},onPaste:function(e){var t=e.clipboardData.getData("text");d(t)&&fe(t)}}:{};return h.createElement("div",{ref:ie,className:v()(j,(0,f.Z)((0,f.Z)({},"".concat(j,"-active"),n&&o),"".concat(j,"-placeholder"),m))},h.createElement(T,(0,r.Z)({ref:oe,"aria-invalid":A,autoComplete:"off"},E,{onKeyDown:ve,onBlur:me},ye,{value:re,onChange:function(e){if(!u){var t=e.target.value;he(t),V(t),p(t)}}})),h.createElement($e,{type:"suffix",icon:c}),S)})),lt=["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"],st=["index"];function ct(e,t){var n=e.id,i=e.prefix,s=e.clearIcon,c=e.suffixIcon,u=e.separator,d=void 0===u?"~":u,p=e.activeIndex,m=(e.activeHelp,e.allHelp,e.focused),y=(e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig,e.placeholder),x=e.className,b=e.style,w=e.onClick,C=e.onClear,k=e.value,A=(e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),S=e.invalid,E=(e.inputReadOnly,e.direction),N=(e.onOpenChange,e.onActiveInfo),L=(e.placement,e.onMouseDown),M=(e.required,e["aria-required"],e.autoFocus),D=e.tabIndex,Z=(0,Ge.Z)(e,lt),B="rtl"===E,T=h.useContext(g).prefixCls,j=h.useMemo((function(){if("string"==typeof n)return[n];var e=n||{};return[e.start,e.end]}),[n]),I=h.useRef(),F=h.useRef(),O=h.useRef(),R=function(e){var t;return null===(t=[F,O][e])||void 0===t?void 0:t.current};h.useImperativeHandle(t,(function(){return{nativeElement:I.current,focus:function(e){if("object"===(0,P.Z)(e)){var t,n=e||{},r=n.index,i=void 0===r?0:r,o=(0,Ge.Z)(n,st);null===(t=R(i))||void 0===t||t.focus(o)}else{var a;null===(a=R(null!=e?e:0))||void 0===a||a.focus()}},blur:function(){var e,t;null===(e=R(0))||void 0===e||e.blur(),null===(t=R(1))||void 0===t||t.blur()}}}));var W=Je(Z),z=h.useMemo((function(){return Array.isArray(y)?y:[y,y]}),[y]),H=Xe((0,o.Z)((0,o.Z)({},e),{},{id:j,placeholder:z})),V=(0,a.Z)(H,1)[0],K=h.useState({position:"absolute",width:0}),Y=(0,a.Z)(K,2),U=Y[0],G=Y[1],X=(0,l.zX)((function(){var e=R(p);if(e){var t=e.nativeElement.getBoundingClientRect(),n=I.current.getBoundingClientRect(),r=t.left-n.left;G((function(e){return(0,o.Z)((0,o.Z)({},e),{},{width:t.width,left:r})})),N([t.left,t.right,n.width])}}));h.useEffect((function(){X()}),[p]);var Q=s&&(k[0]&&!A[0]||k[1]&&!A[1]),J=M&&!A[0],q=M&&!J&&!A[1];return h.createElement(xe.Z,{onResize:X},h.createElement("div",(0,r.Z)({},W,{className:v()(T,"".concat(T,"-range"),(0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)({},"".concat(T,"-focused"),m),"".concat(T,"-disabled"),A.every((function(e){return e}))),"".concat(T,"-invalid"),S.some((function(e){return e}))),"".concat(T,"-rtl"),B),x),style:b,ref:I,onClick:w,onMouseDown:function(e){var t=e.target;t!==F.current.inputElement&&t!==O.current.inputElement&&e.preventDefault(),null==L||L(e)}}),i&&h.createElement("div",{className:"".concat(T,"-prefix")},i),h.createElement(at,(0,r.Z)({ref:F},V(0),{autoFocus:J,tabIndex:D,"date-range":"start"})),h.createElement("div",{className:"".concat(T,"-range-separator")},d),h.createElement(at,(0,r.Z)({ref:O},V(1),{autoFocus:q,tabIndex:D,"date-range":"end"})),h.createElement("div",{className:"".concat(T,"-active-bar"),style:U}),h.createElement($e,{type:"suffix",icon:c}),Q&&h.createElement(et,{icon:s,onClear:C})))}var ut=h.forwardRef(ct);function dt(e,t){var n=null!=e?e:t;return Array.isArray(n)?n:[n,n]}function ht(e){return 1===e?"end":"start"}function ft(e,t){var n=te(e,(function(){var t=e.disabled,n=e.allowEmpty;return{disabled:dt(t,!1),allowEmpty:dt(n,!1)}})),d=(0,a.Z)(n,6),f=d[0],p=d[1],m=d[2],v=d[3],y=d[4],b=d[5],k=f.prefixCls,A=f.styles,M=f.classNames,D=f.defaultValue,P=f.value,Z=f.needConfirm,B=f.onKeyDown,T=f.disabled,j=f.allowEmpty,I=f.disabledDate,F=f.minDate,O=f.maxDate,R=f.defaultOpen,W=f.open,z=f.onOpenChange,H=f.locale,V=f.generateConfig,K=f.picker,Y=f.showNow,U=f.showToday,G=f.showTime,X=f.mode,J=f.onPanelChange,q=f.onCalendarChange,_=f.onOk,$=f.defaultPickerValue,ee=f.pickerValue,ne=f.onPickerValueChange,re=f.inputReadOnly,le=f.suffixIcon,ce=f.onFocus,ue=f.onBlur,he=f.presets,fe=f.ranges,pe=f.components,me=f.cellRender,xe=f.dateRender,be=f.monthCellRender,we=f.onClick,Ce=oe(t),ke=ie(W,R,T,z),Ae=(0,a.Z)(ke,2),Se=Ae[0],Ee=Ae[1],Ne=function(e,t){!T.some((function(e){return!e}))&&e||Ee(e,t)},Le=ve(V,H,v,!0,!1,D,P,q,_),Me=(0,a.Z)(Le,5),De=Me[0],Pe=Me[1],Ze=Me[2],Be=Me[3],Te=Me[4],je=Ze(),Ie=se(T,j,Se),Fe=(0,a.Z)(Ie,9),Oe=Fe[0],Re=Fe[1],We=Fe[2],ze=Fe[3],He=Fe[4],Ve=Fe[5],Ke=Fe[6],Ye=Fe[7],Ge=Fe[8],Xe=function(e,t){Re(!0),null==ce||ce(e,{range:ht(null!=t?t:ze)})},Qe=function(e,t){Re(!1),null==ue||ue(e,{range:ht(null!=t?t:ze)})},Je=h.useMemo((function(){if(!G)return null;var e=G.disabledTime,t=e?function(t){var n=ht(ze),r=S(je,Ke,ze);return e(t,n,{from:r})}:void 0;return(0,o.Z)((0,o.Z)({},G),{},{disabledTime:t})}),[G,ze,je,Ke]),qe=(0,l.C8)([K,K],{value:X}),_e=(0,a.Z)(qe,2),$e=_e[0],et=_e[1],tt=$e[ze]||K,nt="date"===tt&&Je?"datetime":tt,rt=nt===K&&"time"!==nt,it=ye(K,tt,Y,U,!0),ot=ge(f,De,Pe,Ze,Be,T,v,Oe,Se,b),at=(0,a.Z)(ot,2),lt=at[0],st=at[1],ct=function(e,t,n,r,i,l){var s=n[n.length-1];return function(c,u){var d=(0,a.Z)(e,2),h=d[0],f=d[1],p=(0,o.Z)((0,o.Z)({},u),{},{from:S(e,n)});return!(1!==s||!t[0]||!h||Q(r,i,h,c,p.type)||!r.isAfter(h,c))||!(0!==s||!t[1]||!f||Q(r,i,f,c,p.type)||!r.isAfter(c,f))||(null==l?void 0:l(c,p))}}(je,T,Ke,V,H,I),ft=L(je,b,j),pt=(0,a.Z)(ft,2),mt=pt[0],vt=pt[1],gt=de(V,H,je,$e,Se,ze,p,rt,$,ee,null==Je?void 0:Je.defaultOpenValue,ne,F,O),yt=(0,a.Z)(gt,2),xt=yt[0],bt=yt[1],wt=(0,l.zX)((function(e,t,n){var r=C($e,ze,t);if(r[0]===$e[0]&&r[1]===$e[1]||et(r),J&&!1!==n){var o=(0,i.Z)(je);e&&(o[ze]=e),J(o,r)}})),Ct=function(e,t){return C(je,t,e)},kt=function(e,t){var n=je;e&&(n=Ct(e,ze)),Ye(ze);var r=Ve(n);Be(n),lt(ze,null===r),null===r?Ne(!1,{force:!0}):t||Ce.current.focus({index:r})},At=h.useState(null),St=(0,a.Z)(At,2),Et=St[0],Nt=St[1],Lt=h.useState(null),Mt=(0,a.Z)(Lt,2),Dt=Mt[0],Pt=Mt[1],Zt=h.useMemo((function(){return Dt||je}),[je,Dt]);h.useEffect((function(){Se||Pt(null)}),[Se]);var Bt=h.useState([0,0,0]),Tt=(0,a.Z)(Bt,2),jt=Tt[0],It=Tt[1],Ft=ae(he,fe),Ot=N(me,xe,be,ht(ze)),Rt=je[ze]||null,Wt=(0,l.zX)((function(e){return b(e,{activeIndex:ze})})),zt=h.useMemo((function(){var e=(0,u.Z)(f,!1);return(0,c.Z)(f,[].concat((0,i.Z)(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]))}),[f]),Ht=h.createElement(Ue,(0,r.Z)({},zt,{showNow:it,showTime:Je,range:!0,multiplePanel:rt,activeInfo:jt,disabledDate:ct,onFocus:function(e){Ne(!0),Xe(e)},onBlur:Qe,onPanelMouseDown:function(){We("panel")},picker:K,mode:tt,internalMode:nt,onPanelChange:wt,format:y,value:Rt,isInvalid:Wt,onChange:null,onSelect:function(e){var t=C(je,ze,e);Be(t),Z||m||p!==nt||kt(e)},pickerValue:xt,defaultOpenValue:w(null==G?void 0:G.defaultOpenValue)[ze],onPickerValueChange:bt,hoverValue:Zt,onHover:function(e){Pt(e?Ct(e,ze):null),Nt("cell")},needConfirm:Z,onSubmit:kt,onOk:Te,presets:Ft,onPresetHover:function(e){Pt(e),Nt("preset")},onPresetSubmit:function(e){st(e)&&Ne(!1,{force:!0})},onNow:function(e){kt(e)},cellRender:Ot})),Vt=h.useMemo((function(){return{prefixCls:k,locale:H,generateConfig:V,button:pe.button,input:pe.input}}),[k,H,V,pe.button,pe.input]);return(0,s.Z)((function(){Se&&void 0!==ze&&wt(null,K,!1)}),[Se,ze,K]),(0,s.Z)((function(){var e=We();Se||"input"!==e||(Ne(!1),kt(null,!0)),Se||!m||Z||"panel"!==e||(Ne(!0),kt())}),[Se]),h.createElement(g.Provider,{value:Vt},h.createElement(x,(0,r.Z)({},E(f),{popupElement:Ht,popupStyle:A.popup,popupClassName:M.popup,visible:Se,onClose:function(){Ne(!1)},range:!0}),h.createElement(ut,(0,r.Z)({},f,{ref:Ce,suffixIcon:le,activeIndex:Oe||Se?ze:null,activeHelp:!!Dt,allHelp:!!Dt&&"preset"===Et,focused:Oe,onFocus:function(e,t){var n=Ke.length,r=Ke[n-1];n&&r!==t&&Z&&!j[r]&&!Ge(r)&&je[r]?Ce.current.focus({index:r}):(We("input"),Ne(!0,{inherit:!0}),ze!==t&&Se&&!Z&&m&&kt(null,!0),He(t),Xe(e,t))},onBlur:function(e,t){if(Ne(!1),!Z&&"input"===We()){var n=Ve(je);lt(ze,null===n)}Qe(e,t)},onKeyDown:function(e,t){"Tab"===e.key&&kt(null,!0),null==B||B(e,t)},onSubmit:kt,value:Zt,maskFormat:y,onChange:function(e,t){var n=Ct(e,t);Be(n)},onInputChange:function(){We("input")},format:v,inputReadOnly:re,disabled:T,open:Se,onOpenChange:Ne,onClick:function(e){var t,n=e.target.getRootNode();if(!Ce.current.nativeElement.contains(null!==(t=n.activeElement)&&void 0!==t?t:document.activeElement)){var r=T.findIndex((function(e){return!e}));r>=0&&Ce.current.focus({index:r})}Ne(!0),null==we||we(e)},onClear:function(){st(null),Ne(!1,{force:!0})},invalid:mt,onInvalid:vt,onActiveInfo:It}))))}var pt=h.forwardRef(ft),mt=n(11780);function vt(e){var t=e.prefixCls,n=e.value,r=e.onRemove,i=e.removeIcon,o=void 0===i?"×":i,a=e.formatDate,l=e.disabled,s=e.maxTagCount,c=e.placeholder,u="".concat(t,"-selector"),d="".concat(t,"-selection"),f="".concat(d,"-overflow");function p(e,t){return h.createElement("span",{className:v()("".concat(d,"-item")),title:"string"==typeof e?e:null},h.createElement("span",{className:"".concat(d,"-item-content")},e),!l&&t&&h.createElement("span",{onMouseDown:function(e){e.preventDefault()},onClick:t,className:"".concat(d,"-item-remove")},o))}return h.createElement("div",{className:u},h.createElement(mt.Z,{prefixCls:f,data:n,renderItem:function(e){return p(a(e),(function(t){t&&t.stopPropagation(),r(e)}))},renderRest:function(e){return p("+ ".concat(e.length," ..."))},itemKey:function(e){return a(e)},maxCount:s}),!n.length&&h.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var gt=["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 yt(e,t){e.id;var n=e.open,i=e.prefix,l=e.clearIcon,s=e.suffixIcon,c=(e.activeHelp,e.allHelp,e.focused),u=(e.onFocus,e.onBlur,e.onKeyDown,e.locale),d=e.generateConfig,p=e.placeholder,m=e.className,y=e.style,x=e.onClick,b=e.onClear,w=e.internalPicker,C=e.value,k=e.onChange,A=e.onSubmit,S=(e.onInputChange,e.multiple),E=e.maxTagCount,N=(e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),L=e.invalid,M=(e.inputReadOnly,e.direction),D=(e.onOpenChange,e.onMouseDown),P=(e.required,e["aria-required"],e.autoFocus),Z=e.tabIndex,B=e.removeIcon,T=(0,Ge.Z)(e,gt),j="rtl"===M,I=h.useContext(g).prefixCls,F=h.useRef(),O=h.useRef();h.useImperativeHandle(t,(function(){return{nativeElement:F.current,focus:function(e){var t;null===(t=O.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=O.current)||void 0===e||e.blur()}}}));var R=Je(T),W=Xe((0,o.Z)((0,o.Z)({},e),{},{onChange:function(e){k([e])}}),(function(e){return{value:e.valueTexts[0]||"",active:c}})),z=(0,a.Z)(W,2),H=z[0],V=z[1],K=!(!l||!C.length||N),Y=S?h.createElement(h.Fragment,null,h.createElement(vt,{prefixCls:I,value:C,onRemove:function(e){var t=C.filter((function(t){return t&&!Q(d,u,t,e,w)}));k(t),n||A()},formatDate:V,maxTagCount:E,disabled:N,removeIcon:B,placeholder:p}),h.createElement("input",{className:"".concat(I,"-multiple-input"),value:C.map(V).join(","),ref:O,readOnly:!0,autoFocus:P,tabIndex:Z}),h.createElement($e,{type:"suffix",icon:s}),K&&h.createElement(et,{icon:l,onClear:b})):h.createElement(at,(0,r.Z)({ref:O},H(),{autoFocus:P,tabIndex:Z,suffixIcon:s,clearIcon:K&&h.createElement(et,{icon:l,onClear:b}),showActiveCls:!1}));return h.createElement("div",(0,r.Z)({},R,{className:v()(I,(0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)({},"".concat(I,"-multiple"),S),"".concat(I,"-focused"),c),"".concat(I,"-disabled"),N),"".concat(I,"-invalid"),L),"".concat(I,"-rtl"),j),m),style:y,ref:F,onClick:x,onMouseDown:function(e){var t;e.target!==(null===(t=O.current)||void 0===t?void 0:t.inputElement)&&e.preventDefault(),null==D||D(e)}}),i&&h.createElement("div",{className:"".concat(I,"-prefix")},i),Y)}var xt=h.forwardRef(yt);function bt(e,t){var n=te(e),d=(0,a.Z)(n,6),f=d[0],p=d[1],m=d[2],v=d[3],y=d[4],b=d[5],C=f,k=C.prefixCls,A=C.styles,S=C.classNames,M=C.order,D=C.defaultValue,P=C.value,Z=C.needConfirm,B=C.onChange,T=C.onKeyDown,j=C.disabled,I=C.disabledDate,F=C.minDate,O=C.maxDate,R=C.defaultOpen,W=C.open,z=C.onOpenChange,H=C.locale,V=C.generateConfig,K=C.picker,Y=C.showNow,U=C.showToday,G=C.showTime,X=C.mode,Q=C.onPanelChange,J=C.onCalendarChange,q=C.onOk,_=C.multiple,$=C.defaultPickerValue,ee=C.pickerValue,ne=C.onPickerValueChange,re=C.inputReadOnly,le=C.suffixIcon,ce=C.removeIcon,ue=C.onFocus,he=C.onBlur,fe=C.presets,pe=C.components,me=C.cellRender,xe=C.dateRender,be=C.monthCellRender,we=C.onClick,Ce=oe(t);function ke(e){return null===e?null:_?e:e[0]}var Ae=Se(V,H,p),Ee=ie(W,R,[j],z),Ne=(0,a.Z)(Ee,2),Le=Ne[0],Me=Ne[1],De=ve(V,H,v,!1,M,D,P,(function(e,t,n){if(J){var r=(0,o.Z)({},n);delete r.range,J(ke(e),ke(t),r)}}),(function(e){null==q||q(ke(e))})),Pe=(0,a.Z)(De,5),Ze=Pe[0],Be=Pe[1],Te=Pe[2],je=Pe[3],Ie=Pe[4],Fe=Te(),Oe=se([j]),Re=(0,a.Z)(Oe,4),We=Re[0],ze=Re[1],He=Re[2],Ve=Re[3],Ke=function(e){ze(!0),null==ue||ue(e,{})},Ye=function(e){ze(!1),null==he||he(e,{})},Ge=(0,l.C8)(K,{value:X}),Xe=(0,a.Z)(Ge,2),Qe=Xe[0],Je=Xe[1],qe="date"===Qe&&G?"datetime":Qe,_e=ye(K,Qe,Y,U),$e=B&&function(e,t){B(ke(e),ke(t))},et=ge((0,o.Z)((0,o.Z)({},f),{},{onChange:$e}),Ze,Be,Te,je,[],v,We,Le,b),tt=(0,a.Z)(et,2)[1],nt=L(Fe,b),rt=(0,a.Z)(nt,2),it=rt[0],ot=rt[1],at=h.useMemo((function(){return it.some((function(e){return e}))}),[it]),lt=de(V,H,Fe,[Qe],Le,Ve,p,!1,$,ee,w(null==G?void 0:G.defaultOpenValue),(function(e,t){if(ne){var n=(0,o.Z)((0,o.Z)({},t),{},{mode:t.mode[0]});delete n.range,ne(e[0],n)}}),F,O),st=(0,a.Z)(lt,2),ct=st[0],ut=st[1],dt=(0,l.zX)((function(e,t,n){if(Je(t),Q&&!1!==n){var r=e||Fe[Fe.length-1];Q(r,t)}})),ht=function(){tt(Te()),Me(!1,{force:!0})},ft=h.useState(null),pt=(0,a.Z)(ft,2),mt=pt[0],vt=pt[1],gt=h.useState(null),yt=(0,a.Z)(gt,2),bt=yt[0],wt=yt[1],Ct=h.useMemo((function(){var e=[bt].concat((0,i.Z)(Fe)).filter((function(e){return e}));return _?e:e.slice(0,1)}),[Fe,bt,_]),kt=h.useMemo((function(){return!_&&bt?[bt]:Fe.filter((function(e){return e}))}),[Fe,bt,_]);h.useEffect((function(){Le||wt(null)}),[Le]);var At=ae(fe),St=function(e){var t=_?Ae(Te(),e):[e];tt(t)&&!_&&Me(!1,{force:!0})},Et=N(me,xe,be),Nt=h.useMemo((function(){var e=(0,u.Z)(f,!1),t=(0,c.Z)(f,[].concat((0,i.Z)(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,o.Z)((0,o.Z)({},t),{},{multiple:f.multiple})}),[f]),Lt=h.createElement(Ue,(0,r.Z)({},Nt,{showNow:_e,showTime:G,disabledDate:I,onFocus:function(e){Me(!0),Ke(e)},onBlur:Ye,picker:K,mode:Qe,internalMode:qe,onPanelChange:dt,format:y,value:Fe,isInvalid:b,onChange:null,onSelect:function(e){if(He("panel"),!_||qe===K){var t=_?Ae(Te(),e):[e];je(t),Z||m||p!==qe||ht()}},pickerValue:ct,defaultOpenValue:null==G?void 0:G.defaultOpenValue,onPickerValueChange:ut,hoverValue:Ct,onHover:function(e){wt(e),vt("cell")},needConfirm:Z,onSubmit:ht,onOk:Ie,presets:At,onPresetHover:function(e){wt(e),vt("preset")},onPresetSubmit:St,onNow:function(e){St(e)},cellRender:Et})),Mt=h.useMemo((function(){return{prefixCls:k,locale:H,generateConfig:V,button:pe.button,input:pe.input}}),[k,H,V,pe.button,pe.input]);return(0,s.Z)((function(){Le&&void 0!==Ve&&dt(null,K,!1)}),[Le,Ve,K]),(0,s.Z)((function(){var e=He();Le||"input"!==e||(Me(!1),ht()),Le||!m||Z||"panel"!==e||ht()}),[Le]),h.createElement(g.Provider,{value:Mt},h.createElement(x,(0,r.Z)({},E(f),{popupElement:Lt,popupStyle:A.popup,popupClassName:S.popup,visible:Le,onClose:function(){Me(!1)}}),h.createElement(xt,(0,r.Z)({},f,{ref:Ce,suffixIcon:le,removeIcon:ce,activeHelp:!!bt,allHelp:!!bt&&"preset"===mt,focused:We,onFocus:function(e){He("input"),Me(!0,{inherit:!0}),Ke(e)},onBlur:function(e){Me(!1),Ye(e)},onKeyDown:function(e,t){"Tab"===e.key&&ht(),null==T||T(e,t)},onSubmit:ht,value:kt,maskFormat:y,onChange:function(e){je(e)},onInputChange:function(){He("input")},internalPicker:p,format:v,inputReadOnly:re,disabled:j,open:Le,onOpenChange:Me,onClick:function(e){j||Ce.current.nativeElement.contains(document.activeElement)||Ce.current.focus(),Me(!0),null==we||we(e)},onClear:function(){tt(null),Me(!1,{force:!0})},invalid:at,onInvalid:function(e){ot(e,0)}}))))}var wt=h.forwardRef(bt)},25930:function(e,t,n){"use strict";n.d(t,{Cd:function(){return A}});var r=n(54476),i=n(33885),o=n(75931),a=n(59301),l=n(92310),s=n.n(l),c={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},u=function(){var e=(0,a.useRef)([]),t=(0,a.useRef)(null);return(0,a.useEffect)((function(){var n=Date.now(),r=!1;e.current.forEach((function(e){if(e){r=!0;var i=e.style;i.transitionDuration=".3s, .3s, .3s, .06s",t.current&&n-t.current<100&&(i.transitionDuration="0s, 0s")}})),r&&(t.current=Date.now())})),e.current};var d=n(76190),h=n(42978),f=n(47273),p=0,m=(0,f.Z)();var v=function(e){var t=a.useState(),n=(0,h.Z)(t,2),r=n[0],i=n[1];return a.useEffect((function(){var e;i("rc_progress_".concat((m?(e=p,p+=1):e="TEST_OR_SSR",e)))}),[]),e||r},g=function(e){var t=e.bg,n=e.children;return a.createElement("div",{style:{width:"100%",height:"100%",background:t}},n)};function y(e,t){return Object.keys(e).map((function(n){var r=parseFloat(n),i="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(i)}))}var x=a.forwardRef((function(e,t){var n=e.prefixCls,r=e.color,i=e.gradientId,o=e.radius,l=e.style,s=e.ptg,c=e.strokeLinecap,u=e.strokeWidth,h=e.size,f=e.gapDegree,p=r&&"object"===(0,d.Z)(r),m=p?"#FFF":void 0,v=h/2,x=a.createElement("circle",{className:"".concat(n,"-circle-path"),r:o,cx:v,cy:v,stroke:m,strokeLinecap:c,strokeWidth:u,opacity:0===s?0:1,style:l,ref:t});if(!p)return x;var b="".concat(i,"-conic"),w=f?"".concat(180+f/2,"deg"):"0deg",C=y(r,(360-f)/360),k=y(r,1),A="conic-gradient(from ".concat(w,", ").concat(C.join(", "),")"),S="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(k.join(", "),")");return a.createElement(a.Fragment,null,a.createElement("mask",{id:b},x),a.createElement("foreignObject",{x:0,y:0,width:h,height:h,mask:"url(#".concat(b,")")},a.createElement(g,{bg:S},a.createElement(g,{bg:A}))))})),b=100,w=function(e,t,n,r,i,o,a,l,s,c){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,d=n/100*360*((360-o)/360),h=0===o?0:{bottom:0,top:180,left:90,right:-90}[a],f=(100-r)/100*t;"round"===s&&100!==r&&(f+=c/2)>=t&&(f=t-.01);var p=50;return{stroke:"string"==typeof l?l:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:f+u,transform:"rotate(".concat(i+d+h,"deg)"),transformOrigin:"".concat(p,"px ").concat(p,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},C=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function k(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}var A=function(e){var t,n,l,h=(0,i.Z)((0,i.Z)({},c),e),f=h.id,p=h.prefixCls,m=h.steps,g=h.strokeWidth,y=h.trailWidth,A=h.gapDegree,S=void 0===A?0:A,E=h.gapPosition,N=h.trailColor,L=h.strokeLinecap,M=h.style,D=h.className,P=h.strokeColor,Z=h.percent,B=(0,o.Z)(h,C),T=v(f),j="".concat(T,"-gradient"),I=50-g/2,F=2*Math.PI*I,O=S>0?90+S/2:-90,R=F*((360-S)/360),W="object"===(0,d.Z)(m)?m:{count:m,gap:2},z=W.count,H=W.gap,V=k(Z),K=k(P),Y=K.find((function(e){return e&&"object"===(0,d.Z)(e)})),U=Y&&"object"===(0,d.Z)(Y)?"butt":L,G=w(F,R,0,100,O,S,E,N,U,g),X=u();return a.createElement("svg",(0,r.Z)({className:s()("".concat(p,"-circle"),D),viewBox:"0 0 ".concat(b," ").concat(b),style:M,id:f,role:"presentation"},B),!z&&a.createElement("circle",{className:"".concat(p,"-circle-trail"),r:I,cx:50,cy:50,stroke:N,strokeLinecap:U,strokeWidth:y||g,style:G}),z?(t=Math.round(z*(V[0]/100)),n=100/z,l=0,new Array(z).fill(null).map((function(e,r){var i=r<=t-1?K[0]:N,o=i&&"object"===(0,d.Z)(i)?"url(#".concat(j,")"):void 0,s=w(F,R,l,n,O,S,E,i,"butt",g,H);return l+=100*(R-s.strokeDashoffset+H)/R,a.createElement("circle",{key:r,className:"".concat(p,"-circle-path"),r:I,cx:50,cy:50,stroke:o,strokeWidth:g,opacity:1,style:s,ref:function(e){X[r]=e}})}))):function(){var e=0;return V.map((function(t,n){var r=K[n]||K[K.length-1],i=w(F,R,e,t,O,S,E,r,U,g);return e+=t,a.createElement(x,{key:n,color:r,ptg:t,radius:I,prefixCls:p,gradientId:j,style:i,strokeLinecap:U,strokeWidth:g,gapDegree:S,ref:function(e){X[n]=e},size:b})})).reverse()}())}},738:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(54476),i=n(20068),o=n(42978),a=n(75931),l=n(92310),s=n.n(l),c=n(18929),u=n(10228),d=n(26112),h=n(59301);function f(e,t){var n=e.disabled,r=e.prefixCls,i=e.character,o=e.characterRender,a=e.index,l=e.count,c=e.value,d=e.allowHalf,f=e.focused,p=e.onHover,m=e.onClick,v=a+1,g=new Set([r]);0===c&&0===a&&f?g.add("".concat(r,"-focused")):d&&c+.5>=v&&c<v?(g.add("".concat(r,"-half")),g.add("".concat(r,"-active")),f&&g.add("".concat(r,"-focused"))):(v<=c?g.add("".concat(r,"-full")):g.add("".concat(r,"-zero")),v===c&&f&&g.add("".concat(r,"-focused")));var y="function"==typeof i?i(e):i,x=h.createElement("li",{className:s()(Array.from(g)),ref:t},h.createElement("div",{onClick:n?null:function(e){m(e,a)},onKeyDown:n?null:function(e){e.keyCode===u.Z.ENTER&&m(e,a)},onMouseMove:n?null:function(e){p(e,a)},role:"radio","aria-checked":c>a?"true":"false","aria-posinset":a+1,"aria-setsize":l,tabIndex:n?-1:0},h.createElement("div",{className:"".concat(r,"-first")},y),h.createElement("div",{className:"".concat(r,"-second")},y)));return o&&(x=o(x,e)),x}var p=h.forwardRef(f);var m=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function v(e,t){var n,l=e.prefixCls,f=void 0===l?"rc-rate":l,v=e.className,g=e.defaultValue,y=e.value,x=e.count,b=void 0===x?5:x,w=e.allowHalf,C=void 0!==w&&w,k=e.allowClear,A=void 0===k||k,S=e.keyboard,E=void 0===S||S,N=e.character,L=void 0===N?"★":N,M=e.characterRender,D=e.disabled,P=e.direction,Z=void 0===P?"ltr":P,B=e.tabIndex,T=void 0===B?0:B,j=e.autoFocus,I=e.onHoverChange,F=e.onChange,O=e.onFocus,R=e.onBlur,W=e.onKeyDown,z=e.onMouseLeave,H=(0,a.Z)(e,m),V=(n=h.useRef({}),[function(e){return n.current[e]},function(e){return function(t){n.current[e]=t}}]),K=(0,o.Z)(V,2),Y=K[0],U=K[1],G=h.useRef(null),X=function(){var e;D||(null===(e=G.current)||void 0===e||e.focus())};h.useImperativeHandle(t,(function(){return{focus:X,blur:function(){var e;D||(null===(e=G.current)||void 0===e||e.blur())}}}));var Q=(0,c.Z)(g||0,{value:y}),J=(0,o.Z)(Q,2),q=J[0],_=J[1],$=(0,c.Z)(null),ee=(0,o.Z)($,2),te=ee[0],ne=ee[1],re=function(e,t){var n,r,i,o,a="rtl"===Z,l=e+1;if(C){var s=Y(e),c=(r=function(e){var t,n,r=e.ownerDocument,i=r.body,o=r&&r.documentElement,a=e.getBoundingClientRect();return t=a.left,n=a.top,{left:t-=o.clientLeft||i.clientLeft||0,top:n-=o.clientTop||i.clientTop||0}}(n=s),i=n.ownerDocument,o=i.defaultView||i.parentWindow,r.left+=function(e){var t=e.pageXOffset,n="scrollLeft";if("number"!=typeof t){var r=e.document;"number"!=typeof(t=r.documentElement[n])&&(t=r.body[n])}return t}(o),r.left),u=s.clientWidth;(a&&t-c>u/2||!a&&t-c<u/2)&&(l-=.5)}return l},ie=function(e){_(e),null==F||F(e)},oe=h.useState(!1),ae=(0,o.Z)(oe,2),le=ae[0],se=ae[1],ce=h.useState(null),ue=(0,o.Z)(ce,2),de=ue[0],he=ue[1],fe=function(e,t){var n=re(t,e.pageX);n!==te&&(he(n),ne(null)),null==I||I(n)},pe=function(e){D||(he(null),ne(null),null==I||I(void 0)),e&&(null==z||z(e))},me=function(e,t){var n=re(t,e.pageX),r=!1;A&&(r=n===q),pe(),ie(r?0:n),ne(r?n:null)};h.useEffect((function(){j&&!D&&X()}),[]);var ve=new Array(b).fill(0).map((function(e,t){return h.createElement(p,{ref:U(t),index:t,count:b,disabled:D,prefixCls:"".concat(f,"-star"),allowHalf:C,value:null===de?q:de,onClick:me,onHover:fe,key:e||t,character:L,characterRender:M,focused:le})})),ge=s()(f,v,(0,i.Z)((0,i.Z)({},"".concat(f,"-disabled"),D),"".concat(f,"-rtl"),"rtl"===Z));return h.createElement("ul",(0,r.Z)({className:ge,onMouseLeave:pe,tabIndex:D?-1:T,onFocus:D?null:function(){se(!0),null==O||O()},onBlur:D?null:function(){se(!1),null==R||R()},onKeyDown:D?null:function(e){var t=e.keyCode,n="rtl"===Z,r=C?.5:1;E&&(t===u.Z.RIGHT&&q<b&&!n?(ie(q+r),e.preventDefault()):t===u.Z.LEFT&&q>0&&!n||t===u.Z.RIGHT&&q>0&&n?(ie(q-r),e.preventDefault()):t===u.Z.LEFT&&q<b&&n&&(ie(q+r),e.preventDefault())),null==W||W(e)},ref:G},(0,d.Z)(H,{aria:!0,data:!0,attr:!0})),ve)}var g=h.forwardRef(v)},6551:function(e,t,n){"use strict";n.d(t,{ZP:function(){return s}});var r=n(42978),i=n(59301),o=n(47273),a=0,l=(0,o.Z)();function s(e){var t=i.useState(),n=(0,r.Z)(t,2),o=n[0],s=n[1];return i.useEffect((function(){var e;s("rc_select_".concat((l?(e=a,a+=1):e="TEST_OR_SSR",e)))}),[]),e||o}},37463:function(e,t,n){"use strict";n.d(t,{Ac:function(){return ee},Xo:function(){return ne},Wx:function(){return ie},ZP:function(){return Se},lk:function(){return b}});var r=n(54476),i=n(94480),o=n(20068),a=n(33885),l=n(42978),s=n(75931),c=n(76190),u=n(18929),d=n(48736),h=n(59301),f=n(92310),p=n.n(f),m=n(34280),v=n(49658),g=n(8654),y=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,i=e.children,o=e.onMouseDown,a=e.onClick,l="function"==typeof n?n(r):n;return h.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==o||o(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==l?l:h.createElement("span",{className:p()(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},i))},x=h.createContext(null);function b(){return h.useContext(x)}function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=h.useRef(null),n=h.useRef(null);function r(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}return h.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},r]}var C=n(10228);var k=n(26112),A=n(11780);var S=function(e,t,n){var r=(0,a.Z)((0,a.Z)({},e),n?t:{});return Object.keys(t).forEach((function(n){var i=t[n];"function"==typeof i&&(r[n]=function(){for(var t,r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return i.apply(void 0,o),null===(t=e[n])||void 0===t?void 0:t.call.apply(t,[e].concat(o))})})),r},E=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],N=function(e,t){var n=e.prefixCls,r=e.id,i=e.inputElement,o=e.autoFocus,l=e.autoComplete,c=e.editable,u=e.activeDescendantId,f=e.value,m=e.open,v=e.attrs,y=(0,s.Z)(e,E),x=i||h.createElement("input",null),b=x,w=b.ref,C=b.props;return(0,d.Kp)(!("maxLength"in x.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),x=h.cloneElement(x,(0,a.Z)((0,a.Z)((0,a.Z)({type:"search"},S(y,C,!0)),{},{id:r,ref:(0,g.sQ)(t,w),autoComplete:l||"off",autoFocus:o,className:p()("".concat(n,"-selection-search-input"),null==C?void 0:C.className),role:"combobox","aria-expanded":m||!1,"aria-haspopup":"listbox","aria-owns":"".concat(r,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(r,"_list"),"aria-activedescendant":m?u:void 0},v),{},{value:c?f:"",readOnly:!c,unselectable:c?null:"on",style:(0,a.Z)((0,a.Z)({},C.style),{},{opacity:c?null:0})}))};var L=h.forwardRef(N);function M(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var D="undefined"!=typeof window&&window.document&&window.document.documentElement;function P(e){return["string","number"].includes((0,c.Z)(e))}function Z(e){var t=void 0;return e&&(P(e.title)?t=e.title.toString():P(e.label)&&(t=e.label.toString())),t}function B(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var T=function(e){e.preventDefault(),e.stopPropagation()},j=function(e){var t,n,r=e.id,i=e.prefixCls,a=e.values,s=e.open,c=e.searchValue,u=e.autoClearSearchValue,d=e.inputRef,f=e.placeholder,m=e.disabled,v=e.mode,g=e.showSearch,x=e.autoFocus,b=e.autoComplete,w=e.activeDescendantId,C=e.tabIndex,S=e.removeIcon,E=e.maxTagCount,N=e.maxTagTextLength,M=e.maxTagPlaceholder,P=void 0===M?function(e){return"+ ".concat(e.length," ...")}:M,j=e.tagRender,I=e.onToggleOpen,F=e.onRemove,O=e.onInputChange,R=e.onInputPaste,W=e.onInputKeyDown,z=e.onInputMouseDown,H=e.onInputCompositionStart,V=e.onInputCompositionEnd,K=e.onInputBlur,Y=h.useRef(null),U=(0,h.useState)(0),G=(0,l.Z)(U,2),X=G[0],Q=G[1],J=(0,h.useState)(!1),q=(0,l.Z)(J,2),_=q[0],$=q[1],ee="".concat(i,"-selection"),te=s||"multiple"===v&&!1===u||"tags"===v?c:"",ne="tags"===v||"multiple"===v&&!1===u||g&&(s||_);t=function(){Q(Y.current.scrollWidth)},n=[te],D?h.useLayoutEffect(t,n):h.useEffect(t,n);var re=function(e,t,n,r,i){return h.createElement("span",{title:Z(e),className:p()("".concat(ee,"-item"),(0,o.Z)({},"".concat(ee,"-item-disabled"),n))},h.createElement("span",{className:"".concat(ee,"-item-content")},t),r&&h.createElement(y,{className:"".concat(ee,"-item-remove"),onMouseDown:T,onClick:i,customizeIcon:S},"×"))},ie=function(e,t,n,r,i,o){return h.createElement("span",{onMouseDown:function(e){T(e),I(!s)}},j({label:t,value:e,disabled:n,closable:r,onClose:i,isMaxTag:!!o}))},oe=h.createElement("div",{className:"".concat(ee,"-search"),style:{width:X},onFocus:function(){$(!0)},onBlur:function(){$(!1)}},h.createElement(L,{ref:d,open:s,prefixCls:i,id:r,inputElement:null,disabled:m,autoFocus:x,autoComplete:b,editable:ne,activeDescendantId:w,value:te,onKeyDown:W,onMouseDown:z,onChange:O,onPaste:R,onCompositionStart:H,onCompositionEnd:V,onBlur:K,tabIndex:C,attrs:(0,k.Z)(e,!0)}),h.createElement("span",{ref:Y,className:"".concat(ee,"-search-mirror"),"aria-hidden":!0},te," ")),ae=h.createElement(A.Z,{prefixCls:"".concat(ee,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,i=!m&&!t,o=n;if("number"==typeof N&&("string"==typeof n||"number"==typeof n)){var a=String(o);a.length>N&&(o="".concat(a.slice(0,N),"..."))}var l=function(t){t&&t.stopPropagation(),F(e)};return"function"==typeof j?ie(r,o,t,i,l):re(e,o,t,i,l)},renderRest:function(e){if(!a.length)return null;var t="function"==typeof P?P(e):P;return"function"==typeof j?ie(void 0,t,!1,!1,void 0,!0):re({title:t},t,!1)},suffix:oe,itemKey:B,maxCount:E});return h.createElement("span",{className:"".concat(ee,"-wrap")},ae,!a.length&&!te&&h.createElement("span",{className:"".concat(ee,"-placeholder")},f))},I=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,i=e.inputRef,o=e.disabled,a=e.autoFocus,s=e.autoComplete,c=e.activeDescendantId,u=e.mode,d=e.open,f=e.values,p=e.placeholder,m=e.tabIndex,v=e.showSearch,g=e.searchValue,y=e.activeValue,x=e.maxLength,b=e.onInputKeyDown,w=e.onInputMouseDown,C=e.onInputChange,A=e.onInputPaste,S=e.onInputCompositionStart,E=e.onInputCompositionEnd,N=e.onInputBlur,M=e.title,D=h.useState(!1),P=(0,l.Z)(D,2),B=P[0],T=P[1],j="combobox"===u,I=j||v,F=f[0],O=g||"";j&&y&&!B&&(O=y),h.useEffect((function(){j&&T(!1)}),[j,y]);var R=!("combobox"!==u&&!d&&!v)&&!!O,W=void 0===M?Z(F):M,z=h.useMemo((function(){return F?null:h.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:R?{visibility:"hidden"}:void 0},p)}),[F,R,p,n]);return h.createElement("span",{className:"".concat(n,"-selection-wrap")},h.createElement("span",{className:"".concat(n,"-selection-search")},h.createElement(L,{ref:i,prefixCls:n,id:r,open:d,inputElement:t,disabled:o,autoFocus:a,autoComplete:s,editable:I,activeDescendantId:c,value:O,onKeyDown:b,onMouseDown:w,onChange:function(e){T(!0),C(e)},onPaste:A,onCompositionStart:S,onCompositionEnd:E,onBlur:N,tabIndex:m,attrs:(0,k.Z)(e,!0),maxLength:j?x:void 0})),!j&&F?h.createElement("span",{className:"".concat(n,"-selection-item"),title:W,style:R?{visibility:"hidden"}:void 0},F.label):null,z)},F=function(e,t){var n=(0,h.useRef)(null),i=(0,h.useRef)(!1),o=e.prefixCls,a=e.open,s=e.mode,c=e.showSearch,u=e.tokenWithEnter,d=e.disabled,f=e.prefix,p=e.autoClearSearchValue,m=e.onSearch,v=e.onSearchSubmit,g=e.onToggleOpen,y=e.onInputKeyDown,x=e.onInputBlur,b=e.domRef;h.useImperativeHandle(t,(function(){return{focus:function(e){n.current.focus(e)},blur:function(){n.current.blur()}}}));var k=w(0),A=(0,l.Z)(k,2),S=A[0],E=A[1],N=(0,h.useRef)(null),L=function(e){!1!==m(e,!0,i.current)&&g(!0)},M={inputRef:n,onInputKeyDown:function(e){var t,r=e.which,o=n.current instanceof HTMLTextAreaElement;(o||!a||r!==C.Z.UP&&r!==C.Z.DOWN||e.preventDefault(),y&&y(e),r!==C.Z.ENTER||"tags"!==s||i.current||a||null==v||v(e.target.value),o&&!a&&~[C.Z.UP,C.Z.DOWN,C.Z.LEFT,C.Z.RIGHT].indexOf(r))||(t=r)&&![C.Z.ESC,C.Z.SHIFT,C.Z.BACKSPACE,C.Z.TAB,C.Z.WIN_KEY,C.Z.ALT,C.Z.META,C.Z.WIN_KEY_RIGHT,C.Z.CTRL,C.Z.SEMICOLON,C.Z.EQUALS,C.Z.CAPS_LOCK,C.Z.CONTEXT_MENU,C.Z.F1,C.Z.F2,C.Z.F3,C.Z.F4,C.Z.F5,C.Z.F6,C.Z.F7,C.Z.F8,C.Z.F9,C.Z.F10,C.Z.F11,C.Z.F12].includes(t)&&g(!0)},onInputMouseDown:function(){E(!0)},onInputChange:function(e){var t=e.target.value;if(u&&N.current&&/[\r\n]/.test(N.current)){var n=N.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,N.current)}N.current=null,L(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");N.current=n||""},onInputCompositionStart:function(){i.current=!0},onInputCompositionEnd:function(e){i.current=!1,"combobox"!==s&&L(e.target.value)},onInputBlur:x},D="multiple"===s||"tags"===s?h.createElement(j,(0,r.Z)({},e,M)):h.createElement(I,(0,r.Z)({},e,M));return h.createElement("div",{ref:b,className:"".concat(o,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=S();e.target===n.current||t||"combobox"===s&&d||e.preventDefault(),("combobox"===s||c&&t)&&a||(a&&!1!==p&&m("",!0,!1),g())}},f&&h.createElement("div",{className:"".concat(o,"-prefix")},f),D)};var O=h.forwardRef(F),R=n(65030),W=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],z=function(e,t){var n=e.prefixCls,i=(e.disabled,e.visible),l=e.children,c=e.popupElement,u=e.animation,d=e.transitionName,f=e.dropdownStyle,m=e.dropdownClassName,v=e.direction,g=void 0===v?"ltr":v,y=e.placement,x=e.builtinPlacements,b=e.dropdownMatchSelectWidth,w=e.dropdownRender,C=e.dropdownAlign,k=e.getPopupContainer,A=e.empty,S=e.getTriggerDOMNode,E=e.onPopupVisibleChange,N=e.onPopupMouseEnter,L=(0,s.Z)(e,W),M="".concat(n,"-dropdown"),D=c;w&&(D=w(c));var P=h.useMemo((function(){return x||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(b)}),[x,b]),Z=u?"".concat(M,"-").concat(u):d,B="number"==typeof b,T=h.useMemo((function(){return B?null:!1===b?"minWidth":"width"}),[b,B]),j=f;B&&(j=(0,a.Z)((0,a.Z)({},j),{},{width:b}));var I=h.useRef(null);return h.useImperativeHandle(t,(function(){return{getPopupElement:function(){var e;return null===(e=I.current)||void 0===e?void 0:e.popupElement}}})),h.createElement(R.Z,(0,r.Z)({},L,{showAction:E?["click"]:[],hideAction:E?["click"]:[],popupPlacement:y||("rtl"===g?"bottomRight":"bottomLeft"),builtinPlacements:P,prefixCls:M,popupTransitionName:Z,popup:h.createElement("div",{onMouseEnter:N},D),ref:I,stretch:T,popupAlign:C,popupVisible:i,getPopupContainer:k,popupClassName:p()(m,(0,o.Z)({},"".concat(M,"-empty"),A)),popupStyle:j,getTriggerDOMNode:S,onPopupVisibleChange:E}),l)};var H=h.forwardRef(z),V=n(66712);function K(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function Y(e){return void 0!==e&&!Number.isNaN(e)}function U(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function G(e){var t=(0,a.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,d.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var X=h.createContext(null);function Q(e){var t=e.visible,n=e.values;if(!t)return null;return h.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,50).map((function(e){var t=e.label,n=e.value;return["number","string"].includes((0,c.Z)(t))?t:n})).join(", ")),n.length>50?", ...":null)}var J=["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"],q=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],_=function(e){return"tags"===e||"multiple"===e},$=h.forwardRef((function(e,t){var n,d=e.id,f=e.prefixCls,b=e.className,C=e.showSearch,k=e.tagRender,A=e.direction,S=e.omitDomProps,E=e.displayValues,N=e.onDisplayValuesChange,L=e.emptyOptions,M=e.notFoundContent,D=void 0===M?"Not Found":M,P=e.onClear,Z=e.mode,B=e.disabled,T=e.loading,j=e.getInputElement,I=e.getRawInputElement,F=e.open,R=e.defaultOpen,W=e.onDropdownVisibleChange,z=e.activeValue,K=e.onActiveValueChange,U=e.activeDescendantId,G=e.searchValue,$=e.autoClearSearchValue,ee=e.onSearch,te=e.onSearchSplit,ne=e.tokenSeparators,re=e.allowClear,ie=e.prefix,oe=e.suffixIcon,ae=e.clearIcon,le=e.OptionList,se=e.animation,ce=e.transitionName,ue=e.dropdownStyle,de=e.dropdownClassName,he=e.dropdownMatchSelectWidth,fe=e.dropdownRender,pe=e.dropdownAlign,me=e.placement,ve=e.builtinPlacements,ge=e.getPopupContainer,ye=e.showAction,xe=void 0===ye?[]:ye,be=e.onFocus,we=e.onBlur,Ce=e.onKeyUp,ke=e.onKeyDown,Ae=e.onMouseDown,Se=(0,s.Z)(e,J),Ee=_(Z),Ne=(void 0!==C?C:Ee)||"combobox"===Z,Le=(0,a.Z)({},Se);q.forEach((function(e){delete Le[e]})),null==S||S.forEach((function(e){delete Le[e]}));var Me=h.useState(!1),De=(0,l.Z)(Me,2),Pe=De[0],Ze=De[1];h.useEffect((function(){Ze((0,v.Z)())}),[]);var Be=h.useRef(null),Te=h.useRef(null),je=h.useRef(null),Ie=h.useRef(null),Fe=h.useRef(null),Oe=h.useRef(!1),Re=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=h.useState(!1),n=(0,l.Z)(t,2),r=n[0],i=n[1],o=h.useRef(null),a=function(){window.clearTimeout(o.current)};return h.useEffect((function(){return a}),[]),[r,function(t,n){a(),o.current=window.setTimeout((function(){i(t),n&&n()}),e)},a]}(),We=(0,l.Z)(Re,3),ze=We[0],He=We[1],Ve=We[2];h.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=Ie.current)||void 0===e?void 0:e.focus,blur:null===(t=Ie.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=Fe.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:Be.current||Te.current}}));var Ke=h.useMemo((function(){var e;if("combobox"!==Z)return G;var t=null===(e=E[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[G,Z,E]),Ye="combobox"===Z&&"function"==typeof j&&j()||null,Ue="function"==typeof I&&I(),Ge=(0,g.x1)(Te,null==Ue||null===(n=Ue.props)||void 0===n?void 0:n.ref),Xe=h.useState(!1),Qe=(0,l.Z)(Xe,2),Je=Qe[0],qe=Qe[1];(0,m.Z)((function(){qe(!0)}),[]);var _e=(0,u.Z)(!1,{defaultValue:R,value:F}),$e=(0,l.Z)(_e,2),et=$e[0],tt=$e[1],nt=!!Je&&et,rt=!D&&L;(B||rt&&nt&&"combobox"===Z)&&(nt=!1);var it=!rt&&nt,ot=h.useCallback((function(e){var t=void 0!==e?e:!nt;B||(tt(t),nt!==t&&(null==W||W(t)))}),[B,nt,tt,W]),at=h.useMemo((function(){return(ne||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[ne]),lt=h.useContext(X)||{},st=lt.maxCount,ct=lt.rawValues,ut=function(e,t,n){if(!(Ee&&Y(st)&&(null==ct?void 0:ct.size)>=st)){var r=!0,o=e;null==K||K(null);var a=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function e(t,n){var o=(0,V.Z)(n),a=o[0],l=o.slice(1);if(!a)return[t];var s=t.split(a);return r=r||s.length>1,s.reduce((function(t,n){return[].concat((0,i.Z)(t),(0,i.Z)(e(n,l)))}),[]).filter(Boolean)}(e,t);return r?void 0!==n?o.slice(0,n):o:null}(e,ne,Y(st)?st-ct.size:void 0),l=n?null:a;return"combobox"!==Z&&l&&(o="",null==te||te(l),ot(!1),r=!1),ee&&Ke!==o&&ee(o,{source:t?"typing":"effect"}),r}};h.useEffect((function(){nt||Ee||"combobox"===Z||ut("",!1,!1)}),[nt]),h.useEffect((function(){et&&B&&tt(!1),B&&!Oe.current&&He(!1)}),[B]);var dt=w(),ht=(0,l.Z)(dt,2),ft=ht[0],pt=ht[1],mt=h.useRef(!1),vt=h.useRef(!1),gt=[];h.useEffect((function(){return function(){gt.forEach((function(e){return clearTimeout(e)})),gt.splice(0,gt.length)}}),[]);var yt,xt=h.useState({}),bt=(0,l.Z)(xt,2)[1];Ue&&(yt=function(e){ot(e)}),function(e,t,n,r){var i=h.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},h.useEffect((function(){function t(t){var n;if(null===(n=i.current)||void 0===n||!n.customizedTrigger){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),i.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(r)&&e!==r}))&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[Be.current,null===(e=je.current)||void 0===e?void 0:e.getPopupElement()]}),it,ot,!!Ue);var wt,Ct=h.useMemo((function(){return(0,a.Z)((0,a.Z)({},e),{},{notFoundContent:D,open:nt,triggerOpen:it,id:d,showSearch:Ne,multiple:Ee,toggleOpen:ot})}),[e,D,it,nt,d,Ne,Ee,ot]),kt=!!oe||T;kt&&(wt=h.createElement(y,{className:p()("".concat(f,"-arrow"),(0,o.Z)({},"".concat(f,"-arrow-loading"),T)),customizeIcon:oe,customizeIconProps:{loading:T,searchValue:Ke,open:nt,focused:ze,showSearch:Ne}}));var At,St=function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,s=h.useMemo((function(){return"object"===(0,c.Z)(r)?r.clearIcon:i||void 0}),[r,i]),u=h.useMemo((function(){return!(o||!r||!n.length&&!a||"combobox"===l&&""===a)}),[r,o,n.length,a,l]);return{allowClear:u,clearIcon:h.createElement(y,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:s},"×")}}(f,(function(){var e;null==P||P(),null===(e=Ie.current)||void 0===e||e.focus(),N([],{type:"clear",values:E}),ut("",!1,!1)}),E,re,ae,B,Ke,Z),Et=St.allowClear,Nt=St.clearIcon,Lt=h.createElement(le,{ref:Fe}),Mt=p()(f,b,(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},"".concat(f,"-focused"),ze),"".concat(f,"-multiple"),Ee),"".concat(f,"-single"),!Ee),"".concat(f,"-allow-clear"),re),"".concat(f,"-show-arrow"),kt),"".concat(f,"-disabled"),B),"".concat(f,"-loading"),T),"".concat(f,"-open"),nt),"".concat(f,"-customize-input"),Ye),"".concat(f,"-show-search"),Ne)),Dt=h.createElement(H,{ref:je,disabled:B,prefixCls:f,visible:it,popupElement:Lt,animation:se,transitionName:ce,dropdownStyle:ue,dropdownClassName:de,direction:A,dropdownMatchSelectWidth:he,dropdownRender:fe,dropdownAlign:pe,placement:me,builtinPlacements:ve,getPopupContainer:ge,empty:L,getTriggerDOMNode:function(e){return Te.current||e},onPopupVisibleChange:yt,onPopupMouseEnter:function(){bt({})}},Ue?h.cloneElement(Ue,{ref:Ge}):h.createElement(O,(0,r.Z)({},e,{domRef:Te,prefixCls:f,inputElement:Ye,ref:Ie,id:d,prefix:ie,showSearch:Ne,autoClearSearchValue:$,mode:Z,activeDescendantId:U,tagRender:k,values:E,open:nt,onToggleOpen:ot,activeValue:z,searchValue:Ke,onSearch:ut,onSearchSubmit:function(e){e&&e.trim()&&ee(e,{source:"submit"})},onRemove:function(e){var t=E.filter((function(t){return t!==e}));N(t,{type:"remove",values:[e]})},tokenWithEnter:at,onInputBlur:function(){mt.current=!1}})));return At=Ue?Dt:h.createElement("div",(0,r.Z)({className:Mt},Le,{ref:Be,onMouseDown:function(e){var t,n=e.target,r=null===(t=je.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var i=setTimeout((function(){var e,t=gt.indexOf(i);-1!==t&&gt.splice(t,1),Ve(),Pe||r.contains(document.activeElement)||null===(e=Ie.current)||void 0===e||e.focus()}));gt.push(i)}for(var o=arguments.length,a=new Array(o>1?o-1:0),l=1;l<o;l++)a[l-1]=arguments[l];null==Ae||Ae.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=ft(),r=e.key,o="Enter"===r;if(o&&("combobox"!==Z&&e.preventDefault(),nt||ot(!0)),pt(!!Ke),"Backspace"===r&&!n&&Ee&&!Ke&&E.length){for(var a=(0,i.Z)(E),l=null,s=a.length-1;s>=0;s-=1){var c=a[s];if(!c.disabled){a.splice(s,1),l=c;break}}l&&N(a,{type:"remove",values:[l]})}for(var u=arguments.length,d=new Array(u>1?u-1:0),h=1;h<u;h++)d[h-1]=arguments[h];!nt||o&&mt.current||(o&&(mt.current=!0),null===(t=Fe.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(d))),null==ke||ke.apply(void 0,[e].concat(d))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i;nt&&(null===(i=Fe.current)||void 0===i||i.onKeyUp.apply(i,[e].concat(n))),"Enter"===e.key&&(mt.current=!1),null==Ce||Ce.apply(void 0,[e].concat(n))},onFocus:function(){He(!0),B||(be&&!vt.current&&be.apply(void 0,arguments),xe.includes("focus")&&ot(!0)),vt.current=!0},onBlur:function(){Oe.current=!0,He(!1,(function(){vt.current=!1,Oe.current=!1,ot(!1)})),B||(Ke&&("tags"===Z?ee(Ke,{source:"submit"}):"multiple"===Z&&ee("",{source:"blur"})),we&&we.apply(void 0,arguments))}}),h.createElement(Q,{visible:ze&&!nt,values:E}),Dt,wt,Et&&Nt),h.createElement(x.Provider,{value:Ct},At)}));var ee=$,te=function(){return null};te.isSelectOptGroup=!0;var ne=te,re=function(){return null};re.isSelectOption=!0;var ie=re,oe=n(80547),ae=n(2738),le=n(48911);var se=["disabled","title","children","style","className"];function ce(e){return"string"==typeof e||"number"==typeof e}var ue=function(e,t){var n=b(),a=n.prefixCls,c=n.id,u=n.open,d=n.multiple,f=n.mode,m=n.searchValue,v=n.toggleOpen,g=n.notFoundContent,x=n.onPopupScroll,w=h.useContext(X),A=w.maxCount,S=w.flattenOptions,E=w.onActiveValue,N=w.defaultActiveFirstOption,L=w.onSelect,M=w.menuItemSelectedIcon,D=w.rawValues,P=w.fieldNames,Z=w.virtual,B=w.direction,T=w.listHeight,j=w.listItemHeight,I=w.optionRender,F="".concat(a,"-item"),O=(0,oe.Z)((function(){return S}),[u,S],(function(e,t){return t[0]&&e[1]!==t[1]})),R=h.useRef(null),W=h.useMemo((function(){return d&&Y(A)&&(null==D?void 0:D.size)>=A}),[d,A,null==D?void 0:D.size]),z=function(e){e.preventDefault()},H=function(e){var t;null===(t=R.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},V=h.useCallback((function(e){return"combobox"!==f&&D.has(e)}),[f,(0,i.Z)(D).toString(),D.size]),K=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=O.length,r=0;r<n;r+=1){var i=(e+r*t+n)%n,o=O[i]||{},a=o.group,l=o.data;if(!a&&(null==l||!l.disabled)&&(V(l.value)||!W))return i}return-1},U=h.useState((function(){return K(0)})),G=(0,l.Z)(U,2),Q=G[0],J=G[1],q=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];J(e);var n={source:t?"keyboard":"mouse"},r=O[e];r?E(r.value,e,n):E(null,-1,n)};(0,h.useEffect)((function(){q(!1!==N?K(0):-1)}),[O.length,m]);var _=h.useCallback((function(e){return"combobox"===f?String(e).toLowerCase()===m.toLowerCase():D.has(e)}),[f,m,(0,i.Z)(D).toString(),D.size]);(0,h.useEffect)((function(){var e,t=setTimeout((function(){if(!d&&u&&1===D.size){var e=Array.from(D)[0],t=O.findIndex((function(t){var n=t.data;return m?String(n.value).startsWith(m):n.value===e}));-1!==t&&(q(t),H(t))}}));u&&(null===(e=R.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[u,m]);var $=function(e){void 0!==e&&L(e,{selected:!D.has(e)}),d||v(!1)};if(h.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case C.Z.N:case C.Z.P:case C.Z.UP:case C.Z.DOWN:var r=0;if(t===C.Z.UP?r=-1:t===C.Z.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===C.Z.N?r=1:t===C.Z.P&&(r=-1)),0!==r){var i=K(Q+r,r);H(i),q(i,!0)}break;case C.Z.TAB:case C.Z.ENTER:var o,a=O[Q];!a||null!=a&&null!==(o=a.data)&&void 0!==o&&o.disabled||W?$(void 0):$(a.value),u&&e.preventDefault();break;case C.Z.ESC:v(!1),u&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){H(e)}}})),0===O.length)return h.createElement("div",{role:"listbox",id:"".concat(c,"_list"),className:"".concat(F,"-empty"),onMouseDown:z},g);var ee=Object.keys(P).map((function(e){return P[e]})),te=function(e){return e.label};function ne(e,t){return{role:e.group?"presentation":"option",id:"".concat(c,"_list_").concat(t)}}var re=function(e){var t=O[e];if(!t)return null;var n=t.data||{},i=n.value,o=t.group,a=(0,k.Z)(n,!0),l=te(t);return t?h.createElement("div",(0,r.Z)({"aria-label":"string"!=typeof l||o?null:l},a,{key:e},ne(t,e),{"aria-selected":_(i)}),i):null},ie={role:"listbox",id:"".concat(c,"_list")};return h.createElement(h.Fragment,null,Z&&h.createElement("div",(0,r.Z)({},ie,{style:{height:0,width:0,overflow:"hidden"}}),re(Q-1),re(Q),re(Q+1)),h.createElement(le.Z,{itemKey:"key",ref:R,data:O,height:T,itemHeight:j,fullHeight:!1,onMouseDown:z,onScroll:x,virtual:Z,direction:B,innerProps:Z?null:ie},(function(e,t){var n=e.group,i=e.groupOption,a=e.data,l=e.label,c=e.value,u=a.key;if(n){var d,f=null!==(d=a.title)&&void 0!==d?d:ce(l)?l.toString():void 0;return h.createElement("div",{className:p()(F,"".concat(F,"-group"),a.className),title:f},void 0!==l?l:u)}var m=a.disabled,v=a.title,g=(a.children,a.style),x=a.className,b=(0,s.Z)(a,se),w=(0,ae.Z)(b,ee),C=V(c),A=m||!C&&W,S="".concat(F,"-option"),E=p()(F,S,x,(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},"".concat(S,"-grouped"),i),"".concat(S,"-active"),Q===t&&!A),"".concat(S,"-disabled"),A),"".concat(S,"-selected"),C)),N=te(e),L=!M||"function"==typeof M||C,D="number"==typeof N?N:N||c,P=ce(D)?D.toString():void 0;return void 0!==v&&(P=v),h.createElement("div",(0,r.Z)({},(0,k.Z)(w),Z?{}:ne(e,t),{"aria-selected":_(c),className:E,title:P,onMouseMove:function(){Q===t||A||q(t)},onClick:function(){A||$(c)},style:g}),h.createElement("div",{className:"".concat(S,"-content")},"function"==typeof I?I(e,{index:t}):D),h.isValidElement(M)||C,L&&h.createElement(y,{className:"".concat(F,"-option-state"),customizeIcon:M,customizeIconProps:{value:c,disabled:A,isSelected:C}},C?"✓":null))})))};var de=h.forwardRef(ue);function he(e,t){return M(e).join("").toUpperCase().includes(t)}var fe=n(6551),pe=n(11592),me=["children","value"],ve=["children"];function ge(e){var t=e,n=t.key,r=t.props,i=r.children,o=r.value,l=(0,s.Z)(r,me);return(0,a.Z)({key:n,value:void 0!==o?o:n,children:i},l)}function ye(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,pe.Z)(e).map((function(e,n){if(!h.isValidElement(e)||!e.type)return null;var r=e,i=r.type.isSelectOptGroup,o=r.key,l=r.props,c=l.children,u=(0,s.Z)(l,ve);return t||!i?ge(e):(0,a.Z)((0,a.Z)({key:"__RC_SELECT_GRP__".concat(null===o?n:o,"__"),label:o},u),{},{options:ye(c)})})).filter((function(e){return e}))}var xe=function(e,t,n,r,i){return h.useMemo((function(){var o=e;!e&&(o=ye(t));var a=new Map,l=new Map,s=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c<t.length;c+=1){var u=t[c];!u[n.options]||o?(a.set(u[n.value],u),s(l,u,n.label),s(l,u,r),s(l,u,i)):e(u[n.options],!0)}}(o),{options:o,valueOptions:a,labelOptions:l}}),[e,t,n,r,i])};function be(e){var t=h.useRef();t.current=e;var n=h.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var we=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Ce=["inputValue"];var ke=h.forwardRef((function(e,t){var n=e.id,d=e.mode,f=e.prefixCls,p=void 0===f?"rc-select":f,m=e.backfill,v=e.fieldNames,g=e.inputValue,y=e.searchValue,x=e.onSearch,b=e.autoClearSearchValue,w=void 0===b||b,C=e.onSelect,k=e.onDeselect,A=e.dropdownMatchSelectWidth,S=void 0===A||A,E=e.filterOption,N=e.filterSort,L=e.optionFilterProp,D=e.optionLabelProp,P=e.options,Z=e.optionRender,B=e.children,T=e.defaultActiveFirstOption,j=e.menuItemSelectedIcon,I=e.virtual,F=e.direction,O=e.listHeight,R=void 0===O?200:O,W=e.listItemHeight,z=void 0===W?20:W,H=e.labelRender,V=e.value,Y=e.defaultValue,Q=e.labelInValue,J=e.onChange,q=e.maxCount,$=(0,s.Z)(e,we),te=(0,fe.ZP)(n),ne=_(d),re=!(P||!B),ie=h.useMemo((function(){return(void 0!==E||"combobox"!==d)&&E}),[E,d]),oe=h.useMemo((function(){return U(v,re)}),[JSON.stringify(v),re]),ae=(0,u.Z)("",{value:void 0!==y?y:g,postState:function(e){return e||""}}),le=(0,l.Z)(ae,2),se=le[0],ce=le[1],ue=xe(P,B,oe,L,D),pe=ue.valueOptions,me=ue.labelOptions,ve=ue.options,ge=h.useCallback((function(e){return M(e).map((function(e){var t,n,r,i,o,a;(function(e){return!e||"object"!==(0,c.Z)(e)})(e)?t=e:(r=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:r);var l,s=pe.get(t);s&&(void 0===n&&(n=null==s?void 0:s[D||oe.label]),void 0===r&&(r=null!==(l=null==s?void 0:s.key)&&void 0!==l?l:t),i=null==s?void 0:s.disabled,o=null==s?void 0:s.title);return{label:n,value:t,key:r,disabled:i,title:o}}))}),[oe,D,pe]),ye=(0,u.Z)(Y,{value:V}),ke=(0,l.Z)(ye,2),Ae=ke[0],Se=ke[1],Ee=h.useMemo((function(){var e,t=ge(ne&&null===Ae?[]:Ae);return"combobox"===d&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[Ae,ge,d,ne]),Ne=function(e,t){var n=h.useRef({values:new Map,options:new Map});return[h.useMemo((function(){var r=n.current,i=r.values,o=r.options,l=e.map((function(e){var t;return void 0===e.label?(0,a.Z)((0,a.Z)({},e),{},{label:null===(t=i.get(e.value))||void 0===t?void 0:t.label}):e})),s=new Map,c=new Map;return l.forEach((function(e){s.set(e.value,e),c.set(e.value,t.get(e.value)||o.get(e.value))})),n.current.values=s,n.current.options=c,l}),[e,t]),h.useCallback((function(e){return t.get(e)||n.current.options.get(e)}),[t])]}(Ee,pe),Le=(0,l.Z)(Ne,2),Me=Le[0],De=Le[1],Pe=h.useMemo((function(){if(!d&&1===Me.length){var e=Me[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return Me.map((function(e){var t;return(0,a.Z)((0,a.Z)({},e),{},{label:null!==(t="function"==typeof H?H(e):e.label)&&void 0!==t?t:e.value})}))}),[d,Me,H]),Ze=h.useMemo((function(){return new Set(Me.map((function(e){return e.value})))}),[Me]);h.useEffect((function(){if("combobox"===d){var e,t=null===(e=Me[0])||void 0===e?void 0:e.value;ce(function(e){return null!=e}(t)?String(t):"")}}),[Me]);var Be=be((function(e,t){var n=null!=t?t:e;return(0,o.Z)((0,o.Z)({},oe.value,e),oe.label,n)})),Te=function(e,t,n,r,i){return h.useMemo((function(){if(!n||!1===r)return e;var l=t.options,s=t.label,c=t.value,u=[],d="function"==typeof r,h=n.toUpperCase(),f=d?r:function(e,t){return i?he(t[i],h):t[l]?he(t["children"!==s?s:"label"],h):he(t[c],h)},p=d?function(e){return G(e)}:function(e){return e};return e.forEach((function(e){if(e[l])if(f(n,p(e)))u.push(e);else{var t=e[l].filter((function(e){return f(n,p(e))}));t.length&&u.push((0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},l,t)))}else f(n,p(e))&&u.push(e)})),u}),[e,r,i,n,t])}(h.useMemo((function(){if("tags"!==d)return ve;var e=(0,i.Z)(ve);return(0,i.Z)(Me).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return pe.has(e)})(n)||e.push(Be(n,t.label))})),e}),[Be,ve,pe,Me,d]),oe,se,ie,L),je=h.useMemo((function(){return"tags"!==d||!se||Te.some((function(e){return e[L||"value"]===se}))||Te.some((function(e){return e[oe.value]===se}))?Te:[Be(se)].concat((0,i.Z)(Te))}),[Be,L,d,Te,se,oe]),Ie=function e(t){return(0,i.Z)(t).sort((function(e,t){return N(e,t,{searchValue:se})})).map((function(t){return Array.isArray(t.options)?(0,a.Z)((0,a.Z)({},t),{},{options:t.options.length>0?e(t.options):t.options}):t}))},Fe=h.useMemo((function(){return N?Ie(je):je}),[je,N,se]),Oe=h.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,i=[],o=U(n,!1),a=o.label,l=o.value,s=o.options,c=o.groupLabel;function u(e,t){Array.isArray(e)&&e.forEach((function(e){if(t||!(s in e)){var n=e[l];i.push({key:K(e,i.length),groupOption:t,data:e,label:e[a],value:n})}else{var o=e[c];void 0===o&&r&&(o=e.label),i.push({key:K(e,i.length),group:!0,data:e,label:o}),u(e[s],!0)}}))}return u(e,!1),i}(Fe,{fieldNames:oe,childrenAsData:re})}),[Fe,oe,re]),Re=function(e){var t=ge(e);if(Se(t),J&&(t.length!==Me.length||t.some((function(e,t){var n;return(null===(n=Me[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=Q?t:t.map((function(e){return e.value})),r=t.map((function(e){return G(De(e.value))}));J(ne?n:n[0],ne?r:r[0])}},We=h.useState(null),ze=(0,l.Z)(We,2),He=ze[0],Ve=ze[1],Ke=h.useState(0),Ye=(0,l.Z)(Ke,2),Ue=Ye[0],Ge=Ye[1],Xe=void 0!==T?T:"combobox"!==d,Qe=h.useCallback((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.source,i=void 0===r?"keyboard":r;Ge(t),m&&"combobox"===d&&null!==e&&"keyboard"===i&&Ve(String(e))}),[m,d]),Je=function(e,t,n){var r=function(){var t,n=De(e);return[Q?{label:null==n?void 0:n[oe.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,G(n)]};if(t&&C){var i=r(),o=(0,l.Z)(i,2),a=o[0],s=o[1];C(a,s)}else if(!t&&k&&"clear"!==n){var c=r(),u=(0,l.Z)(c,2),d=u[0],h=u[1];k(d,h)}},qe=be((function(e,t){var n,r=!ne||t.selected;n=r?ne?[].concat((0,i.Z)(Me),[e]):[e]:Me.filter((function(t){return t.value!==e})),Re(n),Je(e,r),"combobox"===d?Ve(""):_&&!w||(ce(""),Ve(""))})),_e=h.useMemo((function(){var e=!1!==I&&!1!==S;return(0,a.Z)((0,a.Z)({},ue),{},{flattenOptions:Oe,onActiveValue:Qe,defaultActiveFirstOption:Xe,onSelect:qe,menuItemSelectedIcon:j,rawValues:Ze,fieldNames:oe,virtual:e,direction:F,listHeight:R,listItemHeight:z,childrenAsData:re,maxCount:q,optionRender:Z})}),[q,ue,Oe,Qe,Xe,qe,j,Ze,oe,I,S,F,R,z,re,Z]);return h.createElement(X.Provider,{value:_e},h.createElement(ee,(0,r.Z)({},$,{id:te,prefixCls:p,ref:t,omitDomProps:Ce,mode:d,displayValues:Pe,onDisplayValuesChange:function(e,t){Re(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach((function(e){Je(e.value,!1,n)}))},direction:F,searchValue:se,onSearch:function(e,t){if(ce(e),Ve(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===d&&Re(e),null==x||x(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat((0,i.Z)(Ze),[n])));Re(r),Je(n,!0),ce("")}}},autoClearSearchValue:w,onSearchSplit:function(e){var t=e;"tags"!==d&&(t=e.map((function(e){var t=me.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat((0,i.Z)(Ze),(0,i.Z)(t))));Re(n),n.forEach((function(e){Je(e,!0)}))},dropdownMatchSelectWidth:S,OptionList:de,emptyOptions:!Oe.length,activeValue:He,activeDescendantId:"".concat(te,"_list_").concat(Ue)})))}));var Ae=ke;Ae.Option=ie,Ae.OptGroup=ne;var Se=Ae},63158:function(e,t,n){"use strict";var r=n(54476),i=n(20068),o=n(42978),a=n(75931),l=n(59301),s=n(92310),c=n.n(s),u=n(18929),d=n(10228),h=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],f=l.forwardRef((function(e,t){var n,s=e.prefixCls,f=void 0===s?"rc-switch":s,p=e.className,m=e.checked,v=e.defaultChecked,g=e.disabled,y=e.loadingIcon,x=e.checkedChildren,b=e.unCheckedChildren,w=e.onClick,C=e.onChange,k=e.onKeyDown,A=(0,a.Z)(e,h),S=(0,u.Z)(!1,{value:m,defaultValue:v}),E=(0,o.Z)(S,2),N=E[0],L=E[1];function M(e,t){var n=N;return g||(L(n=e),null==C||C(n,t)),n}var D=c()(f,p,(n={},(0,i.Z)(n,"".concat(f,"-checked"),N),(0,i.Z)(n,"".concat(f,"-disabled"),g),n));return l.createElement("button",(0,r.Z)({},A,{type:"button",role:"switch","aria-checked":N,disabled:g,className:D,ref:t,onKeyDown:function(e){e.which===d.Z.LEFT?M(!1,e):e.which===d.Z.RIGHT&&M(!0,e),null==k||k(e)},onClick:function(e){var t=M(!N,e);null==w||w(t,e)}}),y,l.createElement("span",{className:"".concat(f,"-inner")},l.createElement("span",{className:"".concat(f,"-inner-checked")},x),l.createElement("span",{className:"".concat(f,"-inner-unchecked")},b)))}));f.displayName="Switch",t.Z=f},86351:function(e,t,n){"use strict";n.d(t,{R:function(){return i},w:function(){return r}});var r={},i="rc-table-internal-hook"},97347:function(e,t,n){"use strict";n.d(t,{L:function(){return v},Z:function(){return x}});var r=n(42978),i=n(20068),o=n(94480),a=n(76190),l=n(33885),s=n(75931),c=n(11592),u=(n(48736),n(59301)),d=n(86351),h=n(54451);function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"number"==typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}var p=["children"],m=["fixed"];function v(e){return(0,c.Z)(e).filter((function(e){return u.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,r=n.children,i=(0,s.Z)(n,p),o=(0,l.Z)({key:t},i);return r&&(o.children=v(r)),o}))}function g(e){return e.filter((function(e){return e&&"object"===(0,a.Z)(e)&&!e.hidden})).map((function(e){var t=e.children;return t&&t.length>0?(0,l.Z)((0,l.Z)({},e),{},{children:g(t)}):e}))}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter((function(e){return e&&"object"===(0,a.Z)(e)})).reduce((function(e,n,r){var i=n.fixed,a=!0===i?"left":i,s="".concat(t,"-").concat(r),c=n.children;return c&&c.length>0?[].concat((0,o.Z)(e),(0,o.Z)(y(c,s).map((function(e){return(0,l.Z)({fixed:a},e)})))):[].concat((0,o.Z)(e),[(0,l.Z)((0,l.Z)({key:s},n),{},{fixed:a})])}),[])}var x=function(e,t){var n=e.prefixCls,o=e.columns,a=e.children,c=e.expandable,p=e.expandedKeys,x=e.columnTitle,b=e.getRowKey,w=e.onTriggerExpand,C=e.expandIcon,k=e.rowExpandable,A=e.expandIconColumnIndex,S=e.direction,E=e.expandRowByClick,N=e.columnWidth,L=e.fixed,M=e.scrollWidth,D=e.clientWidth,P=u.useMemo((function(){return g((o||v(a)||[]).slice())}),[o,a]),Z=u.useMemo((function(){if(c){var e=P.slice();if(!e.includes(d.w)){var t=A||0;t>=0&&(t||"left"===L||!L)&&e.splice(t,0,d.w),"right"===L&&e.splice(P.length,0,d.w)}0;var r=e.indexOf(d.w);e=e.filter((function(e,t){return e!==d.w||t===r}));var o,a=P[r];o=L||(a?a.fixed:null);var l=(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({},h.v,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",x),"fixed",o),"className","".concat(n,"-row-expand-icon-cell")),"width",N),"render",(function(e,t,r){var i=b(t,r),o=p.has(i),a=!k||k(t),l=C({prefixCls:n,expanded:o,expandable:a,record:t,onExpand:w});return E?u.createElement("span",{onClick:function(e){return e.stopPropagation()}},l):l}));return e.map((function(e){return e===d.w?l:e}))}return P.filter((function(e){return e!==d.w}))}),[c,P,b,p,C,S]),B=u.useMemo((function(){var e=Z;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e}),[t,Z,S]),T=u.useMemo((function(){return"rtl"===S?function(e){return e.map((function(e){var t=e.fixed,n=(0,s.Z)(e,m),r=t;return"left"===t?r="right":"right"===t&&(r="left"),(0,l.Z)({fixed:r},n)}))}(y(B)):y(B)}),[B,S,M]),j=u.useMemo((function(){for(var e=-1,t=T.length-1;t>=0;t-=1){var n=T[t].fixed;if("left"===n||!0===n){e=t;break}}if(e>=0)for(var r=0;r<=e;r+=1){var i=T[r].fixed;if("left"!==i&&!0!==i)return!0}var o=T.findIndex((function(e){return"right"===e.fixed}));if(o>=0)for(var a=o;a<T.length;a+=1){if("right"!==T[a].fixed)return!0}return!1}),[T]),I=function(e,t,n){return u.useMemo((function(){if(t&&t>0){var r=0,i=0;e.forEach((function(e){var n=f(t,e.width);n?r+=n:i+=1}));var o=Math.max(t,n),a=Math.max(o-r,i),s=i,c=a/i,u=0,d=e.map((function(e){var n=(0,l.Z)({},e),r=f(t,n.width);if(r)n.width=r;else{var i=Math.floor(c);n.width=1===s?a:i,a-=i,s-=1}return u+=n.width,n}));if(u<o){var h=o/u;a=o,d.forEach((function(e,t){var n=Math.floor(e.width*h);e.width=t===d.length-1?a:n,a-=n}))}return[d,Math.max(u,o)]}return[e,t]}),[e,t,n])}(T,M,D),F=(0,r.Z)(I,2),O=F[0],R=F[1];return[B,O,R,j]}},4030:function(e,t,n){"use strict";n.d(t,{w2:function(){return r.w},vP:function(){return oe.v},RQ:function(){return r.R},ER:function(){return H},Q$:function(){return Ze},TN:function(){return Ye}});var r=n(86351),i=n(42978),o=n(6089),a=n(34280),l=n(13697),s=n(59301),c=n(4676);function u(e){var t=s.createContext(void 0);return{Context:t,Provider:function(e){var n=e.value,r=e.children,o=s.useRef(n);o.current=n;var l=s.useState((function(){return{getValue:function(){return o.current},listeners:new Set}})),u=(0,i.Z)(l,1)[0];return(0,a.Z)((function(){(0,c.unstable_batchedUpdates)((function(){u.listeners.forEach((function(e){e(n)}))}))}),[n]),s.createElement(t.Provider,{value:u},r)},defaultValue:e}}function d(e,t){var n=(0,o.Z)("function"==typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var n={};return t.forEach((function(t){n[t]=e[t]})),n}),r=s.useContext(null==e?void 0:e.Context),c=r||{},u=c.listeners,d=c.getValue,h=s.useRef();h.current=n(r?d():null==e?void 0:e.defaultValue);var f=s.useState({}),p=(0,i.Z)(f,2)[1];return(0,a.Z)((function(){if(r)return u.add(e),function(){u.delete(e)};function e(e){var t=n(e);(0,l.Z)(h.current,t,!0)||p({})}}),[r]),h.current}var h=n(54476),f=n(8654);function p(){var e=s.createContext(null);function t(){return s.useContext(e)}return{makeImmutable:function(n,r){var i=(0,f.Yr)(n),o=function(o,a){var l=i?{ref:a}:{},c=s.useRef(0),u=s.useRef(o);return null!==t()?s.createElement(n,(0,h.Z)({},o,l)):(r&&!r(u.current,o)||(c.current+=1),u.current=o,s.createElement(e.Provider,{value:c.current},s.createElement(n,(0,h.Z)({},o,l))))};return i?s.forwardRef(o):o},responseImmutable:function(e,n){var r=(0,f.Yr)(e),i=function(n,i){var o=r?{ref:i}:{};return t(),s.createElement(e,(0,h.Z)({},n,o))};return r?s.memo(s.forwardRef(i),n):s.memo(i,n)},useImmutableMark:t}}var m=p(),v=(m.makeImmutable,m.responseImmutable,m.useImmutableMark,p()),g=v.makeImmutable,y=v.responseImmutable,x=v.useImmutableMark,b=u();var w=n(76190),C=n(33885),k=n(20068),A=n(92310),S=n.n(A),E=n(80547),N=n(97938),L=(n(48736),s.createContext({renderWithProps:!1}));function M(e){var t=[],n={};return e.forEach((function(e){for(var r,i=e||{},o=i.key,a=i.dataIndex,l=o||(r=a,null==r?[]:Array.isArray(r)?r:[r]).join("-")||"RC_TABLE_KEY";n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)})),t}function D(e){return null!=e}function P(e,t,n,r,o,a){var c=s.useContext(L),u=x();return(0,E.Z)((function(){if(D(r))return[r];var i,a=null==t||""===t?[]:Array.isArray(t)?t:[t],l=(0,N.Z)(e,a),u=l,d=void 0;if(o){var h=o(l,e,n);!(i=h)||"object"!==(0,w.Z)(i)||Array.isArray(i)||s.isValidElement(i)?u=h:(u=h.children,d=h.props,c.renderWithProps=!0)}return[u,d]}),[u,e,r,t,o,n],(function(e,t){if(a){var n=(0,i.Z)(e,2)[1],r=(0,i.Z)(t,2)[1];return a(r,n)}return!!c.renderWithProps||!(0,l.Z)(e,t,!0)}))}var Z=n(70425);function B(e){var t,n,r,o,a,l,c,u;var f=e.component,p=e.children,m=e.ellipsis,v=e.scope,g=e.prefixCls,y=e.className,x=e.align,A=e.record,E=e.render,N=e.dataIndex,L=e.renderIndex,M=e.shouldCellUpdate,D=e.index,B=e.rowType,T=e.colSpan,j=e.rowSpan,I=e.fixLeft,F=e.fixRight,O=e.firstFixLeft,R=e.lastFixLeft,W=e.firstFixRight,z=e.lastFixRight,H=e.appendNode,V=e.additionalProps,K=void 0===V?{}:V,Y=e.isSticky,U="".concat(g,"-cell"),G=d(b,["supportSticky","allColumnsFixedLeft","rowHoverable"]),X=G.supportSticky,Q=G.allColumnsFixedLeft,J=G.rowHoverable,q=P(A,N,L,p,E,M),_=(0,i.Z)(q,2),$=_[0],ee=_[1],te={},ne="number"==typeof I&&X,re="number"==typeof F&&X;ne&&(te.position="sticky",te.left=I),re&&(te.position="sticky",te.right=F);var ie=null!==(t=null!==(n=null!==(r=null==ee?void 0:ee.colSpan)&&void 0!==r?r:K.colSpan)&&void 0!==n?n:T)&&void 0!==t?t:1,oe=null!==(o=null!==(a=null!==(l=null==ee?void 0:ee.rowSpan)&&void 0!==l?l:K.rowSpan)&&void 0!==a?a:j)&&void 0!==o?o:1,ae=function(e,t){return d(b,(function(n){var r,i,o,a;return[(r=e,i=t||1,o=n.hoverStartRow,a=n.hoverEndRow,r<=a&&r+i-1>=o),n.onHover]}))}(D,oe),le=(0,i.Z)(ae,2),se=le[0],ce=le[1],ue=(0,Z.zX)((function(e){var t;A&&ce(D,D+oe-1),null==K||null===(t=K.onMouseEnter)||void 0===t||t.call(K,e)})),de=(0,Z.zX)((function(e){var t;A&&ce(-1,-1),null==K||null===(t=K.onMouseLeave)||void 0===t||t.call(K,e)}));if(0===ie||0===oe)return null;var he=null!==(c=K.title)&&void 0!==c?c:function(e){var t,n=e.ellipsis,r=e.rowType,i=e.children,o=!0===n?{showTitle:!0}:n;return o&&(o.showTitle||"header"===r)&&("string"==typeof i||"number"==typeof i?t=i.toString():s.isValidElement(i)&&"string"==typeof i.props.children&&(t=i.props.children)),t}({rowType:B,ellipsis:m,children:$}),fe=S()(U,y,(u={},(0,k.Z)((0,k.Z)((0,k.Z)((0,k.Z)((0,k.Z)((0,k.Z)((0,k.Z)((0,k.Z)((0,k.Z)((0,k.Z)(u,"".concat(U,"-fix-left"),ne&&X),"".concat(U,"-fix-left-first"),O&&X),"".concat(U,"-fix-left-last"),R&&X),"".concat(U,"-fix-left-all"),R&&Q&&X),"".concat(U,"-fix-right"),re&&X),"".concat(U,"-fix-right-first"),W&&X),"".concat(U,"-fix-right-last"),z&&X),"".concat(U,"-ellipsis"),m),"".concat(U,"-with-append"),H),"".concat(U,"-fix-sticky"),(ne||re)&&Y&&X),(0,k.Z)(u,"".concat(U,"-row-hover"),!ee&&se)),K.className,null==ee?void 0:ee.className),pe={};x&&(pe.textAlign=x);var me=(0,C.Z)((0,C.Z)((0,C.Z)((0,C.Z)({},null==ee?void 0:ee.style),te),pe),K.style),ve=$;return"object"!==(0,w.Z)(ve)||Array.isArray(ve)||s.isValidElement(ve)||(ve=null),m&&(R||W)&&(ve=s.createElement("span",{className:"".concat(U,"-content")},ve)),s.createElement(f,(0,h.Z)({},ee,K,{className:fe,style:me,title:he,scope:v,onMouseEnter:J?ue:void 0,onMouseLeave:J?de:void 0,colSpan:1!==ie?ie:null,rowSpan:1!==oe?oe:null}),H,ve)}var T=s.memo(B);function j(e,t,n,r,i){var o,a,l=n[e]||{},s=n[t]||{};"left"===l.fixed?o=r.left["rtl"===i?t:e]:"right"===s.fixed&&(a=r.right["rtl"===i?e:t]);var c=!1,u=!1,d=!1,h=!1,f=n[t+1],p=n[e-1],m=f&&!f.fixed||p&&!p.fixed||n.every((function(e){return"left"===e.fixed}));if("rtl"===i){if(void 0!==o)h=!(p&&"left"===p.fixed)&&m;else if(void 0!==a){d=!(f&&"right"===f.fixed)&&m}}else if(void 0!==o){c=!(f&&"left"===f.fixed)&&m}else if(void 0!==a){u=!(p&&"right"===p.fixed)&&m}return{fixLeft:o,fixRight:a,lastFixLeft:c,firstFixRight:u,lastFixRight:d,firstFixLeft:h,isSticky:r.isSticky}}var I=s.createContext({});var F=n(75931),O=["children"];function R(e){return e.children}R.Row=function(e){var t=e.children,n=(0,F.Z)(e,O);return s.createElement("tr",n,t)},R.Cell=function(e){var t=e.className,n=e.index,r=e.children,i=e.colSpan,o=void 0===i?1:i,a=e.rowSpan,l=e.align,c=d(b,["prefixCls","direction"]),u=c.prefixCls,f=c.direction,p=s.useContext(I),m=p.scrollColumnIndex,v=p.stickyOffsets,g=n+o-1+1===m?o+1:o,y=j(n,n+g-1,p.flattenColumns,v,f);return s.createElement(T,(0,h.Z)({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:l,colSpan:g,rowSpan:a,render:function(){return r}},y))};var W=R;var z=y((function(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,i=d(b,"prefixCls"),o=r.length-1,a=r[o],l=s.useMemo((function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:null!=a&&a.scrollbar?o:null}}),[a,r,o,n]);return s.createElement(I.Provider,{value:l},s.createElement("tfoot",{className:"".concat(i,"-summary")},t))})),H=W,V=n(29301),K=n(24514),Y=n(75152),U=n(26112);function G(e,t,n,r,i,o,a){e.push({record:t,indent:n,index:a});var l=o(t),s=null==i?void 0:i.has(l);if(t&&Array.isArray(t[r])&&s)for(var c=0;c<t[r].length;c+=1)G(e,t[r][c],n+1,r,i,o,c)}function X(e,t,n,r){return s.useMemo((function(){if(null!=n&&n.size){for(var i=[],o=0;o<(null==e?void 0:e.length);o+=1){G(i,e[o],0,t,n,r,o)}return i}return null==e?void 0:e.map((function(e,t){return{record:e,indent:0,index:t}}))}),[e,t,n,r])}function Q(e,t,n,r){var i,o=d(b,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),a=o.flattenColumns,l=o.expandableType,s=o.expandedKeys,c=o.childrenColumnName,u=o.onTriggerExpand,h=o.rowExpandable,f=o.onRow,p=o.expandRowByClick,m=o.rowClassName,v="nest"===l,g="row"===l&&(!h||h(e)),y=g||v,x=s&&s.has(t),w=c&&e&&e[c],k=(0,Z.zX)(u),A=null==f?void 0:f(e,n),E=null==A?void 0:A.onClick;"string"==typeof m?i=m:"function"==typeof m&&(i=m(e,n,r));var N=M(a);return(0,C.Z)((0,C.Z)({},o),{},{columnsKey:N,nestExpandable:v,expanded:x,hasNestChildren:w,record:e,onTriggerExpand:k,rowSupportExpand:g,expandable:y,rowProps:(0,C.Z)((0,C.Z)({},A),{},{className:S()(i,null==A?void 0:A.className),onClick:function(t){p&&y&&u(e,t);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];null==E||E.apply(void 0,[t].concat(r))}})})}var J=function(e){var t=e.prefixCls,n=e.children,r=e.component,i=e.cellComponent,o=e.className,a=e.expanded,l=e.colSpan,c=e.isEmpty,u=d(b,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),h=u.scrollbarSize,f=u.fixHeader,p=u.fixColumn,m=u.componentWidth,v=u.horizonScroll,g=n;return(c?v&&m:p)&&(g=s.createElement("div",{style:{width:m-(f&&!c?h:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},g)),s.createElement(r,{className:o,style:{display:a?null:"none"}},s.createElement(T,{component:i,prefixCls:t,colSpan:l},g))};function q(e){var t=e.prefixCls,n=e.record,r=e.onExpand,i=e.expanded,o=e.expandable,a="".concat(t,"-row-expand-icon");if(!o)return s.createElement("span",{className:S()(a,"".concat(t,"-row-spaced"))});return s.createElement("span",{className:S()(a,(0,k.Z)((0,k.Z)({},"".concat(t,"-row-expanded"),i),"".concat(t,"-row-collapsed"),!i)),onClick:function(e){r(n,e),e.stopPropagation()}})}function _(e,t,n,r){return"string"==typeof e?e:"function"==typeof e?e(t,n,r):""}function $(e,t,n,r,i){var o,a,l=e.record,c=e.prefixCls,u=e.columnsKey,d=e.fixedInfoList,h=e.expandIconColumnIndex,f=e.nestExpandable,p=e.indentSize,m=e.expandIcon,v=e.expanded,g=e.hasNestChildren,y=e.onTriggerExpand,x=u[n],b=d[n];return n===(h||0)&&f&&(o=s.createElement(s.Fragment,null,s.createElement("span",{style:{paddingLeft:"".concat(p*r,"px")},className:"".concat(c,"-row-indent indent-level-").concat(r)}),m({prefixCls:c,expanded:v,expandable:g,record:l,onExpand:y}))),t.onCell&&(a=t.onCell(l,i)),{key:x,fixedInfo:b,appendCellNode:o,additionalCellProps:a||{}}}var ee=y((function(e){var t=e.className,n=e.style,r=e.record,i=e.index,o=e.renderIndex,a=e.rowKey,l=e.indent,c=void 0===l?0:l,u=e.rowComponent,d=e.cellComponent,f=e.scopeCellComponent,p=Q(r,a,i,c),m=p.prefixCls,v=p.flattenColumns,g=p.expandedRowClassName,y=p.expandedRowRender,x=p.rowProps,b=p.expanded,w=p.rowSupportExpand,A=s.useRef(!1);A.current||(A.current=b);var E,N=_(g,r,i,c),L=s.createElement(u,(0,h.Z)({},x,{"data-row-key":a,className:S()(t,"".concat(m,"-row"),"".concat(m,"-row-level-").concat(c),null==x?void 0:x.className,(0,k.Z)({},N,c>=1)),style:(0,C.Z)((0,C.Z)({},n),null==x?void 0:x.style)}),v.map((function(e,t){var n=e.render,a=e.dataIndex,l=e.className,u=$(p,e,t,c,i),v=u.key,g=u.fixedInfo,y=u.appendCellNode,x=u.additionalCellProps;return s.createElement(T,(0,h.Z)({className:l,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?f:d,prefixCls:m,key:v,record:r,index:i,renderIndex:o,dataIndex:a,render:n,shouldCellUpdate:e.shouldCellUpdate},g,{appendNode:y,additionalProps:x}))})));if(w&&(A.current||b)){var M=y(r,i,c+1,b);E=s.createElement(J,{expanded:b,className:S()("".concat(m,"-expanded-row"),"".concat(m,"-expanded-row-level-").concat(c+1),N),prefixCls:m,component:u,cellComponent:d,colSpan:v.length,isEmpty:!1},M)}return s.createElement(s.Fragment,null,L,E)}));function te(e){var t=e.columnKey,n=e.onColumnResize,r=s.useRef();return(0,a.Z)((function(){r.current&&n(t,r.current.offsetWidth)}),[]),s.createElement(V.Z,{data:t},s.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},s.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}var ne=n(29194);function re(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,i=s.useRef(null);return s.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0},ref:i},s.createElement(V.Z.Collection,{onBatchResize:function(e){(0,ne.Z)(i.current)&&e.forEach((function(e){var t=e.data,n=e.size;r(t,n.offsetWidth)}))}},n.map((function(e){return s.createElement(te,{key:e,columnKey:e,onColumnResize:r})}))))}var ie=y((function(e){var t,n=e.data,r=e.measureColumnWidth,i=d(b,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),o=i.prefixCls,a=i.getComponent,l=i.onColumnResize,c=i.flattenColumns,u=i.getRowKey,h=i.expandedKeys,f=i.childrenColumnName,p=i.emptyNode,m=X(n,f,h,u),v=s.useRef({renderWithProps:!1}),g=a(["body","wrapper"],"tbody"),y=a(["body","row"],"tr"),x=a(["body","cell"],"td"),w=a(["body","cell"],"th");t=n.length?m.map((function(e,t){var n=e.record,r=e.indent,i=e.index,o=u(n,t);return s.createElement(ee,{key:o,rowKey:o,record:n,index:t,renderIndex:i,rowComponent:y,cellComponent:x,scopeCellComponent:w,indent:r})})):s.createElement(J,{expanded:!0,className:"".concat(o,"-placeholder"),prefixCls:o,component:y,cellComponent:x,colSpan:c.length,isEmpty:!0},p);var C=M(c);return s.createElement(L.Provider,{value:v.current},s.createElement(g,{className:"".concat(o,"-tbody")},r&&s.createElement(re,{prefixCls:o,columnsKey:C,onColumnResize:l}),t))})),oe=n(54451),ae=["columnType"];var le=function(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,i=d(b,["tableLayout"]).tableLayout,o=[],a=!1,l=(r||n.length)-1;l>=0;l-=1){var c=t[l],u=n&&n[l],f=void 0,p=void 0;if(u&&(f=u[oe.v],"auto"===i&&(p=u.minWidth)),c||p||f||a){var m=f||{},v=(m.columnType,(0,F.Z)(m,ae));o.unshift(s.createElement("col",(0,h.Z)({key:l,style:{width:c,minWidth:p}},v))),a=!0}}return s.createElement("colgroup",null,o)},se=n(94480),ce=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var ue=s.forwardRef((function(e,t){var n=e.className,r=e.noData,i=e.columns,o=e.flattenColumns,a=e.colWidths,l=e.columCount,c=e.stickyOffsets,u=e.direction,h=e.fixHeader,p=e.stickyTopOffset,m=e.stickyBottomOffset,v=e.stickyClassName,g=e.onScroll,y=e.maxContentScroll,x=e.children,w=(0,F.Z)(e,ce),A=d(b,["prefixCls","scrollbarSize","isSticky","getComponent"]),E=A.prefixCls,N=A.scrollbarSize,L=A.isSticky,M=(0,A.getComponent)(["header","table"],"table"),D=L&&!h?0:N,P=s.useRef(null),Z=s.useCallback((function(e){(0,f.mH)(t,e),(0,f.mH)(P,e)}),[]);s.useEffect((function(){var e;function t(e){var t=e,n=t.currentTarget,r=t.deltaX;r&&(g({currentTarget:n,scrollLeft:n.scrollLeft+r}),e.preventDefault())}return null===(e=P.current)||void 0===e||e.addEventListener("wheel",t,{passive:!1}),function(){var e;null===(e=P.current)||void 0===e||e.removeEventListener("wheel",t)}}),[]);var B=s.useMemo((function(){return o.every((function(e){return e.width}))}),[o]),T=o[o.length-1],j={fixed:T?T.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(E,"-cell-scrollbar")}}},I=(0,s.useMemo)((function(){return D?[].concat((0,se.Z)(i),[j]):i}),[D,i]),O=(0,s.useMemo)((function(){return D?[].concat((0,se.Z)(o),[j]):o}),[D,o]),R=(0,s.useMemo)((function(){var e=c.right,t=c.left;return(0,C.Z)((0,C.Z)({},c),{},{left:"rtl"===u?[].concat((0,se.Z)(t.map((function(e){return e+D}))),[0]):t,right:"rtl"===u?e:[].concat((0,se.Z)(e.map((function(e){return e+D}))),[0]),isSticky:L})}),[D,c,L]),W=function(e,t){return(0,s.useMemo)((function(){for(var n=[],r=0;r<t;r+=1){var i=e[r];if(void 0===i)return null;n[r]=i}return n}),[e.join("_"),t])}(a,l);return s.createElement("div",{style:(0,C.Z)({overflow:"hidden"},L?{top:p,bottom:m}:{}),ref:Z,className:S()(n,(0,k.Z)({},v,!!v))},s.createElement(M,{style:{tableLayout:"fixed",visibility:r||W?null:"hidden"}},(!r||!y||B)&&s.createElement(le,{colWidths:W?[].concat((0,se.Z)(W),[D]):[],columCount:l+1,columns:O}),x((0,C.Z)((0,C.Z)({},w),{},{stickyOffsets:R,columns:I,flattenColumns:O}))))}));var de=s.memo(ue);var he=function(e){var t,n=e.cells,r=e.stickyOffsets,i=e.flattenColumns,o=e.rowComponent,a=e.cellComponent,l=e.onHeaderRow,c=e.index,u=d(b,["prefixCls","direction"]),f=u.prefixCls,p=u.direction;l&&(t=l(n.map((function(e){return e.column})),c));var m=M(n.map((function(e){return e.column})));return s.createElement(o,t,n.map((function(e,t){var n,o=e.column,l=j(e.colStart,e.colEnd,i,r,p);return o&&o.onHeaderCell&&(n=e.column.onHeaderCell(o)),s.createElement(T,(0,h.Z)({},e,{scope:o.title?e.colSpan>1?"colgroup":"col":null,ellipsis:o.ellipsis,align:o.align,component:a,prefixCls:f,key:m[t]},l,{additionalProps:n,rowType:"header"}))})))};var fe=y((function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,i=e.onHeaderRow,o=d(b,["prefixCls","getComponent"]),a=o.prefixCls,l=o.getComponent,c=s.useMemo((function(){return function(e){var t=[];!function e(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[i]=t[i]||[];var o=r;return n.filter(Boolean).map((function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:o},a=1,l=n.children;return l&&l.length>0&&(a=e(l,o,i+1).reduce((function(e,t){return e+t}),0),r.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=a,r.colEnd=r.colStart+a-1,t[i].push(r),o+=a,a}))}(e,0);for(var n=t.length,r=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},i=0;i<n;i+=1)r(i);return t}(n)}),[n]),u=l(["header","wrapper"],"thead"),h=l(["header","row"],"tr"),f=l(["header","cell"],"th");return s.createElement(u,{className:"".concat(a,"-thead")},c.map((function(e,n){return s.createElement(he,{key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:h,cellComponent:f,onHeaderRow:i,index:n})})))})),pe=n(97347);var me=(0,n(47273).Z)()?window:null;var ve=function(e,t,n){return(0,s.useMemo)((function(){var r=t.length,i=function(n,r,i){for(var o=[],a=0,l=n;l!==r;l+=i)o.push(a),t[l].fixed&&(a+=e[l]||0);return o},o=i(0,r,1),a=i(r-1,-1,-1).reverse();return"rtl"===n?{left:a,right:o}:{left:o,right:a}}),[e,t,n])};var ge=function(e){var t=e.className,n=e.children;return s.createElement("div",{className:t},n)},ye=n(8224),xe=n(16089),be=n(76846);function we(e){var t=(0,be.bn)(e).getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var Ce=function(e,t){var n,r,o,a,l,c,u,h,f=e.scrollBodyRef,p=e.onScroll,m=e.offsetScroll,v=e.container,g=e.direction,y=d(b,"prefixCls"),x=(null===(n=f.current)||void 0===n?void 0:n.scrollWidth)||0,w=(null===(r=f.current)||void 0===r?void 0:r.clientWidth)||0,A=x&&w*(w/x),E=s.useRef(),N=(o={scrollLeft:0,isHiddenScrollBar:!0},a=(0,s.useRef)(o),l=(0,s.useState)({}),c=(0,i.Z)(l,2)[1],u=(0,s.useRef)(null),h=(0,s.useRef)([]),(0,s.useEffect)((function(){return function(){u.current=null}}),[]),[a.current,function(e){h.current.push(e);var t=Promise.resolve();u.current=t,t.then((function(){if(u.current===t){var e=h.current,n=a.current;h.current=[],e.forEach((function(e){a.current=e(a.current)})),u.current=null,n!==a.current&&c({})}}))}]),L=(0,i.Z)(N,2),M=L[0],D=L[1],P=s.useRef({delta:0,x:0}),Z=s.useState(!1),B=(0,i.Z)(Z,2),T=B[0],j=B[1],I=s.useRef(null);s.useEffect((function(){return function(){xe.Z.cancel(I.current)}}),[]);var F=function(){j(!1)},O=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(T&&0!==n){var r=P.current.x+e.pageX-P.current.x-P.current.delta,i="rtl"===g;r=Math.max(i?A-w:0,Math.min(i?0:w-A,r)),(!i||Math.abs(r)+Math.abs(A)<w)&&(p({scrollLeft:r/w*(x+2)}),P.current.x=e.pageX)}else T&&j(!1)},R=function(){xe.Z.cancel(I.current),I.current=(0,xe.Z)((function(){if(f.current){var e=we(f.current).top,t=e+f.current.offsetHeight,n=v===window?document.documentElement.scrollTop+window.innerHeight:we(v).top+v.clientHeight;t-(0,Y.Z)()<=n||e>=n-m?D((function(e){return(0,C.Z)((0,C.Z)({},e),{},{isHiddenScrollBar:!0})})):D((function(e){return(0,C.Z)((0,C.Z)({},e),{},{isHiddenScrollBar:!1})}))}}))},W=function(e){D((function(t){return(0,C.Z)((0,C.Z)({},t),{},{scrollLeft:e/x*w||0})}))};return s.useImperativeHandle(t,(function(){return{setScrollLeft:W,checkScrollBarVisible:R}})),s.useEffect((function(){var e=(0,ye.Z)(document.body,"mouseup",F,!1),t=(0,ye.Z)(document.body,"mousemove",O,!1);return R(),function(){e.remove(),t.remove()}}),[A,T]),s.useEffect((function(){if(f.current){for(var e=[],t=(0,be.bn)(f.current);t;)e.push(t),t=t.parentElement;return e.forEach((function(e){return e.addEventListener("scroll",R,!1)})),window.addEventListener("resize",R,!1),window.addEventListener("scroll",R,!1),v.addEventListener("scroll",R,!1),function(){e.forEach((function(e){return e.removeEventListener("scroll",R)})),window.removeEventListener("resize",R),window.removeEventListener("scroll",R),v.removeEventListener("scroll",R)}}}),[v]),s.useEffect((function(){M.isHiddenScrollBar||D((function(e){var t=f.current;return t?(0,C.Z)((0,C.Z)({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e}))}),[M.isHiddenScrollBar]),x<=w||!A||M.isHiddenScrollBar?null:s.createElement("div",{style:{height:(0,Y.Z)(),width:w,bottom:m},className:"".concat(y,"-sticky-scroll")},s.createElement("div",{onMouseDown:function(e){e.persist(),P.current.delta=e.pageX-M.scrollLeft,P.current.x=0,j(!0),e.preventDefault()},ref:E,className:S()("".concat(y,"-sticky-scroll-bar"),(0,k.Z)({},"".concat(y,"-sticky-scroll-bar-active"),T)),style:{width:"".concat(A,"px"),transform:"translate3d(".concat(M.scrollLeft,"px, 0, 0)")}}))},ke=s.forwardRef(Ce);var Ae=function(e){return null};var Se=function(e){return null},Ee="rc-table",Ne=[],Le={};function Me(){return"No Data"}function De(e,t){var n=(0,C.Z)({rowKey:"key",prefixCls:Ee,emptyText:Me},e),c=n.prefixCls,u=n.className,d=n.rowClassName,f=n.style,p=n.data,m=n.rowKey,v=n.scroll,g=n.tableLayout,y=n.direction,x=n.title,A=n.footer,L=n.summary,P=n.caption,Z=n.id,B=n.showHeader,T=n.components,I=n.emptyText,F=n.onRow,O=n.onHeaderRow,R=n.onScroll,H=n.internalHooks,G=n.transformColumns,X=n.internalRefs,Q=n.tailor,J=n.getContainerWidth,_=n.sticky,$=n.rowHoverable,ee=void 0===$||$,te=p||Ne,ne=!!te.length,re=H===r.R;var ae=s.useCallback((function(e,t){return(0,N.Z)(T,e)||t}),[T]),ce=s.useMemo((function(){return"function"==typeof m?m:function(e){return e&&e[m]}}),[m]),ue=ae(["body"]),he=function(){var e=s.useState(-1),t=(0,i.Z)(e,2),n=t[0],r=t[1],o=s.useState(-1),a=(0,i.Z)(o,2),l=a[0],c=a[1];return[n,l,s.useCallback((function(e,t){r(e),c(t)}),[])]}(),ye=(0,i.Z)(he,3),xe=ye[0],we=ye[1],Ce=ye[2],Ae=function(e,t,n){var o=(0,oe.g)(e),a=o.expandIcon,l=o.expandedRowKeys,c=o.defaultExpandedRowKeys,u=o.defaultExpandAllRows,d=o.expandedRowRender,h=o.onExpand,f=o.onExpandedRowsChange,p=a||q,m=o.childrenColumnName||"children",v=s.useMemo((function(){return d?"row":!!(e.expandable&&e.internalHooks===r.R&&e.expandable.__PARENT_RENDER_ICON__||t.some((function(e){return e&&"object"===(0,w.Z)(e)&&e[m]})))&&"nest"}),[!!d,t]),g=s.useState((function(){return c||(u?function(e,t,n){var r=[];return function e(i){(i||[]).forEach((function(i,o){r.push(t(i,o)),e(i[n])}))}(e),r}(t,n,m):[])})),y=(0,i.Z)(g,2),x=y[0],b=y[1],C=s.useMemo((function(){return new Set(l||x||[])}),[l,x]),k=s.useCallback((function(e){var r,i=n(e,t.indexOf(e)),o=C.has(i);o?(C.delete(i),r=(0,se.Z)(C)):r=[].concat((0,se.Z)(C),[i]),b(r),h&&h(!o,e),f&&f(r)}),[n,C,t,h,f]);return[o,v,C,p,m,k]}(n,te,ce),Se=(0,i.Z)(Ae,6),De=Se[0],Pe=Se[1],Ze=Se[2],Be=Se[3],Te=Se[4],je=Se[5],Ie=null==v?void 0:v.x,Fe=s.useState(0),Oe=(0,i.Z)(Fe,2),Re=Oe[0],We=Oe[1],ze=(0,pe.Z)((0,C.Z)((0,C.Z)((0,C.Z)({},n),De),{},{expandable:!!De.expandedRowRender,columnTitle:De.columnTitle,expandedKeys:Ze,getRowKey:ce,onTriggerExpand:je,expandIcon:Be,expandIconColumnIndex:De.expandIconColumnIndex,direction:y,scrollWidth:re&&Q&&"number"==typeof Ie?Ie:null,clientWidth:Re}),re?G:null),He=(0,i.Z)(ze,4),Ve=He[0],Ke=He[1],Ye=He[2],Ue=He[3],Ge=null!=Ye?Ye:Ie,Xe=s.useMemo((function(){return{columns:Ve,flattenColumns:Ke}}),[Ve,Ke]),Qe=s.useRef(),Je=s.useRef(),qe=s.useRef(),_e=s.useRef();s.useImperativeHandle(t,(function(){return{nativeElement:Qe.current,scrollTo:function(e){var t,n;if(qe.current instanceof HTMLElement){var r=e.index,i=e.top,o=e.key;if("number"!=typeof(n=i)||Number.isNaN(n)){var a,l=null!=o?o:ce(te[r]);null===(a=qe.current.querySelector('[data-row-key="'.concat(l,'"]')))||void 0===a||a.scrollIntoView()}else{var s;null===(s=qe.current)||void 0===s||s.scrollTo({top:i})}}else null!==(t=qe.current)&&void 0!==t&&t.scrollTo&&qe.current.scrollTo(e)}}}));var $e,et,tt,nt=s.useRef(),rt=s.useState(!1),it=(0,i.Z)(rt,2),ot=it[0],at=it[1],lt=s.useState(!1),st=(0,i.Z)(lt,2),ct=st[0],ut=st[1],dt=s.useState(new Map),ht=(0,i.Z)(dt,2),ft=ht[0],pt=ht[1],mt=M(Ke).map((function(e){return ft.get(e)})),vt=s.useMemo((function(){return mt}),[mt.join("_")]),gt=ve(vt,Ke,y),yt=v&&D(v.y),xt=v&&D(Ge)||Boolean(De.fixed),bt=xt&&Ke.some((function(e){return e.fixed})),wt=s.useRef(),Ct=function(e,t){var n="object"===(0,w.Z)(e)?e:{},r=n.offsetHeader,i=void 0===r?0:r,o=n.offsetSummary,a=void 0===o?0:o,l=n.offsetScroll,c=void 0===l?0:l,u=n.getContainer,d=(void 0===u?function(){return me}:u)()||me,h=!!e;return s.useMemo((function(){return{isSticky:h,stickyClassName:h?"".concat(t,"-sticky-holder"):"",offsetHeader:i,offsetSummary:a,offsetScroll:c,container:d}}),[h,c,i,a,t,d])}(_,c),kt=Ct.isSticky,At=Ct.offsetHeader,St=Ct.offsetSummary,Et=Ct.offsetScroll,Nt=Ct.stickyClassName,Lt=Ct.container,Mt=s.useMemo((function(){return null==L?void 0:L(te)}),[L,te]),Dt=(yt||kt)&&s.isValidElement(Mt)&&Mt.type===W&&Mt.props.fixed;yt&&(et={overflowY:ne?"scroll":"auto",maxHeight:v.y}),xt&&($e={overflowX:"auto"},yt||(et={overflowY:"hidden"}),tt={width:!0===Ge?"auto":Ge,minWidth:"100%"});var Pt=s.useCallback((function(e,t){pt((function(n){if(n.get(e)!==t){var r=new Map(n);return r.set(e,t),r}return n}))}),[]),Zt=function(e){var t=(0,s.useRef)(e||null),n=(0,s.useRef)();function r(){window.clearTimeout(n.current)}return(0,s.useEffect)((function(){return r}),[]),[function(e){t.current=e,r(),n.current=window.setTimeout((function(){t.current=null,n.current=void 0}),100)},function(){return t.current}]}(null),Bt=(0,i.Z)(Zt,2),Tt=Bt[0],jt=Bt[1];function It(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout((function(){t.scrollLeft=e}),0)))}var Ft=(0,o.Z)((function(e){var t,n=e.currentTarget,r=e.scrollLeft,i="rtl"===y,o="number"==typeof r?r:n.scrollLeft,a=n||Le;jt()&&jt()!==a||(Tt(a),It(o,Je.current),It(o,qe.current),It(o,nt.current),It(o,null===(t=wt.current)||void 0===t?void 0:t.setScrollLeft));var l=n||Je.current;if(l){var s=re&&Q&&"number"==typeof Ge?Ge:l.scrollWidth,c=l.clientWidth;if(s===c)return at(!1),void ut(!1);i?(at(-o<s-c),ut(-o>0)):(at(o>0),ut(o<s-c))}})),Ot=(0,o.Z)((function(e){Ft(e),null==R||R(e)})),Rt=function(){var e;xt&&qe.current?Ft({currentTarget:(0,be.bn)(qe.current),scrollLeft:null===(e=qe.current)||void 0===e?void 0:e.scrollLeft}):(at(!1),ut(!1))},Wt=s.useRef(!1);s.useEffect((function(){Wt.current&&Rt()}),[xt,p,Ve.length]),s.useEffect((function(){Wt.current=!0}),[]);var zt=s.useState(0),Ht=(0,i.Z)(zt,2),Vt=Ht[0],Kt=Ht[1],Yt=s.useState(!0),Ut=(0,i.Z)(Yt,2),Gt=Ut[0],Xt=Ut[1];(0,a.Z)((function(){Q&&re||(qe.current instanceof Element?Kt((0,Y.o)(qe.current).width):Kt((0,Y.o)(_e.current).width)),Xt((0,K.G)("position","sticky"))}),[]),s.useEffect((function(){re&&X&&(X.body.current=qe.current)}));var Qt,Jt=s.useCallback((function(e){return s.createElement(s.Fragment,null,s.createElement(fe,e),"top"===Dt&&s.createElement(z,e,Mt))}),[Dt,Mt]),qt=s.useCallback((function(e){return s.createElement(z,e,Mt)}),[Mt]),_t=ae(["table"],"table"),$t=s.useMemo((function(){return g||(bt?"max-content"===Ge?"auto":"fixed":yt||kt||Ke.some((function(e){return e.ellipsis}))?"fixed":"auto")}),[yt,bt,Ke,g,kt]),en={colWidths:vt,columCount:Ke.length,stickyOffsets:gt,onHeaderRow:O,fixHeader:yt,scroll:v},tn=s.useMemo((function(){return ne?null:"function"==typeof I?I():I}),[ne,I]),nn=s.createElement(ie,{data:te,measureColumnWidth:yt||xt||kt}),rn=s.createElement(le,{colWidths:Ke.map((function(e){return e.width})),columns:Ke}),on=null!=P?s.createElement("caption",{className:"".concat(c,"-caption")},P):void 0,an=(0,U.Z)(n,{data:!0}),ln=(0,U.Z)(n,{aria:!0});if(yt||kt){var sn;"function"==typeof ue?(sn=ue(te,{scrollbarSize:Vt,ref:qe,onScroll:Ft}),en.colWidths=Ke.map((function(e,t){var n=e.width,r=t===Ke.length-1?n-Vt:n;return"number"!=typeof r||Number.isNaN(r)?0:r}))):sn=s.createElement("div",{style:(0,C.Z)((0,C.Z)({},$e),et),onScroll:Ot,ref:qe,className:S()("".concat(c,"-body"))},s.createElement(_t,(0,h.Z)({style:(0,C.Z)((0,C.Z)({},tt),{},{tableLayout:$t})},ln),on,rn,nn,!Dt&&Mt&&s.createElement(z,{stickyOffsets:gt,flattenColumns:Ke},Mt)));var cn=(0,C.Z)((0,C.Z)((0,C.Z)({noData:!te.length,maxContentScroll:xt&&"max-content"===Ge},en),Xe),{},{direction:y,stickyClassName:Nt,onScroll:Ft});Qt=s.createElement(s.Fragment,null,!1!==B&&s.createElement(de,(0,h.Z)({},cn,{stickyTopOffset:At,className:"".concat(c,"-header"),ref:Je}),Jt),sn,Dt&&"top"!==Dt&&s.createElement(de,(0,h.Z)({},cn,{stickyBottomOffset:St,className:"".concat(c,"-summary"),ref:nt}),qt),kt&&qe.current&&qe.current instanceof Element&&s.createElement(ke,{ref:wt,offsetScroll:Et,scrollBodyRef:qe,onScroll:Ft,container:Lt,direction:y}))}else Qt=s.createElement("div",{style:(0,C.Z)((0,C.Z)({},$e),et),className:S()("".concat(c,"-content")),onScroll:Ft,ref:qe},s.createElement(_t,(0,h.Z)({style:(0,C.Z)((0,C.Z)({},tt),{},{tableLayout:$t})},ln),on,rn,!1!==B&&s.createElement(fe,(0,h.Z)({},en,Xe)),nn,Mt&&s.createElement(z,{stickyOffsets:gt,flattenColumns:Ke},Mt)));var un=s.createElement("div",(0,h.Z)({className:S()(c,u,(0,k.Z)((0,k.Z)((0,k.Z)((0,k.Z)((0,k.Z)((0,k.Z)((0,k.Z)((0,k.Z)((0,k.Z)((0,k.Z)({},"".concat(c,"-rtl"),"rtl"===y),"".concat(c,"-ping-left"),ot),"".concat(c,"-ping-right"),ct),"".concat(c,"-layout-fixed"),"fixed"===g),"".concat(c,"-fixed-header"),yt),"".concat(c,"-fixed-column"),bt),"".concat(c,"-fixed-column-gapped"),bt&&Ue),"".concat(c,"-scroll-horizontal"),xt),"".concat(c,"-has-fix-left"),Ke[0]&&Ke[0].fixed),"".concat(c,"-has-fix-right"),Ke[Ke.length-1]&&"right"===Ke[Ke.length-1].fixed)),style:f,id:Z,ref:Qe},an),x&&s.createElement(ge,{className:"".concat(c,"-title")},x(te)),s.createElement("div",{ref:_e,className:"".concat(c,"-container")},Qt),A&&s.createElement(ge,{className:"".concat(c,"-footer")},A(te)));xt&&(un=s.createElement(V.Z,{onResize:function(e){var t,n=e.width;null===(t=wt.current)||void 0===t||t.checkScrollBarVisible();var r=Qe.current?Qe.current.offsetWidth:n;re&&J&&Qe.current&&(r=J(Qe.current,r)||r),r!==Re&&(Rt(),We(r))}},un));var dn=function(e,t,n){var r=e.map((function(r,i){return j(i,i,e,t,n)}));return(0,E.Z)((function(){return r}),[r],(function(e,t){return!(0,l.Z)(e,t)}))}(Ke,gt,y),hn=s.useMemo((function(){return{scrollX:Ge,prefixCls:c,getComponent:ae,scrollbarSize:Vt,direction:y,fixedInfoList:dn,isSticky:kt,supportSticky:Gt,componentWidth:Re,fixHeader:yt,fixColumn:bt,horizonScroll:xt,tableLayout:$t,rowClassName:d,expandedRowClassName:De.expandedRowClassName,expandIcon:Be,expandableType:Pe,expandRowByClick:De.expandRowByClick,expandedRowRender:De.expandedRowRender,onTriggerExpand:je,expandIconColumnIndex:De.expandIconColumnIndex,indentSize:De.indentSize,allColumnsFixedLeft:Ke.every((function(e){return"left"===e.fixed})),emptyNode:tn,columns:Ve,flattenColumns:Ke,onColumnResize:Pt,hoverStartRow:xe,hoverEndRow:we,onHover:Ce,rowExpandable:De.rowExpandable,onRow:F,getRowKey:ce,expandedKeys:Ze,childrenColumnName:Te,rowHoverable:ee}}),[Ge,c,ae,Vt,y,dn,kt,Gt,Re,yt,bt,xt,$t,d,De.expandedRowClassName,Be,Pe,De.expandRowByClick,De.expandedRowRender,je,De.expandIconColumnIndex,De.indentSize,tn,Ve,Ke,Pt,xe,we,Ce,De.rowExpandable,F,ce,Ze,Te,ee]);return s.createElement(b.Provider,{value:hn},un)}var Pe=s.forwardRef(De);function Ze(e){return g(Pe,e)}var Be=Ze();Be.EXPAND_COLUMN=r.w,Be.INTERNAL_HOOKS=r.R,Be.Column=Ae,Be.ColumnGroup=Se,Be.Summary=H;var Te=Be,je=n(48911),Ie=u(null),Fe=u(null);var Oe=function(e){var t=e.rowInfo,n=e.column,r=e.colIndex,i=e.indent,o=e.index,a=e.component,l=e.renderIndex,c=e.record,u=e.style,f=e.className,p=e.inverse,m=e.getHeight,v=n.render,g=n.dataIndex,y=n.className,x=n.width,b=d(Fe,["columnsOffset"]).columnsOffset,w=$(t,n,r,i,o),k=w.key,A=w.fixedInfo,E=w.appendCellNode,N=w.additionalCellProps,L=N.style,M=N.colSpan,D=void 0===M?1:M,P=N.rowSpan,Z=void 0===P?1:P,B=function(e,t,n){return n[e+(t||1)]-(n[e]||0)}(r-1,D,b),j=D>1?x-B:0,I=(0,C.Z)((0,C.Z)((0,C.Z)({},L),u),{},{flex:"0 0 ".concat(B,"px"),width:"".concat(B,"px"),marginRight:j,pointerEvents:"auto"}),F=s.useMemo((function(){return p?Z<=1:0===D||0===Z||Z>1}),[Z,D,p]);F?I.visibility="hidden":p&&(I.height=null==m?void 0:m(Z));var O=F?function(){return null}:v,R={};return 0!==Z&&0!==D||(R.rowSpan=1,R.colSpan=1),s.createElement(T,(0,h.Z)({className:S()(y,f),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:a,prefixCls:t.prefixCls,key:k,record:c,index:o,renderIndex:l,dataIndex:g,render:O,shouldCellUpdate:n.shouldCellUpdate},A,{appendNode:E,additionalProps:(0,C.Z)((0,C.Z)({},N),{},{style:I},R)}))},Re=["data","index","className","rowKey","style","extra","getHeight"];var We=y(s.forwardRef((function(e,t){var n,r=e.data,i=e.index,o=e.className,a=e.rowKey,l=e.style,c=e.extra,u=e.getHeight,f=(0,F.Z)(e,Re),p=r.record,m=r.indent,v=r.index,g=d(b,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),y=g.scrollX,x=g.flattenColumns,w=g.prefixCls,A=g.fixColumn,E=g.componentWidth,N=d(Ie,["getComponent"]).getComponent,L=Q(p,a,i,m),M=N(["body","row"],"div"),D=N(["body","cell"],"div"),P=L.rowSupportExpand,Z=L.expanded,B=L.rowProps,j=L.expandedRowRender,I=L.expandedRowClassName;if(P&&Z){var O=j(p,i,m+1,Z),R=_(I,p,i,m),W={};A&&(W={style:(0,k.Z)({},"--virtual-width","".concat(E,"px"))});var z="".concat(w,"-expanded-row-cell");n=s.createElement(M,{className:S()("".concat(w,"-expanded-row"),"".concat(w,"-expanded-row-level-").concat(m+1),R)},s.createElement(T,{component:D,prefixCls:w,className:S()(z,(0,k.Z)({},"".concat(z,"-fixed"),A)),additionalProps:W},O))}var H=(0,C.Z)((0,C.Z)({},l),{},{width:y});c&&(H.position="absolute",H.pointerEvents="none");var V=s.createElement(M,(0,h.Z)({},B,f,{"data-row-key":a,ref:P?null:t,className:S()(o,"".concat(w,"-row"),null==B?void 0:B.className,(0,k.Z)({},"".concat(w,"-row-extra"),c)),style:(0,C.Z)((0,C.Z)({},H),null==B?void 0:B.style)}),x.map((function(e,t){return s.createElement(Oe,{key:t,component:D,rowInfo:L,column:e,colIndex:t,indent:m,index:i,renderIndex:v,record:p,inverse:c,getHeight:u})})));return P?s.createElement("div",{ref:t},V,n):V})));var ze=y(s.forwardRef((function(e,t){var n=e.data,r=e.onScroll,o=d(b,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),a=o.flattenColumns,l=o.onColumnResize,c=o.getRowKey,u=o.expandedKeys,h=o.prefixCls,f=o.childrenColumnName,p=o.scrollX,m=o.direction,v=d(Ie),g=v.sticky,y=v.scrollY,x=v.listItemHeight,C=v.getComponent,k=v.onScroll,A=s.useRef(),S=X(n,f,u,c),E=s.useMemo((function(){var e=0;return a.map((function(t){var n=t.width;return[t.key,n,e+=n]}))}),[a]),N=s.useMemo((function(){return E.map((function(e){return e[2]}))}),[E]);s.useEffect((function(){E.forEach((function(e){var t=(0,i.Z)(e,2),n=t[0],r=t[1];l(n,r)}))}),[E]),s.useImperativeHandle(t,(function(){var e,t={scrollTo:function(e){var t;null===(t=A.current)||void 0===t||t.scrollTo(e)},nativeElement:null===(e=A.current)||void 0===e?void 0:e.nativeElement};return Object.defineProperty(t,"scrollLeft",{get:function(){var e;return(null===(e=A.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var t;null===(t=A.current)||void 0===t||t.scrollTo({left:e})}}),t}));var L=function(e,t){var n,r=null===(n=S[t])||void 0===n?void 0:n.record,i=e.onCell;if(i){var o,a=i(r,t);return null!==(o=null==a?void 0:a.rowSpan)&&void 0!==o?o:1}return 1},M=s.useMemo((function(){return{columnsOffset:N}}),[N]),D="".concat(h,"-tbody"),P=C(["body","wrapper"]),Z={};return g&&(Z.position="sticky",Z.bottom=0,"object"===(0,w.Z)(g)&&g.offsetScroll&&(Z.bottom=g.offsetScroll)),s.createElement(Fe.Provider,{value:M},s.createElement(je.Z,{fullHeight:!1,ref:A,prefixCls:"".concat(D,"-virtual"),styles:{horizontalScrollBar:Z},className:D,height:y,itemHeight:x||24,data:S,itemKey:function(e){return c(e.record)},component:P,scrollWidth:p,direction:m,onVirtualScroll:function(e){var t,n=e.x;r({currentTarget:null===(t=A.current)||void 0===t?void 0:t.nativeElement,scrollLeft:n})},onScroll:k,extraRender:function(e){var t=e.start,n=e.end,r=e.getSize,i=e.offsetY;if(n<0)return null;for(var o=a.filter((function(e){return 0===L(e,t)})),l=t,u=function(e){if(!(o=o.filter((function(t){return 0===L(t,e)}))).length)return l=e,1},d=t;d>=0&&!u(d);d-=1);for(var h=a.filter((function(e){return 1!==L(e,n)})),f=n,p=function(e){if(!(h=h.filter((function(t){return 1!==L(t,e)}))).length)return f=Math.max(e-1,n),1},m=n;m<S.length&&!p(m);m+=1);for(var v=[],g=function(e){if(!S[e])return 1;a.some((function(t){return L(t,e)>1}))&&v.push(e)},y=l;y<=f;y+=1)g(y);return v.map((function(e){var t=S[e],n=c(t.record,e),o=r(n);return s.createElement(We,{key:e,data:t,rowKey:n,index:e,style:{top:-i+o.top},extra:!0,getHeight:function(t){var i=e+t-1,o=c(S[i].record,i),a=r(n,o);return a.bottom-a.top}})}))}},(function(e,t,n){var r=c(e.record,t);return s.createElement(We,{data:e,rowKey:r,index:t,style:n.style})})))}))),He=function(e,t){var n=t.ref,r=t.onScroll;return s.createElement(ze,{ref:n,data:e,onScroll:r})};function Ve(e,t){var n=e.data,i=e.columns,o=e.scroll,a=e.sticky,l=e.prefixCls,c=void 0===l?Ee:l,u=e.className,d=e.listItemHeight,f=e.components,p=e.onScroll,m=o||{},v=m.x,g=m.y;"number"!=typeof v&&(v=1),"number"!=typeof g&&(g=500);var y=(0,Z.zX)((function(e,t){return(0,N.Z)(f,e)||t})),x=(0,Z.zX)(p),b=s.useMemo((function(){return{sticky:a,scrollY:g,listItemHeight:d,getComponent:y,onScroll:x}}),[a,g,d,y,x]);return s.createElement(Ie.Provider,{value:b},s.createElement(Te,(0,h.Z)({},e,{className:S()(u,"".concat(c,"-virtual")),scroll:(0,C.Z)((0,C.Z)({},o),{},{x:v}),components:(0,C.Z)((0,C.Z)({},f),{},{body:null!=n&&n.length?He:void 0}),columns:i,internalHooks:r.R,tailor:!0,ref:t})))}var Ke=s.forwardRef(Ve);function Ye(e){return g(Ke,e)}Ye()},54451:function(e,t,n){"use strict";n.d(t,{g:function(){return l},v:function(){return a}});var r=n(33885),i=n(75931),o=(n(48736),["expandable"]),a="RC_TABLE_INTERNAL_COL_DEFINE";function l(e){var t,n=e.expandable,a=(0,i.Z)(e,o);return!1===(t="expandable"in e?(0,r.Z)((0,r.Z)({},a),n):a).showExpandColumn&&(t.expandIconColumnIndex=-1),t}},22711:function(e,t,n){"use strict";n.r(t),n.d(t,{ResizableTextArea:function(){return N},default:function(){return M}});var r,i=n(54476),o=n(20068),a=n(33885),l=n(94480),s=n(42978),c=n(75931),u=n(92310),d=n.n(u),h=n(36901),f=n(66003),p=n(30292),m=n(18929),v=n(59301),g=n(76190),y=n(29301),x=n(34280),b=n(16089),w="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n",C=["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"],k={};function A(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&k[n])return k[n];var r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=C.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),s={sizingStyle:l,paddingSize:o,borderSize:a,boxSizing:i};return t&&n&&(k[n]=s),s}var S=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],E=v.forwardRef((function(e,t){var n=e,l=n.prefixCls,u=n.defaultValue,h=n.value,f=n.autoSize,p=n.onResize,C=n.className,k=n.style,E=n.disabled,N=n.onChange,L=(n.onInternalAutoSize,(0,c.Z)(n,S)),M=(0,m.Z)(u,{value:h,postState:function(e){return null!=e?e:""}}),D=(0,s.Z)(M,2),P=D[0],Z=D[1],B=v.useRef();v.useImperativeHandle(t,(function(){return{textArea:B.current}}));var T=v.useMemo((function(){return f&&"object"===(0,g.Z)(f)?[f.minRows,f.maxRows]:[]}),[f]),j=(0,s.Z)(T,2),I=j[0],F=j[1],O=!!f,R=v.useState(2),W=(0,s.Z)(R,2),z=W[0],H=W[1],V=v.useState(),K=(0,s.Z)(V,2),Y=K[0],U=K[1],G=function(){H(0)};(0,x.Z)((function(){O&&G()}),[h,I,F,O]),(0,x.Z)((function(){if(0===z)H(1);else if(1===z){var e=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;r||((r=document.createElement("textarea")).setAttribute("tab-index","-1"),r.setAttribute("aria-hidden","true"),r.setAttribute("name","hiddenTextarea"),document.body.appendChild(r)),e.getAttribute("wrap")?r.setAttribute("wrap",e.getAttribute("wrap")):r.removeAttribute("wrap");var o=A(e,t),a=o.paddingSize,l=o.borderSize,s=o.boxSizing,c=o.sizingStyle;r.setAttribute("style","".concat(c,";").concat(w)),r.value=e.value||e.placeholder||"";var u,d=void 0,h=void 0,f=r.scrollHeight;if("border-box"===s?f+=l:"content-box"===s&&(f-=a),null!==n||null!==i){r.value=" ";var p=r.scrollHeight-a;null!==n&&(d=p*n,"border-box"===s&&(d=d+a+l),f=Math.max(d,f)),null!==i&&(h=p*i,"border-box"===s&&(h=h+a+l),u=f>h?"":"hidden",f=Math.min(h,f))}var m={height:f,overflowY:u,resize:"none"};return d&&(m.minHeight=d),h&&(m.maxHeight=h),m}(B.current,!1,I,F);H(2),U(e)}else!function(){try{if(document.activeElement===B.current){var e=B.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;B.current.setSelectionRange(t,n),B.current.scrollTop=r}}catch(e){}}()}),[z]);var X=v.useRef(),Q=function(){b.Z.cancel(X.current)};v.useEffect((function(){return Q}),[]);var J=O?Y:null,q=(0,a.Z)((0,a.Z)({},k),J);return 0!==z&&1!==z||(q.overflowY="hidden",q.overflowX="hidden"),v.createElement(y.Z,{onResize:function(e){2===z&&(null==p||p(e),f&&(Q(),X.current=(0,b.Z)((function(){G()}))))},disabled:!(f||p)},v.createElement("textarea",(0,i.Z)({},L,{ref:B,style:q,className:d()(l,C,(0,o.Z)({},"".concat(l,"-disabled"),E)),disabled:E,value:P,onChange:function(e){Z(e.target.value),null==N||N(e)}})))})),N=E,L=["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"],M=v.forwardRef((function(e,t){var n,r=e.defaultValue,u=e.value,g=e.onFocus,y=e.onBlur,x=e.onChange,b=e.allowClear,w=e.maxLength,C=e.onCompositionStart,k=e.onCompositionEnd,A=e.suffix,S=e.prefixCls,E=void 0===S?"rc-textarea":S,M=e.showCount,D=e.count,P=e.className,Z=e.style,B=e.disabled,T=e.hidden,j=e.classNames,I=e.styles,F=e.onResize,O=e.onClear,R=e.onPressEnter,W=e.readOnly,z=e.autoSize,H=e.onKeyDown,V=(0,c.Z)(e,L),K=(0,m.Z)(r,{value:u,defaultValue:r}),Y=(0,s.Z)(K,2),U=Y[0],G=Y[1],X=null==U?"":String(U),Q=v.useState(!1),J=(0,s.Z)(Q,2),q=J[0],_=J[1],$=v.useRef(!1),ee=v.useState(null),te=(0,s.Z)(ee,2),ne=te[0],re=te[1],ie=(0,v.useRef)(null),oe=(0,v.useRef)(null),ae=function(){var e;return null===(e=oe.current)||void 0===e?void 0:e.textArea},le=function(){ae().focus()};(0,v.useImperativeHandle)(t,(function(){var e;return{resizableTextArea:oe.current,focus:le,blur:function(){ae().blur()},nativeElement:(null===(e=ie.current)||void 0===e?void 0:e.nativeElement)||ae()}})),(0,v.useEffect)((function(){_((function(e){return!B&&e}))}),[B]);var se=v.useState(null),ce=(0,s.Z)(se,2),ue=ce[0],de=ce[1];v.useEffect((function(){var e;ue&&(e=ae()).setSelectionRange.apply(e,(0,l.Z)(ue))}),[ue]);var he,fe=(0,f.Z)(D,M),pe=null!==(n=fe.max)&&void 0!==n?n:w,me=Number(pe)>0,ve=fe.strategy(X),ge=!!pe&&ve>pe,ye=function(e,t){var n=t;!$.current&&fe.exceedFormatter&&fe.max&&fe.strategy(t)>fe.max&&t!==(n=fe.exceedFormatter(t,{max:fe.max}))&&de([ae().selectionStart||0,ae().selectionEnd||0]),G(n),(0,p.rJ)(e.currentTarget,e,x,n)},xe=A;fe.show&&(he=fe.showFormatter?fe.showFormatter({value:X,count:ve,maxLength:pe}):"".concat(ve).concat(me?" / ".concat(pe):""),xe=v.createElement(v.Fragment,null,xe,v.createElement("span",{className:d()("".concat(E,"-data-count"),null==j?void 0:j.count),style:null==I?void 0:I.count},he)));var be=!z&&!M&&!b;return v.createElement(h.BaseInput,{ref:ie,value:X,allowClear:b,handleReset:function(e){G(""),le(),(0,p.rJ)(ae(),e,x)},suffix:xe,prefixCls:E,classNames:(0,a.Z)((0,a.Z)({},j),{},{affixWrapper:d()(null==j?void 0:j.affixWrapper,(0,o.Z)((0,o.Z)({},"".concat(E,"-show-count"),M),"".concat(E,"-textarea-allow-clear"),b))}),disabled:B,focused:q,className:d()(P,ge&&"".concat(E,"-out-of-range")),style:(0,a.Z)((0,a.Z)({},Z),ne&&!be?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof he?he:void 0}},hidden:T,readOnly:W,onClear:O},v.createElement(N,(0,i.Z)({},V,{autoSize:z,maxLength:w,onKeyDown:function(e){"Enter"===e.key&&R&&R(e),null==H||H(e)},onChange:function(e){ye(e,e.target.value)},onFocus:function(e){_(!0),null==g||g(e)},onBlur:function(e){_(!1),null==y||y(e)},onCompositionStart:function(e){$.current=!0,null==C||C(e)},onCompositionEnd:function(e){$.current=!1,ye(e,e.currentTarget.value),null==k||k(e)},className:d()(null==j?void 0:j.textarea),style:(0,a.Z)((0,a.Z)({},null==I?void 0:I.textarea),{},{resize:null==Z?void 0:Z.resize}),disabled:B,prefixCls:E,onResize:function(e){var t;null==F||F(e),null!==(t=ae())&&void 0!==t&&t.style.height&&re(!0)},ref:oe,readOnly:W})))}))},9940:function(e,t,n){"use strict";n.d(t,{Qw:function(){return O},FJ:function(){return W},hT:function(){return R},OF:function(){return x},ZP:function(){return Y}});var r=n(54476),i=n(94480),o=n(33885),a=n(42978),l=n(75931),s=n(76190),c=n(37463),u=n(6551),d=n(34643),h=n(18929),f=n(48736),p=n(59301),m=function(e,t,n,r){return p.useMemo((function(){var o=function(e){return e.map((function(e){return e.value}))},a=o(e),l=o(t),s=a.filter((function(e){return!r[e]})),c=a,u=l;if(n){var h=(0,d.S)(a,!0,r);c=h.checkedKeys,u=h.halfCheckedKeys}return[Array.from(new Set([].concat((0,i.Z)(s),(0,i.Z)(c)))),u]}),[e,t,n,r])},v=n(34061),g=n(20068),y=n(11592),x=function(){return null},b=["children","value"];function w(e){return(0,y.Z)(e).map((function(e){if(!p.isValidElement(e)||!e.type)return null;var t=e,n=t.key,r=t.props,i=r.children,a=r.value,s=(0,l.Z)(r,b),c=(0,o.Z)({key:n,value:a},s),u=w(i);return u.length&&(c.children=u),c})).filter((function(e){return e}))}function C(e){if(!e)return e;var t=(0,o.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,f.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}var k=function(e,t,n){var r=n.fieldNames,i=n.treeNodeFilterProp,a=n.filterTreeNode,l=r.children;return p.useMemo((function(){if(!t||!1===a)return e;var n="function"==typeof a?a:function(e,n){return String(n[i]).toUpperCase().includes(t.toUpperCase())};return function e(r){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.reduce((function(r,a){var s=a[l],c=i||n(t,C(a)),u=e(s||[],c);return(c||u.length)&&r.push((0,o.Z)((0,o.Z)({},a),{},(0,g.Z)({isLeaf:void 0},l,u))),r}),[])}(e)}),[e,t,l,i,a])};function A(e){var t=p.useRef();t.current=e;var n=p.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}function S(e,t,n){return p.useMemo((function(){if(e){if(n){var r=(0,o.Z)({id:"id",pId:"pId",rootPId:null},"object"===(0,s.Z)(n)?n:{});return function(e,t){var n=t.id,r=t.pId,i=t.rootPId,a=new Map,l=[];return e.forEach((function(e){var t=e[n],r=(0,o.Z)((0,o.Z)({},e),{},{key:e.key||t});a.set(t,r)})),a.forEach((function(e){var t=e[r],n=a.get(t);n?(n.children=n.children||[],n.children.push(e)):t!==i&&null!==i||l.push(e)})),l}(e,r)}return e}return w(t)}),[t,n,e])}var E=p.createContext(null),N=n(19251),L=n(3741),M=n(10228),D=n(80547),P=p.createContext(null),Z=function(e){return!e||e.disabled||e.disableCheckbox||!1===e.checkable},B=function(e){return null==e},T=n(70425),j={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},I=function(e,t){var n=(0,c.lk)(),o=n.prefixCls,l=n.multiple,s=n.searchValue,u=n.toggleOpen,d=n.open,h=n.notFoundContent,f=p.useContext(P),m=f.virtual,v=f.listHeight,g=f.listItemHeight,y=f.listItemScrollOffset,x=f.treeData,b=f.fieldNames,w=f.onSelect,C=f.dropdownMatchSelectWidth,k=f.treeExpandAction,A=f.treeTitleRender,S=f.onPopupScroll,B=f.leftMaxCount,I=f.leafCountOnly,F=f.valueEntities,O=p.useContext(E),R=O.checkable,W=O.checkedKeys,z=O.halfCheckedKeys,H=O.treeExpandedKeys,V=O.treeDefaultExpandAll,K=O.treeDefaultExpandedKeys,Y=O.onTreeExpand,U=O.treeIcon,G=O.showTreeIcon,X=O.switcherIcon,Q=O.treeLine,J=O.treeNodeFilterProp,q=O.loadData,_=O.treeLoadedKeys,$=O.treeMotion,ee=O.onTreeLoad,te=O.keyEntities,ne=p.useRef(),re=(0,D.Z)((function(){return x}),[d,x],(function(e,t){return t[0]&&e[1]!==t[1]})),ie=p.useMemo((function(){return R?{checked:W,halfChecked:z}:null}),[R,W,z]);p.useEffect((function(){var e;d&&!l&&W.length&&(null===(e=ne.current)||void 0===e||e.scrollTo({key:W[0]}))}),[d]);var oe=function(e){e.preventDefault()},ae=function(e,t){var n=t.node;R&&Z(n)||(w(n.key,{selected:!W.includes(n.key)}),l||u(!1))},le=p.useState(K),se=(0,a.Z)(le,2),ce=se[0],ue=se[1],de=p.useState(null),he=(0,a.Z)(de,2),fe=he[0],pe=he[1],me=p.useMemo((function(){return H?(0,i.Z)(H):s?fe:ce}),[ce,fe,H,s]),ve=String(s).toLowerCase(),ge=function(e){return!!ve&&String(e[J]).toLowerCase().includes(ve)};p.useEffect((function(){s&&pe(function(e,t){var n=[];return function e(r){r.forEach((function(r){var i=r[t.children];i&&(n.push(r[t.value]),e(i))}))}(e),n}(x,b))}),[s]);var ye=p.useState((function(){return new Map})),xe=(0,a.Z)(ye,2),be=xe[0],we=xe[1];p.useEffect((function(){B&&we(new Map)}),[B]);var Ce=(0,T.zX)((function(e){var t=e[b.value];return!W.includes(t)&&(null!==B&&(B<=0||!(!I||!B)&&function(e){var t=e[b.value];if(!be.has(t)){var n=F.get(t);if(0===(n.children||[]).length)be.set(t,!1);else{var r=n.children.filter((function(e){return!e.node.disabled&&!e.node.disableCheckbox&&!W.includes(e.node[b.value])})).length;be.set(t,r>B)}}return be.get(t)}(e)))})),ke=function e(t){var n,r=(0,N.Z)(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!i.disabled&&!1!==i.selectable){if(!s)return i;if(ge(i))return i;if(i[b.children]){var o=e(i[b.children]);if(o)return o}}}}catch(e){r.e(e)}finally{r.f()}return null},Ae=p.useState(null),Se=(0,a.Z)(Ae,2),Ee=Se[0],Ne=Se[1],Le=te[Ee];p.useEffect((function(){if(d){var e,t=null;t=l||!W.length||s?(e=ke(re))?e[b.value]:null:W[0],Ne(t)}}),[d,s]),p.useImperativeHandle(t,(function(){var e;return{scrollTo:null===(e=ne.current)||void 0===e?void 0:e.scrollTo,onKeyDown:function(e){var t;switch(e.which){case M.Z.UP:case M.Z.DOWN:case M.Z.LEFT:case M.Z.RIGHT:null===(t=ne.current)||void 0===t||t.onKeyDown(e);break;case M.Z.ENTER:if(Le){var n=Ce(Le.node),r=(null==Le?void 0:Le.node)||{},i=r.selectable,o=r.value,a=r.disabled;!1===i||a||n||ae(0,{node:{key:Ee},selected:!W.includes(o)})}break;case M.Z.ESC:u(!1)}},onKeyUp:function(){}}}));var Me=(0,D.Z)((function(){return!s}),[s,H||ce],(function(e,t){var n=(0,a.Z)(e,1)[0],r=(0,a.Z)(t,2),i=r[0],o=r[1];return n!==i&&!(!i&&!o)}))?q:null;if(0===re.length)return p.createElement("div",{role:"listbox",className:"".concat(o,"-empty"),onMouseDown:oe},h);var De={fieldNames:b};return _&&(De.loadedKeys=_),me&&(De.expandedKeys=me),p.createElement("div",{onMouseDown:oe},Le&&d&&p.createElement("span",{style:j,"aria-live":"assertive"},Le.node.value),p.createElement(L.y6.Provider,{value:{nodeDisabled:Ce}},p.createElement(L.ZP,(0,r.Z)({ref:ne,focusable:!1,prefixCls:"".concat(o,"-tree"),treeData:re,height:v,itemHeight:g,itemScrollOffset:y,virtual:!1!==m&&!1!==C,multiple:l,icon:U,showIcon:G,switcherIcon:X,showLine:Q,loadData:Me,motion:$,activeKey:Ee,checkable:R,checkStrictly:!0,checkedKeys:ie,selectedKeys:R?[]:W,defaultExpandAll:V,titleRender:A},De,{onActiveChange:Ne,onSelect:ae,onCheck:ae,onExpand:function(e){ue(e),pe(e),Y&&Y(e)},onLoad:ee,filterTreeNode:ge,expandAction:k,onScroll:S}))))};var F=p.forwardRef(I),O="SHOW_ALL",R="SHOW_PARENT",W="SHOW_CHILD";function z(e,t,n,r){var i=new Set(e);return t===W?e.filter((function(e){var t=n[e];return!(t&&t.children&&t.children.some((function(e){var t=e.node;return i.has(t[r.value])}))&&t.children.every((function(e){var t=e.node;return Z(t)||i.has(t[r.value])})))})):t===R?e.filter((function(e){var t=n[e],r=t?t.parent:null;return!r||Z(r.node)||!i.has(r.key)})):e}var H=["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"];var V=p.forwardRef((function(e,t){var n=e.id,g=e.prefixCls,y=void 0===g?"rc-tree-select":g,b=e.value,w=e.defaultValue,N=e.onChange,L=e.onSelect,M=e.onDeselect,D=e.searchValue,Z=e.inputValue,T=e.onSearch,j=e.autoClearSearchValue,I=void 0===j||j,R=e.filterTreeNode,V=e.treeNodeFilterProp,K=void 0===V?"value":V,Y=e.showCheckedStrategy,U=e.treeNodeLabelProp,G=e.multiple,X=e.treeCheckable,Q=e.treeCheckStrictly,J=e.labelInValue,q=e.maxCount,_=e.fieldNames,$=e.treeDataSimpleMode,ee=e.treeData,te=e.children,ne=e.loadData,re=e.treeLoadedKeys,ie=e.onTreeLoad,oe=e.treeDefaultExpandAll,ae=e.treeExpandedKeys,le=e.treeDefaultExpandedKeys,se=e.onTreeExpand,ce=e.treeExpandAction,ue=e.virtual,de=e.listHeight,he=void 0===de?200:de,fe=e.listItemHeight,pe=void 0===fe?20:fe,me=e.listItemScrollOffset,ve=void 0===me?0:me,ge=e.onDropdownVisibleChange,ye=e.dropdownMatchSelectWidth,xe=void 0===ye||ye,be=e.treeLine,we=e.treeIcon,Ce=e.showTreeIcon,ke=e.switcherIcon,Ae=e.treeMotion,Se=e.treeTitleRender,Ee=e.onPopupScroll,Ne=(0,l.Z)(e,H),Le=(0,u.ZP)(n),Me=X&&!Q,De=X||Q,Pe=Q||J,Ze=De||G,Be=(0,h.Z)(w,{value:b}),Te=(0,a.Z)(Be,2),je=Te[0],Ie=Te[1],Fe=p.useMemo((function(){return X?Y||W:O}),[Y,X]);var Oe,Re,We=p.useMemo((function(){return function(e){var t=e||{},n=t.label,r=t.value;return{_title:n?[n]:["title","label"],value:r||"value",key:r||"value",children:t.children||"children"}}(_)}),[JSON.stringify(_)]),ze=(0,h.Z)("",{value:void 0!==D?D:Z,postState:function(e){return e||""}}),He=(0,a.Z)(ze,2),Ve=He[0],Ke=He[1],Ye=S(ee,te,$),Ue=function(e,t){return p.useMemo((function(){return(0,v.I8)(e,{fieldNames:t,initWrapper:function(e){return(0,o.Z)((0,o.Z)({},e),{},{valueEntities:new Map})},processEntity:function(e,n){var r=e.node[t.value];n.valueEntities.set(r,e)}})}),[e,t])}(Ye,We),Ge=Ue.keyEntities,Xe=Ue.valueEntities,Qe=p.useCallback((function(e){var t=[],n=[];return e.forEach((function(e){Xe.has(e)?n.push(e):t.push(e)})),{missingRawValues:t,existRawValues:n}}),[Xe]),Je=k(Ye,Ve,{fieldNames:We,treeNodeFilterProp:K,filterTreeNode:R}),qe=p.useCallback((function(e){if(e){if(U)return e[U];for(var t=We._title,n=0;n<t.length;n+=1){var r=e[t[n]];if(void 0!==r)return r}}}),[We,U]),_e=p.useCallback((function(e){var t=function(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}(e);return t.map((function(e){return function(e){return!e||"object"!==(0,s.Z)(e)}(e)?{value:e}:e}))}),[]),$e=p.useCallback((function(e){return _e(e).map((function(e){var t,n,r=e.label,i=e.value,o=e.halfChecked,a=Xe.get(i);if(a)r=Se?Se(a.node):null!==(n=r)&&void 0!==n?n:qe(a.node),t=a.node.disabled;else if(void 0===r){r=_e(je).find((function(e){return e.value===i})).label}return{label:r,value:i,halfChecked:o,disabled:t}}))}),[Xe,qe,_e,je]),et=p.useMemo((function(){return _e(null===je?[]:je)}),[_e,je]),tt=p.useMemo((function(){var e=[],t=[];return et.forEach((function(n){n.halfChecked?t.push(n):e.push(n)})),[e,t]}),[et]),nt=(0,a.Z)(tt,2),rt=nt[0],it=nt[1],ot=p.useMemo((function(){return rt.map((function(e){return e.value}))}),[rt]),at=m(rt,it,Me,Ge),lt=(0,a.Z)(at,2),st=lt[0],ct=lt[1],ut=p.useMemo((function(){var e=z(st,Fe,Ge,We).map((function(e){var t,n;return null!==(t=null===(n=Ge[e])||void 0===n||null===(n=n.node)||void 0===n?void 0:n[We.value])&&void 0!==t?t:e})).map((function(e){var t=rt.find((function(t){return t.value===e})),n=J?null==t?void 0:t.label:null==Se?void 0:Se(t);return{value:e,label:n}})),t=$e(e),n=t[0];return!Ze&&n&&B(n.value)&&B(n.label)?[]:t.map((function(e){var t;return(0,o.Z)((0,o.Z)({},e),{},{label:null!==(t=e.label)&&void 0!==t?t:e.value})}))}),[We,Ze,st,rt,$e,Fe,Ge]),dt=(Oe=ut,Re=p.useRef({valueLabels:new Map}),p.useMemo((function(){var e=Re.current.valueLabels,t=new Map,n=Oe.map((function(n){var r=n.value,i=n.label,a=null!=i?i:e.get(r);return t.set(r,a),(0,o.Z)((0,o.Z)({},n),{},{label:a})}));return Re.current.valueLabels=t,[n]}),[Oe])),ht=(0,a.Z)(dt,1)[0],ft=p.useMemo((function(){return!Ze||"SHOW_CHILD"!==Fe&&!Q&&X?null:q}),[q,Ze,Q,Fe,X]),pt=A((function(e,t,n){var r=z(e,Fe,Ge,We);if(!(ft&&r.length>ft)){var o=$e(e);if(Ie(o),I&&Ke(""),N){var a=e;Me&&(a=r.map((function(e){var t=Xe.get(e);return t?t.node[We.value]:e})));var l=t||{triggerValue:void 0,selected:void 0},s=l.triggerValue,c=l.selected,u=a;if(Q){var d=it.filter((function(e){return!a.includes(e.value)}));u=[].concat((0,i.Z)(u),(0,i.Z)(d))}var h=$e(u),m={preValue:rt,triggerValue:s},v=!0;(Q||"selection"===n&&!c)&&(v=!1),function(e,t,n,r,i,o){var a=null,l=null;function s(){l||(l=[],function e(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0",s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return r.map((function(r,c){var u="".concat(i,"-").concat(c),d=r[o.value],h=n.includes(d),f=e(r[o.children]||[],u,h),m=p.createElement(x,r,f.map((function(e){return e.node})));if(t===d&&(a=m),h){var v={pos:u,node:m,children:f};return s||l.push(v),v}return null})).filter((function(e){return e}))}(r),l.sort((function(e,t){var r=e.node.props.value,i=t.node.props.value;return n.indexOf(r)-n.indexOf(i)})))}Object.defineProperty(e,"triggerNode",{get:function(){return(0,f.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),s(),a}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return(0,f.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),s(),i?l:l.map((function(e){return e.node}))}})}(m,s,e,Ye,v,We),De?m.checked=c:m.selected=c;var g=Pe?h:h.map((function(e){return e.value}));N(Ze?g:g[0],Pe?null:h.map((function(e){return e.label})),m)}}})),mt=p.useCallback((function(e,t){var n,r=t.selected,o=t.source,a=Ge[e],l=null==a?void 0:a.node,s=null!==(n=null==l?void 0:l[We.value])&&void 0!==n?n:e;if(Ze){var c=r?[].concat((0,i.Z)(ot),[s]):st.filter((function(e){return e!==s}));if(Me){var u,h=Qe(c),f=h.missingRawValues,p=h.existRawValues.map((function(e){return Xe.get(e).key}));if(r)u=(0,d.S)(p,!0,Ge).checkedKeys;else u=(0,d.S)(p,{checked:!1,halfCheckedKeys:ct},Ge).checkedKeys;c=[].concat((0,i.Z)(f),(0,i.Z)(u.map((function(e){return Ge[e].node[We.value]}))))}pt(c,{selected:r,triggerValue:s},o||"option")}else pt([s],{selected:!0,triggerValue:s},"option");r||!Ze?null==L||L(s,C(l)):null==M||M(s,C(l))}),[Qe,Xe,Ge,We,Ze,ot,pt,Me,L,M,st,ct,q]),vt=p.useCallback((function(e){if(ge){var t={};Object.defineProperty(t,"documentClickClose",{get:function(){return(0,f.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),ge(e,t)}}),[ge]),gt=A((function(e,t){var n=e.map((function(e){return e.value}));"clear"!==t.type?t.values.length&&mt(t.values[0].value,{selected:!1,source:"selection"}):pt(n,{},"selection")})),yt=p.useMemo((function(){return{virtual:ue,dropdownMatchSelectWidth:xe,listHeight:he,listItemHeight:pe,listItemScrollOffset:ve,treeData:Je,fieldNames:We,onSelect:mt,treeExpandAction:ce,treeTitleRender:Se,onPopupScroll:Ee,leftMaxCount:void 0===q?null:q-ht.length,leafCountOnly:"SHOW_CHILD"===Fe&&!Q&&!!X,valueEntities:Xe}}),[ue,xe,he,pe,ve,Je,We,mt,ce,Se,Ee,q,ht.length,Fe,Q,X,Xe]),xt=p.useMemo((function(){return{checkable:De,loadData:ne,treeLoadedKeys:re,onTreeLoad:ie,checkedKeys:st,halfCheckedKeys:ct,treeDefaultExpandAll:oe,treeExpandedKeys:ae,treeDefaultExpandedKeys:le,onTreeExpand:se,treeIcon:we,treeMotion:Ae,showTreeIcon:Ce,switcherIcon:ke,treeLine:be,treeNodeFilterProp:K,keyEntities:Ge}}),[De,ne,re,ie,st,ct,oe,ae,le,se,we,Ae,Ce,ke,be,K,Ge]);return p.createElement(P.Provider,{value:yt},p.createElement(E.Provider,{value:xt},p.createElement(c.Ac,(0,r.Z)({ref:t},Ne,{id:Le,prefixCls:y,mode:Ze?"multiple":void 0,displayValues:ht,onDisplayValuesChange:gt,searchValue:Ve,onSearch:function(e){Ke(e),null==T||T(e)},OptionList:F,emptyOptions:!Ye.length,onDropdownVisibleChange:vt,dropdownMatchSelectWidth:xe}))))}));var K=V;K.TreeNode=x,K.SHOW_ALL=O,K.SHOW_PARENT=R,K.SHOW_CHILD=W;var Y=K},639:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(54476),i=n(20068),o=n(33885),a=n(42978),l=n(75931),s=n(59301),c=n(92310),u=n.n(c),d=n(26112),h=n(30699),f=function(e){for(var t=e.prefixCls,n=e.level,r=e.isStart,o=e.isEnd,a="".concat(t,"-indent-unit"),l=[],c=0;c<n;c+=1)l.push(s.createElement("span",{key:c,className:u()(a,(0,i.Z)((0,i.Z)({},"".concat(a,"-start"),r[c]),"".concat(a,"-end"),o[c]))}));return s.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},l)},p=s.memo(f),m=n(65065),v=n(34061),g=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],y="open",x="close",b=function(e){var t,n,c,f=e.eventKey,b=e.className,w=e.style,C=e.dragOver,k=e.dragOverGapTop,A=e.dragOverGapBottom,S=e.isLeaf,E=e.isStart,N=e.isEnd,L=e.expanded,M=e.selected,D=e.checked,P=e.halfChecked,Z=e.loading,B=e.domRef,T=e.active,j=e.data,I=e.onMouseMove,F=e.selectable,O=(0,l.Z)(e,g),R=s.useContext(h.k),W=s.useContext(h.y),z=s.useRef(null),H=s.useState(!1),V=(0,a.Z)(H,2),K=V[0],Y=V[1],U=!!(R.disabled||e.disabled||null!==(t=W.nodeDisabled)&&void 0!==t&&t.call(W,j)),G=s.useMemo((function(){return!(!R.checkable||!1===e.checkable)&&R.checkable}),[R.checkable,e.checkable]),X=function(t){U||G&&!e.disableCheckbox&&R.onNodeCheck(t,(0,v.F)(e),!D)},Q=s.useMemo((function(){return"boolean"==typeof F?F:R.selectable}),[F,R.selectable]),J=function(t){R.onNodeClick(t,(0,v.F)(e)),Q?function(t){U||R.onNodeSelect(t,(0,v.F)(e))}(t):X(t)},q=function(t){R.onNodeDoubleClick(t,(0,v.F)(e))},_=function(t){R.onNodeMouseEnter(t,(0,v.F)(e))},$=function(t){R.onNodeMouseLeave(t,(0,v.F)(e))},ee=function(t){R.onNodeContextMenu(t,(0,v.F)(e))},te=s.useMemo((function(){return!(!R.draggable||R.draggable.nodeDraggable&&!R.draggable.nodeDraggable(j))}),[R.draggable,j]),ne=function(t){Z||R.onNodeExpand(t,(0,v.F)(e))},re=s.useMemo((function(){var e=((0,m.Z)(R.keyEntities,f)||{}).children;return Boolean((e||[]).length)}),[R.keyEntities,f]),ie=s.useMemo((function(){return!1!==S&&(S||!R.loadData&&!re||R.loadData&&e.loaded&&!re)}),[S,R.loadData,re,e.loaded]);s.useEffect((function(){Z||"function"!=typeof R.loadData||!L||ie||e.loaded||R.onNodeLoad((0,v.F)(e))}),[Z,R.loadData,R.onNodeLoad,L,ie,e]);var oe=s.useMemo((function(){var e;return null!==(e=R.draggable)&&void 0!==e&&e.icon?s.createElement("span",{className:"".concat(R.prefixCls,"-draggable-icon")},R.draggable.icon):null}),[R.draggable]),ae=function(t){var n=e.switcherIcon||R.switcherIcon;return"function"==typeof n?n((0,o.Z)((0,o.Z)({},e),{},{isLeaf:t})):n},le=s.useMemo((function(){if(!G)return null;var t="boolean"!=typeof G?G:null;return s.createElement("span",{className:u()("".concat(R.prefixCls,"-checkbox"),(0,i.Z)((0,i.Z)((0,i.Z)({},"".concat(R.prefixCls,"-checkbox-checked"),D),"".concat(R.prefixCls,"-checkbox-indeterminate"),!D&&P),"".concat(R.prefixCls,"-checkbox-disabled"),U||e.disableCheckbox)),onClick:X,role:"checkbox","aria-checked":P?"mixed":D,"aria-disabled":U||e.disableCheckbox,"aria-label":"Select ".concat("string"==typeof e.title?e.title:"tree node")},t)}),[G,D,P,U,e.disableCheckbox,e.title]),se=s.useMemo((function(){return ie?null:L?y:x}),[ie,L]),ce=s.useMemo((function(){return s.createElement("span",{className:u()("".concat(R.prefixCls,"-iconEle"),"".concat(R.prefixCls,"-icon__").concat(se||"docu"),(0,i.Z)({},"".concat(R.prefixCls,"-icon_loading"),Z))})}),[R.prefixCls,se,Z]),ue=s.useMemo((function(){var t=Boolean(R.draggable);return!e.disabled&&t&&R.dragOverNodeKey===f?R.dropIndicatorRender({dropPosition:R.dropPosition,dropLevelOffset:R.dropLevelOffset,indent:R.indent,prefixCls:R.prefixCls,direction:R.direction}):null}),[R.dropPosition,R.dropLevelOffset,R.indent,R.prefixCls,R.direction,R.draggable,R.dragOverNodeKey,R.dropIndicatorRender]),de=s.useMemo((function(){var t,n,r=e.title,o=void 0===r?"---":r,a="".concat(R.prefixCls,"-node-content-wrapper");if(R.showIcon){var l=e.icon||R.icon;t=l?s.createElement("span",{className:u()("".concat(R.prefixCls,"-iconEle"),"".concat(R.prefixCls,"-icon__customize"))},"function"==typeof l?l(e):l):ce}else R.loadData&&Z&&(t=ce);return n="function"==typeof o?o(j):R.titleRender?R.titleRender(j):o,s.createElement("span",{ref:z,title:"string"==typeof o?o:"",className:u()(a,"".concat(a,"-").concat(se||"normal"),(0,i.Z)({},"".concat(R.prefixCls,"-node-selected"),!U&&(M||K))),onMouseEnter:_,onMouseLeave:$,onContextMenu:ee,onClick:J,onDoubleClick:q},t,s.createElement("span",{className:"".concat(R.prefixCls,"-title")},n),ue)}),[R.prefixCls,R.showIcon,e,R.icon,ce,R.titleRender,j,se,_,$,ee,J,q]),he=(0,d.Z)(O,{aria:!0,data:!0}),fe=((0,m.Z)(R.keyEntities,f)||{}).level,pe=N[N.length-1],me=!U&&te,ve=R.draggingNodeKey===f,ge=void 0!==F?{"aria-selected":!!F}:void 0;return s.createElement("div",(0,r.Z)({ref:B,role:"treeitem","aria-expanded":S?void 0:L,className:u()(b,"".concat(R.prefixCls,"-treenode"),(c={},(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)(c,"".concat(R.prefixCls,"-treenode-disabled"),U),"".concat(R.prefixCls,"-treenode-switcher-").concat(L?"open":"close"),!S),"".concat(R.prefixCls,"-treenode-checkbox-checked"),D),"".concat(R.prefixCls,"-treenode-checkbox-indeterminate"),P),"".concat(R.prefixCls,"-treenode-selected"),M),"".concat(R.prefixCls,"-treenode-loading"),Z),"".concat(R.prefixCls,"-treenode-active"),T),"".concat(R.prefixCls,"-treenode-leaf-last"),pe),"".concat(R.prefixCls,"-treenode-draggable"),te),"dragging",ve),(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)(c,"drop-target",R.dropTargetKey===f),"drop-container",R.dropContainerKey===f),"drag-over",!U&&C),"drag-over-gap-top",!U&&k),"drag-over-gap-bottom",!U&&A),"filter-node",null===(n=R.filterTreeNode)||void 0===n?void 0:n.call(R,(0,v.F)(e))),"".concat(R.prefixCls,"-treenode-leaf"),ie))),style:w,draggable:me,onDragStart:me?function(t){t.stopPropagation(),Y(!0),R.onNodeDragStart(t,e);try{t.dataTransfer.setData("text/plain","")}catch(e){}}:void 0,onDragEnter:te?function(t){t.preventDefault(),t.stopPropagation(),R.onNodeDragEnter(t,e)}:void 0,onDragOver:te?function(t){t.preventDefault(),t.stopPropagation(),R.onNodeDragOver(t,e)}:void 0,onDragLeave:te?function(t){t.stopPropagation(),R.onNodeDragLeave(t,e)}:void 0,onDrop:te?function(t){t.preventDefault(),t.stopPropagation(),Y(!1),R.onNodeDrop(t,e)}:void 0,onDragEnd:te?function(t){t.stopPropagation(),Y(!1),R.onNodeDragEnd(t,e)}:void 0,onMouseMove:I},ge,he),s.createElement(p,{prefixCls:R.prefixCls,level:fe,isStart:E,isEnd:N}),oe,function(){if(ie){var e=ae(!0);return!1!==e?s.createElement("span",{className:u()("".concat(R.prefixCls,"-switcher"),"".concat(R.prefixCls,"-switcher-noop"))},e):null}var t=ae(!1);return!1!==t?s.createElement("span",{onClick:ne,className:u()("".concat(R.prefixCls,"-switcher"),"".concat(R.prefixCls,"-switcher_").concat(L?y:x))},t):null}(),le,de)};b.isTreeNode=1;var w=b},30699:function(e,t,n){"use strict";n.d(t,{k:function(){return i},y:function(){return o}});var r=n(59301),i=r.createContext(null),o=r.createContext({})},3741:function(e,t,n){"use strict";n.d(t,{OF:function(){return N.Z},y6:function(){return x.y},ZP:function(){return X}});var r=n(54476),i=n(76190),o=n(33885),a=n(94480),l=n(67732),s=n(83652),c=n(31226),u=n(42403),d=n(158),h=n(20068),f=n(92310),p=n.n(f),m=n(10228),v=n(26112),g=n(48736),y=n(59301),x=n(30699);var b=function(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:i.top=0,i.left=-n*r;break;case 1:i.bottom=0,i.left=-n*r;break;case 0:i.bottom=0,i.left=r}return y.createElement("div",{style:i})};function w(e){if(null==e)throw new TypeError("Cannot destructure "+e)}var C=n(42978),k=n(75931),A=n(34280),S=n(48911),E=n(77900),N=n(639);var L=function(e,t){var n=y.useState(!1),r=(0,C.Z)(n,2),i=r[0],o=r[1];(0,A.Z)((function(){if(i)return e(),function(){t()}}),[i]),(0,A.Z)((function(){return o(!0),function(){o(!1)}}),[])},M=n(34061),D=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"];var P=y.forwardRef((function(e,t){var n=e.className,i=e.style,o=e.motion,a=e.motionNodes,l=e.motionType,s=e.onMotionStart,c=e.onMotionEnd,u=e.active,d=e.treeNodeRequiredProps,h=(0,k.Z)(e,D),f=y.useState(!0),m=(0,C.Z)(f,2),v=m[0],g=m[1],b=y.useContext(x.k).prefixCls,S=a&&"hide"!==l;(0,A.Z)((function(){a&&S!==v&&g(S)}),[a]);var P=y.useRef(!1),Z=function(){a&&!P.current&&(P.current=!0,c())};L((function(){a&&s()}),Z);return a?y.createElement(E.default,(0,r.Z)({ref:t,visible:v},o,{motionAppear:"show"===l,onVisibleChanged:function(e){S===e&&Z()}}),(function(e,t){var n=e.className,i=e.style;return y.createElement("div",{ref:t,className:p()("".concat(b,"-treenode-motion"),n),style:i},a.map((function(e){var t=Object.assign({},(w(e.data),e.data)),n=e.title,i=e.key,o=e.isStart,a=e.isEnd;delete t.children;var l=(0,M.H8)(i,d);return y.createElement(N.Z,(0,r.Z)({},t,l,{title:n,active:u,data:e.data,key:i,isStart:o,isEnd:a}))})))})):y.createElement(N.Z,(0,r.Z)({domRef:t,className:n,style:i},h,{active:u}))}));function Z(e,t,n){var r=e.findIndex((function(e){return e.key===n})),i=e[r+1],o=t.findIndex((function(e){return e.key===n}));if(i){var a=t.findIndex((function(e){return e.key===i.key}));return t.slice(o+1,a)}return t.slice(o+1)}var B=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],T={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},j=function(){},I="RC_TREE_MOTION_".concat(Math.random()),F={key:I},O={key:I,level:0,index:0,pos:"0",node:F,nodes:[F]},R={parent:null,children:[],pos:O.pos,data:F,title:null,key:I,isStart:[],isEnd:[]};function W(e,t,n,r){return!1!==t&&n?e.slice(0,Math.ceil(n/r)+1):e}function z(e){var t=e.key,n=e.pos;return(0,M.km)(t,n)}var H=y.forwardRef((function(e,t){var n=e.prefixCls,i=e.data,o=(e.selectable,e.checkable,e.expandedKeys),a=e.selectedKeys,l=e.checkedKeys,s=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,h=e.disabled,f=e.dragging,p=e.dragOverNodeKey,m=e.dropPosition,v=e.motion,g=e.height,x=e.itemHeight,b=e.virtual,E=e.scrollWidth,N=e.focusable,L=e.activeItem,D=e.focused,F=e.tabIndex,O=e.onKeyDown,H=e.onFocus,V=e.onBlur,K=e.onActiveChange,Y=e.onListChangeStart,U=e.onListChangeEnd,G=(0,k.Z)(e,B),X=y.useRef(null),Q=y.useRef(null);y.useImperativeHandle(t,(function(){return{scrollTo:function(e){X.current.scrollTo(e)},getIndentWidth:function(){return Q.current.offsetWidth}}}));var J=y.useState(o),q=(0,C.Z)(J,2),_=q[0],$=q[1],ee=y.useState(i),te=(0,C.Z)(ee,2),ne=te[0],re=te[1],ie=y.useState(i),oe=(0,C.Z)(ie,2),ae=oe[0],le=oe[1],se=y.useState([]),ce=(0,C.Z)(se,2),ue=ce[0],de=ce[1],he=y.useState(null),fe=(0,C.Z)(he,2),pe=fe[0],me=fe[1],ve=y.useRef(i);function ge(){var e=ve.current;re(e),le(e),de([]),me(null),U()}ve.current=i,(0,A.Z)((function(){$(o);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,r=t.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function i(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var r=t.filter((function(e){return!n.has(e)}));return 1===r.length?r[0]:null}return n<r?{add:!0,key:i(e,t)}:{add:!1,key:i(t,e)}}(_,o);if(null!==e.key)if(e.add){var t=ne.findIndex((function(t){return t.key===e.key})),n=W(Z(ne,i,e.key),b,g,x),r=ne.slice();r.splice(t+1,0,R),le(r),de(n),me("show")}else{var a=i.findIndex((function(t){return t.key===e.key})),l=W(Z(i,ne,e.key),b,g,x),s=i.slice();s.splice(a+1,0,R),le(s),de(l),me("hide")}else ne!==i&&(re(i),le(i))}),[o,i]),y.useEffect((function(){f||ge()}),[f]);var ye=v?ae:i,xe={expandedKeys:o,selectedKeys:a,loadedKeys:s,loadingKeys:c,checkedKeys:l,halfCheckedKeys:u,dragOverNodeKey:p,dropPosition:m,keyEntities:d};return y.createElement(y.Fragment,null,D&&L&&y.createElement("span",{style:T,"aria-live":"assertive"},function(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}(L)),y.createElement("div",null,y.createElement("input",{style:T,disabled:!1===N||h,tabIndex:!1!==N?F:null,onKeyDown:O,onFocus:H,onBlur:V,value:"",onChange:j,"aria-label":"for screen reader"})),y.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},y.createElement("div",{className:"".concat(n,"-indent")},y.createElement("div",{ref:Q,className:"".concat(n,"-indent-unit")}))),y.createElement(S.Z,(0,r.Z)({},G,{data:ye,itemKey:z,height:g,fullHeight:!1,virtual:b,itemHeight:x,scrollWidth:E,prefixCls:"".concat(n,"-list"),ref:X,role:"tree",onVisibleChange:function(e){e.every((function(e){return z(e)!==I}))&&ge()}}),(function(e){var t=e.pos,n=Object.assign({},(w(e.data),e.data)),i=e.title,o=e.key,a=e.isStart,l=e.isEnd,s=(0,M.km)(o,t);delete n.key,delete n.children;var c=(0,M.H8)(s,xe);return y.createElement(P,(0,r.Z)({},n,c,{title:i,active:!!L&&o===L.key,pos:t,data:e.data,isStart:a,isEnd:l,motion:v,motionNodes:o===I?ue:null,motionType:pe,onMotionStart:Y,onMotionEnd:ge,treeNodeRequiredProps:xe,onMouseMove:function(){K(null)}}))})))}));var V=H,K=n(82661),Y=n(34643),U=n(65065),G=function(e){(0,u.Z)(n,e);var t=(0,d.Z)(n);function n(){var e;(0,l.Z)(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),(0,h.Z)((0,c.Z)(e),"destroyed",!1),(0,h.Z)((0,c.Z)(e),"delayedDragEnterLogic",void 0),(0,h.Z)((0,c.Z)(e),"loadingRetryTimes",{}),(0,h.Z)((0,c.Z)(e),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,M.w$)()}),(0,h.Z)((0,c.Z)(e),"dragStartMousePosition",null),(0,h.Z)((0,c.Z)(e),"dragNodeProps",null),(0,h.Z)((0,c.Z)(e),"currentMouseOverDroppableNodeKey",null),(0,h.Z)((0,c.Z)(e),"listRef",y.createRef()),(0,h.Z)((0,c.Z)(e),"onNodeDragStart",(function(t,n){var r=e.state,i=r.expandedKeys,o=r.keyEntities,a=e.props.onDragStart,l=n.eventKey;e.dragNodeProps=n,e.dragStartMousePosition={x:t.clientX,y:t.clientY};var s=(0,K._5)(i,l);e.setState({draggingNodeKey:l,dragChildrenKeys:(0,K.wA)(l,o),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(s),window.addEventListener("dragend",e.onWindowDragEnd),null==a||a({event:t,node:(0,M.F)(n)})})),(0,h.Z)((0,c.Z)(e),"onNodeDragEnter",(function(t,n){var r=e.state,i=r.expandedKeys,o=r.keyEntities,l=r.dragChildrenKeys,s=r.flattenNodes,c=r.indent,u=e.props,d=u.onDragEnter,h=u.onExpand,f=u.allowDrop,p=u.direction,m=n.pos,v=n.eventKey;if(e.currentMouseOverDroppableNodeKey!==v&&(e.currentMouseOverDroppableNodeKey=v),e.dragNodeProps){var g=(0,K.OM)(t,e.dragNodeProps,n,c,e.dragStartMousePosition,f,s,o,i,p),y=g.dropPosition,x=g.dropLevelOffset,b=g.dropTargetKey,w=g.dropContainerKey,C=g.dropTargetPos,k=g.dropAllowed,A=g.dragOverNodeKey;!l.includes(b)&&k?(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach((function(t){clearTimeout(e.delayedDragEnterLogic[t])})),e.dragNodeProps.eventKey!==n.eventKey&&(t.persist(),e.delayedDragEnterLogic[m]=window.setTimeout((function(){if(null!==e.state.draggingNodeKey){var r=(0,a.Z)(i),l=(0,U.Z)(o,n.eventKey);l&&(l.children||[]).length&&(r=(0,K.L0)(i,n.eventKey)),e.props.hasOwnProperty("expandedKeys")||e.setExpandedKeys(r),null==h||h(r,{node:(0,M.F)(n),expanded:!0,nativeEvent:t.nativeEvent})}}),800)),e.dragNodeProps.eventKey!==b||0!==x?(e.setState({dragOverNodeKey:A,dropPosition:y,dropLevelOffset:x,dropTargetKey:b,dropContainerKey:w,dropTargetPos:C,dropAllowed:k}),null==d||d({event:t,node:(0,M.F)(n),expandedKeys:i})):e.resetDragState()):e.resetDragState()}else e.resetDragState()})),(0,h.Z)((0,c.Z)(e),"onNodeDragOver",(function(t,n){var r=e.state,i=r.dragChildrenKeys,o=r.flattenNodes,a=r.keyEntities,l=r.expandedKeys,s=r.indent,c=e.props,u=c.onDragOver,d=c.allowDrop,h=c.direction;if(e.dragNodeProps){var f=(0,K.OM)(t,e.dragNodeProps,n,s,e.dragStartMousePosition,d,o,a,l,h),p=f.dropPosition,m=f.dropLevelOffset,v=f.dropTargetKey,g=f.dropContainerKey,y=f.dropTargetPos,x=f.dropAllowed,b=f.dragOverNodeKey;!i.includes(v)&&x&&(e.dragNodeProps.eventKey===v&&0===m?null===e.state.dropPosition&&null===e.state.dropLevelOffset&&null===e.state.dropTargetKey&&null===e.state.dropContainerKey&&null===e.state.dropTargetPos&&!1===e.state.dropAllowed&&null===e.state.dragOverNodeKey||e.resetDragState():p===e.state.dropPosition&&m===e.state.dropLevelOffset&&v===e.state.dropTargetKey&&g===e.state.dropContainerKey&&y===e.state.dropTargetPos&&x===e.state.dropAllowed&&b===e.state.dragOverNodeKey||e.setState({dropPosition:p,dropLevelOffset:m,dropTargetKey:v,dropContainerKey:g,dropTargetPos:y,dropAllowed:x,dragOverNodeKey:b}),null==u||u({event:t,node:(0,M.F)(n)}))}})),(0,h.Z)((0,c.Z)(e),"onNodeDragLeave",(function(t,n){e.currentMouseOverDroppableNodeKey!==n.eventKey||t.currentTarget.contains(t.relatedTarget)||(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var r=e.props.onDragLeave;null==r||r({event:t,node:(0,M.F)(n)})})),(0,h.Z)((0,c.Z)(e),"onWindowDragEnd",(function(t){e.onNodeDragEnd(t,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)})),(0,h.Z)((0,c.Z)(e),"onNodeDragEnd",(function(t,n){var r=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),null==r||r({event:t,node:(0,M.F)(n)}),e.dragNodeProps=null,window.removeEventListener("dragend",e.onWindowDragEnd)})),(0,h.Z)((0,c.Z)(e),"onNodeDrop",(function(t,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=e.state,l=a.dragChildrenKeys,s=a.dropPosition,c=a.dropTargetKey,u=a.dropTargetPos,d=a.dropAllowed;if(d){var h=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==c){var f=(0,o.Z)((0,o.Z)({},(0,M.H8)(c,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.key)===c,data:(0,U.Z)(e.state.keyEntities,c).node}),p=l.includes(c);(0,g.ZP)(!p,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var m=(0,K.yx)(u),v={event:t,node:(0,M.F)(f),dragNode:e.dragNodeProps?(0,M.F)(e.dragNodeProps):null,dragNodesKeys:[e.dragNodeProps.eventKey].concat(l),dropToGap:0!==s,dropPosition:s+Number(m[m.length-1])};i||null==h||h(v),e.dragNodeProps=null}}})),(0,h.Z)((0,c.Z)(e),"cleanDragState",(function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null})),(0,h.Z)((0,c.Z)(e),"triggerExpandActionExpand",(function(t,n){var r=e.state,i=r.expandedKeys,a=r.flattenNodes,l=n.expanded,s=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var c=a.filter((function(e){return e.key===s}))[0],u=(0,M.F)((0,o.Z)((0,o.Z)({},(0,M.H8)(s,e.getTreeNodeRequiredProps())),{},{data:c.data}));e.setExpandedKeys(l?(0,K._5)(i,s):(0,K.L0)(i,s)),e.onNodeExpand(t,u)}})),(0,h.Z)((0,c.Z)(e),"onNodeClick",(function(t,n){var r=e.props,i=r.onClick;"click"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==i||i(t,n)})),(0,h.Z)((0,c.Z)(e),"onNodeDoubleClick",(function(t,n){var r=e.props,i=r.onDoubleClick;"doubleClick"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==i||i(t,n)})),(0,h.Z)((0,c.Z)(e),"onNodeSelect",(function(t,n){var r=e.state.selectedKeys,i=e.state,o=i.keyEntities,a=i.fieldNames,l=e.props,s=l.onSelect,c=l.multiple,u=n.selected,d=n[a.key],h=!u,f=(r=h?c?(0,K.L0)(r,d):[d]:(0,K._5)(r,d)).map((function(e){var t=(0,U.Z)(o,e);return t?t.node:null})).filter(Boolean);e.setUncontrolledState({selectedKeys:r}),null==s||s(r,{event:"select",selected:h,node:n,selectedNodes:f,nativeEvent:t.nativeEvent})})),(0,h.Z)((0,c.Z)(e),"onNodeCheck",(function(t,n,r){var i,o=e.state,l=o.keyEntities,s=o.checkedKeys,c=o.halfCheckedKeys,u=e.props,d=u.checkStrictly,h=u.onCheck,f=n.key,p={event:"check",node:n,checked:r,nativeEvent:t.nativeEvent};if(d){var m=r?(0,K.L0)(s,f):(0,K._5)(s,f);i={checked:m,halfChecked:(0,K._5)(c,f)},p.checkedNodes=m.map((function(e){return(0,U.Z)(l,e)})).filter(Boolean).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:m})}else{var v=(0,Y.S)([].concat((0,a.Z)(s),[f]),!0,l),g=v.checkedKeys,y=v.halfCheckedKeys;if(!r){var x=new Set(g);x.delete(f);var b=(0,Y.S)(Array.from(x),{checked:!1,halfCheckedKeys:y},l);g=b.checkedKeys,y=b.halfCheckedKeys}i=g,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=y,g.forEach((function(e){var t=(0,U.Z)(l,e);if(t){var n=t.node,r=t.pos;p.checkedNodes.push(n),p.checkedNodesPositions.push({node:n,pos:r})}})),e.setUncontrolledState({checkedKeys:g},!1,{halfCheckedKeys:y})}null==h||h(i,p)})),(0,h.Z)((0,c.Z)(e),"onNodeLoad",(function(t){var n,r=t.key,i=e.state.keyEntities,o=(0,U.Z)(i,r);if(null==o||null===(n=o.children)||void 0===n||!n.length){var a=new Promise((function(n,i){e.setState((function(o){var a=o.loadedKeys,l=void 0===a?[]:a,s=o.loadingKeys,c=void 0===s?[]:s,u=e.props,d=u.loadData,h=u.onLoad;return!d||l.includes(r)||c.includes(r)?null:(d(t).then((function(){var i=e.state.loadedKeys,o=(0,K.L0)(i,r);null==h||h(o,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:o}),e.setState((function(e){return{loadingKeys:(0,K._5)(e.loadingKeys,r)}})),n()})).catch((function(t){if(e.setState((function(e){return{loadingKeys:(0,K._5)(e.loadingKeys,r)}})),e.loadingRetryTimes[r]=(e.loadingRetryTimes[r]||0)+1,e.loadingRetryTimes[r]>=10){var o=e.state.loadedKeys;(0,g.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:(0,K.L0)(o,r)}),n()}i(t)})),{loadingKeys:(0,K.L0)(c,r)})}))}));return a.catch((function(){})),a}})),(0,h.Z)((0,c.Z)(e),"onNodeMouseEnter",(function(t,n){var r=e.props.onMouseEnter;null==r||r({event:t,node:n})})),(0,h.Z)((0,c.Z)(e),"onNodeMouseLeave",(function(t,n){var r=e.props.onMouseLeave;null==r||r({event:t,node:n})})),(0,h.Z)((0,c.Z)(e),"onNodeContextMenu",(function(t,n){var r=e.props.onRightClick;r&&(t.preventDefault(),r({event:t,node:n}))})),(0,h.Z)((0,c.Z)(e),"onFocus",(function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];null==t||t.apply(void 0,r)})),(0,h.Z)((0,c.Z)(e),"onBlur",(function(){var t=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];null==t||t.apply(void 0,r)})),(0,h.Z)((0,c.Z)(e),"getTreeNodeRequiredProps",(function(){var t=e.state;return{expandedKeys:t.expandedKeys||[],selectedKeys:t.selectedKeys||[],loadedKeys:t.loadedKeys||[],loadingKeys:t.loadingKeys||[],checkedKeys:t.checkedKeys||[],halfCheckedKeys:t.halfCheckedKeys||[],dragOverNodeKey:t.dragOverNodeKey,dropPosition:t.dropPosition,keyEntities:t.keyEntities}})),(0,h.Z)((0,c.Z)(e),"setExpandedKeys",(function(t){var n=e.state,r=n.treeData,i=n.fieldNames,o=(0,M.oH)(r,t,i);e.setUncontrolledState({expandedKeys:t,flattenNodes:o},!0)})),(0,h.Z)((0,c.Z)(e),"onNodeExpand",(function(t,n){var r=e.state.expandedKeys,i=e.state,o=i.listChanging,a=i.fieldNames,l=e.props,s=l.onExpand,c=l.loadData,u=n.expanded,d=n[a.key];if(!o){var h=r.includes(d),f=!u;if((0,g.ZP)(u&&h||!u&&!h,"Expand state not sync with index check"),r=f?(0,K.L0)(r,d):(0,K._5)(r,d),e.setExpandedKeys(r),null==s||s(r,{node:n,expanded:f,nativeEvent:t.nativeEvent}),f&&c){var p=e.onNodeLoad(n);p&&p.then((function(){var t=(0,M.oH)(e.state.treeData,r,a);e.setUncontrolledState({flattenNodes:t})})).catch((function(){var t=e.state.expandedKeys,n=(0,K._5)(t,d);e.setExpandedKeys(n)}))}}})),(0,h.Z)((0,c.Z)(e),"onListChangeStart",(function(){e.setUncontrolledState({listChanging:!0})})),(0,h.Z)((0,c.Z)(e),"onListChangeEnd",(function(){setTimeout((function(){e.setUncontrolledState({listChanging:!1})}))})),(0,h.Z)((0,c.Z)(e),"onActiveChange",(function(t){var n=e.state.activeKey,r=e.props,i=r.onActiveChange,o=r.itemScrollOffset,a=void 0===o?0:o;n!==t&&(e.setState({activeKey:t}),null!==t&&e.scrollTo({key:t,offset:a}),null==i||i(t))})),(0,h.Z)((0,c.Z)(e),"getActiveItem",(function(){var t=e.state,n=t.activeKey,r=t.flattenNodes;return null===n?null:r.find((function(e){return e.key===n}))||null})),(0,h.Z)((0,c.Z)(e),"offsetActiveKey",(function(t){var n=e.state,r=n.flattenNodes,i=n.activeKey,o=r.findIndex((function(e){return e.key===i}));-1===o&&t<0&&(o=r.length);var a=r[o=(o+t+r.length)%r.length];if(a){var l=a.key;e.onActiveChange(l)}else e.onActiveChange(null)})),(0,h.Z)((0,c.Z)(e),"onKeyDown",(function(t){var n=e.state,r=n.activeKey,i=n.expandedKeys,a=n.checkedKeys,l=n.fieldNames,s=e.props,c=s.onKeyDown,u=s.checkable,d=s.selectable;switch(t.which){case m.Z.UP:e.offsetActiveKey(-1),t.preventDefault();break;case m.Z.DOWN:e.offsetActiveKey(1),t.preventDefault()}var h=e.getActiveItem();if(h&&h.data){var f=e.getTreeNodeRequiredProps(),p=!1===h.data.isLeaf||!!(h.data[l.children]||[]).length,v=(0,M.F)((0,o.Z)((0,o.Z)({},(0,M.H8)(r,f)),{},{data:h.data,active:!0}));switch(t.which){case m.Z.LEFT:p&&i.includes(r)?e.onNodeExpand({},v):h.parent&&e.onActiveChange(h.parent.key),t.preventDefault();break;case m.Z.RIGHT:p&&!i.includes(r)?e.onNodeExpand({},v):h.children&&h.children.length&&e.onActiveChange(h.children[0].key),t.preventDefault();break;case m.Z.ENTER:case m.Z.SPACE:!u||v.disabled||!1===v.checkable||v.disableCheckbox?u||!d||v.disabled||!1===v.selectable||e.onNodeSelect({},v):e.onNodeCheck({},v,!a.includes(r))}}null==c||c(t)})),(0,h.Z)((0,c.Z)(e),"setUncontrolledState",(function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var i=!1,a=!0,l={};Object.keys(t).forEach((function(n){e.props.hasOwnProperty(n)?a=!1:(i=!0,l[n]=t[n])})),!i||n&&!a||e.setState((0,o.Z)((0,o.Z)({},l),r))}})),(0,h.Z)((0,c.Z)(e),"scrollTo",(function(t){e.listRef.current.scrollTo(t)})),e}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,t=e.activeKey,n=e.itemScrollOffset,r=void 0===n?0:n;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset:r}))}},{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 e,t=this.state,n=t.focused,o=t.flattenNodes,a=t.keyEntities,l=t.draggingNodeKey,s=t.activeKey,c=t.dropLevelOffset,u=t.dropContainerKey,d=t.dropTargetKey,f=t.dropPosition,m=t.dragOverNodeKey,g=t.indent,b=this.props,w=b.prefixCls,C=b.className,k=b.style,A=b.showLine,S=b.focusable,E=b.tabIndex,N=void 0===E?0:E,L=b.selectable,M=b.showIcon,D=b.icon,P=b.switcherIcon,Z=b.draggable,B=b.checkable,T=b.checkStrictly,j=b.disabled,I=b.motion,F=b.loadData,O=b.filterTreeNode,R=b.height,W=b.itemHeight,z=b.scrollWidth,H=b.virtual,K=b.titleRender,Y=b.dropIndicatorRender,U=b.onContextMenu,G=b.onScroll,X=b.direction,Q=b.rootClassName,J=b.rootStyle,q=(0,v.Z)(this.props,{aria:!0,data:!0});Z&&(e="object"===(0,i.Z)(Z)?Z:"function"==typeof Z?{nodeDraggable:Z}:{});var _={prefixCls:w,selectable:L,showIcon:M,icon:D,switcherIcon:P,draggable:e,draggingNodeKey:l,checkable:B,checkStrictly:T,disabled:j,keyEntities:a,dropLevelOffset:c,dropContainerKey:u,dropTargetKey:d,dropPosition:f,dragOverNodeKey:m,indent:g,direction:X,dropIndicatorRender:Y,loadData:F,filterTreeNode:O,titleRender:K,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 y.createElement(x.k.Provider,{value:_},y.createElement("div",{className:p()(w,C,Q,(0,h.Z)((0,h.Z)((0,h.Z)({},"".concat(w,"-show-line"),A),"".concat(w,"-focused"),n),"".concat(w,"-active-focused"),null!==s)),style:J},y.createElement(V,(0,r.Z)({ref:this.listRef,prefixCls:w,style:k,data:o,disabled:j,selectable:L,checkable:!!B,motion:I,dragging:null!==l,height:R,itemHeight:W,virtual:H,focusable:S,focused:n,tabIndex:N,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:U,onScroll:G,scrollWidth:z},this.getTreeNodeRequiredProps(),q))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,i={prevProps:e};function a(t){return!r&&e.hasOwnProperty(t)||r&&r[t]!==e[t]}var l=t.fieldNames;if(a("fieldNames")&&(l=(0,M.w$)(e.fieldNames),i.fieldNames=l),a("treeData")?n=e.treeData:a("children")&&((0,g.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=(0,M.zn)(e.children)),n){i.treeData=n;var s=(0,M.I8)(n,{fieldNames:l});i.keyEntities=(0,o.Z)((0,h.Z)({},I,O),s.keyEntities)}var c,u=i.keyEntities||t.keyEntities;if(a("expandedKeys")||r&&a("autoExpandParent"))i.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?(0,K.r7)(e.expandedKeys,u):e.expandedKeys;else if(!r&&e.defaultExpandAll){var d=(0,o.Z)({},u);delete d[I];var f=[];Object.keys(d).forEach((function(e){var t=d[e];t.children&&t.children.length&&f.push(t.key)})),i.expandedKeys=f}else!r&&e.defaultExpandedKeys&&(i.expandedKeys=e.autoExpandParent||e.defaultExpandParent?(0,K.r7)(e.defaultExpandedKeys,u):e.defaultExpandedKeys);if(i.expandedKeys||delete i.expandedKeys,n||i.expandedKeys){var p=(0,M.oH)(n||t.treeData,i.expandedKeys||t.expandedKeys,l);i.flattenNodes=p}if((e.selectable&&(a("selectedKeys")?i.selectedKeys=(0,K.BT)(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(i.selectedKeys=(0,K.BT)(e.defaultSelectedKeys,e))),e.checkable)&&(a("checkedKeys")?c=(0,K.E6)(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?c=(0,K.E6)(e.defaultCheckedKeys)||{}:n&&(c=(0,K.E6)(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),c)){var m=c,v=m.checkedKeys,y=void 0===v?[]:v,x=m.halfCheckedKeys,b=void 0===x?[]:x;if(!e.checkStrictly){var w=(0,Y.S)(y,!0,u);y=w.checkedKeys,b=w.halfCheckedKeys}i.checkedKeys=y,i.halfCheckedKeys=b}return a("loadedKeys")&&(i.loadedKeys=e.loadedKeys),i}}]),n}(y.Component);(0,h.Z)(G,"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:b,allowDrop:function(){return!0},expandAction:!1}),(0,h.Z)(G,"TreeNode",N.Z);var X=G},82661:function(e,t,n){"use strict";n.d(t,{BT:function(){return f},E6:function(){return p},L0:function(){return s},OM:function(){return h},_5:function(){return l},r7:function(){return m},wA:function(){return u},yx:function(){return c}});var r=n(94480),i=n(76190),o=n(48736),a=(n(59301),n(639),n(65065));n(34061);function l(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function s(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function c(e){return e.split("-")}function u(e,t){var n=[];return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){var r=t.key,i=t.children;n.push(r),e(i)}))}((0,a.Z)(t,e).children),n}function d(e){if(e.parent){var t=c(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function h(e,t,n,r,i,o,l,s,u,h){var f,p=e.clientX,m=e.clientY,v=e.target.getBoundingClientRect(),g=v.top,y=v.height,x=(("rtl"===h?-1:1)*(((null==i?void 0:i.x)||0)-p)-12)/r,b=u.filter((function(e){var t;return null===(t=s[e])||void 0===t||null===(t=t.children)||void 0===t?void 0:t.length})),w=(0,a.Z)(s,n.eventKey);if(m<g+y/2){var C=l.findIndex((function(e){return e.key===w.key})),k=l[C<=0?0:C-1].key;w=(0,a.Z)(s,k)}var A=w.key,S=w,E=w.key,N=0,L=0;if(!b.includes(A))for(var M=0;M<x&&d(w);M+=1)w=w.parent,L+=1;var D,P=t.data,Z=w.node,B=!0;return D=c(w.pos),0===Number(D[D.length-1])&&0===w.level&&m<g+y/2&&o({dragNode:P,dropNode:Z,dropPosition:-1})&&w.key===n.eventKey?N=-1:(S.children||[]).length&&b.includes(E)?o({dragNode:P,dropNode:Z,dropPosition:0})?N=0:B=!1:0===L?x>-1.5?o({dragNode:P,dropNode:Z,dropPosition:1})?N=1:B=!1:o({dragNode:P,dropNode:Z,dropPosition:0})?N=0:o({dragNode:P,dropNode:Z,dropPosition:1})?N=1:B=!1:o({dragNode:P,dropNode:Z,dropPosition:1})?N=1:B=!1,{dropPosition:N,dropLevelOffset:L,dropTargetKey:w.key,dropTargetPos:w.pos,dragOverNodeKey:E,dropContainerKey:0===N?null:(null===(f=w.parent)||void 0===f?void 0:f.key)||null,dropAllowed:B}}function f(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function p(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,i.Z)(e))return(0,o.ZP)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function m(e,t){var n=new Set;function i(e){if(!n.has(e)){var r=(0,a.Z)(t,e);if(r){n.add(e);var o=r.parent;r.node.disabled||o&&i(o.key)}}}return(e||[]).forEach((function(e){i(e)})),(0,r.Z)(n)}},34643:function(e,t,n){"use strict";n.d(t,{S:function(){return l}});var r=n(48736),i=n(65065);function o(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function a(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,i=t.checkable;return!(!n&&!r)||!1===i}function l(e,t,n,l){var s,c=[];s=l||a;var u,d=new Set(e.filter((function(e){var t=!!(0,i.Z)(n,e);return t||c.push(e),t}))),h=new Map,f=0;return Object.keys(n).forEach((function(e){var t=n[e],r=t.level,i=h.get(r);i||(i=new Set,h.set(r,i)),i.add(t),f=Math.max(f,r)})),(0,r.ZP)(!c.length,"Tree missing follow keys: ".concat(c.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),u=!0===t?function(e,t,n,r){for(var i=new Set(e),a=new Set,l=0;l<=n;l+=1)(t.get(l)||new Set).forEach((function(e){var t=e.key,n=e.node,o=e.children,a=void 0===o?[]:o;i.has(t)&&!r(n)&&a.filter((function(e){return!r(e.node)})).forEach((function(e){i.add(e.key)}))}));for(var s=new Set,c=n;c>=0;c-=1)(t.get(c)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!s.has(e.parent.key))if(r(e.parent.node))s.add(t.key);else{var o=!0,l=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=i.has(t);o&&!n&&(o=!1),l||!n&&!a.has(t)||(l=!0)})),o&&i.add(t.key),l&&a.add(t.key),s.add(t.key)}}));return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(o(a,i))}}(d,h,f,s):function(e,t,n,r,i){for(var a=new Set(e),l=new Set(t),s=0;s<=r;s+=1)(n.get(s)||new Set).forEach((function(e){var t=e.key,n=e.node,r=e.children,o=void 0===r?[]:r;a.has(t)||l.has(t)||i(n)||o.filter((function(e){return!i(e.node)})).forEach((function(e){a.delete(e.key)}))}));l=new Set;for(var c=new Set,u=r;u>=0;u-=1)(n.get(u)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!i(n)&&e.parent&&!c.has(e.parent.key))if(i(e.parent.node))c.add(t.key);else{var r=!0,o=!1;(t.children||[]).filter((function(e){return!i(e.node)})).forEach((function(e){var t=e.key,n=a.has(t);r&&!n&&(r=!1),o||!n&&!l.has(t)||(o=!0)})),r||a.delete(t.key),o&&l.add(t.key),c.add(t.key)}}));return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(o(l,a))}}(d,t.halfCheckedKeys,h,f,s),u}},65065:function(e,t,n){"use strict";function r(e,t){return e[t]}n.d(t,{Z:function(){return r}})},34061:function(e,t,n){"use strict";n.d(t,{F:function(){return b},H8:function(){return x},I8:function(){return y},km:function(){return f},oH:function(){return v},w$:function(){return p},zn:function(){return m}});var r=n(76190),i=n(94480),o=n(33885),a=n(75931),l=n(11592),s=n(2738),c=n(48736),u=n(65065),d=["children"];function h(e,t){return"".concat(e,"-").concat(t)}function f(e,t){return null!=e?e:t}function p(e){var t=e||{},n=t.title||"title";return{title:n,_title:t._title||[n],key:t.key||"key",children:t.children||"children"}}function m(e){return function e(t){return(0,l.Z)(t).map((function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return(0,c.ZP)(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,r=t.props,i=r.children,l=(0,a.Z)(r,d),s=(0,o.Z)({key:n},l),u=e(i);return u.length&&(s.children=u),s})).filter((function(e){return e}))}(e)}function v(e,t,n){var r=p(n),o=r._title,a=r.key,l=r.children,c=new Set(!0===t?[]:t),u=[];return function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(d,p){for(var m,v=h(r?r.pos:"0",p),g=f(d[a],v),y=0;y<o.length;y+=1){var x=o[y];if(void 0!==d[x]){m=d[x];break}}var b=Object.assign((0,s.Z)(d,[].concat((0,i.Z)(o),[a,l])),{title:m,key:g,parent:r,pos:v,children:null,data:d,isStart:[].concat((0,i.Z)(r?r.isStart:[]),[0===p]),isEnd:[].concat((0,i.Z)(r?r.isEnd:[]),[p===n.length-1])});return u.push(b),!0===t||c.has(g)?b.children=e(d[l]||[],b):b.children=[],b}))}(e),u}function g(e,t,n){var o,a=("object"===(0,r.Z)(n)?n:{externalGetKey:n})||{},l=a.childrenPropName,s=a.externalGetKey,c=p(a.fieldNames),u=c.key,d=c.children,m=l||d;s?"string"==typeof s?o=function(e){return e[s]}:"function"==typeof s&&(o=function(e){return s(e)}):o=function(e,t){return f(e[u],t)},function n(r,a,l,s){var c=r?r[m]:e,u=r?h(l.pos,a):"0",d=r?[].concat((0,i.Z)(s),[r]):[];if(r){var f=o(r,u),p={node:r,index:a,pos:u,key:f,parentPos:l.node?l.pos:null,level:l.level+1,nodes:d};t(p)}c&&c.forEach((function(e,t){n(e,t,{node:r,pos:u,level:l?l.level+1:-1},d)}))}(null)}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,i=t.onProcessFinished,o=t.externalGetKey,a=t.childrenPropName,l=t.fieldNames,s=arguments.length>2?arguments[2]:void 0,c=o||s,u={},d={},h={posEntities:u,keyEntities:d};return n&&(h=n(h)||h),g(e,(function(e){var t=e.node,n=e.index,i=e.pos,o=e.key,a=e.parentPos,l=e.level,s={node:t,nodes:e.nodes,index:n,key:o,pos:i,level:l},c=f(o,i);u[i]=s,d[c]=s,s.parent=u[a],s.parent&&(s.parent.children=s.parent.children||[],s.parent.children.push(s)),r&&r(s,h)}),{externalGetKey:c,childrenPropName:a,fieldNames:l}),i&&i(h),h}function x(e,t){var n=t.expandedKeys,r=t.selectedKeys,i=t.loadedKeys,o=t.loadingKeys,a=t.checkedKeys,l=t.halfCheckedKeys,s=t.dragOverNodeKey,c=t.dropPosition,d=t.keyEntities,h=(0,u.Z)(d,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==i.indexOf(e),loading:-1!==o.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(h?h.pos:""),dragOver:s===e&&0===c,dragOverGapTop:s===e&&-1===c,dragOverGapBottom:s===e&&1===c}}function b(e){var t=e.data,n=e.expanded,r=e.selected,i=e.checked,a=e.loaded,l=e.loading,s=e.halfChecked,u=e.dragOver,d=e.dragOverGapTop,h=e.dragOverGapBottom,f=e.pos,p=e.active,m=e.eventKey,v=(0,o.Z)((0,o.Z)({},t),{},{expanded:n,selected:r,checked:i,loaded:a,loading:l,halfChecked:s,dragOver:u,dragOverGapTop:d,dragOverGapBottom:h,pos:f,active:p,key:m});return"props"in v||Object.defineProperty(v,"props",{get:function(){return(0,c.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),v}},8224:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(4676);function i(e,t,n,i){var o=r.unstable_batchedUpdates?function(e){r.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,o,i),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,o,i)}}}},24514:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});var r=n(47273),i=function(e){if((0,r.Z)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1};function o(e,t){return Array.isArray(e)||void 0===t?i(e):function(e,t){if(!i(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r}(e,t)}},48911:function(e,t,n){"use strict";n.d(t,{Z:function(){return O}});var r=n(54476),i=n(76190),o=n(33885),a=n(20068),l=n(42978),s=n(75931),c=n(92310),u=n.n(c),d=n(29301),h=n(70425),f=n(34280),p=n(59301),m=n(4676),v=p.forwardRef((function(e,t){var n=e.height,i=e.offsetY,l=e.offsetX,s=e.children,c=e.prefixCls,h=e.onInnerResize,f=e.innerProps,m=e.rtl,v=e.extra,g={},y={display:"flex",flexDirection:"column"};return void 0!==i&&(g={height:n,position:"relative",overflow:"hidden"},y=(0,o.Z)((0,o.Z)({},y),{},(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({transform:"translateY(".concat(i,"px)")},m?"marginRight":"marginLeft",-l),"position","absolute"),"left",0),"right",0),"top",0))),p.createElement("div",{style:g},p.createElement(d.Z,{onResize:function(e){e.offsetHeight&&h&&h()}},p.createElement("div",(0,r.Z)({style:y,className:u()((0,a.Z)({},"".concat(c,"-holder-inner"),c)),ref:t},f),s,v)))}));v.displayName="Filler";var g=v;function y(e){var t=e.children,n=e.setRef,r=p.useCallback((function(e){n(e)}),[]);return p.cloneElement(t,{ref:r})}function x(e,t,n){var r=p.useState(e),i=(0,l.Z)(r,2),o=i[0],a=i[1],s=p.useState(null),c=(0,l.Z)(s,2),u=c[0],d=c[1];return p.useEffect((function(){var r=function(e,t,n){var r,i,o=e.length,a=t.length;if(0===o&&0===a)return null;o<a?(r=e,i=t):(r=t,i=e);var l={__EMPTY_ITEM__:!0};function s(e){return void 0!==e?n(e):l}for(var c=null,u=1!==Math.abs(o-a),d=0;d<i.length;d+=1){var h=s(r[d]);if(h!==s(i[d])){c=d,u=u||h!==s(i[d+1]);break}}return null===c?null:{index:c,multiple:u}}(o||[],e||[],t);void 0!==(null==r?void 0:r.index)&&(null==n||n(r.index),d(e[r.index])),a(e)}),[e]),[u]}var b=n(16089),w="object"===("undefined"==typeof navigator?"undefined":(0,i.Z)(navigator))&&/Firefox/i.test(navigator.userAgent),C=function(e,t,n,r){var i=(0,p.useRef)(!1),o=(0,p.useRef)(null);function a(){clearTimeout(o.current),i.current=!0,o.current=setTimeout((function(){i.current=!1}),50)}var l=(0,p.useRef)({top:e,bottom:t,left:n,right:r});return l.current.top=e,l.current.bottom=t,l.current.left=n,l.current.right=r,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e?t<0&&l.current.left||t>0&&l.current.right:t<0&&l.current.top||t>0&&l.current.bottom;return n&&r?(clearTimeout(o.current),i.current=!1):r&&!i.current||a(),!i.current&&r}};function k(e,t,n,r,i,o,a){var l=(0,p.useRef)(0),s=(0,p.useRef)(null),c=(0,p.useRef)(null),u=(0,p.useRef)(!1),d=C(t,n,r,i);var h=(0,p.useRef)(null),f=(0,p.useRef)(null);return[function(t){if(e){b.Z.cancel(f.current),f.current=(0,b.Z)((function(){h.current=null}),2);var n=t.deltaX,r=t.deltaY,i=t.shiftKey,p=n,m=r;("sx"===h.current||!h.current&&i&&r&&!n)&&(p=r,m=0,h.current="sx");var v=Math.abs(p),g=Math.abs(m);null===h.current&&(h.current=o&&v>g?"x":"y"),"y"===h.current?function(e,t){if(b.Z.cancel(s.current),!d(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,l.current+=t,c.current=t,w||n.preventDefault(),s.current=(0,b.Z)((function(){var e=u.current?10:1;a(l.current*e,!1),l.current=0})))}}(t,m):function(e,t){a(t,!0),w||e.preventDefault()}(t,p)}},function(t){e&&(u.current=t.detail===c.current)}]}var A=n(67732),S=n(83652),E=function(){function e(){(0,A.Z)(this,e),(0,a.Z)(this,"maps",void 0),(0,a.Z)(this,"id",0),(0,a.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,S.Z)(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function N(e){var t=parseFloat(e);return isNaN(t)?0:t}var L=14/15;function M(e){return Math.floor(Math.pow(e,.5))}function D(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var P=p.forwardRef((function(e,t){var n=e.prefixCls,r=e.rtl,i=e.scrollOffset,s=e.scrollRange,c=e.onStartMove,d=e.onStopMove,h=e.onScroll,f=e.horizontal,m=e.spinSize,v=e.containerSize,g=e.style,y=e.thumbStyle,x=e.showScrollBar,w=p.useState(!1),C=(0,l.Z)(w,2),k=C[0],A=C[1],S=p.useState(null),E=(0,l.Z)(S,2),N=E[0],L=E[1],M=p.useState(null),P=(0,l.Z)(M,2),Z=P[0],B=P[1],T=!r,j=p.useRef(),I=p.useRef(),F=p.useState(x),O=(0,l.Z)(F,2),R=O[0],W=O[1],z=p.useRef(),H=function(){!0!==x&&!1!==x&&(clearTimeout(z.current),W(!0),z.current=setTimeout((function(){W(!1)}),3e3))},V=s-v||0,K=v-m||0,Y=p.useMemo((function(){return 0===i||0===V?0:i/V*K}),[i,V,K]),U=p.useRef({top:Y,dragging:k,pageY:N,startTop:Z});U.current={top:Y,dragging:k,pageY:N,startTop:Z};var G=function(e){A(!0),L(D(e,f)),B(U.current.top),c(),e.stopPropagation(),e.preventDefault()};p.useEffect((function(){var e=function(e){e.preventDefault()},t=j.current,n=I.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",G,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",G)}}),[]);var X=p.useRef();X.current=V;var Q=p.useRef();Q.current=K,p.useEffect((function(){if(k){var e,t=function(t){var n=U.current,r=n.dragging,i=n.pageY,o=n.startTop;b.Z.cancel(e);var a=j.current.getBoundingClientRect(),l=v/(f?a.width:a.height);if(r){var s=(D(t,f)-i)*l,c=o;!T&&f?c-=s:c+=s;var u=X.current,d=Q.current,p=d?c/d:0,m=Math.ceil(p*u);m=Math.max(m,0),m=Math.min(m,u),e=(0,b.Z)((function(){h(m,f)}))}},n=function(){A(!1),d()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),b.Z.cancel(e)}}}),[k]),p.useEffect((function(){return H(),function(){clearTimeout(z.current)}}),[i]),p.useImperativeHandle(t,(function(){return{delayHidden:H}}));var J="".concat(n,"-scrollbar"),q={position:"absolute",visibility:R?null:"hidden"},_={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return f?(Object.assign(q,{height:8,left:0,right:0,bottom:0}),Object.assign(_,(0,a.Z)({height:"100%",width:m},T?"left":"right",Y))):(Object.assign(q,(0,a.Z)({width:8,top:0,bottom:0},T?"right":"left",0)),Object.assign(_,{width:"100%",height:m,top:Y})),p.createElement("div",{ref:j,className:u()(J,(0,a.Z)((0,a.Z)((0,a.Z)({},"".concat(J,"-horizontal"),f),"".concat(J,"-vertical"),!f),"".concat(J,"-visible"),R)),style:(0,o.Z)((0,o.Z)({},q),g),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:H},p.createElement("div",{ref:I,className:u()("".concat(J,"-thumb"),(0,a.Z)({},"".concat(J,"-thumb-moving"),k)),style:(0,o.Z)((0,o.Z)({},_),y),onMouseDown:G}))}));function Z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,20),Math.floor(n)}var B=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],T=[],j={overflowY:"auto",overflowAnchor:"none"};function I(e,t){var n=e.prefixCls,c=void 0===n?"rc-virtual-list":n,v=e.className,w=e.height,A=e.itemHeight,S=e.fullHeight,I=void 0===S||S,F=e.style,O=e.data,R=e.children,W=e.itemKey,z=e.virtual,H=e.direction,V=e.scrollWidth,K=e.component,Y=void 0===K?"div":K,U=e.onScroll,G=e.onVirtualScroll,X=e.onVisibleChange,Q=e.innerProps,J=e.extraRender,q=e.styles,_=e.showScrollBar,$=void 0===_?"optional":_,ee=(0,s.Z)(e,B),te=p.useCallback((function(e){return"function"==typeof W?W(e):null==e?void 0:e[W]}),[W]),ne=function(e,t,n){var r=p.useState(0),i=(0,l.Z)(r,2),o=i[0],a=i[1],s=(0,p.useRef)(new Map),c=(0,p.useRef)(new E),u=(0,p.useRef)(0);function d(){u.current+=1}function h(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];d();var t=function(){var e=!1;s.current.forEach((function(t,n){if(t&&t.offsetParent){var r=t.offsetHeight,i=getComputedStyle(t),o=i.marginTop,a=i.marginBottom,l=r+N(o)+N(a);c.current.get(n)!==l&&(c.current.set(n,l),e=!0)}})),e&&a((function(e){return e+1}))};if(e)t();else{u.current+=1;var n=u.current;Promise.resolve().then((function(){n===u.current&&t()}))}}return(0,p.useEffect)((function(){return d}),[]),[function(r,i){var o=e(r),a=s.current.get(o);i?(s.current.set(o,i),h()):s.current.delete(o),!a!=!i&&(i?null==t||t(r):null==n||n(r))},h,c.current,o]}(te,null,null),re=(0,l.Z)(ne,4),ie=re[0],oe=re[1],ae=re[2],le=re[3],se=!(!1===z||!w||!A),ce=p.useMemo((function(){return Object.values(ae.maps).reduce((function(e,t){return e+t}),0)}),[ae.id,ae.maps]),ue=se&&O&&(Math.max(A*O.length,ce)>w||!!V),de="rtl"===H,he=u()(c,(0,a.Z)({},"".concat(c,"-rtl"),de),v),fe=O||T,pe=(0,p.useRef)(),me=(0,p.useRef)(),ve=(0,p.useRef)(),ge=(0,p.useState)(0),ye=(0,l.Z)(ge,2),xe=ye[0],be=ye[1],we=(0,p.useState)(0),Ce=(0,l.Z)(we,2),ke=Ce[0],Ae=Ce[1],Se=(0,p.useState)(!1),Ee=(0,l.Z)(Se,2),Ne=Ee[0],Le=Ee[1],Me=function(){Le(!0)},De=function(){Le(!1)},Pe={getKey:te};function Ze(e){be((function(t){var n=function(e){var t=e;Number.isNaN(qe.current)||(t=Math.min(t,qe.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return pe.current.scrollTop=n,n}))}var Be=(0,p.useRef)({start:0,end:fe.length}),Te=(0,p.useRef)(),je=x(fe,te),Ie=(0,l.Z)(je,1)[0];Te.current=Ie;var Fe=p.useMemo((function(){if(!se)return{scrollHeight:void 0,start:0,end:fe.length-1,offset:void 0};var e;if(!ue)return{scrollHeight:(null===(e=me.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:fe.length-1,offset:void 0};for(var t,n,r,i=0,o=fe.length,a=0;a<o;a+=1){var l=fe[a],s=te(l),c=ae.get(s),u=i+(void 0===c?A:c);u>=xe&&void 0===t&&(t=a,n=i),u>xe+w&&void 0===r&&(r=a),i=u}return void 0===t&&(t=0,n=0,r=Math.ceil(w/A)),void 0===r&&(r=fe.length-1),{scrollHeight:i,start:t,end:r=Math.min(r+1,fe.length-1),offset:n}}),[ue,se,xe,fe,le,w]),Oe=Fe.scrollHeight,Re=Fe.start,We=Fe.end,ze=Fe.offset;Be.current.start=Re,Be.current.end=We,p.useLayoutEffect((function(){var e=ae.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],n=e.get(t),r=fe[Re];if(r&&void 0===n)if(te(r)===t){var i=ae.get(t)-A;Ze((function(e){return e+i}))}}ae.resetRecord()}),[Oe]);var He=p.useState({width:0,height:w}),Ve=(0,l.Z)(He,2),Ke=Ve[0],Ye=Ve[1],Ue=(0,p.useRef)(),Ge=(0,p.useRef)(),Xe=p.useMemo((function(){return Z(Ke.width,V)}),[Ke.width,V]),Qe=p.useMemo((function(){return Z(Ke.height,Oe)}),[Ke.height,Oe]),Je=Oe-w,qe=(0,p.useRef)(Je);qe.current=Je;var _e=xe<=0,$e=xe>=Je,et=ke<=0,tt=ke>=V,nt=C(_e,$e,et,tt),rt=function(){return{x:de?-ke:ke,y:xe}},it=(0,p.useRef)(rt()),ot=(0,h.zX)((function(e){if(G){var t=(0,o.Z)((0,o.Z)({},rt()),e);it.current.x===t.x&&it.current.y===t.y||(G(t),it.current=t)}}));function at(e,t){var n=e;t?((0,m.flushSync)((function(){Ae(n)})),ot()):Ze(n)}var lt=function(e){var t=e,n=V?V-Ke.width:0;return t=Math.max(t,0),t=Math.min(t,n)},st=(0,h.zX)((function(e,t){t?((0,m.flushSync)((function(){Ae((function(t){return lt(t+(de?-e:e))}))})),ot()):Ze((function(t){return t+e}))})),ct=k(se,_e,$e,et,tt,!!V,st),ut=(0,l.Z)(ct,2),dt=ut[0],ht=ut[1];!function(e,t,n){var r,i=(0,p.useRef)(!1),o=(0,p.useRef)(0),a=(0,p.useRef)(0),l=(0,p.useRef)(null),s=(0,p.useRef)(null),c=function(e){if(i.current){var t=Math.ceil(e.touches[0].pageX),r=Math.ceil(e.touches[0].pageY),l=o.current-t,c=a.current-r,u=Math.abs(l)>Math.abs(c);u?o.current=t:a.current=r;var d=n(u,u?l:c,!1,e);d&&e.preventDefault(),clearInterval(s.current),d&&(s.current=setInterval((function(){u?l*=L:c*=L;var e=Math.floor(u?l:c);(!n(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(s.current)}),16))}},u=function(){i.current=!1,r()},d=function(e){r(),1!==e.touches.length||i.current||(i.current=!0,o.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",c,{passive:!1}),l.current.addEventListener("touchend",u,{passive:!0}))};r=function(){l.current&&(l.current.removeEventListener("touchmove",c),l.current.removeEventListener("touchend",u))},(0,f.Z)((function(){return e&&t.current.addEventListener("touchstart",d,{passive:!0}),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",d),r(),clearInterval(s.current)}}),[e])}(se,pe,(function(e,t,n,r){var i=r;return!nt(e,t,n)&&((!i||!i._virtualHandled)&&(i&&(i._virtualHandled=!0),dt({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0))})),function(e,t,n){p.useEffect((function(){var r=t.current;if(e&&r){var i,o,a=!1,l=function(){b.Z.cancel(i)},s=function e(){l(),i=(0,b.Z)((function(){n(o),e()}))},c=function(){a=!1,l()},u=function(e){if(!e.target.draggable&&0===e.button){var t=e;t._virtualHandled||(t._virtualHandled=!0,a=!0)}},d=function(e){if(a){var t=D(e,!1),n=r.getBoundingClientRect(),i=n.top,c=n.bottom;t<=i?(o=-M(i-t),s()):t>=c?(o=M(t-c),s()):l()}};return r.addEventListener("mousedown",u),r.ownerDocument.addEventListener("mouseup",c),r.ownerDocument.addEventListener("mousemove",d),r.ownerDocument.addEventListener("dragend",c),function(){r.removeEventListener("mousedown",u),r.ownerDocument.removeEventListener("mouseup",c),r.ownerDocument.removeEventListener("mousemove",d),r.ownerDocument.removeEventListener("dragend",c),l()}}}),[e])}(ue,pe,(function(e){Ze((function(t){return t+e}))})),(0,f.Z)((function(){function e(e){var t=_e&&e.detail<0,n=$e&&e.detail>0;!se||t||n||e.preventDefault()}var t=pe.current;return t.addEventListener("wheel",dt,{passive:!1}),t.addEventListener("DOMMouseScroll",ht,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",dt),t.removeEventListener("DOMMouseScroll",ht),t.removeEventListener("MozMousePixelScroll",e)}}),[se,_e,$e]),(0,f.Z)((function(){if(V){var e=lt(ke);Ae(e),ot({x:e})}}),[Ke.width,V]);var ft=function(){var e,t;null===(e=Ue.current)||void 0===e||e.delayHidden(),null===(t=Ge.current)||void 0===t||t.delayHidden()},pt=function(e,t,n,r,a,s,c,u){var d=p.useRef(),h=p.useState(null),m=(0,l.Z)(h,2),v=m[0],g=m[1];return(0,f.Z)((function(){if(v&&v.times<10){if(!e.current)return void g((function(e){return(0,o.Z)({},e)}));s();var i=v.targetAlign,l=v.originAlign,u=v.index,d=v.offset,h=e.current.clientHeight,f=!1,p=i,m=null;if(h){for(var y=i||l,x=0,b=0,w=0,C=Math.min(t.length-1,u),k=0;k<=C;k+=1){var A=a(t[k]);b=x;var S=n.get(A);x=w=b+(void 0===S?r:S)}for(var E="top"===y?d:h-d,N=C;N>=0;N-=1){var L=a(t[N]),M=n.get(L);if(void 0===M){f=!0;break}if((E-=M)<=0)break}switch(y){case"top":m=b-d;break;case"bottom":m=w-h+d;break;default:var D=e.current.scrollTop;b<D?p="top":w>D+h&&(p="bottom")}null!==m&&c(m),m!==v.lastTop&&(f=!0)}f&&g((0,o.Z)((0,o.Z)({},v),{},{times:v.times+1,targetAlign:p,lastTop:m}))}}),[v,e.current]),function(e){if(null!=e){if(b.Z.cancel(d.current),"number"==typeof e)c(e);else if(e&&"object"===(0,i.Z)(e)){var n,r=e.align;n="index"in e?e.index:t.findIndex((function(t){return a(t)===e.key}));var o=e.offset;g({times:0,index:n,offset:void 0===o?0:o,originAlign:r})}}else u()}}(pe,fe,ae,A,te,(function(){return oe(!0)}),Ze,ft);p.useImperativeHandle(t,(function(){return{nativeElement:ve.current,getScrollInfo:rt,scrollTo:function(e){var t;(t=e)&&"object"===(0,i.Z)(t)&&("left"in t||"top"in t)?(void 0!==e.left&&Ae(lt(e.left)),pt(e.top)):pt(e)}}})),(0,f.Z)((function(){if(X){var e=fe.slice(Re,We+1);X(e,fe)}}),[Re,We,fe]);var mt=function(e,t,n,r){var i=p.useMemo((function(){return[new Map,[]]}),[e,n.id,r]),o=(0,l.Z)(i,2),a=o[0],s=o[1];return function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,l=a.get(i),c=a.get(o);if(void 0===l||void 0===c)for(var u=e.length,d=s.length;d<u;d+=1){var h,f=e[d],p=t(f);a.set(p,d);var m=null!==(h=n.get(p))&&void 0!==h?h:r;if(s[d]=(s[d-1]||0)+m,p===i&&(l=d),p===o&&(c=d),void 0!==l&&void 0!==c)break}return{top:s[l-1]||0,bottom:s[c]}}}(fe,te,ae,A),vt=null==J?void 0:J({start:Re,end:We,virtual:ue,offsetX:ke,offsetY:ze,rtl:de,getSize:mt}),gt=function(e,t,n,r,i,o,a,l){var s=l.getKey;return e.slice(t,n+1).map((function(e,n){var l=a(e,t+n,{style:{width:r},offsetX:i}),c=s(e);return p.createElement(y,{key:c,setRef:function(t){return o(e,t)}},l)}))}(fe,Re,We,V,ke,ie,R,Pe),yt=null;w&&(yt=(0,o.Z)((0,a.Z)({},I?"height":"maxHeight",w),j),se&&(yt.overflowY="hidden",V&&(yt.overflowX="hidden"),Ne&&(yt.pointerEvents="none")));var xt={};return de&&(xt.dir="rtl"),p.createElement("div",(0,r.Z)({ref:ve,style:(0,o.Z)((0,o.Z)({},F),{},{position:"relative"}),className:he},xt,ee),p.createElement(d.Z,{onResize:function(e){Ye({width:e.offsetWidth,height:e.offsetHeight})}},p.createElement(Y,{className:"".concat(c,"-holder"),style:yt,ref:pe,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==xe&&Ze(t),null==U||U(e),ot()},onMouseEnter:ft},p.createElement(g,{prefixCls:c,height:Oe,offsetX:ke,offsetY:ze,scrollWidth:V,onInnerResize:oe,ref:me,innerProps:Q,rtl:de,extra:vt},gt))),ue&&Oe>w&&p.createElement(P,{ref:Ue,prefixCls:c,scrollOffset:xe,scrollRange:Oe,rtl:de,onScroll:at,onStartMove:Me,onStopMove:De,spinSize:Qe,containerSize:Ke.height,style:null==q?void 0:q.verticalScrollBar,thumbStyle:null==q?void 0:q.verticalScrollBarThumb,showScrollBar:$}),ue&&V>Ke.width&&p.createElement(P,{ref:Ge,prefixCls:c,scrollOffset:ke,scrollRange:V,rtl:de,onScroll:at,onStartMove:Me,onStopMove:De,spinSize:Xe,containerSize:Ke.width,horizontal:!0,style:null==q?void 0:q.horizontalScrollBar,thumbStyle:null==q?void 0:q.horizontalScrollBarThumb,showScrollBar:$}))}var F=p.forwardRef(I);F.displayName="List";var O=F},25510:function(e){"use strict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XNtypQlgmVz3333s8023sQmLDJ6vqWC+vtTwPThIawrI4m7mWcjidEJATEAlTEhcV24yBsT0MbscAbSAw89YHt9aC+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+32L7b88sv2Bdvi1ho9KgTPz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+y478JPSbaN75xtG280UZhq/deH/mwzXx1pu20y062yz/ubBPfsqjtt+8X7MmHH7X11p5m//Otb9vqq69tN15/rZ140g/sxz/7ic0dO9Le99732YYbTLcVll/epq21tm20ySbzdzD17S9iy7cy7gZXyPw5UABLASztisMCWPIpVwBLASz5XNOBJwpg6QMs7CB59NFHbcsttwxU1Xb4kOhtvmK84vLf2zlnnWXHH3ucTZo4ySZNmmSjx4wOwbFYENiGO2nRybbKaqvaMccdazded4Mdeeih9tijj4Wg2lN/9rOwK2jG7XfY1b//vX3xC1+28YtOsF+feaZtseWWNmvOHLvplpsDYGG30Lrrrms//elPQ06Na66+OgCWww873LbeZhs76Yc/tD/84UY78cQT7cKLLrL37/FB+++v7G9rrLGmjSADLwnm5r7WlzyMlLbs+QnpS14P7bn5pltt749+xJZdehk78sgjbOONN7IllphiL738ou237352+SWX29hRY+17J37fVnjrCvbxT37C/vDHP9riUxcPcSwrLLO8vfDC32zGXXfZx/b+t5Cw8dvHn2Brr72O3XvfvfbZfT9jq6y+in1or73sA8ThjFvEDjn8SDvzF7+2xSZOtgM//2V7/7+83/508y32fz/8vp38s1Ns1PhF7Mprr7ZVlls+ZLcdM2qMjRnLoZEcc9C3zbtvbxCRyH1gZX4aluISKjEsbUvDAljySVcASwEs+VzTgScKYGkGLH0JZV+3q6+6yn7323PtW0cfbWuvsaZt+45t+/JdjCThGnlMRtioMWNssSmL2ft2+4Cdecav7bhvHWcv/O1vtsvOO9uJP/iBjRk5xh595CG76Y832gfe///sLYsvZr88/XTbfMstQv6Tm2+91fbYfY/g/thg/fUDYFl08mS7WoDl8CNtm222thN/eJLdfPNNAbj87ne/tX9833vtawd9LcTUAFiwrMx9ffb8RGucJzSq75yiESPt7rtn2JVXXm2f/cxnbf31N7Djjv2WTZ++QThO4PUR8+yggw6ys848y5576nk79LDDbM01VrPPf+m/QgDt6musbuedf74tOXVJe+WVl+0v9/3F9tjjQ/bIww/bN446Ouyauv322+yrB+5vSy+7tG2+xWb2trdvY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EjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SLQSFjqFdmSGQEjYASMgBEwAqsVge1b1x12GCr/8p6D/12tQrjeRsAIGAEjYASMQN0ITAhL3WJaOiNgBIyAETACRmC1I/C/+Ryxj68oilIAAAAASUVORK5CYII="},32637:function(e,t,n){"use strict";e.exports=n.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QO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QbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},19251:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(3208);function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,r.Z)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){s=!0,a=e},f:function(){try{l||null==n.return||n.return()}finally{if(s)throw a}}}}},16722:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});const r=e=>"object"==typeof e&&null!=e&&1===e.nodeType,i=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,o=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return i(n.overflowY,t)||i(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},a=(e,t,n,r,i,o,a,l)=>o<e&&a>t||o>e&&a<t?0:o<=e&&l<=n||a>=t&&l>=n?o-e-r:a>t&&l<n||o<e&&l>n?a-t+i:0,l=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},s=(e,t)=>{var n,i,s,c;if("undefined"==typeof document)return[];const{scrollMode:u,block:d,inline:h,boundary:f,skipOverflowHiddenElements:p}=t,m="function"==typeof f?f:e=>e!==f;if(!r(e))throw new TypeError("Invalid target");const v=document.scrollingElement||document.documentElement,g=[];let y=e;for(;r(y)&&m(y);){if(y=l(y),y===v){g.push(y);break}null!=y&&y===document.body&&o(y)&&!o(document.documentElement)||null!=y&&o(y,p)&&g.push(y)}const x=null!=(i=null==(n=window.visualViewport)?void 0:n.width)?i:innerWidth,b=null!=(c=null==(s=window.visualViewport)?void 0:s.height)?c:innerHeight,{scrollX:w,scrollY:C}=window,{height:k,width:A,top:S,right:E,bottom:N,left:L}=e.getBoundingClientRect(),{top:M,right:D,bottom:P,left:Z}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let B="start"===d||"nearest"===d?S-M:"end"===d?N+P:S+k/2-M+P,T="center"===h?L+A/2-Z+D:"end"===h?E+D:L-Z;const j=[];for(let e=0;e<g.length;e++){const t=g[e],{height:n,width:r,top:i,right:l,bottom:s,left:c}=t.getBoundingClientRect();if("if-needed"===u&&S>=0&&L>=0&&N<=b&&E<=x&&(t===v&&!o(t)||S>=i&&N<=s&&L>=c&&E<=l))return j;const f=getComputedStyle(t),p=parseInt(f.borderLeftWidth,10),m=parseInt(f.borderTopWidth,10),y=parseInt(f.borderRightWidth,10),M=parseInt(f.borderBottomWidth,10);let D=0,P=0;const Z="offsetWidth"in t?t.offsetWidth-t.clientWidth-p-y:0,I="offsetHeight"in t?t.offsetHeight-t.clientHeight-m-M:0,F="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,O="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(v===t)D="start"===d?B:"end"===d?B-b:"nearest"===d?a(C,C+b,b,m,M,C+B,C+B+k,k):B-b/2,P="start"===h?T:"center"===h?T-x/2:"end"===h?T-x:a(w,w+x,x,p,y,w+T,w+T+A,A),D=Math.max(0,D+C),P=Math.max(0,P+w);else{D="start"===d?B-i-m:"end"===d?B-s+M+I:"nearest"===d?a(i,s,n,m,M+I,B,B+k,k):B-(i+n/2)+I/2,P="start"===h?T-c-p:"center"===h?T-(c+r/2)+Z/2:"end"===h?T-l+y+Z:a(c,l,r,p,y+Z,T,T+A,A);const{scrollLeft:e,scrollTop:o}=t;D=0===O?0:Math.max(0,Math.min(o+D/O,t.scrollHeight-n/O+I)),P=0===F?0:Math.max(0,Math.min(e+P/F,t.scrollWidth-r/F+Z)),B+=o-D,T+=e-P}j.push({el:t,top:D,left:P})}return j};function c(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(s(e,t));const r="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:i,top:o,left:a}of s(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"})(t))){const e=o-n.top+n.bottom,t=a-n.left+n.right;i.scroll({top:e,left:t,behavior:r})}}}}]);