!function(t,e){var l={fillClass:"ct-fill-donut",label:{html:"div",class:"ct-fill-donut-label"},items:[{}]};e.plugins=e.plugins||{},e.plugins.fillDonut=function(t){return t=e.extend({},l,t),function fillDonut(l){if(l instanceof e.Pie){var o,i=l.container;i.style.position="relative";var drawDonut=function(e){if("slice"===e.type){0===e.index&&(o=i.querySelector("svg"));var l=e.group._node.cloneNode(!0);t.fillClass.split(" ").forEach((function(t){l.setAttribute("class",l.getAttribute("class")+" "+t)})),[].forEach.call(l.querySelectorAll("path"),(function(t){[].forEach.call(t.querySelectorAll("animate"),(function(t){t.parentNode.removeChild(t)})),t.removeAttribute("stroke-dashoffset")})),o.insertBefore(l,o.childNodes[0])}};l.on("draw",(function(t){drawDonut(t)})),l.on("created",(function(o){var n=0;l.options.fillDonutOptions&&(t=e.extend({},t,l.options.fillDonutOptions),drawDonut(o)),[].forEach.call(t.items,(function(l){var o=globalThis.document.createElement(t.label.html);t.label.class.split(" ").forEach((function(t){o.classList?o.classList.add(t):o.className+=" "+t}));var s=e.extend({},{class:"",id:"",content:"fillText",position:"center",offsetY:0,offsetX:0},l);s.id.length>0&&o.setAttribute("id",s.id),s.class.length>0&&o.setAttribute("class",s.class),[].forEach.call(i.querySelectorAll('*[data-fill-index$="fdid-'+n+'"]'),(function(t){t.parentNode.removeChild(t)})),o.setAttribute("data-fill-index","fdid-"+n),n+=1,o.insertAdjacentHTML("beforeend",s.content),o.style.position="absolute",i.appendChild(o);var f=Math.ceil(i.offsetWidth/2),a=Math.ceil(i.clientHeight/2),c=Math.ceil(o.offsetWidth/2),r=Math.ceil(o.clientHeight/2),d={bottom:{bottom:0+s.offsetY+"px",left:f-c+s.offsetX+"px"},top:{top:0+s.offsetY+"px",left:f-c+s.offsetX+"px"},left:{top:a-r+s.offsetY+"px",left:0+s.offsetX+"px"},right:{top:a-r+s.offsetY+"px",right:0+s.offsetX+"px"},center:{top:a-r+s.offsetY+"px",left:f-c+s.offsetX+"px"}};e.extend(o.style,d[s.position])}))}))}}}}(document,Chartist);