diff --git a/src/UI/dist/assets/app.js b/src/UI/dist/assets/app.js
index f037962b5..153c18359 100644
--- a/src/UI/dist/assets/app.js
+++ b/src/UI/dist/assets/app.js
@@ -32,5 +32,5 @@ ${n?'Expression: "'+n+`"
- `)}}},callbackOnInit:()=>{var r;this.searchTerms=this.$el.closest(".choices").querySelector('[name="search_terms"]'),(r=this.$el)!=null&&r.disabled||this.$el.closest(".choices").addEventListener("focus",()=>{this.choicesInstance.showDropdown()}),this.associatedWith&&e&&this.asyncSearch(!0)},...this.customOptions}),this.associatedWith&&e&&document.querySelector(`[name="${this.associatedWith}"]`).addEventListener("change",r=>{this.choicesInstance.clearStore(),this.asyncSearch()},!1),this.$el.dataset.overflow||this.$el.closest(".table-responsive")){const r={name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:i})=>{i.styles.popper.width=`${i.rects.reference.width}px`},effect:({state:i})=>{i.elements.popper.style.width=`${i.elements.reference.offsetWidth}px`}};this.choicesInstance.passedElement.element.addEventListener("showDropdown",i=>{us(this.choicesInstance.containerInner.element,this.choicesInstance.dropdown.element,{placement:"bottom",strategy:"fixed",modifiers:[r]})},!1)}const n=this.$el.closest("form");n!==null&&n.addEventListener("reset",()=>{this.choicesInstance.clearChoices(),this.choicesInstance.setChoices(t);const r=t.filter(i=>i.selected)??t[0];this.choicesInstance.setChoiceByValue(r)}),e&&this.searchTerms.addEventListener("input",Mm(r=>this.asyncSearch(),300),!1),this.removeItemButton&&this.$el.parentElement.addEventListener("click",r=>{if(r.target.classList.contains("choices__button--remove")){const o=r.target.closest(".choices__item").getAttribute("data-id");if(this.choicesInstance._isSelectOneElement&&this.choicesInstance._store.placeholderChoice)this.choicesInstance.removeActiveItems(o),this.choicesInstance._triggerChange(this.choicesInstance._store.placeholderChoice.value),this.choicesInstance._selectPlaceholderChoice(this.choicesInstance._store.placeholderChoice);else{const{items:a}=this.choicesInstance._store,s=o&&a.find(l=>l.id===parseInt(o,10));if(!s)return;this.choicesInstance._removeItem(s),this.choicesInstance._triggerChange(s.value)}}})})},async asyncSearch(t=!1){const n=this.searchTerms.value??null;let r=[];if(n!==null&&n.length){const i=e.startsWith("/")?new URL(e,window.location.origin):new URL(e);i.searchParams.append("query",n);const o=this.$el.form,a=ts(o.querySelectorAll("[name]"));r=await this.fromUrl(i.toString()+(a.length?"&"+a:""))}await this.choicesInstance.setChoices(r,"value","label",!0),t||this.$el.dispatchEvent(new Event("change"))},fromUrl(t){return fetch(t).then(n=>n.json()).then(n=>n)}}),Nm=()=>({toasts:[],visible:[],add(e){e.id=Date.now(),this.toasts.push(e),this.fire(e.id)},fire(e){this.visible.push(this.toasts.find(n=>n.id==e));const t=2e3*this.visible.length;setTimeout(()=>{this.remove(e)},t)},remove(e){const t=this.visible.find(r=>r.id==e),n=this.visible.indexOf(t);this.visible.splice(n,1)}});var $m="tippy-box",Pc="tippy-content",Fm="tippy-backdrop",Dc="tippy-arrow",Mc="tippy-svg-arrow",Xt={passive:!0,capture:!0},Rc=function(){return document.body};function Wi(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function fs(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function Nc(e,t){return typeof e=="function"?e.apply(void 0,t):e}function fa(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function km(e){return e.split(/\s+/).filter(Boolean)}function An(e){return[].concat(e)}function da(e,t){e.indexOf(t)===-1&&e.push(t)}function jm(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function Bm(e){return e.split("-")[0]}function oi(e){return[].slice.call(e)}function ha(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function lr(){return document.createElement("div")}function Ei(e){return["Element","Fragment"].some(function(t){return fs(e,t)})}function Hm(e){return fs(e,"NodeList")}function Um(e){return fs(e,"MouseEvent")}function $c(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function Wm(e){return Ei(e)?[e]:Hm(e)?oi(e):Array.isArray(e)?e:oi(document.querySelectorAll(e))}function Ki(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function pa(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function Km(e){var t,n=An(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function Vm(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var o=i.popperRect,a=i.popperState,s=i.props,l=s.interactiveBorder,c=Bm(a.placement),u=a.modifiersData.offset;if(!u)return!0;var f=c==="bottom"?u.top.y:0,h=c==="top"?u.bottom.y:0,p=c==="right"?u.left.x:0,v=c==="left"?u.right.x:0,g=o.top-r+f>l,y=r-o.bottom-h>l,O=o.left-n+p>l,w=n-o.right-v>l;return g||y||O||w})}function Vi(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function ma(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var ht={isTouch:!1},va=0;function qm(){ht.isTouch||(ht.isTouch=!0,window.performance&&document.addEventListener("mousemove",Fc))}function Fc(){var e=performance.now();e-va<20&&(ht.isTouch=!1,document.removeEventListener("mousemove",Fc)),va=e}function Ym(){var e=document.activeElement;if($c(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function zm(){document.addEventListener("touchstart",qm,Xt),window.addEventListener("blur",Ym)}var Gm=typeof window<"u"&&typeof document<"u",Xm=Gm?!!window.msCrypto:!1,Jm={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Qm={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},at=Object.assign({appendTo:Rc,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Jm,Qm),Zm=Object.keys(at),ev=function(t){var n=Object.keys(t);n.forEach(function(r){at[r]=t[r]})};function kc(e){var t=e.plugins||[],n=t.reduce(function(r,i){var o=i.name,a=i.defaultValue;if(o){var s;r[o]=e[o]!==void 0?e[o]:(s=at[o])!=null?s:a}return r},{});return Object.assign({},e,n)}function tv(e,t){var n=t?Object.keys(kc(Object.assign({},at,{plugins:t}))):Zm,r=n.reduce(function(i,o){var a=(e.getAttribute("data-tippy-"+o)||"").trim();if(!a)return i;if(o==="content")i[o]=a;else try{i[o]=JSON.parse(a)}catch{i[o]=a}return i},{});return r}function ga(e,t){var n=Object.assign({},t,{content:Nc(t.content,[e])},t.ignoreAttributes?{}:tv(e,t.plugins));return n.aria=Object.assign({},at.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var nv=function(){return"innerHTML"};function Ao(e,t){e[nv()]=t}function ba(e){var t=lr();return e===!0?t.className=Dc:(t.className=Mc,Ei(e)?t.appendChild(e):Ao(t,e)),t}function ya(e,t){Ei(t.content)?(Ao(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?Ao(e,t.content):e.textContent=t.content)}function To(e){var t=e.firstElementChild,n=oi(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(Pc)}),arrow:n.find(function(r){return r.classList.contains(Dc)||r.classList.contains(Mc)}),backdrop:n.find(function(r){return r.classList.contains(Fm)})}}function jc(e){var t=lr(),n=lr();n.className=$m,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=lr();r.className=Pc,r.setAttribute("data-state","hidden"),ya(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(o,a){var s=To(t),l=s.box,c=s.content,u=s.arrow;a.theme?l.setAttribute("data-theme",a.theme):l.removeAttribute("data-theme"),typeof a.animation=="string"?l.setAttribute("data-animation",a.animation):l.removeAttribute("data-animation"),a.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?l.setAttribute("role",a.role):l.removeAttribute("role"),(o.content!==a.content||o.allowHTML!==a.allowHTML)&&ya(c,e.props),a.arrow?u?o.arrow!==a.arrow&&(l.removeChild(u),l.appendChild(ba(a.arrow))):l.appendChild(ba(a.arrow)):u&&l.removeChild(u)}return{popper:t,onUpdate:i}}jc.$$tippy=!0;var rv=1,$r=[],qr=[];function iv(e,t){var n=ga(e,Object.assign({},at,kc(ha(t)))),r,i,o,a=!1,s=!1,l=!1,c=!1,u,f,h,p=[],v=fa(fn,n.interactiveDebounce),g,y=rv++,O=null,w=jm(n.plugins),x={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},_={id:y,reference:e,popper:lr(),popperInstance:O,props:n,state:x,plugins:w,clearDelayTimeouts:vn,setProps:gn,setContent:bn,show:Bn,hide:wi,hideWithInteractivity:Hn,enable:Wt,disable:mn,unmount:yn,destroy:Un};if(!n.render)return _;var U=n.render(_),N=U.popper,Y=U.onUpdate;N.setAttribute("data-tippy-root",""),N.id="tippy-"+_.id,_.popper=N,e._tippy=_,N._tippy=_;var C=w.map(function(D){return D.fn(_)}),M=e.hasAttribute("aria-expanded");return Te(),R(),k(),$("onCreate",[_]),n.showOnCreate&&yt(),N.addEventListener("mouseenter",function(){_.props.interactive&&_.state.isVisible&&_.clearDelayTimeouts()}),N.addEventListener("mouseleave",function(){_.props.interactive&&_.props.trigger.indexOf("mouseenter")>=0&&b().addEventListener("mousemove",v)}),_;function j(){var D=_.props.touch;return Array.isArray(D)?D:[D,0]}function T(){return j()[0]==="hold"}function d(){var D;return!!((D=_.props.render)!=null&&D.$$tippy)}function m(){return g||e}function b(){var D=m().parentNode;return D?Km(D):document}function E(){return To(N)}function A(D){return _.state.isMounted&&!_.state.isVisible||ht.isTouch||u&&u.type==="focus"?0:Wi(_.props.delay,D?0:1,at.delay)}function k(D){D===void 0&&(D=!1),N.style.pointerEvents=_.props.interactive&&!D?"":"none",N.style.zIndex=""+_.props.zIndex}function $(D,G,ee){if(ee===void 0&&(ee=!0),C.forEach(function(fe){fe[D]&&fe[D].apply(fe,G)}),ee){var me;(me=_.props)[D].apply(me,G)}}function W(){var D=_.props.aria;if(D.content){var G="aria-"+D.content,ee=N.id,me=An(_.props.triggerTarget||e);me.forEach(function(fe){var De=fe.getAttribute(G);if(_.state.isVisible)fe.setAttribute(G,De?De+" "+ee:ee);else{var ke=De&&De.replace(ee,"").trim();ke?fe.setAttribute(G,ke):fe.removeAttribute(G)}})}}function R(){if(!(M||!_.props.aria.expanded)){var D=An(_.props.triggerTarget||e);D.forEach(function(G){_.props.interactive?G.setAttribute("aria-expanded",_.state.isVisible&&G===m()?"true":"false"):G.removeAttribute("aria-expanded")})}}function z(){b().removeEventListener("mousemove",v),$r=$r.filter(function(D){return D!==v})}function J(D){if(!(ht.isTouch&&(l||D.type==="mousedown"))){var G=D.composedPath&&D.composedPath()[0]||D.target;if(!(_.props.interactive&&ma(N,G))){if(An(_.props.triggerTarget||e).some(function(ee){return ma(ee,G)})){if(ht.isTouch||_.state.isVisible&&_.props.trigger.indexOf("click")>=0)return}else $("onClickOutside",[_,D]);_.props.hideOnClick===!0&&(_.clearDelayTimeouts(),_.hide(),s=!0,setTimeout(function(){s=!1}),_.state.isMounted||de())}}}function ue(){l=!0}function re(){l=!1}function ce(){var D=b();D.addEventListener("mousedown",J,!0),D.addEventListener("touchend",J,Xt),D.addEventListener("touchstart",re,Xt),D.addEventListener("touchmove",ue,Xt)}function de(){var D=b();D.removeEventListener("mousedown",J,!0),D.removeEventListener("touchend",J,Xt),D.removeEventListener("touchstart",re,Xt),D.removeEventListener("touchmove",ue,Xt)}function le(D,G){ye(D,function(){!_.state.isVisible&&N.parentNode&&N.parentNode.contains(N)&&G()})}function oe(D,G){ye(D,G)}function ye(D,G){var ee=E().box;function me(fe){fe.target===ee&&(Vi(ee,"remove",me),G())}if(D===0)return G();Vi(ee,"remove",f),Vi(ee,"add",me),f=me}function he(D,G,ee){ee===void 0&&(ee=!1);var me=An(_.props.triggerTarget||e);me.forEach(function(fe){fe.addEventListener(D,G,ee),p.push({node:fe,eventType:D,handler:G,options:ee})})}function Te(){T()&&(he("touchstart",xt,{passive:!0}),he("touchend",dn,{passive:!0})),km(_.props.trigger).forEach(function(D){if(D!=="manual")switch(he(D,xt),D){case"mouseenter":he("mouseleave",dn);break;case"focus":he(Xm?"focusout":"blur",Ht);break;case"focusin":he("focusout",Ht);break}})}function Ne(){p.forEach(function(D){var G=D.node,ee=D.eventType,me=D.handler,fe=D.options;G.removeEventListener(ee,me,fe)}),p=[]}function xt(D){var G,ee=!1;if(!(!_.state.isEnabled||Ut(D)||s)){var me=((G=u)==null?void 0:G.type)==="focus";u=D,g=D.currentTarget,R(),!_.state.isVisible&&Um(D)&&$r.forEach(function(fe){return fe(D)}),D.type==="click"&&(_.props.trigger.indexOf("mouseenter")<0||a)&&_.props.hideOnClick!==!1&&_.state.isVisible?ee=!0:yt(D),D.type==="click"&&(a=!ee),ee&&!me&&ft(D)}}function fn(D){var G=D.target,ee=m().contains(G)||N.contains(G);if(!(D.type==="mousemove"&&ee)){var me=rt().concat(N).map(function(fe){var De,ke=fe._tippy,It=(De=ke.popperInstance)==null?void 0:De.state;return It?{popperRect:fe.getBoundingClientRect(),popperState:It,props:n}:null}).filter(Boolean);Vm(me,D)&&(z(),ft(D))}}function dn(D){var G=Ut(D)||_.props.trigger.indexOf("click")>=0&&a;if(!G){if(_.props.interactive){_.hideWithInteractivity(D);return}ft(D)}}function Ht(D){_.props.trigger.indexOf("focusin")<0&&D.target!==m()||_.props.interactive&&D.relatedTarget&&N.contains(D.relatedTarget)||ft(D)}function Ut(D){return ht.isTouch?T()!==D.type.indexOf("touch")>=0:!1}function hn(){pn();var D=_.props,G=D.popperOptions,ee=D.placement,me=D.offset,fe=D.getReferenceClientRect,De=D.moveTransition,ke=d()?To(N).arrow:null,It=fe?{getBoundingClientRect:fe,contextElement:fe.contextElement||m()}:e,Sr={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(S){var I=S.state;if(d()){var F=E(),B=F.box;["placement","reference-hidden","escaped"].forEach(function(H){H==="placement"?B.setAttribute("data-placement",I.placement):I.attributes.popper["data-popper-"+H]?B.setAttribute("data-"+H,""):B.removeAttribute("data-"+H)}),I.attributes.popper={}}}},je=[{name:"offset",options:{offset:me}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!De}},Sr];d()&&ke&&je.push({name:"arrow",options:{element:ke,padding:3}}),je.push.apply(je,(G==null?void 0:G.modifiers)||[]),_.popperInstance=us(It,N,Object.assign({},G,{placement:ee,onFirstUpdate:h,modifiers:je}))}function pn(){_.popperInstance&&(_.popperInstance.destroy(),_.popperInstance=null)}function Xe(){var D=_.props.appendTo,G,ee=m();_.props.interactive&&D===Rc||D==="parent"?G=ee.parentNode:G=Nc(D,[ee]),G.contains(N)||G.appendChild(N),_.state.isMounted=!0,hn()}function rt(){return oi(N.querySelectorAll("[data-tippy-root]"))}function yt(D){_.clearDelayTimeouts(),D&&$("onTrigger",[_,D]),ce();var G=A(!0),ee=j(),me=ee[0],fe=ee[1];ht.isTouch&&me==="hold"&&fe&&(G=fe),G?r=setTimeout(function(){_.show()},G):_.show()}function ft(D){if(_.clearDelayTimeouts(),$("onUntrigger",[_,D]),!_.state.isVisible){de();return}if(!(_.props.trigger.indexOf("mouseenter")>=0&&_.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(D.type)>=0&&a)){var G=A(!1);G?i=setTimeout(function(){_.state.isVisible&&_.hide()},G):o=requestAnimationFrame(function(){_.hide()})}}function Wt(){_.state.isEnabled=!0}function mn(){_.hide(),_.state.isEnabled=!1}function vn(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)}function gn(D){if(!_.state.isDestroyed){$("onBeforeUpdate",[_,D]),Ne();var G=_.props,ee=ga(e,Object.assign({},G,ha(D),{ignoreAttributes:!0}));_.props=ee,Te(),G.interactiveDebounce!==ee.interactiveDebounce&&(z(),v=fa(fn,ee.interactiveDebounce)),G.triggerTarget&&!ee.triggerTarget?An(G.triggerTarget).forEach(function(me){me.removeAttribute("aria-expanded")}):ee.triggerTarget&&e.removeAttribute("aria-expanded"),R(),k(),Y&&Y(G,ee),_.popperInstance&&(hn(),rt().forEach(function(me){requestAnimationFrame(me._tippy.popperInstance.forceUpdate)})),$("onAfterUpdate",[_,D])}}function bn(D){_.setProps({content:D})}function Bn(){var D=_.state.isVisible,G=_.state.isDestroyed,ee=!_.state.isEnabled,me=ht.isTouch&&!_.props.touch,fe=Wi(_.props.duration,0,at.duration);if(!(D||G||ee||me)&&!m().hasAttribute("disabled")&&($("onShow",[_],!1),_.props.onShow(_)!==!1)){if(_.state.isVisible=!0,d()&&(N.style.visibility="visible"),k(),ce(),_.state.isMounted||(N.style.transition="none"),d()){var De=E(),ke=De.box,It=De.content;Ki([ke,It],0)}h=function(){var je;if(!(!_.state.isVisible||c)){if(c=!0,N.offsetHeight,N.style.transition=_.props.moveTransition,d()&&_.props.animation){var L=E(),S=L.box,I=L.content;Ki([S,I],fe),pa([S,I],"visible")}W(),R(),da(qr,_),(je=_.popperInstance)==null||je.forceUpdate(),$("onMount",[_]),_.props.animation&&d()&&oe(fe,function(){_.state.isShown=!0,$("onShown",[_])})}},Xe()}}function wi(){var D=!_.state.isVisible,G=_.state.isDestroyed,ee=!_.state.isEnabled,me=Wi(_.props.duration,1,at.duration);if(!(D||G||ee)&&($("onHide",[_],!1),_.props.onHide(_)!==!1)){if(_.state.isVisible=!1,_.state.isShown=!1,c=!1,a=!1,d()&&(N.style.visibility="hidden"),z(),de(),k(!0),d()){var fe=E(),De=fe.box,ke=fe.content;_.props.animation&&(Ki([De,ke],me),pa([De,ke],"hidden"))}W(),R(),_.props.animation?d()&&le(me,_.unmount):_.unmount()}}function Hn(D){b().addEventListener("mousemove",v),da($r,v),v(D)}function yn(){_.state.isVisible&&_.hide(),_.state.isMounted&&(pn(),rt().forEach(function(D){D._tippy.unmount()}),N.parentNode&&N.parentNode.removeChild(N),qr=qr.filter(function(D){return D!==_}),_.state.isMounted=!1,$("onHidden",[_]))}function Un(){_.state.isDestroyed||(_.clearDelayTimeouts(),_.unmount(),Ne(),delete e._tippy,_.state.isDestroyed=!0,$("onDestroy",[_]))}}function un(e,t){t===void 0&&(t={});var n=at.plugins.concat(t.plugins||[]);zm();var r=Object.assign({},t,{plugins:n}),i=Wm(e),o=i.reduce(function(a,s){var l=s&&iv(s,r);return l&&a.push(l),a},[]);return Ei(e)?o[0]:o}un.defaultProps=at;un.setDefaultProps=ev;un.currentInput=ht;var ov=function(t){var n={},r=n.exclude,i=n.duration;qr.forEach(function(o){var a=!1;if(r&&(a=$c(r)?o.reference===r:o.popper===r.popper),!a){var s=o.props.duration;o.setProps({duration:i}),o.hide(),o.state.isDestroyed||o.setProps({duration:s})}})};Object.assign({},Ec,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});un.setDefaultProps({render:jc});const sv=(e,t={})=>({tooltipInstance:null,init(){this.tooltipInstance=un(this.$el,{...t,content:e})}}),av=()=>({tooltipInstance:null,init(){this.tooltipInstance=un(this.$el,{placement:"auto",offset:[0,30],trigger:"mouseenter",content:()=>this.$el.querySelector(".menu-inner-text").textContent})},toggleTooltip(){const e=window.matchMedia("(min-width: 1024px) and (max-width: 1279.98px)");!this.$data.minimizedMenu&&!e.matches&&this.tooltipInstance.hide()}});function lv(e){const t={};for(let n in e){if(e[n].toLowerCase()==="true"){t[n]=!0;continue}if(e[n].toLowerCase()==="false"){t[n]=!1;continue}t[n]=e[n]}return t}const cv=(e={})=>({popoverInstance:null,config:{theme:"ms-light",appendTo:document.body,allowHTML:!0,interactive:!0,content:t=>{const n=t.getAttribute("title");return`
${n?`
${n}
`:""} ${t.querySelector(".popover-content").innerHTML}`},...e},init(){this.popoverInstance=un(this.$el,{...this.config,...lv(this.$el.dataset)})},toggle(){this.popoverInstance.state.isShown?this.popoverInstance.hide():this.popoverInstance.show()},show(){this.popoverInstance.show()},hide(){this.popoverInstance.hide()},hideAll(){ov()}}),uv=()=>({init(){var e;(e=this.$root.querySelectorAll(".js-pivot-title"))==null||e.forEach(function(t){t.addEventListener("click",n=>{let i=t.closest("tr").querySelector(".js-pivot-checker");i.checked=!i.checked})})},checkAll(){var e;(e=this.$root.querySelectorAll(".js-pivot-checker"))==null||e.forEach(function(t){t.checked=!0})},uncheckAll(){var e;(e=this.$root.querySelectorAll(".js-pivot-checker"))==null||e.forEach(function(t){t.checked=!1})},autoCheck(){this.$root.querySelectorAll(".js-pivot-field").forEach(function(t,n){t.addEventListener("change",r=>{let o=t.closest("tr").querySelector(".js-pivot-checker");o.checked=r.target.value})})}}),fv=e=>({items:[],match:[],query:"",select(t){this.query="",this.match=[];const n=this.$root.querySelector(".js-pivot-table");if(n!==null){const r=n.dataset.tableName.toLowerCase();this.$dispatch("table_row_added:"+r);const i=n.querySelector("table > tbody > tr:last-child");i.querySelector(".js-pivot-title").innerHTML=t.label,i.dataset.rowKey=t.value,i.querySelector(".js-pivot-checker").checked=!0,this.$dispatch("table_reindex:"+r)}},async search(){if(this.query.length>0){let t="&query="+this.query;const n=this.$el.closest("form"),r=ts(n.querySelectorAll("[name]"));fetch(e+t+(r.length?"&"+r:"")).then(i=>i.json()).then(i=>{this.match=i})}}}),dv=()=>({async load(e,t){const{data:n,status:r}=await axios.get(e);if(r===200){let i=document.getElementById(t);i.innerHTML=n;const o=i.querySelectorAll("script");Array.from(o).forEach(a=>{const s=document.createElement("script");Array.from(a.attributes).forEach(l=>{s.setAttribute(l.name,l.value)}),s.text=a.text,a.parentNode.replaceChild(s,a)})}},async requestWithFieldValue(e,t,n=null){var i,o,a;if(n===null&&(n=this.$el.value),n===null&&(this.$el.type==="checkbox"||this.$el.type==="radio")&&(n=this.$el.checked),this.$el.tagName.toLowerCase()==="select"&&this.$el.multiple){n=[];for(let s=0;s({minValue:0,maxValue:0,min:0,max:0,step:1,minthumb:0,maxthumb:0,init(){this.minValue=parseInt(e),this.maxValue=parseInt(t),this.min=parseInt(this.$el.dataset.min)??0,this.max=parseInt(this.$el.dataset.max)??1e3,this.step=parseInt(this.$el.dataset.step)??1,this.mintrigger(),this.maxtrigger(),this.$el.closest("form").addEventListener("reset",()=>this.init())},mintrigger(){this.minValue=Math.min(this.minValue,this.maxValue-this.step),this.minValuethis.max&&(this.maxValue=this.max),this.maxthumb=100-(this.maxValue-this.min)/(this.max-this.min)*100}}),pv=(e={})=>({init(){e.forEach(t=>{this.$el.querySelectorAll('input[value="'+t+'"]').forEach(n=>n.checked=!0)})}}),mv={chart:{foreColor:"#6a778f"},grid:{borderColor:"#535A6C"},theme:{mode:"dark"},tooltip:{theme:"dark"}},vv={chart:{foreColor:"#64748b"},grid:{borderColor:"#c2c2c2"},theme:{mode:"light"},tooltip:{theme:"light"}},gv=(e={})=>({apexchartsInstance:null,init(){this.apexchartsInstance=new ApexCharts(this.$el,e);const t=()=>this.apexchartsInstance.updateOptions(Alpine.store("darkMode").on?mv:vv);setTimeout(()=>{this.apexchartsInstance.render(),t()},300),window.addEventListener("darkMode:toggle",t)}}),bv=(e,t)=>({queryTagRequest(n){const r=new URLSearchParams(window.location.search);this.$root.classList.contains(e)?(r.set("query-tag",""),this.disableQueryTags(),this.activeDefaultQueryTag()):(r.set("query-tag",n),this.disableQueryTags(),this.$root.classList.add(e)),this.$dispatch(t.toLowerCase(),{queryTag:this.prepareQueryString(r,"_component_name,_token,_method,page")})},prepareQueryString(n,r=null){return r!==null&&r.split(",").forEach(function(o){n.delete(o)}),new URLSearchParams(n).toString()},disableQueryTags(){document.querySelectorAll(".js-query-tag-button").forEach(function(n){n.classList.remove(e)})},activeDefaultQueryTag(){const n=document.querySelector(".js-query-tag-default");n==null||n.classList.add(e)}}),yv=(e="")=>({asyncUpdateRoute:e,withParams:"",loading:!1,init(){var t,n;this.loading=!1,this.withParams=(n=(t=this.$el)==null?void 0:t.dataset)==null?void 0:n.asyncWithParams},fragmentUpdate(){if(this.asyncUpdateRoute===""||this.loading)return;this.loading=!0;let t=Ic(this.withParams);const n=this,r=new URLSearchParams(t).toString();n.asyncUpdateRoute+=n.asyncUpdateRoute.includes("?")?"&"+r:"?"+r,n.asyncUpdateRoute+=mc(this.$event.detail);let i=function(a,s){s.loading=!1},o=new vt;o.withAfterCallback(function(a){n.$root.outerHTML=a}).withBeforeCallback(i).withErrorCallback(i),ln(this,this.asyncUpdateRoute,"get",t,{},o)}}),_v=(e="",t=!1)=>({activeTab:e,isVertical:t,activationVerticalWidth:480,async init(){await this.$nextTick(),this.isVertical&&(this.activationVerticalWidth=this.$el.dataset.tabsVerticalMinWidth??480,this.toggleVerticalClass(!0),this.checkWidthElement(),window.addEventListener("resize",()=>this.checkWidthElement()))},toggleVerticalClass(n){this.$el.classList[n?"add":"remove"]("tabs-vertical")},checkWidthElement(){const n=this.$el.offsetWidth>=this.activationVerticalWidth;this.toggleVerticalClass(n)},setActiveTab(n){this.activeTab=n??this.activeTab,this.$nextTick(()=>window.dispatchEvent(new Event("resize")))}}),Ev=(e=!1)=>({open:e,init(){const t=this;this.$el.addEventListener("collapse-open",function(n){t.open=!0})},toggle(){this.open=!this.open}});window.MoonShine=new up;document.dispatchEvent(new CustomEvent("moonshine:init"));const Bc=!!window.Alpine,be=Bc?window.Alpine:Oh;be.data("formBuilder",gp);be.data("tableBuilder",yp);be.data("cardsBuilder",_p);be.data("carousel",Ep);be.data("asyncLink",bv);be.data("actionButton",Im);be.data("dropdown",Tm);be.data("modal",Cm);be.data("sortable",ns);be.data("offCanvas",xm);be.data("select",Rm);be.data("toasts",Nm);be.data("tooltip",sv);be.data("navTooltip",av);be.data("popover",cv);be.data("pivot",uv);be.data("asyncSearch",fv);be.data("interactsWithAsync",dv);be.data("range",hv);be.data("tree",pv);be.data("charts",gv);be.data("fragment",yv);be.data("tabs",_v);be.data("collapse",Ev);window.Alpine=be;document.addEventListener("alpine:init",()=>{ip(),be.store("darkMode",{init(){window.addEventListener("darkMode:toggle",()=>this.toggle())},on:be.$persist(window.matchMedia("(prefers-color-scheme: dark)").matches).as("darkMode"),toggle(){this.on=!this.on}})});window.Livewire===void 0&&(be.plugin(dp),be.plugin(vp));Bc||be.start();
+ `)}}},callbackOnInit:()=>{var r;this.searchTerms=this.$el.closest(".choices").querySelector('[name="search_terms"]'),(r=this.$el)!=null&&r.disabled||this.$el.closest(".choices").addEventListener("focus",()=>{this.choicesInstance.showDropdown()}),this.associatedWith&&e&&this.asyncSearch(!0),this.$el.dataset.asyncOnInit&&this.asyncSearch(!0)},...this.customOptions}),this.associatedWith&&e&&document.querySelector(`[name="${this.associatedWith}"]`).addEventListener("change",r=>{this.choicesInstance.clearStore(),this.asyncSearch()},!1),this.$el.dataset.overflow||this.$el.closest(".table-responsive")){const r={name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:i})=>{i.styles.popper.width=`${i.rects.reference.width}px`},effect:({state:i})=>{i.elements.popper.style.width=`${i.elements.reference.offsetWidth}px`}};this.choicesInstance.passedElement.element.addEventListener("showDropdown",i=>{us(this.choicesInstance.containerInner.element,this.choicesInstance.dropdown.element,{placement:"bottom",strategy:"fixed",modifiers:[r]})},!1)}const n=this.$el.closest("form");n!==null&&n.addEventListener("reset",()=>{this.choicesInstance.clearChoices(),this.choicesInstance.setChoices(t);const r=t.filter(i=>i.selected)??t[0];this.choicesInstance.setChoiceByValue(r)}),e&&this.searchTerms.addEventListener("input",Mm(r=>this.asyncSearch(),300),!1),this.removeItemButton&&this.$el.parentElement.addEventListener("click",r=>{if(r.target.classList.contains("choices__button--remove")){const o=r.target.closest(".choices__item").getAttribute("data-id");if(this.choicesInstance._isSelectOneElement&&this.choicesInstance._store.placeholderChoice)this.choicesInstance.removeActiveItems(o),this.choicesInstance._triggerChange(this.choicesInstance._store.placeholderChoice.value),this.choicesInstance._selectPlaceholderChoice(this.choicesInstance._store.placeholderChoice);else{const{items:a}=this.choicesInstance._store,s=o&&a.find(l=>l.id===parseInt(o,10));if(!s)return;this.choicesInstance._removeItem(s),this.choicesInstance._triggerChange(s.value)}}})})},async asyncSearch(t=!1){const n=this.searchTerms.value??null;let r=[];if(t||n!==null&&n.length){const i=e.startsWith("/")?new URL(e,window.location.origin):new URL(e);i.searchParams.append("query",n);const o=this.$el.form,a=o?o.querySelectorAll("[name]"):[];let s="";a.length&&(s=ts(a)),r=await this.fromUrl(i.toString()+(s.length?"&"+s:"")),await this.choicesInstance.setChoices(r,"value","label",!0)}t||this.$el.dispatchEvent(new Event("change"))},fromUrl(t){return fetch(t).then(n=>n.json()).then(n=>n)}}),Nm=()=>({toasts:[],visible:[],add(e){e.id=Date.now(),this.toasts.push(e),this.fire(e.id)},fire(e){this.visible.push(this.toasts.find(n=>n.id==e));const t=2e3*this.visible.length;setTimeout(()=>{this.remove(e)},t)},remove(e){const t=this.visible.find(r=>r.id==e),n=this.visible.indexOf(t);this.visible.splice(n,1)}});var $m="tippy-box",Pc="tippy-content",Fm="tippy-backdrop",Dc="tippy-arrow",Mc="tippy-svg-arrow",Xt={passive:!0,capture:!0},Rc=function(){return document.body};function Wi(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function fs(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function Nc(e,t){return typeof e=="function"?e.apply(void 0,t):e}function fa(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function km(e){return e.split(/\s+/).filter(Boolean)}function An(e){return[].concat(e)}function da(e,t){e.indexOf(t)===-1&&e.push(t)}function jm(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function Bm(e){return e.split("-")[0]}function oi(e){return[].slice.call(e)}function ha(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function lr(){return document.createElement("div")}function Ei(e){return["Element","Fragment"].some(function(t){return fs(e,t)})}function Hm(e){return fs(e,"NodeList")}function Um(e){return fs(e,"MouseEvent")}function $c(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function Wm(e){return Ei(e)?[e]:Hm(e)?oi(e):Array.isArray(e)?e:oi(document.querySelectorAll(e))}function Ki(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function pa(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function Km(e){var t,n=An(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function Vm(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var o=i.popperRect,a=i.popperState,s=i.props,l=s.interactiveBorder,c=Bm(a.placement),u=a.modifiersData.offset;if(!u)return!0;var f=c==="bottom"?u.top.y:0,h=c==="top"?u.bottom.y:0,p=c==="right"?u.left.x:0,v=c==="left"?u.right.x:0,g=o.top-r+f>l,y=r-o.bottom-h>l,O=o.left-n+p>l,w=n-o.right-v>l;return g||y||O||w})}function Vi(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function ma(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var ht={isTouch:!1},va=0;function qm(){ht.isTouch||(ht.isTouch=!0,window.performance&&document.addEventListener("mousemove",Fc))}function Fc(){var e=performance.now();e-va<20&&(ht.isTouch=!1,document.removeEventListener("mousemove",Fc)),va=e}function Ym(){var e=document.activeElement;if($c(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function zm(){document.addEventListener("touchstart",qm,Xt),window.addEventListener("blur",Ym)}var Gm=typeof window<"u"&&typeof document<"u",Xm=Gm?!!window.msCrypto:!1,Jm={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Qm={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},at=Object.assign({appendTo:Rc,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Jm,Qm),Zm=Object.keys(at),ev=function(t){var n=Object.keys(t);n.forEach(function(r){at[r]=t[r]})};function kc(e){var t=e.plugins||[],n=t.reduce(function(r,i){var o=i.name,a=i.defaultValue;if(o){var s;r[o]=e[o]!==void 0?e[o]:(s=at[o])!=null?s:a}return r},{});return Object.assign({},e,n)}function tv(e,t){var n=t?Object.keys(kc(Object.assign({},at,{plugins:t}))):Zm,r=n.reduce(function(i,o){var a=(e.getAttribute("data-tippy-"+o)||"").trim();if(!a)return i;if(o==="content")i[o]=a;else try{i[o]=JSON.parse(a)}catch{i[o]=a}return i},{});return r}function ga(e,t){var n=Object.assign({},t,{content:Nc(t.content,[e])},t.ignoreAttributes?{}:tv(e,t.plugins));return n.aria=Object.assign({},at.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var nv=function(){return"innerHTML"};function Ao(e,t){e[nv()]=t}function ba(e){var t=lr();return e===!0?t.className=Dc:(t.className=Mc,Ei(e)?t.appendChild(e):Ao(t,e)),t}function ya(e,t){Ei(t.content)?(Ao(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?Ao(e,t.content):e.textContent=t.content)}function To(e){var t=e.firstElementChild,n=oi(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(Pc)}),arrow:n.find(function(r){return r.classList.contains(Dc)||r.classList.contains(Mc)}),backdrop:n.find(function(r){return r.classList.contains(Fm)})}}function jc(e){var t=lr(),n=lr();n.className=$m,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=lr();r.className=Pc,r.setAttribute("data-state","hidden"),ya(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(o,a){var s=To(t),l=s.box,c=s.content,u=s.arrow;a.theme?l.setAttribute("data-theme",a.theme):l.removeAttribute("data-theme"),typeof a.animation=="string"?l.setAttribute("data-animation",a.animation):l.removeAttribute("data-animation"),a.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?l.setAttribute("role",a.role):l.removeAttribute("role"),(o.content!==a.content||o.allowHTML!==a.allowHTML)&&ya(c,e.props),a.arrow?u?o.arrow!==a.arrow&&(l.removeChild(u),l.appendChild(ba(a.arrow))):l.appendChild(ba(a.arrow)):u&&l.removeChild(u)}return{popper:t,onUpdate:i}}jc.$$tippy=!0;var rv=1,$r=[],qr=[];function iv(e,t){var n=ga(e,Object.assign({},at,kc(ha(t)))),r,i,o,a=!1,s=!1,l=!1,c=!1,u,f,h,p=[],v=fa(fn,n.interactiveDebounce),g,y=rv++,O=null,w=jm(n.plugins),x={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},_={id:y,reference:e,popper:lr(),popperInstance:O,props:n,state:x,plugins:w,clearDelayTimeouts:vn,setProps:gn,setContent:bn,show:Bn,hide:wi,hideWithInteractivity:Hn,enable:Wt,disable:mn,unmount:yn,destroy:Un};if(!n.render)return _;var U=n.render(_),N=U.popper,Y=U.onUpdate;N.setAttribute("data-tippy-root",""),N.id="tippy-"+_.id,_.popper=N,e._tippy=_,N._tippy=_;var C=w.map(function(D){return D.fn(_)}),M=e.hasAttribute("aria-expanded");return Te(),R(),k(),$("onCreate",[_]),n.showOnCreate&&yt(),N.addEventListener("mouseenter",function(){_.props.interactive&&_.state.isVisible&&_.clearDelayTimeouts()}),N.addEventListener("mouseleave",function(){_.props.interactive&&_.props.trigger.indexOf("mouseenter")>=0&&b().addEventListener("mousemove",v)}),_;function j(){var D=_.props.touch;return Array.isArray(D)?D:[D,0]}function T(){return j()[0]==="hold"}function d(){var D;return!!((D=_.props.render)!=null&&D.$$tippy)}function m(){return g||e}function b(){var D=m().parentNode;return D?Km(D):document}function E(){return To(N)}function A(D){return _.state.isMounted&&!_.state.isVisible||ht.isTouch||u&&u.type==="focus"?0:Wi(_.props.delay,D?0:1,at.delay)}function k(D){D===void 0&&(D=!1),N.style.pointerEvents=_.props.interactive&&!D?"":"none",N.style.zIndex=""+_.props.zIndex}function $(D,G,ee){if(ee===void 0&&(ee=!0),C.forEach(function(fe){fe[D]&&fe[D].apply(fe,G)}),ee){var me;(me=_.props)[D].apply(me,G)}}function W(){var D=_.props.aria;if(D.content){var G="aria-"+D.content,ee=N.id,me=An(_.props.triggerTarget||e);me.forEach(function(fe){var De=fe.getAttribute(G);if(_.state.isVisible)fe.setAttribute(G,De?De+" "+ee:ee);else{var ke=De&&De.replace(ee,"").trim();ke?fe.setAttribute(G,ke):fe.removeAttribute(G)}})}}function R(){if(!(M||!_.props.aria.expanded)){var D=An(_.props.triggerTarget||e);D.forEach(function(G){_.props.interactive?G.setAttribute("aria-expanded",_.state.isVisible&&G===m()?"true":"false"):G.removeAttribute("aria-expanded")})}}function z(){b().removeEventListener("mousemove",v),$r=$r.filter(function(D){return D!==v})}function J(D){if(!(ht.isTouch&&(l||D.type==="mousedown"))){var G=D.composedPath&&D.composedPath()[0]||D.target;if(!(_.props.interactive&&ma(N,G))){if(An(_.props.triggerTarget||e).some(function(ee){return ma(ee,G)})){if(ht.isTouch||_.state.isVisible&&_.props.trigger.indexOf("click")>=0)return}else $("onClickOutside",[_,D]);_.props.hideOnClick===!0&&(_.clearDelayTimeouts(),_.hide(),s=!0,setTimeout(function(){s=!1}),_.state.isMounted||de())}}}function ue(){l=!0}function re(){l=!1}function ce(){var D=b();D.addEventListener("mousedown",J,!0),D.addEventListener("touchend",J,Xt),D.addEventListener("touchstart",re,Xt),D.addEventListener("touchmove",ue,Xt)}function de(){var D=b();D.removeEventListener("mousedown",J,!0),D.removeEventListener("touchend",J,Xt),D.removeEventListener("touchstart",re,Xt),D.removeEventListener("touchmove",ue,Xt)}function le(D,G){ye(D,function(){!_.state.isVisible&&N.parentNode&&N.parentNode.contains(N)&&G()})}function oe(D,G){ye(D,G)}function ye(D,G){var ee=E().box;function me(fe){fe.target===ee&&(Vi(ee,"remove",me),G())}if(D===0)return G();Vi(ee,"remove",f),Vi(ee,"add",me),f=me}function he(D,G,ee){ee===void 0&&(ee=!1);var me=An(_.props.triggerTarget||e);me.forEach(function(fe){fe.addEventListener(D,G,ee),p.push({node:fe,eventType:D,handler:G,options:ee})})}function Te(){T()&&(he("touchstart",xt,{passive:!0}),he("touchend",dn,{passive:!0})),km(_.props.trigger).forEach(function(D){if(D!=="manual")switch(he(D,xt),D){case"mouseenter":he("mouseleave",dn);break;case"focus":he(Xm?"focusout":"blur",Ht);break;case"focusin":he("focusout",Ht);break}})}function Ne(){p.forEach(function(D){var G=D.node,ee=D.eventType,me=D.handler,fe=D.options;G.removeEventListener(ee,me,fe)}),p=[]}function xt(D){var G,ee=!1;if(!(!_.state.isEnabled||Ut(D)||s)){var me=((G=u)==null?void 0:G.type)==="focus";u=D,g=D.currentTarget,R(),!_.state.isVisible&&Um(D)&&$r.forEach(function(fe){return fe(D)}),D.type==="click"&&(_.props.trigger.indexOf("mouseenter")<0||a)&&_.props.hideOnClick!==!1&&_.state.isVisible?ee=!0:yt(D),D.type==="click"&&(a=!ee),ee&&!me&&ft(D)}}function fn(D){var G=D.target,ee=m().contains(G)||N.contains(G);if(!(D.type==="mousemove"&&ee)){var me=rt().concat(N).map(function(fe){var De,ke=fe._tippy,It=(De=ke.popperInstance)==null?void 0:De.state;return It?{popperRect:fe.getBoundingClientRect(),popperState:It,props:n}:null}).filter(Boolean);Vm(me,D)&&(z(),ft(D))}}function dn(D){var G=Ut(D)||_.props.trigger.indexOf("click")>=0&&a;if(!G){if(_.props.interactive){_.hideWithInteractivity(D);return}ft(D)}}function Ht(D){_.props.trigger.indexOf("focusin")<0&&D.target!==m()||_.props.interactive&&D.relatedTarget&&N.contains(D.relatedTarget)||ft(D)}function Ut(D){return ht.isTouch?T()!==D.type.indexOf("touch")>=0:!1}function hn(){pn();var D=_.props,G=D.popperOptions,ee=D.placement,me=D.offset,fe=D.getReferenceClientRect,De=D.moveTransition,ke=d()?To(N).arrow:null,It=fe?{getBoundingClientRect:fe,contextElement:fe.contextElement||m()}:e,Sr={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(S){var I=S.state;if(d()){var F=E(),B=F.box;["placement","reference-hidden","escaped"].forEach(function(H){H==="placement"?B.setAttribute("data-placement",I.placement):I.attributes.popper["data-popper-"+H]?B.setAttribute("data-"+H,""):B.removeAttribute("data-"+H)}),I.attributes.popper={}}}},je=[{name:"offset",options:{offset:me}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!De}},Sr];d()&&ke&&je.push({name:"arrow",options:{element:ke,padding:3}}),je.push.apply(je,(G==null?void 0:G.modifiers)||[]),_.popperInstance=us(It,N,Object.assign({},G,{placement:ee,onFirstUpdate:h,modifiers:je}))}function pn(){_.popperInstance&&(_.popperInstance.destroy(),_.popperInstance=null)}function Xe(){var D=_.props.appendTo,G,ee=m();_.props.interactive&&D===Rc||D==="parent"?G=ee.parentNode:G=Nc(D,[ee]),G.contains(N)||G.appendChild(N),_.state.isMounted=!0,hn()}function rt(){return oi(N.querySelectorAll("[data-tippy-root]"))}function yt(D){_.clearDelayTimeouts(),D&&$("onTrigger",[_,D]),ce();var G=A(!0),ee=j(),me=ee[0],fe=ee[1];ht.isTouch&&me==="hold"&&fe&&(G=fe),G?r=setTimeout(function(){_.show()},G):_.show()}function ft(D){if(_.clearDelayTimeouts(),$("onUntrigger",[_,D]),!_.state.isVisible){de();return}if(!(_.props.trigger.indexOf("mouseenter")>=0&&_.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(D.type)>=0&&a)){var G=A(!1);G?i=setTimeout(function(){_.state.isVisible&&_.hide()},G):o=requestAnimationFrame(function(){_.hide()})}}function Wt(){_.state.isEnabled=!0}function mn(){_.hide(),_.state.isEnabled=!1}function vn(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)}function gn(D){if(!_.state.isDestroyed){$("onBeforeUpdate",[_,D]),Ne();var G=_.props,ee=ga(e,Object.assign({},G,ha(D),{ignoreAttributes:!0}));_.props=ee,Te(),G.interactiveDebounce!==ee.interactiveDebounce&&(z(),v=fa(fn,ee.interactiveDebounce)),G.triggerTarget&&!ee.triggerTarget?An(G.triggerTarget).forEach(function(me){me.removeAttribute("aria-expanded")}):ee.triggerTarget&&e.removeAttribute("aria-expanded"),R(),k(),Y&&Y(G,ee),_.popperInstance&&(hn(),rt().forEach(function(me){requestAnimationFrame(me._tippy.popperInstance.forceUpdate)})),$("onAfterUpdate",[_,D])}}function bn(D){_.setProps({content:D})}function Bn(){var D=_.state.isVisible,G=_.state.isDestroyed,ee=!_.state.isEnabled,me=ht.isTouch&&!_.props.touch,fe=Wi(_.props.duration,0,at.duration);if(!(D||G||ee||me)&&!m().hasAttribute("disabled")&&($("onShow",[_],!1),_.props.onShow(_)!==!1)){if(_.state.isVisible=!0,d()&&(N.style.visibility="visible"),k(),ce(),_.state.isMounted||(N.style.transition="none"),d()){var De=E(),ke=De.box,It=De.content;Ki([ke,It],0)}h=function(){var je;if(!(!_.state.isVisible||c)){if(c=!0,N.offsetHeight,N.style.transition=_.props.moveTransition,d()&&_.props.animation){var L=E(),S=L.box,I=L.content;Ki([S,I],fe),pa([S,I],"visible")}W(),R(),da(qr,_),(je=_.popperInstance)==null||je.forceUpdate(),$("onMount",[_]),_.props.animation&&d()&&oe(fe,function(){_.state.isShown=!0,$("onShown",[_])})}},Xe()}}function wi(){var D=!_.state.isVisible,G=_.state.isDestroyed,ee=!_.state.isEnabled,me=Wi(_.props.duration,1,at.duration);if(!(D||G||ee)&&($("onHide",[_],!1),_.props.onHide(_)!==!1)){if(_.state.isVisible=!1,_.state.isShown=!1,c=!1,a=!1,d()&&(N.style.visibility="hidden"),z(),de(),k(!0),d()){var fe=E(),De=fe.box,ke=fe.content;_.props.animation&&(Ki([De,ke],me),pa([De,ke],"hidden"))}W(),R(),_.props.animation?d()&&le(me,_.unmount):_.unmount()}}function Hn(D){b().addEventListener("mousemove",v),da($r,v),v(D)}function yn(){_.state.isVisible&&_.hide(),_.state.isMounted&&(pn(),rt().forEach(function(D){D._tippy.unmount()}),N.parentNode&&N.parentNode.removeChild(N),qr=qr.filter(function(D){return D!==_}),_.state.isMounted=!1,$("onHidden",[_]))}function Un(){_.state.isDestroyed||(_.clearDelayTimeouts(),_.unmount(),Ne(),delete e._tippy,_.state.isDestroyed=!0,$("onDestroy",[_]))}}function un(e,t){t===void 0&&(t={});var n=at.plugins.concat(t.plugins||[]);zm();var r=Object.assign({},t,{plugins:n}),i=Wm(e),o=i.reduce(function(a,s){var l=s&&iv(s,r);return l&&a.push(l),a},[]);return Ei(e)?o[0]:o}un.defaultProps=at;un.setDefaultProps=ev;un.currentInput=ht;var ov=function(t){var n={},r=n.exclude,i=n.duration;qr.forEach(function(o){var a=!1;if(r&&(a=$c(r)?o.reference===r:o.popper===r.popper),!a){var s=o.props.duration;o.setProps({duration:i}),o.hide(),o.state.isDestroyed||o.setProps({duration:s})}})};Object.assign({},Ec,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});un.setDefaultProps({render:jc});const sv=(e,t={})=>({tooltipInstance:null,init(){this.tooltipInstance=un(this.$el,{...t,content:e})}}),av=()=>({tooltipInstance:null,init(){this.tooltipInstance=un(this.$el,{placement:"auto",offset:[0,30],trigger:"mouseenter",content:()=>this.$el.querySelector(".menu-inner-text").textContent})},toggleTooltip(){const e=window.matchMedia("(min-width: 1024px) and (max-width: 1279.98px)");!this.$data.minimizedMenu&&!e.matches&&this.tooltipInstance.hide()}});function lv(e){const t={};for(let n in e){if(e[n].toLowerCase()==="true"){t[n]=!0;continue}if(e[n].toLowerCase()==="false"){t[n]=!1;continue}t[n]=e[n]}return t}const cv=(e={})=>({popoverInstance:null,config:{theme:"ms-light",appendTo:document.body,allowHTML:!0,interactive:!0,content:t=>{const n=t.getAttribute("title");return`${n?`
${n}
`:""} ${t.querySelector(".popover-content").innerHTML}`},...e},init(){this.popoverInstance=un(this.$el,{...this.config,...lv(this.$el.dataset)})},toggle(){this.popoverInstance.state.isShown?this.popoverInstance.hide():this.popoverInstance.show()},show(){this.popoverInstance.show()},hide(){this.popoverInstance.hide()},hideAll(){ov()}}),uv=()=>({init(){var e;(e=this.$root.querySelectorAll(".js-pivot-title"))==null||e.forEach(function(t){t.addEventListener("click",n=>{let i=t.closest("tr").querySelector(".js-pivot-checker");i.checked=!i.checked})})},checkAll(){var e;(e=this.$root.querySelectorAll(".js-pivot-checker"))==null||e.forEach(function(t){t.checked=!0})},uncheckAll(){var e;(e=this.$root.querySelectorAll(".js-pivot-checker"))==null||e.forEach(function(t){t.checked=!1})},autoCheck(){this.$root.querySelectorAll(".js-pivot-field").forEach(function(t,n){t.addEventListener("change",r=>{let o=t.closest("tr").querySelector(".js-pivot-checker");o.checked=r.target.value})})}}),fv=e=>({items:[],match:[],query:"",select(t){this.query="",this.match=[];const n=this.$root.querySelector(".js-pivot-table");if(n!==null){const r=n.dataset.tableName.toLowerCase();this.$dispatch("table_row_added:"+r);const i=n.querySelector("table > tbody > tr:last-child");i.querySelector(".js-pivot-title").innerHTML=t.label,i.dataset.rowKey=t.value,i.querySelector(".js-pivot-checker").checked=!0,this.$dispatch("table_reindex:"+r)}},async search(){if(this.query.length>0){let t="&query="+this.query;const n=this.$el.closest("form"),r=ts(n.querySelectorAll("[name]"));fetch(e+t+(r.length?"&"+r:"")).then(i=>i.json()).then(i=>{this.match=i})}}}),dv=()=>({async load(e,t){const{data:n,status:r}=await axios.get(e);if(r===200){let i=document.getElementById(t);i.innerHTML=n;const o=i.querySelectorAll("script");Array.from(o).forEach(a=>{const s=document.createElement("script");Array.from(a.attributes).forEach(l=>{s.setAttribute(l.name,l.value)}),s.text=a.text,a.parentNode.replaceChild(s,a)})}},async requestWithFieldValue(e,t,n=null){var i,o,a;if(n===null&&(n=this.$el.value),n===null&&(this.$el.type==="checkbox"||this.$el.type==="radio")&&(n=this.$el.checked),this.$el.tagName.toLowerCase()==="select"&&this.$el.multiple){n=[];for(let s=0;s({minValue:0,maxValue:0,min:0,max:0,step:1,minthumb:0,maxthumb:0,init(){this.minValue=parseInt(e),this.maxValue=parseInt(t),this.min=parseInt(this.$el.dataset.min)??0,this.max=parseInt(this.$el.dataset.max)??1e3,this.step=parseInt(this.$el.dataset.step)??1,this.mintrigger(),this.maxtrigger(),this.$el.closest("form").addEventListener("reset",()=>this.init())},mintrigger(){this.minValue=Math.min(this.minValue,this.maxValue-this.step),this.minValuethis.max&&(this.maxValue=this.max),this.maxthumb=100-(this.maxValue-this.min)/(this.max-this.min)*100}}),pv=(e={})=>({init(){e.forEach(t=>{this.$el.querySelectorAll('input[value="'+t+'"]').forEach(n=>n.checked=!0)})}}),mv={chart:{foreColor:"#6a778f"},grid:{borderColor:"#535A6C"},theme:{mode:"dark"},tooltip:{theme:"dark"}},vv={chart:{foreColor:"#64748b"},grid:{borderColor:"#c2c2c2"},theme:{mode:"light"},tooltip:{theme:"light"}},gv=(e={})=>({apexchartsInstance:null,init(){this.apexchartsInstance=new ApexCharts(this.$el,e);const t=()=>this.apexchartsInstance.updateOptions(Alpine.store("darkMode").on?mv:vv);setTimeout(()=>{this.apexchartsInstance.render(),t()},300),window.addEventListener("darkMode:toggle",t)}}),bv=(e,t)=>({queryTagRequest(n){const r=new URLSearchParams(window.location.search);this.$root.classList.contains(e)?(r.set("query-tag",""),this.disableQueryTags(),this.activeDefaultQueryTag()):(r.set("query-tag",n),this.disableQueryTags(),this.$root.classList.add(e)),this.$dispatch(t.toLowerCase(),{queryTag:this.prepareQueryString(r,"_component_name,_token,_method,page")})},prepareQueryString(n,r=null){return r!==null&&r.split(",").forEach(function(o){n.delete(o)}),new URLSearchParams(n).toString()},disableQueryTags(){document.querySelectorAll(".js-query-tag-button").forEach(function(n){n.classList.remove(e)})},activeDefaultQueryTag(){const n=document.querySelector(".js-query-tag-default");n==null||n.classList.add(e)}}),yv=(e="")=>({asyncUpdateRoute:e,withParams:"",loading:!1,init(){var t,n;this.loading=!1,this.withParams=(n=(t=this.$el)==null?void 0:t.dataset)==null?void 0:n.asyncWithParams},fragmentUpdate(){if(this.asyncUpdateRoute===""||this.loading)return;this.loading=!0;let t=Ic(this.withParams);const n=this,r=new URLSearchParams(t).toString();n.asyncUpdateRoute+=n.asyncUpdateRoute.includes("?")?"&"+r:"?"+r,n.asyncUpdateRoute+=mc(this.$event.detail);let i=function(a,s){s.loading=!1},o=new vt;o.withAfterCallback(function(a){n.$root.outerHTML=a}).withBeforeCallback(i).withErrorCallback(i),ln(this,this.asyncUpdateRoute,"get",t,{},o)}}),_v=(e="",t=!1)=>({activeTab:e,isVertical:t,activationVerticalWidth:480,async init(){await this.$nextTick(),this.isVertical&&(this.activationVerticalWidth=this.$el.dataset.tabsVerticalMinWidth??480,this.toggleVerticalClass(!0),this.checkWidthElement(),window.addEventListener("resize",()=>this.checkWidthElement()))},toggleVerticalClass(n){this.$el.classList[n?"add":"remove"]("tabs-vertical")},checkWidthElement(){const n=this.$el.offsetWidth>=this.activationVerticalWidth;this.toggleVerticalClass(n)},setActiveTab(n){this.activeTab=n??this.activeTab,this.$nextTick(()=>window.dispatchEvent(new Event("resize")))}}),Ev=(e=!1)=>({open:e,init(){const t=this;this.$el.addEventListener("collapse-open",function(n){t.open=!0})},toggle(){this.open=!this.open}});window.MoonShine=new up;document.dispatchEvent(new CustomEvent("moonshine:init"));const Bc=!!window.Alpine,be=Bc?window.Alpine:Oh;be.data("formBuilder",gp);be.data("tableBuilder",yp);be.data("cardsBuilder",_p);be.data("carousel",Ep);be.data("asyncLink",bv);be.data("actionButton",Im);be.data("dropdown",Tm);be.data("modal",Cm);be.data("sortable",ns);be.data("offCanvas",xm);be.data("select",Rm);be.data("toasts",Nm);be.data("tooltip",sv);be.data("navTooltip",av);be.data("popover",cv);be.data("pivot",uv);be.data("asyncSearch",fv);be.data("interactsWithAsync",dv);be.data("range",hv);be.data("tree",pv);be.data("charts",gv);be.data("fragment",yv);be.data("tabs",_v);be.data("collapse",Ev);window.Alpine=be;document.addEventListener("alpine:init",()=>{ip(),be.store("darkMode",{init(){window.addEventListener("darkMode:toggle",()=>this.toggle())},on:be.$persist(window.matchMedia("(prefers-color-scheme: dark)").matches).as("darkMode"),toggle(){this.on=!this.on}})});window.Livewire===void 0&&(be.plugin(dp),be.plugin(vp));Bc||be.start();
})()
\ No newline at end of file