@oneclick.dev/cms-kit 0.0.78 → 0.0.79
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.
- package/dist/cms-kit.cjs +1 -1
- package/dist/cms-kit.js +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.css +1 -1
- package/dist/components.js +2 -2
- package/dist/{composables-5bC_Q9lr.cjs → composables-06ksd6f5.cjs} +1 -1
- package/dist/composables-Bg9pCX9M.js +1 -0
- package/dist/index.css +1 -1
- package/package.json +1 -1
- package/dist/composables-DbMqzcwK.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,useAttrs as t,ref as n,computed as r,watchEffect as o,nextTick as i,openBlock as a,createElementBlock 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)=>(a(),s("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?(a(),s("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?(a(),p(k(e.icons?.close),{key:0})):m(e.$slots,"close-icon",{key:1})],10,W)):c("v-if",!0),e.toast.component?(a(),p(k(e.toast.component),h({key:1},e.toast.componentProps,{onCloseToast:le}),null,16)):(a(),s(u,{key:2},["default"!==$.value||e.toast.icon||e.toast.promise?(a(),s("div",{key:0,"data-icon":"",class:g(f(G)(e.classes?.icon,e.toast?.classes?.icon))},[e.toast.icon?(a(),p(k(e.toast.icon),{key:0})):(a(),s(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?(a(),p(k(e.toast.title),O(h({key:0},e.toast.componentProps)),null,16)):(a(),s(u,{key:1},[x(N(e.toast.title),1)],64))],2),e.toast.description?(a(),s("div",{key:0,"data-description":"",class:g(f(G)(e.descriptionClass,q.value,e.classes?.description,e.toast.classes?.description))},[ae.value?(a(),p(k(e.toast.description),O(h({key:0},e.toast.componentProps)),null,16)):(a(),s(u,{key:1},[x(N(e.toast.description),1)],64))],2)):c("v-if",!0)],2),e.toast.cancel?(a(),s("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?(a(),s("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 a(),s("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)=>(a(),s("div",{class:"sonner-loading-wrapper","data-visible":e.visible},[l("div",X,[(a(!0),s(u,null,d(f(t),e=>(a(),s("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 a(),s("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 a(),s("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 a(),s("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 a(),s("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)=>(a(),s(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"},[(a(!0),s(u,null,d(O.value,(t,n)=>(a(),s("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}),[(a(!0),s(u,null,d(k(t,n),(n,r)=>(a(),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})=>{console.log("Integration action task handler",t,e);const{$useIntegrationActions:n}=A(),{fireAction:r}=n(t.data.action.integration);return console.log("Firing integration action",t.data.action,e),{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;let h=!1;const p=(...e)=>(h=!0,s?.(...e)),v=new Map(r.map(e=>[e.id,e])),g=I(()=>C(e)),y=n(!1),m=/* @__PURE__ */new Map,b=/* @__PURE__ */new Set,w=/* @__PURE__ */new Set,_=n(i?JSON.parse(JSON.stringify(i.map(e=>({...e,value:Object.keys(e).includes("defaultValue")?e.defaultValue:e.value??null})))):[]);async function E(e,n=!1){if(n&&"START"!==e||b.has(e))return;w.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))),w.clear(),y.value){b.add(e),x(e,me.RUNNING);try{const t=g.value.predecessors(e)||[],n=Object.assign({},...t.map(e=>d.get(e)??{})),r={...Object.fromEntries(_.value.map(e=>[e.name,e.value])),...n},i=v?.size>0?v.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 s={...ge,...a}[i.data.taskType??i.type];console.log("Running task:",i.data.taskType,s,u);const c=s?await s(r,{node:i,graph:g.value,onFinish:p,localVariables:_,flowBuilderExtensions:u}):{};d.set(e,c?JSON.parse(JSON.stringify(c)):{}),x(e,me.FINISHED);const l=o.filter(t=>t.source===e),h=l.some(e=>e.sourceHandle);for(const e of l){const{source:t,sourceHandle:n}=e,r=v.get(t).type,o="start"===r||"confirm"===r&&"success"===n&&!0===c.confirmed||"confirm"===r&&"error"===n&&!1===c.confirmed||"integration-action"===r&&"success"===n&&!0===c.result?.success||"integration-action"===r&&"error"===n&&!1===c.result?.success||"api-request"===r&&"success"===n&&!0===c.result?.success||"api-request"===r&&"error"===n&&!1===c.result?.success||"conditional"===r&&"success"===n&&!0===c.conditionMet||"conditional"===r&&"error"===n&&!1===c.conditionMet||!["confirm","integration-action","api-request","conditional"].includes(r)&&"success"===n;console.log("should run",o,r,n,c,h),o&&await E(e.target)}}catch(i){console.error(`Error in node ${e}:`,i),x(e,me.ERROR),C(t)&&await k(e)}}}function j(e){O();for(const t of e)x(t.id,null)}async function k(e){const t=g.value.successors(e)||[];for(const n of t)x(n,me.SKIPPED),await k(n)}function O(){y.value=!1,b.clear(),m.clear()}function x(e,t){c(e,{status:t})}return{run:async function(e){if(y.value)return;j(e),y.value=!0;const t=e.filter(e=>0===g.value.predecessors(e.id)?.length);await Promise.all(t.map(e=>E(e.id,!0))),0!==w.size||h||p(),O()},stop:async function(){y.value=!1;for(const e of w)clearTimeout(m.get(e)),m.delete(e),x(e,me.CANCELLED),await k(e);for(const[e,t]of m)clearTimeout(t),m.delete(e),x(e,me.CANCELLED),await k(e);b.clear(),w.clear()},reset:j,isRunning:y}}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=e=>ih("cms-useMailer")(e),kh=()=>ih("cms-useProjectSettings")(),Oh=()=>ih("cms-useCustomDialog")(),xh=()=>ih("cms-useModuleOverlay")(),Nh=()=>ih("cms-useRoute")(),Ih=()=>ih("cms-useRouter")(),Ch=()=>ih("cms-useOverlayStack")();export{un as A,de as B,me as P,fe as T,Oh as a,Eh as b,wh as c,bh as d,ah as e,uh as f,sh as g,rh as h,yh as i,jh as j,ch as k,hh as l,fh as m,xh as n,ph as o,vh as p,gh as q,Ch as r,lh as s,kh as t,_h as u,dh as v,Nh as w,Ih as x,be as y,mh as z};
|
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.cm-editor{min-height:100%;max-height:200px;padding-block:calc(var(--spacing) * 1);padding-inline:calc(var(--spacing) * 3);border:1px solid var(--input);border-radius:calc(var(--radius) - 2px);background-color:var(--background);--tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, rgb(0 0 0 / .05));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);color:inherit;transition:all .15s cubic-bezier(.4,0,.2,1)}.cm-editor.cm-focused{outline:3px solid color-mix(in oklab,var(--ring) 50%,transparent);border-style:var(--tw-border-style);border-width:1px;--tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, rgb(0 0 0 / .05));border-color:var(--ring);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-ring-color: color-mix(in oklab, var(--ring) 50%, transparent)}.cm-line{padding:0!important}.cm-scroller{flex:1}.cm-interpolation{color:#235dff;background:#edf1ff;padding:4px 6px;border-radius:5px;font-weight:600}.dark .cm-editor{background-color:color-mix(in oklab,var(--input) 30%,transparent)}.dark .cm-interpolation{color:#bfbfff;background:#edf1ff26}.vue-flow{position:relative;width:100%;height:100%;overflow:hidden;z-index:0;direction:ltr}.vue-flow__container{position:absolute;height:100%;width:100%;left:0;top:0}.vue-flow__pane{z-index:1}.vue-flow__pane.draggable{cursor:grab}.vue-flow__pane.selection{cursor:pointer}.vue-flow__pane.dragging{cursor:grabbing}.vue-flow__transformationpane{transform-origin:0 0;z-index:2;pointer-events:none}.vue-flow__viewport{z-index:4;overflow:clip}.vue-flow__selection{z-index:6}.vue-flow__edge-labels{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vue-flow__nodesselection-rect:focus,.vue-flow__nodesselection-rect:focus-visible{outline:none}.vue-flow .vue-flow__edges{pointer-events:none;overflow:visible}.vue-flow__edge-path,.vue-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.vue-flow__edge{pointer-events:visibleStroke;cursor:pointer}.vue-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.vue-flow__edge.animated path.vue-flow__edge-interaction{stroke-dasharray:none;animation:none}.vue-flow__edge.inactive{pointer-events:none}.vue-flow__edge.selected,.vue-flow__edge:focus,.vue-flow__edge:focus-visible{outline:none}.vue-flow__edge.selected .vue-flow__edge-path,.vue-flow__edge:focus .vue-flow__edge-path,.vue-flow__edge:focus-visible .vue-flow__edge-path{stroke:#555}.vue-flow__edge-textwrapper{pointer-events:all}.vue-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vue-flow__connection{pointer-events:none}.vue-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.vue-flow__connectionline{z-index:1001}.vue-flow__nodes{pointer-events:none;transform-origin:0 0}.vue-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.vue-flow__node.draggable{cursor:grab;pointer-events:all}.vue-flow__node.draggable.dragging{cursor:grabbing}.vue-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.vue-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.vue-flow__nodesselection-rect.dragging{cursor:grabbing}.vue-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px}.vue-flow__handle.connectable{pointer-events:all;cursor:crosshair}.vue-flow__handle-bottom{left:50%;bottom:0;transform:translate(-50%,50%)}.vue-flow__handle-top{left:50%;top:0;transform:translate(-50%,-50%)}.vue-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.vue-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.vue-flow__edgeupdater{cursor:move;pointer-events:all}.vue-flow__panel{position:absolute;z-index:5;margin:15px}.vue-flow__panel.top{top:0}.vue-flow__panel.bottom{bottom:0}.vue-flow__panel.left{left:0}.vue-flow__panel.right{right:0}.vue-flow__panel.center{left:50%;transform:translate(-50%)}@keyframes dashdraw{0%{stroke-dashoffset:10}}:root{--vf-node-bg: #fff;--vf-node-text: #222;--vf-connection-path: #b1b1b7;--vf-handle: #555}.vue-flow__edge.updating .vue-flow__edge-path{stroke:#777}.vue-flow__edge-text{font-size:10px}.vue-flow__edge-textbg{fill:#fff}.vue-flow__connection-path{stroke:var(--vf-connection-path)}.vue-flow__node{cursor:grab}.vue-flow__node.selectable:focus,.vue-flow__node.selectable:focus-visible{outline:none}.vue-flow__node-default,.vue-flow__node-input,.vue-flow__node-output{padding:10px;border-radius:3px;width:150px;font-size:12px;text-align:center;border-width:1px;border-style:solid;color:var(--vf-node-text);background-color:var(--vf-node-bg);border-color:var(--vf-node-color)}.vue-flow__node-default.selected,.vue-flow__node-default.selected:hover,.vue-flow__node-input.selected,.vue-flow__node-input.selected:hover,.vue-flow__node-output.selected,.vue-flow__node-output.selected:hover{box-shadow:0 0 0 .5px var(--vf-box-shadow)}.vue-flow__node-default.selected,.vue-flow__node-default:focus,.vue-flow__node-default:focus-visible,.vue-flow__node-input.selected,.vue-flow__node-input:focus,.vue-flow__node-input:focus-visible,.vue-flow__node-output.selected,.vue-flow__node-output:focus,.vue-flow__node-output:focus-visible{outline:none;border:1px solid #555}.vue-flow__node-default .vue-flow__handle,.vue-flow__node-input .vue-flow__handle,.vue-flow__node-output .vue-flow__handle{background:var(--vf-handle)}.vue-flow__node-default.selectable:hover,.vue-flow__node-input.selectable:hover,.vue-flow__node-output.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.vue-flow__node-input{--vf-node-color: var(--vf-node-color, #0041d0);--vf-handle: var(--vf-node-color, #0041d0);--vf-box-shadow: var(--vf-node-color, #0041d0);background:var(--vf-node-bg);border-color:var(--vf-node-color, #0041d0)}.vue-flow__node-input.selected,.vue-flow__node-input:focus,.vue-flow__node-input:focus-visible{outline:none;border:1px solid var(--vf-node-color, #0041d0)}.vue-flow__node-default{--vf-handle: var(--vf-node-color, #1a192b);--vf-box-shadow: var(--vf-node-color, #1a192b);background:var(--vf-node-bg);border-color:var(--vf-node-color, #1a192b)}.vue-flow__node-default.selected,.vue-flow__node-default:focus,.vue-flow__node-default:focus-visible{outline:none;border:1px solid var(--vf-node-color, #1a192b)}.vue-flow__node-output{--vf-handle: var(--vf-node-color, #ff0072);--vf-box-shadow: var(--vf-node-color, #ff0072);background:var(--vf-node-bg);border-color:var(--vf-node-color, #ff0072)}.vue-flow__node-output.selected,.vue-flow__node-output:focus,.vue-flow__node-output:focus-visible{outline:none;border:1px solid var(--vf-node-color, #ff0072)}.vue-flow__nodesselection-rect,.vue-flow__selection{background:#0059dc14;border:1px dotted rgba(0,89,220,.8)}.vue-flow__nodesselection-rect:focus,.vue-flow__nodesselection-rect:focus-visible,.vue-flow__selection:focus,.vue-flow__selection:focus-visible{outline:none}.vue-flow__handle{width:6px;height:6px;background:var(--vf-handle);border:1px solid #fff;border-radius:100%}.vue-flow__controls{box-shadow:0 0 2px 1px #00000014}.vue-flow__controls-button{background:#fefefe;border:none;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;user-select:none;padding:5px}.vue-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.vue-flow__controls-button:hover{background:#f4f4f4}.vue-flow__controls-button:disabled{pointer-events:none}.vue-flow__controls-button:disabled svg{fill-opacity:.4}.vue-flow__minimap{background-color:#fff}.vue-flow__minimap.pannable{cursor:grab}.vue-flow__minimap.dragging{cursor:grabbing}.vue-flow__minimap-mask.pannable{cursor:grab}.vue-flow__background.vue-flow__container pattern circle{fill:#d6d6d6}.vue-flow__node{background-color:#fff;border:1px solid #ececec;border-radius:.5rem;box-shadow:0 2px 5px #0000001a;padding:.5rem;--focus-border-color: #a16aff}.vue-flow__node.selected,.vue-flow__node:focus,.vue-flow__node:focus-visible{border:2px solid var(--focus-border-color)}.vue-flow__handle{height:15px;border-radius:5px}.vue-flow__edge-path,.vue-flow__connection-path{stroke:#7b7b7b;stroke-width:2}.vue-flow__edge.selected .vue-flow__edge-path{stroke:#efefef}.vue-flow__minimap{border-radius:16px;overflow:hidden;border:2px solid #d8d8d8}.vue-flow__minimap.vue-flow__panel{right:unset;left:0}.dark .vue-flow__minimap{background-color:#000000ba;border-color:#393939}.dark .vue-flow__minimap-mask{opacity:.2}.dark .vue-flow__background.vue-flow__container pattern circle{fill:#2b2b2b}.slide-fade-enter-active,.slide-fade-leave-active{transition:all .3s ease-out}.slide-fade-enter-from,.slide-fade-leave-to{transform:translate(20px);opacity:0}.control-menu{box-shadow:0 2px 4px #00000012}.control-menu .vue-flow__controls{position:relative;display:flex;margin:0}.control-menu .vue-flow__controls .vue-flow__controls-button{width:22px;height:22px;border-bottom:none}.control-menu .vue-flow__controls .vue-flow__controls-button:disabled{opacity:.2}.dark .control-menu .vue-flow__controls .vue-flow__controls-button{background:var(--muted)}.dark .control-menu .vue-flow__controls .vue-flow__controls-button:disabled{opacity:.4}.dark .control-menu .vue-flow__controls .vue-flow__controls-button svg{color:var(--muted-foreground)}.vue-flow__node{background:var(--card);border:1px solid var(--border)}.vue-flow__nodes .vue-flow__node-start{display:flex;align-items:center;justify-content:center;aspect-ratio:1;background-color:#4bdb76;color:#111827;border-radius:1000px;border-color:#1bae25;padding:1rem;font-weight:500;cursor:pointer;-webkit-user-select:none;user-select:none}.vue-flow__nodes .vue-flow__node-finish-flow,.vue-flow__nodes .vue-flow__node-confetti{display:flex;justify-content:center;align-items:center;border-radius:999px;aspect-ratio:1;width:85px}.vue-flow__nodes .vue-flow__node-start{background:linear-gradient(45deg,#059530,#5cf088)}.vue-flow__nodes .vue-flow__node-confetti{background:linear-gradient(45deg,#b61568,#f65ead)}.vue-flow__nodes .vue-flow__node-finish-flow{background:linear-gradient(45deg,#b61515,#f65e5e)}
|
|
1
|
+
.cm-editor{min-height:100%;max-height:200px;padding-block:calc(var(--spacing) * 1);padding-inline:calc(var(--spacing) * 3);border:1px solid var(--input);border-radius:calc(var(--radius) - 2px);background-color:var(--background);--tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, rgb(0 0 0 / .05));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);color:inherit;transition:all .15s cubic-bezier(.4,0,.2,1)}.cm-editor.cm-focused{outline:3px solid color-mix(in oklab,var(--ring) 50%,transparent);border-style:var(--tw-border-style);border-width:1px;--tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, rgb(0 0 0 / .05));border-color:var(--ring);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-ring-color: color-mix(in oklab, var(--ring) 50%, transparent)}.cm-line{padding:0!important}.cm-scroller{flex:1}.cm-interpolation{color:#235dff;background:#edf1ff;padding:4px 6px;border-radius:5px;font-weight:600}.dark .cm-editor{background-color:color-mix(in oklab,var(--input) 30%,transparent)}.dark .cm-interpolation{color:#bfbfff;background:#edf1ff26}.vue-flow{position:relative;width:100%;height:100%;overflow:hidden;z-index:0;direction:ltr}.vue-flow__container{position:absolute;height:100%;width:100%;left:0;top:0}.vue-flow__pane{z-index:1}.vue-flow__pane.draggable{cursor:grab}.vue-flow__pane.selection{cursor:pointer}.vue-flow__pane.dragging{cursor:grabbing}.vue-flow__transformationpane{transform-origin:0 0;z-index:2;pointer-events:none}.vue-flow__viewport{z-index:4;overflow:clip}.vue-flow__selection{z-index:6}.vue-flow__edge-labels{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vue-flow__nodesselection-rect:focus,.vue-flow__nodesselection-rect:focus-visible{outline:none}.vue-flow .vue-flow__edges{pointer-events:none;overflow:visible}.vue-flow__edge-path,.vue-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.vue-flow__edge{pointer-events:visibleStroke;cursor:pointer}.vue-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.vue-flow__edge.animated path.vue-flow__edge-interaction{stroke-dasharray:none;animation:none}.vue-flow__edge.inactive{pointer-events:none}.vue-flow__edge.selected,.vue-flow__edge:focus,.vue-flow__edge:focus-visible{outline:none}.vue-flow__edge.selected .vue-flow__edge-path,.vue-flow__edge:focus .vue-flow__edge-path,.vue-flow__edge:focus-visible .vue-flow__edge-path{stroke:#555}.vue-flow__edge-textwrapper{pointer-events:all}.vue-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vue-flow__connection{pointer-events:none}.vue-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.vue-flow__connectionline{z-index:1001}.vue-flow__nodes{pointer-events:none;transform-origin:0 0}.vue-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.vue-flow__node.draggable{cursor:grab;pointer-events:all}.vue-flow__node.draggable.dragging{cursor:grabbing}.vue-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.vue-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.vue-flow__nodesselection-rect.dragging{cursor:grabbing}.vue-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px}.vue-flow__handle.connectable{pointer-events:all;cursor:crosshair}.vue-flow__handle-bottom{left:50%;bottom:0;transform:translate(-50%,50%)}.vue-flow__handle-top{left:50%;top:0;transform:translate(-50%,-50%)}.vue-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.vue-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.vue-flow__edgeupdater{cursor:move;pointer-events:all}.vue-flow__panel{position:absolute;z-index:5;margin:15px}.vue-flow__panel.top{top:0}.vue-flow__panel.bottom{bottom:0}.vue-flow__panel.left{left:0}.vue-flow__panel.right{right:0}.vue-flow__panel.center{left:50%;transform:translate(-50%)}@keyframes dashdraw{0%{stroke-dashoffset:10}}:root{--vf-node-bg: #fff;--vf-node-text: #222;--vf-connection-path: #b1b1b7;--vf-handle: #555}.vue-flow__edge.updating .vue-flow__edge-path{stroke:#777}.vue-flow__edge-text{font-size:10px}.vue-flow__edge-textbg{fill:#fff}.vue-flow__connection-path{stroke:var(--vf-connection-path)}.vue-flow__node{cursor:grab}.vue-flow__node.selectable:focus,.vue-flow__node.selectable:focus-visible{outline:none}.vue-flow__node-default,.vue-flow__node-input,.vue-flow__node-output{padding:10px;border-radius:3px;width:150px;font-size:12px;text-align:center;border-width:1px;border-style:solid;color:var(--vf-node-text);background-color:var(--vf-node-bg);border-color:var(--vf-node-color)}.vue-flow__node-default.selected,.vue-flow__node-default.selected:hover,.vue-flow__node-input.selected,.vue-flow__node-input.selected:hover,.vue-flow__node-output.selected,.vue-flow__node-output.selected:hover{box-shadow:0 0 0 .5px var(--vf-box-shadow)}.vue-flow__node-default.selected,.vue-flow__node-default:focus,.vue-flow__node-default:focus-visible,.vue-flow__node-input.selected,.vue-flow__node-input:focus,.vue-flow__node-input:focus-visible,.vue-flow__node-output.selected,.vue-flow__node-output:focus,.vue-flow__node-output:focus-visible{outline:none;border:1px solid #555}.vue-flow__node-default .vue-flow__handle,.vue-flow__node-input .vue-flow__handle,.vue-flow__node-output .vue-flow__handle{background:var(--vf-handle)}.vue-flow__node-default.selectable:hover,.vue-flow__node-input.selectable:hover,.vue-flow__node-output.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.vue-flow__node-input{--vf-node-color: var(--vf-node-color, #0041d0);--vf-handle: var(--vf-node-color, #0041d0);--vf-box-shadow: var(--vf-node-color, #0041d0);background:var(--vf-node-bg);border-color:var(--vf-node-color, #0041d0)}.vue-flow__node-input.selected,.vue-flow__node-input:focus,.vue-flow__node-input:focus-visible{outline:none;border:1px solid var(--vf-node-color, #0041d0)}.vue-flow__node-default{--vf-handle: var(--vf-node-color, #1a192b);--vf-box-shadow: var(--vf-node-color, #1a192b);background:var(--vf-node-bg);border-color:var(--vf-node-color, #1a192b)}.vue-flow__node-default.selected,.vue-flow__node-default:focus,.vue-flow__node-default:focus-visible{outline:none;border:1px solid var(--vf-node-color, #1a192b)}.vue-flow__node-output{--vf-handle: var(--vf-node-color, #ff0072);--vf-box-shadow: var(--vf-node-color, #ff0072);background:var(--vf-node-bg);border-color:var(--vf-node-color, #ff0072)}.vue-flow__node-output.selected,.vue-flow__node-output:focus,.vue-flow__node-output:focus-visible{outline:none;border:1px solid var(--vf-node-color, #ff0072)}.vue-flow__nodesselection-rect,.vue-flow__selection{background:#0059dc14;border:1px dotted rgba(0,89,220,.8)}.vue-flow__nodesselection-rect:focus,.vue-flow__nodesselection-rect:focus-visible,.vue-flow__selection:focus,.vue-flow__selection:focus-visible{outline:none}.vue-flow__handle{width:6px;height:6px;background:var(--vf-handle);border:1px solid #fff;border-radius:100%}.vue-flow__controls{box-shadow:0 0 2px 1px #00000014}.vue-flow__controls-button{background:#fefefe;border:none;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;user-select:none;padding:5px}.vue-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.vue-flow__controls-button:hover{background:#f4f4f4}.vue-flow__controls-button:disabled{pointer-events:none}.vue-flow__controls-button:disabled svg{fill-opacity:.4}.vue-flow__minimap{background-color:#fff}.vue-flow__minimap.pannable{cursor:grab}.vue-flow__minimap.dragging{cursor:grabbing}.vue-flow__minimap-mask.pannable{cursor:grab}.vue-flow__background.vue-flow__container pattern circle{fill:#d6d6d6}.vue-flow__node{background-color:#fff;border:1px solid #ececec;border-radius:.5rem;box-shadow:0 2px 5px #0000001a;padding:.5rem;--focus-border-color: #a16aff}.vue-flow__node.selected,.vue-flow__node:focus,.vue-flow__node:focus-visible{border:2px solid var(--focus-border-color)}.vue-flow__handle{height:15px;border-radius:5px}.vue-flow__edge-path,.vue-flow__connection-path{stroke:#7b7b7b;stroke-width:2}.vue-flow__edge.selected .vue-flow__edge-path{stroke:#efefef}.vue-flow__minimap{border-radius:16px;overflow:hidden;border:2px solid #d8d8d8}.vue-flow__minimap.vue-flow__panel{right:unset;left:0}.dark .vue-flow__minimap{background-color:#000000ba;border-color:#393939}.dark .vue-flow__minimap-mask{opacity:.2}.dark .vue-flow__background.vue-flow__container pattern circle{fill:#2b2b2b}.slide-fade-enter-active,.slide-fade-leave-active{transition:all .3s ease-out}.slide-fade-enter-from,.slide-fade-leave-to{transform:translate(20px);opacity:0}.control-menu{box-shadow:0 2px 4px #00000012}.control-menu .vue-flow__controls{position:relative;display:flex;margin:0}.control-menu .vue-flow__controls .vue-flow__controls-button{width:22px;height:22px;border-bottom:none}.control-menu .vue-flow__controls .vue-flow__controls-button:disabled{opacity:.2}.dark .control-menu .vue-flow__controls .vue-flow__controls-button{background:var(--muted)}.dark .control-menu .vue-flow__controls .vue-flow__controls-button:disabled{opacity:.4}.dark .control-menu .vue-flow__controls .vue-flow__controls-button svg{color:var(--muted-foreground)}.vue-flow__node{background:var(--card);border:1px solid var(--border)}.vue-flow__nodes .vue-flow__node-start{display:flex;align-items:center;justify-content:center;aspect-ratio:1;background-color:#4bdb76;color:#111827;border-radius:1000px;border-color:#1bae25;padding:1rem;font-weight:500;cursor:pointer;-webkit-user-select:none;user-select:none}.vue-flow__nodes .vue-flow__node-finish-flow,.vue-flow__nodes .vue-flow__node-confetti{display:flex;justify-content:center;align-items:center;border-radius:999px;aspect-ratio:1;width:85px}.vue-flow__nodes .vue-flow__node-start{background:linear-gradient(45deg,#059530,#5cf088)}.vue-flow__nodes .vue-flow__node-confetti{background:linear-gradient(45deg,#b61568,#f65ead)}.vue-flow__nodes .vue-flow__node-finish-flow{background:linear-gradient(45deg,#b61515,#f65e5e)}.rich-text-editor{display:flex;flex-direction:column;border:1px solid var(--input);border-radius:.5rem;background-color:var(--background);overflow:hidden;transition:border-color .2s ease,box-shadow .2s ease;&--disabled{opacity:.6;pointer-events:none;background-color:var(--muted)}}.rich-text-editor:focus-within{border-color:var(--ring);box-shadow:0 0 0 3px color-mix(in oklab,var(--ring) 20%,transparent)}.rich-text-editor .rich-text-editor__toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem;padding:.5rem;border-bottom:1px solid var(--border);background-color:var(--muted)}.rich-text-editor .toolbar-group{display:flex;gap:.125rem}.rich-text-editor .toolbar-divider{width:1px;height:1.5rem;background-color:var(--border);margin:0 .25rem}.rich-text-editor .toolbar-spacer{flex:1}.rich-text-editor .toolbar-btn{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0;border:none;border-radius:.375rem;background-color:transparent;color:var(--muted-foreground);cursor:pointer;transition:all .15s ease;&--active{background-color:var(--primary)!important;color:var(--primary-foreground)!important}}.rich-text-editor .toolbar-btn:hover:not(:disabled){background-color:var(--accent);color:var(--accent-foreground)}.rich-text-editor .toolbar-btn:active:not(:disabled){transform:scale(.95)}.rich-text-editor .toolbar-btn:disabled{opacity:.4;cursor:not-allowed}.rich-text-editor .rich-text-editor__content{flex:1;display:flex;flex-direction:column}.rich-text-editor .rich-text-editor__content .ProseMirror{flex:1;min-height:var(--min-height, 8rem);max-height:24rem;overflow-y:auto;padding:.75rem 1rem;outline:none;font-size:.9375rem;line-height:1.625}.rich-text-editor .rich-text-editor__content .ProseMirror p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;color:var(--muted-foreground);pointer-events:none;height:0}.rich-text-editor .rich-text-editor__content .ProseMirror>*+*{margin-top:.5em}.rich-text-editor .rich-text-editor__content .ProseMirror p{margin:0}.rich-text-editor .rich-text-editor__content .ProseMirror h1{font-size:1.75rem;font-weight:700;line-height:1.2;margin:1.5rem 0 .75rem}.rich-text-editor .rich-text-editor__content .ProseMirror h1:first-child{margin-top:0}.rich-text-editor .rich-text-editor__content .ProseMirror h2{font-size:1.375rem;font-weight:600;line-height:1.3;margin:1.25rem 0 .625rem}.rich-text-editor .rich-text-editor__content .ProseMirror h2:first-child{margin-top:0}.rich-text-editor .rich-text-editor__content .ProseMirror h3{font-size:1.125rem;font-weight:600;line-height:1.4;margin:1rem 0 .5rem}.rich-text-editor .rich-text-editor__content .ProseMirror h3:first-child{margin-top:0}.rich-text-editor .rich-text-editor__content .ProseMirror ul,.rich-text-editor .rich-text-editor__content .ProseMirror ol{padding-left:1.5rem;margin:.5rem 0}:is(.rich-text-editor .rich-text-editor__content .ProseMirror ul,.rich-text-editor .rich-text-editor__content .ProseMirror ol) li{margin:.25rem 0}:is(.rich-text-editor .rich-text-editor__content .ProseMirror ul,.rich-text-editor .rich-text-editor__content .ProseMirror ol) li p{margin:0}.rich-text-editor .rich-text-editor__content .ProseMirror ul{list-style-type:disc}.rich-text-editor .rich-text-editor__content .ProseMirror ul ul{list-style-type:circle}.rich-text-editor .rich-text-editor__content .ProseMirror ul ul ul{list-style-type:square}.rich-text-editor .rich-text-editor__content .ProseMirror ol{list-style-type:decimal}.rich-text-editor .rich-text-editor__content .ProseMirror blockquote{border-left:3px solid var(--primary);padding-left:1rem;margin:1rem 0;color:var(--muted-foreground);font-style:italic}.rich-text-editor .rich-text-editor__content .ProseMirror code{background-color:var(--muted);padding:.125rem .375rem;border-radius:.25rem;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,monospace;font-size:.875em;color:var(--primary)}.rich-text-editor .rich-text-editor__content .ProseMirror pre{background-color:var(--muted);padding:.75rem 1rem;border-radius:.5rem;overflow-x:auto;margin:.75rem 0}.rich-text-editor .rich-text-editor__content .ProseMirror pre code{background:none;padding:0;color:inherit}.rich-text-editor .rich-text-editor__content .ProseMirror hr{border:none;border-top:2px solid var(--border);margin:1.5rem 0}.rich-text-editor .rich-text-editor__content .ProseMirror a{color:var(--primary);text-decoration:underline;text-underline-offset:2px;cursor:pointer}.rich-text-editor .rich-text-editor__content .ProseMirror a:hover{opacity:.8}.rich-text-editor .rich-text-editor__content .ProseMirror mark{background-color:#fef08a;padding:.125rem .25rem;border-radius:.125rem}.rich-text-editor .rich-text-editor__content .ProseMirror .text-left{text-align:left}.rich-text-editor .rich-text-editor__content .ProseMirror .text-center{text-align:center}.rich-text-editor .rich-text-editor__content .ProseMirror .text-right{text-align:right}.rich-text-editor .rich-text-editor__content .ProseMirror .text-justify{text-align:justify}.rich-text-editor .rich-text-editor__content .ProseMirror ::selection{background-color:color-mix(in oklab,var(--primary) 30%,transparent)}.rich-text-editor .rich-text-editor__footer{display:flex;align-items:center;justify-content:flex-end;padding:.375rem .75rem;border-top:1px solid var(--border);background-color:var(--muted)}.rich-text-editor .link-modal-overlay{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background-color:#00000080;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.rich-text-editor .link-modal{background-color:var(--popover);border:1px solid var(--border);border-radius:.75rem;padding:1.25rem;min-width:320px;box-shadow:0 10px 40px #0003}.rich-text-editor .link-input{width:100%;padding:.625rem .875rem;border:1px solid var(--input);border-radius:.375rem;background-color:var(--background);font-size:.875rem;outline:none;transition:border-color .2s ease,box-shadow .2s ease}.rich-text-editor .link-input:focus{border-color:var(--ring);box-shadow:0 0 0 3px color-mix(in oklab,var(--ring) 20%,transparent)}.rich-text-editor .link-input::placeholder{color:var(--muted-foreground)}.rich-text-editor .link-modal-btn{padding:.5rem 1rem;border-radius:.375rem;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .15s ease;&--secondary{background-color:transparent;border:1px solid var(--border);color:var(--foreground);&:hover{background-color:var(--accent)}}&--primary{background-color:var(--primary);border:none;color:var(--primary-foreground);&:hover{opacity:.9}}}.rich-text-editor .fade-enter-active,.rich-text-editor .fade-leave-active{transition:opacity .2s ease}.rich-text-editor .fade-enter-from,.rich-text-editor .fade-leave-to{opacity:0}.rich-text-editor .scale-fade-enter-active,.rich-text-editor .scale-fade-leave-active{transition:all .2s ease}.rich-text-editor .scale-fade-enter-from,.rich-text-editor .scale-fade-leave-to{opacity:0;transform:scale(.95) translateY(-4px)}.rich-text-editor .toolbar-btn--ai{background:linear-gradient(135deg,color-mix(in oklab,var(--primary) 15%,transparent),color-mix(in oklab,var(--primary) 5%,transparent));border:1px solid color-mix(in oklab,var(--primary) 30%,transparent);padding-left:.5rem;padding-right:.5rem;width:auto}.rich-text-editor .toolbar-btn--ai:hover:not(:disabled){background:linear-gradient(135deg,color-mix(in oklab,var(--primary) 25%,transparent),color-mix(in oklab,var(--primary) 15%,transparent));border-color:color-mix(in oklab,var(--primary) 50%,transparent)}.rich-text-editor .toolbar-btn--ai.toolbar-btn--active{background:var(--primary);border-color:var(--primary)}.dark .rich-text-editor .rich-text-editor__content .ProseMirror mark{background-color:#854d0e}.dark .link-modal-overlay,.dark .ai-panel-overlay{background-color:#000000b3}.dark .rich-text-editor-ai-popover .ai-menu{box-shadow:0 10px 40px #0006,0 0 0 1px #ffffff0d}.dark .ai-panel{box-shadow:0 20px 60px #00000080}.rich-text-editor-ai-popover .ai-menu{position:absolute;top:calc(100% + .5rem);right:0;z-index:100;width:320px;max-height:480px;overflow-y:auto;background-color:var(--popover);border:1px solid var(--border);border-radius:.75rem;box-shadow:0 10px 40px #00000026,0 0 0 1px #0000000d;&__header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid var(--border);background:linear-gradient(135deg,color-mix(in oklab,var(--primary) 8%,transparent),transparent)}&__close{display:flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;border:none;border-radius:.25rem;background:transparent;color:var(--muted-foreground);cursor:pointer;transition:all .15s ease;&:hover{background-color:var(--accent);color:var(--foreground)}}&__selection{padding:.75rem 1rem;background-color:var(--muted);border-bottom:1px solid var(--border);p{margin-top:.25rem;color:var(--foreground)}}&__custom{display:flex;gap:.5rem;padding:.75rem 1rem;border-bottom:1px solid var(--border)}&__input{flex:1;padding:.5rem .75rem;border:1px solid var(--input);border-radius:.375rem;background-color:var(--background);font-size:.8125rem;outline:none;transition:all .15s ease;&:focus{border-color:var(--ring);box-shadow:0 0 0 2px color-mix(in oklab,var(--ring) 20%,transparent)}&::placeholder{color:var(--muted-foreground)}}&__submit{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:none;border-radius:.375rem;background:var(--primary);color:var(--primary-foreground);cursor:pointer;transition:all .15s ease;&:hover:not(:disabled){opacity:.9}&:disabled{opacity:.5;cursor:not-allowed}}&__divider{height:1px;background-color:var(--border);margin:.25rem 0}&__section{padding:.5rem;&-title{display:block;padding:.25rem .5rem;font-size:.6875rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--muted-foreground)}}&__actions{display:flex;flex-direction:column;gap:.125rem}&__action{display:flex;align-items:center;gap:.75rem;width:100%;padding:.5rem;border:none;border-radius:.375rem;background:transparent;text-align:left;cursor:pointer;transition:all .15s ease;&:hover{background-color:var(--accent)}&-text{display:flex;flex-direction:column;gap:.125rem}&-label{font-size:.8125rem;font-weight:500;color:var(--foreground)}&-desc{font-size:.6875rem;color:var(--muted-foreground)}}&__translate{display:flex;gap:.5rem;padding:.25rem .5rem .5rem}&__language-selector{position:relative;flex:1}&__language-btn{display:flex;align-items:center;gap:.5rem;width:100%;padding:.5rem .75rem;border:1px solid var(--input);border-radius:.375rem;background-color:var(--background);font-size:.8125rem;cursor:pointer;transition:all .15s ease;span{flex:1;text-align:left}&:hover{border-color:var(--ring)}}&__language-dropdown{position:absolute;top:calc(100% + .25rem);left:0;right:0;z-index:10;max-height:200px;overflow-y:auto;background-color:var(--popover);border:1px solid var(--border);border-radius:.375rem;box-shadow:0 4px 12px #0000001a}&__language-option{display:block;width:100%;padding:.5rem .75rem;border:none;background:transparent;font-size:.8125rem;text-align:left;cursor:pointer;transition:background-color .15s ease;&:hover{background-color:var(--accent)}&--active{background-color:color-mix(in oklab,var(--primary) 15%,transparent);color:var(--primary);font-weight:500}}&__translate-btn{padding:.5rem 1rem;border:none;border-radius:.375rem;background:var(--primary);color:var(--primary-foreground);font-size:.8125rem;font-weight:500;cursor:pointer;transition:all .15s ease;&:hover{opacity:.9}}}
|