blowfish/assets/lib/tw-elements/index.min.js

307 lines
532 KiB
JavaScript
Raw Normal View History

2023-03-02 16:28:51 -06:00
/*!
2023-04-22 07:01:24 -05:00
* Taliwind Elements 1.0.0-beta2
*
* Tailwind Elements is an open-source UI kit of advanced components for TailwindCSS.
* Copyright © 2023 MDBootstrap.com
*
* Unless a custom, individually assigned license has been granted, this program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
* In addition, a custom license may be available upon request, subject to the terms and conditions of that license. Please contact tailwind@mdbootstrap.com for more information on obtaining a custom license.
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
*
*/
(function(V,_t){typeof exports=="object"&&typeof module<"u"?_t(exports):typeof define=="function"&&define.amd?define(["exports"],_t):(V=typeof globalThis<"u"?globalThis:V||self,_t(V.te={}))})(this,function(V){"use strict";var Dk=Object.defineProperty;var Mk=(V,_t,P)=>_t in V?Dk(V,_t,{enumerable:!0,configurable:!0,writable:!0,value:P}):V[_t]=P;var Ee=(V,_t,P)=>(Mk(V,typeof _t!="symbol"?_t+"":_t,P),P);const _t=(()=>{const i={};let t=1;return{set(e,s,n){typeof e[s]>"u"&&(e[s]={key:s,id:t},t++),i[e[s].id]=n},get(e,s){if(!e||typeof e[s]>"u")return null;const n=e[s];return n.key===s?i[n.id]:null},delete(e,s){if(typeof e[s]>"u")return;const n=e[s];n.key===s&&(delete i[n.id],delete e[s])}}})(),P={setData(i,t,e){_t.set(i,t,e)},getData(i,t){return _t.get(i,t)},removeData(i,t){_t.delete(i,t)}},Kp=1e6,Up=1e3,vr="transitionend",Xp=i=>i==null?`${i}`:{}.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase(),se=i=>{do i+=Math.floor(Math.random()*Kp);while(document.getElementById(i));return i},Il=i=>{let t=i.getAttribute("data-te-target");if(!t||t==="#"){let e=i.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e=`#${e.split("#")[1]}`),t=e&&e!=="#"?e.trim():null}return t},yr=i=>{const t=Il(i);return t&&document.querySelector(t)?t:null},Ie=i=>{const t=Il(i);return t?document.querySelector(t):null},Gp=i=>{if(!i)return 0;let{transitionDuration:t,transitionDelay:e}=window.getComputedStyle(i);const s=Number.parseFloat(t),n=Number.parseFloat(e);return!s&&!n?0:(t=t.split(",")[0],e=e.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(e))*Up)},Ll=i=>{i.dispatchEvent(new Event(vr))},Mi=i=>!i||typeof i!="object"?!1:(typeof i.jquery<"u"&&(i=i[0]),typeof i.nodeType<"u"),Le=i=>Mi(i)?i.jquery?i[0]:i:typeof i=="string"&&i.length>0?document.querySelector(i):null,W=(i,t,e)=>{Object.keys(e).forEach(s=>{const n=e[s],o=t[s],r=o&&Mi(o)?"element":Xp(o);if(!new RegExp(n).test(r))throw new Error(`${i.toUpperCase()}: Option "${s}" provided type "${r}" but expected type "${n}".`)})},ne=i=>{if(!i||i.getClientRects().length===0)return!1;if(i.style&&i.parentNode&&i.parentNode.style){const t=getComputedStyle(i),e=getComputedStyle(i.parentNode);return getComputedStyle(i).getPropertyValue("visibility")==="visible"||t.display!=="none"&&e.display!=="none"&&t.visibility!=="hidden"}return!1},ei=i=>!i||i.nodeType!==Node.ELEMENT_NODE||i.classList.contains("disabled")?!0:typeof i.disabled<"u"?i.disabled:i.hasAttribute("disabled")&&i.getAttribute("disabled")!=="false",Pl=i=>{if(!document.documentElement.attachShadow)return null;if(typeof i.getRootNode=="function"){const t=i.getRootNode();return t instanceof ShadowRoot?t:null}return i instanceof ShadowRoot?i:i.parentNode?Pl(i.parentNode):null},Sn=()=>function(){},Ii=i=>{i.offsetHeight},Rl=()=>{const{jQuery:i}=window;return i&&!document.body.hasAttribute("data-te-no-jquery")?i:null},xr=[],Nl=i=>{document.readyState==="loading"?(xr.length||document.addEventListener("DOMContentLoaded",()=>{xr.forEach(t=>t())}),xr.push(i)):i()},st=()=>document.documentElement.dir==="rtl",qp=i=>Array.from(i),z=i=>document.createElement(i),ii=i=>{typeof i=="function"&&i()},$l=(i,t,e=!0)=>{if(!e){ii(i);return}const s=5,n=Gp(t)+s;let o=!1;const r=({target:a})=>{a===t&&(o=!0,t.removeEventListener(vr,r),ii(i))};t.addEventListener(vr,r),setTimeout(()=>{o||Ll(t)},n)},Bl=(i,t,e,s)=>{let n=i.indexOf(t);if(n===-1)return i[!e&&s?i.length-1:0];const o=i.length;return n+=e?1:-1,s&&(n=(n+o)%o),i[Math.max(0,Math.min(n,o-1))]},Zp=/[^.]*(?=\..*)\.|.*/,Qp=/\..*/,Jp=/::\d+$/,Er={};let Hl=1;const t_={mouseenter:"mouseover",mouseleave:"mouseout"},e_=/^(mouseenter|mouseleave)/i,Fl=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","f
`,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var h={placement:Gt(t.placement),variation:Bi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,dc(Object.assign({},h,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,dc(Object.assign({},h,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Ir={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:b_,data:{}};var Ln={passive:!0};function v_(i){var t=i.state,e=i.instance,s=i.options,n=s.scroll,o=n===void 0?!0:n,r=s.resize,a=r===void 0?!0:r,l=Mt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(h){h.addEventListener("scroll",e.update,Ln)}),a&&l.addEventListener("resize",e.update,Ln),function(){o&&c.forEach(function(h){h.removeEventListener("scroll",e.update,Ln)}),a&&l.removeEventListener("resize",e.update,Ln)}}const Lr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:v_,data:{}};var y_={left:"right",right:"left",bottom:"top",top:"bottom"};function Pn(i){return i.replace(/left|right|bottom|top/g,function(t){return y_[t]})}var x_={start:"end",end:"start"};function uc(i){return i.replace(/start|end/g,function(t){return x_[t]})}function Pr(i){var t=Mt(i),e=t.pageXOffset,s=t.pageYOffset;return{scrollLeft:e,scrollTop:s}}function Rr(i){return $i(Pe(i)).left+Pr(i).scrollLeft}function E_(i,t){var e=Mt(i),s=Pe(i),n=e.visualViewport,o=s.clientWidth,r=s.clientHeight,a=0,l=0;if(n){o=n.width,r=n.height;var c=nc();(c||!c&&t==="fixed")&&(a=n.offsetLeft,l=n.offsetTop)}return{width:o,height:r,x:a+Rr(i),y:l}}function C_(i){var t,e=Pe(i),s=Pr(i),n=(t=i.ownerDocument)==null?void 0:t.body,o=ri(e.scrollWidth,e.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),r=ri(e.scrollHeight,e.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-s.scrollLeft+Rr(i),l=-s.scrollTop;return qt(n||e).direction==="rtl"&&(a+=ri(e.clientWidth,n?n.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}function Nr(i){var t=qt(i),e=t.overflow,s=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(e+n+s)}function fc(i){return["html","body","#document"].indexOf(oe(i))>=0?i.ownerDocument.body:It(i)&&Nr(i)?i:fc(In(i))}function xs(i,t){var e;t===void 0&&(t=[]);var s=fc(i),n=s===((e=i.ownerDocument)==null?void 0:e.body),o=Mt(s),r=n?[o].concat(o.visualViewport||[],Nr(s)?s:[]):s,a=t.concat(r);return n?a:a.concat(xs(In(r)))}function $r(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function T_(i,t){var e=$i(i,!1,t==="fixed");return e.top=e.top+i.clientTop,e.left=e.left+i.clientLeft,e.bottom=e.top+i.clientHeight,e.right=e.left+i.clientWidth,e.width=i.clientWidth,e.height=i.clientHeight,e.x=e.left,e.y=e.top,e}function pc(i,t,e){return t===Tr?$r(E_(i,e)):oi(t)?T_(t,e):$r(C_(Pe(i)))}function A_(i){var t=xs(In(i)),e=["absolute","fixed"].indexOf(qt(i).position)>=0,s=e&&It(i)?vs(i):i;return oi(s)?t.filter(function(n){return oi(n)&&oc(n,s)&&oe(n)!=="body"}):[]}function w_(i,t,e,s){var n=t==="clippingParents"?A_(i):[].concat(t),o=[].concat(n,[e]),r=o[0],a=o.reduce(function(l,c){var h=pc(i,c,s);return l.top=ri(h.top,l.top),l.right=Mn(h.right,l.right),l.bottom=Mn(h.bottom,l.bottom),l.left=ri(h.left,l.left),l},pc(i,r,s));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function _c(i){var t=i.reference,e=i.element,s=i.placement,n=s?Gt(s):null,o=s?Bi(s):null,r=t.x+t.width/2-e.width/2,a=t.y+t.height/2-e.height/2,l;switch(n){case gt:l={x:r,y:t.y-e.height};break;case Ot:l={x:r,y:t.y+t.height};break;case Dt:l={x:t.x+t.width,y:a};break;case mt:l={x:t.x-e.width,y:a};break;default:l={x:t.
`)});function p(E,C,T,A){var w=T?"":A.media?"@media ".concat(A.media," {").concat(A.css,"}"):A.css;if(E.styleSheet)E.styleSheet.cssText=f(C,w);else{var S=document.createTextNode(w),k=E.childNodes;k[C]&&E.removeChild(k[C]),k.length?E.insertBefore(S,k[C]):E.appendChild(S)}}function _(E,C,T){var A=T.css,w=T.media,S=T.sourceMap;if(w?E.setAttribute("media",w):E.removeAttribute("media"),S&&typeof btoa<"u"&&(A+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(S))))," */")),E.styleSheet)E.styleSheet.cssText=A;else{for(;E.firstChild;)E.removeChild(E.firstChild);E.appendChild(document.createTextNode(A))}}var m=null,y=0;function x(E,C){var T,A,w;if(C.singleton){var S=y++;T=m||(m=d(C)),A=p.bind(null,T,S,!1),w=p.bind(null,T,S,!0)}else T=d(C),A=_.bind(null,T,C),w=function(){(function(k){if(k.parentNode===null)return!1;k.parentNode.removeChild(k)})(T)};return A(E),function(k){if(k){if(k.css===E.css&&k.media===E.media&&k.sourceMap===E.sourceMap)return;A(E=k)}else w()}}s.exports=function(E,C){(C=C||{}).singleton||typeof C.singleton=="boolean"||(C.singleton=(r===void 0&&(r=!!(window&&document&&document.all&&!window.atob)),r));var T=h(E=E||[],C);return function(A){if(A=A||[],Object.prototype.toString.call(A)==="[object Array]"){for(var w=0;w<T.length;w++){var S=c(T[w]);l[S].references--}for(var k=h(A,C),D=0;D<T.length;D++){var O=c(T[D]);l[O].references===0&&(l[O].updater(),l.splice(O,1))}T=k}}}}},t={};function e(s){var n=t[s];if(n!==void 0)return n.exports;var o=t[s]={id:s,exports:{}};return i[s](o,o.exports,e),o.exports}e.n=s=>{var n=s&&s.__esModule?()=>s.default:()=>s;return e.d(n,{a:n}),n},e.d=(s,n)=>{for(var o in n)e.o(n,o)&&!e.o(s,o)&&Object.defineProperty(s,o,{enumerable:!0,get:n[o]})},e.o=(s,n)=>Object.prototype.hasOwnProperty.call(s,n),(()=>{var s=e(379),n=e.n(s),o=e(454);function r(l){if(!l.hasAttribute("autocompleted")){l.setAttribute("autocompleted","");var c=new window.CustomEvent("onautocomplete",{bubbles:!0,cancelable:!0,detail:null});l.dispatchEvent(c)||(l.value="")}}function a(l){l.hasAttribute("autocompleted")&&(l.removeAttribute("autocompleted"),l.dispatchEvent(new window.CustomEvent("onautocomplete",{bubbles:!0,cancelable:!1,detail:null})))}n()(o.Z,{insert:"head",singleton:!1}),o.Z.locals,e(810),document.addEventListener("animationstart",function(l){l.animationName==="onautofillstart"?r(l.target):a(l.target)},!0),document.addEventListener("input",function(l){l.inputType!=="insertReplacementText"&&"data"in l?a(l.target):r(l.target)},!0)})()})();const ca="input",Gn="te.input",gh="data-te-input-wrapper-init",mh="data-te-input-notch-ref",bh="data-te-input-notch-leading-ref",vh="data-te-input-notch-middle-ref",Yb="data-te-input-notch-trailing-ref",Kb="data-te-input-helper-ref",Ub="data-te-input-placeholder-active",Be="data-te-input-state-active",yh="data-te-input-focused",xh="data-te-input-form-counter",fi=`[${gh}] input`,pi=`[${gh}] textarea`,Ki=`[${mh}]`,Eh=`[${bh}]`,Ch=`[${vh}]`,Xb=`[${Kb}]`,Gb={inputFormWhite:!1},qb={inputFormWhite:"(boolean)"},Zb={notch:"group flex absolute left-0 top-0 w-full max-w-full h-full text-left pointer-events-none",notchLeading:"pointer-events-none border border-solid box-border bg-transparent transition-all duration-200 ease-linear motion-reduce:transition-none left-0 top-0 h-full w-2 border-r-0 rounded-l-[0.25rem] group-data-[te-input-focused]:border-r-0 group-data-[te-input-state-active]:border-r-0",notchLeadingNormal:"border-neutral-300 dark:border-neutral-600 group-data-[te-input-focused]:shadow-[-1px_0_0_#3b71ca,_0_1px_0_0_#3b71ca,_0_-1px_0_0_#3b71ca] group-data-[te-input-focused]:border-primary",notchLeadingWhite:"border-neutral-200 group-data-[te-input-focused]:shadow-[-1px_0_0_#ffffff,_0_1px_0_0_#ffffff,_0_-1px_0_0_#ffffff] group-data-[te-input-focused]:border-white",notchMiddle:"pointer-events-none border border-solid box-border bg-transparent transition-all duration-200 ease-linear motion-reduce:transition-none grow-0 shrink-0 basis-auto w-auto max-w-[calc(100%-1rem)] h-full border-r-0 border-l-0 group-data-[te-input-focused]:border-x-0 group-data-[te-input-state-active]:border-x-0 group-data-[te-input-focused]:border-t group-data-[te-input-state-active]:border-t group-data-[te-input-focused]:border-solid group-data-[te-input-state-active]:border-solid group-data-[te-input-focused]:border-t-transparent group-data-[te-input-state-active]:border-t-transparent",notchMiddleNormal:"border-neutral-300 dark:border-neutral-600 group-
${Oh(i,h,d,t,e,s,n,o,r,a,c)}
`,m=`
${kv(u,f,h,n,c)}
${Oh(i,h,d,t,e,s,n,o,r,a,c)}
`;return n.inline?(v.addClass(p,c.datepickerDropdownContainer),p.setAttribute(gv,l),p.innerHTML=_):(v.addClass(p,c.modalContainer),p.setAttribute(_v,l),p.innerHTML=m),p}function wv(i){const t=z("div");return v.addClass(t,i),t.setAttribute(mv,""),t}function kv(i,t,e,s,n){return`
<div class="${n.datepickerHeader}">
<div class="${n.datepickerTitle}">
<span class="${n.datepickerTitleText}">${s.title}</span>
</div>
<div class="${n.datepickerDate}">
<span class="${n.datepickerDateText}" ${bv} >${s.weekdaysShort[t]}, ${s.monthsShort[e]} ${i}</span>
</div>
</div>
`}function Oh(i,t,e,s,n,o,r,a,l,c,h){let d;return r.inline?d=`
<div class="${h.datepickerMain}">
${Mh(t,e,r,h)}
<div class="${h.datepickerView}" ${Sh} tabindex="0">
${Dh(i,e,s,n,o,r,a,l,c,h)}
</div>
</div>
`:d=`
<div class="${h.datepickerMain}">
${Mh(t,e,r,h)}
<div class="${h.datepickerView}" ${Sh} tabindex="0">
${Dh(i,e,s,n,o,r,a,l,c,h)}
</div>
${Sv(r,h)}
</div>
`,d}function Dh(i,t,e,s,n,o,r,a,l,c){let h;return o.view==="days"?h=io(i,e,o,c):o.view==="months"?h=so(t,s,n,o,r,c):h=no(i,s,o,a,l,c),h}function Mh(i,t,e,s){return`
<div class="${s.datepickerDateControls}">
<button class="${s.datepickerViewChangeButton}" aria-label="${e.switchToMultiYearViewLabel}" ${Tv}>
${e.monthsFull[i]} ${t} ${de(e,s)}
</button>
<div class="${s.datepickerArrowControls}">
<button class="${s.datepickerPreviousButton}" aria-label="${e.prevMonthLabel}" ${vv}>${e.changeMonthIconTemplate}</button>
<button class="${s.datepickerNextButton}" aria-label="${e.nextMonthLabel}" ${yv}>${e.changeMonthIconTemplate}</button>
</div>
</div>
`}function de(i,t){return`
<span class="${t.datepickerViewChangeIcon}">
${i.viewChangeIconTemplate}
</span>
`}function Sv(i,t){const e=`<button class="${t.datepickerFooterBtn}" aria-label="${i.okBtnLabel}" ${xv}>${i.okBtnText}</button>`,s=`<button class="${t.datepickerFooterBtn}" aria-label="${i.cancelBtnLabel}" ${Ev}>${i.cancelBtnText}</button>`,n=`<button class="${t.datepickerFooterBtn} ${t.datepickerClearBtn}" aria-label="${i.clearBtnLabel}" ${Cv}>${i.clearBtnText}</button>`;return`
<div class="${t.datepickerFooter}">
${i.removeClearBtn?"":n}
${i.removeCancelBtn?"":s}
${i.removeOkBtn?"":e}
</div>
`}function io(i,t,e,s){const n=Ov(i,t,e),r=`
<tr>
${e.weekdaysNarrow.map((l,c)=>`<th class="${s.datepickerDayHeading}" scope="col" aria-label="${e.weekdaysFull[c]}">${l}</th>`).join("")}
</tr>
`,a=n.map(l=>`
<tr>
${l.map(c=>`
<td
class="${s.datepickerCell} ${s.datepickerCellSmall}"
data-te-date="${K(c.date)}-${ot(c.date)}-${bt(c.date)}"
aria-label="${c.date}"
aria-selected="${c.isSelected}"
${c.isSelected?"data-te-datepicker-cell-selected":""}
${!c.currentMonth||c.disabled?"data-te-datepicker-cell-disabled":""}
${c.isToday?"data-te-datepicker-cell-current":""}
>
<div
class="${s.datepickerCellContent} ${s.datepickerCellContentSmall}"
style="${c.currentMonth?"display: block":"display: none"}"
>
${c.dayNumber}
</div>
</td>
`).join("")}
</tr>
`).join("");return`
<table class="${s.datepickerTable}">
<thead>
${r}
</thead>
<tbody>
${a}
</tbody>
</table>
`}function Ov(i,t,e){const s=[],n=ot(i),o=ot(Ct(i,-1)),r=ot(Ct(i,1)),a=K(i),l=lv(a,n,e),c=ua(i),h=ua(Ct(i,-1)),d=7;let u=1,f=!1;for(let p=1;p<d;p++){const _=[];if(p===1){const m=h-l+1;for(let x=m;x<=h;x++){const E=he(a,o,x);_.push({date:E,currentMonth:f,isSelected:t&&_i(E,t),isToday:_i(E,Xi()),dayNumber:bt(E)})}f=!0;const y=d-_.length;for(let x=0;x<y;x++){const E=he(a,n,u);_.push({date:E,currentMonth:f,isSelected:t&&_i(E,t),isToday:_i(E,Xi()),dayNumber:bt(E),disabled:eo(E,e.min,e.max,e.filter,e.disablePast,e.disableFuture)}),u++}}else for(let m=1;m<8;m++){u>c&&(u=1,f=!1);const y=he(a,f?n:r,u);_.push({date:y,currentMonth:f,isSelected:t&&_i(y,t),isToday:_i(y,Xi()),dayNumber:bt(y),disabled:eo(y,e.min,e.max,e.filter,e.disablePast,e.disableFuture)}),u++}s.push(_)}return s}function so(i,t,e,s,n,o){const r=Dv(s,n),a=ot(Xi()),l=K(Xi()),c=`
${r.map(h=>`
<tr>
${h.map(d=>{const u=s.monthsShort.indexOf(d);return`
<td class="${o.datepickerCell} ${o.datepickerCellLarge}"
${kh(u,i,s.min,s.max,s.disablePast,s.disableFuture)?"data-te-datepicker-cell-disabled":""}
data-te-month="${u}" data-te-year="${i}" aria-label="${d}, ${i}"
${u===e&&i===t?"data-te-datepicker-cell-selected":""}
${u===a&&i===l?"data-te-datepicker-cell-current":""}" data-te-month="${u}" data-te-year="${i}" aria-label="${d}, ${i}">
<div class="${o.datepickerCellContent} ${o.datepickerCellContentLarge}">${d}</div>
</td>
`}).join("")}
</tr>
`).join("")}
`;return`
<table class="${o.datepickerTable}">
<tbody>
${c}
</tbody>
</table>
`}function Dv(i,t){const e=[];let s=[];for(let n=0;n<i.monthsShort.length;n++)if(s.push(i.monthsShort[n]),s.length===t){const o=s;e.push(o),s=[]}return e}function no(i,t,e,s,n,o){const r=Mv(i,s,n),a=K(Xi()),l=`
${r.map(c=>`
<tr>
${c.map(h=>`
<td class="${o.datepickerCell} ${o.datepickerCellLarge}" aria-label="${h}" data-te-year="${h}"
${fa(h,e.min,e.max,e.disablePast,e.disableFuture)?"data-te-datepicker-cell-disabled":""}
${h===t?"data-te-datepicker-cell-selected":""}
${h===a?"data-te-datepicker-cell-current":""}
>
<div class="${o.datepickerCellContent} ${o.datepickerCellContentLarge}">${h}</div>
</td>
`).join("")}
</tr>
`).join("")}
`;return`
<table class="${o.datepickerTable}">
<tbody>
${l}
</tbody>
</table>
`}function Mv(i,t,e){const s=[],n=K(i),o=to(i,t),r=n-o;let a=[];for(let l=0;l<t;l++)if(a.push(r+l),a.length===e){const c=a;s.push(c),a=[]}return s}function Iv(i,t){return`
<button id="${i}" type="button" class="${t}" data-te-datepicker-toggle-button-ref data-te-datepicker-toggle-ref>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
<path fill-rule="evenodd" d="M6.75 2.25A.75.75 0 017.5 3v1.5h9V3A.75.75 0 0118 3v1.5h.75a3 3 0 013 3v11.25a3 3 0 01-3 3H5.25a3 3 0 01-3-3V7.5a3 3 0 013-3H6V3a.75.75 0 01.75-.75zm13.5 9a1.5 1.5 0 00-1.5-1.5H5.25a1.5 1.5 0 00-1.5 1.5v7.5a1.5 1.5 0 001.5 1.5h13.5a1.5 1.5 0 001.5-1.5v-7.5z" clip-rule="evenodd" />
</svg>
</button>
`}const Zi=37,Tt=38,Qi=39,ut=40,Ji=36,ts=35,pa=33,_a=34,Pt=13,oo=32,ro=27,Rs=9,Lv=8,Pv=46,Qt=24,ao=4,lo=4,ga="datepicker",co="te.datepicker",ho=`.${co}`,Rv=".data-api",Nv=`close${ho}`,$v=`open${ho}`,Bv=`dateChange${ho}`,uo=`click${ho}${Rv}`,Ih="data-te-datepicker-modal-container-ref",Lh="data-te-datepicker-dropdown-container-ref",fo="[data-te-datepicker-toggle-ref]",Hv=`[${Ih}]`,Fv=`[${Lh}]`,Vv="[data-te-datepicker-view-change-button-ref]",Wv="[data-te-datepicker-previous-button-ref]",zv="[data-te-datepicker-next-button-ref]",jv="[data-te-datepicker-ok-button-ref]",Yv="[data-te-datepicker-cancel-button-ref]",Kv="[data-te-datepicker-clear-button-ref]",Uv="[data-te-datepicker-view-ref]",Xv="[data-te-datepicker-toggle-button-ref]",Gv="[data-te-datepicker-date-text-ref]",qv="[data-te-dropdown-backdrop-ref]",Zv="animate-[fade-in_0.3s_both] px-[auto] motion-reduce:transition-none motion-reduce:animate-none",Qv="animate-[fade-out_0.3s_both] px-[auto] motion-reduce:transition-none motion-reduce:animate-none",Jv="animate-[fade-in_0.15s_both] px-[auto] motion-reduce:transition-none motion-reduce:animate-none",t0="animate-[fade-out_0.15s_both] px-[auto] motion-reduce:transition-none motion-reduce:animate-none",e0="flex flex-col fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[328px] h-[512px] bg-white rounded-[0.6rem] shadow-lg z-[1066] xs:max-md:landscape:w-[475px] xs:max-md:landscape:h-[360px] xs:max-md:landscape:flex-row dark:bg-zinc-700",i0="w-full h-full fixed top-0 right-0 left-0 bottom-0 bg-black/40 z-[1065]",s0="relative h-full",n0="xs:max-md:landscape:h-full h-[120px] px-6 bg-primary flex flex-col rounded-t-lg dark:bg-zinc-800",o0="h-8 flex flex-col justify-end",r0="text-[10px] font-normal uppercase tracking-[1.7px] text-white",a0="xs:max-md:landscape:mt-24 h-[72px] flex flex-col justify-end",l0="text-[34px] font-normal text-white",c0="outline-none px-3",h0="px-3 pt-2.5 pb-0 flex justify-between text-black/[64]",d0="flex items-center outline-none p-2.5 text-neutral-500 font-medium text-[0.9rem] rounded-xl shadow-none bg-transparent m-0 border-none hover:bg-neutral-200 focus:bg-neutral-200 dark:text-white dark:hover:bg-white/10 dark:focus:bg-white/10",u0="mt-2.5",f0="p-0 w-10 h-10 leading-10 border-none outline-none m-0 text-gray-600 bg-transparent mr-6 hover:bg-neutral-200 hover:rounded-[50%] focus:bg-neutral-200 focus:rounded-[50%] dark:text-white dark:hover:bg-white/10 dark:focus:bg-white/10 [&>svg]:w-4 [&>svg]:h-4 [&>svg]:mx-auto",p0="p-0 w-10 h-10 leading-10 border-none outline-none m-0 text-gray-600 bg-transparent hover:bg-neutral-200 hover:rounded-[50%] focus:bg-neutral-200 focus:rounded-[50%] dark:text-white dark:hover:bg-white/10 dark:focus:bg-white/10 [&>svg]:w-4 [&>svg]:h-4 [&>svg]:rotate-180 [&>svg]:mx-auto",_0="h-14 flex absolute w-full bottom-0 justify-end items-center px-3",g0="outline-none bg-white text-primary border-none cursor-pointer py-0 px-2.5 uppercase text-[0.8rem] leading-10 font-medium h-10 tracking-[.1rem] rounded-[10px] mb-2.5 hover:bg-neutral-200 focus:bg-neutral-200 dark:bg-transparent dark:text-white dark:hover:bg-white/10 dark:focus:bg-white/10",m0="mr-auto",b0="w-10 h-10 text-center text-[12px] font-normal dark:text-white",v0="text-center data-[te-datepicker-cell-disabled]:text-neutral-300 data-[te-datepicker-cell-disabled]:cursor-default data-[te-datepicker-cell-disabled]:pointer-events-none data-[te-datepicker-cell-disabled]:hover:cursor-default hover:cursor-pointer group",y0="w-10 h-10 xs:max-md:landscape:w-8 xs:max-md:landscape:h-8",x0="w-[76px] h-[42px]",E0="mx-auto group-[:not([data-te-datepicker-cell-disabled]):not([data-te-datepicker-cell-selected]):hover]:bg-neutral-300 group-[[data-te-datepicker-cell-selected]]:bg-primary group-[[data-te-datepicker-cell-selected]]:text-white group-[:not([data-te-datepicker-cell-selected])[data-te-datepicker-cell-focused]]:bg-neutral-100 group-[[data-te-datepicker-cell-focused]]:data-[te-datepicker-cell-selected]:bg-primary group-[[data-te-datepicker-cell-current]]:border-solid group-[[data-te-datepicker-cell-current]]:border-black gr
<path stroke-linecap="round" stroke-linejoin="round" d="M15.75 19.5L8.25 12l7.5-7.5" />
</svg>
`,nextMultiYearLabel:"Next 24 years",prevMultiYearLabel:"Previous 24 years",switchToMultiYearViewLabel:"Choose year and month",switchToMonthViewLabel:"Choose date",switchToDayViewLabel:"Choose date",startDate:null,startDay:0,format:"dd/mm/yyyy",view:"days",viewChangeIconTemplate:`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="0" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M19.5 8.25l-7.5 7.5-7.5-7.5" />
</svg>
`,min:null,max:null,filter:null,inline:!1,toggleButton:!0,disableToggleButton:!1,disableInput:!1,animations:!0,confirmDateOnSelect:!1,removeOkBtn:!1,removeCancelBtn:!1,removeClearBtn:!1},D0={title:"string",container:"string",disablePast:"boolean",disableFuture:"boolean",monthsFull:"array",monthsShort:"array",weekdaysFull:"array",weekdaysShort:"array",weekdaysNarrow:"array",okBtnText:"string",clearBtnText:"string",cancelBtnText:"string",okBtnLabel:"string",clearBtnLabel:"string",cancelBtnLabel:"string",nextMonthLabel:"string",prevMonthLabel:"string",nextYearLabel:"string",prevYearLabel:"string",nextMultiYearLabel:"string",prevMultiYearLabel:"string",changeMonthIconTemplate:"string",switchToMultiYearViewLabel:"string",switchToMonthViewLabel:"string",switchToDayViewLabel:"string",startDate:"(null|string|date)",startDay:"number",format:"string",view:"string",viewChangeIconTemplate:"string",min:"(null|string|date)",max:"(null|string|date)",filter:"(null|function)",inline:"boolean",toggleButton:"boolean",disableToggleButton:"boolean",disableInput:"boolean",animations:"boolean",confirmDateOnSelect:"boolean",removeOkBtn:"boolean",removeCancelBtn:"boolean",removeClearBtn:"boolean"},M0={fadeIn:Zv,fadeOut:Qv,fadeInShort:Jv,fadeOutShort:t0,modalContainer:e0,datepickerBackdrop:i0,datepickerMain:s0,datepickerHeader:n0,datepickerTitle:o0,datepickerTitleText:r0,datepickerDate:a0,datepickerDateText:l0,datepickerView:c0,datepickerDateControls:h0,datepickerViewChangeButton:d0,datepickerViewChangeIcon:k0,datepickerArrowControls:u0,datepickerPreviousButton:f0,datepickerNextButton:p0,datepickerFooter:_0,datepickerFooterBtn:g0,datepickerClearBtn:m0,datepickerDayHeading:b0,datepickerCell:v0,datepickerCellSmall:y0,datepickerCellLarge:x0,datepickerCellContent:E0,datepickerCellContentSmall:C0,datepickerCellContentLarge:T0,datepickerTable:A0,datepickerToggleButton:w0,datepickerDropdownContainer:S0},I0={fadeIn:"string",fadeOut:"string",fadeInShort:"string",fadeOutShort:"string",modalContainer:"string",datepickerBackdrop:"string",datepickerMain:"string",datepickerHeader:"string",datepickerTitle:"string",datepickerTitleText:"string",datepickerDate:"string",datepickerDateText:"string",datepickerView:"string",datepickerDateControls:"string",datepickerViewChangeButton:"string",datepickerArrowControls:"string",datepickerPreviousButton:"string",datepickerNextButton:"string",datepickerFooter:"string",datepickerFooterBtn:"string",datepickerClearBtn:"string",datepickerDayHeading:"string",datepickerCell:"string",datepickerCellSmall:"string",datepickerCellLarge:"string",datepickerCellContent:"string",datepickerCellContentSmall:"string",datepickerCellContentLarge:"string",datepickerTable:"string",datepickerToggleButton:"string",datepickerDropdownContainer:"string"};class Ph{constructor(t,e,s){this._element=t,this._input=g.findOne("input",this._element),this._options=this._getConfig(e),this._classes=this._getClasses(s),this._activeDate=new Date,this._selectedDate=null,this._selectedYear=null,this._selectedMonth=null,this._headerDate=null,this._headerYear=null,this._headerMonth=null,this._view=this._options.view,this._popper=null,this._focusTrap=null,this._isOpen=!1,this._toggleButtonId=se("datepicker-toggle-"),this._animations=!window.matchMedia("(prefers-reduced-motion: reduce)").matches&&this._options.animations,this._scrollBar=new Es,this._element&&P.setData(t,co,this),this._init(),this.toggleButton&&this._options.disableToggle&&(this.toggleButton.disabled="true"),this._options.disableInput&&(this._input.disabled="true")}static get NAME(){return ga}get container(){return g.findOne(`[${Ih}='${this._toggleButtonId}']`)||g.findOne(`[${Lh}='${this._toggleButtonId}']`)}get options(){return this._options}get activeCell(){let t;return this._view==="days"&&(t=this._getActiveDayCell()),this._view==="months"&&(t=this._getActiveMonthCell()),this._view==="years"&&(t=this._getActiveYearCell()),t}get activeDay(){return bt(this._activeDate)}get activeMonth(){return ot(this._activeDate)}get activeYear(){return K(this._activeDate)}get firstYearInView(){return this.activeYea
<div class="${u.timepickerContainer}">
<div class="${u.timepickerElements}">
<div id='${s}' class='${u.timepickerHead}' style='padding-right:${i?50:10}px'>
<div class='${u.timepickerHeadContent}'>
<div class="${u.timepickerCurrentWrapper}">
<span class="${u.timepickerCurrentButtonWrapper}">
<button type='button' class='${u.timepickerCurrentButton}' tabindex="0" data-te-timepicker-active data-te-timepicker-current data-te-timepicker-hour data-te-ripple-init>21</button>
</span>
<button type='button' class='${u.timepickerDot}' disabled>:</button>
<span class="${u.timepickerCurrentButtonWrapper}">
<button type='button' class='${u.timepickerCurrentButton}' tabindex="0" data-te-timepicker-current data-te-timepicker-minute data-te-ripple-init>21</button>
</span>
</div>
${i?"":`<div class="${u.timepickerModeWrapper}">
<button type='button' class="${u.timepickerModeAm}" tabindex="0" data-te-timepicker-am data-te-timepicker-hour-mode data-te-ripple-init>${h}</button>
<button class="${u.timepickerModePm}" tabindex="0" data-te-timepicker-pm data-te-timepicker-hour-mode data-te-ripple-init>${d}</button>
</div>`}
</div>
</div>
${l?"":`<div id='${o}' class='${u.timepickerClockWrapper}' data-te-timepicker-clock-wrapper>
<div class='${u.timepickerClock}' data-te-timepicker-clock>
<span class='${u.timepickerMiddleDot}' data-te-timepicker-middle-dot></span>
<div class='${u.timepickerHandPointer}' data-te-timepicker-hand-pointer>
<div class='${u.timepickerPointerCircle}' data-te-timepicker-circle></div>
</div>
${i?'<div class="'+u.timepickerClockInner+'" data-te-timepicker-clock-inner></div>':""}
</div>
</div>`}
</div>
<div id='${n}' class='${u.timepickerFooterWrapper}'>
<div class="${u.timepickerFooter}">
${c?`<button type='button' class='${u.timepickerFooterButton}' data-te-timepicker-clear tabindex="0" data-te-ripple-init>${a}</button>`:""}
<button type='button' class='${u.timepickerFooterButton}' data-te-timepicker-cancel tabindex="0" data-te-ripple-init>${e}</button>
<button type='button' class='${u.timepickerFooterButton}' data-te-timepicker-submit tabindex="0" data-te-ripple-init>${t}</button>
</div>
</div>
</div>
</div>`,p=`<div id='${r}' class='${u.timepickerInlineWrapper}' data-te-timepicker-wrapper>
<div class="${u.timepickerInlineContainer}">
<div class="${u.timepickerInlineElements}">
<div id='${s}' class='${u.timepickerInlineHead}'
style='padding-right:10px'>
<div class='${u.timepickerInlineHeadContent}'>
<div class="${u.timepickerCurrentWrapper}">
<span class="${u.timepickerInlineHourWrapper}" data-te-timepicker-inline-hour-icons>
<span class="${u.timepickerInlineIconUp}" data-te-timepicker-icon-up data-te-timepicker-icon-inline-hour>
<span class="${u.timepickerInlineIconSvg}">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5">
<path stroke-linecap="round" stroke-linejoin="round" d="M4.5 15.75l7.5-7.5 7.5 7.5" />
</svg>
</span>
</span>
<button type='button' class='${u.timepickerInlineCurrentButton}' data-te-timepicker-hour data-te-timepicker-current data-te-timepicker-current-inline tabindex="0" data-te-ripple-init>21</button>
<span class="${u.timepickerInlineIconDown}" data-te-timepicker-icon-inline-hour data-te-timepicker-icon-down>
<span class="${u.timepickerInlineIconSvg}">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5">
<path stroke-linecap="round" stroke-linejoin="round" d="M19.5 8.25l-7.5 7.5-7.5-7.5" />
</svg>
</span>
</span>
</span>
<button type='button' class='${u.timepickerInlineDot}' data-te-timepicker-current-inline disabled>:</button>
<span class="${u.timepickerCurrentMinuteWrapper}">
<span class="${u.timepickerInlineIconUp}" data-te-timepicker-icon-up data-te-timepicker-icon-inline-minute>
<span class="${u.timepickerInlineIconSvg}">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5">
<path stroke-linecap="round" stroke-linejoin="round" d="M4.5 15.75l7.5-7.5 7.5 7.5" />
</svg>
</span>
</span>
<button type='button' class='${u.timepickerInlineCurrentButton}' data-te-timepicker-minute data-te-timepicker-current data-te-timepicker-current-inline tabindex="0" data-te-ripple-init>21</button>
<span class="${u.timepickerInlineIconDown}" data-te-timepicker-icon-inline-minute data-te-timepicker-icon-down>
<span class="${u.timepickerInlineIconSvg}">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5">
<path stroke-linecap="round" stroke-linejoin="round" d="M19.5 8.25l-7.5 7.5-7.5-7.5" />
</svg>
</span>
</span>
</span>
</div>
${i?"":`<div class="${u.timepickerInlineModeWrapper}">
<button type='button' class="${u.timepickerInlineModeAm}" data-te-timepicker-am data-te-timepicker-hour-mode tabindex="0" data-te-ripple-init>${h}</button>
<button class="${u.timepickerInlineModePm}" data-te-timepicker-hour-mode data-te-timepicker-pm tabindex="0" data-te-ripple-init>${d}</button>
<button type='button' class='${u.timepickerInlineSubmitButton}' data-te-timepicker-submit tabindex="0" data-te-ripple-init>${t}</button>
</div>`}
${i?`<button class='${u.timepickerInlineSubmitButton}' data-te-timepicker-submit tabindex="0" data-te-ripple-init>${t}</button>`:""}
</div>
</div>
</div>
</div>
</div>`;return l?p:f},P0=(i,t,e)=>{const{iconSVG:s}=i;return`
<button id="${t}" tabindex="0" type="button" class="${e.timepickerToggleButton}" data-te-toggle="timepicker" data-te-timepicker-toggle-button data-te-timepicker-icon>
${s}
</button>
`},po="data-te-timepicker-disabled",_o="data-te-timepicker-active",gi=i=>{if(i==="")return;let t,e,s,n;return Rh(i)?(t=i.getHours(),n=t,e=i.getMinutes(),t%=12,n===0&&t===0&&(s="AM"),t=t||12,s===void 0&&(s=Number(n)>=12?"PM":"AM"),e=e<10?`0${e}`:e):([t,e,s]=j(i,!1),n=t,t%=12,n===0&&t===0&&(s="AM"),t=t||12,s===void 0&&(s=Number(n)>=12?"PM":"AM")),{hours:t,minutes:e,amOrPm:s}},Rh=i=>i&&Object.prototype.toString.call(i)==="[object Date]"&&!Number.isNaN(i),Nh=i=>{if(i==="")return;let t,e;return Rh(i)?(t=i.getHours(),e=i.getMinutes()):[t,e]=j(i,!1),e=Number(e)<10?`0${Number(e)}`:e,{hours:t,minutes:e}},R0=(i,t,e)=>b.on(document,i,t,({target:s})=>{if(s.hasAttribute(_o))return;document.querySelectorAll(t).forEach(o=>{o.hasAttribute(_o)&&(v.removeClass(o,e.opacity),o.removeAttribute(_o))}),v.addClass(s,e.opacity),s.setAttribute(_o,"")}),$h=({clientX:i,clientY:t,touches:e},s,n=!1)=>{const{left:o,top:r}=s.getBoundingClientRect();let a={};return!n||!e?a={x:i-o,y:t-r}:n&&Object.keys(e).length>0&&(a={x:e[0].clientX-o,y:e[0].clientY-r}),a},go=()=>navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/MacIntel/.test(navigator.platform)||/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),j=(i,t=!0)=>t?i.value.replace(/:/gi," ").split(" "):i.replace(/:/gi," ").split(" "),Bh=(i,t)=>{const[e,s,n]=j(i,!1),[o,r,a]=j(t,!1);return n==="PM"&&a==="AM"||n===a&&e>o||s>r},Hh=()=>{const i=new Date,t=i.getHours(),e=i.getMinutes();return`${t}:${e<10?`0${e}`:e}`},He=(i,t,e)=>{if(!t)return i;let s=Hh();return e&&(s=`${gi(s).hours}:${gi(s).minutes} ${gi(s).amOrPm}`),(i!==""&&Bh(s,i)||i==="")&&(i=s),i},Fe=(i,t,e)=>{if(!t)return i;let s=Hh();return e&&(s=`${gi(s).hours}:${gi(s).minutes} ${gi(s).amOrPm}`),(i!==""&&!Bh(s,i)||i==="")&&(i=s),i},N0=({format12:i,maxTime:t,minTime:e,disablePast:s,disableFuture:n},o,r)=>{const a=j(o)[1];e=He(e,s,i),t=Fe(t,n,i);const[l,c,h]=j(t,!1),[d,u,f]=j(e,!1);if(h!==void 0||f!==void 0)return[r,a];if(!(l!==""&&d===""&&Number(r)>Number(l))&&!(l===""&&d!==""&&c===void 0&&u!==""&&Number(r)<Number(d)))return[r,a]},Fh=(i,t,e,s)=>{i.forEach(n=>{t=t==="12"&&s?"0":t,(n.textContent==="00"||Number(n.textContent==="12"&&s?"0":n.textContent)>t)&&(v.addClass(n,e.tipsDisabled),n.setAttribute(po,""))})},Vh=(i,t,e,s)=>{i.forEach(n=>{t=t==="12"&&s?"0":t,n.textContent!=="00"&&Number(n.textContent==="12"&&s?"0":n.textContent)<Number(t)&&(v.addClass(n,e.tipsDisabled),n.setAttribute(po,""))})},Wh=(i,t,e,s)=>{if(t==="12"||t==="24")return;const n=e?12:24;return s==="max"?(Number(i)===n?0:Number(i))>Number(t):(Number(i)===n?0:Number(i))<Number(t)},$0=(i,t,e,s,n,o)=>{i.forEach(r=>{(Wh(s,e,o,"max")||Number(r.textContent)>t&&Number(s)===Number(e))&&(v.addClass(r,n.tipsDisabled),r.setAttribute(po,""))})},B0=(i,t,e,s,n,o)=>{i.forEach(r=>{(Wh(s,e,o,"min")||Number(r.textContent)<t&&Number(s)===Number(e))&&(v.addClass(r,n.tipsDisabled),r.setAttribute(po,""))})},H0=i=>i.startsWith("0")?Number(i.slice(1)):Number(i),Ns="timepicker",H=`data-te-${Ns}`,zh="[data-te-toggle]",mo=`te.${Ns}`,ue=`.${mo}`,fe=".data-api",jh=`click${ue}${fe}`,bo=`keydown${ue}${fe}`,Yh=`mousedown${ue}${fe}`,Kh=`mouseup${ue}${fe}`,Uh=`mousemove${ue}${fe}`,Xh=`mouseleave${ue}${fe}`,Gh=`mouseover${ue}${fe}`,qh=`touchmove${ue}${fe}`,Zh=`touchend${ue}${fe}`,Qh=`touchstart${ue}${fe}`,F0=`[${H}-am]`,V0=`[${H}-pm]`,W0=`[${H}-format24]`,vo=`[${H}-current]`,yo=`[${H}-hour-mode]`,z0=`[${H}-toggle-button]`,ma=`${H}-cancel`,Jh=`${H}-clear`,ba=`${H}-submit`,j0=`${H}-icon`,va=`${H}-icon-up`,ya=`${H}-icon-down`,Y0=`${H}-icon-inline-hour`,K0=`${H}-icon-inline-minute`,td=`${H}-inline-hour-icons`,U0=`${H}-current-inline`,X0="readonly",ed=`${H}-invalid-feedback`,xa=`${H}-is-invalid`,Ve=`${H}-disabled`,J=`${H}-active`,G0=`${H}-input`,mi=`${H}-clock`,$s=`${H}-clock-inner`,Ea=`${H}-wrapper`,id=`${H}-clock-wrapper`,xo=`${H}-hour`,Ca=`${H}-minute`,Eo=`${H}-tips-element`,ft=`${H}-tips-hours`,vt=`${H}-tips-minutes`,Rt=`${H}-tips-inner`,Co=`${H}-tips-inner-element`,sd=`${H}-middle-dot`,Ta=`${H}-hand-pointer`,Aa=`${H}-circle`,nd=`${H}-modal`,q0={appendValidationInfo:!0,bodyID:"",c
<path stroke-linecap="round" stroke-linejoin="round" d="M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>`,withIcon:!0,pmLabel:"PM",amLabel:"AM",animations:!0},Z0={appendValidationInfo:"boolean",bodyID:"string",cancelLabel:"string",clearLabel:"string",closeModalOnBackdropClick:"boolean",closeModalOnMinutesClick:"boolean",container:"string",disabled:"boolean",disablePast:"boolean",disableFuture:"boolean",enableValidation:"boolean",footerID:"string",format12:"boolean",format24:"boolean",headID:"string",increment:"boolean",inline:"boolean",invalidLabel:"string",modalID:"string",okLabel:"string",overflowHidden:"boolean",pickerID:"string",readOnly:"boolean",showClearBtn:"boolean",switchHoursToMinutesOnClick:"boolean",defaultTime:"(string|date|number)",iconSVG:"string",withIcon:"boolean",pmLabel:"string",amLabel:"string",animations:"boolean"},Q0={tips:"absolute rounded-[100%] w-[32px] h-[32px] text-center cursor-pointer text-[1.1rem] rounded-[100%] bg-transparent flex justify-center items-center font-light focus:outline-none selection:bg-transparent",tipsActive:"text-white bg-[#3b71ca] font-normal",tipsDisabled:"text-[#b3afaf] pointer-events-none bg-transparent",transform:"transition-[transform,height] ease-in-out duration-[400ms]",modal:"z-[1065]",clockAnimation:"animate-[show-up-clock_350ms_linear]",opacity:"!opacity-100",timepickerWrapper:"touch-none opacity-100 z-[1065] inset-0 bg-[#00000066] h-full flex items-center justify-center flex-col fixed",timepickerContainer:"flex items-center justify-center flex-col max-h-[calc(100%-64px)] overflow-y-auto shadow-[0_10px_15px_-3px_rgba(0,0,0,0.07),0_4px_6px_-2px_rgba(0,0,0,0.05)] min-[320px]:max-[825px]:landscape:rounded-lg",timepickerElements:"flex flex-col min-w-[310px] min-h-[325px] bg-white rounded-t-[0.6rem] min-[320px]:max-[825px]:landscape:!flex-row min-[320px]:max-[825px]:landscape:min-w-[auto] min-[320px]:max-[825px]:landscape:min-h-[auto] min-[320px]:max-[825px]:landscape:overflow-y-auto justify-around",timepickerHead:"bg-[#3b71ca] dark:bg-zinc-700 h-[100px] rounded-t-lg pr-[24px] pl-[50px] py-[10px] min-[320px]:max-[825px]:landscape:rounded-tr-none min-[320px]:max-[825px]:landscape:rounded-bl-none min-[320px]:max-[825px]:landscape:p-[10px] min-[320px]:max-[825px]:landscape:pr-[10px] min-[320px]:max-[825px]:landscape:h-auto min-[320px]:max-[825px]:landscape:min-h-[305px] flex flex-row items-center justify-center",timepickerHeadContent:"min-[320px]:max-[825px]:landscape:flex-col flex w-full justify-evenly",timepickerCurrentWrapper:"[direction:ltr] rtl:[direction:rtl]",timepickerCurrentButtonWrapper:"relative h-full",timepickerCurrentButton:"text-[3.75rem] font-light leading-[1.2] tracking-[-0.00833em] text-white opacity-[.54] border-none bg-transparent p-0 min-[320px]:max-[825px]:landscape:text-5xl min-[320px]:max-[825px]:landscape:font-normal cursor-pointer hover:bg-[#00000026] hover:outline-none focus:bg-[#00000026] focus:outline-none ",timepickerDot:"font-light leading-[1.2] tracking-[-0.00833em] text-[3.75rem] opacity-[.54] border-none bg-transparent p-0 text-white min-[320px]:max-[825px]:landscape:text-[3rem] min-[320px]:max-[825px]:landscape:font-normal",timepickerModeWrapper:"flex flex-col justify-center text-[18px] text-[#ffffff8a] min-[320px]:max-[825px]:landscape:!justify-around min-[320px]:max-[825px]:landscape:!flex-row",timepickerModeAm:"p-0 bg-transparent border-none text-white opacity-[.54] cursor-pointer hover:bg-[#00000026] hover:outline-none focus:bg-[#00000026] focus:outline-none",timepickerModePm:"p-0 bg-transparent border-none text-white opacity-[.54] cursor-pointer hover:bg-[#00000026] hover:outline-none focus:bg-[#00000026] focus:outline-none",timepickerClockWrapper:"min-w-[310px] max-w-[325px] min-h-[305px] overflow-x-hidden h-full flex justify-center flex-col items-center dark:bg-zinc-500",timepickerClock:"relative rounded-[100%] w-[260px] h-[260px] cursor-default my-0 mx-auto bg-[#00000012] dark:bg-zinc-600/50",timepickerMiddleDot:"top-1/2 left-1/2 w-[6px] h-[6px] -translate-y-1/2 -translate-x-1/2 rounded-[50%] bg-[#3b71ca] absolute",timepickerHandPointer:"bg-[#3b71ca] bottom-1/2 h-2/5 left-[calc(50%-1px)] rtl:!left-auto origin-[center_bottom
2023-03-02 16:28:51 -06:00
* perfect-scrollbar v1.5.3
* Copyright 2021 Hyunje Jun, MDBootstrap and Contributors
* Licensed under MIT
2023-04-22 07:01:24 -05:00
*/function pe(i){return getComputedStyle(i)}function At(i,t){for(var e in t){var s=t[e];typeof s=="number"&&(s=s+"px"),i.style[e]=s}return i}function To(i){var t=document.createElement("div");return t.className=i,t}var rd=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function We(i,t){if(!rd)throw new Error("No element matching method supported");return rd.call(i,t)}function es(i){i.remove?i.remove():i.parentNode&&i.parentNode.removeChild(i)}function ad(i,t){return Array.prototype.filter.call(i.children,function(e){return We(e,t)})}var at={main:"ps",rtl:"ps__rtl",element:{thumb:function(i){return"ps__thumb-"+i},rail:function(i){return"ps__rail-"+i},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(i){return"ps--active-"+i},scrolling:function(i){return"ps--scrolling-"+i}}},ld={x:null,y:null};function cd(i,t){var e=i.element.classList,s=at.state.scrolling(t);e.contains(s)?clearTimeout(ld[t]):e.add(s)}function hd(i,t){ld[t]=setTimeout(function(){return i.isAlive&&i.element.classList.remove(at.state.scrolling(t))},i.settings.scrollingThreshold)}function ty(i,t){cd(i,t),hd(i,t)}var Bs=function(t){this.element=t,this.handlers={}},dd={isEmpty:{configurable:!0}};Bs.prototype.bind=function(t,e){typeof this.handlers[t]>"u"&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},Bs.prototype.unbind=function(t,e){var s=this;this.handlers[t]=this.handlers[t].filter(function(n){return e&&n!==e?!0:(s.element.removeEventListener(t,n,!1),!1)})},Bs.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},dd.isEmpty.get=function(){var i=this;return Object.keys(this.handlers).every(function(t){return i.handlers[t].length===0})},Object.defineProperties(Bs.prototype,dd);var is=function(){this.eventElements=[]};is.prototype.eventElement=function(t){var e=this.eventElements.filter(function(s){return s.element===t})[0];return e||(e=new Bs(t),this.eventElements.push(e)),e},is.prototype.bind=function(t,e,s){this.eventElement(t).bind(e,s)},is.prototype.unbind=function(t,e,s){var n=this.eventElement(t);n.unbind(e,s),n.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(n),1)},is.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]},is.prototype.once=function(t,e,s){var n=this.eventElement(t),o=function(r){n.unbind(e,o),s(r)};n.bind(e,o)};function Ao(i){if(typeof window.CustomEvent=="function")return new CustomEvent(i);var t=document.createEvent("CustomEvent");return t.initCustomEvent(i,!1,!1,void 0),t}function wo(i,t,e,s,n){s===void 0&&(s=!0),n===void 0&&(n=!1);var o;if(t==="top")o=["contentHeight","containerHeight","scrollTop","y","up","down"];else if(t==="left")o=["contentWidth","containerWidth","scrollLeft","x","left","right"];else throw new Error("A proper axis should be provided");ey(i,e,o,s,n)}function ey(i,t,e,s,n){var o=e[0],r=e[1],a=e[2],l=e[3],c=e[4],h=e[5];s===void 0&&(s=!0),n===void 0&&(n=!1);var d=i.element;i.reach[l]=null,d[a]<1&&(i.reach[l]="start"),d[a]>i[o]-i[r]-1&&(i.reach[l]="end"),t&&(d.dispatchEvent(Ao("ps-scroll-"+l)),t<0?d.dispatchEvent(Ao("ps-scroll-"+c)):t>0&&d.dispatchEvent(Ao("ps-scroll-"+h)),s&&ty(i,l)),i.reach[l]&&(t||n)&&d.dispatchEvent(Ao("ps-"+l+"-reach-"+i.reach[l]))}function it(i){return parseInt(i,10)||0}function iy(i){return We(i,"input,[contenteditable]")||We(i,"select,[contenteditable]")||We(i,"textarea,[contenteditable]")||We(i,"button,[contenteditable]")}function sy(i){var t=pe(i);return it(t.width)+it(t.paddingLeft)+it(t.paddingRight)+it(t.borderLeftWidth)+it(t.borderRightWidth)}var ss={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isCh
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" d="M19.5 8.25l-7.5 7.5-7.5-7.5" />
</svg>
`,Gy=i=>{i.code==="Tab"||i.code==="Esc"||i.preventDefault()};function Io(i,t,e,s,n){t.selectSize==="default"&&v.addClass(i,e),t.selectSize==="sm"&&v.addClass(i,s),t.selectSize==="lg"&&v.addClass(i,n)}function qy(i,t,e,s){const n=document.createElement("div");n.setAttribute("id",i),n.setAttribute(Ry,"");const o=z("div");o.setAttribute(Py,""),v.addClass(o,s.formOutline);const r=z("input"),a=t.selectFilter?"combobox":"listbox",l=t.multiple?"true":"false",c=t.disabled?"true":"false";r.setAttribute(Ny,""),v.addClass(r,s.selectInput),Io(r,t,s.selectInputSizeDefault,s.selectInputSizeSm,s.selectInputSizeLg),t.selectFormWhite&&v.addClass(r,s.selectInputWhite),r.setAttribute("type","text"),r.setAttribute("role",a),r.setAttribute("aria-multiselectable",l),r.setAttribute("aria-disabled",c),r.setAttribute("aria-haspopup","true"),r.setAttribute("aria-expanded",!1),t.tabIndex&&r.setAttribute("tabIndex",t.tabIndex),t.disabled&&r.setAttribute("disabled",""),t.selectPlaceholder!==""&&r.setAttribute("placeholder",t.selectPlaceholder),t.selectValidation?(v.addStyle(r,{"pointer-events":"none","caret-color":"transparent"}),v.addStyle(o,{cursor:"pointer"})):r.setAttribute("readonly","true"),t.selectValidation&&(r.setAttribute("required","true"),r.setAttribute("aria-required","true"),r.addEventListener("keydown",Gy));const h=z("div");v.addClass(h,s.selectValidationValid);const d=document.createTextNode(`${t.selectValidFeedback}`);h.appendChild(d);const u=z("div");v.addClass(u,s.selectValidationInvalid);const f=document.createTextNode(`${t.selectInvalidFeedback}`);u.appendChild(f);const p=z("span");p.setAttribute($y,""),v.addClass(p,s.selectClearBtn),Io(p,t,s.selectClearBtnDefault,s.selectClearBtnSm,s.selectClearBtnLg),t.selectFormWhite&&v.addClass(p,s.selectClearBtnWhite);const _=document.createTextNode("✕");p.appendChild(_),p.setAttribute("tabindex","0");const m=z("span");return v.addClass(m,s.selectArrow),Io(m,t,s.selectArrowDefault,s.selectArrowSm,s.selectArrowLg),t.selectFormWhite&&v.addClass(m,s.selectArrowWhite),m.innerHTML=Xy,o.appendChild(r),e&&(v.addClass(e,s.selectLabel),Io(e,t,s.selectLabelSizeDefault,s.selectLabelSizeSm,s.selectLabelSizeLg),t.selectFormWhite&&v.addClass(e,s.selectLabelWhite),o.appendChild(e)),t.selectValidation&&(o.appendChild(h),o.appendChild(u)),t.selectClearButton&&o.appendChild(p),o.appendChild(m),n.appendChild(o),n}function wd(i,t,e,s,n,o,r,a){const l=document.createElement("div");l.setAttribute(By,""),v.addClass(l,a.selectDropdownContainer),l.setAttribute("id",`${i}`),l.style.width=`${e}px`;const c=document.createElement("div");c.setAttribute("tabindex",0),c.setAttribute(Hy,""),v.addClass(c,a.dropdown);const h=z("div");h.setAttribute(Fy,""),v.addClass(h,a.optionsWrapper),v.addClass(h,a.optionsWrapperScrollbar),h.style.maxHeight=`${s}px`;const d=kd(o,n,t,a);return h.appendChild(d),t.selectFilter&&c.appendChild(Zy(t.selectSearchPlaceholder,a)),c.appendChild(h),r&&c.appendChild(r),l.appendChild(c),l}function kd(i,t,e,s){const n=z("div");n.setAttribute(Vy,""),v.addClass(n,s.optionsList);let o;return e.multiple?o=Jy(i,t,e,s):o=Qy(i,e,s),o.forEach(r=>{n.appendChild(r)}),n}function Zy(i,t){const e=z("div");v.addClass(e,t.inputGroup);const s=z("input");return s.setAttribute(Wy,""),v.addClass(s,t.selectFilterInput),s.placeholder=i,s.setAttribute("role","searchbox"),s.setAttribute("type","text"),e.appendChild(s),e}function Qy(i,t,e){return Sd(i,t,e)}function Jy(i,t,e,s){let n=null;e.selectAll&&(n=tx(t,i,e,s));const o=Sd(i,e,s);return n?[n,...o]:o}function Sd(i,t,e){const s=[];return i.forEach(n=>{if(Object.prototype.hasOwnProperty.call(n,"options")){const r=nx(n,t,e);s.push(r)}else s.push(Od(n,t,e))}),s}function tx(i,t,e,s){const n=Sa(t),o=z("div");return o.setAttribute(Td,""),v.addClass(o,s.selectOption),o.setAttribute(zy,""),v.addStyle(o,{height:`${e.selectOptionHeight}px`}),o.setAttribute("role","option"),o.setAttribute("aria-selected",n),n&&o.setAttribute(Ad,""),o.appendChild(Dd(i,e,s)),i.setNode(o),o}function Od(i,t,e){if(i.node)return i.node;const s=z("div");return s.setAttribute(Td,""),v.addClass(s,e.selectOpt
<input
type="text"
class="${e.chipsInput}"
id="${i}"
placeholder="Example label" />
<label
for="${i}"
class="${e.chipsLabel}"
>${t}
</label>
<div data-te-input-notch-ref class="${e.chipsNotchesWrapper}">
<div class="${e.chipsNotchesLeading}" data-te-input-notch-leading-ref style="width: 9px;"></div>
<div class="${e.chipsNotchesMiddle}" data-te-input-notch-middle-ref style="width: 87.2px;"></div>
<div class="${e.chipsNotchesTrailing}" data-te-input-notch-trailing-ref></div>
</div>
</div>`),Bx=({text:i,iconSVG:t},e)=>`<div data-te-chip-init data-te-ripple-init class="${e.chipElement}">
<span data-te-chip-text>${i}</span>
<span data-te-chip-close class="${e.chipCloseIcon}">
${t}
</span>
</div>`,Ro="chip",Hx=`te.${Ro}`,Hd="data-te-chip-close",La=`[${Hd}]`,Fx="delete.te.chips",Vx="select.te.chip",Wx='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-3 h-3"> <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" /></svg>',zx={text:"string",closeIcon:"boolean",img:"object",iconSVG:"string"},jx={text:"",closeIcon:!1,img:{path:"",alt:""},iconSVG:Wx},Yx={icon:"float-right pl-[8px] text-[16px] opacity-[.53] cursor-pointer fill-[#afafaf] hover:text-[#8b8b8b] transition-all duration-200 ease-in-out",chipElement:"flex justify-between items-center h-[32px] leading-loose py-[5px] px-[12px] mr-4 my-[5px] text-[13px] font-normal text-[#4f4f4f] cursor-pointer bg-[#eceff1] dark:text-white dark:bg-neutral-600 rounded-[16px] transition-[opacity] duration-300 ease-linear [word-wrap: break-word] shadow-none normal-case hover:!shadow-none active:bg-[#cacfd1] inline-block font-medium leading-normal text-[#4f4f4f] text-center no-underline align-middle cursor-pointer select-none border-[.125rem] border-solid border-transparent py-1.5 px-3 text-xs rounded",chipCloseIcon:"w-4 float-right pl-[8px] text-[16px] opacity-[.53] cursor-pointer fill-[#afafaf] hover:fill-[#8b8b8b] dark:fill-gray-400 dark:hover:fill-gray-100 transition-all duration-200 ease-in-out"},Kx={icon:"string",chipElement:"string",chipCloseIcon:"string"};class vi{constructor(t,e={},s){this._element=t,this._options=this._getConfig(e),this._classes=this._getClasses(s)}static get NAME(){return Ro}init(){this._appendCloseIcon(),this._handleDelete(),this._handleTextChip(),this._handleClickOnChip()}dispose(){this._element=null,this._options=null,b.off(this._element,"click")}appendChip(){const{text:t,closeIcon:e,iconSVG:s}=this._options;return Bx({text:t,closeIcon:e,iconSVG:s},this._classes)}_appendCloseIcon(t=this._element){if(!(g.find(La,this._element).length>0)&&this._options.closeIcon){const e=z("span");e.classList=this._classes.icon,e.setAttribute(Hd),e.innerHTML=this._options.iconSVG,t.insertAdjacentElement("beforeend",e)}}_handleClickOnChip(){b.on(this._element,"click",t=>{const{textContent:e}=t.target,s={};s.tag=e.trim(),b.trigger(Vx,{event:t,obj:s})})}_handleDelete(){g.find(La,this._element).length!==0&&b.on(this._element,"click",La,()=>{b.trigger(this._element,Fx),this._element.remove()})}_handleTextChip(){this._element.innerText===""&&(this._element.innerText=this._options.text)}_getConfig(t){const e={...jx,...v.getDataAttributes(this._element),...t};return W(Ro,e,zx),e}_getClasses(t){const e=v.getDataClassAttributes(this._element);return t={...Yx,...e,...t},W(Ro,t,Kx),t}static getInstance(t){return P.getData(t,Hx)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}}const Us="chips",Xs=`data-te-${Us}`,Fd=`te.${Us}`,Ux=`${Xs}-init`,Bt=`${Xs}-active`,Vd=`${Xs}-initial`,Wd=`${Xs}-placeholder`,Xx=`${Xs}-input-wrapper`,Pa="data-te-chip-init",zd="data-te-chip-close",jd="data-te-chip-text",Gx=`[${Bt}]`,Ra=`[${Pa}]`,qx=`${Ra}${Gx}`,Na=`[${zd}]`,Zx=`[${Xx}]`,Qx=`[${jd}]`,Jx=`[${Wd}]`,tE="data-te-input-notch-leading-ref",eE="data-te-input-notch-middle-ref",iE=`[${tE}]`,sE=`[${eE}]`,os="data-te-input-state-active",$a="[data-te-input-notch-ref]",nE="add.te.chips",oE="arrowDown.te.chips",rE="arrowLeft.te.chips",aE="arrowRight.te.chips",lE="arrowUp.te.chips",Yd="delete.te.chips",Kd="select.te.chips",cE={inputID:"string",parentSelector:"string",initialValues:"array",editable:"boolean",labelText:"string"},hE={inputID:se("chips-input-"),parentSelector:"",initialValues:[{tag:"init1"},{tag:"init2"}],editable:!1,labelText:"Example label"},dE={opacity:"opacity-0",inputWrapperPadding:"p-[5px]",transition:"transition-all duration-300 ease-[cubic-bezier(0.25,0.1,0.25,1)]",contentEditable:"outline-none !border-[3px] !border-solid !border-[#b2b3b4]",chipsInputWrapper:"relative flex items-center flex-wrap transition-all duration-300 ease-[cubic-bezier(0.25,0.1,0.25,1)]",chipsInput:"peer block min-h-[auto] w-[150px] rounded border-0 bg-transpar
* Chart.js v3.9.1
* https://www.chartjs.org
* (c) 2022 Chart.js Contributors
* Released under the MIT License
*/function Te(){}const OE=function(){let i=0;return function(){return i++}}();function N(i){return i===null||typeof i>"u"}function Q(i){if(Array.isArray&&Array.isArray(i))return!0;const t=Object.prototype.toString.call(i);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function $(i){return i!==null&&Object.prototype.toString.call(i)==="[object Object]"}const rt=i=>(typeof i=="number"||i instanceof Number)&&isFinite(+i);function Ht(i,t){return rt(i)?i:t}function R(i,t){return typeof i>"u"?t:i}const DE=(i,t)=>typeof i=="string"&&i.endsWith("%")?parseFloat(i)/100:i/t,Jd=(i,t)=>typeof i=="string"&&i.endsWith("%")?parseFloat(i)/100*t:+i;function G(i,t,e){if(i&&typeof i.call=="function")return i.apply(e,t)}function U(i,t,e,s){let n,o,r;if(Q(i))if(o=i.length,s)for(n=o-1;n>=0;n--)t.call(e,i[n],n);else for(n=0;n<o;n++)t.call(e,i[n],n);else if($(i))for(r=Object.keys(i),o=r.length,n=0;n<o;n++)t.call(e,i[r[n]],r[n])}function $o(i,t){let e,s,n,o;if(!i||!t||i.length!==t.length)return!1;for(e=0,s=i.length;e<s;++e)if(n=i[e],o=t[e],n.datasetIndex!==o.datasetIndex||n.index!==o.index)return!1;return!0}function Bo(i){if(Q(i))return i.map(Bo);if($(i)){const t=Object.create(null),e=Object.keys(i),s=e.length;let n=0;for(;n<s;++n)t[e[n]]=Bo(i[e[n]]);return t}return i}function tu(i){return["__proto__","prototype","constructor"].indexOf(i)===-1}function ME(i,t,e,s){if(!tu(i))return;const n=t[i],o=e[i];$(n)&&$(o)?ge(n,o,s):t[i]=Bo(o)}function ge(i,t,e){const s=Q(t)?t:[t],n=s.length;if(!$(i))return i;e=e||{};const o=e.merger||ME;for(let r=0;r<n;++r){if(t=s[r],!$(t))continue;const a=Object.keys(t);for(let l=0,c=a.length;l<c;++l)o(a[l],i,t,e)}return i}function qs(i,t){return ge(i,t,{merger:IE})}function IE(i,t,e){if(!tu(i))return;const s=t[i],n=e[i];$(s)&&$(n)?qs(s,n):Object.prototype.hasOwnProperty.call(t,i)||(t[i]=Bo(n))}const eu={"":i=>i,x:i=>i.x,y:i=>i.y};function Ke(i,t){return(eu[t]||(eu[t]=LE(t)))(i)}function LE(i){const t=PE(i);return e=>{for(const s of t){if(s==="")break;e=e&&e[s]}return e}}function PE(i){const t=i.split("."),e=[];let s="";for(const n of t)s+=n,s.endsWith("\\")?s=s.slice(0,-1)+".":(e.push(s),s="");return e}function Ha(i){return i.charAt(0).toUpperCase()+i.slice(1)}const Ft=i=>typeof i<"u",Ue=i=>typeof i=="function",iu=(i,t)=>{if(i.size!==t.size)return!1;for(const e of i)if(!t.has(e))return!1;return!0};function RE(i){return i.type==="mouseup"||i.type==="click"||i.type==="contextmenu"}const et=Math.PI,q=2*et,NE=q+et,Ho=Number.POSITIVE_INFINITY,$E=et/180,nt=et/2,Zs=et/4,su=et*2/3,Vt=Math.log10,me=Math.sign;function nu(i){const t=Math.round(i);i=Qs(i,t,i/1e3)?t:i;const e=Math.pow(10,Math.floor(Vt(i))),s=i/e;return(s<=1?1:s<=2?2:s<=5?5:10)*e}function BE(i){const t=[],e=Math.sqrt(i);let s;for(s=1;s<e;s++)i%s===0&&(t.push(s),t.push(i/s));return e===(e|0)&&t.push(e),t.sort((n,o)=>n-o).pop(),t}function as(i){return!isNaN(parseFloat(i))&&isFinite(i)}function Qs(i,t,e){return Math.abs(i-t)<e}function HE(i,t){const e=Math.round(i);return e-t<=i&&e+t>=i}function ou(i,t,e){let s,n,o;for(s=0,n=i.length;s<n;s++)o=i[s][e],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function Jt(i){return i*(et/180)}function Fa(i){return i*(180/et)}function ru(i){if(!rt(i))return;let t=1,e=0;for(;Math.round(i*t)/t!==i;)t*=10,e++;return e}function au(i,t){const e=t.x-i.x,s=t.y-i.y,n=Math.sqrt(e*e+s*s);let o=Math.atan2(s,e);return o<-.5*et&&(o+=q),{angle:o,distance:n}}function Va(i,t){return Math.sqrt(Math.pow(t.x-i.x,2)+Math.pow(t.y-i.y,2))}function FE(i,t){return(i-t+NE)%q-et}function Nt(i){return(i%q+q)%q}function Js(i,t,e,s){const n=Nt(i),o=Nt(t),r=Nt(e),a=Nt(o-n),l=Nt(r-n),c=Nt(n-o),h=Nt(n-r);return n===o||n===r||s&&o===r||a>l&&c<h}function ct(i,t,e){return Math.max(t,Math.min(e,i))}function VE(i){return ct(i,-32768,32767)}function Ae(i,t,e,s=1e-6){return i>=Math.min(t,e)-s&&i<=Math.max(t,e)+s}function Wa(i,t,e){e=e||(r=>i[r]<t);let s=i.length-1,n=0,o;for(;s-n>1;)o=n+s>>1,e(o)?n=o:s=o;return{lo:n,hi:s}}const we=(i,t,e,s)=>Wa(i,e,s?n=>i[n][t]<=e:n=>i[n][t]<e),WE=(i,t,e)=>Wa(i,e,s=>i[s][t]>=e);function zE(i,t,e){let s=0,n=i.length;fo
* @kurkle/color v0.2.1
* https://github.com/kurkle/color#readme
* (c) 2022 Jukka Kurkela
* Released under the MIT License
*/function en(i){return i+.5|0}const Xe=(i,t,e)=>Math.max(Math.min(i,e),t);function sn(i){return Xe(en(i*2.55),0,255)}function Ge(i){return Xe(en(i*255),0,255)}function ke(i){return Xe(en(i/2.55)/100,0,1)}function mu(i){return Xe(en(i*100),0,100)}const Wt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},ja=[..."0123456789ABCDEF"],UE=i=>ja[i&15],XE=i=>ja[(i&240)>>4]+ja[i&15],Vo=i=>(i&240)>>4===(i&15),GE=i=>Vo(i.r)&&Vo(i.g)&&Vo(i.b)&&Vo(i.a);function qE(i){var t=i.length,e;return i[0]==="#"&&(t===4||t===5?e={r:255&Wt[i[1]]*17,g:255&Wt[i[2]]*17,b:255&Wt[i[3]]*17,a:t===5?Wt[i[4]]*17:255}:(t===7||t===9)&&(e={r:Wt[i[1]]<<4|Wt[i[2]],g:Wt[i[3]]<<4|Wt[i[4]],b:Wt[i[5]]<<4|Wt[i[6]],a:t===9?Wt[i[7]]<<4|Wt[i[8]]:255})),e}const ZE=(i,t)=>i<255?t(i):"";function QE(i){var t=GE(i)?UE:XE;return i?"#"+t(i.r)+t(i.g)+t(i.b)+ZE(i.a,t):void 0}const JE=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function bu(i,t,e){const s=t*Math.min(e,1-e),n=(o,r=(o+i/30)%12)=>e-s*Math.max(Math.min(r-3,9-r,1),-1);return[n(0),n(8),n(4)]}function tC(i,t,e){const s=(n,o=(n+i/60)%6)=>e-e*t*Math.max(Math.min(o,4-o,1),0);return[s(5),s(3),s(1)]}function eC(i,t,e){const s=bu(i,1,.5);let n;for(t+e>1&&(n=1/(t+e),t*=n,e*=n),n=0;n<3;n++)s[n]*=1-t-e,s[n]+=t;return s}function iC(i,t,e,s,n){return i===n?(t-e)/s+(t<e?6:0):t===n?(e-i)/s+2:(i-t)/s+4}function Ya(i){const e=i.r/255,s=i.g/255,n=i.b/255,o=Math.max(e,s,n),r=Math.min(e,s,n),a=(o+r)/2;let l,c,h;return o!==r&&(h=o-r,c=a>.5?h/(2-o-r):h/(o+r),l=iC(e,s,n,h,o),l=l*60+.5),[l|0,c||0,a]}function Ka(i,t,e,s){return(Array.isArray(t)?i(t[0],t[1],t[2]):i(t,e,s)).map(Ge)}function Ua(i,t,e){return Ka(bu,i,t,e)}function sC(i,t,e){return Ka(eC,i,t,e)}function nC(i,t,e){return Ka(tC,i,t,e)}function vu(i){return(i%360+360)%360}function oC(i){const t=JE.exec(i);let e=255,s;if(!t)return;t[5]!==s&&(e=t[6]?sn(+t[5]):Ge(+t[5]));const n=vu(+t[2]),o=+t[3]/100,r=+t[4]/100;return t[1]==="hwb"?s=sC(n,o,r):t[1]==="hsv"?s=nC(n,o,r):s=Ua(n,o,r),{r:s[0],g:s[1],b:s[2],a:e}}function rC(i,t){var e=Ya(i);e[0]=vu(e[0]+t),e=Ua(e),i.r=e[0],i.g=e[1],i.b=e[2]}function aC(i){if(!i)return;const t=Ya(i),e=t[0],s=mu(t[1]),n=mu(t[2]);return i.a<255?`hsla(${e}, ${s}%, ${n}%, ${ke(i.a)})`:`hsl(${e}, ${s}%, ${n}%)`}const yu={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},xu={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"
* Chart.js v3.9.1
* https://www.chartjs.org
* (c) 2022 Chart.js Contributors
* Released under the MIT License
*/class aT{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,s,n){const o=e.listeners[n],r=e.duration;o.forEach(a=>a({chart:t,initial:e.initial,numSteps:r,currentStep:Math.min(s-e.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=du.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((s,n)=>{if(!s.running||!s.items.length)return;const o=s.items;let r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>s.duration&&(s.duration=l._total),l.tick(t),a=!0):(o[r]=o[o.length-1],o.pop());a&&(n.draw(),this._notify(n,s,t,"progress")),o.length||(s.running=!1,this._notify(n,s,t,"complete"),s.initial=!1),e+=o.length}),this._lastDate=t,e===0&&(this._running=!1)}_getAnims(t){const e=this._charts;let s=e.get(t);return s||(s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,s)),s}listen(t,e,s){this._getAnims(t).listeners[e].push(s)}add(t,e){!e||!e.length||this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((s,n)=>Math.max(s,n._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!(!e||!e.running||!e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const s=e.items;let n=s.length-1;for(;n>=0;--n)s[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var be=new aT;const qu="transparent",lT={boolean(i,t,e){return e>.5?t:i},color(i,t,e){const s=wu(i||qu),n=s.valid&&wu(t||qu);return n&&n.valid?n.mix(s,e).hexString():t},number(i,t,e){return i+(t-i)*e}};class Zu{constructor(t,e,s,n){const o=e[s];n=tt([t.to,n,o,t.from]);const r=tt([t.from,o,n]);this._active=!0,this._fn=t.fn||lT[t.type||typeof r],this._easing=tn[t.easing]||tn.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=s,this._from=r,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,s){if(this._active){this._notify(!1);const n=this._target[this._prop],o=s-this._start,r=this._duration-o;this._start=s,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=tt([t.to,e,n,t.from]),this._from=tt([t.from,n,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,s=this._duration,n=this._prop,o=this._from,r=this._loop,a=this._to;let l;if(this._active=o!==a&&(r||e<s),!this._active){this._target[n]=a,this._notify(!0);return}if(e<0){this._target[n]=o;return}l=e/s%2,l=r&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[n]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,s)=>{t.push({res:e,rej:s})})}_notify(t){const e=t?"res":"rej",s=this._promises||[];for(let n=0;n<s.length;n++)s[n][e]()}}const cT=["x","y","borderWidth","radius","tension"],hT=["color","borderColor","backgroundColor"];B.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const dT=Object.keys(B.animation);B.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:i=>i!=="onProgress"&&i!=="onComplete"&&i!=="fn"}),B.set("animations",{colors:{type:"color",properties:hT},numbers:{type:"number",properties:cT}}),B.describe("animations",{_fallback:"animation"}),B.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:i=>i|0}}}});class ol{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!$(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach(s=>{const n=t[s];if(!$(n))return;const o={};for(const r of
`)>-1?i.split(`
`):i}function Sw(i,t){const{element:e,datasetIndex:s,index:n}=t,o=i.getDatasetMeta(s).controller,{label:r,value:a}=o.getLabelAndValue(n);return{chart:i,label:r,parsed:o.getParsed(n),raw:i.data.datasets[s].data[n],formattedValue:a,dataset:o.getDataset(),dataIndex:n,datasetIndex:s,element:e}}function cp(i,t){const e=i.chart.ctx,{body:s,footer:n,title:o}=i,{boxWidth:r,boxHeight:a}=t,l=lt(t.bodyFont),c=lt(t.titleFont),h=lt(t.footerFont),d=o.length,u=n.length,f=s.length,p=ht(t.padding);let _=p.height,m=0,y=s.reduce((C,T)=>C+T.before.length+T.lines.length+T.after.length,0);if(y+=i.beforeBody.length+i.afterBody.length,d&&(_+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),y){const C=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;_+=f*C+(y-f)*l.lineHeight+(y-1)*t.bodySpacing}u&&(_+=t.footerMarginTop+u*h.lineHeight+(u-1)*t.footerSpacing);let x=0;const E=function(C){m=Math.max(m,e.measureText(C).width+x)};return e.save(),e.font=c.string,U(i.title,E),e.font=l.string,U(i.beforeBody.concat(i.afterBody),E),x=t.displayColors?r+2+t.boxPadding:0,U(s,C=>{U(C.before,E),U(C.lines,E),U(C.after,E)}),x=0,e.font=h.string,U(i.footer,E),e.restore(),m+=p.width,{width:m,height:_}}function Ow(i,t){const{y:e,height:s}=t;return e<s/2?"top":e>i.height-s/2?"bottom":"center"}function Dw(i,t,e,s){const{x:n,width:o}=s,r=e.caretSize+e.caretPadding;if(i==="left"&&n+o+r>t.width||i==="right"&&n-o-r<0)return!0}function Mw(i,t,e,s){const{x:n,width:o}=e,{width:r,chartArea:{left:a,right:l}}=i;let c="center";return s==="center"?c=n<=(a+l)/2?"left":"right":n<=o/2?c="left":n>=r-o/2&&(c="right"),Dw(c,i,t,e)&&(c="center"),c}function hp(i,t,e){const s=e.yAlign||t.yAlign||Ow(i,e);return{xAlign:e.xAlign||t.xAlign||Mw(i,t,e,s),yAlign:s}}function Iw(i,t){let{x:e,width:s}=i;return t==="right"?e-=s:t==="center"&&(e-=s/2),e}function Lw(i,t,e){let{y:s,height:n}=i;return t==="top"?s+=e:t==="bottom"?s-=n+e:s-=n/2,s}function dp(i,t,e,s){const{caretSize:n,caretPadding:o,cornerRadius:r}=i,{xAlign:a,yAlign:l}=e,c=n+o,{topLeft:h,topRight:d,bottomLeft:u,bottomRight:f}=Ci(r);let p=Iw(t,a);const _=Lw(t,l,c);return l==="center"?a==="left"?p+=c:a==="right"&&(p-=c):a==="left"?p-=Math.max(h,u)+n:a==="right"&&(p+=Math.max(d,f)+n),{x:ct(p,0,s.width-t.width),y:ct(_,0,s.height-t.height)}}function rr(i,t,e){const s=ht(e.padding);return t==="center"?i.x+i.width/2:t==="right"?i.x+i.width-s.right:i.x+s.left}function up(i){return ve([],Oe(i))}function Pw(i,t,e){return qe(i,{tooltip:t,tooltipItems:e,type:"tooltip"})}function fp(i,t){const e=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return e?i.override(e):i}class Al extends jt{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,s=this.options.setContext(this.getContext()),n=s.enabled&&e.options.animation&&s.animations,o=new ol(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=Pw(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){const{callbacks:s}=e,n=s.beforeTitle.apply(this,[t]),o=s.title.apply(this,[t]),r=s.afterTitle.apply(this,[t]);let a=[];return a=ve(a,Oe(n)),a=ve(a,Oe(o)),a=ve(a,Oe(r)),a}getBeforeBody(t,e){return up(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:s}=e,n=[];return U(t,o=>{const r={before:[],lines:[],after:[]},a=fp(s,o);ve(r.before,Oe(a.beforeLabel.call(this,o))),ve(r.l
* chartjs-plugin-datalabels v2.2.0
* https://chartjs-plugin-datalabels.netlify.app
* (c) 2017-2022 chartjs-plugin-datalabels contributors
* Released under the MIT license
*/var Ap=function(){if(typeof window<"u"){if(window.devicePixelRatio)return window.devicePixelRatio;var i=window.screen;if(i)return(i.deviceXDPI||1)/(i.logicalXDPI||1)}return 1}(),An={toTextLines:function(i){var t=[],e;for(i=[].concat(i);i.length;)e=i.pop(),typeof e=="string"?t.unshift.apply(t,e.split(`
`)):Array.isArray(e)?i.push.apply(i,e):N(i)||t.unshift(""+e);return t},textSize:function(i,t,e){var s=[].concat(t),n=s.length,o=i.font,r=0,a;for(i.font=e.string,a=0;a<n;++a)r=Math.max(i.measureText(s[a]).width,r);return i.font=o,{height:n*e.lineHeight,width:r}},bound:function(i,t,e){return Math.max(i,Math.min(t,e))},arrayDiff:function(i,t){var e=i.slice(),s=[],n,o,r,a;for(n=0,r=t.length;n<r;++n)a=t[n],o=e.indexOf(a),o===-1?s.push([a,1]):e.splice(o,1);for(n=0,r=e.length;n<r;++n)s.push([e[n],-1]);return s},rasterize:function(i){return Math.round(i*Ap)/Ap}};function kl(i,t){var e=t.x,s=t.y;if(e===null)return{x:0,y:-1};if(s===null)return{x:1,y:0};var n=i.x-e,o=i.y-s,r=Math.sqrt(n*n+o*o);return{x:r?n/r:0,y:r?o/r:-1}}function ek(i,t,e,s,n){switch(n){case"center":e=s=0;break;case"bottom":e=0,s=1;break;case"right":e=1,s=0;break;case"left":e=-1,s=0;break;case"top":e=0,s=-1;break;case"start":e=-e,s=-s;break;case"end":break;default:n*=Math.PI/180,e=Math.cos(n),s=Math.sin(n);break}return{x:i,y:t,vx:e,vy:s}}var ik=0,wp=1,kp=2,Sp=4,Op=8;function fr(i,t,e){var s=ik;return i<e.left?s|=wp:i>e.right&&(s|=kp),t<e.top?s|=Op:t>e.bottom&&(s|=Sp),s}function sk(i,t){for(var e=i.x0,s=i.y0,n=i.x1,o=i.y1,r=fr(e,s,t),a=fr(n,o,t),l,c,h;!(!(r|a)||r&a);)l=r||a,l&Op?(c=e+(n-e)*(t.top-s)/(o-s),h=t.top):l&Sp?(c=e+(n-e)*(t.bottom-s)/(o-s),h=t.bottom):l&kp?(h=s+(o-s)*(t.right-e)/(n-e),c=t.right):l&wp&&(h=s+(o-s)*(t.left-e)/(n-e),c=t.left),l===r?(e=c,s=h,r=fr(e,s,t)):(n=c,o=h,a=fr(n,o,t));return{x0:e,x1:n,y0:s,y1:o}}function pr(i,t){var e=t.anchor,s=i,n,o;return t.clamp&&(s=sk(s,t.area)),e==="start"?(n=s.x0,o=s.y0):e==="end"?(n=s.x1,o=s.y1):(n=(s.x0+s.x1)/2,o=(s.y0+s.y1)/2),ek(n,o,i.vx,i.vy,t.align)}var _r={arc:function(i,t){var e=(i.startAngle+i.endAngle)/2,s=Math.cos(e),n=Math.sin(e),o=i.innerRadius,r=i.outerRadius;return pr({x0:i.x+s*o,y0:i.y+n*o,x1:i.x+s*r,y1:i.y+n*r,vx:s,vy:n},t)},point:function(i,t){var e=kl(i,t.origin),s=e.x*i.options.radius,n=e.y*i.options.radius;return pr({x0:i.x-s,y0:i.y-n,x1:i.x+s,y1:i.y+n,vx:e.x,vy:e.y},t)},bar:function(i,t){var e=kl(i,t.origin),s=i.x,n=i.y,o=0,r=0;return i.horizontal?(s=Math.min(i.x,i.base),o=Math.abs(i.base-i.x)):(n=Math.min(i.y,i.base),r=Math.abs(i.base-i.y)),pr({x0:s,y0:n+r,x1:s+o,y1:n,vx:e.x,vy:e.y},t)},fallback:function(i,t){var e=kl(i,t.origin);return pr({x0:i.x,y0:i.y,x1:i.x+(i.width||0),y1:i.y+(i.height||0),vx:e.x,vy:e.y},t)}},De=An.rasterize;function nk(i){var t=i.borderWidth||0,e=i.padding,s=i.size.height,n=i.size.width,o=-n/2,r=-s/2;return{frame:{x:o-e.left-t,y:r-e.top-t,w:n+e.width+t*2,h:s+e.height+t*2},text:{x:o,y:r,w:n,h:s}}}function ok(i,t){var e=t.chart.getDatasetMeta(t.datasetIndex).vScale;if(!e)return null;if(e.xCenter!==void 0&&e.yCenter!==void 0)return{x:e.xCenter,y:e.yCenter};var s=e.getBasePixel();return i.horizontal?{x:s,y:null}:{x:null,y:s}}function rk(i){return i instanceof fs?_r.arc:i instanceof ps?_r.point:i instanceof _s?_r.bar:_r.fallback}function ak(i,t,e,s,n,o){var r=Math.PI/2;if(o){var a=Math.min(o,n/2,s/2),l=t+a,c=e+a,h=t+s-a,d=e+n-a;i.moveTo(t,c),l<h&&c<d?(i.arc(l,c,a,-Math.PI,-r),i.arc(h,c,a,-r,0),i.arc(h,d,a,0,r),i.arc(l,d,a,r,Math.PI)):l<h?(i.moveTo(l,e),i.arc(h,c,a,-r,r),i.arc(l,c,a,r,Math.PI+r)):c<d?(i.arc(l,c,a,-Math.PI,0),i.arc(l,d,a,0,Math.PI)):i.arc(l,c,a,-Math.PI,Math.PI),i.closePath(),i.moveTo(t,e)}else i.rect(t,e,s,n)}function lk(i,t,e){var s=e.backgroundColor,n=e.borderColor,o=e.borderWidth;!s&&(!n||!o)||(i.beginPath(),ak(i,De(t.x)+o/2,De(t.y)+o/2,De(t.w)-o,De(t.h)-o,e.borderRadius),i.closePath(),s&&(i.fillStyle=s,i.fill()),n&&o&&(i.strokeStyle=n,i.lineWidth=o,i.lineJoin="miter",i.stroke()))}function ck(i,t,e){var s=e.lineHeight,n=i.w,o=i.x,r=i.y+s/2;return t==="center"?o+=n/2:(t==="end"||t==="right")&&(o+=n),{h:s,w:n,x:o,y:r}}function hk(i,t,e){var s=i.shadowBlur,n=e.stroked,o=De(e.x),r=De(e.y),a=De(e.w);n&&i.strokeText(t,o,r,a),e.filled&&(s&&n&&(i.shadowBlur=0),i.fillText(t,o,r,a),s&&n&&(i.shadowBlur=s))}function dk(i,t,e,s){var n=s.textAlign,o=s.color,r=!!o,a=s.font,l=t.length,c=s.textStrokeColor,h=s.textStrokeWidth,d=c&&h,u;if(!(!l||!r&&!d))for(e=ck(e,n,a),i.f
//# sourceMappingURL=tw-elements.umd.min.js.map