@oneclick.dev/cms-kit 0.0.74 → 0.0.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- import{defineComponent as e,useAttrs as t,ref as n,computed as r,watchEffect as o,nextTick as i,createElementBlock as a,openBlock as s,Fragment as u,createCommentVNode as c,createElementVNode as l,unref as f,renderList as d,mergeProps as h,createBlock as p,normalizeStyle as v,normalizeClass as g,withCtx as y,renderSlot as m,createVNode as b,isVNode as w,onMounted as _,onBeforeUnmount as E,watch as j,resolveDynamicComponent as k,normalizeProps as O,createTextVNode as x,toDisplayString as N,toRef as I,toValue as C,inject as M}from"vue";import{useVueFlow as T,Position as S}from"@vue-flow/core";import{useNuxtApp as A}from"nuxt/app";let L=1;const P=new class{subscribers;toasts;dismissedToasts;constructor(){this.subscribers=[],this.toasts=[],this.dismissedToasts=/* @__PURE__ */new Set}subscribe=e=>(this.subscribers.push(e),()=>{const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)});publish=e=>{this.subscribers.forEach(t=>t(e))};addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]};create=e=>{const{message:t,...n}=e,r="number"==typeof e.id||e.id&&e.id?.length>0?e.id:L++,o=this.toasts.find(e=>e.id===r),i=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),o?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:i,title:t}):n):this.addToast({title:t,...n,dismissible:i,id:r}),r};dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e);message=(e,t)=>this.create({...t,message:e,type:"default"});error=(e,t)=>this.create({...t,type:"error",message:e});success=(e,t)=>this.create({...t,type:"success",message:e});info=(e,t)=>this.create({...t,type:"info",message:e});warning=(e,t)=>this.create({...t,type:"warning",message:e});loading=(e,t)=>this.create({...t,type:"loading",message:e});promise=(e,t)=>{if(!t)return;let n;void 0!==t.loading&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));const r=Promise.resolve(e instanceof Function?e():e);let o,i=void 0!==n;const a=r.then(async e=>{o=["resolve",e];if(w(e))i=!1,this.create({id:n,type:"default",message:e});else if(B(e)&&!e.ok){i=!1;const r="function"==typeof t.error?await t.error(`HTTP error! status: ${e.status}`):t.error,o="function"==typeof t.description?await t.description(`HTTP error! status: ${e.status}`):t.description,a="object"==typeof r&&!w(r)?r:{message:r||"",id:n||""};this.create({id:n,type:"error",description:o,...a})}else if(e instanceof Error){i=!1;const r="function"==typeof t.error?await t.error(e):t.error,o="function"==typeof t.description?await t.description(e):t.description,a="object"==typeof r&&!w(r)?r:{message:r||"",id:n||""};this.create({id:n,type:"error",description:o,...a})}else if(void 0!==t.success){i=!1;const r="function"==typeof t.success?await t.success(e):t.success,o="function"==typeof t.description?await t.description(e):t.description,a="object"==typeof r&&!w(r)?r:{message:r||"",id:n||""};this.create({id:n,type:"success",description:o,...a})}}).catch(async e=>{if(o=["reject",e],void 0!==t.error){i=!1;const r="function"==typeof t.error?await t.error(e):t.error,o="function"==typeof t.description?await t.description(e):t.description,a="object"==typeof r&&!w(r)?r:{message:r||"",id:n||""};this.create({id:n,type:"error",description:o,...a})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally?.()}),s=()=>new Promise((e,t)=>a.then(()=>"reject"===o[0]?t(o[1]):e(o[1])).catch(t));return"string"!=typeof n&&"number"!=typeof n?{unwrap:s}:Object.assign(n,{unwrap:s})};custom=(e,t)=>{const n=t?.id||L++,r=this.toasts.find(e=>e.id===n),o=void 0===t?.dismissible||t.dismissible;return this.dismissedToasts.has(n)&&this.dismissedToasts.delete(n),r?this.toasts=this.toasts.map(r=>r.id===n?(this.publish({...r,component:e,dismissible:o,id:n,...t}),{...r,component:e,dismissible:o,id:n,...t}):r):this.addToast({component:e,dismissible:o,id:n,...t}),n};getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id))};const B=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,D=function(e,t){const n=t?.id||L++;return P.create({message:e,id:n,type:"default",...t}),n},F=Object.assign(D,{success:P.success,info:P.info,warning:P.warning,error:P.error,custom:P.custom,message:P.message,promise:P.promise,dismiss:P.dismiss,loading:P.loading},{getHistory:()=>P.toasts,getToasts:()=>P.getActiveToasts()});function R(e){return void 0!==e.label}const z="24px",$="16px";function G(...e){return e.filter(Boolean).join(" ")}function V(e,t){const n={};return[e,t].forEach((e,t)=>{const r=1===t,o=r?"--mobile-offset":"--offset",i=r?$:z;function a(e){["top","right","bottom","left"].forEach(t=>{n[`${o}-${t}`]="number"==typeof e?`${e}px`:e})}"number"==typeof e||"string"==typeof e?a(e):"object"==typeof e?["top","right","bottom","left"].forEach(t=>{void 0===e[t]?n[`${o}-${t}`]=i:n[`${o}-${t}`]="number"==typeof e[t]?`${e[t]}px`:e[t]}):a(i)}),n}const U=["data-rich-colors","data-styled","data-mounted","data-promise","data-swiped","data-removed","data-visible","data-y-position","data-x-position","data-index","data-front","data-swiping","data-dismissible","data-type","data-invert","data-swipe-out","data-swipe-direction","data-expanded","data-testid"],W=["aria-label","data-disabled"];var Y=/* @__PURE__ */e({__name:"Toast",props:{toast:{},toasts:{},index:{},swipeDirections:{},expanded:{type:Boolean},invert:{type:Boolean},heights:{},gap:{},position:{},visibleToasts:{},expandByDefault:{type:Boolean},closeButton:{type:Boolean},interacting:{type:Boolean},style:{},cancelButtonStyle:{},actionButtonStyle:{},duration:{},class:{},unstyled:{type:Boolean},descriptionClass:{},loadingIcon:{},classes:{},icons:{},closeButtonAriaLabel:{},defaultRichColors:{type:Boolean}},emits:["update:heights","update:height","removeToast"],setup(e,{emit:t}){const d=e,y=t,b=n(null),w=n(null),I=n(!1),C=n(!1),M=n(!1),T=n(!1),S=n(!1),A=n(0),L=n(0),P=n(d.toast.duration||d.duration||4e3),B=n(null),D=n(null),F=r(()=>0===d.index),z=r(()=>d.index+1<=d.visibleToasts),$=r(()=>d.toast.type),V=r(()=>!1!==d.toast.dismissible),Y=r(()=>d.toast.class||""),q=r(()=>d.descriptionClass||""),H=r(()=>{const e=d.toast.position||d.position,t=d.heights.filter(t=>t.position===e).findIndex(e=>e.toastId===d.toast.id);return t>=0?t:0}),J=r(()=>{const e=d.toast.position||d.position;return d.heights.filter(t=>t.position===e).reduce((e,t,n)=>n>=H.value?e:e+t.height,0)}),K=r(()=>H.value*d.gap+J.value||0),X=r(()=>d.toast.closeButton??d.closeButton),Z=r(()=>d.toast.duration||d.duration||4e3),Q=n(0),ee=n(0),te=n(null),ne=r(()=>d.position.split("-")),re=r(()=>ne.value[0]),oe=r(()=>ne.value[1]),ie=r(()=>"string"!=typeof d.toast.title),ae=r(()=>"string"!=typeof d.toast.description),{isDocumentHidden:se}=function(){const e=n(!1);return o(()=>{const t=()=>{e.value=document.hidden};return document.addEventListener("visibilitychange",t),()=>window.removeEventListener("visibilitychange",t)}),{isDocumentHidden:e}}(),ue=r(()=>$.value&&"loading"===$.value);function ce(){C.value=!0,A.value=K.value,setTimeout(()=>{y("removeToast",d.toast)},200)}function le(){if(ue.value||!V.value)return{};ce(),d.toast.onDismiss?.(d.toast)}function fe(e){2!==e.button&&!ue.value&&V.value&&(B.value=/* @__PURE__ */new Date,A.value=K.value,e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(M.value=!0,te.value={x:e.clientX,y:e.clientY}))}function de(){if(T.value||!V.value)return;te.value=null;const e=Number(D.value?.style.getPropertyValue("--swipe-amount-x").replace("px","")||0),t=Number(D.value?.style.getPropertyValue("--swipe-amount-y").replace("px","")||0),n=/* @__PURE__ */(new Date).getTime()-(B.value?.getTime()||0),r="x"===b.value?e:t,o=Math.abs(r)/n;if(Math.abs(r)>=45||o>.11)return A.value=K.value,d.toast.onDismiss?.(d.toast),"x"===b.value?w.value=e>0?"right":"left":w.value=t>0?"down":"up",ce(),void(T.value=!0);D.value?.style.setProperty("--swipe-amount-x","0px"),D.value?.style.setProperty("--swipe-amount-y","0px"),S.value=!1,M.value=!1,b.value=null}function he(e){if(!te.value||!V.value)return;if(window?.getSelection()?.toString()?.length??!1)return;const t=e.clientY-te.value.y,n=e.clientX-te.value.x,r=d.swipeDirections??function(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}(d.position);!b.value&&(Math.abs(n)>1||Math.abs(t)>1)&&(b.value=Math.abs(n)>Math.abs(t)?"x":"y");let o={x:0,y:0};const i=e=>1/(1.5+Math.abs(e)/20);if("y"===b.value){if(r.includes("top")||r.includes("bottom"))if(r.includes("top")&&t<0||r.includes("bottom")&&t>0)o.y=t;else{const e=t*i(t);o.y=Math.abs(e)<Math.abs(t)?e:t}}else if("x"===b.value&&(r.includes("left")||r.includes("right")))if(r.includes("left")&&n<0||r.includes("right")&&n>0)o.x=n;else{const e=n*i(n);o.x=Math.abs(e)<Math.abs(n)?e:n}(Math.abs(o.x)>0||Math.abs(o.y)>0)&&(S.value=!0),D.value?.style.setProperty("--swipe-amount-x",`${o.x}px`),D.value?.style.setProperty("--swipe-amount-y",`${o.y}px`)}function pe(){M.value=!1,b.value=null,te.value=null}return _(()=>{I.value=!0,P.value=Z.value}),o(async()=>{if(!I.value||!D.value)return;await i();const e=D.value,t=e.style.height;e.style.height="auto";const n=e.getBoundingClientRect().height;e.style.height=t,L.value=n,y("update:height",{toastId:d.toast.id,height:n,position:d.toast.position||d.position})}),_(()=>{if(I.value=!0,!D.value)return;const e=D.value.getBoundingClientRect().height;L.value=e;const t=[{toastId:d.toast.id,height:e,position:d.toast.position},...d.heights];y("update:heights",t)}),E(()=>{D.value&&y("removeToast",d.toast)}),o(e=>{if(d.toast.promise&&"loading"===$.value||d.toast.duration===1/0||"loading"===d.toast.type)return;let t;d.expanded||d.interacting||se.value?(()=>{if(ee.value<Q.value){const e=/* @__PURE__ */(new Date).getTime()-Q.value;P.value=P.value-e}ee.value=/* @__PURE__ */(new Date).getTime()})():P.value!==1/0&&(Q.value=/* @__PURE__ */(new Date).getTime(),t=setTimeout(()=>{d.toast.onAutoClose?.(d.toast),ce()},P.value)),e(()=>{clearTimeout(t)})}),j(()=>d.toast.delete,e=>{void 0!==e&&e&&(ce(),d.toast.onDismiss?.(d.toast))},{deep:!0}),(e,t)=>(s(),a("li",{tabindex:"0",ref_key:"toastRef",ref:D,class:g(f(G)(d.class,Y.value,e.classes?.toast,e.toast.classes?.toast,e.classes?.[$.value],e.toast?.classes?.[$.value])),"data-sonner-toast":"","data-rich-colors":e.toast.richColors??e.defaultRichColors,"data-styled":!Boolean(e.toast.component||e.toast?.unstyled||e.unstyled),"data-mounted":I.value,"data-promise":Boolean(e.toast.promise),"data-swiped":S.value,"data-removed":C.value,"data-visible":z.value,"data-y-position":re.value,"data-x-position":oe.value,"data-index":e.index,"data-front":F.value,"data-swiping":M.value,"data-dismissible":V.value,"data-type":$.value,"data-invert":e.toast.invert||e.invert,"data-swipe-out":T.value,"data-swipe-direction":w.value,"data-expanded":Boolean(e.expanded||e.expandByDefault&&I.value),"data-testid":e.toast.testId,style:v({"--index":e.index,"--toasts-before":e.index,"--z-index":e.toasts.length-e.index,"--offset":`${C.value?A.value:K.value}px`,"--initial-height":e.expandByDefault?"auto":`${L.value}px`,...e.style,...d.toast.style}),onDragend:pe,onPointerdown:fe,onPointerup:de,onPointermove:he},[X.value&&!e.toast.component&&"loading"!==$.value?(s(),a("button",{key:0,"aria-label":e.closeButtonAriaLabel||"Close toast","data-disabled":ue.value,"data-close-button":"true",class:g(f(G)(e.classes?.closeButton,e.toast?.classes?.closeButton)),onClick:le},[e.icons?.close?(s(),p(k(e.icons?.close),{key:0})):m(e.$slots,"close-icon",{key:1})],10,W)):c("v-if",!0),e.toast.component?(s(),p(k(e.toast.component),h({key:1},e.toast.componentProps,{onCloseToast:le}),null,16)):(s(),a(u,{key:2},["default"!==$.value||e.toast.icon||e.toast.promise?(s(),a("div",{key:0,"data-icon":"",class:g(f(G)(e.classes?.icon,e.toast?.classes?.icon))},[e.toast.icon?(s(),p(k(e.toast.icon),{key:0})):(s(),a(u,{key:1},["loading"===$.value?m(e.$slots,"loading-icon",{key:0}):"success"===$.value?m(e.$slots,"success-icon",{key:1}):"error"===$.value?m(e.$slots,"error-icon",{key:2}):"warning"===$.value?m(e.$slots,"warning-icon",{key:3}):"info"===$.value?m(e.$slots,"info-icon",{key:4}):c("v-if",!0)],64))],2)):c("v-if",!0),l("div",{"data-content":"",class:g(f(G)(e.classes?.content,e.toast?.classes?.content))},[l("div",{"data-title":"",class:g(f(G)(e.classes?.title,e.toast.classes?.title))},[ie.value?(s(),p(k(e.toast.title),O(h({key:0},e.toast.componentProps)),null,16)):(s(),a(u,{key:1},[x(N(e.toast.title),1)],64))],2),e.toast.description?(s(),a("div",{key:0,"data-description":"",class:g(f(G)(e.descriptionClass,q.value,e.classes?.description,e.toast.classes?.description))},[ae.value?(s(),p(k(e.toast.description),O(h({key:0},e.toast.componentProps)),null,16)):(s(),a(u,{key:1},[x(N(e.toast.description),1)],64))],2)):c("v-if",!0)],2),e.toast.cancel?(s(),a("button",{key:1,style:v(e.toast.cancelButtonStyle||e.cancelButtonStyle),class:g(f(G)(e.classes?.cancelButton,e.toast.classes?.cancelButton)),"data-button":"","data-cancel":"",onClick:t[0]||(t[0]=t=>{f(R)(e.toast.cancel)&&V.value&&(e.toast.cancel.onClick?.(t),ce())})},N(f(R)(e.toast.cancel)?e.toast.cancel?.label:e.toast.cancel),7)):c("v-if",!0),e.toast.action?(s(),a("button",{key:2,style:v(e.toast.actionButtonStyle||e.actionButtonStyle),class:g(f(G)(e.classes?.actionButton,e.toast.classes?.actionButton)),"data-button":"","data-action":"",onClick:t[1]||(t[1]=t=>{f(R)(e.toast.action)&&(e.toast.action.onClick?.(t),t.defaultPrevented||ce())})},N(f(R)(e.toast.action)?e.toast.action?.label:e.toast.action),7)):c("v-if",!0)],64))],46,U))}}),q=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const H={xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stoke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"};var J=/* @__PURE__ */q({},[["render",function(e,t){return s(),a("svg",H,t[0]||(t[0]=[l("line",{x1:"18",y1:"6",x2:"6",y2:"18"},null,-1),l("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1)]))}]]);const K=["data-visible"],X={class:"sonner-spinner"};var Z=/* @__PURE__ */e({__name:"Loader",props:{visible:{type:Boolean}},setup(e){const t=Array(12).fill(0);return(e,n)=>(s(),a("div",{class:"sonner-loading-wrapper","data-visible":e.visible},[l("div",X,[(s(!0),a(u,null,d(f(t),e=>(s(),a("div",{key:`spinner-bar-${e}`,class:"sonner-loading-bar"}))),128))])],8,K))}});const Q={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"};var ee=/* @__PURE__ */q({},[["render",function(e,t){return s(),a("svg",Q,t[0]||(t[0]=[l("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z","clip-rule":"evenodd"},null,-1)]))}]]);const te={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"};var ne=/* @__PURE__ */q({},[["render",function(e,t){return s(),a("svg",te,t[0]||(t[0]=[l("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z","clip-rule":"evenodd"},null,-1)]))}]]);const re={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"};var oe=/* @__PURE__ */q({},[["render",function(e,t){return s(),a("svg",re,t[0]||(t[0]=[l("path",{"fill-rule":"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z","clip-rule":"evenodd"},null,-1)]))}]]);const ie={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"};var ae=/* @__PURE__ */q({},[["render",function(e,t){return s(),a("svg",ie,t[0]||(t[0]=[l("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z","clip-rule":"evenodd"},null,-1)]))}]]);const se=["aria-label"],ue=["data-sonner-theme","dir","data-theme","data-rich-colors","data-y-position","data-x-position"],ce="undefined"!=typeof window&&"undefined"!=typeof document;function le(){if("undefined"==typeof window)return"ltr";if("undefined"==typeof document)return"ltr";const e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}var fe=/* @__PURE__ */e({name:"Toaster",inheritAttrs:!1,__name:"Toaster",props:{id:{},invert:{type:Boolean,default:!1},theme:{default:"light"},position:{default:"bottom-right"},hotkey:{default:()=>["altKey","KeyT"]},richColors:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},duration:{},gap:{default:14},visibleToasts:{default:3},closeButton:{type:Boolean,default:!1},toastOptions:{default:()=>({})},class:{default:""},style:{},offset:{default:z},mobileOffset:{default:$},dir:{default:"auto"},swipeDirections:{},icons:{},containerAriaLabel:{default:"Notifications"}},setup(e){const w=e,_=t(),E=n([]),j=r(()=>w.id?E.value.filter(e=>e.toasterId===w.id):E.value.filter(e=>!e.toasterId));function k(e,t){return j.value.filter(n=>!n.position&&0===t||n.position===e)}const O=r(()=>{const e=j.value.filter(e=>e.position).map(e=>e.position);return e.length>0?Array.from(new Set([w.position].concat(e))):[w.position]}),x=r(()=>{const e={};return O.value.forEach(t=>{e[t]=E.value.filter(e=>e.position===t)}),e}),N=n([]),I=n({}),C=n(!1);o(()=>{O.value.forEach(e=>{e in I.value||(I.value[e]=!1)})});const M=n("system"!==w.theme?w.theme:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),T=n(null),S=n(null),A=n(!1),L=w.hotkey.join("+").replace(/Key/g,"").replace(/Digit/g,"");function B(e){E.value.find(t=>t.id===e.id)?.delete||P.dismiss(e.id),E.value=E.value.filter(({id:t})=>t!==e.id),setTimeout(()=>{E.value.find(t=>t.id===e.id)||(N.value=N.value.filter(t=>t.toastId!==e.id))},250)}function D(e){A.value&&!e.currentTarget?.contains?.(e.relatedTarget)&&(A.value=!1,S.value&&(S.value.focus({preventScroll:!0}),S.value=null))}function F(e){e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||A.value||(A.value=!0,S.value=e.relatedTarget)}function R(e){if(e.target){if(e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible)return}C.value=!0}function z(e){const t=e.currentTarget,n=t.getAttribute("data-y-position")+"-"+t.getAttribute("data-x-position");I.value[n]=!0}function $(e){if(!C.value){const t=e.currentTarget,n=t.getAttribute("data-y-position")+"-"+t.getAttribute("data-x-position");I.value[n]=!1}}function G(){Object.keys(I.value).forEach(e=>{I.value[e]=!1})}function U(){C.value=!1}function W(e){N.value=e}function q(e){const t=N.value.findIndex(t=>t.toastId===e.toastId);if(-1!==t)N.value[t]=e;else{const t=N.value.findIndex(t=>t.position===e.position);-1!==t?N.value.splice(t,0,e):N.value.unshift(e)}}return o(e=>{e(P.subscribe(e=>{e.dismiss?requestAnimationFrame(()=>{E.value=E.value.map(t=>t.id===e.id?{...t,delete:!0}:t)}):i(()=>{const t=E.value.findIndex(t=>t.id===e.id);E.value=-1!==t?[...E.value.slice(0,t),{...E.value[t],...e},...E.value.slice(t+1)]:[e,...E.value]})}))}),o(e=>{if("undefined"==typeof window)return;if("system"!==w.theme)return void(M.value=w.theme);const t=window.matchMedia("(prefers-color-scheme: dark)"),n=e=>{M.value=e?"dark":"light"};n(t.matches);const r=e=>{n(e.matches)};try{t.addEventListener("change",r)}catch{t.addListener(r)}e(()=>{try{t.removeEventListener("change",r)}catch{t.removeListener(r)}})}),o(()=>{T.value&&S.value&&(S.value.focus({preventScroll:!0}),S.value=null,A.value=!1)}),o(()=>{E.value.length<=1&&Object.keys(I.value).forEach(e=>{I.value[e]=!1})}),o(e=>{function t(e){const t=w.hotkey.every(t=>e[t]||e.code===t),n=Array.isArray(T.value)?T.value[0]:T.value;t&&(O.value.forEach(e=>{I.value[e]=!0}),n?.focus());const r=document.activeElement===T.value||n?.contains(document.activeElement);"Escape"===e.code&&r&&O.value.forEach(e=>{I.value[e]=!1})}ce&&(document.addEventListener("keydown",t),e(()=>{document.removeEventListener("keydown",t)}))}),(e,t)=>(s(),a(u,null,[c(" Remove item from normal navigation flow, only available via hotkey "),l("section",{"aria-label":`${e.containerAriaLabel} ${f(L)}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false"},[(s(!0),a(u,null,d(O.value,(t,n)=>(s(),a("ol",h({key:t,ref_for:!0,ref_key:"listRef",ref:T,"data-sonner-toaster":"","data-sonner-theme":M.value,class:w.class,dir:"auto"===e.dir?le():e.dir,tabIndex:-1,"data-theme":e.theme,"data-rich-colors":e.richColors,"data-y-position":t.split("-")[0],"data-x-position":t.split("-")[1],style:{"--front-toast-height":`${N.value[0]?.height||0}px`,"--width":`${f(356)}px`,"--gap":`${e.gap}px`,...e.style,...f(_).style,...f(V)(e.offset,e.mobileOffset)}},{ref_for:!0},e.$attrs,{onBlur:D,onFocus:F,onMouseenter:z,onMousemove:z,onMouseleave:$,onDragend:G,onPointerdown:R,onPointerup:U}),[(s(!0),a(u,null,d(k(t,n),(n,r)=>(s(),p(Y,{key:n.id,heights:N.value,icons:e.icons,index:r,toast:n,defaultRichColors:e.richColors,duration:e.toastOptions?.duration??e.duration,class:g(e.toastOptions?.class??""),descriptionClass:e.toastOptions?.descriptionClass,invert:e.invert,visibleToasts:e.visibleToasts,closeButton:e.toastOptions?.closeButton??e.closeButton,interacting:C.value,position:t,style:v(e.toastOptions?.style),unstyled:e.toastOptions?.unstyled,classes:e.toastOptions?.classes,cancelButtonStyle:e.toastOptions?.cancelButtonStyle,actionButtonStyle:e.toastOptions?.actionButtonStyle,"close-button-aria-label":e.toastOptions?.closeButtonAriaLabel,toasts:x.value[t],expandByDefault:e.expand,gap:e.gap,expanded:I.value[t]||!1,swipeDirections:w.swipeDirections,"onUpdate:heights":W,"onUpdate:height":q,onRemoveToast:B},{"close-icon":y(()=>[m(e.$slots,"close-icon",{},()=>[b(J)])]),"loading-icon":y(()=>[m(e.$slots,"loading-icon",{},()=>[b(Z,{visible:"loading"===n.type},null,8,["visible"])])]),"success-icon":y(()=>[m(e.$slots,"success-icon",{},()=>[b(ee)])]),"error-icon":y(()=>[m(e.$slots,"error-icon",{},()=>[b(ae)])]),"warning-icon":y(()=>[m(e.$slots,"warning-icon",{},()=>[b(oe)])]),"info-icon":y(()=>[m(e.$slots,"info-icon",{},()=>[b(ne)])]),_:2},1032,["heights","icons","index","toast","defaultRichColors","duration","class","descriptionClass","invert","visibleToasts","closeButton","interacting","position","style","unstyled","classes","cancelButtonStyle","actionButtonStyle","close-button-aria-label","toasts","expandByDefault","gap","expanded","swipeDirections"]))),128))],16,ue))),128))],8,se)],2112))}});function de(e,t){if(!e)return"";return function(e,t,n="text"){const r=e.match(/^\s*\{\{\s*([\s\S]+?)\s*\}\}\s*$/);return r?he(r[1].trim(),t):e.replace(/\{\{\s*([\s\S]+?)\s*\}\}/g,(e,r)=>{const o=he(String(r).trim(),t);if("js"===n){if(null==o)return"null";if("string"==typeof o)return JSON.stringify(o);if("number"==typeof o||"boolean"==typeof o)return String(o);try{return JSON.stringify(o)}catch{return"null"}}if(null==o)return"";if("string"==typeof o)return o;if("number"==typeof o||"boolean"==typeof o)return String(o);try{return JSON.stringify(o)}catch{return String(o)}})}(e,function(e){const t=["__proto__","constructor","prototype"],n=e=>{if(Array.isArray(e))return e.map(n);if(e&&"object"==typeof e){const r={};for(const o in e)!t.includes(o)&&pe(o)&&(r[o]=n(e[o]));return r}return e};return n(e)}(t?.reduce((e,t)=>(e[t.name]=t.value,e),{})??{}))}function he(e,t){if(!e)return"";const n=function(e){const t=e.match(/\b[a-zA-Z_][a-zA-Z0-9_]*\b/g)||[],n=/* @__PURE__ */new Set(["true","false","null","undefined","return","if","else","try","catch","typeof"]);return[...new Set(t.filter(e=>!n.has(e)))]}(e),r={...t};for(const s of n)s in r||(r[s]=void 0);const o=Object.keys(r),i=Object.values(r);try{return new Function(...o,`'use strict'; return (${e})`)(...i)}catch(a){return void console.warn(`Interpolation failed for expression: "${e}"`,a)}}function pe(e){return/^[$A-Z_][0-9A-Z_$]*$/i.test(e)}function ve(e,t,n,r,o=8e3){const i=crypto.randomUUID();return new Promise((a,s)=>{const u=e=>{const t=e.data;t&&"response"===t.type&&t.id===i&&(l(),a(t.payload))},c=setTimeout(()=>{l(),s(new Error("Timed out waiting for response"))},o),l=()=>{clearTimeout(c),window.removeEventListener("message",u)};window.addEventListener("message",u),e.postMessage({type:t,id:i,payload:JSON.stringify(n)},r)})}const ge={"api-request":async(e,{node:t})=>{try{let n=Object.keys(e).map(t=>({name:t,value:e[t]})),r=de(t.data.url,n),o=de(t.data.method,n).toUpperCase(),i=t.data.body?.map(e=>({key:de(e.key,n),value:de(e.value,n)}))||[],a=t.data.headers?.map(e=>({key:de(e.key,n),value:de(e.value,n)}))||[],s=t.data.cookies?.map(e=>({key:de(e.key,n),value:de(e.value,n)}))||[];const u=(t.data.urlParameters?.map(e=>({key:de(e.key,n),value:de(e.value,n)}))||[]).filter(e=>e.key).map(e=>`${encodeURIComponent(e.key)}=${encodeURIComponent(e.value)}`).join("&"),c=u?`${r}?${u}`:r,l={};if(a.forEach(({key:e,value:t})=>{e&&(l[e]=t)}),s.length>0){const e=s.map(({key:e,value:t})=>`${e}=${t}`).join("; ");l.Cookie=e}let f=null;if(["POST","PUT","PATCH"].includes(o)){const e={};i.forEach(({key:t,value:n})=>{t&&(e[t]=n)}),f=JSON.stringify(e),l["Content-Type"]||="application/json"}const d=await fetch(c,{method:o,headers:l,body:f,credentials:"include"});if(d.status>=400)return{result:{success:!1,status:d.status}};let h;const p=d.headers.get("content-type");return h=p?.includes("application/json")?await d.json():await d.text(),{result:{success:!0,data:h,status:d.status}}}catch(n){return{result:{success:!1,status:n.status||500}}}},conditional:async(e,{node:t})=>({conditionMet:!!ye(t.data.condition,e)}),"integration-action":async(e,{node:t})=>{const{$useIntegrationActions:n}=A(),{fireAction:r}=n(t.data.action.integration);return{result:await r(t.data.action,e)}},"show-toast":async(e,{node:t})=>{console.log("Show toast",e,t);let n=Object.keys(e).map(t=>({name:t,value:e[t]})),r=de(t.data.title,n),o=de(t.data.message,n);return"true"===document.documentElement.dataset.moduleOverlayMode?(window.parent.postMessage({type:"toast:show",payload:{title:r,description:o}},"*"),{shown:!0}):(F(r,{description:o}),{shown:!0})},"finish-flow":async(e,{node:t,onFinish:n})=>{if(t.data.returnData){console.log("Finish flow with data",e,t);let r=ye(t.data.transform,e);console.log("Finish flow return value",r),n(r)}else n();return{finished:!0}},confetti:async(e,{node:t})=>{const{$confetti:n}=A();return n(),{confetti:!0}},confirm:async(e,{node:t})=>{const{$useConfirmation:n}=A(),{confirm:r}=n();if(r){let n=Object.keys(e).map(t=>({name:t,value:e[t]})),o=de(t.data.title,n),i=de(t.data.message,n),a=de(t.data.confirmText,n);if("true"===document.documentElement.dataset.moduleOverlayMode){return{confirmed:(await ve(window.parent,"confirmation-modal:show",{message:i,title:o,confirmText:a},"*")).confirmed}}return{confirmed:await r(i,o,a)}}return{confirmed:!1}},"set-variable":async(e,{node:t,localVariables:n})=>{console.log("Set variable",e,t,n);let r=Object.keys(e).map(t=>({name:t,value:e[t]})),o={};for(const i of t.data.updateActions??[]){const e=n.value.find(e=>e.id===i.variableId),t=de(i.value,r);console.log("skibi",i.value,r,t),e&&("element"===e.type?(e.value.value=t,o[e.name]={value:t}):(e.value=t,o[e.name]=t)),window.dispatchEvent(new CustomEvent("flow-update-form-variable",{detail:{id:i.variableId,value:t}}))}return{set:!0,...o}},"transform-data":async(e,{node:t})=>({transformed:!0,value:ye(t.data.transform,e)}),"visit-url":async(e,{node:t})=>{let n=Object.keys(e).map(t=>({name:t,value:e[t]})),r=de(t.data.url,n);return t.data.newTab?window.open(r,"_blank"):window.location.href=r,{visited:!0}},"show-dialog":async(e,{node:t,flowBuilderExtensions:n})=>{const{$useCustomDialog:r}=A(),{openCustomDialog:o}=r();let i=Object.keys(e).map(t=>({name:t,value:e[t]}));if("true"===document.documentElement.dataset.moduleOverlayMode){return await ve(window.parent,"dialog:show",{layout:t.data.layout,variables:i,formBuilderExtensions:[],flowBuilderExtensions:n},"*")}const a=await o(t.data.layout,i,[],n);return console.log("Dialog result",a),a},"show-module":async(e,{node:t})=>{console.log("Show module",e,t);const{$useModuleOverlay:n}=A(),{openInOverlay:r}=n();let o=Object.keys(e).map(t=>({name:t,value:e[t]}));const i={};if(t.data.moduleData?.forEach(e=>{i[de(e.key,o)]=de(e.value,o)}),console.log("mowauka aaa",t.data.moduleData,i),"true"===document.documentElement.dataset.moduleOverlayMode){return await ve(window.parent,"module-overlay:show",{moduleId:t.data.moduleId,params:i},"*")}const a=await r(t.data.moduleId,i);return console.log("Overlay result",a),a},"wait-delay":async(e,{node:t})=>{console.log("Wait / delay",e,t);let n=parseInt(t.data.delayMs)||0;return await new Promise(e=>setTimeout(e,n)),{waited:!0}}},ye=(e,t={})=>{var n=document.createElement("iframe");document.body.appendChild(n);var r=n.contentWindow.Function;return document.body.removeChild(n),r(...Object.keys(t),"'use strict';"+e)(...Object.values(t))},me={ERROR:"error",SKIPPED:"skipped",CANCELLED:"cancelled",FINISHED:"finished",RUNNING:"running"};function be({graph:e,cancelOnError:t=!0,nodes:r=[],edges:o=[],variables:i=[],computedVariables:a=[],onFinish:s,flowBuilderExtensions:u=[]}){const{updateNodeData:c,getConnectedEdges:l,findNode:f}=T(),d=/* @__PURE__ */new Map,h=new Map(r.map(e=>[e.id,e])),p=I(()=>C(e)),v=n(!1),g=/* @__PURE__ */new Map,y=/* @__PURE__ */new Set,m=/* @__PURE__ */new Set,b=n(i?JSON.parse(JSON.stringify(i.map(e=>({...e,value:Object.keys(e).includes("defaultValue")?e.defaultValue:e.value??null})))):[]);async function w(e,n=!1){if(n&&"START"!==e||y.has(e))return;m.add(e);const r=l(e).filter(t=>t.target===e);if(await Promise.all(r.map(e=>async function(e){return new Promise(t=>{const n=setInterval(()=>{e()&&(clearInterval(n),t(!0))},100)})}(()=>!e.data?.isAnimating))),m.clear(),v.value){y.add(e),k(e,me.RUNNING);try{const t=p.value.predecessors(e)||[],n=Object.assign({},...t.map(e=>d.get(e)??{})),r={...Object.fromEntries(b.value.map(e=>[e.name,e.value])),...n},i=h?.size>0?h.get(e):f(e),a=function(e){const t={};return e.forEach(e=>{e.type?.value&&"function"==typeof e.processFunction&&(t[e.type.value]=e.processFunction)}),t}(u);console.log("processFunctions from extensions",a,"from",u);const c={...ge,...a}[i.data.taskType??i.type];console.log("Running task:",i.data.taskType,c,u);const l=c?await c(r,{node:i,graph:p.value,onFinish:s,localVariables:b,flowBuilderExtensions:u}):{};d.set(e,l?JSON.parse(JSON.stringify(l)):{}),k(e,me.FINISHED);const v=o.filter(t=>t.source===e),g=v.some(e=>e.sourceHandle);for(const e of v){const{source:t,sourceHandle:n}=e,r=h.get(t).type,o="start"===r||"confirm"===r&&"success"===n&&!0===l.confirmed||"confirm"===r&&"error"===n&&!1===l.confirmed||"integration-action"===r&&"success"===n&&!0===l.result?.success||"integration-action"===r&&"error"===n&&!1===l.result?.success||"api-request"===r&&"success"===n&&!0===l.result?.success||"api-request"===r&&"error"===n&&!1===l.result?.success||"conditional"===r&&"success"===n&&!0===l.conditionMet||"conditional"===r&&"error"===n&&!1===l.conditionMet||!["confirm","integration-action","api-request","conditional"].includes(r)&&"success"===n;console.log("should run",o,r,n,l,g),o&&await w(e.target)}}catch(i){console.error(`Error in node ${e}:`,i),k(e,me.ERROR),C(t)&&await E(e)}}}function _(e){j();for(const t of e)k(t.id,null)}async function E(e){const t=p.value.successors(e)||[];for(const n of t)k(n,me.SKIPPED),await E(n)}function j(){v.value=!1,y.clear(),g.clear()}function k(e,t){c(e,{status:t})}return{run:async function(e){if(v.value)return;_(e),v.value=!0;const t=e.filter(e=>0===p.value.predecessors(e.id)?.length);await Promise.all(t.map(e=>w(e.id,!0))),j()},stop:async function(){v.value=!1;for(const e of m)clearTimeout(g.get(e)),g.delete(e),k(e,me.CANCELLED),await E(e);for(const[e,t]of g)clearTimeout(t),g.delete(e),k(e,me.CANCELLED),await E(e);y.clear(),m.clear()},reset:_,isRunning:v}}var we,_e,Ee,je,ke,Oe,xe,Ne,Ie,Ce,Me,Te,Se,Ae,Le,Pe,Be,De,Fe,Re,ze,$e,Ge,Ve,Ue,We,Ye,qe,He,Je,Ke,Xe,Ze,Qe,et,tt,nt,rt,ot,it,at,st,ut,ct,lt,ft,dt,ht,pt,vt,gt,yt,mt,bt,wt,_t,Et,jt,kt,Ot,xt,Nt,It,Ct,Mt,Tt,St,At,Lt,Pt,Bt,Dt,Ft,Rt,zt,$t,Gt,Vt,Ut,Wt,Yt,qt,Ht,Jt,Kt,Xt,Zt,Qt,en,tn,nn,rn,on,an,sn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function un(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cn(){if(_e)return we;_e=1;var e="\0";function t(e,t){e[t]?e[t]++:e[t]=1}function n(e,t){--e[t]||delete e[t]}function r(e,t,n,r){var o=""+t,i=""+n;if(!e&&o>i){var a=o;o=i,i=a}return o+""+i+""+(void 0===r?"\0":r)}function o(e,t){return r(e,t.v,t.w,t.name)}return we=class{_isDirected=!0;_isMultigraph=!1;_isCompound=!1;_label;_defaultNodeLabelFn=()=>{};_defaultEdgeLabelFn=()=>{};_nodes={};_in={};_preds={};_out={};_sucs={};_edgeObjs={};_edgeLabels={};_nodeCount=0;_edgeCount=0;_parent;_children;constructor(t){t&&(this._isDirected=!Object.hasOwn(t,"directed")||t.directed,this._isMultigraph=!!Object.hasOwn(t,"multigraph")&&t.multigraph,this._isCompound=!!Object.hasOwn(t,"compound")&&t.compound),this._isCompound&&(this._parent={},this._children={},this._children[e]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return this._defaultNodeLabelFn=e,"function"!=typeof e&&(this._defaultNodeLabelFn=()=>e),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var e=this;return this.nodes().filter(t=>0===Object.keys(e._in[t]).length)}sinks(){var e=this;return this.nodes().filter(t=>0===Object.keys(e._out[t]).length)}setNodes(e,t){var n=arguments,r=this;return e.forEach(function(e){n.length>1?r.setNode(e,t):r.setNode(e)}),this}setNode(t,n){return Object.hasOwn(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=n),this):(this._nodes[t]=arguments.length>1?n:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=e,this._children[t]={},this._children[e][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.hasOwn(this._nodes,e)}removeNode(e){var t=this;if(Object.hasOwn(this._nodes,e)){var n=e=>t.removeEdge(t._edgeObjs[e]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],this.children(e).forEach(function(e){t.setParent(e)}),delete this._children[e]),Object.keys(this._in[e]).forEach(n),delete this._in[e],delete this._preds[e],Object.keys(this._out[e]).forEach(n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(t,n){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(void 0===n)n=e;else{for(var r=n+="";void 0!==r;r=this.parent(r))if(r===t)throw new Error("Setting "+n+" as parent of "+t+" would create a cycle");this.setNode(n)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=n,this._children[n][t]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(t){if(this._isCompound){var n=this._parent[t];if(n!==e)return n}}children(t=e){if(this._isCompound){var n=this._children[t];if(n)return Object.keys(n)}else{if(t===e)return this.nodes();if(this.hasNode(t))return[]}}predecessors(e){var t=this._preds[e];if(t)return Object.keys(t)}successors(e){var t=this._sucs[e];if(t)return Object.keys(t)}neighbors(e){var t=this.predecessors(e);if(t){const r=new Set(t);for(var n of this.successors(e))r.add(n);return Array.from(r.values())}}isLeaf(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;Object.entries(this._nodes).forEach(function([n,r]){e(n)&&t.setNode(n,r)}),Object.values(this._edgeObjs).forEach(function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))});var r={};function o(e){var i=n.parent(e);return void 0===i||t.hasNode(i)?(r[e]=i,i):i in r?r[i]:o(i)}return this._isCompound&&t.nodes().forEach(e=>t.setParent(e,o(e))),t}setDefaultEdgeLabel(e){return this._defaultEdgeLabelFn=e,"function"!=typeof e&&(this._defaultEdgeLabelFn=()=>e),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(e,t){var n=this,r=arguments;return e.reduce(function(e,o){return r.length>1?n.setEdge(e,o,t):n.setEdge(e,o),o}),this}setEdge(){var e,n,o,i,a=!1,s=arguments[0];"object"==typeof s&&null!==s&&"v"in s?(e=s.v,n=s.w,o=s.name,2===arguments.length&&(i=arguments[1],a=!0)):(e=s,n=arguments[1],o=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),e=""+e,n=""+n,void 0!==o&&(o=""+o);var u=r(this._isDirected,e,n,o);if(Object.hasOwn(this._edgeLabels,u))return a&&(this._edgeLabels[u]=i),this;if(void 0!==o&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(n),this._edgeLabels[u]=a?i:this._defaultEdgeLabelFn(e,n,o);var c=function(e,t,n,r){var o=""+t,i=""+n;if(!e&&o>i){var a=o;o=i,i=a}var s={v:o,w:i};r&&(s.name=r);return s}(this._isDirected,e,n,o);return e=c.v,n=c.w,Object.freeze(c),this._edgeObjs[u]=c,t(this._preds[n],e),t(this._sucs[e],n),this._in[n][u]=c,this._out[e][u]=c,this._edgeCount++,this}edge(e,t,n){var i=1===arguments.length?o(this._isDirected,arguments[0]):r(this._isDirected,e,t,n);return this._edgeLabels[i]}edgeAsObj(){const e=this.edge(...arguments);return"object"!=typeof e?{label:e}:e}hasEdge(e,t,n){var i=1===arguments.length?o(this._isDirected,arguments[0]):r(this._isDirected,e,t,n);return Object.hasOwn(this._edgeLabels,i)}removeEdge(e,t,i){var a=1===arguments.length?o(this._isDirected,arguments[0]):r(this._isDirected,e,t,i),s=this._edgeObjs[a];return s&&(e=s.v,t=s.w,delete this._edgeLabels[a],delete this._edgeObjs[a],n(this._preds[t],e),n(this._sucs[e],t),delete this._in[t][a],delete this._out[e][a],this._edgeCount--),this}inEdges(e,t){var n=this._in[e];if(n){var r=Object.values(n);return t?r.filter(e=>e.v===t):r}}outEdges(e,t){var n=this._out[e];if(n){var r=Object.values(n);return t?r.filter(e=>e.w===t):r}}nodeEdges(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},we}function ln(){if(Ne)return xe;Ne=1;var e=cn();function t(e){return e.nodes().map(function(t){var n=e.node(t),r=e.parent(t),o={v:t};return void 0!==n&&(o.value=n),void 0!==r&&(o.parent=r),o})}function n(e){return e.edges().map(function(t){var n=e.edge(t),r={v:t.v,w:t.w};return void 0!==t.name&&(r.name=t.name),void 0!==n&&(r.value=n),r})}return xe={write:function(e){var r={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:t(e),edges:n(e)};void 0!==e.graph()&&(r.value=structuredClone(e.graph()));return r},read:function(t){var n=new e(t.options).setGraph(t.value);return t.nodes.forEach(function(e){n.setNode(e.v,e.value),e.parent&&n.setParent(e.v,e.parent)}),t.edges.forEach(function(e){n.setEdge({v:e.v,w:e.w,name:e.name},e.value)}),n}}}function fn(){if(Ce)return Ie;return Ce=1,Ie=function(e){var t,n={},r=[];function o(r){Object.hasOwn(n,r)||(n[r]=!0,t.push(r),e.successors(r).forEach(o),e.predecessors(r).forEach(o))}return e.nodes().forEach(function(e){t=[],o(e),t.length&&r.push(t)}),r}}function dn(){if(Te)return Me;Te=1;return Me=class{_arr=[];_keyIndices={};size(){return this._arr.length}keys(){return this._arr.map(function(e){return e.key})}has(e){return Object.hasOwn(this._keyIndices,e)}priority(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority}min(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key}add(e,t){var n=this._keyIndices;if(e=String(e),!Object.hasOwn(n,e)){var r=this._arr,o=r.length;return n[e]=o,r.push({key:e,priority:t}),this._decrease(o),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key}decrease(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)}_heapify(e){var t=this._arr,n=2*e,r=n+1,o=e;n<t.length&&(o=t[n].priority<t[o].priority?n:o,r<t.length&&(o=t[r].priority<t[o].priority?r:o),o!==e&&(this._swap(e,o),this._heapify(o)))}_decrease(e){for(var t,n=this._arr,r=n[e].priority;0!==e&&!(n[t=e>>1].priority<r);)this._swap(e,t),e=t}_swap(e,t){var n=this._arr,r=this._keyIndices,o=n[e],i=n[t];n[e]=i,n[t]=o,r[i.key]=e,r[o.key]=t}}}function hn(){if(Ae)return Se;Ae=1;var e=dn();Se=function(n,r,o,i){return function(t,n,r,o){var i,a,s={},u=new e,c=function(e){var t=e.v!==i?e.v:e.w,n=s[t],o=r(e),c=a.distance+o;if(o<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+o);c<n.distance&&(n.distance=c,n.predecessor=i,u.decrease(t,c))};t.nodes().forEach(function(e){var t=e===n?0:Number.POSITIVE_INFINITY;s[e]={distance:t},u.add(e,t)});for(;u.size()>0&&(i=u.removeMin(),(a=s[i]).distance!==Number.POSITIVE_INFINITY);)o(i).forEach(c);return s}(n,String(r),o||t,i||function(e){return n.outEdges(e)})};var t=()=>1;return Se}function pn(){if(Pe)return Le;Pe=1;var e=hn();return Le=function(t,n,r){return t.nodes().reduce(function(o,i){return o[i]=e(t,i,n,r),o},{})}}function vn(){if(De)return Be;return De=1,Be=function(e){var t=0,n=[],r={},o=[];function i(a){var s=r[a]={onStack:!0,lowlink:t,index:t++};if(n.push(a),e.successors(a).forEach(function(e){Object.hasOwn(r,e)?r[e].onStack&&(s.lowlink=Math.min(s.lowlink,r[e].index)):(i(e),s.lowlink=Math.min(s.lowlink,r[e].lowlink))}),s.lowlink===s.index){var u,c=[];do{u=n.pop(),r[u].onStack=!1,c.push(u)}while(a!==u);o.push(c)}}return e.nodes().forEach(function(e){Object.hasOwn(r,e)||i(e)}),o}}function gn(){if(Re)return Fe;Re=1;var e=vn();return Fe=function(t){return e(t).filter(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])})}}function yn(){if($e)return ze;$e=1,ze=function(t,n,r){return function(e,t,n){var r={},o=e.nodes();return o.forEach(function(e){r[e]={},r[e][e]={distance:0},o.forEach(function(t){e!==t&&(r[e][t]={distance:Number.POSITIVE_INFINITY})}),n(e).forEach(function(n){var o=n.v===e?n.w:n.v,i=t(n);r[e][o]={distance:i,predecessor:e}})}),o.forEach(function(e){var t=r[e];o.forEach(function(n){var i=r[n];o.forEach(function(n){var r=i[e],o=t[n],a=i[n],s=r.distance+o.distance;s<a.distance&&(a.distance=s,a.predecessor=o.predecessor)})})}),r}(t,n||e,r||function(e){return t.outEdges(e)})};var e=()=>1;return ze}function mn(){if(Ve)return Ge;function e(e){var n={},r={},o=[];if(e.sinks().forEach(function i(a){if(Object.hasOwn(r,a))throw new t;Object.hasOwn(n,a)||(r[a]=!0,n[a]=!0,e.predecessors(a).forEach(i),delete r[a],o.push(a))}),Object.keys(n).length!==e.nodeCount())throw new t;return o}Ve=1;class t extends Error{constructor(){super(...arguments)}}return Ge=e,e.CycleException=t,Ge}function bn(){if(We)return Ue;We=1;var e=mn();return Ue=function(t){try{e(t)}catch(n){if(n instanceof e.CycleException)return!1;throw n}return!0}}function wn(){if(qe)return Ye;function e(e,t,r,o){for(var i=[[e,!1]];i.length>0;){var a=i.pop();a[1]?o.push(a[0]):Object.hasOwn(r,a[0])||(r[a[0]]=!0,i.push([a[0],!0]),n(t(a[0]),e=>i.push([e,!1])))}}function t(e,t,r,o){for(var i=[e];i.length>0;){var a=i.pop();Object.hasOwn(r,a)||(r[a]=!0,o.push(a),n(t(a),e=>i.push(e)))}}function n(e,t){for(var n=e.length;n--;)t(e[n],n,e);return e}return qe=1,Ye=function(n,r,o){Array.isArray(r)||(r=[r]);var i=n.isDirected()?e=>n.successors(e):e=>n.neighbors(e),a="post"===o?e:t,s=[],u={};return r.forEach(e=>{if(!n.hasNode(e))throw new Error("Graph does not have node: "+e);a(e,i,u,s)}),s}}function _n(){if(Je)return He;Je=1;var e=wn();return He=function(t,n){return e(t,n,"post")}}function En(){if(Xe)return Ke;Xe=1;var e=wn();return Ke=function(t,n){return e(t,n,"pre")}}function jn(){if(Qe)return Ze;Qe=1;var e=cn(),t=dn();return Ze=function(n,r){var o,i=new e,a={},s=new t;function u(e){var t=e.v===o?e.w:e.v,n=s.priority(t);if(void 0!==n){var i=r(e);i<n&&(a[t]=o,s.decrease(t,i))}}if(0===n.nodeCount())return i;n.nodes().forEach(function(e){s.add(e,Number.POSITIVE_INFINITY),i.setNode(e)}),s.decrease(n.nodes()[0],0);var c=!1;for(;s.size()>0;){if(o=s.removeMin(),Object.hasOwn(a,o))i.setEdge(o,a[o]);else{if(c)throw new Error("Input graph is not connected: "+n);c=!0}n.nodeEdges(o).forEach(u)}return i}}function kn(){if(rt)return nt;rt=1;var e=Oe?ke:(Oe=1,ke={Graph:cn(),version:je?Ee:(je=1,Ee="2.2.4")});return nt={Graph:e.Graph,json:ln(),alg:tt?et:(tt=1,et={components:fn(),dijkstra:hn(),dijkstraAll:pn(),findCycles:gn(),floydWarshall:yn(),isAcyclic:bn(),postorder:_n(),preorder:En(),prim:jn(),tarjan:vn(),topsort:mn()}),version:e.version}}function On(){if(st)return at;st=1;let e=kn().Graph,t=function(){if(it)return ot;function e(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function t(e,t){if("_next"!==e&&"_prev"!==e)return t}return it=1,ot=class{constructor(){let e={};e._next=e._prev=e,this._sentinel=e}dequeue(){let t=this._sentinel,n=t._prev;if(n!==t)return e(n),n}enqueue(t){let n=this._sentinel;t._prev&&t._next&&e(t),t._next=n._next,n._next._prev=t,n._next=t,t._prev=n}toString(){let e=[],n=this._sentinel,r=n._prev;for(;r!==n;)e.push(JSON.stringify(r,t)),r=r._prev;return"["+e.join(", ")+"]"}}}();at=function(i,a){if(i.nodeCount()<=1)return[];let s=function(n,r){let i=new e,a=0,s=0;n.nodes().forEach(e=>{i.setNode(e,{v:e,in:0,out:0})}),n.edges().forEach(e=>{let t=i.edge(e.v,e.w)||0,n=r(e),o=t+n;i.setEdge(e.v,e.w,o),s=Math.max(s,i.node(e.v).out+=n),a=Math.max(a,i.node(e.w).in+=n)});let u=function(e){const t=[];for(let n=0;n<e;n++)t.push(n);return t}(s+a+3).map(()=>new t),c=a+1;return i.nodes().forEach(e=>{o(u,c,i.node(e))}),{graph:i,buckets:u,zeroIdx:c}}(i,a||n);return function(e,t,n){let o,i=[],a=t[t.length-1],s=t[0];for(;e.nodeCount();){for(;o=s.dequeue();)r(e,t,n,o);for(;o=a.dequeue();)r(e,t,n,o);if(e.nodeCount())for(let a=t.length-2;a>0;--a)if(o=t[a].dequeue(),o){i=i.concat(r(e,t,n,o,!0));break}}return i}(s.graph,s.buckets,s.zeroIdx).flatMap(e=>i.outEdges(e.v,e.w))};let n=()=>1;function r(e,t,n,r,i){let a=i?[]:void 0;return e.inEdges(r.v).forEach(r=>{let s=e.edge(r),u=e.node(r.v);i&&a.push({v:r.v,w:r.w}),u.out-=s,o(t,n,u)}),e.outEdges(r.v).forEach(r=>{let i=e.edge(r),a=r.w,s=e.node(a);s.in-=i,o(t,n,s)}),e.removeNode(r.v),a}function o(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}return at}function xn(){if(ct)return ut;ct=1;let e=kn().Graph;function t(e,t,n,r){for(var o=r;e.hasNode(o);)o=a(r);return n.dummy=t,e.setNode(o,n),o}ut={addBorderNode:function(e,n,r,o){let i={width:0,height:0};arguments.length>=4&&(i.rank=r,i.order=o);return t(e,"border",i,n)},addDummyNode:t,applyWithChunking:r,asNonCompoundGraph:function(t){let n=new e({multigraph:t.isMultigraph()}).setGraph(t.graph());return t.nodes().forEach(e=>{t.children(e).length||n.setNode(e,t.node(e))}),t.edges().forEach(e=>{n.setEdge(e,t.edge(e))}),n},buildLayerMatrix:function(e){let t=s(o(e)+1).map(()=>[]);return e.nodes().forEach(n=>{let r=e.node(n),o=r.rank;void 0!==o&&(t[o][r.order]=n)}),t},intersectRect:function(e,t){let n,r,o=e.x,i=e.y,a=t.x-o,s=t.y-i,u=e.width/2,c=e.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(s)*u>Math.abs(a)*c?(s<0&&(c=-c),n=c*a/s,r=c):(a<0&&(u=-u),n=u,r=u*s/a);return{x:o+n,y:i+r}},mapValues:function(e,t){let n=t;"string"==typeof t&&(n=e=>e[t]);return Object.entries(e).reduce((e,[t,r])=>(e[t]=n(r,t),e),{})},maxRank:o,normalizeRanks:function(e){let t=e.nodes().map(t=>{let n=e.node(t).rank;return void 0===n?Number.MAX_VALUE:n}),n=r(Math.min,t);e.nodes().forEach(t=>{let r=e.node(t);Object.hasOwn(r,"rank")&&(r.rank-=n)})},notime:function(e,t){return t()},partition:function(e,t){let n={lhs:[],rhs:[]};return e.forEach(e=>{t(e)?n.lhs.push(e):n.rhs.push(e)}),n},pick:function(e,t){const n={};for(const r of t)void 0!==e[r]&&(n[r]=e[r]);return n},predecessorWeights:function(e){let t=e.nodes().map(t=>{let n={};return e.inEdges(t).forEach(t=>{n[t.v]=(n[t.v]||0)+e.edge(t).weight}),n});return u(e.nodes(),t)},range:s,removeEmptyRanks:function(e){let t=e.nodes().map(t=>e.node(t).rank),n=r(Math.min,t),o=[];e.nodes().forEach(t=>{let r=e.node(t).rank-n;o[r]||(o[r]=[]),o[r].push(t)});let i=0,a=e.graph().nodeRankFactor;Array.from(o).forEach((t,n)=>{void 0===t&&n%a!==0?--i:void 0!==t&&i&&t.forEach(t=>e.node(t).rank+=i)})},simplify:function(t){let n=(new e).setGraph(t.graph());return t.nodes().forEach(e=>n.setNode(e,t.node(e))),t.edges().forEach(e=>{let r=n.edge(e.v,e.w)||{weight:0,minlen:1},o=t.edge(e);n.setEdge(e.v,e.w,{weight:r.weight+o.weight,minlen:Math.max(r.minlen,o.minlen)})}),n},successorWeights:function(e){let t=e.nodes().map(t=>{let n={};return e.outEdges(t).forEach(t=>{n[t.w]=(n[t.w]||0)+e.edge(t).weight}),n});return u(e.nodes(),t)},time:function(e,t){let n=Date.now();try{return t()}finally{console.log(e+" time: "+(Date.now()-n)+"ms")}},uniqueId:a,zipObject:u};const n=65535;function r(e,t){if(t.length>n){const r=function(e,t=n){const r=[];for(let n=0;n<e.length;n+=t){const o=e.slice(n,n+t);r.push(o)}return r}(t);return e.apply(null,r.map(t=>e.apply(null,t)))}return e.apply(null,t)}function o(e){const t=e.nodes().map(t=>{let n=e.node(t).rank;return void 0===n?Number.MIN_VALUE:n});return r(Math.max,t)}let i=0;function a(e){return e+""+ ++i}function s(e,t,n=1){null==t&&(t=e,e=0);let r=e=>e<t;n<0&&(r=e=>t<e);const o=[];for(let i=e;r(i);i+=n)o.push(i);return o}function u(e,t){return e.reduce((e,n,r)=>(e[n]=t[r],e),{})}return ut}function Nn(){if(ft)return lt;ft=1;let e=On(),t=xn().uniqueId;return lt={run:function(n){("greedy"===n.graph().acyclicer?e(n,(r=n,e=>r.edge(e).weight)):function(e){let t=[],n={},r={};function o(i){Object.hasOwn(r,i)||(r[i]=!0,n[i]=!0,e.outEdges(i).forEach(e=>{Object.hasOwn(n,e.w)?t.push(e):o(e.w)}),delete n[i])}return e.nodes().forEach(o),t}(n)).forEach(e=>{let r=n.edge(e);n.removeEdge(e),r.forwardName=e.name,r.reversed=!0,n.setEdge(e.w,e.v,r,t("rev"))});var r},undo:function(e){e.edges().forEach(t=>{let n=e.edge(t);if(n.reversed){e.removeEdge(t);let r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}})}}}function In(){if(ht)return dt;ht=1;let e=xn();return dt={run:function(t){t.graph().dummyChains=[],t.edges().forEach(n=>function(t,n){let r,o,i,a=n.v,s=t.node(a).rank,u=n.w,c=t.node(u).rank,l=n.name,f=t.edge(n),d=f.labelRank;if(c===s+1)return;for(t.removeEdge(n),i=0,++s;s<c;++i,++s)f.points=[],o={width:0,height:0,edgeLabel:f,edgeObj:n,rank:s},r=e.addDummyNode(t,"edge",o,"_d"),s===d&&(o.width=f.width,o.height=f.height,o.dummy="edge-label",o.labelpos=f.labelpos),t.setEdge(a,r,{weight:f.weight},l),0===i&&t.graph().dummyChains.push(r),a=r;t.setEdge(a,u,{weight:f.weight},l)}(t,n))},undo:function(e){e.graph().dummyChains.forEach(t=>{let n,r=e.node(t),o=r.edgeLabel;for(e.setEdge(r.edgeObj,o);r.dummy;)n=e.successors(t)[0],e.removeNode(t),o.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(o.x=r.x,o.y=r.y,o.width=r.width,o.height=r.height),t=n,r=e.node(t)})}}}function Cn(){if(vt)return pt;vt=1;const{applyWithChunking:e}=xn();return pt={longestPath:function(t){var n={};t.sources().forEach(function r(o){var i=t.node(o);if(Object.hasOwn(n,o))return i.rank;n[o]=!0;let a=t.outEdges(o).map(e=>null==e?Number.POSITIVE_INFINITY:r(e.w)-t.edge(e).minlen);var s=e(Math.min,a);return s===Number.POSITIVE_INFINITY&&(s=0),i.rank=s})},slack:function(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}}}function Mn(){if(yt)return gt;yt=1;var e=kn().Graph,t=Cn().slack;function n(e,n){return e.nodes().forEach(function r(o){n.nodeEdges(o).forEach(i=>{var a=i.v,s=o===a?i.w:a;e.hasNode(s)||t(n,i)||(e.setNode(s,{}),e.setEdge(o,s,{}),r(s))})}),e.nodeCount()}function r(e,n){return n.edges().reduce((r,o)=>{let i=Number.POSITIVE_INFINITY;return e.hasNode(o.v)!==e.hasNode(o.w)&&(i=t(n,o)),i<r[0]?[i,o]:r},[Number.POSITIVE_INFINITY,null])[1]}function o(e,t,n){e.nodes().forEach(e=>t.node(e).rank+=n)}return gt=function(i){var a,s,u=new e({directed:!1}),c=i.nodes()[0],l=i.nodeCount();u.setNode(c,{});for(;n(u,i)<l;)a=r(u,i),s=u.hasNode(a.v)?t(i,a):-t(i,a),o(u,i,s);return u}}function Tn(){if(bt)return mt;bt=1;var e=Mn(),t=Cn().slack,n=Cn().longestPath,r=kn().alg.preorder,o=kn().alg.postorder,i=xn().simplify;function a(t){t=i(t),n(t);var r,o=e(t);for(c(o),s(o,t);r=f(o);)h(o,t,r,d(o,t,r))}function s(e,t){var n=o(e,e.nodes());(n=n.slice(0,n.length-1)).forEach(n=>function(e,t,n){var r=e.node(n),o=r.parent;e.edge(n,o).cutvalue=u(e,t,n)}(e,t,n))}function u(e,t,n){var r=e.node(n).parent,o=!0,i=t.edge(n,r),a=0;return i||(o=!1,i=t.edge(r,n)),a=i.weight,t.nodeEdges(n).forEach(i=>{var s,u,c=i.v===n,l=c?i.w:i.v;if(l!==r){var f=c===o,d=t.edge(i).weight;if(a+=f?d:-d,s=n,u=l,e.hasEdge(s,u)){var h=e.edge(n,l).cutvalue;a+=f?-h:h}}}),a}function c(e,t){arguments.length<2&&(t=e.nodes()[0]),l(e,{},1,t)}function l(e,t,n,r,o){var i=n,a=e.node(r);return t[r]=!0,e.neighbors(r).forEach(o=>{Object.hasOwn(t,o)||(n=l(e,t,n,o,r))}),a.low=i,a.lim=n++,o?a.parent=o:delete a.parent,n}function f(e){return e.edges().find(t=>e.edge(t).cutvalue<0)}function d(e,n,r){var o=r.v,i=r.w;n.hasEdge(o,i)||(o=r.w,i=r.v);var a=e.node(o),s=e.node(i),u=a,c=!1;return a.lim>s.lim&&(u=s,c=!0),n.edges().filter(t=>c===p(e,e.node(t.v),u)&&c!==p(e,e.node(t.w),u)).reduce((e,r)=>t(n,r)<t(n,e)?r:e)}function h(e,t,n,o){var i=n.v,a=n.w;e.removeEdge(i,a),e.setEdge(o.v,o.w,{}),c(e),s(e,t),function(e,t){var n=e.nodes().find(e=>!t.node(e).parent),o=r(e,n);(o=o.slice(1)).forEach(n=>{var r=e.node(n).parent,o=t.edge(n,r),i=!1;o||(o=t.edge(r,n),i=!0),t.node(n).rank=t.node(r).rank+(i?o.minlen:-o.minlen)})}(e,t)}function p(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}return mt=a,a.initLowLimValues=c,a.initCutValues=s,a.calcCutValue=u,a.leaveEdge=f,a.enterEdge=d,a.exchangeEdges=h,mt}function Sn(){if(_t)return wt;_t=1;var e=Cn().longestPath,t=Mn(),n=Tn();wt=function(n){var i=n.graph().ranker;if(i instanceof Function)return i(n);switch(n.graph().ranker){case"network-simplex":default:o(n);break;case"tight-tree":!function(n){e(n),t(n)}(n);break;case"longest-path":r(n);case"none":}};var r=e;function o(e){n(e)}return wt}function An(){if(jt)return Et;return jt=1,Et=function(e){let t=function(e){let t={},n=0;function r(o){let i=n;e.children(o).forEach(r),t[o]={low:i,lim:n++}}return e.children().forEach(r),t}(e);e.graph().dummyChains.forEach(n=>{let r=e.node(n),o=r.edgeObj,i=function(e,t,n,r){let o,i,a=[],s=[],u=Math.min(t[n].low,t[r].low),c=Math.max(t[n].lim,t[r].lim);o=n;do{o=e.parent(o),a.push(o)}while(o&&(t[o].low>u||c>t[o].lim));i=o,o=r;for(;(o=e.parent(o))!==i;)s.push(o);return{path:a.concat(s.reverse()),lca:i}}(e,t,o.v,o.w),a=i.path,s=i.lca,u=0,c=a[u],l=!0;for(;n!==o.w;){if(r=e.node(n),l){for(;(c=a[u])!==s&&e.node(c).maxRank<r.rank;)u++;c===s&&(l=!1)}if(!l){for(;u<a.length-1&&e.node(c=a[u+1]).minRank<=r.rank;)u++;c=a[u]}e.setParent(n,c),n=e.successors(n)[0]}})}}function Ln(){if(Ot)return kt;Ot=1;let e=xn();function t(n,r,o,i,a,s,u){let c=n.children(u);if(!c.length)return void(u!==r&&n.setEdge(r,u,{weight:0,minlen:o}));let l=e.addBorderNode(n,"_bt"),f=e.addBorderNode(n,"_bb"),d=n.node(u);n.setParent(l,u),d.borderTop=l,n.setParent(f,u),d.borderBottom=f,c.forEach(e=>{t(n,r,o,i,a,s,e);let c=n.node(e),d=c.borderTop?c.borderTop:e,h=c.borderBottom?c.borderBottom:e,p=c.borderTop?i:2*i,v=d!==h?1:a-s[u]+1;n.setEdge(l,d,{weight:p,minlen:v,nestingEdge:!0}),n.setEdge(h,f,{weight:p,minlen:v,nestingEdge:!0})}),n.parent(u)||n.setEdge(r,l,{weight:0,minlen:a+s[u]})}return kt={run:function(n){let r=e.addDummyNode(n,"root",{},"_root"),o=function(e){var t={};function n(r,o){var i=e.children(r);i&&i.length&&i.forEach(e=>n(e,o+1)),t[r]=o}return e.children().forEach(e=>n(e,1)),t}(n),i=Object.values(o),a=e.applyWithChunking(Math.max,i)-1,s=2*a+1;n.graph().nestingRoot=r,n.edges().forEach(e=>n.edge(e).minlen*=s);let u=function(e){return e.edges().reduce((t,n)=>t+e.edge(n).weight,0)}(n)+1;n.children().forEach(e=>t(n,r,s,u,a,o,e)),n.graph().nodeRankFactor=s},cleanup:function(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,e.edges().forEach(t=>{e.edge(t).nestingEdge&&e.removeEdge(t)})}}}function Pn(){if(Ct)return It;function e(e){e.nodes().forEach(n=>t(e.node(n))),e.edges().forEach(n=>t(e.edge(n)))}function t(e){let t=e.width;e.width=e.height,e.height=t}function n(e){e.y=-e.y}function r(e){let t=e.x;e.x=e.y,e.y=t}return Ct=1,It={adjust:function(t){let n=t.graph().rankdir.toLowerCase();"lr"!==n&&"rl"!==n||e(t)},undo:function(t){let o=t.graph().rankdir.toLowerCase();"bt"!==o&&"rl"!==o||function(e){e.nodes().forEach(t=>n(e.node(t))),e.edges().forEach(t=>{let r=e.edge(t);r.points.forEach(n),Object.hasOwn(r,"y")&&n(r)})}(t);"lr"!==o&&"rl"!==o||(!function(e){e.nodes().forEach(t=>r(e.node(t))),e.edges().forEach(t=>{let n=e.edge(t);n.points.forEach(r),Object.hasOwn(n,"x")&&r(n)})}(t),e(t))}}}function Bn(){if(Dt)return Bt;Dt=1;let e=xn();return Bt=function(t,n){let r={};return t.forEach((e,t)=>{let n=r[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};void 0!==e.barycenter&&(n.barycenter=e.barycenter,n.weight=e.weight)}),n.edges().forEach(e=>{let t=r[e.v],n=r[e.w];void 0!==t&&void 0!==n&&(n.indegree++,t.out.push(r[e.w]))}),function(t){let n=[];function r(e){return t=>{t.merged||(void 0===t.barycenter||void 0===e.barycenter||t.barycenter>=e.barycenter)&&function(e,t){let n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight);t.weight&&(n+=t.barycenter*t.weight,r+=t.weight);e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}(e,t)}}function o(e){return n=>{n.in.push(e),0===--n.indegree&&t.push(n)}}for(;t.length;){let e=t.pop();n.push(e),e.in.reverse().forEach(r(e)),e.out.forEach(o(e))}return n.filter(e=>!e.merged).map(t=>e.pick(t,["vs","i","barycenter","weight"]))}(Object.values(r).filter(e=>!e.indegree))}}function Dn(){if($t)return zt;$t=1;let e=Pt?Lt:(Pt=1,Lt=function(e,t=[]){return t.map(t=>{let n=e.inEdges(t);if(n.length){let r=n.reduce((t,n)=>{let r=e.edge(n),o=e.node(n.v);return{sum:t.sum+r.weight*o.order,weight:t.weight+r.weight}},{sum:0,weight:0});return{v:t,barycenter:r.sum/r.weight,weight:r.weight}}return{v:t}})}),t=Bn(),n=function(){if(Rt)return Ft;Rt=1;let e=xn();function t(e,t,n){let r;for(;t.length&&(r=t[t.length-1]).i<=n;)t.pop(),e.push(r.vs),n++;return n}return Ft=function(n,r){let o=e.partition(n,e=>Object.hasOwn(e,"barycenter")),i=o.lhs,a=o.rhs.sort((e,t)=>t.i-e.i),s=[],u=0,c=0,l=0;var f;i.sort((f=!!r,(e,t)=>e.barycenter<t.barycenter?-1:e.barycenter>t.barycenter?1:f?t.i-e.i:e.i-t.i)),l=t(s,a,l),i.forEach(e=>{l+=e.vs.length,s.push(e.vs),u+=e.barycenter*e.weight,c+=e.weight,l=t(s,a,l)});let d={vs:s.flat(!0)};return c&&(d.barycenter=u/c,d.weight=c),d}}();return zt=function r(o,i,a,s){let u=o.children(i),c=o.node(i),l=c?c.borderLeft:void 0,f=c?c.borderRight:void 0,d={};l&&(u=u.filter(e=>e!==l&&e!==f));let h=e(o,u);h.forEach(e=>{if(o.children(e.v).length){let i=r(o,e.v,a,s);d[e.v]=i,Object.hasOwn(i,"barycenter")&&(n=i,void 0!==(t=e).barycenter?(t.barycenter=(t.barycenter*t.weight+n.barycenter*n.weight)/(t.weight+n.weight),t.weight+=n.weight):(t.barycenter=n.barycenter,t.weight=n.weight))}var t,n});let p=t(h,a);!function(e,t){e.forEach(e=>{e.vs=e.vs.flatMap(e=>t[e]?t[e].vs:e)})}(p,d);let v=n(p,s);if(l&&(v.vs=[l,v.vs,f].flat(!0),o.predecessors(l).length)){let e=o.node(o.predecessors(l)[0]),t=o.node(o.predecessors(f)[0]);Object.hasOwn(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+e.order+t.order)/(v.weight+2),v.weight+=2}return v},zt}function Fn(){if(Vt)return Gt;Vt=1;let e=kn().Graph,t=xn();return Gt=function(n,r,o,i){i||(i=n.nodes());let a=function(e){var n;for(;e.hasNode(n=t.uniqueId("_root")););return n}(n),s=new e({compound:!0}).setGraph({root:a}).setDefaultNodeLabel(e=>n.node(e));return i.forEach(e=>{let t=n.node(e),i=n.parent(e);(t.rank===r||t.minRank<=r&&r<=t.maxRank)&&(s.setNode(e),s.setParent(e,i||a),n[o](e).forEach(t=>{let r=t.v===e?t.w:t.v,o=s.edge(r,e),i=void 0!==o?o.weight:0;s.setEdge(r,e,{weight:n.edge(t).weight+i})}),Object.hasOwn(t,"minRank")&&s.setNode(e,{borderLeft:t.borderLeft[r],borderRight:t.borderRight[r]}))}),s}}function Rn(){if(qt)return Yt;qt=1;let e=function(){if(Tt)return Mt;Tt=1;let e=xn();return Mt=function(t){let n={},r=t.nodes().filter(e=>!t.children(e).length),o=r.map(e=>t.node(e).rank),i=e.applyWithChunking(Math.max,o),a=e.range(i+1).map(()=>[]);return r.sort((e,n)=>t.node(e).rank-t.node(n).rank).forEach(function e(r){if(n[r])return;n[r]=!0;let o=t.node(r);a[o.rank].push(r),t.successors(r).forEach(e)}),a}}(),t=function(){if(At)return St;At=1;let e=xn().zipObject;function t(t,n,r){let o=e(r,r.map((e,t)=>t)),i=n.flatMap(e=>t.outEdges(e).map(e=>({pos:o[e.w],weight:t.edge(e).weight})).sort((e,t)=>e.pos-t.pos)),a=1;for(;a<r.length;)a<<=1;let s=2*a-1;a-=1;let u=new Array(s).fill(0),c=0;return i.forEach(e=>{let t=e.pos+a;u[t]+=e.weight;let n=0;for(;t>0;)t%2&&(n+=u[t+1]),t=t-1>>1,u[t]+=e.weight;c+=e.weight*n}),c}return St=function(e,n){let r=0;for(let o=1;o<n.length;++o)r+=t(e,n[o-1],n[o]);return r}}(),n=Dn(),r=Fn(),o=Wt?Ut:(Wt=1,Ut=function(e,t,n){let r,o={};n.forEach(n=>{let i,a,s=e.parent(n);for(;s;){if(i=e.parent(s),i?(a=o[i],o[i]=s):(a=r,r=s),a&&a!==s)return void t.setEdge(a,s);s=i}})}),i=kn().Graph,a=xn();function s(e,t,n){const o=/* @__PURE__ */new Map,i=(e,t)=>{o.has(e)||o.set(e,[]),o.get(e).push(t)};for(const r of e.nodes()){const t=e.node(r);if("number"==typeof t.rank&&i(t.rank,r),"number"==typeof t.minRank&&"number"==typeof t.maxRank)for(let e=t.minRank;e<=t.maxRank;e++)e!==t.rank&&i(e,r)}return t.map(function(t){return r(e,t,n,o.get(t)||[])})}function u(e,t){let r=new i;e.forEach(function(e){let i=e.graph().root,a=n(e,i,r,t);a.vs.forEach((t,n)=>e.node(t).order=n),o(e,r,a.vs)})}function c(e,t){Object.values(t).forEach(t=>t.forEach((t,n)=>e.node(t).order=n))}return Yt=function n(r,o){if(o&&"function"==typeof o.customOrder)return void o.customOrder(r,n);let i=a.maxRank(r),l=s(r,a.range(1,i+1),"inEdges"),f=s(r,a.range(i-1,-1,-1),"outEdges"),d=e(r);if(c(r,d),o&&o.disableOptimalOrderHeuristic)return;let h,p=Number.POSITIVE_INFINITY;for(let e=0,s=0;s<4;++e,++s){u(e%2?l:f,e%4>=2),d=a.buildLayerMatrix(r);let n=t(r,d);n<p&&(s=0,h=Object.assign({},d),p=n)}c(r,h)},Yt}function zn(){if(Jt)return Ht;Jt=1;let e=kn().Graph,t=xn();function n(e,t){let n={};return t.length&&t.reduce(function(t,r){let i=0,a=0,s=t.length,u=r[r.length-1];return r.forEach((t,c)=>{let l=function(e,t){if(e.node(t).dummy)return e.predecessors(t).find(t=>e.node(t).dummy)}(e,t),f=l?e.node(l).order:s;(l||t===u)&&(r.slice(a,c+1).forEach(t=>{e.predecessors(t).forEach(r=>{let a=e.node(r),s=a.order;!(s<i||f<s)||a.dummy&&e.node(t).dummy||o(n,r,t)})}),a=c+1,i=f)}),r}),n}function r(e,n){let r={};function i(n,i,a,s,u){let c;t.range(i,a).forEach(t=>{c=n[t],e.node(c).dummy&&e.predecessors(c).forEach(t=>{let n=e.node(t);n.dummy&&(n.order<s||n.order>u)&&o(r,t,c)})})}return n.length&&n.reduce(function(t,n){let r,o=-1,a=0;return n.forEach((s,u)=>{if("border"===e.node(s).dummy){let t=e.predecessors(s);t.length&&(r=e.node(t[0]).order,i(n,a,u,o,r),a=u,o=r)}i(n,a,n.length,r,t.length)}),n}),r}function o(e,t,n){if(t>n){let e=t;t=n,n=e}let r=e[t];r||(e[t]=r={}),r[n]=!0}function i(e,t,n){if(t>n){let e=t;t=n,n=e}return!!e[t]&&Object.hasOwn(e[t],n)}function a(e,t,n,r){let o={},a={},s={};return t.forEach(e=>{e.forEach((e,t)=>{o[e]=e,a[e]=e,s[e]=t})}),t.forEach(e=>{let t=-1;e.forEach(e=>{let u=r(e);if(u.length){u=u.sort((e,t)=>s[e]-s[t]);let r=(u.length-1)/2;for(let c=Math.floor(r),l=Math.ceil(r);c<=l;++c){let r=u[c];a[e]===e&&t<s[r]&&!i(n,e,r)&&(a[r]=e,a[e]=o[e]=o[r],t=s[r])}}})}),{root:o,align:a}}function s(t,n,r,o,i){let a={},s=function(t,n,r,o){let i=new e,a=t.graph(),s=function(e,t,n){return(r,o,i)=>{let a,s=r.node(o),u=r.node(i),c=0;if(c+=s.width/2,Object.hasOwn(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":a=-s.width/2;break;case"r":a=s.width/2}if(a&&(c+=n?a:-a),a=0,c+=(s.dummy?t:e)/2,c+=(u.dummy?t:e)/2,c+=u.width/2,Object.hasOwn(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":a=u.width/2;break;case"r":a=-u.width/2}return a&&(c+=n?a:-a),a=0,c}}(a.nodesep,a.edgesep,o);return n.forEach(e=>{let n;e.forEach(e=>{let o=r[e];if(i.setNode(o),n){var a=r[n],u=i.edge(a,o);i.setEdge(a,o,Math.max(s(t,e,n),u||0))}n=e})}),i}(t,n,r,i),u=i?"borderLeft":"borderRight";function c(e,t){let n=s.nodes(),r=n.pop(),o={};for(;r;)o[r]?e(r):(o[r]=!0,n.push(r),n=n.concat(t(r))),r=n.pop()}return c(function(e){a[e]=s.inEdges(e).reduce((e,t)=>Math.max(e,a[t.v]+s.edge(t)),0)},s.predecessors.bind(s)),c(function(e){let n=s.outEdges(e).reduce((e,t)=>Math.min(e,a[t.w]-s.edge(t)),Number.POSITIVE_INFINITY),r=t.node(e);n!==Number.POSITIVE_INFINITY&&r.borderType!==u&&(a[e]=Math.max(a[e],n))},s.successors.bind(s)),Object.keys(o).forEach(e=>a[e]=a[r[e]]),a}function u(e,t){return Object.values(t).reduce((t,n)=>{let r=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;Object.entries(n).forEach(([t,n])=>{let i=function(e,t){return e.node(t).width}(e,t)/2;r=Math.max(n+i,r),o=Math.min(n-i,o)});const i=r-o;return i<t[0]&&(t=[i,n]),t},[Number.POSITIVE_INFINITY,null])[1]}function c(e,n){let r=Object.values(n),o=t.applyWithChunking(Math.min,r),i=t.applyWithChunking(Math.max,r);["u","d"].forEach(r=>{["l","r"].forEach(a=>{let s=r+a,u=e[s];if(u===n)return;let c=Object.values(u),l=o-t.applyWithChunking(Math.min,c);"l"!==a&&(l=i-t.applyWithChunking(Math.max,c)),l&&(e[s]=t.mapValues(u,e=>e+l))})})}function l(e,n){return t.mapValues(e.ul,(t,r)=>{if(n)return e[n.toLowerCase()][r];{let t=Object.values(e).map(e=>e[r]).sort((e,t)=>e-t);return(t[1]+t[2])/2}})}return Ht={positionX:function(e){let o,i=t.buildLayerMatrix(e),f=Object.assign(n(e,i),r(e,i)),d={};["u","d"].forEach(n=>{o="u"===n?i:Object.values(i).reverse(),["l","r"].forEach(r=>{"r"===r&&(o=o.map(e=>Object.values(e).reverse()));let i=("u"===n?e.predecessors:e.successors).bind(e),u=a(e,o,f,i),c=s(e,o,u.root,u.align,"r"===r);"r"===r&&(c=t.mapValues(c,e=>-e)),d[n+r]=c})});let h=u(e,d);return c(d,h),l(d,e.graph().align)},findType1Conflicts:n,findType2Conflicts:r,addConflict:o,hasConflict:i,verticalAlignment:a,horizontalCompaction:s,alignCoordinates:c,findSmallestWidthAlignment:u,balance:l}}function $n(){if(Xt)return Kt;Xt=1;let e=xn(),t=zn().positionX;return Kt=function(n){(function(t){let n=e.buildLayerMatrix(t),r=t.graph().ranksep,o=0;n.forEach(e=>{const n=e.reduce((e,n)=>{const r=t.node(n).height;return e>r?e:r},0);e.forEach(e=>t.node(e).y=o+n/2),o+=n+r})})(n=e.asNonCompoundGraph(n)),Object.entries(t(n)).forEach(([e,t])=>n.node(e).x=t)}}function Gn(){if(Qt)return Zt;Qt=1;let e=Nn(),t=In(),n=Sn(),r=xn().normalizeRanks,o=An(),i=xn().removeEmptyRanks,a=Ln(),s=function(){if(Nt)return xt;Nt=1;let e=xn();function t(t,n,r,o,i,a){let s={width:0,height:0,rank:a,borderType:n},u=i[n][a-1],c=e.addDummyNode(t,"border",s,r);i[n][a]=c,t.setParent(c,o),u&&t.setEdge(u,c,{weight:1})}return xt=function(e){e.children().forEach(function n(r){let o=e.children(r),i=e.node(r);if(o.length&&o.forEach(n),Object.hasOwn(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(let n=i.minRank,o=i.maxRank+1;n<o;++n)t(e,"borderLeft","_bl",r,i,n),t(e,"borderRight","_br",r,i,n)}})}}(),u=Pn(),c=Rn(),l=$n(),f=xn(),d=kn().Graph;Zt=function(j,k){let O=k&&k.debugTiming?f.time:f.notime;O("layout",()=>{let x=O(" buildLayoutGraph",()=>function(e){let t=new d({multigraph:!0,compound:!0}),n=E(e.graph());return t.setGraph(Object.assign({},p,_(n,h),f.pick(n,v))),e.nodes().forEach(n=>{const r=_(E(e.node(n)),g);Object.keys(y).forEach(e=>{void 0===r[e]&&(r[e]=y[e])}),t.setNode(n,r),t.setParent(n,e.parent(n))}),e.edges().forEach(n=>{let r=E(e.edge(n));t.setEdge(n,Object.assign({},b,_(r,m),f.pick(r,w)))}),t}(j));O(" runLayout",()=>function(d,h,p){h(" makeSpaceForEdgeLabels",()=>function(e){let t=e.graph();t.ranksep/=2,e.edges().forEach(n=>{let r=e.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===t.rankdir||"BT"===t.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}(d)),h(" removeSelfEdges",()=>function(e){e.edges().forEach(t=>{if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}(d)),h(" acyclic",()=>e.run(d)),h(" nestingGraph.run",()=>a.run(d)),h(" rank",()=>n(f.asNonCompoundGraph(d))),h(" injectEdgeLabelProxies",()=>function(e){e.edges().forEach(t=>{let n=e.edge(t);if(n.width&&n.height){let n=e.node(t.v),r={rank:(e.node(t.w).rank-n.rank)/2+n.rank,e:t};f.addDummyNode(e,"edge-proxy",r,"_ep")}})}(d)),h(" removeEmptyRanks",()=>i(d)),h(" nestingGraph.cleanup",()=>a.cleanup(d)),h(" normalizeRanks",()=>r(d)),h(" assignRankMinMax",()=>function(e){let t=0;e.nodes().forEach(n=>{let r=e.node(n);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,t=Math.max(t,r.maxRank))}),e.graph().maxRank=t}(d)),h(" removeEdgeLabelProxies",()=>function(e){e.nodes().forEach(t=>{let n=e.node(t);"edge-proxy"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))})}(d)),h(" normalize.run",()=>t.run(d)),h(" parentDummyChains",()=>o(d)),h(" addBorderSegments",()=>s(d)),h(" order",()=>c(d,p)),h(" insertSelfEdges",()=>function(e){var t=f.buildLayerMatrix(e);t.forEach(t=>{var n=0;t.forEach((t,r)=>{var o=e.node(t);o.order=r+n,(o.selfEdges||[]).forEach(t=>{f.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:o.rank,order:r+ ++n,e:t.e,label:t.label},"_se")}),delete o.selfEdges})})}(d)),h(" adjustCoordinateSystem",()=>u.adjust(d)),h(" position",()=>l(d)),h(" positionSelfEdges",()=>function(e){e.nodes().forEach(t=>{var n=e.node(t);if("selfedge"===n.dummy){var r=e.node(n.e.v),o=r.x+r.width/2,i=r.y,a=n.x-o,s=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:o+2*a/3,y:i-s},{x:o+5*a/6,y:i-s},{x:o+a,y:i},{x:o+5*a/6,y:i+s},{x:o+2*a/3,y:i+s}],n.label.x=n.x,n.label.y=n.y}})}(d)),h(" removeBorderNodes",()=>function(e){e.nodes().forEach(t=>{if(e.children(t).length){let n=e.node(t),r=e.node(n.borderTop),o=e.node(n.borderBottom),i=e.node(n.borderLeft[n.borderLeft.length-1]),a=e.node(n.borderRight[n.borderRight.length-1]);n.width=Math.abs(a.x-i.x),n.height=Math.abs(o.y-r.y),n.x=i.x+n.width/2,n.y=r.y+n.height/2}}),e.nodes().forEach(t=>{"border"===e.node(t).dummy&&e.removeNode(t)})}(d)),h(" normalize.undo",()=>t.undo(d)),h(" fixupEdgeLabelCoords",()=>function(e){e.edges().forEach(t=>{let n=e.edge(t);if(Object.hasOwn(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})}(d)),h(" undoCoordinateSystem",()=>u.undo(d)),h(" translateGraph",()=>function(e){let t=Number.POSITIVE_INFINITY,n=0,r=Number.POSITIVE_INFINITY,o=0,i=e.graph(),a=i.marginx||0,s=i.marginy||0;function u(e){let i=e.x,a=e.y,s=e.width,u=e.height;t=Math.min(t,i-s/2),n=Math.max(n,i+s/2),r=Math.min(r,a-u/2),o=Math.max(o,a+u/2)}e.nodes().forEach(t=>u(e.node(t))),e.edges().forEach(t=>{let n=e.edge(t);Object.hasOwn(n,"x")&&u(n)}),t-=a,r-=s,e.nodes().forEach(n=>{let o=e.node(n);o.x-=t,o.y-=r}),e.edges().forEach(n=>{let o=e.edge(n);o.points.forEach(e=>{e.x-=t,e.y-=r}),Object.hasOwn(o,"x")&&(o.x-=t),Object.hasOwn(o,"y")&&(o.y-=r)}),i.width=n-t+a,i.height=o-r+s}(d)),h(" assignNodeIntersects",()=>function(e){e.edges().forEach(t=>{let n,r,o=e.edge(t),i=e.node(t.v),a=e.node(t.w);o.points?(n=o.points[0],r=o.points[o.points.length-1]):(o.points=[],n=a,r=i),o.points.unshift(f.intersectRect(i,n)),o.points.push(f.intersectRect(a,r))})}(d)),h(" reversePoints",()=>function(e){e.edges().forEach(t=>{let n=e.edge(t);n.reversed&&n.points.reverse()})}(d)),h(" acyclic.undo",()=>e.undo(d))}(x,O,k)),O(" updateInputGraph",()=>function(e,t){e.nodes().forEach(n=>{let r=e.node(n),o=t.node(n);r&&(r.x=o.x,r.y=o.y,r.rank=o.rank,t.children(n).length&&(r.width=o.width,r.height=o.height))}),e.edges().forEach(n=>{let r=e.edge(n),o=t.edge(n);r.points=o.points,Object.hasOwn(o,"x")&&(r.x=o.x,r.y=o.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}(j,x))})};let h=["nodesep","edgesep","ranksep","marginx","marginy"],p={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},v=["acyclicer","ranker","rankdir","align"],g=["width","height","rank"],y={width:0,height:0},m=["minlen","weight","width","height","labeloffset"],b={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},w=["labelpos"];function _(e,t){return f.mapValues(f.pick(e,t),Number)}function E(e){var t={};return e&&Object.entries(e).forEach(([e,n])=>{"string"==typeof e&&(e=e.toLowerCase()),t[e]=n}),t}return Zt}function Vn(){if(tn)return en;tn=1;let e=xn(),t=kn().Graph;return en={debugOrdering:function(n){let r=e.buildLayerMatrix(n),o=new t({compound:!0,multigraph:!0}).setGraph({});return n.nodes().forEach(e=>{o.setNode(e,{label:e}),o.setParent(e,"layer"+n.node(e).rank)}),n.edges().forEach(e=>o.setEdge(e.v,e.w,{},e.name)),r.forEach((e,t)=>{let n="layer"+t;o.setNode(n,{rank:"same"}),e.reduce((e,t)=>(o.setEdge(e,t,{style:"invis"}),t))}),o}}}const Un=/* @__PURE__ */un(an?on:(an=1,on={graphlib:kn(),layout:Gn(),debug:Vn(),util:{time:xn().time,notime:xn().notime},version:rn?nn:(rn=1,nn="1.1.8")}));var Wn,Yn,qn,Hn,Jn,Kn,Xn,Zn,Qn,er,tr,nr,rr,or,ir,ar,sr,ur,cr,lr,fr,dr,hr,pr,vr,gr,yr,mr,br,wr,_r,Er,jr,kr,Or,xr,Nr,Ir,Cr,Mr,Tr,Sr,Ar,Lr,Pr,Br,Dr,Fr,Rr,zr,$r,Gr,Vr,Ur,Wr,Yr,qr,Hr,Jr,Kr,Xr,Zr,Qr,eo,to,no,ro,oo,io,ao,so,uo,co,lo,fo,ho,po,vo,go,yo,mo,bo,wo,_o,Eo,jo,ko,Oo,xo,No,Io,Co,Mo,To,So,Ao,Lo,Po,Bo,Do,Fo,Ro,zo,$o,Go,Vo,Uo,Wo;function Yo(){if(Hn)return qn;return Hn=1,qn=function(e,t){return e===t||e!=e&&t!=t}}function qo(){if(Kn)return Jn;Kn=1;var e=Yo();return Jn=function(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return-1}}function Ho(){if(ar)return ir;ar=1;var e=Yn?Wn:(Yn=1,Wn=function(){this.__data__=[],this.size=0}),t=function(){if(Zn)return Xn;Zn=1;var e=qo(),t=Array.prototype.splice;return Xn=function(n){var r=this.__data__,o=e(r,n);return!(o<0||(o==r.length-1?r.pop():t.call(r,o,1),--this.size,0))}}(),n=function(){if(er)return Qn;er=1;var e=qo();return Qn=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]}}(),r=function(){if(nr)return tr;nr=1;var e=qo();return tr=function(t){return e(this.__data__,t)>-1}}(),o=function(){if(or)return rr;or=1;var e=qo();return rr=function(t,n){var r=this.__data__,o=e(r,t);return o<0?(++this.size,r.push([t,n])):r[o][1]=n,this}}();function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,ir=i}function Jo(){if(gr)return vr;gr=1;var e="object"==typeof sn&&sn&&sn.Object===Object&&sn;return vr=e}function Ko(){if(mr)return yr;mr=1;var e=Jo(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return yr=n}function Xo(){if(wr)return br;wr=1;var e=Ko().Symbol;return br=e}function Zo(){if(xr)return Or;xr=1;var e=Xo(),t=function(){if(Er)return _r;Er=1;var e=Xo(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,o=e?e.toStringTag:void 0;return _r=function(e){var t=n.call(e,o),i=e[o];try{e[o]=void 0;var a=!0}catch(u){}var s=r.call(e);return a&&(t?e[o]=i:delete e[o]),s}}(),n=function(){if(kr)return jr;kr=1;var e=Object.prototype.toString;return jr=function(t){return e.call(t)}}(),r=e?e.toStringTag:void 0;return Or=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?t(e):n(e)}}function Qo(){if(Ir)return Nr;return Ir=1,Nr=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}function ei(){if(Mr)return Cr;Mr=1;var e=Zo(),t=Qo();return Cr=function(n){if(!t(n))return!1;var r=e(n);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}}function ti(){if(Lr)return Ar;Lr=1;var e,t=function(){if(Sr)return Tr;Sr=1;var e=Ko()["__core-js_shared__"];return Tr=e}(),n=(e=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"";return Ar=function(e){return!!n&&n in e}}function ni(){if(Br)return Pr;Br=1;var e=Function.prototype.toString;return Pr=function(t){if(null!=t){try{return e.call(t)}catch(n){}try{return t+""}catch(n){}}return""}}function ri(){if(Gr)return $r;Gr=1;var e=function(){if(Fr)return Dr;Fr=1;var e=ei(),t=ti(),n=Qo(),r=ni(),o=/^\[object .+?Constructor\]$/,i=Function.prototype,a=Object.prototype,s=i.toString,u=a.hasOwnProperty,c=RegExp("^"+s.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return Dr=function(i){return!(!n(i)||t(i))&&(e(i)?c:o).test(r(i))}}(),t=zr?Rr:(zr=1,Rr=function(e,t){return null==e?void 0:e[t]});return $r=function(n,r){var o=t(n,r);return e(o)?o:void 0}}function oi(){if(Ur)return Vr;Ur=1;var e=ri()(Ko(),"Map");return Vr=e}function ii(){if(Yr)return Wr;Yr=1;var e=ri()(Object,"create");return Wr=e}function ai(){if(oo)return ro;oo=1;var e=function(){if(Hr)return qr;Hr=1;var e=ii();return qr=function(){this.__data__=e?e(null):{},this.size=0}}(),t=Kr?Jr:(Kr=1,Jr=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}),n=function(){if(Zr)return Xr;Zr=1;var e=ii(),t=Object.prototype.hasOwnProperty;return Xr=function(n){var r=this.__data__;if(e){var o=r[n];return"__lodash_hash_undefined__"===o?void 0:o}return t.call(r,n)?r[n]:void 0}}(),r=function(){if(eo)return Qr;eo=1;var e=ii(),t=Object.prototype.hasOwnProperty;return Qr=function(n){var r=this.__data__;return e?void 0!==r[n]:t.call(r,n)}}(),o=function(){if(no)return to;no=1;var e=ii();return to=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=e&&void 0===n?"__lodash_hash_undefined__":n,this}}();function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,ro=i}function si(){if(lo)return co;lo=1;var e=uo?so:(uo=1,so=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e});return co=function(t,n){var r=t.__data__;return e(n)?r["string"==typeof n?"string":"hash"]:r.map}}function ui(){if(_o)return wo;_o=1;var e=function(){if(ao)return io;ao=1;var e=ai(),t=Ho(),n=oi();return io=function(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}}(),t=function(){if(ho)return fo;ho=1;var e=si();return fo=function(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}}(),n=function(){if(vo)return po;vo=1;var e=si();return po=function(t){return e(this,t).get(t)}}(),r=function(){if(yo)return go;yo=1;var e=si();return go=function(t){return e(this,t).has(t)}}(),o=function(){if(bo)return mo;bo=1;var e=si();return mo=function(t,n){var r=e(this,t),o=r.size;return r.set(t,n),this.size+=r.size==o?0:1,this}}();function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,wo=i}function ci(){if(Oo)return ko;Oo=1;var e=Ho(),t=function(){if(ur)return sr;ur=1;var e=Ho();return sr=function(){this.__data__=new e,this.size=0}}(),n=lr?cr:(lr=1,cr=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}),r=dr?fr:(dr=1,fr=function(e){return this.__data__.get(e)}),o=pr?hr:(pr=1,hr=function(e){return this.__data__.has(e)}),i=function(){if(jo)return Eo;jo=1;var e=Ho(),t=oi(),n=ui();return Eo=function(r,o){var i=this.__data__;if(i instanceof e){var a=i.__data__;if(!t||a.length<199)return a.push([r,o]),this.size=++i.size,this;i=this.__data__=new n(a)}return i.set(r,o),this.size=i.size,this}}();function a(t){var n=this.__data__=new e(t);this.size=n.size}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=o,a.prototype.set=i,ko=a}function li(){if(No)return xo;return No=1,xo=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}}function fi(){if(Co)return Io;Co=1;var e=ri(),t=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch(n){}}();return Io=t}function di(){if(To)return Mo;To=1;var e=fi();return Mo=function(t,n,r){"__proto__"==n&&e?e(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}}function hi(){if(Ao)return So;Ao=1;var e=di(),t=Yo(),n=Object.prototype.hasOwnProperty;return So=function(r,o,i){var a=r[o];n.call(r,o)&&t(a,i)&&(void 0!==i||o in r)||e(r,o,i)}}function pi(){if(Po)return Lo;Po=1;var e=hi(),t=di();return Lo=function(n,r,o,i){var a=!o;o||(o={});for(var s=-1,u=r.length;++s<u;){var c=r[s],l=i?i(o[c],n[c],c,o,n):void 0;void 0===l&&(l=n[c]),a?t(o,c,l):e(o,c,l)}return o}}function vi(){if(Ro)return Fo;return Ro=1,Fo=function(e){return null!=e&&"object"==typeof e}}function gi(){if(Vo)return Go;Vo=1;var e=function(){if($o)return zo;$o=1;var e=Zo(),t=vi();return zo=function(n){return t(n)&&"[object Arguments]"==e(n)}}(),t=vi(),n=Object.prototype,r=n.hasOwnProperty,o=n.propertyIsEnumerable,i=e(/* @__PURE__ */function(){return arguments}())?e:function(e){return t(e)&&r.call(e,"callee")&&!o.call(e,"callee")};return Go=i}function yi(){if(Wo)return Uo;Wo=1;var e=Array.isArray;return Uo=e}var mi,bi,wi,_i,Ei,ji,ki,Oi,xi,Ni,Ii,Ci={exports:{}};function Mi(){return wi||(wi=1,e=Ci,t=Ci.exports,n=Ko(),r=bi?mi:(bi=1,mi=function(){return!1}),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||r,e.exports=s),Ci.exports;var e,t,n,r,o,i,a,s}function Ti(){if(Ei)return _i;Ei=1;var e=/^(?:0|[1-9]\d*)$/;return _i=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}}function Si(){if(ki)return ji;ki=1;return ji=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}function Ai(){if(Ii)return Ni;return Ii=1,Ni=function(e){return function(t){return e(t)}}}var Li,Pi,Bi,Di,Fi,Ri,zi,$i,Gi,Vi,Ui,Wi,Yi,qi,Hi,Ji,Ki,Xi,Zi,Qi,ea,ta,na,ra,oa,ia,aa,sa={exports:{}};function ua(){return Li||(Li=1,e=sa,t=sa.exports,n=Jo(),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(t){}}(),e.exports=a),sa.exports;var e,t,n,r,o,i,a}function ca(){if(Bi)return Pi;Bi=1;var e=function(){if(xi)return Oi;xi=1;var e=Zo(),t=Si(),n=vi(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,Oi=function(o){return n(o)&&t(o.length)&&!!r[e(o)]}}(),t=Ai(),n=ua(),r=n&&n.isTypedArray,o=r?t(r):e;return Pi=o}function la(){if(Fi)return Di;Fi=1;var e=Do?Bo:(Do=1,Bo=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}),t=gi(),n=yi(),r=Mi(),o=Ti(),i=ca(),a=Object.prototype.hasOwnProperty;return Di=function(s,u){var c=n(s),l=!c&&t(s),f=!c&&!l&&r(s),d=!c&&!l&&!f&&i(s),h=c||l||f||d,p=h?e(s.length,String):[],v=p.length;for(var g in s)!u&&!a.call(s,g)||h&&("length"==g||f&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||o(g,v))||p.push(g);return p}}function fa(){if(zi)return Ri;zi=1;var e=Object.prototype;return Ri=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}function da(){if(Gi)return $i;return Gi=1,$i=function(e,t){return function(n){return e(t(n))}}}function ha(){if(Yi)return Wi;Yi=1;var e=fa(),t=function(){if(Ui)return Vi;Ui=1;var e=da()(Object.keys,Object);return Vi=e}(),n=Object.prototype.hasOwnProperty;return Wi=function(r){if(!e(r))return t(r);var o=[];for(var i in Object(r))n.call(r,i)&&"constructor"!=i&&o.push(i);return o}}function pa(){if(Hi)return qi;Hi=1;var e=ei(),t=Si();return qi=function(n){return null!=n&&t(n.length)&&!e(n)}}function va(){if(Ki)return Ji;Ki=1;var e=la(),t=ha(),n=pa();return Ji=function(r){return n(r)?e(r):t(r)}}function ga(){if(na)return ta;na=1;var e=Qo(),t=fa(),n=ea?Qi:(ea=1,Qi=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}),r=Object.prototype.hasOwnProperty;return ta=function(o){if(!e(o))return n(o);var i=t(o),a=[];for(var s in o)("constructor"!=s||!i&&r.call(o,s))&&a.push(s);return a}}function ya(){if(oa)return ra;oa=1;var e=la(),t=ga(),n=pa();return ra=function(r){return n(r)?e(r,!0):t(r)}}var ma,ba,wa,_a,Ea,ja,ka,Oa,xa,Na,Ia,Ca,Ma,Ta,Sa,Aa,La,Pa,Ba,Da,Fa,Ra,za,$a,Ga,Va,Ua,Wa,Ya,qa,Ha,Ja,Ka,Xa,Za,Qa,es,ts,ns,rs,os,is,as,ss,us,cs,ls,fs,ds,hs,ps,vs,gs,ys,ms,bs,ws,_s,Es,js,ks,Os,xs,Ns,Is,Cs,Ms,Ts,Ss,As,Ls,Ps,Bs,Ds,Fs,Rs,zs,$s,Gs,Vs,Us,Ws,Ys,qs,Hs,Js,Ks,Xs,Zs,Qs,eu,tu,nu,ru,ou,iu,au,su,uu,cu,lu,fu,du,hu,pu,vu,gu,yu,mu,bu,wu,_u,Eu,ju,ku,Ou,xu,Nu,Iu,Cu,Mu,Tu,Su,Au,Lu,Pu,Bu,Du,Fu,Ru,zu,$u,Gu,Vu,Uu,Wu,Yu,qu,Hu,Ju,Ku,Xu,Zu,Qu,ec,tc,nc,rc,oc,ic,ac,sc,uc,cc,lc,fc,dc,hc,pc,vc,gc,yc,mc,bc,wc,_c,Ec,jc,kc,Oc,xc,Nc,Ic,Cc,Mc,Tc,Sc,Ac,Lc,Pc,Bc,Dc,Fc,Rc,zc,$c,Gc,Vc,Uc,Wc,Yc,qc,Hc,Jc,Kc,Xc,Zc,Qc,el,tl,nl,rl,ol,il,al,sl,ul,cl,ll,fl,dl,hl,pl,vl,gl,yl,ml,bl,wl,_l,El,jl,kl,Ol,xl,Nl,Il,Cl,Ml,Tl,Sl,Al,Ll,Pl,Bl,Dl,Fl,Rl,zl,$l,Gl,Vl,Ul,Wl,Yl,ql,Hl,Jl,Kl,Xl,Zl,Ql,ef,tf,nf,rf,of,af,sf,uf,cf,lf,ff,df,hf,pf,vf,gf,yf,mf,bf,wf,_f,Ef,jf,kf,Of,xf,Nf,If={exports:{}};function Cf(){if(Ea)return _a;return Ea=1,_a=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}}function Mf(){if(ka)return ja;return ka=1,ja=function(){return[]}}function Tf(){if(xa)return Oa;xa=1;var e=Cf(),t=Mf(),n=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols;return Oa=r?function(t){return null==t?[]:(t=Object(t),e(r(t),function(e){return n.call(t,e)}))}:t}function Sf(){if(Ma)return Ca;return Ma=1,Ca=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}}function Af(){if(Sa)return Ta;Sa=1;var e=da()(Object.getPrototypeOf,Object);return Ta=e}function Lf(){if(La)return Aa;La=1;var e=Sf(),t=Af(),n=Tf(),r=Mf(),o=Object.getOwnPropertySymbols;return Aa=o?function(r){for(var o=[];r;)e(o,n(r)),r=t(r);return o}:r}function Pf(){if(Fa)return Da;Fa=1;var e=Sf(),t=yi();return Da=function(n,r,o){var i=r(n);return t(n)?i:e(i,o(n))}}function Bf(){if(za)return Ra;za=1;var e=Pf(),t=Tf(),n=va();return Ra=function(r){return e(r,n,t)}}function Df(){if(Ha)return qa;Ha=1;var e=ri()(Ko(),"Set");return qa=e}function Ff(){if(Za)return Xa;Za=1;var e=function(){if(Ua)return Va;Ua=1;var e=ri()(Ko(),"DataView");return Va=e}(),t=oi(),n=function(){if(Ya)return Wa;Ya=1;var e=ri()(Ko(),"Promise");return Wa=e}(),r=Df(),o=function(){if(Ka)return Ja;Ka=1;var e=ri()(Ko(),"WeakMap");return Ja=e}(),i=Zo(),a=ni(),s="[object Map]",u="[object Promise]",c="[object Set]",l="[object WeakMap]",f="[object DataView]",d=a(e),h=a(t),p=a(n),v=a(r),g=a(o),y=i;return(e&&y(new e(new ArrayBuffer(1)))!=f||t&&y(new t)!=s||n&&y(n.resolve())!=u||r&&y(new r)!=c||o&&y(new o)!=l)&&(y=function(e){var t=i(e),n="[object Object]"==t?e.constructor:void 0,r=n?a(n):"";if(r)switch(r){case d:return f;case h:return s;case p:return u;case v:return c;case g:return l}return t}),Xa=y}function Rf(){if(ns)return ts;ns=1;var e=Ko().Uint8Array;return ts=e}function zf(){if(os)return rs;os=1;var e=Rf();return rs=function(t){var n=new t.constructor(t.byteLength);return new e(n).set(new e(t)),n}}function $f(){if(ps)return hs;ps=1;var e=zf(),t=function(){if(as)return is;as=1;var e=zf();return is=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}}(),n=function(){if(us)return ss;us=1;var e=/\w*$/;return ss=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}}(),r=function(){if(ls)return cs;ls=1;var e=Xo(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;return cs=function(e){return n?Object(n.call(e)):{}}}(),o=function(){if(ds)return fs;ds=1;var e=zf();return fs=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}}();return hs=function(i,a,s){var u=i.constructor;switch(a){case"[object ArrayBuffer]":return e(i);case"[object Boolean]":case"[object Date]":return new u(+i);case"[object DataView]":return t(i,s);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return o(i,s);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(i);case"[object RegExp]":return n(i);case"[object Symbol]":return r(i)}}}function Gf(){if(gs)return vs;gs=1;var e=Qo(),t=Object.create;return vs=/* @__PURE__ */function(){function n(){}return function(r){if(!e(r))return{};if(t)return t(r);n.prototype=r;var o=new n;return n.prototype=void 0,o}}()}function Vf(){if(Es)return _s;Es=1;var e=function(){if(ws)return bs;ws=1;var e=Ff(),t=vi();return bs=function(n){return t(n)&&"[object Map]"==e(n)}}(),t=Ai(),n=ua(),r=n&&n.isMap,o=r?t(r):e;return _s=o}function Uf(){if(xs)return Os;xs=1;var e=function(){if(ks)return js;ks=1;var e=Ff(),t=vi();return js=function(n){return t(n)&&"[object Set]"==e(n)}}(),t=Ai(),n=ua(),r=n&&n.isSet,o=r?t(r):e;return Os=o}function Wf(){if(Is)return Ns;Is=1;var e,t,n,r,o,i,a,s=ci(),u=li(),c=hi(),l=function(){if(Zi)return Xi;Zi=1;var e=pi(),t=va();return Xi=function(n,r){return n&&e(r,t(r),n)}}(),f=function(){if(aa)return ia;aa=1;var e=pi(),t=ya();return ia=function(n,r){return n&&e(r,t(r),n)}}(),d=(ma||(ma=1,e=If,t=If.exports,n=Ko(),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r?n.Buffer:void 0,a=i?i.allocUnsafe:void 0,e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}),If.exports),h=wa?ba:(wa=1,ba=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}),p=function(){if(Ia)return Na;Ia=1;var e=pi(),t=Tf();return Na=function(n,r){return e(n,t(n),r)}}(),v=function(){if(Ba)return Pa;Ba=1;var e=pi(),t=Lf();return Pa=function(n,r){return e(n,t(n),r)}}(),g=Bf(),y=function(){if(Ga)return $a;Ga=1;var e=Pf(),t=Lf(),n=ya();return $a=function(r){return e(r,n,t)}}(),m=Ff(),b=function(){if(es)return Qa;es=1;var e=Object.prototype.hasOwnProperty;return Qa=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}}(),w=$f(),_=function(){if(ms)return ys;ms=1;var e=Gf(),t=Af(),n=fa();return ys=function(r){return"function"!=typeof r.constructor||n(r)?{}:e(t(r))}}(),E=yi(),j=Mi(),k=Vf(),O=Qo(),x=Uf(),N=va(),I=ya(),C="[object Arguments]",M="[object Function]",T="[object Object]",S={};return S[C]=S["[object Array]"]=S["[object ArrayBuffer]"]=S["[object DataView]"]=S["[object Boolean]"]=S["[object Date]"]=S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Map]"]=S["[object Number]"]=S[T]=S["[object RegExp]"]=S["[object Set]"]=S["[object String]"]=S["[object Symbol]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S["[object Error]"]=S[M]=S["[object WeakMap]"]=!1,Ns=function e(t,n,r,o,i,a){var A,L=1&n,P=2&n,B=4&n;if(r&&(A=i?r(t,o,i,a):r(t)),void 0!==A)return A;if(!O(t))return t;var D=E(t);if(D){if(A=b(t),!L)return h(t,A)}else{var F=m(t),R=F==M||"[object GeneratorFunction]"==F;if(j(t))return d(t,L);if(F==T||F==C||R&&!i){if(A=P||R?{}:_(t),!L)return P?v(t,f(A,t)):p(t,l(A,t))}else{if(!S[F])return i?t:{};A=w(t,F,L)}}a||(a=new s);var z=a.get(t);if(z)return z;a.set(t,A),x(t)?t.forEach(function(o){A.add(e(o,n,r,o,t,a))}):k(t)&&t.forEach(function(o,i){A.set(i,e(o,n,r,i,t,a))});var $=D?void 0:(B?P?y:g:P?I:N)(t);return u($||t,function(o,i){$&&(o=t[i=o]),c(A,i,e(o,n,r,i,t,a))}),A},Ns}function Yf(){if(Ms)return Cs;Ms=1;var e=Wf();return Cs=function(t){return e(t,4)}}function qf(){if(Ss)return Ts;return Ss=1,Ts=function(e){return function(){return e}}}function Hf(){if(Bs)return Ps;Bs=1;var e=(Ls?As:(Ls=1,As=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++o];if(!1===n(i[u],u,i))break}return t}}))();return Ps=e}function Jf(){if(Fs)return Ds;Fs=1;var e=Hf(),t=va();return Ds=function(n,r){return n&&e(n,r,t)}}function Kf(){if(Gs)return $s;Gs=1;var e=Jf(),t=function(){if(zs)return Rs;zs=1;var e=pa();return Rs=function(t,n){return function(r,o){if(null==r)return r;if(!e(r))return t(r,o);for(var i=r.length,a=n?i:-1,s=Object(r);(n?a--:++a<i)&&!1!==o(s[a],a,s););return r}}}()(e);return $s=t}function Xf(){if(Us)return Vs;return Us=1,Vs=function(e){return e}}function Zf(){if(Hs)return qs;Hs=1;var e=li(),t=Kf(),n=function(){if(Ys)return Ws;Ys=1;var e=Xf();return Ws=function(t){return"function"==typeof t?t:e}}(),r=yi();return qs=function(o,i){return(r(o)?e:t)(o,n(i))}}function Qf(){if(ou)return ru;ou=1;var e=ui(),t=eu?Qs:(eu=1,Qs=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}),n=nu?tu:(nu=1,tu=function(e){return this.__data__.has(e)});function r(t){var n=-1,r=null==t?0:t.length;for(this.__data__=new e;++n<r;)this.add(t[n])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,ru=r}function ed(){if(uu)return su;return uu=1,su=function(e,t){return e.has(t)}}function td(){if(lu)return cu;lu=1;var e=Qf(),t=au?iu:(au=1,iu=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}),n=ed();return cu=function(r,o,i,a,s,u){var c=1&i,l=r.length,f=o.length;if(l!=f&&!(c&&f>l))return!1;var d=u.get(r),h=u.get(o);if(d&&h)return d==o&&h==r;var p=-1,v=!0,g=2&i?new e:void 0;for(u.set(r,o),u.set(o,r);++p<l;){var y=r[p],m=o[p];if(a)var b=c?a(m,y,p,o,r,u):a(y,m,p,r,o,u);if(void 0!==b){if(b)continue;v=!1;break}if(g){if(!t(o,function(e,t){if(!n(g,t)&&(y===e||s(y,e,i,a,u)))return g.push(t)})){v=!1;break}}else if(y!==m&&!s(y,m,i,a,u)){v=!1;break}}return u.delete(r),u.delete(o),v}}function nd(){if(pu)return hu;return pu=1,hu=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}}function rd(){if(gu)return vu;gu=1;var e=Xo(),t=Rf(),n=Yo(),r=td(),o=du?fu:(du=1,fu=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}),i=nd(),a=e?e.prototype:void 0,s=a?a.valueOf:void 0;return vu=function(e,a,u,c,l,f,d){switch(u){case"[object DataView]":if(e.byteLength!=a.byteLength||e.byteOffset!=a.byteOffset)return!1;e=e.buffer,a=a.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=a.byteLength||!f(new t(e),new t(a)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+e,+a);case"[object Error]":return e.name==a.name&&e.message==a.message;case"[object RegExp]":case"[object String]":return e==a+"";case"[object Map]":var h=o;case"[object Set]":var p=1&c;if(h||(h=i),e.size!=a.size&&!p)return!1;var v=d.get(e);if(v)return v==a;c|=2,d.set(e,a);var g=r(h(e),h(a),c,l,f,d);return d.delete(e),g;case"[object Symbol]":if(s)return s.call(e)==s.call(a)}return!1}}function od(){if(wu)return bu;wu=1;var e=ci(),t=td(),n=rd(),r=function(){if(mu)return yu;mu=1;var e=Bf(),t=Object.prototype.hasOwnProperty;return yu=function(n,r,o,i,a,s){var u=1&o,c=e(n),l=c.length;if(l!=e(r).length&&!u)return!1;for(var f=l;f--;){var d=c[f];if(!(u?d in r:t.call(r,d)))return!1}var h=s.get(n),p=s.get(r);if(h&&p)return h==r&&p==n;var v=!0;s.set(n,r),s.set(r,n);for(var g=u;++f<l;){var y=n[d=c[f]],m=r[d];if(i)var b=u?i(m,y,d,r,n,s):i(y,m,d,n,r,s);if(!(void 0===b?y===m||a(y,m,o,i,s):b)){v=!1;break}g||(g="constructor"==d)}if(v&&!g){var w=n.constructor,_=r.constructor;w==_||!("constructor"in n)||!("constructor"in r)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(v=!1)}return s.delete(n),s.delete(r),v}}(),o=Ff(),i=yi(),a=Mi(),s=ca(),u="[object Arguments]",c="[object Array]",l="[object Object]",f=Object.prototype.hasOwnProperty;return bu=function(d,h,p,v,g,y){var m=i(d),b=i(h),w=m?c:o(d),_=b?c:o(h),E=(w=w==u?l:w)==l,j=(_=_==u?l:_)==l,k=w==_;if(k&&a(d)){if(!a(h))return!1;m=!0,E=!1}if(k&&!E)return y||(y=new e),m||s(d)?t(d,h,p,v,g,y):n(d,h,w,p,v,g,y);if(!(1&p)){var O=E&&f.call(d,"__wrapped__"),x=j&&f.call(h,"__wrapped__");if(O||x){var N=O?d.value():d,I=x?h.value():h;return y||(y=new e),g(N,I,p,v,y)}}return!!k&&(y||(y=new e),r(d,h,p,v,g,y))}}function id(){if(Eu)return _u;Eu=1;var e=od(),t=vi();return _u=function n(r,o,i,a,s){return r===o||(null==r||null==o||!t(r)&&!t(o)?r!=r&&o!=o:e(r,o,i,a,n,s))},_u}function ad(){if(xu)return Ou;xu=1;var e=Qo();return Ou=function(t){return t==t&&!e(t)}}function sd(){if(Mu)return Cu;return Mu=1,Cu=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}}function ud(){if(Su)return Tu;Su=1;var e=function(){if(ku)return ju;ku=1;var e=ci(),t=id();return ju=function(n,r,o,i){var a=o.length,s=a,u=!i;if(null==n)return!s;for(n=Object(n);a--;){var c=o[a];if(u&&c[2]?c[1]!==n[c[0]]:!(c[0]in n))return!1}for(;++a<s;){var l=(c=o[a])[0],f=n[l],d=c[1];if(u&&c[2]){if(void 0===f&&!(l in n))return!1}else{var h=new e;if(i)var p=i(f,d,l,n,r,h);if(!(void 0===p?t(d,f,3,i,h):p))return!1}}return!0}}(),t=function(){if(Iu)return Nu;Iu=1;var e=ad(),t=va();return Nu=function(n){for(var r=t(n),o=r.length;o--;){var i=r[o],a=n[i];r[o]=[i,a,e(a)]}return r}}(),n=sd();return Tu=function(r){var o=t(r);return 1==o.length&&o[0][2]?n(o[0][0],o[0][1]):function(t){return t===r||e(t,r,o)}}}function cd(){if(Lu)return Au;Lu=1;var e=Zo(),t=vi();return Au=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}}function ld(){if(Bu)return Pu;Bu=1;var e=yi(),t=cd(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return Pu=function(o,i){if(e(o))return!1;var a=typeof o;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=o&&!t(o))||(r.test(o)||!n.test(o)||null!=i&&o in Object(i))}}function fd(){if(zu)return Ru;zu=1;var e=function(){if(Fu)return Du;Fu=1;var e=ui();function t(n,r){if("function"!=typeof n||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var o=function(){var e=arguments,t=r?r.apply(this,e):e[0],i=o.cache;if(i.has(t))return i.get(t);var a=n.apply(this,e);return o.cache=i.set(t,a)||i,a};return o.cache=new(t.Cache||e),o}return t.Cache=e,Du=t}();return Ru=function(t){var n=e(t,function(e){return 500===r.size&&r.clear(),e}),r=n.cache;return n}}function dd(){if(Uu)return Vu;return Uu=1,Vu=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}}function hd(){if(Hu)return qu;Hu=1;var e=function(){if(Yu)return Wu;Yu=1;var e=Xo(),t=dd(),n=yi(),r=cd(),o=e?e.prototype:void 0,i=o?o.toString:void 0;return Wu=function e(o){if("string"==typeof o)return o;if(n(o))return t(o,e)+"";if(r(o))return i?i.call(o):"";var a=o+"";return"0"==a&&1/o==-1/0?"-0":a},Wu}();return qu=function(t){return null==t?"":e(t)}}function pd(){if(Ku)return Ju;Ku=1;var e=yi(),t=ld(),n=function(){if(Gu)return $u;Gu=1;var e=fd(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(t,function(e,t,o,i){r.push(o?i.replace(n,"$1"):t||e)}),r});return $u=r}(),r=hd();return Ju=function(o,i){return e(o)?o:t(o,i)?[o]:n(r(o))}}function vd(){if(Zu)return Xu;Zu=1;var e=cd();return Xu=function(t){if("string"==typeof t||e(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}}function gd(){if(ec)return Qu;ec=1;var e=pd(),t=vd();return Qu=function(n,r){for(var o=0,i=(r=e(r,n)).length;null!=n&&o<i;)n=n[t(r[o++])];return o&&o==i?n:void 0}}function yd(){if(ac)return ic;ac=1;var e=pd(),t=gi(),n=yi(),r=Ti(),o=Si(),i=vd();return ic=function(a,s,u){for(var c=-1,l=(s=e(s,a)).length,f=!1;++c<l;){var d=i(s[c]);if(!(f=null!=a&&u(a,d)))break;a=a[d]}return f||++c!=l?f:!!(l=null==a?0:a.length)&&o(l)&&r(d,l)&&(n(a)||t(a))}}function md(){if(uc)return sc;uc=1;var e=oc?rc:(oc=1,rc=function(e,t){return null!=e&&t in Object(e)}),t=yd();return sc=function(n,r){return null!=n&&t(n,r,e)}}function bd(){if(lc)return cc;lc=1;var e=id(),t=function(){if(nc)return tc;nc=1;var e=gd();return tc=function(t,n,r){var o=null==t?void 0:e(t,n);return void 0===o?r:o}}(),n=md(),r=ld(),o=ad(),i=sd(),a=vd();return cc=function(s,u){return r(s)&&o(u)?i(a(s),u):function(r){var o=t(r,s);return void 0===o&&o===u?n(r,s):e(u,o,3)}}}function wd(){if(dc)return fc;return dc=1,fc=function(e){return function(t){return null==t?void 0:t[e]}}}function _d(){if(gc)return vc;gc=1;var e=wd(),t=function(){if(pc)return hc;pc=1;var e=gd();return hc=function(t){return function(n){return e(n,t)}}}(),n=ld(),r=vd();return vc=function(o){return n(o)?e(r(o)):t(o)}}function Ed(){if(mc)return yc;mc=1;var e=ud(),t=bd(),n=Xf(),r=yi(),o=_d();return yc=function(i){return"function"==typeof i?i:null==i?n:"object"==typeof i?r(i)?t(i[0],i[1]):e(i):o(i)}}function jd(){if(wc)return bc;wc=1;var e=Cf(),t=function(){if(Zs)return Xs;Zs=1;var e=Kf();return Xs=function(t,n){var r=[];return e(t,function(e,t,o){n(e,t,o)&&r.push(e)}),r}}(),n=Ed(),r=yi();return bc=function(o,i){return(r(o)?e:t)(o,n(i,3))}}function kd(){if(kc)return jc;kc=1;var e=function(){if(Ec)return _c;Ec=1;var e=Object.prototype.hasOwnProperty;return _c=function(t,n){return null!=t&&e.call(t,n)}}(),t=yd();return jc=function(n,r){return null!=n&&t(n,r,e)}}function Od(){if(xc)return Oc;xc=1;var e=ha(),t=Ff(),n=gi(),r=yi(),o=pa(),i=Mi(),a=fa(),s=ca(),u=Object.prototype.hasOwnProperty;return Oc=function(c){if(null==c)return!0;if(o(c)&&(r(c)||"string"==typeof c||"function"==typeof c.splice||i(c)||s(c)||n(c)))return!c.length;var l=t(c);if("[object Map]"==l||"[object Set]"==l)return!c.size;if(a(c))return!e(c).length;for(var f in c)if(u.call(c,f))return!1;return!0}}function xd(){if(Ic)return Nc;return Ic=1,Nc=function(e){return void 0===e}}function Nd(){if(Sc)return Tc;Sc=1;var e=dd(),t=Ed(),n=function(){if(Mc)return Cc;Mc=1;var e=Kf(),t=pa();return Cc=function(n,r){var o=-1,i=t(n)?Array(n.length):[];return e(n,function(e,t,n){i[++o]=r(e,t,n)}),i}}(),r=yi();return Tc=function(o,i){return(r(o)?e:n)(o,t(i,3))}}function Id(){if(Fc)return Dc;Fc=1;var e=Lc?Ac:(Lc=1,Ac=function(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}),t=Kf(),n=Ed(),r=Bc?Pc:(Bc=1,Pc=function(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}),o=yi();return Dc=function(i,a,s){var u=o(i)?e:r,c=arguments.length<3;return u(i,n(a,4),s,c,t)},Dc}function Cd(){if(Hc)return qc;Hc=1;var e=function(){if(Gc)return $c;Gc=1;var e=wd()("length");return $c=e}(),t=function(){if(Uc)return Vc;Uc=1;var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");return Vc=function(t){return e.test(t)}}(),n=function(){if(Yc)return Wc;Yc=1;var e="\\ud800-\\udfff",t="["+e+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",o="[^"+e+"]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+n+"|"+r+")?",u="[\\ufe0e\\ufe0f]?",c=u+s+"(?:\\u200d(?:"+[o,i,a].join("|")+")"+u+s+")*",l="(?:"+[o+n+"?",n,i,a,t].join("|")+")",f=RegExp(r+"(?="+r+")|"+l+c,"g");return Wc=function(e){for(var t=f.lastIndex=0;f.test(e);)++t;return t}}();return qc=function(r){return t(r)?n(r):e(r)}}function Md(){if(Kc)return Jc;Kc=1;var e=ha(),t=Ff(),n=pa(),r=function(){if(zc)return Rc;zc=1;var e=Zo(),t=yi(),n=vi();return Rc=function(r){return"string"==typeof r||!t(r)&&n(r)&&"[object String]"==e(r)}}(),o=Cd();return Jc=function(i){if(null==i)return 0;if(n(i))return r(i)?o(i):i.length;var a=t(i);return"[object Map]"==a||"[object Set]"==a?i.size:e(i).length}}function Td(){if(Zc)return Xc;Zc=1;var e=li(),t=Gf(),n=Jf(),r=Ed(),o=Af(),i=yi(),a=Mi(),s=ei(),u=Qo(),c=ca();return Xc=function(l,f,d){var h=i(l),p=h||a(l)||c(l);if(f=r(f,4),null==d){var v=l&&l.constructor;d=p?h?new v:[]:u(l)&&s(v)?t(o(l)):{}}return(p?e:n)(l,function(e,t,n){return f(d,e,t,n)}),d}}function Sd(){if(nl)return tl;nl=1;var e=Sf(),t=function(){if(el)return Qc;el=1;var e=Xo(),t=gi(),n=yi(),r=e?e.isConcatSpreadable:void 0;return Qc=function(e){return n(e)||t(e)||!!(r&&e&&e[r])}}();return tl=function n(r,o,i,a,s){var u=-1,c=r.length;for(i||(i=t),s||(s=[]);++u<c;){var l=r[u];o>0&&i(l)?o>1?n(l,o-1,i,a,s):e(s,l):a||(s[s.length]=l)}return s},tl}function Ad(){if(al)return il;al=1;var e=ol?rl:(ol=1,rl=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}),t=Math.max;return il=function(n,r,o){return r=t(void 0===r?n.length-1:r,0),function(){for(var i=arguments,a=-1,s=t(i.length-r,0),u=Array(s);++a<s;)u[a]=i[r+a];a=-1;for(var c=Array(r+1);++a<r;)c[a]=i[a];return c[r]=o(u),e(n,this,c)}},il}function Ld(){if(dl)return fl;dl=1;var e=function(){if(ul)return sl;ul=1;var e=qf(),t=fi(),n=Xf();return sl=t?function(n,r){return t(n,"toString",{configurable:!0,enumerable:!1,value:e(r),writable:!0})}:n}(),t=function(){if(ll)return cl;ll=1;var e=Date.now;return cl=function(t){var n=0,r=0;return function(){var o=e(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}},cl}(),n=t(e);return fl=n}function Pd(){if(El)return _l;El=1;var e=gl?vl:(gl=1,vl=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}),t=ml?yl:(ml=1,yl=function(e){return e!=e}),n=wl?bl:(wl=1,bl=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1});return _l=function(r,o,i){return o==o?n(r,o,i):e(r,t,i)}}function Bd(){if(Ml)return Cl;Ml=1;var e=Df(),t=Il?Nl:(Il=1,Nl=function(){}),n=nd(),r=e&&1/n(new e([,-0]))[1]==1/0?function(t){return new e(t)}:t;return Cl=r}function Dd(){if(Sl)return Tl;Sl=1;var e=Qf(),t=function(){if(kl)return jl;kl=1;var e=Pd();return jl=function(t,n){return!(null==t||!t.length)&&e(t,n,0)>-1}}(),n=xl?Ol:(xl=1,Ol=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}),r=ed(),o=Bd(),i=nd();return Tl=function(a,s,u){var c=-1,l=t,f=a.length,d=!0,h=[],p=h;if(u)d=!1,l=n;else if(f>=200){var v=s?null:o(a);if(v)return i(v);d=!1,l=r,p=new e}else p=s?[]:h;e:for(;++c<f;){var g=a[c],y=s?s(g):g;if(g=u||0!==g?g:0,d&&y==y){for(var m=p.length;m--;)if(p[m]===y)continue e;s&&p.push(y),h.push(g)}else l(p,y,u)||(p!==h&&p.push(y),h.push(g))}return h}}function Fd(){if(Bl)return Pl;Bl=1;var e=Sd(),t=function(){if(pl)return hl;pl=1;var e=Xf(),t=Ad(),n=Ld();return hl=function(r,o){return n(t(r,o,e),r+"")}}(),n=Dd(),r=function(){if(Ll)return Al;Ll=1;var e=pa(),t=vi();return Al=function(n){return t(n)&&e(n)}}(),o=t(function(t){return n(e(t,1,r,!0))});return Pl=o}function Rd(){if(zl)return Rl;zl=1;var e=function(){if(Fl)return Dl;Fl=1;var e=dd();return Dl=function(t,n){return e(n,function(e){return t[e]})}}(),t=va();return Rl=function(n){return null==n?[]:e(n,t(n))}}function zd(){if(Gl)return $l;var e;Gl=1;try{e={clone:Yf(),constant:qf(),each:Ks?Js:(Ks=1,Js=Zf()),filter:jd(),has:kd(),isArray:yi(),isEmpty:Od(),isFunction:ei(),isUndefined:xd(),keys:va(),map:Nd(),reduce:Id(),size:Md(),transform:Td(),union:Fd(),values:Rd()}}catch(t){}return e||(e=window._),$l=e}function $d(){if(Ul)return Vl;Ul=1;var e=zd();Vl=n;var t="\0";function n(n){this._isDirected=!e.has(n,"directed")||n.directed,this._isMultigraph=!!e.has(n,"multigraph")&&n.multigraph,this._isCompound=!!e.has(n,"compound")&&n.compound,this._label=void 0,this._defaultNodeLabelFn=e.constant(void 0),this._defaultEdgeLabelFn=e.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[t]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function r(e,t){e[t]?e[t]++:e[t]=1}function o(e,t){--e[t]||delete e[t]}function i(t,n,r,o){var i=""+n,a=""+r;if(!t&&i>a){var s=i;i=a,a=s}return i+""+a+""+(e.isUndefined(o)?"\0":o)}function a(e,t){return i(e,t.v,t.w,t.name)}return n.prototype._nodeCount=0,n.prototype._edgeCount=0,n.prototype.isDirected=function(){return this._isDirected},n.prototype.isMultigraph=function(){return this._isMultigraph},n.prototype.isCompound=function(){return this._isCompound},n.prototype.setGraph=function(e){return this._label=e,this},n.prototype.graph=function(){return this._label},n.prototype.setDefaultNodeLabel=function(t){return e.isFunction(t)||(t=e.constant(t)),this._defaultNodeLabelFn=t,this},n.prototype.nodeCount=function(){return this._nodeCount},n.prototype.nodes=function(){return e.keys(this._nodes)},n.prototype.sources=function(){var t=this;return e.filter(this.nodes(),function(n){return e.isEmpty(t._in[n])})},n.prototype.sinks=function(){var t=this;return e.filter(this.nodes(),function(n){return e.isEmpty(t._out[n])})},n.prototype.setNodes=function(t,n){var r=arguments,o=this;return e.each(t,function(e){r.length>1?o.setNode(e,n):o.setNode(e)}),this},n.prototype.setNode=function(n,r){return e.has(this._nodes,n)?(arguments.length>1&&(this._nodes[n]=r),this):(this._nodes[n]=arguments.length>1?r:this._defaultNodeLabelFn(n),this._isCompound&&(this._parent[n]=t,this._children[n]={},this._children[t][n]=!0),this._in[n]={},this._preds[n]={},this._out[n]={},this._sucs[n]={},++this._nodeCount,this)},n.prototype.node=function(e){return this._nodes[e]},n.prototype.hasNode=function(t){return e.has(this._nodes,t)},n.prototype.removeNode=function(t){var n=this;if(e.has(this._nodes,t)){var r=function(e){n.removeEdge(n._edgeObjs[e])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],e.each(this.children(t),function(e){n.setParent(e)}),delete this._children[t]),e.each(e.keys(this._in[t]),r),delete this._in[t],delete this._preds[t],e.each(e.keys(this._out[t]),r),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},n.prototype.setParent=function(n,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(e.isUndefined(r))r=t;else{for(var o=r+="";!e.isUndefined(o);o=this.parent(o))if(o===n)throw new Error("Setting "+r+" as parent of "+n+" would create a cycle");this.setNode(r)}return this.setNode(n),this._removeFromParentsChildList(n),this._parent[n]=r,this._children[r][n]=!0,this},n.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},n.prototype.parent=function(e){if(this._isCompound){var n=this._parent[e];if(n!==t)return n}},n.prototype.children=function(n){if(e.isUndefined(n)&&(n=t),this._isCompound){var r=this._children[n];if(r)return e.keys(r)}else{if(n===t)return this.nodes();if(this.hasNode(n))return[]}},n.prototype.predecessors=function(t){var n=this._preds[t];if(n)return e.keys(n)},n.prototype.successors=function(t){var n=this._sucs[t];if(n)return e.keys(n)},n.prototype.neighbors=function(t){var n=this.predecessors(t);if(n)return e.union(n,this.successors(t))},n.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},n.prototype.filterNodes=function(t){var n=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});n.setGraph(this.graph());var r=this;e.each(this._nodes,function(e,r){t(r)&&n.setNode(r,e)}),e.each(this._edgeObjs,function(e){n.hasNode(e.v)&&n.hasNode(e.w)&&n.setEdge(e,r.edge(e))});var o={};function i(e){var t=r.parent(e);return void 0===t||n.hasNode(t)?(o[e]=t,t):t in o?o[t]:i(t)}return this._isCompound&&e.each(n.nodes(),function(e){n.setParent(e,i(e))}),n},n.prototype.setDefaultEdgeLabel=function(t){return e.isFunction(t)||(t=e.constant(t)),this._defaultEdgeLabelFn=t,this},n.prototype.edgeCount=function(){return this._edgeCount},n.prototype.edges=function(){return e.values(this._edgeObjs)},n.prototype.setPath=function(t,n){var r=this,o=arguments;return e.reduce(t,function(e,t){return o.length>1?r.setEdge(e,t,n):r.setEdge(e,t),t}),this},n.prototype.setEdge=function(){var t,n,o,a,s=!1,u=arguments[0];"object"==typeof u&&null!==u&&"v"in u?(t=u.v,n=u.w,o=u.name,2===arguments.length&&(a=arguments[1],s=!0)):(t=u,n=arguments[1],o=arguments[3],arguments.length>2&&(a=arguments[2],s=!0)),t=""+t,n=""+n,e.isUndefined(o)||(o=""+o);var c=i(this._isDirected,t,n,o);if(e.has(this._edgeLabels,c))return s&&(this._edgeLabels[c]=a),this;if(!e.isUndefined(o)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(n),this._edgeLabels[c]=s?a:this._defaultEdgeLabelFn(t,n,o);var l=function(e,t,n,r){var o=""+t,i=""+n;if(!e&&o>i){var a=o;o=i,i=a}var s={v:o,w:i};r&&(s.name=r);return s}(this._isDirected,t,n,o);return t=l.v,n=l.w,Object.freeze(l),this._edgeObjs[c]=l,r(this._preds[n],t),r(this._sucs[t],n),this._in[n][c]=l,this._out[t][c]=l,this._edgeCount++,this},n.prototype.edge=function(e,t,n){var r=1===arguments.length?a(this._isDirected,arguments[0]):i(this._isDirected,e,t,n);return this._edgeLabels[r]},n.prototype.hasEdge=function(t,n,r){var o=1===arguments.length?a(this._isDirected,arguments[0]):i(this._isDirected,t,n,r);return e.has(this._edgeLabels,o)},n.prototype.removeEdge=function(e,t,n){var r=1===arguments.length?a(this._isDirected,arguments[0]):i(this._isDirected,e,t,n),s=this._edgeObjs[r];return s&&(e=s.v,t=s.w,delete this._edgeLabels[r],delete this._edgeObjs[r],o(this._preds[t],e),o(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},n.prototype.inEdges=function(t,n){var r=this._in[t];if(r){var o=e.values(r);return n?e.filter(o,function(e){return e.v===n}):o}},n.prototype.outEdges=function(t,n){var r=this._out[t];if(r){var o=e.values(r);return n?e.filter(o,function(e){return e.w===n}):o}},n.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))},Vl}function Gd(){if(Kl)return Jl;Kl=1;var e=zd(),t=$d();function n(t){return e.map(t.nodes(),function(n){var r=t.node(n),o=t.parent(n),i={v:n};return e.isUndefined(r)||(i.value=r),e.isUndefined(o)||(i.parent=o),i})}function r(t){return e.map(t.edges(),function(n){var r=t.edge(n),o={v:n.v,w:n.w};return e.isUndefined(n.name)||(o.name=n.name),e.isUndefined(r)||(o.value=r),o})}return Jl={write:function(t){var o={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:n(t),edges:r(t)};e.isUndefined(t.graph())||(o.value=e.clone(t.graph()));return o},read:function(n){var r=new t(n.options).setGraph(n.value);return e.each(n.nodes,function(e){r.setNode(e.v,e.value),e.parent&&r.setParent(e.v,e.parent)}),e.each(n.edges,function(e){r.setEdge({v:e.v,w:e.w,name:e.name},e.value)}),r}}}function Vd(){if(Zl)return Xl;Zl=1;var e=zd();return Xl=function(t){var n,r={},o=[];function i(o){e.has(r,o)||(r[o]=!0,n.push(o),e.each(t.successors(o),i),e.each(t.predecessors(o),i))}return e.each(t.nodes(),function(e){n=[],i(e),n.length&&o.push(n)}),o}}function Ud(){if(ef)return Ql;ef=1;var e=zd();function t(){this._arr=[],this._keyIndices={}}return Ql=t,t.prototype.size=function(){return this._arr.length},t.prototype.keys=function(){return this._arr.map(function(e){return e.key})},t.prototype.has=function(t){return e.has(this._keyIndices,t)},t.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},t.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},t.prototype.add=function(t,n){var r=this._keyIndices;if(t=String(t),!e.has(r,t)){var o=this._arr,i=o.length;return r[t]=i,o.push({key:t,priority:n}),this._decrease(i),!0}return!1},t.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},t.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)},t.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,o=e;n<t.length&&(o=t[n].priority<t[o].priority?n:o,r<t.length&&(o=t[r].priority<t[o].priority?r:o),o!==e&&(this._swap(e,o),this._heapify(o)))},t.prototype._decrease=function(e){for(var t,n=this._arr,r=n[e].priority;0!==e&&!(n[t=e>>1].priority<r);)this._swap(e,t),e=t},t.prototype._swap=function(e,t){var n=this._arr,r=this._keyIndices,o=n[e],i=n[t];n[e]=i,n[t]=o,r[i.key]=e,r[o.key]=t},Ql}function Wd(){if(nf)return tf;nf=1;var e=zd(),t=Ud();tf=function(e,r,o,i){return function(e,n,r,o){var i,a,s={},u=new t,c=function(e){var t=e.v!==i?e.v:e.w,n=s[t],o=r(e),c=a.distance+o;if(o<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+o);c<n.distance&&(n.distance=c,n.predecessor=i,u.decrease(t,c))};e.nodes().forEach(function(e){var t=e===n?0:Number.POSITIVE_INFINITY;s[e]={distance:t},u.add(e,t)});for(;u.size()>0&&(i=u.removeMin(),(a=s[i]).distance!==Number.POSITIVE_INFINITY);)o(i).forEach(c);return s}(e,String(r),o||n,i||function(t){return e.outEdges(t)})};var n=e.constant(1);return tf}function Yd(){if(of)return rf;of=1;var e=Wd(),t=zd();return rf=function(n,r,o){return t.transform(n.nodes(),function(t,i){t[i]=e(n,i,r,o)},{})}}function qd(){if(sf)return af;sf=1;var e=zd();return af=function(t){var n=0,r=[],o={},i=[];function a(s){var u=o[s]={onStack:!0,lowlink:n,index:n++};if(r.push(s),t.successors(s).forEach(function(t){e.has(o,t)?o[t].onStack&&(u.lowlink=Math.min(u.lowlink,o[t].index)):(a(t),u.lowlink=Math.min(u.lowlink,o[t].lowlink))}),u.lowlink===u.index){var c,l=[];do{c=r.pop(),o[c].onStack=!1,l.push(c)}while(s!==c);i.push(l)}}return t.nodes().forEach(function(t){e.has(o,t)||a(t)}),i}}function Hd(){if(cf)return uf;cf=1;var e=zd(),t=qd();return uf=function(n){return e.filter(t(n),function(e){return e.length>1||1===e.length&&n.hasEdge(e[0],e[0])})}}function Jd(){if(ff)return lf;ff=1;var e=zd();lf=function(e,n,r){return function(e,t,n){var r={},o=e.nodes();return o.forEach(function(e){r[e]={},r[e][e]={distance:0},o.forEach(function(t){e!==t&&(r[e][t]={distance:Number.POSITIVE_INFINITY})}),n(e).forEach(function(n){var o=n.v===e?n.w:n.v,i=t(n);r[e][o]={distance:i,predecessor:e}})}),o.forEach(function(e){var t=r[e];o.forEach(function(n){var i=r[n];o.forEach(function(n){var r=i[e],o=t[n],a=i[n],s=r.distance+o.distance;s<a.distance&&(a.distance=s,a.predecessor=o.predecessor)})})}),r}(e,n||t,r||function(t){return e.outEdges(t)})};var t=e.constant(1);return lf}function Kd(){if(hf)return df;hf=1;var e=zd();function t(t){var r={},o={},i=[];if(e.each(t.sinks(),function a(s){if(e.has(o,s))throw new n;e.has(r,s)||(o[s]=!0,r[s]=!0,e.each(t.predecessors(s),a),delete o[s],i.push(s))}),e.size(r)!==t.nodeCount())throw new n;return i}function n(){}return df=t,t.CycleException=n,n.prototype=new Error,df}function Xd(){if(vf)return pf;vf=1;var e=Kd();return pf=function(t){try{e(t)}catch(n){if(n instanceof e.CycleException)return!1;throw n}return!0}}function Zd(){if(yf)return gf;yf=1;var e=zd();function t(n,r,o,i,a,s){e.has(i,r)||(i[r]=!0,o||s.push(r),e.each(a(r),function(e){t(n,e,o,i,a,s)}),o&&s.push(r))}return gf=function(n,r,o){e.isArray(r)||(r=[r]);var i=(n.isDirected()?n.successors:n.neighbors).bind(n),a=[],s={};return e.each(r,function(e){if(!n.hasNode(e))throw new Error("Graph does not have node: "+e);t(n,e,"post"===o,s,i,a)}),a}}function Qd(){if(bf)return mf;bf=1;var e=Zd();return mf=function(t,n){return e(t,n,"post")}}function eh(){if(_f)return wf;_f=1;var e=Zd();return wf=function(t,n){return e(t,n,"pre")}}function th(){if(jf)return Ef;jf=1;var e=zd(),t=$d(),n=Ud();return Ef=function(r,o){var i,a=new t,s={},u=new n;function c(e){var t=e.v===i?e.w:e.v,n=u.priority(t);if(void 0!==n){var r=o(e);r<n&&(s[t]=i,u.decrease(t,r))}}if(0===r.nodeCount())return a;e.each(r.nodes(),function(e){u.add(e,Number.POSITIVE_INFINITY),a.setNode(e)}),u.decrease(r.nodes()[0],0);var l=!1;for(;u.size()>0;){if(i=u.removeMin(),e.has(s,i))a.setEdge(i,s[i]);else{if(l)throw new Error("Input graph is not connected: "+r);l=!0}r.nodeEdges(i).forEach(c)}return a}}var nh=function(){if(Nf)return xf;Nf=1;var e=Hl?ql:(Hl=1,ql={Graph:$d(),version:Yl?Wl:(Yl=1,Wl="2.1.8")});return xf={Graph:e.Graph,json:Gd(),alg:Of?kf:(Of=1,kf={components:Vd(),dijkstra:Wd(),dijkstraAll:Yd(),findCycles:Hd(),floydWarshall:Jd(),isAcyclic:Xd(),postorder:Qd(),preorder:eh(),prim:th(),tarjan:qd(),topsort:Kd()}),version:e.version}}();function rh(){const{findNode:e}=T(),t=n(new nh.Graph({directed:!0}));return{graph:t,layout:function(n,r,o="TB"){const i=new Un.graphlib.Graph;i.setDefaultEdgeLabel(()=>({})),i.setGraph({rankdir:o});const a="LR"===o;for(const t of n){const n=e(t.id);i.setNode(t.id,{width:n?.dimensions.width||150,height:n?.dimensions.height||50})}for(const e of r)i.setEdge(e.source,e.target);Un.layout(i);const s=new nh.Graph({directed:!0});for(const e of n)s.setNode(e.id);for(const e of r)s.setEdge(e.source,e.target);return t.value=s,n.map(e=>{const t=i.node(e.id);return{...e,targetPosition:a?S.Left:S.Top,sourcePosition:a?S.Right:S.Bottom,position:{x:t.x,y:t.y}}})}}}const oh={};function ih(e){if(oh[e])return oh[e];const t=M(e,null);if(!t){console.warn(`[whitelabel-modules] Missing injected composable: ${e}. Will retry on next call.`);const t=(...t)=>{const n=M(e,null);if(!n)throw new Error(`[whitelabel-modules] ${e} still not provided.`);return oh[e]=n,n(...t)};return oh[e]=t,t}return oh[e]=t,t}const ah=()=>ih("cms-useIntegrationActionBuilder")(),sh=()=>ih("cms-useIntegrations")(),uh=e=>ih("cms-useIntegrationActions")(e),ch=()=>ih("cms-useMediaLibrary")(),lh=()=>ih("cms-useProjectService")(),fh=e=>ih("cms-useModuleBreadcrumbs")(e),dh=()=>ih("cms-useQueryBuilder")(),hh=()=>ih("cms-useModule")(),ph=()=>ih("cms-useModulePermissions")(),vh=()=>ih("cms-useModuleRoute")(),gh=()=>ih("cms-useModuleStorage")(),yh=()=>ih("cms-useLogs")(),mh=()=>ih("cms-useUtilsService")(),bh=()=>ih("cms-useFormBuilder")(),wh=()=>ih("cms-useFlowBuilder")(),_h=()=>ih("cms-useConfirmation")(),Eh=e=>ih("cms-useFirebaseIntegration")(e),jh=()=>ih("cms-useProjectSettings")(),kh=()=>ih("cms-useCustomDialog")(),Oh=()=>ih("cms-useModuleOverlay")(),xh=()=>ih("cms-useRoute")(),Nh=()=>ih("cms-useRouter")(),Ih=()=>ih("cms-useOverlayStack")();export{un as A,me as P,fe as T,rh as a,ah as b,sh as c,uh as d,ch as e,lh as f,fh as g,dh as h,hh as i,ph as j,vh as k,gh as l,yh as m,mh as n,bh as o,wh as p,_h as q,Eh as r,jh as s,kh as t,be as u,Oh as v,xh as w,Nh as x,Ih as y,de as z};
@@ -1 +0,0 @@
1
- var e,t,n,o,r=Object.create,i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e={"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"(){}},function(){return e&&(t=(0,e[a(e)[0]])(e=0)),t}),d=(n={"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e,t){function n(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}u(),t.exports=function(e){if((e=e||{}).circles)return function(e){const t=[],o=[],r=/* @__PURE__ */new Map;if(r.set(Date,e=>new Date(e)),r.set(Map,(e,t)=>new Map(s(Array.from(e),t))),r.set(Set,(e,t)=>new Set(s(Array.from(e),t))),e.constructorHandlers)for(const n of e.constructorHandlers)r.set(n[0],n[1]);let i=null;return e.proto?l:a;function s(e,s){const a=Object.keys(e),l=new Array(a.length);for(let c=0;c<a.length;c++){const u=a[c],d=e[u];if("object"!=typeof d||null===d)l[u]=d;else if(d.constructor!==Object&&(i=r.get(d.constructor)))l[u]=i(d,s);else if(ArrayBuffer.isView(d))l[u]=n(d);else{const e=t.indexOf(d);l[u]=-1!==e?o[e]:s(d)}}return l}function a(e){if("object"!=typeof e||null===e)return e;if(Array.isArray(e))return s(e,a);if(e.constructor!==Object&&(i=r.get(e.constructor)))return i(e,a);const l={};t.push(e),o.push(l);for(const s in e){if(!1===Object.hasOwnProperty.call(e,s))continue;const c=e[s];if("object"!=typeof c||null===c)l[s]=c;else if(c.constructor!==Object&&(i=r.get(c.constructor)))l[s]=i(c,a);else if(ArrayBuffer.isView(c))l[s]=n(c);else{const e=t.indexOf(c);l[s]=-1!==e?o[e]:a(c)}}return t.pop(),o.pop(),l}function l(e){if("object"!=typeof e||null===e)return e;if(Array.isArray(e))return s(e,l);if(e.constructor!==Object&&(i=r.get(e.constructor)))return i(e,l);const a={};t.push(e),o.push(a);for(const s in e){const c=e[s];if("object"!=typeof c||null===c)a[s]=c;else if(c.constructor!==Object&&(i=r.get(c.constructor)))a[s]=i(c,l);else if(ArrayBuffer.isView(c))a[s]=n(c);else{const e=t.indexOf(c);a[s]=-1!==e?o[e]:l(c)}}return t.pop(),o.pop(),a}}(e);const t=/* @__PURE__ */new Map;if(t.set(Date,e=>new Date(e)),t.set(Map,(e,t)=>new Map(r(Array.from(e),t))),t.set(Set,(e,t)=>new Set(r(Array.from(e),t))),e.constructorHandlers)for(const n of e.constructorHandlers)t.set(n[0],n[1]);let o=null;return e.proto?function e(i){if("object"!=typeof i||null===i)return i;if(Array.isArray(i))return r(i,e);if(i.constructor!==Object&&(o=t.get(i.constructor)))return o(i,e);const s={};for(const r in i){const a=i[r];"object"!=typeof a||null===a?s[r]=a:a.constructor!==Object&&(o=t.get(a.constructor))?s[r]=o(a,e):ArrayBuffer.isView(a)?s[r]=n(a):s[r]=e(a)}return s}:function e(i){if("object"!=typeof i||null===i)return i;if(Array.isArray(i))return r(i,e);if(i.constructor!==Object&&(o=t.get(i.constructor)))return o(i,e);const s={};for(const r in i){if(!1===Object.hasOwnProperty.call(i,r))continue;const a=i[r];"object"!=typeof a||null===a?s[r]=a:a.constructor!==Object&&(o=t.get(a.constructor))?s[r]=o(a,e):ArrayBuffer.isView(a)?s[r]=n(a):s[r]=e(a)}return s};function r(e,r){const i=Object.keys(e),s=new Array(i.length);for(let a=0;a<i.length;a++){const l=i[a],c=e[l];"object"!=typeof c||null===c?s[l]=c:c.constructor!==Object&&(o=t.get(c.constructor))?s[l]=o(c,r):ArrayBuffer.isView(c)?s[l]=n(c):s[l]=r(c)}return s}}}},function(){return o||(0,n[a(n)[0]])((o={exports:{}}).exports,o),o.exports});u(),u(),u();var _,p="undefined"!=typeof navigator,f="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:{};void 0!==f.chrome&&f.chrome.devtools,p&&(f.self,f.top),"undefined"!=typeof navigator&&(null==(_=navigator.userAgent)||_.toLowerCase().includes("electron")),u();var h=((e,t,n)=>(n=null!=e?r(l(e)):{},((e,t,n,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of a(t))c.call(e,r)||r===n||i(e,r,{get:()=>t[r],enumerable:!(o=s(t,r))||o.enumerable});return e})(i(n,"default",{value:e,enumerable:!0}),e)))(d()),g=/(?:^|[-_/])(\w)/g;function m(e,t){return t?t.toUpperCase():""}var E=(0,h.default)({circles:!0});const y={trailing:!0};function O(e,t=25,n={}){if(n={...y,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let o,r,i,s,a=[];const l=(t,o)=>(i=async function(e,t,n){return await e.apply(t,n)}(e,t,o),i.finally(()=>{if(i=null,n.trailing&&s&&!r){const e=l(t,s);return s=null,e}}),i);return function(...e){return i?(n.trailing&&(s=e),i):new Promise(i=>{const s=!r&&n.leading;clearTimeout(r),r=setTimeout(()=>{r=null;const t=n.leading?o:l(this,e);for(const e of a)e(t);a=[]},t),s?(o=l(this,e),i(o)):a.push(i)})}}function v(e,t={},n){for(const o in e){const r=e[o],i=n?`${n}:${o}`:o;"object"==typeof r&&null!==r?v(r,t,i):"function"==typeof r&&(t[i]=r)}return t}const T={run:e=>e()},b=void 0!==console.createTask?console.createTask:()=>T;function I(e,t){const n=t.shift(),o=b(n);return e.reduce((e,n)=>e.then(()=>o.run(()=>n(...t))),Promise.resolve())}function k(e,t){const n=t.shift(),o=b(n);return Promise.all(e.map(e=>o.run(()=>e(...t))))}function S(e,t){for(const n of[...e])n(t)}class w{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||"function"!=typeof t)return()=>{};const o=e;let r;for(;this._deprecatedHooks[e];)r=this._deprecatedHooks[e],e=r.to;if(r&&!n.allowDeprecated){let e=r.message;e||(e=`${o} hook has been deprecated`+(r.to?`, please use ${r.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=/* @__PURE__ */new Set),this._deprecatedMessages.has(e)||(console.warn(e),this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let n,o=(...e)=>("function"==typeof n&&n(),n=void 0,o=void 0,t(...e));return n=this.hook(e,o),n}removeHook(e,t){if(this._hooks[e]){const n=this._hooks[e].indexOf(t);-1!==n&&this._hooks[e].splice(n,1),0===this._hooks[e].length&&delete this._hooks[e]}}deprecateHook(e,t){this._deprecatedHooks[e]="string"==typeof t?{to:t}:t;const n=this._hooks[e]||[];delete this._hooks[e];for(const o of n)this.hook(e,o)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=v(e),n=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(const e of n.splice(0,n.length))e()}}removeHooks(e){const t=v(e);for(const n in t)this.removeHook(n,t[n])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...t){return t.unshift(e),this.callHookWith(I,e,...t)}callHookParallel(e,...t){return t.unshift(e),this.callHookWith(k,e,...t)}callHookWith(e,t,...n){const o=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&S(this._before,o);const r=e(t in this._hooks?[...this._hooks[t]]:[],n);return r instanceof Promise?r.finally(()=>{this._after&&o&&S(this._after,o)}):(this._after&&o&&S(this._after,o),r)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(void 0!==this._before){const t=this._before.indexOf(e);-1!==t&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(void 0!==this._after){const t=this._after.indexOf(e);-1!==t&&this._after.splice(t,1)}}}}function V(){return new w}var A,P=Object.create,R=Object.defineProperty,C=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,U=Object.getPrototypeOf,L=Object.prototype.hasOwnProperty,N=(e,t)=>function(){return t||(0,e[D(e)[0]])((t={exports:{}}).exports,t),t.exports},j=((e,t)=>function(){return e&&(t=(0,e[D(e)[0]])(e=0)),t})({"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"(){}}),x=N({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e,t){j(),function(e){var n={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"Ae","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"Oe","Ő":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"Ue","Ű":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"ae","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"oe","ő":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"ue","ű":"u","ý":"y","þ":"th","ÿ":"y","ẞ":"SS","ا":"a","أ":"a","إ":"i","آ":"aa","ؤ":"u","ئ":"e","ء":"a","ب":"b","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ي":"y","ى":"a","ة":"h","ﻻ":"la","ﻷ":"laa","ﻹ":"lai","ﻵ":"laa","گ":"g","چ":"ch","پ":"p","ژ":"zh","ک":"k","ی":"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","က":"k","ခ":"kh","ဂ":"g","ဃ":"ga","င":"ng","စ":"s","ဆ":"sa","ဇ":"z","စျ":"za","ည":"ny","ဋ":"t","ဌ":"ta","ဍ":"d","ဎ":"da","ဏ":"na","တ":"t","ထ":"ta","ဒ":"d","ဓ":"da","န":"n","ပ":"p","ဖ":"pa","ဗ":"b","ဘ":"ba","မ":"m","ယ":"y","ရ":"ya","လ":"l","ဝ":"w","သ":"th","ဟ":"h","ဠ":"la","အ":"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h","ဧ":"e","၏":"-e","ဣ":"i","ဤ":"-i","ဉ":"u","ဦ":"-u","ဩ":"aw","သြော":"aw","ဪ":"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"","č":"c","ď":"d","ě":"e","ň":"n","ř":"r","š":"s","ť":"t","ů":"u","ž":"z","Č":"C","Ď":"D","Ě":"E","Ň":"N","Ř":"R","Š":"S","Ť":"T","Ů":"U","Ž":"Z","ހ":"h","ށ":"sh","ނ":"n","ރ":"r","ބ":"b","ޅ":"lh","ކ":"k","އ":"a","ވ":"v","މ":"m","ފ":"f","ދ":"dh","ތ":"th","ލ":"l","ގ":"g","ޏ":"gn","ސ":"s","ޑ":"d","ޒ":"z","ޓ":"t","ޔ":"y","ޕ":"p","ޖ":"j","ޗ":"ch","ޘ":"tt","ޙ":"hh","ޚ":"kh","ޛ":"th","ޜ":"z","ޝ":"sh","ޞ":"s","ޟ":"d","ޠ":"t","ޡ":"z","ޢ":"a","ޣ":"gh","ޤ":"q","ޥ":"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"p","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","α":"a","β":"v","γ":"g","δ":"d","ε":"e","ζ":"z","η":"i","θ":"th","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"ks","ο":"o","π":"p","ρ":"r","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"o","ά":"a","έ":"e","ί":"i","ό":"o","ύ":"y","ή":"i","ώ":"o","ς":"s","ϊ":"i","ΰ":"y","ϋ":"y","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"I","Θ":"TH","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"KS","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"O","Ά":"A","Έ":"E","Ί":"I","Ό":"O","Ύ":"Y","Ή":"I","Ώ":"O","Ϊ":"I","Ϋ":"Y","ā":"a","ē":"e","ģ":"g","ī":"i","ķ":"k","ļ":"l","ņ":"n","ū":"u","Ā":"A","Ē":"E","Ģ":"G","Ī":"I","Ķ":"k","Ļ":"L","Ņ":"N","Ū":"U","Ќ":"Kj","ќ":"kj","Љ":"Lj","љ":"lj","Њ":"Nj","њ":"nj","Тс":"Ts","тс":"ts","ą":"a","ć":"c","ę":"e","ł":"l","ń":"n","ś":"s","ź":"z","ż":"z","Ą":"A","Ć":"C","Ę":"E","Ł":"L","Ń":"N","Ś":"S","Ź":"Z","Ż":"Z","Є":"Ye","І":"I","Ї":"Yi","Ґ":"G","є":"ye","і":"i","ї":"yi","ґ":"g","ă":"a","Ă":"A","ș":"s","Ș":"S","ț":"t","Ț":"T","ţ":"t","Ţ":"T","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ё":"yo","ж":"zh","з":"z","и":"i","й":"i","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"kh","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ё":"Yo","Ж":"Zh","З":"Z","И":"I","Й":"I","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"Kh","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","ђ":"dj","ј":"j","ћ":"c","џ":"dz","Ђ":"Dj","Ј":"j","Ћ":"C","Џ":"Dz","ľ":"l","ĺ":"l","ŕ":"r","Ľ":"L","Ĺ":"L","Ŕ":"R","ş":"s","Ş":"S","ı":"i","İ":"I","ğ":"g","Ğ":"G","ả":"a","Ả":"A","ẳ":"a","Ẳ":"A","ẩ":"a","Ẩ":"A","đ":"d","Đ":"D","ẹ":"e","Ẹ":"E","ẽ":"e","Ẽ":"E","ẻ":"e","Ẻ":"E","ế":"e","Ế":"E","ề":"e","Ề":"E","ệ":"e","Ệ":"E","ễ":"e","Ễ":"E","ể":"e","Ể":"E","ỏ":"o","ọ":"o","Ọ":"o","ố":"o","Ố":"O","ồ":"o","Ồ":"O","ổ":"o","Ổ":"O","ộ":"o","Ộ":"O","ỗ":"o","Ỗ":"O","ơ":"o","Ơ":"O","ớ":"o","Ớ":"O","ờ":"o","Ờ":"O","ợ":"o","Ợ":"O","ỡ":"o","Ỡ":"O","Ở":"o","ở":"o","ị":"i","Ị":"I","ĩ":"i","Ĩ":"I","ỉ":"i","Ỉ":"i","ủ":"u","Ủ":"U","ụ":"u","Ụ":"U","ũ":"u","Ũ":"U","ư":"u","Ư":"U","ứ":"u","Ứ":"U","ừ":"u","Ừ":"U","ự":"u","Ự":"U","ữ":"u","Ữ":"U","ử":"u","Ử":"ư","ỷ":"y","Ỷ":"y","ỳ":"y","Ỳ":"Y","ỵ":"y","Ỵ":"Y","ỹ":"y","Ỹ":"Y","ạ":"a","Ạ":"A","ấ":"a","Ấ":"A","ầ":"a","Ầ":"A","ậ":"a","Ậ":"A","ẫ":"a","Ẫ":"A","ắ":"a","Ắ":"A","ằ":"a","Ằ":"A","ặ":"a","Ặ":"A","ẵ":"a","Ẵ":"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d","ƒ":"f","™":"(TM)","©":"(C)","œ":"oe","Œ":"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o","º":"o","ª":"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY","元":"CNY","円":"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN","лв":"BGN","៛":"KHR","₡":"CRC","₸":"KZT","ден":"MKD","zł":"PLN","₽":"RUB","₾":"GEL"},o=["်","ް"],r={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},i={en:{},az:{"ç":"c","ə":"e","ğ":"g","ı":"i","ö":"o","ş":"s","ü":"u","Ç":"C","Ə":"E","Ğ":"G","İ":"I","Ö":"O","Ş":"S","Ü":"U"},cs:{"č":"c","ď":"d","ě":"e","ň":"n","ř":"r","š":"s","ť":"t","ů":"u","ž":"z","Č":"C","Ď":"D","Ě":"E","Ň":"N","Ř":"R","Š":"S","Ť":"T","Ů":"U","Ž":"Z"},fi:{"ä":"a","Ä":"A","ö":"o","Ö":"O"},hu:{"ä":"a","Ä":"A","ö":"o","Ö":"O","ü":"u","Ü":"U","ű":"u","Ű":"U"},lt:{"ą":"a","č":"c","ę":"e","ė":"e","į":"i","š":"s","ų":"u","ū":"u","ž":"z","Ą":"A","Č":"C","Ę":"E","Ė":"E","Į":"I","Š":"S","Ų":"U","Ū":"U"},lv:{"ā":"a","č":"c","ē":"e","ģ":"g","ī":"i","ķ":"k","ļ":"l","ņ":"n","š":"s","ū":"u","ž":"z","Ā":"A","Č":"C","Ē":"E","Ģ":"G","Ī":"i","Ķ":"k","Ļ":"L","Ņ":"N","Š":"S","Ū":"u","Ž":"Z"},pl:{"ą":"a","ć":"c","ę":"e","ł":"l","ń":"n","ó":"o","ś":"s","ź":"z","ż":"z","Ą":"A","Ć":"C","Ę":"e","Ł":"L","Ń":"N","Ó":"O","Ś":"S","Ź":"Z","Ż":"Z"},sv:{"ä":"a","Ä":"A","ö":"o","Ö":"O"},sk:{"ä":"a","Ä":"A"},sr:{"љ":"lj","њ":"nj","Љ":"Lj","Њ":"Nj","đ":"dj","Đ":"Dj"},tr:{"Ü":"U","Ö":"O","ü":"u","ö":"o"}},s={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},a=[";","?",":","@","&","=","+","$",",","/"].join(""),l=[";","?",":","@","&","=","+","$",","].join(""),c=[".","!","~","*","'","(",")"].join(""),u=function(e,t){var u,d,f,h,g,m,E,y,O,v,T,b,I,k,S="-",w="",V="",A=!0,P={},R="";if("string"!=typeof e)return"";if("string"==typeof t&&(S=t),E=s.en,y=i.en,"object"==typeof t)for(T in u=t.maintainCase||!1,P=t.custom&&"object"==typeof t.custom?t.custom:P,f=+t.truncate>1&&t.truncate||!1,h=t.uric||!1,g=t.uricNoSlash||!1,m=t.mark||!1,A=!1!==t.symbols&&!1!==t.lang,S=t.separator||S,h&&(R+=a),g&&(R+=l),m&&(R+=c),E=t.lang&&s[t.lang]&&A?s[t.lang]:A?s.en:{},y=t.lang&&i[t.lang]?i[t.lang]:!1===t.lang||!0===t.lang?{}:i.en,t.titleCase&&"number"==typeof t.titleCase.length&&Array.prototype.toString.call(t.titleCase)?(t.titleCase.forEach(function(e){P[e+""]=e+""}),d=!0):d=!!t.titleCase,t.custom&&"number"==typeof t.custom.length&&Array.prototype.toString.call(t.custom)&&t.custom.forEach(function(e){P[e+""]=e+""}),Object.keys(P).forEach(function(t){var n;n=t.length>1?new RegExp("\\b"+_(t)+"\\b","gi"):new RegExp(_(t),"gi"),e=e.replace(n,P[t])}),P)R+=T;for(R=_(R+=S),I=!1,k=!1,v=0,b=(e=e.replace(/(^\s+|\s+$)/g,"")).length;v<b;v++)T=e[v],p(T,P)?I=!1:y[T]?(T=I&&y[T].match(/[A-Za-z0-9]/)?" "+y[T]:y[T],I=!1):T in n?(v+1<b&&o.indexOf(e[v+1])>=0?(V+=T,T=""):!0===k?(T=r[V]+n[T],V=""):T=I&&n[T].match(/[A-Za-z0-9]/)?" "+n[T]:n[T],I=!1,k=!1):T in r?(V+=T,T="",v===b-1&&(T=r[V]),k=!0):!E[T]||h&&-1!==a.indexOf(T)||g&&-1!==l.indexOf(T)?(!0===k?(T=r[V]+T,V="",k=!1):I&&(/[A-Za-z0-9]/.test(T)||w.substr(-1).match(/A-Za-z0-9]/))&&(T=" "+T),I=!1):(T=I||w.substr(-1).match(/[A-Za-z0-9]/)?S+E[T]:E[T],T+=void 0!==e[v+1]&&e[v+1].match(/[A-Za-z0-9]/)?S:"",I=!0),w+=T.replace(new RegExp("[^\\w\\s"+R+"_-]","g"),S);return d&&(w=w.replace(/(\w)(\S*)/g,function(e,t,n){var o=t.toUpperCase()+(null!==n?n:"");return Object.keys(P).indexOf(o.toLowerCase())<0?o:o.toLowerCase()})),w=w.replace(/\s+/g,S).replace(new RegExp("\\"+S+"+","g"),S).replace(new RegExp("(^\\"+S+"+|\\"+S+"+$)","g"),""),f&&w.length>f&&(O=w.charAt(f)===S,w=w.slice(0,f),O||(w=w.slice(0,w.lastIndexOf(S)))),u||d||(w=w.toLowerCase()),w},d=function(e){return function(t){return u(t,e)}},_=function(e){return e.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},p=function(e,t){for(var n in t)if(t[n]===e)return!0};if(void 0!==t&&t.exports)t.exports=u,t.exports.createSlug=d;else if("undefined"!=typeof define&&define.amd)define([],function(){return u});else try{if(e.getSlug||e.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";e.getSlug=u,e.createSlug=d}catch(f){}}(e)}}),M=N({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e,t){j(),t.exports=x()}});function H(e){const t=e.__file;if(t)return(n=function(e,t){let n=e.replace(/^[a-z]:/i,"").replace(/\\/g,"/");n.endsWith(`index${t}`)&&(n=n.replace(`/index${t}`,t));const o=n.lastIndexOf("/"),r=n.substring(o+1);{const e=r.lastIndexOf(t);return r.substring(0,e)}}(t,".vue"))&&`${n}`.replace(g,m);var n}function K(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function z(e){return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__?e.__VUE_DEVTOOLS_NEXT_APP_RECORD__:e.root?e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__:void 0}function B(e){var t,n;const o=null==(t=e.subTree)?void 0:t.type,r=z(e);return!!r&&(null==(n=null==r?void 0:r.types)?void 0:n.Fragment)===o}function G(e){var t,n,o;const r=function(e){var t;const n=e.name||e._componentTag||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||e.__name;return"index"===n&&(null==(t=e.__file)?void 0:t.endsWith("index.vue"))?"":n}((null==e?void 0:e.type)||{});if(r)return r;if((null==e?void 0:e.root)===e)return"Root";for(const s in null==(n=null==(t=e.parent)?void 0:t.type)?void 0:n.components)if(e.parent.type.components[s]===(null==e?void 0:e.type))return K(e,s);for(const s in null==(o=e.appContext)?void 0:o.components)if(e.appContext.components[s]===(null==e?void 0:e.type))return K(e,s);const i=H((null==e?void 0:e.type)||{});return i||"Anonymous Component"}function $(e,t){t=t||`${e.id}:root`;return e.instanceMap.get(t)||e.instanceMap.get(":root")}function F(e){return A||(A=document.createRange()),A.selectNode(e),A.getBoundingClientRect()}function W(e,t){return(!e.top||t.top<e.top)&&(e.top=t.top),(!e.bottom||t.bottom>e.bottom)&&(e.bottom=t.bottom),(!e.left||t.left<e.left)&&(e.left=t.left),(!e.right||t.right>e.right)&&(e.right=t.right),e}j(),j(),j(),j(),j(),j(),j(),j();var Y={top:0,left:0,right:0,bottom:0,width:0,height:0};function q(e){const t=e.subTree.el;return"undefined"==typeof window?Y:B(e)?function(e){const t=function(){const e={top:0,bottom:0,left:0,right:0,get width(){return e.right-e.left},get height(){return e.bottom-e.top}};return e}();if(!e.children)return t;for(let n=0,o=e.children.length;n<o;n++){const o=e.children[n];let r;if(o.component)r=q(o.component);else if(o.el){const e=o.el;1===e.nodeType||e.getBoundingClientRect?r=e.getBoundingClientRect():3===e.nodeType&&e.data.trim()&&(r=F(e))}r&&W(t,r)}return t}(e.subTree):1===(null==t?void 0:t.nodeType)?null==t?void 0:t.getBoundingClientRect():e.subTree.component?q(e.subTree.component):Y}function Z(e){return B(e)?function(e){if(!e.children)return[];const t=[];return e.children.forEach(e=>{e.component?t.push(...Z(e.component)):(null==e?void 0:e.el)&&t.push(e.el)}),t}(e.subTree):e.subTree?[e.subTree.el]:[]}j();var X="__vue-devtools-component-inspector__",J="__vue-devtools-component-inspector__card__",Q="__vue-devtools-component-inspector__name__",ee="__vue-devtools-component-inspector__indicator__",te={display:"block",zIndex:2147483640,position:"fixed",backgroundColor:"#42b88325",border:"1px solid #42b88350",borderRadius:"5px",transition:"all 0.1s ease-in",pointerEvents:"none"},ne={fontFamily:"Arial, Helvetica, sans-serif",padding:"5px 8px",borderRadius:"4px",textAlign:"left",position:"absolute",left:0,color:"#e9e9e9",fontSize:"14px",fontWeight:600,lineHeight:"24px",backgroundColor:"#42b883",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},oe={display:"inline-block",fontWeight:400,fontStyle:"normal",fontSize:"12px",opacity:.7};function re(){return document.getElementById(X)}function ie(e){return{left:Math.round(100*e.left)/100+"px",top:Math.round(100*e.top)/100+"px",width:Math.round(100*e.width)/100+"px",height:Math.round(100*e.height)/100+"px"}}function se(e){var t;const n=document.createElement("div");n.id=null!=(t=e.elementId)?t:X,Object.assign(n.style,{...te,...ie(e.bounds),...e.style});const o=document.createElement("span");o.id=J,Object.assign(o.style,{...ne,top:e.bounds.top<35?0:"-35px"});const r=document.createElement("span");r.id=Q,r.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`;const i=document.createElement("i");return i.id=ee,i.innerHTML=`${Math.round(100*e.bounds.width)/100} x ${Math.round(100*e.bounds.height)/100}`,Object.assign(i.style,oe),o.appendChild(r),o.appendChild(i),n.appendChild(o),document.body.appendChild(n),n}function ae(e){const t=re(),n=document.getElementById(J),o=document.getElementById(Q),r=document.getElementById(ee);t&&(Object.assign(t.style,{...te,...ie(e.bounds)}),Object.assign(n.style,{top:e.bounds.top<35?0:"-35px"}),o.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`,r.innerHTML=`${Math.round(100*e.bounds.width)/100} x ${Math.round(100*e.bounds.height)/100}`)}function le(){const e=re();e&&(e.style.display="none")}var ce=null;function ue(e){const t=e.target;if(t){const e=t.__vueParentComponent;if(e){ce=e;if(e.vnode.el){const t=q(e),n=G(e);re()?ae({bounds:t,name:n}):se({bounds:t,name:n})}}}}var de,_e=null;function pe(){return window.addEventListener("mouseover",ue),new Promise(e=>{function t(n){n.preventDefault(),n.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),ce&&t(`${null!=(i=null==(r=null==(o=null==(n=ce)?void 0:n.appContext)?void 0:o.app)?void 0:r.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__)?i:0}:${n===(null==n?void 0:n.root)?"root":n.uid}`);var n,o,r,i}(n,n=>{window.removeEventListener("click",t,!0),_e=null,window.removeEventListener("mouseover",ue);const o=re();o&&(o.style.display="none"),e(JSON.stringify({id:n}))})}_e=t,window.addEventListener("click",t,!0)})}function fe(){return new Promise(e=>{function t(){!function(){const e=f.__VUE_INSPECTOR__,t=e.openInEditor;e.openInEditor=async(...n)=>{e.disable(),t(...n)}}(),e(f.__VUE_INSPECTOR__)}f.__VUE_INSPECTOR__?t():function(e){let t=0;const n=setInterval(()=>{f.__VUE_INSPECTOR__&&(clearInterval(n),t+=30,e()),t>=5e3&&clearInterval(n)},30)}(()=>{t()})})}function he(e){return function(e){return!(!e||!e.__v_isReadonly)}(e)?he(e.__v_raw):!(!e||!e.__v_isReactive)}function ge(e){return!(!e||!0!==e.__v_isRef)}function me(e){const t=e&&e.__v_raw;return t?me(t):e}j(),null!=(de=f).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__||(de.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__=!0),j(),j();var Ee=class{constructor(){this.refEditor=new ye}set(e,t,n,o){const r=Array.isArray(t)?t:t.split(".");for(;r.length>1;){const t=r.shift();e=e instanceof Map?e.get(t):e instanceof Set?Array.from(e.values())[t]:e[t],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}const i=r[0],s=this.refEditor.get(e)[i];o?o(e,i,n):this.refEditor.isRef(s)?this.refEditor.set(s,n):e[i]=n}get(e,t){const n=Array.isArray(t)?t:t.split(".");for(let o=0;o<n.length;o++)if(e=e instanceof Map?e.get(n[o]):e[n[o]],this.refEditor.isRef(e)&&(e=this.refEditor.get(e)),!e)return;return e}has(e,t,n=!1){if(void 0===e)return!1;const o=Array.isArray(t)?t.slice():t.split("."),r=n?2:1;for(;e&&o.length>r;){e=e[o.shift()],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}return null!=e&&Object.prototype.hasOwnProperty.call(e,o[0])}createDefaultSetCallback(e){return(t,n,o)=>{if((e.remove||e.newKey)&&(Array.isArray(t)?t.splice(n,1):me(t)instanceof Map?t.delete(n):me(t)instanceof Set?t.delete(Array.from(t.values())[n]):Reflect.deleteProperty(t,n)),!e.remove){const r=t[e.newKey||n];this.refEditor.isRef(r)?this.refEditor.set(r,o):me(t)instanceof Map?t.set(e.newKey||n,o):me(t)instanceof Set?t.add(o):t[e.newKey||n]=o}}}},ye=class{set(e,t){if(ge(e))e.value=t;else{if(e instanceof Set&&Array.isArray(t))return e.clear(),void t.forEach(t=>e.add(t));const n=Object.keys(t);if(e instanceof Map){const o=new Set(e.keys());return n.forEach(n=>{e.set(n,Reflect.get(t,n)),o.delete(n)}),void o.forEach(t=>e.delete(t))}const o=new Set(Object.keys(e));n.forEach(n=>{Reflect.set(e,n,Reflect.get(t,n)),o.delete(n)}),o.forEach(t=>Reflect.deleteProperty(e,t))}}get(e){return ge(e)?e.value:e}isRef(e){return ge(e)||he(e)}};j(),j(),j();var Oe;function ve(){if("undefined"==typeof window||!p||"undefined"==typeof localStorage||null===localStorage)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""};const e=void 0!==localStorage.getItem?localStorage.getItem("__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__"):null;return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}j(),j(),j(),null!=(Oe=f).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS||(Oe.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS=[]);var Te,be=new Proxy(f.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get:(e,t,n)=>Reflect.get(e,t,n)});null!=(Te=f).__VUE_DEVTOOLS_KIT_INSPECTOR__||(Te.__VUE_DEVTOOLS_KIT_INSPECTOR__=[]);var Ie,ke,Se,we,Ve,Ae=new Proxy(f.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get:(e,t,n)=>Reflect.get(e,t,n)}),Pe=O(()=>{yt.hooks.callHook("sendInspectorToClient",Re())});function Re(){return Ae.filter(e=>e.descriptor.app===je.value.app).filter(e=>"components"!==e.descriptor.id).map(e=>{var t;const n=e.descriptor,o=e.options;return{id:o.id,label:o.label,logo:n.logo,icon:`custom-ic-baseline-${null==(t=null==o?void 0:o.icon)?void 0:t.replace(/_/g,"-")}`,packageName:n.packageName,homepage:n.homepage,pluginId:n.id}})}function Ce(e,t){return Ae.find(n=>n.options.id===e&&(!t||n.descriptor.app===t))}null!=(Ie=f).__VUE_DEVTOOLS_KIT_APP_RECORDS__||(Ie.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[]),null!=(ke=f).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__||(ke.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__={}),null!=(Se=f).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__||(Se.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=""),null!=(we=f).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__||(we.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__=[]),null!=(Ve=f).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__||(Ve.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__=[]);var De,Ue="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";null!=(De=f)[Ue]||(De[Ue]={connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:ve()});var Le=O(e=>{yt.hooks.callHook("devtoolsStateUpdated",{state:e})});O((e,t)=>{yt.hooks.callHook("devtoolsConnectedUpdated",{state:e,oldState:t})});var Ne=new Proxy(f.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get:(e,t,n)=>"value"===t?f.__VUE_DEVTOOLS_KIT_APP_RECORDS__:f.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t]}),je=new Proxy(f.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get:(e,t,n)=>"value"===t?f.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:"id"===t?f.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:f.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t]});function xe(){Le({...f[Ue],appRecords:Ne.value,activeAppRecordId:je.id,tabs:f.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:f.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}var Me,He=new Proxy(f[Ue],{get:(e,t)=>"appRecords"===t?Ne:"activeAppRecordId"===t?je.id:"tabs"===t?f.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:"commands"===t?f.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:f[Ue][t],deleteProperty:(e,t)=>(delete e[t],!0),set:(e,t,n)=>(f[Ue],e[t]=n,f[Ue][t]=n,!0)});function Ke(e={}){var t,n,o;const{file:r,host:i,baseUrl:s=window.location.origin,line:a=0,column:l=0}=e;if(r)if("chrome-extension"===i){const e=r.replace(/\\/g,"\\\\"),o=null!=(n=null==(t=window.VUE_DEVTOOLS_CONFIG)?void 0:t.openInEditorHost)?n:"/";fetch(`${o}__open-in-editor?file=${encodeURI(r)}`).then(t=>{if(!t.ok){const t=`Opening component ${e} failed`;console.log(`%c${t}`,"color:red")}})}else if(He.vitePluginDetected){const e=null!=(o=f.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__)?o:s;f.__VUE_INSPECTOR__.openInEditor(e,r,a,l)}}j(),j(),j(),j(),j(),null!=(Me=f).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__||(Me.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__=[]);var ze,Be,Ge=new Proxy(f.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get:(e,t,n)=>Reflect.get(e,t,n)});function $e(e){const t={};return Object.keys(e).forEach(n=>{t[n]=e[n].defaultValue}),t}function Fe(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function We(e){var t,n,o;const r=null!=(n=null==(t=Ge.find(t=>{var n;return t[0].id===e&&!!(null==(n=t[0])?void 0:n.settings)}))?void 0:t[0])?n:null;return null!=(o=null==r?void 0:r.settings)?o:null}function Ye(e,t){var n,o,r;const i=Fe(e);if(i){const e=localStorage.getItem(i);if(e)return JSON.parse(e)}if(e){const t=null!=(o=null==(n=Ge.find(t=>t[0].id===e))?void 0:n[0])?o:null;return $e(null!=(r=null==t?void 0:t.settings)?r:{})}return $e(t)}j(),j(),j(),j(),j(),j(),j(),j(),j(),j(),j();var qe=null!=(Be=(ze=f).__VUE_DEVTOOLS_HOOK)?Be:ze.__VUE_DEVTOOLS_HOOK=V(),Ze={vueAppInit(e){qe.hook("app:init",e)},vueAppUnmount(e){qe.hook("app:unmount",e)},vueAppConnected(e){qe.hook("app:connected",e)},componentAdded:e=>qe.hook("component:added",e),componentEmit:e=>qe.hook("component:emit",e),componentUpdated:e=>qe.hook("component:updated",e),componentRemoved:e=>qe.hook("component:removed",e),setupDevtoolsPlugin(e){qe.hook("devtools-plugin:setup",e)},perfStart:e=>qe.hook("perf:start",e),perfEnd:e=>qe.hook("perf:end",e)},Xe={on:Ze,setupDevToolsPlugin:(e,t)=>qe.callHook("devtools-plugin:setup",e,t)},Je=class{constructor({plugin:e,ctx:t}){this.hooks=t.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook("visitComponentTree",e)},inspectComponent:e=>{this.hooks.hook("inspectComponent",e)},editComponentState:e=>{this.hooks.hook("editComponentState",e)},getInspectorTree:e=>{this.hooks.hook("getInspectorTree",e)},getInspectorState:e=>{this.hooks.hook("getInspectorState",e)},editInspectorState:e=>{this.hooks.hook("editInspectorState",e)},inspectTimelineEvent:e=>{this.hooks.hook("inspectTimelineEvent",e)},timelineCleared:e=>{this.hooks.hook("timelineCleared",e)},setPluginSettings:e=>{this.hooks.hook("setPluginSettings",e)}}}notifyComponentUpdate(e){var t;if(He.highPerfModeEnabled)return;const n=Re().find(e=>e.packageName===this.plugin.descriptor.packageName);if(null==n?void 0:n.id){if(e){const n=[e.appContext.app,e.uid,null==(t=e.parent)?void 0:t.uid,e];qe.callHook("component:updated",...n)}else qe.callHook("component:updated");this.hooks.callHook("sendInspectorState",{inspectorId:n.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook("addInspector",{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&function(e,t){const n=Fe(e);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify($e(t)))}(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){He.highPerfModeEnabled||this.hooks.callHook("sendInspectorTree",{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){He.highPerfModeEnabled||this.hooks.callHook("sendInspectorState",{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,t){this.hooks.callHook("customInspectorSelectNode",{inspectorId:e,nodeId:t,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook("visitComponentTree",e)}now(){return He.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook("timelineLayerAdded",{options:e,plugin:this.plugin})}addTimelineEvent(e){He.highPerfModeEnabled||this.hooks.callHook("timelineEventAdded",{options:e,plugin:this.plugin})}getSettings(e){return Ye(null!=e?e:this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook("getComponentInstances",{app:e})}getComponentBounds(e){return this.hooks.callHook("getComponentBounds",{instance:e})}getComponentName(e){return this.hooks.callHook("getComponentName",{instance:e})}highlightElement(e){const t=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook("componentHighlight",{uid:t})}unhighlightElement(){return this.hooks.callHook("componentUnhighlight")}};j(),j(),j(),j();var Qe="__vue_devtool_undefined__",et="__vue_devtool_infinity__",tt="__vue_devtool_negative_infinity__",nt="__vue_devtool_nan__";j(),j();var ot,rt={[Qe]:"undefined",[nt]:"NaN",[et]:"Infinity",[tt]:"-Infinity"};function it(e,t){return Xe.setupDevToolsPlugin(e,t)}function st(e,t){f.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||He.highPerfModeEnabled&&!(null==t?void 0:t.inspectingComponent)||(f.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),Ge.forEach(t=>{!function(e,t){const[n,o]=e;if(n.app!==t)return;const r=new Je({plugin:{setupFn:o,descriptor:n},ctx:yt});"vuex"===n.packageName&&r.on.editInspectorState(e=>{r.sendInspectorState(e.inspectorId)}),o(r)}(t,e)}))}Object.entries(rt).reduce((e,[t,n])=>(e[n]=t,e),{}),j(),j(),j(),j(),j(),null!=(ot=f).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__||(ot.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__=/* @__PURE__ */new Set),j(),j();var at,lt,ct,ut="__VUE_DEVTOOLS_ROUTER__",dt="__VUE_DEVTOOLS_ROUTER_INFO__";function _t(e){return e.map(e=>{let{path:t,name:n,children:o,meta:r}=e;return(null==o?void 0:o.length)&&(o=_t(o)),{path:t,name:n,children:o,meta:r}})}function pt(e,t){function n(){var t;const n=null==(t=e.app)?void 0:t.config.globalProperties.$router,o=function(e){if(e){const{fullPath:t,hash:n,href:o,path:r,name:i,matched:s,params:a,query:l}=e;return{fullPath:t,hash:n,href:o,path:r,name:i,params:a,query:l,matched:_t(s)}}return e}(null==n?void 0:n.currentRoute.value),r=_t(function(e){const t=/* @__PURE__ */new Map;return((null==e?void 0:e.getRoutes())||[]).filter(e=>!t.has(e.path)&&t.set(e.path,1))}(n)),i=console.warn;console.warn=()=>{},f[dt]={currentRoute:o?E(o):{},routes:E(r)},f[ut]=n,console.warn=i}n(),Xe.on.componentUpdated(O(()=>{var o;(null==(o=t.value)?void 0:o.app)===e.app&&(n(),He.highPerfModeEnabled||yt.hooks.callHook("routerInfoUpdated",{state:f[dt]}))},200))}null!=(at=f)[dt]||(at[dt]={currentRoute:null,routes:[]}),null!=(lt=f)[ut]||(lt[ut]={}),new Proxy(f[dt],{get:(e,t)=>f[dt][t]}),new Proxy(f[ut],{get(e,t){if("value"===t)return f[ut]}}),j(),null!=(ct=f).__VUE_DEVTOOLS_ENV__||(ct.__VUE_DEVTOOLS_ENV__={vitePluginDetected:!1});var ft,ht,gt=function(){const e=V();e.hook("addInspector",({inspector:e,plugin:t})=>{!function(e,t){var n,o;Ae.push({options:e,descriptor:t,treeFilterPlaceholder:null!=(n=e.treeFilterPlaceholder)?n:"Search tree...",stateFilterPlaceholder:null!=(o=e.stateFilterPlaceholder)?o:"Search state...",treeFilter:"",selectedNodeId:"",appRecord:z(t.app)}),Pe()}(e,t.descriptor)});const t=O(async({inspectorId:t,plugin:n})=>{var o;if(!t||!(null==(o=null==n?void 0:n.descriptor)?void 0:o.app)||He.highPerfModeEnabled)return;const r=Ce(t,n.descriptor.app),i={app:n.descriptor.app,inspectorId:t,filter:(null==r?void 0:r.treeFilter)||"",rootNodes:[]};await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(i))),t()},"getInspectorTree")}),e.callHookWith(async e=>{await Promise.all(e.map(e=>e({inspectorId:t,rootNodes:i.rootNodes})))},"sendInspectorTreeToClient")},120);e.hook("sendInspectorTree",t);const n=O(async({inspectorId:t,plugin:n})=>{var o;if(!t||!(null==(o=null==n?void 0:n.descriptor)?void 0:o.app)||He.highPerfModeEnabled)return;const r=Ce(t,n.descriptor.app),i={app:n.descriptor.app,inspectorId:t,nodeId:(null==r?void 0:r.selectedNodeId)||"",state:null},s={currentTab:`custom-inspector:${t}`};i.nodeId&&await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(i,s))),t()},"getInspectorState")}),e.callHookWith(async e=>{await Promise.all(e.map(e=>e({inspectorId:t,nodeId:i.nodeId,state:i.state})))},"sendInspectorStateToClient")},120);return e.hook("sendInspectorState",n),e.hook("customInspectorSelectNode",({inspectorId:e,nodeId:t,plugin:n})=>{const o=Ce(e,n.descriptor.app);o&&(o.selectedNodeId=t)}),e.hook("timelineLayerAdded",({options:e,plugin:t})=>{!function(e,t){He.timelineLayersState[t.id]=!1,be.push({...e,descriptorId:t.id,appRecord:z(t.app)})}(e,t.descriptor)}),e.hook("timelineEventAdded",({options:t,plugin:n})=>{var o;He.highPerfModeEnabled||!(null==(o=He.timelineLayersState)?void 0:o[n.descriptor.id])&&!["performance","component-event","keyboard","mouse"].includes(t.layerId)||e.callHookWith(async e=>{await Promise.all(e.map(e=>e(t)))},"sendTimelineEventToClient")}),e.hook("getComponentInstances",async({app:e})=>{const t=e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!t)return null;const n=t.id.toString();return[...t.instanceMap].filter(([e])=>e.split(":")[0]===n).map(([,e])=>e)}),e.hook("getComponentBounds",async({instance:e})=>q(e)),e.hook("getComponentName",({instance:e})=>G(e)),e.hook("componentHighlight",({uid:e})=>{const t=je.value.instanceMap.get(e);t&&function(e){const t=q(e);if(!t.width&&!t.height)return;const n=G(e);re()?ae({bounds:t,name:n}):se({bounds:t,name:n})}(t)}),e.hook("componentUnhighlight",()=>{le()}),e}();null!=(ft=f).__VUE_DEVTOOLS_KIT_CONTEXT__||(ft.__VUE_DEVTOOLS_KIT_CONTEXT__={hooks:gt,get state(){return{...He,activeAppRecordId:je.id,activeAppRecord:je.value,appRecords:Ne.value}},api:(ht=gt,{async getInspectorTree(e){const t={...e,app:je.value.app,rootNodes:[]};return await new Promise(e=>{ht.callHookWith(async n=>{await Promise.all(n.map(e=>e(t))),e()},"getInspectorTree")}),t.rootNodes},async getInspectorState(e){const t={...e,app:je.value.app,state:null},n={currentTab:`custom-inspector:${e.inspectorId}`};return await new Promise(e=>{ht.callHookWith(async o=>{await Promise.all(o.map(e=>e(t,n))),e()},"getInspectorState")}),t.state},editInspectorState(e){const t=new Ee,n={...e,app:je.value.app,set:(n,o=e.path,r=e.state.value,i)=>{t.set(n,o,r,i||t.createDefaultSetCallback(e.state))}};ht.callHookWith(e=>{e.forEach(e=>e(n))},"editInspectorState")},sendInspectorState(e){const t=Ce(e);ht.callHook("sendInspectorState",{inspectorId:e,plugin:{descriptor:t.descriptor,setupFn:()=>({})}})},inspectComponentInspector:()=>pe(),cancelInspectComponentInspector:()=>(le(),window.removeEventListener("mouseover",ue),window.removeEventListener("click",_e,!0),void(_e=null)),getComponentRenderCode(e){const t=$(je.value,e);if(t)return"function"!=typeof(null==t?void 0:t.type)?t.render.toString():t.type.toString()},scrollToComponent:e=>function(e){const t=$(je.value,e.id);if(t){const[n]=Z(t);if("function"==typeof n.scrollIntoView)n.scrollIntoView({behavior:"smooth"});else{const e=q(t),n=document.createElement("div"),o={...ie(e),position:"absolute"};Object.assign(n.style,o),document.body.appendChild(n),n.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{document.body.removeChild(n)},2e3)}setTimeout(()=>{const n=q(t);if(n.width||n.height){const o=G(t),r=re();r?ae({...e,name:o,bounds:n}):se({...e,name:o,bounds:n}),setTimeout(()=>{r&&(r.style.display="none")},1500)}},1200)}}({id:e}),openInEditor:Ke,getVueInspector:fe,toggleApp(e,t){const n=Ne.value.find(t=>t.id===e);var o;n&&(function(e){f.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=e,xe()}(e),o=n,f.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=o,xe(),pt(n,je),Pe(),st(n.app,t))},inspectDOM(e){const t=$(je.value,e);if(t){const[e]=Z(t);e&&(f.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=e)}},updatePluginSettings(e,t,n){!function(e,t,n){const o=Fe(e),r=localStorage.getItem(o),i=JSON.parse(r||"{}"),s={...i,[t]:n};localStorage.setItem(o,JSON.stringify(s)),yt.hooks.callHookWith(o=>{o.forEach(o=>o({pluginId:e,key:t,oldValue:i[t],newValue:n,settings:s}))},"setPluginSettings")}(e,t,n)},getPluginSettings:e=>({options:We(e),values:Ye(e)})})});var mt,Et,yt=f.__VUE_DEVTOOLS_KIT_CONTEXT__;j(),((e,t,n)=>{n=null!=e?P(U(e)):{},((e,t,n,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of D(t))L.call(e,r)||r===n||R(e,r,{get:()=>t[r],enumerable:!(o=C(t,r))||o.enumerable})})(R(n,"default",{value:e,enumerable:!0}),e)})(M()),null!=(mt=f).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__||(mt.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__={id:0,appIds:/* @__PURE__ */new Set}),j(),j(),j(),j(),j(),null!=(Et=f).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__||(Et.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__=function(e){He.devtoolsClientDetected={...He.devtoolsClientDetected,...e};const t=Object.values(He.devtoolsClientDetected).some(Boolean);var n;n=!t,He.highPerfModeEnabled=null!=n?n:!He.highPerfModeEnabled,!n&&je.value&&st(je.value.app)}),j(),j(),j(),j(),j(),j(),j();var Ot=class{constructor(){this.keyToValue=/* @__PURE__ */new Map,this.valueToKey=/* @__PURE__ */new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},vt=class{constructor(e){this.generateIdentifier=e,this.kv=new Ot}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},Tt=class extends vt{constructor(){super(e=>e.name),this.classToAllowedProps=/* @__PURE__ */new Map}register(e,t){"object"==typeof t?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};function bt(e,t){const n=function(e){if("values"in Object)return Object.values(e);const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}(e);if("find"in n)return n.find(t);const o=n;for(let r=0;r<o.length;r++){const e=o[r];if(t(e))return e}}function It(e,t){Object.entries(e).forEach(([e,n])=>t(n,e))}function kt(e,t){return-1!==e.indexOf(t)}function St(e,t){for(let n=0;n<e.length;n++){const o=e[n];if(t(o))return o}}j(),j();var wt=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return bt(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}};j(),j();var Vt=e=>void 0===e,At=e=>"object"==typeof e&&null!==e&&(e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype)),Pt=e=>At(e)&&0===Object.keys(e).length,Rt=e=>Array.isArray(e),Ct=e=>e instanceof Map,Dt=e=>e instanceof Set,Ut=e=>"Symbol"===(e=>Object.prototype.toString.call(e).slice(8,-1))(e),Lt=e=>"number"==typeof e&&isNaN(e),Nt=e=>(e=>"boolean"==typeof e)(e)||(e=>null===e)(e)||Vt(e)||(e=>"number"==typeof e&&!isNaN(e))(e)||(e=>"string"==typeof e)(e)||Ut(e);j();var jt=e=>e.replace(/\./g,"\\."),xt=e=>e.map(String).map(jt).join("."),Mt=e=>{const t=[];let n="";for(let r=0;r<e.length;r++){let o=e.charAt(r);if("\\"===o&&"."===e.charAt(r+1)){n+=".",r++;continue}"."===o?(t.push(n),n=""):n+=o}const o=n;return t.push(o),t};function Ht(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}j();var Kt=[Ht(Vt,"undefined",()=>null,()=>{}),Ht(e=>"bigint"==typeof e,"bigint",e=>e.toString(),e=>"undefined"!=typeof BigInt?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),Ht(e=>e instanceof Date&&!isNaN(e.valueOf()),"Date",e=>e.toISOString(),e=>new Date(e)),Ht(e=>e instanceof Error,"Error",(e,t)=>{const n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(t=>{n[t]=e[t]}),n},(e,t)=>{const n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(t=>{n[t]=e[t]}),n}),Ht(e=>e instanceof RegExp,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),Ht(Dt,"set",e=>[...e.values()],e=>new Set(e)),Ht(Ct,"map",e=>[...e.entries()],e=>new Map(e)),Ht(e=>{return Lt(e)||((t=e)===1/0||t===-1/0);var t},"number",e=>Lt(e)?"NaN":e>0?"Infinity":"-Infinity",Number),Ht(e=>0===e&&1/e==-1/0,"number",()=>"-0",Number),Ht(e=>e instanceof URL,"URL",e=>e.toString(),e=>new URL(e))];function zt(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var Bt=zt((e,t)=>{if(Ut(e)){return!!t.symbolRegistry.getIdentifier(e)}return!1},(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{const o=n.symbolRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown symbol");return o}),Gt=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),$t=zt(e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const n=Gt[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function Ft(e,t){if(null==e?void 0:e.constructor){return!!t.classRegistry.getIdentifier(e.constructor)}return!1}var Wt=zt(Ft,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{const n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};const o={};return n.forEach(t=>{o[t]=e[t]}),o},(e,t,n)=>{const o=n.classRegistry.getValue(t[1]);if(!o)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(o.prototype),e)}),Yt=zt((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{const o=n.customTransformerRegistry.findByName(t[1]);if(!o)throw new Error("Trying to deserialize unknown custom value");return o.deserialize(e)}),qt=[Wt,Bt,Yt,$t],Zt=(e,t)=>{const n=St(qt,n=>n.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const o=St(Kt,n=>n.isApplicable(e,t));return o?{value:o.transform(e,t),type:o.annotation}:void 0},Xt={};Kt.forEach(e=>{Xt[e.annotation]=e});j();var Jt=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");const n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function Qt(e){if(kt(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(kt(e,"prototype"))throw new Error("prototype is not allowed as a property");if(kt(e,"constructor"))throw new Error("constructor is not allowed as a property")}var en=(e,t,n)=>{if(Qt(t),0===t.length)return n(e);let o=e;for(let i=0;i<t.length-1;i++){const e=t[i];if(Rt(o)){o=o[+e]}else if(At(o))o=o[e];else if(Dt(o)){o=Jt(o,+e)}else if(Ct(o)){if(i===t.length-2)break;const n=+e,r=0===+t[++i]?"key":"value",s=Jt(o,n);switch(r){case"key":o=s;break;case"value":o=o.get(s)}}}const r=t[t.length-1];if(Rt(o)?o[+r]=n(o[+r]):At(o)&&(o[r]=n(o[r])),Dt(o)){const e=Jt(o,+r),t=n(e);e!==t&&(o.delete(e),o.add(t))}if(Ct(o)){const e=+t[t.length-2],i=Jt(o,e);switch(0===+r?"key":"value"){case"key":{const e=n(i);o.set(e,o.get(i)),e!==i&&o.delete(i);break}case"value":o.set(i,n(o.get(i)))}}return e};function tn(e,t,n=[]){if(!e)return;if(!Rt(e))return void It(e,(e,o)=>tn(e,t,[...n,...Mt(o)]));const[o,r]=e;r&&It(r,(e,o)=>{tn(e,t,[...n,...Mt(o)])}),t(o,n)}function nn(e,t,n){return tn(t,(t,o)=>{e=en(e,o,e=>((e,t,n)=>{if(!Rt(t)){const o=Xt[t];if(!o)throw new Error("Unknown transformation: "+t);return o.untransform(e,n)}switch(t[0]){case"symbol":return Bt.untransform(e,t,n);case"class":return Wt.untransform(e,t,n);case"custom":return Yt.untransform(e,t,n);case"typed-array":return $t.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}})(e,t,n))}),e}function on(e,t){function n(t,n){const o=((e,t)=>{Qt(t);for(let n=0;n<t.length;n++){const o=t[n];if(Dt(e))e=Jt(e,+o);else if(Ct(e)){const r=+o,i=0===+t[++n]?"key":"value",s=Jt(e,r);switch(i){case"key":e=s;break;case"value":e=e.get(s)}}else e=e[o]}return e})(e,Mt(n));t.map(Mt).forEach(t=>{e=en(e,t,()=>o)})}if(Rt(t)){const[o,r]=t;o.forEach(t=>{e=en(e,Mt(t),()=>e)}),r&&It(r,n)}else It(t,n);return e}var rn=(e,t,n,o,r=[],i=[],s=/* @__PURE__ */new Map)=>{var a;const l=Nt(e);if(!l){!function(e,t,n){const o=n.get(e);o?o.push(t):n.set(e,[t])}(e,r,t);const n=s.get(e);if(n)return o?{transformedValue:null}:n}if(!((e,t)=>At(e)||Rt(e)||Ct(e)||Dt(e)||Ft(e,t))(e,n)){const t=Zt(e,n),o=t?{transformedValue:t.value,annotations:[t.type]}:{transformedValue:e};return l||s.set(e,o),o}if(kt(i,e))return{transformedValue:null};const c=Zt(e,n),u=null!=(a=null==c?void 0:c.value)?a:e,d=Rt(u)?[]:{},_={};It(u,(a,l)=>{if("__proto__"===l||"constructor"===l||"prototype"===l)throw new Error(`Detected property ${l}. This is a prototype pollution risk, please remove it from your object.`);const c=rn(a,t,n,o,[...r,l],[...i,e],s);d[l]=c.transformedValue,Rt(c.annotations)?_[l]=c.annotations:At(c.annotations)&&It(c.annotations,(e,t)=>{_[jt(l)+"."+t]=e})});const p=Pt(_)?{transformedValue:d,annotations:c?[c.type]:void 0}:{transformedValue:d,annotations:c?[c.type,_]:_};return l||s.set(e,p),p};function sn(e){return Object.prototype.toString.call(e).slice(8,-1)}function an(e){return"Array"===sn(e)}function ln(e,t={}){if(an(e))return e.map(e=>ln(e,t));if(!function(e){if("Object"!==sn(e))return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(e))return e;return[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce((n,o)=>{if(an(t.props)&&!t.props.includes(o))return n;return function(e,t,n,o,r){const i={}.propertyIsEnumerable.call(o,t)?"enumerable":"nonenumerable";"enumerable"===i&&(e[t]=n),r&&"nonenumerable"===i&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,o,ln(e[o],t),e,t.nonenumerable),n},{})}j(),j();var cn,un,dn,_n,pn,fn,hn=class{constructor({dedupe:e=!1}={}){this.classRegistry=new Tt,this.symbolRegistry=new vt(e=>{var t;return null!=(t=e.description)?t:""}),this.customTransformerRegistry=new wt,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const t=/* @__PURE__ */new Map,n=rn(e,t,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta={...o.meta,values:n.annotations});const r=function(e,t){const n={};let o;return e.forEach(e=>{if(e.length<=1)return;t||(e=e.map(e=>e.map(String)).sort((e,t)=>e.length-t.length));const[r,...i]=e;0===r.length?o=i.map(xt):n[xt(r)]=i.map(xt)}),o?Pt(n)?[o]:[o,n]:Pt(n)?void 0:n}(t,this.dedupe);return r&&(o.meta={...o.meta,referentialEqualities:r}),o}deserialize(e){const{json:t,meta:n}=e;let o=ln(t);return(null==n?void 0:n.values)&&(o=nn(o,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(o=on(o,n.referentialEqualities)),o}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};hn.defaultInstance=new hn,hn.serialize=hn.defaultInstance.serialize.bind(hn.defaultInstance),hn.deserialize=hn.defaultInstance.deserialize.bind(hn.defaultInstance),hn.stringify=hn.defaultInstance.stringify.bind(hn.defaultInstance),hn.parse=hn.defaultInstance.parse.bind(hn.defaultInstance),hn.registerClass=hn.defaultInstance.registerClass.bind(hn.defaultInstance),hn.registerSymbol=hn.defaultInstance.registerSymbol.bind(hn.defaultInstance),hn.registerCustom=hn.defaultInstance.registerCustom.bind(hn.defaultInstance),hn.allowErrorProps=hn.defaultInstance.allowErrorProps.bind(hn.defaultInstance),j(),j(),j(),j(),j(),j(),j(),j(),j(),j(),j(),j(),j(),j(),j(),j(),j(),j(),j(),j(),j(),j(),j(),null!=(cn=f).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__||(cn.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__=[]),null!=(un=f).__VUE_DEVTOOLS_KIT_RPC_CLIENT__||(un.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=null),null!=(dn=f).__VUE_DEVTOOLS_KIT_RPC_SERVER__||(dn.__VUE_DEVTOOLS_KIT_RPC_SERVER__=null),null!=(_n=f).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__||(_n.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=null),null!=(pn=f).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__||(pn.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__=null),null!=(fn=f).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__||(fn.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__=null),j(),j(),j(),j(),j(),j(),j();export{it as setupDevToolsPlugin,it as setupDevtoolsPlugin};