define(["gpui-style-inject","react","mobx"],(function(e,t,n){"use strict";e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;var r="default"in t?t.default:t,o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};
/*! *****************************************************************************
    Copyright (c) Microsoft Corporation.

    Permission to use, copy, modify, and/or distribute this software for any
    purpose with or without fee is hereby granted.

    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
    PERFORMANCE OF THIS SOFTWARE.
    ***************************************************************************** */function i(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}e("html, body, #root {\n  width: 100%;\n  height: 100%;\n  margin: 0;\n  padding: 0;\n  overflow: hidden; }\n\n.g__index {\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  height: 100%; }\n");var a="index-module_content__3pGva",l="index-module_arrow__2xg5Y",c="index-module_line__3wtQv",d="index-module_mark__3p2gZ",u="index-module_board__mBsb5",s="index-module_ring__19xh7",f="index-module_ring__border__2A2Ml",p="index-module_ring__content__2wPuk",m="index-module_data__3wNSC",_="index-module_unit__2i6cr",h="index-module_name__3Ec77";if(e(".index-module_content__3pGva {\n  display: flex;\n  justify-content: space-around;\n  align-items: center;\n  box-sizing: border-box;\n  padding: 0 2%;\n  width: 100%;\n  height: 100%; }\n  .index-module_content__3pGva .index-module_arrow__2xg5Y {\n    margin-bottom: 14vh;\n    display: flex;\n    align-items: center;\n    width: 20vh; }\n    .index-module_content__3pGva .index-module_arrow__2xg5Y .index-module_line__3wtQv {\n      flex: 1;\n      height: 1vh; }\n    .index-module_content__3pGva .index-module_arrow__2xg5Y .index-module_mark__3p2gZ {\n      border: 2vh solid transparent;\n      width: 0;\n      height: 0; }\n  .index-module_content__3pGva .index-module_board__mBsb5 {\n    display: flex;\n    flex-direction: column;\n    align-items: center;\n    width: 40vh; }\n    .index-module_content__3pGva .index-module_board__mBsb5 .index-module_ring__19xh7 {\n      position: relative;\n      width: 40vh;\n      height: 40vh;\n      border-radius: 50%;\n      overflow: hidden; }\n      .index-module_content__3pGva .index-module_board__mBsb5 .index-module_ring__border__2A2Ml {\n        position: absolute;\n        top: 0;\n        left: 0;\n        width: 100%;\n        height: 100%; }\n      .index-module_content__3pGva .index-module_board__mBsb5 .index-module_ring__content__2wPuk {\n        display: flex;\n        flex-direction: column;\n        justify-content: center;\n        align-items: center;\n        width: 100%;\n        height: 100%;\n        border-radius: 50%; }\n        .index-module_content__3pGva .index-module_board__mBsb5 .index-module_ring__content__2wPuk .index-module_data__3wNSC {\n          line-height: 8vh;\n          font-size: 8vh;\n          color: #cde0ff; }\n          .index-module_content__3pGva .index-module_board__mBsb5 .index-module_ring__content__2wPuk .index-module_data__3wNSC .index-module_unit__2i6cr {\n            padding-left: 1vh;\n            font-size: 4vh; }\n    .index-module_content__3pGva .index-module_board__mBsb5 .index-module_name__3Ec77 {\n      margin-top: 7vh;\n      line-height: 7vh;\n      font-size: 4vh;\n      color: #cde0ff; }\n"),!t.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!n.spy)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function y(){var e=t.useState(0)[1];return t.useCallback((function(){e((function(e){return e+1}))}),[])}function b(e){return n.getDependencyTree(e)}var w,g=1e4,x=new Set;function E(){void 0===w&&(w=setTimeout(C,1e4))}function C(){w=void 0;var e=Date.now();x.forEach((function(t){var n=t.current;n&&e>=n.cleanAt&&(n.reaction.dispose(),t.current=null,x.delete(t))})),x.size>0&&E()}var O={};function R(e){return"observer"+e}function j(e,t,o){void 0===t&&(t="observed"),void 0===o&&(o=O);var i,a=(o.useForceUpdate||y)(),l=r.useRef(null);if(!l.current){var c=new n.Reaction(R(t),(function(){d.mounted?a():(c.dispose(),l.current=null)})),d=function(e){return{cleanAt:Date.now()+g,reaction:e}}(c);l.current=d,i=l,x.add(i),E()}var u,s,f=l.current.reaction;if(r.useDebugValue(f,b),r.useEffect((function(){var e;return e=l,x.delete(e),l.current?l.current.mounted=!0:(l.current={reaction:new n.Reaction(R(t),(function(){a()})),cleanAt:1/0},a()),function(){l.current.reaction.dispose(),l.current=null}}),[]),f.track((function(){try{u=e()}catch(e){s=e}})),s)throw s;return u}function k(e,n){var r,o,i,a=v({forwardRef:!1},n),l=e.displayName||e.name,c=function(t,n){return j((function(){return e(t,n)}),l)};return c.displayName=l,r=a.forwardRef?t.memo(t.forwardRef(c)):t.memo(c),o=e,i=r,Object.keys(o).forEach((function(e){P[e]||Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(o,e))})),r.displayName=l,r}var P={$$typeof:!0,render:!0,compare:!0,type:!0};function S(e){var t=e.children,n=e.render,r=t||n;return"function"!=typeof r?null:j(r)}function N(e,t,n,r,o){var i="children"===t?"render":"children",a="function"==typeof e[t],l="function"==typeof e[i];return a&&l?new Error("MobX Observer: Do not use children and render in the same time in`"+n):a||l?null:new Error("Invalid prop `"+o+"` of type `"+typeof e[t]+"` supplied to `"+n+"`, expected `function`.")}S.propTypes={children:N,render:N},S.displayName="Observer";var A=0;var D={};function G(e){return D[e]||(D[e]=function(e){if("function"==typeof Symbol)return Symbol(e);var t="__$mobx-react "+e+" ("+A+")";return A++,t}(e)),D[e]}function B(e,t){if(F(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.hasOwnProperty.call(t,n[o])||!F(e[n[o]],t[n[o]]))return!1;return!0}function F(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function $(e,t,n){Object.hasOwnProperty.call(e,t)?e[t]=n:Object.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})}var M=G("patchMixins"),U=G("patchedDefinition");function Y(e,t){for(var n=this,r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];t.locks++;try{var a;return null!=e&&(a=e.apply(this,o)),a}finally{t.locks--,0===t.locks&&t.methods.forEach((function(e){e.apply(n,o)}))}}function z(e,t){return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];Y.call.apply(Y,[this,e,t].concat(r))}}function I(e,t,n){var r=function(e,t){var n=e[M]=e[M]||{},r=n[t]=n[t]||{};return r.locks=r.locks||0,r.methods=r.methods||[],r}(e,t);r.methods.indexOf(n)<0&&r.methods.push(n);var o=Object.getOwnPropertyDescriptor(e,t);if(!o||!o[U]){var i=e[t],a=function e(t,n,r,o,i){var a,l=z(i,o);return(a={})[U]=!0,a.get=function(){return l},a.set=function(i){if(this===t)l=z(i,o);else{var a=e(this,n,r,o,i);Object.defineProperty(this,n,a)}},a.configurable=!0,a.enumerable=r,a}(e,t,o?o.enumerable:void 0,r,i);Object.defineProperty(e,t,a)}}var L=n.$mobx||"$mobx",T=G("isUnmounted"),W=G("skipRender"),q=G("isForcingUpdate");function X(e){var n=e.prototype;if(n.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==t.PureComponent)if(n.shouldComponentUpdate){if(n.shouldComponentUpdate!==H)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else n.shouldComponentUpdate=H;V(n,"props"),V(n,"state");var r=n.render;return n.render=function(){return Z.call(this,r)},I(n,"componentWillUnmount",(function(){this.render[L]&&this.render[L].dispose(),this[T]=!0})),e}function Z(e){var r=this;$(this,W,!1),$(this,q,!1);var o,i=(o=this).displayName||o.name||o.constructor&&(o.constructor.displayName||o.constructor.name)||"<component>",a=e.bind(this),l=!1,c=new n.Reaction(i+".render()",(function(){if(!l&&(l=!0,!0!==r[T])){var e=!0;try{$(r,q,!0),r[W]||t.Component.prototype.forceUpdate.call(r),e=!1}finally{$(r,q,!1),e&&c.dispose()}}}));function d(){l=!1;var e=void 0,t=void 0;if(c.track((function(){try{t=n._allowStateChanges(!1,a)}catch(t){e=t}})),e)throw e;return t}return c.reactComponent=this,d[L]=c,this.render=d,d.call(this)}function H(e,t){return this.state!==t||!B(this.props,e)}function V(e,t){var r=G("reactProp_"+t+"_valueHolder"),o=G("reactProp_"+t+"_atomHolder");function i(){return this[o]||$(this,o,n.createAtom("reactive "+t)),this[o]}Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var e=!1;return n._allowStateReadsStart&&n._allowStateReadsEnd&&(e=n._allowStateReadsStart(!0)),i.call(this).reportObserved(),n._allowStateReadsStart&&n._allowStateReadsEnd&&n._allowStateReadsEnd(e),this[r]},set:function(e){this[q]||B(this[r],e)?$(this,r,e):($(this,r,e),$(this,W,!0),i.call(this).reportChanged(),$(this,W,!1))}})}var Q="function"==typeof Symbol&&Symbol.for,J=Q?Symbol.for("react.forward_ref"):"function"==typeof t.forwardRef&&t.forwardRef((function(e){return null})).$$typeof,K=Q?Symbol.for("react.memo"):"function"==typeof t.memo&&t.memo((function(e){return null})).$$typeof;function ee(e){if(!0===e.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),K&&e.$$typeof===K)throw new Error("Mobx observer: You are trying to use 'observer' on a function component wrapped in either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(J&&e.$$typeof===J){var n=e.render;if("function"!=typeof n)throw new Error("render property of ForwardRef was not a function");return t.forwardRef((function(){var e=arguments;return t.createElement(S,null,(function(){return n.apply(void 0,e)}))}))}return"function"!=typeof e||e.prototype&&e.prototype.render||e.isReactClass||Object.prototype.isPrototypeOf.call(t.Component,e)?X(e):k(e)}if(!t.Component)throw new Error("mobx-react requires React to be available");if(!n.observable)throw new Error("mobx-react requires mobx to be available");var te=[{name:"申请培训人数",value:961,ratio:1,startColor:"#0096FF",endColor:"#00D8FF"},{name:"培训通过人数",value:412,ratio:.429,startColor:"#0CD2C4",endColor:"#0CDE9A"},{name:"自主操作人数",value:464,ratio:.483,startColor:"#FF5858",endColor:"#D54141"},{name:"助管人数",value:45,ratio:.047,startColor:"#FFA638",endColor:"#FAD75D"}];return function(e){function r(r){var o=e.call(this,r)||this;return o.padding="10vh 4vh 4vh",o.evaluateXY=function(e,t,n){var r=2*Math.PI*t,o=n[0]+Math.sin(r)*e,i=n[0]-Math.cos(r)*e;return[o.toFixed(2),i.toFixed(2)]},o.renderRatioSVG=function(e,n){var r=e.ratio||1,i=o.evaluateXY(44,r,[50,50]),a=i[0],l=i[1],c=o.evaluateXY(50,r,[50,50]),d=c[0],u=c[1];return r>.5&&r<1?t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",viewBox:"0 0 100 100"},t.createElement("path",{d:"M50,6 L50,0 A50,50 1 1 1 "+d+" "+u+" L"+a+","+l+" A44,44 1 1 0 50 6 Z",fill:"url(#grad"+n+")"})):1===r?t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",viewBox:"0 0 100 100"},t.createElement("circle",{cx:"50",cy:"50",r:"50",stroke:"url(#grad"+n+")",strokeWidth:10,fill:"transparent"})):t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",viewBox:"0 0 100 100"},t.createElement("path",{d:"M50,6 L50,0 A50,50 0 0 1 "+d+" "+u+" L"+a+","+l+" A44,44 0 0 0 50 6 Z",fill:"url(#grad"+n+")"}))},o.renderBoard=function(e,n){return t.createElement("div",{key:n,className:u},t.createElement("div",{className:s},t.createElement("div",{className:f},t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",viewBox:"0 0 100 100"},t.createElement("linearGradient",{id:"grad"+n,x1:"0%",y1:"0%",x2:"100%",y2:"100%"},t.createElement("stop",{offset:"0%",style:{stopColor:e.startColor,stopOpacity:1}}),t.createElement("stop",{offset:"100%",style:{stopColor:e.endColor,stopOpacity:1}})),t.createElement("circle",{cx:"50",cy:"50",r:"50",stroke:"url(#grad"+n+")",strokeWidth:"4",fill:"transparent"}))),t.createElement("div",{className:f},o.renderRatioSVG(e,n)),t.createElement("div",{className:p,style:{background:o.props.gpui.params.backgroundColor}},t.createElement("div",{className:m},t.createElement("span",null,e.value),t.createElement("span",{className:_},"人")))),t.createElement("div",{className:h},e.name))},o.renderArrow=function(e,n){return t.createElement("div",{key:n,className:l},t.createElement("div",{className:c,style:{backgroundColor:e.startColor}}),t.createElement("div",{className:d,style:{borderLeftColor:e.startColor}}))},n.reaction((function(){return r.gpui.params.padding}),(function(e){o.padding=e||"10vh 4vh 4vh"}),{fireImmediately:!0}),o}return function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(r,e),r.prototype.render=function(){var e=this,n=[];return te.forEach((function(e,t){t>0&&n.push({type:"arrow",item:e}),n.push({type:"board",item:e})})),t.createElement("div",{className:"g__index",style:{padding:this.padding}},t.createElement("div",{className:a},n.map((function(t,n){var r=t.type,o=t.item;return"board"===r?e.renderBoard(o,n):e.renderArrow(o,n)}))))},i([n.observable],r.prototype,"padding",void 0),r=i([ee],r)}(t.Component)}));
