-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-pages-central-programs-js-5e0d4070976d9d52ab6b.js
2 lines (2 loc) · 102 KB
/
component---src-pages-central-programs-js-5e0d4070976d9d52ab6b.js
1
2
"use strict";(self.webpackChunkopenousd=self.webpackChunkopenousd||[]).push([[296],{49585:function(e,t,n){var r=n(8580),a=n(1022);t.Z=void 0;var o=a(n(67294)),i=(0,r(n(58786)).default)(o.createElement("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"AddCircleOutline");t.Z=i},91814:function(e,t,n){var r=n(8580),a=n(1022);t.Z=void 0;var o=a(n(67294)),i=(0,r(n(58786)).default)(o.createElement("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Create");t.Z=i},75502:function(e,t,n){var r=n(8580),a=n(1022);t.Z=void 0;var o=a(n(67294)),i=(0,r(n(58786)).default)(o.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");t.Z=i},3591:function(e,t,n){var r=n(8580),a=n(1022);t.Z=void 0;var o=a(n(67294)),i=(0,r(n(58786)).default)(o.createElement("path",{d:"M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"RemoveCircleOutline");t.Z=i},79312:function(e,t,n){var r=n(8580),a=n(1022);t.Z=void 0;var o=a(n(67294)),i=(0,r(n(58786)).default)(o.createElement("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt");t.Z=i},563:function(e,t,n){var r,a=n(54038),o=n(81531),i=n(80732),s=n.n(i),l=n(67294),c=n(47942),u=n(20949),d=n(49059),f=["className","children"],m=((r={})[c.d0]="show",r[c.cn]="show",r),p=l.forwardRef((function(e,t){var n=e.className,r=e.children,i=(0,o.Z)(e,f),p=(0,l.useCallback)((function(e){(0,d.Z)(e),i.onEnter&&i.onEnter(e)}),[i]);return l.createElement(c.ZP,(0,a.Z)({ref:t,addEndListener:u.Z},i,{onEnter:p}),(function(e,t){return l.cloneElement(r,(0,a.Z)({},t,{className:s()("fade",n,r.props.className,m[e])}))}))}));p.defaultProps={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1},p.displayName="Fade",t.Z=p},46294:function(e,t,n){n.r(t),n.d(t,{default:function(){return Lr}});var r,a=n(67294),o=n(33639),i=n(7408),s=n(20994),l=n(18158),c=n(36179),u=n(41325),d=n(39703),f=n(43318),m=n(64609),p=n(79312),h=n(91814),g=n(49585),v=n(3591),y=n(65769),b=n(46594),E=n(81531),S=n(54038),C=n(80732),A=n.n(C),O=n(47923),P=n(38480),R=n(14709),L=n(74672);function x(e){if((!r&&0!==r||e)&&P.Z){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),r=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return r}var w=n(33924),k=n(44731);function F(e){var t,n,r=(t=e,(n=(0,a.useRef)(t)).current=t,n);(0,a.useEffect)((function(){return function(){return r.current()}}),[])}var I=n(28530),M=n(57437);function T(e){void 0===e&&(e=(0,M.Z)());try{var t=e.activeElement;return t&&t.nodeName?t:null}catch(n){return e.body}}var N=n(93840),Z=n(14017),_=n(8424),D=n(73935),B=n(76400),G=n(29223);function H(e,t){e.classList?e.classList.add(t):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function j(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function W(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=j(e.className,t):e.setAttribute("class",j(e.className&&e.className.baseVal||"",t))}function U(e,t){return function(e){var t=(0,M.Z)(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}var V=/([A-Z])/g;var z=/^ms-/;function K(e){return function(e){return e.replace(V,"-$1").toLowerCase()}(e).replace(z,"-ms-")}var Y=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;var $,q=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(K(t))||U(e).getPropertyValue(K(t));Object.keys(t).forEach((function(a){var o=t[a];o||0===o?!function(e){return!(!e||!Y.test(e))}(a)?n+=K(a)+": "+o+";":r+=a+"("+o+") ":e.style.removeProperty(K(a))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};function J(e){return"window"in e&&e.window===e?e:"nodeType"in(t=e)&&t.nodeType===document.DOCUMENT_NODE&&e.defaultView||!1;var t}function X(e){var t;return J(e)||(t=e)&&"body"===t.tagName.toLowerCase()?function(e){var t=J(e)?(0,M.Z)():(0,M.Z)(e),n=J(e)||t.defaultView;return t.body.clientWidth<n.innerWidth}(e):e.scrollHeight>e.clientHeight}var Q=["template","script","style"],ee=function(e,t,n){[].forEach.call(e.children,(function(e){var r,a,o;-1===t.indexOf(e)&&(a=(r=e).nodeType,o=r.tagName,1===a&&-1===Q.indexOf(o.toLowerCase()))&&n(e)}))};function te(e,t){t&&(e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden"))}var ne,re=function(){function e(e){var t=void 0===e?{}:e,n=t.hideSiblingNodes,r=void 0===n||n,a=t.handleContainerOverflow,o=void 0===a||a;this.hideSiblingNodes=void 0,this.handleContainerOverflow=void 0,this.modals=void 0,this.containers=void 0,this.data=void 0,this.scrollbarSize=void 0,this.hideSiblingNodes=r,this.handleContainerOverflow=o,this.modals=[],this.containers=[],this.data=[],this.scrollbarSize=function(e){if((!$&&0!==$||e)&&Z.Z){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),$=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return $}()}var t=e.prototype;return t.isContainerOverflowing=function(e){var t=this.data[this.containerIndexFromModal(e)];return t&&t.overflowing},t.containerIndexFromModal=function(e){return t=this.data,n=function(t){return-1!==t.modals.indexOf(e)},r=-1,t.some((function(e,t){return!!n(e,t)&&(r=t,!0)})),r;var t,n,r},t.setContainerStyle=function(e,t){var n={overflow:"hidden"};e.style={overflow:t.style.overflow,paddingRight:t.style.paddingRight},e.overflowing&&(n.paddingRight=parseInt(q(t,"paddingRight")||"0",10)+this.scrollbarSize+"px"),q(t,n)},t.removeContainerStyle=function(e,t){Object.assign(t.style,e.style)},t.add=function(e,t,n){var r=this.modals.indexOf(e),a=this.containers.indexOf(t);if(-1!==r)return r;if(r=this.modals.length,this.modals.push(e),this.hideSiblingNodes&&function(e,t){var n=t.dialog,r=t.backdrop;ee(e,[n,r],(function(e){return te(!0,e)}))}(t,e),-1!==a)return this.data[a].modals.push(e),r;var o={modals:[e],classes:n?n.split(/\s+/):[],overflowing:X(t)};return this.handleContainerOverflow&&this.setContainerStyle(o,t),o.classes.forEach(H.bind(null,t)),this.containers.push(t),this.data.push(o),r},t.remove=function(e){var t=this.modals.indexOf(e);if(-1!==t){var n=this.containerIndexFromModal(e),r=this.data[n],a=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.classes.forEach(W.bind(null,a)),this.handleContainerOverflow&&this.removeContainerStyle(r,a),this.hideSiblingNodes&&function(e,t){var n=t.dialog,r=t.backdrop;ee(e,[n,r],(function(e){return te(!1,e)}))}(a,e),this.containers.splice(n,1),this.data.splice(n,1);else if(this.hideSiblingNodes){var o=r.modals[r.modals.length-1],i=o.backdrop;te(!1,o.dialog),te(!1,i)}}},t.isTopModal=function(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e},e}(),ae=re,oe=function(e){var t;return"undefined"==typeof document?null:null==e?(0,M.Z)().body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),null!=(t=e)&&t.nodeType&&e||null)};function ie(e,t){var n=(0,a.useState)((function(){return oe(e)})),r=n[0],o=n[1];if(!r){var i=oe(e);i&&o(i)}return(0,a.useEffect)((function(){t&&r&&t(r)}),[t,r]),(0,a.useEffect)((function(){var t=oe(e);t!==r&&o(t)}),[e,r]),r}function se(e){var t=e||(ne||(ne=new ae),ne),n=(0,a.useRef)({dialog:null,backdrop:null});return Object.assign(n.current,{add:function(e,r){return t.add(n.current,e,r)},remove:function(){return t.remove(n.current)},isTopModal:function(){return t.isTopModal(n.current)},setDialogRef:(0,a.useCallback)((function(e){n.current.dialog=e}),[]),setBackdropRef:(0,a.useCallback)((function(e){n.current.backdrop=e}),[])})}var le=(0,a.forwardRef)((function(e,t){var n=e.show,r=void 0!==n&&n,o=e.role,i=void 0===o?"dialog":o,s=e.className,l=e.style,c=e.children,u=e.backdrop,d=void 0===u||u,f=e.keyboard,m=void 0===f||f,p=e.onBackdropClick,h=e.onEscapeKeyDown,g=e.transition,v=e.backdropTransition,y=e.autoFocus,b=void 0===y||y,C=e.enforceFocus,A=void 0===C||C,O=e.restoreFocus,P=void 0===O||O,R=e.restoreFocusOptions,L=e.renderDialog,x=e.renderBackdrop,w=void 0===x?function(e){return a.createElement("div",e)}:x,I=e.manager,M=e.container,H=e.containerClassName,j=e.onShow,W=e.onHide,U=void 0===W?function(){}:W,V=e.onExit,z=e.onExited,K=e.onExiting,Y=e.onEnter,$=e.onEntering,q=e.onEntered,J=(0,E.Z)(e,["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","backdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","containerClassName","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"]),X=ie(M),Q=se(I),ee=(0,B.Z)(),te=(0,G.Z)(r),ne=(0,a.useState)(!r),re=ne[0],ae=ne[1],oe=(0,a.useRef)(null);(0,a.useImperativeHandle)(t,(function(){return Q}),[Q]),Z.Z&&!te&&r&&(oe.current=T()),g||r||re?r&&re&&ae(!1):ae(!0);var le=(0,k.Z)((function(){if(Q.add(X,H),pe.current=(0,_.Z)(document,"keydown",fe),me.current=(0,_.Z)(document,"focus",(function(){return setTimeout(ue)}),!0),j&&j(),b){var e=T(document);Q.dialog&&e&&!(0,N.Z)(Q.dialog,e)&&(oe.current=e,Q.dialog.focus())}})),ce=(0,k.Z)((function(){var e;(Q.remove(),null==pe.current||pe.current(),null==me.current||me.current(),P)&&(null==(e=oe.current)||null==e.focus||e.focus(R),oe.current=null)}));(0,a.useEffect)((function(){r&&X&&le()}),[r,X,le]),(0,a.useEffect)((function(){re&&ce()}),[re,ce]),F((function(){ce()}));var ue=(0,k.Z)((function(){if(A&&ee()&&Q.isTopModal()){var e=T();Q.dialog&&e&&!(0,N.Z)(Q.dialog,e)&&Q.dialog.focus()}})),de=(0,k.Z)((function(e){e.target===e.currentTarget&&(null==p||p(e),!0===d&&U())})),fe=(0,k.Z)((function(e){m&&27===e.keyCode&&Q.isTopModal()&&(null==h||h(e),e.defaultPrevented||U())})),me=(0,a.useRef)(),pe=(0,a.useRef)(),he=g;if(!X||!(r||he&&!re))return null;var ge=(0,S.Z)({role:i,ref:Q.setDialogRef,"aria-modal":"dialog"===i||void 0},J,{style:l,className:s,tabIndex:-1}),ve=L?L(ge):a.createElement("div",ge,a.cloneElement(c,{role:"document"}));he&&(ve=a.createElement(he,{appear:!0,unmountOnExit:!0,in:!!r,onExit:V,onExiting:K,onExited:function(){ae(!0);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null==z||z.apply(void 0,t)},onEnter:Y,onEntering:$,onEntered:q},ve));var ye=null;if(d){var be=v;ye=w({ref:Q.setBackdropRef,onClick:de}),be&&(ye=a.createElement(be,{appear:!0,in:!!r},ye))}return a.createElement(a.Fragment,null,D.createPortal(a.createElement(a.Fragment,null,ye,ve),X))}));le.displayName="Modal";var ce=Object.assign(le,{Manager:ae}),ue=(n(42473),n(55750)),de=n(14359),fe=n(18864),me=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",pe=".sticky-top",he=".navbar-toggler",ge=function(e){function t(){return e.apply(this,arguments)||this}(0,ue.Z)(t,e);var n=t.prototype;return n.adjustAndStore=function(e,t,n){var r,a=t.style[e];t.dataset[e]=a,(0,de.Z)(t,((r={})[e]=parseFloat((0,de.Z)(t,e))+n+"px",r))},n.restore=function(e,t){var n,r=t.dataset[e];void 0!==r&&(delete t.dataset[e],(0,de.Z)(t,((n={})[e]=r,n)))},n.setContainerStyle=function(t,n){var r=this;if(e.prototype.setContainerStyle.call(this,t,n),t.overflowing){var a=x();(0,fe.Z)(n,me).forEach((function(e){return r.adjustAndStore("paddingRight",e,a)})),(0,fe.Z)(n,pe).forEach((function(e){return r.adjustAndStore("marginRight",e,-a)})),(0,fe.Z)(n,he).forEach((function(e){return r.adjustAndStore("marginRight",e,a)}))}},n.removeContainerStyle=function(t,n){var r=this;e.prototype.removeContainerStyle.call(this,t,n),(0,fe.Z)(n,me).forEach((function(e){return r.restore("paddingRight",e)})),(0,fe.Z)(n,pe).forEach((function(e){return r.restore("marginRight",e)})),(0,fe.Z)(n,he).forEach((function(e){return r.restore("marginRight",e)}))},t}(ae),ve=n(563),ye=n(34211),be=(0,ye.Z)("modal-body"),Ee=a.createContext({onHide:function(){}}),Se=n(99541),Ce=["bsPrefix","className","contentClassName","centered","size","children","scrollable"],Ae=a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,o=e.contentClassName,i=e.centered,s=e.size,l=e.children,c=e.scrollable,u=(0,E.Z)(e,Ce),d=(n=(0,Se.vE)(n,"modal"))+"-dialog";return a.createElement("div",(0,S.Z)({},u,{ref:t,className:A()(d,r,s&&n+"-"+s,i&&d+"-centered",c&&d+"-scrollable")}),a.createElement("div",{className:A()(n+"-content",o)},l))}));Ae.displayName="ModalDialog";var Oe=Ae,Pe=(0,ye.Z)("modal-footer"),Re=["label","onClick","className"],Le=a.forwardRef((function(e,t){var n=e.label,r=e.onClick,o=e.className,i=(0,E.Z)(e,Re);return a.createElement("button",(0,S.Z)({ref:t,type:"button",className:A()("close",o),onClick:r},i),a.createElement("span",{"aria-hidden":"true"},"×"),a.createElement("span",{className:"sr-only"},n))}));Le.displayName="CloseButton",Le.defaultProps={label:"Close"};var xe=Le,we=["bsPrefix","closeLabel","closeButton","onHide","className","children"],ke=a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.closeLabel,o=e.closeButton,i=e.onHide,s=e.className,l=e.children,c=(0,E.Z)(e,we);n=(0,Se.vE)(n,"modal-header");var u=(0,a.useContext)(Ee),d=(0,k.Z)((function(){u&&u.onHide(),i&&i()}));return a.createElement("div",(0,S.Z)({ref:t},c,{className:A()(s,n)}),l,o&&a.createElement(xe,{label:r,onClick:d}))}));ke.displayName="ModalHeader",ke.defaultProps={closeLabel:"Close",closeButton:!1};var Fe,Ie,Me=ke,Te=(Fe="h4",a.forwardRef((function(e,t){return a.createElement("div",(0,S.Z)({},e,{ref:t,className:A()(e.className,Fe)}))}))),Ne=(0,ye.Z)("modal-title",{Component:Te}),Ze=["bsPrefix","className","style","dialogClassName","contentClassName","children","dialogAs","aria-labelledby","show","animation","backdrop","keyboard","onEscapeKeyDown","onShow","onHide","container","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","onEntered","onExit","onExiting","onEnter","onEntering","onExited","backdropClassName","manager"],_e={show:!1,backdrop:!0,keyboard:!0,autoFocus:!0,enforceFocus:!0,restoreFocus:!0,animation:!0,dialogAs:Oe};function De(e){return a.createElement(ve.Z,(0,S.Z)({},e,{timeout:null}))}function Be(e){return a.createElement(ve.Z,(0,S.Z)({},e,{timeout:null}))}var Ge=a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,o=e.style,i=e.dialogClassName,s=e.contentClassName,l=e.children,c=e.dialogAs,u=e["aria-labelledby"],d=e.show,f=e.animation,m=e.backdrop,p=e.keyboard,h=e.onEscapeKeyDown,g=e.onShow,v=e.onHide,y=e.container,b=e.autoFocus,C=e.enforceFocus,M=e.restoreFocus,T=e.restoreFocusOptions,N=e.onEntered,Z=e.onExit,_=e.onExiting,D=e.onEnter,B=e.onEntering,G=e.onExited,H=e.backdropClassName,j=e.manager,W=(0,E.Z)(e,Ze),U=(0,a.useState)({}),V=U[0],z=U[1],K=(0,a.useState)(!1),Y=K[0],$=K[1],q=(0,a.useRef)(!1),J=(0,a.useRef)(!1),X=(0,a.useRef)(null),Q=(0,w.Z)(),ee=Q[0],te=Q[1],ne=(0,k.Z)(v);n=(0,Se.vE)(n,"modal"),(0,a.useImperativeHandle)(t,(function(){return{get _modal(){return ee}}}),[ee]);var re=(0,a.useMemo)((function(){return{onHide:ne}}),[ne]);function ae(){return j||(Ie||(Ie=new ge),Ie)}function oe(e){if(P.Z){var t=ae().isContainerOverflowing(ee),n=e.scrollHeight>(0,R.Z)(e).documentElement.clientHeight;z({paddingRight:t&&!n?x():void 0,paddingLeft:!t&&n?x():void 0})}}var ie=(0,k.Z)((function(){ee&&oe(ee.dialog)}));F((function(){(0,L.Z)(window,"resize",ie),X.current&&X.current()}));var se=function(){q.current=!0},le=function(e){q.current&&ee&&e.target===ee.dialog&&(J.current=!0),q.current=!1},ue=function(){$(!0),X.current=(0,I.Z)(ee.dialog,(function(){$(!1)}))},de=function(e){"static"!==m?J.current||e.target!==e.currentTarget?J.current=!1:null==v||v():function(e){e.target===e.currentTarget&&ue()}(e)},fe=(0,a.useCallback)((function(e){return a.createElement("div",(0,S.Z)({},e,{className:A()(n+"-backdrop",H,!f&&"show")}))}),[f,H,n]),me=(0,S.Z)({},o,V);f||(me.display="block");return a.createElement(Ee.Provider,{value:re},a.createElement(ce,{show:d,ref:te,backdrop:m,container:y,keyboard:!0,autoFocus:b,enforceFocus:C,restoreFocus:M,restoreFocusOptions:T,onEscapeKeyDown:function(e){p||"static"!==m?p&&h&&h(e):(e.preventDefault(),ue())},onShow:g,onHide:v,onEnter:function(e,t){e&&(e.style.display="block",oe(e)),null==D||D(e,t)},onEntering:function(e,t){null==B||B(e,t),(0,O.ZP)(window,"resize",ie)},onEntered:N,onExit:function(e){null==X.current||X.current(),null==Z||Z(e)},onExiting:_,onExited:function(e){e&&(e.style.display=""),null==G||G(e),(0,L.Z)(window,"resize",ie)},manager:ae(),containerClassName:n+"-open",transition:f?De:void 0,backdropTransition:f?Be:void 0,renderBackdrop:fe,renderDialog:function(e){return a.createElement("div",(0,S.Z)({role:"dialog"},e,{style:me,className:A()(r,n,Y&&n+"-static"),onClick:m?de:void 0,onMouseUp:le,"aria-labelledby":u}),a.createElement(c,(0,S.Z)({},W,{onMouseDown:se,className:i,contentClassName:s}),l))}}))}));Ge.displayName="Modal",Ge.defaultProps=_e,Ge.Body=be,Ge.Header=Me,Ge.Title=Ne,Ge.Footer=Pe,Ge.Dialog=Oe,Ge.TRANSITION_DURATION=300,Ge.BACKDROP_TRANSITION_DURATION=150;var He=Ge;var je=Math.pow(2,31)-1;function We(e,t,n){var r=n-Date.now();e.current=r<=je?setTimeout(t,r):setTimeout((function(){return We(e,t,n)}),je)}function Ue(){var e=(0,B.Z)(),t=(0,a.useRef)();return F((function(){return clearTimeout(t.current)})),(0,a.useMemo)((function(){var n=function(){return clearTimeout(t.current)};return{set:function(r,a){void 0===a&&(a=0),e()&&(n(),a<=je?t.current=setTimeout(r,a):We(t,r,Date.now()+a))},clear:n}}),[])}var Ve=n(10497),ze=n(25513),Ke=n(45697),Ye=n.n(Ke),$e=n(51822),qe=n(90950),Je=n(31716),Xe=n(25480),Qe=n(5850),et=a.forwardRef((function(e,t){var n=e.flip,r=e.offset,o=e.placement,i=e.containerPadding,s=void 0===i?5:i,l=e.popperConfig,c=void 0===l?{}:l,u=e.transition,d=(0,w.Z)(),f=d[0],m=d[1],p=(0,w.Z)(),h=p[0],g=p[1],v=(0,$e.Z)(m,t),y=ie(e.container),b=ie(e.target),C=(0,a.useState)(!e.show),A=C[0],O=C[1],P=(0,Je.Z)(b,f,(0,Qe.ZP)({placement:o,enableEvents:!!e.show,containerPadding:s||5,flip:n,offset:r,arrowElement:h,popperConfig:c})),R=P.styles,L=P.attributes,x=(0,E.Z)(P,["styles","attributes"]);e.show?A&&O(!1):e.transition||A||O(!0);var k=e.show||u&&!A;if((0,Xe.Z)(f,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!k)return null;var F=e.children((0,S.Z)({},x,{show:!!e.show,props:(0,S.Z)({},L.popper,{style:R.popper,ref:v}),arrowProps:(0,S.Z)({},L.arrow,{style:R.arrow,ref:g})}));if(u){var I=e.onExit,M=e.onExiting,T=e.onEnter,N=e.onEntering,Z=e.onEntered;F=a.createElement(u,{in:e.show,appear:!0,onExit:I,onExiting:M,onExited:function(){O(!0),e.onExited&&e.onExited.apply(e,arguments)},onEnter:T,onEntering:N,onEntered:Z},F)}return y?D.createPortal(F,y):null}));et.displayName="Overlay",et.propTypes={show:Ye().bool,placement:Ye().oneOf(qe.Ct),target:Ye().any,container:Ye().any,flip:Ye().bool,children:Ye().func.isRequired,containerPadding:Ye().number,popperConfig:Ye().object,rootClose:Ye().bool,rootCloseEvent:Ye().oneOf(["click","mousedown"]),rootCloseDisabled:Ye().bool,onHide: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 a;return e.rootClose?(a=Ye().func).isRequired.apply(a,[e].concat(n)):Ye().func.apply(Ye(),[e].concat(n))},transition:Ye().elementType,onEnter:Ye().func,onEntering:Ye().func,onEntered:Ye().func,onExit:Ye().func,onExiting:Ye().func,onExited:Ye().func};var tt=et,nt=n(33468),rt=["children","transition","popperConfig"],at=["props","arrowProps","show","update","forceUpdate","placement","state"],ot={transition:ve.Z,rootClose:!1,show:!1,placement:"top"};function it(e){var t=e.children,n=e.transition,r=e.popperConfig,o=void 0===r?{}:r,i=(0,E.Z)(e,rt),s=(0,a.useRef)({}),l=(0,nt.Z)(),c=l[0],u=l[1],d=!0===n?ve.Z:n||null;return a.createElement(tt,(0,S.Z)({},i,{ref:c,popperConfig:(0,S.Z)({},o,{modifiers:u.concat(o.modifiers||[])}),transition:d}),(function(e){var r,o=e.props,i=e.arrowProps,l=e.show,c=e.update,u=(e.forceUpdate,e.placement),d=e.state,f=(0,E.Z)(e,at);!function(e,t){var n=e.ref,r=t.ref;e.ref=n.__wrapped||(n.__wrapped=function(e){return n((0,Ve.Z)(e))}),t.ref=r.__wrapped||(r.__wrapped=function(e){return r((0,Ve.Z)(e))})}(o,i);var m=Object.assign(s.current,{state:d,scheduleUpdate:c,placement:u,outOfBoundaries:(null==d||null==(r=d.modifiersData.hide)?void 0:r.isReferenceHidden)||!1});return"function"==typeof t?t((0,S.Z)({},f,o,{placement:u,show:l},!n&&l&&{className:"show"},{popper:m,arrowProps:i})):a.cloneElement(t,(0,S.Z)({},f,o,{placement:u,arrowProps:i,popper:m,className:A()(t.props.className,!n&&l&&"show"),style:(0,S.Z)({},t.props.style,o.style)}))}))}it.defaultProps=ot;var st=it,lt=["trigger","overlay","children","popperConfig","show","defaultShow","onToggle","delay","placement","flip"],ct=function(e){function t(){return e.apply(this,arguments)||this}return(0,ue.Z)(t,e),t.prototype.render=function(){return this.props.children},t}(a.Component);function ut(e,t,n){var r,a,o=t[0],i=o.currentTarget,s=o.relatedTarget||o.nativeEvent[n];s&&s===i||(a=s,(r=i).contains?r.contains(a):r.compareDocumentPosition?r===a||16&r.compareDocumentPosition(a):void 0)||e.apply(void 0,t)}function dt(e){var t=e.trigger,n=e.overlay,r=e.children,o=e.popperConfig,i=void 0===o?{}:o,s=e.show,l=e.defaultShow,c=void 0!==l&&l,u=e.onToggle,d=e.delay,f=e.placement,m=e.flip,p=void 0===m?f&&-1!==f.indexOf("auto"):m,h=(0,E.Z)(e,lt),g=(0,a.useRef)(null),v=Ue(),y=(0,a.useRef)(""),b=(0,ze.$c)(s,c,u),C=b[0],A=b[1],O=function(e){return e&&"object"==typeof e?e:{show:e,hide:e}}(d),P="function"!=typeof r?a.Children.only(r).props:{},R=P.onFocus,L=P.onBlur,x=P.onClick,w=(0,a.useCallback)((function(){return(0,Ve.Z)(g.current)}),[]),k=(0,a.useCallback)((function(){v.clear(),y.current="show",O.show?v.set((function(){"show"===y.current&&A(!0)}),O.show):A(!0)}),[O.show,A,v]),F=(0,a.useCallback)((function(){v.clear(),y.current="hide",O.hide?v.set((function(){"hide"===y.current&&A(!1)}),O.hide):A(!1)}),[O.hide,A,v]),I=(0,a.useCallback)((function(){k();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null==R||R.apply(void 0,t)}),[k,R]),M=(0,a.useCallback)((function(){F();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null==L||L.apply(void 0,t)}),[F,L]),T=(0,a.useCallback)((function(){A(!C),x&&x.apply(void 0,arguments)}),[x,A,C]),N=(0,a.useCallback)((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];ut(k,t,"fromElement")}),[k]),Z=(0,a.useCallback)((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];ut(F,t,"toElement")}),[F]),_=null==t?[]:[].concat(t),D={};return-1!==_.indexOf("click")&&(D.onClick=T),-1!==_.indexOf("focus")&&(D.onFocus=I,D.onBlur=M),-1!==_.indexOf("hover")&&(D.onMouseOver=N,D.onMouseOut=Z),a.createElement(a.Fragment,null,"function"==typeof r?r((0,S.Z)({},D,{ref:g})):a.createElement(ct,{ref:g},(0,a.cloneElement)(r,D)),a.createElement(st,(0,S.Z)({},h,{show:C,onHide:F,flip:p,placement:f,popperConfig:i,target:w}),n))}dt.defaultProps={defaultShow:!1,trigger:["hover","focus"]};var ft=dt,mt=(n(96149),["bsPrefix","placement","className","style","children","arrowProps","popper","show"]),pt=a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.placement,o=e.className,i=e.style,s=e.children,l=e.arrowProps,c=(e.popper,e.show,(0,E.Z)(e,mt));n=(0,Se.vE)(n,"tooltip");var u=((null==r?void 0:r.split("-"))||[])[0];return a.createElement("div",(0,S.Z)({ref:t,style:i,role:"tooltip","x-placement":u,className:A()(o,n,"bs-tooltip-"+u)},c),a.createElement("div",(0,S.Z)({className:"arrow"},l)),a.createElement("div",{className:n+"-inner"},s))}));pt.defaultProps={placement:"right"},pt.displayName="Tooltip";var ht=pt,gt=n(87814),vt=function(e){var t=e.tooltipText,n=e.placement,r=void 0===n?"top":n;return a.createElement(ft,{placement:r,delay:{show:250,hide:400},overlay:function(e){return a.createElement(ht,Object.assign({},e,{show:e.show.toString()}),t)}},a.createElement(gt.Z,{className:"icon"}))},yt=n(24655),bt=n(36092),Et=m.ol.SearchBar,St=m.ol.ClearSearchButton,Ct=m.ZZ.ExportCSVButton,At=function(e,t,n,r,a,o,i){return(0,yt.DY)(e,t,n,r,a,o,"name",i)},Ot=function(e){(0,y.I)({category:"Central Programs Table",action:"Sort Column",label:e})},Pt=function(e){var t=e.columns,n=e.onColumnToggle,r=e.toggles,o=e.labelContent,i=e.columnLabels,s=(0,a.useState)(!1),l=s[0],c=s[1],u={visible:[],hidden:[]};t.reduce((function(e,t){return"Program"!==t.text&&(t.toggle=r[t.dataField],t.toggle?e.visible.push(t):e.hidden.push(t)),e}),u);var d=function(e){var t=e.column;return a.createElement(b.Z,{className:"column-option py-3 py-md-2 "+(t.toggle?"visible":"hidden"),variant:"light",key:t.dataField,"data-toggle":"button",onClick:function(){return function(e){n(e.dataField);var t=e.toggle?"Hide Column":"Show Column";(0,y.I)({category:"Central Programs Table",action:t,label:e.text})}(t)}},t.toggle?a.createElement(v.Z,null):a.createElement(g.Z,null),a.createElement("span",{className:"ml-2"},i[t.dataField].displayName))};return a.createElement("div",{className:"d-md-flex justify-content-end"},a.createElement(b.Z,{className:"cta mb-3 my-md-0",onClick:function(){c(!0),(0,y.I)({category:"Central Programs Table",action:"Edit Columns",label:"Open"})}},a.createElement(h.Z,{className:"pr-1"}),o.labels.showHideColumnsLabel),a.createElement(He,{show:l,onHide:function(){return c(!1)},id:"show-hide-columns-modal",size:"sm",centered:!0},a.createElement(He.Header,{closeButton:!0}),a.createElement(He.Body,{className:"py-1 pl-5"},a.createElement("div",{className:"heading strong py-2 "+(u.visible.length>0?"":"d-none")},o.labels.currentlyShownColumnsLabel),u.visible.map((function(e){return a.createElement(d,{column:e,key:e.dataField})})),a.createElement("div",{className:"heading strong py-2 "+(u.hidden.length>0?"":"d-none")},o.labels.columnsNotShownLabel),u.hidden.map((function(e){return a.createElement(d,{column:e,key:e.dataField})}))),a.createElement(He.Footer,{className:"pt-3 pr-4"})))},Rt=function(e){var t=e.data,n=e.labelContent,r=(e.codes,n.labels.totalLabel),o=function(e,t){var n={name:t,spending:0,budget:0,eoy_total_fte:0,eoy_total_positions:0,code:null};return e.reduce((function(e,t){return e.spending+=+t.spending,e.budget+=+t.budget,e.staff+=+t.staff,e.eoy_total_fte+=+t.eoy_total_fte,e.eoy_total_positions+=+t.eoy_total_positions,e}),n)}(t,r),l=(0,bt.ZI)(n.columns);t=t.concat([o]);var c=[{formatter:function(e,t,n){return function(e,t,n,r){return e===r?a.createElement("span",{className:"strong"},t.name):a.createElement("span",null,a.createElement(d.Link,{to:"/central-programs/"+t.fields.slug},t.name))}(e,t,0,r)},dataField:"name",text:"Program",headerFormatter:function(e,t,n){return a.createElement("div",{className:"table-header"},l[e.dataField].displayName," ",n.sortElement)},sortCaret:yt.FK,sort:!0,onSort:function(e,t){return Ot(e)},sortFunc:function(e,t,n,a,o,i){return At(e,t,n,a,o,i,r)},events:{onClick:function(e,t,n,r,a){return function(e,t,n,r,a){0===n&&(0,y.I)({category:"Central Programs Table",action:"Click Program",label:r.name})}(0,0,n,r)}}},{dataField:"category",text:"Category",headerFormatter:function(e,t,n){return a.createElement("div",{className:"table-header text-left"},l[e.dataField].displayName," ",n.sortElement)},sortCaret:yt.FK,sort:!0,onSort:function(e,t){return Ot(e)},sortFunc:function(e,t,n,a,o,i){return At(e,t,n,a,o,i,r)},hidden:!0,align:"left"},{dataField:"spending",formatter:function(e,t){return(0,bt.mP)(t.spending)},text:"Spending",headerFormatter:function(e,t,n){return a.createElement("div",{className:"table-header text-right"},n.sortElement," ",l[e.dataField].displayName)},sortCaret:yt.FK,searchable:!1,sort:!0,onSort:function(e,t){return Ot(e)},sortFunc:function(e,t,n,a,o,i){return At(e,t,n,a,o,i,r)},type:"number",align:"right"},{dataField:"budget",formatter:function(e,t){return(0,bt.mP)(t.budget)},text:"Budget",headerFormatter:function(e,t,n){return a.createElement("div",{className:"table-header text-right"},n.sortElement," ",l[e.dataField].displayName)},sortCaret:yt.FK,searchable:!1,sort:!0,hidden:!0,onSort:function(e,t){return Ot(e)},sortFunc:function(e,t,n,a,o,i){return At(e,t,n,a,o,i,r)},type:"number",align:"right"},{dataField:"eoy_total_fte",formatter:function(e,t){return(0,bt.S1)(t.eoy_total_fte)},text:"Staff",headerFormatter:function(e,t,n){return a.createElement("div",{className:"table-header text-right"},n.sortElement," ",l[e.dataField].displayName," *"," ",a.createElement(vt,{tooltipText:l[e.dataField].helperText.helperText,placement:"bottom"}))},headerStyle:function(e,t){return{minWidth:"110px"}},sortCaret:yt.FK,searchable:!1,sort:!0,onSort:function(e,t){return Ot(e)},sortFunc:function(e,t,n,a,o,i){return At(e,t,n,a,o,i,r)},type:"number",align:"right",csvExport:!1},{dataField:"eoy_total_positions",formatter:function(e,t){return(0,bt.Pu)(t.eoy_total_positions)},text:"Staff Postions",headerFormatter:function(e,t,n){return a.createElement("div",{className:"table-header text-right"},n.sortElement," ",l[e.dataField].displayName," *"," ",a.createElement(vt,{tooltipText:l[e.dataField].helperText.helperText,placement:"bottom"}))},headerStyle:function(e,t){return{minWidth:"110px"}},sortCaret:yt.FK,searchable:!1,sort:!0,onSort:function(e,t){return Ot(e)},sortFunc:function(e,t,n,a,o,i){return At(e,t,n,a,o,i,r)},type:"number",align:"right",hidden:!0,csvExport:!1},{dataField:"remaining_budget_percent",formatter:function(e,t,n){return function(e,t){var n="";if(e<-3&&(n="over-budget"),0!==t)return a.createElement("span",{className:n},e,"%")}(t.remaining_budget_percent,n)},text:"Remaining Budget",headerFormatter:function(e,t,n){return a.createElement("div",{className:"table-header text-right"},n.sortElement," ",l[e.dataField].displayName)},sortCaret:yt.FK,searchable:!1,sort:!0,onSort:function(e,t){return Ot(e)},sortFunc:function(e,t,n,a,o,i){return At(e,t,n,a,o,i,r)},type:"number",align:"right"},{dataField:"code",text:"OUSD Code",headerFormatter:function(e,t,n){return a.createElement("div",{className:"table-header text-right"},n.sortElement," ",l[e.dataField].displayName," ",a.createElement(vt,{tooltipText:l[e.dataField].helperText.helperText,placement:"bottom"}))},sortCaret:yt.FK,searchable:!0,sort:!0,hidden:!0,onSort:function(e,t){return Ot(e)},sortFunc:function(e,t,n,a,o,i){return At(e,t,n,a,o,i,r)},type:"number",align:"right"}];return a.createElement(m.ZP,{keyField:"code",data:t,columns:c,className:"table",exportCSV:{fileName:"openousd-central-programs.csv"},bootstrap4:!0,search:!0,columnToggle:!0},(function(e){return a.createElement("div",null,a.createElement(s.Z,null,a.createElement(i.Z,{md:8},a.createElement(Et,Object.assign({},e.searchProps,{placeholder:""+n.labels.searchLabel,className:"table-search-bar mb-4"})),a.createElement(St,Object.assign({},e.searchProps,{className:"clear-btn"}))),a.createElement(i.Z,null,a.createElement(Pt,Object.assign({labelContent:n,columnLabels:l},e.columnToggleProps)))),a.createElement(f.Z,Object.assign({wrapperClasses:"table-responsive",classes:"",bordered:!1},e.baseProps,{rowClasses:function(e,t){return(0,yt.VC)(e.name,r)},defaultSorted:[{dataField:"name",order:"asc"}]})),a.createElement("div",{className:"footnote mb-3 mt-2"},n.footnote.footnote),a.createElement("div",null,a.createElement(Ct,Object.assign({},e.csvProps,{className:"btn-link download"}),a.createElement(p.Z,null),n.labels.downloadDataLabel)))}))};Rt.defaultProps={data:[]};var Lt=Rt,xt=n(4873),wt=n(38515),kt=n(24904),Ft=n(68204),It=n(85468),Mt=n(85893),Tt=n(84887),Nt=n(56940),Zt=n(21235),_t=n(33841);function Dt(e){return e.innerRadius}function Bt(e){return e.outerRadius}function Gt(e){return e.startAngle}function Ht(e){return e.endAngle}function jt(e){return e&&e.padAngle}function Wt(e,t,n,r,a,o,i,s){var l=n-e,c=r-t,u=i-a,d=s-o,f=d*l-u*c;if(!(f*f<_t.Ho))return[e+(f=(u*(t-o)-d*(e-a))/f)*l,t+f*c]}function Ut(e,t,n,r,a,o,i){var s=e-n,l=t-r,c=(i?o:-o)/(0,_t._b)(s*s+l*l),u=c*l,d=-c*s,f=e+u,m=t+d,p=n+u,h=r+d,g=(f+p)/2,v=(m+h)/2,y=p-f,b=h-m,E=y*y+b*b,S=a-o,C=f*h-p*m,A=(b<0?-1:1)*(0,_t._b)((0,_t.Fp)(0,S*S*E-C*C)),O=(C*b-y*A)/E,P=(-C*y-b*A)/E,R=(C*b+y*A)/E,L=(-C*y+b*A)/E,x=O-g,w=P-v,k=R-g,F=L-v;return x*x+w*w>k*k+F*F&&(O=R,P=L),{cx:O,cy:P,x01:-u,y01:-d,x11:O*(a/S-1),y11:P*(a/S-1)}}function Vt(){var e=Dt,t=Bt,n=(0,Zt.Z)(0),r=null,a=Gt,o=Ht,i=jt,s=null;function l(){var l,c,u=+e.apply(this,arguments),d=+t.apply(this,arguments),f=a.apply(this,arguments)-_t.ou,m=o.apply(this,arguments)-_t.ou,p=(0,_t.Wn)(m-f),h=m>f;if(s||(s=l=(0,Nt.Z)()),d<u&&(c=d,d=u,u=c),d>_t.Ho)if(p>_t.BZ-_t.Ho)s.moveTo(d*(0,_t.mC)(f),d*(0,_t.O$)(f)),s.arc(0,0,d,f,m,!h),u>_t.Ho&&(s.moveTo(u*(0,_t.mC)(m),u*(0,_t.O$)(m)),s.arc(0,0,u,m,f,h));else{var g,v,y=f,b=m,E=f,S=m,C=p,A=p,O=i.apply(this,arguments)/2,P=O>_t.Ho&&(r?+r.apply(this,arguments):(0,_t._b)(u*u+d*d)),R=(0,_t.VV)((0,_t.Wn)(d-u)/2,+n.apply(this,arguments)),L=R,x=R;if(P>_t.Ho){var w=(0,_t.ZR)(P/u*(0,_t.O$)(O)),k=(0,_t.ZR)(P/d*(0,_t.O$)(O));(C-=2*w)>_t.Ho?(E+=w*=h?1:-1,S-=w):(C=0,E=S=(f+m)/2),(A-=2*k)>_t.Ho?(y+=k*=h?1:-1,b-=k):(A=0,y=b=(f+m)/2)}var F=d*(0,_t.mC)(y),I=d*(0,_t.O$)(y),M=u*(0,_t.mC)(S),T=u*(0,_t.O$)(S);if(R>_t.Ho){var N,Z=d*(0,_t.mC)(b),_=d*(0,_t.O$)(b),D=u*(0,_t.mC)(E),B=u*(0,_t.O$)(E);if(p<_t.pi&&(N=Wt(F,I,D,B,Z,_,M,T))){var G=F-N[0],H=I-N[1],j=Z-N[0],W=_-N[1],U=1/(0,_t.O$)((0,_t.Kh)((G*j+H*W)/((0,_t._b)(G*G+H*H)*(0,_t._b)(j*j+W*W)))/2),V=(0,_t._b)(N[0]*N[0]+N[1]*N[1]);L=(0,_t.VV)(R,(u-V)/(U-1)),x=(0,_t.VV)(R,(d-V)/(U+1))}}A>_t.Ho?x>_t.Ho?(g=Ut(D,B,F,I,d,x,h),v=Ut(Z,_,M,T,d,x,h),s.moveTo(g.cx+g.x01,g.cy+g.y01),x<R?s.arc(g.cx,g.cy,x,(0,_t.fv)(g.y01,g.x01),(0,_t.fv)(v.y01,v.x01),!h):(s.arc(g.cx,g.cy,x,(0,_t.fv)(g.y01,g.x01),(0,_t.fv)(g.y11,g.x11),!h),s.arc(0,0,d,(0,_t.fv)(g.cy+g.y11,g.cx+g.x11),(0,_t.fv)(v.cy+v.y11,v.cx+v.x11),!h),s.arc(v.cx,v.cy,x,(0,_t.fv)(v.y11,v.x11),(0,_t.fv)(v.y01,v.x01),!h))):(s.moveTo(F,I),s.arc(0,0,d,y,b,!h)):s.moveTo(F,I),u>_t.Ho&&C>_t.Ho?L>_t.Ho?(g=Ut(M,T,Z,_,u,-L,h),v=Ut(F,I,D,B,u,-L,h),s.lineTo(g.cx+g.x01,g.cy+g.y01),L<R?s.arc(g.cx,g.cy,L,(0,_t.fv)(g.y01,g.x01),(0,_t.fv)(v.y01,v.x01),!h):(s.arc(g.cx,g.cy,L,(0,_t.fv)(g.y01,g.x01),(0,_t.fv)(g.y11,g.x11),!h),s.arc(0,0,u,(0,_t.fv)(g.cy+g.y11,g.cx+g.x11),(0,_t.fv)(v.cy+v.y11,v.cx+v.x11),h),s.arc(v.cx,v.cy,L,(0,_t.fv)(v.y11,v.x11),(0,_t.fv)(v.y01,v.x01),!h))):s.arc(0,0,u,S,E,h):s.lineTo(M,T)}else s.moveTo(0,0);if(s.closePath(),l)return s=null,l+""||null}return l.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+a.apply(this,arguments)+ +o.apply(this,arguments))/2-_t.pi/2;return[(0,_t.mC)(r)*n,(0,_t.O$)(r)*n]},l.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:(0,Zt.Z)(+t),l):e},l.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:(0,Zt.Z)(+e),l):t},l.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:(0,Zt.Z)(+e),l):n},l.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:(0,Zt.Z)(+e),l):r},l.startAngle=function(e){return arguments.length?(a="function"==typeof e?e:(0,Zt.Z)(+e),l):a},l.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:(0,Zt.Z)(+e),l):o},l.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:(0,Zt.Z)(+e),l):i},l.context=function(e){return arguments.length?(s=null==e?null:e,l):s},l}function zt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kt(Object(n),!0).forEach((function(t){zt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $t=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},qt=function(e,t){return e.filter((function(e){return Math.abs((0,kt.vi)(e.arc.endAngle-e.arc.startAngle))>=t}))},Jt={startAngle:{enter:function(e){return Yt(Yt({},e),{},{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return Yt(Yt({},e),{},{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Yt(Yt({},e),{},{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Yt(Yt({},e),{},{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return Yt(Yt({},e),{},{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return Yt(Yt({},e),{},{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return Yt(Yt({},e),{},{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Yt(Yt({},e),{},{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Yt(Yt({},e),{},{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Yt(Yt({},e),{},{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return Yt(Yt({},e),{},{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return Yt(Yt({},e),{},{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return Yt(Yt({},e),{},{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Yt(Yt({},e),{},{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return Yt(Yt({},e),{},{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return Yt(Yt({},e),{},{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},Xt=function(e,t){return(0,a.useMemo)((function(){var n=Jt[e];return{enter:function(e){return Yt(Yt({progress:0},n.enter(e.arc)),t?t.enter(e):{})},update:function(e){return Yt(Yt({progress:1},n.update(e.arc)),t?t.update(e):{})},leave:function(e){return Yt(Yt({progress:0},n.leave(e.arc)),t?t.leave(e):{})}}}),[e,t])},Qt=function(e,t){var n=(0,kt.Vp)(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return(0,kt.re)(n,r)},en=function(e){return function(t,n,r,a){return(0,It.to)([t,n,r,a],(function(t,n,r,a){var o=Qt({startAngle:t,endAngle:n,innerRadius:r,outerRadius:a},e);return"translate(".concat(o.x,",").concat(o.y,")")}))}},tn={pointerEvents:"none"},nn=function(e){var t=e.label,n=e.style,r=(0,kt.Fg)();return(0,Mt.jsx)(It.q.g,{transform:n.transform,opacity:n.progress,style:tn,children:(0,Mt.jsx)(It.q.text,{textAnchor:"middle",dominantBaseline:"central",style:Yt(Yt({},r.labels.text),{},{fill:n.textColor}),children:t})})},rn=function(e){var t=e.center,n=e.data,r=e.transitionMode,o=e.label,i=e.radiusOffset,s=e.skipAngle,l=e.textColor,c=e.component,u=void 0===c?nn:c,d=(0,kt.LR)(o),f=(0,kt.Fg)(),m=(0,Ft.Bf)(l,f),p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"innerRadius",r=arguments.length>3?arguments[3]:void 0,a=(0,kt.tf)(),o=a.animate,i=a.config,s=Xt(n,r);return{transition:(0,It.useTransition)(e,{keys:function(e){return e.id},initial:s.update,from:s.enter,enter:s.update,update:s.update,leave:s.leave,config:i,immediate:!o}),interpolate:en(t)}}((0,a.useMemo)((function(){return n.filter((function(e){return Math.abs((0,kt.vi)(e.arc.endAngle-e.arc.startAngle))>=s}))}),[n,s]),i,r),h=p.transition,g=p.interpolate,v=u;return(0,Mt.jsx)("g",{transform:"translate(".concat(t[0],",").concat(t[1],")"),children:h((function(e,t){return(0,a.createElement)(v,{key:t.id,datum:t,label:d(t),style:Yt(Yt({},e),{},{transform:g(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius),textColor:m(t)})})}))})},an=function(e,t,n,r){var a,o,i=$t(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),s=(0,kt.re)(i,e.outerRadius+t),l=(0,kt.re)(i,e.outerRadius+t+n);return i<Math.PI/2||i>1.5*Math.PI?(a="after",o={x:l.x+r,y:l.y}):(a="before",o={x:l.x-r,y:l.y}),{side:a,points:[s,l,o]}},on=(0,Tt.Z)().x((function(e){return e.x})).y((function(e){return e.y})),sn=function(e,t,n,r,a,o,i){return(0,It.to)([e,t,n,r,a,o,i],(function(e,t,n,r,a,o,i){var s=an({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r},a,o,i).points;return on(s)}))},ln=function(e,t,n,r){return(0,It.to)([e,t,n,r],(function(e,t,n,r){return function(e){var t=$t(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t<Math.PI/2||t>1.5*Math.PI?"start":"end"}({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r})}))},cn=function(e,t,n,r,a,o,i,s){return(0,It.to)([e,t,n,r,a,o,i,s],(function(e,t,n,r,a,o,i,s){var l=an({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r},a,o,i),c=l.points,u=l.side,d=c[2];return"before"===u?d.x-=s:d.x+=s,"translate(".concat(d.x,",").concat(d.y,")")}))},un=function(e){var t=e.data,n=e.offset,r=void 0===n?0:n,o=e.diagonalLength,i=e.straightLength,s=e.skipAngle,l=void 0===s?0:s,c=e.textOffset,u=e.linkColor,d=e.textColor,f=(0,kt.tf)(),m=f.animate,p=f.config,h=(0,kt.Fg)(),g=(0,Ft.Bf)(u,h),v=(0,Ft.Bf)(d,h),y=function(e,t){return(0,a.useMemo)((function(){return qt(e,t)}),[e,t])}(t,l),b=function(e){var t=e.offset,n=e.diagonalLength,r=e.straightLength,o=e.textOffset,i=e.getLinkColor,s=e.getTextColor;return(0,a.useMemo)((function(){return{enter:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:t,diagonalLength:0,straightLength:0,textOffset:o,linkColor:i(e),textColor:s(e),opacity:0}},update:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:t,diagonalLength:n,straightLength:r,textOffset:o,linkColor:i(e),textColor:s(e),opacity:1}},leave:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:t,diagonalLength:0,straightLength:0,textOffset:o,linkColor:i(e),textColor:s(e),opacity:0}}}}),[n,r,o,i,s])}({offset:r,diagonalLength:o,straightLength:i,textOffset:c,getLinkColor:g,getTextColor:v});return{transition:(0,It.useTransition)(y,{keys:function(e){return e.id},initial:b.update,from:b.enter,enter:b.update,update:b.update,leave:b.leave,config:p,immediate:!m}),interpolateLink:sn,interpolateTextAnchor:ln,interpolateTextPosition:cn}},dn=function(e){var t=e.label,n=e.style,r=(0,kt.Fg)();return(0,Mt.jsxs)(It.q.g,{opacity:n.opacity,children:[(0,Mt.jsx)(It.q.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),(0,Mt.jsx)(It.q.text,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:Yt(Yt({},r.labels.text),{},{fill:n.textColor}),children:t})]})},fn=function(e){var t=e.center,n=e.data,r=e.label,o=e.skipAngle,i=e.offset,s=e.diagonalLength,l=e.straightLength,c=e.strokeWidth,u=e.textOffset,d=e.textColor,f=e.linkColor,m=e.component,p=void 0===m?dn:m,h=(0,kt.LR)(r),g=un({data:n,skipAngle:o,offset:i,diagonalLength:s,straightLength:l,textOffset:u,linkColor:f,textColor:d}),v=g.transition,y=g.interpolateLink,b=g.interpolateTextAnchor,E=g.interpolateTextPosition,S=p;return(0,Mt.jsx)("g",{transform:"translate(".concat(t[0],",").concat(t[1],")"),children:v((function(e,t){return(0,a.createElement)(S,{key:t.id,datum:t,label:h(t),style:Yt(Yt({},e),{},{thickness:c,path:y(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,e.offset,e.diagonalLength,e.straightLength),textAnchor:b(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius),textPosition:E(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,e.offset,e.diagonalLength,e.straightLength,e.textOffset)})})}))})};var mn=function(e){var t=e.datum,n=e.style,r=e.onClick,o=e.onMouseEnter,i=e.onMouseMove,s=e.onMouseLeave,l=(0,a.useCallback)((function(e){return null==r?void 0:r(t,e)}),[r,t]),c=(0,a.useCallback)((function(e){return null==o?void 0:o(t,e)}),[o,t]),u=(0,a.useCallback)((function(e){return null==i?void 0:i(t,e)}),[i,t]),d=(0,a.useCallback)((function(e){return null==s?void 0:s(t,e)}),[s,t]);return(0,Mt.jsx)(It.q.path,{d:n.path,opacity:n.opacity,fill:t.fill||n.color,stroke:n.borderColor,strokeWidth:n.borderWidth,onClick:r?l:void 0,onMouseEnter:o?c:void 0,onMouseMove:i?u:void 0,onMouseLeave:s?d:void 0})},pn=function(e,t,n,r,a){return(0,It.to)([e,t,n,r],(function(e,t,n,r){return a({startAngle:e,endAngle:t,innerRadius:Math.max(0,n),outerRadius:Math.max(0,r)})}))},hn=function(e){var t=e.center,n=e.data,r=e.arcGenerator,o=e.borderWidth,i=e.borderColor,s=e.onClick,l=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.transitionMode,f=e.component,m=void 0===f?mn:f,p=(0,kt.Fg)(),h=(0,Ft.Bf)(i,p),g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"innerRadius",n=arguments.length>2?arguments[2]:void 0,r=(0,kt.tf)(),a=r.animate,o=r.config,i=Xt(t,n);return{transition:(0,It.useTransition)(e,{keys:function(e){return e.id},initial:i.update,from:i.enter,enter:i.update,update:i.update,leave:i.leave,config:o,immediate:!a}),interpolate:pn}}(n,d,{enter:function(e){return{opacity:0,color:e.color,borderColor:h(e)}},update:function(e){return{opacity:1,color:e.color,borderColor:h(e)}},leave:function(e){return{opacity:0,color:e.color,borderColor:h(e)}}}),v=g.transition,y=g.interpolate,b=m;return(0,Mt.jsx)("g",{transform:"translate(".concat(t[0],",").concat(t[1],")"),children:v((function(e,t){return(0,a.createElement)(b,{key:t.id,datum:t,style:Yt(Yt({},e),{},{borderWidth:o,path:y(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,r)}),onClick:s,onMouseEnter:l,onMouseMove:c,onMouseLeave:u})}))})};function gn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vn(e,t){if(e){if("string"==typeof e)return gn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gn(e,t):void 0}}function yn(e){return function(e){if(Array.isArray(e))return gn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||vn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(l){a=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(a)throw o}}return n}}(e,t)||vn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var En=n(26729);function Sn(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function Cn(e){return e}var An=n(62529);function On(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pn(Object(n),!0).forEach((function(t){On(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ln(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var xn=function(e){var t=e.width,n=e.height,r=e.legends,a=e.data,o=e.toggleSerie;return(0,Mt.jsx)(Mt.Fragment,{children:r.map((function(e,r){var i;return(0,Mt.jsx)(En.$6,Rn(Rn({},e),{},{containerWidth:t,containerHeight:n,data:null!==(i=e.data)&&void 0!==i?i:a,toggleSerie:e.toggleSerie?o:void 0}),r)}))})};function wn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kn(e,t){if(e){if("string"==typeof e)return wn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wn(e,t):void 0}}function Fn(e){return function(e){if(Array.isArray(e))return wn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||kn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function In(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(l){a=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(a)throw o}}return n}}(e,t)||kn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Mn,Tn={id:"id",value:"value",sortByValue:!1,innerRadius:0,padAngle:0,cornerRadius:0,layers:["arcLinkLabels","arcs","arcLabels","legends"],startAngle:0,endAngle:360,fit:!0,activeInnerRadiusOffset:0,activeOuterRadiusOffset:0,borderWidth:0,borderColor:{from:"color",modifiers:[["darker",1]]},enableArcLabels:!0,arcLabel:"formattedValue",arcLabelsSkipAngle:0,arcLabelsRadiusOffset:.5,arcLabelsTextColor:{theme:"labels.text.fill"},enableArcLinkLabels:!0,arcLinkLabel:"id",arcLinkLabelsSkipAngle:0,arcLinkLabelsOffset:0,arcLinkLabelsDiagonalLength:16,arcLinkLabelsStraightLength:24,arcLinkLabelsThickness:1,arcLinkLabelsTextOffset:6,arcLinkLabelsTextColor:{theme:"labels.text.fill"},arcLinkLabelsColor:{theme:"axis.ticks.line.stroke"},colors:{scheme:"nivo"},defs:[],fill:[],isInteractive:!0,animate:!0,motionConfig:"gentle",transitionMode:"innerRadius",tooltip:function(e){var t=e.datum;return(0,Mt.jsx)(An._5,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img",pixelRatio:"undefined"!=typeof window&&null!==(Mn=window.devicePixelRatio)&&void 0!==Mn?Mn:1},Nn=function(e){var t=e.data,n=e.id,r=void 0===n?Tn.id:n,o=e.value,i=void 0===o?Tn.value:o,s=e.valueFormat,l=e.colors,c=void 0===l?Tn.colors:l,u=(0,kt.LR)(r),d=(0,kt.LR)(i),f=(0,kt.O_)(s),m=(0,Ft.U)(c,"id");return(0,a.useMemo)((function(){return t.map((function(e){var t,n=u(e),r=d(e),a={id:n,label:null!==(t=e.label)&&void 0!==t?t:n,hidden:!1,value:r,formattedValue:f(r),data:e};return Rn(Rn({},a),{},{color:m(a)})}))}),[t,u,d,f,m])},Zn=function(e){var t=e.data,n=e.startAngle,r=e.endAngle,o=e.innerRadius,i=e.outerRadius,s=e.padAngle,l=e.sortByValue,c=e.activeId,u=e.activeInnerRadiusOffset,d=e.activeOuterRadiusOffset,f=e.hiddenIds,m=(0,a.useMemo)((function(){var e=function(){var e=Cn,t=Sn,n=null,r=(0,Zt.Z)(0),a=(0,Zt.Z)(_t.BZ),o=(0,Zt.Z)(0);function i(i){var s,l,c,u,d,f=i.length,m=0,p=new Array(f),h=new Array(f),g=+r.apply(this,arguments),v=Math.min(_t.BZ,Math.max(-_t.BZ,a.apply(this,arguments)-g)),y=Math.min(Math.abs(v)/f,o.apply(this,arguments)),b=y*(v<0?-1:1);for(s=0;s<f;++s)(d=h[p[s]=s]=+e(i[s],s,i))>0&&(m+=d);for(null!=t?p.sort((function(e,n){return t(h[e],h[n])})):null!=n&&p.sort((function(e,t){return n(i[e],i[t])})),s=0,c=m?(v-f*b)/m:0;s<f;++s,g=u)l=p[s],u=g+((d=h[l])>0?d*c:0)+b,h[l]={data:i[l],index:s,value:d,startAngle:g,endAngle:u,padAngle:y};return h}return i.value=function(t){return arguments.length?(e="function"==typeof t?t:(0,Zt.Z)(+t),i):e},i.sortValues=function(e){return arguments.length?(t=e,n=null,i):t},i.sort=function(e){return arguments.length?(n=e,t=null,i):n},i.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:(0,Zt.Z)(+e),i):r},i.endAngle=function(e){return arguments.length?(a="function"==typeof e?e:(0,Zt.Z)(+e),i):a},i.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:(0,Zt.Z)(+e),i):o},i}().value((function(e){return e.value})).startAngle((0,kt.Ht)(n)).endAngle((0,kt.Ht)(r)).padAngle((0,kt.Ht)(s));return l||e.sortValues(null),e}),[n,r,s,l]);return(0,a.useMemo)((function(){var e=t.filter((function(e){return!f.includes(e.id)})),n=m(e).map((function(e){var t=Math.abs(e.endAngle-e.startAngle);return Rn(Rn({},e.data),{},{arc:{index:e.index,startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:c===e.data.id?o-u:o,outerRadius:c===e.data.id?i+d:i,thickness:i-o,padAngle:e.padAngle,angle:t,angleDeg:(0,kt.vi)(t)}})}));return{dataWithArc:n,legendData:t.map((function(e){return Rn(Rn({},e),{},{hidden:f.includes(e.id)})}))}}),[m,t,f,c,o,u,i,d])},_n=function(e){var t=e.data,n=e.width,r=e.height,o=e.innerRadius,i=void 0===o?Tn.innerRadius:o,s=e.startAngle,l=void 0===s?Tn.startAngle:s,c=e.endAngle,u=void 0===c?Tn.endAngle:c,d=e.padAngle,f=void 0===d?Tn.padAngle:d,m=e.sortByValue,p=void 0===m?Tn.sortByValue:m,h=e.cornerRadius,g=void 0===h?Tn.cornerRadius:h,v=e.fit,y=void 0===v?Tn.fit:v,b=e.activeInnerRadiusOffset,E=void 0===b?Tn.activeInnerRadiusOffset:b,S=e.activeOuterRadiusOffset,C=void 0===S?Tn.activeOuterRadiusOffset:S,A=In((0,a.useState)(null),2),O=A[0],P=A[1],R=In((0,a.useState)([]),2),L=R[0],x=R[1],w=(0,a.useMemo)((function(){var e,t=Math.min(n,r)/2,a=t*Math.min(i,1),o=n/2,s=r/2;if(y){var c=function(e,t,n,r,a){var o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],i=[],s=(0,kt.re)((0,kt.Ht)(r),n);i.push([s.x,s.y]);var l=(0,kt.re)((0,kt.Ht)(a),n);i.push([l.x,l.y]);for(var c=Math.round(Math.min(r,a));c<=Math.round(Math.max(r,a));c++)if(c%90==0){var u=(0,kt.re)((0,kt.Ht)(c),n);i.push([u.x,u.y])}i=i.map((function(n){var r=bn(n,2),a=r[0],o=r[1];return[e+a,t+o]})),o&&i.push([e,t]);var d=i.map((function(e){return bn(e,1)[0]})),f=i.map((function(e){return bn(e,2)[1]})),m=Math.min.apply(Math,yn(d)),p=Math.max.apply(Math,yn(d)),h=Math.min.apply(Math,yn(f)),g=Math.max.apply(Math,yn(f));return{points:i,x:m,y:h,width:p-m,height:g-h}}(o,s,t,l-90,u-90),d=c.points,f=Ln(c,["points"]),m=Math.min(n/f.width,r/f.height),p={width:f.width*m,height:f.height*m};p.x=(n-p.width)/2,p.y=(r-p.height)/2,o=(o-f.x)/f.width*f.width*m+p.x,s=(s-f.y)/f.height*f.height*m+p.y,e={box:f,ratio:m,points:d},t*=m,a*=m}return{centerX:o,centerY:s,radius:t,innerRadius:a,debug:e}}),[n,r,i,l,u,y,g]),k=Zn({data:t,startAngle:l,endAngle:u,innerRadius:w.innerRadius,outerRadius:w.radius,padAngle:f,sortByValue:p,activeId:O,activeInnerRadiusOffset:E,activeOuterRadiusOffset:C,hiddenIds:L}),F=(0,a.useCallback)((function(e){x((function(t){return t.indexOf(e)>-1?t.filter((function(t){return t!==e})):[].concat(Fn(t),[e])}))}),[]),I=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cornerRadius,n=void 0===t?0:t,r=e.padAngle,o=void 0===r?0:r;return(0,a.useMemo)((function(){return Vt().innerRadius((function(e){return e.innerRadius})).outerRadius((function(e){return e.outerRadius})).cornerRadius(n).padAngle(o)}),[n,o])}({cornerRadius:g,padAngle:(0,kt.Ht)(f)});return Rn(Rn({arcGenerator:I,setActiveId:P,toggleSerie:F},k),w)},Dn=function(e){var t=e.center,n=e.data,r=e.arcGenerator,o=e.borderWidth,i=e.borderColor,s=e.isInteractive,l=e.onClick,c=e.onMouseEnter,u=e.onMouseMove,d=e.onMouseLeave,f=e.setActiveId,m=e.tooltip,p=e.transitionMode,h=(0,An.lL)(),g=h.showTooltipFromEvent,v=h.hideTooltip,y=(0,a.useMemo)((function(){if(s)return function(e,t){null==l||l(e,t)}}),[s,l]),b=(0,a.useMemo)((function(){if(s)return function(e,t){g((0,a.createElement)(m,{datum:e}),t),f(e.id),null==c||c(e,t)}}),[s,g,f,c]),E=(0,a.useMemo)((function(){if(s)return function(e,t){g((0,a.createElement)(m,{datum:e}),t),null==u||u(e,t)}}),[s,g,u]),S=(0,a.useMemo)((function(){if(s)return function(e,t){v(),f(null),null==d||d(e,t)}}),[s,v,f,d]);return(0,Mt.jsx)(hn,{center:t,data:n,arcGenerator:r,borderWidth:o,borderColor:i,transitionMode:p,onClick:y,onMouseEnter:b,onMouseMove:E,onMouseLeave:S})},Bn=function(e){var t=e.data,n=e.id,r=void 0===n?Tn.id:n,o=e.value,i=void 0===o?Tn.value:o,s=e.valueFormat,l=e.sortByValue,c=void 0===l?Tn.sortByValue:l,u=e.layers,d=void 0===u?Tn.layers:u,f=e.startAngle,m=void 0===f?Tn.startAngle:f,p=e.endAngle,h=void 0===p?Tn.endAngle:p,g=e.padAngle,v=void 0===g?Tn.padAngle:g,y=e.fit,b=void 0===y?Tn.fit:y,E=e.innerRadius,S=void 0===E?Tn.innerRadius:E,C=e.cornerRadius,A=void 0===C?Tn.cornerRadius:C,O=e.activeInnerRadiusOffset,P=void 0===O?Tn.activeInnerRadiusOffset:O,R=e.activeOuterRadiusOffset,L=void 0===R?Tn.activeOuterRadiusOffset:R,x=e.width,w=e.height,k=e.margin,F=e.colors,I=void 0===F?Tn.colors:F,M=e.borderWidth,T=void 0===M?Tn.borderWidth:M,N=e.borderColor,Z=void 0===N?Tn.borderColor:N,_=e.enableArcLabels,D=void 0===_?Tn.enableArcLabels:_,B=e.arcLabel,G=void 0===B?Tn.arcLabel:B,H=e.arcLabelsSkipAngle,j=void 0===H?Tn.arcLabelsSkipAngle:H,W=e.arcLabelsTextColor,U=void 0===W?Tn.arcLabelsTextColor:W,V=e.arcLabelsRadiusOffset,z=void 0===V?Tn.arcLabelsRadiusOffset:V,K=e.arcLabelsComponent,Y=e.enableArcLinkLabels,$=void 0===Y?Tn.enableArcLinkLabels:Y,q=e.arcLinkLabel,J=void 0===q?Tn.arcLinkLabel:q,X=e.arcLinkLabelsSkipAngle,Q=void 0===X?Tn.arcLinkLabelsSkipAngle:X,ee=e.arcLinkLabelsOffset,te=void 0===ee?Tn.arcLinkLabelsOffset:ee,ne=e.arcLinkLabelsDiagonalLength,re=void 0===ne?Tn.arcLinkLabelsDiagonalLength:ne,ae=e.arcLinkLabelsStraightLength,oe=void 0===ae?Tn.arcLinkLabelsStraightLength:ae,ie=e.arcLinkLabelsThickness,se=void 0===ie?Tn.arcLinkLabelsThickness:ie,le=e.arcLinkLabelsTextOffset,ce=void 0===le?Tn.arcLinkLabelsTextOffset:le,ue=e.arcLinkLabelsTextColor,de=void 0===ue?Tn.arcLinkLabelsTextColor:ue,fe=e.arcLinkLabelsColor,me=void 0===fe?Tn.arcLinkLabelsColor:fe,pe=e.arcLinkLabelComponent,he=e.defs,ge=void 0===he?Tn.defs:he,ve=e.fill,ye=void 0===ve?Tn.fill:ve,be=e.isInteractive,Ee=void 0===be?Tn.isInteractive:be,Se=e.onClick,Ce=e.onMouseEnter,Ae=e.onMouseMove,Oe=e.onMouseLeave,Pe=e.tooltip,Re=void 0===Pe?Tn.tooltip:Pe,Le=e.transitionMode,xe=void 0===Le?Tn.transitionMode:Le,we=e.legends,ke=void 0===we?Tn.legends:we,Fe=e.role,Ie=void 0===Fe?Tn.role:Fe,Me=(0,kt.Bs)(x,w,k),Te=Me.outerWidth,Ne=Me.outerHeight,Ze=Me.margin,_e=Me.innerWidth,De=Me.innerHeight,Be=Nn({data:t,id:r,value:i,valueFormat:s,colors:I}),Ge=_n({data:Be,width:_e,height:De,fit:b,innerRadius:S,startAngle:m,endAngle:h,padAngle:v,sortByValue:c,cornerRadius:A,activeInnerRadiusOffset:P,activeOuterRadiusOffset:L}),He=Ge.dataWithArc,je=Ge.legendData,We=Ge.arcGenerator,Ue=Ge.centerX,Ve=Ge.centerY,ze=Ge.radius,Ke=Ge.innerRadius,Ye=Ge.setActiveId,$e=Ge.toggleSerie,qe=(0,kt.yU)(ge,He,ye),Je={arcLinkLabels:null,arcs:null,arcLabels:null,legends:null};$&&d.includes("arcLinkLabels")&&(Je.arcLinkLabels=(0,Mt.jsx)(fn,{center:[Ue,Ve],data:He,label:J,skipAngle:Q,offset:te,diagonalLength:re,straightLength:oe,strokeWidth:se,textOffset:ce,textColor:de,linkColor:me,component:pe},"arcLinkLabels")),d.includes("arcs")&&(Je.arcs=(0,Mt.jsx)(Dn,{center:[Ue,Ve],data:He,arcGenerator:We,borderWidth:T,borderColor:Z,isInteractive:Ee,onClick:Se,onMouseEnter:Ce,onMouseMove:Ae,onMouseLeave:Oe,setActiveId:Ye,tooltip:Re,transitionMode:xe},"arcs")),D&&d.includes("arcLabels")&&(Je.arcLabels=(0,Mt.jsx)(rn,{center:[Ue,Ve],data:He,label:G,radiusOffset:z,skipAngle:j,textColor:U,transitionMode:xe,component:K},"arcLabels")),ke.length>0&&d.includes("legends")&&(Je.legends=(0,Mt.jsx)(xn,{width:_e,height:De,data:je,legends:ke,toggleSerie:$e},"legends"));var Xe=function(e){var t=e.dataWithArc,n=e.arcGenerator,r=e.centerX,o=e.centerY,i=e.radius,s=e.innerRadius;return(0,a.useMemo)((function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:o,radius:i,innerRadius:s}}),[t,n,r,o,i,s])}({dataWithArc:He,arcGenerator:We,centerX:Ue,centerY:Ve,radius:ze,innerRadius:Ke});return(0,Mt.jsx)(kt.tM,{width:Te,height:Ne,margin:Ze,defs:qe,role:Ie,children:d.map((function(e,t){return void 0!==Je[e]?Je[e]:"function"==typeof e?(0,Mt.jsx)(a.Fragment,{children:(0,a.createElement)(e,Xe)},t):null}))})},Gn=function(e){var t=e.isInteractive,n=void 0===t?Tn.isInteractive:t,r=e.animate,a=void 0===r?Tn.animate:r,o=e.motionConfig,i=void 0===o?Tn.motionConfig:o,s=e.theme,l=e.renderWrapper,c=Ln(e,["isInteractive","animate","motionConfig","theme","renderWrapper"]);return(0,Mt.jsx)(kt.W2,{animate:a,isInteractive:n,motionConfig:i,renderWrapper:l,theme:s,children:(0,Mt.jsx)(Bn,Rn({isInteractive:n},c))})},Hn=function(e){return(0,Mt.jsx)(kt.d,{children:function(t){var n=t.width,r=t.height;return(0,Mt.jsx)(Gn,Rn({width:n,height:r},e))}})},jn=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var a=r[n];e.call(t,a[1],a[0])}},t}()}(),Wn="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Un=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Vn="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Un):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var zn=["top","right","bottom","left","width","height","size","weight"],Kn="undefined"!=typeof MutationObserver,Yn=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,a=0;function o(){n&&(n=!1,e()),r&&s()}function i(){Vn(o)}function s(){var e=Date.now();if(n){if(e-a<2)return;r=!0}else n=!0,r=!1,setTimeout(i,t);a=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){Wn&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Kn?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Wn&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;zn.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),$n=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var a=r[n];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},qn=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Un},Jn=rr(0,0,0,0);function Xn(e){return parseFloat(e)||0}function Qn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Xn(e["border-"+n+"-width"])}),0)}function er(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Jn;var r=qn(e).getComputedStyle(e),a=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var a=r[n],o=e["padding-"+a];t[a]=Xn(o)}return t}(r),o=a.left+a.right,i=a.top+a.bottom,s=Xn(r.width),l=Xn(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=Qn(r,"left","right")+o),Math.round(l+i)!==n&&(l-=Qn(r,"top","bottom")+i)),!function(e){return e===qn(e).document.documentElement}(e)){var c=Math.round(s+o)-t,u=Math.round(l+i)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return rr(a.left,a.top,s,l)}var tr="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof qn(e).SVGGraphicsElement}:function(e){return e instanceof qn(e).SVGElement&&"function"==typeof e.getBBox};function nr(e){return Wn?tr(e)?function(e){var t=e.getBBox();return rr(0,0,t.width,t.height)}(e):er(e):Jn}function rr(e,t,n,r){return{x:e,y:t,width:n,height:r}}var ar=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=rr(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=nr(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),or=function(e,t){var n,r,a,o,i,s,l,c=(r=(n=t).x,a=n.y,o=n.width,i=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),$n(l,{x:r,y:a,width:o,height:i,top:a,right:r+o,bottom:i+a,left:r}),l);$n(this,{target:e,contentRect:c})},ir=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new jn,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof qn(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new ar(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof qn(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new or(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),sr="undefined"!=typeof WeakMap?new WeakMap:new jn,lr=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Yn.getInstance(),r=new ir(t,n,this);sr.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){lr.prototype[e]=function(){var t;return(t=sr.get(this))[e].apply(t,arguments)}}));var cr=void 0!==Un.ResizeObserver?Un.ResizeObserver:lr,ur=n(14632),dr=n(47404),fr=n(75502),mr=n(65761),pr=n(71394),hr={centralProgramsLabel:"centralProgramsLabel",otherLabel:"otherLabel",description:"description",statDescriptor:"statDescriptor",increaseDescriptor:"increaseDescriptor",decreaseDescriptor:"decreaseDescriptor"};function gr(e){if(!e.match("^[a-zA-Z_$]\\w*(\\.[a-zA-Z_$]\\w*)*$"))throw new Error("Invalid path: "+e);return e.split(".").reduce((function(e,t){return null==e?void 0:e[t]}),this)}var vr=function(e,t){var n={},r=gr.bind(e);for(var a in t)n[a]=r(t[a]);return n},yr=function(e){var t=e.descriptor,n=e.icon,r=e.percentOfTotal;return function(e){e.dataWithArc;var o=e.centerX,i=e.centerY;return a.createElement("g",{transform:"translate(0,-8)"},n(o-73,i-150),a.createElement("text",{x:o+20,y:i,textAnchor:"middle",dominantBaseline:"central",style:{fontSize:"45px",fontWeight:"600"}},r,"%"),a.createElement("text",{x:o,y:i+35,textAnchor:"middle",dominantBaseline:"central",style:{fontSize:"20px",fontWeight:"200"}},t))}},br=function(e){var t,n=e.percentOfTotal,r=e.data,o=e.content,i=e.formatValue,s={renderMark:(t={},t[pr.oN.BOLD]=function(e){if("**Percent of Total**"===e)return a.createElement("strong",null,n,"%");if("**Change Descriptor**"===e){var t=r.change>0?o.increaseDescriptor:o.decreaseDescriptor;return a.createElement("strong",null,t)}return"**Change Quantity**"===e?a.createElement("span",{className:"change pt-2"},r.change<0?a.createElement(ur.Z,{className:"arrow",alt:"down arrow"}):a.createElement(dr.Z,{className:"arrow",alt:"up arrow"})," ",i(Math.abs(r.change))):a.createElement("strong",null,e)},t)};return a.createElement("div",{className:"description"},a.createElement("div",{className:""},(0,mr.Z)(o.description,s)))},Er=function(e){var t,n,r,o=e.data,i=e.content,s=e.formatValue,l=e.metricIcon,c=e.centralProgramsColor,u=(0,a.useState)(null),d=u[0],f=u[1],m=(0,a.useState)(!0),p=m[0],h=m[1],g=(0,a.useCallback)((function(e){var t=e[0];h(t.contentRect.width>470)}),[h]),v=(n=g,r=(0,a.useMemo)((function(){return new cr(n)}),[n]),(0,a.useCallback)((function(e){e&&r.observe(e)}),[r])),y=Math.floor(o.centralPrograms/o.allOUSD*100),b=(0,a.useMemo)((function(){return[{id:i.centralProgramsLabel,value:o.centralPrograms},{id:i.otherLabel,value:o.allOUSD-o.centralPrograms}]}),[i,o]),E=((t={})[i.centralProgramsLabel]=c,t[i.otherLabel]="#e9e9e9",t);return b.forEach((function(e,t){var n=d&&d!==e?"77":"";e.color=""+E[e.id]+n})),a.createElement("div",{className:"overview-chart"},a.createElement("div",{className:"pie-chart",ref:v},a.createElement(Hn,{data:b,colors:function(e){return e.data.color},innerRadius:.7,padAngle:1.5,cornerRadius:3,margin:{top:20,bottom:25},enableArcLinkLabels:p,arcLinkLabel:function(e){return e.id},arcLinkLabelsColor:{from:"color"},arcLinkLabelsTextColor:{from:"color",modifiers:[["darker",2]]},arcLinkLabelsDiagonalLength:1,arcLinkLabelsThickness:2,arcLinkLabelsOffset:0,arcLinkLabelsLinkHorizontalLength:15,enableArcLabels:!1,arcLabel:function(e){return s(e.value)},arcLabelsTextColor:{from:"color",modifiers:[["darker",3]]},valueFormat:s,onMouseEnter:function(e){var t=e.data;return f(t)},onMouseLeave:function(){return f(null)},layers:["arcs","arcLabels","arcLinkLabels","legends",yr({icon:l,descriptor:i.statDescriptor,percentOfTotal:y})]})),a.createElement(br,{percentOfTotal:y,data:o,content:i,formatValue:s}))},Sr=function(e){var t=e.data,n=e.content,r=vr(t,{centralPrograms:"spending",allOUSD:"all_ousd_spending",change:"change_from_previous_year.spending"}),o=n.find((function(e){return"Spending"===e.name})),i=vr(o,hr);return a.createElement(Er,{data:r,content:i,formatValue:bt.mP,metricIcon:function(e,t){return a.createElement("svg",{id:"moneyIcon",viewBox:"0 0 511.998 511.998",width:"38",xmlns:"http://www.w3.org/2000/svg",x:e,y:t,alt:"icon of coins with a dollar sign on it"},a.createElement("g",null,a.createElement("path",{d:"m462.232 19.236c-28.114-12.404-65.164-19.236-104.325-19.236s-76.211 6.832-104.326 19.236c-32.017 14.126-49.65 34.398-49.65 57.081v129.269c-14.847-4.675-30.638-7.202-47.008-7.202-86.464 0-156.807 70.343-156.807 156.807 0 86.463 70.343 156.807 156.807 156.807 59.484 0 111.336-33.294 137.905-82.224 19.656 4.149 41.21 6.327 63.079 6.327 39.161 0 76.211-6.831 104.326-19.235 32.018-14.126 49.65-34.398 49.65-57.081v-283.468c0-22.683-17.633-42.955-49.651-57.081zm-196.541 27.447c24.383-10.758 57.133-16.683 92.216-16.683s67.833 5.925 92.216 16.683c19.59 8.643 31.76 19.999 31.76 29.634s-12.17 20.99-31.76 29.634c-24.384 10.758-57.133 16.683-92.216 16.683s-67.833-5.925-92.216-16.683c-19.59-8.644-31.76-19.998-31.76-29.634s12.17-20.991 31.76-29.634zm-108.769 435.315c-69.922 0-126.807-56.885-126.807-126.807s56.885-126.807 126.807-126.807c69.921 0 126.807 56.885 126.807 126.807s-56.885 126.807-126.807 126.807zm293.201-92.58c-24.384 10.758-57.133 16.683-92.216 16.683-17.707 0-35.107-1.558-51.176-4.543 3.886-12.529 6.233-25.727 6.835-39.371 14.245 2.009 29.082 3.047 44.342 3.047 39.161 0 76.211-6.832 104.326-19.236 7.318-3.229 13.874-6.781 19.65-10.607v24.393c-.001 9.636-12.171 20.991-31.761 29.634zm0-70.867c-24.383 10.758-57.133 16.683-92.216 16.683-15.963 0-31.362-1.235-45.952-3.636-2.279-15.039-6.709-29.38-12.954-42.708 18.448 3.584 38.469 5.477 58.906 5.477 39.161 0 76.211-6.831 104.326-19.235 7.318-3.229 13.874-6.782 19.65-10.608v24.393c0 9.636-12.17 20.991-31.76 29.634zm0-70.866c-24.384 10.758-57.133 16.683-92.216 16.683-31.017 0-60.624-4.728-83.876-13.331-11.461-12.872-25.004-23.849-40.1-32.396v-24.983c5.776 3.826 12.333 7.379 19.65 10.607 28.115 12.404 65.165 19.236 104.326 19.236s76.211-6.832 104.326-19.236c7.318-3.229 13.874-6.781 19.65-10.607v24.393c0 9.635-12.17 20.99-31.76 29.634zm0-70.868c-24.383 10.758-57.133 16.683-92.216 16.683s-67.833-5.925-92.216-16.683c-19.59-8.643-31.76-19.998-31.76-29.634v-24.393c5.776 3.826 12.333 7.379 19.65 10.608 28.115 12.404 65.165 19.235 104.326 19.235s76.211-6.831 104.326-19.235c7.318-3.229 13.874-6.782 19.65-10.608v24.393c0 9.636-12.17 20.991-31.76 29.634z"}),a.createElement("path",{d:"m176.952 339.052h-32.175c-7.243 0-13.136-5.893-13.136-13.136s5.893-13.136 13.136-13.136h54.323v-30h-27.177v-20.239h-30v20.344c-22.458 1.476-40.282 20.206-40.282 43.031 0 23.785 19.351 43.136 43.136 43.136h32.175c7.871 0 14.274 6.404 14.274 14.275s-6.403 14.274-14.274 14.274h-69.333v30h34.304v20.239h30v-20.239h5.029c24.413 0 44.274-19.861 44.274-44.274s-19.861-44.275-44.274-44.275z"})))},centralProgramsColor:"#fc8123"})},Cr=function(e){var t=e.data,n=e.content.find((function(e){return"Staff"===e.name})),r=vr(t,{centralPrograms:"eoy_total_positions",allOUSD:"all_ousd_eoy_total_positions",change:"change_from_previous_year.eoy_total_positions"}),o=vr(n,hr);return a.createElement(Er,{data:r,content:o,formatValue:function(e){return Math.floor(e)},metricIcon:function(e,t){return a.createElement(fr.Z,{x:e,y:t,width:"45"})},centralProgramsColor:"#129c9b"})},Ar=JSON.parse('{"nodes":[{"id":"Bonds","type":"resource","total":17440969.73,"subnodes":"CA - General Obligation Bond Series 2016a, Deferred Maintenance Fund, Measure J General Obligation Series 2019a, Measure J General Obligation Series 2019b, Measure Y Series 2021A NonTax, Measure Y Series 2021B Taxable, Measure Y Series 2023A NonTax, Reserve for Capital Projects"},{"id":"Federal","type":"resource","total":91971970.42,"subnodes":"21st Century Community Learning Centers (CCLC): ESSER III Summer Learning Program, 21st Century Community Learning Centers (CCLC) Rate Increase: ESSER III State Reserve Afterschool Program, After School Education and Safety (ASES) Rate Increase: ESSER III State Reserve Summer Learning Programs, American Rescue Plan - Homeless Children and Youth II (ARP HYC II), American Rescue Plan Part C, Early Education Program, Bilingual Education: Discretionary Grants, Title III (14-15), Child Care Food Program (CCFP) and Meal Reimbursements, Child Dev American Rescue Plan Act (ARPA) Funded Stipends, Child Dev Prog CCTR PCA 14551, Child Nutrition School Program, Department of Justice (DOJ) Community Oriented Policing (COPS) School Violence Prevention Program, Elementary and Secondary School Emergency Relief (ESSER) Fund III, Elementary and Secondary School Emergency Relief III (ESSER III) Fund: Learning Loss, Emergency Connectivity Fund, Enrollment Stabilization Program, ESSA: Consolidated Administrative Funds, ESSA: School Improvement Funding, ESSA: Title II, Part A, Supporting Effective Instruction, ESSA: Title I, Part A, Basic Grants Low Income and Neglected, ESSA: Title IV, Part A, Student Support and Academic Enrichment, ESSA: Title IV, Part B, 21st Century Community Learning Centers Program, ESSA: Title IX, Part A, Homeless Assistance Grants, Expanded Learning Opportunities (ELO) Grant: ESSER III State Reserve Emergency Needs\', Expanded Learning Opportunities (ELO) Grant: ESSER III State Reserve, Learning Loss, Federal Child Care, Center-based, FCTR, FHUD, Federal Resource 5821, Healthy Oakland Teens, Human Trafficking Prevention, Indian Education , LEA Medi-Cal Former 5640, Local Food for School, Other Federal, Perkins Career and Technical Education, SE-IDEA BASIC GRANT PL94-142, Special Ed: Alternative Dispute Resolution, Special Ed: IDEA Early Intervention Grants, Special Ed: IDEA Local Assistance, Part B, Sec 611, Early Intervening Services, Special Ed: IDEA Local Assistance, Part B, Sec 611, Private School ISPs, Special Ed: IDEA Mental Health Allocation Plan, Part B, Sec 611, Special Ed: IDEA Part B, Sec 619, Preschool Grants Early Intervening Services, Special Ed: IDEA Preschool Grants, Part B, Sec 619, Special Ed: IDEA Preschool Staff Development, Part B, Sec 619, Strengthening Career and Technical Education, 21st Century (Perkins V): State Leadership, Sec. 124, Supply Chain Assistance (SCA) Funds, Transition Partnership Program, USDA: Farm To School"},{"id":"General (Base)","type":"resource","total":65918091.13,"subnodes":"1000 Broadway Move, General Purpose"},{"id":"Other Revenue","type":"resource","total":40671661.78,"subnodes":"All Other Local Sources, Allt.Assessment Capstone Project, BlackThrivingCommunity, Charter School Office, City of Oakland PEG funds, Cross-Age Mentoring Program, Dental Self-Insured, ELD Instruction Program, Employees on Loan, Facilitron Rent, FIRST 5 Alameda County (Prop 10), \\"First 5\\" Measure AA, Live Scan Fingerprint, Measure Y - City of Oakland, MHSSA Partnership Program, Mitigation and Developer Fees, PAYROLL ERRORS, Prop 39 Charter Repairs, Property & Liability, Rebate Programs, Refugee Transitions, Restorative Justice Fees, Risk Management Administrative, Scribbles Software - Transcripts, Student Activity Funds, SUMS, Workers\' Comp"},{"id":"Parcel Taxes","type":"resource","total":22410909.56,"subnodes":"Measure G1 - Parcel Tax, Measure G - Parcel Tax, Measure H, Measure N - Parcel Tax"},{"id":"Philanthropy / Grants","type":"resource","total":9356801.22,"subnodes":"AC Waste Management Authority, Alameda Alliance for Health, Alameda County Health Care Services, Alameda County Public Health - Health and Wellness, Alameda County Unaccompanied Immigrant Youth, BAPHR LGBTQ Support, BECHTEL, California Collaborative for Educational Excellence, California Education Partners, Casel Novo Foundation, City of Oakland Department of Violence Prevention, CODE.ORG, ConnectED, DONATIONS, Eat Learn Play Foundation - Education Center Program, EatLearnPlay Foundation for OAL, Educate 78 -Asp.Pri.Prg., General Mills Foundation, Gilead via OPEF, Golden State Worriors Community Foundation, Kaiser Health & Wellness w/EBCF, Kenneth Rainin Foundation, Learning Policy Institute, Mills Lesson Study Project, Music Instruments, National Center for Teacher Residences - Black Educators Initiative, National Community Development Institute, North Carolina State, Oakland Ed Fund - AAGLS, Oakland Fund Children & Youth, Oakland Public Education Fund, Oaklan Public Education Fund - OaklandUndivided, Oppenheimer Family Foundation, Packard Foundation, PCY 360/365 Grant, Philanthropic Ventures Foundation, Rodgers Family Foundation, Salesforce.Org, San Francisco Foundation, Schusterman Family Foundation, Schwab Charitable through OPEF, Share Our Strength, Silver Giving Foundation, Stupski Foundation, Sutter Health Foundation, The California Endowment, UCLA, Walter & Elise Haas Fund, WestEd, Workforce Development Plan"},{"id":"State","type":"resource","total":201634424.74,"subnodes":"AB1840 School Consolidation, After School Education and Safety (ASES), A-G Access Grant, A-G Learning Loss Mitigation, CA Apprenticeship Initiative, CA Community Schools Partnership Program (CCSPP): Implementation Grant, Cal Fire Planning Grant, California State Preschool Program, CalNEW Grant CDSS, CA National Board Certified Teacher Incentive Program, CA Partnership Academy (CTE): Riverside Community College, Career Technical Education (CTE) Incentive Grant Program, CDFA Farm to School Innovation, Child Development: California State Preschool Program QRIS Block Grant RFA, Child Dev: Universal Prekindergarten Planning & Implementation Grant, Classified School Employee Professional Development Block Grant, Dual Language Immersion, Educator Effectiveness, Ethnic Studies Professional Development, Expanded Learning Opportunities Program (ELOP), Food Service Staff Training, hild Development: ARP California State Preschool Program One-time Stipend, Home & Hospital Education, Inclusive Early Education Expansion Grant, K12 Strong Workforce Grant, Kitchen Infrastructure and Training Funds - 2022 KIT Funds, Kitchen Infrastructure Upgrade Funds, Learning Recovery Emergency Block Grant (Prop 98), Lottery: Instructional Materials, Ongoing & Major Maintenance Account, OTHER STATE, Partnership Academies Program , Pre-K and Family Literacy Support, Prop 47: Learning Communities for School Success Program Grants, Refugee Program Bureau - Newcomer Education and Well-Being, School Food Best Practices, Special Ed: Dispute Prevention and Dispute Resolution, Special Ed: Infant Discretionary Funds, Special Ed: Mental Health Services, Special Ed: Project WorkAbility I LEA, Special Education, Special Education Early Intervention Preschool Grant, State Lottery, State Preschool One-Time Funds, State School Facilities Projects, STRS On-Behalf Pension Contribution, Tobacco-Use Prevention Education: Grades 6-12, Univeral Prekinder (UPK) Planning & Implementation Grant Program, Early Educator Teacher Develop, Unrestricted AB1840, Unrest Transportation"},{"id":"Supplemental & Concentration","type":"resource","total":45997054.54,"subnodes":"Central Office Supplemental, One-time Additional Budget, S&C Carryover, School Site Approved Appeals"},{"id":"Administrative Offices","type":"site","total":43663440.45,"subnodes":"Board Of Education, Charter Schools Office (Admin), Chief Of Operations, Chief Of Staff, Continuous School Improvement, Legal Counsel, Office Of Chief Academic Officer, Office Of Sr. Business Officer, Office Of State Trustee, Office Of The Superintendent, State and Federal Programs"},{"id":"Facilities","type":"site","total":72160690.04,"subnodes":"Buildings & Grounds, Custodial Services, Facilities Planning"},{"id":"Financial Operations","type":"site","total":986146.04,"subnodes":"Procurement & Distribution"},{"id":"Instructional Programs","type":"site","total":62257091.23,"subnodes":"Early Childhood Development, Educator Effectiveness, Elementary Network 4, English Language Learner / Multilingual Achievement, High School Network, Linked Learning, Middle School Network, Office Of Equity, Office Of Post Secondary Readiness, Pre-K-5 Network 2, Pre-K-5 Network 3, Summer Programs, Teaching & Learning"},{"id":"Other","type":"site","total":24553337.83,"subnodes":"Budget Plug for Interims, Districtwide Expenses, Transfers to Charter Schools"},{"id":"Other Operations","type":"site","total":22182931.24,"subnodes":"Communications, Research Assessment & Data, Technology Services, Warehouse Distribution"},{"id":"People Operations","type":"site","total":19810623.2,"subnodes":"Human Resources, Labor Relations, Ombudsman"},{"id":"Risk Management","type":"site","total":29697278.09,"subnodes":"Risk Management"},{"id":"Special Education","type":"site","total":106435561.32,"subnodes":"Special Ed Local Plan Area, Special Education"},{"id":"Student Services","type":"site","total":113654783.68,"subnodes":"Associated Student Body Funds, Community Schools & Student Services, Food Service, Health Services (Nurses), Oakland Athletic League, OPSR Counseling, Student Assignment, Transportation"}],"links":[{"value":174930.08,"target":"Administrative Offices","source":"Bonds"},{"value":8568033.1,"target":"Administrative Offices","source":"Federal"},{"value":10694763.37,"target":"Administrative Offices","source":"General (Base)"},{"value":1179267.49,"target":"Administrative Offices","source":"Other Revenue"},{"value":979856.54,"target":"Administrative Offices","source":"Philanthropy / Grants"},{"value":7414403.71,"target":"Administrative Offices","source":"State"},{"value":14652186.16,"target":"Administrative Offices","source":"Supplemental & Concentration"},{"value":16441419.8,"target":"Facilities","source":"Bonds"},{"value":5919164.54,"target":"Facilities","source":"Federal"},{"value":21842479.33,"target":"Facilities","source":"General (Base)"},{"value":1392350.01,"target":"Facilities","source":"Other Revenue"},{"value":342111.35,"target":"Facilities","source":"Philanthropy / Grants"},{"value":24604570.29,"target":"Facilities","source":"State"},{"value":1618594.72,"target":"Facilities","source":"Supplemental & Concentration"},{"value":834921.02,"target":"Financial Operations","source":"General (Base)"},{"value":16101005.52,"target":"Instructional Programs","source":"Federal"},{"value":1208352.54,"target":"Instructional Programs","source":"General (Base)"},{"value":7263279.2,"target":"Instructional Programs","source":"Other Revenue"},{"value":6382626.49,"target":"Instructional Programs","source":"Parcel Taxes"},{"value":3068228.48,"target":"Instructional Programs","source":"Philanthropy / Grants"},{"value":18237065.99,"target":"Instructional Programs","source":"State"},{"value":9996533.01,"target":"Instructional Programs","source":"Supplemental & Concentration"},{"value":552084.9,"target":"Other","source":"Bonds"},{"value":7571662.49,"target":"Other","source":"Federal"},{"value":3984180.35,"target":"Other","source":"General (Base)"},{"value":12313230.86,"target":"Other","source":"Parcel Taxes"},{"value":132179.23,"target":"Other","source":"State"},{"value":243204.98,"target":"Other Operations","source":"Bonds"},{"value":5964282.56,"target":"Other Operations","source":"Federal"},{"value":10756343.44,"target":"Other Operations","source":"General (Base)"},{"value":1251728.82,"target":"Other Operations","source":"State"},{"value":3921442.64,"target":"Other Operations","source":"Supplemental & Concentration"},{"value":4380504.28,"target":"People Operations","source":"Federal"},{"value":8556954.74,"target":"People Operations","source":"General (Base)"},{"value":669360.39,"target":"People Operations","source":"Other Revenue"},{"value":846084.92,"target":"People Operations","source":"Parcel Taxes"},{"value":579403.2,"target":"People Operations","source":"Philanthropy / Grants"},{"value":2028995.48,"target":"People Operations","source":"State"},{"value":2749320.19,"target":"People Operations","source":"Supplemental & Concentration"},{"value":130606.77,"target":"Risk Management","source":"Federal"},{"value":402889.06,"target":"Risk Management","source":"General (Base)"},{"value":29163782.26,"target":"Risk Management","source":"Other Revenue"},{"value":7638041.32,"target":"Special Education","source":"Federal"},{"value":103126.71,"target":"Special Education","source":"Other Revenue"},{"value":92861649.75,"target":"Special Education","source":"State"},{"value":5800163.54,"target":"Special Education","source":"Supplemental & Concentration"},{"value":35645270.67,"target":"Student Services","source":"Federal"},{"value":7604627.28,"target":"Student Services","source":"General (Base)"},{"value":802356.19,"target":"Student Services","source":"Other Revenue"},{"value":2868967.29,"target":"Student Services","source":"Parcel Taxes"},{"value":4341586.53,"target":"Student Services","source":"Philanthropy / Grants"},{"value":55103831.47,"target":"Student Services","source":"State"},{"value":7258814.28,"target":"Student Services","source":"Supplemental & Concentration"}]}'),Or=JSON.parse('{"nodes":[{"id":"Bonds","type":"resource","total":17440969.73,"subnodes":"CA - General Obligation Bond Series 2016a, Deferred Maintenance Fund, Measure J General Obligation Series 2019a, Measure J General Obligation Series 2019b, Measure Y Series 2021A NonTax, Measure Y Series 2021B Taxable, Measure Y Series 2023A NonTax, Reserve for Capital Projects"},{"id":"Federal","type":"resource","total":91971970.42,"subnodes":"21st Century Community Learning Centers (CCLC): ESSER III Summer Learning Program, 21st Century Community Learning Centers (CCLC) Rate Increase: ESSER III State Reserve Afterschool Program, After School Education and Safety (ASES) Rate Increase: ESSER III State Reserve Summer Learning Programs, American Rescue Plan - Homeless Children and Youth II (ARP HYC II), American Rescue Plan Part C, Early Education Program, Bilingual Education: Discretionary Grants, Title III (14-15), Child Care Food Program (CCFP) and Meal Reimbursements, Child Dev American Rescue Plan Act (ARPA) Funded Stipends, Child Dev Prog CCTR PCA 14551, Child Nutrition School Program, Department of Justice (DOJ) Community Oriented Policing (COPS) School Violence Prevention Program, Elementary and Secondary School Emergency Relief (ESSER) Fund III, Elementary and Secondary School Emergency Relief III (ESSER III) Fund: Learning Loss, Emergency Connectivity Fund, Enrollment Stabilization Program, ESSA: Consolidated Administrative Funds, ESSA: School Improvement Funding, ESSA: Title II, Part A, Supporting Effective Instruction, ESSA: Title I, Part A, Basic Grants Low Income and Neglected, ESSA: Title IV, Part A, Student Support and Academic Enrichment, ESSA: Title IV, Part B, 21st Century Community Learning Centers Program, ESSA: Title IX, Part A, Homeless Assistance Grants, Expanded Learning Opportunities (ELO) Grant: ESSER III State Reserve Emergency Needs\', Expanded Learning Opportunities (ELO) Grant: ESSER III State Reserve, Learning Loss, Federal Child Care, Center-based, FCTR, FHUD, Federal Resource 5821, Healthy Oakland Teens, Human Trafficking Prevention, Indian Education , LEA Medi-Cal Former 5640, Local Food for School, Other Federal, Perkins Career and Technical Education, SE-IDEA BASIC GRANT PL94-142, Special Ed: Alternative Dispute Resolution, Special Ed: IDEA Early Intervention Grants, Special Ed: IDEA Local Assistance, Part B, Sec 611, Early Intervening Services, Special Ed: IDEA Local Assistance, Part B, Sec 611, Private School ISPs, Special Ed: IDEA Mental Health Allocation Plan, Part B, Sec 611, Special Ed: IDEA Part B, Sec 619, Preschool Grants Early Intervening Services, Special Ed: IDEA Preschool Grants, Part B, Sec 619, Special Ed: IDEA Preschool Staff Development, Part B, Sec 619, Strengthening Career and Technical Education, 21st Century (Perkins V): State Leadership, Sec. 124, Supply Chain Assistance (SCA) Funds, Transition Partnership Program, USDA: Farm To School"},{"id":"General (Base)","type":"resource","total":65918091.13,"subnodes":"1000 Broadway Move, General Purpose"},{"id":"Other Revenue","type":"resource","total":40671661.78,"subnodes":"All Other Local Sources, Allt.Assessment Capstone Project, BlackThrivingCommunity, Charter School Office, City of Oakland PEG funds, Cross-Age Mentoring Program, Dental Self-Insured, ELD Instruction Program, Employees on Loan, Facilitron Rent, FIRST 5 Alameda County (Prop 10), \\"First 5\\" Measure AA, Live Scan Fingerprint, Measure Y - City of Oakland, MHSSA Partnership Program, Mitigation and Developer Fees, PAYROLL ERRORS, Prop 39 Charter Repairs, Property & Liability, Rebate Programs, Refugee Transitions, Restorative Justice Fees, Risk Management Administrative, Scribbles Software - Transcripts, Student Activity Funds, SUMS, Workers\' Comp"},{"id":"Parcel Taxes","type":"resource","total":22410909.56,"subnodes":"Measure G1 - Parcel Tax, Measure G - Parcel Tax, Measure H, Measure N - Parcel Tax"},{"id":"Philanthropy / Grants","type":"resource","total":9356801.22,"subnodes":"AC Waste Management Authority, Alameda Alliance for Health, Alameda County Health Care Services, Alameda County Public Health - Health and Wellness, Alameda County Unaccompanied Immigrant Youth, BAPHR LGBTQ Support, BECHTEL, California Collaborative for Educational Excellence, California Education Partners, Casel Novo Foundation, City of Oakland Department of Violence Prevention, CODE.ORG, ConnectED, DONATIONS, Eat Learn Play Foundation - Education Center Program, EatLearnPlay Foundation for OAL, Educate 78 -Asp.Pri.Prg., General Mills Foundation, Gilead via OPEF, Golden State Worriors Community Foundation, Kaiser Health & Wellness w/EBCF, Kenneth Rainin Foundation, Learning Policy Institute, Mills Lesson Study Project, Music Instruments, National Center for Teacher Residences - Black Educators Initiative, National Community Development Institute, North Carolina State, Oakland Ed Fund - AAGLS, Oakland Fund Children & Youth, Oakland Public Education Fund, Oaklan Public Education Fund - OaklandUndivided, Oppenheimer Family Foundation, Packard Foundation, PCY 360/365 Grant, Philanthropic Ventures Foundation, Rodgers Family Foundation, Salesforce.Org, San Francisco Foundation, Schusterman Family Foundation, Schwab Charitable through OPEF, Share Our Strength, Silver Giving Foundation, Stupski Foundation, Sutter Health Foundation, The California Endowment, UCLA, Walter & Elise Haas Fund, WestEd, Workforce Development Plan"},{"id":"State","type":"resource","total":201634424.74,"subnodes":"AB1840 School Consolidation, After School Education and Safety (ASES), A-G Access Grant, A-G Learning Loss Mitigation, CA Apprenticeship Initiative, CA Community Schools Partnership Program (CCSPP): Implementation Grant, Cal Fire Planning Grant, California State Preschool Program, CalNEW Grant CDSS, CA National Board Certified Teacher Incentive Program, CA Partnership Academy (CTE): Riverside Community College, Career Technical Education (CTE) Incentive Grant Program, CDFA Farm to School Innovation, Child Development: California State Preschool Program QRIS Block Grant RFA, Child Dev: Universal Prekindergarten Planning & Implementation Grant, Classified School Employee Professional Development Block Grant, Dual Language Immersion, Educator Effectiveness, Ethnic Studies Professional Development, Expanded Learning Opportunities Program (ELOP), Food Service Staff Training, hild Development: ARP California State Preschool Program One-time Stipend, Home & Hospital Education, Inclusive Early Education Expansion Grant, K12 Strong Workforce Grant, Kitchen Infrastructure and Training Funds - 2022 KIT Funds, Kitchen Infrastructure Upgrade Funds, Learning Recovery Emergency Block Grant (Prop 98), Lottery: Instructional Materials, Ongoing & Major Maintenance Account, OTHER STATE, Partnership Academies Program , Pre-K and Family Literacy Support, Prop 47: Learning Communities for School Success Program Grants, Refugee Program Bureau - Newcomer Education and Well-Being, School Food Best Practices, Special Ed: Dispute Prevention and Dispute Resolution, Special Ed: Infant Discretionary Funds, Special Ed: Mental Health Services, Special Ed: Project WorkAbility I LEA, Special Education, Special Education Early Intervention Preschool Grant, State Lottery, State Preschool One-Time Funds, State School Facilities Projects, STRS On-Behalf Pension Contribution, Tobacco-Use Prevention Education: Grades 6-12, Univeral Prekinder (UPK) Planning & Implementation Grant Program, Early Educator Teacher Develop, Unrestricted AB1840, Unrest Transportation"},{"id":"Supplemental & Concentration","type":"resource","total":45997054.54,"subnodes":"Central Office Supplemental, One-time Additional Budget, S&C Carryover, School Site Approved Appeals"},{"id":"Administrative Offices","type":"site","total":43663440.45,"subnodes":"Board Of Education, Charter Schools Office (Admin), Chief Of Operations, Chief Of Staff, Continuous School Improvement, Legal Counsel, Office Of Chief Academic Officer, Office Of Sr. Business Officer, Office Of State Trustee, Office Of The Superintendent, State and Federal Programs"},{"id":"Facilities","type":"site","total":72160690.04,"subnodes":"Buildings & Grounds, Custodial Services, Facilities Planning"},{"id":"Financial Operations","type":"site","total":986146.04,"subnodes":"Procurement & Distribution"},{"id":"Instructional Programs","type":"site","total":62257091.23,"subnodes":"Early Childhood Development, Educator Effectiveness, Elementary Network 4, English Language Learner / Multilingual Achievement, High School Network, Linked Learning, Middle School Network, Office Of Equity, Office Of Post Secondary Readiness, Pre-K-5 Network 2, Pre-K-5 Network 3, Summer Programs, Teaching & Learning"},{"id":"Other","type":"site","total":24553337.83,"subnodes":"Budget Plug for Interims, Districtwide Expenses, Transfers to Charter Schools"},{"id":"Other Operations","type":"site","total":22182931.24,"subnodes":"Communications, Research Assessment & Data, Technology Services, Warehouse Distribution"},{"id":"People Operations","type":"site","total":19810623.2,"subnodes":"Human Resources, Labor Relations, Ombudsman"},{"id":"Risk Management","type":"site","total":29697278.09,"subnodes":"Risk Management"},{"id":"Special Education","type":"site","total":106435561.32,"subnodes":"Special Ed Local Plan Area, Special Education"},{"id":"Student Services","type":"site","total":113654783.68,"subnodes":"Associated Student Body Funds, Community Schools & Student Services, Food Service, Health Services (Nurses), Oakland Athletic League, OPSR Counseling, Student Assignment, Transportation"},{"id":"Restricted","type":"resource_type","subnodes":""},{"id":"Unrestricted","type":"resource_type","subnodes":""}],"links":[{"value":7438129.36,"target":"Administrative Offices","source":"Restricted"},{"value":36225311.09,"target":"Administrative Offices","source":"Unrestricted"},{"value":41507985.54,"target":"Facilities","source":"Restricted"},{"value":30652704.5,"target":"Facilities","source":"Unrestricted"},{"value":888320.19,"target":"Financial Operations","source":"Unrestricted"},{"value":48408820.17,"target":"Instructional Programs","source":"Restricted"},{"value":13848271.06,"target":"Instructional Programs","source":"Unrestricted"},{"value":13728945.05,"target":"Other","source":"Restricted"},{"value":10824392.78,"target":"Other","source":"Unrestricted"},{"value":4699558.61,"target":"Other Operations","source":"Restricted"},{"value":17483372.63,"target":"Other Operations","source":"Unrestricted"},{"value":4576318.94,"target":"People Operations","source":"Restricted"},{"value":15234304.26,"target":"People Operations","source":"Unrestricted"},{"value":29163782.26,"target":"Risk Management","source":"Restricted"},{"value":533495.83,"target":"Risk Management","source":"Unrestricted"},{"value":95962865.42,"target":"Special Education","source":"Restricted"},{"value":10472695.9,"target":"Special Education","source":"Unrestricted"},{"value":46703646.86,"target":"Student Services","source":"Restricted"},{"value":66951136.82,"target":"Student Services","source":"Unrestricted"},{"value":65918091.13,"target":"Unrestricted","source":"General (Base)"},{"value":45997054.54,"target":"Unrestricted","source":"Supplemental & Concentration"},{"value":56244949.33,"target":"Unrestricted","source":"State"},{"value":59348988.14,"target":"Restricted","source":"Federal"},{"value":38340734,"target":"Restricted","source":"Other Revenue"},{"value":9356801.22,"target":"Restricted","source":"Philanthropy / Grants"},{"value":145389475.41,"target":"Restricted","source":"State"},{"value":17440969.73,"target":"Restricted","source":"Bonds"},{"value":32622982.28,"target":"Unrestricted","source":"Federal"},{"value":22410909.56,"target":"Restricted","source":"Parcel Taxes"},{"value":2330927.78,"target":"Unrestricted","source":"Other Revenue"}]}');function Pr(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Rr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rr(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Rr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Lr=function(e){var t=e.data,n=e.pageContext,r=t.centralProgramsOverviewJson,d=t.allCentralProgramsJson.nodes,f=t.contentfulPage.content;Object.assign(f,{contentfulPie:t.allContentfulOverviewPieChart.nodes});var m=t.allContentfulCentralProgram.nodes,p=(0,bt.PU)(n.language);d=d.map((function(e){try{e.name=m.find((function(t){return t.siteCode===e.code})).programName}catch(t){console.warn("Could not find Contentful translation for "+e.name)}return e.category=p(e.category),e}));var h=function(e,t){for(var n,r=Object.assign({},t),a=Pr(e);!(n=a()).done;){var o=n.value;r[o]=p(t[o])}return r},g=function(e){var t=e.nodes,n=e.links;return{nodes:t.map(h.bind(null,["id"])),links:n.map(h.bind(null,["target","source"]))}},v=g(Ar),y=g(Or);return a.createElement(l.Z,{pageClassName:"central-programs-page"},a.createElement(c.Z,{title:t.contentfulPage.title}),a.createElement(o.Z,null,a.createElement(s.Z,null,a.createElement(i.Z,null,a.createElement("h1",null,f.contentfulPie[0].heading," (",t.site.siteMetadata.latestSchoolYear,")")))),a.createElement(o.Z,null,a.createElement(s.Z,null,a.createElement(i.Z,{lg:6},a.createElement(Sr,{data:r,content:f.contentfulPie})),a.createElement(i.Z,{lg:6},a.createElement(Cr,{data:r,content:f.contentfulPie}))),a.createElement(s.Z,null,a.createElement(i.Z,{lg:6,className:"mx-auto"},a.createElement(xt.Z,{data:r.time_series,content:f.programsTable.columns,gaEventCategory:"Overview"})))),a.createElement(o.Z,null,a.createElement(s.Z,null,a.createElement(i.Z,null,a.createElement("h1",{className:"pb-3 pt-5"},f.spendingSankeyChart.heading," (",t.site.siteMetadata.latestSchoolYear,")")))),a.createElement(u.Z,{minScreenWidth:"sm"},a.createElement(wt.Z,{data:v,restrictedData:y,labelContent:f.spendingSankeyChart,margin:{top:50,right:200,bottom:20,left:240},gaEventCategory:"Overview",includeCategoriesLink:!0})),a.createElement(o.Z,{id:"programs-section"},a.createElement(s.Z,null,a.createElement(i.Z,null,a.createElement("h1",{className:"pb-3 pt-5"},f.programsTable.heading," (",t.site.siteMetadata.latestSchoolYear,")"),a.createElement(Lt,{data:d,labelContent:f.programsTable})))))}}}]);
//# sourceMappingURL=component---src-pages-central-programs-js-5e0d4070976d9d52ab6b.js.map