lumina-slides 8.9.3 → 8.9.4
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/IMPLEMENTATION.md +126 -1
- package/dist/lumina-slides.js +1111 -1111
- package/dist/lumina-slides.umd.cjs +20 -20
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -13,19 +13,19 @@
|
|
|
13
13
|
**/const Cs=[];function V2(t){Cs.push(t)}function F2(){Cs.pop()}let og=!1;function jq(t,...e){if(og)return;og=!0,xi();const n=Cs.length?Cs[Cs.length-1].component:null,r=n&&n.appContext.config.warnHandler,i=z2();if(r)As(r,n,11,[t+e.map(o=>{var s,a;return(a=(s=o.toString)==null?void 0:s.call(o))!=null?a:JSON.stringify(o)}).join(""),n&&n.proxy,i.map(({vnode:o})=>`at <${L_(n,o.type)}>`).join(`
|
|
14
14
|
`),i]);else{const o=[`[Vue warn]: ${t}`,...e];i.length&&o.push(`
|
|
15
15
|
`,...U2(i)),console.warn(...o)}wi(),og=!1}function z2(){let t=Cs[Cs.length-1];if(!t)return[];const e=[];for(;t;){const n=e[0];n&&n.vnode===t?n.recurseCount++:e.push({vnode:t,recurseCount:0});const r=t.component&&t.component.parent;t=r&&r.vnode}return e}function U2(t){const e=[];return t.forEach((n,r)=>{e.push(...r===0?[]:[`
|
|
16
|
-
`],...B2(n))}),e}function B2({vnode:t,recurseCount:e}){const n=e>0?`... (${e} recursive calls)`:"",r=t.component?t.component.parent==null:!1,i=` at <${L_(t.component,t.type,r)}`,o=">"+n;return t.props?[i,...j2(t.props),o]:[i+o]}function j2(t){const e=[],n=Object.keys(t);return n.slice(0,3).forEach(r=>{e.push(...vb(r,t[r]))}),n.length>3&&e.push(" ..."),e}function vb(t,e,n){return Dt(e)?(e=JSON.stringify(e),n?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?n?e:[`${t}=${e}`]:Yt(e)?(e=vb(t,vt(e.value),!0),n?e:[`${t}=Ref<`,e,">"]):tt(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=vt(e),n?e:[`${t}=`,e])}function H2(t,e){}const G2={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},W2={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function As(t,e,n,r){try{return r?t(...r):t()}catch(i){Ps(i,e,n)}}function jr(t,e,n,r){if(tt(t)){const i=As(t,e,n,r);return i&&jp(i)&&i.catch(o=>{Ps(o,e,n)}),i}if(ze(t)){const i=[];for(let o=0;o<t.length;o++)i.push(jr(t[o],e,n,r));return i}}function Ps(t,e,n,r=!0){const i=e?e.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=e&&e.appContext.config||ut;if(e){let a=e.parent;const l=e.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](t,l,u)===!1)return}a=a.parent}if(o){xi(),As(o,null,10,[t,l,u]),wi();return}}K2(t,n,i,r,s)}function K2(t,e,n,r=!0,i=!1){if(i)throw t;console.error(t)}const or=[];let Ti=-1;const La=[];let Ro=null,Va=0;const yb=Promise.resolve();let $d=null;function pr(t){const e=$d||yb;return t?e.then(this?t.bind(this):t):e}function Z2(t){let e=Ti+1,n=or.length;for(;e<n;){const r=e+n>>>1,i=or[r],o=bu(i);o<t||o===t&&i.flags&2?e=r+1:n=r}return e}function sg(t){if(!(t.flags&1)){const e=bu(t),n=or[or.length-1];!n||!(t.flags&2)&&e>=bu(n)?or.push(t):or.splice(Z2(e),0,t),t.flags|=1,bb()}}function bb(){$d||($d=yb.then(xb))}function yu(t){ze(t)?La.push(...t):Ro&&t.id===-1?Ro.splice(Va+1,0,t):t.flags&1||(La.push(t),t.flags|=1),bb()}function _b(t,e,n=Ti+1){for(;n<or.length;n++){const r=or[n];if(r&&r.flags&2){if(t&&r.id!==t.uid)continue;or.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Dd(t){if(La.length){const e=[...new Set(La)].sort((n,r)=>bu(n)-bu(r));if(La.length=0,Ro){Ro.push(...e);return}for(Ro=e,Va=0;Va<Ro.length;Va++){const n=Ro[Va];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ro=null,Va=0}}const bu=t=>t.id==null?t.flags&2?-1:1/0:t.id;function xb(t){try{for(Ti=0;Ti<or.length;Ti++){const e=or[Ti];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),As(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;Ti<or.length;Ti++){const e=or[Ti];e&&(e.flags&=-2)}Ti=-1,or.length=0,Dd(),$d=null,(or.length||La.length)&&xb()}}let Fa,Md=[];function wb(t,e){var n,r;Fa=t,Fa?(Fa.enabled=!0,Md.forEach(({event:i,args:o})=>Fa.emit(i,...o)),Md=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{wb(o,e)}),setTimeout(()=>{Fa||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Md=[])},3e3)):Md=[]}let Dn=null,Ld=null;function _u(t){const e=Dn;return Dn=t,Ld=t&&t.type.__scopeId||null,e}function X2(t){Ld=t}function Y2(){Ld=null}const J2=t=>ke;function ke(t,e=Dn,n){if(!e||t._n)return t;const r=(...i)=>{r._d&&ku(-1);const o=_u(e);let s;try{s=t(...i)}finally{_u(o),r._d&&ku(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function za(t,e){if(Dn===null)return t;const n=Ou(Dn),r=t.dirs||(t.dirs=[]);for(let i=0;i<e.length;i++){let[o,s,a,l=ut]=e[i];o&&(tt(o)&&(o={mounted:o,updated:o}),o.deep&&eo(s),r.push({dir:o,instance:n,value:s,oldValue:void 0,arg:a,modifiers:l}))}return t}function Ii(t,e,n,r){const i=t.dirs,o=e&&e.dirs;for(let s=0;s<i.length;s++){const a=i[s];o&&(a.oldValue=o[s].value);let l=a.dir[r];l&&(xi(),jr(l,n,8,[t.el,a,t,e]),wi())}}function to(t,e){if(Mn){let n=Mn.provides;const r=Mn.parent&&Mn.parent.provides;r===n&&(n=Mn.provides=Object.create(r)),n[t]=e}}function yt(t,e,n=!1){const r=_n();if(r||ks){let i=ks?ks._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&t in i)return i[t];if(arguments.length>1)return n&&tt(e)?e.call(r&&r.proxy):e}}function Q2(){return!!(_n()||ks)}const Sb=Symbol.for("v-scx"),Eb=()=>yt(Sb);function Tb(t,e){return xu(t,null,e)}function q2(t,e){return xu(t,null,{flush:"post"})}function Ib(t,e){return xu(t,null,{flush:"sync"})}function Qe(t,e,n){return xu(t,e,n)}function xu(t,e,n=ut){const{immediate:r,deep:i,flush:o,once:s}=n,a=Nt({},n),l=e&&r||!e&&o!=="post";let u;if(Ka){if(o==="sync"){const p=Eb();u=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=Br,p.resume=Br,p.pause=Br,p}}const c=Mn;a.call=(p,g,m)=>jr(p,c,g,m);let d=!1;o==="post"?a.scheduler=p=>{bn(p,c&&c.suspense)}:o!=="sync"&&(d=!0,a.scheduler=(p,g)=>{g?p():sg(p)}),a.augmentJob=p=>{e&&(p.flags|=4),d&&(p.flags|=2,c&&(p.id=c.uid,p.i=c))};const h=L2(t,e,a);return Ka&&(u?u.push(h):l&&h()),h}function ek(t,e,n){const r=this.proxy,i=Dt(t)?t.includes(".")?Cb(r,t):()=>r[t]:t.bind(r,r);let o;tt(e)?o=e:(o=e.handler,n=e);const s=$s(this),a=xu(i,o.bind(r),n);return s(),a}function Cb(t,e){const n=e.split(".");return()=>{let r=t;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}const Ab=Symbol("_vte"),Pb=t=>t.__isTeleport,wu=t=>t&&(t.disabled||t.disabled===""),kb=t=>t&&(t.defer||t.defer===""),Ob=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Nb=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,ag=(t,e)=>{const n=t&&t.to;return Dt(n)?e?e(n):null:n},Rb={name:"Teleport",__isTeleport:!0,process(t,e,n,r,i,o,s,a,l,u){const{mc:c,pc:d,pbc:h,o:{insert:p,querySelector:g,createText:m,createComment:_}}=u,E=wu(e.props);let{shapeFlag:w,children:v,dynamicChildren:y}=e;if(t==null){const k=e.el=m(""),$=e.anchor=m("");p(k,n,r),p($,n,r);const O=(x,N)=>{w&16&&c(v,x,N,i,o,s,a,l)},A=()=>{const x=e.target=ag(e.props,g),N=Db(x,e,m,p);x&&(s!=="svg"&&Ob(x)?s="svg":s!=="mathml"&&Nb(x)&&(s="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(x),E||(O(x,N),Fd(e,!1)))};E&&(O(n,$),Fd(e,!0)),kb(e.props)?(e.el.__isMounted=!1,bn(()=>{A(),delete e.el.__isMounted},o)):A()}else{if(kb(e.props)&&t.el.__isMounted===!1){bn(()=>{Rb.process(t,e,n,r,i,o,s,a,l,u)},o);return}e.el=t.el,e.targetStart=t.targetStart;const k=e.anchor=t.anchor,$=e.target=t.target,O=e.targetAnchor=t.targetAnchor,A=wu(t.props),x=A?n:$,N=A?k:O;if(s==="svg"||Ob($)?s="svg":(s==="mathml"||Nb($))&&(s="mathml"),y?(h(t.dynamicChildren,y,x,i,o,s,a),Ag(t,e,!0)):l||d(t,e,x,N,i,o,s,a,!1),E)A?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):Vd(e,n,k,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const P=e.target=ag(e.props,g);P&&Vd(e,P,null,u,0)}else A&&Vd(e,$,O,u,1);Fd(e,E)}},remove(t,e,n,{um:r,o:{remove:i}},o){const{shapeFlag:s,children:a,anchor:l,targetStart:u,targetAnchor:c,target:d,props:h}=t;if(d&&(i(u),i(c)),o&&i(l),s&16){const p=o||!wu(h);for(let g=0;g<a.length;g++){const m=a[g];r(m,e,n,p,!!m.dynamicChildren)}}},move:Vd,hydrate:tk};function Vd(t,e,n,{o:{insert:r},m:i},o=2){o===0&&r(t.targetAnchor,e,n);const{el:s,anchor:a,shapeFlag:l,children:u,props:c}=t,d=o===2;if(d&&r(s,e,n),(!d||wu(c))&&l&16)for(let h=0;h<u.length;h++)i(u[h],e,n,2);d&&r(a,e,n)}function tk(t,e,n,r,i,o,{o:{nextSibling:s,parentNode:a,querySelector:l,insert:u,createText:c}},d){function h(m,_,E,w){_.anchor=d(s(m),_,a(m),n,r,i,o),_.targetStart=E,_.targetAnchor=w}const p=e.target=ag(e.props,l),g=wu(e.props);if(p){const m=p._lpa||p.firstChild;if(e.shapeFlag&16)if(g)h(t,e,m,m&&s(m));else{e.anchor=s(t);let _=m;for(;_;){if(_&&_.nodeType===8){if(_.data==="teleport start anchor")e.targetStart=_;else if(_.data==="teleport anchor"){e.targetAnchor=_,p._lpa=e.targetAnchor&&s(e.targetAnchor);break}}_=s(_)}e.targetAnchor||Db(p,e,c,u),d(m&&s(m),e,p,n,r,i,o)}Fd(e,g)}else g&&e.shapeFlag&16&&h(t,e,t,s(t));return e.anchor&&s(e.anchor)}const $b=Rb;function Fd(t,e){const n=t.ctx;if(n&&n.ut){let r,i;for(e?(r=t.el,i=t.anchor):(r=t.targetStart,i=t.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Db(t,e,n,r){const i=e.targetStart=n(""),o=e.targetAnchor=n("");return i[Ab]=o,t&&(r(i,t),r(o,t)),o}const no=Symbol("_leaveCb"),zd=Symbol("_enterCb");function lg(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return jt(()=>{t.isMounted=!0}),Ga(()=>{t.isUnmounting=!0}),t}const Hr=[Function,Array],ug={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Hr,onEnter:Hr,onAfterEnter:Hr,onEnterCancelled:Hr,onBeforeLeave:Hr,onLeave:Hr,onAfterLeave:Hr,onLeaveCancelled:Hr,onBeforeAppear:Hr,onAppear:Hr,onAfterAppear:Hr,onAppearCancelled:Hr},Mb=t=>{const e=t.subTree;return e.component?Mb(e.component):e},nk={name:"BaseTransition",props:ug,setup(t,{slots:e}){const n=_n(),r=lg();return()=>{const i=e.default&&Ud(e.default(),!0);if(!i||!i.length)return;const o=Lb(i),s=vt(t),{mode:a}=s;if(r.isLeaving)return cg(o);const l=zb(o);if(!l)return cg(o);let u=Ua(l,s,r,n,d=>u=d);l.type!==mn&&ro(l,u);let c=n.subTree&&zb(n.subTree);if(c&&c.type!==mn&&!oi(c,l)&&Mb(n).type!==mn){let d=Ua(c,s,r,n);if(ro(c,d),a==="out-in"&&l.type!==mn)return r.isLeaving=!0,d.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,c=void 0},cg(o);a==="in-out"&&l.type!==mn?d.delayLeave=(h,p,g)=>{const m=Fb(r,c);m[String(c.key)]=c,h[no]=()=>{p(),h[no]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{g(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return o}}};function Lb(t){let e=t[0];if(t.length>1){for(const n of t)if(n.type!==mn){e=n;break}}return e}const Vb=nk;function Fb(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function Ua(t,e,n,r,i){const{appear:o,mode:s,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:h,onLeave:p,onAfterLeave:g,onLeaveCancelled:m,onBeforeAppear:_,onAppear:E,onAfterAppear:w,onAppearCancelled:v}=e,y=String(t.key),k=Fb(n,t),$=(x,N)=>{x&&jr(x,r,9,N)},O=(x,N)=>{const P=N[1];$(x,N),ze(x)?x.every(b=>b.length<=1)&&P():x.length<=1&&P()},A={mode:s,persisted:a,beforeEnter(x){let N=l;if(!n.isMounted)if(o)N=_||l;else return;x[no]&&x[no](!0);const P=k[y];P&&oi(t,P)&&P.el[no]&&P.el[no](),$(N,[x])},enter(x){let N=u,P=c,b=d;if(!n.isMounted)if(o)N=E||u,P=w||c,b=v||d;else return;let S=!1;const I=x[zd]=V=>{S||(S=!0,V?$(b,[x]):$(P,[x]),A.delayedLeave&&A.delayedLeave(),x[zd]=void 0)};N?O(N,[x,I]):I()},leave(x,N){const P=String(t.key);if(x[zd]&&x[zd](!0),n.isUnmounting)return N();$(h,[x]);let b=!1;const S=x[no]=I=>{b||(b=!0,N(),I?$(m,[x]):$(g,[x]),x[no]=void 0,k[P]===t&&delete k[P])};k[P]=t,p?O(p,[x,S]):S()},clone(x){const N=Ua(x,e,n,r,i);return i&&i(N),N}};return A}function cg(t){if(Su(t))return t=Ci(t),t.children=null,t}function zb(t){if(!Su(t))return Pb(t.type)&&t.children?Lb(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:n}=t;if(n){if(e&16)return n[0];if(e&32&&tt(n.default))return n.default()}}function ro(t,e){t.shapeFlag&6&&t.component?(t.transition=e,ro(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Ud(t,e=!1,n){let r=[],i=0;for(let o=0;o<t.length;o++){let s=t[o];const a=n==null?s.key:String(n)+String(s.key!=null?s.key:o);s.type===Ue?(s.patchFlag&128&&i++,r=r.concat(Ud(s.children,e,a))):(e||s.type!==mn)&&r.push(a!=null?Ci(s,{key:a}):s)}if(i>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}function Te(t,e){return tt(t)?Nt({name:t.name},e,{setup:t}):t}function rk(){const t=_n();return t?(t.appContext.config.idPrefix||"v")+"-"+t.ids[0]+t.ids[1]++:""}function dg(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function ik(t){const e=_n(),n=Ei(null);if(e){const i=e.refs===ut?e.refs={}:e.refs;Object.defineProperty(i,t,{enumerable:!0,get:()=>n.value,set:o=>n.value=o})}return n}const Bd=new WeakMap;function Ba(t,e,n,r,i=!1){if(ze(t)){t.forEach((g,m)=>Ba(g,e&&(ze(e)?e[m]:e),n,r,i));return}if(io(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Ba(t,e,n,r.component.subTree);return}const o=r.shapeFlag&4?Ou(r.component):r.el,s=i?null:o,{i:a,r:l}=t,u=e&&e.r,c=a.refs===ut?a.refs={}:a.refs,d=a.setupState,h=vt(d),p=d===ut?U0:g=>Ct(h,g);if(u!=null&&u!==l){if(Ub(e),Dt(u))c[u]=null,p(u)&&(d[u]=null);else if(Yt(u)){u.value=null;const g=e;g.k&&(c[g.k]=null)}}if(tt(l))As(l,a,12,[s,c]);else{const g=Dt(l),m=Yt(l);if(g||m){const _=()=>{if(t.f){const E=g?p(l)?d[l]:c[l]:l.value;if(i)ze(E)&&Bp(E,o);else if(ze(E))E.includes(o)||E.push(o);else if(g)c[l]=[o],p(l)&&(d[l]=c[l]);else{const w=[o];l.value=w,t.k&&(c[t.k]=w)}}else g?(c[l]=s,p(l)&&(d[l]=s)):m&&(l.value=s,t.k&&(c[t.k]=s))};if(s){const E=()=>{_(),Bd.delete(t)};E.id=-1,Bd.set(t,E),bn(E,n)}else Ub(t),_()}}}function Ub(t){const e=Bd.get(t);e&&(e.flags|=8,Bd.delete(t))}let Bb=!1;const ja=()=>{Bb||(console.error("Hydration completed but contains mismatches."),Bb=!0)},ok=t=>t.namespaceURI.includes("svg")&&t.tagName!=="foreignObject",sk=t=>t.namespaceURI.includes("MathML"),jd=t=>{if(t.nodeType===1){if(ok(t))return"svg";if(sk(t))return"mathml"}},Ha=t=>t.nodeType===8;function ak(t){const{mt:e,p:n,o:{patchProp:r,createText:i,nextSibling:o,parentNode:s,remove:a,insert:l,createComment:u}}=t,c=(v,y)=>{if(!y.hasChildNodes()){n(null,v,y),Dd(),y._vnode=v;return}d(y.firstChild,v,null,null,null),Dd(),y._vnode=v},d=(v,y,k,$,O,A=!1)=>{A=A||!!y.dynamicChildren;const x=Ha(v)&&v.data==="[",N=()=>m(v,y,k,$,O,x),{type:P,ref:b,shapeFlag:S,patchFlag:I}=y;let V=v.nodeType;y.el=v,I===-2&&(A=!1,y.dynamicChildren=null);let M=null;switch(P){case $o:V!==3?y.children===""?(l(y.el=i(""),s(v),v),M=v):M=N():(v.data!==y.children&&(ja(),v.data=y.children),M=o(v));break;case mn:w(v)?(M=o(v),E(y.el=v.content.firstChild,v,k)):V!==8||x?M=N():M=o(v);break;case Ns:if(x&&(v=o(v),V=v.nodeType),V===1||V===3){M=v;const H=!y.children.length;for(let G=0;G<y.staticCount;G++)H&&(y.children+=M.nodeType===1?M.outerHTML:M.data),G===y.staticCount-1&&(y.anchor=M),M=o(M);return x?o(M):M}else N();break;case Ue:x?M=g(v,y,k,$,O,A):M=N();break;default:if(S&1)(V!==1||y.type.toLowerCase()!==v.tagName.toLowerCase())&&!w(v)?M=N():M=h(v,y,k,$,O,A);else if(S&6){y.slotScopeIds=O;const H=s(v);if(x?M=_(v):Ha(v)&&v.data==="teleport start"?M=_(v,v.data,"teleport end"):M=o(v),e(y,H,null,k,$,jd(H),A),io(y)&&!y.type.__asyncResolved){let G;x?(G=ue(Ue),G.anchor=M?M.previousSibling:H.lastChild):G=v.nodeType===3?bt(""):ue("div"),G.el=v,y.component.subTree=G}}else S&64?V!==8?M=N():M=y.type.hydrate(v,y,k,$,O,A,t,p):S&128&&(M=y.type.hydrate(v,y,k,$,jd(s(v)),O,A,t,d))}return b!=null&&Ba(b,null,$,y),M},h=(v,y,k,$,O,A)=>{A=A||!!y.dynamicChildren;const{type:x,props:N,patchFlag:P,shapeFlag:b,dirs:S,transition:I}=y,V=x==="input"||x==="option";if(V||P!==-1){S&&Ii(y,null,k,"created");let M=!1;if(w(v)){M=S_(null,I)&&k&&k.vnode.props&&k.vnode.props.appear;const G=v.content.firstChild;if(M){const q=G.getAttribute("class");q&&(G.$cls=q),I.beforeEnter(G)}E(G,v,k),y.el=v=G}if(b&16&&!(N&&(N.innerHTML||N.textContent))){let G=p(v.firstChild,y,v,k,$,O,A);for(;G;){Hd(v,1)||ja();const q=G;G=G.nextSibling,a(q)}}else if(b&8){let G=y.children;G[0]===`
|
|
17
|
-
`&&(v.tagName==="PRE"||v.tagName==="TEXTAREA")&&(G=G.slice(1));const{textContent:
|
|
18
|
-
`)&&(Hd(v,0)||ja(),v.textContent=y.children)}if(N){if(V||!A||P&48){const G=v.tagName.includes("-");for(const q in N)(V&&(q.endsWith("value")||q==="indeterminate")||au(q)&&!ka(q)||q[0]==="."||G)&&r(v,q,null,N[q],void 0,k)}else if(N.onClick)r(v,"onClick",null,N.onClick,void 0,k);else if(P&4&&qi(N.style))for(const G in N.style)N.style[G]}let H;(H=N&&N.onVnodeBeforeMount)&&mr(H,k,y),S&&Ii(y,null,k,"beforeMount"),((H=N&&N.onVnodeMounted)||S||M)&&A_(()=>{H&&mr(H,k,y),M&&I.enter(v),S&&Ii(y,null,k,"mounted")},$)}return v.nextSibling},p=(v,y,k,$,O,A,x)=>{x=x||!!y.dynamicChildren;const N=y.children,P=N.length;for(let b=0;b<P;b++){const S=x?N[b]:N[b]=gr(N[b]),I=S.type===$o;v?(I&&!x&&b+1<P&&gr(N[b+1]).type===$o&&(l(i(v.data.slice(S.children.length)),k,o(v)),v.data=S.children),v=d(v,S,$,O,A,x)):I&&!S.children?l(S.el=i(""),k):(Hd(k,1)||ja(),n(null,S,k,null,$,O,jd(k),A))}return v},g=(v,y,k,$,O,A)=>{const{slotScopeIds:x}=y;x&&(O=O?O.concat(x):x);const N=s(v),P=p(o(v),y,N,k,$,O,A);return P&&Ha(P)&&P.data==="]"?o(y.anchor=P):(ja(),l(y.anchor=u("]"),N,P),P)},m=(v,y,k,$,O,A)=>{if(Hd(v.parentElement,1)||ja(),y.el=null,A){const P=_(v);for(;;){const b=o(v);if(b&&b!==P)a(b);else break}}const x=o(v),N=s(v);return a(v),n(null,y,N,x,k,$,jd(N),O),k&&(k.vnode.el=y.el,Qd(k,y.el)),x},_=(v,y="[",k="]")=>{let $=0;for(;v;)if(v=o(v),v&&Ha(v)&&(v.data===y&&$++,v.data===k)){if($===0)return o(v);$--}return v},E=(v,y,k)=>{const $=y.parentNode;$&&$.replaceChild(v,y);let O=k;for(;O;)O.vnode.el===y&&(O.vnode.el=O.subTree.el=v),O=O.parent},w=v=>v.nodeType===1&&v.tagName==="TEMPLATE";return[c,d]}const jb="data-allow-mismatch",lk={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Hd(t,e){if(e===0||e===1)for(;t&&!t.hasAttribute(jb);)t=t.parentElement;const n=t&&t.getAttribute(jb);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return e===0&&r.includes("children")?!0:r.includes(lk[e])}}const uk=wd().requestIdleCallback||(t=>setTimeout(t,1)),ck=wd().cancelIdleCallback||(t=>clearTimeout(t)),dk=(t=1e4)=>e=>{const n=uk(e,{timeout:t});return()=>ck(n)};function fk(t){const{top:e,left:n,bottom:r,right:i}=t.getBoundingClientRect(),{innerHeight:o,innerWidth:s}=window;return(e>0&&e<o||r>0&&r<o)&&(n>0&&n<s||i>0&&i<s)}const hk=t=>(e,n)=>{const r=new IntersectionObserver(i=>{for(const o of i)if(o.isIntersecting){r.disconnect(),e();break}},t);return n(i=>{if(i instanceof Element){if(fk(i))return e(),r.disconnect(),!1;r.observe(i)}}),()=>r.disconnect()},pk=t=>e=>{if(t){const n=matchMedia(t);if(n.matches)e();else return n.addEventListener("change",e,{once:!0}),()=>n.removeEventListener("change",e)}},gk=(t=[])=>(e,n)=>{Dt(t)&&(t=[t]);let r=!1;const i=s=>{r||(r=!0,o(),e(),s.target.dispatchEvent(new s.constructor(s.type,s)))},o=()=>{n(s=>{for(const a of t)s.removeEventListener(a,i)})};return n(s=>{for(const a of t)s.addEventListener(a,i,{once:!0})}),o};function mk(t,e){if(Ha(t)&&t.data==="["){let n=1,r=t.nextSibling;for(;r;){if(r.nodeType===1){if(e(r)===!1)break}else if(Ha(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else e(t)}const io=t=>!!t.type.__asyncLoader;function vk(t){tt(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:o,timeout:s,suspensible:a=!0,onError:l}=t;let u=null,c,d=0;const h=()=>(d++,u=null,p()),p=()=>{let g;return u||(g=u=e().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),l)return new Promise((_,E)=>{l(m,()=>_(h()),()=>E(m),d+1)});throw m}).then(m=>g!==u&&u?u:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),c=m,m)))};return Te({name:"AsyncComponentWrapper",__asyncLoader:p,__asyncHydrate(g,m,_){let E=!1;(m.bu||(m.bu=[])).push(()=>E=!0);const w=()=>{E||_()},v=o?()=>{const y=o(w,k=>mk(g,k));y&&(m.bum||(m.bum=[])).push(y)}:w;c?v():p().then(()=>!m.isUnmounted&&v())},get __asyncResolved(){return c},setup(){const g=Mn;if(dg(g),c)return()=>Gd(c,g);const m=v=>{u=null,Ps(v,g,13,!r)};if(a&&g.suspense||Ka)return p().then(v=>()=>Gd(v,g)).catch(v=>(m(v),()=>r?ue(r,{error:v}):null));const _=we(!1),E=we(),w=we(!!i);return i&&setTimeout(()=>{w.value=!1},i),s!=null&&setTimeout(()=>{if(!_.value&&!E.value){const v=new Error(`Async component timed out after ${s}ms.`);m(v),E.value=v}},s),p().then(()=>{_.value=!0,g.parent&&Su(g.parent.vnode)&&g.parent.update()}).catch(v=>{m(v),E.value=v}),()=>{if(_.value&&c)return Gd(c,g);if(E.value&&r)return ue(r,{error:E.value});if(n&&!w.value)return Gd(n,g)}}})}function Gd(t,e){const{ref:n,props:r,children:i,ce:o}=e.vnode,s=ue(t,r,i);return s.ref=n,s.ce=o,delete e.vnode.ce,s}const Su=t=>t.type.__isKeepAlive,yk={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=_n(),r=n.ctx;if(!r.renderer)return()=>{const w=e.default&&e.default();return w&&w.length===1?w[0]:w};const i=new Map,o=new Set;let s=null;const a=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:d}}}=r,h=d("div");r.activate=(w,v,y,k,$)=>{const O=w.component;u(w,v,y,0,a),l(O.vnode,w,v,y,O,a,k,w.slotScopeIds,$),bn(()=>{O.isDeactivated=!1,O.a&&Oa(O.a);const A=w.props&&w.props.onVnodeMounted;A&&mr(A,O.parent,w)},a)},r.deactivate=w=>{const v=w.component;qd(v.m),qd(v.a),u(w,h,null,1,a),bn(()=>{v.da&&Oa(v.da);const y=w.props&&w.props.onVnodeUnmounted;y&&mr(y,v.parent,w),v.isDeactivated=!0},a)};function p(w){fg(w),c(w,n,a,!0)}function g(w){i.forEach((v,y)=>{const k=sf(io(v)?v.type.__asyncResolved||{}:v.type);k&&!w(k)&&m(y)})}function m(w){const v=i.get(w);v&&(!s||!oi(v,s))?p(v):s&&fg(s),i.delete(w),o.delete(w)}Qe(()=>[t.include,t.exclude],([w,v])=>{w&&g(y=>Eu(w,y)),v&&g(y=>!Eu(v,y))},{flush:"post",deep:!0});let _=null;const E=()=>{_!=null&&(ef(n.subTree.type)?bn(()=>{i.set(_,Wd(n.subTree))},n.subTree.suspense):i.set(_,Wd(n.subTree)))};return jt(E),Zd(E),Ga(()=>{i.forEach(w=>{const{subTree:v,suspense:y}=n,k=Wd(v);if(w.type===k.type&&w.key===k.key){fg(k);const $=k.component.da;$&&bn($,y);return}p(w)})}),()=>{if(_=null,!e.default)return s=null;const w=e.default(),v=w[0];if(w.length>1)return s=null,w;if(!so(v)||!(v.shapeFlag&4)&&!(v.shapeFlag&128))return s=null,v;let y=Wd(v);if(y.type===mn)return s=null,y;const k=y.type,$=sf(io(y)?y.type.__asyncResolved||{}:k),{include:O,exclude:A,max:x}=t;if(O&&(!$||!Eu(O,$))||A&&$&&Eu(A,$))return y.shapeFlag&=-257,s=y,v;const N=y.key==null?k:y.key,P=i.get(N);return y.el&&(y=Ci(y),v.shapeFlag&128&&(v.ssContent=y)),_=N,P?(y.el=P.el,y.component=P.component,y.transition&&ro(y,y.transition),y.shapeFlag|=512,o.delete(N),o.add(N)):(o.add(N),x&&o.size>parseInt(x,10)&&m(o.values().next().value)),y.shapeFlag|=256,s=y,ef(v.type)?v:y}}};function Eu(t,e){return ze(t)?t.some(n=>Eu(n,e)):Dt(t)?t.split(",").includes(e):WP(t)?(t.lastIndex=0,t.test(e)):!1}function Hb(t,e){Wb(t,"a",e)}function Gb(t,e){Wb(t,"da",e)}function Wb(t,e,n=Mn){const r=t.__wdc||(t.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(Kd(e,r,n),n){let i=n.parent;for(;i&&i.parent;)Su(i.parent.vnode)&&bk(r,e,n,i),i=i.parent}}function bk(t,e,n,r){const i=Kd(e,t,r,!0);sr(()=>{Bp(r[e],i)},n)}function fg(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function Wd(t){return t.shapeFlag&128?t.ssContent:t}function Kd(t,e,n=Mn,r=!1){if(n){const i=n[t]||(n[t]=[]),o=e.__weh||(e.__weh=(...s)=>{xi();const a=$s(n),l=jr(e,n,t,s);return a(),wi(),l});return r?i.unshift(o):i.push(o),o}}const oo=t=>(e,n=Mn)=>{(!Ka||t==="sp")&&Kd(t,(...r)=>e(...r),n)},hg=oo("bm"),jt=oo("m"),pg=oo("bu"),Zd=oo("u"),Ga=oo("bum"),sr=oo("um"),Kb=oo("sp"),Zb=oo("rtg"),Xb=oo("rtc");function Yb(t,e=Mn){Kd("ec",t,e)}const gg="components",_k="directives";function Pr(t,e){return mg(gg,t,!0,e)||t}const Jb=Symbol.for("v-ndc");function Xn(t){return Dt(t)?mg(gg,t,!1)||t:t||Jb}function xk(t){return mg(_k,t)}function mg(t,e,n=!0,r=!1){const i=Dn||Mn;if(i){const o=i.type;if(t===gg){const a=sf(o,!1);if(a&&(a===e||a===$n(e)||a===lu($n(e))))return o}const s=Qb(i[t]||o[t],e)||Qb(i.appContext[t],e);return!s&&r?o:s}}function Qb(t,e){return t&&(t[e]||t[$n(e)]||t[lu($n(e))])}function It(t,e,n,r){let i;const o=n&&n[r],s=ze(t);if(s||Dt(t)){const a=s&&qi(t);let l=!1,u=!1;a&&(l=!hr(t),u=Si(t),t=Cd(t)),i=new Array(t.length);for(let c=0,d=t.length;c<d;c++)i[c]=e(l?u?Ma(ii(t[c])):ii(t[c]):t[c],c,void 0,o&&o[c])}else if(typeof t=="number"){i=new Array(t);for(let a=0;a<t;a++)i[a]=e(a+1,a,void 0,o&&o[a])}else if(kt(t))if(t[Symbol.iterator])i=Array.from(t,(a,l)=>e(a,l,void 0,o&&o[l]));else{const a=Object.keys(t);i=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];i[l]=e(t[c],c,l,o&&o[l])}}else i=[];return n&&(n[r]=i),i}function wk(t,e){for(let n=0;n<e.length;n++){const r=e[n];if(ze(r))for(let i=0;i<r.length;i++)t[r[i].name]=r[i].fn;else r&&(t[r.name]=r.key?(...i)=>{const o=r.fn(...i);return o&&(o.key=r.key),o}:r.fn)}return t}function Mt(t,e,n={},r,i){if(Dn.ce||Dn.parent&&io(Dn.parent)&&Dn.parent.ce){const u=Object.keys(n).length>0;return e!=="default"&&(n.name=e),j(),$e(Ue,null,[ue("slot",n,r&&r())],u?-2:64)}let o=t[e];o&&o._c&&(o._d=!1),j();const s=o&&vg(o(n)),a=n.key||s&&s.key,l=$e(Ue,{key:(a&&!ni(a)?a:`_${e}`)+(!s&&r?"_fb":"")},s||(r?r():[]),s&&t._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function vg(t){return t.some(e=>so(e)?!(e.type===mn||e.type===Ue&&!vg(e.children)):!0)?t:null}function Sk(t,e){const n={};for(const r in t)n[e&&/[A-Z]/.test(r)?`on:${r}`:uu(r)]=t[r];return n}const yg=t=>t?R_(t)?Ou(t):yg(t.parent):null,Tu=Nt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>yg(t.parent),$root:t=>yg(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>wg(t),$forceUpdate:t=>t.f||(t.f=()=>{sg(t.update)}),$nextTick:t=>t.n||(t.n=pr.bind(t.proxy)),$watch:t=>ek.bind(t)}),bg=(t,e)=>t!==ut&&!t.__isScriptSetup&&Ct(t,e),_g={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:o,accessCache:s,type:a,appContext:l}=t;if(e[0]!=="$"){const h=s[e];if(h!==void 0)switch(h){case 1:return r[e];case 2:return i[e];case 4:return n[e];case 3:return o[e]}else{if(bg(r,e))return s[e]=1,r[e];if(i!==ut&&Ct(i,e))return s[e]=2,i[e];if(Ct(o,e))return s[e]=3,o[e];if(n!==ut&&Ct(n,e))return s[e]=4,n[e];xg&&(s[e]=0)}}const u=Tu[e];let c,d;if(u)return e==="$attrs"&&Zn(t.attrs,"get",""),u(t);if((c=a.__cssModules)&&(c=c[e]))return c;if(n!==ut&&Ct(n,e))return s[e]=4,n[e];if(d=l.config.globalProperties,Ct(d,e))return d[e]},set({_:t},e,n){const{data:r,setupState:i,ctx:o}=t;return bg(i,e)?(i[e]=n,!0):r!==ut&&Ct(r,e)?(r[e]=n,!0):Ct(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(o[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:i,props:o,type:s}},a){let l;return!!(n[a]||t!==ut&&a[0]!=="$"&&Ct(t,a)||bg(e,a)||Ct(o,a)||Ct(r,a)||Ct(Tu,a)||Ct(i.config.globalProperties,a)||(l=s.__cssModules)&&l[a])},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Ct(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}},Ek=Nt({},_g,{get(t,e){if(e!==Symbol.unscopables)return _g.get(t,e,t)},has(t,e){return e[0]!=="_"&&!YP(e)}});function Tk(){return null}function Ik(){return null}function Ck(t){}function Ak(t){}function Pk(){return null}function kk(){}function Ok(t,e){return null}function qb(){return t_().slots}function e_(){return t_().attrs}function t_(t){const e=_n();return e.setupContext||(e.setupContext=M_(e))}function Iu(t){return ze(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function Nk(t,e){const n=Iu(t);for(const r in e){if(r.startsWith("__skip"))continue;let i=n[r];i?ze(i)||tt(i)?i=n[r]={type:i,default:e[r]}:i.default=e[r]:i===null&&(i=n[r]={default:e[r]}),i&&e[`__skip_${r}`]&&(i.skipFactory=!0)}return n}function Rk(t,e){return!t||!e?t||e:ze(t)&&ze(e)?t.concat(e):Nt({},Iu(t),Iu(e))}function n_(t,e){const n={};for(const r in t)e.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>t[r]});return n}function $k(t){const e=_n();let n=t();return Rg(),jp(n)&&(n=n.catch(r=>{throw $s(e),r})),[n,()=>$s(e)]}let xg=!0;function Dk(t){const e=wg(t),n=t.proxy,r=t.ctx;xg=!1,e.beforeCreate&&r_(e.beforeCreate,t,"bc");const{data:i,computed:o,methods:s,watch:a,provide:l,inject:u,created:c,beforeMount:d,mounted:h,beforeUpdate:p,updated:g,activated:m,deactivated:_,beforeDestroy:E,beforeUnmount:w,destroyed:v,unmounted:y,render:k,renderTracked:$,renderTriggered:O,errorCaptured:A,serverPrefetch:x,expose:N,inheritAttrs:P,components:b,directives:S,filters:I}=e;if(u&&Mk(u,r,null),s)for(const H in s){const G=s[H];tt(G)&&(r[H]=G.bind(n))}if(i){const H=i.call(n,n);kt(H)&&(t.data=Ra(H))}if(xg=!0,o)for(const H in o){const G=o[H],q=tt(G)?G.bind(n,n):tt(G.get)?G.get.bind(n,n):Br,oe=!tt(G)&&tt(G.set)?G.set.bind(n):Br,ae=Z({get:q,set:oe});Object.defineProperty(r,H,{enumerable:!0,configurable:!0,get:()=>ae.value,set:he=>ae.value=he})}if(a)for(const H in a)i_(a[H],r,n,H);if(l){const H=tt(l)?l.call(n):l;Reflect.ownKeys(H).forEach(G=>{to(G,H[G])})}c&&r_(c,t,"c");function M(H,G){ze(G)?G.forEach(q=>H(q.bind(n))):G&&H(G.bind(n))}if(M(hg,d),M(jt,h),M(pg,p),M(Zd,g),M(Hb,m),M(Gb,_),M(Yb,A),M(Xb,$),M(Zb,O),M(Ga,w),M(sr,y),M(Kb,x),ze(N))if(N.length){const H=t.exposed||(t.exposed={});N.forEach(G=>{Object.defineProperty(H,G,{get:()=>n[G],set:q=>n[G]=q,enumerable:!0})})}else t.exposed||(t.exposed={});k&&t.render===Br&&(t.render=k),P!=null&&(t.inheritAttrs=P),b&&(t.components=b),S&&(t.directives=S),x&&dg(t)}function Mk(t,e,n=Br){ze(t)&&(t=Sg(t));for(const r in t){const i=t[r];let o;kt(i)?"default"in i?o=yt(i.from||r,i.default,!0):o=yt(i.from||r):o=yt(i),Yt(o)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):e[r]=o}}function r_(t,e,n){jr(ze(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function i_(t,e,n,r){let i=r.includes(".")?Cb(n,r):()=>n[r];if(Dt(t)){const o=e[t];tt(o)&&Qe(i,o)}else if(tt(t))Qe(i,t.bind(n));else if(kt(t))if(ze(t))t.forEach(o=>i_(o,e,n,r));else{const o=tt(t.handler)?t.handler.bind(n):e[t.handler];tt(o)&&Qe(i,o,t)}}function wg(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=t.appContext,a=o.get(e);let l;return a?l=a:!i.length&&!n&&!r?l=e:(l={},i.length&&i.forEach(u=>Xd(l,u,s,!0)),Xd(l,e,s)),kt(e)&&o.set(e,l),l}function Xd(t,e,n,r=!1){const{mixins:i,extends:o}=e;o&&Xd(t,o,n,!0),i&&i.forEach(s=>Xd(t,s,n,!0));for(const s in e)if(!(r&&s==="expose")){const a=Lk[s]||n&&n[s];t[s]=a?a(t[s],e[s]):e[s]}return t}const Lk={data:o_,props:s_,emits:s_,methods:Cu,computed:Cu,beforeCreate:ar,created:ar,beforeMount:ar,mounted:ar,beforeUpdate:ar,updated:ar,beforeDestroy:ar,beforeUnmount:ar,destroyed:ar,unmounted:ar,activated:ar,deactivated:ar,errorCaptured:ar,serverPrefetch:ar,components:Cu,directives:Cu,watch:Fk,provide:o_,inject:Vk};function o_(t,e){return e?t?function(){return Nt(tt(t)?t.call(this,this):t,tt(e)?e.call(this,this):e)}:e:t}function Vk(t,e){return Cu(Sg(t),Sg(e))}function Sg(t){if(ze(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function ar(t,e){return t?[...new Set([].concat(t,e))]:e}function Cu(t,e){return t?Nt(Object.create(null),t,e):e}function s_(t,e){return t?ze(t)&&ze(e)?[...new Set([...t,...e])]:Nt(Object.create(null),Iu(t),Iu(e??{})):e}function Fk(t,e){if(!t)return e;if(!e)return t;const n=Nt(Object.create(null),t);for(const r in e)n[r]=ar(t[r],e[r]);return n}function a_(){return{app:null,config:{isNativeTag:U0,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let zk=0;function Uk(t,e){return function(r,i=null){tt(r)||(r=Nt({},r)),i!=null&&!kt(i)&&(i=null);const o=a_(),s=new WeakSet,a=[];let l=!1;const u=o.app={_uid:zk++,_component:r,_props:i,_container:null,_context:o,_instance:null,version:V_,get config(){return o.config},set config(c){},use(c,...d){return s.has(c)||(c&&tt(c.install)?(s.add(c),c.install(u,...d)):tt(c)&&(s.add(c),c(u,...d))),u},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),u},component(c,d){return d?(o.components[c]=d,u):o.components[c]},directive(c,d){return d?(o.directives[c]=d,u):o.directives[c]},mount(c,d,h){if(!l){const p=u._ceVNode||ue(r,i);return p.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),d&&e?e(p,c):t(p,c,h),l=!0,u._container=c,c.__vue_app__=u,Ou(p.component)}},onUnmount(c){a.push(c)},unmount(){l&&(jr(a,u._instance,16),t(null,u._container),delete u._container.__vue_app__)},provide(c,d){return o.provides[c]=d,u},runWithContext(c){const d=ks;ks=u;try{return c()}finally{ks=d}}};return u}}let ks=null;function Bk(t,e,n=ut){const r=_n(),i=$n(e),o=fr(e),s=l_(t,i),a=ig((l,u)=>{let c,d=ut,h;return Ib(()=>{const p=t[i];ir(c,p)&&(c=p,u())}),{get(){return l(),n.get?n.get(c):c},set(p){const g=n.set?n.set(p):p;if(!ir(g,c)&&!(d!==ut&&ir(p,d)))return;const m=r.vnode.props;m&&(e in m||i in m||o in m)&&(`onUpdate:${e}`in m||`onUpdate:${i}`in m||`onUpdate:${o}`in m)||(c=p,u()),r.emit(`update:${e}`,g),ir(p,g)&&ir(p,d)&&!ir(g,h)&&u(),d=p,h=g}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?s||ut:a,done:!1}:{done:!0}}}},a}const l_=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${$n(e)}Modifiers`]||t[`${fr(e)}Modifiers`];function jk(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||ut;let i=n;const o=e.startsWith("update:"),s=o&&l_(r,e.slice(7));s&&(s.trim&&(i=n.map(c=>Dt(c)?c.trim():c)),s.number&&(i=n.map(_d)));let a,l=r[a=uu(e)]||r[a=uu($n(e))];!l&&o&&(l=r[a=uu(fr(e))]),l&&jr(l,t,6,i);const u=r[a+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,jr(u,t,6,i)}}const Hk=new WeakMap;function u_(t,e,n=!1){const r=n?Hk:e.emitsCache,i=r.get(t);if(i!==void 0)return i;const o=t.emits;let s={},a=!1;if(!tt(t)){const l=u=>{const c=u_(u,e,!0);c&&(a=!0,Nt(s,c))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!o&&!a?(kt(t)&&r.set(t,null),null):(ze(o)?o.forEach(l=>s[l]=null):Nt(s,o),kt(t)&&r.set(t,s),s)}function Yd(t,e){return!t||!au(e)?!1:(e=e.slice(2).replace(/Once$/,""),Ct(t,e[0].toLowerCase()+e.slice(1))||Ct(t,fr(e))||Ct(t,e))}function Gq(){}function Jd(t){const{type:e,vnode:n,proxy:r,withProxy:i,propsOptions:[o],slots:s,attrs:a,emit:l,render:u,renderCache:c,props:d,data:h,setupState:p,ctx:g,inheritAttrs:m}=t,_=_u(t);let E,w;try{if(n.shapeFlag&4){const y=i||r,k=y;E=gr(u.call(k,y,c,d,p,h,g)),w=a}else{const y=e;E=gr(y.length>1?y(d,{attrs:a,slots:s,emit:l}):y(d,null)),w=e.props?a:Wk(a)}}catch(y){Pu.length=0,Ps(y,t,1),E=ue(mn)}let v=E;if(w&&m!==!1){const y=Object.keys(w),{shapeFlag:k}=v;y.length&&k&7&&(o&&y.some(Up)&&(w=Kk(w,o)),v=Ci(v,w,!1,!0))}return n.dirs&&(v=Ci(v,null,!1,!0),v.dirs=v.dirs?v.dirs.concat(n.dirs):n.dirs),n.transition&&ro(v,n.transition),E=v,_u(_),E}function Gk(t,e=!0){let n;for(let r=0;r<t.length;r++){const i=t[r];if(so(i)){if(i.type!==mn||i.children==="v-if"){if(n)return;n=i}}else return}return n}const Wk=t=>{let e;for(const n in t)(n==="class"||n==="style"||au(n))&&((e||(e={}))[n]=t[n]);return e},Kk=(t,e)=>{const n={};for(const r in t)(!Up(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function Zk(t,e,n){const{props:r,children:i,component:o}=t,{props:s,children:a,patchFlag:l}=e,u=o.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?c_(r,s,u):!!s;if(l&8){const c=e.dynamicProps;for(let d=0;d<c.length;d++){const h=c[d];if(s[h]!==r[h]&&!Yd(u,h))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:r===s?!1:r?s?c_(r,s,u):!0:!!s;return!1}function c_(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(e[o]!==t[o]&&!Yd(n,o))return!0}return!1}function Qd({vnode:t,parent:e},n){for(;e;){const r=e.subTree;if(r.suspense&&r.suspense.activeBranch===t&&(r.el=t.el),r===t)(t=e.vnode).el=n,e=e.parent;else break}}const d_={},f_=()=>Object.create(d_),h_=t=>Object.getPrototypeOf(t)===d_;function Xk(t,e,n,r=!1){const i={},o=f_();t.propsDefaults=Object.create(null),p_(t,e,i,o);for(const s in t.propsOptions[0])s in i||(i[s]=void 0);n?t.props=r?i:fb(i):t.type.props?t.props=i:t.props=o,t.attrs=o}function Yk(t,e,n,r){const{props:i,attrs:o,vnode:{patchFlag:s}}=t,a=vt(i),[l]=t.propsOptions;let u=!1;if((r||s>0)&&!(s&16)){if(s&8){const c=t.vnode.dynamicProps;for(let d=0;d<c.length;d++){let h=c[d];if(Yd(t.emitsOptions,h))continue;const p=e[h];if(l)if(Ct(o,h))p!==o[h]&&(o[h]=p,u=!0);else{const g=$n(h);i[g]=Eg(l,a,g,p,t,!1)}else p!==o[h]&&(o[h]=p,u=!0)}}}else{p_(t,e,i,o)&&(u=!0);let c;for(const d in a)(!e||!Ct(e,d)&&((c=fr(d))===d||!Ct(e,c)))&&(l?n&&(n[d]!==void 0||n[c]!==void 0)&&(i[d]=Eg(l,a,d,void 0,t,!0)):delete i[d]);if(o!==a)for(const d in o)(!e||!Ct(e,d))&&(delete o[d],u=!0)}u&&Ji(t.attrs,"set","")}function p_(t,e,n,r){const[i,o]=t.propsOptions;let s=!1,a;if(e)for(let l in e){if(ka(l))continue;const u=e[l];let c;i&&Ct(i,c=$n(l))?!o||!o.includes(c)?n[c]=u:(a||(a={}))[c]=u:Yd(t.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,s=!0)}if(o){const l=vt(n),u=a||ut;for(let c=0;c<o.length;c++){const d=o[c];n[d]=Eg(i,l,d,u[d],t,!Ct(u,d))}}return s}function Eg(t,e,n,r,i,o){const s=t[n];if(s!=null){const a=Ct(s,"default");if(a&&r===void 0){const l=s.default;if(s.type!==Function&&!s.skipFactory&&tt(l)){const{propsDefaults:u}=i;if(n in u)r=u[n];else{const c=$s(i);r=u[n]=l.call(null,e),c()}}else r=l;i.ce&&i.ce._setProp(n,r)}s[0]&&(o&&!a?r=!1:s[1]&&(r===""||r===fr(n))&&(r=!0))}return r}const Jk=new WeakMap;function g_(t,e,n=!1){const r=n?Jk:e.propsCache,i=r.get(t);if(i)return i;const o=t.props,s={},a=[];let l=!1;if(!tt(t)){const c=d=>{l=!0;const[h,p]=g_(d,e,!0);Nt(s,h),p&&a.push(...p)};!n&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!o&&!l)return kt(t)&&r.set(t,Ca),Ca;if(ze(o))for(let c=0;c<o.length;c++){const d=$n(o[c]);m_(d)&&(s[d]=ut)}else if(o)for(const c in o){const d=$n(c);if(m_(d)){const h=o[c],p=s[d]=ze(h)||tt(h)?{type:h}:Nt({},h),g=p.type;let m=!1,_=!0;if(ze(g))for(let E=0;E<g.length;++E){const w=g[E],v=tt(w)&&w.name;if(v==="Boolean"){m=!0;break}else v==="String"&&(_=!1)}else m=tt(g)&&g.name==="Boolean";p[0]=m,p[1]=_,(m||Ct(p,"default"))&&a.push(d)}}const u=[s,a];return kt(t)&&r.set(t,u),u}function m_(t){return t[0]!=="$"&&!ka(t)}const Tg=t=>t==="_"||t==="_ctx"||t==="$stable",Ig=t=>ze(t)?t.map(gr):[gr(t)],Qk=(t,e,n)=>{if(e._n)return e;const r=ke((...i)=>Ig(e(...i)),n);return r._c=!1,r},v_=(t,e,n)=>{const r=t._ctx;for(const i in t){if(Tg(i))continue;const o=t[i];if(tt(o))e[i]=Qk(i,o,r);else if(o!=null){const s=Ig(o);e[i]=()=>s}}},y_=(t,e)=>{const n=Ig(e);t.slots.default=()=>n},b_=(t,e,n)=>{for(const r in e)(n||!Tg(r))&&(t[r]=e[r])},qk=(t,e,n)=>{const r=t.slots=f_();if(t.vnode.shapeFlag&32){const i=e._;i?(b_(r,e,n),n&&H0(r,"_",i,!0)):v_(e,r)}else e&&y_(t,e)},eO=(t,e,n)=>{const{vnode:r,slots:i}=t;let o=!0,s=ut;if(r.shapeFlag&32){const a=e._;a?n&&a===1?o=!1:b_(i,e,n):(o=!e.$stable,v_(e,i)),s=e}else e&&(y_(t,e),s={default:1});if(o)for(const a in i)!Tg(a)&&s[a]==null&&delete i[a]},bn=A_;function __(t){return w_(t)}function x_(t){return w_(t,ak)}function w_(t,e){const n=wd();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:s,createText:a,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:h,setScopeId:p=Br,insertStaticContent:g}=t,m=(B,D,L,z=null,F=null,W=null,ee=void 0,Y=null,te=!!D.dynamicChildren)=>{if(B===D)return;B&&!oi(B,D)&&(z=fe(B),he(B,F,W,!0),B=null),D.patchFlag===-2&&(te=!1,D.dynamicChildren=null);const{type:J,ref:ye,shapeFlag:pe}=D;switch(J){case $o:_(B,D,L,z);break;case mn:E(B,D,L,z);break;case Ns:B==null&&w(D,L,z,ee);break;case Ue:b(B,D,L,z,F,W,ee,Y,te);break;default:pe&1?k(B,D,L,z,F,W,ee,Y,te):pe&6?S(B,D,L,z,F,W,ee,Y,te):(pe&64||pe&128)&&J.process(B,D,L,z,F,W,ee,Y,te,Be)}ye!=null&&F?Ba(ye,B&&B.ref,W,D||B,!D):ye==null&&B&&B.ref!=null&&Ba(B.ref,null,W,B,!0)},_=(B,D,L,z)=>{if(B==null)r(D.el=a(D.children),L,z);else{const F=D.el=B.el;D.children!==B.children&&u(F,D.children)}},E=(B,D,L,z)=>{B==null?r(D.el=l(D.children||""),L,z):D.el=B.el},w=(B,D,L,z)=>{[B.el,B.anchor]=g(B.children,D,L,z,B.el,B.anchor)},v=({el:B,anchor:D},L,z)=>{let F;for(;B&&B!==D;)F=h(B),r(B,L,z),B=F;r(D,L,z)},y=({el:B,anchor:D})=>{let L;for(;B&&B!==D;)L=h(B),i(B),B=L;i(D)},k=(B,D,L,z,F,W,ee,Y,te)=>{if(D.type==="svg"?ee="svg":D.type==="math"&&(ee="mathml"),B==null)$(D,L,z,F,W,ee,Y,te);else{const J=B.el&&B.el._isVueCE?B.el:null;try{J&&J._beginPatch(),x(B,D,F,W,ee,Y,te)}finally{J&&J._endPatch()}}},$=(B,D,L,z,F,W,ee,Y)=>{let te,J;const{props:ye,shapeFlag:pe,transition:be,dirs:Me}=B;if(te=B.el=s(B.type,W,ye&&ye.is,ye),pe&8?c(te,B.children):pe&16&&A(B.children,te,null,z,F,Cg(B,W),ee,Y),Me&&Ii(B,null,z,"created"),O(te,B,B.scopeId,ee,z),ye){for(const gt in ye)gt!=="value"&&!ka(gt)&&o(te,gt,null,ye[gt],W,z);"value"in ye&&o(te,"value",null,ye.value,W),(J=ye.onVnodeBeforeMount)&&mr(J,z,B)}Me&&Ii(B,null,z,"beforeMount");const rt=S_(F,be);rt&&be.beforeEnter(te),r(te,D,L),((J=ye&&ye.onVnodeMounted)||rt||Me)&&bn(()=>{J&&mr(J,z,B),rt&&be.enter(te),Me&&Ii(B,null,z,"mounted")},F)},O=(B,D,L,z,F)=>{if(L&&p(B,L),z)for(let W=0;W<z.length;W++)p(B,z[W]);if(F){let W=F.subTree;if(D===W||ef(W.type)&&(W.ssContent===D||W.ssFallback===D)){const ee=F.vnode;O(B,ee,ee.scopeId,ee.slotScopeIds,F.parent)}}},A=(B,D,L,z,F,W,ee,Y,te=0)=>{for(let J=te;J<B.length;J++){const ye=B[J]=Y?Do(B[J]):gr(B[J]);m(null,ye,D,L,z,F,W,ee,Y)}},x=(B,D,L,z,F,W,ee)=>{const Y=D.el=B.el;let{patchFlag:te,dynamicChildren:J,dirs:ye}=D;te|=B.patchFlag&16;const pe=B.props||ut,be=D.props||ut;let Me;if(L&&Os(L,!1),(Me=be.onVnodeBeforeUpdate)&&mr(Me,L,D,B),ye&&Ii(D,B,L,"beforeUpdate"),L&&Os(L,!0),(pe.innerHTML&&be.innerHTML==null||pe.textContent&&be.textContent==null)&&c(Y,""),J?N(B.dynamicChildren,J,Y,L,z,Cg(D,F),W):ee||G(B,D,Y,null,L,z,Cg(D,F),W,!1),te>0){if(te&16)P(Y,pe,be,L,F);else if(te&2&&pe.class!==be.class&&o(Y,"class",null,be.class,F),te&4&&o(Y,"style",pe.style,be.style,F),te&8){const rt=D.dynamicProps;for(let gt=0;gt<rt.length;gt++){const X=rt[gt],Q=pe[X],ie=be[X];(ie!==Q||X==="value")&&o(Y,X,Q,ie,F,L)}}te&1&&B.children!==D.children&&c(Y,D.children)}else!ee&&J==null&&P(Y,pe,be,L,F);((Me=be.onVnodeUpdated)||ye)&&bn(()=>{Me&&mr(Me,L,D,B),ye&&Ii(D,B,L,"updated")},z)},N=(B,D,L,z,F,W,ee)=>{for(let Y=0;Y<D.length;Y++){const te=B[Y],J=D[Y],ye=te.el&&(te.type===Ue||!oi(te,J)||te.shapeFlag&198)?d(te.el):L;m(te,J,ye,null,z,F,W,ee,!0)}},P=(B,D,L,z,F)=>{if(D!==L){if(D!==ut)for(const W in D)!ka(W)&&!(W in L)&&o(B,W,D[W],null,F,z);for(const W in L){if(ka(W))continue;const ee=L[W],Y=D[W];ee!==Y&&W!=="value"&&o(B,W,Y,ee,F,z)}"value"in L&&o(B,"value",D.value,L.value,F)}},b=(B,D,L,z,F,W,ee,Y,te)=>{const J=D.el=B?B.el:a(""),ye=D.anchor=B?B.anchor:a("");let{patchFlag:pe,dynamicChildren:be,slotScopeIds:Me}=D;Me&&(Y=Y?Y.concat(Me):Me),B==null?(r(J,L,z),r(ye,L,z),A(D.children||[],L,ye,F,W,ee,Y,te)):pe>0&&pe&64&&be&&B.dynamicChildren&&B.dynamicChildren.length===be.length?(N(B.dynamicChildren,be,L,F,W,ee,Y),(D.key!=null||F&&D===F.subTree)&&Ag(B,D,!0)):G(B,D,L,ye,F,W,ee,Y,te)},S=(B,D,L,z,F,W,ee,Y,te)=>{D.slotScopeIds=Y,B==null?D.shapeFlag&512?F.ctx.activate(D,L,z,ee,te):I(D,L,z,F,W,ee,te):V(B,D,te)},I=(B,D,L,z,F,W,ee)=>{const Y=B.component=N_(B,z,F);if(Su(B)&&(Y.ctx.renderer=Be),$_(Y,!1,ee),Y.asyncDep){if(F&&F.registerDep(Y,M,ee),!B.el){const te=Y.subTree=ue(mn);E(null,te,D,L),B.placeholder=te.el}}else M(Y,B,D,L,F,W,ee)},V=(B,D,L)=>{const z=D.component=B.component;if(Zk(B,D,L))if(z.asyncDep&&!z.asyncResolved){H(z,D,L);return}else z.next=D,z.update();else D.el=B.el,z.vnode=D},M=(B,D,L,z,F,W,ee)=>{const Y=()=>{if(B.isMounted){let{next:pe,bu:be,u:Me,parent:rt,vnode:gt}=B;{const Ce=E_(B);if(Ce){pe&&(pe.el=gt.el,H(B,pe,ee)),Ce.asyncDep.then(()=>{B.isUnmounted||Y()});return}}let X=pe,Q;Os(B,!1),pe?(pe.el=gt.el,H(B,pe,ee)):pe=gt,be&&Oa(be),(Q=pe.props&&pe.props.onVnodeBeforeUpdate)&&mr(Q,rt,pe,gt),Os(B,!0);const ie=Jd(B),ge=B.subTree;B.subTree=ie,m(ge,ie,d(ge.el),fe(ge),B,F,W),pe.el=ie.el,X===null&&Qd(B,ie.el),Me&&bn(Me,F),(Q=pe.props&&pe.props.onVnodeUpdated)&&bn(()=>mr(Q,rt,pe,gt),F)}else{let pe;const{el:be,props:Me}=D,{bm:rt,m:gt,parent:X,root:Q,type:ie}=B,ge=io(D);if(Os(B,!1),rt&&Oa(rt),!ge&&(pe=Me&&Me.onVnodeBeforeMount)&&mr(pe,X,D),Os(B,!0),be&&De){const Ce=()=>{B.subTree=Jd(B),De(be,B.subTree,B,F,null)};ge&&ie.__asyncHydrate?ie.__asyncHydrate(be,B,Ce):Ce()}else{Q.ce&&Q.ce._def.shadowRoot!==!1&&Q.ce._injectChildStyle(ie);const Ce=B.subTree=Jd(B);m(null,Ce,L,z,B,F,W),D.el=Ce.el}if(gt&&bn(gt,F),!ge&&(pe=Me&&Me.onVnodeMounted)){const Ce=D;bn(()=>mr(pe,X,Ce),F)}(D.shapeFlag&256||X&&io(X.vnode)&&X.vnode.shapeFlag&256)&&B.a&&bn(B.a,F),B.isMounted=!0,D=L=z=null}};B.scope.on();const te=B.effect=new du(Y);B.scope.off();const J=B.update=te.run.bind(te),ye=B.job=te.runIfDirty.bind(te);ye.i=B,ye.id=B.uid,te.scheduler=()=>sg(ye),Os(B,!0),J()},H=(B,D,L)=>{D.component=B;const z=B.vnode.props;B.vnode=D,B.next=null,Yk(B,D.props,z,L),eO(B,D.children,L),xi(),_b(B),wi()},G=(B,D,L,z,F,W,ee,Y,te=!1)=>{const J=B&&B.children,ye=B?B.shapeFlag:0,pe=D.children,{patchFlag:be,shapeFlag:Me}=D;if(be>0){if(be&128){oe(J,pe,L,z,F,W,ee,Y,te);return}else if(be&256){q(J,pe,L,z,F,W,ee,Y,te);return}}Me&8?(ye&16&&ce(J,F,W),pe!==J&&c(L,pe)):ye&16?Me&16?oe(J,pe,L,z,F,W,ee,Y,te):ce(J,F,W,!0):(ye&8&&c(L,""),Me&16&&A(pe,L,z,F,W,ee,Y,te))},q=(B,D,L,z,F,W,ee,Y,te)=>{B=B||Ca,D=D||Ca;const J=B.length,ye=D.length,pe=Math.min(J,ye);let be;for(be=0;be<pe;be++){const Me=D[be]=te?Do(D[be]):gr(D[be]);m(B[be],Me,L,null,F,W,ee,Y,te)}J>ye?ce(B,F,W,!0,!1,pe):A(D,L,z,F,W,ee,Y,te,pe)},oe=(B,D,L,z,F,W,ee,Y,te)=>{let J=0;const ye=D.length;let pe=B.length-1,be=ye-1;for(;J<=pe&&J<=be;){const Me=B[J],rt=D[J]=te?Do(D[J]):gr(D[J]);if(oi(Me,rt))m(Me,rt,L,null,F,W,ee,Y,te);else break;J++}for(;J<=pe&&J<=be;){const Me=B[pe],rt=D[be]=te?Do(D[be]):gr(D[be]);if(oi(Me,rt))m(Me,rt,L,null,F,W,ee,Y,te);else break;pe--,be--}if(J>pe){if(J<=be){const Me=be+1,rt=Me<ye?D[Me].el:z;for(;J<=be;)m(null,D[J]=te?Do(D[J]):gr(D[J]),L,rt,F,W,ee,Y,te),J++}}else if(J>be)for(;J<=pe;)he(B[J],F,W,!0),J++;else{const Me=J,rt=J,gt=new Map;for(J=rt;J<=be;J++){const Je=D[J]=te?Do(D[J]):gr(D[J]);Je.key!=null&>.set(Je.key,J)}let X,Q=0;const ie=be-rt+1;let ge=!1,Ce=0;const We=new Array(ie);for(J=0;J<ie;J++)We[J]=0;for(J=Me;J<=pe;J++){const Je=B[J];if(Q>=ie){he(Je,F,W,!0);continue}let St;if(Je.key!=null)St=gt.get(Je.key);else for(X=rt;X<=be;X++)if(We[X-rt]===0&&oi(Je,D[X])){St=X;break}St===void 0?he(Je,F,W,!0):(We[St-rt]=J+1,St>=Ce?Ce=St:ge=!0,m(Je,D[St],L,null,F,W,ee,Y,te),Q++)}const ot=ge?tO(We):Ca;for(X=ot.length-1,J=ie-1;J>=0;J--){const Je=rt+J,St=D[Je],Ze=D[Je+1],Ve=Je+1<ye?Ze.el||T_(Ze):z;We[J]===0?m(null,St,L,Ve,F,W,ee,Y,te):ge&&(X<0||J!==ot[X]?ae(St,L,Ve,2):X--)}}},ae=(B,D,L,z,F=null)=>{const{el:W,type:ee,transition:Y,children:te,shapeFlag:J}=B;if(J&6){ae(B.component.subTree,D,L,z);return}if(J&128){B.suspense.move(D,L,z);return}if(J&64){ee.move(B,D,L,Be);return}if(ee===Ue){r(W,D,L);for(let pe=0;pe<te.length;pe++)ae(te[pe],D,L,z);r(B.anchor,D,L);return}if(ee===Ns){v(B,D,L);return}if(z!==2&&J&1&&Y)if(z===0)Y.beforeEnter(W),r(W,D,L),bn(()=>Y.enter(W),F);else{const{leave:pe,delayLeave:be,afterLeave:Me}=Y,rt=()=>{B.ctx.isUnmounted?i(W):r(W,D,L)},gt=()=>{W._isLeaving&&W[no](!0),pe(W,()=>{rt(),Me&&Me()})};be?be(W,rt,gt):gt()}else r(W,D,L)},he=(B,D,L,z=!1,F=!1)=>{const{type:W,props:ee,ref:Y,children:te,dynamicChildren:J,shapeFlag:ye,patchFlag:pe,dirs:be,cacheIndex:Me}=B;if(pe===-2&&(F=!1),Y!=null&&(xi(),Ba(Y,null,L,B,!0),wi()),Me!=null&&(D.renderCache[Me]=void 0),ye&256){D.ctx.deactivate(B);return}const rt=ye&1&&be,gt=!io(B);let X;if(gt&&(X=ee&&ee.onVnodeBeforeUnmount)&&mr(X,D,B),ye&6)de(B.component,L,z);else{if(ye&128){B.suspense.unmount(L,z);return}rt&&Ii(B,null,D,"beforeUnmount"),ye&64?B.type.remove(B,D,L,Be,z):J&&!J.hasOnce&&(W!==Ue||pe>0&&pe&64)?ce(J,D,L,!1,!0):(W===Ue&&pe&384||!F&&ye&16)&&ce(te,D,L),z&&xe(B)}(gt&&(X=ee&&ee.onVnodeUnmounted)||rt)&&bn(()=>{X&&mr(X,D,B),rt&&Ii(B,null,D,"unmounted")},L)},xe=B=>{const{type:D,el:L,anchor:z,transition:F}=B;if(D===Ue){Ee(L,z);return}if(D===Ns){y(B);return}const W=()=>{i(L),F&&!F.persisted&&F.afterLeave&&F.afterLeave()};if(B.shapeFlag&1&&F&&!F.persisted){const{leave:ee,delayLeave:Y}=F,te=()=>ee(L,W);Y?Y(B.el,W,te):te()}else W()},Ee=(B,D)=>{let L;for(;B!==D;)L=h(B),i(B),B=L;i(D)},de=(B,D,L)=>{const{bum:z,scope:F,job:W,subTree:ee,um:Y,m:te,a:J}=B;qd(te),qd(J),z&&Oa(z),F.stop(),W&&(W.flags|=8,he(ee,B,D,L)),Y&&bn(Y,D),bn(()=>{B.isUnmounted=!0},D)},ce=(B,D,L,z=!1,F=!1,W=0)=>{for(let ee=W;ee<B.length;ee++)he(B[ee],D,L,z,F)},fe=B=>{if(B.shapeFlag&6)return fe(B.component.subTree);if(B.shapeFlag&128)return B.suspense.next();const D=h(B.anchor||B.el),L=D&&D[Ab];return L?h(L):D};let Le=!1;const Re=(B,D,L)=>{let z;B==null?D._vnode&&(he(D._vnode,null,null,!0),z=D._vnode.component):m(D._vnode||null,B,D,null,null,null,L),D._vnode=B,Le||(Le=!0,_b(z),Dd(),Le=!1)},Be={p:m,um:he,m:ae,r:xe,mt:I,mc:A,pc:G,pbc:N,n:fe,o:t};let et,De;return e&&([et,De]=e(Be)),{render:Re,hydrate:et,createApp:Uk(Re,et)}}function Cg({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function Os({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function S_(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Ag(t,e,n=!1){const r=t.children,i=e.children;if(ze(r)&&ze(i))for(let o=0;o<r.length;o++){const s=r[o];let a=i[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[o]=Do(i[o]),a.el=s.el),!n&&a.patchFlag!==-2&&Ag(s,a)),a.type===$o&&(a.patchFlag!==-1?a.el=s.el:a.__elIndex=o+(t.type===Ue?1:0)),a.type===mn&&!a.el&&(a.el=s.el)}}function tO(t){const e=t.slice(),n=[0];let r,i,o,s,a;const l=t.length;for(r=0;r<l;r++){const u=t[r];if(u!==0){if(i=n[n.length-1],t[i]<u){e[r]=i,n.push(r);continue}for(o=0,s=n.length-1;o<s;)a=o+s>>1,t[n[a]]<u?o=a+1:s=a;u<t[n[o]]&&(o>0&&(e[r]=n[o-1]),n[o]=r)}}for(o=n.length,s=n[o-1];o-- >0;)n[o]=s,s=e[s];return n}function E_(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:E_(e)}function qd(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}function T_(t){if(t.placeholder)return t.placeholder;const e=t.component;return e?T_(e.subTree):null}const ef=t=>t.__isSuspense;let Pg=0;const nO={name:"Suspense",__isSuspense:!0,process(t,e,n,r,i,o,s,a,l,u){if(t==null)rO(e,n,r,i,o,s,a,l,u);else{if(o&&o.deps>0&&!t.suspense.isInFallback){e.suspense=t.suspense,e.suspense.vnode=e,e.el=t.el;return}iO(t,e,n,r,i,s,a,l,u)}},hydrate:oO,normalize:sO};function Au(t,e){const n=t.props&&t.props[e];tt(n)&&n()}function rO(t,e,n,r,i,o,s,a,l){const{p:u,o:{createElement:c}}=l,d=c("div"),h=t.suspense=I_(t,i,r,e,d,n,o,s,a,l);u(null,h.pendingBranch=t.ssContent,d,null,r,h,o,s),h.deps>0?(Au(t,"onPending"),Au(t,"onFallback"),u(null,t.ssFallback,e,n,r,null,o,s),Wa(h,t.ssFallback)):h.resolve(!1,!0)}function iO(t,e,n,r,i,o,s,a,{p:l,um:u,o:{createElement:c}}){const d=e.suspense=t.suspense;d.vnode=e,e.el=t.el;const h=e.ssContent,p=e.ssFallback,{activeBranch:g,pendingBranch:m,isInFallback:_,isHydrating:E}=d;if(m)d.pendingBranch=h,oi(m,h)?(l(m,h,d.hiddenContainer,null,i,d,o,s,a),d.deps<=0?d.resolve():_&&(E||(l(g,p,n,r,i,null,o,s,a),Wa(d,p)))):(d.pendingId=Pg++,E?(d.isHydrating=!1,d.activeBranch=m):u(m,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=c("div"),_?(l(null,h,d.hiddenContainer,null,i,d,o,s,a),d.deps<=0?d.resolve():(l(g,p,n,r,i,null,o,s,a),Wa(d,p))):g&&oi(g,h)?(l(g,h,n,r,i,d,o,s,a),d.resolve(!0)):(l(null,h,d.hiddenContainer,null,i,d,o,s,a),d.deps<=0&&d.resolve()));else if(g&&oi(g,h))l(g,h,n,r,i,d,o,s,a),Wa(d,h);else if(Au(e,"onPending"),d.pendingBranch=h,h.shapeFlag&512?d.pendingId=h.component.suspenseId:d.pendingId=Pg++,l(null,h,d.hiddenContainer,null,i,d,o,s,a),d.deps<=0)d.resolve();else{const{timeout:w,pendingId:v}=d;w>0?setTimeout(()=>{d.pendingId===v&&d.fallback(p)},w):w===0&&d.fallback(p)}}function I_(t,e,n,r,i,o,s,a,l,u,c=!1){const{p:d,m:h,um:p,n:g,o:{parentNode:m,remove:_}}=u;let E;const w=aO(t);w&&e&&e.pendingBranch&&(E=e.pendingId,e.deps++);const v=t.props?xd(t.props.timeout):void 0,y=o,k={vnode:t,parent:e,parentComponent:n,namespace:s,container:r,hiddenContainer:i,deps:0,pendingId:Pg++,timeout:typeof v=="number"?v:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve($=!1,O=!1){const{vnode:A,activeBranch:x,pendingBranch:N,pendingId:P,effects:b,parentComponent:S,container:I,isInFallback:V}=k;let M=!1;k.isHydrating?k.isHydrating=!1:$||(M=x&&N.transition&&N.transition.mode==="out-in",M&&(x.transition.afterLeave=()=>{P===k.pendingId&&(h(N,I,o===y?g(x):o,0),yu(b),V&&A.ssFallback&&(A.ssFallback.el=null))}),x&&(m(x.el)===I&&(o=g(x)),p(x,S,k,!0),!M&&V&&A.ssFallback&&bn(()=>A.ssFallback.el=null,k)),M||h(N,I,o,0)),Wa(k,N),k.pendingBranch=null,k.isInFallback=!1;let H=k.parent,G=!1;for(;H;){if(H.pendingBranch){H.effects.push(...b),G=!0;break}H=H.parent}!G&&!M&&yu(b),k.effects=[],w&&e&&e.pendingBranch&&E===e.pendingId&&(e.deps--,e.deps===0&&!O&&e.resolve()),Au(A,"onResolve")},fallback($){if(!k.pendingBranch)return;const{vnode:O,activeBranch:A,parentComponent:x,container:N,namespace:P}=k;Au(O,"onFallback");const b=g(A),S=()=>{k.isInFallback&&(d(null,$,N,b,x,null,P,a,l),Wa(k,$))},I=$.transition&&$.transition.mode==="out-in";I&&(A.transition.afterLeave=S),k.isInFallback=!0,p(A,x,null,!0),I||S()},move($,O,A){k.activeBranch&&h(k.activeBranch,$,O,A),k.container=$},next(){return k.activeBranch&&g(k.activeBranch)},registerDep($,O,A){const x=!!k.pendingBranch;x&&k.deps++;const N=$.vnode.el;$.asyncDep.catch(P=>{Ps(P,$,0)}).then(P=>{if($.isUnmounted||k.isUnmounted||k.pendingId!==$.suspenseId)return;$.asyncResolved=!0;const{vnode:b}=$;$g($,P,!1),N&&(b.el=N);const S=!N&&$.subTree.el;O($,b,m(N||$.subTree.el),N?null:g($.subTree),k,s,A),S&&(b.placeholder=null,_(S)),Qd($,b.el),x&&--k.deps===0&&k.resolve()})},unmount($,O){k.isUnmounted=!0,k.activeBranch&&p(k.activeBranch,n,$,O),k.pendingBranch&&p(k.pendingBranch,n,$,O)}};return k}function oO(t,e,n,r,i,o,s,a,l){const u=e.suspense=I_(e,r,n,t.parentNode,document.createElement("div"),null,i,o,s,a,!0),c=l(t,u.pendingBranch=e.ssContent,n,u,o,s);return u.deps===0&&u.resolve(!1,!0),c}function sO(t){const{shapeFlag:e,children:n}=t,r=e&32;t.ssContent=C_(r?n.default:n),t.ssFallback=r?C_(n.fallback):ue(mn)}function C_(t){let e;if(tt(t)){const n=Rs&&t._c;n&&(t._d=!1,j()),t=t(),n&&(t._d=!0,e=Yn,P_())}return ze(t)&&(t=Gk(t)),t=gr(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(n=>n!==t)),t}function A_(t,e){e&&e.pendingBranch?ze(t)?e.effects.push(...t):e.effects.push(t):yu(t)}function Wa(t,e){t.activeBranch=e;const{vnode:n,parentComponent:r}=t;let i=e.el;for(;!i&&e.component;)e=e.component.subTree,i=e.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,Qd(r,i))}function aO(t){const e=t.props&&t.props.suspensible;return e!=null&&e!==!1}const Ue=Symbol.for("v-fgt"),$o=Symbol.for("v-txt"),mn=Symbol.for("v-cmt"),Ns=Symbol.for("v-stc"),Pu=[];let Yn=null;function j(t=!1){Pu.push(Yn=t?null:[])}function P_(){Pu.pop(),Yn=Pu[Pu.length-1]||null}let Rs=1;function ku(t,e=!1){Rs+=t,t<0&&Yn&&e&&(Yn.hasOnce=!0)}function k_(t){return t.dynamicChildren=Rs>0?Yn||Ca:null,P_(),Rs>0&&Yn&&Yn.push(t),t}function K(t,e,n,r,i,o){return k_(C(t,e,n,r,i,o,!0))}function $e(t,e,n,r,i){return k_(ue(t,e,n,r,i,!0))}function so(t){return t?t.__v_isVNode===!0:!1}function oi(t,e){return t.type===e.type&&t.key===e.key}function lO(t){}const O_=({key:t})=>t??null,tf=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?Dt(t)||Yt(t)||tt(t)?{i:Dn,r:t,k:e,f:!!n}:t:null);function C(t,e=null,n=null,r=0,i=null,o=t===Ue?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&O_(e),ref:e&&tf(e),scopeId:Ld,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Dn};return a?(Og(l,n),o&128&&t.normalize(l)):n&&(l.shapeFlag|=Dt(n)?8:16),Rs>0&&!s&&Yn&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Yn.push(l),l}const ue=uO;function uO(t,e=null,n=null,r=0,i=null,o=!1){if((!t||t===Jb)&&(t=mn),so(t)){const a=Ci(t,e,!0);return n&&Og(a,n),Rs>0&&!o&&Yn&&(a.shapeFlag&6?Yn[Yn.indexOf(t)]=a:Yn.push(a)),a.patchFlag=-2,a}if(yO(t)&&(t=t.__vccOpts),e){e=kg(e);let{class:a,style:l}=e;a&&!Dt(a)&&(e.class=Se(a)),kt(l)&&(vu(l)&&!ze(l)&&(l=Nt({},l)),e.style=Xe(l))}const s=Dt(t)?1:ef(t)?128:Pb(t)?64:kt(t)?4:tt(t)?2:0;return C(t,e,n,r,i,s,o,!0)}function kg(t){return t?vu(t)||h_(t)?Nt({},t):t:null}function Ci(t,e,n=!1,r=!1){const{props:i,ref:o,patchFlag:s,children:a,transition:l}=t,u=e?ao(i||{},e):i,c={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&O_(u),ref:e&&e.ref?n&&o?ze(o)?o.concat(tf(e)):[o,tf(e)]:tf(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Ue?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Ci(t.ssContent),ssFallback:t.ssFallback&&Ci(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&r&&ro(c,l.clone(c)),c}function bt(t=" ",e=0){return ue($o,null,t,e)}function nf(t,e){const n=ue(Ns,null,t);return n.staticCount=e,n}function Oe(t="",e=!1){return e?(j(),$e(mn,null,t)):ue(mn,null,t)}function gr(t){return t==null||typeof t=="boolean"?ue(mn):ze(t)?ue(Ue,null,t.slice()):so(t)?Do(t):ue($o,null,String(t))}function Do(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Ci(t)}function Og(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(ze(e))n=16;else if(typeof e=="object")if(r&65){const i=e.default;i&&(i._c&&(i._d=!1),Og(t,i()),i._c&&(i._d=!0));return}else{n=32;const i=e._;!i&&!h_(e)?e._ctx=Dn:i===3&&Dn&&(Dn.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else tt(e)?(e={default:e,_ctx:Dn},n=32):(e=String(e),r&64?(n=16,e=[bt(e)]):n=8);t.children=e,t.shapeFlag|=n}function ao(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const i in r)if(i==="class")e.class!==r.class&&(e.class=Se([e.class,r.class]));else if(i==="style")e.style=Xe([e.style,r.style]);else if(au(i)){const o=e[i],s=r[i];s&&o!==s&&!(ze(o)&&o.includes(s))&&(e[i]=o?[].concat(o,s):s)}else i!==""&&(e[i]=r[i])}return e}function mr(t,e,n,r=null){jr(t,e,7,[n,r])}const cO=a_();let dO=0;function N_(t,e,n){const r=t.type,i=(e?e.appContext:t.appContext)||cO,o={uid:dO++,vnode:t,type:r,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Wp(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:g_(r,i),emitsOptions:u_(r,i),emit:null,emitted:null,propsDefaults:ut,inheritAttrs:r.inheritAttrs,ctx:ut,data:ut,props:ut,attrs:ut,slots:ut,refs:ut,setupState:ut,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=e?e.root:o,o.emit=jk.bind(null,o),t.ce&&t.ce(o),o}let Mn=null;const _n=()=>Mn||Dn;let rf,Ng;{const t=wd(),e=(n,r)=>{let i;return(i=t[n])||(i=t[n]=[]),i.push(r),o=>{i.length>1?i.forEach(s=>s(o)):i[0](o)}};rf=e("__VUE_INSTANCE_SETTERS__",n=>Mn=n),Ng=e("__VUE_SSR_SETTERS__",n=>Ka=n)}const $s=t=>{const e=Mn;return rf(t),t.scope.on(),()=>{t.scope.off(),rf(e)}},Rg=()=>{Mn&&Mn.scope.off(),rf(null)};function R_(t){return t.vnode.shapeFlag&4}let Ka=!1;function $_(t,e=!1,n=!1){e&&Ng(e);const{props:r,children:i}=t.vnode,o=R_(t);Xk(t,r,o,e),qk(t,i,n||e);const s=o?fO(t,e):void 0;return e&&Ng(!1),s}function fO(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,_g);const{setup:r}=n;if(r){xi();const i=t.setupContext=r.length>1?M_(t):null,o=$s(t),s=As(r,t,0,[t.props,i]),a=jp(s);if(wi(),o(),(a||t.sp)&&!io(t)&&dg(t),a){if(s.then(Rg,Rg),e)return s.then(l=>{$g(t,l,e)}).catch(l=>{Ps(l,t,0)});t.asyncDep=s}else $g(t,s,e)}else D_(t,e)}function $g(t,e,n){tt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:kt(e)&&(t.setupState=rg(e)),D_(t,n)}let of,Dg;function hO(t){of=t,Dg=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Ek))}}const pO=()=>!of;function D_(t,e,n){const r=t.type;if(!t.render){if(!e&&of&&!r.render){const i=r.template||wg(t).template;if(i){const{isCustomElement:o,compilerOptions:s}=t.appContext.config,{delimiters:a,compilerOptions:l}=r,u=Nt(Nt({isCustomElement:o,delimiters:a},s),l);r.render=of(i,u)}}t.render=r.render||Br,Dg&&Dg(t)}{const i=$s(t);xi();try{Dk(t)}finally{wi(),i()}}}const gO={get(t,e){return Zn(t,"get",""),t[e]}};function M_(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,gO),slots:t.slots,emit:t.emit,expose:e}}function Ou(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(rg(Da(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Tu)return Tu[n](t)},has(e,n){return n in e||n in Tu}})):t.proxy}const mO=/(?:^|[-_])\w/g,vO=t=>t.replace(mO,e=>e.toUpperCase()).replace(/[-_]/g,"");function sf(t,e=!0){return tt(t)?t.displayName||t.name:t.name||e&&t.__name}function L_(t,e,n=!1){let r=sf(e);if(!r&&e.__file){const i=e.__file.match(/([^/\\]+)\.\w+$/);i&&(r=i[1])}if(!r&&t){const i=o=>{for(const s in o)if(o[s]===e)return s};r=i(t.components)||t.parent&&i(t.parent.type.components)||i(t.appContext.components)}return r?vO(r):n?"App":"Anonymous"}function yO(t){return tt(t)&&"__vccOpts"in t}const Z=(t,e)=>R2(t,e,Ka);function qe(t,e,n){try{ku(-1);const r=arguments.length;return r===2?kt(e)&&!ze(e)?so(e)?ue(t,null,[e]):ue(t,e):ue(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&so(n)&&(n=[n]),ue(t,e,n))}finally{ku(1)}}function bO(){}function _O(t,e,n,r){const i=n[r];if(i&&Mg(i,t))return i;const o=e();return o.memo=t.slice(),o.cacheIndex=r,n[r]=o}function Mg(t,e){const n=t.memo;if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if(ir(n[r],e[r]))return!1;return Rs>0&&Yn&&Yn.push(t),!0}const V_="3.5.26",xO=Br,wO=W2,SO=Fa,EO=wb,TO={createComponentInstance:N_,setupComponent:$_,renderComponentRoot:Jd,setCurrentRenderingInstance:_u,isVNode:so,normalizeVNode:gr,getComponentPublicInstance:Ou,ensureValidVNode:vg,pushWarningContext:V2,popWarningContext:F2},IO=null,CO=null,AO=null;/**
|
|
16
|
+
`],...B2(n))}),e}function B2({vnode:t,recurseCount:e}){const n=e>0?`... (${e} recursive calls)`:"",r=t.component?t.component.parent==null:!1,i=` at <${L_(t.component,t.type,r)}`,o=">"+n;return t.props?[i,...j2(t.props),o]:[i+o]}function j2(t){const e=[],n=Object.keys(t);return n.slice(0,3).forEach(r=>{e.push(...vb(r,t[r]))}),n.length>3&&e.push(" ..."),e}function vb(t,e,n){return Dt(e)?(e=JSON.stringify(e),n?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?n?e:[`${t}=${e}`]:Yt(e)?(e=vb(t,vt(e.value),!0),n?e:[`${t}=Ref<`,e,">"]):tt(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=vt(e),n?e:[`${t}=`,e])}function H2(t,e){}const G2={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},W2={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function As(t,e,n,r){try{return r?t(...r):t()}catch(i){Ps(i,e,n)}}function jr(t,e,n,r){if(tt(t)){const i=As(t,e,n,r);return i&&jp(i)&&i.catch(o=>{Ps(o,e,n)}),i}if(ze(t)){const i=[];for(let o=0;o<t.length;o++)i.push(jr(t[o],e,n,r));return i}}function Ps(t,e,n,r=!0){const i=e?e.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=e&&e.appContext.config||ut;if(e){let a=e.parent;const l=e.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](t,l,u)===!1)return}a=a.parent}if(o){xi(),As(o,null,10,[t,l,u]),wi();return}}K2(t,n,i,r,s)}function K2(t,e,n,r=!0,i=!1){if(i)throw t;console.error(t)}const or=[];let Ti=-1;const La=[];let Ro=null,Va=0;const yb=Promise.resolve();let $d=null;function pr(t){const e=$d||yb;return t?e.then(this?t.bind(this):t):e}function Z2(t){let e=Ti+1,n=or.length;for(;e<n;){const r=e+n>>>1,i=or[r],o=bu(i);o<t||o===t&&i.flags&2?e=r+1:n=r}return e}function sg(t){if(!(t.flags&1)){const e=bu(t),n=or[or.length-1];!n||!(t.flags&2)&&e>=bu(n)?or.push(t):or.splice(Z2(e),0,t),t.flags|=1,bb()}}function bb(){$d||($d=yb.then(xb))}function yu(t){ze(t)?La.push(...t):Ro&&t.id===-1?Ro.splice(Va+1,0,t):t.flags&1||(La.push(t),t.flags|=1),bb()}function _b(t,e,n=Ti+1){for(;n<or.length;n++){const r=or[n];if(r&&r.flags&2){if(t&&r.id!==t.uid)continue;or.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Dd(t){if(La.length){const e=[...new Set(La)].sort((n,r)=>bu(n)-bu(r));if(La.length=0,Ro){Ro.push(...e);return}for(Ro=e,Va=0;Va<Ro.length;Va++){const n=Ro[Va];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ro=null,Va=0}}const bu=t=>t.id==null?t.flags&2?-1:1/0:t.id;function xb(t){try{for(Ti=0;Ti<or.length;Ti++){const e=or[Ti];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),As(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;Ti<or.length;Ti++){const e=or[Ti];e&&(e.flags&=-2)}Ti=-1,or.length=0,Dd(),$d=null,(or.length||La.length)&&xb()}}let Fa,Md=[];function wb(t,e){var n,r;Fa=t,Fa?(Fa.enabled=!0,Md.forEach(({event:i,args:o})=>Fa.emit(i,...o)),Md=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{wb(o,e)}),setTimeout(()=>{Fa||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Md=[])},3e3)):Md=[]}let Dn=null,Ld=null;function _u(t){const e=Dn;return Dn=t,Ld=t&&t.type.__scopeId||null,e}function X2(t){Ld=t}function Y2(){Ld=null}const J2=t=>ke;function ke(t,e=Dn,n){if(!e||t._n)return t;const r=(...i)=>{r._d&&ku(-1);const o=_u(e);let s;try{s=t(...i)}finally{_u(o),r._d&&ku(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function za(t,e){if(Dn===null)return t;const n=Ou(Dn),r=t.dirs||(t.dirs=[]);for(let i=0;i<e.length;i++){let[o,s,a,l=ut]=e[i];o&&(tt(o)&&(o={mounted:o,updated:o}),o.deep&&eo(s),r.push({dir:o,instance:n,value:s,oldValue:void 0,arg:a,modifiers:l}))}return t}function Ii(t,e,n,r){const i=t.dirs,o=e&&e.dirs;for(let s=0;s<i.length;s++){const a=i[s];o&&(a.oldValue=o[s].value);let l=a.dir[r];l&&(xi(),jr(l,n,8,[t.el,a,t,e]),wi())}}function to(t,e){if(Mn){let n=Mn.provides;const r=Mn.parent&&Mn.parent.provides;r===n&&(n=Mn.provides=Object.create(r)),n[t]=e}}function yt(t,e,n=!1){const r=_n();if(r||ks){let i=ks?ks._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&t in i)return i[t];if(arguments.length>1)return n&&tt(e)?e.call(r&&r.proxy):e}}function Q2(){return!!(_n()||ks)}const Sb=Symbol.for("v-scx"),Eb=()=>yt(Sb);function Tb(t,e){return xu(t,null,e)}function q2(t,e){return xu(t,null,{flush:"post"})}function Ib(t,e){return xu(t,null,{flush:"sync"})}function Qe(t,e,n){return xu(t,e,n)}function xu(t,e,n=ut){const{immediate:r,deep:i,flush:o,once:s}=n,a=Nt({},n),l=e&&r||!e&&o!=="post";let u;if(Ka){if(o==="sync"){const p=Eb();u=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=Br,p.resume=Br,p.pause=Br,p}}const c=Mn;a.call=(p,g,m)=>jr(p,c,g,m);let d=!1;o==="post"?a.scheduler=p=>{bn(p,c&&c.suspense)}:o!=="sync"&&(d=!0,a.scheduler=(p,g)=>{g?p():sg(p)}),a.augmentJob=p=>{e&&(p.flags|=4),d&&(p.flags|=2,c&&(p.id=c.uid,p.i=c))};const h=L2(t,e,a);return Ka&&(u?u.push(h):l&&h()),h}function ek(t,e,n){const r=this.proxy,i=Dt(t)?t.includes(".")?Cb(r,t):()=>r[t]:t.bind(r,r);let o;tt(e)?o=e:(o=e.handler,n=e);const s=$s(this),a=xu(i,o.bind(r),n);return s(),a}function Cb(t,e){const n=e.split(".");return()=>{let r=t;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}const Ab=Symbol("_vte"),Pb=t=>t.__isTeleport,wu=t=>t&&(t.disabled||t.disabled===""),kb=t=>t&&(t.defer||t.defer===""),Ob=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Nb=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,ag=(t,e)=>{const n=t&&t.to;return Dt(n)?e?e(n):null:n},Rb={name:"Teleport",__isTeleport:!0,process(t,e,n,r,i,o,s,a,l,u){const{mc:c,pc:d,pbc:h,o:{insert:p,querySelector:g,createText:m,createComment:_}}=u,E=wu(e.props);let{shapeFlag:w,children:v,dynamicChildren:y}=e;if(t==null){const k=e.el=m(""),$=e.anchor=m("");p(k,n,r),p($,n,r);const O=(x,N)=>{w&16&&c(v,x,N,i,o,s,a,l)},A=()=>{const x=e.target=ag(e.props,g),N=Db(x,e,m,p);x&&(s!=="svg"&&Ob(x)?s="svg":s!=="mathml"&&Nb(x)&&(s="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(x),E||(O(x,N),Fd(e,!1)))};E&&(O(n,$),Fd(e,!0)),kb(e.props)?(e.el.__isMounted=!1,bn(()=>{A(),delete e.el.__isMounted},o)):A()}else{if(kb(e.props)&&t.el.__isMounted===!1){bn(()=>{Rb.process(t,e,n,r,i,o,s,a,l,u)},o);return}e.el=t.el,e.targetStart=t.targetStart;const k=e.anchor=t.anchor,$=e.target=t.target,O=e.targetAnchor=t.targetAnchor,A=wu(t.props),x=A?n:$,N=A?k:O;if(s==="svg"||Ob($)?s="svg":(s==="mathml"||Nb($))&&(s="mathml"),y?(h(t.dynamicChildren,y,x,i,o,s,a),Ag(t,e,!0)):l||d(t,e,x,N,i,o,s,a,!1),E)A?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):Vd(e,n,k,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const P=e.target=ag(e.props,g);P&&Vd(e,P,null,u,0)}else A&&Vd(e,$,O,u,1);Fd(e,E)}},remove(t,e,n,{um:r,o:{remove:i}},o){const{shapeFlag:s,children:a,anchor:l,targetStart:u,targetAnchor:c,target:d,props:h}=t;if(d&&(i(u),i(c)),o&&i(l),s&16){const p=o||!wu(h);for(let g=0;g<a.length;g++){const m=a[g];r(m,e,n,p,!!m.dynamicChildren)}}},move:Vd,hydrate:tk};function Vd(t,e,n,{o:{insert:r},m:i},o=2){o===0&&r(t.targetAnchor,e,n);const{el:s,anchor:a,shapeFlag:l,children:u,props:c}=t,d=o===2;if(d&&r(s,e,n),(!d||wu(c))&&l&16)for(let h=0;h<u.length;h++)i(u[h],e,n,2);d&&r(a,e,n)}function tk(t,e,n,r,i,o,{o:{nextSibling:s,parentNode:a,querySelector:l,insert:u,createText:c}},d){function h(m,_,E,w){_.anchor=d(s(m),_,a(m),n,r,i,o),_.targetStart=E,_.targetAnchor=w}const p=e.target=ag(e.props,l),g=wu(e.props);if(p){const m=p._lpa||p.firstChild;if(e.shapeFlag&16)if(g)h(t,e,m,m&&s(m));else{e.anchor=s(t);let _=m;for(;_;){if(_&&_.nodeType===8){if(_.data==="teleport start anchor")e.targetStart=_;else if(_.data==="teleport anchor"){e.targetAnchor=_,p._lpa=e.targetAnchor&&s(e.targetAnchor);break}}_=s(_)}e.targetAnchor||Db(p,e,c,u),d(m&&s(m),e,p,n,r,i,o)}Fd(e,g)}else g&&e.shapeFlag&16&&h(t,e,t,s(t));return e.anchor&&s(e.anchor)}const $b=Rb;function Fd(t,e){const n=t.ctx;if(n&&n.ut){let r,i;for(e?(r=t.el,i=t.anchor):(r=t.targetStart,i=t.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Db(t,e,n,r){const i=e.targetStart=n(""),o=e.targetAnchor=n("");return i[Ab]=o,t&&(r(i,t),r(o,t)),o}const no=Symbol("_leaveCb"),zd=Symbol("_enterCb");function lg(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return jt(()=>{t.isMounted=!0}),Ga(()=>{t.isUnmounting=!0}),t}const Hr=[Function,Array],ug={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Hr,onEnter:Hr,onAfterEnter:Hr,onEnterCancelled:Hr,onBeforeLeave:Hr,onLeave:Hr,onAfterLeave:Hr,onLeaveCancelled:Hr,onBeforeAppear:Hr,onAppear:Hr,onAfterAppear:Hr,onAppearCancelled:Hr},Mb=t=>{const e=t.subTree;return e.component?Mb(e.component):e},nk={name:"BaseTransition",props:ug,setup(t,{slots:e}){const n=_n(),r=lg();return()=>{const i=e.default&&Ud(e.default(),!0);if(!i||!i.length)return;const o=Lb(i),s=vt(t),{mode:a}=s;if(r.isLeaving)return cg(o);const l=zb(o);if(!l)return cg(o);let u=Ua(l,s,r,n,d=>u=d);l.type!==mn&&ro(l,u);let c=n.subTree&&zb(n.subTree);if(c&&c.type!==mn&&!oi(c,l)&&Mb(n).type!==mn){let d=Ua(c,s,r,n);if(ro(c,d),a==="out-in"&&l.type!==mn)return r.isLeaving=!0,d.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,c=void 0},cg(o);a==="in-out"&&l.type!==mn?d.delayLeave=(h,p,g)=>{const m=Fb(r,c);m[String(c.key)]=c,h[no]=()=>{p(),h[no]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{g(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return o}}};function Lb(t){let e=t[0];if(t.length>1){for(const n of t)if(n.type!==mn){e=n;break}}return e}const Vb=nk;function Fb(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function Ua(t,e,n,r,i){const{appear:o,mode:s,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:h,onLeave:p,onAfterLeave:g,onLeaveCancelled:m,onBeforeAppear:_,onAppear:E,onAfterAppear:w,onAppearCancelled:v}=e,y=String(t.key),k=Fb(n,t),$=(x,N)=>{x&&jr(x,r,9,N)},O=(x,N)=>{const P=N[1];$(x,N),ze(x)?x.every(b=>b.length<=1)&&P():x.length<=1&&P()},A={mode:s,persisted:a,beforeEnter(x){let N=l;if(!n.isMounted)if(o)N=_||l;else return;x[no]&&x[no](!0);const P=k[y];P&&oi(t,P)&&P.el[no]&&P.el[no](),$(N,[x])},enter(x){let N=u,P=c,b=d;if(!n.isMounted)if(o)N=E||u,P=w||c,b=v||d;else return;let S=!1;const I=x[zd]=V=>{S||(S=!0,V?$(b,[x]):$(P,[x]),A.delayedLeave&&A.delayedLeave(),x[zd]=void 0)};N?O(N,[x,I]):I()},leave(x,N){const P=String(t.key);if(x[zd]&&x[zd](!0),n.isUnmounting)return N();$(h,[x]);let b=!1;const S=x[no]=I=>{b||(b=!0,N(),I?$(m,[x]):$(g,[x]),x[no]=void 0,k[P]===t&&delete k[P])};k[P]=t,p?O(p,[x,S]):S()},clone(x){const N=Ua(x,e,n,r,i);return i&&i(N),N}};return A}function cg(t){if(Su(t))return t=Ci(t),t.children=null,t}function zb(t){if(!Su(t))return Pb(t.type)&&t.children?Lb(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:n}=t;if(n){if(e&16)return n[0];if(e&32&&tt(n.default))return n.default()}}function ro(t,e){t.shapeFlag&6&&t.component?(t.transition=e,ro(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Ud(t,e=!1,n){let r=[],i=0;for(let o=0;o<t.length;o++){let s=t[o];const a=n==null?s.key:String(n)+String(s.key!=null?s.key:o);s.type===Ue?(s.patchFlag&128&&i++,r=r.concat(Ud(s.children,e,a))):(e||s.type!==mn)&&r.push(a!=null?Ci(s,{key:a}):s)}if(i>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}function Te(t,e){return tt(t)?Nt({name:t.name},e,{setup:t}):t}function rk(){const t=_n();return t?(t.appContext.config.idPrefix||"v")+"-"+t.ids[0]+t.ids[1]++:""}function dg(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function ik(t){const e=_n(),n=Ei(null);if(e){const i=e.refs===ut?e.refs={}:e.refs;Object.defineProperty(i,t,{enumerable:!0,get:()=>n.value,set:o=>n.value=o})}return n}const Bd=new WeakMap;function Ba(t,e,n,r,i=!1){if(ze(t)){t.forEach((g,m)=>Ba(g,e&&(ze(e)?e[m]:e),n,r,i));return}if(io(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Ba(t,e,n,r.component.subTree);return}const o=r.shapeFlag&4?Ou(r.component):r.el,s=i?null:o,{i:a,r:l}=t,u=e&&e.r,c=a.refs===ut?a.refs={}:a.refs,d=a.setupState,h=vt(d),p=d===ut?U0:g=>Ct(h,g);if(u!=null&&u!==l){if(Ub(e),Dt(u))c[u]=null,p(u)&&(d[u]=null);else if(Yt(u)){u.value=null;const g=e;g.k&&(c[g.k]=null)}}if(tt(l))As(l,a,12,[s,c]);else{const g=Dt(l),m=Yt(l);if(g||m){const _=()=>{if(t.f){const E=g?p(l)?d[l]:c[l]:l.value;if(i)ze(E)&&Bp(E,o);else if(ze(E))E.includes(o)||E.push(o);else if(g)c[l]=[o],p(l)&&(d[l]=c[l]);else{const w=[o];l.value=w,t.k&&(c[t.k]=w)}}else g?(c[l]=s,p(l)&&(d[l]=s)):m&&(l.value=s,t.k&&(c[t.k]=s))};if(s){const E=()=>{_(),Bd.delete(t)};E.id=-1,Bd.set(t,E),bn(E,n)}else Ub(t),_()}}}function Ub(t){const e=Bd.get(t);e&&(e.flags|=8,Bd.delete(t))}let Bb=!1;const ja=()=>{Bb||(console.error("Hydration completed but contains mismatches."),Bb=!0)},ok=t=>t.namespaceURI.includes("svg")&&t.tagName!=="foreignObject",sk=t=>t.namespaceURI.includes("MathML"),jd=t=>{if(t.nodeType===1){if(ok(t))return"svg";if(sk(t))return"mathml"}},Ha=t=>t.nodeType===8;function ak(t){const{mt:e,p:n,o:{patchProp:r,createText:i,nextSibling:o,parentNode:s,remove:a,insert:l,createComment:u}}=t,c=(v,y)=>{if(!y.hasChildNodes()){n(null,v,y),Dd(),y._vnode=v;return}d(y.firstChild,v,null,null,null),Dd(),y._vnode=v},d=(v,y,k,$,O,A=!1)=>{A=A||!!y.dynamicChildren;const x=Ha(v)&&v.data==="[",N=()=>m(v,y,k,$,O,x),{type:P,ref:b,shapeFlag:S,patchFlag:I}=y;let V=v.nodeType;y.el=v,I===-2&&(A=!1,y.dynamicChildren=null);let M=null;switch(P){case $o:V!==3?y.children===""?(l(y.el=i(""),s(v),v),M=v):M=N():(v.data!==y.children&&(ja(),v.data=y.children),M=o(v));break;case mn:w(v)?(M=o(v),E(y.el=v.content.firstChild,v,k)):V!==8||x?M=N():M=o(v);break;case Ns:if(x&&(v=o(v),V=v.nodeType),V===1||V===3){M=v;const H=!y.children.length;for(let G=0;G<y.staticCount;G++)H&&(y.children+=M.nodeType===1?M.outerHTML:M.data),G===y.staticCount-1&&(y.anchor=M),M=o(M);return x?o(M):M}else N();break;case Ue:x?M=g(v,y,k,$,O,A):M=N();break;default:if(S&1)(V!==1||y.type.toLowerCase()!==v.tagName.toLowerCase())&&!w(v)?M=N():M=h(v,y,k,$,O,A);else if(S&6){y.slotScopeIds=O;const H=s(v);if(x?M=_(v):Ha(v)&&v.data==="teleport start"?M=_(v,v.data,"teleport end"):M=o(v),e(y,H,null,k,$,jd(H),A),io(y)&&!y.type.__asyncResolved){let G;x?(G=ce(Ue),G.anchor=M?M.previousSibling:H.lastChild):G=v.nodeType===3?bt(""):ce("div"),G.el=v,y.component.subTree=G}}else S&64?V!==8?M=N():M=y.type.hydrate(v,y,k,$,O,A,t,p):S&128&&(M=y.type.hydrate(v,y,k,$,jd(s(v)),O,A,t,d))}return b!=null&&Ba(b,null,$,y),M},h=(v,y,k,$,O,A)=>{A=A||!!y.dynamicChildren;const{type:x,props:N,patchFlag:P,shapeFlag:b,dirs:S,transition:I}=y,V=x==="input"||x==="option";if(V||P!==-1){S&&Ii(y,null,k,"created");let M=!1;if(w(v)){M=S_(null,I)&&k&&k.vnode.props&&k.vnode.props.appear;const G=v.content.firstChild;if(M){const J=G.getAttribute("class");J&&(G.$cls=J),I.beforeEnter(G)}E(G,v,k),y.el=v=G}if(b&16&&!(N&&(N.innerHTML||N.textContent))){let G=p(v.firstChild,y,v,k,$,O,A);for(;G;){Hd(v,1)||ja();const J=G;G=G.nextSibling,a(J)}}else if(b&8){let G=y.children;G[0]===`
|
|
17
|
+
`&&(v.tagName==="PRE"||v.tagName==="TEXTAREA")&&(G=G.slice(1));const{textContent:J}=v;J!==G&&J!==G.replace(/\r\n|\r/g,`
|
|
18
|
+
`)&&(Hd(v,0)||ja(),v.textContent=y.children)}if(N){if(V||!A||P&48){const G=v.tagName.includes("-");for(const J in N)(V&&(J.endsWith("value")||J==="indeterminate")||au(J)&&!ka(J)||J[0]==="."||G)&&r(v,J,null,N[J],void 0,k)}else if(N.onClick)r(v,"onClick",null,N.onClick,void 0,k);else if(P&4&&qi(N.style))for(const G in N.style)N.style[G]}let H;(H=N&&N.onVnodeBeforeMount)&&mr(H,k,y),S&&Ii(y,null,k,"beforeMount"),((H=N&&N.onVnodeMounted)||S||M)&&A_(()=>{H&&mr(H,k,y),M&&I.enter(v),S&&Ii(y,null,k,"mounted")},$)}return v.nextSibling},p=(v,y,k,$,O,A,x)=>{x=x||!!y.dynamicChildren;const N=y.children,P=N.length;for(let b=0;b<P;b++){const S=x?N[b]:N[b]=gr(N[b]),I=S.type===$o;v?(I&&!x&&b+1<P&&gr(N[b+1]).type===$o&&(l(i(v.data.slice(S.children.length)),k,o(v)),v.data=S.children),v=d(v,S,$,O,A,x)):I&&!S.children?l(S.el=i(""),k):(Hd(k,1)||ja(),n(null,S,k,null,$,O,jd(k),A))}return v},g=(v,y,k,$,O,A)=>{const{slotScopeIds:x}=y;x&&(O=O?O.concat(x):x);const N=s(v),P=p(o(v),y,N,k,$,O,A);return P&&Ha(P)&&P.data==="]"?o(y.anchor=P):(ja(),l(y.anchor=u("]"),N,P),P)},m=(v,y,k,$,O,A)=>{if(Hd(v.parentElement,1)||ja(),y.el=null,A){const P=_(v);for(;;){const b=o(v);if(b&&b!==P)a(b);else break}}const x=o(v),N=s(v);return a(v),n(null,y,N,x,k,$,jd(N),O),k&&(k.vnode.el=y.el,Qd(k,y.el)),x},_=(v,y="[",k="]")=>{let $=0;for(;v;)if(v=o(v),v&&Ha(v)&&(v.data===y&&$++,v.data===k)){if($===0)return o(v);$--}return v},E=(v,y,k)=>{const $=y.parentNode;$&&$.replaceChild(v,y);let O=k;for(;O;)O.vnode.el===y&&(O.vnode.el=O.subTree.el=v),O=O.parent},w=v=>v.nodeType===1&&v.tagName==="TEMPLATE";return[c,d]}const jb="data-allow-mismatch",lk={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Hd(t,e){if(e===0||e===1)for(;t&&!t.hasAttribute(jb);)t=t.parentElement;const n=t&&t.getAttribute(jb);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return e===0&&r.includes("children")?!0:r.includes(lk[e])}}const uk=wd().requestIdleCallback||(t=>setTimeout(t,1)),ck=wd().cancelIdleCallback||(t=>clearTimeout(t)),dk=(t=1e4)=>e=>{const n=uk(e,{timeout:t});return()=>ck(n)};function fk(t){const{top:e,left:n,bottom:r,right:i}=t.getBoundingClientRect(),{innerHeight:o,innerWidth:s}=window;return(e>0&&e<o||r>0&&r<o)&&(n>0&&n<s||i>0&&i<s)}const hk=t=>(e,n)=>{const r=new IntersectionObserver(i=>{for(const o of i)if(o.isIntersecting){r.disconnect(),e();break}},t);return n(i=>{if(i instanceof Element){if(fk(i))return e(),r.disconnect(),!1;r.observe(i)}}),()=>r.disconnect()},pk=t=>e=>{if(t){const n=matchMedia(t);if(n.matches)e();else return n.addEventListener("change",e,{once:!0}),()=>n.removeEventListener("change",e)}},gk=(t=[])=>(e,n)=>{Dt(t)&&(t=[t]);let r=!1;const i=s=>{r||(r=!0,o(),e(),s.target.dispatchEvent(new s.constructor(s.type,s)))},o=()=>{n(s=>{for(const a of t)s.removeEventListener(a,i)})};return n(s=>{for(const a of t)s.addEventListener(a,i,{once:!0})}),o};function mk(t,e){if(Ha(t)&&t.data==="["){let n=1,r=t.nextSibling;for(;r;){if(r.nodeType===1){if(e(r)===!1)break}else if(Ha(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else e(t)}const io=t=>!!t.type.__asyncLoader;function vk(t){tt(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:o,timeout:s,suspensible:a=!0,onError:l}=t;let u=null,c,d=0;const h=()=>(d++,u=null,p()),p=()=>{let g;return u||(g=u=e().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),l)return new Promise((_,E)=>{l(m,()=>_(h()),()=>E(m),d+1)});throw m}).then(m=>g!==u&&u?u:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),c=m,m)))};return Te({name:"AsyncComponentWrapper",__asyncLoader:p,__asyncHydrate(g,m,_){let E=!1;(m.bu||(m.bu=[])).push(()=>E=!0);const w=()=>{E||_()},v=o?()=>{const y=o(w,k=>mk(g,k));y&&(m.bum||(m.bum=[])).push(y)}:w;c?v():p().then(()=>!m.isUnmounted&&v())},get __asyncResolved(){return c},setup(){const g=Mn;if(dg(g),c)return()=>Gd(c,g);const m=v=>{u=null,Ps(v,g,13,!r)};if(a&&g.suspense||Ka)return p().then(v=>()=>Gd(v,g)).catch(v=>(m(v),()=>r?ce(r,{error:v}):null));const _=we(!1),E=we(),w=we(!!i);return i&&setTimeout(()=>{w.value=!1},i),s!=null&&setTimeout(()=>{if(!_.value&&!E.value){const v=new Error(`Async component timed out after ${s}ms.`);m(v),E.value=v}},s),p().then(()=>{_.value=!0,g.parent&&Su(g.parent.vnode)&&g.parent.update()}).catch(v=>{m(v),E.value=v}),()=>{if(_.value&&c)return Gd(c,g);if(E.value&&r)return ce(r,{error:E.value});if(n&&!w.value)return Gd(n,g)}}})}function Gd(t,e){const{ref:n,props:r,children:i,ce:o}=e.vnode,s=ce(t,r,i);return s.ref=n,s.ce=o,delete e.vnode.ce,s}const Su=t=>t.type.__isKeepAlive,yk={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=_n(),r=n.ctx;if(!r.renderer)return()=>{const w=e.default&&e.default();return w&&w.length===1?w[0]:w};const i=new Map,o=new Set;let s=null;const a=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:d}}}=r,h=d("div");r.activate=(w,v,y,k,$)=>{const O=w.component;u(w,v,y,0,a),l(O.vnode,w,v,y,O,a,k,w.slotScopeIds,$),bn(()=>{O.isDeactivated=!1,O.a&&Oa(O.a);const A=w.props&&w.props.onVnodeMounted;A&&mr(A,O.parent,w)},a)},r.deactivate=w=>{const v=w.component;qd(v.m),qd(v.a),u(w,h,null,1,a),bn(()=>{v.da&&Oa(v.da);const y=w.props&&w.props.onVnodeUnmounted;y&&mr(y,v.parent,w),v.isDeactivated=!0},a)};function p(w){fg(w),c(w,n,a,!0)}function g(w){i.forEach((v,y)=>{const k=sf(io(v)?v.type.__asyncResolved||{}:v.type);k&&!w(k)&&m(y)})}function m(w){const v=i.get(w);v&&(!s||!oi(v,s))?p(v):s&&fg(s),i.delete(w),o.delete(w)}Qe(()=>[t.include,t.exclude],([w,v])=>{w&&g(y=>Eu(w,y)),v&&g(y=>!Eu(v,y))},{flush:"post",deep:!0});let _=null;const E=()=>{_!=null&&(ef(n.subTree.type)?bn(()=>{i.set(_,Wd(n.subTree))},n.subTree.suspense):i.set(_,Wd(n.subTree)))};return jt(E),Zd(E),Ga(()=>{i.forEach(w=>{const{subTree:v,suspense:y}=n,k=Wd(v);if(w.type===k.type&&w.key===k.key){fg(k);const $=k.component.da;$&&bn($,y);return}p(w)})}),()=>{if(_=null,!e.default)return s=null;const w=e.default(),v=w[0];if(w.length>1)return s=null,w;if(!so(v)||!(v.shapeFlag&4)&&!(v.shapeFlag&128))return s=null,v;let y=Wd(v);if(y.type===mn)return s=null,y;const k=y.type,$=sf(io(y)?y.type.__asyncResolved||{}:k),{include:O,exclude:A,max:x}=t;if(O&&(!$||!Eu(O,$))||A&&$&&Eu(A,$))return y.shapeFlag&=-257,s=y,v;const N=y.key==null?k:y.key,P=i.get(N);return y.el&&(y=Ci(y),v.shapeFlag&128&&(v.ssContent=y)),_=N,P?(y.el=P.el,y.component=P.component,y.transition&&ro(y,y.transition),y.shapeFlag|=512,o.delete(N),o.add(N)):(o.add(N),x&&o.size>parseInt(x,10)&&m(o.values().next().value)),y.shapeFlag|=256,s=y,ef(v.type)?v:y}}};function Eu(t,e){return ze(t)?t.some(n=>Eu(n,e)):Dt(t)?t.split(",").includes(e):WP(t)?(t.lastIndex=0,t.test(e)):!1}function Hb(t,e){Wb(t,"a",e)}function Gb(t,e){Wb(t,"da",e)}function Wb(t,e,n=Mn){const r=t.__wdc||(t.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(Kd(e,r,n),n){let i=n.parent;for(;i&&i.parent;)Su(i.parent.vnode)&&bk(r,e,n,i),i=i.parent}}function bk(t,e,n,r){const i=Kd(e,t,r,!0);sr(()=>{Bp(r[e],i)},n)}function fg(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function Wd(t){return t.shapeFlag&128?t.ssContent:t}function Kd(t,e,n=Mn,r=!1){if(n){const i=n[t]||(n[t]=[]),o=e.__weh||(e.__weh=(...s)=>{xi();const a=$s(n),l=jr(e,n,t,s);return a(),wi(),l});return r?i.unshift(o):i.push(o),o}}const oo=t=>(e,n=Mn)=>{(!Ka||t==="sp")&&Kd(t,(...r)=>e(...r),n)},hg=oo("bm"),jt=oo("m"),pg=oo("bu"),Zd=oo("u"),Ga=oo("bum"),sr=oo("um"),Kb=oo("sp"),Zb=oo("rtg"),Xb=oo("rtc");function Yb(t,e=Mn){Kd("ec",t,e)}const gg="components",_k="directives";function Pr(t,e){return mg(gg,t,!0,e)||t}const Jb=Symbol.for("v-ndc");function Xn(t){return Dt(t)?mg(gg,t,!1)||t:t||Jb}function xk(t){return mg(_k,t)}function mg(t,e,n=!0,r=!1){const i=Dn||Mn;if(i){const o=i.type;if(t===gg){const a=sf(o,!1);if(a&&(a===e||a===$n(e)||a===lu($n(e))))return o}const s=Qb(i[t]||o[t],e)||Qb(i.appContext[t],e);return!s&&r?o:s}}function Qb(t,e){return t&&(t[e]||t[$n(e)]||t[lu($n(e))])}function It(t,e,n,r){let i;const o=n&&n[r],s=ze(t);if(s||Dt(t)){const a=s&&qi(t);let l=!1,u=!1;a&&(l=!hr(t),u=Si(t),t=Cd(t)),i=new Array(t.length);for(let c=0,d=t.length;c<d;c++)i[c]=e(l?u?Ma(ii(t[c])):ii(t[c]):t[c],c,void 0,o&&o[c])}else if(typeof t=="number"){i=new Array(t);for(let a=0;a<t;a++)i[a]=e(a+1,a,void 0,o&&o[a])}else if(kt(t))if(t[Symbol.iterator])i=Array.from(t,(a,l)=>e(a,l,void 0,o&&o[l]));else{const a=Object.keys(t);i=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];i[l]=e(t[c],c,l,o&&o[l])}}else i=[];return n&&(n[r]=i),i}function wk(t,e){for(let n=0;n<e.length;n++){const r=e[n];if(ze(r))for(let i=0;i<r.length;i++)t[r[i].name]=r[i].fn;else r&&(t[r.name]=r.key?(...i)=>{const o=r.fn(...i);return o&&(o.key=r.key),o}:r.fn)}return t}function Mt(t,e,n={},r,i){if(Dn.ce||Dn.parent&&io(Dn.parent)&&Dn.parent.ce){const u=Object.keys(n).length>0;return e!=="default"&&(n.name=e),j(),De(Ue,null,[ce("slot",n,r&&r())],u?-2:64)}let o=t[e];o&&o._c&&(o._d=!1),j();const s=o&&vg(o(n)),a=n.key||s&&s.key,l=De(Ue,{key:(a&&!ni(a)?a:`_${e}`)+(!s&&r?"_fb":"")},s||(r?r():[]),s&&t._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function vg(t){return t.some(e=>so(e)?!(e.type===mn||e.type===Ue&&!vg(e.children)):!0)?t:null}function Sk(t,e){const n={};for(const r in t)n[e&&/[A-Z]/.test(r)?`on:${r}`:uu(r)]=t[r];return n}const yg=t=>t?R_(t)?Ou(t):yg(t.parent):null,Tu=Nt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>yg(t.parent),$root:t=>yg(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>wg(t),$forceUpdate:t=>t.f||(t.f=()=>{sg(t.update)}),$nextTick:t=>t.n||(t.n=pr.bind(t.proxy)),$watch:t=>ek.bind(t)}),bg=(t,e)=>t!==ut&&!t.__isScriptSetup&&Ct(t,e),_g={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:o,accessCache:s,type:a,appContext:l}=t;if(e[0]!=="$"){const h=s[e];if(h!==void 0)switch(h){case 1:return r[e];case 2:return i[e];case 4:return n[e];case 3:return o[e]}else{if(bg(r,e))return s[e]=1,r[e];if(i!==ut&&Ct(i,e))return s[e]=2,i[e];if(Ct(o,e))return s[e]=3,o[e];if(n!==ut&&Ct(n,e))return s[e]=4,n[e];xg&&(s[e]=0)}}const u=Tu[e];let c,d;if(u)return e==="$attrs"&&Zn(t.attrs,"get",""),u(t);if((c=a.__cssModules)&&(c=c[e]))return c;if(n!==ut&&Ct(n,e))return s[e]=4,n[e];if(d=l.config.globalProperties,Ct(d,e))return d[e]},set({_:t},e,n){const{data:r,setupState:i,ctx:o}=t;return bg(i,e)?(i[e]=n,!0):r!==ut&&Ct(r,e)?(r[e]=n,!0):Ct(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(o[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:i,props:o,type:s}},a){let l;return!!(n[a]||t!==ut&&a[0]!=="$"&&Ct(t,a)||bg(e,a)||Ct(o,a)||Ct(r,a)||Ct(Tu,a)||Ct(i.config.globalProperties,a)||(l=s.__cssModules)&&l[a])},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Ct(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}},Ek=Nt({},_g,{get(t,e){if(e!==Symbol.unscopables)return _g.get(t,e,t)},has(t,e){return e[0]!=="_"&&!YP(e)}});function Tk(){return null}function Ik(){return null}function Ck(t){}function Ak(t){}function Pk(){return null}function kk(){}function Ok(t,e){return null}function qb(){return t_().slots}function e_(){return t_().attrs}function t_(t){const e=_n();return e.setupContext||(e.setupContext=M_(e))}function Iu(t){return ze(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function Nk(t,e){const n=Iu(t);for(const r in e){if(r.startsWith("__skip"))continue;let i=n[r];i?ze(i)||tt(i)?i=n[r]={type:i,default:e[r]}:i.default=e[r]:i===null&&(i=n[r]={default:e[r]}),i&&e[`__skip_${r}`]&&(i.skipFactory=!0)}return n}function Rk(t,e){return!t||!e?t||e:ze(t)&&ze(e)?t.concat(e):Nt({},Iu(t),Iu(e))}function n_(t,e){const n={};for(const r in t)e.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>t[r]});return n}function $k(t){const e=_n();let n=t();return Rg(),jp(n)&&(n=n.catch(r=>{throw $s(e),r})),[n,()=>$s(e)]}let xg=!0;function Dk(t){const e=wg(t),n=t.proxy,r=t.ctx;xg=!1,e.beforeCreate&&r_(e.beforeCreate,t,"bc");const{data:i,computed:o,methods:s,watch:a,provide:l,inject:u,created:c,beforeMount:d,mounted:h,beforeUpdate:p,updated:g,activated:m,deactivated:_,beforeDestroy:E,beforeUnmount:w,destroyed:v,unmounted:y,render:k,renderTracked:$,renderTriggered:O,errorCaptured:A,serverPrefetch:x,expose:N,inheritAttrs:P,components:b,directives:S,filters:I}=e;if(u&&Mk(u,r,null),s)for(const H in s){const G=s[H];tt(G)&&(r[H]=G.bind(n))}if(i){const H=i.call(n,n);kt(H)&&(t.data=Ra(H))}if(xg=!0,o)for(const H in o){const G=o[H],J=tt(G)?G.bind(n,n):tt(G.get)?G.get.bind(n,n):Br,oe=!tt(G)&&tt(G.set)?G.set.bind(n):Br,ae=Z({get:J,set:oe});Object.defineProperty(r,H,{enumerable:!0,configurable:!0,get:()=>ae.value,set:de=>ae.value=de})}if(a)for(const H in a)i_(a[H],r,n,H);if(l){const H=tt(l)?l.call(n):l;Reflect.ownKeys(H).forEach(G=>{to(G,H[G])})}c&&r_(c,t,"c");function M(H,G){ze(G)?G.forEach(J=>H(J.bind(n))):G&&H(G.bind(n))}if(M(hg,d),M(jt,h),M(pg,p),M(Zd,g),M(Hb,m),M(Gb,_),M(Yb,A),M(Xb,$),M(Zb,O),M(Ga,w),M(sr,y),M(Kb,x),ze(N))if(N.length){const H=t.exposed||(t.exposed={});N.forEach(G=>{Object.defineProperty(H,G,{get:()=>n[G],set:J=>n[G]=J,enumerable:!0})})}else t.exposed||(t.exposed={});k&&t.render===Br&&(t.render=k),P!=null&&(t.inheritAttrs=P),b&&(t.components=b),S&&(t.directives=S),x&&dg(t)}function Mk(t,e,n=Br){ze(t)&&(t=Sg(t));for(const r in t){const i=t[r];let o;kt(i)?"default"in i?o=yt(i.from||r,i.default,!0):o=yt(i.from||r):o=yt(i),Yt(o)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):e[r]=o}}function r_(t,e,n){jr(ze(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function i_(t,e,n,r){let i=r.includes(".")?Cb(n,r):()=>n[r];if(Dt(t)){const o=e[t];tt(o)&&Qe(i,o)}else if(tt(t))Qe(i,t.bind(n));else if(kt(t))if(ze(t))t.forEach(o=>i_(o,e,n,r));else{const o=tt(t.handler)?t.handler.bind(n):e[t.handler];tt(o)&&Qe(i,o,t)}}function wg(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=t.appContext,a=o.get(e);let l;return a?l=a:!i.length&&!n&&!r?l=e:(l={},i.length&&i.forEach(u=>Xd(l,u,s,!0)),Xd(l,e,s)),kt(e)&&o.set(e,l),l}function Xd(t,e,n,r=!1){const{mixins:i,extends:o}=e;o&&Xd(t,o,n,!0),i&&i.forEach(s=>Xd(t,s,n,!0));for(const s in e)if(!(r&&s==="expose")){const a=Lk[s]||n&&n[s];t[s]=a?a(t[s],e[s]):e[s]}return t}const Lk={data:o_,props:s_,emits:s_,methods:Cu,computed:Cu,beforeCreate:ar,created:ar,beforeMount:ar,mounted:ar,beforeUpdate:ar,updated:ar,beforeDestroy:ar,beforeUnmount:ar,destroyed:ar,unmounted:ar,activated:ar,deactivated:ar,errorCaptured:ar,serverPrefetch:ar,components:Cu,directives:Cu,watch:Fk,provide:o_,inject:Vk};function o_(t,e){return e?t?function(){return Nt(tt(t)?t.call(this,this):t,tt(e)?e.call(this,this):e)}:e:t}function Vk(t,e){return Cu(Sg(t),Sg(e))}function Sg(t){if(ze(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function ar(t,e){return t?[...new Set([].concat(t,e))]:e}function Cu(t,e){return t?Nt(Object.create(null),t,e):e}function s_(t,e){return t?ze(t)&&ze(e)?[...new Set([...t,...e])]:Nt(Object.create(null),Iu(t),Iu(e??{})):e}function Fk(t,e){if(!t)return e;if(!e)return t;const n=Nt(Object.create(null),t);for(const r in e)n[r]=ar(t[r],e[r]);return n}function a_(){return{app:null,config:{isNativeTag:U0,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let zk=0;function Uk(t,e){return function(r,i=null){tt(r)||(r=Nt({},r)),i!=null&&!kt(i)&&(i=null);const o=a_(),s=new WeakSet,a=[];let l=!1;const u=o.app={_uid:zk++,_component:r,_props:i,_container:null,_context:o,_instance:null,version:V_,get config(){return o.config},set config(c){},use(c,...d){return s.has(c)||(c&&tt(c.install)?(s.add(c),c.install(u,...d)):tt(c)&&(s.add(c),c(u,...d))),u},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),u},component(c,d){return d?(o.components[c]=d,u):o.components[c]},directive(c,d){return d?(o.directives[c]=d,u):o.directives[c]},mount(c,d,h){if(!l){const p=u._ceVNode||ce(r,i);return p.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),d&&e?e(p,c):t(p,c,h),l=!0,u._container=c,c.__vue_app__=u,Ou(p.component)}},onUnmount(c){a.push(c)},unmount(){l&&(jr(a,u._instance,16),t(null,u._container),delete u._container.__vue_app__)},provide(c,d){return o.provides[c]=d,u},runWithContext(c){const d=ks;ks=u;try{return c()}finally{ks=d}}};return u}}let ks=null;function Bk(t,e,n=ut){const r=_n(),i=$n(e),o=fr(e),s=l_(t,i),a=ig((l,u)=>{let c,d=ut,h;return Ib(()=>{const p=t[i];ir(c,p)&&(c=p,u())}),{get(){return l(),n.get?n.get(c):c},set(p){const g=n.set?n.set(p):p;if(!ir(g,c)&&!(d!==ut&&ir(p,d)))return;const m=r.vnode.props;m&&(e in m||i in m||o in m)&&(`onUpdate:${e}`in m||`onUpdate:${i}`in m||`onUpdate:${o}`in m)||(c=p,u()),r.emit(`update:${e}`,g),ir(p,g)&&ir(p,d)&&!ir(g,h)&&u(),d=p,h=g}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?s||ut:a,done:!1}:{done:!0}}}},a}const l_=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${$n(e)}Modifiers`]||t[`${fr(e)}Modifiers`];function jk(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||ut;let i=n;const o=e.startsWith("update:"),s=o&&l_(r,e.slice(7));s&&(s.trim&&(i=n.map(c=>Dt(c)?c.trim():c)),s.number&&(i=n.map(_d)));let a,l=r[a=uu(e)]||r[a=uu($n(e))];!l&&o&&(l=r[a=uu(fr(e))]),l&&jr(l,t,6,i);const u=r[a+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,jr(u,t,6,i)}}const Hk=new WeakMap;function u_(t,e,n=!1){const r=n?Hk:e.emitsCache,i=r.get(t);if(i!==void 0)return i;const o=t.emits;let s={},a=!1;if(!tt(t)){const l=u=>{const c=u_(u,e,!0);c&&(a=!0,Nt(s,c))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!o&&!a?(kt(t)&&r.set(t,null),null):(ze(o)?o.forEach(l=>s[l]=null):Nt(s,o),kt(t)&&r.set(t,s),s)}function Yd(t,e){return!t||!au(e)?!1:(e=e.slice(2).replace(/Once$/,""),Ct(t,e[0].toLowerCase()+e.slice(1))||Ct(t,fr(e))||Ct(t,e))}function Gq(){}function Jd(t){const{type:e,vnode:n,proxy:r,withProxy:i,propsOptions:[o],slots:s,attrs:a,emit:l,render:u,renderCache:c,props:d,data:h,setupState:p,ctx:g,inheritAttrs:m}=t,_=_u(t);let E,w;try{if(n.shapeFlag&4){const y=i||r,k=y;E=gr(u.call(k,y,c,d,p,h,g)),w=a}else{const y=e;E=gr(y.length>1?y(d,{attrs:a,slots:s,emit:l}):y(d,null)),w=e.props?a:Wk(a)}}catch(y){Pu.length=0,Ps(y,t,1),E=ce(mn)}let v=E;if(w&&m!==!1){const y=Object.keys(w),{shapeFlag:k}=v;y.length&&k&7&&(o&&y.some(Up)&&(w=Kk(w,o)),v=Ci(v,w,!1,!0))}return n.dirs&&(v=Ci(v,null,!1,!0),v.dirs=v.dirs?v.dirs.concat(n.dirs):n.dirs),n.transition&&ro(v,n.transition),E=v,_u(_),E}function Gk(t,e=!0){let n;for(let r=0;r<t.length;r++){const i=t[r];if(so(i)){if(i.type!==mn||i.children==="v-if"){if(n)return;n=i}}else return}return n}const Wk=t=>{let e;for(const n in t)(n==="class"||n==="style"||au(n))&&((e||(e={}))[n]=t[n]);return e},Kk=(t,e)=>{const n={};for(const r in t)(!Up(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function Zk(t,e,n){const{props:r,children:i,component:o}=t,{props:s,children:a,patchFlag:l}=e,u=o.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?c_(r,s,u):!!s;if(l&8){const c=e.dynamicProps;for(let d=0;d<c.length;d++){const h=c[d];if(s[h]!==r[h]&&!Yd(u,h))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:r===s?!1:r?s?c_(r,s,u):!0:!!s;return!1}function c_(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(e[o]!==t[o]&&!Yd(n,o))return!0}return!1}function Qd({vnode:t,parent:e},n){for(;e;){const r=e.subTree;if(r.suspense&&r.suspense.activeBranch===t&&(r.el=t.el),r===t)(t=e.vnode).el=n,e=e.parent;else break}}const d_={},f_=()=>Object.create(d_),h_=t=>Object.getPrototypeOf(t)===d_;function Xk(t,e,n,r=!1){const i={},o=f_();t.propsDefaults=Object.create(null),p_(t,e,i,o);for(const s in t.propsOptions[0])s in i||(i[s]=void 0);n?t.props=r?i:fb(i):t.type.props?t.props=i:t.props=o,t.attrs=o}function Yk(t,e,n,r){const{props:i,attrs:o,vnode:{patchFlag:s}}=t,a=vt(i),[l]=t.propsOptions;let u=!1;if((r||s>0)&&!(s&16)){if(s&8){const c=t.vnode.dynamicProps;for(let d=0;d<c.length;d++){let h=c[d];if(Yd(t.emitsOptions,h))continue;const p=e[h];if(l)if(Ct(o,h))p!==o[h]&&(o[h]=p,u=!0);else{const g=$n(h);i[g]=Eg(l,a,g,p,t,!1)}else p!==o[h]&&(o[h]=p,u=!0)}}}else{p_(t,e,i,o)&&(u=!0);let c;for(const d in a)(!e||!Ct(e,d)&&((c=fr(d))===d||!Ct(e,c)))&&(l?n&&(n[d]!==void 0||n[c]!==void 0)&&(i[d]=Eg(l,a,d,void 0,t,!0)):delete i[d]);if(o!==a)for(const d in o)(!e||!Ct(e,d))&&(delete o[d],u=!0)}u&&Ji(t.attrs,"set","")}function p_(t,e,n,r){const[i,o]=t.propsOptions;let s=!1,a;if(e)for(let l in e){if(ka(l))continue;const u=e[l];let c;i&&Ct(i,c=$n(l))?!o||!o.includes(c)?n[c]=u:(a||(a={}))[c]=u:Yd(t.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,s=!0)}if(o){const l=vt(n),u=a||ut;for(let c=0;c<o.length;c++){const d=o[c];n[d]=Eg(i,l,d,u[d],t,!Ct(u,d))}}return s}function Eg(t,e,n,r,i,o){const s=t[n];if(s!=null){const a=Ct(s,"default");if(a&&r===void 0){const l=s.default;if(s.type!==Function&&!s.skipFactory&&tt(l)){const{propsDefaults:u}=i;if(n in u)r=u[n];else{const c=$s(i);r=u[n]=l.call(null,e),c()}}else r=l;i.ce&&i.ce._setProp(n,r)}s[0]&&(o&&!a?r=!1:s[1]&&(r===""||r===fr(n))&&(r=!0))}return r}const Jk=new WeakMap;function g_(t,e,n=!1){const r=n?Jk:e.propsCache,i=r.get(t);if(i)return i;const o=t.props,s={},a=[];let l=!1;if(!tt(t)){const c=d=>{l=!0;const[h,p]=g_(d,e,!0);Nt(s,h),p&&a.push(...p)};!n&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!o&&!l)return kt(t)&&r.set(t,Ca),Ca;if(ze(o))for(let c=0;c<o.length;c++){const d=$n(o[c]);m_(d)&&(s[d]=ut)}else if(o)for(const c in o){const d=$n(c);if(m_(d)){const h=o[c],p=s[d]=ze(h)||tt(h)?{type:h}:Nt({},h),g=p.type;let m=!1,_=!0;if(ze(g))for(let E=0;E<g.length;++E){const w=g[E],v=tt(w)&&w.name;if(v==="Boolean"){m=!0;break}else v==="String"&&(_=!1)}else m=tt(g)&&g.name==="Boolean";p[0]=m,p[1]=_,(m||Ct(p,"default"))&&a.push(d)}}const u=[s,a];return kt(t)&&r.set(t,u),u}function m_(t){return t[0]!=="$"&&!ka(t)}const Tg=t=>t==="_"||t==="_ctx"||t==="$stable",Ig=t=>ze(t)?t.map(gr):[gr(t)],Qk=(t,e,n)=>{if(e._n)return e;const r=ke((...i)=>Ig(e(...i)),n);return r._c=!1,r},v_=(t,e,n)=>{const r=t._ctx;for(const i in t){if(Tg(i))continue;const o=t[i];if(tt(o))e[i]=Qk(i,o,r);else if(o!=null){const s=Ig(o);e[i]=()=>s}}},y_=(t,e)=>{const n=Ig(e);t.slots.default=()=>n},b_=(t,e,n)=>{for(const r in e)(n||!Tg(r))&&(t[r]=e[r])},qk=(t,e,n)=>{const r=t.slots=f_();if(t.vnode.shapeFlag&32){const i=e._;i?(b_(r,e,n),n&&H0(r,"_",i,!0)):v_(e,r)}else e&&y_(t,e)},eO=(t,e,n)=>{const{vnode:r,slots:i}=t;let o=!0,s=ut;if(r.shapeFlag&32){const a=e._;a?n&&a===1?o=!1:b_(i,e,n):(o=!e.$stable,v_(e,i)),s=e}else e&&(y_(t,e),s={default:1});if(o)for(const a in i)!Tg(a)&&s[a]==null&&delete i[a]},bn=A_;function __(t){return w_(t)}function x_(t){return w_(t,ak)}function w_(t,e){const n=wd();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:s,createText:a,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:h,setScopeId:p=Br,insertStaticContent:g}=t,m=(B,D,L,z=null,F=null,W=null,ee=void 0,Y=null,te=!!D.dynamicChildren)=>{if(B===D)return;B&&!oi(B,D)&&(z=fe(B),de(B,F,W,!0),B=null),D.patchFlag===-2&&(te=!1,D.dynamicChildren=null);const{type:Q,ref:ye,shapeFlag:he}=D;switch(Q){case $o:_(B,D,L,z);break;case mn:E(B,D,L,z);break;case Ns:B==null&&w(D,L,z,ee);break;case Ue:b(B,D,L,z,F,W,ee,Y,te);break;default:he&1?k(B,D,L,z,F,W,ee,Y,te):he&6?S(B,D,L,z,F,W,ee,Y,te):(he&64||he&128)&&Q.process(B,D,L,z,F,W,ee,Y,te,Be)}ye!=null&&F?Ba(ye,B&&B.ref,W,D||B,!D):ye==null&&B&&B.ref!=null&&Ba(B.ref,null,W,B,!0)},_=(B,D,L,z)=>{if(B==null)r(D.el=a(D.children),L,z);else{const F=D.el=B.el;D.children!==B.children&&u(F,D.children)}},E=(B,D,L,z)=>{B==null?r(D.el=l(D.children||""),L,z):D.el=B.el},w=(B,D,L,z)=>{[B.el,B.anchor]=g(B.children,D,L,z,B.el,B.anchor)},v=({el:B,anchor:D},L,z)=>{let F;for(;B&&B!==D;)F=h(B),r(B,L,z),B=F;r(D,L,z)},y=({el:B,anchor:D})=>{let L;for(;B&&B!==D;)L=h(B),i(B),B=L;i(D)},k=(B,D,L,z,F,W,ee,Y,te)=>{if(D.type==="svg"?ee="svg":D.type==="math"&&(ee="mathml"),B==null)$(D,L,z,F,W,ee,Y,te);else{const Q=B.el&&B.el._isVueCE?B.el:null;try{Q&&Q._beginPatch(),x(B,D,F,W,ee,Y,te)}finally{Q&&Q._endPatch()}}},$=(B,D,L,z,F,W,ee,Y)=>{let te,Q;const{props:ye,shapeFlag:he,transition:be,dirs:Le}=B;if(te=B.el=s(B.type,W,ye&&ye.is,ye),he&8?c(te,B.children):he&16&&A(B.children,te,null,z,F,Cg(B,W),ee,Y),Le&&Ii(B,null,z,"created"),O(te,B,B.scopeId,ee,z),ye){for(const gt in ye)gt!=="value"&&!ka(gt)&&o(te,gt,null,ye[gt],W,z);"value"in ye&&o(te,"value",null,ye.value,W),(Q=ye.onVnodeBeforeMount)&&mr(Q,z,B)}Le&&Ii(B,null,z,"beforeMount");const rt=S_(F,be);rt&&be.beforeEnter(te),r(te,D,L),((Q=ye&&ye.onVnodeMounted)||rt||Le)&&bn(()=>{Q&&mr(Q,z,B),rt&&be.enter(te),Le&&Ii(B,null,z,"mounted")},F)},O=(B,D,L,z,F)=>{if(L&&p(B,L),z)for(let W=0;W<z.length;W++)p(B,z[W]);if(F){let W=F.subTree;if(D===W||ef(W.type)&&(W.ssContent===D||W.ssFallback===D)){const ee=F.vnode;O(B,ee,ee.scopeId,ee.slotScopeIds,F.parent)}}},A=(B,D,L,z,F,W,ee,Y,te=0)=>{for(let Q=te;Q<B.length;Q++){const ye=B[Q]=Y?Do(B[Q]):gr(B[Q]);m(null,ye,D,L,z,F,W,ee,Y)}},x=(B,D,L,z,F,W,ee)=>{const Y=D.el=B.el;let{patchFlag:te,dynamicChildren:Q,dirs:ye}=D;te|=B.patchFlag&16;const he=B.props||ut,be=D.props||ut;let Le;if(L&&Os(L,!1),(Le=be.onVnodeBeforeUpdate)&&mr(Le,L,D,B),ye&&Ii(D,B,L,"beforeUpdate"),L&&Os(L,!0),(he.innerHTML&&be.innerHTML==null||he.textContent&&be.textContent==null)&&c(Y,""),Q?N(B.dynamicChildren,Q,Y,L,z,Cg(D,F),W):ee||G(B,D,Y,null,L,z,Cg(D,F),W,!1),te>0){if(te&16)P(Y,he,be,L,F);else if(te&2&&he.class!==be.class&&o(Y,"class",null,be.class,F),te&4&&o(Y,"style",he.style,be.style,F),te&8){const rt=D.dynamicProps;for(let gt=0;gt<rt.length;gt++){const X=rt[gt],q=he[X],ie=be[X];(ie!==q||X==="value")&&o(Y,X,q,ie,F,L)}}te&1&&B.children!==D.children&&c(Y,D.children)}else!ee&&Q==null&&P(Y,he,be,L,F);((Le=be.onVnodeUpdated)||ye)&&bn(()=>{Le&&mr(Le,L,D,B),ye&&Ii(D,B,L,"updated")},z)},N=(B,D,L,z,F,W,ee)=>{for(let Y=0;Y<D.length;Y++){const te=B[Y],Q=D[Y],ye=te.el&&(te.type===Ue||!oi(te,Q)||te.shapeFlag&198)?d(te.el):L;m(te,Q,ye,null,z,F,W,ee,!0)}},P=(B,D,L,z,F)=>{if(D!==L){if(D!==ut)for(const W in D)!ka(W)&&!(W in L)&&o(B,W,D[W],null,F,z);for(const W in L){if(ka(W))continue;const ee=L[W],Y=D[W];ee!==Y&&W!=="value"&&o(B,W,Y,ee,F,z)}"value"in L&&o(B,"value",D.value,L.value,F)}},b=(B,D,L,z,F,W,ee,Y,te)=>{const Q=D.el=B?B.el:a(""),ye=D.anchor=B?B.anchor:a("");let{patchFlag:he,dynamicChildren:be,slotScopeIds:Le}=D;Le&&(Y=Y?Y.concat(Le):Le),B==null?(r(Q,L,z),r(ye,L,z),A(D.children||[],L,ye,F,W,ee,Y,te)):he>0&&he&64&&be&&B.dynamicChildren&&B.dynamicChildren.length===be.length?(N(B.dynamicChildren,be,L,F,W,ee,Y),(D.key!=null||F&&D===F.subTree)&&Ag(B,D,!0)):G(B,D,L,ye,F,W,ee,Y,te)},S=(B,D,L,z,F,W,ee,Y,te)=>{D.slotScopeIds=Y,B==null?D.shapeFlag&512?F.ctx.activate(D,L,z,ee,te):I(D,L,z,F,W,ee,te):V(B,D,te)},I=(B,D,L,z,F,W,ee)=>{const Y=B.component=N_(B,z,F);if(Su(B)&&(Y.ctx.renderer=Be),$_(Y,!1,ee),Y.asyncDep){if(F&&F.registerDep(Y,M,ee),!B.el){const te=Y.subTree=ce(mn);E(null,te,D,L),B.placeholder=te.el}}else M(Y,B,D,L,F,W,ee)},V=(B,D,L)=>{const z=D.component=B.component;if(Zk(B,D,L))if(z.asyncDep&&!z.asyncResolved){H(z,D,L);return}else z.next=D,z.update();else D.el=B.el,z.vnode=D},M=(B,D,L,z,F,W,ee)=>{const Y=()=>{if(B.isMounted){let{next:he,bu:be,u:Le,parent:rt,vnode:gt}=B;{const Ce=E_(B);if(Ce){he&&(he.el=gt.el,H(B,he,ee)),Ce.asyncDep.then(()=>{B.isUnmounted||Y()});return}}let X=he,q;Os(B,!1),he?(he.el=gt.el,H(B,he,ee)):he=gt,be&&Oa(be),(q=he.props&&he.props.onVnodeBeforeUpdate)&&mr(q,rt,he,gt),Os(B,!0);const ie=Jd(B),ge=B.subTree;B.subTree=ie,m(ge,ie,d(ge.el),fe(ge),B,F,W),he.el=ie.el,X===null&&Qd(B,ie.el),Le&&bn(Le,F),(q=he.props&&he.props.onVnodeUpdated)&&bn(()=>mr(q,rt,he,gt),F)}else{let he;const{el:be,props:Le}=D,{bm:rt,m:gt,parent:X,root:q,type:ie}=B,ge=io(D);if(Os(B,!1),rt&&Oa(rt),!ge&&(he=Le&&Le.onVnodeBeforeMount)&&mr(he,X,D),Os(B,!0),be&&Me){const Ce=()=>{B.subTree=Jd(B),Me(be,B.subTree,B,F,null)};ge&&ie.__asyncHydrate?ie.__asyncHydrate(be,B,Ce):Ce()}else{q.ce&&q.ce._def.shadowRoot!==!1&&q.ce._injectChildStyle(ie);const Ce=B.subTree=Jd(B);m(null,Ce,L,z,B,F,W),D.el=Ce.el}if(gt&&bn(gt,F),!ge&&(he=Le&&Le.onVnodeMounted)){const Ce=D;bn(()=>mr(he,X,Ce),F)}(D.shapeFlag&256||X&&io(X.vnode)&&X.vnode.shapeFlag&256)&&B.a&&bn(B.a,F),B.isMounted=!0,D=L=z=null}};B.scope.on();const te=B.effect=new du(Y);B.scope.off();const Q=B.update=te.run.bind(te),ye=B.job=te.runIfDirty.bind(te);ye.i=B,ye.id=B.uid,te.scheduler=()=>sg(ye),Os(B,!0),Q()},H=(B,D,L)=>{D.component=B;const z=B.vnode.props;B.vnode=D,B.next=null,Yk(B,D.props,z,L),eO(B,D.children,L),xi(),_b(B),wi()},G=(B,D,L,z,F,W,ee,Y,te=!1)=>{const Q=B&&B.children,ye=B?B.shapeFlag:0,he=D.children,{patchFlag:be,shapeFlag:Le}=D;if(be>0){if(be&128){oe(Q,he,L,z,F,W,ee,Y,te);return}else if(be&256){J(Q,he,L,z,F,W,ee,Y,te);return}}Le&8?(ye&16&&le(Q,F,W),he!==Q&&c(L,he)):ye&16?Le&16?oe(Q,he,L,z,F,W,ee,Y,te):le(Q,F,W,!0):(ye&8&&c(L,""),Le&16&&A(he,L,z,F,W,ee,Y,te))},J=(B,D,L,z,F,W,ee,Y,te)=>{B=B||Ca,D=D||Ca;const Q=B.length,ye=D.length,he=Math.min(Q,ye);let be;for(be=0;be<he;be++){const Le=D[be]=te?Do(D[be]):gr(D[be]);m(B[be],Le,L,null,F,W,ee,Y,te)}Q>ye?le(B,F,W,!0,!1,he):A(D,L,z,F,W,ee,Y,te,he)},oe=(B,D,L,z,F,W,ee,Y,te)=>{let Q=0;const ye=D.length;let he=B.length-1,be=ye-1;for(;Q<=he&&Q<=be;){const Le=B[Q],rt=D[Q]=te?Do(D[Q]):gr(D[Q]);if(oi(Le,rt))m(Le,rt,L,null,F,W,ee,Y,te);else break;Q++}for(;Q<=he&&Q<=be;){const Le=B[he],rt=D[be]=te?Do(D[be]):gr(D[be]);if(oi(Le,rt))m(Le,rt,L,null,F,W,ee,Y,te);else break;he--,be--}if(Q>he){if(Q<=be){const Le=be+1,rt=Le<ye?D[Le].el:z;for(;Q<=be;)m(null,D[Q]=te?Do(D[Q]):gr(D[Q]),L,rt,F,W,ee,Y,te),Q++}}else if(Q>be)for(;Q<=he;)de(B[Q],F,W,!0),Q++;else{const Le=Q,rt=Q,gt=new Map;for(Q=rt;Q<=be;Q++){const Je=D[Q]=te?Do(D[Q]):gr(D[Q]);Je.key!=null&>.set(Je.key,Q)}let X,q=0;const ie=be-rt+1;let ge=!1,Ce=0;const We=new Array(ie);for(Q=0;Q<ie;Q++)We[Q]=0;for(Q=Le;Q<=he;Q++){const Je=B[Q];if(q>=ie){de(Je,F,W,!0);continue}let St;if(Je.key!=null)St=gt.get(Je.key);else for(X=rt;X<=be;X++)if(We[X-rt]===0&&oi(Je,D[X])){St=X;break}St===void 0?de(Je,F,W,!0):(We[St-rt]=Q+1,St>=Ce?Ce=St:ge=!0,m(Je,D[St],L,null,F,W,ee,Y,te),q++)}const ot=ge?tO(We):Ca;for(X=ot.length-1,Q=ie-1;Q>=0;Q--){const Je=rt+Q,St=D[Je],Ze=D[Je+1],Ve=Je+1<ye?Ze.el||T_(Ze):z;We[Q]===0?m(null,St,L,Ve,F,W,ee,Y,te):ge&&(X<0||Q!==ot[X]?ae(St,L,Ve,2):X--)}}},ae=(B,D,L,z,F=null)=>{const{el:W,type:ee,transition:Y,children:te,shapeFlag:Q}=B;if(Q&6){ae(B.component.subTree,D,L,z);return}if(Q&128){B.suspense.move(D,L,z);return}if(Q&64){ee.move(B,D,L,Be);return}if(ee===Ue){r(W,D,L);for(let he=0;he<te.length;he++)ae(te[he],D,L,z);r(B.anchor,D,L);return}if(ee===Ns){v(B,D,L);return}if(z!==2&&Q&1&&Y)if(z===0)Y.beforeEnter(W),r(W,D,L),bn(()=>Y.enter(W),F);else{const{leave:he,delayLeave:be,afterLeave:Le}=Y,rt=()=>{B.ctx.isUnmounted?i(W):r(W,D,L)},gt=()=>{W._isLeaving&&W[no](!0),he(W,()=>{rt(),Le&&Le()})};be?be(W,rt,gt):gt()}else r(W,D,L)},de=(B,D,L,z=!1,F=!1)=>{const{type:W,props:ee,ref:Y,children:te,dynamicChildren:Q,shapeFlag:ye,patchFlag:he,dirs:be,cacheIndex:Le}=B;if(he===-2&&(F=!1),Y!=null&&(xi(),Ba(Y,null,L,B,!0),wi()),Le!=null&&(D.renderCache[Le]=void 0),ye&256){D.ctx.deactivate(B);return}const rt=ye&1&&be,gt=!io(B);let X;if(gt&&(X=ee&&ee.onVnodeBeforeUnmount)&&mr(X,D,B),ye&6)pe(B.component,L,z);else{if(ye&128){B.suspense.unmount(L,z);return}rt&&Ii(B,null,D,"beforeUnmount"),ye&64?B.type.remove(B,D,L,Be,z):Q&&!Q.hasOnce&&(W!==Ue||he>0&&he&64)?le(Q,D,L,!1,!0):(W===Ue&&he&384||!F&&ye&16)&&le(te,D,L),z&&xe(B)}(gt&&(X=ee&&ee.onVnodeUnmounted)||rt)&&bn(()=>{X&&mr(X,D,B),rt&&Ii(B,null,D,"unmounted")},L)},xe=B=>{const{type:D,el:L,anchor:z,transition:F}=B;if(D===Ue){Ee(L,z);return}if(D===Ns){y(B);return}const W=()=>{i(L),F&&!F.persisted&&F.afterLeave&&F.afterLeave()};if(B.shapeFlag&1&&F&&!F.persisted){const{leave:ee,delayLeave:Y}=F,te=()=>ee(L,W);Y?Y(B.el,W,te):te()}else W()},Ee=(B,D)=>{let L;for(;B!==D;)L=h(B),i(B),B=L;i(D)},pe=(B,D,L)=>{const{bum:z,scope:F,job:W,subTree:ee,um:Y,m:te,a:Q}=B;qd(te),qd(Q),z&&Oa(z),F.stop(),W&&(W.flags|=8,de(ee,B,D,L)),Y&&bn(Y,D),bn(()=>{B.isUnmounted=!0},D)},le=(B,D,L,z=!1,F=!1,W=0)=>{for(let ee=W;ee<B.length;ee++)de(B[ee],D,L,z,F)},fe=B=>{if(B.shapeFlag&6)return fe(B.component.subTree);if(B.shapeFlag&128)return B.suspense.next();const D=h(B.anchor||B.el),L=D&&D[Ab];return L?h(L):D};let Re=!1;const $e=(B,D,L)=>{let z;B==null?D._vnode&&(de(D._vnode,null,null,!0),z=D._vnode.component):m(D._vnode||null,B,D,null,null,null,L),D._vnode=B,Re||(Re=!0,_b(z),Dd(),Re=!1)},Be={p:m,um:de,m:ae,r:xe,mt:I,mc:A,pc:G,pbc:N,n:fe,o:t};let et,Me;return e&&([et,Me]=e(Be)),{render:$e,hydrate:et,createApp:Uk($e,et)}}function Cg({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function Os({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function S_(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Ag(t,e,n=!1){const r=t.children,i=e.children;if(ze(r)&&ze(i))for(let o=0;o<r.length;o++){const s=r[o];let a=i[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[o]=Do(i[o]),a.el=s.el),!n&&a.patchFlag!==-2&&Ag(s,a)),a.type===$o&&(a.patchFlag!==-1?a.el=s.el:a.__elIndex=o+(t.type===Ue?1:0)),a.type===mn&&!a.el&&(a.el=s.el)}}function tO(t){const e=t.slice(),n=[0];let r,i,o,s,a;const l=t.length;for(r=0;r<l;r++){const u=t[r];if(u!==0){if(i=n[n.length-1],t[i]<u){e[r]=i,n.push(r);continue}for(o=0,s=n.length-1;o<s;)a=o+s>>1,t[n[a]]<u?o=a+1:s=a;u<t[n[o]]&&(o>0&&(e[r]=n[o-1]),n[o]=r)}}for(o=n.length,s=n[o-1];o-- >0;)n[o]=s,s=e[s];return n}function E_(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:E_(e)}function qd(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}function T_(t){if(t.placeholder)return t.placeholder;const e=t.component;return e?T_(e.subTree):null}const ef=t=>t.__isSuspense;let Pg=0;const nO={name:"Suspense",__isSuspense:!0,process(t,e,n,r,i,o,s,a,l,u){if(t==null)rO(e,n,r,i,o,s,a,l,u);else{if(o&&o.deps>0&&!t.suspense.isInFallback){e.suspense=t.suspense,e.suspense.vnode=e,e.el=t.el;return}iO(t,e,n,r,i,s,a,l,u)}},hydrate:oO,normalize:sO};function Au(t,e){const n=t.props&&t.props[e];tt(n)&&n()}function rO(t,e,n,r,i,o,s,a,l){const{p:u,o:{createElement:c}}=l,d=c("div"),h=t.suspense=I_(t,i,r,e,d,n,o,s,a,l);u(null,h.pendingBranch=t.ssContent,d,null,r,h,o,s),h.deps>0?(Au(t,"onPending"),Au(t,"onFallback"),u(null,t.ssFallback,e,n,r,null,o,s),Wa(h,t.ssFallback)):h.resolve(!1,!0)}function iO(t,e,n,r,i,o,s,a,{p:l,um:u,o:{createElement:c}}){const d=e.suspense=t.suspense;d.vnode=e,e.el=t.el;const h=e.ssContent,p=e.ssFallback,{activeBranch:g,pendingBranch:m,isInFallback:_,isHydrating:E}=d;if(m)d.pendingBranch=h,oi(m,h)?(l(m,h,d.hiddenContainer,null,i,d,o,s,a),d.deps<=0?d.resolve():_&&(E||(l(g,p,n,r,i,null,o,s,a),Wa(d,p)))):(d.pendingId=Pg++,E?(d.isHydrating=!1,d.activeBranch=m):u(m,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=c("div"),_?(l(null,h,d.hiddenContainer,null,i,d,o,s,a),d.deps<=0?d.resolve():(l(g,p,n,r,i,null,o,s,a),Wa(d,p))):g&&oi(g,h)?(l(g,h,n,r,i,d,o,s,a),d.resolve(!0)):(l(null,h,d.hiddenContainer,null,i,d,o,s,a),d.deps<=0&&d.resolve()));else if(g&&oi(g,h))l(g,h,n,r,i,d,o,s,a),Wa(d,h);else if(Au(e,"onPending"),d.pendingBranch=h,h.shapeFlag&512?d.pendingId=h.component.suspenseId:d.pendingId=Pg++,l(null,h,d.hiddenContainer,null,i,d,o,s,a),d.deps<=0)d.resolve();else{const{timeout:w,pendingId:v}=d;w>0?setTimeout(()=>{d.pendingId===v&&d.fallback(p)},w):w===0&&d.fallback(p)}}function I_(t,e,n,r,i,o,s,a,l,u,c=!1){const{p:d,m:h,um:p,n:g,o:{parentNode:m,remove:_}}=u;let E;const w=aO(t);w&&e&&e.pendingBranch&&(E=e.pendingId,e.deps++);const v=t.props?xd(t.props.timeout):void 0,y=o,k={vnode:t,parent:e,parentComponent:n,namespace:s,container:r,hiddenContainer:i,deps:0,pendingId:Pg++,timeout:typeof v=="number"?v:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve($=!1,O=!1){const{vnode:A,activeBranch:x,pendingBranch:N,pendingId:P,effects:b,parentComponent:S,container:I,isInFallback:V}=k;let M=!1;k.isHydrating?k.isHydrating=!1:$||(M=x&&N.transition&&N.transition.mode==="out-in",M&&(x.transition.afterLeave=()=>{P===k.pendingId&&(h(N,I,o===y?g(x):o,0),yu(b),V&&A.ssFallback&&(A.ssFallback.el=null))}),x&&(m(x.el)===I&&(o=g(x)),p(x,S,k,!0),!M&&V&&A.ssFallback&&bn(()=>A.ssFallback.el=null,k)),M||h(N,I,o,0)),Wa(k,N),k.pendingBranch=null,k.isInFallback=!1;let H=k.parent,G=!1;for(;H;){if(H.pendingBranch){H.effects.push(...b),G=!0;break}H=H.parent}!G&&!M&&yu(b),k.effects=[],w&&e&&e.pendingBranch&&E===e.pendingId&&(e.deps--,e.deps===0&&!O&&e.resolve()),Au(A,"onResolve")},fallback($){if(!k.pendingBranch)return;const{vnode:O,activeBranch:A,parentComponent:x,container:N,namespace:P}=k;Au(O,"onFallback");const b=g(A),S=()=>{k.isInFallback&&(d(null,$,N,b,x,null,P,a,l),Wa(k,$))},I=$.transition&&$.transition.mode==="out-in";I&&(A.transition.afterLeave=S),k.isInFallback=!0,p(A,x,null,!0),I||S()},move($,O,A){k.activeBranch&&h(k.activeBranch,$,O,A),k.container=$},next(){return k.activeBranch&&g(k.activeBranch)},registerDep($,O,A){const x=!!k.pendingBranch;x&&k.deps++;const N=$.vnode.el;$.asyncDep.catch(P=>{Ps(P,$,0)}).then(P=>{if($.isUnmounted||k.isUnmounted||k.pendingId!==$.suspenseId)return;$.asyncResolved=!0;const{vnode:b}=$;$g($,P,!1),N&&(b.el=N);const S=!N&&$.subTree.el;O($,b,m(N||$.subTree.el),N?null:g($.subTree),k,s,A),S&&(b.placeholder=null,_(S)),Qd($,b.el),x&&--k.deps===0&&k.resolve()})},unmount($,O){k.isUnmounted=!0,k.activeBranch&&p(k.activeBranch,n,$,O),k.pendingBranch&&p(k.pendingBranch,n,$,O)}};return k}function oO(t,e,n,r,i,o,s,a,l){const u=e.suspense=I_(e,r,n,t.parentNode,document.createElement("div"),null,i,o,s,a,!0),c=l(t,u.pendingBranch=e.ssContent,n,u,o,s);return u.deps===0&&u.resolve(!1,!0),c}function sO(t){const{shapeFlag:e,children:n}=t,r=e&32;t.ssContent=C_(r?n.default:n),t.ssFallback=r?C_(n.fallback):ce(mn)}function C_(t){let e;if(tt(t)){const n=Rs&&t._c;n&&(t._d=!1,j()),t=t(),n&&(t._d=!0,e=Yn,P_())}return ze(t)&&(t=Gk(t)),t=gr(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(n=>n!==t)),t}function A_(t,e){e&&e.pendingBranch?ze(t)?e.effects.push(...t):e.effects.push(t):yu(t)}function Wa(t,e){t.activeBranch=e;const{vnode:n,parentComponent:r}=t;let i=e.el;for(;!i&&e.component;)e=e.component.subTree,i=e.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,Qd(r,i))}function aO(t){const e=t.props&&t.props.suspensible;return e!=null&&e!==!1}const Ue=Symbol.for("v-fgt"),$o=Symbol.for("v-txt"),mn=Symbol.for("v-cmt"),Ns=Symbol.for("v-stc"),Pu=[];let Yn=null;function j(t=!1){Pu.push(Yn=t?null:[])}function P_(){Pu.pop(),Yn=Pu[Pu.length-1]||null}let Rs=1;function ku(t,e=!1){Rs+=t,t<0&&Yn&&e&&(Yn.hasOnce=!0)}function k_(t){return t.dynamicChildren=Rs>0?Yn||Ca:null,P_(),Rs>0&&Yn&&Yn.push(t),t}function K(t,e,n,r,i,o){return k_(C(t,e,n,r,i,o,!0))}function De(t,e,n,r,i){return k_(ce(t,e,n,r,i,!0))}function so(t){return t?t.__v_isVNode===!0:!1}function oi(t,e){return t.type===e.type&&t.key===e.key}function lO(t){}const O_=({key:t})=>t??null,tf=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?Dt(t)||Yt(t)||tt(t)?{i:Dn,r:t,k:e,f:!!n}:t:null);function C(t,e=null,n=null,r=0,i=null,o=t===Ue?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&O_(e),ref:e&&tf(e),scopeId:Ld,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Dn};return a?(Og(l,n),o&128&&t.normalize(l)):n&&(l.shapeFlag|=Dt(n)?8:16),Rs>0&&!s&&Yn&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Yn.push(l),l}const ce=uO;function uO(t,e=null,n=null,r=0,i=null,o=!1){if((!t||t===Jb)&&(t=mn),so(t)){const a=Ci(t,e,!0);return n&&Og(a,n),Rs>0&&!o&&Yn&&(a.shapeFlag&6?Yn[Yn.indexOf(t)]=a:Yn.push(a)),a.patchFlag=-2,a}if(yO(t)&&(t=t.__vccOpts),e){e=kg(e);let{class:a,style:l}=e;a&&!Dt(a)&&(e.class=Se(a)),kt(l)&&(vu(l)&&!ze(l)&&(l=Nt({},l)),e.style=Xe(l))}const s=Dt(t)?1:ef(t)?128:Pb(t)?64:kt(t)?4:tt(t)?2:0;return C(t,e,n,r,i,s,o,!0)}function kg(t){return t?vu(t)||h_(t)?Nt({},t):t:null}function Ci(t,e,n=!1,r=!1){const{props:i,ref:o,patchFlag:s,children:a,transition:l}=t,u=e?ao(i||{},e):i,c={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&O_(u),ref:e&&e.ref?n&&o?ze(o)?o.concat(tf(e)):[o,tf(e)]:tf(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Ue?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Ci(t.ssContent),ssFallback:t.ssFallback&&Ci(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&r&&ro(c,l.clone(c)),c}function bt(t=" ",e=0){return ce($o,null,t,e)}function nf(t,e){const n=ce(Ns,null,t);return n.staticCount=e,n}function Oe(t="",e=!1){return e?(j(),De(mn,null,t)):ce(mn,null,t)}function gr(t){return t==null||typeof t=="boolean"?ce(mn):ze(t)?ce(Ue,null,t.slice()):so(t)?Do(t):ce($o,null,String(t))}function Do(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Ci(t)}function Og(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(ze(e))n=16;else if(typeof e=="object")if(r&65){const i=e.default;i&&(i._c&&(i._d=!1),Og(t,i()),i._c&&(i._d=!0));return}else{n=32;const i=e._;!i&&!h_(e)?e._ctx=Dn:i===3&&Dn&&(Dn.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else tt(e)?(e={default:e,_ctx:Dn},n=32):(e=String(e),r&64?(n=16,e=[bt(e)]):n=8);t.children=e,t.shapeFlag|=n}function ao(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const i in r)if(i==="class")e.class!==r.class&&(e.class=Se([e.class,r.class]));else if(i==="style")e.style=Xe([e.style,r.style]);else if(au(i)){const o=e[i],s=r[i];s&&o!==s&&!(ze(o)&&o.includes(s))&&(e[i]=o?[].concat(o,s):s)}else i!==""&&(e[i]=r[i])}return e}function mr(t,e,n,r=null){jr(t,e,7,[n,r])}const cO=a_();let dO=0;function N_(t,e,n){const r=t.type,i=(e?e.appContext:t.appContext)||cO,o={uid:dO++,vnode:t,type:r,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Wp(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:g_(r,i),emitsOptions:u_(r,i),emit:null,emitted:null,propsDefaults:ut,inheritAttrs:r.inheritAttrs,ctx:ut,data:ut,props:ut,attrs:ut,slots:ut,refs:ut,setupState:ut,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=e?e.root:o,o.emit=jk.bind(null,o),t.ce&&t.ce(o),o}let Mn=null;const _n=()=>Mn||Dn;let rf,Ng;{const t=wd(),e=(n,r)=>{let i;return(i=t[n])||(i=t[n]=[]),i.push(r),o=>{i.length>1?i.forEach(s=>s(o)):i[0](o)}};rf=e("__VUE_INSTANCE_SETTERS__",n=>Mn=n),Ng=e("__VUE_SSR_SETTERS__",n=>Ka=n)}const $s=t=>{const e=Mn;return rf(t),t.scope.on(),()=>{t.scope.off(),rf(e)}},Rg=()=>{Mn&&Mn.scope.off(),rf(null)};function R_(t){return t.vnode.shapeFlag&4}let Ka=!1;function $_(t,e=!1,n=!1){e&&Ng(e);const{props:r,children:i}=t.vnode,o=R_(t);Xk(t,r,o,e),qk(t,i,n||e);const s=o?fO(t,e):void 0;return e&&Ng(!1),s}function fO(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,_g);const{setup:r}=n;if(r){xi();const i=t.setupContext=r.length>1?M_(t):null,o=$s(t),s=As(r,t,0,[t.props,i]),a=jp(s);if(wi(),o(),(a||t.sp)&&!io(t)&&dg(t),a){if(s.then(Rg,Rg),e)return s.then(l=>{$g(t,l,e)}).catch(l=>{Ps(l,t,0)});t.asyncDep=s}else $g(t,s,e)}else D_(t,e)}function $g(t,e,n){tt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:kt(e)&&(t.setupState=rg(e)),D_(t,n)}let of,Dg;function hO(t){of=t,Dg=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Ek))}}const pO=()=>!of;function D_(t,e,n){const r=t.type;if(!t.render){if(!e&&of&&!r.render){const i=r.template||wg(t).template;if(i){const{isCustomElement:o,compilerOptions:s}=t.appContext.config,{delimiters:a,compilerOptions:l}=r,u=Nt(Nt({isCustomElement:o,delimiters:a},s),l);r.render=of(i,u)}}t.render=r.render||Br,Dg&&Dg(t)}{const i=$s(t);xi();try{Dk(t)}finally{wi(),i()}}}const gO={get(t,e){return Zn(t,"get",""),t[e]}};function M_(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,gO),slots:t.slots,emit:t.emit,expose:e}}function Ou(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(rg(Da(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Tu)return Tu[n](t)},has(e,n){return n in e||n in Tu}})):t.proxy}const mO=/(?:^|[-_])\w/g,vO=t=>t.replace(mO,e=>e.toUpperCase()).replace(/[-_]/g,"");function sf(t,e=!0){return tt(t)?t.displayName||t.name:t.name||e&&t.__name}function L_(t,e,n=!1){let r=sf(e);if(!r&&e.__file){const i=e.__file.match(/([^/\\]+)\.\w+$/);i&&(r=i[1])}if(!r&&t){const i=o=>{for(const s in o)if(o[s]===e)return s};r=i(t.components)||t.parent&&i(t.parent.type.components)||i(t.appContext.components)}return r?vO(r):n?"App":"Anonymous"}function yO(t){return tt(t)&&"__vccOpts"in t}const Z=(t,e)=>R2(t,e,Ka);function qe(t,e,n){try{ku(-1);const r=arguments.length;return r===2?kt(e)&&!ze(e)?so(e)?ce(t,null,[e]):ce(t,e):ce(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&so(n)&&(n=[n]),ce(t,e,n))}finally{ku(1)}}function bO(){}function _O(t,e,n,r){const i=n[r];if(i&&Mg(i,t))return i;const o=e();return o.memo=t.slice(),o.cacheIndex=r,n[r]=o}function Mg(t,e){const n=t.memo;if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if(ir(n[r],e[r]))return!1;return Rs>0&&Yn&&Yn.push(t),!0}const V_="3.5.26",xO=Br,wO=W2,SO=Fa,EO=wb,TO={createComponentInstance:N_,setupComponent:$_,renderComponentRoot:Jd,setCurrentRenderingInstance:_u,isVNode:so,normalizeVNode:gr,getComponentPublicInstance:Ou,ensureValidVNode:vg,pushWarningContext:V2,popWarningContext:F2},IO=null,CO=null,AO=null;/**
|
|
19
19
|
* @vue/runtime-dom v3.5.26
|
|
20
20
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
21
21
|
* @license MIT
|
|
22
|
-
**/let Lg;const F_=typeof window<"u"&&window.trustedTypes;if(F_)try{Lg=F_.createPolicy("vue",{createHTML:t=>t})}catch{}const z_=Lg?t=>Lg.createHTML(t):t=>t,PO="http://www.w3.org/2000/svg",kO="http://www.w3.org/1998/Math/MathML",lo=typeof document<"u"?document:null,U_=lo&&lo.createElement("template"),B_={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const i=e==="svg"?lo.createElementNS(PO,t):e==="mathml"?lo.createElementNS(kO,t):n?lo.createElement(t,{is:n}):lo.createElement(t);return t==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:t=>lo.createTextNode(t),createComment:t=>lo.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>lo.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,i,o){const s=n?n.previousSibling:e.lastChild;if(i&&(i===o||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{U_.innerHTML=z_(r==="svg"?`<svg>${t}</svg>`:r==="mathml"?`<math>${t}</math>`:t);const a=U_.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[s?s.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},Mo="transition",Nu="animation",Za=Symbol("_vtc"),j_={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},H_=Nt({},ug,j_),Xa=(t=>(t.displayName="Transition",t.props=H_,t))((t,{slots:e})=>qe(Vb,W_(t),e)),Ds=(t,e=[])=>{ze(t)?t.forEach(n=>n(...e)):t&&t(...e)},G_=t=>t?ze(t)?t.some(e=>e.length>1):t.length>1:!1;function W_(t){const e={};for(const b in t)b in j_||(e[b]=t[b]);if(t.css===!1)return e;const{name:n="v",type:r,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:u=s,appearToClass:c=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=t,g=OO(i),m=g&&g[0],_=g&&g[1],{onBeforeEnter:E,onEnter:w,onEnterCancelled:v,onLeave:y,onLeaveCancelled:k,onBeforeAppear:$=E,onAppear:O=w,onAppearCancelled:A=v}=e,x=(b,S,I,V)=>{b._enterCancelled=V,Lo(b,S?c:a),Lo(b,S?u:s),I&&I()},N=(b,S)=>{b._isLeaving=!1,Lo(b,d),Lo(b,p),Lo(b,h),S&&S()},P=b=>(S,I)=>{const V=b?O:w,M=()=>x(S,b,I);Ds(V,[S,M]),K_(()=>{Lo(S,b?l:o),Ai(S,b?c:a),G_(V)||Z_(S,r,m,M)})};return Nt(e,{onBeforeEnter(b){Ds(E,[b]),Ai(b,o),Ai(b,s)},onBeforeAppear(b){Ds($,[b]),Ai(b,l),Ai(b,u)},onEnter:P(!1),onAppear:P(!0),onLeave(b,S){b._isLeaving=!0;const I=()=>N(b,S);Ai(b,d),b._enterCancelled?(Ai(b,h),Fg(b)):(Fg(b),Ai(b,h)),K_(()=>{b._isLeaving&&(Lo(b,d),Ai(b,p),G_(y)||Z_(b,r,_,I))}),Ds(y,[b,I])},onEnterCancelled(b){x(b,!1,void 0,!0),Ds(v,[b])},onAppearCancelled(b){x(b,!0,void 0,!0),Ds(A,[b])},onLeaveCancelled(b){N(b),Ds(k,[b])}})}function OO(t){if(t==null)return null;if(kt(t))return[Vg(t.enter),Vg(t.leave)];{const e=Vg(t);return[e,e]}}function Vg(t){return xd(t)}function Ai(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[Za]||(t[Za]=new Set)).add(e)}function Lo(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const n=t[Za];n&&(n.delete(e),n.size||(t[Za]=void 0))}function K_(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let NO=0;function Z_(t,e,n,r){const i=t._endId=++NO,o=()=>{i===t._endId&&r()};if(n!=null)return setTimeout(o,n);const{type:s,timeout:a,propCount:l}=X_(t,e);if(!s)return r();const u=s+"end";let c=0;const d=()=>{t.removeEventListener(u,h),o()},h=p=>{p.target===t&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},a+1),t.addEventListener(u,h)}function X_(t,e){const n=window.getComputedStyle(t),r=g=>(n[g]||"").split(", "),i=r(`${Mo}Delay`),o=r(`${Mo}Duration`),s=Y_(i,o),a=r(`${Nu}Delay`),l=r(`${Nu}Duration`),u=Y_(a,l);let c=null,d=0,h=0;e===Mo?s>0&&(c=Mo,d=s,h=o.length):e===Nu?u>0&&(c=Nu,d=u,h=l.length):(d=Math.max(s,u),c=d>0?s>u?Mo:Nu:null,h=c?c===Mo?o.length:l.length:0);const p=c===Mo&&/\b(?:transform|all)(?:,|$)/.test(r(`${Mo}Property`).toString());return{type:c,timeout:d,propCount:h,hasTransform:p}}function Y_(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,r)=>J_(n)+J_(t[r])))}function J_(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function Fg(t){return(t?t.ownerDocument:document).body.offsetHeight}function RO(t,e,n){const r=t[Za];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const af=Symbol("_vod"),Q_=Symbol("_vsh"),lf={name:"show",beforeMount(t,{value:e},{transition:n}){t[af]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):Ru(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!=!n&&(r?e?(r.beforeEnter(t),Ru(t,!0),r.enter(t)):r.leave(t,()=>{Ru(t,!1)}):Ru(t,e))},beforeUnmount(t,{value:e}){Ru(t,e)}};function Ru(t,e){t.style.display=e?t[af]:"none",t[Q_]=!e}function $O(){lf.getSSRProps=({value:t})=>{if(!t)return{style:{display:"none"}}}}const q_=Symbol("");function DO(t){const e=_n();if(!e)return;const n=e.ut=(i=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(o=>uf(o,i))},r=()=>{const i=t(e.proxy);e.ce?uf(e.ce,i):zg(e.subTree,i),n(i)};pg(()=>{yu(r)}),jt(()=>{Qe(r,Br,{flush:"post"});const i=new MutationObserver(r);i.observe(e.subTree.el.parentNode,{childList:!0}),sr(()=>i.disconnect())})}function zg(t,e){if(t.shapeFlag&128){const n=t.suspense;t=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{zg(n.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)uf(t.el,e);else if(t.type===Ue)t.children.forEach(n=>zg(n,e));else if(t.type===Ns){let{el:n,anchor:r}=t;for(;n&&(uf(n,e),n!==r);)n=n.nextSibling}}function uf(t,e){if(t.nodeType===1){const n=t.style;let r="";for(const i in e){const o=r2(e[i]);n.setProperty(`--${i}`,o),r+=`--${i}: ${o};`}n[q_]=r}}const MO=/(?:^|;)\s*display\s*:/;function LO(t,e,n){const r=t.style,i=Dt(n);let o=!1;if(n&&!i){if(e)if(Dt(e))for(const s of e.split(";")){const a=s.slice(0,s.indexOf(":")).trim();n[a]==null&&cf(r,a,"")}else for(const s in e)n[s]==null&&cf(r,s,"");for(const s in n)s==="display"&&(o=!0),cf(r,s,n[s])}else if(i){if(e!==n){const s=r[q_];s&&(n+=";"+s),r.cssText=n,o=MO.test(n)}}else e&&t.removeAttribute("style");af in t&&(t[af]=o?r.display:"",t[Q_]&&(r.display="none"))}const e1=/\s*!important$/;function cf(t,e,n){if(ze(n))n.forEach(r=>cf(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=VO(t,e);e1.test(n)?t.setProperty(fr(r),n.replace(e1,""),"important"):t[r]=n}}const t1=["Webkit","Moz","ms"],Ug={};function VO(t,e){const n=Ug[e];if(n)return n;let r=$n(e);if(r!=="filter"&&r in t)return Ug[e]=r;r=lu(r);for(let i=0;i<t1.length;i++){const o=t1[i]+r;if(o in t)return Ug[e]=o}return e}const n1="http://www.w3.org/1999/xlink";function r1(t,e,n,r,i,o=t2(e)){r&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(n1,e.slice(6,e.length)):t.setAttributeNS(n1,e,n):n==null||o&&!W0(n)?t.removeAttribute(e):t.setAttribute(e,o?"":ni(n)?String(n):n)}function i1(t,e,n,r,i){if(e==="innerHTML"||e==="textContent"){n!=null&&(t[e]=e==="innerHTML"?z_(n):n);return}const o=t.tagName;if(e==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?t.getAttribute("value")||"":t.value,l=n==null?t.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in t))&&(t.value=l),n==null&&t.removeAttribute(e),t._value=n;return}let s=!1;if(n===""||n==null){const a=typeof t[e];a==="boolean"?n=W0(n):n==null&&a==="string"?(n="",s=!0):a==="number"&&(n=0,s=!0)}try{t[e]=n}catch{}s&&t.removeAttribute(i||e)}function uo(t,e,n,r){t.addEventListener(e,n,r)}function FO(t,e,n,r){t.removeEventListener(e,n,r)}const o1=Symbol("_vei");function zO(t,e,n,r,i=null){const o=t[o1]||(t[o1]={}),s=o[e];if(r&&s)s.value=r;else{const[a,l]=UO(e);if(r){const u=o[e]=HO(r,i);uo(t,a,u,l)}else s&&(FO(t,a,s,l),o[e]=void 0)}}const s1=/(?:Once|Passive|Capture)$/;function UO(t){let e;if(s1.test(t)){e={};let r;for(;r=t.match(s1);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):fr(t.slice(2)),e]}let Bg=0;const BO=Promise.resolve(),jO=()=>Bg||(BO.then(()=>Bg=0),Bg=Date.now());function HO(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;jr(GO(r,n.value),e,5,[r])};return n.value=t,n.attached=jO(),n}function GO(t,e){if(ze(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>i=>!i._stopped&&r&&r(i))}else return e}const a1=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,l1=(t,e,n,r,i,o)=>{const s=i==="svg";e==="class"?RO(t,r,s):e==="style"?LO(t,n,r):au(e)?Up(e)||zO(t,e,n,r,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):WO(t,e,r,s))?(i1(t,e,r),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&r1(t,e,r,s,o,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!Dt(r))?i1(t,$n(e),r,o,e):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),r1(t,e,r,s))};function WO(t,e,n,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in t&&a1(e)&&tt(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="sandbox"&&t.tagName==="IFRAME"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return a1(e)&&Dt(n)?!1:e in t}const u1={};function c1(t,e,n){let r=Te(t,e);vd(r)&&(r=Nt({},r,e));class i extends df{constructor(s){super(r,s,n)}}return i.def=r,i}const KO=(t,e)=>c1(t,e,A1),ZO=typeof HTMLElement<"u"?HTMLElement:class{};class df extends ZO{constructor(e,n={},r=Ja){super(),this._def=e,this._props=n,this._createApp=r,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&r!==Ja?this._root=this.shadowRoot:e.shadowRoot!==!1?(this.attachShadow(Nt({},e.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.parentNode||e.host);)if(e instanceof df){this._parent=e;break}this._instance||(this._resolved?this._mount(this._def):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,pr(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(e){for(const n of e)this._setAttr(n.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const e=(r,i=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:o,styles:s}=r;let a;if(o&&!ze(o))for(const l in o){const u=o[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=xd(this._props[l])),(a||(a=Object.create(null)))[$n(l)]=!0)}this._numberProps=a,this._resolveProps(r),this.shadowRoot&&this._applyStyles(s),this._mount(r)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(r=>{r.configureApp=this._def.configureApp,e(this._def=r,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const r in n)Ct(this,r)||Object.defineProperty(this,r,{get:()=>re(n[r])})}_resolveProps(e){const{props:n}=e,r=ze(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&r.includes(i)&&this._setProp(i,this[i]);for(const i of r.map($n))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(o){this._setProp(i,o,!0,!this._patching)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const n=this.hasAttribute(e);let r=n?this.getAttribute(e):u1;const i=$n(e);n&&this._numberProps&&this._numberProps[i]&&(r=xd(r)),this._setProp(i,r,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,n,r=!0,i=!1){if(n!==this._props[e]&&(this._dirty=!0,n===u1?delete this._props[e]:(this._props[e]=n,e==="key"&&this._app&&(this._app._ceVNode.key=n)),i&&this._instance&&this._update(),r)){const o=this._ob;o&&(this._processMutations(o.takeRecords()),o.disconnect()),n===!0?this.setAttribute(fr(e),""):typeof n=="string"||typeof n=="number"?this.setAttribute(fr(e),n+""):n||this.removeAttribute(fr(e)),o&&o.observe(this,{attributes:!0})}}_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),C1(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const n=ue(this._def,Nt(e,this._props));return this._instance||(n.ce=r=>{this._instance=r,r.ce=this,r.isCE=!0;const i=(o,s)=>{this.dispatchEvent(new CustomEvent(o,vd(s[0])?Nt({detail:s},s[0]):{detail:s}))};r.emit=(o,...s)=>{i(o,s),fr(o)!==o&&i(fr(o),s)},this._setParent()}),n}_applyStyles(e,n){if(!e)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const r=this._nonce;for(let i=e.length-1;i>=0;i--){const o=document.createElement("style");r&&o.setAttribute("nonce",r),o.textContent=e[i],this.shadowRoot.prepend(o)}}_parseSlots(){const e=this._slots={};let n;for(;n=this.firstChild;){const r=n.nodeType===1&&n.getAttribute("slot")||"default";(e[r]||(e[r]=[])).push(n),this.removeChild(n)}}_renderSlots(){const e=this._getSlots(),n=this._instance.type.__scopeId;for(let r=0;r<e.length;r++){const i=e[r],o=i.getAttribute("name")||"default",s=this._slots[o],a=i.parentNode;if(s)for(const l of s){if(n&&l.nodeType===1){const u=n+"-s",c=document.createTreeWalker(l,1);l.setAttribute(u,"");let d;for(;d=c.nextNode();)d.setAttribute(u,"")}a.insertBefore(l,i)}else for(;i.firstChild;)a.insertBefore(i.firstChild,i);a.removeChild(i)}}_getSlots(){const e=[this];this._teleportTargets&&e.push(...this._teleportTargets);const n=new Set;for(const r of e){const i=r.querySelectorAll("slot");for(let o=0;o<i.length;o++)n.add(i[o])}return Array.from(n)}_injectChildStyle(e){this._applyStyles(e.styles,e)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_removeChildStyle(e){}}function d1(t){const e=_n(),n=e&&e.ce;return n||null}function XO(){const t=d1();return t&&t.shadowRoot}function YO(t="$style"){{const e=_n();if(!e)return ut;const n=e.type.__cssModules;if(!n)return ut;const r=n[t];return r||ut}}const f1=new WeakMap,h1=new WeakMap,ff=Symbol("_moveCb"),p1=Symbol("_enterCb"),JO=(t=>(delete t.props.mode,t))({name:"TransitionGroup",props:Nt({},H_,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=_n(),r=lg();let i,o;return Zd(()=>{if(!i.length)return;const s=t.moveClass||`${t.name||"v"}-move`;if(!tN(i[0].el,n.vnode.el,s)){i=[];return}i.forEach(QO),i.forEach(qO);const a=i.filter(eN);Fg(n.vnode.el),a.forEach(l=>{const u=l.el,c=u.style;Ai(u,s),c.transform=c.webkitTransform=c.transitionDuration="";const d=u[ff]=h=>{h&&h.target!==u||(!h||h.propertyName.endsWith("transform"))&&(u.removeEventListener("transitionend",d),u[ff]=null,Lo(u,s))};u.addEventListener("transitionend",d)}),i=[]}),()=>{const s=vt(t),a=W_(s);let l=s.tag||Ue;if(i=[],o)for(let u=0;u<o.length;u++){const c=o[u];c.el&&c.el instanceof Element&&(i.push(c),ro(c,Ua(c,a,r,n)),f1.set(c,{left:c.el.offsetLeft,top:c.el.offsetTop}))}o=e.default?Ud(e.default()):[];for(let u=0;u<o.length;u++){const c=o[u];c.key!=null&&ro(c,Ua(c,a,r,n))}return ue(l,null,o)}}});function QO(t){const e=t.el;e[ff]&&e[ff](),e[p1]&&e[p1]()}function qO(t){h1.set(t,{left:t.el.offsetLeft,top:t.el.offsetTop})}function eN(t){const e=f1.get(t),n=h1.get(t),r=e.left-n.left,i=e.top-n.top;if(r||i){const o=t.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${i}px)`,o.transitionDuration="0s",t}}function tN(t,e,n){const r=t.cloneNode(),i=t[Za];i&&i.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const o=e.nodeType===1?e:e.parentNode;o.appendChild(r);const{hasTransform:s}=X_(r);return o.removeChild(r),s}const Vo=t=>{const e=t.props["onUpdate:modelValue"]||!1;return ze(e)?n=>Oa(e,n):e};function nN(t){t.target.composing=!0}function g1(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Gr=Symbol("_assign");function m1(t,e,n){return e&&(t=t.trim()),n&&(t=_d(t)),t}const Ms={created(t,{modifiers:{lazy:e,trim:n,number:r}},i){t[Gr]=Vo(i);const o=r||i.props&&i.props.type==="number";uo(t,e?"change":"input",s=>{s.target.composing||t[Gr](m1(t.value,n,o))}),(n||o)&&uo(t,"change",()=>{t.value=m1(t.value,n,o)}),e||(uo(t,"compositionstart",nN),uo(t,"compositionend",g1),uo(t,"change",g1))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:n,modifiers:{lazy:r,trim:i,number:o}},s){if(t[Gr]=Vo(s),t.composing)return;const a=(o||t.type==="number")&&!/^0\d/.test(t.value)?_d(t.value):t.value,l=e??"";a!==l&&(document.activeElement===t&&t.type!=="range"&&(r&&e===n||i&&t.value.trim()===l)||(t.value=l))}},jg={deep:!0,created(t,e,n){t[Gr]=Vo(n),uo(t,"change",()=>{const r=t._modelValue,i=Ya(t),o=t.checked,s=t[Gr];if(ze(r)){const a=Sd(r,i),l=a!==-1;if(o&&!l)s(r.concat(i));else if(!o&&l){const u=[...r];u.splice(a,1),s(u)}}else if(Ts(r)){const a=new Set(r);o?a.add(i):a.delete(i),s(a)}else s(_1(t,o))})},mounted:v1,beforeUpdate(t,e,n){t[Gr]=Vo(n),v1(t,e,n)}};function v1(t,{value:e,oldValue:n},r){t._modelValue=e;let i;if(ze(e))i=Sd(e,r.props.value)>-1;else if(Ts(e))i=e.has(r.props.value);else{if(e===n)return;i=ko(e,_1(t,!0))}t.checked!==i&&(t.checked=i)}const Hg={created(t,{value:e},n){t.checked=ko(e,n.props.value),t[Gr]=Vo(n),uo(t,"change",()=>{t[Gr](Ya(t))})},beforeUpdate(t,{value:e,oldValue:n},r){t[Gr]=Vo(r),e!==n&&(t.checked=ko(e,r.props.value))}},y1={deep:!0,created(t,{value:e,modifiers:{number:n}},r){const i=Ts(e);uo(t,"change",()=>{const o=Array.prototype.filter.call(t.options,s=>s.selected).map(s=>n?_d(Ya(s)):Ya(s));t[Gr](t.multiple?i?new Set(o):o:o[0]),t._assigning=!0,pr(()=>{t._assigning=!1})}),t[Gr]=Vo(r)},mounted(t,{value:e}){b1(t,e)},beforeUpdate(t,e,n){t[Gr]=Vo(n)},updated(t,{value:e}){t._assigning||b1(t,e)}};function b1(t,e){const n=t.multiple,r=ze(e);if(!(n&&!r&&!Ts(e))){for(let i=0,o=t.options.length;i<o;i++){const s=t.options[i],a=Ya(s);if(n)if(r){const l=typeof a;l==="string"||l==="number"?s.selected=e.some(u=>String(u)===String(a)):s.selected=Sd(e,a)>-1}else s.selected=e.has(a);else if(ko(Ya(s),e)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function Ya(t){return"_value"in t?t._value:t.value}function _1(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const x1={created(t,e,n){hf(t,e,n,null,"created")},mounted(t,e,n){hf(t,e,n,null,"mounted")},beforeUpdate(t,e,n,r){hf(t,e,n,r,"beforeUpdate")},updated(t,e,n,r){hf(t,e,n,r,"updated")}};function w1(t,e){switch(t){case"SELECT":return y1;case"TEXTAREA":return Ms;default:switch(e){case"checkbox":return jg;case"radio":return Hg;default:return Ms}}}function hf(t,e,n,r,i){const s=w1(t.tagName,n.props&&n.props.type)[i];s&&s(t,e,n,r)}function rN(){Ms.getSSRProps=({value:t})=>({value:t}),Hg.getSSRProps=({value:t},e)=>{if(e.props&&ko(e.props.value,t))return{checked:!0}},jg.getSSRProps=({value:t},e)=>{if(ze(t)){if(e.props&&Sd(t,e.props.value)>-1)return{checked:!0}}else if(Ts(t)){if(e.props&&t.has(e.props.value))return{checked:!0}}else if(t)return{checked:!0}},x1.getSSRProps=(t,e)=>{if(typeof e.type!="string")return;const n=w1(e.type.toUpperCase(),e.props&&e.props.type);if(n.getSSRProps)return n.getSSRProps(t,e)}}const iN=["ctrl","shift","alt","meta"],oN={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>iN.some(n=>t[`${n}Key`]&&!e.includes(n))},kr=(t,e)=>{const n=t._withMods||(t._withMods={}),r=e.join(".");return n[r]||(n[r]=(i,...o)=>{for(let s=0;s<e.length;s++){const a=oN[e[s]];if(a&&a(i,e))return}return t(i,...o)})},sN={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},aN=(t,e)=>{const n=t._withKeys||(t._withKeys={}),r=e.join(".");return n[r]||(n[r]=i=>{if(!("key"in i))return;const o=fr(i.key);if(e.some(s=>s===o||sN[s]===o))return t(i)})},S1=Nt({patchProp:l1},B_);let $u,E1=!1;function T1(){return $u||($u=__(S1))}function I1(){return $u=E1?$u:x_(S1),E1=!0,$u}const C1=(...t)=>{T1().render(...t)},lN=(...t)=>{I1().hydrate(...t)},Ja=(...t)=>{const e=T1().createApp(...t),{mount:n}=e;return e.mount=r=>{const i=k1(r);if(!i)return;const o=e._component;!tt(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const s=n(i,!1,P1(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},e},A1=(...t)=>{const e=I1().createApp(...t),{mount:n}=e;return e.mount=r=>{const i=k1(r);if(i)return n(i,!0,P1(i))},e};function P1(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function k1(t){return Dt(t)?document.querySelector(t):t}let O1=!1;const uN=()=>{O1||(O1=!0,rN(),$O())};/**
|
|
22
|
+
**/let Lg;const F_=typeof window<"u"&&window.trustedTypes;if(F_)try{Lg=F_.createPolicy("vue",{createHTML:t=>t})}catch{}const z_=Lg?t=>Lg.createHTML(t):t=>t,PO="http://www.w3.org/2000/svg",kO="http://www.w3.org/1998/Math/MathML",lo=typeof document<"u"?document:null,U_=lo&&lo.createElement("template"),B_={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const i=e==="svg"?lo.createElementNS(PO,t):e==="mathml"?lo.createElementNS(kO,t):n?lo.createElement(t,{is:n}):lo.createElement(t);return t==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:t=>lo.createTextNode(t),createComment:t=>lo.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>lo.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,i,o){const s=n?n.previousSibling:e.lastChild;if(i&&(i===o||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{U_.innerHTML=z_(r==="svg"?`<svg>${t}</svg>`:r==="mathml"?`<math>${t}</math>`:t);const a=U_.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[s?s.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},Mo="transition",Nu="animation",Za=Symbol("_vtc"),j_={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},H_=Nt({},ug,j_),Xa=(t=>(t.displayName="Transition",t.props=H_,t))((t,{slots:e})=>qe(Vb,W_(t),e)),Ds=(t,e=[])=>{ze(t)?t.forEach(n=>n(...e)):t&&t(...e)},G_=t=>t?ze(t)?t.some(e=>e.length>1):t.length>1:!1;function W_(t){const e={};for(const b in t)b in j_||(e[b]=t[b]);if(t.css===!1)return e;const{name:n="v",type:r,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:u=s,appearToClass:c=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=t,g=OO(i),m=g&&g[0],_=g&&g[1],{onBeforeEnter:E,onEnter:w,onEnterCancelled:v,onLeave:y,onLeaveCancelled:k,onBeforeAppear:$=E,onAppear:O=w,onAppearCancelled:A=v}=e,x=(b,S,I,V)=>{b._enterCancelled=V,Lo(b,S?c:a),Lo(b,S?u:s),I&&I()},N=(b,S)=>{b._isLeaving=!1,Lo(b,d),Lo(b,p),Lo(b,h),S&&S()},P=b=>(S,I)=>{const V=b?O:w,M=()=>x(S,b,I);Ds(V,[S,M]),K_(()=>{Lo(S,b?l:o),Ai(S,b?c:a),G_(V)||Z_(S,r,m,M)})};return Nt(e,{onBeforeEnter(b){Ds(E,[b]),Ai(b,o),Ai(b,s)},onBeforeAppear(b){Ds($,[b]),Ai(b,l),Ai(b,u)},onEnter:P(!1),onAppear:P(!0),onLeave(b,S){b._isLeaving=!0;const I=()=>N(b,S);Ai(b,d),b._enterCancelled?(Ai(b,h),Fg(b)):(Fg(b),Ai(b,h)),K_(()=>{b._isLeaving&&(Lo(b,d),Ai(b,p),G_(y)||Z_(b,r,_,I))}),Ds(y,[b,I])},onEnterCancelled(b){x(b,!1,void 0,!0),Ds(v,[b])},onAppearCancelled(b){x(b,!0,void 0,!0),Ds(A,[b])},onLeaveCancelled(b){N(b),Ds(k,[b])}})}function OO(t){if(t==null)return null;if(kt(t))return[Vg(t.enter),Vg(t.leave)];{const e=Vg(t);return[e,e]}}function Vg(t){return xd(t)}function Ai(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[Za]||(t[Za]=new Set)).add(e)}function Lo(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const n=t[Za];n&&(n.delete(e),n.size||(t[Za]=void 0))}function K_(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let NO=0;function Z_(t,e,n,r){const i=t._endId=++NO,o=()=>{i===t._endId&&r()};if(n!=null)return setTimeout(o,n);const{type:s,timeout:a,propCount:l}=X_(t,e);if(!s)return r();const u=s+"end";let c=0;const d=()=>{t.removeEventListener(u,h),o()},h=p=>{p.target===t&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},a+1),t.addEventListener(u,h)}function X_(t,e){const n=window.getComputedStyle(t),r=g=>(n[g]||"").split(", "),i=r(`${Mo}Delay`),o=r(`${Mo}Duration`),s=Y_(i,o),a=r(`${Nu}Delay`),l=r(`${Nu}Duration`),u=Y_(a,l);let c=null,d=0,h=0;e===Mo?s>0&&(c=Mo,d=s,h=o.length):e===Nu?u>0&&(c=Nu,d=u,h=l.length):(d=Math.max(s,u),c=d>0?s>u?Mo:Nu:null,h=c?c===Mo?o.length:l.length:0);const p=c===Mo&&/\b(?:transform|all)(?:,|$)/.test(r(`${Mo}Property`).toString());return{type:c,timeout:d,propCount:h,hasTransform:p}}function Y_(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,r)=>J_(n)+J_(t[r])))}function J_(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function Fg(t){return(t?t.ownerDocument:document).body.offsetHeight}function RO(t,e,n){const r=t[Za];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const af=Symbol("_vod"),Q_=Symbol("_vsh"),lf={name:"show",beforeMount(t,{value:e},{transition:n}){t[af]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):Ru(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!=!n&&(r?e?(r.beforeEnter(t),Ru(t,!0),r.enter(t)):r.leave(t,()=>{Ru(t,!1)}):Ru(t,e))},beforeUnmount(t,{value:e}){Ru(t,e)}};function Ru(t,e){t.style.display=e?t[af]:"none",t[Q_]=!e}function $O(){lf.getSSRProps=({value:t})=>{if(!t)return{style:{display:"none"}}}}const q_=Symbol("");function DO(t){const e=_n();if(!e)return;const n=e.ut=(i=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(o=>uf(o,i))},r=()=>{const i=t(e.proxy);e.ce?uf(e.ce,i):zg(e.subTree,i),n(i)};pg(()=>{yu(r)}),jt(()=>{Qe(r,Br,{flush:"post"});const i=new MutationObserver(r);i.observe(e.subTree.el.parentNode,{childList:!0}),sr(()=>i.disconnect())})}function zg(t,e){if(t.shapeFlag&128){const n=t.suspense;t=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{zg(n.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)uf(t.el,e);else if(t.type===Ue)t.children.forEach(n=>zg(n,e));else if(t.type===Ns){let{el:n,anchor:r}=t;for(;n&&(uf(n,e),n!==r);)n=n.nextSibling}}function uf(t,e){if(t.nodeType===1){const n=t.style;let r="";for(const i in e){const o=r2(e[i]);n.setProperty(`--${i}`,o),r+=`--${i}: ${o};`}n[q_]=r}}const MO=/(?:^|;)\s*display\s*:/;function LO(t,e,n){const r=t.style,i=Dt(n);let o=!1;if(n&&!i){if(e)if(Dt(e))for(const s of e.split(";")){const a=s.slice(0,s.indexOf(":")).trim();n[a]==null&&cf(r,a,"")}else for(const s in e)n[s]==null&&cf(r,s,"");for(const s in n)s==="display"&&(o=!0),cf(r,s,n[s])}else if(i){if(e!==n){const s=r[q_];s&&(n+=";"+s),r.cssText=n,o=MO.test(n)}}else e&&t.removeAttribute("style");af in t&&(t[af]=o?r.display:"",t[Q_]&&(r.display="none"))}const e1=/\s*!important$/;function cf(t,e,n){if(ze(n))n.forEach(r=>cf(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=VO(t,e);e1.test(n)?t.setProperty(fr(r),n.replace(e1,""),"important"):t[r]=n}}const t1=["Webkit","Moz","ms"],Ug={};function VO(t,e){const n=Ug[e];if(n)return n;let r=$n(e);if(r!=="filter"&&r in t)return Ug[e]=r;r=lu(r);for(let i=0;i<t1.length;i++){const o=t1[i]+r;if(o in t)return Ug[e]=o}return e}const n1="http://www.w3.org/1999/xlink";function r1(t,e,n,r,i,o=t2(e)){r&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(n1,e.slice(6,e.length)):t.setAttributeNS(n1,e,n):n==null||o&&!W0(n)?t.removeAttribute(e):t.setAttribute(e,o?"":ni(n)?String(n):n)}function i1(t,e,n,r,i){if(e==="innerHTML"||e==="textContent"){n!=null&&(t[e]=e==="innerHTML"?z_(n):n);return}const o=t.tagName;if(e==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?t.getAttribute("value")||"":t.value,l=n==null?t.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in t))&&(t.value=l),n==null&&t.removeAttribute(e),t._value=n;return}let s=!1;if(n===""||n==null){const a=typeof t[e];a==="boolean"?n=W0(n):n==null&&a==="string"?(n="",s=!0):a==="number"&&(n=0,s=!0)}try{t[e]=n}catch{}s&&t.removeAttribute(i||e)}function uo(t,e,n,r){t.addEventListener(e,n,r)}function FO(t,e,n,r){t.removeEventListener(e,n,r)}const o1=Symbol("_vei");function zO(t,e,n,r,i=null){const o=t[o1]||(t[o1]={}),s=o[e];if(r&&s)s.value=r;else{const[a,l]=UO(e);if(r){const u=o[e]=HO(r,i);uo(t,a,u,l)}else s&&(FO(t,a,s,l),o[e]=void 0)}}const s1=/(?:Once|Passive|Capture)$/;function UO(t){let e;if(s1.test(t)){e={};let r;for(;r=t.match(s1);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):fr(t.slice(2)),e]}let Bg=0;const BO=Promise.resolve(),jO=()=>Bg||(BO.then(()=>Bg=0),Bg=Date.now());function HO(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;jr(GO(r,n.value),e,5,[r])};return n.value=t,n.attached=jO(),n}function GO(t,e){if(ze(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>i=>!i._stopped&&r&&r(i))}else return e}const a1=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,l1=(t,e,n,r,i,o)=>{const s=i==="svg";e==="class"?RO(t,r,s):e==="style"?LO(t,n,r):au(e)?Up(e)||zO(t,e,n,r,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):WO(t,e,r,s))?(i1(t,e,r),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&r1(t,e,r,s,o,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!Dt(r))?i1(t,$n(e),r,o,e):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),r1(t,e,r,s))};function WO(t,e,n,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in t&&a1(e)&&tt(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="sandbox"&&t.tagName==="IFRAME"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return a1(e)&&Dt(n)?!1:e in t}const u1={};function c1(t,e,n){let r=Te(t,e);vd(r)&&(r=Nt({},r,e));class i extends df{constructor(s){super(r,s,n)}}return i.def=r,i}const KO=(t,e)=>c1(t,e,A1),ZO=typeof HTMLElement<"u"?HTMLElement:class{};class df extends ZO{constructor(e,n={},r=Ja){super(),this._def=e,this._props=n,this._createApp=r,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&r!==Ja?this._root=this.shadowRoot:e.shadowRoot!==!1?(this.attachShadow(Nt({},e.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.parentNode||e.host);)if(e instanceof df){this._parent=e;break}this._instance||(this._resolved?this._mount(this._def):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,pr(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(e){for(const n of e)this._setAttr(n.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const e=(r,i=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:o,styles:s}=r;let a;if(o&&!ze(o))for(const l in o){const u=o[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=xd(this._props[l])),(a||(a=Object.create(null)))[$n(l)]=!0)}this._numberProps=a,this._resolveProps(r),this.shadowRoot&&this._applyStyles(s),this._mount(r)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(r=>{r.configureApp=this._def.configureApp,e(this._def=r,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const r in n)Ct(this,r)||Object.defineProperty(this,r,{get:()=>re(n[r])})}_resolveProps(e){const{props:n}=e,r=ze(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&r.includes(i)&&this._setProp(i,this[i]);for(const i of r.map($n))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(o){this._setProp(i,o,!0,!this._patching)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const n=this.hasAttribute(e);let r=n?this.getAttribute(e):u1;const i=$n(e);n&&this._numberProps&&this._numberProps[i]&&(r=xd(r)),this._setProp(i,r,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,n,r=!0,i=!1){if(n!==this._props[e]&&(this._dirty=!0,n===u1?delete this._props[e]:(this._props[e]=n,e==="key"&&this._app&&(this._app._ceVNode.key=n)),i&&this._instance&&this._update(),r)){const o=this._ob;o&&(this._processMutations(o.takeRecords()),o.disconnect()),n===!0?this.setAttribute(fr(e),""):typeof n=="string"||typeof n=="number"?this.setAttribute(fr(e),n+""):n||this.removeAttribute(fr(e)),o&&o.observe(this,{attributes:!0})}}_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),C1(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const n=ce(this._def,Nt(e,this._props));return this._instance||(n.ce=r=>{this._instance=r,r.ce=this,r.isCE=!0;const i=(o,s)=>{this.dispatchEvent(new CustomEvent(o,vd(s[0])?Nt({detail:s},s[0]):{detail:s}))};r.emit=(o,...s)=>{i(o,s),fr(o)!==o&&i(fr(o),s)},this._setParent()}),n}_applyStyles(e,n){if(!e)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const r=this._nonce;for(let i=e.length-1;i>=0;i--){const o=document.createElement("style");r&&o.setAttribute("nonce",r),o.textContent=e[i],this.shadowRoot.prepend(o)}}_parseSlots(){const e=this._slots={};let n;for(;n=this.firstChild;){const r=n.nodeType===1&&n.getAttribute("slot")||"default";(e[r]||(e[r]=[])).push(n),this.removeChild(n)}}_renderSlots(){const e=this._getSlots(),n=this._instance.type.__scopeId;for(let r=0;r<e.length;r++){const i=e[r],o=i.getAttribute("name")||"default",s=this._slots[o],a=i.parentNode;if(s)for(const l of s){if(n&&l.nodeType===1){const u=n+"-s",c=document.createTreeWalker(l,1);l.setAttribute(u,"");let d;for(;d=c.nextNode();)d.setAttribute(u,"")}a.insertBefore(l,i)}else for(;i.firstChild;)a.insertBefore(i.firstChild,i);a.removeChild(i)}}_getSlots(){const e=[this];this._teleportTargets&&e.push(...this._teleportTargets);const n=new Set;for(const r of e){const i=r.querySelectorAll("slot");for(let o=0;o<i.length;o++)n.add(i[o])}return Array.from(n)}_injectChildStyle(e){this._applyStyles(e.styles,e)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_removeChildStyle(e){}}function d1(t){const e=_n(),n=e&&e.ce;return n||null}function XO(){const t=d1();return t&&t.shadowRoot}function YO(t="$style"){{const e=_n();if(!e)return ut;const n=e.type.__cssModules;if(!n)return ut;const r=n[t];return r||ut}}const f1=new WeakMap,h1=new WeakMap,ff=Symbol("_moveCb"),p1=Symbol("_enterCb"),JO=(t=>(delete t.props.mode,t))({name:"TransitionGroup",props:Nt({},H_,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=_n(),r=lg();let i,o;return Zd(()=>{if(!i.length)return;const s=t.moveClass||`${t.name||"v"}-move`;if(!tN(i[0].el,n.vnode.el,s)){i=[];return}i.forEach(QO),i.forEach(qO);const a=i.filter(eN);Fg(n.vnode.el),a.forEach(l=>{const u=l.el,c=u.style;Ai(u,s),c.transform=c.webkitTransform=c.transitionDuration="";const d=u[ff]=h=>{h&&h.target!==u||(!h||h.propertyName.endsWith("transform"))&&(u.removeEventListener("transitionend",d),u[ff]=null,Lo(u,s))};u.addEventListener("transitionend",d)}),i=[]}),()=>{const s=vt(t),a=W_(s);let l=s.tag||Ue;if(i=[],o)for(let u=0;u<o.length;u++){const c=o[u];c.el&&c.el instanceof Element&&(i.push(c),ro(c,Ua(c,a,r,n)),f1.set(c,{left:c.el.offsetLeft,top:c.el.offsetTop}))}o=e.default?Ud(e.default()):[];for(let u=0;u<o.length;u++){const c=o[u];c.key!=null&&ro(c,Ua(c,a,r,n))}return ce(l,null,o)}}});function QO(t){const e=t.el;e[ff]&&e[ff](),e[p1]&&e[p1]()}function qO(t){h1.set(t,{left:t.el.offsetLeft,top:t.el.offsetTop})}function eN(t){const e=f1.get(t),n=h1.get(t),r=e.left-n.left,i=e.top-n.top;if(r||i){const o=t.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${i}px)`,o.transitionDuration="0s",t}}function tN(t,e,n){const r=t.cloneNode(),i=t[Za];i&&i.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const o=e.nodeType===1?e:e.parentNode;o.appendChild(r);const{hasTransform:s}=X_(r);return o.removeChild(r),s}const Vo=t=>{const e=t.props["onUpdate:modelValue"]||!1;return ze(e)?n=>Oa(e,n):e};function nN(t){t.target.composing=!0}function g1(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Gr=Symbol("_assign");function m1(t,e,n){return e&&(t=t.trim()),n&&(t=_d(t)),t}const Ms={created(t,{modifiers:{lazy:e,trim:n,number:r}},i){t[Gr]=Vo(i);const o=r||i.props&&i.props.type==="number";uo(t,e?"change":"input",s=>{s.target.composing||t[Gr](m1(t.value,n,o))}),(n||o)&&uo(t,"change",()=>{t.value=m1(t.value,n,o)}),e||(uo(t,"compositionstart",nN),uo(t,"compositionend",g1),uo(t,"change",g1))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:n,modifiers:{lazy:r,trim:i,number:o}},s){if(t[Gr]=Vo(s),t.composing)return;const a=(o||t.type==="number")&&!/^0\d/.test(t.value)?_d(t.value):t.value,l=e??"";a!==l&&(document.activeElement===t&&t.type!=="range"&&(r&&e===n||i&&t.value.trim()===l)||(t.value=l))}},jg={deep:!0,created(t,e,n){t[Gr]=Vo(n),uo(t,"change",()=>{const r=t._modelValue,i=Ya(t),o=t.checked,s=t[Gr];if(ze(r)){const a=Sd(r,i),l=a!==-1;if(o&&!l)s(r.concat(i));else if(!o&&l){const u=[...r];u.splice(a,1),s(u)}}else if(Ts(r)){const a=new Set(r);o?a.add(i):a.delete(i),s(a)}else s(_1(t,o))})},mounted:v1,beforeUpdate(t,e,n){t[Gr]=Vo(n),v1(t,e,n)}};function v1(t,{value:e,oldValue:n},r){t._modelValue=e;let i;if(ze(e))i=Sd(e,r.props.value)>-1;else if(Ts(e))i=e.has(r.props.value);else{if(e===n)return;i=ko(e,_1(t,!0))}t.checked!==i&&(t.checked=i)}const Hg={created(t,{value:e},n){t.checked=ko(e,n.props.value),t[Gr]=Vo(n),uo(t,"change",()=>{t[Gr](Ya(t))})},beforeUpdate(t,{value:e,oldValue:n},r){t[Gr]=Vo(r),e!==n&&(t.checked=ko(e,r.props.value))}},y1={deep:!0,created(t,{value:e,modifiers:{number:n}},r){const i=Ts(e);uo(t,"change",()=>{const o=Array.prototype.filter.call(t.options,s=>s.selected).map(s=>n?_d(Ya(s)):Ya(s));t[Gr](t.multiple?i?new Set(o):o:o[0]),t._assigning=!0,pr(()=>{t._assigning=!1})}),t[Gr]=Vo(r)},mounted(t,{value:e}){b1(t,e)},beforeUpdate(t,e,n){t[Gr]=Vo(n)},updated(t,{value:e}){t._assigning||b1(t,e)}};function b1(t,e){const n=t.multiple,r=ze(e);if(!(n&&!r&&!Ts(e))){for(let i=0,o=t.options.length;i<o;i++){const s=t.options[i],a=Ya(s);if(n)if(r){const l=typeof a;l==="string"||l==="number"?s.selected=e.some(u=>String(u)===String(a)):s.selected=Sd(e,a)>-1}else s.selected=e.has(a);else if(ko(Ya(s),e)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function Ya(t){return"_value"in t?t._value:t.value}function _1(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const x1={created(t,e,n){hf(t,e,n,null,"created")},mounted(t,e,n){hf(t,e,n,null,"mounted")},beforeUpdate(t,e,n,r){hf(t,e,n,r,"beforeUpdate")},updated(t,e,n,r){hf(t,e,n,r,"updated")}};function w1(t,e){switch(t){case"SELECT":return y1;case"TEXTAREA":return Ms;default:switch(e){case"checkbox":return jg;case"radio":return Hg;default:return Ms}}}function hf(t,e,n,r,i){const s=w1(t.tagName,n.props&&n.props.type)[i];s&&s(t,e,n,r)}function rN(){Ms.getSSRProps=({value:t})=>({value:t}),Hg.getSSRProps=({value:t},e)=>{if(e.props&&ko(e.props.value,t))return{checked:!0}},jg.getSSRProps=({value:t},e)=>{if(ze(t)){if(e.props&&Sd(t,e.props.value)>-1)return{checked:!0}}else if(Ts(t)){if(e.props&&t.has(e.props.value))return{checked:!0}}else if(t)return{checked:!0}},x1.getSSRProps=(t,e)=>{if(typeof e.type!="string")return;const n=w1(e.type.toUpperCase(),e.props&&e.props.type);if(n.getSSRProps)return n.getSSRProps(t,e)}}const iN=["ctrl","shift","alt","meta"],oN={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>iN.some(n=>t[`${n}Key`]&&!e.includes(n))},kr=(t,e)=>{const n=t._withMods||(t._withMods={}),r=e.join(".");return n[r]||(n[r]=(i,...o)=>{for(let s=0;s<e.length;s++){const a=oN[e[s]];if(a&&a(i,e))return}return t(i,...o)})},sN={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},aN=(t,e)=>{const n=t._withKeys||(t._withKeys={}),r=e.join(".");return n[r]||(n[r]=i=>{if(!("key"in i))return;const o=fr(i.key);if(e.some(s=>s===o||sN[s]===o))return t(i)})},S1=Nt({patchProp:l1},B_);let $u,E1=!1;function T1(){return $u||($u=__(S1))}function I1(){return $u=E1?$u:x_(S1),E1=!0,$u}const C1=(...t)=>{T1().render(...t)},lN=(...t)=>{I1().hydrate(...t)},Ja=(...t)=>{const e=T1().createApp(...t),{mount:n}=e;return e.mount=r=>{const i=k1(r);if(!i)return;const o=e._component;!tt(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const s=n(i,!1,P1(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},e},A1=(...t)=>{const e=I1().createApp(...t),{mount:n}=e;return e.mount=r=>{const i=k1(r);if(i)return n(i,!0,P1(i))},e};function P1(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function k1(t){return Dt(t)?document.querySelector(t):t}let O1=!1;const uN=()=>{O1||(O1=!0,rN(),$O())};/**
|
|
23
23
|
* vue v3.5.26
|
|
24
24
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
25
25
|
* @license MIT
|
|
26
|
-
**/const cN=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Vb,BaseTransitionPropsValidators:ug,Comment:mn,DeprecationTypes:AO,EffectScope:Wp,ErrorCodes:G2,ErrorTypeStrings:wO,Fragment:Ue,KeepAlive:yk,ReactiveEffect:du,Static:Ns,Suspense:nO,Teleport:$b,Text:$o,TrackOpTypes:$2,Transition:Xa,TransitionGroup:JO,TriggerOpTypes:D2,VueElement:df,assertNumber:H2,callWithAsyncErrorHandling:jr,callWithErrorHandling:As,camelize:$n,capitalize:lu,cloneVNode:Ci,compatUtils:CO,compile:()=>{},computed:Z,createApp:Ja,createBlock:$e,createCommentVNode:Oe,createElementBlock:K,createElementVNode:C,createHydrationRenderer:x_,createPropsRestProxy:n_,createRenderer:__,createSSRApp:A1,createSlots:wk,createStaticVNode:nf,createTextVNode:bt,createVNode:ue,customRef:ig,defineAsyncComponent:vk,defineComponent:Te,defineCustomElement:c1,defineEmits:Ik,defineExpose:Ck,defineModel:kk,defineOptions:Ak,defineProps:Tk,defineSSRCustomElement:KO,defineSlots:Pk,devtools:SO,effect:o2,effectScope:Kp,getCurrentInstance:_n,getCurrentScope:Ed,getCurrentWatcher:M2,getTransitionRawChildren:Ud,guardReactiveProps:kg,h:qe,handleError:Ps,hasInjectionContext:Q2,hydrate:lN,hydrateOnIdle:dk,hydrateOnInteraction:gk,hydrateOnMediaQuery:pk,hydrateOnVisible:hk,initCustomFormatter:bO,initDirectivesForSSR:uN,inject:yt,isMemoSame:Mg,isProxy:vu,isReactive:qi,isReadonly:Si,isRef:Yt,isRuntimeOnly:pO,isShallow:hr,isVNode:so,markRaw:Da,mergeDefaults:Nk,mergeModels:Rk,mergeProps:ao,nextTick:pr,nodeOps:B_,normalizeClass:Se,normalizeProps:Hp,normalizeStyle:Xe,onActivated:Hb,onBeforeMount:hg,onBeforeUnmount:Ga,onBeforeUpdate:pg,onDeactivated:Gb,onErrorCaptured:Yb,onMounted:jt,onRenderTracked:Xb,onRenderTriggered:Zb,onScopeDispose:cu,onServerPrefetch:Kb,onUnmounted:sr,onUpdated:Zd,onWatcherCleanup:mb,openBlock:j,patchProp:l1,popScopeId:Y2,provide:to,proxyRefs:rg,pushScopeId:X2,queuePostFlushCb:yu,reactive:Ra,readonly:$a,ref:we,registerRuntimeCompiler:hO,render:C1,renderList:It,renderSlot:Mt,resolveComponent:Pr,resolveDirective:xk,resolveDynamicComponent:Xn,resolveFilter:IO,resolveTransitionHooks:Ua,setBlockTracking:ku,setDevtoolsHook:EO,setTransitionHooks:ro,shallowReactive:fb,shallowReadonly:T2,shallowRef:Ei,ssrContextKey:Sb,ssrUtils:TO,stop:s2,toDisplayString:Ie,toHandlerKey:uu,toHandlers:Sk,toRaw:vt,toRef:Ot,toRefs:pb,toValue:ct,transformVNodeArgs:lO,triggerRef:C2,unref:re,useAttrs:e_,useCssModule:YO,useCssVars:DO,useHost:d1,useId:rk,useModel:Bk,useSSRContext:Eb,useShadowRoot:XO,useSlots:qb,useTemplateRef:ik,useTransitionState:lg,vModelCheckbox:jg,vModelDynamic:x1,vModelRadio:Hg,vModelSelect:y1,vModelText:Ms,vShow:lf,version:V_,warn:xO,watch:Qe,watchEffect:Tb,watchPostEffect:q2,watchSyncEffect:Ib,withAsyncContext:$k,withCtx:ke,withDefaults:Ok,withDirectives:za,withKeys:aN,withMemo:_O,withModifiers:kr,withScopeId:J2},Symbol.toStringTag,{value:"Module"})),N1={"i:s":"star","i:u":"users","i:c":"check","i:a":"arrow-right","c:p":"#6366f1","c:s":"#10b981","c:d":"#ef4444","v:g":"gradient","v:o":"outlined","v:s":"soft"};function dN(t){return t in N1?N1[t]:t}function le(t,e,n){function r(a,l){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:l,constr:s,traits:new Set},enumerable:!1}),a._zod.traits.has(t))return;a._zod.traits.add(t),e(a,l);const u=s.prototype,c=Object.keys(u);for(let d=0;d<c.length;d++){const h=c[d];h in a||(a[h]=u[h].bind(a))}}const i=(n==null?void 0:n.Parent)??Object;class o extends i{}Object.defineProperty(o,"name",{value:t});function s(a){var l;const u=n!=null&&n.Parent?new o:this;r(u,a),(l=u._zod).deferred??(l.deferred=[]);for(const c of u._zod.deferred)c();return u}return Object.defineProperty(s,"init",{value:r}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>{var l,u;return n!=null&&n.Parent&&a instanceof n.Parent?!0:(u=(l=a==null?void 0:a._zod)==null?void 0:l.traits)==null?void 0:u.has(t)}}),Object.defineProperty(s,"name",{value:t}),s}class Qa extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class R1 extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}const $1={};function Fo(t){return $1}function D1(t){const e=Object.values(t).filter(r=>typeof r=="number");return Object.entries(t).filter(([r,i])=>e.indexOf(+r)===-1).map(([r,i])=>i)}function Gg(t,e){return typeof e=="bigint"?e.toString():e}function pf(t){return{get value(){{const e=t();return Object.defineProperty(this,"value",{value:e}),e}}}}function Wg(t){return t==null}function Kg(t){const e=t.startsWith("^")?1:0,n=t.endsWith("$")?t.length-1:t.length;return t.slice(e,n)}function fN(t,e){const n=(t.toString().split(".")[1]||"").length,r=e.toString();let i=(r.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(r)){const l=r.match(/\d?e-(\d?)/);l!=null&&l[1]&&(i=Number.parseInt(l[1]))}const o=n>i?n:i,s=Number.parseInt(t.toFixed(o).replace(".","")),a=Number.parseInt(e.toFixed(o).replace(".",""));return s%a/10**o}const M1=Symbol("evaluating");function Lt(t,e,n){let r;Object.defineProperty(t,e,{get(){if(r!==M1)return r===void 0&&(r=M1,r=n()),r},set(i){Object.defineProperty(t,e,{value:i})},configurable:!0})}function Ls(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Vs(...t){const e={};for(const n of t){const r=Object.getOwnPropertyDescriptors(n);Object.assign(e,r)}return Object.defineProperties({},e)}function L1(t){return JSON.stringify(t)}function hN(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const V1="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function Du(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}const pN=pf(()=>{var t;if(typeof navigator<"u"&&((t=navigator==null?void 0:navigator.userAgent)!=null&&t.includes("Cloudflare")))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function qa(t){if(Du(t)===!1)return!1;const e=t.constructor;if(e===void 0||typeof e!="function")return!0;const n=e.prototype;return!(Du(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function F1(t){return qa(t)?{...t}:Array.isArray(t)?[...t]:t}const gN=new Set(["string","number","symbol"]);function el(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function zo(t,e,n){const r=new t._zod.constr(e??t._zod.def);return(!e||n!=null&&n.parent)&&(r._zod.parent=t),r}function Ge(t){const e=t;if(!e)return{};if(typeof e=="string")return{error:()=>e};if((e==null?void 0:e.message)!==void 0){if((e==null?void 0:e.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:()=>e.error}:e}function mN(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}const vN={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function yN(t,e){const n=t._zod.def,r=Vs(t._zod.def,{get shape(){const i={};for(const o in e){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);e[o]&&(i[o]=n.shape[o])}return Ls(this,"shape",i),i},checks:[]});return zo(t,r)}function bN(t,e){const n=t._zod.def,r=Vs(t._zod.def,{get shape(){const i={...t._zod.def.shape};for(const o in e){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);e[o]&&delete i[o]}return Ls(this,"shape",i),i},checks:[]});return zo(t,r)}function _N(t,e){if(!qa(e))throw new Error("Invalid input to extend: expected a plain object");const n=t._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const i=Vs(t._zod.def,{get shape(){const o={...t._zod.def.shape,...e};return Ls(this,"shape",o),o},checks:[]});return zo(t,i)}function xN(t,e){if(!qa(e))throw new Error("Invalid input to safeExtend: expected a plain object");const n={...t._zod.def,get shape(){const r={...t._zod.def.shape,...e};return Ls(this,"shape",r),r},checks:t._zod.def.checks};return zo(t,n)}function wN(t,e){const n=Vs(t._zod.def,{get shape(){const r={...t._zod.def.shape,...e._zod.def.shape};return Ls(this,"shape",r),r},get catchall(){return e._zod.def.catchall},checks:[]});return zo(t,n)}function SN(t,e,n){const r=Vs(e._zod.def,{get shape(){const i=e._zod.def.shape,o={...i};if(n)for(const s in n){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(o[s]=t?new t({type:"optional",innerType:i[s]}):i[s])}else for(const s in i)o[s]=t?new t({type:"optional",innerType:i[s]}):i[s];return Ls(this,"shape",o),o},checks:[]});return zo(e,r)}function EN(t,e,n){const r=Vs(e._zod.def,{get shape(){const i=e._zod.def.shape,o={...i};if(n)for(const s in n){if(!(s in o))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(o[s]=new t({type:"nonoptional",innerType:i[s]}))}else for(const s in i)o[s]=new t({type:"nonoptional",innerType:i[s]});return Ls(this,"shape",o),o},checks:[]});return zo(e,r)}function tl(t,e=0){var n;if(t.aborted===!0)return!0;for(let r=e;r<t.issues.length;r++)if(((n=t.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function nl(t,e){return e.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(t),n})}function gf(t){return typeof t=="string"?t:t==null?void 0:t.message}function Uo(t,e,n){var i,o,s,a,l,u;const r={...t,path:t.path??[]};if(!t.message){const c=gf((s=(o=(i=t.inst)==null?void 0:i._zod.def)==null?void 0:o.error)==null?void 0:s.call(o,t))??gf((a=e==null?void 0:e.error)==null?void 0:a.call(e,t))??gf((l=n.customError)==null?void 0:l.call(n,t))??gf((u=n.localeError)==null?void 0:u.call(n,t))??"Invalid input";r.message=c}return delete r.inst,delete r.continue,e!=null&&e.reportInput||delete r.input,r}function Zg(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function Mu(...t){const[e,n,r]=t;return typeof e=="string"?{message:e,code:"custom",input:n,inst:r}:{...e}}const z1=(t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),t.message=JSON.stringify(e,Gg,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},U1=le("$ZodError",z1),B1=le("$ZodError",z1,{Parent:Error});function TN(t,e=n=>n.message){const n={},r=[];for(const i of t.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(e(i))):r.push(e(i));return{formErrors:r,fieldErrors:n}}function IN(t,e=n=>n.message){const n={_errors:[]},r=i=>{for(const o of i.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(s=>r({issues:s}));else if(o.code==="invalid_key")r({issues:o.issues});else if(o.code==="invalid_element")r({issues:o.issues});else if(o.path.length===0)n._errors.push(e(o));else{let s=n,a=0;for(;a<o.path.length;){const l=o.path[a];a===o.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(e(o))):s[l]=s[l]||{_errors:[]},s=s[l],a++}}};return r(t),n}const Xg=t=>(e,n,r,i)=>{const o=r?Object.assign(r,{async:!1}):{async:!1},s=e._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new Qa;if(s.issues.length){const a=new((i==null?void 0:i.Err)??t)(s.issues.map(l=>Uo(l,o,Fo())));throw V1(a,i==null?void 0:i.callee),a}return s.value},Yg=t=>async(e,n,r,i)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let s=e._zod.run({value:n,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){const a=new((i==null?void 0:i.Err)??t)(s.issues.map(l=>Uo(l,o,Fo())));throw V1(a,i==null?void 0:i.callee),a}return s.value},mf=t=>(e,n,r)=>{const i=r?{...r,async:!1}:{async:!1},o=e._zod.run({value:n,issues:[]},i);if(o instanceof Promise)throw new Qa;return o.issues.length?{success:!1,error:new(t??U1)(o.issues.map(s=>Uo(s,i,Fo())))}:{success:!0,data:o.value}},CN=mf(B1),vf=t=>async(e,n,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let o=e._zod.run({value:n,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new t(o.issues.map(s=>Uo(s,i,Fo())))}:{success:!0,data:o.value}},AN=vf(B1),PN=t=>(e,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Xg(t)(e,n,i)},kN=t=>(e,n,r)=>Xg(t)(e,n,r),ON=t=>async(e,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Yg(t)(e,n,i)},NN=t=>async(e,n,r)=>Yg(t)(e,n,r),RN=t=>(e,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return mf(t)(e,n,i)},$N=t=>(e,n,r)=>mf(t)(e,n,r),DN=t=>async(e,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return vf(t)(e,n,i)},MN=t=>async(e,n,r)=>vf(t)(e,n,r),LN=/^[cC][^\s-]{8,}$/,VN=/^[0-9a-z]+$/,FN=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,zN=/^[0-9a-vA-V]{20}$/,UN=/^[A-Za-z0-9]{27}$/,BN=/^[a-zA-Z0-9_-]{21}$/,jN=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,HN=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,j1=t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,GN=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,WN="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function KN(){return new RegExp(WN,"u")}const ZN=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,XN=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,YN=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,JN=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,QN=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,H1=/^[A-Za-z0-9_-]*$/,qN=/^\+(?:[0-9]){6,14}[0-9]$/,G1="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",eR=new RegExp(`^${G1}$`);function W1(t){const e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function tR(t){return new RegExp(`^${W1(t)}$`)}function nR(t){const e=W1({precision:t.precision}),n=["Z"];t.local&&n.push(""),t.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${e}(?:${n.join("|")})`;return new RegExp(`^${G1}T(?:${r})$`)}const rR=t=>{const e=t?`[\\s\\S]{${(t==null?void 0:t.minimum)??0},${(t==null?void 0:t.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},iR=/^-?\d+$/,oR=/^-?\d+(?:\.\d+)?/,sR=/^(?:true|false)$/i,aR=/^null$/i,lR=/^undefined$/i,uR=/^[^A-Z]*$/,cR=/^[^a-z]*$/,vr=le("$ZodCheck",(t,e)=>{var n;t._zod??(t._zod={}),t._zod.def=e,(n=t._zod).onattach??(n.onattach=[])}),K1={number:"number",bigint:"bigint",object:"date"},Z1=le("$ZodCheckLessThan",(t,e)=>{vr.init(t,e);const n=K1[typeof e.value];t._zod.onattach.push(r=>{const i=r._zod.bag,o=(e.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value<o&&(e.inclusive?i.maximum=e.value:i.exclusiveMaximum=e.value)}),t._zod.check=r=>{(e.inclusive?r.value<=e.value:r.value<e.value)||r.issues.push({origin:n,code:"too_big",maximum:e.value,input:r.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),X1=le("$ZodCheckGreaterThan",(t,e)=>{vr.init(t,e);const n=K1[typeof e.value];t._zod.onattach.push(r=>{const i=r._zod.bag,o=(e.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>o&&(e.inclusive?i.minimum=e.value:i.exclusiveMinimum=e.value)}),t._zod.check=r=>{(e.inclusive?r.value>=e.value:r.value>e.value)||r.issues.push({origin:n,code:"too_small",minimum:e.value,input:r.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),dR=le("$ZodCheckMultipleOf",(t,e)=>{vr.init(t,e),t._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=e.value)}),t._zod.check=n=>{if(typeof n.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%e.value===BigInt(0):fN(n.value,e.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:e.value,input:n.value,inst:t,continue:!e.abort})}}),fR=le("$ZodCheckNumberFormat",(t,e)=>{var s;vr.init(t,e),e.format=e.format||"float64";const n=(s=e.format)==null?void 0:s.includes("int"),r=n?"int":"number",[i,o]=vN[e.format];t._zod.onattach.push(a=>{const l=a._zod.bag;l.format=e.format,l.minimum=i,l.maximum=o,n&&(l.pattern=iR)}),t._zod.check=a=>{const l=a.value;if(n){if(!Number.isInteger(l)){a.issues.push({expected:r,format:e.format,code:"invalid_type",continue:!1,input:l,inst:t});return}if(!Number.isSafeInteger(l)){l>0?a.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:r,continue:!e.abort}):a.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:r,continue:!e.abort});return}}l<i&&a.issues.push({origin:"number",input:l,code:"too_small",minimum:i,inclusive:!0,inst:t,continue:!e.abort}),l>o&&a.issues.push({origin:"number",input:l,code:"too_big",maximum:o,inst:t})}}),hR=le("$ZodCheckMaxLength",(t,e)=>{var n;vr.init(t,e),(n=t._zod.def).when??(n.when=r=>{const i=r.value;return!Wg(i)&&i.length!==void 0}),t._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<i&&(r._zod.bag.maximum=e.maximum)}),t._zod.check=r=>{const i=r.value;if(i.length<=e.maximum)return;const s=Zg(i);r.issues.push({origin:s,code:"too_big",maximum:e.maximum,inclusive:!0,input:i,inst:t,continue:!e.abort})}}),pR=le("$ZodCheckMinLength",(t,e)=>{var n;vr.init(t,e),(n=t._zod.def).when??(n.when=r=>{const i=r.value;return!Wg(i)&&i.length!==void 0}),t._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>i&&(r._zod.bag.minimum=e.minimum)}),t._zod.check=r=>{const i=r.value;if(i.length>=e.minimum)return;const s=Zg(i);r.issues.push({origin:s,code:"too_small",minimum:e.minimum,inclusive:!0,input:i,inst:t,continue:!e.abort})}}),gR=le("$ZodCheckLengthEquals",(t,e)=>{var n;vr.init(t,e),(n=t._zod.def).when??(n.when=r=>{const i=r.value;return!Wg(i)&&i.length!==void 0}),t._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=e.length,i.maximum=e.length,i.length=e.length}),t._zod.check=r=>{const i=r.value,o=i.length;if(o===e.length)return;const s=Zg(i),a=o>e.length;r.issues.push({origin:s,...a?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:r.value,inst:t,continue:!e.abort})}}),yf=le("$ZodCheckStringFormat",(t,e)=>{var n,r;vr.init(t,e),t._zod.onattach.push(i=>{const o=i._zod.bag;o.format=e.format,e.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(e.pattern))}),e.pattern?(n=t._zod).check??(n.check=i=>{e.pattern.lastIndex=0,!e.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:e.format,input:i.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:t,continue:!e.abort})}):(r=t._zod).check??(r.check=()=>{})}),mR=le("$ZodCheckRegex",(t,e)=>{yf.init(t,e),t._zod.check=n=>{e.pattern.lastIndex=0,!e.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),vR=le("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=uR),yf.init(t,e)}),yR=le("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=cR),yf.init(t,e)}),bR=le("$ZodCheckIncludes",(t,e)=>{vr.init(t,e);const n=el(e.includes),r=new RegExp(typeof e.position=="number"?`^.{${e.position}}${n}`:n);e.pattern=r,t._zod.onattach.push(i=>{const o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),t._zod.check=i=>{i.value.includes(e.includes,e.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:i.value,inst:t,continue:!e.abort})}}),_R=le("$ZodCheckStartsWith",(t,e)=>{vr.init(t,e);const n=new RegExp(`^${el(e.prefix)}.*`);e.pattern??(e.pattern=n),t._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),t._zod.check=r=>{r.value.startsWith(e.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:r.value,inst:t,continue:!e.abort})}}),xR=le("$ZodCheckEndsWith",(t,e)=>{vr.init(t,e);const n=new RegExp(`.*${el(e.suffix)}$`);e.pattern??(e.pattern=n),t._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),t._zod.check=r=>{r.value.endsWith(e.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:r.value,inst:t,continue:!e.abort})}}),wR=le("$ZodCheckOverwrite",(t,e)=>{vr.init(t,e),t._zod.check=n=>{n.value=e.tx(n.value)}});class SR{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const r=e.split(`
|
|
26
|
+
**/const cN=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Vb,BaseTransitionPropsValidators:ug,Comment:mn,DeprecationTypes:AO,EffectScope:Wp,ErrorCodes:G2,ErrorTypeStrings:wO,Fragment:Ue,KeepAlive:yk,ReactiveEffect:du,Static:Ns,Suspense:nO,Teleport:$b,Text:$o,TrackOpTypes:$2,Transition:Xa,TransitionGroup:JO,TriggerOpTypes:D2,VueElement:df,assertNumber:H2,callWithAsyncErrorHandling:jr,callWithErrorHandling:As,camelize:$n,capitalize:lu,cloneVNode:Ci,compatUtils:CO,compile:()=>{},computed:Z,createApp:Ja,createBlock:De,createCommentVNode:Oe,createElementBlock:K,createElementVNode:C,createHydrationRenderer:x_,createPropsRestProxy:n_,createRenderer:__,createSSRApp:A1,createSlots:wk,createStaticVNode:nf,createTextVNode:bt,createVNode:ce,customRef:ig,defineAsyncComponent:vk,defineComponent:Te,defineCustomElement:c1,defineEmits:Ik,defineExpose:Ck,defineModel:kk,defineOptions:Ak,defineProps:Tk,defineSSRCustomElement:KO,defineSlots:Pk,devtools:SO,effect:o2,effectScope:Kp,getCurrentInstance:_n,getCurrentScope:Ed,getCurrentWatcher:M2,getTransitionRawChildren:Ud,guardReactiveProps:kg,h:qe,handleError:Ps,hasInjectionContext:Q2,hydrate:lN,hydrateOnIdle:dk,hydrateOnInteraction:gk,hydrateOnMediaQuery:pk,hydrateOnVisible:hk,initCustomFormatter:bO,initDirectivesForSSR:uN,inject:yt,isMemoSame:Mg,isProxy:vu,isReactive:qi,isReadonly:Si,isRef:Yt,isRuntimeOnly:pO,isShallow:hr,isVNode:so,markRaw:Da,mergeDefaults:Nk,mergeModels:Rk,mergeProps:ao,nextTick:pr,nodeOps:B_,normalizeClass:Se,normalizeProps:Hp,normalizeStyle:Xe,onActivated:Hb,onBeforeMount:hg,onBeforeUnmount:Ga,onBeforeUpdate:pg,onDeactivated:Gb,onErrorCaptured:Yb,onMounted:jt,onRenderTracked:Xb,onRenderTriggered:Zb,onScopeDispose:cu,onServerPrefetch:Kb,onUnmounted:sr,onUpdated:Zd,onWatcherCleanup:mb,openBlock:j,patchProp:l1,popScopeId:Y2,provide:to,proxyRefs:rg,pushScopeId:X2,queuePostFlushCb:yu,reactive:Ra,readonly:$a,ref:we,registerRuntimeCompiler:hO,render:C1,renderList:It,renderSlot:Mt,resolveComponent:Pr,resolveDirective:xk,resolveDynamicComponent:Xn,resolveFilter:IO,resolveTransitionHooks:Ua,setBlockTracking:ku,setDevtoolsHook:EO,setTransitionHooks:ro,shallowReactive:fb,shallowReadonly:T2,shallowRef:Ei,ssrContextKey:Sb,ssrUtils:TO,stop:s2,toDisplayString:Ie,toHandlerKey:uu,toHandlers:Sk,toRaw:vt,toRef:Ot,toRefs:pb,toValue:ct,transformVNodeArgs:lO,triggerRef:C2,unref:re,useAttrs:e_,useCssModule:YO,useCssVars:DO,useHost:d1,useId:rk,useModel:Bk,useSSRContext:Eb,useShadowRoot:XO,useSlots:qb,useTemplateRef:ik,useTransitionState:lg,vModelCheckbox:jg,vModelDynamic:x1,vModelRadio:Hg,vModelSelect:y1,vModelText:Ms,vShow:lf,version:V_,warn:xO,watch:Qe,watchEffect:Tb,watchPostEffect:q2,watchSyncEffect:Ib,withAsyncContext:$k,withCtx:ke,withDefaults:Ok,withDirectives:za,withKeys:aN,withMemo:_O,withModifiers:kr,withScopeId:J2},Symbol.toStringTag,{value:"Module"})),N1={"i:s":"star","i:u":"users","i:c":"check","i:a":"arrow-right","c:p":"#6366f1","c:s":"#10b981","c:d":"#ef4444","v:g":"gradient","v:o":"outlined","v:s":"soft"};function dN(t){return t in N1?N1[t]:t}function ue(t,e,n){function r(a,l){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:l,constr:s,traits:new Set},enumerable:!1}),a._zod.traits.has(t))return;a._zod.traits.add(t),e(a,l);const u=s.prototype,c=Object.keys(u);for(let d=0;d<c.length;d++){const h=c[d];h in a||(a[h]=u[h].bind(a))}}const i=(n==null?void 0:n.Parent)??Object;class o extends i{}Object.defineProperty(o,"name",{value:t});function s(a){var l;const u=n!=null&&n.Parent?new o:this;r(u,a),(l=u._zod).deferred??(l.deferred=[]);for(const c of u._zod.deferred)c();return u}return Object.defineProperty(s,"init",{value:r}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>{var l,u;return n!=null&&n.Parent&&a instanceof n.Parent?!0:(u=(l=a==null?void 0:a._zod)==null?void 0:l.traits)==null?void 0:u.has(t)}}),Object.defineProperty(s,"name",{value:t}),s}class Qa extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class R1 extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}const $1={};function Fo(t){return $1}function D1(t){const e=Object.values(t).filter(r=>typeof r=="number");return Object.entries(t).filter(([r,i])=>e.indexOf(+r)===-1).map(([r,i])=>i)}function Gg(t,e){return typeof e=="bigint"?e.toString():e}function pf(t){return{get value(){{const e=t();return Object.defineProperty(this,"value",{value:e}),e}}}}function Wg(t){return t==null}function Kg(t){const e=t.startsWith("^")?1:0,n=t.endsWith("$")?t.length-1:t.length;return t.slice(e,n)}function fN(t,e){const n=(t.toString().split(".")[1]||"").length,r=e.toString();let i=(r.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(r)){const l=r.match(/\d?e-(\d?)/);l!=null&&l[1]&&(i=Number.parseInt(l[1]))}const o=n>i?n:i,s=Number.parseInt(t.toFixed(o).replace(".","")),a=Number.parseInt(e.toFixed(o).replace(".",""));return s%a/10**o}const M1=Symbol("evaluating");function Lt(t,e,n){let r;Object.defineProperty(t,e,{get(){if(r!==M1)return r===void 0&&(r=M1,r=n()),r},set(i){Object.defineProperty(t,e,{value:i})},configurable:!0})}function Ls(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Vs(...t){const e={};for(const n of t){const r=Object.getOwnPropertyDescriptors(n);Object.assign(e,r)}return Object.defineProperties({},e)}function L1(t){return JSON.stringify(t)}function hN(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const V1="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function Du(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}const pN=pf(()=>{var t;if(typeof navigator<"u"&&((t=navigator==null?void 0:navigator.userAgent)!=null&&t.includes("Cloudflare")))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function qa(t){if(Du(t)===!1)return!1;const e=t.constructor;if(e===void 0||typeof e!="function")return!0;const n=e.prototype;return!(Du(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function F1(t){return qa(t)?{...t}:Array.isArray(t)?[...t]:t}const gN=new Set(["string","number","symbol"]);function el(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function zo(t,e,n){const r=new t._zod.constr(e??t._zod.def);return(!e||n!=null&&n.parent)&&(r._zod.parent=t),r}function Ge(t){const e=t;if(!e)return{};if(typeof e=="string")return{error:()=>e};if((e==null?void 0:e.message)!==void 0){if((e==null?void 0:e.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:()=>e.error}:e}function mN(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}const vN={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function yN(t,e){const n=t._zod.def,r=Vs(t._zod.def,{get shape(){const i={};for(const o in e){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);e[o]&&(i[o]=n.shape[o])}return Ls(this,"shape",i),i},checks:[]});return zo(t,r)}function bN(t,e){const n=t._zod.def,r=Vs(t._zod.def,{get shape(){const i={...t._zod.def.shape};for(const o in e){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);e[o]&&delete i[o]}return Ls(this,"shape",i),i},checks:[]});return zo(t,r)}function _N(t,e){if(!qa(e))throw new Error("Invalid input to extend: expected a plain object");const n=t._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const i=Vs(t._zod.def,{get shape(){const o={...t._zod.def.shape,...e};return Ls(this,"shape",o),o},checks:[]});return zo(t,i)}function xN(t,e){if(!qa(e))throw new Error("Invalid input to safeExtend: expected a plain object");const n={...t._zod.def,get shape(){const r={...t._zod.def.shape,...e};return Ls(this,"shape",r),r},checks:t._zod.def.checks};return zo(t,n)}function wN(t,e){const n=Vs(t._zod.def,{get shape(){const r={...t._zod.def.shape,...e._zod.def.shape};return Ls(this,"shape",r),r},get catchall(){return e._zod.def.catchall},checks:[]});return zo(t,n)}function SN(t,e,n){const r=Vs(e._zod.def,{get shape(){const i=e._zod.def.shape,o={...i};if(n)for(const s in n){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(o[s]=t?new t({type:"optional",innerType:i[s]}):i[s])}else for(const s in i)o[s]=t?new t({type:"optional",innerType:i[s]}):i[s];return Ls(this,"shape",o),o},checks:[]});return zo(e,r)}function EN(t,e,n){const r=Vs(e._zod.def,{get shape(){const i=e._zod.def.shape,o={...i};if(n)for(const s in n){if(!(s in o))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(o[s]=new t({type:"nonoptional",innerType:i[s]}))}else for(const s in i)o[s]=new t({type:"nonoptional",innerType:i[s]});return Ls(this,"shape",o),o},checks:[]});return zo(e,r)}function tl(t,e=0){var n;if(t.aborted===!0)return!0;for(let r=e;r<t.issues.length;r++)if(((n=t.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function nl(t,e){return e.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(t),n})}function gf(t){return typeof t=="string"?t:t==null?void 0:t.message}function Uo(t,e,n){var i,o,s,a,l,u;const r={...t,path:t.path??[]};if(!t.message){const c=gf((s=(o=(i=t.inst)==null?void 0:i._zod.def)==null?void 0:o.error)==null?void 0:s.call(o,t))??gf((a=e==null?void 0:e.error)==null?void 0:a.call(e,t))??gf((l=n.customError)==null?void 0:l.call(n,t))??gf((u=n.localeError)==null?void 0:u.call(n,t))??"Invalid input";r.message=c}return delete r.inst,delete r.continue,e!=null&&e.reportInput||delete r.input,r}function Zg(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function Mu(...t){const[e,n,r]=t;return typeof e=="string"?{message:e,code:"custom",input:n,inst:r}:{...e}}const z1=(t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),t.message=JSON.stringify(e,Gg,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},U1=ue("$ZodError",z1),B1=ue("$ZodError",z1,{Parent:Error});function TN(t,e=n=>n.message){const n={},r=[];for(const i of t.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(e(i))):r.push(e(i));return{formErrors:r,fieldErrors:n}}function IN(t,e=n=>n.message){const n={_errors:[]},r=i=>{for(const o of i.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(s=>r({issues:s}));else if(o.code==="invalid_key")r({issues:o.issues});else if(o.code==="invalid_element")r({issues:o.issues});else if(o.path.length===0)n._errors.push(e(o));else{let s=n,a=0;for(;a<o.path.length;){const l=o.path[a];a===o.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(e(o))):s[l]=s[l]||{_errors:[]},s=s[l],a++}}};return r(t),n}const Xg=t=>(e,n,r,i)=>{const o=r?Object.assign(r,{async:!1}):{async:!1},s=e._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new Qa;if(s.issues.length){const a=new((i==null?void 0:i.Err)??t)(s.issues.map(l=>Uo(l,o,Fo())));throw V1(a,i==null?void 0:i.callee),a}return s.value},Yg=t=>async(e,n,r,i)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let s=e._zod.run({value:n,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){const a=new((i==null?void 0:i.Err)??t)(s.issues.map(l=>Uo(l,o,Fo())));throw V1(a,i==null?void 0:i.callee),a}return s.value},mf=t=>(e,n,r)=>{const i=r?{...r,async:!1}:{async:!1},o=e._zod.run({value:n,issues:[]},i);if(o instanceof Promise)throw new Qa;return o.issues.length?{success:!1,error:new(t??U1)(o.issues.map(s=>Uo(s,i,Fo())))}:{success:!0,data:o.value}},CN=mf(B1),vf=t=>async(e,n,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let o=e._zod.run({value:n,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new t(o.issues.map(s=>Uo(s,i,Fo())))}:{success:!0,data:o.value}},AN=vf(B1),PN=t=>(e,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Xg(t)(e,n,i)},kN=t=>(e,n,r)=>Xg(t)(e,n,r),ON=t=>async(e,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Yg(t)(e,n,i)},NN=t=>async(e,n,r)=>Yg(t)(e,n,r),RN=t=>(e,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return mf(t)(e,n,i)},$N=t=>(e,n,r)=>mf(t)(e,n,r),DN=t=>async(e,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return vf(t)(e,n,i)},MN=t=>async(e,n,r)=>vf(t)(e,n,r),LN=/^[cC][^\s-]{8,}$/,VN=/^[0-9a-z]+$/,FN=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,zN=/^[0-9a-vA-V]{20}$/,UN=/^[A-Za-z0-9]{27}$/,BN=/^[a-zA-Z0-9_-]{21}$/,jN=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,HN=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,j1=t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,GN=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,WN="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function KN(){return new RegExp(WN,"u")}const ZN=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,XN=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,YN=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,JN=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,QN=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,H1=/^[A-Za-z0-9_-]*$/,qN=/^\+(?:[0-9]){6,14}[0-9]$/,G1="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",eR=new RegExp(`^${G1}$`);function W1(t){const e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function tR(t){return new RegExp(`^${W1(t)}$`)}function nR(t){const e=W1({precision:t.precision}),n=["Z"];t.local&&n.push(""),t.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${e}(?:${n.join("|")})`;return new RegExp(`^${G1}T(?:${r})$`)}const rR=t=>{const e=t?`[\\s\\S]{${(t==null?void 0:t.minimum)??0},${(t==null?void 0:t.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},iR=/^-?\d+$/,oR=/^-?\d+(?:\.\d+)?/,sR=/^(?:true|false)$/i,aR=/^null$/i,lR=/^undefined$/i,uR=/^[^A-Z]*$/,cR=/^[^a-z]*$/,vr=ue("$ZodCheck",(t,e)=>{var n;t._zod??(t._zod={}),t._zod.def=e,(n=t._zod).onattach??(n.onattach=[])}),K1={number:"number",bigint:"bigint",object:"date"},Z1=ue("$ZodCheckLessThan",(t,e)=>{vr.init(t,e);const n=K1[typeof e.value];t._zod.onattach.push(r=>{const i=r._zod.bag,o=(e.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value<o&&(e.inclusive?i.maximum=e.value:i.exclusiveMaximum=e.value)}),t._zod.check=r=>{(e.inclusive?r.value<=e.value:r.value<e.value)||r.issues.push({origin:n,code:"too_big",maximum:e.value,input:r.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),X1=ue("$ZodCheckGreaterThan",(t,e)=>{vr.init(t,e);const n=K1[typeof e.value];t._zod.onattach.push(r=>{const i=r._zod.bag,o=(e.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>o&&(e.inclusive?i.minimum=e.value:i.exclusiveMinimum=e.value)}),t._zod.check=r=>{(e.inclusive?r.value>=e.value:r.value>e.value)||r.issues.push({origin:n,code:"too_small",minimum:e.value,input:r.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),dR=ue("$ZodCheckMultipleOf",(t,e)=>{vr.init(t,e),t._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=e.value)}),t._zod.check=n=>{if(typeof n.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%e.value===BigInt(0):fN(n.value,e.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:e.value,input:n.value,inst:t,continue:!e.abort})}}),fR=ue("$ZodCheckNumberFormat",(t,e)=>{var s;vr.init(t,e),e.format=e.format||"float64";const n=(s=e.format)==null?void 0:s.includes("int"),r=n?"int":"number",[i,o]=vN[e.format];t._zod.onattach.push(a=>{const l=a._zod.bag;l.format=e.format,l.minimum=i,l.maximum=o,n&&(l.pattern=iR)}),t._zod.check=a=>{const l=a.value;if(n){if(!Number.isInteger(l)){a.issues.push({expected:r,format:e.format,code:"invalid_type",continue:!1,input:l,inst:t});return}if(!Number.isSafeInteger(l)){l>0?a.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:r,continue:!e.abort}):a.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:r,continue:!e.abort});return}}l<i&&a.issues.push({origin:"number",input:l,code:"too_small",minimum:i,inclusive:!0,inst:t,continue:!e.abort}),l>o&&a.issues.push({origin:"number",input:l,code:"too_big",maximum:o,inst:t})}}),hR=ue("$ZodCheckMaxLength",(t,e)=>{var n;vr.init(t,e),(n=t._zod.def).when??(n.when=r=>{const i=r.value;return!Wg(i)&&i.length!==void 0}),t._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<i&&(r._zod.bag.maximum=e.maximum)}),t._zod.check=r=>{const i=r.value;if(i.length<=e.maximum)return;const s=Zg(i);r.issues.push({origin:s,code:"too_big",maximum:e.maximum,inclusive:!0,input:i,inst:t,continue:!e.abort})}}),pR=ue("$ZodCheckMinLength",(t,e)=>{var n;vr.init(t,e),(n=t._zod.def).when??(n.when=r=>{const i=r.value;return!Wg(i)&&i.length!==void 0}),t._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>i&&(r._zod.bag.minimum=e.minimum)}),t._zod.check=r=>{const i=r.value;if(i.length>=e.minimum)return;const s=Zg(i);r.issues.push({origin:s,code:"too_small",minimum:e.minimum,inclusive:!0,input:i,inst:t,continue:!e.abort})}}),gR=ue("$ZodCheckLengthEquals",(t,e)=>{var n;vr.init(t,e),(n=t._zod.def).when??(n.when=r=>{const i=r.value;return!Wg(i)&&i.length!==void 0}),t._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=e.length,i.maximum=e.length,i.length=e.length}),t._zod.check=r=>{const i=r.value,o=i.length;if(o===e.length)return;const s=Zg(i),a=o>e.length;r.issues.push({origin:s,...a?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:r.value,inst:t,continue:!e.abort})}}),yf=ue("$ZodCheckStringFormat",(t,e)=>{var n,r;vr.init(t,e),t._zod.onattach.push(i=>{const o=i._zod.bag;o.format=e.format,e.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(e.pattern))}),e.pattern?(n=t._zod).check??(n.check=i=>{e.pattern.lastIndex=0,!e.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:e.format,input:i.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:t,continue:!e.abort})}):(r=t._zod).check??(r.check=()=>{})}),mR=ue("$ZodCheckRegex",(t,e)=>{yf.init(t,e),t._zod.check=n=>{e.pattern.lastIndex=0,!e.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),vR=ue("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=uR),yf.init(t,e)}),yR=ue("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=cR),yf.init(t,e)}),bR=ue("$ZodCheckIncludes",(t,e)=>{vr.init(t,e);const n=el(e.includes),r=new RegExp(typeof e.position=="number"?`^.{${e.position}}${n}`:n);e.pattern=r,t._zod.onattach.push(i=>{const o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),t._zod.check=i=>{i.value.includes(e.includes,e.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:i.value,inst:t,continue:!e.abort})}}),_R=ue("$ZodCheckStartsWith",(t,e)=>{vr.init(t,e);const n=new RegExp(`^${el(e.prefix)}.*`);e.pattern??(e.pattern=n),t._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),t._zod.check=r=>{r.value.startsWith(e.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:r.value,inst:t,continue:!e.abort})}}),xR=ue("$ZodCheckEndsWith",(t,e)=>{vr.init(t,e);const n=new RegExp(`.*${el(e.suffix)}$`);e.pattern??(e.pattern=n),t._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),t._zod.check=r=>{r.value.endsWith(e.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:r.value,inst:t,continue:!e.abort})}}),wR=ue("$ZodCheckOverwrite",(t,e)=>{vr.init(t,e),t._zod.check=n=>{n.value=e.tx(n.value)}});class SR{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const r=e.split(`
|
|
27
27
|
`).filter(s=>s),i=Math.min(...r.map(s=>s.length-s.trimStart().length)),o=r.map(s=>s.slice(i)).map(s=>" ".repeat(this.indent*2)+s);for(const s of o)this.content.push(s)}compile(){const e=Function,n=this==null?void 0:this.args,i=[...((this==null?void 0:this.content)??[""]).map(o=>` ${o}`)];return new e(...n,i.join(`
|
|
28
|
-
`))}}const ER={major:4,minor:2,patch:1},Ht=
|
|
28
|
+
`))}}const ER={major:4,minor:2,patch:1},Ht=ue("$ZodType",(t,e)=>{var i;var n;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=ER;const r=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&r.unshift(t);for(const o of r)for(const s of o._zod.onattach)s(t);if(r.length===0)(n=t._zod).deferred??(n.deferred=[]),(i=t._zod.deferred)==null||i.push(()=>{t._zod.run=t._zod.parse});else{const o=(a,l,u)=>{let c=tl(a),d;for(const h of l){if(h._zod.def.when){if(!h._zod.def.when(a))continue}else if(c)continue;const p=a.issues.length,g=h._zod.check(a);if(g instanceof Promise&&(u==null?void 0:u.async)===!1)throw new Qa;if(d||g instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await g,a.issues.length!==p&&(c||(c=tl(a,p)))});else{if(a.issues.length===p)continue;c||(c=tl(a,p))}}return d?d.then(()=>a):a},s=(a,l,u)=>{if(tl(a))return a.aborted=!0,a;const c=o(l,r,u);if(c instanceof Promise){if(u.async===!1)throw new Qa;return c.then(d=>t._zod.parse(d,u))}return t._zod.parse(c,u)};t._zod.run=(a,l)=>{if(l.skipChecks)return t._zod.parse(a,l);if(l.direction==="backward"){const c=t._zod.parse({value:a.value,issues:[]},{...l,skipChecks:!0});return c instanceof Promise?c.then(d=>s(d,a,l)):s(c,a,l)}const u=t._zod.parse(a,l);if(u instanceof Promise){if(l.async===!1)throw new Qa;return u.then(c=>o(c,r,l))}return o(u,r,l)}}t["~standard"]={validate:o=>{var s;try{const a=CN(t,o);return a.success?{value:a.data}:{issues:(s=a.error)==null?void 0:s.issues}}catch{return AN(t,o).then(l=>{var u;return l.success?{value:l.data}:{issues:(u=l.error)==null?void 0:u.issues}})}},vendor:"zod",version:1}}),Jg=ue("$ZodString",(t,e)=>{var n;Ht.init(t,e),t._zod.pattern=[...((n=t==null?void 0:t._zod.bag)==null?void 0:n.patterns)??[]].pop()??rR(t._zod.bag),t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:t}),r}}),Jt=ue("$ZodStringFormat",(t,e)=>{yf.init(t,e),Jg.init(t,e)}),TR=ue("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=HN),Jt.init(t,e)}),IR=ue("$ZodUUID",(t,e)=>{if(e.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(r===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=j1(r))}else e.pattern??(e.pattern=j1());Jt.init(t,e)}),CR=ue("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=GN),Jt.init(t,e)}),AR=ue("$ZodURL",(t,e)=>{Jt.init(t,e),t._zod.check=n=>{try{const r=n.value.trim(),i=new URL(r);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:n.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:n.value,inst:t,continue:!e.abort})),e.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:t,continue:!e.abort})}}}),PR=ue("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=KN()),Jt.init(t,e)}),kR=ue("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=BN),Jt.init(t,e)}),OR=ue("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=LN),Jt.init(t,e)}),NR=ue("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=VN),Jt.init(t,e)}),RR=ue("$ZodULID",(t,e)=>{e.pattern??(e.pattern=FN),Jt.init(t,e)}),$R=ue("$ZodXID",(t,e)=>{e.pattern??(e.pattern=zN),Jt.init(t,e)}),DR=ue("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=UN),Jt.init(t,e)}),MR=ue("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=nR(e)),Jt.init(t,e)}),LR=ue("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=eR),Jt.init(t,e)}),VR=ue("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=tR(e)),Jt.init(t,e)}),FR=ue("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=jN),Jt.init(t,e)}),zR=ue("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=ZN),Jt.init(t,e),t._zod.bag.format="ipv4"}),UR=ue("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=XN),Jt.init(t,e),t._zod.bag.format="ipv6",t._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:t,continue:!e.abort})}}}),BR=ue("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=YN),Jt.init(t,e)}),jR=ue("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=JN),Jt.init(t,e),t._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[i,o]=r;if(!o)throw new Error;const s=Number(o);if(`${s}`!==o)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:t,continue:!e.abort})}}});function Y1(t){if(t==="")return!0;if(t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}const HR=ue("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=QN),Jt.init(t,e),t._zod.bag.contentEncoding="base64",t._zod.check=n=>{Y1(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:t,continue:!e.abort})}});function GR(t){if(!H1.test(t))return!1;const e=t.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=e.padEnd(Math.ceil(e.length/4)*4,"=");return Y1(n)}const WR=ue("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=H1),Jt.init(t,e),t._zod.bag.contentEncoding="base64url",t._zod.check=n=>{GR(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:t,continue:!e.abort})}}),KR=ue("$ZodE164",(t,e)=>{e.pattern??(e.pattern=qN),Jt.init(t,e)});function ZR(t,e=null){try{const n=t.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||e&&(!("alg"in i)||i.alg!==e))}catch{return!1}}const XR=ue("$ZodJWT",(t,e)=>{Jt.init(t,e),t._zod.check=n=>{ZR(n.value,e.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:t,continue:!e.abort})}}),J1=ue("$ZodNumber",(t,e)=>{Ht.init(t,e),t._zod.pattern=t._zod.bag.pattern??oR,t._zod.parse=(n,r)=>{if(e.coerce)try{n.value=Number(n.value)}catch{}const i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;const o=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:t,...o?{received:o}:{}}),n}}),YR=ue("$ZodNumberFormat",(t,e)=>{fR.init(t,e),J1.init(t,e)}),JR=ue("$ZodBoolean",(t,e)=>{Ht.init(t,e),t._zod.pattern=sR,t._zod.parse=(n,r)=>{if(e.coerce)try{n.value=!!n.value}catch{}const i=n.value;return typeof i=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:t}),n}}),QR=ue("$ZodUndefined",(t,e)=>{Ht.init(t,e),t._zod.pattern=lR,t._zod.values=new Set([void 0]),t._zod.optin="optional",t._zod.optout="optional",t._zod.parse=(n,r)=>{const i=n.value;return typeof i>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:i,inst:t}),n}}),qR=ue("$ZodNull",(t,e)=>{Ht.init(t,e),t._zod.pattern=aR,t._zod.values=new Set([null]),t._zod.parse=(n,r)=>{const i=n.value;return i===null||n.issues.push({expected:"null",code:"invalid_type",input:i,inst:t}),n}}),e$=ue("$ZodAny",(t,e)=>{Ht.init(t,e),t._zod.parse=n=>n}),t$=ue("$ZodUnknown",(t,e)=>{Ht.init(t,e),t._zod.parse=n=>n}),n$=ue("$ZodNever",(t,e)=>{Ht.init(t,e),t._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:t}),n)});function Q1(t,e,n){t.issues.length&&e.issues.push(...nl(n,t.issues)),e.value[n]=t.value}const r$=ue("$ZodArray",(t,e)=>{Ht.init(t,e),t._zod.parse=(n,r)=>{const i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:t}),n;n.value=Array(i.length);const o=[];for(let s=0;s<i.length;s++){const a=i[s],l=e.element._zod.run({value:a,issues:[]},r);l instanceof Promise?o.push(l.then(u=>Q1(u,n,s))):Q1(l,n,s)}return o.length?Promise.all(o).then(()=>n):n}});function bf(t,e,n,r){t.issues.length&&e.issues.push(...nl(n,t.issues)),t.value===void 0?n in r&&(e.value[n]=void 0):e.value[n]=t.value}function q1(t){var r,i,o,s;const e=Object.keys(t.shape);for(const a of e)if(!((s=(o=(i=(r=t.shape)==null?void 0:r[a])==null?void 0:i._zod)==null?void 0:o.traits)!=null&&s.has("$ZodType")))throw new Error(`Invalid element at key "${a}": expected a Zod schema`);const n=mN(t.shape);return{...t,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(n)}}function ex(t,e,n,r,i,o){const s=[],a=i.keySet,l=i.catchall._zod,u=l.def.type;for(const c in e){if(a.has(c))continue;if(u==="never"){s.push(c);continue}const d=l.run({value:e[c],issues:[]},r);d instanceof Promise?t.push(d.then(h=>bf(h,n,c,e))):bf(d,n,c,e)}return s.length&&n.issues.push({code:"unrecognized_keys",keys:s,input:e,inst:o}),t.length?Promise.all(t).then(()=>n):n}const i$=ue("$ZodObject",(t,e)=>{Ht.init(t,e);const n=Object.getOwnPropertyDescriptor(e,"shape");if(!(n!=null&&n.get)){const a=e.shape;Object.defineProperty(e,"shape",{get:()=>{const l={...a};return Object.defineProperty(e,"shape",{value:l}),l}})}const r=pf(()=>q1(e));Lt(t._zod,"propValues",()=>{const a=e.shape,l={};for(const u in a){const c=a[u]._zod;if(c.values){l[u]??(l[u]=new Set);for(const d of c.values)l[u].add(d)}}return l});const i=Du,o=e.catchall;let s;t._zod.parse=(a,l)=>{s??(s=r.value);const u=a.value;if(!i(u))return a.issues.push({expected:"object",code:"invalid_type",input:u,inst:t}),a;a.value={};const c=[],d=s.shape;for(const h of s.keys){const g=d[h]._zod.run({value:u[h],issues:[]},l);g instanceof Promise?c.push(g.then(m=>bf(m,a,h,u))):bf(g,a,h,u)}return o?ex(c,u,a,l,r.value,t):c.length?Promise.all(c).then(()=>a):a}}),o$=ue("$ZodObjectJIT",(t,e)=>{i$.init(t,e);const n=t._zod.parse,r=pf(()=>q1(e)),i=h=>{const p=new SR(["shape","payload","ctx"]),g=r.value,m=v=>{const y=L1(v);return`shape[${y}]._zod.run({ value: input[${y}], issues: [] }, ctx)`};p.write("const input = payload.value;");const _=Object.create(null);let E=0;for(const v of g.keys)_[v]=`key_${E++}`;p.write("const newResult = {};");for(const v of g.keys){const y=_[v],k=L1(v);p.write(`const ${y} = ${m(v)};`),p.write(`
|
|
29
29
|
if (${y}.issues.length) {
|
|
30
30
|
payload.issues = payload.issues.concat(${y}.issues.map(iss => ({
|
|
31
31
|
...iss,
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
newResult[${k}] = ${y}.value;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
`)}p.write("payload.value = newResult;"),p.write("return payload;");const w=p.compile();return(v,y)=>w(h,v,y)};let o;const s=Du,a=!$1.jitless,u=a&&pN.value,c=e.catchall;let d;t._zod.parse=(h,p)=>{d??(d=r.value);const g=h.value;return s(g)?a&&u&&(p==null?void 0:p.async)===!1&&p.jitless!==!0?(o||(o=i(e.shape)),h=o(h,p),c?ex([],g,h,p,d,t):h):n(h,p):(h.issues.push({expected:"object",code:"invalid_type",input:g,inst:t}),h)}});function tx(t,e,n,r){for(const o of t)if(o.issues.length===0)return e.value=o.value,e;const i=t.filter(o=>!tl(o));return i.length===1?(e.value=i[0].value,i[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:n,errors:t.map(o=>o.issues.map(s=>Uo(s,r,Fo())))}),e)}const nx=le("$ZodUnion",(t,e)=>{Ht.init(t,e),Lt(t._zod,"optin",()=>e.options.some(i=>i._zod.optin==="optional")?"optional":void 0),Lt(t._zod,"optout",()=>e.options.some(i=>i._zod.optout==="optional")?"optional":void 0),Lt(t._zod,"values",()=>{if(e.options.every(i=>i._zod.values))return new Set(e.options.flatMap(i=>Array.from(i._zod.values)))}),Lt(t._zod,"pattern",()=>{if(e.options.every(i=>i._zod.pattern)){const i=e.options.map(o=>o._zod.pattern);return new RegExp(`^(${i.map(o=>Kg(o.source)).join("|")})$`)}});const n=e.options.length===1,r=e.options[0]._zod.run;t._zod.parse=(i,o)=>{if(n)return r(i,o);let s=!1;const a=[];for(const l of e.options){const u=l._zod.run({value:i.value,issues:[]},o);if(u instanceof Promise)a.push(u),s=!0;else{if(u.issues.length===0)return u;a.push(u)}}return s?Promise.all(a).then(l=>tx(l,i,t,o)):tx(a,i,t,o)}}),s$=le("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,nx.init(t,e);const n=t._zod.parse;Lt(t._zod,"propValues",()=>{const i={};for(const o of e.options){const s=o._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(o)}"`);for(const[a,l]of Object.entries(s)){i[a]||(i[a]=new Set);for(const u of l)i[a].add(u)}}return i});const r=pf(()=>{var s;const i=e.options,o=new Map;for(const a of i){const l=(s=a._zod.propValues)==null?void 0:s[e.discriminator];if(!l||l.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(a)}"`);for(const u of l){if(o.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);o.set(u,a)}}return o});t._zod.parse=(i,o)=>{const s=i.value;if(!Du(s))return i.issues.push({code:"invalid_type",expected:"object",input:s,inst:t}),i;const a=r.value.get(s==null?void 0:s[e.discriminator]);return a?a._zod.run(i,o):e.unionFallback?n(i,o):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,input:s,path:[e.discriminator],inst:t}),i)}}),a$=le("$ZodIntersection",(t,e)=>{Ht.init(t,e),t._zod.parse=(n,r)=>{const i=n.value,o=e.left._zod.run({value:i,issues:[]},r),s=e.right._zod.run({value:i,issues:[]},r);return o instanceof Promise||s instanceof Promise?Promise.all([o,s]).then(([l,u])=>rx(n,l,u)):rx(n,o,s)}});function Qg(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&e instanceof Date&&+t==+e)return{valid:!0,data:t};if(qa(t)&&qa(e)){const n=Object.keys(e),r=Object.keys(t).filter(o=>n.indexOf(o)!==-1),i={...t,...e};for(const o of r){const s=Qg(t[o],e[o]);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};i[o]=s.data}return{valid:!0,data:i}}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<t.length;r++){const i=t[r],o=e[r],s=Qg(i,o);if(!s.valid)return{valid:!1,mergeErrorPath:[r,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function rx(t,e,n){if(e.issues.length&&t.issues.push(...e.issues),n.issues.length&&t.issues.push(...n.issues),tl(t))return t;const r=Qg(e.value,n.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return t.value=r.data,t}const l$=le("$ZodRecord",(t,e)=>{Ht.init(t,e),t._zod.parse=(n,r)=>{const i=n.value;if(!qa(i))return n.issues.push({expected:"record",code:"invalid_type",input:i,inst:t}),n;const o=[],s=e.keyType._zod.values;if(s){n.value={};const a=new Set;for(const u of s)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){a.add(typeof u=="number"?u.toString():u);const c=e.valueType._zod.run({value:i[u],issues:[]},r);c instanceof Promise?o.push(c.then(d=>{d.issues.length&&n.issues.push(...nl(u,d.issues)),n.value[u]=d.value})):(c.issues.length&&n.issues.push(...nl(u,c.issues)),n.value[u]=c.value)}let l;for(const u in i)a.has(u)||(l=l??[],l.push(u));l&&l.length>0&&n.issues.push({code:"unrecognized_keys",input:i,inst:t,keys:l})}else{n.value={};for(const a of Reflect.ownKeys(i)){if(a==="__proto__")continue;const l=e.keyType._zod.run({value:a,issues:[]},r);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(l.issues.length){e.mode==="loose"?n.value[a]=i[a]:n.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(c=>Uo(c,r,Fo())),input:a,path:[a],inst:t});continue}const u=e.valueType._zod.run({value:i[a],issues:[]},r);u instanceof Promise?o.push(u.then(c=>{c.issues.length&&n.issues.push(...nl(a,c.issues)),n.value[l.value]=c.value})):(u.issues.length&&n.issues.push(...nl(a,u.issues)),n.value[l.value]=u.value)}}return o.length?Promise.all(o).then(()=>n):n}}),u$=le("$ZodEnum",(t,e)=>{Ht.init(t,e);const n=D1(e.entries),r=new Set(n);t._zod.values=r,t._zod.pattern=new RegExp(`^(${n.filter(i=>gN.has(typeof i)).map(i=>typeof i=="string"?el(i):i.toString()).join("|")})$`),t._zod.parse=(i,o)=>{const s=i.value;return r.has(s)||i.issues.push({code:"invalid_value",values:n,input:s,inst:t}),i}}),c$=le("$ZodLiteral",(t,e)=>{if(Ht.init(t,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(e.values);t._zod.values=n,t._zod.pattern=new RegExp(`^(${e.values.map(r=>typeof r=="string"?el(r):r?el(r.toString()):String(r)).join("|")})$`),t._zod.parse=(r,i)=>{const o=r.value;return n.has(o)||r.issues.push({code:"invalid_value",values:e.values,input:o,inst:t}),r}}),d$=le("$ZodTransform",(t,e)=>{Ht.init(t,e),t._zod.parse=(n,r)=>{if(r.direction==="backward")throw new R1(t.constructor.name);const i=e.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(s=>(n.value=s,n));if(i instanceof Promise)throw new Qa;return n.value=i,n}});function ix(t,e){return t.issues.length&&e===void 0?{issues:[],value:void 0}:t}const f$=le("$ZodOptional",(t,e)=>{Ht.init(t,e),t._zod.optin="optional",t._zod.optout="optional",Lt(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),Lt(t._zod,"pattern",()=>{const n=e.innerType._zod.pattern;return n?new RegExp(`^(${Kg(n.source)})?$`):void 0}),t._zod.parse=(n,r)=>{if(e.innerType._zod.optin==="optional"){const i=e.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>ix(o,n.value)):ix(i,n.value)}return n.value===void 0?n:e.innerType._zod.run(n,r)}}),h$=le("$ZodNullable",(t,e)=>{Ht.init(t,e),Lt(t._zod,"optin",()=>e.innerType._zod.optin),Lt(t._zod,"optout",()=>e.innerType._zod.optout),Lt(t._zod,"pattern",()=>{const n=e.innerType._zod.pattern;return n?new RegExp(`^(${Kg(n.source)}|null)$`):void 0}),Lt(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(n,r)=>n.value===null?n:e.innerType._zod.run(n,r)}),p$=le("$ZodDefault",(t,e)=>{Ht.init(t,e),t._zod.optin="optional",Lt(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(n,r)=>{if(r.direction==="backward")return e.innerType._zod.run(n,r);if(n.value===void 0)return n.value=e.defaultValue,n;const i=e.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>ox(o,e)):ox(i,e)}});function ox(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}const g$=le("$ZodPrefault",(t,e)=>{Ht.init(t,e),t._zod.optin="optional",Lt(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=e.defaultValue),e.innerType._zod.run(n,r))}),m$=le("$ZodNonOptional",(t,e)=>{Ht.init(t,e),Lt(t._zod,"values",()=>{const n=e.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),t._zod.parse=(n,r)=>{const i=e.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>sx(o,t)):sx(i,t)}});function sx(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}const v$=le("$ZodCatch",(t,e)=>{Ht.init(t,e),Lt(t._zod,"optin",()=>e.innerType._zod.optin),Lt(t._zod,"optout",()=>e.innerType._zod.optout),Lt(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(n,r)=>{if(r.direction==="backward")return e.innerType._zod.run(n,r);const i=e.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>(n.value=o.value,o.issues.length&&(n.value=e.catchValue({...n,error:{issues:o.issues.map(s=>Uo(s,r,Fo()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=e.catchValue({...n,error:{issues:i.issues.map(o=>Uo(o,r,Fo()))},input:n.value}),n.issues=[]),n)}}),y$=le("$ZodPipe",(t,e)=>{Ht.init(t,e),Lt(t._zod,"values",()=>e.in._zod.values),Lt(t._zod,"optin",()=>e.in._zod.optin),Lt(t._zod,"optout",()=>e.out._zod.optout),Lt(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(n,r)=>{if(r.direction==="backward"){const o=e.out._zod.run(n,r);return o instanceof Promise?o.then(s=>_f(s,e.in,r)):_f(o,e.in,r)}const i=e.in._zod.run(n,r);return i instanceof Promise?i.then(o=>_f(o,e.out,r)):_f(i,e.out,r)}});function _f(t,e,n){return t.issues.length?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues},n)}const b$=le("$ZodReadonly",(t,e)=>{Ht.init(t,e),Lt(t._zod,"propValues",()=>e.innerType._zod.propValues),Lt(t._zod,"values",()=>e.innerType._zod.values),Lt(t._zod,"optin",()=>{var n,r;return(r=(n=e.innerType)==null?void 0:n._zod)==null?void 0:r.optin}),Lt(t._zod,"optout",()=>{var n,r;return(r=(n=e.innerType)==null?void 0:n._zod)==null?void 0:r.optout}),t._zod.parse=(n,r)=>{if(r.direction==="backward")return e.innerType._zod.run(n,r);const i=e.innerType._zod.run(n,r);return i instanceof Promise?i.then(ax):ax(i)}});function ax(t){return t.value=Object.freeze(t.value),t}const _$=le("$ZodCustom",(t,e)=>{vr.init(t,e),Ht.init(t,e),t._zod.parse=(n,r)=>n,t._zod.check=n=>{const r=n.value,i=e.fn(r);if(i instanceof Promise)return i.then(o=>lx(o,n,r,t));lx(i,n,r,t)}});function lx(t,e,n,r){if(!t){const i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),e.issues.push(Mu(i))}}var ux;class x${constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...n){const r=n[0];if(this._map.set(e,r),r&&typeof r=="object"&&"id"in r){if(this._idmap.has(r.id))throw new Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,e)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){const n=this._map.get(e);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(e),this}get(e){const n=e._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const i={...r,...this._map.get(e)};return Object.keys(i).length?i:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function w$(){return new x$}(ux=globalThis).__zod_globalRegistry??(ux.__zod_globalRegistry=w$());const Lu=globalThis.__zod_globalRegistry;function S$(t,e){return new t({type:"string",...Ge(e)})}function E$(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...Ge(e)})}function cx(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...Ge(e)})}function T$(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...Ge(e)})}function I$(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Ge(e)})}function C$(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Ge(e)})}function A$(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Ge(e)})}function P$(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...Ge(e)})}function k$(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...Ge(e)})}function O$(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...Ge(e)})}function N$(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...Ge(e)})}function R$(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...Ge(e)})}function $$(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...Ge(e)})}function D$(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...Ge(e)})}function M$(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...Ge(e)})}function L$(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...Ge(e)})}function V$(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...Ge(e)})}function F$(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Ge(e)})}function z$(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Ge(e)})}function U$(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...Ge(e)})}function B$(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...Ge(e)})}function j$(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...Ge(e)})}function H$(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...Ge(e)})}function G$(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Ge(e)})}function W$(t,e){return new t({type:"string",format:"date",check:"string_format",...Ge(e)})}function K$(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...Ge(e)})}function Z$(t,e){return new t({type:"string",format:"duration",check:"string_format",...Ge(e)})}function X$(t,e){return new t({type:"number",checks:[],...Ge(e)})}function Y$(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...Ge(e)})}function J$(t,e){return new t({type:"boolean",...Ge(e)})}function Q$(t,e){return new t({type:"undefined",...Ge(e)})}function q$(t,e){return new t({type:"null",...Ge(e)})}function eD(t){return new t({type:"any"})}function tD(t){return new t({type:"unknown"})}function nD(t,e){return new t({type:"never",...Ge(e)})}function dx(t,e){return new Z1({check:"less_than",...Ge(e),value:t,inclusive:!1})}function qg(t,e){return new Z1({check:"less_than",...Ge(e),value:t,inclusive:!0})}function fx(t,e){return new X1({check:"greater_than",...Ge(e),value:t,inclusive:!1})}function em(t,e){return new X1({check:"greater_than",...Ge(e),value:t,inclusive:!0})}function hx(t,e){return new dR({check:"multiple_of",...Ge(e),value:t})}function px(t,e){return new hR({check:"max_length",...Ge(e),maximum:t})}function xf(t,e){return new pR({check:"min_length",...Ge(e),minimum:t})}function gx(t,e){return new gR({check:"length_equals",...Ge(e),length:t})}function rD(t,e){return new mR({check:"string_format",format:"regex",...Ge(e),pattern:t})}function iD(t){return new vR({check:"string_format",format:"lowercase",...Ge(t)})}function oD(t){return new yR({check:"string_format",format:"uppercase",...Ge(t)})}function sD(t,e){return new bR({check:"string_format",format:"includes",...Ge(e),includes:t})}function aD(t,e){return new _R({check:"string_format",format:"starts_with",...Ge(e),prefix:t})}function lD(t,e){return new xR({check:"string_format",format:"ends_with",...Ge(e),suffix:t})}function rl(t){return new wR({check:"overwrite",tx:t})}function uD(t){return rl(e=>e.normalize(t))}function cD(){return rl(t=>t.trim())}function dD(){return rl(t=>t.toLowerCase())}function fD(){return rl(t=>t.toUpperCase())}function hD(){return rl(t=>hN(t))}function pD(t,e,n){return new t({type:"array",element:e,...Ge(n)})}function gD(t,e,n){return new t({type:"custom",check:"custom",fn:e,...Ge(n)})}function mD(t){const e=vD(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(Mu(r,n.value,e._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=e),i.continue??(i.continue=!e._zod.def.abort),n.issues.push(Mu(i))}},t(n.value,n)));return e}function vD(t,e){const n=new vr({check:"custom",...Ge(e)});return n._zod.check=t,n}function mx(t){let e=(t==null?void 0:t.target)??"draft-2020-12";return e==="draft-4"&&(e="draft-04"),e==="draft-7"&&(e="draft-07"),{processors:t.processors??{},metadataRegistry:(t==null?void 0:t.metadata)??Lu,target:e,unrepresentable:(t==null?void 0:t.unrepresentable)??"throw",override:(t==null?void 0:t.override)??(()=>{}),io:(t==null?void 0:t.io)??"output",counter:0,seen:new Map,cycles:(t==null?void 0:t.cycles)??"ref",reused:(t==null?void 0:t.reused)??"inline",external:(t==null?void 0:t.external)??void 0}}function Cn(t,e,n={path:[],schemaPath:[]}){var c,d;var r;const i=t._zod.def,o=e.seen.get(t);if(o)return o.count++,n.schemaPath.includes(t)&&(o.cycle=n.path),o.schema;const s={schema:{},count:1,cycle:void 0,path:n.path};e.seen.set(t,s);const a=(d=(c=t._zod).toJSONSchema)==null?void 0:d.call(c);if(a)s.schema=a;else{const h={...n,schemaPath:[...n.schemaPath,t],path:n.path},p=t._zod.parent;if(p)s.ref=p,Cn(p,e,h),e.seen.get(p).isParent=!0;else if(t._zod.processJSONSchema)t._zod.processJSONSchema(e,s.schema,h);else{const g=s.schema,m=e.processors[i.type];if(!m)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);m(t,e,g,h)}}const l=e.metadataRegistry.get(t);return l&&Object.assign(s.schema,l),e.io==="input"&&lr(t)&&(delete s.schema.examples,delete s.schema.default),e.io==="input"&&s.schema._prefault&&((r=s.schema).default??(r.default=s.schema._prefault)),delete s.schema._prefault,e.seen.get(t).schema}function vx(t,e){var o,s,a;const n=t.seen.get(e);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=l=>{var p;const u=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){const g=(p=t.external.registry.get(l[0]))==null?void 0:p.id,m=t.external.uri??(E=>E);if(g)return{ref:m(g)};const _=l[1].defId??l[1].schema.id??`schema${t.counter++}`;return l[1].defId=_,{defId:_,ref:`${m("__shared")}#/${u}/${_}`}}if(l[1]===n)return{ref:"#"};const d=`#/${u}/`,h=l[1].schema.id??`__schema${t.counter++}`;return{defId:h,ref:d+h}},i=l=>{if(l[1].schema.$ref)return;const u=l[1],{ref:c,defId:d}=r(l);u.def={...u.schema},d&&(u.defId=d);const h=u.schema;for(const p in h)delete h[p];h.$ref=c};if(t.cycles==="throw")for(const l of t.seen.entries()){const u=l[1];if(u.cycle)throw new Error(`Cycle detected: #/${(o=u.cycle)==null?void 0:o.join("/")}/<root>
|
|
45
|
+
`)}p.write("payload.value = newResult;"),p.write("return payload;");const w=p.compile();return(v,y)=>w(h,v,y)};let o;const s=Du,a=!$1.jitless,u=a&&pN.value,c=e.catchall;let d;t._zod.parse=(h,p)=>{d??(d=r.value);const g=h.value;return s(g)?a&&u&&(p==null?void 0:p.async)===!1&&p.jitless!==!0?(o||(o=i(e.shape)),h=o(h,p),c?ex([],g,h,p,d,t):h):n(h,p):(h.issues.push({expected:"object",code:"invalid_type",input:g,inst:t}),h)}});function tx(t,e,n,r){for(const o of t)if(o.issues.length===0)return e.value=o.value,e;const i=t.filter(o=>!tl(o));return i.length===1?(e.value=i[0].value,i[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:n,errors:t.map(o=>o.issues.map(s=>Uo(s,r,Fo())))}),e)}const nx=ue("$ZodUnion",(t,e)=>{Ht.init(t,e),Lt(t._zod,"optin",()=>e.options.some(i=>i._zod.optin==="optional")?"optional":void 0),Lt(t._zod,"optout",()=>e.options.some(i=>i._zod.optout==="optional")?"optional":void 0),Lt(t._zod,"values",()=>{if(e.options.every(i=>i._zod.values))return new Set(e.options.flatMap(i=>Array.from(i._zod.values)))}),Lt(t._zod,"pattern",()=>{if(e.options.every(i=>i._zod.pattern)){const i=e.options.map(o=>o._zod.pattern);return new RegExp(`^(${i.map(o=>Kg(o.source)).join("|")})$`)}});const n=e.options.length===1,r=e.options[0]._zod.run;t._zod.parse=(i,o)=>{if(n)return r(i,o);let s=!1;const a=[];for(const l of e.options){const u=l._zod.run({value:i.value,issues:[]},o);if(u instanceof Promise)a.push(u),s=!0;else{if(u.issues.length===0)return u;a.push(u)}}return s?Promise.all(a).then(l=>tx(l,i,t,o)):tx(a,i,t,o)}}),s$=ue("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,nx.init(t,e);const n=t._zod.parse;Lt(t._zod,"propValues",()=>{const i={};for(const o of e.options){const s=o._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(o)}"`);for(const[a,l]of Object.entries(s)){i[a]||(i[a]=new Set);for(const u of l)i[a].add(u)}}return i});const r=pf(()=>{var s;const i=e.options,o=new Map;for(const a of i){const l=(s=a._zod.propValues)==null?void 0:s[e.discriminator];if(!l||l.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(a)}"`);for(const u of l){if(o.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);o.set(u,a)}}return o});t._zod.parse=(i,o)=>{const s=i.value;if(!Du(s))return i.issues.push({code:"invalid_type",expected:"object",input:s,inst:t}),i;const a=r.value.get(s==null?void 0:s[e.discriminator]);return a?a._zod.run(i,o):e.unionFallback?n(i,o):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,input:s,path:[e.discriminator],inst:t}),i)}}),a$=ue("$ZodIntersection",(t,e)=>{Ht.init(t,e),t._zod.parse=(n,r)=>{const i=n.value,o=e.left._zod.run({value:i,issues:[]},r),s=e.right._zod.run({value:i,issues:[]},r);return o instanceof Promise||s instanceof Promise?Promise.all([o,s]).then(([l,u])=>rx(n,l,u)):rx(n,o,s)}});function Qg(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&e instanceof Date&&+t==+e)return{valid:!0,data:t};if(qa(t)&&qa(e)){const n=Object.keys(e),r=Object.keys(t).filter(o=>n.indexOf(o)!==-1),i={...t,...e};for(const o of r){const s=Qg(t[o],e[o]);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};i[o]=s.data}return{valid:!0,data:i}}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<t.length;r++){const i=t[r],o=e[r],s=Qg(i,o);if(!s.valid)return{valid:!1,mergeErrorPath:[r,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function rx(t,e,n){if(e.issues.length&&t.issues.push(...e.issues),n.issues.length&&t.issues.push(...n.issues),tl(t))return t;const r=Qg(e.value,n.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return t.value=r.data,t}const l$=ue("$ZodRecord",(t,e)=>{Ht.init(t,e),t._zod.parse=(n,r)=>{const i=n.value;if(!qa(i))return n.issues.push({expected:"record",code:"invalid_type",input:i,inst:t}),n;const o=[],s=e.keyType._zod.values;if(s){n.value={};const a=new Set;for(const u of s)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){a.add(typeof u=="number"?u.toString():u);const c=e.valueType._zod.run({value:i[u],issues:[]},r);c instanceof Promise?o.push(c.then(d=>{d.issues.length&&n.issues.push(...nl(u,d.issues)),n.value[u]=d.value})):(c.issues.length&&n.issues.push(...nl(u,c.issues)),n.value[u]=c.value)}let l;for(const u in i)a.has(u)||(l=l??[],l.push(u));l&&l.length>0&&n.issues.push({code:"unrecognized_keys",input:i,inst:t,keys:l})}else{n.value={};for(const a of Reflect.ownKeys(i)){if(a==="__proto__")continue;const l=e.keyType._zod.run({value:a,issues:[]},r);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(l.issues.length){e.mode==="loose"?n.value[a]=i[a]:n.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(c=>Uo(c,r,Fo())),input:a,path:[a],inst:t});continue}const u=e.valueType._zod.run({value:i[a],issues:[]},r);u instanceof Promise?o.push(u.then(c=>{c.issues.length&&n.issues.push(...nl(a,c.issues)),n.value[l.value]=c.value})):(u.issues.length&&n.issues.push(...nl(a,u.issues)),n.value[l.value]=u.value)}}return o.length?Promise.all(o).then(()=>n):n}}),u$=ue("$ZodEnum",(t,e)=>{Ht.init(t,e);const n=D1(e.entries),r=new Set(n);t._zod.values=r,t._zod.pattern=new RegExp(`^(${n.filter(i=>gN.has(typeof i)).map(i=>typeof i=="string"?el(i):i.toString()).join("|")})$`),t._zod.parse=(i,o)=>{const s=i.value;return r.has(s)||i.issues.push({code:"invalid_value",values:n,input:s,inst:t}),i}}),c$=ue("$ZodLiteral",(t,e)=>{if(Ht.init(t,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(e.values);t._zod.values=n,t._zod.pattern=new RegExp(`^(${e.values.map(r=>typeof r=="string"?el(r):r?el(r.toString()):String(r)).join("|")})$`),t._zod.parse=(r,i)=>{const o=r.value;return n.has(o)||r.issues.push({code:"invalid_value",values:e.values,input:o,inst:t}),r}}),d$=ue("$ZodTransform",(t,e)=>{Ht.init(t,e),t._zod.parse=(n,r)=>{if(r.direction==="backward")throw new R1(t.constructor.name);const i=e.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(s=>(n.value=s,n));if(i instanceof Promise)throw new Qa;return n.value=i,n}});function ix(t,e){return t.issues.length&&e===void 0?{issues:[],value:void 0}:t}const f$=ue("$ZodOptional",(t,e)=>{Ht.init(t,e),t._zod.optin="optional",t._zod.optout="optional",Lt(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),Lt(t._zod,"pattern",()=>{const n=e.innerType._zod.pattern;return n?new RegExp(`^(${Kg(n.source)})?$`):void 0}),t._zod.parse=(n,r)=>{if(e.innerType._zod.optin==="optional"){const i=e.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>ix(o,n.value)):ix(i,n.value)}return n.value===void 0?n:e.innerType._zod.run(n,r)}}),h$=ue("$ZodNullable",(t,e)=>{Ht.init(t,e),Lt(t._zod,"optin",()=>e.innerType._zod.optin),Lt(t._zod,"optout",()=>e.innerType._zod.optout),Lt(t._zod,"pattern",()=>{const n=e.innerType._zod.pattern;return n?new RegExp(`^(${Kg(n.source)}|null)$`):void 0}),Lt(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(n,r)=>n.value===null?n:e.innerType._zod.run(n,r)}),p$=ue("$ZodDefault",(t,e)=>{Ht.init(t,e),t._zod.optin="optional",Lt(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(n,r)=>{if(r.direction==="backward")return e.innerType._zod.run(n,r);if(n.value===void 0)return n.value=e.defaultValue,n;const i=e.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>ox(o,e)):ox(i,e)}});function ox(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}const g$=ue("$ZodPrefault",(t,e)=>{Ht.init(t,e),t._zod.optin="optional",Lt(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=e.defaultValue),e.innerType._zod.run(n,r))}),m$=ue("$ZodNonOptional",(t,e)=>{Ht.init(t,e),Lt(t._zod,"values",()=>{const n=e.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),t._zod.parse=(n,r)=>{const i=e.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>sx(o,t)):sx(i,t)}});function sx(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}const v$=ue("$ZodCatch",(t,e)=>{Ht.init(t,e),Lt(t._zod,"optin",()=>e.innerType._zod.optin),Lt(t._zod,"optout",()=>e.innerType._zod.optout),Lt(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(n,r)=>{if(r.direction==="backward")return e.innerType._zod.run(n,r);const i=e.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>(n.value=o.value,o.issues.length&&(n.value=e.catchValue({...n,error:{issues:o.issues.map(s=>Uo(s,r,Fo()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=e.catchValue({...n,error:{issues:i.issues.map(o=>Uo(o,r,Fo()))},input:n.value}),n.issues=[]),n)}}),y$=ue("$ZodPipe",(t,e)=>{Ht.init(t,e),Lt(t._zod,"values",()=>e.in._zod.values),Lt(t._zod,"optin",()=>e.in._zod.optin),Lt(t._zod,"optout",()=>e.out._zod.optout),Lt(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(n,r)=>{if(r.direction==="backward"){const o=e.out._zod.run(n,r);return o instanceof Promise?o.then(s=>_f(s,e.in,r)):_f(o,e.in,r)}const i=e.in._zod.run(n,r);return i instanceof Promise?i.then(o=>_f(o,e.out,r)):_f(i,e.out,r)}});function _f(t,e,n){return t.issues.length?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues},n)}const b$=ue("$ZodReadonly",(t,e)=>{Ht.init(t,e),Lt(t._zod,"propValues",()=>e.innerType._zod.propValues),Lt(t._zod,"values",()=>e.innerType._zod.values),Lt(t._zod,"optin",()=>{var n,r;return(r=(n=e.innerType)==null?void 0:n._zod)==null?void 0:r.optin}),Lt(t._zod,"optout",()=>{var n,r;return(r=(n=e.innerType)==null?void 0:n._zod)==null?void 0:r.optout}),t._zod.parse=(n,r)=>{if(r.direction==="backward")return e.innerType._zod.run(n,r);const i=e.innerType._zod.run(n,r);return i instanceof Promise?i.then(ax):ax(i)}});function ax(t){return t.value=Object.freeze(t.value),t}const _$=ue("$ZodCustom",(t,e)=>{vr.init(t,e),Ht.init(t,e),t._zod.parse=(n,r)=>n,t._zod.check=n=>{const r=n.value,i=e.fn(r);if(i instanceof Promise)return i.then(o=>lx(o,n,r,t));lx(i,n,r,t)}});function lx(t,e,n,r){if(!t){const i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),e.issues.push(Mu(i))}}var ux;class x${constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...n){const r=n[0];if(this._map.set(e,r),r&&typeof r=="object"&&"id"in r){if(this._idmap.has(r.id))throw new Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,e)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){const n=this._map.get(e);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(e),this}get(e){const n=e._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const i={...r,...this._map.get(e)};return Object.keys(i).length?i:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function w$(){return new x$}(ux=globalThis).__zod_globalRegistry??(ux.__zod_globalRegistry=w$());const Lu=globalThis.__zod_globalRegistry;function S$(t,e){return new t({type:"string",...Ge(e)})}function E$(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...Ge(e)})}function cx(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...Ge(e)})}function T$(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...Ge(e)})}function I$(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Ge(e)})}function C$(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Ge(e)})}function A$(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Ge(e)})}function P$(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...Ge(e)})}function k$(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...Ge(e)})}function O$(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...Ge(e)})}function N$(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...Ge(e)})}function R$(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...Ge(e)})}function $$(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...Ge(e)})}function D$(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...Ge(e)})}function M$(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...Ge(e)})}function L$(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...Ge(e)})}function V$(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...Ge(e)})}function F$(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Ge(e)})}function z$(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Ge(e)})}function U$(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...Ge(e)})}function B$(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...Ge(e)})}function j$(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...Ge(e)})}function H$(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...Ge(e)})}function G$(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Ge(e)})}function W$(t,e){return new t({type:"string",format:"date",check:"string_format",...Ge(e)})}function K$(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...Ge(e)})}function Z$(t,e){return new t({type:"string",format:"duration",check:"string_format",...Ge(e)})}function X$(t,e){return new t({type:"number",checks:[],...Ge(e)})}function Y$(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...Ge(e)})}function J$(t,e){return new t({type:"boolean",...Ge(e)})}function Q$(t,e){return new t({type:"undefined",...Ge(e)})}function q$(t,e){return new t({type:"null",...Ge(e)})}function eD(t){return new t({type:"any"})}function tD(t){return new t({type:"unknown"})}function nD(t,e){return new t({type:"never",...Ge(e)})}function dx(t,e){return new Z1({check:"less_than",...Ge(e),value:t,inclusive:!1})}function qg(t,e){return new Z1({check:"less_than",...Ge(e),value:t,inclusive:!0})}function fx(t,e){return new X1({check:"greater_than",...Ge(e),value:t,inclusive:!1})}function em(t,e){return new X1({check:"greater_than",...Ge(e),value:t,inclusive:!0})}function hx(t,e){return new dR({check:"multiple_of",...Ge(e),value:t})}function px(t,e){return new hR({check:"max_length",...Ge(e),maximum:t})}function xf(t,e){return new pR({check:"min_length",...Ge(e),minimum:t})}function gx(t,e){return new gR({check:"length_equals",...Ge(e),length:t})}function rD(t,e){return new mR({check:"string_format",format:"regex",...Ge(e),pattern:t})}function iD(t){return new vR({check:"string_format",format:"lowercase",...Ge(t)})}function oD(t){return new yR({check:"string_format",format:"uppercase",...Ge(t)})}function sD(t,e){return new bR({check:"string_format",format:"includes",...Ge(e),includes:t})}function aD(t,e){return new _R({check:"string_format",format:"starts_with",...Ge(e),prefix:t})}function lD(t,e){return new xR({check:"string_format",format:"ends_with",...Ge(e),suffix:t})}function rl(t){return new wR({check:"overwrite",tx:t})}function uD(t){return rl(e=>e.normalize(t))}function cD(){return rl(t=>t.trim())}function dD(){return rl(t=>t.toLowerCase())}function fD(){return rl(t=>t.toUpperCase())}function hD(){return rl(t=>hN(t))}function pD(t,e,n){return new t({type:"array",element:e,...Ge(n)})}function gD(t,e,n){return new t({type:"custom",check:"custom",fn:e,...Ge(n)})}function mD(t){const e=vD(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(Mu(r,n.value,e._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=e),i.continue??(i.continue=!e._zod.def.abort),n.issues.push(Mu(i))}},t(n.value,n)));return e}function vD(t,e){const n=new vr({check:"custom",...Ge(e)});return n._zod.check=t,n}function mx(t){let e=(t==null?void 0:t.target)??"draft-2020-12";return e==="draft-4"&&(e="draft-04"),e==="draft-7"&&(e="draft-07"),{processors:t.processors??{},metadataRegistry:(t==null?void 0:t.metadata)??Lu,target:e,unrepresentable:(t==null?void 0:t.unrepresentable)??"throw",override:(t==null?void 0:t.override)??(()=>{}),io:(t==null?void 0:t.io)??"output",counter:0,seen:new Map,cycles:(t==null?void 0:t.cycles)??"ref",reused:(t==null?void 0:t.reused)??"inline",external:(t==null?void 0:t.external)??void 0}}function Cn(t,e,n={path:[],schemaPath:[]}){var c,d;var r;const i=t._zod.def,o=e.seen.get(t);if(o)return o.count++,n.schemaPath.includes(t)&&(o.cycle=n.path),o.schema;const s={schema:{},count:1,cycle:void 0,path:n.path};e.seen.set(t,s);const a=(d=(c=t._zod).toJSONSchema)==null?void 0:d.call(c);if(a)s.schema=a;else{const h={...n,schemaPath:[...n.schemaPath,t],path:n.path},p=t._zod.parent;if(p)s.ref=p,Cn(p,e,h),e.seen.get(p).isParent=!0;else if(t._zod.processJSONSchema)t._zod.processJSONSchema(e,s.schema,h);else{const g=s.schema,m=e.processors[i.type];if(!m)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);m(t,e,g,h)}}const l=e.metadataRegistry.get(t);return l&&Object.assign(s.schema,l),e.io==="input"&&lr(t)&&(delete s.schema.examples,delete s.schema.default),e.io==="input"&&s.schema._prefault&&((r=s.schema).default??(r.default=s.schema._prefault)),delete s.schema._prefault,e.seen.get(t).schema}function vx(t,e){var o,s,a;const n=t.seen.get(e);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=l=>{var p;const u=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){const g=(p=t.external.registry.get(l[0]))==null?void 0:p.id,m=t.external.uri??(E=>E);if(g)return{ref:m(g)};const _=l[1].defId??l[1].schema.id??`schema${t.counter++}`;return l[1].defId=_,{defId:_,ref:`${m("__shared")}#/${u}/${_}`}}if(l[1]===n)return{ref:"#"};const d=`#/${u}/`,h=l[1].schema.id??`__schema${t.counter++}`;return{defId:h,ref:d+h}},i=l=>{if(l[1].schema.$ref)return;const u=l[1],{ref:c,defId:d}=r(l);u.def={...u.schema},d&&(u.defId=d);const h=u.schema;for(const p in h)delete h[p];h.$ref=c};if(t.cycles==="throw")for(const l of t.seen.entries()){const u=l[1];if(u.cycle)throw new Error(`Cycle detected: #/${(o=u.cycle)==null?void 0:o.join("/")}/<root>
|
|
46
46
|
|
|
47
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const l of t.seen.entries()){const u=l[1];if(e===l[0]){i(l);continue}if(t.external){const d=(s=t.external.registry.get(l[0]))==null?void 0:s.id;if(e!==l[0]&&d){i(l);continue}}if((a=t.metadataRegistry.get(l[0]))==null?void 0:a.id){i(l);continue}if(u.cycle){i(l);continue}if(u.count>1&&t.reused==="ref"){i(l);continue}}}function yx(t,e){var s,a,l;const n=t.seen.get(e);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=u=>{const c=t.seen.get(u),d=c.def??c.schema,h={...d};if(c.ref===null)return;const p=c.ref;if(c.ref=null,p){r(p);const g=t.seen.get(p).schema;g.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(d.allOf=d.allOf??[],d.allOf.push(g)):(Object.assign(d,g),Object.assign(d,h))}c.isParent||t.override({zodSchema:u,jsonSchema:d,path:c.path??[]})};for(const u of[...t.seen.entries()].reverse())r(u[0]);const i={};if(t.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":t.target,(s=t.external)!=null&&s.uri){const u=(a=t.external.registry.get(e))==null?void 0:a.id;if(!u)throw new Error("Schema is missing an `id` property");i.$id=t.external.uri(u)}Object.assign(i,n.def??n.schema);const o=((l=t.external)==null?void 0:l.defs)??{};for(const u of t.seen.entries()){const c=u[1];c.def&&c.defId&&(o[c.defId]=c.def)}t.external||Object.keys(o).length>0&&(t.target==="draft-2020-12"?i.$defs=o:i.definitions=o);try{const u=JSON.parse(JSON.stringify(i));return Object.defineProperty(u,"~standard",{value:{...e["~standard"],jsonSchema:{input:wf(e,"input"),output:wf(e,"output")}},enumerable:!1,writable:!1}),u}catch{throw new Error("Error converting schema to JSON.")}}function lr(t,e){const n=e??{seen:new Set};if(n.seen.has(t))return!1;n.seen.add(t);const r=t._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return lr(r.element,n);if(r.type==="set")return lr(r.valueType,n);if(r.type==="lazy")return lr(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return lr(r.innerType,n);if(r.type==="intersection")return lr(r.left,n)||lr(r.right,n);if(r.type==="record"||r.type==="map")return lr(r.keyType,n)||lr(r.valueType,n);if(r.type==="pipe")return lr(r.in,n)||lr(r.out,n);if(r.type==="object"){for(const i in r.shape)if(lr(r.shape[i],n))return!0;return!1}if(r.type==="union"){for(const i of r.options)if(lr(i,n))return!0;return!1}if(r.type==="tuple"){for(const i of r.items)if(lr(i,n))return!0;return!!(r.rest&&lr(r.rest,n))}return!1}const yD=(t,e={})=>n=>{const r=mx({...n,processors:e});return Cn(t,r),vx(r,t),yx(r,t)},wf=(t,e)=>n=>{const{libraryOptions:r,target:i}=n??{},o=mx({...r??{},target:i,io:e,processors:{}});return Cn(t,o),vx(o,t),yx(o,t)},bD={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},_D=(t,e,n,r)=>{const i=n;i.type="string";const{minimum:o,maximum:s,format:a,patterns:l,contentEncoding:u}=t._zod.bag;if(typeof o=="number"&&(i.minLength=o),typeof s=="number"&&(i.maxLength=s),a&&(i.format=bD[a]??a,i.format===""&&delete i.format),u&&(i.contentEncoding=u),l&&l.size>0){const c=[...l];c.length===1?i.pattern=c[0].source:c.length>1&&(i.allOf=[...c.map(d=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},xD=(t,e,n,r)=>{const i=n,{minimum:o,maximum:s,format:a,multipleOf:l,exclusiveMaximum:u,exclusiveMinimum:c}=t._zod.bag;typeof a=="string"&&a.includes("int")?i.type="integer":i.type="number",typeof c=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(i.minimum=c,i.exclusiveMinimum=!0):i.exclusiveMinimum=c),typeof o=="number"&&(i.minimum=o,typeof c=="number"&&e.target!=="draft-04"&&(c>=o?delete i.minimum:delete i.exclusiveMinimum)),typeof u=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(i.maximum=u,i.exclusiveMaximum=!0):i.exclusiveMaximum=u),typeof s=="number"&&(i.maximum=s,typeof u=="number"&&e.target!=="draft-04"&&(u<=s?delete i.maximum:delete i.exclusiveMaximum)),typeof l=="number"&&(i.multipleOf=l)},wD=(t,e,n,r)=>{n.type="boolean"},SD=(t,e,n,r)=>{e.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},ED=(t,e,n,r)=>{if(e.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},TD=(t,e,n,r)=>{n.not={}},ID=(t,e,n,r)=>{},CD=(t,e,n,r)=>{},AD=(t,e,n,r)=>{const i=t._zod.def,o=D1(i.entries);o.every(s=>typeof s=="number")&&(n.type="number"),o.every(s=>typeof s=="string")&&(n.type="string"),n.enum=o},PD=(t,e,n,r)=>{const i=t._zod.def,o=[];for(const s of i.values)if(s===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(e.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(s))}else o.push(s);if(o.length!==0)if(o.length===1){const s=o[0];n.type=s===null?"null":typeof s,e.target==="draft-04"||e.target==="openapi-3.0"?n.enum=[s]:n.const=s}else o.every(s=>typeof s=="number")&&(n.type="number"),o.every(s=>typeof s=="string")&&(n.type="string"),o.every(s=>typeof s=="boolean")&&(n.type="boolean"),o.every(s=>s===null)&&(n.type="null"),n.enum=o},kD=(t,e,n,r)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},OD=(t,e,n,r)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},ND=(t,e,n,r)=>{const i=n,o=t._zod.def,{minimum:s,maximum:a}=t._zod.bag;typeof s=="number"&&(i.minItems=s),typeof a=="number"&&(i.maxItems=a),i.type="array",i.items=Cn(o.element,e,{...r,path:[...r.path,"items"]})},RD=(t,e,n,r)=>{var u;const i=n,o=t._zod.def;i.type="object",i.properties={};const s=o.shape;for(const c in s)i.properties[c]=Cn(s[c],e,{...r,path:[...r.path,"properties",c]});const a=new Set(Object.keys(s)),l=new Set([...a].filter(c=>{const d=o.shape[c]._zod;return e.io==="input"?d.optin===void 0:d.optout===void 0}));l.size>0&&(i.required=Array.from(l)),((u=o.catchall)==null?void 0:u._zod.def.type)==="never"?i.additionalProperties=!1:o.catchall?o.catchall&&(i.additionalProperties=Cn(o.catchall,e,{...r,path:[...r.path,"additionalProperties"]})):e.io==="output"&&(i.additionalProperties=!1)},$D=(t,e,n,r)=>{const i=t._zod.def,o=i.inclusive===!1,s=i.options.map((a,l)=>Cn(a,e,{...r,path:[...r.path,o?"oneOf":"anyOf",l]}));o?n.oneOf=s:n.anyOf=s},DD=(t,e,n,r)=>{const i=t._zod.def,o=Cn(i.left,e,{...r,path:[...r.path,"allOf",0]}),s=Cn(i.right,e,{...r,path:[...r.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,l=[...a(o)?o.allOf:[o],...a(s)?s.allOf:[s]];n.allOf=l},MD=(t,e,n,r)=>{const i=n,o=t._zod.def;i.type="object",(e.target==="draft-07"||e.target==="draft-2020-12")&&(i.propertyNames=Cn(o.keyType,e,{...r,path:[...r.path,"propertyNames"]})),i.additionalProperties=Cn(o.valueType,e,{...r,path:[...r.path,"additionalProperties"]})},LD=(t,e,n,r)=>{const i=t._zod.def,o=Cn(i.innerType,e,r),s=e.seen.get(t);e.target==="openapi-3.0"?(s.ref=i.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},VD=(t,e,n,r)=>{const i=t._zod.def;Cn(i.innerType,e,r);const o=e.seen.get(t);o.ref=i.innerType},FD=(t,e,n,r)=>{const i=t._zod.def;Cn(i.innerType,e,r);const o=e.seen.get(t);o.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},zD=(t,e,n,r)=>{const i=t._zod.def;Cn(i.innerType,e,r);const o=e.seen.get(t);o.ref=i.innerType,e.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},UD=(t,e,n,r)=>{const i=t._zod.def;Cn(i.innerType,e,r);const o=e.seen.get(t);o.ref=i.innerType;let s;try{s=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=s},BD=(t,e,n,r)=>{const i=t._zod.def,o=e.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;Cn(o,e,r);const s=e.seen.get(t);s.ref=o},jD=(t,e,n,r)=>{const i=t._zod.def;Cn(i.innerType,e,r);const o=e.seen.get(t);o.ref=i.innerType,n.readOnly=!0},HD=(t,e,n,r)=>{const i=t._zod.def;Cn(i.innerType,e,r);const o=e.seen.get(t);o.ref=i.innerType},GD=le("ZodISODateTime",(t,e)=>{MR.init(t,e),rn.init(t,e)});function WD(t){return G$(GD,t)}const KD=le("ZodISODate",(t,e)=>{LR.init(t,e),rn.init(t,e)});function ZD(t){return W$(KD,t)}const XD=le("ZodISOTime",(t,e)=>{VR.init(t,e),rn.init(t,e)});function YD(t){return K$(XD,t)}const JD=le("ZodISODuration",(t,e)=>{FR.init(t,e),rn.init(t,e)});function QD(t){return Z$(JD,t)}const Wr=le("ZodError",(t,e)=>{U1.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:n=>IN(t,n)},flatten:{value:n=>TN(t,n)},addIssue:{value:n=>{t.issues.push(n),t.message=JSON.stringify(t.issues,Gg,2)}},addIssues:{value:n=>{t.issues.push(...n),t.message=JSON.stringify(t.issues,Gg,2)}},isEmpty:{get(){return t.issues.length===0}}})},{Parent:Error}),qD=Xg(Wr),e3=Yg(Wr),t3=mf(Wr),n3=vf(Wr),r3=PN(Wr),i3=kN(Wr),o3=ON(Wr),s3=NN(Wr),a3=RN(Wr),l3=$N(Wr),u3=DN(Wr),c3=MN(Wr),Zt=le("ZodType",(t,e)=>(Ht.init(t,e),Object.assign(t["~standard"],{jsonSchema:{input:wf(t,"input"),output:wf(t,"output")}}),t.toJSONSchema=yD(t,{}),t.def=e,t.type=e.type,Object.defineProperty(t,"_def",{value:e}),t.check=(...n)=>t.clone(Vs(e,{checks:[...e.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]})),t.clone=(n,r)=>zo(t,n,r),t.brand=()=>t,t.register=(n,r)=>(n.add(t,r),t),t.parse=(n,r)=>qD(t,n,r,{callee:t.parse}),t.safeParse=(n,r)=>t3(t,n,r),t.parseAsync=async(n,r)=>e3(t,n,r,{callee:t.parseAsync}),t.safeParseAsync=async(n,r)=>n3(t,n,r),t.spa=t.safeParseAsync,t.encode=(n,r)=>r3(t,n,r),t.decode=(n,r)=>i3(t,n,r),t.encodeAsync=async(n,r)=>o3(t,n,r),t.decodeAsync=async(n,r)=>s3(t,n,r),t.safeEncode=(n,r)=>a3(t,n,r),t.safeDecode=(n,r)=>l3(t,n,r),t.safeEncodeAsync=async(n,r)=>u3(t,n,r),t.safeDecodeAsync=async(n,r)=>c3(t,n,r),t.refine=(n,r)=>t.check(oM(n,r)),t.superRefine=n=>t.check(sM(n)),t.overwrite=n=>t.check(rl(n)),t.optional=()=>Px(t),t.nullable=()=>kx(t),t.nullish=()=>Px(kx(t)),t.nonoptional=n=>Q3(t,n),t.array=()=>tm(t),t.or=n=>nm([t,n]),t.and=n=>B3(t,n),t.transform=n=>om(t,Cx(n)),t.default=n=>X3(t,n),t.prefault=n=>J3(t,n),t.catch=n=>eM(t,n),t.pipe=n=>om(t,n),t.readonly=()=>rM(t),t.describe=n=>{const r=t.clone();return Lu.add(r,{description:n}),r},Object.defineProperty(t,"description",{get(){var n;return(n=Lu.get(t))==null?void 0:n.description},configurable:!0}),t.meta=(...n)=>{if(n.length===0)return Lu.get(t);const r=t.clone();return Lu.add(r,n[0]),r},t.isOptional=()=>t.safeParse(void 0).success,t.isNullable=()=>t.safeParse(null).success,t)),bx=le("_ZodString",(t,e)=>{Jg.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(r,i,o)=>_D(t,r,i);const n=t._zod.bag;t.format=n.format??null,t.minLength=n.minimum??null,t.maxLength=n.maximum??null,t.regex=(...r)=>t.check(rD(...r)),t.includes=(...r)=>t.check(sD(...r)),t.startsWith=(...r)=>t.check(aD(...r)),t.endsWith=(...r)=>t.check(lD(...r)),t.min=(...r)=>t.check(xf(...r)),t.max=(...r)=>t.check(px(...r)),t.length=(...r)=>t.check(gx(...r)),t.nonempty=(...r)=>t.check(xf(1,...r)),t.lowercase=r=>t.check(iD(r)),t.uppercase=r=>t.check(oD(r)),t.trim=()=>t.check(cD()),t.normalize=(...r)=>t.check(uD(...r)),t.toLowerCase=()=>t.check(dD()),t.toUpperCase=()=>t.check(fD()),t.slugify=()=>t.check(hD())}),d3=le("ZodString",(t,e)=>{Jg.init(t,e),bx.init(t,e),t.email=n=>t.check(E$(f3,n)),t.url=n=>t.check(P$(h3,n)),t.jwt=n=>t.check(H$(A3,n)),t.emoji=n=>t.check(k$(p3,n)),t.guid=n=>t.check(cx(_x,n)),t.uuid=n=>t.check(T$(Sf,n)),t.uuidv4=n=>t.check(I$(Sf,n)),t.uuidv6=n=>t.check(C$(Sf,n)),t.uuidv7=n=>t.check(A$(Sf,n)),t.nanoid=n=>t.check(O$(g3,n)),t.guid=n=>t.check(cx(_x,n)),t.cuid=n=>t.check(N$(m3,n)),t.cuid2=n=>t.check(R$(v3,n)),t.ulid=n=>t.check($$(y3,n)),t.base64=n=>t.check(U$(T3,n)),t.base64url=n=>t.check(B$(I3,n)),t.xid=n=>t.check(D$(b3,n)),t.ksuid=n=>t.check(M$(_3,n)),t.ipv4=n=>t.check(L$(x3,n)),t.ipv6=n=>t.check(V$(w3,n)),t.cidrv4=n=>t.check(F$(S3,n)),t.cidrv6=n=>t.check(z$(E3,n)),t.e164=n=>t.check(j$(C3,n)),t.datetime=n=>t.check(WD(n)),t.date=n=>t.check(ZD(n)),t.time=n=>t.check(YD(n)),t.duration=n=>t.check(QD(n))});function ve(t){return S$(d3,t)}const rn=le("ZodStringFormat",(t,e)=>{Jt.init(t,e),bx.init(t,e)}),f3=le("ZodEmail",(t,e)=>{CR.init(t,e),rn.init(t,e)}),_x=le("ZodGUID",(t,e)=>{TR.init(t,e),rn.init(t,e)}),Sf=le("ZodUUID",(t,e)=>{IR.init(t,e),rn.init(t,e)}),h3=le("ZodURL",(t,e)=>{AR.init(t,e),rn.init(t,e)}),p3=le("ZodEmoji",(t,e)=>{PR.init(t,e),rn.init(t,e)}),g3=le("ZodNanoID",(t,e)=>{kR.init(t,e),rn.init(t,e)}),m3=le("ZodCUID",(t,e)=>{OR.init(t,e),rn.init(t,e)}),v3=le("ZodCUID2",(t,e)=>{NR.init(t,e),rn.init(t,e)}),y3=le("ZodULID",(t,e)=>{RR.init(t,e),rn.init(t,e)}),b3=le("ZodXID",(t,e)=>{$R.init(t,e),rn.init(t,e)}),_3=le("ZodKSUID",(t,e)=>{DR.init(t,e),rn.init(t,e)}),x3=le("ZodIPv4",(t,e)=>{zR.init(t,e),rn.init(t,e)}),w3=le("ZodIPv6",(t,e)=>{UR.init(t,e),rn.init(t,e)}),S3=le("ZodCIDRv4",(t,e)=>{BR.init(t,e),rn.init(t,e)}),E3=le("ZodCIDRv6",(t,e)=>{jR.init(t,e),rn.init(t,e)}),T3=le("ZodBase64",(t,e)=>{HR.init(t,e),rn.init(t,e)}),I3=le("ZodBase64URL",(t,e)=>{WR.init(t,e),rn.init(t,e)}),C3=le("ZodE164",(t,e)=>{KR.init(t,e),rn.init(t,e)}),A3=le("ZodJWT",(t,e)=>{XR.init(t,e),rn.init(t,e)}),xx=le("ZodNumber",(t,e)=>{J1.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(r,i,o)=>xD(t,r,i),t.gt=(r,i)=>t.check(fx(r,i)),t.gte=(r,i)=>t.check(em(r,i)),t.min=(r,i)=>t.check(em(r,i)),t.lt=(r,i)=>t.check(dx(r,i)),t.lte=(r,i)=>t.check(qg(r,i)),t.max=(r,i)=>t.check(qg(r,i)),t.int=r=>t.check(wx(r)),t.safe=r=>t.check(wx(r)),t.positive=r=>t.check(fx(0,r)),t.nonnegative=r=>t.check(em(0,r)),t.negative=r=>t.check(dx(0,r)),t.nonpositive=r=>t.check(qg(0,r)),t.multipleOf=(r,i)=>t.check(hx(r,i)),t.step=(r,i)=>t.check(hx(r,i)),t.finite=()=>t;const n=t._zod.bag;t.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),t.isFinite=!0,t.format=n.format??null});function Kr(t){return X$(xx,t)}const P3=le("ZodNumberFormat",(t,e)=>{YR.init(t,e),xx.init(t,e)});function wx(t){return Y$(P3,t)}const k3=le("ZodBoolean",(t,e)=>{JR.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>wD(t,n,r)});function Pi(t){return J$(k3,t)}const O3=le("ZodUndefined",(t,e)=>{QR.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>ED(t,n)});function Sx(t){return Q$(O3,t)}const N3=le("ZodNull",(t,e)=>{qR.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>SD(t,n,r)});function Ex(t){return q$(N3,t)}const R3=le("ZodAny",(t,e)=>{e$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>ID()});function $3(){return eD(R3)}const D3=le("ZodUnknown",(t,e)=>{t$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>CD()});function Tx(){return tD(D3)}const M3=le("ZodNever",(t,e)=>{n$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>TD(t,n,r)});function L3(t){return nD(M3,t)}const V3=le("ZodArray",(t,e)=>{r$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>ND(t,n,r,i),t.element=e.element,t.min=(n,r)=>t.check(xf(n,r)),t.nonempty=n=>t.check(xf(1,n)),t.max=(n,r)=>t.check(px(n,r)),t.length=(n,r)=>t.check(gx(n,r)),t.unwrap=()=>t.element});function tm(t,e){return pD(V3,t,e)}const F3=le("ZodObject",(t,e)=>{o$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>RD(t,n,r,i),Lt(t,"shape",()=>e.shape),t.keyof=()=>Ln(Object.keys(t._zod.def.shape)),t.catchall=n=>t.clone({...t._zod.def,catchall:n}),t.passthrough=()=>t.clone({...t._zod.def,catchall:Tx()}),t.loose=()=>t.clone({...t._zod.def,catchall:Tx()}),t.strict=()=>t.clone({...t._zod.def,catchall:L3()}),t.strip=()=>t.clone({...t._zod.def,catchall:void 0}),t.extend=n=>_N(t,n),t.safeExtend=n=>xN(t,n),t.merge=n=>wN(t,n),t.pick=n=>yN(t,n),t.omit=n=>bN(t,n),t.partial=(...n)=>SN(Ax,t,n[0]),t.required=(...n)=>EN(Ox,t,n[0])});function Rt(t,e){const n={type:"object",shape:t??{},...Ge(e)};return new F3(n)}const Ix=le("ZodUnion",(t,e)=>{nx.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>$D(t,n,r,i),t.options=e.options});function nm(t,e){return new Ix({type:"union",options:t,...Ge(e)})}const z3=le("ZodDiscriminatedUnion",(t,e)=>{Ix.init(t,e),s$.init(t,e)});function rm(t,e,n){return new z3({type:"union",options:e,discriminator:t,...Ge(n)})}const U3=le("ZodIntersection",(t,e)=>{a$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>DD(t,n,r,i)});function B3(t,e){return new U3({type:"intersection",left:t,right:e})}const j3=le("ZodRecord",(t,e)=>{l$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>MD(t,n,r,i),t.keyType=e.keyType,t.valueType=e.valueType});function H3(t,e,n){return new j3({type:"record",keyType:t,valueType:e,...Ge(n)})}const im=le("ZodEnum",(t,e)=>{u$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(r,i,o)=>AD(t,r,i),t.enum=e.entries,t.options=Object.values(e.entries);const n=new Set(Object.keys(e.entries));t.extract=(r,i)=>{const o={};for(const s of r)if(n.has(s))o[s]=e.entries[s];else throw new Error(`Key ${s} not found in enum`);return new im({...e,checks:[],...Ge(i),entries:o})},t.exclude=(r,i)=>{const o={...e.entries};for(const s of r)if(n.has(s))delete o[s];else throw new Error(`Key ${s} not found in enum`);return new im({...e,checks:[],...Ge(i),entries:o})}});function Ln(t,e){const n=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new im({type:"enum",entries:n,...Ge(e)})}const G3=le("ZodLiteral",(t,e)=>{c$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>PD(t,n,r),t.values=new Set(e.values),Object.defineProperty(t,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function Jn(t,e){return new G3({type:"literal",values:Array.isArray(t)?t:[t],...Ge(e)})}const W3=le("ZodTransform",(t,e)=>{d$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>OD(t,n),t._zod.parse=(n,r)=>{if(r.direction==="backward")throw new R1(t.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(Mu(o,n.value,e));else{const s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=t),n.issues.push(Mu(s))}};const i=e.transform(n.value,n);return i instanceof Promise?i.then(o=>(n.value=o,n)):(n.value=i,n)}});function Cx(t){return new W3({type:"transform",transform:t})}const Ax=le("ZodOptional",(t,e)=>{f$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>HD(t,n,r,i),t.unwrap=()=>t._zod.def.innerType});function Px(t){return new Ax({type:"optional",innerType:t})}const K3=le("ZodNullable",(t,e)=>{h$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>LD(t,n,r,i),t.unwrap=()=>t._zod.def.innerType});function kx(t){return new K3({type:"nullable",innerType:t})}const Z3=le("ZodDefault",(t,e)=>{p$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>FD(t,n,r,i),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function X3(t,e){return new Z3({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():F1(e)}})}const Y3=le("ZodPrefault",(t,e)=>{g$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>zD(t,n,r,i),t.unwrap=()=>t._zod.def.innerType});function J3(t,e){return new Y3({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():F1(e)}})}const Ox=le("ZodNonOptional",(t,e)=>{m$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>VD(t,n,r,i),t.unwrap=()=>t._zod.def.innerType});function Q3(t,e){return new Ox({type:"nonoptional",innerType:t,...Ge(e)})}const q3=le("ZodCatch",(t,e)=>{v$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>UD(t,n,r,i),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function eM(t,e){return new q3({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}const tM=le("ZodPipe",(t,e)=>{y$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>BD(t,n,r,i),t.in=e.in,t.out=e.out});function om(t,e){return new tM({type:"pipe",in:t,out:e})}const nM=le("ZodReadonly",(t,e)=>{b$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>jD(t,n,r,i),t.unwrap=()=>t._zod.def.innerType});function rM(t){return new nM({type:"readonly",innerType:t})}const iM=le("ZodCustom",(t,e)=>{_$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>kD(t,n)});function oM(t,e={}){return gD(iM,t,e)}function sM(t){return mD(t)}function aM(t,e){return om(Cx(t),e)}const Ef=t=>{if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(r=>Ef(r));const e={t:"title",s:"subtitle",d:"description",desc:"description",bg:"background",img:"image",fs:"features",tl:"timeline",st:"steps"},n={};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const i=e[r]||r,o=t[r];n[i]=Ef(o)}return n},ki=t=>nm([t,tm(t),Ex(),Sx()]).transform(e=>e==null?[]:Array.isArray(e)?e:[e]),At=nm([ve(),Kr(),Ex(),Sx()]).transform(t=>t==null?"":String(t)),sm=ve().describe("Icon name (e.g. 'star', 'users', 'arrow-right'). Use standard Lucide/FontAwesome names."),il=Rt({id:ve().optional().describe("Unique ID for the slide. Useful for navigation."),sizing:Ln(["viewport","container"]).optional().describe("How the slide fits the screen. Default: 'viewport'."),meta:H3(ve(),$3()).optional().describe("Arbitrary metadata for custom behavior.")}),lM=il.extend({type:Jn("statement").describe("Use for high-impact titles, covers, or quotes."),title:At.describe("Main headline. Keep it punchy (3-6 words)."),subtitle:At.optional().describe("Supporting text or attribution."),tag:At.optional().describe("Small eyebrow tag above the title.")}),uM=Rt({title:At.describe("Feature name."),description:At.describe("Short benefit description."),icon:sm.optional().describe("Visual icon for the feature.")}),cM=il.extend({type:Jn("features").describe("Use for lists of benefits, stats, or grid items."),title:At.describe("Section header."),description:At.optional().describe("Contextual description."),features:ki(uM).describe("Array of feature cards.")}),Nx=Rt({date:At.describe("Time marker (Year, Date, or 'Now')."),title:At.describe("Event title."),description:At.describe("Event details (1-2 sentences)."),icon:sm.optional().describe("Optional marker icon.")}),dM=il.extend({type:Jn("timeline").describe("Use for history, roadmaps, or chronological steps."),title:At.describe("Timeline header."),subtitle:At.optional(),timeline:ki(Nx).describe("Ordered events.")}),Rx=Rt({step:At.describe("Step number/label (e.g., '01', 'A')."),title:At.describe("Action title."),description:At.optional().describe("Action details."),icon:sm.optional()}),fM=il.extend({type:Jn("steps").describe("Use for tutorials, 'how-to' guides, or process flows."),title:At.describe("Process header."),subtitle:At.optional(),steps:ki(Rx).describe("Sequential steps.")}),hM=il.extend({type:Jn("half").describe("Use when you have a strong visual + explanations."),imageSide:Ln(["left","right"]).default("left").describe("Which side the image goes on."),image:At.describe("URL to the image."),title:At.describe("Headline."),tag:At.optional(),paragraphs:ki(ve()).describe("Array of text blocks/paragraphs."),cta:At.optional().describe("Call to Action label (button).")}),Vu=Ln(["none","xs","sm","md","lg","xl","2xl"]).describe("Spacing size token."),co=Ln(["auto","quarter","third","half","two-thirds","three-quarters","full"]).describe("Element size in container."),pM=Ln(["top","center","bottom"]).describe("Vertical alignment."),gM=Ln(["left","center","right"]).describe("Horizontal alignment."),$x=Ln(["left","center","right"]).describe("Text alignment."),Dx=Rt({type:Jn("title").describe("Large heading text."),text:At.describe("The heading text."),size:Ln(["lg","xl","2xl","3xl"]).optional().describe("Heading size. Default: 'xl'."),align:$x.optional().describe("Text alignment. Default: 'left'.")}),Mx=Rt({type:Jn("text").describe("Body paragraph text."),text:At.describe("The paragraph text."),align:$x.optional().describe("Text alignment. Default: 'left'."),muted:Pi().optional().describe("Muted/subtle appearance. Default: false.")}),Lx=Rt({type:Jn("bullets").describe("Unordered bullet list."),items:ki(ve()).describe("List items.")}),Vx=Rt({type:Jn("ordered").describe("Numbered list."),items:ki(ve()).describe("List items.")}),mM=Rt({type:Jn("image").describe("Visual media element."),src:At.describe("Image URL."),alt:At.optional().describe("Alt text for accessibility."),fill:Pi().optional().describe("Fill container edge-to-edge. Default: true."),fit:Ln(["cover","contain"]).optional().describe("Object-fit when fill. Default: 'cover'."),rounded:Ln(["none","sm","md","lg","xl","full"]).optional().describe("Border radius.")}),Fx=Rt({type:Jn("button").describe("Call-to-action button."),label:At.describe("Button label text."),action:At.optional().describe("Action identifier emitted on click."),variant:Ln(["primary","secondary","outline","ghost"]).optional().describe("Visual variant. Default: 'primary'."),fullWidth:Pi().optional().describe("Full width button. Default: false.")}),zx=Rt({type:Jn("timeline").describe("Embedded timeline with events."),items:ki(Nx).describe("Timeline events."),compact:Pi().optional().describe("Compact display mode. Default: false.")}),Ux=Rt({type:Jn("stepper").describe("Embedded step-by-step process."),items:ki(Rx).describe("Step items."),compact:Pi().optional().describe("Compact display mode. Default: false.")}),vM=Rt({type:Jn("spacer").describe("Adds visual spacing."),size:Vu.optional().describe("Size of the space. Default: 'md'.")}),yM=rm("type",[Dx,Mx,Lx,Vx,Fx,zx,Ux,vM]),bM=Rt({type:Jn("content").describe("Groups child elements vertically with alignment control."),elements:ki(yM).describe("Child elements."),valign:pM.optional().describe("Vertical alignment. Default: 'center'."),halign:gM.optional().describe("Horizontal alignment. Default: 'left'."),gap:Vu.optional().describe("Gap between children. Default: 'md'."),padding:Vu.optional().describe("Internal padding. Default: 'lg'."),size:co.optional().describe("Size in parent flex container.")}),_M=rm("type",[mM.extend({size:co.optional()}),bM,Dx.extend({size:co.optional()}),Mx.extend({size:co.optional()}),Lx.extend({size:co.optional()}),Vx.extend({size:co.optional()}),Fx.extend({size:co.optional()}),zx.extend({size:co.optional()}),Ux.extend({size:co.optional()})]),xM=il.extend({type:Jn("flex").describe("Flow-based layout. Elements flow in order with semantic sizing."),direction:Ln(["horizontal","vertical"]).optional().describe("Main flow direction. Default: 'horizontal'."),gap:Vu.optional().describe("Gap between elements. Default: 'none'."),padding:Vu.optional().describe("Container padding. Default: 'none'."),elements:ki(_M).describe("Flex elements in flow order.")}),wM=rm("type",[lM,cM,dM,fM,hM,xM]),SM=Rt({primary:ve().optional().describe("Main brand/accent color. Used for highlights, buttons, links. Example: '#3b82f6'"),secondary:ve().optional().describe("Secondary brand color. Used for complementary elements. Example: '#8b5cf6'"),accent:ve().optional().describe("Tertiary/accent color. Used for special highlights. Example: '#06b6d4'"),background:ve().optional().describe("Main background color. Example: '#030303'"),surface:ve().optional().describe("Elevated surface color (cards, panels, modals). Example: '#0a0a0a'"),text:ve().optional().describe("Primary text color. Example: '#ffffff'"),textSecondary:ve().optional().describe("Secondary/subdued text color. Example: '#e5e7eb'"),muted:ve().optional().describe("Muted/disabled text color. Example: '#9ca3af'"),success:ve().optional().describe("Success state color (green tones). Example: '#10b981'"),warning:ve().optional().describe("Warning state color (yellow/amber). Example: '#f59e0b'"),danger:ve().optional().describe("Danger/error state color (red). Example: '#ef4444'"),info:ve().optional().describe("Informational state color (blue). Example: '#3b82f6'"),border:ve().optional().describe("Border color for containers, cards. Example: 'rgba(255,255,255,0.1)'"),borderSubtle:ve().optional().describe("Subtle border for dividers. Example: 'rgba(255,255,255,0.05)'"),shadow:ve().optional().describe("Shadow color. Example: '#000000'"),overlay:ve().optional().describe("Overlay color for modals. Example: 'rgba(0,0,0,0.5)'"),highlight:ve().optional().describe("Highlight/selection color."),buttonPrimary:ve().optional().describe("Primary button background."),buttonPrimaryText:ve().optional().describe("Primary button text color."),buttonSecondary:ve().optional().describe("Secondary button background."),buttonSecondaryText:ve().optional().describe("Secondary button text color."),link:ve().optional().describe("Link color."),linkHover:ve().optional().describe("Link hover color."),gradientFrom:ve().optional().describe("Gradient start color. Example: '#3b82f6'"),gradientVia:ve().optional().describe("Gradient middle color (optional)."),gradientTo:ve().optional().describe("Gradient end color. Example: '#8b5cf6'")}).describe("Color palette configuration with 25+ customizable colors."),EM=Rt({fontFamily:Rt({heading:ve().optional().describe("Font for headings. Example: 'Inter, sans-serif'"),body:ve().optional().describe("Font for body text. Example: 'Inter, sans-serif'"),mono:ve().optional().describe("Font for code. Example: 'monospace'")}).optional().describe("Font family definitions."),fontSize:Rt({xs:ve().optional().describe("Extra small: 0.75rem"),sm:ve().optional().describe("Small: 0.875rem"),base:ve().optional().describe("Base: 1rem"),lg:ve().optional().describe("Large: 1.125rem"),xl:ve().optional().describe("Extra large: 1.25rem"),"2xl":ve().optional().describe("2XL: 1.5rem"),"3xl":ve().optional().describe("3XL: 1.875rem"),"4xl":ve().optional().describe("4XL: 2.25rem"),"5xl":ve().optional().describe("5XL: 3rem"),"6xl":ve().optional().describe("6XL: 3.75rem"),"7xl":ve().optional().describe("7XL: 4.5rem")}).optional().describe("Font size scale."),fontWeight:Rt({light:Kr().optional().describe("Light: 300"),normal:Kr().optional().describe("Normal: 400"),medium:Kr().optional().describe("Medium: 500"),semibold:Kr().optional().describe("Semibold: 600"),bold:Kr().optional().describe("Bold: 700"),extrabold:Kr().optional().describe("Extra bold: 800")}).optional().describe("Font weight scale."),lineHeight:Rt({tight:ve().optional().describe("Tight: 1.1"),snug:ve().optional().describe("Snug: 1.25"),normal:ve().optional().describe("Normal: 1.5"),relaxed:ve().optional().describe("Relaxed: 1.625"),loose:ve().optional().describe("Loose: 2")}).optional().describe("Line height scale."),letterSpacing:Rt({tighter:ve().optional().describe("-0.05em"),tight:ve().optional().describe("-0.025em"),normal:ve().optional().describe("0"),wide:ve().optional().describe("0.025em"),wider:ve().optional().describe("0.05em"),widest:ve().optional().describe("0.1em")}).optional().describe("Letter spacing scale.")}).describe("Typography configuration: fonts, sizes, weights, line-heights."),TM=Rt({none:ve().optional().describe("0"),xs:ve().optional().describe("0.25rem / 4px"),sm:ve().optional().describe("0.5rem / 8px"),md:ve().optional().describe("1rem / 16px"),lg:ve().optional().describe("1.5rem / 24px"),xl:ve().optional().describe("2rem / 32px"),"2xl":ve().optional().describe("3rem / 48px"),"3xl":ve().optional().describe("4rem / 64px"),"4xl":ve().optional().describe("6rem / 96px")}).describe("Spacing scale for gaps, padding, margins."),IM=Rt({none:ve().optional().describe("No rounding: 0"),sm:ve().optional().describe("Small: 0.25rem"),md:ve().optional().describe("Medium: 0.5rem"),lg:ve().optional().describe("Large: 0.75rem"),xl:ve().optional().describe("Extra large: 1rem"),"2xl":ve().optional().describe("2XL: 1.5rem"),"3xl":ve().optional().describe("3XL: 2rem"),full:ve().optional().describe("Full circle: 9999px")}).describe("Border radius scale for rounded corners."),CM=Rt({useGradients:Pi().optional().describe("Enable/disable gradient effects globally."),gradientDirection:Ln(["to-t","to-b","to-l","to-r","to-tl","to-tr","to-bl","to-br"]).optional().describe("Gradient direction."),gradientFrom:ve().optional().describe("Override gradient start color."),gradientVia:ve().optional().describe("Override gradient middle color."),gradientTo:ve().optional().describe("Override gradient end color."),useShadows:Pi().optional().describe("Enable/disable shadow effects."),shadowIntensity:Ln(["none","sm","md","lg","xl","2xl"]).optional().describe("Shadow intensity level."),shadowColor:ve().optional().describe("Shadow color."),useGlass:Pi().optional().describe("Enable/disable glassmorphism effect."),glassOpacity:Kr().optional().describe("Glass panel opacity (0-1)."),glassBlur:ve().optional().describe("Glass blur amount. Example: '20px'"),glassBorderOpacity:Kr().optional().describe("Glass border opacity (0-1)."),useOrb:Pi().optional().describe("Enable/disable ambient orb/glow effect."),orbOpacity:Kr().optional().describe("Orb opacity (0-1)."),orbBlur:ve().optional().describe("Orb blur amount. Example: '120px'"),orbSize:ve().optional().describe("Orb size. Example: '60vw'"),animationsEnabled:Pi().optional().describe("Enable/disable animations globally."),transitionDuration:ve().optional().describe("Default transition duration. Example: '0.3s'"),transitionEasing:ve().optional().describe("Default transition easing. Example: 'ease-out'"),hoverScale:Kr().optional().describe("Hover scale factor. Example: 1.05")}).describe("Visual effects: gradients, shadows, glass, orb, animations."),AM=Rt({buttonRadius:ve().optional().describe("Button border radius."),buttonPadding:ve().optional().describe("Button padding. Example: '0.75rem 1.5rem'"),buttonFontWeight:Kr().optional().describe("Button font weight."),buttonTextTransform:Ln(["none","uppercase","capitalize"]).optional().describe("Button text transform."),cardRadius:ve().optional().describe("Card border radius."),cardPadding:ve().optional().describe("Card padding."),cardBorderWidth:ve().optional().describe("Card border width. Example: '1px'"),cardBackground:ve().optional().describe("Card background override."),timelineNodeSize:ve().optional().describe("Timeline node size. Example: '1rem'"),timelineLineWidth:ve().optional().describe("Timeline line width. Example: '2px'"),timelineNodeColor:ve().optional().describe("Timeline node color."),timelineLineColor:ve().optional().describe("Timeline line color."),stepBadgeSize:ve().optional().describe("Step badge size."),stepFontSize:ve().optional().describe("Step font size."),progressHeight:ve().optional().describe("Progress bar height."),progressRadius:ve().optional().describe("Progress bar border radius."),progressBackground:ve().optional().describe("Progress bar background."),progressFill:ve().optional().describe("Progress bar fill color."),tagPadding:ve().optional().describe("Tag padding."),tagRadius:ve().optional().describe("Tag border radius."),tagFontSize:ve().optional().describe("Tag font size."),inputRadius:ve().optional().describe("Input border radius."),inputPadding:ve().optional().describe("Input padding."),inputBorder:ve().optional().describe("Input border color."),inputFocusBorder:ve().optional().describe("Input focus border color.")}).describe("Component-specific theming: buttons, cards, timeline, steps, etc."),am=Rt({colors:SM.optional().describe("Color palette with 25+ customizable colors."),typography:EM.optional().describe("Typography: fonts, sizes, weights, line-heights."),spacing:TM.optional().describe("Spacing scale for consistent gaps and padding."),borderRadius:IM.optional().describe("Border radius tokens for rounded corners."),effects:CM.optional().describe("Visual effects: gradients, shadows, glass, orb."),components:AM.optional().describe("Component-specific styling tokens.")}).describe("Complete theme configuration for full visual customization."),PM=Ln(["default","ocean","midnight","forest","cyber","latte","sunset","monochrome"]).describe("Built-in theme preset name."),kM=Rt({title:At.describe("Title of the entire presentation."),author:At.optional(),date:At.optional(),theme:PM.optional().describe("Theme preset to use. Options: default, ocean, midnight, forest, cyber, latte, sunset, monochrome."),themeConfig:am.optional().describe("Custom theme configuration to override preset values.")}).passthrough(),OM=Rt({meta:kM.describe("Global deck settings including title and theme."),slides:tm(aM(Ef,wM)).describe("Ordered array of slide definitions.")});function Bx(){try{const{zodToJsonSchema:t}=require("zod-to-json-schema");return t(OM,"LuminaDeck")}catch{return console.warn("zod-to-json-schema not installed. Install it to export raw JSON Schema."),{}}}function jx(){try{const{zodToJsonSchema:t}=require("zod-to-json-schema");return t(am,"LuminaThemeConfig")}catch{return console.warn("zod-to-json-schema not installed. Install it to export raw JSON Schema."),{}}}function Fs(t,e){if(!t||!e)return;const n=e.split(".");let r=t;for(const i of n){if(r==null)return;r=r[i]}return r}function ol(t,e,n){if(!t)return t;if(!e)return n;const r=e.split("."),i=r[0],o=r.slice(1).join(".");if(Array.isArray(t)){const a=parseInt(i,10);if(isNaN(a))return t;const l=[...t];return r.length===1?l[a]=n:l[a]=ol(t[a],o,n),l}const s={...t};return r.length===1?s[i]=n:s[i]=ol(t[i]||{},o,n),s}function NM(t,e,n,r){const i=Fs(t,e);if(!Array.isArray(i))return console.warn(`[Lumina Deep] Insert failed: Target at '${e}' is not an array.`),t;const o=[...i];return o.splice(n,0,r),ol(t,e,o)}function RM(t,e,n){const r=Fs(t,e);if(!Array.isArray(r))return console.warn(`[Lumina Deep] Remove failed: Target at '${e}' is not an array.`),t;const i=[...r];return i.splice(n,1),ol(t,e,i)}function $M(t,e,n,r){const i=Fs(t,e);if(!Array.isArray(i))return t;const o=[...i],[s]=o.splice(n,1);return o.splice(r,0,s),ol(t,e,o)}function Tf(t,...e){const n=t??0;return e.length===0?`s${n}`:`s${n}-${e.map(String).join("-")}`}function DM(t){return t.join(".")}function zs(t,e){if(!(!t||!e.length))return Fs(t,DM(e))}function Hx(t){return Array.isArray(t)?t:typeof t!="string"?[]:t.split(".").map(e=>/^\d+$/.test(e)?parseInt(e,10):e)}function Gt(t,e,n){var o;const r=t;if(n.length===0||n.length===1&&n[0]==="slide")return(r==null?void 0:r.id)||Tf(e,"slide");const i=zs(t,n);return i!=null&&typeof i=="object"&&typeof i.id=="string"?i.id:n.length===1&&typeof n[0]=="string"&&((o=r==null?void 0:r.ids)!=null&&o[n[0]])?r.ids[n[0]]:Tf(e,...n)}const Gx={statement:()=>[["tag"],["title"],["subtitle"]],features:t=>{const e=zs(t,["features"]),n=Array.isArray(e)?e:[];return[["header"],...n.map((r,i)=>["features",i])]},half:()=>[["media"],["tag"],["title"],["paragraphs"],["cta"]],timeline:t=>{const e=zs(t,["timeline"]),n=Array.isArray(e)?e:[];return[["title"],["subtitle"],...n.map((r,i)=>["timeline",i])]},steps:t=>{const e=zs(t,["steps"]),n=Array.isArray(e)?e:[];return[["header"],...n.map((r,i)=>["steps",i])]},flex:t=>{const e=[],n=zs(t,["elements"]);return(Array.isArray(n)?n:[]).forEach((i,o)=>{e.push(["elements",o]);const s=i&&typeof i=="object"?i:null;(s==null?void 0:s.type)==="content"&&Array.isArray(s.elements)&&s.elements.forEach((a,l)=>e.push(["elements",o,"elements",l]))}),e},chart:()=>[["title"],["subtitle"],["chart"]],diagram:t=>{const e=[],n=zs(t,["nodes"]),r=zs(t,["edges"]);return(Array.isArray(n)?n:[]).forEach((i,o)=>e.push(["nodes",o])),(Array.isArray(r)?r:[]).forEach((i,o)=>e.push(["edges",o])),e},custom:()=>[],video:()=>[["video"],["title"]]};function MM(t,e){Gx[t]=e}function Wx(t){const e=(t==null?void 0:t.type)||"unknown",n=Gx[e]||(()=>[]);return[["slide"],...n(t)]}function lm(t,e){return Wx(t).map(n=>Gt(t,e,n))}const vn=Symbol("LuminaStore"),LM={loop:!1,navigation:!0,keyboard:!0,touch:!0,debug:!1,theme:"default",ui:{visible:!0,showProgressBar:!0,showSlideCount:!0,showControls:!0},keys:{next:["ArrowRight"," ","Enter"],prev:["ArrowLeft","Backspace"]},animation:{enabled:!0,type:"cascade",durationIn:1,durationOut:.5,stagger:.1,ease:"power3.out"}};function sl(t){if(typeof t=="string")return dN(t);if(Array.isArray(t))return t.map(sl);if(t&&typeof t=="object"){const e={};for(const n in t)e[n]=sl(t[n]);return e}return t}function Kx(t,e){if(typeof t!="object"||t===null||typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map(sl);const n={...t};for(const r in e)e[r]===Object(e[r])?r in t?n[r]=Kx(t[r],e[r]):Object.assign(n,{[r]:sl(e[r])}):Object.assign(n,{[r]:sl(e[r])});return n}function VM(t={}){const e=Ra({deck:null,currentIndex:0,options:{...LM,...t},isReady:!1,actionHistory:[],elementState:{}}),n=()=>!e.deck||e.deck.slides.length===0?null:e.deck.slides[e.currentIndex]||null,r=()=>e.deck?e.options.loop?!0:e.currentIndex<e.deck.slides.length-1:!1,i=()=>e.deck?e.options.loop?!0:e.currentIndex>0:!1,o=()=>!e.deck||e.deck.slides.length<=1?0:e.currentIndex/(e.deck.slides.length-1);function s(v){e.options={...e.options,...v},v.theme&&(v.theme,e.options.theme=v.theme),v.ui&&(e.options.ui={...e.options.ui,...v.ui}),v.keys&&(e.options.keys={...e.options.keys,...v.keys}),v.animation&&(e.options.animation={...e.options.animation,...v.animation}),v.elementControl&&(e.options.elementControl={...e.options.elementControl||{},...v.elementControl})}function a(v){if(!v||typeof v!="object")return v;if(Array.isArray(v))return v.map(a);const y={...v};if(y.type==="flex"&&Array.isArray(y.elements))y.elements=y.elements.map(k=>({dragKey:k.dragKey||Date.now()+Math.random(),...a(k)}));else if(y.type==="content"&&Array.isArray(y.elements))y.elements=y.elements.map(k=>({dragKey:k.dragKey||Date.now()+Math.random()+1,...a(k)}));else for(const k in y)y[k]=a(y[k]);return y}function l(v){var x,N,P,b,S;if(!v||!Array.isArray(v.slides)){console.error("[LuminaStore] Invalid deck format");return}const y=Ef(v),k=a(y),$=(x=k.meta)==null?void 0:x.initialElementState,O=$&&typeof $=="object"&&!Array.isArray($)?$:{};if(e.elementState=Object.fromEntries(Object.entries(O).map(([I,V])=>[I,{...V&&typeof V=="object"?V:{}}])),e.deck=sl(k),e.currentIndex=0,e.isReady=!0,e.actionHistory=[],((N=e.options.elementControl)==null?void 0:N.defaultVisible)===!1||((b=(P=k.meta)==null?void 0:P.elementControl)==null?void 0:b.defaultVisible)===!1){const I=new Set(Object.keys(O));(((S=e.deck)==null?void 0:S.slides)??[]).forEach((V,M)=>{lm(V,M).forEach(H=>{if(!I.has(H)){const G=e.elementState[H]||{};e.elementState[H]={...G,visible:!1}}})})}}function u(v){if(!e.deck)return;const y=Kx(e.deck,v);e.deck=a(y)}function c(v){e.actionHistory.push(v),e.actionHistory.length>50&&e.actionHistory.shift()}function d(){var k;if(!r())return;const v=((k=e.deck)==null?void 0:k.slides.length)||0;let y=e.currentIndex;e.options.loop?y=(e.currentIndex+1)%v:y++,y!==e.currentIndex&&(e.currentIndex=y)}function h(){var k;if(!i())return;const v=((k=e.deck)==null?void 0:k.slides.length)||0;let y=e.currentIndex;e.options.loop?y=(e.currentIndex-1+v)%v:y--,y!==e.currentIndex&&(e.currentIndex=y)}function p(v){e.deck&&v>=0&&v<e.deck.slides.length&&e.currentIndex!==v&&(e.currentIndex=v)}function g(v,y){if(!e.deck)return;const k=ol(e.deck,v,y);e.deck=a(k)}function m(v,y,k){if(!e.deck)return;const $=Fs(e.deck,v),O=k!==void 0?k:Array.isArray($)?$.length:0,A=a(y);e.deck=NM(e.deck,v,O,A)}function _(v,y){e.deck&&(e.deck=RM(e.deck,v,y))}function E(v,y,k){e.deck&&(e.deck=$M(e.deck,v,y,k))}function w(v,y){const k=e.elementState[v]||{},$={...k};y.visible!==void 0&&($.visible=y.visible),y.opacity!==void 0&&($.opacity=y.opacity),y.transform!==void 0&&($.transform=y.transform),y.class!==void 0&&($.class=y.class),y.style!==void 0&&($.style={...k.style||{},...y.style}),e.elementState[v]=$}return{state:$a(e),currentSlide:n,hasNext:r,hasPrev:i,progress:o,setOptions:s,loadDeck:l,patchDeck:u,updateNode:g,addNode:m,removeNode:_,moveNode:E,setElementState:w,recordAction:c,next:d,prev:h,goto:p}}function um(){const t=yt(vn);if(!t)throw new Error("Lumina: Component must be used within a Lumina instance.");return{slide:Z(()=>t.currentSlide()),index:Z(()=>t.state.currentIndex),total:Z(()=>{var e;return((e=t.state.deck)==null?void 0:e.slides.length)||0}),next:t.next,prev:t.prev,goto:t.goto,options:t.state.options}}function FM(){const t=yt(vn);if(!t)return;let e=0;const n=300,r=i=>{var u,c;const{options:o}=t.state;if(!o.keyboard||!o.navigation)return;const s=Date.now();if(s-e<n)return;const a=((u=o.keys)==null?void 0:u.next)||[],l=((c=o.keys)==null?void 0:c.prev)||[];a.includes(i.key)?(t.next(),e=s):l.includes(i.key)&&(t.prev(),e=s)};jt(()=>{window.addEventListener("keydown",r)}),sr(()=>{window.removeEventListener("keydown",r)})}const zM=50,UM=1.5,BM=400;function jM(){const t=yt(vn);if(!t)return{onTouchStart:()=>{},onTouchEnd:()=>{}};const e=we(null);let n=0;return{onTouchStart:o=>{o.touches.length===1&&(e.value={x:o.touches[0].clientX,y:o.touches[0].clientY})},onTouchEnd:o=>{const s=e.value;if(e.value=null,!s||o.changedTouches.length!==1)return;const{options:a}=t.state;if(!a.navigation)return;const l=Date.now();if(l-n<BM)return;const u=o.changedTouches[0],c=u.clientX-s.x,d=u.clientY-s.y;Math.abs(c)<zM||Math.abs(c)<=Math.abs(d)*UM||(c<0&&t.hasNext()?(t.next(),n=l):c>0&&t.hasPrev()&&(t.prev(),n=l))}}}class cm{constructor(){dr(this,"handlers",new Map)}on(e,n){this.handlers.has(e)||this.handlers.set(e,new Set),this.handlers.get(e).add(n)}off(e,n){const r=this.handlers.get(e);r&&r.delete(n)}emit(e,n){const r=this.handlers.get(e);r&&r.forEach(i=>{try{i(n)}catch(o){console.error(`[LuminaBus] Error in handler for event "${e}":`,o)}})}clear(){this.handlers.clear()}}const Oi=new cm,Fu=Object.freeze(Object.defineProperty({__proto__:null,EventBus:cm,bus:Oi},Symbol.toStringTag,{value:"Module"}));function fo(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Zx(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}/*!
|
|
47
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const l of t.seen.entries()){const u=l[1];if(e===l[0]){i(l);continue}if(t.external){const d=(s=t.external.registry.get(l[0]))==null?void 0:s.id;if(e!==l[0]&&d){i(l);continue}}if((a=t.metadataRegistry.get(l[0]))==null?void 0:a.id){i(l);continue}if(u.cycle){i(l);continue}if(u.count>1&&t.reused==="ref"){i(l);continue}}}function yx(t,e){var s,a,l;const n=t.seen.get(e);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=u=>{const c=t.seen.get(u),d=c.def??c.schema,h={...d};if(c.ref===null)return;const p=c.ref;if(c.ref=null,p){r(p);const g=t.seen.get(p).schema;g.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(d.allOf=d.allOf??[],d.allOf.push(g)):(Object.assign(d,g),Object.assign(d,h))}c.isParent||t.override({zodSchema:u,jsonSchema:d,path:c.path??[]})};for(const u of[...t.seen.entries()].reverse())r(u[0]);const i={};if(t.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":t.target,(s=t.external)!=null&&s.uri){const u=(a=t.external.registry.get(e))==null?void 0:a.id;if(!u)throw new Error("Schema is missing an `id` property");i.$id=t.external.uri(u)}Object.assign(i,n.def??n.schema);const o=((l=t.external)==null?void 0:l.defs)??{};for(const u of t.seen.entries()){const c=u[1];c.def&&c.defId&&(o[c.defId]=c.def)}t.external||Object.keys(o).length>0&&(t.target==="draft-2020-12"?i.$defs=o:i.definitions=o);try{const u=JSON.parse(JSON.stringify(i));return Object.defineProperty(u,"~standard",{value:{...e["~standard"],jsonSchema:{input:wf(e,"input"),output:wf(e,"output")}},enumerable:!1,writable:!1}),u}catch{throw new Error("Error converting schema to JSON.")}}function lr(t,e){const n=e??{seen:new Set};if(n.seen.has(t))return!1;n.seen.add(t);const r=t._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return lr(r.element,n);if(r.type==="set")return lr(r.valueType,n);if(r.type==="lazy")return lr(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return lr(r.innerType,n);if(r.type==="intersection")return lr(r.left,n)||lr(r.right,n);if(r.type==="record"||r.type==="map")return lr(r.keyType,n)||lr(r.valueType,n);if(r.type==="pipe")return lr(r.in,n)||lr(r.out,n);if(r.type==="object"){for(const i in r.shape)if(lr(r.shape[i],n))return!0;return!1}if(r.type==="union"){for(const i of r.options)if(lr(i,n))return!0;return!1}if(r.type==="tuple"){for(const i of r.items)if(lr(i,n))return!0;return!!(r.rest&&lr(r.rest,n))}return!1}const yD=(t,e={})=>n=>{const r=mx({...n,processors:e});return Cn(t,r),vx(r,t),yx(r,t)},wf=(t,e)=>n=>{const{libraryOptions:r,target:i}=n??{},o=mx({...r??{},target:i,io:e,processors:{}});return Cn(t,o),vx(o,t),yx(o,t)},bD={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},_D=(t,e,n,r)=>{const i=n;i.type="string";const{minimum:o,maximum:s,format:a,patterns:l,contentEncoding:u}=t._zod.bag;if(typeof o=="number"&&(i.minLength=o),typeof s=="number"&&(i.maxLength=s),a&&(i.format=bD[a]??a,i.format===""&&delete i.format),u&&(i.contentEncoding=u),l&&l.size>0){const c=[...l];c.length===1?i.pattern=c[0].source:c.length>1&&(i.allOf=[...c.map(d=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},xD=(t,e,n,r)=>{const i=n,{minimum:o,maximum:s,format:a,multipleOf:l,exclusiveMaximum:u,exclusiveMinimum:c}=t._zod.bag;typeof a=="string"&&a.includes("int")?i.type="integer":i.type="number",typeof c=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(i.minimum=c,i.exclusiveMinimum=!0):i.exclusiveMinimum=c),typeof o=="number"&&(i.minimum=o,typeof c=="number"&&e.target!=="draft-04"&&(c>=o?delete i.minimum:delete i.exclusiveMinimum)),typeof u=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(i.maximum=u,i.exclusiveMaximum=!0):i.exclusiveMaximum=u),typeof s=="number"&&(i.maximum=s,typeof u=="number"&&e.target!=="draft-04"&&(u<=s?delete i.maximum:delete i.exclusiveMaximum)),typeof l=="number"&&(i.multipleOf=l)},wD=(t,e,n,r)=>{n.type="boolean"},SD=(t,e,n,r)=>{e.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},ED=(t,e,n,r)=>{if(e.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},TD=(t,e,n,r)=>{n.not={}},ID=(t,e,n,r)=>{},CD=(t,e,n,r)=>{},AD=(t,e,n,r)=>{const i=t._zod.def,o=D1(i.entries);o.every(s=>typeof s=="number")&&(n.type="number"),o.every(s=>typeof s=="string")&&(n.type="string"),n.enum=o},PD=(t,e,n,r)=>{const i=t._zod.def,o=[];for(const s of i.values)if(s===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(e.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(s))}else o.push(s);if(o.length!==0)if(o.length===1){const s=o[0];n.type=s===null?"null":typeof s,e.target==="draft-04"||e.target==="openapi-3.0"?n.enum=[s]:n.const=s}else o.every(s=>typeof s=="number")&&(n.type="number"),o.every(s=>typeof s=="string")&&(n.type="string"),o.every(s=>typeof s=="boolean")&&(n.type="boolean"),o.every(s=>s===null)&&(n.type="null"),n.enum=o},kD=(t,e,n,r)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},OD=(t,e,n,r)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},ND=(t,e,n,r)=>{const i=n,o=t._zod.def,{minimum:s,maximum:a}=t._zod.bag;typeof s=="number"&&(i.minItems=s),typeof a=="number"&&(i.maxItems=a),i.type="array",i.items=Cn(o.element,e,{...r,path:[...r.path,"items"]})},RD=(t,e,n,r)=>{var u;const i=n,o=t._zod.def;i.type="object",i.properties={};const s=o.shape;for(const c in s)i.properties[c]=Cn(s[c],e,{...r,path:[...r.path,"properties",c]});const a=new Set(Object.keys(s)),l=new Set([...a].filter(c=>{const d=o.shape[c]._zod;return e.io==="input"?d.optin===void 0:d.optout===void 0}));l.size>0&&(i.required=Array.from(l)),((u=o.catchall)==null?void 0:u._zod.def.type)==="never"?i.additionalProperties=!1:o.catchall?o.catchall&&(i.additionalProperties=Cn(o.catchall,e,{...r,path:[...r.path,"additionalProperties"]})):e.io==="output"&&(i.additionalProperties=!1)},$D=(t,e,n,r)=>{const i=t._zod.def,o=i.inclusive===!1,s=i.options.map((a,l)=>Cn(a,e,{...r,path:[...r.path,o?"oneOf":"anyOf",l]}));o?n.oneOf=s:n.anyOf=s},DD=(t,e,n,r)=>{const i=t._zod.def,o=Cn(i.left,e,{...r,path:[...r.path,"allOf",0]}),s=Cn(i.right,e,{...r,path:[...r.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,l=[...a(o)?o.allOf:[o],...a(s)?s.allOf:[s]];n.allOf=l},MD=(t,e,n,r)=>{const i=n,o=t._zod.def;i.type="object",(e.target==="draft-07"||e.target==="draft-2020-12")&&(i.propertyNames=Cn(o.keyType,e,{...r,path:[...r.path,"propertyNames"]})),i.additionalProperties=Cn(o.valueType,e,{...r,path:[...r.path,"additionalProperties"]})},LD=(t,e,n,r)=>{const i=t._zod.def,o=Cn(i.innerType,e,r),s=e.seen.get(t);e.target==="openapi-3.0"?(s.ref=i.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},VD=(t,e,n,r)=>{const i=t._zod.def;Cn(i.innerType,e,r);const o=e.seen.get(t);o.ref=i.innerType},FD=(t,e,n,r)=>{const i=t._zod.def;Cn(i.innerType,e,r);const o=e.seen.get(t);o.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},zD=(t,e,n,r)=>{const i=t._zod.def;Cn(i.innerType,e,r);const o=e.seen.get(t);o.ref=i.innerType,e.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},UD=(t,e,n,r)=>{const i=t._zod.def;Cn(i.innerType,e,r);const o=e.seen.get(t);o.ref=i.innerType;let s;try{s=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=s},BD=(t,e,n,r)=>{const i=t._zod.def,o=e.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;Cn(o,e,r);const s=e.seen.get(t);s.ref=o},jD=(t,e,n,r)=>{const i=t._zod.def;Cn(i.innerType,e,r);const o=e.seen.get(t);o.ref=i.innerType,n.readOnly=!0},HD=(t,e,n,r)=>{const i=t._zod.def;Cn(i.innerType,e,r);const o=e.seen.get(t);o.ref=i.innerType},GD=ue("ZodISODateTime",(t,e)=>{MR.init(t,e),rn.init(t,e)});function WD(t){return G$(GD,t)}const KD=ue("ZodISODate",(t,e)=>{LR.init(t,e),rn.init(t,e)});function ZD(t){return W$(KD,t)}const XD=ue("ZodISOTime",(t,e)=>{VR.init(t,e),rn.init(t,e)});function YD(t){return K$(XD,t)}const JD=ue("ZodISODuration",(t,e)=>{FR.init(t,e),rn.init(t,e)});function QD(t){return Z$(JD,t)}const Wr=ue("ZodError",(t,e)=>{U1.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:n=>IN(t,n)},flatten:{value:n=>TN(t,n)},addIssue:{value:n=>{t.issues.push(n),t.message=JSON.stringify(t.issues,Gg,2)}},addIssues:{value:n=>{t.issues.push(...n),t.message=JSON.stringify(t.issues,Gg,2)}},isEmpty:{get(){return t.issues.length===0}}})},{Parent:Error}),qD=Xg(Wr),e3=Yg(Wr),t3=mf(Wr),n3=vf(Wr),r3=PN(Wr),i3=kN(Wr),o3=ON(Wr),s3=NN(Wr),a3=RN(Wr),l3=$N(Wr),u3=DN(Wr),c3=MN(Wr),Zt=ue("ZodType",(t,e)=>(Ht.init(t,e),Object.assign(t["~standard"],{jsonSchema:{input:wf(t,"input"),output:wf(t,"output")}}),t.toJSONSchema=yD(t,{}),t.def=e,t.type=e.type,Object.defineProperty(t,"_def",{value:e}),t.check=(...n)=>t.clone(Vs(e,{checks:[...e.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]})),t.clone=(n,r)=>zo(t,n,r),t.brand=()=>t,t.register=(n,r)=>(n.add(t,r),t),t.parse=(n,r)=>qD(t,n,r,{callee:t.parse}),t.safeParse=(n,r)=>t3(t,n,r),t.parseAsync=async(n,r)=>e3(t,n,r,{callee:t.parseAsync}),t.safeParseAsync=async(n,r)=>n3(t,n,r),t.spa=t.safeParseAsync,t.encode=(n,r)=>r3(t,n,r),t.decode=(n,r)=>i3(t,n,r),t.encodeAsync=async(n,r)=>o3(t,n,r),t.decodeAsync=async(n,r)=>s3(t,n,r),t.safeEncode=(n,r)=>a3(t,n,r),t.safeDecode=(n,r)=>l3(t,n,r),t.safeEncodeAsync=async(n,r)=>u3(t,n,r),t.safeDecodeAsync=async(n,r)=>c3(t,n,r),t.refine=(n,r)=>t.check(oM(n,r)),t.superRefine=n=>t.check(sM(n)),t.overwrite=n=>t.check(rl(n)),t.optional=()=>Px(t),t.nullable=()=>kx(t),t.nullish=()=>Px(kx(t)),t.nonoptional=n=>Q3(t,n),t.array=()=>tm(t),t.or=n=>nm([t,n]),t.and=n=>B3(t,n),t.transform=n=>om(t,Cx(n)),t.default=n=>X3(t,n),t.prefault=n=>J3(t,n),t.catch=n=>eM(t,n),t.pipe=n=>om(t,n),t.readonly=()=>rM(t),t.describe=n=>{const r=t.clone();return Lu.add(r,{description:n}),r},Object.defineProperty(t,"description",{get(){var n;return(n=Lu.get(t))==null?void 0:n.description},configurable:!0}),t.meta=(...n)=>{if(n.length===0)return Lu.get(t);const r=t.clone();return Lu.add(r,n[0]),r},t.isOptional=()=>t.safeParse(void 0).success,t.isNullable=()=>t.safeParse(null).success,t)),bx=ue("_ZodString",(t,e)=>{Jg.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(r,i,o)=>_D(t,r,i);const n=t._zod.bag;t.format=n.format??null,t.minLength=n.minimum??null,t.maxLength=n.maximum??null,t.regex=(...r)=>t.check(rD(...r)),t.includes=(...r)=>t.check(sD(...r)),t.startsWith=(...r)=>t.check(aD(...r)),t.endsWith=(...r)=>t.check(lD(...r)),t.min=(...r)=>t.check(xf(...r)),t.max=(...r)=>t.check(px(...r)),t.length=(...r)=>t.check(gx(...r)),t.nonempty=(...r)=>t.check(xf(1,...r)),t.lowercase=r=>t.check(iD(r)),t.uppercase=r=>t.check(oD(r)),t.trim=()=>t.check(cD()),t.normalize=(...r)=>t.check(uD(...r)),t.toLowerCase=()=>t.check(dD()),t.toUpperCase=()=>t.check(fD()),t.slugify=()=>t.check(hD())}),d3=ue("ZodString",(t,e)=>{Jg.init(t,e),bx.init(t,e),t.email=n=>t.check(E$(f3,n)),t.url=n=>t.check(P$(h3,n)),t.jwt=n=>t.check(H$(A3,n)),t.emoji=n=>t.check(k$(p3,n)),t.guid=n=>t.check(cx(_x,n)),t.uuid=n=>t.check(T$(Sf,n)),t.uuidv4=n=>t.check(I$(Sf,n)),t.uuidv6=n=>t.check(C$(Sf,n)),t.uuidv7=n=>t.check(A$(Sf,n)),t.nanoid=n=>t.check(O$(g3,n)),t.guid=n=>t.check(cx(_x,n)),t.cuid=n=>t.check(N$(m3,n)),t.cuid2=n=>t.check(R$(v3,n)),t.ulid=n=>t.check($$(y3,n)),t.base64=n=>t.check(U$(T3,n)),t.base64url=n=>t.check(B$(I3,n)),t.xid=n=>t.check(D$(b3,n)),t.ksuid=n=>t.check(M$(_3,n)),t.ipv4=n=>t.check(L$(x3,n)),t.ipv6=n=>t.check(V$(w3,n)),t.cidrv4=n=>t.check(F$(S3,n)),t.cidrv6=n=>t.check(z$(E3,n)),t.e164=n=>t.check(j$(C3,n)),t.datetime=n=>t.check(WD(n)),t.date=n=>t.check(ZD(n)),t.time=n=>t.check(YD(n)),t.duration=n=>t.check(QD(n))});function ve(t){return S$(d3,t)}const rn=ue("ZodStringFormat",(t,e)=>{Jt.init(t,e),bx.init(t,e)}),f3=ue("ZodEmail",(t,e)=>{CR.init(t,e),rn.init(t,e)}),_x=ue("ZodGUID",(t,e)=>{TR.init(t,e),rn.init(t,e)}),Sf=ue("ZodUUID",(t,e)=>{IR.init(t,e),rn.init(t,e)}),h3=ue("ZodURL",(t,e)=>{AR.init(t,e),rn.init(t,e)}),p3=ue("ZodEmoji",(t,e)=>{PR.init(t,e),rn.init(t,e)}),g3=ue("ZodNanoID",(t,e)=>{kR.init(t,e),rn.init(t,e)}),m3=ue("ZodCUID",(t,e)=>{OR.init(t,e),rn.init(t,e)}),v3=ue("ZodCUID2",(t,e)=>{NR.init(t,e),rn.init(t,e)}),y3=ue("ZodULID",(t,e)=>{RR.init(t,e),rn.init(t,e)}),b3=ue("ZodXID",(t,e)=>{$R.init(t,e),rn.init(t,e)}),_3=ue("ZodKSUID",(t,e)=>{DR.init(t,e),rn.init(t,e)}),x3=ue("ZodIPv4",(t,e)=>{zR.init(t,e),rn.init(t,e)}),w3=ue("ZodIPv6",(t,e)=>{UR.init(t,e),rn.init(t,e)}),S3=ue("ZodCIDRv4",(t,e)=>{BR.init(t,e),rn.init(t,e)}),E3=ue("ZodCIDRv6",(t,e)=>{jR.init(t,e),rn.init(t,e)}),T3=ue("ZodBase64",(t,e)=>{HR.init(t,e),rn.init(t,e)}),I3=ue("ZodBase64URL",(t,e)=>{WR.init(t,e),rn.init(t,e)}),C3=ue("ZodE164",(t,e)=>{KR.init(t,e),rn.init(t,e)}),A3=ue("ZodJWT",(t,e)=>{XR.init(t,e),rn.init(t,e)}),xx=ue("ZodNumber",(t,e)=>{J1.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(r,i,o)=>xD(t,r,i),t.gt=(r,i)=>t.check(fx(r,i)),t.gte=(r,i)=>t.check(em(r,i)),t.min=(r,i)=>t.check(em(r,i)),t.lt=(r,i)=>t.check(dx(r,i)),t.lte=(r,i)=>t.check(qg(r,i)),t.max=(r,i)=>t.check(qg(r,i)),t.int=r=>t.check(wx(r)),t.safe=r=>t.check(wx(r)),t.positive=r=>t.check(fx(0,r)),t.nonnegative=r=>t.check(em(0,r)),t.negative=r=>t.check(dx(0,r)),t.nonpositive=r=>t.check(qg(0,r)),t.multipleOf=(r,i)=>t.check(hx(r,i)),t.step=(r,i)=>t.check(hx(r,i)),t.finite=()=>t;const n=t._zod.bag;t.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),t.isFinite=!0,t.format=n.format??null});function Kr(t){return X$(xx,t)}const P3=ue("ZodNumberFormat",(t,e)=>{YR.init(t,e),xx.init(t,e)});function wx(t){return Y$(P3,t)}const k3=ue("ZodBoolean",(t,e)=>{JR.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>wD(t,n,r)});function Pi(t){return J$(k3,t)}const O3=ue("ZodUndefined",(t,e)=>{QR.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>ED(t,n)});function Sx(t){return Q$(O3,t)}const N3=ue("ZodNull",(t,e)=>{qR.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>SD(t,n,r)});function Ex(t){return q$(N3,t)}const R3=ue("ZodAny",(t,e)=>{e$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>ID()});function $3(){return eD(R3)}const D3=ue("ZodUnknown",(t,e)=>{t$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>CD()});function Tx(){return tD(D3)}const M3=ue("ZodNever",(t,e)=>{n$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>TD(t,n,r)});function L3(t){return nD(M3,t)}const V3=ue("ZodArray",(t,e)=>{r$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>ND(t,n,r,i),t.element=e.element,t.min=(n,r)=>t.check(xf(n,r)),t.nonempty=n=>t.check(xf(1,n)),t.max=(n,r)=>t.check(px(n,r)),t.length=(n,r)=>t.check(gx(n,r)),t.unwrap=()=>t.element});function tm(t,e){return pD(V3,t,e)}const F3=ue("ZodObject",(t,e)=>{o$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>RD(t,n,r,i),Lt(t,"shape",()=>e.shape),t.keyof=()=>Ln(Object.keys(t._zod.def.shape)),t.catchall=n=>t.clone({...t._zod.def,catchall:n}),t.passthrough=()=>t.clone({...t._zod.def,catchall:Tx()}),t.loose=()=>t.clone({...t._zod.def,catchall:Tx()}),t.strict=()=>t.clone({...t._zod.def,catchall:L3()}),t.strip=()=>t.clone({...t._zod.def,catchall:void 0}),t.extend=n=>_N(t,n),t.safeExtend=n=>xN(t,n),t.merge=n=>wN(t,n),t.pick=n=>yN(t,n),t.omit=n=>bN(t,n),t.partial=(...n)=>SN(Ax,t,n[0]),t.required=(...n)=>EN(Ox,t,n[0])});function Rt(t,e){const n={type:"object",shape:t??{},...Ge(e)};return new F3(n)}const Ix=ue("ZodUnion",(t,e)=>{nx.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>$D(t,n,r,i),t.options=e.options});function nm(t,e){return new Ix({type:"union",options:t,...Ge(e)})}const z3=ue("ZodDiscriminatedUnion",(t,e)=>{Ix.init(t,e),s$.init(t,e)});function rm(t,e,n){return new z3({type:"union",options:e,discriminator:t,...Ge(n)})}const U3=ue("ZodIntersection",(t,e)=>{a$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>DD(t,n,r,i)});function B3(t,e){return new U3({type:"intersection",left:t,right:e})}const j3=ue("ZodRecord",(t,e)=>{l$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>MD(t,n,r,i),t.keyType=e.keyType,t.valueType=e.valueType});function H3(t,e,n){return new j3({type:"record",keyType:t,valueType:e,...Ge(n)})}const im=ue("ZodEnum",(t,e)=>{u$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(r,i,o)=>AD(t,r,i),t.enum=e.entries,t.options=Object.values(e.entries);const n=new Set(Object.keys(e.entries));t.extract=(r,i)=>{const o={};for(const s of r)if(n.has(s))o[s]=e.entries[s];else throw new Error(`Key ${s} not found in enum`);return new im({...e,checks:[],...Ge(i),entries:o})},t.exclude=(r,i)=>{const o={...e.entries};for(const s of r)if(n.has(s))delete o[s];else throw new Error(`Key ${s} not found in enum`);return new im({...e,checks:[],...Ge(i),entries:o})}});function Ln(t,e){const n=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new im({type:"enum",entries:n,...Ge(e)})}const G3=ue("ZodLiteral",(t,e)=>{c$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>PD(t,n,r),t.values=new Set(e.values),Object.defineProperty(t,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function Jn(t,e){return new G3({type:"literal",values:Array.isArray(t)?t:[t],...Ge(e)})}const W3=ue("ZodTransform",(t,e)=>{d$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>OD(t,n),t._zod.parse=(n,r)=>{if(r.direction==="backward")throw new R1(t.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(Mu(o,n.value,e));else{const s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=t),n.issues.push(Mu(s))}};const i=e.transform(n.value,n);return i instanceof Promise?i.then(o=>(n.value=o,n)):(n.value=i,n)}});function Cx(t){return new W3({type:"transform",transform:t})}const Ax=ue("ZodOptional",(t,e)=>{f$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>HD(t,n,r,i),t.unwrap=()=>t._zod.def.innerType});function Px(t){return new Ax({type:"optional",innerType:t})}const K3=ue("ZodNullable",(t,e)=>{h$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>LD(t,n,r,i),t.unwrap=()=>t._zod.def.innerType});function kx(t){return new K3({type:"nullable",innerType:t})}const Z3=ue("ZodDefault",(t,e)=>{p$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>FD(t,n,r,i),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function X3(t,e){return new Z3({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():F1(e)}})}const Y3=ue("ZodPrefault",(t,e)=>{g$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>zD(t,n,r,i),t.unwrap=()=>t._zod.def.innerType});function J3(t,e){return new Y3({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():F1(e)}})}const Ox=ue("ZodNonOptional",(t,e)=>{m$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>VD(t,n,r,i),t.unwrap=()=>t._zod.def.innerType});function Q3(t,e){return new Ox({type:"nonoptional",innerType:t,...Ge(e)})}const q3=ue("ZodCatch",(t,e)=>{v$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>UD(t,n,r,i),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function eM(t,e){return new q3({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}const tM=ue("ZodPipe",(t,e)=>{y$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>BD(t,n,r,i),t.in=e.in,t.out=e.out});function om(t,e){return new tM({type:"pipe",in:t,out:e})}const nM=ue("ZodReadonly",(t,e)=>{b$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>jD(t,n,r,i),t.unwrap=()=>t._zod.def.innerType});function rM(t){return new nM({type:"readonly",innerType:t})}const iM=ue("ZodCustom",(t,e)=>{_$.init(t,e),Zt.init(t,e),t._zod.processJSONSchema=(n,r,i)=>kD(t,n)});function oM(t,e={}){return gD(iM,t,e)}function sM(t){return mD(t)}function aM(t,e){return om(Cx(t),e)}const Ef=t=>{if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(r=>Ef(r));const e={t:"title",s:"subtitle",d:"description",desc:"description",bg:"background",img:"image",fs:"features",tl:"timeline",st:"steps"},n={};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const i=e[r]||r,o=t[r];n[i]=Ef(o)}return n},ki=t=>nm([t,tm(t),Ex(),Sx()]).transform(e=>e==null?[]:Array.isArray(e)?e:[e]),At=nm([ve(),Kr(),Ex(),Sx()]).transform(t=>t==null?"":String(t)),sm=ve().describe("Icon name (e.g. 'star', 'users', 'arrow-right'). Use standard Lucide/FontAwesome names."),il=Rt({id:ve().optional().describe("Unique ID for the slide. Useful for navigation."),sizing:Ln(["viewport","container"]).optional().describe("How the slide fits the screen. Default: 'viewport'."),meta:H3(ve(),$3()).optional().describe("Arbitrary metadata for custom behavior.")}),lM=il.extend({type:Jn("statement").describe("Use for high-impact titles, covers, or quotes."),title:At.describe("Main headline. Keep it punchy (3-6 words)."),subtitle:At.optional().describe("Supporting text or attribution."),tag:At.optional().describe("Small eyebrow tag above the title.")}),uM=Rt({title:At.describe("Feature name."),description:At.describe("Short benefit description."),icon:sm.optional().describe("Visual icon for the feature.")}),cM=il.extend({type:Jn("features").describe("Use for lists of benefits, stats, or grid items."),title:At.describe("Section header."),description:At.optional().describe("Contextual description."),features:ki(uM).describe("Array of feature cards.")}),Nx=Rt({date:At.describe("Time marker (Year, Date, or 'Now')."),title:At.describe("Event title."),description:At.describe("Event details (1-2 sentences)."),icon:sm.optional().describe("Optional marker icon.")}),dM=il.extend({type:Jn("timeline").describe("Use for history, roadmaps, or chronological steps."),title:At.describe("Timeline header."),subtitle:At.optional(),timeline:ki(Nx).describe("Ordered events.")}),Rx=Rt({step:At.describe("Step number/label (e.g., '01', 'A')."),title:At.describe("Action title."),description:At.optional().describe("Action details."),icon:sm.optional()}),fM=il.extend({type:Jn("steps").describe("Use for tutorials, 'how-to' guides, or process flows."),title:At.describe("Process header."),subtitle:At.optional(),steps:ki(Rx).describe("Sequential steps.")}),hM=il.extend({type:Jn("half").describe("Use when you have a strong visual + explanations."),imageSide:Ln(["left","right"]).default("left").describe("Which side the image goes on."),image:At.describe("URL to the image."),title:At.describe("Headline."),tag:At.optional(),paragraphs:ki(ve()).describe("Array of text blocks/paragraphs."),cta:At.optional().describe("Call to Action label (button).")}),Vu=Ln(["none","xs","sm","md","lg","xl","2xl"]).describe("Spacing size token."),co=Ln(["auto","quarter","third","half","two-thirds","three-quarters","full"]).describe("Element size in container."),pM=Ln(["top","center","bottom"]).describe("Vertical alignment."),gM=Ln(["left","center","right"]).describe("Horizontal alignment."),$x=Ln(["left","center","right"]).describe("Text alignment."),Dx=Rt({type:Jn("title").describe("Large heading text."),text:At.describe("The heading text."),size:Ln(["lg","xl","2xl","3xl"]).optional().describe("Heading size. Default: 'xl'."),align:$x.optional().describe("Text alignment. Default: 'left'.")}),Mx=Rt({type:Jn("text").describe("Body paragraph text."),text:At.describe("The paragraph text."),align:$x.optional().describe("Text alignment. Default: 'left'."),muted:Pi().optional().describe("Muted/subtle appearance. Default: false.")}),Lx=Rt({type:Jn("bullets").describe("Unordered bullet list."),items:ki(ve()).describe("List items.")}),Vx=Rt({type:Jn("ordered").describe("Numbered list."),items:ki(ve()).describe("List items.")}),mM=Rt({type:Jn("image").describe("Visual media element."),src:At.describe("Image URL."),alt:At.optional().describe("Alt text for accessibility."),fill:Pi().optional().describe("Fill container edge-to-edge. Default: true."),fit:Ln(["cover","contain"]).optional().describe("Object-fit when fill. Default: 'cover'."),rounded:Ln(["none","sm","md","lg","xl","full"]).optional().describe("Border radius.")}),Fx=Rt({type:Jn("button").describe("Call-to-action button."),label:At.describe("Button label text."),action:At.optional().describe("Action identifier emitted on click."),variant:Ln(["primary","secondary","outline","ghost"]).optional().describe("Visual variant. Default: 'primary'."),fullWidth:Pi().optional().describe("Full width button. Default: false.")}),zx=Rt({type:Jn("timeline").describe("Embedded timeline with events."),items:ki(Nx).describe("Timeline events."),compact:Pi().optional().describe("Compact display mode. Default: false.")}),Ux=Rt({type:Jn("stepper").describe("Embedded step-by-step process."),items:ki(Rx).describe("Step items."),compact:Pi().optional().describe("Compact display mode. Default: false.")}),vM=Rt({type:Jn("spacer").describe("Adds visual spacing."),size:Vu.optional().describe("Size of the space. Default: 'md'.")}),yM=rm("type",[Dx,Mx,Lx,Vx,Fx,zx,Ux,vM]),bM=Rt({type:Jn("content").describe("Groups child elements vertically with alignment control."),elements:ki(yM).describe("Child elements."),valign:pM.optional().describe("Vertical alignment. Default: 'center'."),halign:gM.optional().describe("Horizontal alignment. Default: 'left'."),gap:Vu.optional().describe("Gap between children. Default: 'md'."),padding:Vu.optional().describe("Internal padding. Default: 'lg'."),size:co.optional().describe("Size in parent flex container.")}),_M=rm("type",[mM.extend({size:co.optional()}),bM,Dx.extend({size:co.optional()}),Mx.extend({size:co.optional()}),Lx.extend({size:co.optional()}),Vx.extend({size:co.optional()}),Fx.extend({size:co.optional()}),zx.extend({size:co.optional()}),Ux.extend({size:co.optional()})]),xM=il.extend({type:Jn("flex").describe("Flow-based layout. Elements flow in order with semantic sizing."),direction:Ln(["horizontal","vertical"]).optional().describe("Main flow direction. Default: 'horizontal'."),gap:Vu.optional().describe("Gap between elements. Default: 'none'."),padding:Vu.optional().describe("Container padding. Default: 'none'."),elements:ki(_M).describe("Flex elements in flow order.")}),wM=rm("type",[lM,cM,dM,fM,hM,xM]),SM=Rt({primary:ve().optional().describe("Main brand/accent color. Used for highlights, buttons, links. Example: '#3b82f6'"),secondary:ve().optional().describe("Secondary brand color. Used for complementary elements. Example: '#8b5cf6'"),accent:ve().optional().describe("Tertiary/accent color. Used for special highlights. Example: '#06b6d4'"),background:ve().optional().describe("Main background color. Example: '#030303'"),surface:ve().optional().describe("Elevated surface color (cards, panels, modals). Example: '#0a0a0a'"),text:ve().optional().describe("Primary text color. Example: '#ffffff'"),textSecondary:ve().optional().describe("Secondary/subdued text color. Example: '#e5e7eb'"),muted:ve().optional().describe("Muted/disabled text color. Example: '#9ca3af'"),success:ve().optional().describe("Success state color (green tones). Example: '#10b981'"),warning:ve().optional().describe("Warning state color (yellow/amber). Example: '#f59e0b'"),danger:ve().optional().describe("Danger/error state color (red). Example: '#ef4444'"),info:ve().optional().describe("Informational state color (blue). Example: '#3b82f6'"),border:ve().optional().describe("Border color for containers, cards. Example: 'rgba(255,255,255,0.1)'"),borderSubtle:ve().optional().describe("Subtle border for dividers. Example: 'rgba(255,255,255,0.05)'"),shadow:ve().optional().describe("Shadow color. Example: '#000000'"),overlay:ve().optional().describe("Overlay color for modals. Example: 'rgba(0,0,0,0.5)'"),highlight:ve().optional().describe("Highlight/selection color."),buttonPrimary:ve().optional().describe("Primary button background."),buttonPrimaryText:ve().optional().describe("Primary button text color."),buttonSecondary:ve().optional().describe("Secondary button background."),buttonSecondaryText:ve().optional().describe("Secondary button text color."),link:ve().optional().describe("Link color."),linkHover:ve().optional().describe("Link hover color."),gradientFrom:ve().optional().describe("Gradient start color. Example: '#3b82f6'"),gradientVia:ve().optional().describe("Gradient middle color (optional)."),gradientTo:ve().optional().describe("Gradient end color. Example: '#8b5cf6'")}).describe("Color palette configuration with 25+ customizable colors."),EM=Rt({fontFamily:Rt({heading:ve().optional().describe("Font for headings. Example: 'Inter, sans-serif'"),body:ve().optional().describe("Font for body text. Example: 'Inter, sans-serif'"),mono:ve().optional().describe("Font for code. Example: 'monospace'")}).optional().describe("Font family definitions."),fontSize:Rt({xs:ve().optional().describe("Extra small: 0.75rem"),sm:ve().optional().describe("Small: 0.875rem"),base:ve().optional().describe("Base: 1rem"),lg:ve().optional().describe("Large: 1.125rem"),xl:ve().optional().describe("Extra large: 1.25rem"),"2xl":ve().optional().describe("2XL: 1.5rem"),"3xl":ve().optional().describe("3XL: 1.875rem"),"4xl":ve().optional().describe("4XL: 2.25rem"),"5xl":ve().optional().describe("5XL: 3rem"),"6xl":ve().optional().describe("6XL: 3.75rem"),"7xl":ve().optional().describe("7XL: 4.5rem")}).optional().describe("Font size scale."),fontWeight:Rt({light:Kr().optional().describe("Light: 300"),normal:Kr().optional().describe("Normal: 400"),medium:Kr().optional().describe("Medium: 500"),semibold:Kr().optional().describe("Semibold: 600"),bold:Kr().optional().describe("Bold: 700"),extrabold:Kr().optional().describe("Extra bold: 800")}).optional().describe("Font weight scale."),lineHeight:Rt({tight:ve().optional().describe("Tight: 1.1"),snug:ve().optional().describe("Snug: 1.25"),normal:ve().optional().describe("Normal: 1.5"),relaxed:ve().optional().describe("Relaxed: 1.625"),loose:ve().optional().describe("Loose: 2")}).optional().describe("Line height scale."),letterSpacing:Rt({tighter:ve().optional().describe("-0.05em"),tight:ve().optional().describe("-0.025em"),normal:ve().optional().describe("0"),wide:ve().optional().describe("0.025em"),wider:ve().optional().describe("0.05em"),widest:ve().optional().describe("0.1em")}).optional().describe("Letter spacing scale.")}).describe("Typography configuration: fonts, sizes, weights, line-heights."),TM=Rt({none:ve().optional().describe("0"),xs:ve().optional().describe("0.25rem / 4px"),sm:ve().optional().describe("0.5rem / 8px"),md:ve().optional().describe("1rem / 16px"),lg:ve().optional().describe("1.5rem / 24px"),xl:ve().optional().describe("2rem / 32px"),"2xl":ve().optional().describe("3rem / 48px"),"3xl":ve().optional().describe("4rem / 64px"),"4xl":ve().optional().describe("6rem / 96px")}).describe("Spacing scale for gaps, padding, margins."),IM=Rt({none:ve().optional().describe("No rounding: 0"),sm:ve().optional().describe("Small: 0.25rem"),md:ve().optional().describe("Medium: 0.5rem"),lg:ve().optional().describe("Large: 0.75rem"),xl:ve().optional().describe("Extra large: 1rem"),"2xl":ve().optional().describe("2XL: 1.5rem"),"3xl":ve().optional().describe("3XL: 2rem"),full:ve().optional().describe("Full circle: 9999px")}).describe("Border radius scale for rounded corners."),CM=Rt({useGradients:Pi().optional().describe("Enable/disable gradient effects globally."),gradientDirection:Ln(["to-t","to-b","to-l","to-r","to-tl","to-tr","to-bl","to-br"]).optional().describe("Gradient direction."),gradientFrom:ve().optional().describe("Override gradient start color."),gradientVia:ve().optional().describe("Override gradient middle color."),gradientTo:ve().optional().describe("Override gradient end color."),useShadows:Pi().optional().describe("Enable/disable shadow effects."),shadowIntensity:Ln(["none","sm","md","lg","xl","2xl"]).optional().describe("Shadow intensity level."),shadowColor:ve().optional().describe("Shadow color."),useGlass:Pi().optional().describe("Enable/disable glassmorphism effect."),glassOpacity:Kr().optional().describe("Glass panel opacity (0-1)."),glassBlur:ve().optional().describe("Glass blur amount. Example: '20px'"),glassBorderOpacity:Kr().optional().describe("Glass border opacity (0-1)."),useOrb:Pi().optional().describe("Enable/disable ambient orb/glow effect."),orbOpacity:Kr().optional().describe("Orb opacity (0-1)."),orbBlur:ve().optional().describe("Orb blur amount. Example: '120px'"),orbSize:ve().optional().describe("Orb size. Example: '60vw'"),animationsEnabled:Pi().optional().describe("Enable/disable animations globally."),transitionDuration:ve().optional().describe("Default transition duration. Example: '0.3s'"),transitionEasing:ve().optional().describe("Default transition easing. Example: 'ease-out'"),hoverScale:Kr().optional().describe("Hover scale factor. Example: 1.05")}).describe("Visual effects: gradients, shadows, glass, orb, animations."),AM=Rt({buttonRadius:ve().optional().describe("Button border radius."),buttonPadding:ve().optional().describe("Button padding. Example: '0.75rem 1.5rem'"),buttonFontWeight:Kr().optional().describe("Button font weight."),buttonTextTransform:Ln(["none","uppercase","capitalize"]).optional().describe("Button text transform."),cardRadius:ve().optional().describe("Card border radius."),cardPadding:ve().optional().describe("Card padding."),cardBorderWidth:ve().optional().describe("Card border width. Example: '1px'"),cardBackground:ve().optional().describe("Card background override."),timelineNodeSize:ve().optional().describe("Timeline node size. Example: '1rem'"),timelineLineWidth:ve().optional().describe("Timeline line width. Example: '2px'"),timelineNodeColor:ve().optional().describe("Timeline node color."),timelineLineColor:ve().optional().describe("Timeline line color."),stepBadgeSize:ve().optional().describe("Step badge size."),stepFontSize:ve().optional().describe("Step font size."),progressHeight:ve().optional().describe("Progress bar height."),progressRadius:ve().optional().describe("Progress bar border radius."),progressBackground:ve().optional().describe("Progress bar background."),progressFill:ve().optional().describe("Progress bar fill color."),tagPadding:ve().optional().describe("Tag padding."),tagRadius:ve().optional().describe("Tag border radius."),tagFontSize:ve().optional().describe("Tag font size."),inputRadius:ve().optional().describe("Input border radius."),inputPadding:ve().optional().describe("Input padding."),inputBorder:ve().optional().describe("Input border color."),inputFocusBorder:ve().optional().describe("Input focus border color.")}).describe("Component-specific theming: buttons, cards, timeline, steps, etc."),am=Rt({colors:SM.optional().describe("Color palette with 25+ customizable colors."),typography:EM.optional().describe("Typography: fonts, sizes, weights, line-heights."),spacing:TM.optional().describe("Spacing scale for consistent gaps and padding."),borderRadius:IM.optional().describe("Border radius tokens for rounded corners."),effects:CM.optional().describe("Visual effects: gradients, shadows, glass, orb."),components:AM.optional().describe("Component-specific styling tokens.")}).describe("Complete theme configuration for full visual customization."),PM=Ln(["default","ocean","midnight","forest","cyber","latte","sunset","monochrome"]).describe("Built-in theme preset name."),kM=Rt({title:At.describe("Title of the entire presentation."),author:At.optional(),date:At.optional(),theme:PM.optional().describe("Theme preset to use. Options: default, ocean, midnight, forest, cyber, latte, sunset, monochrome."),themeConfig:am.optional().describe("Custom theme configuration to override preset values.")}).passthrough(),OM=Rt({meta:kM.describe("Global deck settings including title and theme."),slides:tm(aM(Ef,wM)).describe("Ordered array of slide definitions.")});function Bx(){try{const{zodToJsonSchema:t}=require("zod-to-json-schema");return t(OM,"LuminaDeck")}catch{return console.warn("zod-to-json-schema not installed. Install it to export raw JSON Schema."),{}}}function jx(){try{const{zodToJsonSchema:t}=require("zod-to-json-schema");return t(am,"LuminaThemeConfig")}catch{return console.warn("zod-to-json-schema not installed. Install it to export raw JSON Schema."),{}}}function Fs(t,e){if(!t||!e)return;const n=e.split(".");let r=t;for(const i of n){if(r==null)return;r=r[i]}return r}function ol(t,e,n){if(!t)return t;if(!e)return n;const r=e.split("."),i=r[0],o=r.slice(1).join(".");if(Array.isArray(t)){const a=parseInt(i,10);if(isNaN(a))return t;const l=[...t];return r.length===1?l[a]=n:l[a]=ol(t[a],o,n),l}const s={...t};return r.length===1?s[i]=n:s[i]=ol(t[i]||{},o,n),s}function NM(t,e,n,r){const i=Fs(t,e);if(!Array.isArray(i))return console.warn(`[Lumina Deep] Insert failed: Target at '${e}' is not an array.`),t;const o=[...i];return o.splice(n,0,r),ol(t,e,o)}function RM(t,e,n){const r=Fs(t,e);if(!Array.isArray(r))return console.warn(`[Lumina Deep] Remove failed: Target at '${e}' is not an array.`),t;const i=[...r];return i.splice(n,1),ol(t,e,i)}function $M(t,e,n,r){const i=Fs(t,e);if(!Array.isArray(i))return t;const o=[...i],[s]=o.splice(n,1);return o.splice(r,0,s),ol(t,e,o)}function Tf(t,...e){const n=t??0;return e.length===0?`s${n}`:`s${n}-${e.map(String).join("-")}`}function DM(t){return t.join(".")}function zs(t,e){if(!(!t||!e.length))return Fs(t,DM(e))}function Hx(t){return Array.isArray(t)?t:typeof t!="string"?[]:t.split(".").map(e=>/^\d+$/.test(e)?parseInt(e,10):e)}function Gt(t,e,n){var o;const r=t;if(n.length===0||n.length===1&&n[0]==="slide")return(r==null?void 0:r.id)||Tf(e,"slide");const i=zs(t,n);return i!=null&&typeof i=="object"&&typeof i.id=="string"?i.id:n.length===1&&typeof n[0]=="string"&&((o=r==null?void 0:r.ids)!=null&&o[n[0]])?r.ids[n[0]]:Tf(e,...n)}const Gx={statement:()=>[["tag"],["title"],["subtitle"]],features:t=>{const e=zs(t,["features"]),n=Array.isArray(e)?e:[];return[["header"],...n.map((r,i)=>["features",i])]},half:()=>[["media"],["tag"],["title"],["paragraphs"],["cta"]],timeline:t=>{const e=zs(t,["timeline"]),n=Array.isArray(e)?e:[];return[["title"],["subtitle"],...n.map((r,i)=>["timeline",i])]},steps:t=>{const e=zs(t,["steps"]),n=Array.isArray(e)?e:[];return[["header"],...n.map((r,i)=>["steps",i])]},flex:t=>{const e=[],n=zs(t,["elements"]);return(Array.isArray(n)?n:[]).forEach((i,o)=>{e.push(["elements",o]);const s=i&&typeof i=="object"?i:null;(s==null?void 0:s.type)==="content"&&Array.isArray(s.elements)&&s.elements.forEach((a,l)=>e.push(["elements",o,"elements",l]))}),e},chart:()=>[["title"],["subtitle"],["chart"]],diagram:t=>{const e=[],n=zs(t,["nodes"]),r=zs(t,["edges"]);return(Array.isArray(n)?n:[]).forEach((i,o)=>e.push(["nodes",o])),(Array.isArray(r)?r:[]).forEach((i,o)=>e.push(["edges",o])),e},custom:()=>[],video:()=>[["video"],["title"]]};function MM(t,e){Gx[t]=e}function Wx(t){const e=(t==null?void 0:t.type)||"unknown",n=Gx[e]||(()=>[]);return[["slide"],...n(t)]}function lm(t,e){return Wx(t).map(n=>Gt(t,e,n))}const vn=Symbol("LuminaStore"),LM={loop:!1,navigation:!0,keyboard:!0,touch:!0,debug:!1,theme:"default",ui:{visible:!0,showProgressBar:!0,showSlideCount:!0,showControls:!0},keys:{next:["ArrowRight"," ","Enter"],prev:["ArrowLeft","Backspace"]},animation:{enabled:!0,type:"cascade",durationIn:1,durationOut:.5,stagger:.1,ease:"power3.out"}};function sl(t){if(typeof t=="string")return dN(t);if(Array.isArray(t))return t.map(sl);if(t&&typeof t=="object"){const e={};for(const n in t)e[n]=sl(t[n]);return e}return t}function Kx(t,e){if(typeof t!="object"||t===null||typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map(sl);const n={...t};for(const r in e)e[r]===Object(e[r])?r in t?n[r]=Kx(t[r],e[r]):Object.assign(n,{[r]:sl(e[r])}):Object.assign(n,{[r]:sl(e[r])});return n}function VM(t={}){const e=Ra({deck:null,currentIndex:0,options:{...LM,...t},isReady:!1,actionHistory:[],elementState:{}}),n=()=>!e.deck||e.deck.slides.length===0?null:e.deck.slides[e.currentIndex]||null,r=()=>e.deck?e.options.loop?!0:e.currentIndex<e.deck.slides.length-1:!1,i=()=>e.deck?e.options.loop?!0:e.currentIndex>0:!1,o=()=>!e.deck||e.deck.slides.length<=1?0:e.currentIndex/(e.deck.slides.length-1);function s(v){e.options={...e.options,...v},v.theme&&(v.theme,e.options.theme=v.theme),v.ui&&(e.options.ui={...e.options.ui,...v.ui}),v.keys&&(e.options.keys={...e.options.keys,...v.keys}),v.animation&&(e.options.animation={...e.options.animation,...v.animation}),v.elementControl&&(e.options.elementControl={...e.options.elementControl||{},...v.elementControl})}function a(v){if(!v||typeof v!="object")return v;if(Array.isArray(v))return v.map(a);const y={...v};if(y.type==="flex"&&Array.isArray(y.elements))y.elements=y.elements.map(k=>({dragKey:k.dragKey||Date.now()+Math.random(),...a(k)}));else if(y.type==="content"&&Array.isArray(y.elements))y.elements=y.elements.map(k=>({dragKey:k.dragKey||Date.now()+Math.random()+1,...a(k)}));else for(const k in y)y[k]=a(y[k]);return y}function l(v){var x,N,P,b,S;if(!v||!Array.isArray(v.slides)){console.error("[LuminaStore] Invalid deck format");return}const y=Ef(v),k=a(y),$=(x=k.meta)==null?void 0:x.initialElementState,O=$&&typeof $=="object"&&!Array.isArray($)?$:{};if(e.elementState=Object.fromEntries(Object.entries(O).map(([I,V])=>[I,{...V&&typeof V=="object"?V:{}}])),e.deck=sl(k),e.currentIndex=0,e.isReady=!0,e.actionHistory=[],((N=e.options.elementControl)==null?void 0:N.defaultVisible)===!1||((b=(P=k.meta)==null?void 0:P.elementControl)==null?void 0:b.defaultVisible)===!1){const I=new Set(Object.keys(O));(((S=e.deck)==null?void 0:S.slides)??[]).forEach((V,M)=>{lm(V,M).forEach(H=>{if(!I.has(H)){const G=e.elementState[H]||{};e.elementState[H]={...G,visible:!1}}})})}}function u(v){if(!e.deck)return;const y=Kx(e.deck,v);e.deck=a(y)}function c(v){e.actionHistory.push(v),e.actionHistory.length>50&&e.actionHistory.shift()}function d(){var k;if(!r())return;const v=((k=e.deck)==null?void 0:k.slides.length)||0;let y=e.currentIndex;e.options.loop?y=(e.currentIndex+1)%v:y++,y!==e.currentIndex&&(e.currentIndex=y)}function h(){var k;if(!i())return;const v=((k=e.deck)==null?void 0:k.slides.length)||0;let y=e.currentIndex;e.options.loop?y=(e.currentIndex-1+v)%v:y--,y!==e.currentIndex&&(e.currentIndex=y)}function p(v){e.deck&&v>=0&&v<e.deck.slides.length&&e.currentIndex!==v&&(e.currentIndex=v)}function g(v,y){if(!e.deck)return;const k=ol(e.deck,v,y);e.deck=a(k)}function m(v,y,k){if(!e.deck)return;const $=Fs(e.deck,v),O=k!==void 0?k:Array.isArray($)?$.length:0,A=a(y);e.deck=NM(e.deck,v,O,A)}function _(v,y){e.deck&&(e.deck=RM(e.deck,v,y))}function E(v,y,k){e.deck&&(e.deck=$M(e.deck,v,y,k))}function w(v,y){const k=e.elementState[v]||{},$={...k};y.visible!==void 0&&($.visible=y.visible),y.opacity!==void 0&&($.opacity=y.opacity),y.transform!==void 0&&($.transform=y.transform),y.class!==void 0&&($.class=y.class),y.style!==void 0&&($.style={...k.style||{},...y.style}),e.elementState[v]=$}return{state:$a(e),currentSlide:n,hasNext:r,hasPrev:i,progress:o,setOptions:s,loadDeck:l,patchDeck:u,updateNode:g,addNode:m,removeNode:_,moveNode:E,setElementState:w,recordAction:c,next:d,prev:h,goto:p}}function um(){const t=yt(vn);if(!t)throw new Error("Lumina: Component must be used within a Lumina instance.");return{slide:Z(()=>t.currentSlide()),index:Z(()=>t.state.currentIndex),total:Z(()=>{var e;return((e=t.state.deck)==null?void 0:e.slides.length)||0}),next:t.next,prev:t.prev,goto:t.goto,options:t.state.options}}function FM(){const t=yt(vn);if(!t)return;let e=0;const n=300,r=i=>{var u,c;const{options:o}=t.state;if(!o.keyboard||!o.navigation)return;const s=Date.now();if(s-e<n)return;const a=((u=o.keys)==null?void 0:u.next)||[],l=((c=o.keys)==null?void 0:c.prev)||[];a.includes(i.key)?(t.next(),e=s):l.includes(i.key)&&(t.prev(),e=s)};jt(()=>{window.addEventListener("keydown",r)}),sr(()=>{window.removeEventListener("keydown",r)})}const zM=50,UM=1.5,BM=400;function jM(){const t=yt(vn);if(!t)return{onTouchStart:()=>{},onTouchEnd:()=>{}};const e=we(null);let n=0;return{onTouchStart:o=>{o.touches.length===1&&(e.value={x:o.touches[0].clientX,y:o.touches[0].clientY})},onTouchEnd:o=>{const s=e.value;if(e.value=null,!s||o.changedTouches.length!==1)return;const{options:a}=t.state;if(!a.navigation)return;const l=Date.now();if(l-n<BM)return;const u=o.changedTouches[0],c=u.clientX-s.x,d=u.clientY-s.y;Math.abs(c)<zM||Math.abs(c)<=Math.abs(d)*UM||(c<0&&t.hasNext()?(t.next(),n=l):c>0&&t.hasPrev()&&(t.prev(),n=l))}}}class cm{constructor(){dr(this,"handlers",new Map)}on(e,n){this.handlers.has(e)||this.handlers.set(e,new Set),this.handlers.get(e).add(n)}off(e,n){const r=this.handlers.get(e);r&&r.delete(n)}emit(e,n){const r=this.handlers.get(e);r&&r.forEach(i=>{try{i(n)}catch(o){console.error(`[LuminaBus] Error in handler for event "${e}":`,o)}})}clear(){this.handlers.clear()}}const Oi=new cm,Fu=Object.freeze(Object.defineProperty({__proto__:null,EventBus:cm,bus:Oi},Symbol.toStringTag,{value:"Module"}));function fo(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Zx(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}/*!
|
|
48
48
|
* GSAP 3.14.2
|
|
49
49
|
* https://gsap.com
|
|
50
50
|
*
|
|
@@ -58,7 +58,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
58
58
|
* Copyright 2008-2025, GreenSock. All rights reserved.
|
|
59
59
|
* Subject to the terms at https://gsap.com/standard-license
|
|
60
60
|
* @author: Jack Doyle, jack@greensock.com
|
|
61
|
-
*/var jw,Ko,gl,Bm,Ws,Hw,jm,F4=function(){return typeof window<"u"},po={},Ks=180/Math.PI,ml=Math.PI/180,vl=Math.atan2,Gw=1e8,Hm=/([A-Z])/g,z4=/(left|right|width|margin|padding|x)/i,U4=/[\s,\(]\S/,Di={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Gm=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},B4=function(e,n){return n.set(n.t,n.p,e===1?n.e:Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},j4=function(e,n){return n.set(n.t,n.p,e?Math.round((n.s+n.c*e)*1e4)/1e4+n.u:n.b,n)},H4=function(e,n){return n.set(n.t,n.p,e===1?n.e:e?Math.round((n.s+n.c*e)*1e4)/1e4+n.u:n.b,n)},G4=function(e,n){var r=n.s+n.c*e;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},Ww=function(e,n){return n.set(n.t,n.p,e?n.e:n.b,n)},Kw=function(e,n){return n.set(n.t,n.p,e!==1?n.b:n.e,n)},W4=function(e,n,r){return e.style[n]=r},K4=function(e,n,r){return e.style.setProperty(n,r)},Z4=function(e,n,r){return e._gsap[n]=r},X4=function(e,n,r){return e._gsap.scaleX=e._gsap.scaleY=r},Y4=function(e,n,r,i,o){var s=e._gsap;s.scaleX=s.scaleY=r,s.renderTransform(o,s)},J4=function(e,n,r,i,o){var s=e._gsap;s[n]=r,s.renderTransform(o,s)},an="transform",wr=an+"Origin",Q4=function t(e,n){var r=this,i=this.target,o=i.style,s=i._gsap;if(e in po&&o){if(this.tfm=this.tfm||{},e!=="transform")e=Di[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return r.tfm[a]=go(i,a)}):this.tfm[e]=s.x?s[e]:go(i,e),e===wr&&(this.tfm.zOrigin=s.zOrigin);else return Di.transform.split(",").forEach(function(a){return t.call(r,a,n)});if(this.props.indexOf(an)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(wr,n,"")),e=an}(o||n)&&this.props.push(e,n,o[e])},Zw=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},q4=function(){var e=this.props,n=this.target,r=n.style,i=n._gsap,o,s;for(o=0;o<e.length;o+=3)e[o+1]?e[o+1]===2?n[e[o]](e[o+2]):n[e[o]]=e[o+2]:e[o+2]?r[e[o]]=e[o+2]:r.removeProperty(e[o].substr(0,2)==="--"?e[o]:e[o].replace(Hm,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)i[s]=this.tfm[s];i.svg&&(i.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),o=jm(),(!o||!o.isStart)&&!r[an]&&(Zw(r),i.zOrigin&&r[wr]&&(r[wr]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},Xw=function(e,n){var r={target:e,props:[],revert:q4,save:Q4};return e._gsap||xr.core.getCache(e),n&&e.style&&e.nodeType&&n.split(",").forEach(function(i){return r.save(i)}),r},Yw,Wm=function(e,n){var r=Ko.createElementNS?Ko.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Ko.createElement(e);return r&&r.style?r:Ko.createElement(e)},Lr=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(Hm,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,yl(n)||n,1)||""},Jw="O,Moz,ms,Ms,Webkit".split(","),yl=function(e,n,r){var i=n||Ws,o=i.style,s=5;if(e in o&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);s--&&!(Jw[s]+e in o););return s<0?null:(s===3?"ms":s>=0?Jw[s]:"")+e},Km=function(){F4()&&window.document&&(jw=window,Ko=jw.document,gl=Ko.documentElement,Ws=Wm("div")||{style:{}},Wm("div"),an=yl(an),wr=an+"Origin",Ws.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Yw=!!yl("perspective"),jm=xr.core.reverting,Bm=1)},Qw=function(e){var n=e.ownerSVGElement,r=Wm("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0),o;i.style.display="block",r.appendChild(i),gl.appendChild(r);try{o=i.getBBox()}catch{}return r.removeChild(i),gl.removeChild(r),o},qw=function(e,n){for(var r=n.length;r--;)if(e.hasAttribute(n[r]))return e.getAttribute(n[r])},eS=function(e){var n,r;try{n=e.getBBox()}catch{n=Qw(e),r=1}return n&&(n.width||n.height)||r||(n=Qw(e)),n&&!n.width&&!n.x&&!n.y?{x:+qw(e,["x","cx","x1"])||0,y:+qw(e,["y","cy","y1"])||0,width:0,height:0}:n},tS=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&eS(e))},Zo=function(e,n){if(n){var r=e.style,i;n in po&&n!==wr&&(n=an),r.removeProperty?(i=n.substr(0,2),(i==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(i==="--"?n:n.replace(Hm,"-$1").toLowerCase())):r.removeAttribute(n)}},Xo=function(e,n,r,i,o,s){var a=new _r(e._pt,n,r,0,1,s?Kw:Ww);return e._pt=a,a.b=i,a.e=o,e._props.push(r),a},nS={deg:1,rad:1,turn:1},e5={grid:1,flex:1},Yo=function t(e,n,r,i){var o=parseFloat(r)||0,s=(r+"").trim().substr((o+"").length)||"px",a=Ws.style,l=z4.test(n),u=e.tagName.toLowerCase()==="svg",c=(u?"client":"offset")+(l?"Width":"Height"),d=100,h=i==="px",p=i==="%",g,m,_,E;if(i===s||!o||nS[i]||nS[s])return o;if(s!=="px"&&!h&&(o=t(e,n,r,"px")),E=e.getCTM&&tS(e),(p||s==="%")&&(po[n]||~n.indexOf("adius")))return g=E?e.getBBox()[l?"width":"height"]:e[c],yn(p?o/g*d:o/100*g);if(a[l?"width":"height"]=d+(h?s:i),m=i!=="rem"&&~n.indexOf("adius")||i==="em"&&e.appendChild&&!u?e:e.parentNode,E&&(m=(e.ownerSVGElement||{}).parentNode),(!m||m===Ko||!m.appendChild)&&(m=Ko.body),_=m._gsap,_&&p&&_.width&&l&&_.time===Mr.time&&!_.uncache)return yn(o/_.width*d);if(p&&(n==="height"||n==="width")){var w=e.style[n];e.style[n]=d+i,g=e[c],w?e.style[n]=w:Zo(e,n)}else(p||s==="%")&&!e5[Lr(m,"display")]&&(a.position=Lr(e,"position")),m===e&&(a.position="static"),m.appendChild(Ws),g=Ws[c],m.removeChild(Ws),a.position="absolute";return l&&p&&(_=Us(m),_.time=Mr.time,_.width=m[c]),yn(h?g*o/d:g&&o?d/g*o:0)},go=function(e,n,r,i){var o;return Bm||Km(),n in Di&&n!=="transform"&&(n=Di[n],~n.indexOf(",")&&(n=n.split(",")[0])),po[n]&&n!=="transform"?(o=Qu(e,i),o=n!=="transformOrigin"?o[n]:o.svg?o.origin:Ff(Lr(e,wr))+" "+o.zOrigin+"px"):(o=e.style[n],(!o||o==="auto"||i||~(o+"").indexOf("calc("))&&(o=Vf[n]&&Vf[n](e,n,r)||Lr(e,n)||ow(e,n)||(n==="opacity"?1:0))),r&&!~(o+"").trim().indexOf(" ")?Yo(e,n,o,r)+r:o},t5=function(e,n,r,i){if(!r||r==="none"){var o=yl(n,e,1),s=o&&Lr(e,o,1);s&&s!==r?(n=o,r=s):n==="borderColor"&&(r=Lr(e,"borderTopColor"))}var a=new _r(this._pt,e.style,n,0,1,Fw),l=0,u=0,c,d,h,p,g,m,_,E,w,v,y,k;if(a.b=r,a.e=i,r+="",i+="",i.substring(0,6)==="var(--"&&(i=Lr(e,i.substring(4,i.indexOf(")")))),i==="auto"&&(m=e.style[n],e.style[n]=i,i=Lr(e,n)||i,m?e.style[n]=m:Zo(e,n)),c=[r,i],Pw(c),r=c[0],i=c[1],h=r.match(ll)||[],k=i.match(ll)||[],k.length){for(;d=ll.exec(i);)_=d[0],w=i.substring(l,d.index),g?g=(g+1)%5:(w.substr(-5)==="rgba("||w.substr(-5)==="hsla(")&&(g=1),_!==(m=h[u++]||"")&&(p=parseFloat(m)||0,y=m.substr((p+"").length),_.charAt(1)==="="&&(_=ul(p,_)+y),E=parseFloat(_),v=_.substr((E+"").length),l=ll.lastIndex-v.length,v||(v=v||Or.units[n]||y,l===i.length&&(i+=v,a.e+=v)),y!==v&&(p=Yo(e,n,m,v)||0),a._pt={_next:a._pt,p:w||u===1?w:",",s:p,c:E-p,m:g&&g<4||n==="zIndex"?Math.round:0});a.c=l<i.length?i.substring(l,i.length):""}else a.r=n==="display"&&i==="none"?Kw:Ww;return qx.test(i)&&(a.e=0),this._pt=a,a},rS={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},n5=function(e){var n=e.split(" "),r=n[0],i=n[1]||"50%";return(r==="top"||r==="bottom"||i==="left"||i==="right")&&(e=r,r=i,i=e),n[0]=rS[r]||r,n[1]=rS[i]||i,n.join(" ")},r5=function(e,n){if(n.tween&&n.tween._time===n.tween._dur){var r=n.t,i=r.style,o=n.u,s=r._gsap,a,l,u;if(o==="all"||o===!0)i.cssText="",l=1;else for(o=o.split(","),u=o.length;--u>-1;)a=o[u],po[a]&&(l=1,a=a==="transformOrigin"?wr:an),Zo(r,a);l&&(Zo(r,an),s&&(s.svg&&r.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",Qu(r,1),s.uncache=1,Zw(i)))}},Vf={clearProps:function(e,n,r,i,o){if(o.data!=="isFromStart"){var s=e._pt=new _r(e._pt,n,r,0,0,r5);return s.u=i,s.pr=-10,s.tween=o,e._props.push(r),1}}},Ju=[1,0,0,1,0,0],iS={},oS=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},sS=function(e){var n=Lr(e,an);return oS(n)?Ju:n.substr(7).match(Qx).map(yn)},Zm=function(e,n){var r=e._gsap||Us(e),i=e.style,o=sS(e),s,a,l,u;return r.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,o=[l.a,l.b,l.c,l.d,l.e,l.f],o.join(",")==="1,0,0,1,0,0"?Ju:o):(o===Ju&&!e.offsetParent&&e!==gl&&!r.svg&&(l=i.display,i.display="block",s=e.parentNode,(!s||!e.offsetParent&&!e.getBoundingClientRect().width)&&(u=1,a=e.nextElementSibling,gl.appendChild(e)),o=sS(e),l?i.display=l:Zo(e,"display"),u&&(a?s.insertBefore(e,a):s?s.appendChild(e):gl.removeChild(e))),n&&o.length>6?[o[0],o[1],o[4],o[5],o[12],o[13]]:o)},Xm=function(e,n,r,i,o,s){var a=e._gsap,l=o||Zm(e,!0),u=a.xOrigin||0,c=a.yOrigin||0,d=a.xOffset||0,h=a.yOffset||0,p=l[0],g=l[1],m=l[2],_=l[3],E=l[4],w=l[5],v=n.split(" "),y=parseFloat(v[0])||0,k=parseFloat(v[1])||0,$,O,A,x;r?l!==Ju&&(O=p*_-g*m)&&(A=y*(_/O)+k*(-m/O)+(m*w-_*E)/O,x=y*(-g/O)+k*(p/O)-(p*w-g*E)/O,y=A,k=x):($=eS(e),y=$.x+(~v[0].indexOf("%")?y/100*$.width:y),k=$.y+(~(v[1]||v[0]).indexOf("%")?k/100*$.height:k)),i||i!==!1&&a.smooth?(E=y-u,w=k-c,a.xOffset=d+(E*p+w*m)-E,a.yOffset=h+(E*g+w*_)-w):a.xOffset=a.yOffset=0,a.xOrigin=y,a.yOrigin=k,a.smooth=!!i,a.origin=n,a.originIsAbsolute=!!r,e.style[wr]="0px 0px",s&&(Xo(s,a,"xOrigin",u,y),Xo(s,a,"yOrigin",c,k),Xo(s,a,"xOffset",d,a.xOffset),Xo(s,a,"yOffset",h,a.yOffset)),e.setAttribute("data-svg-origin",y+" "+k)},Qu=function(e,n){var r=e._gsap||new Rw(e);if("x"in r&&!n&&!r.uncache)return r;var i=e.style,o=r.scaleX<0,s="px",a="deg",l=getComputedStyle(e),u=Lr(e,wr)||"0",c,d,h,p,g,m,_,E,w,v,y,k,$,O,A,x,N,P,b,S,I,V,M,H,G,q,oe,ae,he,xe,Ee,de;return c=d=h=m=_=E=w=v=y=0,p=g=1,r.svg=!!(e.getCTM&&tS(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[an]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[an]!=="none"?l[an]:"")),i.scale=i.rotate=i.translate="none"),O=Zm(e,r.svg),r.svg&&(r.uncache?(G=e.getBBox(),u=r.xOrigin-G.x+"px "+(r.yOrigin-G.y)+"px",H=""):H=!n&&e.getAttribute("data-svg-origin"),Xm(e,H||u,!!H||r.originIsAbsolute,r.smooth!==!1,O)),k=r.xOrigin||0,$=r.yOrigin||0,O!==Ju&&(P=O[0],b=O[1],S=O[2],I=O[3],c=V=O[4],d=M=O[5],O.length===6?(p=Math.sqrt(P*P+b*b),g=Math.sqrt(I*I+S*S),m=P||b?vl(b,P)*Ks:0,w=S||I?vl(S,I)*Ks+m:0,w&&(g*=Math.abs(Math.cos(w*ml))),r.svg&&(c-=k-(k*P+$*S),d-=$-(k*b+$*I))):(de=O[6],xe=O[7],oe=O[8],ae=O[9],he=O[10],Ee=O[11],c=O[12],d=O[13],h=O[14],A=vl(de,he),_=A*Ks,A&&(x=Math.cos(-A),N=Math.sin(-A),H=V*x+oe*N,G=M*x+ae*N,q=de*x+he*N,oe=V*-N+oe*x,ae=M*-N+ae*x,he=de*-N+he*x,Ee=xe*-N+Ee*x,V=H,M=G,de=q),A=vl(-S,he),E=A*Ks,A&&(x=Math.cos(-A),N=Math.sin(-A),H=P*x-oe*N,G=b*x-ae*N,q=S*x-he*N,Ee=I*N+Ee*x,P=H,b=G,S=q),A=vl(b,P),m=A*Ks,A&&(x=Math.cos(A),N=Math.sin(A),H=P*x+b*N,G=V*x+M*N,b=b*x-P*N,M=M*x-V*N,P=H,V=G),_&&Math.abs(_)+Math.abs(m)>359.9&&(_=m=0,E=180-E),p=yn(Math.sqrt(P*P+b*b+S*S)),g=yn(Math.sqrt(M*M+de*de)),A=vl(V,M),w=Math.abs(A)>2e-4?A*Ks:0,y=Ee?1/(Ee<0?-Ee:Ee):0),r.svg&&(H=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!oS(Lr(e,an)),H&&e.setAttribute("transform",H))),Math.abs(w)>90&&Math.abs(w)<270&&(o?(p*=-1,w+=m<=0?180:-180,m+=m<=0?180:-180):(g*=-1,w+=w<=0?180:-180)),n=n||r.uncache,r.x=c-((r.xPercent=c&&(!n&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-c)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+s,r.y=d-((r.yPercent=d&&(!n&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-d)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+s,r.z=h+s,r.scaleX=yn(p),r.scaleY=yn(g),r.rotation=yn(m)+a,r.rotationX=yn(_)+a,r.rotationY=yn(E)+a,r.skewX=w+a,r.skewY=v+a,r.transformPerspective=y+s,(r.zOrigin=parseFloat(u.split(" ")[2])||!n&&r.zOrigin||0)&&(i[wr]=Ff(u)),r.xOffset=r.yOffset=0,r.force3D=Or.force3D,r.renderTransform=r.svg?o5:Yw?aS:i5,r.uncache=0,r},Ff=function(e){return(e=e.split(" "))[0]+" "+e[1]},Ym=function(e,n,r){var i=qn(n);return yn(parseFloat(n)+parseFloat(Yo(e,"x",r+"px",i)))+i},i5=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,aS(e,n)},Zs="0deg",qu="0px",Xs=") ",aS=function(e,n){var r=n||this,i=r.xPercent,o=r.yPercent,s=r.x,a=r.y,l=r.z,u=r.rotation,c=r.rotationY,d=r.rotationX,h=r.skewX,p=r.skewY,g=r.scaleX,m=r.scaleY,_=r.transformPerspective,E=r.force3D,w=r.target,v=r.zOrigin,y="",k=E==="auto"&&e&&e!==1||E===!0;if(v&&(d!==Zs||c!==Zs)){var $=parseFloat(c)*ml,O=Math.sin($),A=Math.cos($),x;$=parseFloat(d)*ml,x=Math.cos($),s=Ym(w,s,O*x*-v),a=Ym(w,a,-Math.sin($)*-v),l=Ym(w,l,A*x*-v+v)}_!==qu&&(y+="perspective("+_+Xs),(i||o)&&(y+="translate("+i+"%, "+o+"%) "),(k||s!==qu||a!==qu||l!==qu)&&(y+=l!==qu||k?"translate3d("+s+", "+a+", "+l+") ":"translate("+s+", "+a+Xs),u!==Zs&&(y+="rotate("+u+Xs),c!==Zs&&(y+="rotateY("+c+Xs),d!==Zs&&(y+="rotateX("+d+Xs),(h!==Zs||p!==Zs)&&(y+="skew("+h+", "+p+Xs),(g!==1||m!==1)&&(y+="scale("+g+", "+m+Xs),w.style[an]=y||"translate(0, 0)"},o5=function(e,n){var r=n||this,i=r.xPercent,o=r.yPercent,s=r.x,a=r.y,l=r.rotation,u=r.skewX,c=r.skewY,d=r.scaleX,h=r.scaleY,p=r.target,g=r.xOrigin,m=r.yOrigin,_=r.xOffset,E=r.yOffset,w=r.forceCSS,v=parseFloat(s),y=parseFloat(a),k,$,O,A,x;l=parseFloat(l),u=parseFloat(u),c=parseFloat(c),c&&(c=parseFloat(c),u+=c,l+=c),l||u?(l*=ml,u*=ml,k=Math.cos(l)*d,$=Math.sin(l)*d,O=Math.sin(l-u)*-h,A=Math.cos(l-u)*h,u&&(c*=ml,x=Math.tan(u-c),x=Math.sqrt(1+x*x),O*=x,A*=x,c&&(x=Math.tan(c),x=Math.sqrt(1+x*x),k*=x,$*=x)),k=yn(k),$=yn($),O=yn(O),A=yn(A)):(k=d,A=h,$=O=0),(v&&!~(s+"").indexOf("px")||y&&!~(a+"").indexOf("px"))&&(v=Yo(p,"x",s,"px"),y=Yo(p,"y",a,"px")),(g||m||_||E)&&(v=yn(v+g-(g*k+m*O)+_),y=yn(y+m-(g*$+m*A)+E)),(i||o)&&(x=p.getBBox(),v=yn(v+i/100*x.width),y=yn(y+o/100*x.height)),x="matrix("+k+","+$+","+O+","+A+","+v+","+y+")",p.setAttribute("transform",x),w&&(p.style[an]=x)},s5=function(e,n,r,i,o){var s=360,a=kn(o),l=parseFloat(o)*(a&&~o.indexOf("rad")?Ks:1),u=l-i,c=i+u+"deg",d,h;return a&&(d=o.split("_")[1],d==="short"&&(u%=s,u!==u%(s/2)&&(u+=u<0?s:-s)),d==="cw"&&u<0?u=(u+s*Gw)%s-~~(u/s)*s:d==="ccw"&&u>0&&(u=(u-s*Gw)%s-~~(u/s)*s)),e._pt=h=new _r(e._pt,n,r,i,u,B4),h.e=c,h.u="deg",e._props.push(r),h},lS=function(e,n){for(var r in n)e[r]=n[r];return e},a5=function(e,n,r){var i=lS({},r._gsap),o="perspective,force3D,transformOrigin,svgOrigin",s=r.style,a,l,u,c,d,h,p,g;i.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),s[an]=n,a=Qu(r,1),Zo(r,an),r.setAttribute("transform",u)):(u=getComputedStyle(r)[an],s[an]=n,a=Qu(r,1),s[an]=u);for(l in po)u=i[l],c=a[l],u!==c&&o.indexOf(l)<0&&(p=qn(u),g=qn(c),d=p!==g?Yo(r,l,u,g):parseFloat(u),h=parseFloat(c),e._pt=new _r(e._pt,a,l,d,h-d,Gm),e._pt.u=g||0,e._props.push(l));lS(a,i)};br("padding,margin,Width,Radius",function(t,e){var n="Top",r="Right",i="Bottom",o="Left",s=(e<3?[n,r,i,o]:[n+o,n+r,i+r,i+o]).map(function(a){return e<2?t+a:"border"+a+t});Vf[e>1?"border"+t:t]=function(a,l,u,c,d){var h,p;if(arguments.length<4)return h=s.map(function(g){return go(a,g,u)}),p=h.join(" "),p.split(h[0]).length===5?h[0]:p;h=(c+"").split(" "),p={},s.forEach(function(g,m){return p[g]=h[m]=h[m]||h[(m-1)/2|0]}),a.init(l,p,d)}});var uS={name:"css",register:Km,targetTest:function(e){return e.style&&e.nodeType},init:function(e,n,r,i,o){var s=this._props,a=e.style,l=r.vars.startAt,u,c,d,h,p,g,m,_,E,w,v,y,k,$,O,A,x;Bm||Km(),this.styles=this.styles||Xw(e),A=this.styles.props,this.tween=r;for(m in n)if(m!=="autoRound"&&(c=n[m],!(Rr[m]&&$w(m,n,r,i,e,o)))){if(p=typeof c,g=Vf[m],p==="function"&&(c=c.call(r,i,e,o),p=typeof c),p==="string"&&~c.indexOf("random(")&&(c=Gu(c)),g)g(this,e,m,c,r)&&(O=1);else if(m.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(m)+"").trim(),c+="",Go.lastIndex=0,Go.test(u)||(_=qn(u),E=qn(c),E?_!==E&&(u=Yo(e,m,u,E)+E):_&&(c+=_)),this.add(a,"setProperty",u,c,i,o,0,0,m),s.push(m),A.push(m,0,a[m]);else if(p!=="undefined"){if(l&&m in l?(u=typeof l[m]=="function"?l[m].call(r,i,e,o):l[m],kn(u)&&~u.indexOf("random(")&&(u=Gu(u)),qn(u+"")||u==="auto"||(u+=Or.units[m]||qn(go(e,m))||""),(u+"").charAt(1)==="="&&(u=go(e,m))):u=go(e,m),h=parseFloat(u),w=p==="string"&&c.charAt(1)==="="&&c.substr(0,2),w&&(c=c.substr(2)),d=parseFloat(c),m in Di&&(m==="autoAlpha"&&(h===1&&go(e,"visibility")==="hidden"&&d&&(h=0),A.push("visibility",0,a.visibility),Xo(this,a,"visibility",h?"inherit":"hidden",d?"inherit":"hidden",!d)),m!=="scale"&&m!=="transform"&&(m=Di[m],~m.indexOf(",")&&(m=m.split(",")[0]))),v=m in po,v){if(this.styles.save(m),x=c,p==="string"&&c.substring(0,6)==="var(--"){if(c=Lr(e,c.substring(4,c.indexOf(")"))),c.substring(0,5)==="calc("){var N=e.style.perspective;e.style.perspective=c,c=Lr(e,"perspective"),N?e.style.perspective=N:Zo(e,"perspective")}d=parseFloat(c)}if(y||(k=e._gsap,k.renderTransform&&!n.parseTransform||Qu(e,n.parseTransform),$=n.smoothOrigin!==!1&&k.smooth,y=this._pt=new _r(this._pt,a,an,0,1,k.renderTransform,k,0,-1),y.dep=1),m==="scale")this._pt=new _r(this._pt,k,"scaleY",k.scaleY,(w?ul(k.scaleY,w+d):d)-k.scaleY||0,Gm),this._pt.u=0,s.push("scaleY",m),m+="X";else if(m==="transformOrigin"){A.push(wr,0,a[wr]),c=n5(c),k.svg?Xm(e,c,0,$,0,this):(E=parseFloat(c.split(" ")[2])||0,E!==k.zOrigin&&Xo(this,k,"zOrigin",k.zOrigin,E),Xo(this,a,m,Ff(u),Ff(c)));continue}else if(m==="svgOrigin"){Xm(e,c,1,$,0,this);continue}else if(m in iS){s5(this,k,m,h,w?ul(h,w+c):c);continue}else if(m==="smoothOrigin"){Xo(this,k,"smooth",k.smooth,c);continue}else if(m==="force3D"){k[m]=c;continue}else if(m==="transform"){a5(this,c,e);continue}}else m in a||(m=yl(m)||m);if(v||(d||d===0)&&(h||h===0)&&!U4.test(c)&&m in a)_=(u+"").substr((h+"").length),d||(d=0),E=qn(c)||(m in Or.units?Or.units[m]:_),_!==E&&(h=Yo(e,m,u,E)),this._pt=new _r(this._pt,v?k:a,m,h,(w?ul(h,w+d):d)-h,!v&&(E==="px"||m==="zIndex")&&n.autoRound!==!1?G4:Gm),this._pt.u=E||0,v&&x!==c?(this._pt.b=u,this._pt.e=x,this._pt.r=H4):_!==E&&E!=="%"&&(this._pt.b=u,this._pt.r=j4);else if(m in a)t5.call(this,e,m,u,w?w+c:c);else if(m in e)this.add(e,m,u||e[m],w?w+c:c,i,o);else if(m!=="parseTransform"){ym(m,c);continue}v||(m in a?A.push(m,0,a[m]):typeof e[m]=="function"?A.push(m,2,e[m]()):A.push(m,1,u||e[m])),s.push(m)}}O&&zw(this)},render:function(e,n){if(n.tween._time||!jm())for(var r=n._pt;r;)r.r(e,r.d),r=r._next;else n.styles.revert()},get:go,aliases:Di,getSetter:function(e,n,r){var i=Di[n];return i&&i.indexOf(",")<0&&(n=i),n in po&&n!==wr&&(e._gsap.x||go(e,"x"))?r&&Hw===r?n==="scale"?X4:Z4:(Hw=r||{})&&(n==="scale"?Y4:J4):e.style&&!hm(e.style[n])?W4:~n.indexOf("-")?K4:Lm(e,n)},core:{_removeProperty:Zo,_getMatrix:Zm}};xr.utils.checkPrefix=yl,xr.core.getStyleSaver=Xw,function(t,e,n,r){var i=br(t+","+e+","+n,function(o){po[o]=1});br(e,function(o){Or.units[o]="deg",iS[o]=1}),Di[i[13]]=t+","+e,br(r,function(o){var s=o.split(":");Di[s[1]]=i[s[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),br("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){Or.units[t]="px"}),xr.registerPlugin(uS);var zt=xr.registerPlugin(uS)||xr;zt.core.Tween;const l5=Te({__name:"LuminaBackground",props:{orbColor:{default:"var(--lumina-color-primary, #3b82f6)"},orbPos:{default:()=>({top:"-20%",left:"-10%"})},orbOpacity:{},orbBlur:{},orbSize:{default:"var(--lumina-orb-size, 60vw)"}},setup(t){const e=t,n=we(null),r=we(null);let i=null;const o=Z(()=>({backgroundColor:e.orbColor,width:e.orbSize,height:e.orbSize,top:e.orbPos.top,left:e.orbPos.left,transition:"top 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), left 1.2s cubic-bezier(0.2, 0.8, 0.2, 1)"}));return jt(()=>{i=zt.context(()=>{if(!n.value)return;zt.to(n.value,{scale:1.1,opacity:"+=0.1",duration:8,ease:"sine.inOut",yoyo:!0,repeat:-1});const s=a=>{const{innerWidth:l,innerHeight:u}=window,c=(a.clientX/l-.5)*50,d=(a.clientY/u-.5)*50;zt.to(n.value,{x:c,y:d,duration:2,ease:"power2.out",overwrite:"auto"})};return window.addEventListener("mousemove",s),()=>window.removeEventListener("mousemove",s)},r.value||void 0)}),sr(()=>{i==null||i.revert()}),(s,a)=>(j(),K("div",{class:"absolute inset-0 z-0 overflow-hidden pointer-events-none select-none",ref_key:"containerRef",ref:r},[C("div",{ref_key:"orbRef",ref:n,class:"ambient-orb",style:Xe(o.value)},null,4),a[0]||(a[0]=C("div",{class:"absolute inset-0 opacity-[0.04]",style:{"background-image":"url('https://grainy-gradients.vercel.app/noise.svg')"}},null,-1))],512))}}),Jr=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n},cS=Jr(l5,[["__scopeId","data-v-8ff00f93"]]),u5={class:"h-full w-full relative flex flex-col text-white overflow-hidden","data-lumina-root":"",style:{"background-color":"var(--lumina-colors-background, #030303)",color:"var(--lumina-colors-text, #ffffff)"}},c5={key:0,class:"absolute top-0 right-0 p-6 z-50 flex gap-4 pointer-events-auto"},d5={class:"relative h-full w-full md:w-[450px] bg-[#0a0a0a]/95 border-l border-white/10 shadow-2xl overflow-auto text-left flex flex-col transform transition-transform duration-300"},f5={class:"p-6 pb-2 border-b border-white/5 flex items-center justify-between shrink-0"},h5={class:"p-6"},p5={class:"text-[10px] font-mono text-green-400 whitespace-pre-wrap"},g5={key:1,class:"fixed md:absolute bottom-0 left-0 right-0 w-full z-40 px-8 py-6 pb-[max(1.5rem,env(safe-area-inset-bottom))] bg-gradient-to-t from-black/60 via-black/20 to-transparent flex justify-between items-end pointer-events-none"},m5={key:0,class:"pointer-events-auto text-left"},v5={class:"text-[10px] font-bold tracking-[0.2em] uppercase mb-1",style:{color:"var(--lumina-color-muted)"}},y5={class:"flex items-center gap-2 text-sm font-mono",style:{color:"var(--lumina-color-text-safe, var(--lumina-color-text))",opacity:.8}},b5={key:0,class:"h-px w-8",style:{backgroundColor:"var(--lumina-color-text-safe, var(--lumina-color-text))",opacity:.3}},_5={key:1,class:"flex-1"},x5={key:2,class:"pointer-events-auto flex gap-3"},w5=["disabled"],S5=["disabled"],dS=Te({__name:"LuminaDeck",setup(t){const{slide:e,index:n,total:r,next:i,prev:o,options:s}=um(),a=we(null),l=yt(vn),u=Z(()=>l.hasNext()),c=Z(()=>l.hasPrev()),d=Z(()=>{var P,b;return(b=(P=l.state.deck)==null?void 0:P.meta)==null?void 0:b.title}),h=Z(()=>l.state.options.ui),p=Z(()=>l.state.options.navigation);FM();const{onTouchStart:g,onTouchEnd:m}=jM(),_=we({top:"-20%",left:"-10%"}),E=()=>{const P=(b,S)=>Math.floor(Math.random()*(S-b+1)+b);return{top:`${P(-25,65)}%`,left:`${P(-25,65)}%`}};Qe(n,(P,b)=>{P===0?_.value={top:"-20%",left:"-10%"}:b!==void 0&&(_.value=E()),a.value&&(a.value.scrollTop=0)},{immediate:!0});const w=we({showJson:!1}),v=yt("LuminaEngine"),y=()=>{v&&typeof v.openSpeakerNotes=="function"?v.openSpeakerNotes():(console.warn("Lumina Engine not found or openSpeakerNotes not available"),alert("Speaker notes require the full Lumina Engine environment."))},k=Z(()=>s.debug),$=Z(()=>!e.value||!e.value.type?null:`layout-${e.value.type}`),O=Z(()=>{var P,b,S,I,V,M;return{top:((S=(b=(P=e.value)==null?void 0:P.meta)==null?void 0:b.orbPos)==null?void 0:S.top)||_.value.top,left:((M=(V=(I=e.value)==null?void 0:I.meta)==null?void 0:V.orbPos)==null?void 0:M.left)||_.value.left}}),A=P=>{Oi.emit("action",P)},x=(P,b)=>{var V;const S=P,I=P.__vue_app__||P.__vue_parent__||((V=P==null?void 0:P.__vueParentComponent)==null?void 0:V.proxy);S.style.opacity="1",I&&typeof I.animateIn=="function"&&I.animateIn(),b()},N=async(P,b)=>{var G,q,oe,ae;const{options:S}=l.state;if(((G=S.animation)==null?void 0:G.enabled)===!1){b();return}const I=((q=S.animation)==null?void 0:q.durationOut)||.5,V=((oe=S.animation)==null?void 0:oe.type)||"cascade",M=P.__vue_app__||P.__vue_parent__||((ae=P==null?void 0:P.__vueParentComponent)==null?void 0:ae.proxy);M&&typeof M.animateOut=="function"&&await M.animateOut();const H=zt.timeline({onComplete:b});V==="fade"?H.to(P,{opacity:0,duration:I}):V==="zoom"?H.to(P,{opacity:0,scale:.95,filter:"blur(10px)",duration:I}):H.to(P,{opacity:0,y:-30,duration:I,ease:"power2.in"})};return(P,b)=>{var S,I,V,M,H,G,q;return j(),K("div",u5,[ue(cS,{"orb-color":(I=(S=re(e))==null?void 0:S.meta)==null?void 0:I.orbColor,"orb-pos":O.value},null,8,["orb-color","orb-pos"]),k.value?(j(),K("div",c5,[C("button",{onClick:b[0]||(b[0]=oe=>w.value.showJson=!w.value.showJson),class:"w-8 h-8 rounded-full glass-panel flex items-center justify-center text-gray-400 hover:text-white transition",title:"JSON"},[...b[8]||(b[8]=[C("i",{class:"ph-thin ph-code text-xs"},null,-1)])])])):Oe("",!0),ue(Xa,{name:"fade"},{default:ke(()=>[w.value.showJson?(j(),K("div",{key:0,class:"fixed inset-0 z-[100] flex justify-end",onClick:b[3]||(b[3]=kr(oe=>w.value.showJson=!1,["self"]))},[C("div",{class:"absolute inset-0 bg-black/20 backdrop-blur-sm transition-opacity",onClick:b[1]||(b[1]=oe=>w.value.showJson=!1)}),C("div",d5,[C("div",f5,[b[10]||(b[10]=C("span",{class:"text-xs font-bold text-gray-400 uppercase tracking-widest"},"Slide Data",-1)),C("button",{onClick:b[2]||(b[2]=oe=>w.value.showJson=!1),class:"w-8 h-8 rounded-full bg-white/5 hover:bg-white/10 flex items-center justify-center text-white/50 hover:text-white transition"},[...b[9]||(b[9]=[C("i",{class:"ph-thin ph-x"},null,-1)])])]),C("div",h5,[C("pre",p5,Ie(JSON.stringify(re(e),null,2)),1)])])])):Oe("",!0)]),_:1}),C("main",{ref_key:"viewport",ref:a,class:"flex-1 min-h-0 w-full relative overflow-y-auto overflow-x-hidden z-10 scroll-smooth touch-pan-y pb-24 md:pb-0",onTouchstart:b[4]||(b[4]=(...oe)=>re(g)&&re(g)(...oe)),onTouchend:b[5]||(b[5]=(...oe)=>re(m)&&re(m)(...oe))},[ue(Xa,{css:!1,onLeave:N,onEnter:x,mode:"out-in"},{default:ke(()=>[$.value?(j(),$e(Xn($.value),{key:re(n),data:re(e),"slide-index":re(n),onAction:A,class:"min-h-full w-full"},null,40,["data","slide-index"])):Oe("",!0)]),_:1})],544),(V=h.value)!=null&&V.visible?(j(),K("div",g5,[(M=h.value)!=null&&M.showSlideCount?(j(),K("div",m5,[C("h2",v5,Ie(d.value),1),C("div",y5,[C("span",null,Ie((re(n)+1).toString().padStart(2,"0")),1),(H=h.value)!=null&&H.showProgressBar?(j(),K("div",b5)):Oe("",!0),C("span",null,Ie(re(r).toString().padStart(2,"0")),1)])])):(j(),K("div",_5)),(G=h.value)!=null&&G.showControls?(j(),K("div",x5,[(q=re(e))!=null&&q.notes?(j(),K("button",{key:0,onClick:y,class:"w-12 h-12 rounded-full glass-panel hover:bg-white/10 flex items-center justify-center transition active:scale-95",title:"Open Speaker View"},[...b[11]||(b[11]=[C("i",{class:"ph-thin ph-presentation text-sm text-gray-400 hover:text-white"},null,-1)])])):Oe("",!0),C("button",{onClick:b[6]||(b[6]=(...oe)=>re(o)&&re(o)(...oe)),class:Se(["w-12 h-12 rounded-full glass-panel hover:bg-white/10 flex items-center justify-center transition active:scale-95",!c.value||!p.value?"opacity-30 cursor-not-allowed":""]),disabled:!c.value||!p.value},[...b[12]||(b[12]=[C("i",{class:"ph-thin ph-arrow-left"},null,-1)])],10,w5),C("button",{onClick:b[7]||(b[7]=(...oe)=>re(i)&&re(i)(...oe)),class:Se(["w-12 h-12 rounded-full bg-white text-black hover:scale-105 flex items-center justify-center transition shadow-lg active:scale-95",!u.value||!p.value?"opacity-30 cursor-not-allowed":""]),disabled:!u.value||!p.value},[...b[13]||(b[13]=[C("i",{class:"ph-thin ph-arrow-right"},null,-1)])],10,S5)])):Oe("",!0)])):Oe("",!0)])}}}),Jm=Symbol("EditorKey");function E5(t){const e=yt(vn);if(!e)throw new Error("Lumina Editor requires Lumina Store.");const n=we(null),r=we(null),i=we([]),o=we(-1),s=E=>{n.value=E},a=()=>!n.value||!e.state.deck?null:Fs(e.state.deck,n.value);let l=null;const u=we(!1),c=(E=!1)=>{if(u.value)return;l&&(clearTimeout(l),l=null);const w=()=>{if(o.value<i.value.length-1&&(i.value=i.value.slice(0,o.value+1)),e.state.deck){const v=i.value[o.value],y=JSON.parse(JSON.stringify(e.state.deck)),k=e.state.currentIndex;if(v&&JSON.stringify(v.deck)===JSON.stringify(y)&&v.currentIndex===k)return;i.value.push({deck:y,currentIndex:k,timestamp:Date.now()}),o.value++,i.value.length>50&&(i.value.shift(),o.value--)}};E?w():l=setTimeout(w,500)};Qe(()=>e.state.deck,E=>{E&&!u.value&&c(!1)},{deep:!0}),Qe(()=>e.state.currentIndex,()=>{u.value||c(!1)});const d=()=>{if(c(!0),o.value>0){u.value=!0,o.value--;const E=i.value[o.value];E&&(e.loadDeck(JSON.parse(JSON.stringify(E.deck))),e.goto(E.currentIndex)),setTimeout(()=>{u.value=!1},100)}},h=()=>{if(o.value<i.value.length-1){u.value=!0,o.value++;const E=i.value[o.value];E&&(e.loadDeck(JSON.parse(JSON.stringify(E.deck))),e.goto(E.currentIndex)),setTimeout(()=>{u.value=!1},100)}},p=E=>{(E.ctrlKey||E.metaKey)&&E.key==="z"?E.shiftKey?(E.preventDefault(),h()):(E.preventDefault(),d()):(E.ctrlKey||E.metaKey)&&E.key==="y"&&(E.preventDefault(),h())};jt(()=>{window.addEventListener("keydown",p),e.state.deck&&i.value.length===0&&c(!0)}),sr(()=>{window.removeEventListener("keydown",p)});const g=()=>{if(!n.value||!e.state.deck)return;const E=Fs(e.state.deck,n.value);E&&(r.value=JSON.parse(JSON.stringify(E)))},m=E=>{r.value&&e.addNode(E,JSON.parse(JSON.stringify(r.value)))},_=(E,w)=>{n.value&&e.updateNode(`${n.value}.${E}`,w)};return{selection:n,clipboard:r,store:e,canUndo:Z(()=>o.value>0),canRedo:Z(()=>o.value<i.value.length-1),select:s,getSelectedData:a,updateSelected:_,commit:c,undo:d,redo:h,copy:g,paste:m}}function si(){const t=yt(Jm);if(!t)throw new Error("useEditor must be used within LuminaStudio");return t}/*!
|
|
61
|
+
*/var jw,Ko,gl,Bm,Ws,Hw,jm,F4=function(){return typeof window<"u"},po={},Ks=180/Math.PI,ml=Math.PI/180,vl=Math.atan2,Gw=1e8,Hm=/([A-Z])/g,z4=/(left|right|width|margin|padding|x)/i,U4=/[\s,\(]\S/,Di={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Gm=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},B4=function(e,n){return n.set(n.t,n.p,e===1?n.e:Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},j4=function(e,n){return n.set(n.t,n.p,e?Math.round((n.s+n.c*e)*1e4)/1e4+n.u:n.b,n)},H4=function(e,n){return n.set(n.t,n.p,e===1?n.e:e?Math.round((n.s+n.c*e)*1e4)/1e4+n.u:n.b,n)},G4=function(e,n){var r=n.s+n.c*e;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},Ww=function(e,n){return n.set(n.t,n.p,e?n.e:n.b,n)},Kw=function(e,n){return n.set(n.t,n.p,e!==1?n.b:n.e,n)},W4=function(e,n,r){return e.style[n]=r},K4=function(e,n,r){return e.style.setProperty(n,r)},Z4=function(e,n,r){return e._gsap[n]=r},X4=function(e,n,r){return e._gsap.scaleX=e._gsap.scaleY=r},Y4=function(e,n,r,i,o){var s=e._gsap;s.scaleX=s.scaleY=r,s.renderTransform(o,s)},J4=function(e,n,r,i,o){var s=e._gsap;s[n]=r,s.renderTransform(o,s)},an="transform",wr=an+"Origin",Q4=function t(e,n){var r=this,i=this.target,o=i.style,s=i._gsap;if(e in po&&o){if(this.tfm=this.tfm||{},e!=="transform")e=Di[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return r.tfm[a]=go(i,a)}):this.tfm[e]=s.x?s[e]:go(i,e),e===wr&&(this.tfm.zOrigin=s.zOrigin);else return Di.transform.split(",").forEach(function(a){return t.call(r,a,n)});if(this.props.indexOf(an)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(wr,n,"")),e=an}(o||n)&&this.props.push(e,n,o[e])},Zw=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},q4=function(){var e=this.props,n=this.target,r=n.style,i=n._gsap,o,s;for(o=0;o<e.length;o+=3)e[o+1]?e[o+1]===2?n[e[o]](e[o+2]):n[e[o]]=e[o+2]:e[o+2]?r[e[o]]=e[o+2]:r.removeProperty(e[o].substr(0,2)==="--"?e[o]:e[o].replace(Hm,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)i[s]=this.tfm[s];i.svg&&(i.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),o=jm(),(!o||!o.isStart)&&!r[an]&&(Zw(r),i.zOrigin&&r[wr]&&(r[wr]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},Xw=function(e,n){var r={target:e,props:[],revert:q4,save:Q4};return e._gsap||xr.core.getCache(e),n&&e.style&&e.nodeType&&n.split(",").forEach(function(i){return r.save(i)}),r},Yw,Wm=function(e,n){var r=Ko.createElementNS?Ko.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Ko.createElement(e);return r&&r.style?r:Ko.createElement(e)},Lr=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(Hm,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,yl(n)||n,1)||""},Jw="O,Moz,ms,Ms,Webkit".split(","),yl=function(e,n,r){var i=n||Ws,o=i.style,s=5;if(e in o&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);s--&&!(Jw[s]+e in o););return s<0?null:(s===3?"ms":s>=0?Jw[s]:"")+e},Km=function(){F4()&&window.document&&(jw=window,Ko=jw.document,gl=Ko.documentElement,Ws=Wm("div")||{style:{}},Wm("div"),an=yl(an),wr=an+"Origin",Ws.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Yw=!!yl("perspective"),jm=xr.core.reverting,Bm=1)},Qw=function(e){var n=e.ownerSVGElement,r=Wm("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0),o;i.style.display="block",r.appendChild(i),gl.appendChild(r);try{o=i.getBBox()}catch{}return r.removeChild(i),gl.removeChild(r),o},qw=function(e,n){for(var r=n.length;r--;)if(e.hasAttribute(n[r]))return e.getAttribute(n[r])},eS=function(e){var n,r;try{n=e.getBBox()}catch{n=Qw(e),r=1}return n&&(n.width||n.height)||r||(n=Qw(e)),n&&!n.width&&!n.x&&!n.y?{x:+qw(e,["x","cx","x1"])||0,y:+qw(e,["y","cy","y1"])||0,width:0,height:0}:n},tS=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&eS(e))},Zo=function(e,n){if(n){var r=e.style,i;n in po&&n!==wr&&(n=an),r.removeProperty?(i=n.substr(0,2),(i==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(i==="--"?n:n.replace(Hm,"-$1").toLowerCase())):r.removeAttribute(n)}},Xo=function(e,n,r,i,o,s){var a=new _r(e._pt,n,r,0,1,s?Kw:Ww);return e._pt=a,a.b=i,a.e=o,e._props.push(r),a},nS={deg:1,rad:1,turn:1},e5={grid:1,flex:1},Yo=function t(e,n,r,i){var o=parseFloat(r)||0,s=(r+"").trim().substr((o+"").length)||"px",a=Ws.style,l=z4.test(n),u=e.tagName.toLowerCase()==="svg",c=(u?"client":"offset")+(l?"Width":"Height"),d=100,h=i==="px",p=i==="%",g,m,_,E;if(i===s||!o||nS[i]||nS[s])return o;if(s!=="px"&&!h&&(o=t(e,n,r,"px")),E=e.getCTM&&tS(e),(p||s==="%")&&(po[n]||~n.indexOf("adius")))return g=E?e.getBBox()[l?"width":"height"]:e[c],yn(p?o/g*d:o/100*g);if(a[l?"width":"height"]=d+(h?s:i),m=i!=="rem"&&~n.indexOf("adius")||i==="em"&&e.appendChild&&!u?e:e.parentNode,E&&(m=(e.ownerSVGElement||{}).parentNode),(!m||m===Ko||!m.appendChild)&&(m=Ko.body),_=m._gsap,_&&p&&_.width&&l&&_.time===Mr.time&&!_.uncache)return yn(o/_.width*d);if(p&&(n==="height"||n==="width")){var w=e.style[n];e.style[n]=d+i,g=e[c],w?e.style[n]=w:Zo(e,n)}else(p||s==="%")&&!e5[Lr(m,"display")]&&(a.position=Lr(e,"position")),m===e&&(a.position="static"),m.appendChild(Ws),g=Ws[c],m.removeChild(Ws),a.position="absolute";return l&&p&&(_=Us(m),_.time=Mr.time,_.width=m[c]),yn(h?g*o/d:g&&o?d/g*o:0)},go=function(e,n,r,i){var o;return Bm||Km(),n in Di&&n!=="transform"&&(n=Di[n],~n.indexOf(",")&&(n=n.split(",")[0])),po[n]&&n!=="transform"?(o=Qu(e,i),o=n!=="transformOrigin"?o[n]:o.svg?o.origin:Ff(Lr(e,wr))+" "+o.zOrigin+"px"):(o=e.style[n],(!o||o==="auto"||i||~(o+"").indexOf("calc("))&&(o=Vf[n]&&Vf[n](e,n,r)||Lr(e,n)||ow(e,n)||(n==="opacity"?1:0))),r&&!~(o+"").trim().indexOf(" ")?Yo(e,n,o,r)+r:o},t5=function(e,n,r,i){if(!r||r==="none"){var o=yl(n,e,1),s=o&&Lr(e,o,1);s&&s!==r?(n=o,r=s):n==="borderColor"&&(r=Lr(e,"borderTopColor"))}var a=new _r(this._pt,e.style,n,0,1,Fw),l=0,u=0,c,d,h,p,g,m,_,E,w,v,y,k;if(a.b=r,a.e=i,r+="",i+="",i.substring(0,6)==="var(--"&&(i=Lr(e,i.substring(4,i.indexOf(")")))),i==="auto"&&(m=e.style[n],e.style[n]=i,i=Lr(e,n)||i,m?e.style[n]=m:Zo(e,n)),c=[r,i],Pw(c),r=c[0],i=c[1],h=r.match(ll)||[],k=i.match(ll)||[],k.length){for(;d=ll.exec(i);)_=d[0],w=i.substring(l,d.index),g?g=(g+1)%5:(w.substr(-5)==="rgba("||w.substr(-5)==="hsla(")&&(g=1),_!==(m=h[u++]||"")&&(p=parseFloat(m)||0,y=m.substr((p+"").length),_.charAt(1)==="="&&(_=ul(p,_)+y),E=parseFloat(_),v=_.substr((E+"").length),l=ll.lastIndex-v.length,v||(v=v||Or.units[n]||y,l===i.length&&(i+=v,a.e+=v)),y!==v&&(p=Yo(e,n,m,v)||0),a._pt={_next:a._pt,p:w||u===1?w:",",s:p,c:E-p,m:g&&g<4||n==="zIndex"?Math.round:0});a.c=l<i.length?i.substring(l,i.length):""}else a.r=n==="display"&&i==="none"?Kw:Ww;return qx.test(i)&&(a.e=0),this._pt=a,a},rS={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},n5=function(e){var n=e.split(" "),r=n[0],i=n[1]||"50%";return(r==="top"||r==="bottom"||i==="left"||i==="right")&&(e=r,r=i,i=e),n[0]=rS[r]||r,n[1]=rS[i]||i,n.join(" ")},r5=function(e,n){if(n.tween&&n.tween._time===n.tween._dur){var r=n.t,i=r.style,o=n.u,s=r._gsap,a,l,u;if(o==="all"||o===!0)i.cssText="",l=1;else for(o=o.split(","),u=o.length;--u>-1;)a=o[u],po[a]&&(l=1,a=a==="transformOrigin"?wr:an),Zo(r,a);l&&(Zo(r,an),s&&(s.svg&&r.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",Qu(r,1),s.uncache=1,Zw(i)))}},Vf={clearProps:function(e,n,r,i,o){if(o.data!=="isFromStart"){var s=e._pt=new _r(e._pt,n,r,0,0,r5);return s.u=i,s.pr=-10,s.tween=o,e._props.push(r),1}}},Ju=[1,0,0,1,0,0],iS={},oS=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},sS=function(e){var n=Lr(e,an);return oS(n)?Ju:n.substr(7).match(Qx).map(yn)},Zm=function(e,n){var r=e._gsap||Us(e),i=e.style,o=sS(e),s,a,l,u;return r.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,o=[l.a,l.b,l.c,l.d,l.e,l.f],o.join(",")==="1,0,0,1,0,0"?Ju:o):(o===Ju&&!e.offsetParent&&e!==gl&&!r.svg&&(l=i.display,i.display="block",s=e.parentNode,(!s||!e.offsetParent&&!e.getBoundingClientRect().width)&&(u=1,a=e.nextElementSibling,gl.appendChild(e)),o=sS(e),l?i.display=l:Zo(e,"display"),u&&(a?s.insertBefore(e,a):s?s.appendChild(e):gl.removeChild(e))),n&&o.length>6?[o[0],o[1],o[4],o[5],o[12],o[13]]:o)},Xm=function(e,n,r,i,o,s){var a=e._gsap,l=o||Zm(e,!0),u=a.xOrigin||0,c=a.yOrigin||0,d=a.xOffset||0,h=a.yOffset||0,p=l[0],g=l[1],m=l[2],_=l[3],E=l[4],w=l[5],v=n.split(" "),y=parseFloat(v[0])||0,k=parseFloat(v[1])||0,$,O,A,x;r?l!==Ju&&(O=p*_-g*m)&&(A=y*(_/O)+k*(-m/O)+(m*w-_*E)/O,x=y*(-g/O)+k*(p/O)-(p*w-g*E)/O,y=A,k=x):($=eS(e),y=$.x+(~v[0].indexOf("%")?y/100*$.width:y),k=$.y+(~(v[1]||v[0]).indexOf("%")?k/100*$.height:k)),i||i!==!1&&a.smooth?(E=y-u,w=k-c,a.xOffset=d+(E*p+w*m)-E,a.yOffset=h+(E*g+w*_)-w):a.xOffset=a.yOffset=0,a.xOrigin=y,a.yOrigin=k,a.smooth=!!i,a.origin=n,a.originIsAbsolute=!!r,e.style[wr]="0px 0px",s&&(Xo(s,a,"xOrigin",u,y),Xo(s,a,"yOrigin",c,k),Xo(s,a,"xOffset",d,a.xOffset),Xo(s,a,"yOffset",h,a.yOffset)),e.setAttribute("data-svg-origin",y+" "+k)},Qu=function(e,n){var r=e._gsap||new Rw(e);if("x"in r&&!n&&!r.uncache)return r;var i=e.style,o=r.scaleX<0,s="px",a="deg",l=getComputedStyle(e),u=Lr(e,wr)||"0",c,d,h,p,g,m,_,E,w,v,y,k,$,O,A,x,N,P,b,S,I,V,M,H,G,J,oe,ae,de,xe,Ee,pe;return c=d=h=m=_=E=w=v=y=0,p=g=1,r.svg=!!(e.getCTM&&tS(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[an]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[an]!=="none"?l[an]:"")),i.scale=i.rotate=i.translate="none"),O=Zm(e,r.svg),r.svg&&(r.uncache?(G=e.getBBox(),u=r.xOrigin-G.x+"px "+(r.yOrigin-G.y)+"px",H=""):H=!n&&e.getAttribute("data-svg-origin"),Xm(e,H||u,!!H||r.originIsAbsolute,r.smooth!==!1,O)),k=r.xOrigin||0,$=r.yOrigin||0,O!==Ju&&(P=O[0],b=O[1],S=O[2],I=O[3],c=V=O[4],d=M=O[5],O.length===6?(p=Math.sqrt(P*P+b*b),g=Math.sqrt(I*I+S*S),m=P||b?vl(b,P)*Ks:0,w=S||I?vl(S,I)*Ks+m:0,w&&(g*=Math.abs(Math.cos(w*ml))),r.svg&&(c-=k-(k*P+$*S),d-=$-(k*b+$*I))):(pe=O[6],xe=O[7],oe=O[8],ae=O[9],de=O[10],Ee=O[11],c=O[12],d=O[13],h=O[14],A=vl(pe,de),_=A*Ks,A&&(x=Math.cos(-A),N=Math.sin(-A),H=V*x+oe*N,G=M*x+ae*N,J=pe*x+de*N,oe=V*-N+oe*x,ae=M*-N+ae*x,de=pe*-N+de*x,Ee=xe*-N+Ee*x,V=H,M=G,pe=J),A=vl(-S,de),E=A*Ks,A&&(x=Math.cos(-A),N=Math.sin(-A),H=P*x-oe*N,G=b*x-ae*N,J=S*x-de*N,Ee=I*N+Ee*x,P=H,b=G,S=J),A=vl(b,P),m=A*Ks,A&&(x=Math.cos(A),N=Math.sin(A),H=P*x+b*N,G=V*x+M*N,b=b*x-P*N,M=M*x-V*N,P=H,V=G),_&&Math.abs(_)+Math.abs(m)>359.9&&(_=m=0,E=180-E),p=yn(Math.sqrt(P*P+b*b+S*S)),g=yn(Math.sqrt(M*M+pe*pe)),A=vl(V,M),w=Math.abs(A)>2e-4?A*Ks:0,y=Ee?1/(Ee<0?-Ee:Ee):0),r.svg&&(H=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!oS(Lr(e,an)),H&&e.setAttribute("transform",H))),Math.abs(w)>90&&Math.abs(w)<270&&(o?(p*=-1,w+=m<=0?180:-180,m+=m<=0?180:-180):(g*=-1,w+=w<=0?180:-180)),n=n||r.uncache,r.x=c-((r.xPercent=c&&(!n&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-c)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+s,r.y=d-((r.yPercent=d&&(!n&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-d)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+s,r.z=h+s,r.scaleX=yn(p),r.scaleY=yn(g),r.rotation=yn(m)+a,r.rotationX=yn(_)+a,r.rotationY=yn(E)+a,r.skewX=w+a,r.skewY=v+a,r.transformPerspective=y+s,(r.zOrigin=parseFloat(u.split(" ")[2])||!n&&r.zOrigin||0)&&(i[wr]=Ff(u)),r.xOffset=r.yOffset=0,r.force3D=Or.force3D,r.renderTransform=r.svg?o5:Yw?aS:i5,r.uncache=0,r},Ff=function(e){return(e=e.split(" "))[0]+" "+e[1]},Ym=function(e,n,r){var i=qn(n);return yn(parseFloat(n)+parseFloat(Yo(e,"x",r+"px",i)))+i},i5=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,aS(e,n)},Zs="0deg",qu="0px",Xs=") ",aS=function(e,n){var r=n||this,i=r.xPercent,o=r.yPercent,s=r.x,a=r.y,l=r.z,u=r.rotation,c=r.rotationY,d=r.rotationX,h=r.skewX,p=r.skewY,g=r.scaleX,m=r.scaleY,_=r.transformPerspective,E=r.force3D,w=r.target,v=r.zOrigin,y="",k=E==="auto"&&e&&e!==1||E===!0;if(v&&(d!==Zs||c!==Zs)){var $=parseFloat(c)*ml,O=Math.sin($),A=Math.cos($),x;$=parseFloat(d)*ml,x=Math.cos($),s=Ym(w,s,O*x*-v),a=Ym(w,a,-Math.sin($)*-v),l=Ym(w,l,A*x*-v+v)}_!==qu&&(y+="perspective("+_+Xs),(i||o)&&(y+="translate("+i+"%, "+o+"%) "),(k||s!==qu||a!==qu||l!==qu)&&(y+=l!==qu||k?"translate3d("+s+", "+a+", "+l+") ":"translate("+s+", "+a+Xs),u!==Zs&&(y+="rotate("+u+Xs),c!==Zs&&(y+="rotateY("+c+Xs),d!==Zs&&(y+="rotateX("+d+Xs),(h!==Zs||p!==Zs)&&(y+="skew("+h+", "+p+Xs),(g!==1||m!==1)&&(y+="scale("+g+", "+m+Xs),w.style[an]=y||"translate(0, 0)"},o5=function(e,n){var r=n||this,i=r.xPercent,o=r.yPercent,s=r.x,a=r.y,l=r.rotation,u=r.skewX,c=r.skewY,d=r.scaleX,h=r.scaleY,p=r.target,g=r.xOrigin,m=r.yOrigin,_=r.xOffset,E=r.yOffset,w=r.forceCSS,v=parseFloat(s),y=parseFloat(a),k,$,O,A,x;l=parseFloat(l),u=parseFloat(u),c=parseFloat(c),c&&(c=parseFloat(c),u+=c,l+=c),l||u?(l*=ml,u*=ml,k=Math.cos(l)*d,$=Math.sin(l)*d,O=Math.sin(l-u)*-h,A=Math.cos(l-u)*h,u&&(c*=ml,x=Math.tan(u-c),x=Math.sqrt(1+x*x),O*=x,A*=x,c&&(x=Math.tan(c),x=Math.sqrt(1+x*x),k*=x,$*=x)),k=yn(k),$=yn($),O=yn(O),A=yn(A)):(k=d,A=h,$=O=0),(v&&!~(s+"").indexOf("px")||y&&!~(a+"").indexOf("px"))&&(v=Yo(p,"x",s,"px"),y=Yo(p,"y",a,"px")),(g||m||_||E)&&(v=yn(v+g-(g*k+m*O)+_),y=yn(y+m-(g*$+m*A)+E)),(i||o)&&(x=p.getBBox(),v=yn(v+i/100*x.width),y=yn(y+o/100*x.height)),x="matrix("+k+","+$+","+O+","+A+","+v+","+y+")",p.setAttribute("transform",x),w&&(p.style[an]=x)},s5=function(e,n,r,i,o){var s=360,a=kn(o),l=parseFloat(o)*(a&&~o.indexOf("rad")?Ks:1),u=l-i,c=i+u+"deg",d,h;return a&&(d=o.split("_")[1],d==="short"&&(u%=s,u!==u%(s/2)&&(u+=u<0?s:-s)),d==="cw"&&u<0?u=(u+s*Gw)%s-~~(u/s)*s:d==="ccw"&&u>0&&(u=(u-s*Gw)%s-~~(u/s)*s)),e._pt=h=new _r(e._pt,n,r,i,u,B4),h.e=c,h.u="deg",e._props.push(r),h},lS=function(e,n){for(var r in n)e[r]=n[r];return e},a5=function(e,n,r){var i=lS({},r._gsap),o="perspective,force3D,transformOrigin,svgOrigin",s=r.style,a,l,u,c,d,h,p,g;i.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),s[an]=n,a=Qu(r,1),Zo(r,an),r.setAttribute("transform",u)):(u=getComputedStyle(r)[an],s[an]=n,a=Qu(r,1),s[an]=u);for(l in po)u=i[l],c=a[l],u!==c&&o.indexOf(l)<0&&(p=qn(u),g=qn(c),d=p!==g?Yo(r,l,u,g):parseFloat(u),h=parseFloat(c),e._pt=new _r(e._pt,a,l,d,h-d,Gm),e._pt.u=g||0,e._props.push(l));lS(a,i)};br("padding,margin,Width,Radius",function(t,e){var n="Top",r="Right",i="Bottom",o="Left",s=(e<3?[n,r,i,o]:[n+o,n+r,i+r,i+o]).map(function(a){return e<2?t+a:"border"+a+t});Vf[e>1?"border"+t:t]=function(a,l,u,c,d){var h,p;if(arguments.length<4)return h=s.map(function(g){return go(a,g,u)}),p=h.join(" "),p.split(h[0]).length===5?h[0]:p;h=(c+"").split(" "),p={},s.forEach(function(g,m){return p[g]=h[m]=h[m]||h[(m-1)/2|0]}),a.init(l,p,d)}});var uS={name:"css",register:Km,targetTest:function(e){return e.style&&e.nodeType},init:function(e,n,r,i,o){var s=this._props,a=e.style,l=r.vars.startAt,u,c,d,h,p,g,m,_,E,w,v,y,k,$,O,A,x;Bm||Km(),this.styles=this.styles||Xw(e),A=this.styles.props,this.tween=r;for(m in n)if(m!=="autoRound"&&(c=n[m],!(Rr[m]&&$w(m,n,r,i,e,o)))){if(p=typeof c,g=Vf[m],p==="function"&&(c=c.call(r,i,e,o),p=typeof c),p==="string"&&~c.indexOf("random(")&&(c=Gu(c)),g)g(this,e,m,c,r)&&(O=1);else if(m.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(m)+"").trim(),c+="",Go.lastIndex=0,Go.test(u)||(_=qn(u),E=qn(c),E?_!==E&&(u=Yo(e,m,u,E)+E):_&&(c+=_)),this.add(a,"setProperty",u,c,i,o,0,0,m),s.push(m),A.push(m,0,a[m]);else if(p!=="undefined"){if(l&&m in l?(u=typeof l[m]=="function"?l[m].call(r,i,e,o):l[m],kn(u)&&~u.indexOf("random(")&&(u=Gu(u)),qn(u+"")||u==="auto"||(u+=Or.units[m]||qn(go(e,m))||""),(u+"").charAt(1)==="="&&(u=go(e,m))):u=go(e,m),h=parseFloat(u),w=p==="string"&&c.charAt(1)==="="&&c.substr(0,2),w&&(c=c.substr(2)),d=parseFloat(c),m in Di&&(m==="autoAlpha"&&(h===1&&go(e,"visibility")==="hidden"&&d&&(h=0),A.push("visibility",0,a.visibility),Xo(this,a,"visibility",h?"inherit":"hidden",d?"inherit":"hidden",!d)),m!=="scale"&&m!=="transform"&&(m=Di[m],~m.indexOf(",")&&(m=m.split(",")[0]))),v=m in po,v){if(this.styles.save(m),x=c,p==="string"&&c.substring(0,6)==="var(--"){if(c=Lr(e,c.substring(4,c.indexOf(")"))),c.substring(0,5)==="calc("){var N=e.style.perspective;e.style.perspective=c,c=Lr(e,"perspective"),N?e.style.perspective=N:Zo(e,"perspective")}d=parseFloat(c)}if(y||(k=e._gsap,k.renderTransform&&!n.parseTransform||Qu(e,n.parseTransform),$=n.smoothOrigin!==!1&&k.smooth,y=this._pt=new _r(this._pt,a,an,0,1,k.renderTransform,k,0,-1),y.dep=1),m==="scale")this._pt=new _r(this._pt,k,"scaleY",k.scaleY,(w?ul(k.scaleY,w+d):d)-k.scaleY||0,Gm),this._pt.u=0,s.push("scaleY",m),m+="X";else if(m==="transformOrigin"){A.push(wr,0,a[wr]),c=n5(c),k.svg?Xm(e,c,0,$,0,this):(E=parseFloat(c.split(" ")[2])||0,E!==k.zOrigin&&Xo(this,k,"zOrigin",k.zOrigin,E),Xo(this,a,m,Ff(u),Ff(c)));continue}else if(m==="svgOrigin"){Xm(e,c,1,$,0,this);continue}else if(m in iS){s5(this,k,m,h,w?ul(h,w+c):c);continue}else if(m==="smoothOrigin"){Xo(this,k,"smooth",k.smooth,c);continue}else if(m==="force3D"){k[m]=c;continue}else if(m==="transform"){a5(this,c,e);continue}}else m in a||(m=yl(m)||m);if(v||(d||d===0)&&(h||h===0)&&!U4.test(c)&&m in a)_=(u+"").substr((h+"").length),d||(d=0),E=qn(c)||(m in Or.units?Or.units[m]:_),_!==E&&(h=Yo(e,m,u,E)),this._pt=new _r(this._pt,v?k:a,m,h,(w?ul(h,w+d):d)-h,!v&&(E==="px"||m==="zIndex")&&n.autoRound!==!1?G4:Gm),this._pt.u=E||0,v&&x!==c?(this._pt.b=u,this._pt.e=x,this._pt.r=H4):_!==E&&E!=="%"&&(this._pt.b=u,this._pt.r=j4);else if(m in a)t5.call(this,e,m,u,w?w+c:c);else if(m in e)this.add(e,m,u||e[m],w?w+c:c,i,o);else if(m!=="parseTransform"){ym(m,c);continue}v||(m in a?A.push(m,0,a[m]):typeof e[m]=="function"?A.push(m,2,e[m]()):A.push(m,1,u||e[m])),s.push(m)}}O&&zw(this)},render:function(e,n){if(n.tween._time||!jm())for(var r=n._pt;r;)r.r(e,r.d),r=r._next;else n.styles.revert()},get:go,aliases:Di,getSetter:function(e,n,r){var i=Di[n];return i&&i.indexOf(",")<0&&(n=i),n in po&&n!==wr&&(e._gsap.x||go(e,"x"))?r&&Hw===r?n==="scale"?X4:Z4:(Hw=r||{})&&(n==="scale"?Y4:J4):e.style&&!hm(e.style[n])?W4:~n.indexOf("-")?K4:Lm(e,n)},core:{_removeProperty:Zo,_getMatrix:Zm}};xr.utils.checkPrefix=yl,xr.core.getStyleSaver=Xw,function(t,e,n,r){var i=br(t+","+e+","+n,function(o){po[o]=1});br(e,function(o){Or.units[o]="deg",iS[o]=1}),Di[i[13]]=t+","+e,br(r,function(o){var s=o.split(":");Di[s[1]]=i[s[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),br("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){Or.units[t]="px"}),xr.registerPlugin(uS);var zt=xr.registerPlugin(uS)||xr;zt.core.Tween;const l5=Te({__name:"LuminaBackground",props:{orbColor:{default:"var(--lumina-color-primary, #3b82f6)"},orbPos:{default:()=>({top:"-20%",left:"-10%"})},orbOpacity:{},orbBlur:{},orbSize:{default:"var(--lumina-orb-size, 60vw)"}},setup(t){const e=t,n=we(null),r=we(null);let i=null;const o=Z(()=>({backgroundColor:e.orbColor,width:e.orbSize,height:e.orbSize,top:e.orbPos.top,left:e.orbPos.left,transition:"top 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), left 1.2s cubic-bezier(0.2, 0.8, 0.2, 1)"}));return jt(()=>{i=zt.context(()=>{if(!n.value)return;zt.to(n.value,{scale:1.1,opacity:"+=0.1",duration:8,ease:"sine.inOut",yoyo:!0,repeat:-1});const s=a=>{const{innerWidth:l,innerHeight:u}=window,c=(a.clientX/l-.5)*50,d=(a.clientY/u-.5)*50;zt.to(n.value,{x:c,y:d,duration:2,ease:"power2.out",overwrite:"auto"})};return window.addEventListener("mousemove",s),()=>window.removeEventListener("mousemove",s)},r.value||void 0)}),sr(()=>{i==null||i.revert()}),(s,a)=>(j(),K("div",{class:"absolute inset-0 z-0 overflow-hidden pointer-events-none select-none",ref_key:"containerRef",ref:r},[C("div",{ref_key:"orbRef",ref:n,class:"ambient-orb",style:Xe(o.value)},null,4),a[0]||(a[0]=C("div",{class:"absolute inset-0 opacity-[0.04]",style:{"background-image":"url('https://grainy-gradients.vercel.app/noise.svg')"}},null,-1))],512))}}),Jr=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n},cS=Jr(l5,[["__scopeId","data-v-8ff00f93"]]),u5={class:"h-full w-full relative flex flex-col text-white overflow-hidden","data-lumina-root":"",style:{"background-color":"var(--lumina-colors-background, #030303)",color:"var(--lumina-colors-text, #ffffff)"}},c5={key:0,class:"absolute top-0 right-0 p-6 z-50 flex gap-4 pointer-events-auto"},d5={class:"relative h-full w-full md:w-[450px] bg-[#0a0a0a]/95 border-l border-white/10 shadow-2xl overflow-auto text-left flex flex-col transform transition-transform duration-300"},f5={class:"p-6 pb-2 border-b border-white/5 flex items-center justify-between shrink-0"},h5={class:"p-6"},p5={class:"text-[10px] font-mono text-green-400 whitespace-pre-wrap"},g5={key:1,class:"fixed md:absolute bottom-0 left-0 right-0 w-full z-40 px-8 py-6 pb-[max(1.5rem,env(safe-area-inset-bottom))] bg-gradient-to-t from-black/60 via-black/20 to-transparent flex justify-between items-end pointer-events-none"},m5={key:0,class:"pointer-events-auto text-left"},v5={class:"text-[10px] font-bold tracking-[0.2em] uppercase mb-1",style:{color:"var(--lumina-color-muted)"}},y5={class:"flex items-center gap-2 text-sm font-mono",style:{color:"var(--lumina-color-text-safe, var(--lumina-color-text))",opacity:.8}},b5={key:0,class:"h-px w-8",style:{backgroundColor:"var(--lumina-color-text-safe, var(--lumina-color-text))",opacity:.3}},_5={key:1,class:"flex-1"},x5={key:2,class:"pointer-events-auto flex gap-3"},w5=["disabled"],S5=["disabled"],dS=Te({__name:"LuminaDeck",setup(t){const{slide:e,index:n,total:r,next:i,prev:o,options:s}=um(),a=we(null),l=yt(vn),u=Z(()=>l.hasNext()),c=Z(()=>l.hasPrev()),d=Z(()=>{var P,b;return(b=(P=l.state.deck)==null?void 0:P.meta)==null?void 0:b.title}),h=Z(()=>l.state.options.ui),p=Z(()=>l.state.options.navigation);FM();const{onTouchStart:g,onTouchEnd:m}=jM(),_=we({top:"-20%",left:"-10%"}),E=()=>{const P=(b,S)=>Math.floor(Math.random()*(S-b+1)+b);return{top:`${P(-25,65)}%`,left:`${P(-25,65)}%`}};Qe(n,(P,b)=>{P===0?_.value={top:"-20%",left:"-10%"}:b!==void 0&&(_.value=E()),a.value&&(a.value.scrollTop=0)},{immediate:!0});const w=we({showJson:!1}),v=yt("LuminaEngine"),y=()=>{v&&typeof v.openSpeakerNotes=="function"?v.openSpeakerNotes():(console.warn("Lumina Engine not found or openSpeakerNotes not available"),alert("Speaker notes require the full Lumina Engine environment."))},k=Z(()=>s.debug),$=Z(()=>!e.value||!e.value.type?null:`layout-${e.value.type}`),O=Z(()=>{var P,b,S,I,V,M;return{top:((S=(b=(P=e.value)==null?void 0:P.meta)==null?void 0:b.orbPos)==null?void 0:S.top)||_.value.top,left:((M=(V=(I=e.value)==null?void 0:I.meta)==null?void 0:V.orbPos)==null?void 0:M.left)||_.value.left}}),A=P=>{Oi.emit("action",P)},x=(P,b)=>{var V;const S=P,I=P.__vue_app__||P.__vue_parent__||((V=P==null?void 0:P.__vueParentComponent)==null?void 0:V.proxy);S.style.opacity="1",I&&typeof I.animateIn=="function"&&I.animateIn(),b()},N=async(P,b)=>{var G,J,oe,ae;const{options:S}=l.state;if(((G=S.animation)==null?void 0:G.enabled)===!1){b();return}const I=((J=S.animation)==null?void 0:J.durationOut)||.5,V=((oe=S.animation)==null?void 0:oe.type)||"cascade",M=P.__vue_app__||P.__vue_parent__||((ae=P==null?void 0:P.__vueParentComponent)==null?void 0:ae.proxy);M&&typeof M.animateOut=="function"&&await M.animateOut();const H=zt.timeline({onComplete:b});V==="fade"?H.to(P,{opacity:0,duration:I}):V==="zoom"?H.to(P,{opacity:0,scale:.95,filter:"blur(10px)",duration:I}):H.to(P,{opacity:0,y:-30,duration:I,ease:"power2.in"})};return(P,b)=>{var S,I,V,M,H,G,J;return j(),K("div",u5,[ce(cS,{"orb-color":(I=(S=re(e))==null?void 0:S.meta)==null?void 0:I.orbColor,"orb-pos":O.value},null,8,["orb-color","orb-pos"]),k.value?(j(),K("div",c5,[C("button",{onClick:b[0]||(b[0]=oe=>w.value.showJson=!w.value.showJson),class:"w-8 h-8 rounded-full glass-panel flex items-center justify-center text-gray-400 hover:text-white transition",title:"JSON"},[...b[8]||(b[8]=[C("i",{class:"ph-thin ph-code text-xs"},null,-1)])])])):Oe("",!0),ce(Xa,{name:"fade"},{default:ke(()=>[w.value.showJson?(j(),K("div",{key:0,class:"fixed inset-0 z-[100] flex justify-end",onClick:b[3]||(b[3]=kr(oe=>w.value.showJson=!1,["self"]))},[C("div",{class:"absolute inset-0 bg-black/20 backdrop-blur-sm transition-opacity",onClick:b[1]||(b[1]=oe=>w.value.showJson=!1)}),C("div",d5,[C("div",f5,[b[10]||(b[10]=C("span",{class:"text-xs font-bold text-gray-400 uppercase tracking-widest"},"Slide Data",-1)),C("button",{onClick:b[2]||(b[2]=oe=>w.value.showJson=!1),class:"w-8 h-8 rounded-full bg-white/5 hover:bg-white/10 flex items-center justify-center text-white/50 hover:text-white transition"},[...b[9]||(b[9]=[C("i",{class:"ph-thin ph-x"},null,-1)])])]),C("div",h5,[C("pre",p5,Ie(JSON.stringify(re(e),null,2)),1)])])])):Oe("",!0)]),_:1}),C("main",{ref_key:"viewport",ref:a,class:"flex-1 min-h-0 w-full relative overflow-y-auto overflow-x-hidden z-10 scroll-smooth touch-pan-y pb-24 md:pb-0",onTouchstart:b[4]||(b[4]=(...oe)=>re(g)&&re(g)(...oe)),onTouchend:b[5]||(b[5]=(...oe)=>re(m)&&re(m)(...oe))},[ce(Xa,{css:!1,onLeave:N,onEnter:x,mode:"out-in"},{default:ke(()=>[$.value?(j(),De(Xn($.value),{key:re(n),data:re(e),"slide-index":re(n),onAction:A,class:"min-h-full w-full"},null,40,["data","slide-index"])):Oe("",!0)]),_:1})],544),(V=h.value)!=null&&V.visible?(j(),K("div",g5,[(M=h.value)!=null&&M.showSlideCount?(j(),K("div",m5,[C("h2",v5,Ie(d.value),1),C("div",y5,[C("span",null,Ie((re(n)+1).toString().padStart(2,"0")),1),(H=h.value)!=null&&H.showProgressBar?(j(),K("div",b5)):Oe("",!0),C("span",null,Ie(re(r).toString().padStart(2,"0")),1)])])):(j(),K("div",_5)),(G=h.value)!=null&&G.showControls?(j(),K("div",x5,[(J=re(e))!=null&&J.notes?(j(),K("button",{key:0,onClick:y,class:"w-12 h-12 rounded-full glass-panel hover:bg-white/10 flex items-center justify-center transition active:scale-95",title:"Open Speaker View"},[...b[11]||(b[11]=[C("i",{class:"ph-thin ph-presentation text-sm text-gray-400 hover:text-white"},null,-1)])])):Oe("",!0),C("button",{onClick:b[6]||(b[6]=(...oe)=>re(o)&&re(o)(...oe)),class:Se(["w-12 h-12 rounded-full glass-panel hover:bg-white/10 flex items-center justify-center transition active:scale-95",!c.value||!p.value?"opacity-30 cursor-not-allowed":""]),disabled:!c.value||!p.value},[...b[12]||(b[12]=[C("i",{class:"ph-thin ph-arrow-left"},null,-1)])],10,w5),C("button",{onClick:b[7]||(b[7]=(...oe)=>re(i)&&re(i)(...oe)),class:Se(["w-12 h-12 rounded-full bg-white text-black hover:scale-105 flex items-center justify-center transition shadow-lg active:scale-95",!u.value||!p.value?"opacity-30 cursor-not-allowed":""]),disabled:!u.value||!p.value},[...b[13]||(b[13]=[C("i",{class:"ph-thin ph-arrow-right"},null,-1)])],10,S5)])):Oe("",!0)])):Oe("",!0)])}}}),Jm=Symbol("EditorKey");function E5(t){const e=yt(vn);if(!e)throw new Error("Lumina Editor requires Lumina Store.");const n=we(null),r=we(null),i=we([]),o=we(-1),s=E=>{n.value=E},a=()=>!n.value||!e.state.deck?null:Fs(e.state.deck,n.value);let l=null;const u=we(!1),c=(E=!1)=>{if(u.value)return;l&&(clearTimeout(l),l=null);const w=()=>{if(o.value<i.value.length-1&&(i.value=i.value.slice(0,o.value+1)),e.state.deck){const v=i.value[o.value],y=JSON.parse(JSON.stringify(e.state.deck)),k=e.state.currentIndex;if(v&&JSON.stringify(v.deck)===JSON.stringify(y)&&v.currentIndex===k)return;i.value.push({deck:y,currentIndex:k,timestamp:Date.now()}),o.value++,i.value.length>50&&(i.value.shift(),o.value--)}};E?w():l=setTimeout(w,500)};Qe(()=>e.state.deck,E=>{E&&!u.value&&c(!1)},{deep:!0}),Qe(()=>e.state.currentIndex,()=>{u.value||c(!1)});const d=()=>{if(c(!0),o.value>0){u.value=!0,o.value--;const E=i.value[o.value];E&&(e.loadDeck(JSON.parse(JSON.stringify(E.deck))),e.goto(E.currentIndex)),setTimeout(()=>{u.value=!1},100)}},h=()=>{if(o.value<i.value.length-1){u.value=!0,o.value++;const E=i.value[o.value];E&&(e.loadDeck(JSON.parse(JSON.stringify(E.deck))),e.goto(E.currentIndex)),setTimeout(()=>{u.value=!1},100)}},p=E=>{(E.ctrlKey||E.metaKey)&&E.key==="z"?E.shiftKey?(E.preventDefault(),h()):(E.preventDefault(),d()):(E.ctrlKey||E.metaKey)&&E.key==="y"&&(E.preventDefault(),h())};jt(()=>{window.addEventListener("keydown",p),e.state.deck&&i.value.length===0&&c(!0)}),sr(()=>{window.removeEventListener("keydown",p)});const g=()=>{if(!n.value||!e.state.deck)return;const E=Fs(e.state.deck,n.value);E&&(r.value=JSON.parse(JSON.stringify(E)))},m=E=>{r.value&&e.addNode(E,JSON.parse(JSON.stringify(r.value)))},_=(E,w)=>{n.value&&e.updateNode(`${n.value}.${E}`,w)};return{selection:n,clipboard:r,store:e,canUndo:Z(()=>o.value>0),canRedo:Z(()=>o.value<i.value.length-1),select:s,getSelectedData:a,updateSelected:_,commit:c,undo:d,redo:h,copy:g,paste:m}}function si(){const t=yt(Jm);if(!t)throw new Error("useEditor must be used within LuminaStudio");return t}/*!
|
|
62
62
|
* vue-router v4.6.4
|
|
63
63
|
* (c) 2025 Eduardo San Martin Morote
|
|
64
64
|
* @license MIT
|
|
@@ -1100,15 +1100,15 @@ SPDX-License-Identifier: Apache-2.0
|
|
|
1100
1100
|
|
|
1101
1101
|
Copyright The Closure Library Authors.
|
|
1102
1102
|
SPDX-License-Identifier: Apache-2.0
|
|
1103
|
-
*/var o=o||{},s=this||self;function a(f){var T=typeof f;return T=="object"&&f!=null||T=="function"}function l(f,T,R){return f.call.apply(f.bind,arguments)}function u(f,T,R){return u=l,u.apply(null,arguments)}function c(f,T){var R=Array.prototype.slice.call(arguments,1);return function(){var U=R.slice();return U.push.apply(U,arguments),f.apply(this,U)}}function d(f,T){function R(){}R.prototype=T.prototype,f.Z=T.prototype,f.prototype=new R,f.prototype.constructor=f,f.Ob=function(U,ne,se){for(var Pe=Array(arguments.length-2),dt=2;dt<arguments.length;dt++)Pe[dt-2]=arguments[dt];return T.prototype[ne].apply(U,Pe)}}var h=typeof AsyncContext<"u"&&typeof AsyncContext.Snapshot=="function"?f=>f&&AsyncContext.Snapshot.wrap(f):f=>f;function p(f){const T=f.length;if(T>0){const R=Array(T);for(let U=0;U<T;U++)R[U]=f[U];return R}return[]}function g(f,T){for(let U=1;U<arguments.length;U++){const ne=arguments[U];var R=typeof ne;if(R=R!="object"?R:ne?Array.isArray(ne)?"array":R:"null",R=="array"||R=="object"&&typeof ne.length=="number"){R=f.length||0;const se=ne.length||0;f.length=R+se;for(let Pe=0;Pe<se;Pe++)f[R+Pe]=ne[Pe]}else f.push(ne)}}class m{constructor(T,R){this.i=T,this.j=R,this.h=0,this.g=null}get(){let T;return this.h>0?(this.h--,T=this.g,this.g=T.next,T.next=null):T=this.i(),T}}function _(f){s.setTimeout(()=>{throw f},0)}function E(){var f=O;let T=null;return f.g&&(T=f.g,f.g=f.g.next,f.g||(f.h=null),T.next=null),T}class w{constructor(){this.h=this.g=null}add(T,R){const U=v.get();U.set(T,R),this.h?this.h.next=U:this.g=U,this.h=U}}var v=new m(()=>new y,f=>f.reset());class y{constructor(){this.next=this.g=this.h=null}set(T,R){this.h=T,this.g=R,this.next=null}reset(){this.next=this.g=this.h=null}}let k,$=!1,O=new w,A=()=>{const f=Promise.resolve(void 0);k=()=>{f.then(x)}};function x(){for(var f;f=E();){try{f.h.call(f.g)}catch(R){_(R)}var T=v;T.j(f),T.h<100&&(T.h++,f.next=T.g,T.g=f)}$=!1}function N(){this.u=this.u,this.C=this.C}N.prototype.u=!1,N.prototype.dispose=function(){this.u||(this.u=!0,this.N())},N.prototype[Symbol.dispose]=function(){this.dispose()},N.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()};function P(f,T){this.type=f,this.g=this.target=T,this.defaultPrevented=!1}P.prototype.h=function(){this.defaultPrevented=!0};var b=function(){if(!s.addEventListener||!Object.defineProperty)return!1;var f=!1,T=Object.defineProperty({},"passive",{get:function(){f=!0}});try{const R=()=>{};s.addEventListener("test",R,T),s.removeEventListener("test",R,T)}catch{}return f}();function S(f){return/^[\s\xa0]*$/.test(f)}function I(f,T){P.call(this,f?f.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,f&&this.init(f,T)}d(I,P),I.prototype.init=function(f,T){const R=this.type=f.type,U=f.changedTouches&&f.changedTouches.length?f.changedTouches[0]:null;this.target=f.target||f.srcElement,this.g=T,T=f.relatedTarget,T||(R=="mouseover"?T=f.fromElement:R=="mouseout"&&(T=f.toElement)),this.relatedTarget=T,U?(this.clientX=U.clientX!==void 0?U.clientX:U.pageX,this.clientY=U.clientY!==void 0?U.clientY:U.pageY,this.screenX=U.screenX||0,this.screenY=U.screenY||0):(this.clientX=f.clientX!==void 0?f.clientX:f.pageX,this.clientY=f.clientY!==void 0?f.clientY:f.pageY,this.screenX=f.screenX||0,this.screenY=f.screenY||0),this.button=f.button,this.key=f.key||"",this.ctrlKey=f.ctrlKey,this.altKey=f.altKey,this.shiftKey=f.shiftKey,this.metaKey=f.metaKey,this.pointerId=f.pointerId||0,this.pointerType=f.pointerType,this.state=f.state,this.i=f,f.defaultPrevented&&I.Z.h.call(this)},I.prototype.h=function(){I.Z.h.call(this);const f=this.i;f.preventDefault?f.preventDefault():f.returnValue=!1};var V="closure_listenable_"+(Math.random()*1e6|0),M=0;function H(f,T,R,U,ne){this.listener=f,this.proxy=null,this.src=T,this.type=R,this.capture=!!U,this.ha=ne,this.key=++M,this.da=this.fa=!1}function G(f){f.da=!0,f.listener=null,f.proxy=null,f.src=null,f.ha=null}function q(f,T,R){for(const U in f)T.call(R,f[U],U,f)}function oe(f,T){for(const R in f)T.call(void 0,f[R],R,f)}function ae(f){const T={};for(const R in f)T[R]=f[R];return T}const he="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function xe(f,T){let R,U;for(let ne=1;ne<arguments.length;ne++){U=arguments[ne];for(R in U)f[R]=U[R];for(let se=0;se<he.length;se++)R=he[se],Object.prototype.hasOwnProperty.call(U,R)&&(f[R]=U[R])}}function Ee(f){this.src=f,this.g={},this.h=0}Ee.prototype.add=function(f,T,R,U,ne){const se=f.toString();f=this.g[se],f||(f=this.g[se]=[],this.h++);const Pe=ce(f,T,U,ne);return Pe>-1?(T=f[Pe],R||(T.fa=!1)):(T=new H(T,this.src,se,!!U,ne),T.fa=R,f.push(T)),T};function de(f,T){const R=T.type;if(R in f.g){var U=f.g[R],ne=Array.prototype.indexOf.call(U,T,void 0),se;(se=ne>=0)&&Array.prototype.splice.call(U,ne,1),se&&(G(T),f.g[R].length==0&&(delete f.g[R],f.h--))}}function ce(f,T,R,U){for(let ne=0;ne<f.length;++ne){const se=f[ne];if(!se.da&&se.listener==T&&se.capture==!!R&&se.ha==U)return ne}return-1}var fe="closure_lm_"+(Math.random()*1e6|0),Le={};function Re(f,T,R,U,ne){if(Array.isArray(T)){for(let se=0;se<T.length;se++)Re(f,T[se],R,U,ne);return null}return R=W(R),f&&f[V]?f.J(T,R,a(U)?!!U.capture:!1,ne):Be(f,T,R,!1,U,ne)}function Be(f,T,R,U,ne,se){if(!T)throw Error("Invalid event type");const Pe=a(ne)?!!ne.capture:!!ne;let dt=z(f);if(dt||(f[fe]=dt=new Ee(f)),R=dt.add(T,R,U,Pe,se),R.proxy)return R;if(U=et(),R.proxy=U,U.src=f,U.listener=R,f.addEventListener)b||(ne=Pe),ne===void 0&&(ne=!1),f.addEventListener(T.toString(),U,ne);else if(f.attachEvent)f.attachEvent(D(T.toString()),U);else if(f.addListener&&f.removeListener)f.addListener(U);else throw Error("addEventListener and attachEvent are unavailable.");return R}function et(){function f(R){return T.call(f.src,f.listener,R)}const T=L;return f}function De(f,T,R,U,ne){if(Array.isArray(T))for(var se=0;se<T.length;se++)De(f,T[se],R,U,ne);else U=a(U)?!!U.capture:!!U,R=W(R),f&&f[V]?(f=f.i,se=String(T).toString(),se in f.g&&(T=f.g[se],R=ce(T,R,U,ne),R>-1&&(G(T[R]),Array.prototype.splice.call(T,R,1),T.length==0&&(delete f.g[se],f.h--)))):f&&(f=z(f))&&(T=f.g[T.toString()],f=-1,T&&(f=ce(T,R,U,ne)),(R=f>-1?T[f]:null)&&B(R))}function B(f){if(typeof f!="number"&&f&&!f.da){var T=f.src;if(T&&T[V])de(T.i,f);else{var R=f.type,U=f.proxy;T.removeEventListener?T.removeEventListener(R,U,f.capture):T.detachEvent?T.detachEvent(D(R),U):T.addListener&&T.removeListener&&T.removeListener(U),(R=z(T))?(de(R,f),R.h==0&&(R.src=null,T[fe]=null)):G(f)}}}function D(f){return f in Le?Le[f]:Le[f]="on"+f}function L(f,T){if(f.da)f=!0;else{T=new I(T,this);const R=f.listener,U=f.ha||f.src;f.fa&&B(f),f=R.call(U,T)}return f}function z(f){return f=f[fe],f instanceof Ee?f:null}var F="__closure_events_fn_"+(Math.random()*1e9>>>0);function W(f){return typeof f=="function"?f:(f[F]||(f[F]=function(T){return f.handleEvent(T)}),f[F])}function ee(){N.call(this),this.i=new Ee(this),this.M=this,this.G=null}d(ee,N),ee.prototype[V]=!0,ee.prototype.removeEventListener=function(f,T,R,U){De(this,f,T,R,U)};function Y(f,T){var R,U=f.G;if(U)for(R=[];U;U=U.G)R.push(U);if(f=f.M,U=T.type||T,typeof T=="string")T=new P(T,f);else if(T instanceof P)T.target=T.target||f;else{var ne=T;T=new P(U,f),xe(T,ne)}ne=!0;let se,Pe;if(R)for(Pe=R.length-1;Pe>=0;Pe--)se=T.g=R[Pe],ne=te(se,U,!0,T)&≠if(se=T.g=f,ne=te(se,U,!0,T)&&ne,ne=te(se,U,!1,T)&&ne,R)for(Pe=0;Pe<R.length;Pe++)se=T.g=R[Pe],ne=te(se,U,!1,T)&&ne}ee.prototype.N=function(){if(ee.Z.N.call(this),this.i){var f=this.i;for(const T in f.g){const R=f.g[T];for(let U=0;U<R.length;U++)G(R[U]);delete f.g[T],f.h--}}this.G=null},ee.prototype.J=function(f,T,R,U){return this.i.add(String(f),T,!1,R,U)},ee.prototype.K=function(f,T,R,U){return this.i.add(String(f),T,!0,R,U)};function te(f,T,R,U){if(T=f.i.g[String(T)],!T)return!0;T=T.concat();let ne=!0;for(let se=0;se<T.length;++se){const Pe=T[se];if(Pe&&!Pe.da&&Pe.capture==R){const dt=Pe.listener,Pn=Pe.ha||Pe.src;Pe.fa&&de(f.i,Pe),ne=dt.call(Pn,U)!==!1&&ne}}return ne&&!U.defaultPrevented}function J(f,T){if(typeof f!="function")if(f&&typeof f.handleEvent=="function")f=u(f.handleEvent,f);else throw Error("Invalid listener argument");return Number(T)>2147483647?-1:s.setTimeout(f,T||0)}function ye(f){f.g=J(()=>{f.g=null,f.i&&(f.i=!1,ye(f))},f.l);const T=f.h;f.h=null,f.m.apply(null,T)}class pe extends N{constructor(T,R){super(),this.m=T,this.l=R,this.h=null,this.i=!1,this.g=null}j(T){this.h=arguments,this.g?this.i=!0:ye(this)}N(){super.N(),this.g&&(s.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function be(f){N.call(this),this.h=f,this.g={}}d(be,N);var Me=[];function rt(f){q(f.g,function(T,R){this.g.hasOwnProperty(R)&&B(T)},f),f.g={}}be.prototype.N=function(){be.Z.N.call(this),rt(this)},be.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var gt=s.JSON.stringify,X=s.JSON.parse,Q=class{stringify(f){return s.JSON.stringify(f,void 0)}parse(f){return s.JSON.parse(f,void 0)}};function ie(){}function ge(){}var Ce={OPEN:"a",hb:"b",ERROR:"c",tb:"d"};function We(){P.call(this,"d")}d(We,P);function ot(){P.call(this,"c")}d(ot,P);var Je={},St=null;function Ze(){return St=St||new ee}Je.Ia="serverreachability";function Ve(f){P.call(this,Je.Ia,f)}d(Ve,P);function Ke(f){const T=Ze();Y(T,new Ve(T))}Je.STAT_EVENT="statevent";function mt(f,T){P.call(this,Je.STAT_EVENT,f),this.stat=T}d(mt,P);function it(f){const T=Ze();Y(T,new mt(T,f))}Je.Ja="timingevent";function Gn(f,T){P.call(this,Je.Ja,f),this.size=T}d(Gn,P);function Po(f,T){if(typeof f!="function")throw Error("Fn must not be null and must be a function");return s.setTimeout(function(){f()},T)}function wa(){this.g=!0}wa.prototype.ua=function(){this.g=!1};function ru(f,T,R,U,ne,se){f.info(function(){if(f.g)if(se){var Pe="",dt=se.split("&");for(let Ut=0;Ut<dt.length;Ut++){var Pn=dt[Ut].split("=");if(Pn.length>1){const Rn=Pn[0];Pn=Pn[1];const Yi=Rn.split("_");Pe=Yi.length>=2&&Yi[1]=="type"?Pe+(Rn+"="+Pn+"&"):Pe+(Rn+"=redacted&")}}}else Pe=null;else Pe=se;return"XMLHTTP REQ ("+U+") [attempt "+ne+"]: "+T+`
|
|
1103
|
+
*/var o=o||{},s=this||self;function a(f){var T=typeof f;return T=="object"&&f!=null||T=="function"}function l(f,T,R){return f.call.apply(f.bind,arguments)}function u(f,T,R){return u=l,u.apply(null,arguments)}function c(f,T){var R=Array.prototype.slice.call(arguments,1);return function(){var U=R.slice();return U.push.apply(U,arguments),f.apply(this,U)}}function d(f,T){function R(){}R.prototype=T.prototype,f.Z=T.prototype,f.prototype=new R,f.prototype.constructor=f,f.Ob=function(U,ne,se){for(var Pe=Array(arguments.length-2),dt=2;dt<arguments.length;dt++)Pe[dt-2]=arguments[dt];return T.prototype[ne].apply(U,Pe)}}var h=typeof AsyncContext<"u"&&typeof AsyncContext.Snapshot=="function"?f=>f&&AsyncContext.Snapshot.wrap(f):f=>f;function p(f){const T=f.length;if(T>0){const R=Array(T);for(let U=0;U<T;U++)R[U]=f[U];return R}return[]}function g(f,T){for(let U=1;U<arguments.length;U++){const ne=arguments[U];var R=typeof ne;if(R=R!="object"?R:ne?Array.isArray(ne)?"array":R:"null",R=="array"||R=="object"&&typeof ne.length=="number"){R=f.length||0;const se=ne.length||0;f.length=R+se;for(let Pe=0;Pe<se;Pe++)f[R+Pe]=ne[Pe]}else f.push(ne)}}class m{constructor(T,R){this.i=T,this.j=R,this.h=0,this.g=null}get(){let T;return this.h>0?(this.h--,T=this.g,this.g=T.next,T.next=null):T=this.i(),T}}function _(f){s.setTimeout(()=>{throw f},0)}function E(){var f=O;let T=null;return f.g&&(T=f.g,f.g=f.g.next,f.g||(f.h=null),T.next=null),T}class w{constructor(){this.h=this.g=null}add(T,R){const U=v.get();U.set(T,R),this.h?this.h.next=U:this.g=U,this.h=U}}var v=new m(()=>new y,f=>f.reset());class y{constructor(){this.next=this.g=this.h=null}set(T,R){this.h=T,this.g=R,this.next=null}reset(){this.next=this.g=this.h=null}}let k,$=!1,O=new w,A=()=>{const f=Promise.resolve(void 0);k=()=>{f.then(x)}};function x(){for(var f;f=E();){try{f.h.call(f.g)}catch(R){_(R)}var T=v;T.j(f),T.h<100&&(T.h++,f.next=T.g,T.g=f)}$=!1}function N(){this.u=this.u,this.C=this.C}N.prototype.u=!1,N.prototype.dispose=function(){this.u||(this.u=!0,this.N())},N.prototype[Symbol.dispose]=function(){this.dispose()},N.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()};function P(f,T){this.type=f,this.g=this.target=T,this.defaultPrevented=!1}P.prototype.h=function(){this.defaultPrevented=!0};var b=function(){if(!s.addEventListener||!Object.defineProperty)return!1;var f=!1,T=Object.defineProperty({},"passive",{get:function(){f=!0}});try{const R=()=>{};s.addEventListener("test",R,T),s.removeEventListener("test",R,T)}catch{}return f}();function S(f){return/^[\s\xa0]*$/.test(f)}function I(f,T){P.call(this,f?f.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,f&&this.init(f,T)}d(I,P),I.prototype.init=function(f,T){const R=this.type=f.type,U=f.changedTouches&&f.changedTouches.length?f.changedTouches[0]:null;this.target=f.target||f.srcElement,this.g=T,T=f.relatedTarget,T||(R=="mouseover"?T=f.fromElement:R=="mouseout"&&(T=f.toElement)),this.relatedTarget=T,U?(this.clientX=U.clientX!==void 0?U.clientX:U.pageX,this.clientY=U.clientY!==void 0?U.clientY:U.pageY,this.screenX=U.screenX||0,this.screenY=U.screenY||0):(this.clientX=f.clientX!==void 0?f.clientX:f.pageX,this.clientY=f.clientY!==void 0?f.clientY:f.pageY,this.screenX=f.screenX||0,this.screenY=f.screenY||0),this.button=f.button,this.key=f.key||"",this.ctrlKey=f.ctrlKey,this.altKey=f.altKey,this.shiftKey=f.shiftKey,this.metaKey=f.metaKey,this.pointerId=f.pointerId||0,this.pointerType=f.pointerType,this.state=f.state,this.i=f,f.defaultPrevented&&I.Z.h.call(this)},I.prototype.h=function(){I.Z.h.call(this);const f=this.i;f.preventDefault?f.preventDefault():f.returnValue=!1};var V="closure_listenable_"+(Math.random()*1e6|0),M=0;function H(f,T,R,U,ne){this.listener=f,this.proxy=null,this.src=T,this.type=R,this.capture=!!U,this.ha=ne,this.key=++M,this.da=this.fa=!1}function G(f){f.da=!0,f.listener=null,f.proxy=null,f.src=null,f.ha=null}function J(f,T,R){for(const U in f)T.call(R,f[U],U,f)}function oe(f,T){for(const R in f)T.call(void 0,f[R],R,f)}function ae(f){const T={};for(const R in f)T[R]=f[R];return T}const de="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function xe(f,T){let R,U;for(let ne=1;ne<arguments.length;ne++){U=arguments[ne];for(R in U)f[R]=U[R];for(let se=0;se<de.length;se++)R=de[se],Object.prototype.hasOwnProperty.call(U,R)&&(f[R]=U[R])}}function Ee(f){this.src=f,this.g={},this.h=0}Ee.prototype.add=function(f,T,R,U,ne){const se=f.toString();f=this.g[se],f||(f=this.g[se]=[],this.h++);const Pe=le(f,T,U,ne);return Pe>-1?(T=f[Pe],R||(T.fa=!1)):(T=new H(T,this.src,se,!!U,ne),T.fa=R,f.push(T)),T};function pe(f,T){const R=T.type;if(R in f.g){var U=f.g[R],ne=Array.prototype.indexOf.call(U,T,void 0),se;(se=ne>=0)&&Array.prototype.splice.call(U,ne,1),se&&(G(T),f.g[R].length==0&&(delete f.g[R],f.h--))}}function le(f,T,R,U){for(let ne=0;ne<f.length;++ne){const se=f[ne];if(!se.da&&se.listener==T&&se.capture==!!R&&se.ha==U)return ne}return-1}var fe="closure_lm_"+(Math.random()*1e6|0),Re={};function $e(f,T,R,U,ne){if(Array.isArray(T)){for(let se=0;se<T.length;se++)$e(f,T[se],R,U,ne);return null}return R=W(R),f&&f[V]?f.J(T,R,a(U)?!!U.capture:!1,ne):Be(f,T,R,!1,U,ne)}function Be(f,T,R,U,ne,se){if(!T)throw Error("Invalid event type");const Pe=a(ne)?!!ne.capture:!!ne;let dt=z(f);if(dt||(f[fe]=dt=new Ee(f)),R=dt.add(T,R,U,Pe,se),R.proxy)return R;if(U=et(),R.proxy=U,U.src=f,U.listener=R,f.addEventListener)b||(ne=Pe),ne===void 0&&(ne=!1),f.addEventListener(T.toString(),U,ne);else if(f.attachEvent)f.attachEvent(D(T.toString()),U);else if(f.addListener&&f.removeListener)f.addListener(U);else throw Error("addEventListener and attachEvent are unavailable.");return R}function et(){function f(R){return T.call(f.src,f.listener,R)}const T=L;return f}function Me(f,T,R,U,ne){if(Array.isArray(T))for(var se=0;se<T.length;se++)Me(f,T[se],R,U,ne);else U=a(U)?!!U.capture:!!U,R=W(R),f&&f[V]?(f=f.i,se=String(T).toString(),se in f.g&&(T=f.g[se],R=le(T,R,U,ne),R>-1&&(G(T[R]),Array.prototype.splice.call(T,R,1),T.length==0&&(delete f.g[se],f.h--)))):f&&(f=z(f))&&(T=f.g[T.toString()],f=-1,T&&(f=le(T,R,U,ne)),(R=f>-1?T[f]:null)&&B(R))}function B(f){if(typeof f!="number"&&f&&!f.da){var T=f.src;if(T&&T[V])pe(T.i,f);else{var R=f.type,U=f.proxy;T.removeEventListener?T.removeEventListener(R,U,f.capture):T.detachEvent?T.detachEvent(D(R),U):T.addListener&&T.removeListener&&T.removeListener(U),(R=z(T))?(pe(R,f),R.h==0&&(R.src=null,T[fe]=null)):G(f)}}}function D(f){return f in Re?Re[f]:Re[f]="on"+f}function L(f,T){if(f.da)f=!0;else{T=new I(T,this);const R=f.listener,U=f.ha||f.src;f.fa&&B(f),f=R.call(U,T)}return f}function z(f){return f=f[fe],f instanceof Ee?f:null}var F="__closure_events_fn_"+(Math.random()*1e9>>>0);function W(f){return typeof f=="function"?f:(f[F]||(f[F]=function(T){return f.handleEvent(T)}),f[F])}function ee(){N.call(this),this.i=new Ee(this),this.M=this,this.G=null}d(ee,N),ee.prototype[V]=!0,ee.prototype.removeEventListener=function(f,T,R,U){Me(this,f,T,R,U)};function Y(f,T){var R,U=f.G;if(U)for(R=[];U;U=U.G)R.push(U);if(f=f.M,U=T.type||T,typeof T=="string")T=new P(T,f);else if(T instanceof P)T.target=T.target||f;else{var ne=T;T=new P(U,f),xe(T,ne)}ne=!0;let se,Pe;if(R)for(Pe=R.length-1;Pe>=0;Pe--)se=T.g=R[Pe],ne=te(se,U,!0,T)&≠if(se=T.g=f,ne=te(se,U,!0,T)&&ne,ne=te(se,U,!1,T)&&ne,R)for(Pe=0;Pe<R.length;Pe++)se=T.g=R[Pe],ne=te(se,U,!1,T)&&ne}ee.prototype.N=function(){if(ee.Z.N.call(this),this.i){var f=this.i;for(const T in f.g){const R=f.g[T];for(let U=0;U<R.length;U++)G(R[U]);delete f.g[T],f.h--}}this.G=null},ee.prototype.J=function(f,T,R,U){return this.i.add(String(f),T,!1,R,U)},ee.prototype.K=function(f,T,R,U){return this.i.add(String(f),T,!0,R,U)};function te(f,T,R,U){if(T=f.i.g[String(T)],!T)return!0;T=T.concat();let ne=!0;for(let se=0;se<T.length;++se){const Pe=T[se];if(Pe&&!Pe.da&&Pe.capture==R){const dt=Pe.listener,Pn=Pe.ha||Pe.src;Pe.fa&&pe(f.i,Pe),ne=dt.call(Pn,U)!==!1&&ne}}return ne&&!U.defaultPrevented}function Q(f,T){if(typeof f!="function")if(f&&typeof f.handleEvent=="function")f=u(f.handleEvent,f);else throw Error("Invalid listener argument");return Number(T)>2147483647?-1:s.setTimeout(f,T||0)}function ye(f){f.g=Q(()=>{f.g=null,f.i&&(f.i=!1,ye(f))},f.l);const T=f.h;f.h=null,f.m.apply(null,T)}class he extends N{constructor(T,R){super(),this.m=T,this.l=R,this.h=null,this.i=!1,this.g=null}j(T){this.h=arguments,this.g?this.i=!0:ye(this)}N(){super.N(),this.g&&(s.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function be(f){N.call(this),this.h=f,this.g={}}d(be,N);var Le=[];function rt(f){J(f.g,function(T,R){this.g.hasOwnProperty(R)&&B(T)},f),f.g={}}be.prototype.N=function(){be.Z.N.call(this),rt(this)},be.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var gt=s.JSON.stringify,X=s.JSON.parse,q=class{stringify(f){return s.JSON.stringify(f,void 0)}parse(f){return s.JSON.parse(f,void 0)}};function ie(){}function ge(){}var Ce={OPEN:"a",hb:"b",ERROR:"c",tb:"d"};function We(){P.call(this,"d")}d(We,P);function ot(){P.call(this,"c")}d(ot,P);var Je={},St=null;function Ze(){return St=St||new ee}Je.Ia="serverreachability";function Ve(f){P.call(this,Je.Ia,f)}d(Ve,P);function Ke(f){const T=Ze();Y(T,new Ve(T))}Je.STAT_EVENT="statevent";function mt(f,T){P.call(this,Je.STAT_EVENT,f),this.stat=T}d(mt,P);function it(f){const T=Ze();Y(T,new mt(T,f))}Je.Ja="timingevent";function Gn(f,T){P.call(this,Je.Ja,f),this.size=T}d(Gn,P);function Po(f,T){if(typeof f!="function")throw Error("Fn must not be null and must be a function");return s.setTimeout(function(){f()},T)}function wa(){this.g=!0}wa.prototype.ua=function(){this.g=!1};function ru(f,T,R,U,ne,se){f.info(function(){if(f.g)if(se){var Pe="",dt=se.split("&");for(let Ut=0;Ut<dt.length;Ut++){var Pn=dt[Ut].split("=");if(Pn.length>1){const Rn=Pn[0];Pn=Pn[1];const Yi=Rn.split("_");Pe=Yi.length>=2&&Yi[1]=="type"?Pe+(Rn+"="+Pn+"&"):Pe+(Rn+"=redacted&")}}}else Pe=null;else Pe=se;return"XMLHTTP REQ ("+U+") [attempt "+ne+"]: "+T+`
|
|
1104
1104
|
`+R+`
|
|
1105
1105
|
`+Pe})}function yq(f,T,R,U,ne,se,Pe){f.info(function(){return"XMLHTTP RESP ("+U+") [ attempt "+ne+"]: "+T+`
|
|
1106
1106
|
`+R+`
|
|
1107
|
-
`+se+" "+Pe})}function iu(f,T,R,U){f.info(function(){return"XMLHTTP TEXT ("+T+"): "+_q(f,R)+(U?" "+U:"")})}function bq(f,T){f.info(function(){return"TIMEOUT: "+T})}wa.prototype.info=function(){};function _q(f,T){if(!f.g)return T;if(!T)return null;try{const se=JSON.parse(T);if(se){for(f=0;f<se.length;f++)if(Array.isArray(se[f])){var R=se[f];if(!(R.length<2)){var U=R[1];if(Array.isArray(U)&&!(U.length<1)){var ne=U[0];if(ne!="noop"&&ne!="stop"&&ne!="close")for(let Pe=1;Pe<U.length;Pe++)U[Pe]=""}}}}return gt(se)}catch{return T}}var Op={NO_ERROR:0,cb:1,qb:2,pb:3,kb:4,ob:5,rb:6,Ga:7,TIMEOUT:8,ub:9},sP={ib:"complete",Fb:"success",ERROR:"error",Ga:"abort",xb:"ready",yb:"readystatechange",TIMEOUT:"timeout",sb:"incrementaldata",wb:"progress",lb:"downloadprogress",Nb:"uploadprogress"},aP;function C0(){}d(C0,ie),C0.prototype.g=function(){return new XMLHttpRequest},aP=new C0;function sd(f){return encodeURIComponent(String(f))}function xq(f){var T=1;f=f.split(":");const R=[];for(;T>0&&f.length;)R.push(f.shift()),T--;return f.length&&R.push(f.join(":")),R}function bs(f,T,R,U){this.j=f,this.i=T,this.l=R,this.S=U||1,this.V=new be(this),this.H=45e3,this.J=null,this.o=!1,this.u=this.B=this.A=this.M=this.F=this.T=this.D=null,this.G=[],this.g=null,this.C=0,this.m=this.v=null,this.X=-1,this.K=!1,this.P=0,this.O=null,this.W=this.L=this.U=this.R=!1,this.h=new lP}function lP(){this.i=null,this.g="",this.h=!1}var uP={},A0={};function P0(f,T,R){f.M=1,f.A=Rp(Xi(T)),f.u=R,f.R=!0,cP(f,null)}function cP(f,T){f.F=Date.now(),Np(f),f.B=Xi(f.A);var R=f.B,U=f.S;Array.isArray(U)||(U=[String(U)]),SP(R.i,"t",U),f.C=0,R=f.j.L,f.h=new lP,f.g=UP(f.j,R?T:null,!f.u),f.P>0&&(f.O=new
|
|
1108
|
-
`,R);return U==-1?A0:(R=Number(T.substring(R,U)),isNaN(R)?uP:(U+=1,U+R>T.length?A0:(T=T.slice(U,U+R),f.C=U+R,T)))}bs.prototype.cancel=function(){this.K=!0,Sa(this)};function Np(f){f.T=Date.now()+f.H,fP(f,f.H)}function fP(f,T){if(f.D!=null)throw Error("WatchDog timer not null");f.D=Po(u(f.aa,f),T)}function k0(f){f.D&&(s.clearTimeout(f.D),f.D=null)}bs.prototype.aa=function(){this.D=null;const f=Date.now();f-this.T>=0?(bq(this.i,this.B),this.M!=2&&(Ke(),it(17)),Sa(this),this.m=2,ad(this)):fP(this,this.T-f)};function ad(f){f.j.I==0||f.K||LP(f.j,f)}function Sa(f){k0(f);var T=f.O;T&&typeof T.dispose=="function"&&T.dispose(),f.O=null,rt(f.V),f.g&&(T=f.g,f.g=null,T.abort(),T.dispose())}function O0(f,T){try{var R=f.j;if(R.I!=0&&(R.g==f||N0(R.h,f))){if(!f.L&&N0(R.h,f)&&R.I==3){try{var U=R.Ba.g.parse(T)}catch{U=null}if(Array.isArray(U)&&U.length==3){var ne=U;if(ne[0]==0){e:if(!R.v){if(R.g)if(R.g.F+3e3<f.F)Vp(R),Mp(R);else break e;V0(R),it(18)}}else R.xa=ne[1],0<R.xa-R.K&&ne[2]<37500&&R.F&&R.A==0&&!R.C&&(R.C=Po(u(R.Va,R),6e3));gP(R.h)<=1&&R.ta&&(R.ta=void 0)}else Ta(R,11)}else if((f.L||R.g==f)&&Vp(R),!S(T))for(ne=R.Ba.g.parse(T),T=0;T<ne.length;T++){let Ut=ne[T];const Rn=Ut[0];if(!(Rn<=R.K))if(R.K=Rn,Ut=Ut[1],R.I==2)if(Ut[0]=="c"){R.M=Ut[1],R.ba=Ut[2];const Yi=Ut[3];Yi!=null&&(R.ka=Yi,R.j.info("VER="+R.ka));const Ia=Ut[4];Ia!=null&&(R.za=Ia,R.j.info("SVER="+R.za));const Ss=Ut[5];Ss!=null&&typeof Ss=="number"&&Ss>0&&(U=1.5*Ss,R.O=U,R.j.info("backChannelRequestTimeoutMs_="+U)),U=R;const Es=f.g;if(Es){const zp=Es.g?Es.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(zp){var se=U.h;se.g||zp.indexOf("spdy")==-1&&zp.indexOf("quic")==-1&&zp.indexOf("h2")==-1||(se.j=se.l,se.g=new Set,se.h&&(R0(se,se.h),se.h=null))}if(U.G){const z0=Es.g?Es.g.getResponseHeader("X-HTTP-Session-Id"):null;z0&&(U.wa=z0,Xt(U.J,U.G,z0))}}R.I=3,R.l&&R.l.ra(),R.aa&&(R.T=Date.now()-f.F,R.j.info("Handshake RTT: "+R.T+"ms")),U=R;var Pe=f;if(U.na=zP(U,U.L?U.ba:null,U.W),Pe.L){mP(U.h,Pe);var dt=Pe,Pn=U.O;Pn&&(dt.H=Pn),dt.D&&(k0(dt),Np(dt)),U.g=Pe}else DP(U);R.i.length>0&&Lp(R)}else Ut[0]!="stop"&&Ut[0]!="close"||Ta(R,7);else R.I==3&&(Ut[0]=="stop"||Ut[0]=="close"?Ut[0]=="stop"?Ta(R,7):L0(R):Ut[0]!="noop"&&R.l&&R.l.qa(Ut),R.A=0)}}Ke(4)}catch{}}var Eq=class{constructor(f,T){this.g=f,this.map=T}};function hP(f){this.l=f||10,s.PerformanceNavigationTiming?(f=s.performance.getEntriesByType("navigation"),f=f.length>0&&(f[0].nextHopProtocol=="hq"||f[0].nextHopProtocol=="h2")):f=!!(s.chrome&&s.chrome.loadTimes&&s.chrome.loadTimes()&&s.chrome.loadTimes().wasFetchedViaSpdy),this.j=f?this.l:1,this.g=null,this.j>1&&(this.g=new Set),this.h=null,this.i=[]}function pP(f){return f.h?!0:f.g?f.g.size>=f.j:!1}function gP(f){return f.h?1:f.g?f.g.size:0}function N0(f,T){return f.h?f.h==T:f.g?f.g.has(T):!1}function R0(f,T){f.g?f.g.add(T):f.h=T}function mP(f,T){f.h&&f.h==T?f.h=null:f.g&&f.g.has(T)&&f.g.delete(T)}hP.prototype.cancel=function(){if(this.i=vP(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&this.g.size!==0){for(const f of this.g.values())f.cancel();this.g.clear()}};function vP(f){if(f.h!=null)return f.i.concat(f.h.G);if(f.g!=null&&f.g.size!==0){let T=f.i;for(const R of f.g.values())T=T.concat(R.G);return T}return p(f.i)}var yP=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function Tq(f,T){if(f){f=f.split("&");for(let R=0;R<f.length;R++){const U=f[R].indexOf("=");let ne,se=null;U>=0?(ne=f[R].substring(0,U),se=f[R].substring(U+1)):ne=f[R],T(ne,se?decodeURIComponent(se.replace(/\+/g," ")):"")}}}function _s(f){this.g=this.o=this.j="",this.u=null,this.m=this.h="",this.l=!1;let T;f instanceof _s?(this.l=f.l,ld(this,f.j),this.o=f.o,this.g=f.g,ud(this,f.u),this.h=f.h,$0(this,EP(f.i)),this.m=f.m):f&&(T=String(f).match(yP))?(this.l=!1,ld(this,T[1]||"",!0),this.o=cd(T[2]||""),this.g=cd(T[3]||"",!0),ud(this,T[4]),this.h=cd(T[5]||"",!0),$0(this,T[6]||"",!0),this.m=cd(T[7]||"")):(this.l=!1,this.i=new fd(null,this.l))}_s.prototype.toString=function(){const f=[];var T=this.j;T&&f.push(dd(T,bP,!0),":");var R=this.g;return(R||T=="file")&&(f.push("//"),(T=this.o)&&f.push(dd(T,bP,!0),"@"),f.push(sd(R).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),R=this.u,R!=null&&f.push(":",String(R))),(R=this.h)&&(this.g&&R.charAt(0)!="/"&&f.push("/"),f.push(dd(R,R.charAt(0)=="/"?Aq:Cq,!0))),(R=this.i.toString())&&f.push("?",R),(R=this.m)&&f.push("#",dd(R,kq)),f.join("")},_s.prototype.resolve=function(f){const T=Xi(this);let R=!!f.j;R?ld(T,f.j):R=!!f.o,R?T.o=f.o:R=!!f.g,R?T.g=f.g:R=f.u!=null;var U=f.h;if(R)ud(T,f.u);else if(R=!!f.h){if(U.charAt(0)!="/")if(this.g&&!this.h)U="/"+U;else{var ne=T.h.lastIndexOf("/");ne!=-1&&(U=T.h.slice(0,ne+1)+U)}if(ne=U,ne==".."||ne==".")U="";else if(ne.indexOf("./")!=-1||ne.indexOf("/.")!=-1){U=ne.lastIndexOf("/",0)==0,ne=ne.split("/");const se=[];for(let Pe=0;Pe<ne.length;){const dt=ne[Pe++];dt=="."?U&&Pe==ne.length&&se.push(""):dt==".."?((se.length>1||se.length==1&&se[0]!="")&&se.pop(),U&&Pe==ne.length&&se.push("")):(se.push(dt),U=!0)}U=se.join("/")}else U=ne}return R?T.h=U:R=f.i.toString()!=="",R?$0(T,EP(f.i)):R=!!f.m,R&&(T.m=f.m),T};function Xi(f){return new _s(f)}function ld(f,T,R){f.j=R?cd(T,!0):T,f.j&&(f.j=f.j.replace(/:$/,""))}function ud(f,T){if(T){if(T=Number(T),isNaN(T)||T<0)throw Error("Bad port number "+T);f.u=T}else f.u=null}function $0(f,T,R){T instanceof fd?(f.i=T,Oq(f.i,f.l)):(R||(T=dd(T,Pq)),f.i=new fd(T,f.l))}function Xt(f,T,R){f.i.set(T,R)}function Rp(f){return Xt(f,"zx",Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^Date.now()).toString(36)),f}function cd(f,T){return f?T?decodeURI(f.replace(/%25/g,"%2525")):decodeURIComponent(f):""}function dd(f,T,R){return typeof f=="string"?(f=encodeURI(f).replace(T,Iq),R&&(f=f.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),f):null}function Iq(f){return f=f.charCodeAt(0),"%"+(f>>4&15).toString(16)+(f&15).toString(16)}var bP=/[#\/\?@]/g,Cq=/[#\?:]/g,Aq=/[#\?]/g,Pq=/[#\?@]/g,kq=/#/g;function fd(f,T){this.h=this.g=null,this.i=f||null,this.j=!!T}function Ea(f){f.g||(f.g=new Map,f.h=0,f.i&&Tq(f.i,function(T,R){f.add(decodeURIComponent(T.replace(/\+/g," ")),R)}))}t=fd.prototype,t.add=function(f,T){Ea(this),this.i=null,f=ou(this,f);let R=this.g.get(f);return R||this.g.set(f,R=[]),R.push(T),this.h+=1,this};function _P(f,T){Ea(f),T=ou(f,T),f.g.has(T)&&(f.i=null,f.h-=f.g.get(T).length,f.g.delete(T))}function xP(f,T){return Ea(f),T=ou(f,T),f.g.has(T)}t.forEach=function(f,T){Ea(this),this.g.forEach(function(R,U){R.forEach(function(ne){f.call(T,ne,U,this)},this)},this)};function wP(f,T){Ea(f);let R=[];if(typeof T=="string")xP(f,T)&&(R=R.concat(f.g.get(ou(f,T))));else for(f=Array.from(f.g.values()),T=0;T<f.length;T++)R=R.concat(f[T]);return R}t.set=function(f,T){return Ea(this),this.i=null,f=ou(this,f),xP(this,f)&&(this.h-=this.g.get(f).length),this.g.set(f,[T]),this.h+=1,this},t.get=function(f,T){return f?(f=wP(this,f),f.length>0?String(f[0]):T):T};function SP(f,T,R){_P(f,T),R.length>0&&(f.i=null,f.g.set(ou(f,T),p(R)),f.h+=R.length)}t.toString=function(){if(this.i)return this.i;if(!this.g)return"";const f=[],T=Array.from(this.g.keys());for(let U=0;U<T.length;U++){var R=T[U];const ne=sd(R);R=wP(this,R);for(let se=0;se<R.length;se++){let Pe=ne;R[se]!==""&&(Pe+="="+sd(R[se])),f.push(Pe)}}return this.i=f.join("&")};function EP(f){const T=new fd;return T.i=f.i,f.g&&(T.g=new Map(f.g),T.h=f.h),T}function ou(f,T){return T=String(T),f.j&&(T=T.toLowerCase()),T}function Oq(f,T){T&&!f.j&&(Ea(f),f.i=null,f.g.forEach(function(R,U){const ne=U.toLowerCase();U!=ne&&(_P(this,U),SP(this,ne,R))},f)),f.j=T}function Nq(f,T){const R=new wa;if(s.Image){const U=new Image;U.onload=c(xs,R,"TestLoadImage: loaded",!0,T,U),U.onerror=c(xs,R,"TestLoadImage: error",!1,T,U),U.onabort=c(xs,R,"TestLoadImage: abort",!1,T,U),U.ontimeout=c(xs,R,"TestLoadImage: timeout",!1,T,U),s.setTimeout(function(){U.ontimeout&&U.ontimeout()},1e4),U.src=f}else T(!1)}function Rq(f,T){const R=new wa,U=new AbortController,ne=setTimeout(()=>{U.abort(),xs(R,"TestPingServer: timeout",!1,T)},1e4);fetch(f,{signal:U.signal}).then(se=>{clearTimeout(ne),se.ok?xs(R,"TestPingServer: ok",!0,T):xs(R,"TestPingServer: server error",!1,T)}).catch(()=>{clearTimeout(ne),xs(R,"TestPingServer: error",!1,T)})}function xs(f,T,R,U,ne){try{ne&&(ne.onload=null,ne.onerror=null,ne.onabort=null,ne.ontimeout=null),U(R)}catch{}}function $q(){this.g=new Q}function D0(f){this.i=f.Sb||null,this.h=f.ab||!1}d(D0,ie),D0.prototype.g=function(){return new $p(this.i,this.h)};function $p(f,T){ee.call(this),this.H=f,this.o=T,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.A=new Headers,this.h=null,this.F="GET",this.D="",this.g=!1,this.B=this.j=this.l=null,this.v=new AbortController}d($p,ee),t=$p.prototype,t.open=function(f,T){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.F=f,this.D=T,this.readyState=1,pd(this)},t.send=function(f){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.v.signal.aborted)throw this.abort(),Error("Request was aborted.");this.g=!0;const T={headers:this.A,method:this.F,credentials:this.m,cache:void 0,signal:this.v.signal};f&&(T.body=f),(this.H||s).fetch(new Request(this.D,T)).then(this.Pa.bind(this),this.ga.bind(this))},t.abort=function(){this.response=this.responseText="",this.A=new Headers,this.status=0,this.v.abort(),this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),this.readyState>=1&&this.g&&this.readyState!=4&&(this.g=!1,hd(this)),this.readyState=0},t.Pa=function(f){if(this.g&&(this.l=f,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=f.headers,this.readyState=2,pd(this)),this.g&&(this.readyState=3,pd(this),this.g)))if(this.responseType==="arraybuffer")f.arrayBuffer().then(this.Na.bind(this),this.ga.bind(this));else if(typeof s.ReadableStream<"u"&&"body"in f){if(this.j=f.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.B=new TextDecoder;TP(this)}else f.text().then(this.Oa.bind(this),this.ga.bind(this))};function TP(f){f.j.read().then(f.Ma.bind(f)).catch(f.ga.bind(f))}t.Ma=function(f){if(this.g){if(this.o&&f.value)this.response.push(f.value);else if(!this.o){var T=f.value?f.value:new Uint8Array(0);(T=this.B.decode(T,{stream:!f.done}))&&(this.response=this.responseText+=T)}f.done?hd(this):pd(this),this.readyState==3&&TP(this)}},t.Oa=function(f){this.g&&(this.response=this.responseText=f,hd(this))},t.Na=function(f){this.g&&(this.response=f,hd(this))},t.ga=function(){this.g&&hd(this)};function hd(f){f.readyState=4,f.l=null,f.j=null,f.B=null,pd(f)}t.setRequestHeader=function(f,T){this.A.append(f,T)},t.getResponseHeader=function(f){return this.h&&this.h.get(f.toLowerCase())||""},t.getAllResponseHeaders=function(){if(!this.h)return"";const f=[],T=this.h.entries();for(var R=T.next();!R.done;)R=R.value,f.push(R[0]+": "+R[1]),R=T.next();return f.join(`\r
|
|
1109
|
-
`)};function pd(f){f.onreadystatechange&&f.onreadystatechange.call(f)}Object.defineProperty($p.prototype,"withCredentials",{get:function(){return this.m==="include"},set:function(f){this.m=f?"include":"same-origin"}});function IP(f){let T="";return
|
|
1107
|
+
`+se+" "+Pe})}function iu(f,T,R,U){f.info(function(){return"XMLHTTP TEXT ("+T+"): "+_q(f,R)+(U?" "+U:"")})}function bq(f,T){f.info(function(){return"TIMEOUT: "+T})}wa.prototype.info=function(){};function _q(f,T){if(!f.g)return T;if(!T)return null;try{const se=JSON.parse(T);if(se){for(f=0;f<se.length;f++)if(Array.isArray(se[f])){var R=se[f];if(!(R.length<2)){var U=R[1];if(Array.isArray(U)&&!(U.length<1)){var ne=U[0];if(ne!="noop"&&ne!="stop"&&ne!="close")for(let Pe=1;Pe<U.length;Pe++)U[Pe]=""}}}}return gt(se)}catch{return T}}var Op={NO_ERROR:0,cb:1,qb:2,pb:3,kb:4,ob:5,rb:6,Ga:7,TIMEOUT:8,ub:9},sP={ib:"complete",Fb:"success",ERROR:"error",Ga:"abort",xb:"ready",yb:"readystatechange",TIMEOUT:"timeout",sb:"incrementaldata",wb:"progress",lb:"downloadprogress",Nb:"uploadprogress"},aP;function C0(){}d(C0,ie),C0.prototype.g=function(){return new XMLHttpRequest},aP=new C0;function sd(f){return encodeURIComponent(String(f))}function xq(f){var T=1;f=f.split(":");const R=[];for(;T>0&&f.length;)R.push(f.shift()),T--;return f.length&&R.push(f.join(":")),R}function bs(f,T,R,U){this.j=f,this.i=T,this.l=R,this.S=U||1,this.V=new be(this),this.H=45e3,this.J=null,this.o=!1,this.u=this.B=this.A=this.M=this.F=this.T=this.D=null,this.G=[],this.g=null,this.C=0,this.m=this.v=null,this.X=-1,this.K=!1,this.P=0,this.O=null,this.W=this.L=this.U=this.R=!1,this.h=new lP}function lP(){this.i=null,this.g="",this.h=!1}var uP={},A0={};function P0(f,T,R){f.M=1,f.A=Rp(Xi(T)),f.u=R,f.R=!0,cP(f,null)}function cP(f,T){f.F=Date.now(),Np(f),f.B=Xi(f.A);var R=f.B,U=f.S;Array.isArray(U)||(U=[String(U)]),SP(R.i,"t",U),f.C=0,R=f.j.L,f.h=new lP,f.g=UP(f.j,R?T:null,!f.u),f.P>0&&(f.O=new he(u(f.Y,f,f.g),f.P)),T=f.V,R=f.g,U=f.ba;var ne="readystatechange";Array.isArray(ne)||(ne&&(Le[0]=ne.toString()),ne=Le);for(let se=0;se<ne.length;se++){const Pe=$e(R,ne[se],U||T.handleEvent,!1,T.h||T);if(!Pe)break;T.g[Pe.key]=Pe}T=f.J?ae(f.J):{},f.u?(f.v||(f.v="POST"),T["Content-Type"]="application/x-www-form-urlencoded",f.g.ea(f.B,f.v,f.u,T)):(f.v="GET",f.g.ea(f.B,f.v,null,T)),Ke(),ru(f.i,f.v,f.B,f.l,f.S,f.u)}bs.prototype.ba=function(f){f=f.target;const T=this.O;T&&ws(f)==3?T.j():this.Y(f)},bs.prototype.Y=function(f){try{if(f==this.g)e:{const dt=ws(this.g),Pn=this.g.ya(),Ut=this.g.ca();if(!(dt<3)&&(dt!=3||this.g&&(this.h.h||this.g.la()||kP(this.g)))){this.K||dt!=4||Pn==7||(Pn==8||Ut<=0?Ke(3):Ke(2)),k0(this);var T=this.g.ca();this.X=T;var R=wq(this);if(this.o=T==200,yq(this.i,this.v,this.B,this.l,this.S,dt,T),this.o){if(this.U&&!this.L){t:{if(this.g){var U,ne=this.g;if((U=ne.g?ne.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!S(U)){var se=U;break t}}se=null}if(f=se)iu(this.i,this.l,f,"Initial handshake response via X-HTTP-Initial-Response"),this.L=!0,O0(this,f);else{this.o=!1,this.m=3,it(12),Sa(this),ad(this);break e}}if(this.R){f=!0;let Rn;for(;!this.K&&this.C<R.length;)if(Rn=Sq(this,R),Rn==A0){dt==4&&(this.m=4,it(14),f=!1),iu(this.i,this.l,null,"[Incomplete Response]");break}else if(Rn==uP){this.m=4,it(15),iu(this.i,this.l,R,"[Invalid Chunk]"),f=!1;break}else iu(this.i,this.l,Rn,null),O0(this,Rn);if(dP(this)&&this.C!=0&&(this.h.g=this.h.g.slice(this.C),this.C=0),dt!=4||R.length!=0||this.h.h||(this.m=1,it(16),f=!1),this.o=this.o&&f,!f)iu(this.i,this.l,R,"[Invalid Chunked Response]"),Sa(this),ad(this);else if(R.length>0&&!this.W){this.W=!0;var Pe=this.j;Pe.g==this&&Pe.aa&&!Pe.P&&(Pe.j.info("Great, no buffering proxy detected. Bytes received: "+R.length),F0(Pe),Pe.P=!0,it(11))}}else iu(this.i,this.l,R,null),O0(this,R);dt==4&&Sa(this),this.o&&!this.K&&(dt==4?LP(this.j,this):(this.o=!1,Np(this)))}else Lq(this.g),T==400&&R.indexOf("Unknown SID")>0?(this.m=3,it(12)):(this.m=0,it(13)),Sa(this),ad(this)}}}catch{}finally{}};function wq(f){if(!dP(f))return f.g.la();const T=kP(f.g);if(T==="")return"";let R="";const U=T.length,ne=ws(f.g)==4;if(!f.h.i){if(typeof TextDecoder>"u")return Sa(f),ad(f),"";f.h.i=new s.TextDecoder}for(let se=0;se<U;se++)f.h.h=!0,R+=f.h.i.decode(T[se],{stream:!(ne&&se==U-1)});return T.length=0,f.h.g+=R,f.C=0,f.h.g}function dP(f){return f.g?f.v=="GET"&&f.M!=2&&f.j.Aa:!1}function Sq(f,T){var R=f.C,U=T.indexOf(`
|
|
1108
|
+
`,R);return U==-1?A0:(R=Number(T.substring(R,U)),isNaN(R)?uP:(U+=1,U+R>T.length?A0:(T=T.slice(U,U+R),f.C=U+R,T)))}bs.prototype.cancel=function(){this.K=!0,Sa(this)};function Np(f){f.T=Date.now()+f.H,fP(f,f.H)}function fP(f,T){if(f.D!=null)throw Error("WatchDog timer not null");f.D=Po(u(f.aa,f),T)}function k0(f){f.D&&(s.clearTimeout(f.D),f.D=null)}bs.prototype.aa=function(){this.D=null;const f=Date.now();f-this.T>=0?(bq(this.i,this.B),this.M!=2&&(Ke(),it(17)),Sa(this),this.m=2,ad(this)):fP(this,this.T-f)};function ad(f){f.j.I==0||f.K||LP(f.j,f)}function Sa(f){k0(f);var T=f.O;T&&typeof T.dispose=="function"&&T.dispose(),f.O=null,rt(f.V),f.g&&(T=f.g,f.g=null,T.abort(),T.dispose())}function O0(f,T){try{var R=f.j;if(R.I!=0&&(R.g==f||N0(R.h,f))){if(!f.L&&N0(R.h,f)&&R.I==3){try{var U=R.Ba.g.parse(T)}catch{U=null}if(Array.isArray(U)&&U.length==3){var ne=U;if(ne[0]==0){e:if(!R.v){if(R.g)if(R.g.F+3e3<f.F)Vp(R),Mp(R);else break e;V0(R),it(18)}}else R.xa=ne[1],0<R.xa-R.K&&ne[2]<37500&&R.F&&R.A==0&&!R.C&&(R.C=Po(u(R.Va,R),6e3));gP(R.h)<=1&&R.ta&&(R.ta=void 0)}else Ta(R,11)}else if((f.L||R.g==f)&&Vp(R),!S(T))for(ne=R.Ba.g.parse(T),T=0;T<ne.length;T++){let Ut=ne[T];const Rn=Ut[0];if(!(Rn<=R.K))if(R.K=Rn,Ut=Ut[1],R.I==2)if(Ut[0]=="c"){R.M=Ut[1],R.ba=Ut[2];const Yi=Ut[3];Yi!=null&&(R.ka=Yi,R.j.info("VER="+R.ka));const Ia=Ut[4];Ia!=null&&(R.za=Ia,R.j.info("SVER="+R.za));const Ss=Ut[5];Ss!=null&&typeof Ss=="number"&&Ss>0&&(U=1.5*Ss,R.O=U,R.j.info("backChannelRequestTimeoutMs_="+U)),U=R;const Es=f.g;if(Es){const zp=Es.g?Es.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(zp){var se=U.h;se.g||zp.indexOf("spdy")==-1&&zp.indexOf("quic")==-1&&zp.indexOf("h2")==-1||(se.j=se.l,se.g=new Set,se.h&&(R0(se,se.h),se.h=null))}if(U.G){const z0=Es.g?Es.g.getResponseHeader("X-HTTP-Session-Id"):null;z0&&(U.wa=z0,Xt(U.J,U.G,z0))}}R.I=3,R.l&&R.l.ra(),R.aa&&(R.T=Date.now()-f.F,R.j.info("Handshake RTT: "+R.T+"ms")),U=R;var Pe=f;if(U.na=zP(U,U.L?U.ba:null,U.W),Pe.L){mP(U.h,Pe);var dt=Pe,Pn=U.O;Pn&&(dt.H=Pn),dt.D&&(k0(dt),Np(dt)),U.g=Pe}else DP(U);R.i.length>0&&Lp(R)}else Ut[0]!="stop"&&Ut[0]!="close"||Ta(R,7);else R.I==3&&(Ut[0]=="stop"||Ut[0]=="close"?Ut[0]=="stop"?Ta(R,7):L0(R):Ut[0]!="noop"&&R.l&&R.l.qa(Ut),R.A=0)}}Ke(4)}catch{}}var Eq=class{constructor(f,T){this.g=f,this.map=T}};function hP(f){this.l=f||10,s.PerformanceNavigationTiming?(f=s.performance.getEntriesByType("navigation"),f=f.length>0&&(f[0].nextHopProtocol=="hq"||f[0].nextHopProtocol=="h2")):f=!!(s.chrome&&s.chrome.loadTimes&&s.chrome.loadTimes()&&s.chrome.loadTimes().wasFetchedViaSpdy),this.j=f?this.l:1,this.g=null,this.j>1&&(this.g=new Set),this.h=null,this.i=[]}function pP(f){return f.h?!0:f.g?f.g.size>=f.j:!1}function gP(f){return f.h?1:f.g?f.g.size:0}function N0(f,T){return f.h?f.h==T:f.g?f.g.has(T):!1}function R0(f,T){f.g?f.g.add(T):f.h=T}function mP(f,T){f.h&&f.h==T?f.h=null:f.g&&f.g.has(T)&&f.g.delete(T)}hP.prototype.cancel=function(){if(this.i=vP(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&this.g.size!==0){for(const f of this.g.values())f.cancel();this.g.clear()}};function vP(f){if(f.h!=null)return f.i.concat(f.h.G);if(f.g!=null&&f.g.size!==0){let T=f.i;for(const R of f.g.values())T=T.concat(R.G);return T}return p(f.i)}var yP=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function Tq(f,T){if(f){f=f.split("&");for(let R=0;R<f.length;R++){const U=f[R].indexOf("=");let ne,se=null;U>=0?(ne=f[R].substring(0,U),se=f[R].substring(U+1)):ne=f[R],T(ne,se?decodeURIComponent(se.replace(/\+/g," ")):"")}}}function _s(f){this.g=this.o=this.j="",this.u=null,this.m=this.h="",this.l=!1;let T;f instanceof _s?(this.l=f.l,ld(this,f.j),this.o=f.o,this.g=f.g,ud(this,f.u),this.h=f.h,$0(this,EP(f.i)),this.m=f.m):f&&(T=String(f).match(yP))?(this.l=!1,ld(this,T[1]||"",!0),this.o=cd(T[2]||""),this.g=cd(T[3]||"",!0),ud(this,T[4]),this.h=cd(T[5]||"",!0),$0(this,T[6]||"",!0),this.m=cd(T[7]||"")):(this.l=!1,this.i=new fd(null,this.l))}_s.prototype.toString=function(){const f=[];var T=this.j;T&&f.push(dd(T,bP,!0),":");var R=this.g;return(R||T=="file")&&(f.push("//"),(T=this.o)&&f.push(dd(T,bP,!0),"@"),f.push(sd(R).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),R=this.u,R!=null&&f.push(":",String(R))),(R=this.h)&&(this.g&&R.charAt(0)!="/"&&f.push("/"),f.push(dd(R,R.charAt(0)=="/"?Aq:Cq,!0))),(R=this.i.toString())&&f.push("?",R),(R=this.m)&&f.push("#",dd(R,kq)),f.join("")},_s.prototype.resolve=function(f){const T=Xi(this);let R=!!f.j;R?ld(T,f.j):R=!!f.o,R?T.o=f.o:R=!!f.g,R?T.g=f.g:R=f.u!=null;var U=f.h;if(R)ud(T,f.u);else if(R=!!f.h){if(U.charAt(0)!="/")if(this.g&&!this.h)U="/"+U;else{var ne=T.h.lastIndexOf("/");ne!=-1&&(U=T.h.slice(0,ne+1)+U)}if(ne=U,ne==".."||ne==".")U="";else if(ne.indexOf("./")!=-1||ne.indexOf("/.")!=-1){U=ne.lastIndexOf("/",0)==0,ne=ne.split("/");const se=[];for(let Pe=0;Pe<ne.length;){const dt=ne[Pe++];dt=="."?U&&Pe==ne.length&&se.push(""):dt==".."?((se.length>1||se.length==1&&se[0]!="")&&se.pop(),U&&Pe==ne.length&&se.push("")):(se.push(dt),U=!0)}U=se.join("/")}else U=ne}return R?T.h=U:R=f.i.toString()!=="",R?$0(T,EP(f.i)):R=!!f.m,R&&(T.m=f.m),T};function Xi(f){return new _s(f)}function ld(f,T,R){f.j=R?cd(T,!0):T,f.j&&(f.j=f.j.replace(/:$/,""))}function ud(f,T){if(T){if(T=Number(T),isNaN(T)||T<0)throw Error("Bad port number "+T);f.u=T}else f.u=null}function $0(f,T,R){T instanceof fd?(f.i=T,Oq(f.i,f.l)):(R||(T=dd(T,Pq)),f.i=new fd(T,f.l))}function Xt(f,T,R){f.i.set(T,R)}function Rp(f){return Xt(f,"zx",Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^Date.now()).toString(36)),f}function cd(f,T){return f?T?decodeURI(f.replace(/%25/g,"%2525")):decodeURIComponent(f):""}function dd(f,T,R){return typeof f=="string"?(f=encodeURI(f).replace(T,Iq),R&&(f=f.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),f):null}function Iq(f){return f=f.charCodeAt(0),"%"+(f>>4&15).toString(16)+(f&15).toString(16)}var bP=/[#\/\?@]/g,Cq=/[#\?:]/g,Aq=/[#\?]/g,Pq=/[#\?@]/g,kq=/#/g;function fd(f,T){this.h=this.g=null,this.i=f||null,this.j=!!T}function Ea(f){f.g||(f.g=new Map,f.h=0,f.i&&Tq(f.i,function(T,R){f.add(decodeURIComponent(T.replace(/\+/g," ")),R)}))}t=fd.prototype,t.add=function(f,T){Ea(this),this.i=null,f=ou(this,f);let R=this.g.get(f);return R||this.g.set(f,R=[]),R.push(T),this.h+=1,this};function _P(f,T){Ea(f),T=ou(f,T),f.g.has(T)&&(f.i=null,f.h-=f.g.get(T).length,f.g.delete(T))}function xP(f,T){return Ea(f),T=ou(f,T),f.g.has(T)}t.forEach=function(f,T){Ea(this),this.g.forEach(function(R,U){R.forEach(function(ne){f.call(T,ne,U,this)},this)},this)};function wP(f,T){Ea(f);let R=[];if(typeof T=="string")xP(f,T)&&(R=R.concat(f.g.get(ou(f,T))));else for(f=Array.from(f.g.values()),T=0;T<f.length;T++)R=R.concat(f[T]);return R}t.set=function(f,T){return Ea(this),this.i=null,f=ou(this,f),xP(this,f)&&(this.h-=this.g.get(f).length),this.g.set(f,[T]),this.h+=1,this},t.get=function(f,T){return f?(f=wP(this,f),f.length>0?String(f[0]):T):T};function SP(f,T,R){_P(f,T),R.length>0&&(f.i=null,f.g.set(ou(f,T),p(R)),f.h+=R.length)}t.toString=function(){if(this.i)return this.i;if(!this.g)return"";const f=[],T=Array.from(this.g.keys());for(let U=0;U<T.length;U++){var R=T[U];const ne=sd(R);R=wP(this,R);for(let se=0;se<R.length;se++){let Pe=ne;R[se]!==""&&(Pe+="="+sd(R[se])),f.push(Pe)}}return this.i=f.join("&")};function EP(f){const T=new fd;return T.i=f.i,f.g&&(T.g=new Map(f.g),T.h=f.h),T}function ou(f,T){return T=String(T),f.j&&(T=T.toLowerCase()),T}function Oq(f,T){T&&!f.j&&(Ea(f),f.i=null,f.g.forEach(function(R,U){const ne=U.toLowerCase();U!=ne&&(_P(this,U),SP(this,ne,R))},f)),f.j=T}function Nq(f,T){const R=new wa;if(s.Image){const U=new Image;U.onload=c(xs,R,"TestLoadImage: loaded",!0,T,U),U.onerror=c(xs,R,"TestLoadImage: error",!1,T,U),U.onabort=c(xs,R,"TestLoadImage: abort",!1,T,U),U.ontimeout=c(xs,R,"TestLoadImage: timeout",!1,T,U),s.setTimeout(function(){U.ontimeout&&U.ontimeout()},1e4),U.src=f}else T(!1)}function Rq(f,T){const R=new wa,U=new AbortController,ne=setTimeout(()=>{U.abort(),xs(R,"TestPingServer: timeout",!1,T)},1e4);fetch(f,{signal:U.signal}).then(se=>{clearTimeout(ne),se.ok?xs(R,"TestPingServer: ok",!0,T):xs(R,"TestPingServer: server error",!1,T)}).catch(()=>{clearTimeout(ne),xs(R,"TestPingServer: error",!1,T)})}function xs(f,T,R,U,ne){try{ne&&(ne.onload=null,ne.onerror=null,ne.onabort=null,ne.ontimeout=null),U(R)}catch{}}function $q(){this.g=new q}function D0(f){this.i=f.Sb||null,this.h=f.ab||!1}d(D0,ie),D0.prototype.g=function(){return new $p(this.i,this.h)};function $p(f,T){ee.call(this),this.H=f,this.o=T,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.A=new Headers,this.h=null,this.F="GET",this.D="",this.g=!1,this.B=this.j=this.l=null,this.v=new AbortController}d($p,ee),t=$p.prototype,t.open=function(f,T){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.F=f,this.D=T,this.readyState=1,pd(this)},t.send=function(f){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.v.signal.aborted)throw this.abort(),Error("Request was aborted.");this.g=!0;const T={headers:this.A,method:this.F,credentials:this.m,cache:void 0,signal:this.v.signal};f&&(T.body=f),(this.H||s).fetch(new Request(this.D,T)).then(this.Pa.bind(this),this.ga.bind(this))},t.abort=function(){this.response=this.responseText="",this.A=new Headers,this.status=0,this.v.abort(),this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),this.readyState>=1&&this.g&&this.readyState!=4&&(this.g=!1,hd(this)),this.readyState=0},t.Pa=function(f){if(this.g&&(this.l=f,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=f.headers,this.readyState=2,pd(this)),this.g&&(this.readyState=3,pd(this),this.g)))if(this.responseType==="arraybuffer")f.arrayBuffer().then(this.Na.bind(this),this.ga.bind(this));else if(typeof s.ReadableStream<"u"&&"body"in f){if(this.j=f.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.B=new TextDecoder;TP(this)}else f.text().then(this.Oa.bind(this),this.ga.bind(this))};function TP(f){f.j.read().then(f.Ma.bind(f)).catch(f.ga.bind(f))}t.Ma=function(f){if(this.g){if(this.o&&f.value)this.response.push(f.value);else if(!this.o){var T=f.value?f.value:new Uint8Array(0);(T=this.B.decode(T,{stream:!f.done}))&&(this.response=this.responseText+=T)}f.done?hd(this):pd(this),this.readyState==3&&TP(this)}},t.Oa=function(f){this.g&&(this.response=this.responseText=f,hd(this))},t.Na=function(f){this.g&&(this.response=f,hd(this))},t.ga=function(){this.g&&hd(this)};function hd(f){f.readyState=4,f.l=null,f.j=null,f.B=null,pd(f)}t.setRequestHeader=function(f,T){this.A.append(f,T)},t.getResponseHeader=function(f){return this.h&&this.h.get(f.toLowerCase())||""},t.getAllResponseHeaders=function(){if(!this.h)return"";const f=[],T=this.h.entries();for(var R=T.next();!R.done;)R=R.value,f.push(R[0]+": "+R[1]),R=T.next();return f.join(`\r
|
|
1109
|
+
`)};function pd(f){f.onreadystatechange&&f.onreadystatechange.call(f)}Object.defineProperty($p.prototype,"withCredentials",{get:function(){return this.m==="include"},set:function(f){this.m=f?"include":"same-origin"}});function IP(f){let T="";return J(f,function(R,U){T+=U,T+=":",T+=R,T+=`\r
|
|
1110
1110
|
`}),T}function M0(f,T,R){e:{for(U in R){var U=!1;break e}U=!0}U||(R=IP(R),typeof f=="string"?R!=null&&sd(R):Xt(f,T,R))}function gn(f){ee.call(this),this.headers=new Map,this.L=f||null,this.h=!1,this.g=null,this.D="",this.o=0,this.l="",this.j=this.B=this.v=this.A=!1,this.m=null,this.F="",this.H=!1}d(gn,ee);var Dq=/^https?$/i,Mq=["POST","PUT"];t=gn.prototype,t.Fa=function(f){this.H=f},t.ea=function(f,T,R,U){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+f);T=T?T.toUpperCase():"GET",this.D=f,this.l="",this.o=0,this.A=!1,this.h=!0,this.g=this.L?this.L.g():aP.g(),this.g.onreadystatechange=h(u(this.Ca,this));try{this.B=!0,this.g.open(T,String(f),!0),this.B=!1}catch(se){CP(this,se);return}if(f=R||"",R=new Map(this.headers),U)if(Object.getPrototypeOf(U)===Object.prototype)for(var ne in U)R.set(ne,U[ne]);else if(typeof U.keys=="function"&&typeof U.get=="function")for(const se of U.keys())R.set(se,U.get(se));else throw Error("Unknown input type for opt_headers: "+String(U));U=Array.from(R.keys()).find(se=>se.toLowerCase()=="content-type"),ne=s.FormData&&f instanceof s.FormData,!(Array.prototype.indexOf.call(Mq,T,void 0)>=0)||U||ne||R.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[se,Pe]of R)this.g.setRequestHeader(se,Pe);this.F&&(this.g.responseType=this.F),"withCredentials"in this.g&&this.g.withCredentials!==this.H&&(this.g.withCredentials=this.H);try{this.m&&(clearTimeout(this.m),this.m=null),this.v=!0,this.g.send(f),this.v=!1}catch(se){CP(this,se)}};function CP(f,T){f.h=!1,f.g&&(f.j=!0,f.g.abort(),f.j=!1),f.l=T,f.o=5,AP(f),Dp(f)}function AP(f){f.A||(f.A=!0,Y(f,"complete"),Y(f,"error"))}t.abort=function(f){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.o=f||7,Y(this,"complete"),Y(this,"abort"),Dp(this))},t.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),Dp(this,!0)),gn.Z.N.call(this)},t.Ca=function(){this.u||(this.B||this.v||this.j?PP(this):this.Xa())},t.Xa=function(){PP(this)};function PP(f){if(f.h&&typeof o<"u"){if(f.v&&ws(f)==4)setTimeout(f.Ca.bind(f),0);else if(Y(f,"readystatechange"),ws(f)==4){f.h=!1;try{const se=f.ca();e:switch(se){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var T=!0;break e;default:T=!1}var R;if(!(R=T)){var U;if(U=se===0){let Pe=String(f.D).match(yP)[1]||null;!Pe&&s.self&&s.self.location&&(Pe=s.self.location.protocol.slice(0,-1)),U=!Dq.test(Pe?Pe.toLowerCase():"")}R=U}if(R)Y(f,"complete"),Y(f,"success");else{f.o=6;try{var ne=ws(f)>2?f.g.statusText:""}catch{ne=""}f.l=ne+" ["+f.ca()+"]",AP(f)}}finally{Dp(f)}}}}function Dp(f,T){if(f.g){f.m&&(clearTimeout(f.m),f.m=null);const R=f.g;f.g=null,T||Y(f,"ready");try{R.onreadystatechange=null}catch{}}}t.isActive=function(){return!!this.g};function ws(f){return f.g?f.g.readyState:0}t.ca=function(){try{return ws(this)>2?this.g.status:-1}catch{return-1}},t.la=function(){try{return this.g?this.g.responseText:""}catch{return""}},t.La=function(f){if(this.g){var T=this.g.responseText;return f&&T.indexOf(f)==0&&(T=T.substring(f.length)),X(T)}};function kP(f){try{if(!f.g)return null;if("response"in f.g)return f.g.response;switch(f.F){case"":case"text":return f.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in f.g)return f.g.mozResponseArrayBuffer}return null}catch{return null}}function Lq(f){const T={};f=(f.g&&ws(f)>=2&&f.g.getAllResponseHeaders()||"").split(`\r
|
|
1111
|
-
`);for(let U=0;U<f.length;U++){if(S(f[U]))continue;var R=xq(f[U]);const ne=R[0];if(R=R[1],typeof R!="string")continue;R=R.trim();const se=T[ne]||[];T[ne]=se,se.push(R)}oe(T,function(U){return U.join(", ")})}t.ya=function(){return this.o},t.Ha=function(){return typeof this.l=="string"?this.l:String(this.l)};function gd(f,T,R){return R&&R.internalChannelParams&&R.internalChannelParams[f]||T}function OP(f){this.za=0,this.i=[],this.j=new wa,this.ba=this.na=this.J=this.W=this.g=this.wa=this.G=this.H=this.u=this.U=this.o=null,this.Ya=this.V=0,this.Sa=gd("failFast",!1,f),this.F=this.C=this.v=this.m=this.l=null,this.X=!0,this.xa=this.K=-1,this.Y=this.A=this.D=0,this.Qa=gd("baseRetryDelayMs",5e3,f),this.Za=gd("retryDelaySeedMs",1e4,f),this.Ta=gd("forwardChannelMaxRetries",2,f),this.va=gd("forwardChannelRequestTimeoutMs",2e4,f),this.ma=f&&f.xmlHttpFactory||void 0,this.Ua=f&&f.Rb||void 0,this.Aa=f&&f.useFetchStreams||!1,this.O=void 0,this.L=f&&f.supportsCrossDomainXhr||!1,this.M="",this.h=new hP(f&&f.concurrentRequestLimit),this.Ba=new $q,this.S=f&&f.fastHandshake||!1,this.R=f&&f.encodeInitMessageHeaders||!1,this.S&&this.R&&(this.R=!1),this.Ra=f&&f.Pb||!1,f&&f.ua&&this.j.ua(),f&&f.forceLongPolling&&(this.X=!1),this.aa=!this.S&&this.X&&f&&f.detectBufferingProxy||!1,this.ia=void 0,f&&f.longPollingTimeout&&f.longPollingTimeout>0&&(this.ia=f.longPollingTimeout),this.ta=void 0,this.T=0,this.P=!1,this.ja=this.B=null}t=OP.prototype,t.ka=8,t.I=1,t.connect=function(f,T,R,U){it(0),this.W=f,this.H=T||{},R&&U!==void 0&&(this.H.OSID=R,this.H.OAID=U),this.F=this.X,this.J=zP(this,null,this.W),Lp(this)};function L0(f){if(NP(f),f.I==3){var T=f.V++,R=Xi(f.J);if(Xt(R,"SID",f.M),Xt(R,"RID",T),Xt(R,"TYPE","terminate"),md(f,R),T=new bs(f,f.j,T),T.M=2,T.A=Rp(Xi(R)),R=!1,s.navigator&&s.navigator.sendBeacon)try{R=s.navigator.sendBeacon(T.A.toString(),"")}catch{}!R&&s.Image&&(new Image().src=T.A,R=!0),R||(T.g=UP(T.j,null),T.g.ea(T.A)),T.F=Date.now(),Np(T)}FP(f)}function Mp(f){f.g&&(F0(f),f.g.cancel(),f.g=null)}function NP(f){Mp(f),f.v&&(s.clearTimeout(f.v),f.v=null),Vp(f),f.h.cancel(),f.m&&(typeof f.m=="number"&&s.clearTimeout(f.m),f.m=null)}function Lp(f){if(!pP(f.h)&&!f.m){f.m=!0;var T=f.Ea;k||A(),$||(k(),$=!0),O.add(T,f),f.D=0}}function Vq(f,T){return gP(f.h)>=f.h.j-(f.m?1:0)?!1:f.m?(f.i=T.G.concat(f.i),!0):f.I==1||f.I==2||f.D>=(f.Sa?0:f.Ta)?!1:(f.m=Po(u(f.Ea,f,T),VP(f,f.D)),f.D++,!0)}t.Ea=function(f){if(this.m)if(this.m=null,this.I==1){if(!f){this.V=Math.floor(Math.random()*1e5),f=this.V++;const ne=new bs(this,this.j,f);let se=this.o;if(this.U&&(se?(se=ae(se),xe(se,this.U)):se=this.U),this.u!==null||this.R||(ne.J=se,se=null),this.S)e:{for(var T=0,R=0;R<this.i.length;R++){t:{var U=this.i[R];if("__data__"in U.map&&(U=U.map.__data__,typeof U=="string")){U=U.length;break t}U=void 0}if(U===void 0)break;if(T+=U,T>4096){T=R;break e}if(T===4096||R===this.i.length-1){T=R+1;break e}}T=1e3}else T=1e3;T=$P(this,ne,T),R=Xi(this.J),Xt(R,"RID",f),Xt(R,"CVER",22),this.G&&Xt(R,"X-HTTP-Session-Id",this.G),md(this,R),se&&(this.R?T="headers="+sd(IP(se))+"&"+T:this.u&&M0(R,this.u,se)),R0(this.h,ne),this.Ra&&Xt(R,"TYPE","init"),this.S?(Xt(R,"$req",T),Xt(R,"SID","null"),ne.U=!0,P0(ne,R,null)):P0(ne,R,T),this.I=2}}else this.I==3&&(f?RP(this,f):this.i.length==0||pP(this.h)||RP(this))};function RP(f,T){var R;T?R=T.l:R=f.V++;const U=Xi(f.J);Xt(U,"SID",f.M),Xt(U,"RID",R),Xt(U,"AID",f.K),md(f,U),f.u&&f.o&&M0(U,f.u,f.o),R=new bs(f,f.j,R,f.D+1),f.u===null&&(R.J=f.o),T&&(f.i=T.G.concat(f.i)),T=$P(f,R,1e3),R.H=Math.round(f.va*.5)+Math.round(f.va*.5*Math.random()),R0(f.h,R),P0(R,U,T)}function md(f,T){f.H&&
|
|
1111
|
+
`);for(let U=0;U<f.length;U++){if(S(f[U]))continue;var R=xq(f[U]);const ne=R[0];if(R=R[1],typeof R!="string")continue;R=R.trim();const se=T[ne]||[];T[ne]=se,se.push(R)}oe(T,function(U){return U.join(", ")})}t.ya=function(){return this.o},t.Ha=function(){return typeof this.l=="string"?this.l:String(this.l)};function gd(f,T,R){return R&&R.internalChannelParams&&R.internalChannelParams[f]||T}function OP(f){this.za=0,this.i=[],this.j=new wa,this.ba=this.na=this.J=this.W=this.g=this.wa=this.G=this.H=this.u=this.U=this.o=null,this.Ya=this.V=0,this.Sa=gd("failFast",!1,f),this.F=this.C=this.v=this.m=this.l=null,this.X=!0,this.xa=this.K=-1,this.Y=this.A=this.D=0,this.Qa=gd("baseRetryDelayMs",5e3,f),this.Za=gd("retryDelaySeedMs",1e4,f),this.Ta=gd("forwardChannelMaxRetries",2,f),this.va=gd("forwardChannelRequestTimeoutMs",2e4,f),this.ma=f&&f.xmlHttpFactory||void 0,this.Ua=f&&f.Rb||void 0,this.Aa=f&&f.useFetchStreams||!1,this.O=void 0,this.L=f&&f.supportsCrossDomainXhr||!1,this.M="",this.h=new hP(f&&f.concurrentRequestLimit),this.Ba=new $q,this.S=f&&f.fastHandshake||!1,this.R=f&&f.encodeInitMessageHeaders||!1,this.S&&this.R&&(this.R=!1),this.Ra=f&&f.Pb||!1,f&&f.ua&&this.j.ua(),f&&f.forceLongPolling&&(this.X=!1),this.aa=!this.S&&this.X&&f&&f.detectBufferingProxy||!1,this.ia=void 0,f&&f.longPollingTimeout&&f.longPollingTimeout>0&&(this.ia=f.longPollingTimeout),this.ta=void 0,this.T=0,this.P=!1,this.ja=this.B=null}t=OP.prototype,t.ka=8,t.I=1,t.connect=function(f,T,R,U){it(0),this.W=f,this.H=T||{},R&&U!==void 0&&(this.H.OSID=R,this.H.OAID=U),this.F=this.X,this.J=zP(this,null,this.W),Lp(this)};function L0(f){if(NP(f),f.I==3){var T=f.V++,R=Xi(f.J);if(Xt(R,"SID",f.M),Xt(R,"RID",T),Xt(R,"TYPE","terminate"),md(f,R),T=new bs(f,f.j,T),T.M=2,T.A=Rp(Xi(R)),R=!1,s.navigator&&s.navigator.sendBeacon)try{R=s.navigator.sendBeacon(T.A.toString(),"")}catch{}!R&&s.Image&&(new Image().src=T.A,R=!0),R||(T.g=UP(T.j,null),T.g.ea(T.A)),T.F=Date.now(),Np(T)}FP(f)}function Mp(f){f.g&&(F0(f),f.g.cancel(),f.g=null)}function NP(f){Mp(f),f.v&&(s.clearTimeout(f.v),f.v=null),Vp(f),f.h.cancel(),f.m&&(typeof f.m=="number"&&s.clearTimeout(f.m),f.m=null)}function Lp(f){if(!pP(f.h)&&!f.m){f.m=!0;var T=f.Ea;k||A(),$||(k(),$=!0),O.add(T,f),f.D=0}}function Vq(f,T){return gP(f.h)>=f.h.j-(f.m?1:0)?!1:f.m?(f.i=T.G.concat(f.i),!0):f.I==1||f.I==2||f.D>=(f.Sa?0:f.Ta)?!1:(f.m=Po(u(f.Ea,f,T),VP(f,f.D)),f.D++,!0)}t.Ea=function(f){if(this.m)if(this.m=null,this.I==1){if(!f){this.V=Math.floor(Math.random()*1e5),f=this.V++;const ne=new bs(this,this.j,f);let se=this.o;if(this.U&&(se?(se=ae(se),xe(se,this.U)):se=this.U),this.u!==null||this.R||(ne.J=se,se=null),this.S)e:{for(var T=0,R=0;R<this.i.length;R++){t:{var U=this.i[R];if("__data__"in U.map&&(U=U.map.__data__,typeof U=="string")){U=U.length;break t}U=void 0}if(U===void 0)break;if(T+=U,T>4096){T=R;break e}if(T===4096||R===this.i.length-1){T=R+1;break e}}T=1e3}else T=1e3;T=$P(this,ne,T),R=Xi(this.J),Xt(R,"RID",f),Xt(R,"CVER",22),this.G&&Xt(R,"X-HTTP-Session-Id",this.G),md(this,R),se&&(this.R?T="headers="+sd(IP(se))+"&"+T:this.u&&M0(R,this.u,se)),R0(this.h,ne),this.Ra&&Xt(R,"TYPE","init"),this.S?(Xt(R,"$req",T),Xt(R,"SID","null"),ne.U=!0,P0(ne,R,null)):P0(ne,R,T),this.I=2}}else this.I==3&&(f?RP(this,f):this.i.length==0||pP(this.h)||RP(this))};function RP(f,T){var R;T?R=T.l:R=f.V++;const U=Xi(f.J);Xt(U,"SID",f.M),Xt(U,"RID",R),Xt(U,"AID",f.K),md(f,U),f.u&&f.o&&M0(U,f.u,f.o),R=new bs(f,f.j,R,f.D+1),f.u===null&&(R.J=f.o),T&&(f.i=T.G.concat(f.i)),T=$P(f,R,1e3),R.H=Math.round(f.va*.5)+Math.round(f.va*.5*Math.random()),R0(f.h,R),P0(R,U,T)}function md(f,T){f.H&&J(f.H,function(R,U){Xt(T,U,R)}),f.l&&J({},function(R,U){Xt(T,U,R)})}function $P(f,T,R){R=Math.min(f.i.length,R);const U=f.l?u(f.l.Ka,f.l,f):null;e:{var ne=f.i;let dt=-1;for(;;){const Pn=["count="+R];dt==-1?R>0?(dt=ne[0].g,Pn.push("ofs="+dt)):dt=0:Pn.push("ofs="+dt);let Ut=!0;for(let Rn=0;Rn<R;Rn++){var se=ne[Rn].g;const Yi=ne[Rn].map;if(se-=dt,se<0)dt=Math.max(0,ne[Rn].g-100),Ut=!1;else try{se="req"+se+"_"||"";try{var Pe=Yi instanceof Map?Yi:Object.entries(Yi);for(const[Ia,Ss]of Pe){let Es=Ss;a(Ss)&&(Es=gt(Ss)),Pn.push(se+Ia+"="+encodeURIComponent(Es))}}catch(Ia){throw Pn.push(se+"type="+encodeURIComponent("_badmap")),Ia}}catch{U&&U(Yi)}}if(Ut){Pe=Pn.join("&");break e}}Pe=void 0}return f=f.i.splice(0,R),T.G=f,Pe}function DP(f){if(!f.g&&!f.v){f.Y=1;var T=f.Da;k||A(),$||(k(),$=!0),O.add(T,f),f.A=0}}function V0(f){return f.g||f.v||f.A>=3?!1:(f.Y++,f.v=Po(u(f.Da,f),VP(f,f.A)),f.A++,!0)}t.Da=function(){if(this.v=null,MP(this),this.aa&&!(this.P||this.g==null||this.T<=0)){var f=4*this.T;this.j.info("BP detection timer enabled: "+f),this.B=Po(u(this.Wa,this),f)}},t.Wa=function(){this.B&&(this.B=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.P=!0,it(10),Mp(this),MP(this))};function F0(f){f.B!=null&&(s.clearTimeout(f.B),f.B=null)}function MP(f){f.g=new bs(f,f.j,"rpc",f.Y),f.u===null&&(f.g.J=f.o),f.g.P=0;var T=Xi(f.na);Xt(T,"RID","rpc"),Xt(T,"SID",f.M),Xt(T,"AID",f.K),Xt(T,"CI",f.F?"0":"1"),!f.F&&f.ia&&Xt(T,"TO",f.ia),Xt(T,"TYPE","xmlhttp"),md(f,T),f.u&&f.o&&M0(T,f.u,f.o),f.O&&(f.g.H=f.O);var R=f.g;f=f.ba,R.M=1,R.A=Rp(Xi(T)),R.u=null,R.R=!0,cP(R,f)}t.Va=function(){this.C!=null&&(this.C=null,Mp(this),V0(this),it(19))};function Vp(f){f.C!=null&&(s.clearTimeout(f.C),f.C=null)}function LP(f,T){var R=null;if(f.g==T){Vp(f),F0(f),f.g=null;var U=2}else if(N0(f.h,T))R=T.G,mP(f.h,T),U=1;else return;if(f.I!=0){if(T.o)if(U==1){R=T.u?T.u.length:0,T=Date.now()-T.F;var ne=f.D;U=Ze(),Y(U,new Gn(U,R)),Lp(f)}else DP(f);else if(ne=T.m,ne==3||ne==0&&T.X>0||!(U==1&&Vq(f,T)||U==2&&V0(f)))switch(R&&R.length>0&&(T=f.h,T.i=T.i.concat(R)),ne){case 1:Ta(f,5);break;case 4:Ta(f,10);break;case 3:Ta(f,6);break;default:Ta(f,2)}}}function VP(f,T){let R=f.Qa+Math.floor(Math.random()*f.Za);return f.isActive()||(R*=2),R*T}function Ta(f,T){if(f.j.info("Error code "+T),T==2){var R=u(f.bb,f),U=f.Ua;const ne=!U;U=new _s(U||"//www.google.com/images/cleardot.gif"),s.location&&s.location.protocol=="http"||ld(U,"https"),Rp(U),ne?Nq(U.toString(),R):Rq(U.toString(),R)}else it(2);f.I=0,f.l&&f.l.pa(T),FP(f),NP(f)}t.bb=function(f){f?(this.j.info("Successfully pinged google.com"),it(2)):(this.j.info("Failed to ping google.com"),it(1))};function FP(f){if(f.I=0,f.ja=[],f.l){const T=vP(f.h);(T.length!=0||f.i.length!=0)&&(g(f.ja,T),g(f.ja,f.i),f.h.i.length=0,p(f.i),f.i.length=0),f.l.oa()}}function zP(f,T,R){var U=R instanceof _s?Xi(R):new _s(R);if(U.g!="")T&&(U.g=T+"."+U.g),ud(U,U.u);else{var ne=s.location;U=ne.protocol,T=T?T+"."+ne.hostname:ne.hostname,ne=+ne.port;const se=new _s(null);U&&ld(se,U),T&&(se.g=T),ne&&ud(se,ne),R&&(se.h=R),U=se}return R=f.G,T=f.wa,R&&T&&Xt(U,R,T),Xt(U,"VER",f.ka),md(f,U),U}function UP(f,T,R){if(T&&!f.L)throw Error("Can't create secondary domain capable XhrIo object.");return T=f.Aa&&!f.ma?new gn(new D0({ab:R})):new gn(f.ma),T.Fa(f.L),T}t.isActive=function(){return!!this.l&&this.l.isActive(this)};function BP(){}t=BP.prototype,t.ra=function(){},t.qa=function(){},t.pa=function(){},t.oa=function(){},t.isActive=function(){return!0},t.Ka=function(){};function Fp(){}Fp.prototype.g=function(f,T){return new Ur(f,T)};function Ur(f,T){ee.call(this),this.g=new OP(T),this.l=f,this.h=T&&T.messageUrlParams||null,f=T&&T.messageHeaders||null,T&&T.clientProtocolHeaderRequired&&(f?f["X-Client-Protocol"]="webchannel":f={"X-Client-Protocol":"webchannel"}),this.g.o=f,f=T&&T.initMessageHeaders||null,T&&T.messageContentType&&(f?f["X-WebChannel-Content-Type"]=T.messageContentType:f={"X-WebChannel-Content-Type":T.messageContentType}),T&&T.sa&&(f?f["X-WebChannel-Client-Profile"]=T.sa:f={"X-WebChannel-Client-Profile":T.sa}),this.g.U=f,(f=T&&T.Qb)&&!S(f)&&(this.g.u=f),this.A=T&&T.supportsCrossDomainXhr||!1,this.v=T&&T.sendRawJson||!1,(T=T&&T.httpSessionIdParam)&&!S(T)&&(this.g.G=T,f=this.h,f!==null&&T in f&&(f=this.h,T in f&&delete f[T])),this.j=new su(this)}d(Ur,ee),Ur.prototype.m=function(){this.g.l=this.j,this.A&&(this.g.L=!0),this.g.connect(this.l,this.h||void 0)},Ur.prototype.close=function(){L0(this.g)},Ur.prototype.o=function(f){var T=this.g;if(typeof f=="string"){var R={};R.__data__=f,f=R}else this.v&&(R={},R.__data__=gt(f),f=R);T.i.push(new Eq(T.Ya++,f)),T.I==3&&Lp(T)},Ur.prototype.N=function(){this.g.l=null,delete this.j,L0(this.g),delete this.g,Ur.Z.N.call(this)};function jP(f){We.call(this),f.__headers__&&(this.headers=f.__headers__,this.statusCode=f.__status__,delete f.__headers__,delete f.__status__);var T=f.__sm__;if(T){e:{for(const R in T){f=R;break e}f=void 0}(this.i=f)&&(f=this.i,T=T!==null&&f in T?T[f]:void 0),this.data=T}else this.data=f}d(jP,We);function HP(){ot.call(this),this.status=1}d(HP,ot);function su(f){this.g=f}d(su,BP),su.prototype.ra=function(){Y(this.g,"a")},su.prototype.qa=function(f){Y(this.g,new jP(f))},su.prototype.pa=function(f){Y(this.g,new HP)},su.prototype.oa=function(){Y(this.g,"b")},Fp.prototype.createWebChannel=Fp.prototype.g,Ur.prototype.send=Ur.prototype.o,Ur.prototype.open=Ur.prototype.m,Ur.prototype.close=Ur.prototype.close,nE=function(){return new Fp},tE=function(){return Ze()},eE=Je,_v={jb:0,mb:1,nb:2,Hb:3,Mb:4,Jb:5,Kb:6,Ib:7,Gb:8,Lb:9,PROXY:10,NOPROXY:11,Eb:12,Ab:13,Bb:14,zb:15,Cb:16,Db:17,fb:18,eb:19,gb:20},Op.NO_ERROR=0,Op.TIMEOUT=8,Op.HTTP_ERROR=6,Xf=Op,sP.COMPLETE="complete",qS=sP,ge.EventType=Ce,Ce.OPEN="a",Ce.CLOSE="b",Ce.ERROR="c",Ce.MESSAGE="d",ee.prototype.listen=ee.prototype.J,sc=ge,gn.prototype.listenOnce=gn.prototype.K,gn.prototype.getLastError=gn.prototype.Ha,gn.prototype.getLastErrorCode=gn.prototype.ya,gn.prototype.getStatus=gn.prototype.ca,gn.prototype.getResponseJson=gn.prototype.La,gn.prototype.getResponseText=gn.prototype.la,gn.prototype.send=gn.prototype.ea,gn.prototype.setWithCredentials=gn.prototype.Fa,QS=gn}).apply(typeof Zf<"u"?Zf:typeof self<"u"?self:typeof window<"u"?window:{});const rE="@firebase/firestore",iE="4.9.3";/**
|
|
1112
1112
|
* @license
|
|
1113
1113
|
* Copyright 2017 Google LLC
|
|
1114
1114
|
*
|
|
@@ -2544,16 +2544,16 @@ This typically indicates that your device does not have a healthy Internet conne
|
|
|
2544
2544
|
* See the License for the specific language governing permissions and
|
|
2545
2545
|
* limitations under the License.
|
|
2546
2546
|
*/function KT(t,e,n){let r;return r=t?n&&(n.merge||n.mergeFields)?t.toFirestore(e,n):t.toFirestore(e):e,r}class xh{constructor(e,n){this.hasPendingWrites=e,this.fromCache=n}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class Ll extends GT{constructor(e,n,r,i,o,s){super(e,n,r,i,s),this._firestore=e,this._firestoreImpl=e,this.metadata=o}exists(){return super.exists()}data(e={}){if(this._document){if(this._converter){const n=new wh(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(n,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}get(e,n={}){if(this._document){const r=this._document.data.field(WT("DocumentSnapshot.get",e));if(r!==null)return this._userDataWriter.convertValue(r,n.serverTimestamps)}}toJSON(){if(this.metadata.hasPendingWrites)throw new Ye(_e.FAILED_PRECONDITION,"DocumentSnapshot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");const e=this._document,n={};return n.type=Ll._jsonSchemaVersion,n.bundle="",n.bundleSource="DocumentSnapshot",n.bundleName=this._key.toString(),!e||!e.isValidDocument()||!e.isFoundDocument()?n:(this._userDataWriter.convertObjectMap(e.data.value.mapValue.fields,"previous"),n.bundle=(this._firestore,this.ref.path,"NOT SUPPORTED"),n)}}Ll._jsonSchemaVersion="firestore/documentSnapshot/1.0",Ll._jsonSchema={type:wn("string",Ll._jsonSchemaVersion),bundleSource:wn("string","DocumentSnapshot"),bundleName:wn("string"),bundle:wn("string")};class wh extends Ll{data(e={}){return super.data(e)}}class wc{constructor(e,n,r,i){this._firestore=e,this._userDataWriter=n,this._snapshot=i,this.metadata=new xh(i.hasPendingWrites,i.fromCache),this.query=r}get docs(){const e=[];return this.forEach(n=>e.push(n)),e}get size(){return this._snapshot.docs.size}get empty(){return this.size===0}forEach(e,n){this._snapshot.docs.forEach(r=>{e.call(n,new wh(this._firestore,this._userDataWriter,r.key,r,new xh(this._snapshot.mutatedKeys.has(r.key),this._snapshot.fromCache),this.query.converter))})}docChanges(e={}){const n=!!e.includeMetadataChanges;if(n&&this._snapshot.excludesMetadataChanges)throw new Ye(_e.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===n||(this._cachedChanges=function(i,o){if(i._snapshot.oldDocs.isEmpty()){let s=0;return i._snapshot.docChanges.map(a=>{const l=new wh(i._firestore,i._userDataWriter,a.doc.key,a.doc,new xh(i._snapshot.mutatedKeys.has(a.doc.key),i._snapshot.fromCache),i.query.converter);return a.doc,{type:"added",doc:l,oldIndex:-1,newIndex:s++}})}{let s=i._snapshot.oldDocs;return i._snapshot.docChanges.filter(a=>o||a.type!==3).map(a=>{const l=new wh(i._firestore,i._userDataWriter,a.doc.key,a.doc,new xh(i._snapshot.mutatedKeys.has(a.doc.key),i._snapshot.fromCache),i.query.converter);let u=-1,c=-1;return a.type!==0&&(u=s.indexOf(a.doc.key),s=s.delete(a.doc.key)),a.type!==1&&(s=s.add(a.doc),c=s.indexOf(a.doc.key)),{type:$z(a.type),doc:l,oldIndex:u,newIndex:c}})}}(this,n),this._cachedChangesIncludeMetadataChanges=n),this._cachedChanges}toJSON(){if(this.metadata.hasPendingWrites)throw new Ye(_e.FAILED_PRECONDITION,"QuerySnapshot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");const e={};e.type=wc._jsonSchemaVersion,e.bundleSource="QuerySnapshot",e.bundleName=Sv.newId(),this._firestore._databaseId.database,this._firestore._databaseId.projectId;const n=[],r=[],i=[];return this.docs.forEach(o=>{o._document!==null&&(n.push(o._document),r.push(this._userDataWriter.convertObjectMap(o._document.data.value.mapValue.fields,"previous")),i.push(o.ref.path))}),e.bundle=(this._firestore,this.query._query,e.bundleName,"NOT SUPPORTED"),e}}function $z(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return ft(61501,{type:t})}}wc._jsonSchemaVersion="firestore/querySnapshot/1.0",wc._jsonSchema={type:wn("string",wc._jsonSchemaVersion),bundleSource:wn("string","QuerySnapshot"),bundleName:wn("string"),bundle:wn("string")};function Dz(t,e,n){t=Cv(t,jn);const r=Cv(t.firestore,sy),i=KT(t.converter,e,n);return ZT(r,[FT(VT(r),"setDoc",t._key,i,t.converter!==null,n).toMutation(t._key,zi.none())])}function Mz(t,e){const n=Cv(t.firestore,sy),r=NT(t),i=KT(t.converter,e);return ZT(n,[FT(VT(t.firestore),"addDoc",r._key,i,t.converter!==null,{}).toMutation(r._key,zi.exists(!1))]).then(()=>r)}function ZT(t,e){return function(r,i){const o=new ra;return r.asyncQueue.enqueueAndForget(async()=>hz(await wz(r),i,o)),o.promise}(Tz(t),e)}(function(e,n=!0){(function(i){Cl=i})(zf),_l(new bl("firestore",(r,{instanceIdentifier:i,options:o})=>{const s=r.getProvider("app").getImmediate(),a=new sy(new tF(r.getProvider("auth-internal")),new iF(s,r.getProvider("app-check-internal")),function(u,c){if(!Object.prototype.hasOwnProperty.apply(u.options,["projectId"]))throw new Ye(_e.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new qf(u.options.projectId,c)}(s,i),s);return o={useFetchStreams:n,...o},a._setSettings(o),a},"PUBLIC").setMultipleInstances(!0)),Qo(rE,iE,e),Qo(rE,iE,"esm2020")})();const uy=()=>{throw new Error("Firebase not initialized. Call initFirebase() in main.ts.")},Lz=()=>{throw new Error("Firebase not initialized.")},XT=()=>{throw new Error("Firebase not initialized.")},Vz=async(t,e,n)=>{const r=XT();try{const i={...t.meta};e&&(i.authorId=e),n&&(i.authorName=n);const o={meta:i,slides:t.slides||[],savedAt:new Date().toISOString(),version:"1.0"};return(await Mz(Ez(r,"decks"),o)).id}catch(i){const o=i instanceof Error?i:new Error(String(i));throw console.error("Error adding document: ",o),o}},Fz=async(t,e)=>{const n=XT();try{const r={meta:e.meta||{},slides:e.slides||[],updatedAt:new Date().toISOString(),version:"1.0"},i=NT(n,"decks",t);await Dz(i,r,{merge:!0})}catch(r){const i=r instanceof Error?r:new Error(String(r));throw console.error("Error updating document: ",i),i}},Sc=we(null),YT=we(!0);let JT=!1;function zz(){const t=()=>{try{return{auth:uy(),provider:Lz()}}catch{throw new Error("Authentication service is not ready. Ensure initFirebase() is called in main.ts")}},e=async()=>{const{auth:i,provider:o}=t();try{const s=await WV(i,o);return Sc.value=s.user,s.user}catch(s){const a=s;throw console.error(`[Auth] Login failed: ${a.code} - ${a.message}`),a}},n=async()=>{try{const i=uy();await VV(i),Sc.value=null}catch(i){throw console.error("[Auth] Logout failed",i),i}},r=()=>{if(!JT)try{const i=uy();LV(i,o=>{Sc.value=o,YT.value=!1}),JT=!0}catch(i){console.warn("[Auth] Failed to attach listener:",i)}};return{user:Z(()=>Sc.value),isAuthenticated:Z(()=>!!Sc.value),isLoading:Z(()=>YT.value),loginWithGoogle:e,logout:n,initAuthListener:r}}const Uz={key:0,class:"fixed inset-0 z-[60] flex items-center justify-center p-4"},Bz={class:"relative w-full max-w-4xl h-[80vh] bg-[#1a1a1a] border border-[#333] rounded-2xl shadow-2xl flex flex-col overflow-hidden transform transition-all animate-in fade-in zoom-in-95 duration-200"},jz={class:"px-6 py-4 border-b border-[#333] flex items-center justify-between bg-[#222]"},Hz={class:"flex items-center gap-4"},Gz={class:"flex bg-black/40 p-1 rounded-lg border border-white/5"},Wz={class:"flex items-center gap-3"},Kz={key:0,class:"text-red-400 text-[10px] font-mono animate-pulse bg-red-400/10 px-2 py-1 rounded"},Zz={class:"flex-1 flex overflow-hidden relative"},Xz={class:"w-12 bg-black/20 border-r border-[#333] flex flex-col items-center py-4 text-[10px] font-mono text-white/20 select-none"},Yz={class:"flex-1 relative group"},Jz={class:"px-6 py-4 border-t border-[#333] flex items-center justify-between bg-[#222]"},Qz={class:"flex items-center gap-3"},qz=["disabled"],e9=Jr(Te({__name:"StudioJsonEditor",props:{isOpen:{type:Boolean}},emits:["close"],setup(t,{emit:e}){const n=t,r=e,i=si(),o=we("slide"),s=we(""),a=we(null),l=we(!1),u=we(null),c=()=>{var g;try{if(o.value==="slide"){const m=i.store.state.currentIndex,_=(g=i.store.state.deck)==null?void 0:g.slides[m];s.value=_?JSON.stringify(_,null,4):""}else s.value=JSON.stringify(i.store.state.deck,null,4);a.value=null,l.value=!1}catch(m){console.error("Failed to stringify JSON",m)}};Qe(()=>n.isOpen,g=>{g&&c()}),Qe(o,c);const d=Z(()=>s.value.split(`
|
|
2547
|
-
`).length),h=()=>{l.value=!0;try{JSON.parse(s.value),a.value=null}catch(g){a.value=g.message}},p=()=>{try{const g=JSON.parse(s.value);if(o.value==="slide"){const m=i.store.state.currentIndex;i.store.updateNode(`slides.${m}`,g)}else i.store.updateNode("",g);l.value=!1,r("close")}catch(g){a.value="Invalid JSON: "+g.message}};return(g,m)=>t.isOpen?(j(),K("div",Uz,[C("div",{class:"absolute inset-0 bg-black/80 backdrop-blur-md transition-opacity",onClick:m[0]||(m[0]=_=>g.$emit("close"))}),C("div",Bz,[C("div",jz,[C("div",Hz,[m[6]||(m[6]=C("div",{class:"flex items-center gap-2"},[C("i",{class:"ph-thin ph-code text-blue-400 text-lg"}),C("h2",{class:"text-lg font-bold text-white tracking-wide"},"JSON EDITOR")],-1)),C("div",Gz,[C("button",{onClick:m[1]||(m[1]=_=>o.value="slide"),class:Se(["px-3 py-1 text-[10px] font-bold uppercase tracking-wider rounded-md transition-all",o.value==="slide"?"bg-blue-600 text-white shadow-lg":"text-white/40 hover:text-white"])}," Current Slide ",2),C("button",{onClick:m[2]||(m[2]=_=>o.value="deck"),class:Se(["px-3 py-1 text-[10px] font-bold uppercase tracking-wider rounded-md transition-all",o.value==="deck"?"bg-blue-600 text-white shadow-lg":"text-white/40 hover:text-white"])}," Full Deck ",2)])]),C("div",Wz,[a.value?(j(),K("span",Kz,[m[7]||(m[7]=C("i",{class:"ph-thin ph-warning mr-1"},null,-1)),bt(" "+Ie(a.value),1)])):Oe("",!0),C("button",{onClick:m[3]||(m[3]=_=>g.$emit("close")),class:"text-white/40 hover:text-white transition-colors p-1"},[...m[8]||(m[8]=[C("i",{class:"ph-thin ph-x text-xl"},null,-1)])])])]),C("div",Zz,[C("div",Xz,[(j(!0),K(Ue,null,It(d.value,_=>(j(),K("div",{key:_,class:"leading-relaxed h-5"},Ie(_),1))),128))]),C("div",Yz,[za(C("textarea",{ref_key:"textareaRef",ref:u,"onUpdate:modelValue":m[4]||(m[4]=_=>s.value=_),spellcheck:"false",class:"w-full h-full bg-transparent p-4 text-[13px] font-mono text-blue-100/90 leading-relaxed outline-none resize-none selection:bg-blue-500/30",onInput:h,placeholder:"{ ... }"},null,544),[[Ms,s.value]])])]),C("div",Jz,[m[10]||(m[10]=C("div",{class:"text-[10px] text-white/30 font-mono"},[C("i",{class:"ph-thin ph-info mr-1"}),bt(" Changes are applied to the local store only. Remember to SAVE to the cloud. ")],-1)),C("div",Qz,[C("button",{onClick:m[5]||(m[5]=_=>g.$emit("close")),class:"px-5 py-2 text-sm font-medium text-white/60 hover:text-white hover:bg-white/5 rounded-lg transition-all"}," Cancel "),C("button",{onClick:p,disabled:!!a.value||!l.value,class:"px-6 py-2 bg-blue-600 hover:bg-blue-500 disabled:bg-blue-900 disabled:opacity-50 text-white text-sm font-bold rounded-lg shadow-lg shadow-blue-900/20 transition-all flex items-center gap-2 active:scale-95"},[...m[9]||(m[9]=[C("i",{class:"ph-thin ph-check"},null,-1),bt(" APPLY CHANGES ",-1)])],8,qz)])])])])):Oe("",!0)}}),[["__scopeId","data-v-b8d1cbc9"]]),t9={class:"h-12 bg-[#1a1a1a] border-b border-[#333] flex items-center px-4 justify-between select-none"},n9={class:"flex items-center gap-3"},r9={key:0,class:"flex items-center gap-1.5 bg-[#252525] p-1.5 rounded-xl border border-white/10 shadow-lg shadow-black/20"},i9={key:1,class:"flex-1 opacity-0 pointer-events-none"},o9={class:"flex items-center gap-2"},s9=["disabled"],a9=["disabled"],l9=["disabled"],u9={key:0,class:"ph-thin ph-spinner ph-spin"},c9={key:1,class:"ph-thin ph-check"},d9={key:2,class:"ph-thin ph-cloud-arrow-up"},f9=Te({__name:"StudioToolbar",setup(t){const e=si(),n=I5(),{user:r}=zz(),i=we(!1),o=we(!1),s=we(!1),a=we(""),l=we(!1),u=Z(()=>{var m;const p=e.store.state.currentIndex,g=(m=e.store.state.deck)==null?void 0:m.slides[p];return(g==null?void 0:g.type)==="flex"});jt(()=>{var m,_;const p=n.params.id,g=(_=(m=e.store.state.deck)==null?void 0:m.meta)==null?void 0:_.id;p?a.value=p:g&&(a.value=g)}),Qe(()=>n.params.id,p=>{p&&(a.value=p)},{immediate:!0});const c=p=>{var w;const g=e.store.state.currentIndex,m=(w=e.store.state.deck)==null?void 0:w.slides[g];if(!m)return;const E={title:{type:"title",text:"New Title",dragKey:Date.now()+Math.random()},text:{type:"text",text:"New paragraph text...",dragKey:Date.now()+Math.random()},image:{type:"image",src:"https://via.placeholder.com/400x300",alt:"Placeholder",dragKey:Date.now()+Math.random()},button:{type:"button",label:"Click Me",variant:"primary",dragKey:Date.now()+Math.random()}}[p];if(E&&m.type==="flex"&&Array.isArray(m.elements)){const v=m.elements,y=v.findIndex(k=>k.type==="content");y>=0&&Array.isArray(v[y].elements)?e.store.addNode(`slides.${g}.elements.${y}.elements`,E):e.store.addNode(`slides.${g}.elements`,E)}},d=async()=>{var p,g;i.value=!0;try{const m=vt(e.store.state.deck);if(!m){alert("No deck found to save.");return}const _=JSON.parse(JSON.stringify(m));_.meta||(_.meta={});const E=a.value||_.meta.id;if(E)await Fz(E,_),l.value=!0;else{const w=(p=r.value)==null?void 0:p.uid,v=((g=r.value)==null?void 0:g.displayName)||void 0,y=await Vz(_,w,v);a.value=y,e.store.updateNode("meta.id",y),l.value=!1}o.value=!0,setTimeout(()=>{o.value=!1},3e3)}catch(m){console.error("Save failed:",m),alert(`Failed to save: ${m.message||"Unknown error"}. Check console and ensure Firebase is initialized.`)}finally{i.value=!1}},h=()=>{var w;const p=e.store.state.deck;if(!p)return;const g=JSON.stringify(p,null,2),m=new Blob([g],{type:"application/json"}),_=URL.createObjectURL(m),E=document.createElement("a");E.href=_,E.download=`${((w=p.meta)==null?void 0:w.title)||"deck"}.json`,E.click(),URL.revokeObjectURL(_)};return(p,g)=>{const m=Pr("router-link");return j(),K("div",t9,[C("div",n9,[g[9]||(g[9]=C("span",{class:"font-heading font-bold text-white tracking-wider"},"LUMINA STUDIO",-1)),
|
|
2547
|
+
`).length),h=()=>{l.value=!0;try{JSON.parse(s.value),a.value=null}catch(g){a.value=g.message}},p=()=>{try{const g=JSON.parse(s.value);if(o.value==="slide"){const m=i.store.state.currentIndex;i.store.updateNode(`slides.${m}`,g)}else i.store.updateNode("",g);l.value=!1,r("close")}catch(g){a.value="Invalid JSON: "+g.message}};return(g,m)=>t.isOpen?(j(),K("div",Uz,[C("div",{class:"absolute inset-0 bg-black/80 backdrop-blur-md transition-opacity",onClick:m[0]||(m[0]=_=>g.$emit("close"))}),C("div",Bz,[C("div",jz,[C("div",Hz,[m[6]||(m[6]=C("div",{class:"flex items-center gap-2"},[C("i",{class:"ph-thin ph-code text-blue-400 text-lg"}),C("h2",{class:"text-lg font-bold text-white tracking-wide"},"JSON EDITOR")],-1)),C("div",Gz,[C("button",{onClick:m[1]||(m[1]=_=>o.value="slide"),class:Se(["px-3 py-1 text-[10px] font-bold uppercase tracking-wider rounded-md transition-all",o.value==="slide"?"bg-blue-600 text-white shadow-lg":"text-white/40 hover:text-white"])}," Current Slide ",2),C("button",{onClick:m[2]||(m[2]=_=>o.value="deck"),class:Se(["px-3 py-1 text-[10px] font-bold uppercase tracking-wider rounded-md transition-all",o.value==="deck"?"bg-blue-600 text-white shadow-lg":"text-white/40 hover:text-white"])}," Full Deck ",2)])]),C("div",Wz,[a.value?(j(),K("span",Kz,[m[7]||(m[7]=C("i",{class:"ph-thin ph-warning mr-1"},null,-1)),bt(" "+Ie(a.value),1)])):Oe("",!0),C("button",{onClick:m[3]||(m[3]=_=>g.$emit("close")),class:"text-white/40 hover:text-white transition-colors p-1"},[...m[8]||(m[8]=[C("i",{class:"ph-thin ph-x text-xl"},null,-1)])])])]),C("div",Zz,[C("div",Xz,[(j(!0),K(Ue,null,It(d.value,_=>(j(),K("div",{key:_,class:"leading-relaxed h-5"},Ie(_),1))),128))]),C("div",Yz,[za(C("textarea",{ref_key:"textareaRef",ref:u,"onUpdate:modelValue":m[4]||(m[4]=_=>s.value=_),spellcheck:"false",class:"w-full h-full bg-transparent p-4 text-[13px] font-mono text-blue-100/90 leading-relaxed outline-none resize-none selection:bg-blue-500/30",onInput:h,placeholder:"{ ... }"},null,544),[[Ms,s.value]])])]),C("div",Jz,[m[10]||(m[10]=C("div",{class:"text-[10px] text-white/30 font-mono"},[C("i",{class:"ph-thin ph-info mr-1"}),bt(" Changes are applied to the local store only. Remember to SAVE to the cloud. ")],-1)),C("div",Qz,[C("button",{onClick:m[5]||(m[5]=_=>g.$emit("close")),class:"px-5 py-2 text-sm font-medium text-white/60 hover:text-white hover:bg-white/5 rounded-lg transition-all"}," Cancel "),C("button",{onClick:p,disabled:!!a.value||!l.value,class:"px-6 py-2 bg-blue-600 hover:bg-blue-500 disabled:bg-blue-900 disabled:opacity-50 text-white text-sm font-bold rounded-lg shadow-lg shadow-blue-900/20 transition-all flex items-center gap-2 active:scale-95"},[...m[9]||(m[9]=[C("i",{class:"ph-thin ph-check"},null,-1),bt(" APPLY CHANGES ",-1)])],8,qz)])])])])):Oe("",!0)}}),[["__scopeId","data-v-b8d1cbc9"]]),t9={class:"h-12 bg-[#1a1a1a] border-b border-[#333] flex items-center px-4 justify-between select-none"},n9={class:"flex items-center gap-3"},r9={key:0,class:"flex items-center gap-1.5 bg-[#252525] p-1.5 rounded-xl border border-white/10 shadow-lg shadow-black/20"},i9={key:1,class:"flex-1 opacity-0 pointer-events-none"},o9={class:"flex items-center gap-2"},s9=["disabled"],a9=["disabled"],l9=["disabled"],u9={key:0,class:"ph-thin ph-spinner ph-spin"},c9={key:1,class:"ph-thin ph-check"},d9={key:2,class:"ph-thin ph-cloud-arrow-up"},f9=Te({__name:"StudioToolbar",setup(t){const e=si(),n=I5(),{user:r}=zz(),i=we(!1),o=we(!1),s=we(!1),a=we(""),l=we(!1),u=Z(()=>{var m;const p=e.store.state.currentIndex,g=(m=e.store.state.deck)==null?void 0:m.slides[p];return(g==null?void 0:g.type)==="flex"});jt(()=>{var m,_;const p=n.params.id,g=(_=(m=e.store.state.deck)==null?void 0:m.meta)==null?void 0:_.id;p?a.value=p:g&&(a.value=g)}),Qe(()=>n.params.id,p=>{p&&(a.value=p)},{immediate:!0});const c=p=>{var w;const g=e.store.state.currentIndex,m=(w=e.store.state.deck)==null?void 0:w.slides[g];if(!m)return;const E={title:{type:"title",text:"New Title",dragKey:Date.now()+Math.random()},text:{type:"text",text:"New paragraph text...",dragKey:Date.now()+Math.random()},image:{type:"image",src:"https://via.placeholder.com/400x300",alt:"Placeholder",dragKey:Date.now()+Math.random()},button:{type:"button",label:"Click Me",variant:"primary",dragKey:Date.now()+Math.random()}}[p];if(E&&m.type==="flex"&&Array.isArray(m.elements)){const v=m.elements,y=v.findIndex(k=>k.type==="content");y>=0&&Array.isArray(v[y].elements)?e.store.addNode(`slides.${g}.elements.${y}.elements`,E):e.store.addNode(`slides.${g}.elements`,E)}},d=async()=>{var p,g;i.value=!0;try{const m=vt(e.store.state.deck);if(!m){alert("No deck found to save.");return}const _=JSON.parse(JSON.stringify(m));_.meta||(_.meta={});const E=a.value||_.meta.id;if(E)await Fz(E,_),l.value=!0;else{const w=(p=r.value)==null?void 0:p.uid,v=((g=r.value)==null?void 0:g.displayName)||void 0,y=await Vz(_,w,v);a.value=y,e.store.updateNode("meta.id",y),l.value=!1}o.value=!0,setTimeout(()=>{o.value=!1},3e3)}catch(m){console.error("Save failed:",m),alert(`Failed to save: ${m.message||"Unknown error"}. Check console and ensure Firebase is initialized.`)}finally{i.value=!1}},h=()=>{var w;const p=e.store.state.deck;if(!p)return;const g=JSON.stringify(p,null,2),m=new Blob([g],{type:"application/json"}),_=URL.createObjectURL(m),E=document.createElement("a");E.href=_,E.download=`${((w=p.meta)==null?void 0:w.title)||"deck"}.json`,E.click(),URL.revokeObjectURL(_)};return(p,g)=>{const m=Pr("router-link");return j(),K("div",t9,[C("div",n9,[g[9]||(g[9]=C("span",{class:"font-heading font-bold text-white tracking-wider"},"LUMINA STUDIO",-1)),ce(m,{to:{name:"dashboard"},class:"text-white/40 hover:text-white text-xs transition"},{default:ke(()=>[...g[8]||(g[8]=[C("i",{class:"ph-thin ph-arrow-left mr-1"},null,-1),bt(" Exit ",-1)])]),_:1})]),u.value?(j(),K("div",r9,[C("button",{onClick:g[0]||(g[0]=_=>c("title")),class:"w-10 h-10 flex items-center justify-center rounded-lg hover:bg-white/10 text-white/50 hover:text-white transition-all duration-200 active:scale-95",title:"Add Title"},[...g[10]||(g[10]=[C("i",{class:"ph-thin ph-text-h text-lg"},null,-1)])]),C("button",{onClick:g[1]||(g[1]=_=>c("text")),class:"w-10 h-10 flex items-center justify-center rounded-lg hover:bg-white/10 text-white/50 hover:text-white transition-all duration-200 active:scale-95",title:"Add Text"},[...g[11]||(g[11]=[C("i",{class:"ph-thin ph-text-align-left text-lg"},null,-1)])]),g[14]||(g[14]=C("div",{class:"w-px h-6 bg-white/5 mx-1"},null,-1)),C("button",{onClick:g[2]||(g[2]=_=>c("image")),class:"w-10 h-10 flex items-center justify-center rounded-lg hover:bg-white/10 text-white/50 hover:text-white transition-all duration-200 active:scale-95",title:"Add Image"},[...g[12]||(g[12]=[C("i",{class:"ph-thin ph-image text-lg"},null,-1)])]),C("button",{onClick:g[3]||(g[3]=_=>c("button")),class:"w-10 h-10 flex items-center justify-center rounded-lg hover:bg-white/10 text-white/50 hover:text-white transition-all duration-200 active:scale-95",title:"Add Button"},[...g[13]||(g[13]=[C("i",{class:"ph-thin ph-rectangle text-lg"},null,-1)])])])):(j(),K("div",i9)),C("div",o9,[C("button",{onClick:g[4]||(g[4]=_=>re(e).undo()),disabled:!re(e).canUndo.value,class:"p-1.5 rounded hover:bg-[#333] text-white/70 hover:text-white disabled:opacity-30 disabled:hover:bg-transparent transition",title:"Undo (Ctrl+Z)"},[...g[15]||(g[15]=[C("i",{class:"ph-thin ph-arrow-u-up-left"},null,-1)])],8,s9),C("button",{onClick:g[5]||(g[5]=_=>re(e).redo()),disabled:!re(e).canRedo.value,class:"p-1.5 rounded hover:bg-[#333] text-white/70 hover:text-white disabled:opacity-30 disabled:hover:bg-transparent transition",title:"Redo (Ctrl+Y)"},[...g[16]||(g[16]=[C("i",{class:"ph-thin ph-arrow-u-up-right"},null,-1)])],8,a9),g[19]||(g[19]=C("div",{class:"w-px h-4 bg-[#444] mx-1"},null,-1)),C("button",{onClick:d,disabled:i.value,class:"min-w-[80px] px-3 py-1 bg-green-600 hover:bg-green-500 disabled:bg-green-800 text-white text-xs font-bold rounded transition flex items-center justify-center gap-1"},[i.value?(j(),K("i",u9)):o.value?(j(),K("i",c9)):(j(),K("i",d9)),bt(" "+Ie(i.value?"SAVING...":o.value?"SAVED":"SAVE"),1)],8,l9),C("button",{onClick:g[6]||(g[6]=_=>s.value=!0),class:"px-3 py-1 bg-[#333] hover:bg-[#444] text-white/80 text-xs font-bold rounded transition flex items-center gap-1",title:"Edit RAW Data"},[...g[17]||(g[17]=[C("i",{class:"ph-thin ph-code"},null,-1),bt(" JSON ",-1)])]),C("button",{onClick:h,class:"px-3 py-1 bg-blue-600 hover:bg-blue-500 text-white text-xs font-bold rounded transition flex items-center gap-1"},[...g[18]||(g[18]=[C("i",{class:"ph-thin ph-download-simple"},null,-1),bt(" EXPORT ",-1)])])]),(j(),De($b,{to:"body"},[ce(e9,{"is-open":s.value,onClose:g[7]||(g[7]=_=>s.value=!1)},null,8,["is-open"])]))])}}});var h9=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function p9(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function QT(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var qT={exports:{}};const g9=QT(cN);/**!
|
|
2548
2548
|
* Sortable 1.14.0
|
|
2549
2549
|
* @author RubaXa <trash@rubaxa.org>
|
|
2550
2550
|
* @author owenm <owen23355@gmail.com>
|
|
2551
2551
|
* @license MIT
|
|
2552
2552
|
*/function eI(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ui(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?eI(Object(n),!0).forEach(function(r){m9(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):eI(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Sh(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Sh=function(e){return typeof e}:Sh=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sh(t)}function m9(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Qr(){return Qr=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Qr.apply(this,arguments)}function v9(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function y9(t,e){if(t==null)return{};var n=v9(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function b9(t){return _9(t)||x9(t)||w9(t)||S9()}function _9(t){if(Array.isArray(t))return cy(t)}function x9(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function w9(t,e){if(t){if(typeof t=="string")return cy(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cy(t,e)}}function cy(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function S9(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2553
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E9="1.14.0";function xo(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var wo=xo(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ec=xo(/Edge/i),tI=xo(/firefox/i),Tc=xo(/safari/i)&&!xo(/chrome/i)&&!xo(/android/i),nI=xo(/iP(ad|od|hone)/i),T9=xo(/chrome/i)&&xo(/android/i),rI={capture:!1,passive:!1};function xt(t,e,n){t.addEventListener(e,n,!wo&&rI)}function pt(t,e,n){t.removeEventListener(e,n,!wo&&rI)}function Eh(t,e){if(e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function I9(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function pi(t,e,n,r){if(t){n=n||document;do{if(e!=null&&(e[0]===">"?t.parentNode===n&&Eh(t,e):Eh(t,e))||r&&t===n)return t;if(t===n)break}while(t=I9(t))}return null}var iI=/\s+/g;function un(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(iI," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(iI," ")}}function He(t,e,n){var r=t&&t.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),e===void 0?n:n[e];!(e in r)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),r[e]=n+(typeof n=="string"?"":"px")}}function ca(t,e){var n="";if(typeof t=="string")n=t;else do{var r=He(t,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function oI(t,e,n){if(t){var r=t.getElementsByTagName(e),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function Bi(){var t=document.scrollingElement;return t||document.documentElement}function tn(t,e,n,r,i){if(!(!t.getBoundingClientRect&&t!==window)){var o,s,a,l,u,c,d;if(t!==window&&t.parentNode&&t!==Bi()?(o=t.getBoundingClientRect(),s=o.top,a=o.left,l=o.bottom,u=o.right,c=o.height,d=o.width):(s=0,a=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,d=window.innerWidth),(e||n)&&t!==window&&(i=i||t.parentNode,!wo))do if(i&&i.getBoundingClientRect&&(He(i,"transform")!=="none"||n&&He(i,"position")!=="static")){var h=i.getBoundingClientRect();s-=h.top+parseInt(He(i,"border-top-width")),a-=h.left+parseInt(He(i,"border-left-width")),l=s+o.height,u=a+o.width;break}while(i=i.parentNode);if(r&&t!==window){var p=ca(i||t),g=p&&p.a,m=p&&p.d;p&&(s/=m,a/=g,d/=g,c/=m,l=s+c,u=a+d)}return{top:s,left:a,bottom:l,right:u,width:d,height:c}}}function sI(t,e,n){for(var r=us(t,!0),i=tn(t)[e];r;){var o=tn(r)[n],s=void 0;if(s=i>=o,!s)return r;if(r===Bi())break;r=us(r,!1)}return!1}function Vl(t,e,n,r){for(var i=0,o=0,s=t.children;o<s.length;){if(s[o].style.display!=="none"&&s[o]!==nt.ghost&&(r||s[o]!==nt.dragged)&&pi(s[o],n.draggable,t,!1)){if(i===e)return s[o];i++}o++}return null}function dy(t,e){for(var n=t.lastElementChild;n&&(n===nt.ghost||He(n,"display")==="none"||e&&!Eh(n,e));)n=n.previousElementSibling;return n||null}function fn(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==nt.clone&&(!e||Eh(t,e))&&n++;return n}function aI(t){var e=0,n=0,r=Bi();if(t)do{var i=ca(t),o=i.a,s=i.d;e+=t.scrollLeft*o,n+=t.scrollTop*s}while(t!==r&&(t=t.parentNode));return[e,n]}function C9(t,e){for(var n in t)if(t.hasOwnProperty(n)){for(var r in e)if(e.hasOwnProperty(r)&&e[r]===t[n][r])return Number(n)}return-1}function us(t,e){if(!t||!t.getBoundingClientRect)return Bi();var n=t,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=He(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Bi();if(r||e)return n;r=!0}}while(n=n.parentNode);return Bi()}function A9(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function fy(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var Ic;function lI(t,e){return function(){if(!Ic){var n=arguments,r=this;n.length===1?t.call(r,n[0]):t.apply(r,n),Ic=setTimeout(function(){Ic=void 0},e)}}}function P9(){clearTimeout(Ic),Ic=void 0}function uI(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function hy(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function cI(t,e){He(t,"position","absolute"),He(t,"top",e.top),He(t,"left",e.left),He(t,"width",e.width),He(t,"height",e.height)}function py(t){He(t,"position",""),He(t,"top",""),He(t,"left",""),He(t,"width",""),He(t,"height","")}var nr="Sortable"+new Date().getTime();function k9(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(i){if(!(He(i,"display")==="none"||i===nt.ghost)){t.push({target:i,rect:tn(i)});var o=Ui({},t[t.length-1].rect);if(i.thisAnimationDuration){var s=ca(i,!0);s&&(o.top-=s.f,o.left-=s.e)}i.fromRect=o}})}},addAnimationState:function(r){t.push(r)},removeAnimationState:function(r){t.splice(C9(t,{target:r}),1)},animateAll:function(r){var i=this;if(!this.options.animation){clearTimeout(e),typeof r=="function"&&r();return}var o=!1,s=0;t.forEach(function(a){var l=0,u=a.target,c=u.fromRect,d=tn(u),h=u.prevFromRect,p=u.prevToRect,g=a.rect,m=ca(u,!0);m&&(d.top-=m.f,d.left-=m.e),u.toRect=d,u.thisAnimationDuration&&fy(h,d)&&!fy(c,d)&&(g.top-d.top)/(g.left-d.left)===(c.top-d.top)/(c.left-d.left)&&(l=N9(g,h,p,i.options)),fy(d,c)||(u.prevFromRect=c,u.prevToRect=d,l||(l=i.options.animation),i.animate(u,g,d,l)),l&&(o=!0,s=Math.max(s,l),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},l),u.thisAnimationDuration=l)}),clearTimeout(e),o?e=setTimeout(function(){typeof r=="function"&&r()},s):typeof r=="function"&&r(),t=[]},animate:function(r,i,o,s){if(s){He(r,"transition",""),He(r,"transform","");var a=ca(this.el),l=a&&a.a,u=a&&a.d,c=(i.left-o.left)/(l||1),d=(i.top-o.top)/(u||1);r.animatingX=!!c,r.animatingY=!!d,He(r,"transform","translate3d("+c+"px,"+d+"px,0)"),this.forRepaintDummy=O9(r),He(r,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),He(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){He(r,"transition",""),He(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},s)}}}}function O9(t){return t.offsetWidth}function N9(t,e,n,r){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*r.animation}var Fl=[],gy={initializeByDefault:!0},Cc={mount:function(e){for(var n in gy)gy.hasOwnProperty(n)&&!(n in e)&&(e[n]=gy[n]);Fl.forEach(function(r){if(r.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),Fl.push(e)},pluginEvent:function(e,n,r){var i=this;this.eventCanceled=!1,r.cancel=function(){i.eventCanceled=!0};var o=e+"Global";Fl.forEach(function(s){n[s.pluginName]&&(n[s.pluginName][o]&&n[s.pluginName][o](Ui({sortable:n},r)),n.options[s.pluginName]&&n[s.pluginName][e]&&n[s.pluginName][e](Ui({sortable:n},r)))})},initializePlugins:function(e,n,r,i){Fl.forEach(function(a){var l=a.pluginName;if(!(!e.options[l]&&!a.initializeByDefault)){var u=new a(e,n,e.options);u.sortable=e,u.options=e.options,e[l]=u,Qr(r,u.defaults)}});for(var o in e.options)if(e.options.hasOwnProperty(o)){var s=this.modifyOption(e,o,e.options[o]);typeof s<"u"&&(e.options[o]=s)}},getEventProperties:function(e,n){var r={};return Fl.forEach(function(i){typeof i.eventProperties=="function"&&Qr(r,i.eventProperties.call(n[i.pluginName],e))}),r},modifyOption:function(e,n,r){var i;return Fl.forEach(function(o){e[o.pluginName]&&o.optionListeners&&typeof o.optionListeners[n]=="function"&&(i=o.optionListeners[n].call(e[o.pluginName],r))}),i}};function Ac(t){var e=t.sortable,n=t.rootEl,r=t.name,i=t.targetEl,o=t.cloneEl,s=t.toEl,a=t.fromEl,l=t.oldIndex,u=t.newIndex,c=t.oldDraggableIndex,d=t.newDraggableIndex,h=t.originalEvent,p=t.putSortable,g=t.extraEventProperties;if(e=e||n&&n[nr],!!e){var m,_=e.options,E="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!wo&&!Ec?m=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(m=document.createEvent("Event"),m.initEvent(r,!0,!0)),m.to=s||n,m.from=a||n,m.item=i||n,m.clone=o,m.oldIndex=l,m.newIndex=u,m.oldDraggableIndex=c,m.newDraggableIndex=d,m.originalEvent=h,m.pullMode=p?p.lastPutMode:void 0;var w=Ui(Ui({},g),Cc.getEventProperties(r,e));for(var v in w)m[v]=w[v];n&&n.dispatchEvent(m),_[E]&&_[E].call(e,m)}}var R9=["evt"],Ir=function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.evt,o=y9(r,R9);Cc.pluginEvent.bind(nt)(e,n,Ui({dragEl:Ae,parentEl:hn,ghostEl:at,rootEl:nn,nextEl:da,lastDownEl:Th,cloneEl:pn,cloneHidden:cs,dragStarted:kc,putSortable:Hn,activeSortable:nt.active,originalEvent:i,oldIndex:zl,oldDraggableIndex:Pc,newIndex:Vr,newDraggableIndex:ds,hideGhostForTarget:vI,unhideGhostForTarget:yI,cloneNowHidden:function(){cs=!0},cloneNowShown:function(){cs=!1},dispatchSortableEvent:function(a){cr({sortable:n,name:a,originalEvent:i})}},o))};function cr(t){Ac(Ui({putSortable:Hn,cloneEl:pn,targetEl:Ae,rootEl:nn,oldIndex:zl,oldDraggableIndex:Pc,newIndex:Vr,newDraggableIndex:ds},t))}var Ae,hn,at,nn,da,Th,pn,cs,zl,Vr,Pc,ds,Ih,Hn,Ul=!1,Ch=!1,Ah=[],fa,gi,my,vy,dI,fI,kc,Bl,Oc,Nc=!1,Ph=!1,kh,rr,yy=[],by=!1,Oh=[],Nh=typeof document<"u",Rh=nI,hI=Ec||wo?"cssFloat":"float",$9=Nh&&!T9&&!nI&&"draggable"in document.createElement("div"),pI=function(){if(Nh){if(wo)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),gI=function(e,n){var r=He(e),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),o=Vl(e,0,n),s=Vl(e,1,n),a=o&&He(o),l=s&&He(s),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+tn(o).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+tn(s).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&a.float!=="none"){var d=a.float==="left"?"left":"right";return s&&(l.clear==="both"||l.clear===d)?"vertical":"horizontal"}return o&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||u>=i&&r[hI]==="none"||s&&r[hI]==="none"&&u+c>i)?"vertical":"horizontal"},D9=function(e,n,r){var i=r?e.left:e.top,o=r?e.right:e.bottom,s=r?e.width:e.height,a=r?n.left:n.top,l=r?n.right:n.bottom,u=r?n.width:n.height;return i===a||o===l||i+s/2===a+u/2},M9=function(e,n){var r;return Ah.some(function(i){var o=i[nr].options.emptyInsertThreshold;if(!(!o||dy(i))){var s=tn(i),a=e>=s.left-o&&e<=s.right+o,l=n>=s.top-o&&n<=s.bottom+o;if(a&&l)return r=i}}),r},mI=function(e){function n(o,s){return function(a,l,u,c){var d=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(o==null&&(s||d))return!0;if(o==null||o===!1)return!1;if(s&&o==="clone")return o;if(typeof o=="function")return n(o(a,l,u,c),s)(a,l,u,c);var h=(s?a:l).options.group.name;return o===!0||typeof o=="string"&&o===h||o.join&&o.indexOf(h)>-1}}var r={},i=e.group;(!i||Sh(i)!="object")&&(i={name:i}),r.name=i.name,r.checkPull=n(i.pull,!0),r.checkPut=n(i.put),r.revertClone=i.revertClone,e.group=r},vI=function(){!pI&&at&&He(at,"display","none")},yI=function(){!pI&&at&&He(at,"display","")};Nh&&document.addEventListener("click",function(t){if(Ch)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Ch=!1,!1},!0);var ha=function(e){if(Ae){e=e.touches?e.touches[0]:e;var n=M9(e.clientX,e.clientY);if(n){var r={};for(var i in e)e.hasOwnProperty(i)&&(r[i]=e[i]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[nr]._onDragOver(r)}}},L9=function(e){Ae&&Ae.parentNode[nr]._isOutsideThisEl(e.target)};function nt(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=Qr({},e),t[nr]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return gI(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,a){s.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:nt.supportPointer!==!1&&"PointerEvent"in window&&!Tc,emptyInsertThreshold:5};Cc.initializePlugins(this,t,n);for(var r in n)!(r in e)&&(e[r]=n[r]);mI(e);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=e.forceFallback?!1:$9,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?xt(t,"pointerdown",this._onTapStart):(xt(t,"mousedown",this._onTapStart),xt(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(xt(t,"dragover",this),xt(t,"dragenter",this)),Ah.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Qr(this,k9())}nt.prototype={constructor:nt,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Bl=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,Ae):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,r=this.el,i=this.options,o=i.preventOnFilter,s=e.type,a=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,l=(a||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,c=i.filter;if(G9(r),!Ae&&!(/mousedown|pointerdown/.test(s)&&e.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Tc&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=pi(l,i.draggable,r,!1),!(l&&l.animated)&&Th!==l)){if(zl=fn(l),Pc=fn(l,i.draggable),typeof c=="function"){if(c.call(this,e,l,this)){cr({sortable:n,rootEl:u,name:"filter",targetEl:l,toEl:r,fromEl:r}),Ir("filter",n,{evt:e}),o&&e.cancelable&&e.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=pi(u,d.trim(),r,!1),d)return cr({sortable:n,rootEl:d,name:"filter",targetEl:l,fromEl:r,toEl:r}),Ir("filter",n,{evt:e}),!0}),c)){o&&e.cancelable&&e.preventDefault();return}i.handle&&!pi(u,i.handle,r,!1)||this._prepareDragStart(e,a,l)}}},_prepareDragStart:function(e,n,r){var i=this,o=i.el,s=i.options,a=o.ownerDocument,l;if(r&&!Ae&&r.parentNode===o){var u=tn(r);if(nn=o,Ae=r,hn=Ae.parentNode,da=Ae.nextSibling,Th=r,Ih=s.group,nt.dragged=Ae,fa={target:Ae,clientX:(n||e).clientX,clientY:(n||e).clientY},dI=fa.clientX-u.left,fI=fa.clientY-u.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,Ae.style["will-change"]="all",l=function(){if(Ir("delayEnded",i,{evt:e}),nt.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!tI&&i.nativeDraggable&&(Ae.draggable=!0),i._triggerDragStart(e,n),cr({sortable:i,name:"choose",originalEvent:e}),un(Ae,s.chosenClass,!0)},s.ignore.split(",").forEach(function(c){oI(Ae,c.trim(),_y)}),xt(a,"dragover",ha),xt(a,"mousemove",ha),xt(a,"touchmove",ha),xt(a,"mouseup",i._onDrop),xt(a,"touchend",i._onDrop),xt(a,"touchcancel",i._onDrop),tI&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Ae.draggable=!0),Ir("delayStart",this,{evt:e}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Ec||wo))){if(nt.eventCanceled){this._onDrop();return}xt(a,"mouseup",i._disableDelayedDrag),xt(a,"touchend",i._disableDelayedDrag),xt(a,"touchcancel",i._disableDelayedDrag),xt(a,"mousemove",i._delayedDragTouchMoveHandler),xt(a,"touchmove",i._delayedDragTouchMoveHandler),s.supportPointer&&xt(a,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(l,s.delay)}else l()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Ae&&_y(Ae),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;pt(e,"mouseup",this._disableDelayedDrag),pt(e,"touchend",this._disableDelayedDrag),pt(e,"touchcancel",this._disableDelayedDrag),pt(e,"mousemove",this._delayedDragTouchMoveHandler),pt(e,"touchmove",this._delayedDragTouchMoveHandler),pt(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?xt(document,"pointermove",this._onTouchMove):n?xt(document,"touchmove",this._onTouchMove):xt(document,"mousemove",this._onTouchMove):(xt(Ae,"dragend",this),xt(nn,"dragstart",this._onDragStart));try{document.selection?Dh(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,n){if(Ul=!1,nn&&Ae){Ir("dragStarted",this,{evt:n}),this.nativeDraggable&&xt(document,"dragover",L9);var r=this.options;!e&&un(Ae,r.dragClass,!1),un(Ae,r.ghostClass,!0),nt.active=this,e&&this._appendGhost(),cr({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(gi){this._lastX=gi.clientX,this._lastY=gi.clientY,vI();for(var e=document.elementFromPoint(gi.clientX,gi.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(gi.clientX,gi.clientY),e!==n);)n=e;if(Ae.parentNode[nr]._isOutsideThisEl(e),n)do{if(n[nr]){var r=void 0;if(r=n[nr]._onDragOver({clientX:gi.clientX,clientY:gi.clientY,target:e,rootEl:n}),r&&!this.options.dragoverBubble)break}e=n}while(n=n.parentNode);yI()}},_onTouchMove:function(e){if(fa){var n=this.options,r=n.fallbackTolerance,i=n.fallbackOffset,o=e.touches?e.touches[0]:e,s=at&&ca(at,!0),a=at&&s&&s.a,l=at&&s&&s.d,u=Rh&&rr&&aI(rr),c=(o.clientX-fa.clientX+i.x)/(a||1)+(u?u[0]-yy[0]:0)/(a||1),d=(o.clientY-fa.clientY+i.y)/(l||1)+(u?u[1]-yy[1]:0)/(l||1);if(!nt.active&&!Ul){if(r&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<r)return;this._onDragStart(e,!0)}if(at){s?(s.e+=c-(my||0),s.f+=d-(vy||0)):s={a:1,b:0,c:0,d:1,e:c,f:d};var h="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");He(at,"webkitTransform",h),He(at,"mozTransform",h),He(at,"msTransform",h),He(at,"transform",h),my=c,vy=d,gi=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!at){var e=this.options.fallbackOnBody?document.body:nn,n=tn(Ae,!0,Rh,!0,e),r=this.options;if(Rh){for(rr=e;He(rr,"position")==="static"&&He(rr,"transform")==="none"&&rr!==document;)rr=rr.parentNode;rr!==document.body&&rr!==document.documentElement?(rr===document&&(rr=Bi()),n.top+=rr.scrollTop,n.left+=rr.scrollLeft):rr=Bi(),yy=aI(rr)}at=Ae.cloneNode(!0),un(at,r.ghostClass,!1),un(at,r.fallbackClass,!0),un(at,r.dragClass,!0),He(at,"transition",""),He(at,"transform",""),He(at,"box-sizing","border-box"),He(at,"margin",0),He(at,"top",n.top),He(at,"left",n.left),He(at,"width",n.width),He(at,"height",n.height),He(at,"opacity","0.8"),He(at,"position",Rh?"absolute":"fixed"),He(at,"zIndex","100000"),He(at,"pointerEvents","none"),nt.ghost=at,e.appendChild(at),He(at,"transform-origin",dI/parseInt(at.style.width)*100+"% "+fI/parseInt(at.style.height)*100+"%")}},_onDragStart:function(e,n){var r=this,i=e.dataTransfer,o=r.options;if(Ir("dragStart",this,{evt:e}),nt.eventCanceled){this._onDrop();return}Ir("setupClone",this),nt.eventCanceled||(pn=hy(Ae),pn.draggable=!1,pn.style["will-change"]="",this._hideClone(),un(pn,this.options.chosenClass,!1),nt.clone=pn),r.cloneId=Dh(function(){Ir("clone",r),!nt.eventCanceled&&(r.options.removeCloneOnHide||nn.insertBefore(pn,Ae),r._hideClone(),cr({sortable:r,name:"clone"}))}),!n&&un(Ae,o.dragClass,!0),n?(Ch=!0,r._loopId=setInterval(r._emulateDragOver,50)):(pt(document,"mouseup",r._onDrop),pt(document,"touchend",r._onDrop),pt(document,"touchcancel",r._onDrop),i&&(i.effectAllowed="move",o.setData&&o.setData.call(r,i,Ae)),xt(document,"drop",r),He(Ae,"transform","translateZ(0)")),Ul=!0,r._dragStartId=Dh(r._dragStarted.bind(r,n,e)),xt(document,"selectstart",r),kc=!0,Tc&&He(document.body,"user-select","none")},_onDragOver:function(e){var n=this.el,r=e.target,i,o,s,a=this.options,l=a.group,u=nt.active,c=Ih===l,d=a.sort,h=Hn||u,p,g=this,m=!1;if(by)return;function _(G,q){Ir(G,g,Ui({evt:e,isOwner:c,axis:p?"vertical":"horizontal",revert:s,dragRect:i,targetRect:o,canSort:d,fromSortable:h,target:r,completed:w,onMove:function(ae,he){return $h(nn,n,Ae,i,ae,tn(ae),e,he)},changed:v},q))}function E(){_("dragOverAnimationCapture"),g.captureAnimationState(),g!==h&&h.captureAnimationState()}function w(G){return _("dragOverCompleted",{insertion:G}),G&&(c?u._hideClone():u._showClone(g),g!==h&&(un(Ae,Hn?Hn.options.ghostClass:u.options.ghostClass,!1),un(Ae,a.ghostClass,!0)),Hn!==g&&g!==nt.active?Hn=g:g===nt.active&&Hn&&(Hn=null),h===g&&(g._ignoreWhileAnimating=r),g.animateAll(function(){_("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(r===Ae&&!Ae.animated||r===n&&!r.animated)&&(Bl=null),!a.dragoverBubble&&!e.rootEl&&r!==document&&(Ae.parentNode[nr]._isOutsideThisEl(e.target),!G&&ha(e)),!a.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function v(){Vr=fn(Ae),ds=fn(Ae,a.draggable),cr({sortable:g,name:"change",toEl:n,newIndex:Vr,newDraggableIndex:ds,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),r=pi(r,a.draggable,n,!0),_("dragOver"),nt.eventCanceled)return m;if(Ae.contains(e.target)||r.animated&&r.animatingX&&r.animatingY||g._ignoreWhileAnimating===r)return w(!1);if(Ch=!1,u&&!a.disabled&&(c?d||(s=hn!==nn):Hn===this||(this.lastPutMode=Ih.checkPull(this,u,Ae,e))&&l.checkPut(this,u,Ae,e))){if(p=this._getDirection(e,r)==="vertical",i=tn(Ae),_("dragOverValid"),nt.eventCanceled)return m;if(s)return hn=nn,E(),this._hideClone(),_("revert"),nt.eventCanceled||(da?nn.insertBefore(Ae,da):nn.appendChild(Ae)),w(!0);var y=dy(n,a.draggable);if(!y||U9(e,p,this)&&!y.animated){if(y===Ae)return w(!1);if(y&&n===e.target&&(r=y),r&&(o=tn(r)),$h(nn,n,Ae,i,r,o,e,!!r)!==!1)return E(),n.appendChild(Ae),hn=n,v(),w(!0)}else if(y&&z9(e,p,this)){var k=Vl(n,0,a,!0);if(k===Ae)return w(!1);if(r=k,o=tn(r),$h(nn,n,Ae,i,r,o,e,!1)!==!1)return E(),n.insertBefore(Ae,k),hn=n,v(),w(!0)}else if(r.parentNode===n){o=tn(r);var $=0,O,A=Ae.parentNode!==n,x=!D9(Ae.animated&&Ae.toRect||i,r.animated&&r.toRect||o,p),N=p?"top":"left",P=sI(r,"top","top")||sI(Ae,"top","top"),b=P?P.scrollTop:void 0;Bl!==r&&(O=o[N],Nc=!1,Ph=!x&&a.invertSwap||A),$=B9(e,r,o,p,x?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Ph,Bl===r);var S;if($!==0){var I=fn(Ae);do I-=$,S=hn.children[I];while(S&&(He(S,"display")==="none"||S===at))}if($===0||S===r)return w(!1);Bl=r,Oc=$;var V=r.nextElementSibling,M=!1;M=$===1;var H=$h(nn,n,Ae,i,r,o,e,M);if(H!==!1)return(H===1||H===-1)&&(M=H===1),by=!0,setTimeout(F9,30),E(),M&&!V?n.appendChild(Ae):r.parentNode.insertBefore(Ae,M?V:r),P&&uI(P,0,b-P.scrollTop),hn=Ae.parentNode,O!==void 0&&!Ph&&(kh=Math.abs(O-tn(r)[N])),v(),w(!0)}if(n.contains(Ae))return w(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){pt(document,"mousemove",this._onTouchMove),pt(document,"touchmove",this._onTouchMove),pt(document,"pointermove",this._onTouchMove),pt(document,"dragover",ha),pt(document,"mousemove",ha),pt(document,"touchmove",ha)},_offUpEvents:function(){var e=this.el.ownerDocument;pt(e,"mouseup",this._onDrop),pt(e,"touchend",this._onDrop),pt(e,"pointerup",this._onDrop),pt(e,"touchcancel",this._onDrop),pt(document,"selectstart",this)},_onDrop:function(e){var n=this.el,r=this.options;if(Vr=fn(Ae),ds=fn(Ae,r.draggable),Ir("drop",this,{evt:e}),hn=Ae&&Ae.parentNode,Vr=fn(Ae),ds=fn(Ae,r.draggable),nt.eventCanceled){this._nulling();return}Ul=!1,Ph=!1,Nc=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),xy(this.cloneId),xy(this._dragStartId),this.nativeDraggable&&(pt(document,"drop",this),pt(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Tc&&He(document.body,"user-select",""),He(Ae,"transform",""),e&&(kc&&(e.cancelable&&e.preventDefault(),!r.dropBubble&&e.stopPropagation()),at&&at.parentNode&&at.parentNode.removeChild(at),(nn===hn||Hn&&Hn.lastPutMode!=="clone")&&pn&&pn.parentNode&&pn.parentNode.removeChild(pn),Ae&&(this.nativeDraggable&&pt(Ae,"dragend",this),_y(Ae),Ae.style["will-change"]="",kc&&!Ul&&un(Ae,Hn?Hn.options.ghostClass:this.options.ghostClass,!1),un(Ae,this.options.chosenClass,!1),cr({sortable:this,name:"unchoose",toEl:hn,newIndex:null,newDraggableIndex:null,originalEvent:e}),nn!==hn?(Vr>=0&&(cr({rootEl:hn,name:"add",toEl:hn,fromEl:nn,originalEvent:e}),cr({sortable:this,name:"remove",toEl:hn,originalEvent:e}),cr({rootEl:hn,name:"sort",toEl:hn,fromEl:nn,originalEvent:e}),cr({sortable:this,name:"sort",toEl:hn,originalEvent:e})),Hn&&Hn.save()):Vr!==zl&&Vr>=0&&(cr({sortable:this,name:"update",toEl:hn,originalEvent:e}),cr({sortable:this,name:"sort",toEl:hn,originalEvent:e})),nt.active&&((Vr==null||Vr===-1)&&(Vr=zl,ds=Pc),cr({sortable:this,name:"end",toEl:hn,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Ir("nulling",this),nn=Ae=hn=at=da=pn=Th=cs=fa=gi=kc=Vr=ds=zl=Pc=Bl=Oc=Hn=Ih=nt.dragged=nt.ghost=nt.clone=nt.active=null,Oh.forEach(function(e){e.checked=!0}),Oh.length=my=vy=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Ae&&(this._onDragOver(e),V9(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,r=this.el.children,i=0,o=r.length,s=this.options;i<o;i++)n=r[i],pi(n,s.draggable,this.el,!1)&&e.push(n.getAttribute(s.dataIdAttr)||H9(n));return e},sort:function(e,n){var r={},i=this.el;this.toArray().forEach(function(o,s){var a=i.children[s];pi(a,this.options.draggable,i,!1)&&(r[o]=a)},this),n&&this.captureAnimationState(),e.forEach(function(o){r[o]&&(i.removeChild(r[o]),i.appendChild(r[o]))}),n&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,n){return pi(e,n||this.options.draggable,this.el,!1)},option:function(e,n){var r=this.options;if(n===void 0)return r[e];var i=Cc.modifyOption(this,e,n);typeof i<"u"?r[e]=i:r[e]=n,e==="group"&&mI(r)},destroy:function(){Ir("destroy",this);var e=this.el;e[nr]=null,pt(e,"mousedown",this._onTapStart),pt(e,"touchstart",this._onTapStart),pt(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(pt(e,"dragover",this),pt(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ah.splice(Ah.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!cs){if(Ir("hideClone",this),nt.eventCanceled)return;He(pn,"display","none"),this.options.removeCloneOnHide&&pn.parentNode&&pn.parentNode.removeChild(pn),cs=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(cs){if(Ir("showClone",this),nt.eventCanceled)return;Ae.parentNode==nn&&!this.options.group.revertClone?nn.insertBefore(pn,Ae):da?nn.insertBefore(pn,da):nn.appendChild(pn),this.options.group.revertClone&&this.animate(Ae,pn),He(pn,"display",""),cs=!1}}};function V9(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function $h(t,e,n,r,i,o,s,a){var l,u=t[nr],c=u.options.onMove,d;return window.CustomEvent&&!wo&&!Ec?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=e,l.from=t,l.dragged=n,l.draggedRect=r,l.related=i||e,l.relatedRect=o||tn(e),l.willInsertAfter=a,l.originalEvent=s,t.dispatchEvent(l),c&&(d=c.call(u,l,s)),d}function _y(t){t.draggable=!1}function F9(){by=!1}function z9(t,e,n){var r=tn(Vl(n.el,0,n.options,!0)),i=10;return e?t.clientX<r.left-i||t.clientY<r.top&&t.clientX<r.right:t.clientY<r.top-i||t.clientY<r.bottom&&t.clientX<r.left}function U9(t,e,n){var r=tn(dy(n.el,n.options.draggable)),i=10;return e?t.clientX>r.right+i||t.clientX<=r.right&&t.clientY>r.bottom&&t.clientX>=r.left:t.clientX>r.right&&t.clientY>r.top||t.clientX<=r.right&&t.clientY>r.bottom+i}function B9(t,e,n,r,i,o,s,a){var l=r?t.clientY:t.clientX,u=r?n.height:n.width,c=r?n.top:n.left,d=r?n.bottom:n.right,h=!1;if(!s){if(a&&kh<u*i){if(!Nc&&(Oc===1?l>c+u*o/2:l<d-u*o/2)&&(Nc=!0),Nc)h=!0;else if(Oc===1?l<c+kh:l>d-kh)return-Oc}else if(l>c+u*(1-i)/2&&l<d-u*(1-i)/2)return j9(e)}return h=h||s,h&&(l<c+u*o/2||l>d-u*o/2)?l>c+u/2?1:-1:0}function j9(t){return fn(Ae)<fn(t)?1:-1}function H9(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;n--;)r+=e.charCodeAt(n);return r.toString(36)}function G9(t){Oh.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var r=e[n];r.checked&&Oh.push(r)}}function Dh(t){return setTimeout(t,0)}function xy(t){return clearTimeout(t)}Nh&&xt(document,"touchmove",function(t){(nt.active||Ul)&&t.cancelable&&t.preventDefault()}),nt.utils={on:xt,off:pt,css:He,find:oI,is:function(e,n){return!!pi(e,n,e,!1)},extend:A9,throttle:lI,closest:pi,toggleClass:un,clone:hy,index:fn,nextTick:Dh,cancelNextTick:xy,detectDirection:gI,getChild:Vl},nt.get=function(t){return t[nr]},nt.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(nt.utils=Ui(Ui({},nt.utils),r.utils)),Cc.mount(r)})},nt.create=function(t,e){return new nt(t,e)},nt.version=E9;var En=[],Rc,wy,Sy=!1,Ey,Ty,Mh,$c;function W9(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return t.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?xt(document,"dragover",this._handleAutoScroll):this.options.supportPointer?xt(document,"pointermove",this._handleFallbackAutoScroll):r.touches?xt(document,"touchmove",this._handleFallbackAutoScroll):xt(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?pt(document,"dragover",this._handleAutoScroll):(pt(document,"pointermove",this._handleFallbackAutoScroll),pt(document,"touchmove",this._handleFallbackAutoScroll),pt(document,"mousemove",this._handleFallbackAutoScroll)),bI(),Lh(),P9()},nulling:function(){Mh=wy=Rc=Sy=$c=Ey=Ty=null,En.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var i=this,o=(n.touches?n.touches[0]:n).clientX,s=(n.touches?n.touches[0]:n).clientY,a=document.elementFromPoint(o,s);if(Mh=n,r||this.options.forceAutoScrollFallback||Ec||wo||Tc){Iy(n,this.options,a,r);var l=us(a,!0);Sy&&(!$c||o!==Ey||s!==Ty)&&($c&&bI(),$c=setInterval(function(){var u=us(document.elementFromPoint(o,s),!0);u!==l&&(l=u,Lh()),Iy(n,i.options,u,r)},10),Ey=o,Ty=s)}else{if(!this.options.bubbleScroll||us(a,!0)===Bi()){Lh();return}Iy(n,this.options,us(a,!1),!1)}}},Qr(t,{pluginName:"scroll",initializeByDefault:!0})}function Lh(){En.forEach(function(t){clearInterval(t.pid)}),En=[]}function bI(){clearInterval($c)}var Iy=lI(function(t,e,n,r){if(e.scroll){var i=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,s=e.scrollSensitivity,a=e.scrollSpeed,l=Bi(),u=!1,c;wy!==n&&(wy=n,Lh(),Rc=e.scroll,c=e.scrollFn,Rc===!0&&(Rc=us(n,!0)));var d=0,h=Rc;do{var p=h,g=tn(p),m=g.top,_=g.bottom,E=g.left,w=g.right,v=g.width,y=g.height,k=void 0,$=void 0,O=p.scrollWidth,A=p.scrollHeight,x=He(p),N=p.scrollLeft,P=p.scrollTop;p===l?(k=v<O&&(x.overflowX==="auto"||x.overflowX==="scroll"||x.overflowX==="visible"),$=y<A&&(x.overflowY==="auto"||x.overflowY==="scroll"||x.overflowY==="visible")):(k=v<O&&(x.overflowX==="auto"||x.overflowX==="scroll"),$=y<A&&(x.overflowY==="auto"||x.overflowY==="scroll"));var b=k&&(Math.abs(w-i)<=s&&N+v<O)-(Math.abs(E-i)<=s&&!!N),S=$&&(Math.abs(_-o)<=s&&P+y<A)-(Math.abs(m-o)<=s&&!!P);if(!En[d])for(var I=0;I<=d;I++)En[I]||(En[I]={});(En[d].vx!=b||En[d].vy!=S||En[d].el!==p)&&(En[d].el=p,En[d].vx=b,En[d].vy=S,clearInterval(En[d].pid),(b!=0||S!=0)&&(u=!0,En[d].pid=setInterval((function(){r&&this.layer===0&&nt.active._onTouchMove(Mh);var V=En[this.layer].vy?En[this.layer].vy*a:0,M=En[this.layer].vx?En[this.layer].vx*a:0;typeof c=="function"&&c.call(nt.dragged.parentNode[nr],M,V,t,Mh,En[this.layer].el)!=="continue"||uI(En[this.layer].el,M,V)}).bind({layer:d}),24))),d++}while(e.bubbleScroll&&h!==l&&(h=us(h,!1)));Sy=u}},30),_I=function(e){var n=e.originalEvent,r=e.putSortable,i=e.dragEl,o=e.activeSortable,s=e.dispatchSortableEvent,a=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(n){var u=r||o;a();var c=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,d=document.elementFromPoint(c.clientX,c.clientY);l(),u&&!u.el.contains(d)&&(s("spill"),this.onSpill({dragEl:i,putSortable:r}))}};function Cy(){}Cy.prototype={startIndex:null,dragStart:function(e){var n=e.oldDraggableIndex;this.startIndex=n},onSpill:function(e){var n=e.dragEl,r=e.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var i=Vl(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(n,i):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:_I},Qr(Cy,{pluginName:"revertOnSpill"});function Ay(){}Ay.prototype={onSpill:function(e){var n=e.dragEl,r=e.putSortable,i=r||this.sortable;i.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),i.animateAll()},drop:_I},Qr(Ay,{pluginName:"removeOnSpill"});var qr;function K9(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(n){var r=n.dragEl;qr=r},dragOverValid:function(n){var r=n.completed,i=n.target,o=n.onMove,s=n.activeSortable,a=n.changed,l=n.cancel;if(s.options.swap){var u=this.sortable.el,c=this.options;if(i&&i!==u){var d=qr;o(i)!==!1?(un(i,c.swapClass,!0),qr=i):qr=null,d&&d!==qr&&un(d,c.swapClass,!1)}a(),r(!0),l()}},drop:function(n){var r=n.activeSortable,i=n.putSortable,o=n.dragEl,s=i||this.sortable,a=this.options;qr&&un(qr,a.swapClass,!1),qr&&(a.swap||i&&i.options.swap)&&o!==qr&&(s.captureAnimationState(),s!==r&&r.captureAnimationState(),Z9(o,qr),s.animateAll(),s!==r&&r.animateAll())},nulling:function(){qr=null}},Qr(t,{pluginName:"swap",eventProperties:function(){return{swapItem:qr}}})}function Z9(t,e){var n=t.parentNode,r=e.parentNode,i,o;!n||!r||n.isEqualNode(e)||r.isEqualNode(t)||(i=fn(t),o=fn(e),n.isEqualNode(r)&&i<o&&o++,n.insertBefore(e,n.children[i]),r.insertBefore(t,r.children[o]))}var st=[],Fr=[],Dc,mi,Mc=!1,Cr=!1,jl=!1,Kt,Lc,Vh;function X9(){function t(e){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));e.options.supportPointer?xt(document,"pointerup",this._deselectMultiDrag):(xt(document,"mouseup",this._deselectMultiDrag),xt(document,"touchend",this._deselectMultiDrag)),xt(document,"keydown",this._checkKeyDown),xt(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(i,o){var s="";st.length&&mi===e?st.forEach(function(a,l){s+=(l?", ":"")+a.textContent}):s=o.textContent,i.setData("Text",s)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var r=n.dragEl;Kt=r},delayEnded:function(){this.isMultiDrag=~st.indexOf(Kt)},setupClone:function(n){var r=n.sortable,i=n.cancel;if(this.isMultiDrag){for(var o=0;o<st.length;o++)Fr.push(hy(st[o])),Fr[o].sortableIndex=st[o].sortableIndex,Fr[o].draggable=!1,Fr[o].style["will-change"]="",un(Fr[o],this.options.selectedClass,!1),st[o]===Kt&&un(Fr[o],this.options.chosenClass,!1);r._hideClone(),i()}},clone:function(n){var r=n.sortable,i=n.rootEl,o=n.dispatchSortableEvent,s=n.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||st.length&&mi===r&&(xI(!0,i),o("clone"),s()))},showClone:function(n){var r=n.cloneNowShown,i=n.rootEl,o=n.cancel;this.isMultiDrag&&(xI(!1,i),Fr.forEach(function(s){He(s,"display","")}),r(),Vh=!1,o())},hideClone:function(n){var r=this;n.sortable;var i=n.cloneNowHidden,o=n.cancel;this.isMultiDrag&&(Fr.forEach(function(s){He(s,"display","none"),r.options.removeCloneOnHide&&s.parentNode&&s.parentNode.removeChild(s)}),i(),Vh=!0,o())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&mi&&mi.multiDrag._deselectMultiDrag(),st.forEach(function(r){r.sortableIndex=fn(r)}),st=st.sort(function(r,i){return r.sortableIndex-i.sortableIndex}),jl=!0},dragStarted:function(n){var r=this,i=n.sortable;if(this.isMultiDrag){if(this.options.sort&&(i.captureAnimationState(),this.options.animation)){st.forEach(function(s){s!==Kt&&He(s,"position","absolute")});var o=tn(Kt,!1,!0,!0);st.forEach(function(s){s!==Kt&&cI(s,o)}),Cr=!0,Mc=!0}i.animateAll(function(){Cr=!1,Mc=!1,r.options.animation&&st.forEach(function(s){py(s)}),r.options.sort&&Fh()})}},dragOver:function(n){var r=n.target,i=n.completed,o=n.cancel;Cr&&~st.indexOf(r)&&(i(!1),o())},revert:function(n){var r=n.fromSortable,i=n.rootEl,o=n.sortable,s=n.dragRect;st.length>1&&(st.forEach(function(a){o.addAnimationState({target:a,rect:Cr?tn(a):s}),py(a),a.fromRect=s,r.removeAnimationState(a)}),Cr=!1,Y9(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(n){var r=n.sortable,i=n.isOwner,o=n.insertion,s=n.activeSortable,a=n.parentEl,l=n.putSortable,u=this.options;if(o){if(i&&s._hideClone(),Mc=!1,u.animation&&st.length>1&&(Cr||!i&&!s.options.sort&&!l)){var c=tn(Kt,!1,!0,!0);st.forEach(function(h){h!==Kt&&(cI(h,c),a.appendChild(h))}),Cr=!0}if(!i)if(Cr||Fh(),st.length>1){var d=Vh;s._showClone(r),s.options.animation&&!Vh&&d&&Fr.forEach(function(h){s.addAnimationState({target:h,rect:Lc}),h.fromRect=Lc,h.thisAnimationDuration=null})}else s._showClone(r)}},dragOverAnimationCapture:function(n){var r=n.dragRect,i=n.isOwner,o=n.activeSortable;if(st.forEach(function(a){a.thisAnimationDuration=null}),o.options.animation&&!i&&o.multiDrag.isMultiDrag){Lc=Qr({},r);var s=ca(Kt,!0);Lc.top-=s.f,Lc.left-=s.e}},dragOverAnimationComplete:function(){Cr&&(Cr=!1,Fh())},drop:function(n){var r=n.originalEvent,i=n.rootEl,o=n.parentEl,s=n.sortable,a=n.dispatchSortableEvent,l=n.oldIndex,u=n.putSortable,c=u||this.sortable;if(r){var d=this.options,h=o.children;if(!jl)if(d.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),un(Kt,d.selectedClass,!~st.indexOf(Kt)),~st.indexOf(Kt))st.splice(st.indexOf(Kt),1),Dc=null,Ac({sortable:s,rootEl:i,name:"deselect",targetEl:Kt});else{if(st.push(Kt),Ac({sortable:s,rootEl:i,name:"select",targetEl:Kt}),r.shiftKey&&Dc&&s.el.contains(Dc)){var p=fn(Dc),g=fn(Kt);if(~p&&~g&&p!==g){var m,_;for(g>p?(_=p,m=g):(_=g,m=p+1);_<m;_++)~st.indexOf(h[_])||(un(h[_],d.selectedClass,!0),st.push(h[_]),Ac({sortable:s,rootEl:i,name:"select",targetEl:h[_]}))}}else Dc=Kt;mi=c}if(jl&&this.isMultiDrag){if(Cr=!1,(o[nr].options.sort||o!==i)&&st.length>1){var E=tn(Kt),w=fn(Kt,":not(."+this.options.selectedClass+")");if(!Mc&&d.animation&&(Kt.thisAnimationDuration=null),c.captureAnimationState(),!Mc&&(d.animation&&(Kt.fromRect=E,st.forEach(function(y){if(y.thisAnimationDuration=null,y!==Kt){var k=Cr?tn(y):E;y.fromRect=k,c.addAnimationState({target:y,rect:k})}})),Fh(),st.forEach(function(y){h[w]?o.insertBefore(y,h[w]):o.appendChild(y),w++}),l===fn(Kt))){var v=!1;st.forEach(function(y){if(y.sortableIndex!==fn(y)){v=!0;return}}),v&&a("update")}st.forEach(function(y){py(y)}),c.animateAll()}mi=c}(i===o||u&&u.lastPutMode!=="clone")&&Fr.forEach(function(y){y.parentNode&&y.parentNode.removeChild(y)})}},nullingGlobal:function(){this.isMultiDrag=jl=!1,Fr.length=0},destroyGlobal:function(){this._deselectMultiDrag(),pt(document,"pointerup",this._deselectMultiDrag),pt(document,"mouseup",this._deselectMultiDrag),pt(document,"touchend",this._deselectMultiDrag),pt(document,"keydown",this._checkKeyDown),pt(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof jl<"u"&&jl)&&mi===this.sortable&&!(n&&pi(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;st.length;){var r=st[0];un(r,this.options.selectedClass,!1),st.shift(),Ac({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:r})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Qr(t,{pluginName:"multiDrag",utils:{select:function(n){var r=n.parentNode[nr];!r||!r.options.multiDrag||~st.indexOf(n)||(mi&&mi!==r&&(mi.multiDrag._deselectMultiDrag(),mi=r),un(n,r.options.selectedClass,!0),st.push(n))},deselect:function(n){var r=n.parentNode[nr],i=st.indexOf(n);!r||!r.options.multiDrag||!~i||(un(n,r.options.selectedClass,!1),st.splice(i,1))}},eventProperties:function(){var n=this,r=[],i=[];return st.forEach(function(o){r.push({multiDragElement:o,index:o.sortableIndex});var s;Cr&&o!==Kt?s=-1:Cr?s=fn(o,":not(."+n.options.selectedClass+")"):s=fn(o),i.push({multiDragElement:o,index:s})}),{items:b9(st),clones:[].concat(Fr),oldIndicies:r,newIndicies:i}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function Y9(t,e){st.forEach(function(n,r){var i=e.children[n.sortableIndex+(t?Number(r):0)];i?e.insertBefore(n,i):e.appendChild(n)})}function xI(t,e){Fr.forEach(function(n,r){var i=e.children[n.sortableIndex+(t?Number(r):0)];i?e.insertBefore(n,i):e.appendChild(n)})}function Fh(){st.forEach(function(t){t!==Kt&&t.parentNode&&t.parentNode.removeChild(t)})}nt.mount(new W9),nt.mount(Ay,Cy);const J9=QT(Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:X9,Sortable:nt,Swap:K9,default:nt},Symbol.toStringTag,{value:"Module"})));(function(t,e){(function(r,i){t.exports=i(g9,J9)})(typeof self<"u"?self:h9,function(n,r){return function(i){var o={};function s(a){if(o[a])return o[a].exports;var l=o[a]={i:a,l:!1,exports:{}};return i[a].call(l.exports,l,l.exports,s),l.l=!0,l.exports}return s.m=i,s.c=o,s.d=function(a,l,u){s.o(a,l)||Object.defineProperty(a,l,{enumerable:!0,get:u})},s.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},s.t=function(a,l){if(l&1&&(a=s(a)),l&8||l&4&&typeof a=="object"&&a&&a.__esModule)return a;var u=Object.create(null);if(s.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:a}),l&2&&typeof a!="string")for(var c in a)s.d(u,c,(function(d){return a[d]}).bind(null,c));return u},s.n=function(a){var l=a&&a.__esModule?function(){return a.default}:function(){return a};return s.d(l,"a",l),l},s.o=function(a,l){return Object.prototype.hasOwnProperty.call(a,l)},s.p="",s(s.s="fb15")}({"00ee":function(i,o,s){var a=s("b622"),l=a("toStringTag"),u={};u[l]="z",i.exports=String(u)==="[object z]"},"0366":function(i,o,s){var a=s("1c0b");i.exports=function(l,u,c){if(a(l),u===void 0)return l;switch(c){case 0:return function(){return l.call(u)};case 1:return function(d){return l.call(u,d)};case 2:return function(d,h){return l.call(u,d,h)};case 3:return function(d,h,p){return l.call(u,d,h,p)}}return function(){return l.apply(u,arguments)}}},"057f":function(i,o,s){var a=s("fc6a"),l=s("241c").f,u={}.toString,c=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],d=function(h){try{return l(h)}catch{return c.slice()}};i.exports.f=function(p){return c&&u.call(p)=="[object Window]"?d(p):l(a(p))}},"06cf":function(i,o,s){var a=s("83ab"),l=s("d1e7"),u=s("5c6c"),c=s("fc6a"),d=s("c04e"),h=s("5135"),p=s("0cfb"),g=Object.getOwnPropertyDescriptor;o.f=a?g:function(_,E){if(_=c(_),E=d(E,!0),p)try{return g(_,E)}catch{}if(h(_,E))return u(!l.f.call(_,E),_[E])}},"0cfb":function(i,o,s){var a=s("83ab"),l=s("d039"),u=s("cc12");i.exports=!a&&!l(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(i,o,s){var a=s("23e7"),l=s("d58f").left,u=s("a640"),c=s("ae40"),d=u("reduce"),h=c("reduce",{1:0});a({target:"Array",proto:!0,forced:!d||!h},{reduce:function(g){return l(this,g,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(i,o,s){var a=s("c6b6"),l=s("9263");i.exports=function(u,c){var d=u.exec;if(typeof d=="function"){var h=d.call(u,c);if(typeof h!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return h}if(a(u)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(u,c)}},"159b":function(i,o,s){var a=s("da84"),l=s("fdbc"),u=s("17c2"),c=s("9112");for(var d in l){var h=a[d],p=h&&h.prototype;if(p&&p.forEach!==u)try{c(p,"forEach",u)}catch{p.forEach=u}}},"17c2":function(i,o,s){var a=s("b727").forEach,l=s("a640"),u=s("ae40"),c=l("forEach"),d=u("forEach");i.exports=!c||!d?function(p){return a(this,p,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(i,o,s){var a=s("d066");i.exports=a("document","documentElement")},"1c0b":function(i,o){i.exports=function(s){if(typeof s!="function")throw TypeError(String(s)+" is not a function");return s}},"1c7e":function(i,o,s){var a=s("b622"),l=a("iterator"),u=!1;try{var c=0,d={next:function(){return{done:!!c++}},return:function(){u=!0}};d[l]=function(){return this},Array.from(d,function(){throw 2})}catch{}i.exports=function(h,p){if(!p&&!u)return!1;var g=!1;try{var m={};m[l]=function(){return{next:function(){return{done:g=!0}}}},h(m)}catch{}return g}},"1d80":function(i,o){i.exports=function(s){if(s==null)throw TypeError("Can't call method on "+s);return s}},"1dde":function(i,o,s){var a=s("d039"),l=s("b622"),u=s("2d00"),c=l("species");i.exports=function(d){return u>=51||!a(function(){var h=[],p=h.constructor={};return p[c]=function(){return{foo:1}},h[d](Boolean).foo!==1})}},"23cb":function(i,o,s){var a=s("a691"),l=Math.max,u=Math.min;i.exports=function(c,d){var h=a(c);return h<0?l(h+d,0):u(h,d)}},"23e7":function(i,o,s){var a=s("da84"),l=s("06cf").f,u=s("9112"),c=s("6eeb"),d=s("ce4e"),h=s("e893"),p=s("94ca");i.exports=function(g,m){var _=g.target,E=g.global,w=g.stat,v,y,k,$,O,A;if(E?y=a:w?y=a[_]||d(_,{}):y=(a[_]||{}).prototype,y)for(k in m){if(O=m[k],g.noTargetGet?(A=l(y,k),$=A&&A.value):$=y[k],v=p(E?k:_+(w?".":"#")+k,g.forced),!v&&$!==void 0){if(typeof O==typeof $)continue;h(O,$)}(g.sham||$&&$.sham)&&u(O,"sham",!0),c(y,k,O,g)}}},"241c":function(i,o,s){var a=s("ca84"),l=s("7839"),u=l.concat("length","prototype");o.f=Object.getOwnPropertyNames||function(d){return a(d,u)}},"25f0":function(i,o,s){var a=s("6eeb"),l=s("825a"),u=s("d039"),c=s("ad6d"),d="toString",h=RegExp.prototype,p=h[d],g=u(function(){return p.call({source:"a",flags:"b"})!="/a/b"}),m=p.name!=d;(g||m)&&a(RegExp.prototype,d,function(){var E=l(this),w=String(E.source),v=E.flags,y=String(v===void 0&&E instanceof RegExp&&!("flags"in h)?c.call(E):v);return"/"+w+"/"+y},{unsafe:!0})},"2ca0":function(i,o,s){var a=s("23e7"),l=s("06cf").f,u=s("50c4"),c=s("5a34"),d=s("1d80"),h=s("ab13"),p=s("c430"),g="".startsWith,m=Math.min,_=h("startsWith"),E=!p&&!_&&!!function(){var w=l(String.prototype,"startsWith");return w&&!w.writable}();a({target:"String",proto:!0,forced:!E&&!_},{startsWith:function(v){var y=String(d(this));c(v);var k=u(m(arguments.length>1?arguments[1]:void 0,y.length)),$=String(v);return g?g.call(y,$,k):y.slice(k,k+$.length)===$}})},"2d00":function(i,o,s){var a=s("da84"),l=s("342f"),u=a.process,c=u&&u.versions,d=c&&c.v8,h,p;d?(h=d.split("."),p=h[0]+h[1]):l&&(h=l.match(/Edge\/(\d+)/),(!h||h[1]>=74)&&(h=l.match(/Chrome\/(\d+)/),h&&(p=h[1]))),i.exports=p&&+p},"342f":function(i,o,s){var a=s("d066");i.exports=a("navigator","userAgent")||""},"35a1":function(i,o,s){var a=s("f5df"),l=s("3f8c"),u=s("b622"),c=u("iterator");i.exports=function(d){if(d!=null)return d[c]||d["@@iterator"]||l[a(d)]}},"37e8":function(i,o,s){var a=s("83ab"),l=s("9bf2"),u=s("825a"),c=s("df75");i.exports=a?Object.defineProperties:function(h,p){u(h);for(var g=c(p),m=g.length,_=0,E;m>_;)l.f(h,E=g[_++],p[E]);return h}},"3bbe":function(i,o,s){var a=s("861d");i.exports=function(l){if(!a(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"3ca3":function(i,o,s){var a=s("6547").charAt,l=s("69f3"),u=s("7dd0"),c="String Iterator",d=l.set,h=l.getterFor(c);u(String,"String",function(p){d(this,{type:c,string:String(p),index:0})},function(){var g=h(this),m=g.string,_=g.index,E;return _>=m.length?{value:void 0,done:!0}:(E=a(m,_),g.index+=E.length,{value:E,done:!1})})},"3f8c":function(i,o){i.exports={}},4160:function(i,o,s){var a=s("23e7"),l=s("17c2");a({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})},"428f":function(i,o,s){var a=s("da84");i.exports=a},"44ad":function(i,o,s){var a=s("d039"),l=s("c6b6"),u="".split;i.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(c){return l(c)=="String"?u.call(c,""):Object(c)}:Object},"44d2":function(i,o,s){var a=s("b622"),l=s("7c73"),u=s("9bf2"),c=a("unscopables"),d=Array.prototype;d[c]==null&&u.f(d,c,{configurable:!0,value:l(null)}),i.exports=function(h){d[c][h]=!0}},"44e7":function(i,o,s){var a=s("861d"),l=s("c6b6"),u=s("b622"),c=u("match");i.exports=function(d){var h;return a(d)&&((h=d[c])!==void 0?!!h:l(d)=="RegExp")}},4930:function(i,o,s){var a=s("d039");i.exports=!!Object.getOwnPropertySymbols&&!a(function(){return!String(Symbol())})},"4d64":function(i,o,s){var a=s("fc6a"),l=s("50c4"),u=s("23cb"),c=function(d){return function(h,p,g){var m=a(h),_=l(m.length),E=u(g,_),w;if(d&&p!=p){for(;_>E;)if(w=m[E++],w!=w)return!0}else for(;_>E;E++)if((d||E in m)&&m[E]===p)return d||E||0;return!d&&-1}};i.exports={includes:c(!0),indexOf:c(!1)}},"4de4":function(i,o,s){var a=s("23e7"),l=s("b727").filter,u=s("1dde"),c=s("ae40"),d=u("filter"),h=c("filter");a({target:"Array",proto:!0,forced:!d||!h},{filter:function(g){return l(this,g,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(i,o,s){var a=s("0366"),l=s("7b0b"),u=s("9bdd"),c=s("e95a"),d=s("50c4"),h=s("8418"),p=s("35a1");i.exports=function(m){var _=l(m),E=typeof this=="function"?this:Array,w=arguments.length,v=w>1?arguments[1]:void 0,y=v!==void 0,k=p(_),$=0,O,A,x,N,P,b;if(y&&(v=a(v,w>2?arguments[2]:void 0,2)),k!=null&&!(E==Array&&c(k)))for(N=k.call(_),P=N.next,A=new E;!(x=P.call(N)).done;$++)b=y?u(N,v,[x.value,$],!0):x.value,h(A,$,b);else for(O=d(_.length),A=new E(O);O>$;$++)b=y?v(_[$],$):_[$],h(A,$,b);return A.length=$,A}},"4fad":function(i,o,s){var a=s("23e7"),l=s("6f53").entries;a({target:"Object",stat:!0},{entries:function(c){return l(c)}})},"50c4":function(i,o,s){var a=s("a691"),l=Math.min;i.exports=function(u){return u>0?l(a(u),9007199254740991):0}},5135:function(i,o){var s={}.hasOwnProperty;i.exports=function(a,l){return s.call(a,l)}},5319:function(i,o,s){var a=s("d784"),l=s("825a"),u=s("7b0b"),c=s("50c4"),d=s("a691"),h=s("1d80"),p=s("8aa5"),g=s("14c3"),m=Math.max,_=Math.min,E=Math.floor,w=/\$([$&'`]|\d\d?|<[^>]*>)/g,v=/\$([$&'`]|\d\d?)/g,y=function(k){return k===void 0?k:String(k)};a("replace",2,function(k,$,O,A){var x=A.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,N=A.REPLACE_KEEPS_$0,P=x?"$":"$0";return[function(I,V){var M=h(this),H=I==null?void 0:I[k];return H!==void 0?H.call(I,M,V):$.call(String(M),I,V)},function(S,I){if(!x&&N||typeof I=="string"&&I.indexOf(P)===-1){var V=O($,S,this,I);if(V.done)return V.value}var M=l(S),H=String(this),G=typeof I=="function";G||(I=String(I));var q=M.global;if(q){var oe=M.unicode;M.lastIndex=0}for(var ae=[];;){var he=g(M,H);if(he===null||(ae.push(he),!q))break;var xe=String(he[0]);xe===""&&(M.lastIndex=p(H,c(M.lastIndex),oe))}for(var Ee="",de=0,ce=0;ce<ae.length;ce++){he=ae[ce];for(var fe=String(he[0]),Le=m(_(d(he.index),H.length),0),Re=[],Be=1;Be<he.length;Be++)Re.push(y(he[Be]));var et=he.groups;if(G){var De=[fe].concat(Re,Le,H);et!==void 0&&De.push(et);var B=String(I.apply(void 0,De))}else B=b(fe,H,Le,Re,et,I);Le>=de&&(Ee+=H.slice(de,Le)+B,de=Le+fe.length)}return Ee+H.slice(de)}];function b(S,I,V,M,H,G){var q=V+S.length,oe=M.length,ae=v;return H!==void 0&&(H=u(H),ae=w),$.call(G,ae,function(he,xe){var Ee;switch(xe.charAt(0)){case"$":return"$";case"&":return S;case"`":return I.slice(0,V);case"'":return I.slice(q);case"<":Ee=H[xe.slice(1,-1)];break;default:var de=+xe;if(de===0)return he;if(de>oe){var ce=E(de/10);return ce===0?he:ce<=oe?M[ce-1]===void 0?xe.charAt(1):M[ce-1]+xe.charAt(1):he}Ee=M[de-1]}return Ee===void 0?"":Ee})}})},5692:function(i,o,s){var a=s("c430"),l=s("c6cd");(i.exports=function(u,c){return l[u]||(l[u]=c!==void 0?c:{})})("versions",[]).push({version:"3.6.5",mode:a?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(i,o,s){var a=s("d066"),l=s("241c"),u=s("7418"),c=s("825a");i.exports=a("Reflect","ownKeys")||function(h){var p=l.f(c(h)),g=u.f;return g?p.concat(g(h)):p}},"5a34":function(i,o,s){var a=s("44e7");i.exports=function(l){if(a(l))throw TypeError("The method doesn't accept regular expressions");return l}},"5c6c":function(i,o){i.exports=function(s,a){return{enumerable:!(s&1),configurable:!(s&2),writable:!(s&4),value:a}}},"5db7":function(i,o,s){var a=s("23e7"),l=s("a2bf"),u=s("7b0b"),c=s("50c4"),d=s("1c0b"),h=s("65f0");a({target:"Array",proto:!0},{flatMap:function(g){var m=u(this),_=c(m.length),E;return d(g),E=h(m,0),E.length=l(E,m,m,_,0,1,g,arguments.length>1?arguments[1]:void 0),E}})},6547:function(i,o,s){var a=s("a691"),l=s("1d80"),u=function(c){return function(d,h){var p=String(l(d)),g=a(h),m=p.length,_,E;return g<0||g>=m?c?"":void 0:(_=p.charCodeAt(g),_<55296||_>56319||g+1===m||(E=p.charCodeAt(g+1))<56320||E>57343?c?p.charAt(g):_:c?p.slice(g,g+2):(_-55296<<10)+(E-56320)+65536)}};i.exports={codeAt:u(!1),charAt:u(!0)}},"65f0":function(i,o,s){var a=s("861d"),l=s("e8b5"),u=s("b622"),c=u("species");i.exports=function(d,h){var p;return l(d)&&(p=d.constructor,typeof p=="function"&&(p===Array||l(p.prototype))?p=void 0:a(p)&&(p=p[c],p===null&&(p=void 0))),new(p===void 0?Array:p)(h===0?0:h)}},"69f3":function(i,o,s){var a=s("7f9a"),l=s("da84"),u=s("861d"),c=s("9112"),d=s("5135"),h=s("f772"),p=s("d012"),g=l.WeakMap,m,_,E,w=function(x){return E(x)?_(x):m(x,{})},v=function(x){return function(N){var P;if(!u(N)||(P=_(N)).type!==x)throw TypeError("Incompatible receiver, "+x+" required");return P}};if(a){var y=new g,k=y.get,$=y.has,O=y.set;m=function(x,N){return O.call(y,x,N),N},_=function(x){return k.call(y,x)||{}},E=function(x){return $.call(y,x)}}else{var A=h("state");p[A]=!0,m=function(x,N){return c(x,A,N),N},_=function(x){return d(x,A)?x[A]:{}},E=function(x){return d(x,A)}}i.exports={set:m,get:_,has:E,enforce:w,getterFor:v}},"6eeb":function(i,o,s){var a=s("da84"),l=s("9112"),u=s("5135"),c=s("ce4e"),d=s("8925"),h=s("69f3"),p=h.get,g=h.enforce,m=String(String).split("String");(i.exports=function(_,E,w,v){var y=v?!!v.unsafe:!1,k=v?!!v.enumerable:!1,$=v?!!v.noTargetGet:!1;if(typeof w=="function"&&(typeof E=="string"&&!u(w,"name")&&l(w,"name",E),g(w).source=m.join(typeof E=="string"?E:"")),_===a){k?_[E]=w:c(E,w);return}else y?!$&&_[E]&&(k=!0):delete _[E];k?_[E]=w:l(_,E,w)})(Function.prototype,"toString",function(){return typeof this=="function"&&p(this).source||d(this)})},"6f53":function(i,o,s){var a=s("83ab"),l=s("df75"),u=s("fc6a"),c=s("d1e7").f,d=function(h){return function(p){for(var g=u(p),m=l(g),_=m.length,E=0,w=[],v;_>E;)v=m[E++],(!a||c.call(g,v))&&w.push(h?[v,g[v]]:g[v]);return w}};i.exports={entries:d(!0),values:d(!1)}},"73d9":function(i,o,s){var a=s("44d2");a("flatMap")},7418:function(i,o){o.f=Object.getOwnPropertySymbols},"746f":function(i,o,s){var a=s("428f"),l=s("5135"),u=s("e538"),c=s("9bf2").f;i.exports=function(d){var h=a.Symbol||(a.Symbol={});l(h,d)||c(h,d,{value:u.f(d)})}},7839:function(i,o){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(i,o,s){var a=s("1d80");i.exports=function(l){return Object(a(l))}},"7c73":function(i,o,s){var a=s("825a"),l=s("37e8"),u=s("7839"),c=s("d012"),d=s("1be4"),h=s("cc12"),p=s("f772"),g=">",m="<",_="prototype",E="script",w=p("IE_PROTO"),v=function(){},y=function(x){return m+E+g+x+m+"/"+E+g},k=function(x){x.write(y("")),x.close();var N=x.parentWindow.Object;return x=null,N},$=function(){var x=h("iframe"),N="java"+E+":",P;return x.style.display="none",d.appendChild(x),x.src=String(N),P=x.contentWindow.document,P.open(),P.write(y("document.F=Object")),P.close(),P.F},O,A=function(){try{O=document.domain&&new ActiveXObject("htmlfile")}catch{}A=O?k(O):$();for(var x=u.length;x--;)delete A[_][u[x]];return A()};c[w]=!0,i.exports=Object.create||function(N,P){var b;return N!==null?(v[_]=a(N),b=new v,v[_]=null,b[w]=N):b=A(),P===void 0?b:l(b,P)}},"7dd0":function(i,o,s){var a=s("23e7"),l=s("9ed3"),u=s("e163"),c=s("d2bb"),d=s("d44e"),h=s("9112"),p=s("6eeb"),g=s("b622"),m=s("c430"),_=s("3f8c"),E=s("ae93"),w=E.IteratorPrototype,v=E.BUGGY_SAFARI_ITERATORS,y=g("iterator"),k="keys",$="values",O="entries",A=function(){return this};i.exports=function(x,N,P,b,S,I,V){l(P,N,b);var M=function(ce){if(ce===S&&ae)return ae;if(!v&&ce in q)return q[ce];switch(ce){case k:return function(){return new P(this,ce)};case $:return function(){return new P(this,ce)};case O:return function(){return new P(this,ce)}}return function(){return new P(this)}},H=N+" Iterator",G=!1,q=x.prototype,oe=q[y]||q["@@iterator"]||S&&q[S],ae=!v&&oe||M(S),he=N=="Array"&&q.entries||oe,xe,Ee,de;if(he&&(xe=u(he.call(new x)),w!==Object.prototype&&xe.next&&(!m&&u(xe)!==w&&(c?c(xe,w):typeof xe[y]!="function"&&h(xe,y,A)),d(xe,H,!0,!0),m&&(_[H]=A))),S==$&&oe&&oe.name!==$&&(G=!0,ae=function(){return oe.call(this)}),(!m||V)&&q[y]!==ae&&h(q,y,ae),_[N]=ae,S)if(Ee={values:M($),keys:I?ae:M(k),entries:M(O)},V)for(de in Ee)(v||G||!(de in q))&&p(q,de,Ee[de]);else a({target:N,proto:!0,forced:v||G},Ee);return Ee}},"7f9a":function(i,o,s){var a=s("da84"),l=s("8925"),u=a.WeakMap;i.exports=typeof u=="function"&&/native code/.test(l(u))},"825a":function(i,o,s){var a=s("861d");i.exports=function(l){if(!a(l))throw TypeError(String(l)+" is not an object");return l}},"83ab":function(i,o,s){var a=s("d039");i.exports=!a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(i,o,s){var a=s("c04e"),l=s("9bf2"),u=s("5c6c");i.exports=function(c,d,h){var p=a(d);p in c?l.f(c,p,u(0,h)):c[p]=h}},"861d":function(i,o){i.exports=function(s){return typeof s=="object"?s!==null:typeof s=="function"}},8875:function(i,o,s){var a,l,u;(function(c,d){l=[],a=d,u=typeof a=="function"?a.apply(o,l):a,u!==void 0&&(i.exports=u)})(typeof self<"u"?self:this,function(){function c(){var d=Object.getOwnPropertyDescriptor(document,"currentScript");if(!d&&"currentScript"in document&&document.currentScript||d&&d.get!==c&&document.currentScript)return document.currentScript;try{throw new Error}catch(O){var h=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,p=/@([^@]*):(\d+):(\d+)\s*$/ig,g=h.exec(O.stack)||p.exec(O.stack),m=g&&g[1]||!1,_=g&&g[2]||!1,E=document.location.href.replace(document.location.hash,""),w,v,y,k=document.getElementsByTagName("script");m===E&&(w=document.documentElement.outerHTML,v=new RegExp("(?:[^\\n]+?\\n){0,"+(_-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),y=w.replace(v,"$1").trim());for(var $=0;$<k.length;$++)if(k[$].readyState==="interactive"||k[$].src===m||m===E&&k[$].innerHTML&&k[$].innerHTML.trim()===y)return k[$];return null}}return c})},8925:function(i,o,s){var a=s("c6cd"),l=Function.toString;typeof a.inspectSource!="function"&&(a.inspectSource=function(u){return l.call(u)}),i.exports=a.inspectSource},"8aa5":function(i,o,s){var a=s("6547").charAt;i.exports=function(l,u,c){return u+(c?a(l,u).length:1)}},"8bbf":function(i,o){i.exports=n},"90e3":function(i,o){var s=0,a=Math.random();i.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++s+a).toString(36)}},9112:function(i,o,s){var a=s("83ab"),l=s("9bf2"),u=s("5c6c");i.exports=a?function(c,d,h){return l.f(c,d,u(1,h))}:function(c,d,h){return c[d]=h,c}},9263:function(i,o,s){var a=s("ad6d"),l=s("9f7f"),u=RegExp.prototype.exec,c=String.prototype.replace,d=u,h=function(){var _=/a/,E=/b*/g;return u.call(_,"a"),u.call(E,"a"),_.lastIndex!==0||E.lastIndex!==0}(),p=l.UNSUPPORTED_Y||l.BROKEN_CARET,g=/()??/.exec("")[1]!==void 0,m=h||g||p;m&&(d=function(E){var w=this,v,y,k,$,O=p&&w.sticky,A=a.call(w),x=w.source,N=0,P=E;return O&&(A=A.replace("y",""),A.indexOf("g")===-1&&(A+="g"),P=String(E).slice(w.lastIndex),w.lastIndex>0&&(!w.multiline||w.multiline&&E[w.lastIndex-1]!==`
|
|
2554
|
-
`)&&(x="(?: "+x+")",P=" "+P,N++),y=new RegExp("^(?:"+x+")",A)),g&&(y=new RegExp("^"+x+"$(?!\\s)",A)),h&&(v=w.lastIndex),k=u.call(O?y:w,P),O?k?(k.input=k.input.slice(N),k[0]=k[0].slice(N),k.index=w.lastIndex,w.lastIndex+=k[0].length):w.lastIndex=0:h&&k&&(w.lastIndex=w.global?k.index+k[0].length:v),g&&k&&k.length>1&&c.call(k[0],y,function(){for($=1;$<arguments.length-2;$++)arguments[$]===void 0&&(k[$]=void 0)}),k}),i.exports=d},"94ca":function(i,o,s){var a=s("d039"),l=/#|\.prototype\./,u=function(g,m){var _=d[c(g)];return _==p?!0:_==h?!1:typeof m=="function"?a(m):!!m},c=u.normalize=function(g){return String(g).replace(l,".").toLowerCase()},d=u.data={},h=u.NATIVE="N",p=u.POLYFILL="P";i.exports=u},"99af":function(i,o,s){var a=s("23e7"),l=s("d039"),u=s("e8b5"),c=s("861d"),d=s("7b0b"),h=s("50c4"),p=s("8418"),g=s("65f0"),m=s("1dde"),_=s("b622"),E=s("2d00"),w=_("isConcatSpreadable"),v=9007199254740991,y="Maximum allowed index exceeded",k=E>=51||!l(function(){var x=[];return x[w]=!1,x.concat()[0]!==x}),$=m("concat"),O=function(x){if(!c(x))return!1;var N=x[w];return N!==void 0?!!N:u(x)},A=!k||!$;a({target:"Array",proto:!0,forced:A},{concat:function(N){var P=d(this),b=g(P,0),S=0,I,V,M,H,G;for(I=-1,M=arguments.length;I<M;I++)if(G=I===-1?P:arguments[I],O(G)){if(H=h(G.length),S+H>v)throw TypeError(y);for(V=0;V<H;V++,S++)V in G&&p(b,S,G[V])}else{if(S>=v)throw TypeError(y);p(b,S++,G)}return b.length=S,b}})},"9bdd":function(i,o,s){var a=s("825a");i.exports=function(l,u,c,d){try{return d?u(a(c)[0],c[1]):u(c)}catch(p){var h=l.return;throw h!==void 0&&a(h.call(l)),p}}},"9bf2":function(i,o,s){var a=s("83ab"),l=s("0cfb"),u=s("825a"),c=s("c04e"),d=Object.defineProperty;o.f=a?d:function(p,g,m){if(u(p),g=c(g,!0),u(m),l)try{return d(p,g,m)}catch{}if("get"in m||"set"in m)throw TypeError("Accessors not supported");return"value"in m&&(p[g]=m.value),p}},"9ed3":function(i,o,s){var a=s("ae93").IteratorPrototype,l=s("7c73"),u=s("5c6c"),c=s("d44e"),d=s("3f8c"),h=function(){return this};i.exports=function(p,g,m){var _=g+" Iterator";return p.prototype=l(a,{next:u(1,m)}),c(p,_,!1,!0),d[_]=h,p}},"9f7f":function(i,o,s){var a=s("d039");function l(u,c){return RegExp(u,c)}o.UNSUPPORTED_Y=a(function(){var u=l("a","y");return u.lastIndex=2,u.exec("abcd")!=null}),o.BROKEN_CARET=a(function(){var u=l("^r","gy");return u.lastIndex=2,u.exec("str")!=null})},a2bf:function(i,o,s){var a=s("e8b5"),l=s("50c4"),u=s("0366"),c=function(d,h,p,g,m,_,E,w){for(var v=m,y=0,k=E?u(E,w,3):!1,$;y<g;){if(y in p){if($=k?k(p[y],y,h):p[y],_>0&&a($))v=c(d,h,$,l($.length),v,_-1)-1;else{if(v>=9007199254740991)throw TypeError("Exceed the acceptable array length");d[v]=$}v++}y++}return v};i.exports=c},a352:function(i,o){i.exports=r},a434:function(i,o,s){var a=s("23e7"),l=s("23cb"),u=s("a691"),c=s("50c4"),d=s("7b0b"),h=s("65f0"),p=s("8418"),g=s("1dde"),m=s("ae40"),_=g("splice"),E=m("splice",{ACCESSORS:!0,0:0,1:2}),w=Math.max,v=Math.min,y=9007199254740991,k="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!_||!E},{splice:function(O,A){var x=d(this),N=c(x.length),P=l(O,N),b=arguments.length,S,I,V,M,H,G;if(b===0?S=I=0:b===1?(S=0,I=N-P):(S=b-2,I=v(w(u(A),0),N-P)),N+S-I>y)throw TypeError(k);for(V=h(x,I),M=0;M<I;M++)H=P+M,H in x&&p(V,M,x[H]);if(V.length=I,S<I){for(M=P;M<N-I;M++)H=M+I,G=M+S,H in x?x[G]=x[H]:delete x[G];for(M=N;M>N-I+S;M--)delete x[M-1]}else if(S>I)for(M=N-I;M>P;M--)H=M+I-1,G=M+S-1,H in x?x[G]=x[H]:delete x[G];for(M=0;M<S;M++)x[M+P]=arguments[M+2];return x.length=N-I+S,V}})},a4d3:function(i,o,s){var a=s("23e7"),l=s("da84"),u=s("d066"),c=s("c430"),d=s("83ab"),h=s("4930"),p=s("fdbf"),g=s("d039"),m=s("5135"),_=s("e8b5"),E=s("861d"),w=s("825a"),v=s("7b0b"),y=s("fc6a"),k=s("c04e"),$=s("5c6c"),O=s("7c73"),A=s("df75"),x=s("241c"),N=s("057f"),P=s("7418"),b=s("06cf"),S=s("9bf2"),I=s("d1e7"),V=s("9112"),M=s("6eeb"),H=s("5692"),G=s("f772"),q=s("d012"),oe=s("90e3"),ae=s("b622"),he=s("e538"),xe=s("746f"),Ee=s("d44e"),de=s("69f3"),ce=s("b727").forEach,fe=G("hidden"),Le="Symbol",Re="prototype",Be=ae("toPrimitive"),et=de.set,De=de.getterFor(Le),B=Object[Re],D=l.Symbol,L=u("JSON","stringify"),z=b.f,F=S.f,W=N.f,ee=I.f,Y=H("symbols"),te=H("op-symbols"),J=H("string-to-symbol-registry"),ye=H("symbol-to-string-registry"),pe=H("wks"),be=l.QObject,Me=!be||!be[Re]||!be[Re].findChild,rt=d&&g(function(){return O(F({},"a",{get:function(){return F(this,"a",{value:7}).a}})).a!=7})?function(Ze,Ve,Ke){var mt=z(B,Ve);mt&&delete B[Ve],F(Ze,Ve,Ke),mt&&Ze!==B&&F(B,Ve,mt)}:F,gt=function(Ze,Ve){var Ke=Y[Ze]=O(D[Re]);return et(Ke,{type:Le,tag:Ze,description:Ve}),d||(Ke.description=Ve),Ke},X=p?function(Ze){return typeof Ze=="symbol"}:function(Ze){return Object(Ze)instanceof D},Q=function(Ve,Ke,mt){Ve===B&&Q(te,Ke,mt),w(Ve);var it=k(Ke,!0);return w(mt),m(Y,it)?(mt.enumerable?(m(Ve,fe)&&Ve[fe][it]&&(Ve[fe][it]=!1),mt=O(mt,{enumerable:$(0,!1)})):(m(Ve,fe)||F(Ve,fe,$(1,{})),Ve[fe][it]=!0),rt(Ve,it,mt)):F(Ve,it,mt)},ie=function(Ve,Ke){w(Ve);var mt=y(Ke),it=A(mt).concat(Je(mt));return ce(it,function(Gn){(!d||Ce.call(mt,Gn))&&Q(Ve,Gn,mt[Gn])}),Ve},ge=function(Ve,Ke){return Ke===void 0?O(Ve):ie(O(Ve),Ke)},Ce=function(Ve){var Ke=k(Ve,!0),mt=ee.call(this,Ke);return this===B&&m(Y,Ke)&&!m(te,Ke)?!1:mt||!m(this,Ke)||!m(Y,Ke)||m(this,fe)&&this[fe][Ke]?mt:!0},We=function(Ve,Ke){var mt=y(Ve),it=k(Ke,!0);if(!(mt===B&&m(Y,it)&&!m(te,it))){var Gn=z(mt,it);return Gn&&m(Y,it)&&!(m(mt,fe)&&mt[fe][it])&&(Gn.enumerable=!0),Gn}},ot=function(Ve){var Ke=W(y(Ve)),mt=[];return ce(Ke,function(it){!m(Y,it)&&!m(q,it)&&mt.push(it)}),mt},Je=function(Ve){var Ke=Ve===B,mt=W(Ke?te:y(Ve)),it=[];return ce(mt,function(Gn){m(Y,Gn)&&(!Ke||m(B,Gn))&&it.push(Y[Gn])}),it};if(h||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor");var Ve=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),Ke=oe(Ve),mt=function(it){this===B&&mt.call(te,it),m(this,fe)&&m(this[fe],Ke)&&(this[fe][Ke]=!1),rt(this,Ke,$(1,it))};return d&&Me&&rt(B,Ke,{configurable:!0,set:mt}),gt(Ke,Ve)},M(D[Re],"toString",function(){return De(this).tag}),M(D,"withoutSetter",function(Ze){return gt(oe(Ze),Ze)}),I.f=Ce,S.f=Q,b.f=We,x.f=N.f=ot,P.f=Je,he.f=function(Ze){return gt(ae(Ze),Ze)},d&&(F(D[Re],"description",{configurable:!0,get:function(){return De(this).description}}),c||M(B,"propertyIsEnumerable",Ce,{unsafe:!0}))),a({global:!0,wrap:!0,forced:!h,sham:!h},{Symbol:D}),ce(A(pe),function(Ze){xe(Ze)}),a({target:Le,stat:!0,forced:!h},{for:function(Ze){var Ve=String(Ze);if(m(J,Ve))return J[Ve];var Ke=D(Ve);return J[Ve]=Ke,ye[Ke]=Ve,Ke},keyFor:function(Ve){if(!X(Ve))throw TypeError(Ve+" is not a symbol");if(m(ye,Ve))return ye[Ve]},useSetter:function(){Me=!0},useSimple:function(){Me=!1}}),a({target:"Object",stat:!0,forced:!h,sham:!d},{create:ge,defineProperty:Q,defineProperties:ie,getOwnPropertyDescriptor:We}),a({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:ot,getOwnPropertySymbols:Je}),a({target:"Object",stat:!0,forced:g(function(){P.f(1)})},{getOwnPropertySymbols:function(Ve){return P.f(v(Ve))}}),L){var St=!h||g(function(){var Ze=D();return L([Ze])!="[null]"||L({a:Ze})!="{}"||L(Object(Ze))!="{}"});a({target:"JSON",stat:!0,forced:St},{stringify:function(Ve,Ke,mt){for(var it=[Ve],Gn=1,Po;arguments.length>Gn;)it.push(arguments[Gn++]);if(Po=Ke,!(!E(Ke)&&Ve===void 0||X(Ve)))return _(Ke)||(Ke=function(wa,ru){if(typeof Po=="function"&&(ru=Po.call(this,wa,ru)),!X(ru))return ru}),it[1]=Ke,L.apply(null,it)}})}D[Re][Be]||V(D[Re],Be,D[Re].valueOf),Ee(D,Le),q[fe]=!0},a630:function(i,o,s){var a=s("23e7"),l=s("4df4"),u=s("1c7e"),c=!u(function(d){Array.from(d)});a({target:"Array",stat:!0,forced:c},{from:l})},a640:function(i,o,s){var a=s("d039");i.exports=function(l,u){var c=[][l];return!!c&&a(function(){c.call(null,u||function(){throw 1},1)})}},a691:function(i,o){var s=Math.ceil,a=Math.floor;i.exports=function(l){return isNaN(l=+l)?0:(l>0?a:s)(l)}},ab13:function(i,o,s){var a=s("b622"),l=a("match");i.exports=function(u){var c=/./;try{"/./"[u](c)}catch{try{return c[l]=!1,"/./"[u](c)}catch{}}return!1}},ac1f:function(i,o,s){var a=s("23e7"),l=s("9263");a({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})},ad6d:function(i,o,s){var a=s("825a");i.exports=function(){var l=a(this),u="";return l.global&&(u+="g"),l.ignoreCase&&(u+="i"),l.multiline&&(u+="m"),l.dotAll&&(u+="s"),l.unicode&&(u+="u"),l.sticky&&(u+="y"),u}},ae40:function(i,o,s){var a=s("83ab"),l=s("d039"),u=s("5135"),c=Object.defineProperty,d={},h=function(p){throw p};i.exports=function(p,g){if(u(d,p))return d[p];g||(g={});var m=[][p],_=u(g,"ACCESSORS")?g.ACCESSORS:!1,E=u(g,0)?g[0]:h,w=u(g,1)?g[1]:void 0;return d[p]=!!m&&!l(function(){if(_&&!a)return!0;var v={length:-1};_?c(v,1,{enumerable:!0,get:h}):v[1]=1,m.call(v,E,w)})}},ae93:function(i,o,s){var a=s("e163"),l=s("9112"),u=s("5135"),c=s("b622"),d=s("c430"),h=c("iterator"),p=!1,g=function(){return this},m,_,E;[].keys&&(E=[].keys(),"next"in E?(_=a(a(E)),_!==Object.prototype&&(m=_)):p=!0),m==null&&(m={}),!d&&!u(m,h)&&l(m,h,g),i.exports={IteratorPrototype:m,BUGGY_SAFARI_ITERATORS:p}},b041:function(i,o,s){var a=s("00ee"),l=s("f5df");i.exports=a?{}.toString:function(){return"[object "+l(this)+"]"}},b0c0:function(i,o,s){var a=s("83ab"),l=s("9bf2").f,u=Function.prototype,c=u.toString,d=/^\s*function ([^ (]*)/,h="name";a&&!(h in u)&&l(u,h,{configurable:!0,get:function(){try{return c.call(this).match(d)[1]}catch{return""}}})},b622:function(i,o,s){var a=s("da84"),l=s("5692"),u=s("5135"),c=s("90e3"),d=s("4930"),h=s("fdbf"),p=l("wks"),g=a.Symbol,m=h?g:g&&g.withoutSetter||c;i.exports=function(_){return u(p,_)||(d&&u(g,_)?p[_]=g[_]:p[_]=m("Symbol."+_)),p[_]}},b64b:function(i,o,s){var a=s("23e7"),l=s("7b0b"),u=s("df75"),c=s("d039"),d=c(function(){u(1)});a({target:"Object",stat:!0,forced:d},{keys:function(p){return u(l(p))}})},b727:function(i,o,s){var a=s("0366"),l=s("44ad"),u=s("7b0b"),c=s("50c4"),d=s("65f0"),h=[].push,p=function(g){var m=g==1,_=g==2,E=g==3,w=g==4,v=g==6,y=g==5||v;return function(k,$,O,A){for(var x=u(k),N=l(x),P=a($,O,3),b=c(N.length),S=0,I=A||d,V=m?I(k,b):_?I(k,0):void 0,M,H;b>S;S++)if((y||S in N)&&(M=N[S],H=P(M,S,x),g)){if(m)V[S]=H;else if(H)switch(g){case 3:return!0;case 5:return M;case 6:return S;case 2:h.call(V,M)}else if(w)return!1}return v?-1:E||w?w:V}};i.exports={forEach:p(0),map:p(1),filter:p(2),some:p(3),every:p(4),find:p(5),findIndex:p(6)}},c04e:function(i,o,s){var a=s("861d");i.exports=function(l,u){if(!a(l))return l;var c,d;if(u&&typeof(c=l.toString)=="function"&&!a(d=c.call(l))||typeof(c=l.valueOf)=="function"&&!a(d=c.call(l))||!u&&typeof(c=l.toString)=="function"&&!a(d=c.call(l)))return d;throw TypeError("Can't convert object to primitive value")}},c430:function(i,o){i.exports=!1},c6b6:function(i,o){var s={}.toString;i.exports=function(a){return s.call(a).slice(8,-1)}},c6cd:function(i,o,s){var a=s("da84"),l=s("ce4e"),u="__core-js_shared__",c=a[u]||l(u,{});i.exports=c},c740:function(i,o,s){var a=s("23e7"),l=s("b727").findIndex,u=s("44d2"),c=s("ae40"),d="findIndex",h=!0,p=c(d);d in[]&&Array(1)[d](function(){h=!1}),a({target:"Array",proto:!0,forced:h||!p},{findIndex:function(m){return l(this,m,arguments.length>1?arguments[1]:void 0)}}),u(d)},c8ba:function(i,o){var s;s=function(){return this}();try{s=s||new Function("return this")()}catch{typeof window=="object"&&(s=window)}i.exports=s},c975:function(i,o,s){var a=s("23e7"),l=s("4d64").indexOf,u=s("a640"),c=s("ae40"),d=[].indexOf,h=!!d&&1/[1].indexOf(1,-0)<0,p=u("indexOf"),g=c("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:h||!p||!g},{indexOf:function(_){return h?d.apply(this,arguments)||0:l(this,_,arguments.length>1?arguments[1]:void 0)}})},ca84:function(i,o,s){var a=s("5135"),l=s("fc6a"),u=s("4d64").indexOf,c=s("d012");i.exports=function(d,h){var p=l(d),g=0,m=[],_;for(_ in p)!a(c,_)&&a(p,_)&&m.push(_);for(;h.length>g;)a(p,_=h[g++])&&(~u(m,_)||m.push(_));return m}},caad:function(i,o,s){var a=s("23e7"),l=s("4d64").includes,u=s("44d2"),c=s("ae40"),d=c("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:!d},{includes:function(p){return l(this,p,arguments.length>1?arguments[1]:void 0)}}),u("includes")},cc12:function(i,o,s){var a=s("da84"),l=s("861d"),u=a.document,c=l(u)&&l(u.createElement);i.exports=function(d){return c?u.createElement(d):{}}},ce4e:function(i,o,s){var a=s("da84"),l=s("9112");i.exports=function(u,c){try{l(a,u,c)}catch{a[u]=c}return c}},d012:function(i,o){i.exports={}},d039:function(i,o){i.exports=function(s){try{return!!s()}catch{return!0}}},d066:function(i,o,s){var a=s("428f"),l=s("da84"),u=function(c){return typeof c=="function"?c:void 0};i.exports=function(c,d){return arguments.length<2?u(a[c])||u(l[c]):a[c]&&a[c][d]||l[c]&&l[c][d]}},d1e7:function(i,o,s){var a={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,u=l&&!a.call({1:2},1);o.f=u?function(d){var h=l(this,d);return!!h&&h.enumerable}:a},d28b:function(i,o,s){var a=s("746f");a("iterator")},d2bb:function(i,o,s){var a=s("825a"),l=s("3bbe");i.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var u=!1,c={},d;try{d=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,d.call(c,[]),u=c instanceof Array}catch{}return function(p,g){return a(p),l(g),u?d.call(p,g):p.__proto__=g,p}}():void 0)},d3b7:function(i,o,s){var a=s("00ee"),l=s("6eeb"),u=s("b041");a||l(Object.prototype,"toString",u,{unsafe:!0})},d44e:function(i,o,s){var a=s("9bf2").f,l=s("5135"),u=s("b622"),c=u("toStringTag");i.exports=function(d,h,p){d&&!l(d=p?d:d.prototype,c)&&a(d,c,{configurable:!0,value:h})}},d58f:function(i,o,s){var a=s("1c0b"),l=s("7b0b"),u=s("44ad"),c=s("50c4"),d=function(h){return function(p,g,m,_){a(g);var E=l(p),w=u(E),v=c(E.length),y=h?v-1:0,k=h?-1:1;if(m<2)for(;;){if(y in w){_=w[y],y+=k;break}if(y+=k,h?y<0:v<=y)throw TypeError("Reduce of empty array with no initial value")}for(;h?y>=0:v>y;y+=k)y in w&&(_=g(_,w[y],y,E));return _}};i.exports={left:d(!1),right:d(!0)}},d784:function(i,o,s){s("ac1f");var a=s("6eeb"),l=s("d039"),u=s("b622"),c=s("9263"),d=s("9112"),h=u("species"),p=!l(function(){var w=/./;return w.exec=function(){var v=[];return v.groups={a:"7"},v},"".replace(w,"$<a>")!=="7"}),g=function(){return"a".replace(/./,"$0")==="$0"}(),m=u("replace"),_=function(){return/./[m]?/./[m]("a","$0")==="":!1}(),E=!l(function(){var w=/(?:)/,v=w.exec;w.exec=function(){return v.apply(this,arguments)};var y="ab".split(w);return y.length!==2||y[0]!=="a"||y[1]!=="b"});i.exports=function(w,v,y,k){var $=u(w),O=!l(function(){var S={};return S[$]=function(){return 7},""[w](S)!=7}),A=O&&!l(function(){var S=!1,I=/a/;return w==="split"&&(I={},I.constructor={},I.constructor[h]=function(){return I},I.flags="",I[$]=/./[$]),I.exec=function(){return S=!0,null},I[$](""),!S});if(!O||!A||w==="replace"&&!(p&&g&&!_)||w==="split"&&!E){var x=/./[$],N=y($,""[w],function(S,I,V,M,H){return I.exec===c?O&&!H?{done:!0,value:x.call(I,V,M)}:{done:!0,value:S.call(V,I,M)}:{done:!1}},{REPLACE_KEEPS_$0:g,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:_}),P=N[0],b=N[1];a(String.prototype,w,P),a(RegExp.prototype,$,v==2?function(S,I){return b.call(S,this,I)}:function(S){return b.call(S,this)})}k&&d(RegExp.prototype[$],"sham",!0)}},d81d:function(i,o,s){var a=s("23e7"),l=s("b727").map,u=s("1dde"),c=s("ae40"),d=u("map"),h=c("map");a({target:"Array",proto:!0,forced:!d||!h},{map:function(g){return l(this,g,arguments.length>1?arguments[1]:void 0)}})},da84:function(i,o,s){(function(a){var l=function(u){return u&&u.Math==Math&&u};i.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof a=="object"&&a)||Function("return this")()}).call(this,s("c8ba"))},dbb4:function(i,o,s){var a=s("23e7"),l=s("83ab"),u=s("56ef"),c=s("fc6a"),d=s("06cf"),h=s("8418");a({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(g){for(var m=c(g),_=d.f,E=u(m),w={},v=0,y,k;E.length>v;)k=_(m,y=E[v++]),k!==void 0&&h(w,y,k);return w}})},dbf1:function(i,o,s){(function(a){s.d(o,"a",function(){return u});function l(){return typeof window<"u"?window.console:a.console}var u=l()}).call(this,s("c8ba"))},ddb0:function(i,o,s){var a=s("da84"),l=s("fdbc"),u=s("e260"),c=s("9112"),d=s("b622"),h=d("iterator"),p=d("toStringTag"),g=u.values;for(var m in l){var _=a[m],E=_&&_.prototype;if(E){if(E[h]!==g)try{c(E,h,g)}catch{E[h]=g}if(E[p]||c(E,p,m),l[m]){for(var w in u)if(E[w]!==u[w])try{c(E,w,u[w])}catch{E[w]=u[w]}}}}},df75:function(i,o,s){var a=s("ca84"),l=s("7839");i.exports=Object.keys||function(c){return a(c,l)}},e01a:function(i,o,s){var a=s("23e7"),l=s("83ab"),u=s("da84"),c=s("5135"),d=s("861d"),h=s("9bf2").f,p=s("e893"),g=u.Symbol;if(l&&typeof g=="function"&&(!("description"in g.prototype)||g().description!==void 0)){var m={},_=function(){var $=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),O=this instanceof _?new g($):$===void 0?g():g($);return $===""&&(m[O]=!0),O};p(_,g);var E=_.prototype=g.prototype;E.constructor=_;var w=E.toString,v=String(g("test"))=="Symbol(test)",y=/^Symbol\((.*)\)[^)]+$/;h(E,"description",{configurable:!0,get:function(){var $=d(this)?this.valueOf():this,O=w.call($);if(c(m,$))return"";var A=v?O.slice(7,-1):O.replace(y,"$1");return A===""?void 0:A}}),a({global:!0,forced:!0},{Symbol:_})}},e163:function(i,o,s){var a=s("5135"),l=s("7b0b"),u=s("f772"),c=s("e177"),d=u("IE_PROTO"),h=Object.prototype;i.exports=c?Object.getPrototypeOf:function(p){return p=l(p),a(p,d)?p[d]:typeof p.constructor=="function"&&p instanceof p.constructor?p.constructor.prototype:p instanceof Object?h:null}},e177:function(i,o,s){var a=s("d039");i.exports=!a(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})},e260:function(i,o,s){var a=s("fc6a"),l=s("44d2"),u=s("3f8c"),c=s("69f3"),d=s("7dd0"),h="Array Iterator",p=c.set,g=c.getterFor(h);i.exports=d(Array,"Array",function(m,_){p(this,{type:h,target:a(m),index:0,kind:_})},function(){var m=g(this),_=m.target,E=m.kind,w=m.index++;return!_||w>=_.length?(m.target=void 0,{value:void 0,done:!0}):E=="keys"?{value:w,done:!1}:E=="values"?{value:_[w],done:!1}:{value:[w,_[w]],done:!1}},"values"),u.Arguments=u.Array,l("keys"),l("values"),l("entries")},e439:function(i,o,s){var a=s("23e7"),l=s("d039"),u=s("fc6a"),c=s("06cf").f,d=s("83ab"),h=l(function(){c(1)}),p=!d||h;a({target:"Object",stat:!0,forced:p,sham:!d},{getOwnPropertyDescriptor:function(m,_){return c(u(m),_)}})},e538:function(i,o,s){var a=s("b622");o.f=a},e893:function(i,o,s){var a=s("5135"),l=s("56ef"),u=s("06cf"),c=s("9bf2");i.exports=function(d,h){for(var p=l(h),g=c.f,m=u.f,_=0;_<p.length;_++){var E=p[_];a(d,E)||g(d,E,m(h,E))}}},e8b5:function(i,o,s){var a=s("c6b6");i.exports=Array.isArray||function(u){return a(u)=="Array"}},e95a:function(i,o,s){var a=s("b622"),l=s("3f8c"),u=a("iterator"),c=Array.prototype;i.exports=function(d){return d!==void 0&&(l.Array===d||c[u]===d)}},f5df:function(i,o,s){var a=s("00ee"),l=s("c6b6"),u=s("b622"),c=u("toStringTag"),d=l(function(){return arguments}())=="Arguments",h=function(p,g){try{return p[g]}catch{}};i.exports=a?l:function(p){var g,m,_;return p===void 0?"Undefined":p===null?"Null":typeof(m=h(g=Object(p),c))=="string"?m:d?l(g):(_=l(g))=="Object"&&typeof g.callee=="function"?"Arguments":_}},f772:function(i,o,s){var a=s("5692"),l=s("90e3"),u=a("keys");i.exports=function(c){return u[c]||(u[c]=l(c))}},fb15:function(i,o,s){if(s.r(o),typeof window<"u"){var a=window.document.currentScript;{var l=s("8875");a=l(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:l})}var u=a&&a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);u&&(s.p=u[1])}s("99af"),s("4de4"),s("4160"),s("c975"),s("d81d"),s("a434"),s("159b"),s("a4d3"),s("e439"),s("dbb4"),s("b64b");function c(X,Q,ie){return Q in X?Object.defineProperty(X,Q,{value:ie,enumerable:!0,configurable:!0,writable:!0}):X[Q]=ie,X}function d(X,Q){var ie=Object.keys(X);if(Object.getOwnPropertySymbols){var ge=Object.getOwnPropertySymbols(X);Q&&(ge=ge.filter(function(Ce){return Object.getOwnPropertyDescriptor(X,Ce).enumerable})),ie.push.apply(ie,ge)}return ie}function h(X){for(var Q=1;Q<arguments.length;Q++){var ie=arguments[Q]!=null?arguments[Q]:{};Q%2?d(Object(ie),!0).forEach(function(ge){c(X,ge,ie[ge])}):Object.getOwnPropertyDescriptors?Object.defineProperties(X,Object.getOwnPropertyDescriptors(ie)):d(Object(ie)).forEach(function(ge){Object.defineProperty(X,ge,Object.getOwnPropertyDescriptor(ie,ge))})}return X}function p(X){if(Array.isArray(X))return X}s("e01a"),s("d28b"),s("e260"),s("d3b7"),s("3ca3"),s("ddb0");function g(X,Q){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(X)))){var ie=[],ge=!0,Ce=!1,We=void 0;try{for(var ot=X[Symbol.iterator](),Je;!(ge=(Je=ot.next()).done)&&(ie.push(Je.value),!(Q&&ie.length===Q));ge=!0);}catch(St){Ce=!0,We=St}finally{try{!ge&&ot.return!=null&&ot.return()}finally{if(Ce)throw We}}return ie}}s("a630"),s("fb6a"),s("b0c0"),s("25f0");function m(X,Q){(Q==null||Q>X.length)&&(Q=X.length);for(var ie=0,ge=new Array(Q);ie<Q;ie++)ge[ie]=X[ie];return ge}function _(X,Q){if(X){if(typeof X=="string")return m(X,Q);var ie=Object.prototype.toString.call(X).slice(8,-1);if(ie==="Object"&&X.constructor&&(ie=X.constructor.name),ie==="Map"||ie==="Set")return Array.from(X);if(ie==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ie))return m(X,Q)}}function E(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2555
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w(X,
|
|
2556
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $(X){return v(X)||y(X)||_(X)||k()}var O=s("a352"),A=s.n(O);function x(X){X.parentElement!==null&&X.parentElement.removeChild(X)}function N(X,Q,ie){var ge=ie===0?X.children[0]:X.children[ie-1].nextSibling;X.insertBefore(Q,ge)}var P=s("dbf1");s("13d5"),s("4fad"),s("ac1f"),s("5319");function b(X){var Q=Object.create(null);return function(ge){var Ce=Q[ge];return Ce||(Q[ge]=X(ge))}}var S=/-(\w)/g,I=b(function(X){return X.replace(S,function(Q,ie){return ie.toUpperCase()})});s("5db7"),s("73d9");var V=["Start","Add","Remove","Update","End"],M=["Choose","Unchoose","Sort","Filter","Clone"],H=["Move"],G=[H,V,M].flatMap(function(X){return X}).map(function(X){return"on".concat(X)}),q={manage:H,manageAndEmit:V,emit:M};function oe(X){return G.indexOf(X)!==-1}s("caad"),s("2ca0");var ae=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function he(X){return ae.includes(X)}function xe(X){return["transition-group","TransitionGroup"].includes(X)}function Ee(X){return["id","class","role","style"].includes(X)||X.startsWith("data-")||X.startsWith("aria-")||X.startsWith("on")}function de(X){return X.reduce(function(Q,ie){var ge=w(ie,2),Ce=ge[0],We=ge[1];return Q[Ce]=We,Q},{})}function ce(X){var Q=X.$attrs,ie=X.componentData,ge=ie===void 0?{}:ie,Ce=de(Object.entries(Q).filter(function(We){var ot=w(We,2),Je=ot[0];return ot[1],Ee(Je)}));return h(h({},Ce),ge)}function fe(X){var Q=X.$attrs,ie=X.callBackBuilder,ge=de(Le(Q));Object.entries(ie).forEach(function(We){var ot=w(We,2),Je=ot[0],St=ot[1];q[Je].forEach(function(Ze){ge["on".concat(Ze)]=St(Ze)})});var Ce="[data-draggable]".concat(ge.draggable||"");return h(h({},ge),{},{draggable:Ce})}function Le(X){return Object.entries(X).filter(function(Q){var ie=w(Q,2),ge=ie[0];return ie[1],!Ee(ge)}).map(function(Q){var ie=w(Q,2),ge=ie[0],Ce=ie[1];return[I(ge),Ce]}).filter(function(Q){var ie=w(Q,2),ge=ie[0];return ie[1],!oe(ge)})}s("c740");function Re(X,Q){if(!(X instanceof Q))throw new TypeError("Cannot call a class as a function")}function Be(X,Q){for(var ie=0;ie<Q.length;ie++){var ge=Q[ie];ge.enumerable=ge.enumerable||!1,ge.configurable=!0,"value"in ge&&(ge.writable=!0),Object.defineProperty(X,ge.key,ge)}}function et(X,Q,ie){return Q&&Be(X.prototype,Q),X}var De=function(Q){var ie=Q.el;return ie},B=function(Q,ie){return Q.__draggable_context=ie},D=function(Q){return Q.__draggable_context},L=function(){function X(Q){var ie=Q.nodes,ge=ie.header,Ce=ie.default,We=ie.footer,ot=Q.root,Je=Q.realList;Re(this,X),this.defaultNodes=Ce,this.children=[].concat($(ge),$(Ce),$(We)),this.externalComponent=ot.externalComponent,this.rootTransition=ot.transition,this.tag=ot.tag,this.realList=Je}return et(X,[{key:"render",value:function(ie,ge){var Ce=this.tag,We=this.children,ot=this._isRootComponent,Je=ot?{default:function(){return We}}:We;return ie(Ce,ge,Je)}},{key:"updated",value:function(){var ie=this.defaultNodes,ge=this.realList;ie.forEach(function(Ce,We){B(De(Ce),{element:ge[We],index:We})})}},{key:"getUnderlyingVm",value:function(ie){return D(ie)}},{key:"getVmIndexFromDomIndex",value:function(ie,ge){var Ce=this.defaultNodes,We=Ce.length,ot=ge.children,Je=ot.item(ie);if(Je===null)return We;var St=D(Je);if(St)return St.index;if(We===0)return 0;var Ze=De(Ce[0]),Ve=$(ot).findIndex(function(Ke){return Ke===Ze});return ie<Ve?0:We}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),X}(),z=s("8bbf");function F(X,Q){var ie=X[Q];return ie?ie():[]}function W(X){var Q=X.$slots,ie=X.realList,ge=X.getKey,Ce=ie||[],We=["header","footer"].map(function(Ke){return F(Q,Ke)}),ot=w(We,2),Je=ot[0],St=ot[1],Ze=Q.item;if(!Ze)throw new Error("draggable element must have an item slot");var Ve=Ce.flatMap(function(Ke,mt){return Ze({element:Ke,index:mt}).map(function(it){return it.key=ge(Ke),it.props=h(h({},it.props||{}),{},{"data-draggable":!0}),it})});if(Ve.length!==Ce.length)throw new Error("Item slot must have only one child");return{header:Je,footer:St,default:Ve}}function ee(X){var Q=xe(X),ie=!he(X)&&!Q;return{transition:Q,externalComponent:ie,tag:ie?Object(z.resolveComponent)(X):Q?z.TransitionGroup:X}}function Y(X){var Q=X.$slots,ie=X.tag,ge=X.realList,Ce=X.getKey,We=W({$slots:Q,realList:ge,getKey:Ce}),ot=ee(ie);return new L({nodes:We,root:ot,realList:ge})}function te(X,Q){var ie=this;Object(z.nextTick)(function(){return ie.$emit(X.toLowerCase(),Q)})}function J(X){var Q=this;return function(ie,ge){if(Q.realList!==null)return Q["onDrag".concat(X)](ie,ge)}}function ye(X){var Q=this,ie=J.call(this,X);return function(ge,Ce){ie.call(Q,ge,Ce),te.call(Q,X,ge)}}var pe=null,be={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(Q){return Q}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Me=["update:modelValue","change"].concat($([].concat($(q.manageAndEmit),$(q.emit)).map(function(X){return X.toLowerCase()}))),rt=Object(z.defineComponent)({name:"draggable",inheritAttrs:!1,props:be,emits:Me,data:function(){return{error:!1}},render:function(){try{this.error=!1;var Q=this.$slots,ie=this.$attrs,ge=this.tag,Ce=this.componentData,We=this.realList,ot=this.getKey,Je=Y({$slots:Q,tag:ge,realList:We,getKey:ot});this.componentStructure=Je;var St=ce({$attrs:ie,componentData:Ce});return Je.render(z.h,St)}catch(Ze){return this.error=!0,Object(z.h)("pre",{style:{color:"red"}},Ze.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&P.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var Q=this;if(!this.error){var ie=this.$attrs,ge=this.$el,Ce=this.componentStructure;Ce.updated();var We=fe({$attrs:ie,callBackBuilder:{manageAndEmit:function(St){return ye.call(Q,St)},emit:function(St){return te.bind(Q,St)},manage:function(St){return J.call(Q,St)}}}),ot=ge.nodeType===1?ge:ge.parentElement;this._sortable=new A.a(ot,We),this.targetDomElement=ot,ot.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var Q=this.list;return Q||this.modelValue},getKey:function(){var Q=this.itemKey;return typeof Q=="function"?Q:function(ie){return ie[Q]}}},watch:{$attrs:{handler:function(Q){var ie=this._sortable;ie&&Le(Q).forEach(function(ge){var Ce=w(ge,2),We=Ce[0],ot=Ce[1];ie.option(We,ot)})},deep:!0}},methods:{getUnderlyingVm:function(Q){return this.componentStructure.getUnderlyingVm(Q)||null},getUnderlyingPotencialDraggableComponent:function(Q){return Q.__draggable_component__},emitChanges:function(Q){var ie=this;Object(z.nextTick)(function(){return ie.$emit("change",Q)})},alterList:function(Q){if(this.list){Q(this.list);return}var ie=$(this.modelValue);Q(ie),this.$emit("update:modelValue",ie)},spliceList:function(){var Q=arguments,ie=function(Ce){return Ce.splice.apply(Ce,$(Q))};this.alterList(ie)},updatePosition:function(Q,ie){var ge=function(We){return We.splice(ie,0,We.splice(Q,1)[0])};this.alterList(ge)},getRelatedContextFromMoveEvent:function(Q){var ie=Q.to,ge=Q.related,Ce=this.getUnderlyingPotencialDraggableComponent(ie);if(!Ce)return{component:Ce};var We=Ce.realList,ot={list:We,component:Ce};if(ie!==ge&&We){var Je=Ce.getUnderlyingVm(ge)||{};return h(h({},Je),ot)}return ot},getVmIndexFromDomIndex:function(Q){return this.componentStructure.getVmIndexFromDomIndex(Q,this.targetDomElement)},onDragStart:function(Q){this.context=this.getUnderlyingVm(Q.item),Q.item._underlying_vm_=this.clone(this.context.element),pe=Q.item},onDragAdd:function(Q){var ie=Q.item._underlying_vm_;if(ie!==void 0){x(Q.item);var ge=this.getVmIndexFromDomIndex(Q.newIndex);this.spliceList(ge,0,ie);var Ce={element:ie,newIndex:ge};this.emitChanges({added:Ce})}},onDragRemove:function(Q){if(N(this.$el,Q.item,Q.oldIndex),Q.pullMode==="clone"){x(Q.clone);return}var ie=this.context,ge=ie.index,Ce=ie.element;this.spliceList(ge,1);var We={element:Ce,oldIndex:ge};this.emitChanges({removed:We})},onDragUpdate:function(Q){x(Q.item),N(Q.from,Q.item,Q.oldIndex);var ie=this.context.index,ge=this.getVmIndexFromDomIndex(Q.newIndex);this.updatePosition(ie,ge);var Ce={element:this.context.element,oldIndex:ie,newIndex:ge};this.emitChanges({moved:Ce})},computeFutureIndex:function(Q,ie){if(!Q.element)return 0;var ge=$(ie.to.children).filter(function(Je){return Je.style.display!=="none"}),Ce=ge.indexOf(ie.related),We=Q.component.getVmIndexFromDomIndex(Ce),ot=ge.indexOf(pe)!==-1;return ot||!ie.willInsertAfter?We:We+1},onDragMove:function(Q,ie){var ge=this.move,Ce=this.realList;if(!ge||!Ce)return!0;var We=this.getRelatedContextFromMoveEvent(Q),ot=this.computeFutureIndex(We,Q),Je=h(h({},this.context),{},{futureIndex:ot}),St=h(h({},Q),{},{relatedContext:We,draggedContext:Je});return ge(St,ie)},onDragEnd:function(){pe=null}}}),gt=rt;o.default=gt},fb6a:function(i,o,s){var a=s("23e7"),l=s("861d"),u=s("e8b5"),c=s("23cb"),d=s("50c4"),h=s("fc6a"),p=s("8418"),g=s("b622"),m=s("1dde"),_=s("ae40"),E=m("slice"),w=_("slice",{ACCESSORS:!0,0:0,1:2}),v=g("species"),y=[].slice,k=Math.max;a({target:"Array",proto:!0,forced:!E||!w},{slice:function(O,A){var x=h(this),N=d(x.length),P=c(O,N),b=c(A===void 0?N:A,N),S,I,V;if(u(x)&&(S=x.constructor,typeof S=="function"&&(S===Array||u(S.prototype))?S=void 0:l(S)&&(S=S[v],S===null&&(S=void 0)),S===Array||S===void 0))return y.call(x,P,b);for(I=new(S===void 0?Array:S)(k(b-P,0)),V=0;P<b;P++,V++)P in x&&p(I,V,x[P]);return I.length=V,I}})},fc6a:function(i,o,s){var a=s("44ad"),l=s("1d80");i.exports=function(u){return a(l(u))}},fdbc:function(i,o){i.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(i,o,s){var a=s("4930");i.exports=a&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})(qT);var Q9=qT.exports;const zh=p9(Q9),q9={key:1,class:"w-4"},eU={class:"truncate flex-1"},tU={key:0,class:"border-l border-white/10 ml-2"},nU=Te({...Te({name:"LayerItem"}),props:{data:{},path:{},depth:{}},setup(t){const e=t,n=e.depth??0,r=si(),i=we(!0),o=Z(()=>r.selection.value===e.path),s=Z(()=>{var g,m,_;return(g=e.data)!=null&&g.type?e.data.type:(m=e.data)!=null&&m.title?e.data.title:(_=e.data)!=null&&_.text?e.data.text.substring(0,20)+"...":"Element"}),a=Z(()=>{var m;return{title:"ph-thin ph-text-h",text:"ph-thin ph-text-align-left",image:"ph-thin ph-image",video:"ph-thin ph-video-camera",content:"ph-thin ph-square",bullets:"ph-thin ph-list-bullets",ordered:"ph-thin ph-list-numbers",button:"ph-thin ph-rectangle",flex:"ph-thin ph-columns",half:"ph-thin ph-layout",statement:"ph-thin ph-quotes"}[(m=e.data)==null?void 0:m.type]||"ph-thin ph-cube"}),l=Z(()=>{var g,m,_;return(g=e.data)!=null&&g.elements?"elements":(m=e.data)!=null&&m.items?"items":(_=e.data)!=null&&_.features?"features":null}),u=Z(()=>{if(!l.value)return!1;const g=e.data[l.value];return Array.isArray(g)&&g.length>0}),c=Z(()=>l.value?e.data[l.value]||[]:[]),d=()=>{i.value=!i.value},h=()=>{r.select(e.path)},p=g=>{if(g.moved){const{oldIndex:m,newIndex:_}=g.moved;r.store.moveNode(`${e.path}.${l.value}`,m,_),r.commit()}};return(g,m)=>{const _=Pr("LayerItem",!0);return j(),K("div",{class:Se(["layer-item",{"ml-3":re(n)>0}])},[C("div",{class:Se(["flex items-center gap-1 py-1 px-2 rounded cursor-pointer transition-colors text-xs",[o.value?"bg-blue-600 text-white":"text-white/70 hover:bg-white/10 hover:text-white"]]),onClick:kr(h,["stop"])},[u.value?(j(),K("button",{key:0,onClick:kr(d,["stop"]),class:"w-4 h-4 flex items-center justify-center text-white/50 hover:text-white"},[C("i",{class:Se([i.value?"ph-thin ph-caret-down":"ph-thin ph-caret-right","text-[8px]"])},null,2)])):(j(),K("div",q9)),C("i",{class:Se([a.value,"text-[10px] opacity-70"])},null,2),C("span",eU,Ie(s.value),1)],2),i.value&&u.value?(j(),K("div",tU,[ue(re(zh),{list:c.value,"item-key":"dragKey",group:{name:"layers"},onChange:p,class:"min-h-[8px]"},{item:ke(({element:E,index:w})=>[ue(_,{data:E,path:`${t.path}.${l.value}.${w}`,depth:re(n)+1},null,8,["data","path","depth"])]),_:1},8,["list"])])):Oe("",!0)],2)}}}),rU={class:"flex flex-col h-full text-xs"},iU={class:"px-3 py-2 font-bold text-white/50 uppercase tracking-wider border-b border-[#333] flex items-center justify-between"},oU={class:"text-white/30 font-mono"},sU={class:"flex-1 overflow-y-auto p-2"},aU={key:1,class:"text-white/30 italic text-center mt-4"},lU=Te({__name:"StudioLayers",setup(t){const e=si(),n=Z(()=>{var o;return((o=e.store.state.deck)==null?void 0:o.slides)||[]});Z(()=>n.value.length);const r=Z(()=>e.store.state.currentIndex),i=Z(()=>n.value[r.value]);return we("flex"),(o,s)=>(j(),K("div",rU,[C("div",iU,[s[0]||(s[0]=C("span",null,"Elements",-1)),C("span",oU,"Slide "+Ie(r.value+1),1)]),C("div",sU,[i.value?(j(),$e(nU,{key:0,data:i.value,path:`slides.${r.value}`},null,8,["data","path"])):(j(),K("div",aU," No slide selected "))])]))}}),Py={default:{colors:{primary:"#3b82f6",secondary:"#8b5cf6",accent:"#06b6d4",background:"#030303",surface:"#0a0a0a",text:"#ffffff",textSecondary:"#e5e7eb",muted:"#9ca3af",gradientFrom:"#3b82f6",gradientTo:"#8b5cf6"},typography:{fontFamily:{heading:"Inter, system-ui, sans-serif",body:"Inter, system-ui, sans-serif",mono:"ui-monospace, SFMono-Regular, monospace"}},effects:{useGradients:!0,useGlass:!0,useOrb:!0,useShadows:!0}},ocean:{colors:{primary:"#06b6d4",secondary:"#0ea5e9",accent:"#22d3ee",background:"#0f172a",surface:"#1e293b",text:"#f0f9ff",textSecondary:"#e0f2fe",muted:"#94a3b8",success:"#14b8a6",warning:"#fb923c",danger:"#f43f5e",info:"#38bdf8",border:"rgba(148, 163, 184, 0.2)",gradientFrom:"#06b6d4",gradientTo:"#0ea5e9"},typography:{fontFamily:{heading:"Outfit, Inter, sans-serif",body:"Inter, system-ui, sans-serif"}},effects:{orbOpacity:.3,glassOpacity:.05}},midnight:{colors:{primary:"#6366f1",secondary:"#8b5cf6",accent:"#a78bfa",background:"#000000",surface:"#0a0a0f",text:"#e0e7ff",textSecondary:"#c7d2fe",muted:"#6b7280",success:"#10b981",warning:"#fbbf24",danger:"#f87171",info:"#60a5fa",border:"rgba(99, 102, 241, 0.2)",gradientFrom:"#6366f1",gradientTo:"#a855f7"},effects:{orbOpacity:.5,shadowIntensity:"lg"}},forest:{colors:{primary:"#10b981",secondary:"#059669",accent:"#34d399",background:"#022c22",surface:"#064e3b",text:"#ecfdf5",textSecondary:"#d1fae5",muted:"#6ee7b7",success:"#22c55e",warning:"#fbbf24",danger:"#ef4444",info:"#38bdf8",border:"rgba(52, 211, 153, 0.2)",gradientFrom:"#10b981",gradientTo:"#059669"},effects:{orbOpacity:.35,orbBlur:"150px"}},cyber:{colors:{primary:"#f472b6",secondary:"#e879f9",accent:"#22d3ee",background:"#18181b",surface:"#27272a",text:"#ffffff",textSecondary:"#fafafa",muted:"#a1a1aa",success:"#4ade80",warning:"#facc15",danger:"#f87171",info:"#38bdf8",border:"rgba(244, 114, 182, 0.3)",gradientFrom:"#f472b6",gradientTo:"#e879f9"},typography:{fontFamily:{heading:"Orbitron, sans-serif",body:"Rajdhani, sans-serif"},letterSpacing:{widest:"0.15em"}},effects:{orbOpacity:.6,shadowIntensity:"xl",shadowColor:"rgba(244, 114, 182, 0.3)"},components:{cardRadius:"0.5rem",buttonRadius:"0.5rem"}},latte:{colors:{primary:"#d97706",secondary:"#ea580c",accent:"#f59e0b",background:"#fffbeb",surface:"#fef3c7",text:"#451a03",textSecondary:"#78350f",muted:"#92400e",success:"#16a34a",warning:"#ca8a04",danger:"#dc2626",info:"#2563eb",border:"rgba(146, 64, 14, 0.2)",shadow:"rgba(120, 53, 15, 0.1)",gradientFrom:"#d97706",gradientTo:"#ea580c"},typography:{fontFamily:{heading:"Playfair Display, Georgia, serif",body:"Lato, system-ui, sans-serif"}},effects:{useOrb:!1,glassOpacity:.5,glassBorderOpacity:.15,shadowColor:"rgba(120, 53, 15, 0.15)"},components:{cardBackground:"rgba(255, 255, 255, 0.7)"}},sunset:{colors:{primary:"#f97316",secondary:"#f43f5e",accent:"#fb7185",background:"#1c1917",surface:"#292524",text:"#fafaf9",textSecondary:"#e7e5e4",muted:"#a8a29e",gradientFrom:"#f97316",gradientTo:"#f43f5e"},effects:{orbOpacity:.45,gradientDirection:"to-br"}},monochrome:{colors:{primary:"#ffffff",secondary:"#a1a1aa",accent:"#d4d4d8",background:"#09090b",surface:"#18181b",text:"#fafafa",textSecondary:"#e4e4e7",muted:"#71717a",border:"rgba(255, 255, 255, 0.1)",gradientFrom:"#ffffff",gradientTo:"#a1a1aa"},effects:{useGradients:!1,orbOpacity:.2}}},wI=[{family:"Inter",category:"sans-serif",label:"Inter"},{family:"Roboto",category:"sans-serif",label:"Roboto"},{family:"Open Sans",category:"sans-serif",label:"Open Sans"},{family:"Montserrat",category:"sans-serif",label:"Montserrat"},{family:"Lato",category:"sans-serif",label:"Lato"},{family:"Poppins",category:"sans-serif",label:"Poppins"},{family:"Raleway",category:"sans-serif",label:"Raleway"},{family:"Nunito",category:"sans-serif",label:"Nunito"},{family:"Ubuntu",category:"sans-serif",label:"Ubuntu"},{family:"Rubik",category:"sans-serif",label:"Rubik"},{family:"Work Sans",category:"sans-serif",label:"Work Sans"},{family:"Quicksand",category:"sans-serif",label:"Quicksand"},{family:"Outfit",category:"sans-serif",label:"Outfit"},{family:"Plus Jakarta Sans",category:"sans-serif",label:"Plus Jakarta Sans"},{family:"Merriweather",category:"serif",label:"Merriweather"},{family:"Playfair Display",category:"serif",label:"Playfair Display"},{family:"Lora",category:"serif",label:"Lora"},{family:"PT Serif",category:"serif",label:"PT Serif"},{family:"Noto Serif",category:"serif",label:"Noto Serif"},{family:"Crimson Text",category:"serif",label:"Crimson Text"},{family:"Libre Baskerville",category:"serif",label:"Libre Baskerville"},{family:"Cinzel",category:"serif",label:"Cinzel"},{family:"Cormorant Garamond",category:"serif",label:"Cormorant Garamond"},{family:"DM Serif Display",category:"serif",label:"DM Serif Display"},{family:"Bebas Neue",category:"display",label:"Bebas Neue"},{family:"Lobster",category:"display",label:"Lobster"},{family:"Comfortaa",category:"display",label:"Comfortaa"},{family:"Abril Fatface",category:"display",label:"Abril Fatface"},{family:"Righteous",category:"display",label:"Righteous"},{family:"Alfa Slab One",category:"display",label:"Alfa Slab One"},{family:"Bangers",category:"display",label:"Bangers"},{family:"Orbitron",category:"display",label:"Orbitron"},{family:"Audiowide",category:"display",label:"Audiowide"},{family:"Press Start 2P",category:"display",label:"Press Start 2P"},{family:"Unbounded",category:"display",label:"Unbounded"},{family:"Syne",category:"display",label:"Syne"},{family:"Pacifico",category:"handwriting",label:"Pacifico"},{family:"Dancing Script",category:"handwriting",label:"Dancing Script"},{family:"Shadows Into Light",category:"handwriting",label:"Shadows Into Light"},{family:"Caveat",category:"handwriting",label:"Caveat"},{family:"Satisfy",category:"handwriting",label:"Satisfy"},{family:"Great Vibes",category:"handwriting",label:"Great Vibes"},{family:"Sacramento",category:"handwriting",label:"Sacramento"},{family:"Gloria Hallelujah",category:"handwriting",label:"Gloria Hallelujah"},{family:"Permanent Marker",category:"handwriting",label:"Permanent Marker"},{family:"Roboto Mono",category:"monospace",label:"Roboto Mono"},{family:"Inconsolata",category:"monospace",label:"Inconsolata"},{family:"Source Code Pro",category:"monospace",label:"Source Code Pro"},{family:"Space Mono",category:"monospace",label:"Space Mono"},{family:"JetBrains Mono",category:"monospace",label:"JetBrains Mono"},{family:"Fira Code",category:"monospace",label:"Fira Code"}],SI=new Set;function uU(t){const e=t.split(",")[0].replace(/['"]/g,"").trim();if(!wI.some(i=>i.family===e)||SI.has(e))return;SI.add(e);const n=document.createElement("link");n.rel="stylesheet";const r=e.replace(/ /g,"+");n.href=`https://fonts.googleapis.com/css2?family=${r}:wght@300;400;500;600;700;800&display=swap`,document.head.appendChild(n)}const Uh={colors:{primary:"#3b82f6",secondary:"#8b5cf6",accent:"#06b6d4",background:"#030303",surface:"#0a0a0a",text:"#ffffff",textSecondary:"#e5e7eb",muted:"#9ca3af",success:"#10b981",warning:"#f59e0b",danger:"#ef4444",info:"#3b82f6",border:"rgba(255, 255, 255, 0.1)",borderSubtle:"rgba(255, 255, 255, 0.05)",shadow:"#000000",overlay:"rgba(0, 0, 0, 0.5)",highlight:"rgba(59, 130, 246, 0.2)",buttonPrimary:"#3b82f6",buttonPrimaryText:"#ffffff",buttonSecondary:"rgba(255, 255, 255, 0.1)",buttonSecondaryText:"#ffffff",link:"#3b82f6",linkHover:"#60a5fa",gradientFrom:"#3b82f6",gradientVia:void 0,gradientTo:"#8b5cf6"},typography:{fontFamily:{heading:"Inter, system-ui, sans-serif",body:"Inter, system-ui, sans-serif",mono:"ui-monospace, SFMono-Regular, monospace"},fontSize:{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem"},fontWeight:{light:300,normal:400,medium:500,semibold:600,bold:800,extrabold:900},lineHeight:{tight:"1.1",snug:"1.25",normal:"1.5",relaxed:"1.625",loose:"2"},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"}},spacing:{none:"0",xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem","2xl":"3rem","3xl":"4rem","4xl":"6rem"},borderRadius:{none:"0",sm:"0.25rem",md:"0.5rem",lg:"0.75rem",xl:"1rem","2xl":"1.5rem","3xl":"2rem",full:"9999px"},effects:{useGradients:!0,gradientDirection:"to-b",gradientFrom:void 0,gradientVia:void 0,gradientTo:void 0,useShadows:!0,shadowIntensity:"md",shadowColor:"rgba(0, 0, 0, 0.4)",useGlass:!0,glassOpacity:.12,glassBlur:"20px",glassBorderOpacity:.2,useOrb:!0,orbOpacity:.2,orbBlur:"120px",orbSize:"80vw",animationsEnabled:!0,transitionDuration:"0.3s",transitionEasing:"cubic-bezier(0.16, 1, 0.3, 1)",hoverScale:1.05},components:{buttonRadius:"9999px",buttonPadding:"0.75rem 1.5rem",buttonFontWeight:700,buttonTextTransform:"none",cardRadius:"1.5rem",cardPadding:"2rem",cardBorderWidth:"1px",cardBackground:void 0,timelineNodeSize:"1rem",timelineLineWidth:"2px",timelineNodeColor:void 0,timelineLineColor:void 0,stepBadgeSize:"2.5rem",stepFontSize:"1rem",progressHeight:"0.5rem",progressRadius:"9999px",progressBackground:"rgba(255, 255, 255, 0.1)",progressFill:void 0,tagPadding:"0.25rem 1rem",tagRadius:"9999px",tagFontSize:"0.75rem",inputRadius:"0.5rem",inputPadding:"0.75rem 1rem",inputBorder:void 0,inputFocusBorder:void 0},fonts:{}},EI="lumina-theme-styles";function Bh(t,e){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const i=e[r],o=t[r];i!=null&&typeof i=="object"&&!Array.isArray(i)&&typeof o=="object"&&!Array.isArray(o)?n[r]=Bh(o,i):i!==void 0&&(n[r]=i)}return n}class Hl{static inject(e,n){var s;let r;if(typeof e=="string"){const a=Py[e]||Py.default;r=Bh(Uh,a)}else r=Bh(Uh,e);n&&(r=Bh(r,n)),r.fonts&&!((s=r.typography)!=null&&s.fontFamily)&&(r.typography=r.typography||{},r.typography.fontFamily={heading:r.fonts.heading,body:r.fonts.body,mono:r.fonts.mono});let i=document.getElementById(EI);i||(i=document.createElement("style"),i.id=EI,document.head.appendChild(i));const o=this.generateVars(r);i.innerHTML=`:root { ${o} }`}static getDefaultTheme(){return Uh}static generateVars(e){var i,o,s,a;const n=[];if(e.colors){for(const[l,u]of Object.entries(e.colors))if(u){const c=this.camelToKebab(l);n.push(`--lumina-color-${c}: ${u};`);const d=this.hexToRgb(u);d&&n.push(`--lumina-color-${c}-rgb: ${d.r}, ${d.g}, ${d.b};`)}}if(e.typography){const l=e.typography;if(l.fontFamily)for(const[u,c]of Object.entries(l.fontFamily))c&&(n.push(`--lumina-font-${u}: ${c};`),uU(c));if(l.fontSize)for(const[u,c]of Object.entries(l.fontSize))c&&n.push(`--lumina-text-${u}: ${c};`);if(l.fontWeight)for(const[u,c]of Object.entries(l.fontWeight))c!==void 0&&n.push(`--lumina-font-weight-${u}: ${c};`);if(l.lineHeight)for(const[u,c]of Object.entries(l.lineHeight))c&&n.push(`--lumina-leading-${u}: ${c};`);if(l.letterSpacing)for(const[u,c]of Object.entries(l.letterSpacing))c&&n.push(`--lumina-tracking-${u}: ${c};`)}if(e.spacing)for(const[l,u]of Object.entries(e.spacing))u&&n.push(`--lumina-space-${l}: ${u};`);if(e.borderRadius)for(const[l,u]of Object.entries(e.borderRadius))u&&n.push(`--lumina-radius-${l}: ${u};`);if(e.effects){const l=e.effects;n.push(`--lumina-use-gradients: ${l.useGradients?1:0};`),n.push(`--lumina-use-shadows: ${l.useShadows?1:0};`),n.push(`--lumina-use-glass: ${l.useGlass?1:0};`),n.push(`--lumina-use-orb: ${l.useOrb?1:0};`),n.push(`--lumina-use-animations: ${l.animationsEnabled?1:0};`),l.useGradients?(n.push("--lumina-gradient-text-fill: transparent;"),n.push("--lumina-gradient-bg-clip: text;")):(n.push("--lumina-gradient-text-fill: currentColor;"),n.push("--lumina-gradient-bg-clip: border-box;")),l.gradientDirection&&n.push(`--lumina-gradient-direction: ${this.gradientDirectionToCSS(l.gradientDirection)};`),l.gradientFrom&&n.push(`--lumina-gradient-from: ${l.gradientFrom};`),l.gradientVia&&n.push(`--lumina-gradient-via: ${l.gradientVia};`),l.gradientTo&&n.push(`--lumina-gradient-to: ${l.gradientTo};`),l.shadowIntensity&&n.push(`--lumina-shadow-intensity: ${l.shadowIntensity};`),l.shadowColor&&n.push(`--lumina-shadow-color: ${l.shadowColor};`),l.glassOpacity!==void 0&&n.push(`--lumina-glass-opacity: ${l.glassOpacity};`),l.glassBlur&&n.push(`--lumina-glass-blur: ${l.glassBlur};`),l.glassBorderOpacity!==void 0&&n.push(`--lumina-glass-border-opacity: ${l.glassBorderOpacity};`),l.orbOpacity!==void 0&&n.push(`--lumina-orb-opacity: ${l.orbOpacity};`),l.orbBlur&&n.push(`--lumina-orb-blur: ${l.orbBlur};`),l.orbSize&&n.push(`--lumina-orb-size: ${l.orbSize};`),l.transitionDuration&&n.push(`--lumina-transition-duration: ${l.transitionDuration};`),l.transitionEasing&&n.push(`--lumina-transition-easing: ${l.transitionEasing};`),l.hoverScale!==void 0&&n.push(`--lumina-hover-scale: ${l.hoverScale};`)}if(e.components){const l=e.components;l.buttonRadius&&n.push(`--lumina-button-radius: ${l.buttonRadius};`),l.buttonPadding&&n.push(`--lumina-button-padding: ${l.buttonPadding};`),l.buttonFontWeight!==void 0&&n.push(`--lumina-button-font-weight: ${l.buttonFontWeight};`),l.buttonTextTransform&&n.push(`--lumina-button-text-transform: ${l.buttonTextTransform};`),l.cardRadius&&n.push(`--lumina-card-radius: ${l.cardRadius};`),l.cardPadding&&n.push(`--lumina-card-padding: ${l.cardPadding};`),l.cardBorderWidth&&n.push(`--lumina-card-border-width: ${l.cardBorderWidth};`),l.cardBackground&&n.push(`--lumina-card-background: ${l.cardBackground};`),l.timelineNodeSize&&n.push(`--lumina-timeline-node-size: ${l.timelineNodeSize};`),l.timelineLineWidth&&n.push(`--lumina-timeline-line-width: ${l.timelineLineWidth};`),l.timelineNodeColor&&n.push(`--lumina-timeline-node-color: ${l.timelineNodeColor};`),l.timelineLineColor&&n.push(`--lumina-timeline-line-color: ${l.timelineLineColor};`),l.stepBadgeSize&&n.push(`--lumina-step-badge-size: ${l.stepBadgeSize};`),l.stepFontSize&&n.push(`--lumina-step-font-size: ${l.stepFontSize};`),l.progressHeight&&n.push(`--lumina-progress-height: ${l.progressHeight};`),l.progressRadius&&n.push(`--lumina-progress-radius: ${l.progressRadius};`),l.progressBackground&&n.push(`--lumina-progress-background: ${l.progressBackground};`),l.progressFill&&n.push(`--lumina-progress-fill: ${l.progressFill};`),l.tagPadding&&n.push(`--lumina-tag-padding: ${l.tagPadding};`),l.tagRadius&&n.push(`--lumina-tag-radius: ${l.tagRadius};`),l.tagFontSize&&n.push(`--lumina-tag-font-size: ${l.tagFontSize};`),l.inputRadius&&n.push(`--lumina-input-radius: ${l.inputRadius};`),l.inputPadding&&n.push(`--lumina-input-padding: ${l.inputPadding};`),l.inputBorder&&n.push(`--lumina-input-border: ${l.inputBorder};`),l.inputFocusBorder&&n.push(`--lumina-input-focus-border: ${l.inputFocusBorder};`)}(i=e.colors)!=null&&i.primary&&n.push(`--lumina-colors-primary: ${e.colors.primary};`),(o=e.colors)!=null&&o.background&&n.push(`--lumina-colors-background: ${e.colors.background};`),(s=e.colors)!=null&&s.text&&n.push(`--lumina-colors-text: ${e.colors.text};`),(a=e.colors)!=null&&a.muted&&n.push(`--lumina-colors-muted: ${e.colors.muted};`);const r=this.generateAutoContrastVars(e);return n.push(...r),n.join(" ")}static camelToKebab(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}static gradientDirectionToCSS(e){return{"to-t":"to top","to-b":"to bottom","to-l":"to left","to-r":"to right","to-tl":"to top left","to-tr":"to top right","to-bl":"to bottom left","to-br":"to bottom right"}[e]||"to bottom"}static hexToRgb(e){const n=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(n,(i,o,s,a)=>o+o+s+s+a+a);const r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return r?{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)}:null}static getLuminance(e){const n=this.hexToRgb(e);if(!n)return 0;const r=a=>{const l=a/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)},i=r(n.r),o=r(n.g),s=r(n.b);return .2126*i+.7152*o+.0722*s}static isLightColor(e){return this.getLuminance(e)>.4}static getContrastTextColor(e,n="#1a1a1a",r="#ffffff"){return this.isLightColor(e)?n:r}static getContrastMutedColor(e){return this.isLightColor(e)?"#4b5563":"#9ca3af"}static extractHexColor(e){if(!e)return null;if(e.startsWith("#"))return e.split(" ")[0];if(e.startsWith("rgb")){const r=e.match(/\d+/g);if(r&&r.length>=3){const i=parseInt(r[0]),o=parseInt(r[1]),s=parseInt(r[2]);return"#"+((1<<24)+(i<<16)+(o<<8)+s).toString(16).slice(1)}}const n=e.match(/#[a-fA-F0-9]{3,6}/);return n?n[0]:null}static generateAutoContrastVars(e){var d,h,p,g;const n=[],r=(d=e.colors)==null?void 0:d.background;if(!r)return n;const i=this.extractHexColor(r);if(!i)return n;const o=this.isLightColor(i),s=o?"#000000":"#ffffff",a=o?"#374151":"#9ca3af",l=o?"#374151":"#d1d5db";n.push(`--lumina-auto-text: ${s};`),n.push(`--lumina-auto-text-secondary: ${l};`),n.push(`--lumina-auto-muted: ${a};`),n.push(`--lumina-auto-is-light: ${o?"1":"0"};`);const u=(h=e.colors)==null?void 0:h.text,c=u?this.extractHexColor(u):null;if(c){const m=this.getLuminance(c),_=this.getLuminance(i);(Math.max(m,_)+.05)/(Math.min(m,_)+.05)<3?(n.push(`--lumina-color-text-safe: ${s};`),n.push(`--lumina-color-muted-safe: ${a};`),n.push(`--lumina-color-text: ${s};`),n.push(`--lumina-color-muted: ${a};`),n.push(`--lumina-color-text-secondary: ${l};`)):(n.push(`--lumina-color-text-safe: ${u};`),n.push(`--lumina-color-muted-safe: ${((p=e.colors)==null?void 0:p.muted)||a};`))}else n.push(`--lumina-color-text-safe: ${s};`),n.push(`--lumina-color-muted-safe: ${a};`);if(o)n.push("--lumina-color-text-rgb: 0, 0, 0;"),n.push("--lumina-glass-opacity: 0.06;"),n.push("--lumina-glass-border-opacity: 0.15;"),n.push("--lumina-color-surface: #ffffff;"),n.push("--lumina-surface-text: #1a1a1a;"),n.push("--lumina-surface-muted: #4b5563;"),n.push("--lumina-shadow-color: rgba(0, 0, 0, 0.15);"),n.push("--lumina-color-border: rgba(0, 0, 0, 0.12);"),n.push("--lumina-color-border-subtle: rgba(0, 0, 0, 0.08);"),n.push("--lumina-color-muted: #374151;"),n.push("--lumina-color-text-secondary: #1f2937;");else{const m=(g=e.colors)==null?void 0:g.surface;if(m){const _=this.extractHexColor(m);if(_){const E=this.getContrastTextColor(_),w=this.getContrastMutedColor(_);n.push(`--lumina-surface-text: ${E};`),n.push(`--lumina-surface-muted: ${w};`)}}}return n}}const cU={class:"border border-[#333] rounded bg-[#151515] overflow-hidden"},dU={class:"flex items-center gap-2"},fU={class:"text-[10px] uppercase tracking-widest font-bold text-white/50 group-hover:text-white/70 transition"},hU={class:"p-3 border-t border-[#333] space-y-3"},vi=Te({__name:"CollapsibleSection",props:{title:{},icon:{},defaultExpanded:{type:Boolean}},setup(t){const n=we(t.defaultExpanded??!1);return(r,i)=>(j(),K("div",cU,[C("button",{onClick:i[0]||(i[0]=o=>n.value=!n.value),class:"w-full flex items-center justify-between px-3 py-2 bg-[#1a1a1a] hover:bg-[#222] transition text-left group"},[C("div",dU,[t.icon?(j(),K("i",{key:0,class:Se([t.icon,"text-white/40 group-hover:text-white/70 transition w-4 text-center"])},null,2)):Oe("",!0),C("span",fU,Ie(t.title),1)]),C("i",{class:Se(["ph-thin ph-caret-down text-[10px] text-white/30 transition-transform duration-200",{"rotate-180":n.value}])},null,2)]),za(C("div",hU,[Mt(r.$slots,"default")],512),[[lf,n.value]])]))}}),pU={class:"space-y-1"},gU={class:"flex items-center justify-between"},mU={class:"text-white/50 uppercase tracking-wider text-[10px]"},vU={class:"text-white/70 text-[10px] font-mono"},yU=["min","max","step","value"],jh=Te({__name:"SliderField",props:{label:{},value:{},min:{},max:{},step:{},unit:{},multiplier:{}},emits:["update"],setup(t,{emit:e}){const n=t,r=e,i=Z(()=>typeof n.value=="number"?n.value:typeof n.value=="string"&&parseFloat(n.value)||0),o=Z(()=>`${i.value}${n.unit||""}`),s=a=>{const l=parseFloat(a);r("update",l)};return(a,l)=>(j(),K("div",pU,[C("div",gU,[C("label",mU,Ie(t.label),1),C("span",vU,Ie(o.value),1)]),C("input",{type:"range",min:t.min,max:t.max,step:t.step,value:i.value,onInput:l[0]||(l[0]=u=>s(u.target.value)),class:"w-full h-1 bg-[#333] rounded-lg appearance-none cursor-pointer accent-blue-500 hover:accent-blue-400"},null,40,yU)]))}}),bU={class:"flex flex-col h-full text-xs bg-[#111]"},_U={class:"flex-1 overflow-y-auto p-2 space-y-2 custom-scrollbar"},xU={class:"space-y-2"},wU={class:"space-y-1"},SU=["value"],EU={class:"space-y-1"},TU=["value"],IU={class:"grid grid-cols-2 gap-2"},CU=["onClick"],AU={class:"flex gap-1"},PU={class:"space-y-3"},kU={class:"space-y-3"},OU={class:"space-y-1"},NU=["value"],RU=["label"],$U=["value"],DU={class:"space-y-1"},MU=["value"],LU=["label"],VU=["value"],FU={class:"space-y-3"},zU={class:"grid grid-cols-2 gap-2"},UU={class:"text-white/50 uppercase tracking-wider text-[10px]"},BU=["value","onInput"],jU={class:"space-y-3"},HU={class:"grid grid-cols-2 gap-2"},GU={class:"text-white/50 uppercase tracking-wider text-[10px]"},WU=["value","onInput"],KU={class:"space-y-3"},ZU={key:0,class:"space-y-3 pt-2 pl-2 border-l-2 border-[#333]"},XU={class:"space-y-1"},YU=["value"],JU={class:"grid grid-cols-2 gap-2"},QU={class:"space-y-1"},qU=["value"],eB={class:"space-y-1"},tB=["value"],nB={class:"pt-2 border-t border-[#333]"},rB={key:0,class:"mt-2 pl-2 border-l-2 border-[#333] space-y-2"},iB={class:"pt-2 border-t border-[#333]"},oB={key:0,class:"mt-2 pl-2 border-l-2 border-[#333] space-y-2"},sB={class:"pt-2 border-t border-[#333]"},aB={class:"space-y-3"},lB={class:"space-y-1"},uB=["value"],cB={class:"space-y-1"},dB=["value"],fB={class:"space-y-2 pt-4 border-t border-[#333] mt-2"},hB={class:"flex justify-between text-white/50"},pB={class:"font-mono text-white"},gB=Jr(Te({__name:"StudioSettings",setup(t){const e=si(),n=Z(()=>{var P;return(P=e.store.state.deck)==null?void 0:P.meta}),r=Z(()=>{var P,b;return((b=(P=e.store.state.deck)==null?void 0:P.slides)==null?void 0:b.length)||0}),i=Z(()=>{var P,b,S;return((b=(P=e.store.state.deck)==null?void 0:P.meta)==null?void 0:b.theme)||((S=e.store.state.deck)==null?void 0:S.theme)||"default"}),o=[{id:"default",name:"Default",primary:"#3b82f6",secondary:"#8b5cf6",bg:"#030303"},{id:"dark",name:"Dark",primary:"#6366f1",secondary:"#a855f7",bg:"#0a0a0a"},{id:"midnight",name:"Midnight",primary:"#3b82f6",secondary:"#06b6d4",bg:"#0f172a"},{id:"ocean",name:"Ocean",primary:"#0ea5e9",secondary:"#14b8a6",bg:"#0c4a6e"},{id:"forest",name:"Forest",primary:"#22c55e",secondary:"#10b981",bg:"#052e16"},{id:"sunset",name:"Sunset",primary:"#f97316",secondary:"#ec4899",bg:"#1c1917"},{id:"cyber",name:"Cyber",primary:"#22d3ee",secondary:"#a855f7",bg:"#020617"},{id:"minimal",name:"Minimal",primary:"#18181b",secondary:"#3f3f46",bg:"#fafafa"}],s=Z(()=>{var P,b,S,I,V,M,H,G,q,oe,ae,he,xe,Ee,de,ce,fe,Le,Re,Be,et,De,B,D,L,z,F,W,ee,Y;return{primary:((S=(b=(P=e.store.state.deck)==null?void 0:P.meta)==null?void 0:b.colors)==null?void 0:S.primary)||"#3b82f6",secondary:((M=(V=(I=e.store.state.deck)==null?void 0:I.meta)==null?void 0:V.colors)==null?void 0:M.secondary)||"#8b5cf6",accent:((q=(G=(H=e.store.state.deck)==null?void 0:H.meta)==null?void 0:G.colors)==null?void 0:q.accent)||"#06b6d4",background:((he=(ae=(oe=e.store.state.deck)==null?void 0:oe.meta)==null?void 0:ae.colors)==null?void 0:he.background)||"#030303",surface:((de=(Ee=(xe=e.store.state.deck)==null?void 0:xe.meta)==null?void 0:Ee.colors)==null?void 0:de.surface)||"#0a0a0a",text:((Le=(fe=(ce=e.store.state.deck)==null?void 0:ce.meta)==null?void 0:fe.colors)==null?void 0:Le.text)||"#ffffff",muted:((et=(Be=(Re=e.store.state.deck)==null?void 0:Re.meta)==null?void 0:Be.colors)==null?void 0:et.muted)||"#9ca3af",success:((D=(B=(De=e.store.state.deck)==null?void 0:De.meta)==null?void 0:B.colors)==null?void 0:D.success)||"#10b981",warning:((F=(z=(L=e.store.state.deck)==null?void 0:L.meta)==null?void 0:z.colors)==null?void 0:F.warning)||"#f59e0b",danger:((Y=(ee=(W=e.store.state.deck)==null?void 0:W.meta)==null?void 0:ee.colors)==null?void 0:Y.danger)||"#ef4444"}}),a=Z(()=>{var P,b,S,I,V,M,H,G;return{heading:((I=(S=(b=(P=e.store.state.deck)==null?void 0:P.meta)==null?void 0:b.typography)==null?void 0:S.fontFamily)==null?void 0:I.heading)||"Inter, system-ui, sans-serif",body:((G=(H=(M=(V=e.store.state.deck)==null?void 0:V.meta)==null?void 0:M.typography)==null?void 0:H.fontFamily)==null?void 0:G.body)||"Inter, system-ui, sans-serif"}}),l=Z(()=>{var P,b,S,I,V,M;return{buttonRadius:((S=(b=(P=e.store.state.deck)==null?void 0:P.meta)==null?void 0:b.components)==null?void 0:S.buttonRadius)||"9999px",cardRadius:((M=(V=(I=e.store.state.deck)==null?void 0:I.meta)==null?void 0:V.components)==null?void 0:M.cardRadius)||"1.5rem"}}),u=["xs","sm","md","lg","xl","2xl","3xl","4xl"],c=Z(()=>{var S,I;const P={xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem","2xl":"3rem","3xl":"4rem","4xl":"6rem"},b=((I=(S=e.store.state.deck)==null?void 0:S.meta)==null?void 0:I.spacing)||{};return Object.fromEntries(u.map(V=>[V,b[V]||P[V]]))}),d=["sm","md","lg","xl","2xl","3xl","full"],h=Z(()=>{var S,I;const P={sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},b=((I=(S=e.store.state.deck)==null?void 0:S.meta)==null?void 0:I.borderRadius)||{};return Object.fromEntries(d.map(V=>[V,b[V]||P[V]]))}),p=Z(()=>{var P,b,S,I,V,M,H,G,q,oe,ae,he,xe,Ee,de,ce,fe,Le,Re,Be,et,De,B,D,L,z,F,W,ee,Y,te,J,ye,pe,be,Me;return{animations:((S=(b=(P=e.store.state.deck)==null?void 0:P.meta)==null?void 0:b.effects)==null?void 0:S.animationsEnabled)??!0,animationType:((M=(V=(I=e.store.state.deck)==null?void 0:I.meta)==null?void 0:V.effects)==null?void 0:M.animationType)||"cascade",animationDuration:((q=(G=(H=e.store.state.deck)==null?void 0:H.meta)==null?void 0:G.effects)==null?void 0:q.animationDuration)??.8,animationStagger:((he=(ae=(oe=e.store.state.deck)==null?void 0:oe.meta)==null?void 0:ae.effects)==null?void 0:he.animationStagger)??.1,animationEase:((de=(Ee=(xe=e.store.state.deck)==null?void 0:xe.meta)==null?void 0:Ee.effects)==null?void 0:de.animationEase)||"power3.out",shadows:((Le=(fe=(ce=e.store.state.deck)==null?void 0:ce.meta)==null?void 0:fe.effects)==null?void 0:Le.useShadows)??!0,glass:((et=(Be=(Re=e.store.state.deck)==null?void 0:Re.meta)==null?void 0:Be.effects)==null?void 0:et.useGlass)??!0,glassOpacity:((D=(B=(De=e.store.state.deck)==null?void 0:De.meta)==null?void 0:B.effects)==null?void 0:D.glassOpacity)??.12,glassBlur:((F=(z=(L=e.store.state.deck)==null?void 0:L.meta)==null?void 0:z.effects)==null?void 0:F.glassBlur)??"20px",orb:((Y=(ee=(W=e.store.state.deck)==null?void 0:W.meta)==null?void 0:ee.effects)==null?void 0:Y.useOrb)??!0,orbOpacity:((ye=(J=(te=e.store.state.deck)==null?void 0:te.meta)==null?void 0:J.effects)==null?void 0:ye.orbOpacity)??.2,orbBlur:((Me=(be=(pe=e.store.state.deck)==null?void 0:pe.meta)==null?void 0:be.effects)==null?void 0:Me.orbBlur)??"120px"}}),g=Z(()=>{const P={"sans-serif":{label:"Sans Serif",options:[]},serif:{label:"Serif",options:[]},display:{label:"Display",options:[]},handwriting:{label:"Handwriting",options:[]},monospace:{label:"Monospace",options:[]}};return wI.forEach(S=>{P[S.category]&&P[S.category].options.push({value:`${S.family}, ${S.category}`,label:S.label})}),{...P,system:{label:"System",options:[{value:"Inter, system-ui, sans-serif",label:"Inter (Default)"},{value:"system-ui, sans-serif",label:"System UI"}]}}});let m=null;const _=()=>{m&&clearTimeout(m),m=setTimeout(()=>{var S;e.commit();const P=((S=e.store.state.deck)==null?void 0:S.meta)||{},b={colors:P.colors,typography:P.typography,spacing:P.spacing,borderRadius:P.borderRadius,effects:P.effects,components:P.components};Hl.inject(i.value,b)},150)},E=(P,b)=>{e.store.updateNode(`meta.${P}`,b),_()},w=P=>{e.store.updateNode("meta.theme",P),e.store.updateNode("meta.colors",void 0),e.store.updateNode("meta.typography",void 0),e.store.updateNode("meta.spacing",void 0),e.store.updateNode("meta.borderRadius",void 0),e.store.updateNode("meta.components",void 0),e.store.updateNode("meta.effects",void 0),Hl.inject(P),e.commit()},v=(P,b)=>{e.store.updateNode(`meta.colors.${P}`,b),_()},y=(P,b)=>{e.store.updateNode(`meta.spacing.${P}`,b),_()},k=(P,b)=>{e.store.updateNode(`meta.borderRadius.${P}`,b),_()},$=(P,b)=>{e.store.updateNode(`meta.typography.fontFamily.${P}`,b),_()},O=(P,b)=>{e.store.updateNode(`meta.effects.${P}`,b),_()},A=(P,b)=>{e.store.updateNode(`meta.components.${P}`,b),_()},x=Te({props:["label","field","value"],emits:["update"],setup(P,{emit:b}){return()=>qe("div",{class:"flex items-center gap-2"},[qe("input",{type:"color",value:P.value,onInput:S=>b("update",P.field,S.target.value),class:"w-6 h-6 rounded border border-[#333] cursor-pointer bg-transparent"}),qe("span",{class:"flex-1 text-white/70"},P.label),qe("input",{type:"text",value:P.value,onInput:S=>b("update",P.field,S.target.value),class:"w-16 bg-[#1a1a1a] border border-[#333] rounded px-1.5 py-0.5 text-[10px] font-mono text-white/70"})])}}),N=Te({props:["label","value"],emits:["update"],setup(P,{emit:b}){return()=>qe("div",{class:"flex items-center justify-between"},[qe("span",{class:"text-white/70"},P.label),qe("button",{onClick:()=>b("update",!P.value),class:`w-8 h-4 rounded-full transition-colors relative ${P.value?"bg-blue-600":"bg-[#333]"}`},[qe("span",{class:`absolute top-0.5 w-3 h-3 rounded-full bg-white transition-transform ${P.value?"left-4.5 translate-x-1":"left-0.5"}`})])])}});return(P,b)=>(j(),K("div",bU,[b[37]||(b[37]=C("div",{class:"px-3 py-2 font-bold text-white/50 uppercase tracking-wider border-b border-[#333]"}," Deck Settings ",-1)),C("div",_U,[ue(vi,{title:"Metadata",icon:"ph-thin ph-info",defaultExpanded:!0},{default:ke(()=>{var S,I;return[C("div",xU,[C("div",wU,[b[17]||(b[17]=C("label",{class:"text-white/50 uppercase tracking-wider text-[10px]"},"Title",-1)),C("input",{type:"text",value:((S=n.value)==null?void 0:S.title)||"",onInput:b[0]||(b[0]=V=>E("title",V.target.value)),placeholder:"Presentation Title",class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none"},null,40,SU)]),C("div",EU,[b[18]||(b[18]=C("label",{class:"text-white/50 uppercase tracking-wider text-[10px]"},"Author",-1)),C("input",{type:"text",value:((I=n.value)==null?void 0:I.author)||"",onInput:b[1]||(b[1]=V=>E("author",V.target.value)),placeholder:"Author Name",class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none"},null,40,TU)])])]}),_:1}),ue(vi,{title:"Theme Preset",icon:"ph-thin ph-palette"},{default:ke(()=>[C("div",IU,[(j(),K(Ue,null,It(o,S=>C("button",{key:S.id,onClick:I=>w(S.id),class:Se(["p-2 rounded border text-[10px] font-bold transition flex flex-col items-center gap-1",i.value===S.id?"border-blue-500 bg-blue-500/20 text-blue-400":"border-[#333] bg-[#1a1a1a] text-white/70 hover:border-white/30"])},[C("div",AU,[C("span",{class:"w-3 h-3 rounded-full",style:Xe({backgroundColor:S.primary})},null,4),C("span",{class:"w-3 h-3 rounded-full",style:Xe({backgroundColor:S.secondary})},null,4),C("span",{class:"w-3 h-3 rounded-full",style:Xe({backgroundColor:S.bg})},null,4)]),bt(" "+Ie(S.name),1)],10,CU)),64))])]),_:1}),ue(vi,{title:"Colors",icon:"ph-thin ph-drop"},{default:ke(()=>[C("div",PU,[b[19]||(b[19]=C("div",{class:"text-white/30 text-[10px] uppercase tracking-widest"},"Brand",-1)),ue(re(x),{label:"Primary",field:"primary",value:s.value.primary,onUpdate:v},null,8,["value"]),ue(re(x),{label:"Secondary",field:"secondary",value:s.value.secondary,onUpdate:v},null,8,["value"]),ue(re(x),{label:"Accent",field:"accent",value:s.value.accent,onUpdate:v},null,8,["value"]),b[20]||(b[20]=C("div",{class:"text-white/30 text-[10px] uppercase tracking-widest pt-2 border-t border-[#333]"},"Base ",-1)),ue(re(x),{label:"Background",field:"background",value:s.value.background,onUpdate:v},null,8,["value"]),ue(re(x),{label:"Surface",field:"surface",value:s.value.surface,onUpdate:v},null,8,["value"]),b[21]||(b[21]=C("div",{class:"text-white/30 text-[10px] uppercase tracking-widest pt-2 border-t border-[#333]"},"Text ",-1)),ue(re(x),{label:"Text Main",field:"text",value:s.value.text,onUpdate:v},null,8,["value"]),ue(re(x),{label:"Text Muted",field:"muted",value:s.value.muted,onUpdate:v},null,8,["value"]),b[22]||(b[22]=C("div",{class:"text-white/30 text-[10px] uppercase tracking-widest pt-2 border-t border-[#333]"}," Semantic",-1)),ue(re(x),{label:"Success",field:"success",value:s.value.success,onUpdate:v},null,8,["value"]),ue(re(x),{label:"Warning",field:"warning",value:s.value.warning,onUpdate:v},null,8,["value"]),ue(re(x),{label:"Danger",field:"danger",value:s.value.danger,onUpdate:v},null,8,["value"])])]),_:1}),ue(vi,{title:"Typography",icon:"ph-thin ph-text-t"},{default:ke(()=>[C("div",kU,[C("div",OU,[b[23]||(b[23]=C("label",{class:"text-white/50 uppercase tracking-wider text-[10px]"},"Heading Font",-1)),C("select",{value:a.value.heading,onChange:b[2]||(b[2]=S=>$("heading",S.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none"},[(j(!0),K(Ue,null,It(g.value,(S,I)=>(j(),K("optgroup",{key:I,label:S.label},[(j(!0),K(Ue,null,It(S.options,V=>(j(),K("option",{key:V.value,value:V.value},Ie(V.label),9,$U))),128))],8,RU))),128))],40,NU)]),C("div",DU,[b[24]||(b[24]=C("label",{class:"text-white/50 uppercase tracking-wider text-[10px]"},"Body Font",-1)),C("select",{value:a.value.body,onChange:b[3]||(b[3]=S=>$("body",S.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none"},[(j(!0),K(Ue,null,It(g.value,(S,I)=>(j(),K("optgroup",{key:I,label:S.label},[(j(!0),K(Ue,null,It(S.options,V=>(j(),K("option",{key:V.value,value:V.value},Ie(V.label),9,VU))),128))],8,LU))),128))],40,MU)])])]),_:1}),ue(vi,{title:"Spacing Scale",icon:"ph-thin ph-ruler"},{default:ke(()=>[C("div",FU,[C("div",zU,[(j(),K(Ue,null,It(u,S=>C("div",{key:S,class:"space-y-1"},[C("label",UU,Ie(S),1),C("input",{type:"text",value:c.value[S],onInput:I=>y(S,I.target.value),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none font-mono text-xs"},null,40,BU)])),64))])])]),_:1}),ue(vi,{title:"Border Radius",icon:"ph-thin ph-corners-out"},{default:ke(()=>[C("div",jU,[C("div",HU,[(j(),K(Ue,null,It(d,S=>C("div",{key:S,class:"space-y-1"},[C("label",GU,Ie(S),1),C("input",{type:"text",value:h.value[S],onInput:I=>k(S,I.target.value),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none font-mono text-xs"},null,40,WU)])),64))])])]),_:1}),ue(vi,{title:"Effects",icon:"ph-thin ph-magic-wand"},{default:ke(()=>[C("div",KU,[ue(re(N),{label:"Animations Enabled",value:p.value.animations,onUpdate:b[4]||(b[4]=S=>O("animationsEnabled",S))},null,8,["value"]),p.value.animations?(j(),K("div",ZU,[C("div",XU,[b[26]||(b[26]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Default Animation",-1)),C("select",{value:p.value.animationType,onChange:b[5]||(b[5]=S=>O("animationType",S.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white font-mono"},[...b[25]||(b[25]=[C("option",{value:"cascade"},"Cascade",-1),C("option",{value:"fade"},"Fade",-1),C("option",{value:"slide"},"Slide",-1),C("option",{value:"zoom"},"Zoom",-1),C("option",{value:"spring"},"Spring",-1),C("option",{value:"blur"},"Blur",-1),C("option",{value:"skew"},"Skew",-1),C("option",{value:"flip"},"Flip (3D)",-1),C("option",{value:"zoom-rotate"},"Zoom Rotate",-1),C("option",{value:"elastic-up"},"Elastic Up",-1)])],40,YU)]),C("div",JU,[C("div",QU,[b[27]||(b[27]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Duration",-1)),C("input",{type:"number",step:"0.1",value:p.value.animationDuration,onInput:b[6]||(b[6]=S=>O("animationDuration",parseFloat(S.target.value))),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white font-mono"},null,40,qU)]),C("div",eB,[b[28]||(b[28]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Stagger",-1)),C("input",{type:"number",step:"0.05",value:p.value.animationStagger,onInput:b[7]||(b[7]=S=>O("animationStagger",parseFloat(S.target.value))),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white font-mono"},null,40,tB)])])])):Oe("",!0),C("div",nB,[ue(re(N),{label:"Ambient Orb",value:p.value.orb,onUpdate:b[8]||(b[8]=S=>O("useOrb",S))},null,8,["value"]),p.value.orb?(j(),K("div",rB,[ue(jh,{label:"Opacity",value:p.value.orbOpacity,min:0,max:1,step:.05,onUpdate:b[9]||(b[9]=S=>O("orbOpacity",S))},null,8,["value"]),ue(jh,{label:"Blur (px)",value:parseInt(p.value.orbBlur),min:0,max:200,step:10,unit:"px",onUpdate:b[10]||(b[10]=S=>O("orbBlur",S+"px"))},null,8,["value"])])):Oe("",!0)]),C("div",iB,[ue(re(N),{label:"Glass Effect",value:p.value.glass,onUpdate:b[11]||(b[11]=S=>O("useGlass",S))},null,8,["value"]),p.value.glass?(j(),K("div",oB,[ue(jh,{label:"Opacity",value:p.value.glassOpacity,min:0,max:1,step:.05,onUpdate:b[12]||(b[12]=S=>O("glassOpacity",S))},null,8,["value"]),ue(jh,{label:"Blur (px)",value:parseInt(p.value.glassBlur),min:0,max:50,step:2,unit:"px",onUpdate:b[13]||(b[13]=S=>O("glassBlur",S+"px"))},null,8,["value"])])):Oe("",!0)]),C("div",sB,[ue(re(N),{label:"Shadows",value:p.value.shadows,onUpdate:b[14]||(b[14]=S=>O("useShadows",S))},null,8,["value"])])])]),_:1}),ue(vi,{title:"Components",icon:"ph-thin ph-cubes"},{default:ke(()=>[C("div",aB,[b[33]||(b[33]=C("div",{class:"text-white/30 text-[10px] uppercase tracking-widest"},"Buttons",-1)),C("div",lB,[b[30]||(b[30]=C("label",{class:"text-white/50 uppercase tracking-wider text-[10px]"},"Radius",-1)),C("select",{value:l.value.buttonRadius,onChange:b[15]||(b[15]=S=>A("buttonRadius",S.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none"},[...b[29]||(b[29]=[C("option",{value:"0"},"Square",-1),C("option",{value:"0.25rem"},"Small",-1),C("option",{value:"0.5rem"},"Medium",-1),C("option",{value:"9999px"},"Pill (Full)",-1)])],40,uB)]),b[34]||(b[34]=C("div",{class:"text-white/30 text-[10px] uppercase tracking-widest pt-2 border-t border-[#333]"},"Cards ",-1)),C("div",cB,[b[32]||(b[32]=C("label",{class:"text-white/50 uppercase tracking-wider text-[10px]"},"Radius",-1)),C("select",{value:l.value.cardRadius,onChange:b[16]||(b[16]=S=>A("cardRadius",S.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none"},[...b[31]||(b[31]=[C("option",{value:"0"},"Square",-1),C("option",{value:"0.5rem"},"Small",-1),C("option",{value:"1rem"},"Medium",-1),C("option",{value:"1.5rem"},"Large",-1),C("option",{value:"2rem"},"X-Large",-1)])],40,dB)])])]),_:1}),C("div",fB,[b[36]||(b[36]=C("div",{class:"text-white/30 text-[10px] uppercase tracking-widest"},"Statistics",-1)),C("div",hB,[b[35]||(b[35]=C("span",null,"Slides",-1)),C("span",pB,Ie(r.value),1)])])])]))}}),[["__scopeId","data-v-c248dcb0"]]),mB={class:"w-64 bg-[#111] border-r border-[#333] flex flex-col"},vB={class:"flex border-b border-[#333]"},yB={class:"flex-1 overflow-hidden"},bB=Te({__name:"StudioSidebar",setup(t){const e=we("elements");return(n,r)=>(j(),K("div",mB,[C("div",vB,[C("button",{onClick:r[0]||(r[0]=i=>e.value="elements"),class:Se(["flex-1 px-3 py-2 text-xs font-bold uppercase transition",e.value==="elements"?"text-white bg-[#1a1a1a]":"text-white/50 hover:text-white"])},[...r[2]||(r[2]=[C("i",{class:"ph-thin ph-tree-structure mr-1"},null,-1),bt(" Elements ",-1)])],2),C("button",{onClick:r[1]||(r[1]=i=>e.value="settings"),class:Se(["flex-1 px-3 py-2 text-xs font-bold uppercase transition",e.value==="settings"?"text-white bg-[#1a1a1a]":"text-white/50 hover:text-white"])},[...r[3]||(r[3]=[C("i",{class:"ph-thin ph-gear mr-1"},null,-1),bt(" Settings ",-1)])],2)]),C("div",yB,[e.value==="elements"?(j(),$e(lU,{key:0})):(j(),$e(gB,{key:1}))])]))}}),_B={class:"space-y-2"},xB={class:"text-white/50 uppercase tracking-wider text-[10px] block"},wB={class:"flex items-center gap-2"},SB={class:"w-8 h-8 rounded bg-[#1a1a1a] border border-[#333] flex items-center justify-center text-lg"},EB={key:0,class:"bg-[#111] border border-[#333] rounded-lg p-3 space-y-2"},TB={class:"grid grid-cols-6 gap-1 max-h-48 overflow-y-auto"},IB=["onClick","title"],CB={class:"flex flex-wrap gap-1 pt-2 border-t border-[#333]"},AB=["onClick"],PB=Te({__name:"IconPicker",props:{modelValue:{},label:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,i=we(!1),o=we(""),s=["star","heart","check","x","plus","minus","magnifying-glass","gear","house","user","arrow-right","arrow-left","arrow-up","arrow-down","caret-right","caret-left","briefcase","chart-line","chart-bar","currency-dollar","coins","wallet","buildings","laptop","device-mobile","desktop","code","database","hard-drive","cloud","wifi-high","envelope","phone","chat-centered","chat-dots","bell","paper-plane","image","video-camera","camera","play","pause","speaker-high","music-note","lightbulb","lightning","fire","rocket","trophy","medal","flag","gift","leaf","tree","sun","moon","globe","mountains","lock","lock-open","shield-check","key","eye","eye-slash","download-simple","upload-simple","share","link","floppy-disk","pencil-simple","trash","copy","users","user-plus","handshake","users-four","magic-wand","sparkle","diamond","crown","infinity"],a=[{name:"All",prefix:""},{name:"Arrows",prefix:"arrow"},{name:"Business",prefix:"chart"},{name:"Tech",prefix:"code"},{name:"People",prefix:"user"}],l=Z(()=>o.value?s.filter(d=>d.includes(o.value.toLowerCase())):s),u=Z(()=>n.modelValue?n.modelValue.startsWith("ph-")?`ph-thin ${n.modelValue}`:`ph-thin ph-${n.modelValue}`:"ph-thin ph-question"),c=d=>{r("update:modelValue",d),i.value=!1,o.value=""};return(d,h)=>(j(),K("div",_B,[C("label",xB,Ie(t.label),1),C("div",wB,[C("div",SB,[C("i",{class:Se([u.value,"text-white"])},null,2)]),C("button",{onClick:h[0]||(h[0]=p=>i.value=!i.value),class:"flex-1 bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white text-left hover:border-blue-500 transition text-xs"},Ie(t.modelValue||"Select icon..."),1)]),i.value?(j(),K("div",EB,[za(C("input",{"onUpdate:modelValue":h[1]||(h[1]=p=>o.value=p),type:"text",placeholder:"Search icons...",class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white text-xs focus:border-blue-500 focus:outline-none"},null,512),[[Ms,o.value]]),C("div",TB,[(j(!0),K(Ue,null,It(l.value,p=>(j(),K("button",{key:p,onClick:g=>c(p),class:Se(["w-8 h-8 rounded flex items-center justify-center hover:bg-blue-600 transition",t.modelValue===p?"bg-blue-600":"bg-[#1a1a1a]"]),title:p},[C("i",{class:Se([`ph-thin ph-${p}`,"text-white text-sm"])},null,2)],10,IB))),128))]),C("div",CB,[(j(),K(Ue,null,It(a,p=>C("button",{key:p.name,onClick:g=>o.value=p.prefix,class:"px-2 py-0.5 rounded text-[10px] bg-[#1a1a1a] text-white/70 hover:bg-[#333] hover:text-white"},Ie(p.name),9,AB)),64))])])):Oe("",!0)]))}}),kB={direction:"Layout Direction",gap:"Spacing",padding:"Inner Padding",halign:"Horizontal Align",valign:"Vertical Align",align:"Text Alignment",size:"Size",imageSide:"Image Position",title:"Title",subtitle:"Subtitle",text:"Text Content",tag:"Label / Tag",description:"Description",desc:"Description",label:"Label",name:"Name",src:"Image URL",image:"Image",poster:"Video Poster",alt:"Alt Text",background:"Background",icon:"Icon",action:"Action ID",actionType:"Action Type",href:"Link URL",gotoSlide:"Go to Slide",target:"Open In",cta:"Call to Action",url:"URL",variant:"Style Variant",rounded:"Corner Radius",fit:"Object Fit",fill:"Fill Container",type:"Type",chartType:"Chart Type",data:"Data",elements:"Elements",features:"Features",timeline:"Timeline",steps:"Steps",paragraphs:"Paragraphs",bullets:"Bullet Points",notes:"Speaker Notes",sizing:"Sizing Mode",id:"ID",meta:"Metadata",orbColor:"Orb Color",orbPos:"Orb Position",date:"Date",step:"Step Number",year:"Year"},OB={direction:{horizontal:"→ Horizontal",vertical:"↓ Vertical"},gap:{none:"None",xs:"Extra Small",sm:"Small",md:"Medium",lg:"Large",xl:"Extra Large","2xl":"2X Large","3xl":"3X Large","4xl":"Huge"},padding:{none:"None",xs:"Extra Small",sm:"Small",md:"Medium",lg:"Large",xl:"Extra Large","2xl":"2X Large","3xl":"3X Large","4xl":"Huge"},size:{auto:"Auto",quarter:"25%",third:"33%",half:"50%","two-thirds":"66%","three-quarters":"75%",full:"100%"},halign:{left:"← Left",center:"↔ Center",right:"→ Right"},valign:{top:"↑ Top",center:"↕ Center",bottom:"↓ Bottom"},align:{left:"← Left",center:"↔ Center",right:"→ Right"},imageSide:{left:"← Left",right:"→ Right"},variant:{primary:"● Primary",secondary:"○ Secondary",outline:"□ Outline",ghost:"◌ Ghost"},rounded:{none:"None",sm:"Slight",md:"Medium",lg:"Large",xl:"Extra Large","2xl":"2X Large","3xl":"3X Large",full:"Full Circle"},fit:{cover:"Cover (fill)",contain:"Contain (fit)"},fill:{true:"Yes",false:"No"},chartType:{bar:"📊 Bar Chart",line:"📈 Line Chart",pie:"🥧 Pie Chart",doughnut:"🍩 Doughnut",radar:"🕸 Radar",polarArea:"🎯 Polar Area"},sizing:{viewport:"Full Screen",container:"Container"},type:{title:"📌 Heading",text:"📄 Paragraph",content:"📝 Content",image:"🖼 Image",video:"🎥 Video",button:"🔘 Button",spacer:"⬜ Spacer"},actionType:{none:"⊘ None",url:"🔗 Open URL",slide:"📑 Go to Slide",download:"⬇️ Download",event:"⚡ Custom Event"},target:{_blank:"New Tab",_self:"Same Tab"}};function TI(t){return kB[t]||RB(t)}function NB(t){const e=OB[t];return e?Object.entries(e).map(([n,r])=>({value:n,label:r})):null}function RB(t){return t.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()).trim()}const $B={class:"space-y-1"},DB={class:"text-white/50 uppercase tracking-wider text-[10px] block"},MB=["value"],LB=["value"],VB={key:2,class:"flex items-center justify-between py-1"},FB=["value"],zB={key:4,class:"flex gap-2"},UB=["value"],BB=["value"],jB={key:5,class:"space-y-2"},HB=["value"],GB={key:0,class:"w-full h-16 rounded bg-[#1a1a1a] border border-[#333] overflow-hidden"},WB=["src"],KB=["value"],ZB=["value","placeholder"],XB=Te({__name:"FieldEditor",props:{fieldKey:{},value:{}},emits:["update"],setup(t,{emit:e}){const n=t,r=e,i=Z(()=>TI(n.fieldKey)),o=Z(()=>n.fieldKey==="icon"),s=Z(()=>["color","primaryColor","secondaryColor","backgroundColor","orbColor"].includes(n.fieldKey)),a=Z(()=>["src","image","poster","background"].includes(n.fieldKey)&&typeof n.value=="string"),l=Z(()=>typeof n.value!="string"?!1:["text","description","desc","notes","subtitle","html","css"].includes(n.fieldKey)||n.value.length>60),u=Z(()=>{const h=NB(n.fieldKey);if(h)return h;const p={titleSize:["lg","xl","2xl","3xl"]};return p[n.fieldKey]?p[n.fieldKey].map(g=>({value:g,label:g.toUpperCase()})):null}),c=h=>({action:"button-click-action",href:"https://example.com",alt:"Image description",tag:"Category or label",cta:"Call to action text"})[h]||"",d=h=>{const p=h.target;p.style.display="none"};return(h,p)=>(j(),K("div",$B,[C("label",DB,Ie(i.value),1),o.value?(j(),$e(PB,{key:0,"model-value":String(t.value||""),"onUpdate:modelValue":p[0]||(p[0]=g=>r("update",t.fieldKey,g))},null,8,["model-value"])):u.value?(j(),K("select",{key:1,value:t.value,onChange:p[1]||(p[1]=g=>r("update",t.fieldKey,g.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none"},[(j(!0),K(Ue,null,It(u.value,g=>(j(),K("option",{key:g.value,value:g.value},Ie(g.label),9,LB))),128))],40,MB)):typeof t.value=="boolean"?(j(),K("div",VB,[C("button",{onClick:p[2]||(p[2]=g=>r("update",t.fieldKey,!t.value)),class:Se(["w-10 h-5 rounded-full transition-colors relative",t.value?"bg-blue-600":"bg-[#333]"])},[C("span",{class:Se(["absolute top-0.5 w-4 h-4 rounded-full bg-white transition-transform",t.value?"left-5":"left-0.5"])},null,2)],2)])):typeof t.value=="number"?(j(),K("input",{key:3,type:"number",value:t.value,onInput:p[3]||(p[3]=g=>r("update",t.fieldKey,parseFloat(g.target.value))),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none"},null,40,FB)):s.value?(j(),K("div",zB,[C("input",{type:"color",value:String(t.value||"#ffffff"),onInput:p[4]||(p[4]=g=>r("update",t.fieldKey,g.target.value)),class:"w-10 h-8 rounded border border-[#333] cursor-pointer bg-transparent"},null,40,UB),C("input",{type:"text",value:t.value,onInput:p[5]||(p[5]=g=>r("update",t.fieldKey,g.target.value)),class:"flex-1 bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white font-mono text-xs focus:border-blue-500 focus:outline-none"},null,40,BB)])):a.value?(j(),K("div",jB,[C("input",{type:"url",value:t.value,onInput:p[6]||(p[6]=g=>r("update",t.fieldKey,g.target.value)),placeholder:"https://example.com/image.jpg",class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none"},null,40,HB),t.value?(j(),K("div",GB,[C("img",{src:String(t.value),alt:"Preview",class:"w-full h-full object-cover",onError:d},null,40,WB)])):Oe("",!0)])):l.value?(j(),K("textarea",{key:6,value:String(t.value||""),onInput:p[7]||(p[7]=g=>r("update",t.fieldKey,g.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none resize-none",rows:"3"},null,40,KB)):(j(),K("input",{key:7,type:"text",value:t.value,onInput:p[8]||(p[8]=g=>r("update",t.fieldKey,g.target.value)),placeholder:c(t.fieldKey),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none"},null,40,ZB))]))}}),YB={class:"space-y-2"},JB={class:"space-y-1"},QB=["value"],qB={key:0,class:"space-y-1"},e8={class:"text-white/50 uppercase tracking-wider text-[10px]"},t8=["value"],n8={key:1,class:"space-y-1"},r8={class:"flex gap-2"},i8={key:2,class:"space-y-1"},o8=["value"],s8=["value"],a8={key:3,class:"space-y-1"},l8=["value"],u8=Te({__name:"ActionEditor",props:{actionType:{},href:{},gotoSlide:{},target:{},action:{}},emits:["update"],setup(t,{emit:e}){const n=e,r=si(),i=Z(()=>{var u,c;return((c=(u=r.store.state.deck)==null?void 0:u.slides)==null?void 0:c.length)||0}),o=u=>{const c=u.target.value;n("update","actionType",c==="none"?void 0:c),c!=="url"&&c!=="download"&&n("update","href",void 0),c!=="slide"&&n("update","gotoSlide",void 0)},s=u=>{n("update","href",u.target.value||void 0)},a=u=>{const c=u.target.value;n("update","gotoSlide",c?parseInt(c):void 0)},l=u=>{n("update","action",u.target.value||void 0)};return(u,c)=>(j(),K("div",YB,[c[8]||(c[8]=C("div",{class:"text-white/30 text-[10px] uppercase tracking-widest"},"Action",-1)),C("div",JB,[c[3]||(c[3]=C("label",{class:"text-white/50 uppercase tracking-wider text-[10px]"},"Type",-1)),C("select",{value:t.actionType||"none",onChange:o,class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none"},[...c[2]||(c[2]=[nf('<option value="none">None</option><option value="url">Open URL</option><option value="slide">Go to Slide</option><option value="download">Download File</option><option value="event">Custom Event</option>',5)])],40,QB)]),t.actionType==="url"||t.actionType==="download"?(j(),K("div",qB,[C("label",e8,Ie(t.actionType==="download"?"File URL":"Link URL"),1),C("input",{type:"url",value:t.href||"",onInput:s,placeholder:"https://example.com",class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none"},null,40,t8)])):Oe("",!0),t.actionType==="url"?(j(),K("div",n8,[c[4]||(c[4]=C("label",{class:"text-white/50 uppercase tracking-wider text-[10px]"},"Open In",-1)),C("div",r8,[C("button",{onClick:c[0]||(c[0]=d=>n("update","target","_blank")),class:Se(["flex-1 px-2 py-1 text-[10px] rounded border transition",t.target!=="_self"?"bg-blue-600 border-blue-500 text-white":"bg-[#1a1a1a] border-[#333] text-white/50"])}," New Tab ",2),C("button",{onClick:c[1]||(c[1]=d=>n("update","target","_self")),class:Se(["flex-1 px-2 py-1 text-[10px] rounded border transition",t.target==="_self"?"bg-blue-600 border-blue-500 text-white":"bg-[#1a1a1a] border-[#333] text-white/50"])}," Same Tab ",2)])])):Oe("",!0),t.actionType==="slide"?(j(),K("div",i8,[c[6]||(c[6]=C("label",{class:"text-white/50 uppercase tracking-wider text-[10px]"},"Go to Slide",-1)),C("select",{value:t.gotoSlide??"",onChange:a,class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none"},[c[5]||(c[5]=C("option",{value:""},"Select slide...",-1)),(j(!0),K(Ue,null,It(i.value,(d,h)=>(j(),K("option",{key:h,value:h}," Slide "+Ie(h+1),9,s8))),128))],40,o8)])):Oe("",!0),t.actionType==="event"?(j(),K("div",a8,[c[7]||(c[7]=C("label",{class:"text-white/50 uppercase tracking-wider text-[10px]"},"Action ID",-1)),C("input",{type:"text",value:t.action||"",onInput:l,placeholder:"custom-action-id",class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white font-mono text-xs focus:border-blue-500 focus:outline-none"},null,40,l8)])):Oe("",!0)]))}}),c8={class:"flex items-center gap-2"},d8=["value"],f8={class:"flex-1 text-white/70"},h8=["value"],II=Te({__name:"ColorField",props:{label:{},fieldKey:{},value:{}},emits:["update"],setup(t,{emit:e}){const n=e;return(r,i)=>(j(),K("div",c8,[C("input",{type:"color",value:String(t.value||"#ffffff"),onInput:i[0]||(i[0]=o=>n("update",t.fieldKey,o.target.value)),class:"w-6 h-6 rounded border border-[#333] cursor-pointer bg-transparent"},null,40,d8),C("span",f8,Ie(t.label),1),C("input",{type:"text",value:t.value,onInput:i[1]||(i[1]=o=>n("update",t.fieldKey,o.target.value)),class:"w-16 bg-[#1a1a1a] border border-[#333] rounded px-1.5 py-0.5 text-[10px] font-mono text-white/70 focus:border-blue-500 focus:outline-none"},null,40,h8)]))}}),p8={class:"space-y-4"},g8={class:"space-y-3"},m8={class:"space-y-1"},v8=["value"],y8={class:"space-y-1"},b8=["value"],_8={key:0,class:"space-y-1"},x8=["value"],w8={class:"grid grid-cols-2 gap-2"},S8={class:"space-y-1"},E8=["value"],T8={class:"space-y-1"},I8=["value"],C8={key:1,class:"space-y-1"},A8={class:"flex gap-2"},P8=["value"],k8=["value"],O8={key:2,class:"space-y-1"},N8={class:"flex gap-2"},R8=["value"],$8=["value"],D8={class:"pt-4 border-t border-[#333]"},M8=Te({__name:"DiagramNodeEditor",props:{data:{}},emits:["update","delete"],setup(t,{emit:e}){const n=t,r=e,i=Z(()=>{var u,c,d,h;return((c=(u=n.data)==null?void 0:u.data)==null?void 0:c.shape)==="image"||((h=(d=n.data)==null?void 0:d.data)==null?void 0:h.type)==="image"}),o=(u,c)=>{r("update",u,c)},s=(u,c)=>{r("update",`position.${u}`,c)},a=(u,c)=>{r("update",`data.style.${u}`,c)},l=(u,c)=>{r("update",`data.${u}`,c)};return(u,c)=>{var d,h,p,g,m,_,E,w,v;return j(),K("div",p8,[C("div",g8,[c[18]||(c[18]=C("div",{class:"text-white/30 text-[10px] uppercase tracking-widest"},"Node Properties",-1)),C("div",m8,[c[10]||(c[10]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Label",-1)),C("input",{type:"text",value:t.data.label,onInput:c[0]||(c[0]=y=>o("label",y.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white focus:border-blue-500 focus:outline-none"},null,40,v8)]),C("div",y8,[c[12]||(c[12]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Shape",-1)),C("select",{value:((d=t.data.data)==null?void 0:d.shape)||((h=t.data.data)==null?void 0:h.type)||"rectangle",onChange:c[1]||(c[1]=y=>l("shape",y.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white focus:border-blue-500 focus:outline-none"},[...c[11]||(c[11]=[C("option",{value:"rectangle"},"Rectangle",-1),C("option",{value:"rounded"},"Rounded",-1),C("option",{value:"image"},"Image",-1)])],40,b8)]),i.value?(j(),K("div",_8,[c[13]||(c[13]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Image URL",-1)),C("input",{type:"text",value:((p=t.data.data)==null?void 0:p.imageUrl)||"",placeholder:"https://...",onInput:c[2]||(c[2]=y=>l("imageUrl",y.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white focus:border-blue-500 focus:outline-none"},null,40,x8)])):Oe("",!0),C("div",w8,[C("div",S8,[c[14]||(c[14]=C("label",{class:"text-white/50 text-[10px] uppercase"},"X Position",-1)),C("input",{type:"number",value:(g=t.data.position)==null?void 0:g.x,onInput:c[3]||(c[3]=y=>s("x",parseFloat(y.target.value))),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white"},null,40,E8)]),C("div",T8,[c[15]||(c[15]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Y Position",-1)),C("input",{type:"number",value:(m=t.data.position)==null?void 0:m.y,onInput:c[4]||(c[4]=y=>s("y",parseFloat(y.target.value))),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white"},null,40,I8)])]),i.value?Oe("",!0):(j(),K("div",C8,[c[16]||(c[16]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Background Color",-1)),C("div",A8,[C("input",{type:"color",value:((_=t.data.style)==null?void 0:_.backgroundColor)||"#ffffff",onInput:c[5]||(c[5]=y=>a("backgroundColor",y.target.value)),class:"bg-transparent w-6 h-6 p-0 border-0 cursor-pointer"},null,40,P8),C("input",{type:"text",value:((E=t.data.style)==null?void 0:E.backgroundColor)||"",placeholder:"#ffffff",onInput:c[6]||(c[6]=y=>a("backgroundColor",y.target.value)),class:"flex-1 bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white font-mono"},null,40,k8)])])),i.value?Oe("",!0):(j(),K("div",O8,[c[17]||(c[17]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Text Color",-1)),C("div",N8,[C("input",{type:"color",value:((w=t.data.style)==null?void 0:w.color)||"#000000",onInput:c[7]||(c[7]=y=>a("color",y.target.value)),class:"bg-transparent w-6 h-6 p-0 border-0 cursor-pointer"},null,40,R8),C("input",{type:"text",value:((v=t.data.style)==null?void 0:v.color)||"",placeholder:"#000000",onInput:c[8]||(c[8]=y=>a("color",y.target.value)),class:"flex-1 bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white font-mono"},null,40,$8)])]))]),C("div",D8,[C("button",{onClick:c[9]||(c[9]=y=>u.$emit("delete")),class:"w-full px-3 py-2 rounded bg-red-900/30 border border-red-500/30 text-red-400 hover:bg-red-900/50 transition flex items-center justify-center gap-2"},[...c[19]||(c[19]=[C("i",{class:"ph-thin ph-trash text-xs"},null,-1),bt(" Delete Node ",-1)])])])])}}}),L8={class:"space-y-4"},V8={class:"space-y-3"},F8={class:"space-y-1"},z8=["value"],U8={class:"space-y-1"},B8=["value"],j8={class:"flex items-center justify-between"},H8={class:"space-y-1"},G8={class:"flex gap-2"},W8=["value"],K8=["value"],Z8={class:"pt-4 border-t border-[#333]"},X8=Te({__name:"DiagramEdgeEditor",props:{data:{}},emits:["update","delete"],setup(t,{emit:e}){const n=e,r=(o,s)=>{n("update",o,s)},i=(o,s)=>{n("update",`style.${o}`,s)};return(o,s)=>{var a,l;return j(),K("div",L8,[C("div",V8,[s[11]||(s[11]=C("div",{class:"text-white/30 text-[10px] uppercase tracking-widest"},"Connection Properties",-1)),C("div",F8,[s[6]||(s[6]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Label",-1)),C("input",{type:"text",value:t.data.label||"",onInput:s[0]||(s[0]=u=>r("label",u.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white focus:border-blue-500 focus:outline-none"},null,40,z8)]),C("div",U8,[s[8]||(s[8]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Line Type",-1)),C("select",{value:t.data.type||"default",onChange:s[1]||(s[1]=u=>r("type",u.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white focus:border-blue-500 focus:outline-none"},[...s[7]||(s[7]=[C("option",{value:"default"},"Bezier (Default)",-1),C("option",{value:"straight"},"Straight",-1),C("option",{value:"step"},"Step",-1),C("option",{value:"smoothstep"},"Smooth Step",-1)])],40,B8)]),C("div",j8,[s[9]||(s[9]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Animated",-1)),C("button",{onClick:s[2]||(s[2]=u=>r("animated",!t.data.animated)),class:Se(["w-8 h-4 rounded-full relative transition-colors duration-200",t.data.animated?"bg-blue-600":"bg-[#333]"])},[C("div",{class:Se(["absolute top-0.5 left-0.5 w-3 h-3 bg-white rounded-full transition-transform duration-200",t.data.animated?"translate-x-4":"translate-x-0"])},null,2)],2)]),C("div",H8,[s[10]||(s[10]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Stroke Color",-1)),C("div",G8,[C("input",{type:"color",value:((a=t.data.style)==null?void 0:a.stroke)||"#b1b1b7",onInput:s[3]||(s[3]=u=>i("stroke",u.target.value)),class:"bg-transparent w-6 h-6 p-0 border-0 cursor-pointer"},null,40,W8),C("input",{type:"text",value:((l=t.data.style)==null?void 0:l.stroke)||"",placeholder:"#b1b1b7",onInput:s[4]||(s[4]=u=>i("stroke",u.target.value)),class:"flex-1 bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white font-mono"},null,40,K8)])])]),C("div",Z8,[C("button",{onClick:s[5]||(s[5]=u=>o.$emit("delete")),class:"w-full px-3 py-2 rounded bg-red-900/30 border border-red-500/30 text-red-400 hover:bg-red-900/50 transition flex items-center justify-center gap-2"},[...s[12]||(s[12]=[C("i",{class:"ph-thin ph-trash text-xs"},null,-1),bt(" Delete Connection ",-1)])])])])}}}),Y8={class:"flex flex-col h-full text-xs"},J8={class:"px-3 py-2 font-bold text-white/50 uppercase tracking-wider border-b border-[#333] flex items-center justify-between"},Q8={key:0,class:"text-blue-400 font-mono"},q8={key:0,class:"flex-1 flex items-center justify-center p-4"},e7={key:1,class:"flex-1 overflow-y-auto p-3 space-y-4"},t7={key:0},n7={key:1},r7={key:2,class:"space-y-4"},i7={key:0,class:"p-3 bg-blue-900/10 border border-blue-500/20 rounded mb-4"},o7={class:"grid grid-cols-3 gap-2"},s7={key:1,class:"space-y-3"},a7={key:0,class:"space-y-1"},l7=["value"],u7={key:2,class:"space-y-4"},c7={class:"space-y-3"},d7={class:"space-y-1"},f7=["value"],h7={class:"space-y-1"},p7=["value"],g7={class:"space-y-1"},m7=["value"],v7={class:"space-y-1"},y7=["value"],b7={class:"space-y-1"},_7=["value"],x7={key:3,class:"space-y-4"},w7={class:"space-y-3"},S7={class:"space-y-1"},E7=["value"],T7={class:"grid grid-cols-2 gap-2"},I7={class:"space-y-1"},C7=["value"],A7={class:"space-y-1"},P7=["value"],k7={class:"pt-2 border-t border-[#333]"},O7={class:"space-y-1 pt-2"},N7={class:"grid grid-cols-2 gap-2"},R7=["value"],$7=["value"],D7={class:"space-y-3"},M7={class:"space-y-1"},L7=["value"],V7={class:"grid grid-cols-2 gap-2"},F7={class:"space-y-1"},z7=["value"],U7={class:"space-y-1"},B7=["value"],j7={key:4,class:"pt-2 border-t border-[#333]"},H7={class:"flex items-center justify-between"},G7={class:"text-white/30 text-[10px] uppercase tracking-widest"},W7=["onClick"],K7=["value","onInput"],Z7=["onClick"],X7={class:"flex items-center justify-between"},Y7={class:"text-white/30 text-[10px] uppercase tracking-widest"},J7=["onClick"],Q7={class:"flex items-center justify-between text-[10px] text-white/50 pb-1"},q7={class:"font-bold uppercase truncate pr-2"},ej={class:"flex gap-1 shrink-0"},tj=["onClick"],nj={class:"flex flex-col gap-0.5"},rj=["onClick"],ij=["onClick"],oj=["onClick"],sj={key:5,class:"space-y-4 pt-4 border-t border-[#333]"},aj=Te({__name:"StudioInspector",setup(t){const e=si(),n=Z(()=>e.getSelectedData()),r=Z(()=>{var S;return(S=n.value)==null?void 0:S.type}),i=Z(()=>/^slides\.\d+$/.test(e.selection.value||"")),o=Z(()=>e.selection.value&&e.selection.value.includes(".nodes.")&&!e.selection.value.endsWith(".nodes")),s=Z(()=>e.selection.value&&e.selection.value.includes(".edges.")&&!e.selection.value.endsWith(".edges")),a=Z(()=>{var I;const S=(I=n.value)==null?void 0:I.type;return S==="button"||S==="image"}),l=(S,I)=>{var G;const V=((G=e.selection.value)==null?void 0:G.split("."))||[];if(V.length<4)return;const M=parseInt(V[1]),H=e.getSelectedData();H!=null&&H.id&&Promise.resolve().then(()=>Fu).then(({bus:q})=>{q.emit("diagram-node-update",{slideIndex:M,nodeId:H.id,key:S,value:I})})},u=()=>{x()},c=(S,I)=>{const V=`${e.selection.value}.${S}`;e.store.updateNode(V,I),e.commit()},d=S=>{const I={id:`node-${Date.now()}`,label:"New Node",position:{x:250,y:250},type:S,style:{backgroundColor:"#ffffff",color:"#000000",width:"150px"},dragKey:Date.now()+Math.random()},V=`${e.selection.value}.nodes`;e.store.addNode(V,I),e.commit()},h=Z(()=>{if(!n.value)return{};const S=["type","actionType","href","gotoSlide","target","action","class","dragKey","position","style","data","sourcePosition","targetPosition","source","target","animated","nodes","edges"],I=i.value&&r.value==="flex"?["direction","gap","padding","halign","valign"]:[];return Object.fromEntries(Object.entries(n.value).filter(([V,M])=>!S.includes(V)&&!I.includes(V)&&(typeof M=="string"||typeof M=="boolean"||typeof M=="number")))}),p=Z(()=>n.value?Object.fromEntries(Object.entries(n.value).filter(([S,I])=>Array.isArray(I)&&I.length>0&&typeof I[0]=="string")):{}),g=Z(()=>{if(!n.value)return{};const S=["timeline","steps","features","elements","datasets"];return Object.fromEntries(Object.entries(n.value).filter(([I,V])=>S.includes(I)&&Array.isArray(V)))}),m=(S,I)=>S.title||S.date||S.step||S.label||`#${I+1}`,_=S=>({timeline:{date:"2024",title:"New Event",description:"Description",dragKey:Date.now()+Math.random()},steps:{step:"1",title:"New Step",description:"Description",dragKey:Date.now()+Math.random()},features:{icon:"star",title:"New Feature",desc:"Description",dragKey:Date.now()+Math.random()},elements:{type:"text",text:"New text element",dragKey:Date.now()+Math.random()},datasets:{label:"Dataset",values:[],dragKey:Date.now()+Math.random()}})[S]||{title:"New Item",dragKey:Date.now()+Math.random()};let E=null;const w=(S,I)=>{if(["actionType","variant","type","animationsEnabled","useOrb","useGlass","useShadows","class","backgroundOpacity"].includes(S)||typeof I=="boolean"){E&&clearTimeout(E),e.updateSelected(S,I),e.commit();return}E&&clearTimeout(E),E=setTimeout(()=>{e.updateSelected(S,I),e.commit()},150)},v=S=>{const I=`${e.selection.value}.${S}`;e.store.addNode(I,"New item"),e.commit()},y=S=>{const I=`${e.selection.value}.${S}`,V=_(S);e.store.addNode(I,V),e.commit();const M=e.getSelectedData(),H=M?M[S]:[];H&&H.length>0&&e.select(`${I}.${H.length-1}`)},k=(S,I)=>{const V=`${e.selection.value}.${S}.${I}`;e.select(V)},$=(S,I,V)=>{const M=`${e.selection.value}.${S}.${I}`;e.store.updateNode(M,V),e.commit()},O=(S,I)=>{const V=`${e.selection.value}.${S}`;e.store.removeNode(V,I),e.commit()},A=(S,I,V)=>{const M=`${e.selection.value}.${S}`;e.store.moveNode(M,I,I+V),e.commit()},x=()=>{if(!e.selection.value)return;const S=e.selection.value.split("."),I=parseInt(S.pop()),V=S.join(".");!isNaN(I)&&V!=="slides"&&(e.store.removeNode(V,I),e.commit(),e.select(null))},N=(S,I)=>{const V=`${e.selection.value}.meta.${S}`;e.store.updateNode(V,I),e.commit()},P=(S,I)=>{const V=`${e.selection.value}.meta.${S.replace("effects.","")}`;e.store.updateNode(V,I),e.commit()},b=(S,I)=>{S.dataTransfer&&(S.dataTransfer.setData("application/vueflow",I),S.dataTransfer.effectAllowed="move")};return(S,I)=>(j(),K("div",Y8,[C("div",J8,[I[22]||(I[22]=C("span",null,"Properties",-1)),r.value?(j(),K("span",Q8,Ie(r.value),1)):Oe("",!0)]),n.value?(j(),K("div",e7,[o.value?(j(),K("div",t7,[C("div",{class:"mb-4 flex items-center gap-2 text-[10px] text-white/50 uppercase tracking-widest cursor-pointer hover:text-white",onClick:I[0]||(I[0]=V=>re(e).select(re(e).selection.value.split(".nodes.")[0]))},[...I[24]||(I[24]=[C("i",{class:"ph-thin ph-caret-left"},null,-1),bt(" Back to Diagram ",-1)])]),ue(M8,{data:n.value,onUpdate:l,onDelete:u},null,8,["data"])])):s.value?(j(),K("div",n7,[C("div",{class:"mb-4 flex items-center gap-2 text-[10px] text-white/50 uppercase tracking-widest cursor-pointer hover:text-white",onClick:I[1]||(I[1]=V=>re(e).select(re(e).selection.value.split(".edges.")[0]))},[...I[25]||(I[25]=[C("i",{class:"ph-thin ph-caret-left"},null,-1),bt(" Back to Diagram ",-1)])]),ue(X8,{data:n.value,onUpdate:c,onDelete:x},null,8,["data"])])):(j(),K("div",r7,[r.value==="diagram"?(j(),K("div",i7,[I[29]||(I[29]=C("div",{class:"text-white/30 text-[10px] uppercase tracking-widest mb-2"},"Diagram Palette",-1)),C("div",o7,[C("div",{draggable:"true",onDragstart:I[2]||(I[2]=V=>b(V,"default")),onClick:I[3]||(I[3]=V=>d("default")),class:"cursor-grab flex flex-col items-center gap-1 p-2 bg-[#1a1a1a] hover:bg-[#252525] rounded border border-transparent hover:border-white/20 transition"},[...I[26]||(I[26]=[C("div",{class:"w-6 h-4 border border-white/50 bg-white/10"},null,-1),C("span",{class:"text-[9px] text-white/70"},"Rect",-1)])],32),C("div",{draggable:"true",onDragstart:I[4]||(I[4]=V=>b(V,"input")),onClick:I[5]||(I[5]=V=>d("input")),class:"cursor-grab flex flex-col items-center gap-1 p-2 bg-[#1a1a1a] hover:bg-[#252525] rounded border border-transparent hover:border-white/20 transition"},[...I[27]||(I[27]=[C("div",{class:"w-6 h-4 border border-white/50 bg-white/10 rounded-full"},null,-1),C("span",{class:"text-[9px] text-white/70"},"Rounded",-1)])],32),C("div",{draggable:"true",onDragstart:I[6]||(I[6]=V=>b(V,"image")),onClick:I[7]||(I[7]=V=>d("image")),class:"cursor-grab flex flex-col items-center gap-1 p-2 bg-[#1a1a1a] hover:bg-[#252525] rounded border border-transparent hover:border-white/20 transition"},[...I[28]||(I[28]=[C("i",{class:"ph-thin ph-image text-white/50 text-lg"},null,-1),C("span",{class:"text-[9px] text-white/70"},"Image",-1)])],32)]),I[30]||(I[30]=C("div",{class:"mt-2 text-[9px] text-blue-200/50 text-center"}," Drag from handle to handle on visible nodes to connect. ",-1))])):Oe("",!0),Object.keys(h.value).length>0?(j(),K("div",s7,[I[33]||(I[33]=C("div",{class:"text-white/30 text-[10px] uppercase tracking-widest"},"Properties",-1)),(j(!0),K(Ue,null,It(h.value,(V,M)=>(j(),$e(XB,{key:M,fieldKey:M,value:V,onUpdate:w},null,8,["fieldKey","value"]))),128)),!i.value&&r.value!=="content"?(j(),K("div",a7,[I[32]||(I[32]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Reveal Animation",-1)),C("select",{value:n.value.class||"",onChange:I[8]||(I[8]=V=>w("class",V.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white"},[...I[31]||(I[31]=[nf('<option value="">None</option><option value="reveal-up">Reveal Up</option><option value="reveal-zoom">Reveal Zoom</option><option value="reveal-left">Reveal Left</option><option value="reveal-right">Reveal Right</option><option value="reveal-img">Image Cinematic</option>',6)])],40,l7)])):Oe("",!0)])):Oe("",!0),i.value&&r.value==="flex"?(j(),K("div",u7,[ue(vi,{title:"Layout",icon:"ph-thin ph-squares-four",defaultExpanded:!0},{default:ke(()=>[C("div",c7,[C("div",d7,[I[35]||(I[35]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Direction",-1)),C("select",{value:n.value.direction||"horizontal",onChange:I[9]||(I[9]=V=>w("direction",V.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white"},[...I[34]||(I[34]=[C("option",{value:"horizontal"},"→ Horizontal",-1),C("option",{value:"vertical"},"↓ Vertical",-1)])],40,f7)]),C("div",h7,[I[37]||(I[37]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Gap",-1)),C("select",{value:n.value.gap||"none",onChange:I[10]||(I[10]=V=>w("gap",V.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white"},[...I[36]||(I[36]=[C("option",{value:"none"},"None",-1),C("option",{value:"xs"},"XS",-1),C("option",{value:"sm"},"Sm",-1),C("option",{value:"md"},"Md",-1),C("option",{value:"lg"},"Lg",-1),C("option",{value:"xl"},"XL",-1),C("option",{value:"2xl"},"2XL",-1),C("option",{value:"3xl"},"3XL",-1),C("option",{value:"4xl"},"4XL",-1)])],40,p7)]),C("div",g7,[I[39]||(I[39]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Padding",-1)),C("select",{value:n.value.padding||"none",onChange:I[11]||(I[11]=V=>w("padding",V.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white"},[...I[38]||(I[38]=[C("option",{value:"none"},"None",-1),C("option",{value:"xs"},"XS",-1),C("option",{value:"sm"},"Sm",-1),C("option",{value:"md"},"Md",-1),C("option",{value:"lg"},"Lg",-1),C("option",{value:"xl"},"XL",-1),C("option",{value:"2xl"},"2XL",-1),C("option",{value:"3xl"},"3XL",-1),C("option",{value:"4xl"},"4XL",-1)])],40,m7)]),C("div",v7,[I[41]||(I[41]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Horizontal alignment",-1)),C("select",{value:n.value.halign||"left",onChange:I[12]||(I[12]=V=>w("halign",V.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white"},[...I[40]||(I[40]=[C("option",{value:"left"},"← Left",-1),C("option",{value:"center"},"↔ Center",-1),C("option",{value:"right"},"→ Right",-1)])],40,y7)]),C("div",b7,[I[43]||(I[43]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Vertical alignment",-1)),C("select",{value:n.value.valign||"top",onChange:I[13]||(I[13]=V=>w("valign",V.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white"},[...I[42]||(I[42]=[C("option",{value:"top"},"↑ Top",-1),C("option",{value:"center"},"↕ Center",-1),C("option",{value:"bottom"},"↓ Bottom",-1)])],40,_7)])])]),_:1})])):Oe("",!0),i.value?(j(),K("div",x7,[ue(vi,{title:"Slide Appearance",icon:"ph-thin ph-paint-brush",defaultExpanded:!0},{default:ke(()=>{var V,M,H,G,q,oe,ae,he;return[C("div",w7,[ue(II,{label:"Background Color",fieldKey:"colors.background",value:(M=(V=n.value.meta)==null?void 0:V.colors)==null?void 0:M.background,onUpdate:N},null,8,["value"]),C("div",S7,[I[44]||(I[44]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Background Image URL",-1)),C("input",{type:"text",value:n.value.background||"",onInput:I[14]||(I[14]=xe=>w("background",xe.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white"},null,40,E7)]),C("div",T7,[C("div",I7,[I[45]||(I[45]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Opacity",-1)),C("input",{type:"number",step:"0.1",min:"0",max:"1",value:n.value.backgroundOpacity??1,onInput:I[15]||(I[15]=xe=>w("backgroundOpacity",parseFloat(xe.target.value))),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white"},null,40,C7)]),C("div",A7,[I[47]||(I[47]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Size",-1)),C("select",{value:((H=n.value.meta)==null?void 0:H.backgroundSize)||"cover",onChange:I[16]||(I[16]=xe=>N("backgroundSize",xe.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white"},[...I[46]||(I[46]=[C("option",{value:"cover"},"Cover",-1),C("option",{value:"contain"},"Contain",-1),C("option",{value:"auto"},"Auto",-1)])],40,P7)])]),C("div",k7,[ue(II,{label:"Orb Color",fieldKey:"effects.orbColor",value:(G=n.value.meta)==null?void 0:G.orbColor,onUpdate:P},null,8,["value"]),C("div",O7,[I[48]||(I[48]=C("div",{class:"text-white/50 text-[10px] uppercase"},"Orb Position",-1)),C("div",N7,[C("input",{type:"text",value:((oe=(q=n.value.meta)==null?void 0:q.orbPos)==null?void 0:oe.top)||"",placeholder:"Top (e.g. 10%)",onInput:I[17]||(I[17]=xe=>N("orbPos.top",xe.target.value)),class:"bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white"},null,40,R7),C("input",{type:"text",value:((he=(ae=n.value.meta)==null?void 0:ae.orbPos)==null?void 0:he.left)||"",placeholder:"Left (e.g. 50%)",onInput:I[18]||(I[18]=xe=>N("orbPos.left",xe.target.value)),class:"bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white"},null,40,$7)])])])])]}),_:1}),ue(vi,{title:"Slide Transitions",icon:"ph-thin ph-magic-wand",defaultExpanded:!1},{default:ke(()=>{var V,M,H,G,q,oe;return[C("div",D7,[C("div",M7,[I[50]||(I[50]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Animation Preset",-1)),C("select",{value:((M=(V=n.value.meta)==null?void 0:V.effects)==null?void 0:M.animationType)||"",onChange:I[19]||(I[19]=ae=>N("effects.animationType",ae.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white font-mono"},[...I[49]||(I[49]=[C("option",{value:""},"Global Default",-1),C("option",{value:"cascade"},"Cascade",-1),C("option",{value:"fade"},"Fade",-1),C("option",{value:"slide"},"Slide",-1),C("option",{value:"zoom"},"Zoom",-1),C("option",{value:"spring"},"Spring",-1),C("option",{value:"blur"},"Blur",-1),C("option",{value:"skew"},"Skew",-1),C("option",{value:"flip"},"Flip (3D)",-1),C("option",{value:"zoom-rotate"},"Zoom Rotate",-1),C("option",{value:"elastic-up"},"Elastic Up",-1)])],40,L7)]),C("div",V7,[C("div",F7,[I[51]||(I[51]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Duration",-1)),C("input",{type:"number",step:"0.1",value:((G=(H=n.value.meta)==null?void 0:H.effects)==null?void 0:G.animationDuration)||"",placeholder:"e.g. 0.8",onInput:I[20]||(I[20]=ae=>N("effects.animationDuration",parseFloat(ae.target.value))),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white"},null,40,z7)]),C("div",U7,[I[52]||(I[52]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Stagger",-1)),C("input",{type:"number",step:"0.05",value:((oe=(q=n.value.meta)==null?void 0:q.effects)==null?void 0:oe.animationStagger)||"",placeholder:"e.g. 0.1",onInput:I[21]||(I[21]=ae=>N("effects.animationStagger",parseFloat(ae.target.value))),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white"},null,40,B7)])])])]}),_:1})])):Oe("",!0),a.value?(j(),K("div",j7,[ue(u8,{actionType:n.value.actionType,href:n.value.href,gotoSlide:n.value.gotoSlide,target:n.value.target,action:n.value.action,onUpdate:w},null,8,["actionType","href","gotoSlide","target","action"])])):Oe("",!0),(j(!0),K(Ue,null,It(p.value,(V,M)=>(j(),K("div",{key:M,class:"space-y-2"},[C("div",H7,[C("span",G7,Ie(re(TI)(M)),1),C("button",{onClick:H=>v(M),class:"text-[10px] px-2 py-0.5 bg-blue-600 hover:bg-blue-500 rounded text-white"},[...I[53]||(I[53]=[C("i",{class:"ph-thin ph-plus mr-1"},null,-1),bt("Add ",-1)])],8,W7)]),(j(!0),K(Ue,null,It(V,(H,G)=>(j(),K("div",{key:G,class:"flex gap-1"},[C("input",{type:"text",value:H,onInput:q=>$(M,G,q.target.value),class:"flex-1 bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-white focus:border-blue-500 focus:outline-none"},null,40,K7),C("button",{onClick:q=>O(M,G),class:"w-6 h-6 flex items-center justify-center text-red-400 hover:text-red-300"},[...I[54]||(I[54]=[C("i",{class:"ph-thin ph-trash text-[10px]"},null,-1)])],8,Z7)]))),128))]))),128)),(j(!0),K(Ue,null,It(g.value,(V,M)=>(j(),K("div",{key:M,class:"space-y-2"},[C("div",X7,[C("span",Y7,Ie(M)+" ("+Ie(V.length)+")",1),C("button",{onClick:H=>y(M),class:"text-[10px] px-2 py-0.5 bg-blue-600 hover:bg-blue-500 rounded text-white"},[...I[55]||(I[55]=[C("i",{class:"ph-thin ph-plus mr-1"},null,-1),bt("Add ",-1)])],8,J7)]),(j(!0),K(Ue,null,It(V,(H,G)=>(j(),K("div",{key:G,class:"bg-[#1a1a1a] border border-[#333] rounded p-2 space-y-2"},[C("div",Q7,[C("span",q7,Ie(m(H,G)),1),C("div",ej,[C("button",{onClick:q=>k(M,G),class:"w-6 h-6 flex items-center justify-center bg-blue-600/20 text-blue-400 hover:bg-blue-600 hover:text-white rounded transition-colors",title:"Edit Element"},[...I[56]||(I[56]=[C("i",{class:"ph-thin ph-pencil-simple text-[10px]"},null,-1)])],8,tj),C("div",nj,[G>0?(j(),K("button",{key:0,onClick:q=>A(M,G,-1),class:"h-3 flex items-center justify-center text-white/30 hover:text-white",title:"Move Up"},[...I[57]||(I[57]=[C("i",{class:"ph-thin ph-caret-up text-[8px]"},null,-1)])],8,rj)):Oe("",!0),G<V.length-1?(j(),K("button",{key:1,onClick:q=>A(M,G,1),class:"h-3 flex items-center justify-center text-white/30 hover:text-white",title:"Move Down"},[...I[58]||(I[58]=[C("i",{class:"ph-thin ph-caret-down text-[8px]"},null,-1)])],8,ij)):Oe("",!0)]),C("button",{onClick:q=>O(M,G),class:"w-6 h-6 flex items-center justify-center text-red-400 hover:text-red-300 hover:bg-red-900/30 rounded transition-colors",title:"Delete"},[...I[59]||(I[59]=[C("i",{class:"ph-thin ph-trash text-[10px]"},null,-1)])],8,oj)])])]))),128))]))),128)),r.value==="diagram"?(j(),K("div",sj,[...I[60]||(I[60]=[C("div",{class:"text-white/30 text-[10px] uppercase tracking-widest"},"Diagram Flow",-1),C("div",{class:"p-2 bg-blue-900/10 border border-blue-500/20 rounded text-[10px] text-blue-200"},[C("i",{class:"ph-thin ph-info mr-1"}),bt(" Drag nodes directly on the canvas. Add new nodes here. ")],-1)])])):Oe("",!0),C("div",{class:"pt-4 border-t border-[#333] mt-4"},[C("button",{onClick:x,class:"w-full px-3 py-2 rounded bg-red-900/30 border border-red-500/30 text-red-400 hover:bg-red-900/50 transition flex items-center justify-center gap-2"},[...I[61]||(I[61]=[C("i",{class:"ph-thin ph-trash text-xs"},null,-1),bt(" Delete Element ",-1)])])])]))])):(j(),K("div",q8,[...I[23]||(I[23]=[C("div",{class:"text-white/30 italic text-center"},[C("i",{class:"ph-thin ph-cursor text-2xl mb-2 block opacity-50"}),bt(" Select an element to edit ")],-1)])]))]))}}),lj={key:0,class:"absolute -top-5 left-0 bg-blue-500/80 text-white text-[9px] px-1.5 py-0.5 rounded font-bold uppercase tracking-wider z-20 pointer-events-none whitespace-nowrap"},uj={key:1,class:"absolute -top-5 left-0 bg-blue-500 text-white text-[10px] px-1.5 py-0.5 rounded-t font-bold uppercase tracking-wider flex items-center gap-1 z-20"},fs=Jr(Te({__name:"EditorNode",props:{path:{},label:{},resizable:{type:Boolean,default:!1}},setup(t){const e=t,n=si(),r=Z(()=>n.selection.value===e.path),i=we(!1),o=we(!1),s=Z(()=>r.value?"ring-2 ring-blue-500 ring-offset-1 ring-offset-transparent z-20 bg-blue-500/5":i.value?"ring-2 ring-dashed ring-blue-400/60 z-10 cursor-pointer":"hover:ring-2 hover:ring-dashed hover:ring-blue-400/40"),a=()=>{n.select(e.path)},l=u=>{o.value=!0;const c=u.clientX,d=p=>{p.clientX-c},h=()=>{o.value=!1,document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",h)};document.addEventListener("mousemove",d),document.addEventListener("mouseup",h)};return(u,c)=>(j(),K("div",{class:Se(["editor-node relative group outline-none transition-all duration-150",s.value]),onClick:kr(a,["stop"]),onMouseenter:c[0]||(c[0]=d=>i.value=!0),onMouseleave:c[1]||(c[1]=d=>i.value=!1)},[i.value&&!r.value?(j(),K("div",lj,Ie(t.label||"Element"),1)):Oe("",!0),r.value?(j(),K("div",uj,[C("span",null,Ie(t.label||"Element"),1)])):Oe("",!0),Mt(u.$slots,"default",{},void 0,!0),r.value&&t.resizable?(j(),K("div",{key:2,onMousedown:kr(l,["stop","prevent"]),class:Se(["absolute top-0 right-0 w-2 h-full cursor-ew-resize bg-blue-500/50 hover:bg-blue-500 transition opacity-0 group-hover:opacity-100",{"opacity-100":o.value}])},null,34)):Oe("",!0)],34))}}),[["__scopeId","data-v-d7269475"]]),cj=["src","alt"],Hh=Te({__name:"FlexImage",props:{src:{},alt:{},fill:{type:Boolean},rounded:{},containerClass:{},containerStyle:{},href:{},target:{},class:{}},setup(t){const e=t,n=we(!1),r=Z(()=>e.class||""),i=()=>{n.value=!0},o=a=>{n.value=!0,a.target.src="https://placehold.co/800x600/1a1a1a/666?text=Image+Not+Found"},s=Z(()=>e.fill!==!1&&!e.rounded?"":{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"}[e.rounded||"lg"]||"rounded-lg");return(a,l)=>(j(),$e(Xn(t.href?"a":"div"),{href:t.href||void 0,target:t.href?t.target||"_blank":void 0,rel:t.href?"noopener noreferrer":void 0,class:Se([t.containerClass,r.value,t.href&&"cursor-pointer hover:opacity-90 transition-opacity"]),style:Xe(t.containerStyle)},{default:ke(()=>[C("img",{src:t.src,alt:t.alt||"",class:Se(["w-full h-full transition-opacity duration-700",t.fill!==!1?"object-cover":"object-contain",s.value,n.value?"opacity-100":"opacity-0"]),onLoad:i,onError:o},null,42,cj)]),_:1},8,["href","target","rel","class","style"]))}}),dj=["data-split-text"],CI=Te({__name:"FlexTitle",props:{text:{},size:{},align:{},class:{}},setup(t){const e=t,n=Z(()=>e.class||""),r=Z(()=>({fontFamily:"var(--lumina-font-heading)",fontWeight:"var(--lumina-font-weight-bold)",lineHeight:"var(--lumina-leading-tight)",fontSize:{lg:"var(--lumina-text-3xl)",xl:"var(--lumina-text-4xl)","2xl":"var(--lumina-text-5xl)","3xl":"var(--lumina-text-6xl)"}[e.size||"xl"]||"var(--lumina-text-4xl)",textAlign:e.align||"left",width:"100%",letterSpacing:"var(--lumina-tracking-tighter)",color:"var(--lumina-color-text-safe, var(--lumina-color-text))"}));return(i,o)=>(j(),K("h2",{style:Xe(r.value),class:Se(["flex-title",n.value]),"data-split-text":n.value.includes("char")||n.value.includes("word")?"":null},Ie(t.text),15,dj))}}),AI=Te({__name:"FlexText",props:{text:{},align:{},muted:{type:Boolean},class:{}},setup(t){const e=t,n=Z(()=>e.class||""),r=Z(()=>({fontSize:"var(--lumina-text-lg)",lineHeight:"var(--lumina-leading-relaxed)",color:e.muted?"var(--lumina-color-text-secondary)":"var(--lumina-color-text)",opacity:e.muted?.8:1,textAlign:e.align||"left",width:"100%"}));return(i,o)=>(j(),K("p",{style:Xe(r.value),class:Se(n.value)},Ie(t.text),7))}}),fj={class:"relative z-10"},PI=Te({__name:"FlexButton",props:{label:{},action:{},actionType:{},href:{},gotoSlide:{},target:{},variant:{},fullWidth:{type:Boolean},class:{}},emits:["action"],setup(t,{emit:e}){const n=t,r=e,i=yt(vn,null),o=we(null),s=Z(()=>n.class||""),a=Z(()=>({...{padding:"var(--lumina-button-padding)",borderRadius:"var(--lumina-button-radius)",fontWeight:"var(--lumina-button-font-weight)",fontSize:"var(--lumina-text-lg)",width:n.fullWidth?"100%":"auto",position:"relative",cursor:"pointer",transition:"background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease"},...{primary:{background:"linear-gradient(to right, var(--lumina-color-primary), var(--lumina-color-secondary))",color:"var(--lumina-color-text)",boxShadow:"0 var(--lumina-space-xs) var(--lumina-space-lg) var(--lumina-shadow-color)",border:"none"},secondary:{backgroundColor:"rgba(var(--lumina-color-text-rgb), 0.1)",color:"var(--lumina-color-text)",border:"1px solid var(--lumina-color-border)"},outline:{backgroundColor:"transparent",color:"var(--lumina-color-text)",border:"2px solid var(--lumina-color-border)"},ghost:{backgroundColor:"transparent",color:"var(--lumina-color-muted)",border:"none",boxShadow:"none"}}[n.variant||"primary"]})),l=()=>{switch(o.value&&zt.fromTo(o.value,{scale:.95},{scale:1,duration:.2,ease:"back.out(2)"}),n.actionType||"event"){case"url":n.href&&window.open(n.href,n.target||"_blank");break;case"slide":n.gotoSlide!==void 0&&i&&i.goto(n.gotoSlide),r("action",{type:"goto",value:n.gotoSlide,origin:"flex-button"});break;case"download":if(n.href){const h=document.createElement("a");h.href=n.href,h.download="",h.click()}break;default:r("action",{type:"click",label:n.label,value:n.action||n.label,origin:"flex-button"})}},u=d=>{const h=o.value;if(!h)return;const p=h.getBoundingClientRect(),g=d.clientX-p.left-p.width/2,m=d.clientY-p.top-p.height/2;zt.to(h,{x:g*.3,y:m*.3,duration:.3,ease:"power2.out"})},c=()=>{o.value&&zt.to(o.value,{x:0,y:0,duration:.8,ease:"elastic.out(1, 0.4)"})};return(d,h)=>(j(),K("button",{ref_key:"btnRef",ref:o,class:Se(["flex-button",t.variant,s.value]),style:Xe(a.value),onClick:l,onMousemove:u,onMouseleave:c},[C("span",fj,Ie(t.label),1)],38))}}),kI=Te({__name:"FlexBullets",props:{items:{},class:{}},setup(t){const e=t,n=Z(()=>e.class||""),r={display:"flex",flexDirection:"column",gap:"var(--lumina-space-sm)",width:"100%"},i={display:"flex",alignItems:"flex-start",gap:"var(--lumina-space-sm)",fontSize:"var(--lumina-text-lg)",color:"var(--lumina-color-text-safe, var(--lumina-color-text))",opacity:.9},o={width:"var(--lumina-space-sm)",height:"var(--lumina-space-sm)",borderRadius:"var(--lumina-radius-full)",backgroundColor:"var(--lumina-color-primary)",marginTop:"var(--lumina-space-sm)",flexShrink:0,boxShadow:"0 0 var(--lumina-space-sm) rgba(var(--lumina-color-primary-rgb), 0.5)"};return(s,a)=>(j(),K("ul",{style:r,class:Se(n.value)},[(j(!0),K(Ue,null,It(t.items,(l,u)=>(j(),K("li",{key:u,style:i},[C("span",{style:o}),C("span",null,Ie(l),1)]))),128))],2))}}),OI=Te({__name:"FlexOrdered",props:{items:{},class:{}},setup(t){const e=t,n=Z(()=>e.class||""),r={display:"flex",flexDirection:"column",gap:"var(--lumina-space-sm)",width:"100%"},i={display:"flex",alignItems:"flex-start",gap:"var(--lumina-space-sm)",fontSize:"var(--lumina-text-lg)",color:"var(--lumina-color-text-safe, var(--lumina-color-text))",opacity:.9},o={fontSize:"var(--lumina-text-sm)",fontWeight:"var(--lumina-font-weight-bold)",color:"var(--lumina-color-primary)",marginTop:"2px",minWidth:"1.2em",textAlign:"right"};return(s,a)=>(j(),K("ol",{style:r,class:Se(n.value)},[(j(!0),K(Ue,null,It(t.items,(l,u)=>(j(),K("li",{key:u,style:i},[C("span",{style:o},Ie(u+1),1),C("span",null,Ie(l),1)]))),128))],2))}}),NI=Te({name:"FlexTimeline",props:["items","compact"],setup(t){return()=>qe("div",{style:{display:"flex",flexDirection:"column",gap:"var(--lumina-space-md)",width:"100%"}},(t.items||[]).map(e=>qe("div",{style:{display:"flex",gap:"var(--lumina-space-md)",alignItems:"flex-start",borderLeft:"var(--lumina-timeline-line-width) solid rgba(var(--lumina-color-primary-rgb), 0.3)",paddingLeft:"var(--lumina-space-md)"}},[qe("div",{style:{flexShrink:0,width:"calc(var(--lumina-timeline-node-size) * 0.75)",height:"calc(var(--lumina-timeline-node-size) * 0.75)",borderRadius:"var(--lumina-radius-full)",backgroundColor:"var(--lumina-color-primary)",marginLeft:"calc(-1 * var(--lumina-space-md) - var(--lumina-timeline-line-width) / 2 - var(--lumina-timeline-node-size) * 0.375)",marginTop:"var(--lumina-space-xs)",boxShadow:"0 0 var(--lumina-space-sm) rgba(var(--lumina-color-primary-rgb), 0.5)"}}),qe("div",{},[qe("span",{style:{fontSize:"var(--lumina-text-xs)",color:"var(--lumina-color-primary)",fontWeight:"var(--lumina-font-weight-bold)",textTransform:"uppercase",letterSpacing:"var(--lumina-tracking-wider)"}},e.date),qe("h4",{style:{fontWeight:"var(--lumina-font-weight-bold)",fontSize:"var(--lumina-text-lg)"}},e.title||e.t),qe("p",{style:{fontSize:"var(--lumina-text-sm)",color:"var(--lumina-color-muted)",opacity:.6}},e.description||e.desc)])])))}}),RI=Te({name:"FlexStepper",props:["items","compact"],setup(t){return()=>qe("div",{style:{display:"flex",flexDirection:"column",gap:"var(--lumina-space-md)",width:"100%"}},(t.items||[]).map(e=>qe("div",{style:{display:"flex",gap:"var(--lumina-space-md)",alignItems:"flex-start",padding:"var(--lumina-space-md)",borderRadius:"var(--lumina-radius-lg)",backgroundColor:"rgba(var(--lumina-color-text-rgb), 0.05)",border:"1px solid var(--lumina-color-border)"}},[qe("div",{style:{flexShrink:0,width:"var(--lumina-step-badge-size)",height:"var(--lumina-step-badge-size)",borderRadius:"var(--lumina-radius-lg)",background:"linear-gradient(135deg, rgba(var(--lumina-color-primary-rgb), 0.2), rgba(var(--lumina-color-secondary-rgb), 0.2))",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"var(--lumina-font-weight-bold)",color:"var(--lumina-color-primary)"}},e.step),qe("div",{},[qe("h4",{style:{fontWeight:"var(--lumina-font-weight-bold)"}},e.title||e.t),qe("p",{style:{fontSize:"var(--lumina-text-sm)",color:"var(--lumina-color-muted)",opacity:.6}},e.description||e.desc)])])))}}),So={none:"var(--lumina-space-none, 0)",xs:"var(--lumina-space-xs)",sm:"var(--lumina-space-sm)",md:"var(--lumina-space-md)",lg:"var(--lumina-space-lg)",xl:"var(--lumina-space-xl)","2xl":"var(--lumina-space-2xl)","3xl":"var(--lumina-space-3xl)","4xl":"var(--lumina-space-4xl)"},ky={auto:"auto",quarter:"25%",third:"33.333%",half:"50%","two-thirds":"66.666%","three-quarters":"75%",full:"100%"},Oy={top:"flex-start",Top:"flex-start",center:"center",Center:"center",bottom:"flex-end",Bottom:"flex-end"},Ny={left:"flex-start",Left:"flex-start",center:"center",Center:"center",right:"flex-end",Right:"flex-end"},Vc=t=>!t||t==="auto"?"flex-1":"",Ry=(t,e)=>{const n=t.size||"auto";return n==="auto"?{flex:"1 1 auto"}:{flex:`0 0 ${ky[n]}`,maxWidth:e?void 0:ky[n],maxHeight:e?ky[n]:void 0}},$I=t=>{const e=t.valign||"center",n=t.halign||"left",r=t.gap||"md",i=t.padding||"lg";return{display:"flex",flexDirection:"column",justifyContent:Oy[e],alignItems:Ny[n],gap:So[r],padding:So[i]}},DI=()=>({display:"flex",alignItems:"center",padding:So.lg}),MI=(t,e,n)=>{const r=t==="vertical"?Oy[n||"top"]:Ny[e||"left"],i=t==="vertical"?Ny[e||"left"]:Oy[n||"top"];return{justifyContent:r,alignItems:i}},hj=(t,e)=>e!==!1&&!t?"w-full h-full":{none:"w-full h-full rounded-none",sm:"w-full h-full rounded-sm",md:"w-full h-full rounded-md",lg:"w-full h-full rounded-lg",xl:"w-full h-full rounded-xl",full:"w-full h-full rounded-full"}[t||"lg"]||"w-full h-full rounded-lg",LI=Te({name:"FlexSpacer",props:["size"],setup(t){const e=So[t.size||"md"]||So.md;return()=>qe("div",{style:{height:e,width:"100%"}})}}),pj={key:0,class:"h-full w-full"},gj={key:2,class:"w-full h-full bg-gray-900 flex items-center justify-center text-white/20 rounded-lg"},mj=Te({__name:"EditorLayoutFlex",props:{data:{},slideIndex:{}},setup(t){const e=t,n=si(),r=Z(()=>e.data.elements||[]),i=Z(()=>e.data.direction==="vertical"?"flex-col":"flex-row"),o=Z(()=>({padding:So[e.data.padding||"none"]})),s=Z(()=>({gap:So[e.data.gap||"none"],...MI(e.data.direction,e.data.halign,e.data.valign)})),a=h=>Ry(h,e.data.direction==="vertical"),l=$I,u=h=>({title:CI,text:AI,image:Hh,bullets:kI,ordered:OI,button:PI,timeline:NI,stepper:RI,spacer:LI})[h]||"div",c=h=>{if(h.moved){const{oldIndex:p,newIndex:g}=h.moved;n.store.moveNode(`slides.${e.slideIndex}.elements`,p,g),n.commit()}},d=(h,p)=>{if(h.moved){const{oldIndex:g,newIndex:m}=h.moved;n.store.moveNode(`slides.${e.slideIndex}.elements.${p}.elements`,g,m),n.commit()}};return(h,p)=>(j(),K("div",{class:"w-full h-full flex items-center justify-center",style:Xe(o.value)},[ue(re(zh),{list:r.value,"item-key":"dragKey",group:{name:"elements"},onChange:c,class:Se(["flex w-full h-full max-w-7xl mx-auto",i.value]),style:Xe(s.value)},{item:ke(({element:g,index:m})=>[ue(fs,{path:`slides.${t.slideIndex}.elements.${m}`,label:g.type,resizable:!0,class:Se([re(Vc)(g.size),"relative"]),style:Xe(g.type==="content"||g.type==="image"||g.type==="video"?{...a(g),height:"100%"}:{...re(DI)(),width:"100%"})},{default:ke(()=>{var _;return[g.type==="content"?(j(),K("div",pj,[ue(re(zh),{list:g.elements,"item-key":"dragKey",group:{name:"elements"},onChange:E=>d(E,m),class:"w-full h-full flex flex-col",style:Xe([re(l)(g),{minHeight:"50px"}])},{item:ke(({element:E,index:w})=>[ue(fs,{path:`slides.${t.slideIndex}.elements.${m}.elements.${w}`,label:E.type,style:{width:"100%"}},{default:ke(()=>[(j(),$e(Xn(u(E.type)),Hp(kg(E)),null,16))]),_:2},1032,["path","label"])]),_:2},1032,["list","onChange","style"])])):g.type==="image"?(j(),$e(Hh,{key:1,src:g.src,alt:g.alt,fill:g.fill,rounded:g.rounded,"container-class":"w-full h-full"},null,8,["src","alt","fill","rounded"])):g.type==="video"?(j(),K("div",gj,[p[0]||(p[0]=C("i",{class:"ph-thin ph-play mr-2"},null,-1)),bt(" Video: "+Ie(((_=g.src)==null?void 0:_.split("/").pop())||"Unknown"),1)])):(j(),$e(Xn(u(g.type)),Hp(ao({key:3},g)),null,16))]}),_:2},1032,["path","label","class","style"])]),_:1},8,["list","class","style"])],4))}});function Gl(t,e){var r;const n=t.querySelectorAll("[data-lumina-id]");for(const i of n){const o=i.getAttribute("data-lumina-id");if(o&&((r=e[o])==null?void 0:r.visible)===!1)return!0}return!1}function vj(t,e,n){const r=yt(vn);let i=null;const o=u=>{var c;(c=t.value)==null||c.querySelectorAll("[data-split-init]").forEach(d=>{const h=d;h.hasAttribute("data-split-text")||(h.innerHTML=h.dataset.splitTextValue||h.innerText,delete h.dataset.splitInit,delete h.dataset.splitTextValue)}),u.forEach(d=>{const h=d,p=h.innerText;p&&h.dataset.splitTextValue!==p&&(h.innerHTML=p.split("").map(g=>g===" "?" ":`<span class="inline-block reveal-char">${g}</span>`).join(""),h.dataset.splitInit="true",h.dataset.splitTextValue=p,h.style.whiteSpace="normal")})},s=()=>{var h,p,g;const u=((h=e==null?void 0:e.meta)==null?void 0:h.effects)||{},c=((g=(p=r==null?void 0:r.state.deck)==null?void 0:p.meta)==null?void 0:g.effects)||{},d=(r==null?void 0:r.state.options.animation)||{};return{enabled:u.animationsEnabled??c.animationsEnabled??d.enabled??!0,type:u.animationType??c.animationType??d.type??"fade",durationIn:u.animationDuration??c.animationDuration??d.durationIn??.8,durationOut:u.animationDurationOut??c.animationDurationOut??d.durationOut??.5,stagger:u.animationStagger??c.animationStagger??d.stagger??.1,ease:u.animationEase??c.animationEase??d.ease??"power3.out"}},a=(u=!1)=>{var $;if(!t.value)return;i==null||i.revert();const c=s(),{enabled:d,type:h,durationIn:p,stagger:g,ease:m}=c,_=h==="flip",E=h==="zoom-rotate",w=h==="elastic-up",v=h==="blur",y=h==="skew",k=h==="spring"||w;if(d===!1||u){const O=[".reveal-up",".reveal-zoom",".reveal-card",".reveal-left",".reveal-right",".reveal-content > *",".flex-layout > div > *",".reveal-img",".reveal-char","[data-split-text]",".reveal-child"].join(", "),A=t.value.querySelectorAll("[data-split-text]");A.length&&o(A);const x=(($=r==null?void 0:r.state)==null?void 0:$.elementState)??{},N=Array.from(t.value.querySelectorAll(O)),P=N.filter(I=>!Gl(I,x)),b=N.filter(I=>Gl(I,x));zt.set(b,{opacity:0}),zt.set(P,{opacity:1,y:0,x:0,scale:1,filter:"blur(0px)",visibility:"visible",rotation:0,rotationY:0,skewY:0});const S=t.value.querySelectorAll(".reveal-char");S.length&&zt.set(S,{y:"0%",opacity:1,rotateX:0});return}i=zt.context(()=>{var Ee;const O=t.value,A=O.querySelectorAll("[data-split-text]");A.length&&o(A);const x=h==="fade"||v||_?0:w?100:30,N=_?90:0,P=E?-10:0,b=h==="zoom"||E?.7:1,S=v?15:0,I=y?10:0,V=[".reveal-up",".reveal-zoom",".reveal-card",".reveal-left",".reveal-right",".reveal-content > *",".flex-layout > div > *"].join(", "),M=((Ee=r==null?void 0:r.state)==null?void 0:Ee.elementState)??{},H=Array.from(O.querySelectorAll(V)).filter(de=>!de.hasAttribute("data-split-text")),G=H.filter(de=>!Gl(de,M)),q=H.filter(de=>Gl(de,M));q.length&&zt.set(q,{opacity:0});const oe=O.querySelectorAll(".reveal-char"),ae=O.querySelectorAll(".reveal-img"),he=O.querySelectorAll(".reveal-child");if(A.length&&zt.set(A,{opacity:1,visibility:"visible"}),G.length){zt.set(G,{y:x,opacity:0,scale:b,rotationY:N,rotation:P,filter:`blur(${S}px)`,skewY:I,transformPerspective:1200});const de=G.filter(fe=>fe.classList.contains("reveal-left")),ce=G.filter(fe=>fe.classList.contains("reveal-right"));de.length>0&&zt.set(de,{x:-50,y:0}),ce.length>0&&zt.set(ce,{x:50,y:0})}ae.length&&zt.set(ae,{scale:1.1,opacity:0,filter:"blur(10px)"}),oe.length&&zt.set(oe,{y:"100%",opacity:0,rotateX:-90}),he.length&&zt.set(he,{y:15,opacity:0});const xe=zt.timeline({defaults:{ease:m||(w?"elastic.out(1, 0.5)":k?"back.out(1.5)":"power3.out"),duration:p||(w?1.2:.7)},onComplete:n});ae.length&&xe.to(ae,{scale:1,opacity:1,filter:"blur(0px)",duration:(p||.7)*1.5,ease:"expo.out"},0),oe.length&&xe.to(oe,{y:"0%",opacity:1,rotateX:0,duration:(p||.7)*.8,stagger:.015,ease:"back.out(2)"},.05),G.length&&xe.to(G,{y:0,x:0,opacity:1,scale:1,rotationY:0,rotation:0,filter:"blur(0px)",skewY:0,duration:p||.7,stagger:g},.1),he.length&&xe.to(he,{y:0,opacity:1,duration:(p||.7)*.6,stagger:.05,ease:"power2.out"},.2)},t.value)},l=()=>new Promise(u=>{if(!t.value){u();return}const c=s(),{enabled:d,type:h,durationOut:p,stagger:g}=c;if(d===!1){u();return}const m=t.value,_=[".reveal-up",".reveal-zoom",".reveal-card",".reveal-left",".reveal-right",".reveal-content > *",".flex-layout > div > *"].join(", "),E=m.querySelectorAll(_),w=m.querySelectorAll(".reveal-char"),v=m.querySelectorAll(".reveal-child"),y=m.querySelector(".reveal-img"),k=zt.timeline({onComplete:u,defaults:{duration:p,ease:"power2.in"}});if(E.length){const $=h==="fade"||h==="blur"?0:h==="cascade"?-30:20;k.to(E,{opacity:0,y:$,scale:h==="zoom"?.9:1,stagger:g*.5},0)}if(w.length){const $=h==="fade"?0:"-50%";k.to(w,{opacity:0,y:$,stagger:.005,ease:"power2.in"},.1)}y&&k.to(y,{opacity:0,scale:1.05,filter:"blur(10px)",duration:p*1.2},.1),v.length&&k.to(v,{opacity:0,y:10,duration:p*.8},0),!E.length&&!w.length&&!y&&u()});return Qe(()=>{var u,c;return[e,(c=(u=r==null?void 0:r.state.deck)==null?void 0:u.meta)==null?void 0:c.effects,r==null?void 0:r.state.options.animation]},()=>{pr(()=>a(!0))},{deep:!0}),jt(()=>{a();const u=new MutationObserver(()=>{var g;const c=t.value;if(!c)return;if(s().enabled===!1){const m=[".reveal-up",".reveal-zoom",".reveal-card",".reveal-left",".reveal-right",".reveal-content > *",".flex-layout > div > *",".reveal-img",".reveal-char","[data-split-text]",".reveal-child"].join(", "),_=((g=r==null?void 0:r.state)==null?void 0:g.elementState)??{},E=Array.from(c.querySelectorAll(m)),w=E.filter(y=>!Gl(y,_)),v=E.filter(y=>Gl(y,_));v.length&&zt.set(v,{opacity:0}),w.length&&zt.set(w,{opacity:1,y:0,x:0,scale:1,filter:"blur(0px)",visibility:"visible"});return}const h=c.querySelectorAll(".reveal-up, .reveal-zoom, .reveal-card, .reveal-left, .reveal-right, .reveal-content > *, .flex-layout > div > *");Array.from(h).some(m=>m.style.opacity===""&&getComputedStyle(m).opacity==="0")&&a()});t.value&&u.observe(t.value,{childList:!0,subtree:!0}),sr(()=>u.disconnect())}),sr(()=>i==null?void 0:i.revert()),{animateIn:a,animateOut:l}}function VI(t){const e=yt(vn);if(!e)return{visible:Z(()=>!0),style:Z(()=>({})),class:Z(()=>"")};const n=Z(()=>{const o=ct(t);if(!o)return!0;const s=e.state.elementState[o];return(s==null?void 0:s.visible)!==!1}),r=Z(()=>{const o=ct(t);if(!o)return{};const s=e.state.elementState[o],a={};return(s==null?void 0:s.visible)===!1?a.opacity=0:(s==null?void 0:s.opacity)!==void 0&&(a.opacity=s.opacity),s!=null&&s.transform&&(a.transform=s.transform),s!=null&&s.style&&typeof s.style=="object"&&Object.assign(a,s.style),a}),i=Z(()=>{const o=ct(t);if(!o)return"";const s=e.state.elementState[o];return(s==null?void 0:s.class)||""});return{visible:n,style:r,class:i}}const yj=["data-lumina-id"],bj={class:"absolute inset-0 z-0 pointer-events-none overflow-hidden"},_j=["src","poster","autoplay","loop","muted"],xj={key:2,class:"absolute inset-0 bg-[var(--lumina-colors-background,black)]/30 pointer-events-none transition-opacity duration-1000"},wj={class:"relative z-10 w-full h-full"},ji=Te({__name:"BaseSlide",props:{data:{},customClass:{},slideIndex:{}},setup(t,{expose:e}){const n=t,r=Z(()=>Gt(n.data,n.slideIndex??0,["slide"])),i=VI(r),o=we(null),{animateIn:s,animateOut:a}=vj(o,n.data);e({animateIn:s,animateOut:a});const l=Z(()=>{var w,v;const E=(v=(w=n.data.meta)==null?void 0:w.colors)==null?void 0:v.background;return E?{backgroundColor:E}:{}}),u=Z(()=>n.data.background?typeof n.data.background=="string"?"image":n.data.background.type==="video"?"video":null:null),c=Z(()=>n.data.background?typeof n.data.background=="string"?n.data.background:n.data.background.src:""),d=Z(()=>{var E;return u.value!=="image"?{}:{backgroundImage:`url(${c.value})`,opacity:_.value,backgroundSize:((E=n.data.meta)==null?void 0:E.backgroundSize)||"cover"}}),h=Z(()=>{if(u.value==="video")return n.data.background.poster}),p=Z(()=>u.value!=="video"?void 0:n.data.background.autoplay??!0),g=Z(()=>u.value!=="video"?void 0:n.data.background.loop??!0),m=Z(()=>u.value!=="video"?void 0:n.data.background.muted??!0),_=Z(()=>n.data.backgroundOpacity??1);return(E,w)=>za((j(),K("div",{ref_key:"container",ref:o,class:Se(["w-full min-h-full relative text-white",[t.customClass,re(i).class].filter(Boolean)]),"data-lumina-id":r.value,style:Xe({...l.value,...re(i).style})},[C("div",bj,[u.value==="image"?(j(),K("div",{key:0,class:"absolute inset-0 bg-cover bg-center transition-opacity duration-1000",style:Xe(d.value)},null,4)):u.value==="video"?(j(),K("video",{key:1,class:"absolute inset-0 w-full h-full object-cover transition-opacity duration-1000",style:Xe({opacity:_.value}),src:c.value,poster:h.value,autoplay:p.value,loop:g.value,muted:m.value,playsinline:""},null,12,_j)):Oe("",!0),u.value==="video"?(j(),K("div",xj)):Oe("",!0),Mt(E.$slots,"background")]),C("div",wj,[Mt(E.$slots,"default")])],14,yj)),[[lf,re(i).visible]])}}),Sj=["src","poster","autoplay","loop","muted"],Ej={key:0,class:"absolute bottom-0 left-0 w-full p-4 bg-gradient-to-t from-black/80 via-black/40 to-transparent transition-opacity duration-300"},Tj={class:"flex items-center justify-between text-white"},Ij={class:"flex items-center gap-4"},Cj={class:"flex items-center gap-2 group/vol"},Aj={class:"text-xs font-mono opacity-70"},Pj={key:0,class:"absolute inset-0 flex items-center justify-center pointer-events-none"},Gh=Jr(Te({__name:"VideoPlayer",props:{src:{type:String,required:!0},poster:{type:String,default:""},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},muted:{type:Boolean,default:!1},controls:{type:Boolean,default:!0},objectFit:{type:String,default:"cover"}},setup(t){const e=t,n=we(null),r=we(!1),i=we(e.muted),o=we(1),s=we(0),a=we(0),l=we(0),u=we(!1),c=we(!1);let d;const h=Z(()=>e.objectFit==="contain"?"object-contain":"object-cover"),p=$=>{const O=Math.floor($/60),A=Math.floor($%60);return`${O}:${A.toString().padStart(2,"0")}`},g=()=>{n.value&&(n.value.paused?(n.value.play(),r.value=!0,c.value=!0):(n.value.pause(),r.value=!1))},m=()=>{n.value&&(n.value.muted=!n.value.muted,i.value=n.value.muted,i.value?o.value=0:o.value=1)},_=()=>{n.value&&(a.value=n.value.currentTime,s.value=a.value/l.value*100||0)},E=()=>{n.value&&(l.value=n.value.duration,e.autoplay&&g())},w=()=>{r.value=!1,e.loop&&n.value&&(n.value.currentTime=0,g())},v=$=>{if(!n.value)return;const O=$.currentTarget,A=$.offsetX/O.clientWidth;n.value.currentTime=A*l.value,s.value=A*100},y=()=>{if(!n.value)return;const $=n.value.parentElement;!document.fullscreenElement&&$?$.requestFullscreen():document.exitFullscreen()},k=()=>{u.value=!0,clearTimeout(d),d=setTimeout(()=>{r.value&&(u.value=!1)},3e3)};return Qe(o,$=>{n.value&&(n.value.volume=$,i.value=$===0,n.value.muted=$===0)}),jt(()=>{n.value&&(n.value.muted=e.muted,i.value=e.muted)}),($,O)=>(j(),K("div",{class:"relative w-full h-full group bg-black overflow-hidden",onMousemove:k,onMouseleave:O[1]||(O[1]=A=>u.value=!1)},[C("video",{ref_key:"videoRef",ref:n,class:Se(["w-full h-full",h.value]),src:t.src,poster:t.poster,autoplay:t.autoplay,loop:t.loop,muted:t.muted,playsinline:"",onClick:g,onTimeupdate:_,onLoadedmetadata:E,onEnded:w},null,42,Sj),ue(Xa,{name:"fade"},{default:ke(()=>[t.controls&&u.value?(j(),K("div",Ej,[C("div",{class:"w-full h-1 bg-white/20 rounded-full mb-4 cursor-pointer relative group/progress",onClick:v},[C("div",{class:"absolute top-0 left-0 h-full rounded-full transition-all duration-100",style:Xe({width:`${s.value}%`,backgroundColor:"var(--lumina-colors-primary, #3b82f6)"})},null,4),C("div",{class:"absolute top-1/2 -translate-y-1/2 w-3 h-3 bg-white rounded-full opacity-0 group-hover/progress:opacity-100 transition-opacity",style:Xe({left:`${s.value}%`})},null,4)]),C("div",Tj,[C("div",Ij,[C("button",{onClick:g,class:"hover:text-[var(--lumina-colors-primary)] transition"},[C("i",{class:Se(["ph-thin text-xl",r.value?"ph-pause":"ph-play"])},null,2)]),C("div",Cj,[C("button",{onClick:m,class:"hover:text-[var(--lumina-colors-primary)] transition w-6"},[C("i",{class:Se(["ph-thin",i.value?"ph-speaker-slash":"ph-speaker-high"])},null,2)]),za(C("input",{type:"range",min:"0",max:"1",step:"0.1","onUpdate:modelValue":O[0]||(O[0]=A=>o.value=A),class:"w-0 overflow-hidden group-hover/vol:w-20 transition-all duration-300 h-1 bg-white/20 rounded-lg appearance-none cursor-pointer [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:w-2 [&::-webkit-slider-thumb]:h-2 [&::-webkit-slider-thumb]:bg-white [&::-webkit-slider-thumb]:rounded-full"},null,512),[[Ms,o.value,void 0,{number:!0}]])]),C("span",Aj,Ie(p(a.value))+" / "+Ie(p(l.value)),1)]),C("div",{class:"flex items-center gap-4"},[C("button",{onClick:y,class:"hover:text-[var(--lumina-colors-primary)] transition"},[...O[2]||(O[2]=[C("i",{class:"ph-thin ph-corners-out"},null,-1)])])])])])):Oe("",!0)]),_:1}),t.controls&&!r.value&&!c.value?(j(),K("div",Pj,[C("div",{class:"w-16 h-16 rounded-full bg-black/50 backdrop-blur-sm border border-white/10 flex items-center justify-center text-white pointer-events-auto cursor-pointer hover:scale-110 transition duration-300",onClick:g},[...O[3]||(O[3]=[C("i",{class:"ph-thin ph-play text-2xl ml-1"},null,-1)])])])):Oe("",!0)],32))}}),[["__scopeId","data-v-a24eb9c6"]]),kj={key:0,class:"w-full h-full relative"},Oj=["src"],$y=Te({__name:"LayoutHalf",props:{data:{},slideIndex:{}},emits:["action"],setup(t){const e=t,n=yt(vn),r=we(!1),i=Z(()=>e.slideIndex??(n==null?void 0:n.state.currentIndex)??0),o=Z(()=>Gt(e.data,i.value,["media"])),s=Z(()=>Gt(e.data,i.value,["tag"])),a=Z(()=>Gt(e.data,i.value,["title"])),l=Z(()=>Gt(e.data,i.value,["paragraphs"])),u=Z(()=>Gt(e.data,i.value,["cta"])),c=Z(()=>({backgroundColor:"var(--lumina-color-background)",paddingTop:"var(--lumina-space-xl)",paddingLeft:"var(--lumina-space-3xl)",paddingRight:"var(--lumina-space-3xl)",paddingBottom:"calc(var(--lumina-space-xl) + var(--lumina-safe-area-bottom))"}));return(d,h)=>{const p=Pr("LuminaElement");return j(),$e(ji,{data:t.data,"slide-index":i.value},{default:ke(()=>[C("div",{class:Se(["w-full flex flex-col lg:block relative",t.data.sizing==="container"?"min-h-full":"min-h-screen"])},[ue(p,{id:o.value,class:Se(["relative h-[40vh] lg:h-full lg:w-1/2 overflow-hidden z-0",t.data.sizing==="container"?"lg:absolute lg:top-0":"lg:fixed lg:top-0",t.data.imageSide==="right"?"lg:right-0 order-1":"lg:left-0 order-1"])},{default:ke(()=>[h[3]||(h[3]=C("div",{class:"absolute inset-0 z-10",style:{backgroundColor:"var(--lumina-color-overlay, rgba(0,0,0,0.2))"}},null,-1)),t.data.video?(j(),K("div",kj,[ue(Gh,{class:"w-full h-full",src:t.data.video.src,poster:t.data.video.poster,autoplay:t.data.video.autoplay??!0,loop:t.data.video.loop??!0,muted:t.data.video.muted??!0,controls:t.data.video.controls,"object-fit":"cover"},null,8,["src","poster","autoplay","loop","muted","controls"])])):t.data.image?(j(),K("img",{key:1,src:t.data.image,class:Se(["w-full h-full object-cover scale-110 origin-center",t.data.imageClass||"reveal-img",r.value?"opacity-100":"opacity-0"]),style:{transition:"opacity var(--lumina-transition-duration) var(--lumina-transition-easing)"},alt:"Slide Image",onLoad:h[0]||(h[0]=g=>r.value=!0),onError:h[1]||(h[1]=g=>{r.value=!0,g.target.src="https://placehold.co/1920x1080/1a1a1a/666?text=Image+Not+Found"})},null,42,Oj)):Oe("",!0)]),_:1},8,["id","class"]),C("div",{class:Se(["relative z-10 w-full lg:w-1/2 min-h-[60vh] flex flex-col justify-center order-2",t.data.imageSide==="right"?"lg:mr-[50%]":"lg:ml-[50%]",t.data.sizing==="container"?"lg:min-h-full":"lg:min-h-screen"]),style:Xe(c.value)},[C("div",{class:Se(t.data.class||"reveal-content"),style:{maxWidth:"36rem"}},[t.data.tag?(j(),$e(p,{key:0,id:s.value,tag:"span",class:"font-bold uppercase block",style:{color:"var(--lumina-color-primary)",letterSpacing:"var(--lumina-tracking-widest)",fontSize:"var(--lumina-text-xs)",marginBottom:"var(--lumina-space-lg)"}},{default:ke(()=>[bt(Ie(t.data.tag),1)]),_:1},8,["id"])):Oe("",!0),ue(p,{id:a.value,tag:"h1",class:"font-bold",style:{fontFamily:"var(--lumina-font-heading)",color:"var(--lumina-color-text-safe, var(--lumina-color-text))",fontSize:"var(--lumina-text-6xl)",letterSpacing:"var(--lumina-tracking-tighter)",lineHeight:"var(--lumina-leading-tight)",marginBottom:"var(--lumina-space-xl)",textShadow:"0 2px 10px rgba(0,0,0,0.1)"}},{default:ke(()=>[bt(Ie(t.data.title),1)]),_:1},8,["id"]),ue(p,{id:l.value,style:{color:"var(--lumina-color-text-safe, var(--lumina-color-text))",opacity:.9,fontSize:"var(--lumina-text-lg)",lineHeight:"var(--lumina-leading-relaxed)",marginBottom:"var(--lumina-space-xl)",display:"flex",flexDirection:"column",gap:"var(--lumina-space-lg)"}},{default:ke(()=>[(j(!0),K(Ue,null,It(t.data.paragraphs,(g,m)=>(j(),K("p",{key:m},Ie(g),1))),128))]),_:1},8,["id"]),t.data.cta?(j(),$e(p,{key:1,id:u.value,style:{paddingTop:"var(--lumina-space-lg)",borderTop:"1px solid var(--lumina-color-border)"}},{default:ke(()=>[C("button",{onClick:h[2]||(h[2]=g=>d.$emit("action",{type:"cta",label:t.data.cta})),class:"font-bold flex items-center",style:{backgroundColor:"var(--lumina-color-primary)",color:"var(--lumina-color-background)",borderRadius:"var(--lumina-button-radius)",padding:"var(--lumina-button-padding)",fontWeight:"var(--lumina-button-font-weight)",gap:"var(--lumina-space-sm)",transition:"all var(--lumina-transition-duration) var(--lumina-transition-easing)"}},[bt(Ie(t.data.cta)+" ",1),h[4]||(h[4]=C("i",{class:"ph-thin ph-arrow-right"},null,-1))])]),_:1},8,["id"])):Oe("",!0)],2)],6)],2)]),_:1},8,["data","slide-index"])}}}),Dy=Te({__name:"LayoutStatement",props:{data:{},slideIndex:{}},setup(t){const e=t,n=yt(vn),r=Z(()=>e.slideIndex??(n==null?void 0:n.state.currentIndex)??0),i=Z(()=>Gt(e.data,r.value,["tag"])),o=Z(()=>Gt(e.data,r.value,["title"])),s=Z(()=>Gt(e.data,r.value,["subtitle"])),a=Z(()=>({fontSize:e.data.sizing==="container"?"var(--lumina-text-5xl)":"clamp(var(--lumina-text-4xl), 10vw, var(--lumina-text-7xl))",fontFamily:"var(--lumina-font-heading)",fontWeight:"var(--lumina-font-weight-bold)",lineHeight:"var(--lumina-leading-tight)",letterSpacing:"var(--lumina-tracking-tighter)",marginBottom:"var(--lumina-space-xl)",backgroundImage:"linear-gradient(135deg, var(--lumina-color-text-safe, var(--lumina-color-text)) 30%, #525252 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",color:"var(--lumina-color-text-safe, var(--lumina-color-text))"}));return(l,u)=>{const c=Pr("LuminaElement");return j(),$e(ji,{data:t.data,"slide-index":r.value},{default:ke(()=>[C("div",{class:Se(["flex flex-col justify-center items-center text-center relative",t.data.sizing==="container"?"h-full":"min-h-screen"]),style:{paddingTop:"var(--lumina-space-xl)",paddingLeft:"var(--lumina-space-xl)",paddingRight:"var(--lumina-space-xl)",paddingBottom:"calc(var(--lumina-space-xl) + var(--lumina-safe-area-bottom))"}},[C("div",{class:Se([t.data.class||"reveal-zoom","max-w-5xl z-10"])},[t.data.tag?(j(),$e(c,{key:0,id:i.value,tag:"span",class:"inline-block rounded-full font-medium uppercase",style:{color:"var(--lumina-color-primary)",border:"1px solid var(--lumina-color-border)",backgroundColor:"rgba(var(--lumina-color-text-rgb), 0.05)",padding:"var(--lumina-tag-padding)",fontSize:"var(--lumina-tag-font-size)",letterSpacing:"var(--lumina-tracking-widest)",marginBottom:"var(--lumina-space-xl)"}},{default:ke(()=>[bt(Ie(t.data.tag),1)]),_:1},8,["id"])):Oe("",!0),ue(c,{id:o.value,tag:"h1",style:Xe(a.value)},{default:ke(()=>[bt(Ie(t.data.title),1)]),_:1},8,["id","style"]),t.data.subtitle?(j(),$e(c,{key:1,id:s.value,tag:"p",class:"max-w-3xl mx-auto",style:{color:"var(--lumina-color-text-safe, var(--lumina-color-text))",opacity:.8,fontWeight:"normal",fontSize:"clamp(var(--lumina-text-xl), 3vw, var(--lumina-text-3xl))",lineHeight:"var(--lumina-leading-normal)"}},{default:ke(()=>[bt(Ie(t.data.subtitle),1)]),_:1},8,["id"])):Oe("",!0)],2)],2)]),_:1},8,["data","slide-index"])}}}),My=Jr(Te({__name:"LayoutFeatures",props:{data:{},slideIndex:{}},setup(t){const e=t,n=yt(vn),r=Z(()=>e.slideIndex??(n==null?void 0:n.state.currentIndex)??0),i=Z(()=>Gt(e.data,r.value,["header"])),o=s=>Gt(e.data,r.value,["features",s]);return(s,a)=>{const l=Pr("LuminaElement");return j(),$e(ji,{data:t.data,"slide-index":r.value},{default:ke(()=>[C("div",{class:Se(["features-root w-full max-w-full flex flex-col justify-center overflow-x-hidden",t.data.sizing==="container"?"min-h-full":"min-h-screen"])},[ue(l,{id:i.value,class:Se([t.data.class||"reveal-up","text-center lg:text-left max-w-6xl min-w-0"]),style:{marginBottom:"var(--lumina-space-2xl)"}},{default:ke(()=>[C("h2",{class:"font-bold break-words",style:Xe({fontFamily:"var(--lumina-font-heading)",fontSize:t.data.sizing==="container"?"var(--lumina-text-3xl)":"var(--lumina-text-5xl)",marginBottom:"var(--lumina-space-md)",letterSpacing:"var(--lumina-tracking-tighter)",color:"var(--lumina-color-text-safe, var(--lumina-color-text))",textShadow:"0 2px 10px rgba(0,0,0,0.1)"})},Ie(t.data.title),5),t.data.description?(j(),K("p",{key:0,class:"break-words",style:Xe({color:"var(--lumina-color-text-safe, var(--lumina-color-text))",opacity:.9,fontSize:t.data.sizing==="container"?"var(--lumina-text-sm)":"var(--lumina-text-xl)"})},Ie(t.data.description),5)):Oe("",!0)]),_:1},8,["id","class"]),C("div",{class:Se(["reveal-content features-grid",t.data.sizing!=="container"?"features-grid--multi":""])},[(j(!0),K(Ue,null,It(t.data.features,(u,c)=>(j(),$e(l,{key:c,id:o(c),class:Se(["glass-panel group min-w-0",u.class||"reveal-card"]),style:Xe({borderRadius:"var(--lumina-card-radius)",padding:t.data.sizing==="container"?"var(--lumina-space-lg)":"var(--lumina-card-padding)",borderTop:"1px solid var(--lumina-color-border-subtle)",transition:"all var(--lumina-transition-duration) var(--lumina-transition-easing)"})},{default:ke(()=>[C("div",{class:"flex items-center justify-center group-hover:scale-110 reveal-child shrink-0",style:Xe({color:"white",background:"linear-gradient(135deg, var(--lumina-color-primary) 0%, var(--lumina-color-secondary) 100%)",width:t.data.sizing==="container"?"var(--lumina-space-xl)":"var(--lumina-space-2xl)",height:t.data.sizing==="container"?"var(--lumina-space-xl)":"var(--lumina-space-2xl)",borderRadius:"var(--lumina-radius-xl)",marginBottom:t.data.sizing==="container"?"var(--lumina-space-md)":"var(--lumina-space-lg)",fontSize:"var(--lumina-text-xl)",boxShadow:"0 4px 12px rgba(var(--lumina-color-primary-rgb), 0.3)",transition:"all var(--lumina-transition-duration) var(--lumina-transition-easing)"})},[C("i",{class:Se(["ph-thin",(u.icon||"star").startsWith("ph-")?u.icon:`ph-${u.icon||"star"}`])},null,2)],4),C("h3",{class:"font-bold reveal-child break-words",style:Xe({color:"var(--lumina-surface-text, var(--lumina-color-text))",fontSize:t.data.sizing==="container"?"var(--lumina-text-lg)":"var(--lumina-text-2xl)",marginBottom:"var(--lumina-space-sm)"})},Ie(u.title),5),C("p",{class:"reveal-child break-words",style:Xe({color:"var(--lumina-color-text-secondary)",fontSize:t.data.sizing==="container"?"var(--lumina-text-sm)":"var(--lumina-text-base)",lineHeight:"var(--lumina-leading-relaxed)",opacity:.8})},Ie(u.desc||u.description||""),5)]),_:2},1032,["id","class","style"]))),128))],2)],2)]),_:1},8,["data","slide-index"])}}}),[["__scopeId","data-v-f4bd48db"]]),Nj={class:"relative max-w-6xl mx-auto w-full"},Rj={class:"reveal-content",style:{display:"flex",flexDirection:"column",gap:"var(--lumina-space-2xl)"}},$j={class:"font-bold uppercase mb-1",style:{color:"var(--lumina-color-primary)",letterSpacing:"var(--lumina-tracking-widest)",fontSize:"var(--lumina-text-sm)"}},Dj={class:"font-bold",style:{fontSize:"var(--lumina-text-2xl)",color:"var(--lumina-color-text-safe, var(--lumina-color-text))"}},Mj={class:"leading-relaxed",style:{color:"var(--lumina-color-text-safe, var(--lumina-color-text))",opacity:.9,fontSize:"var(--lumina-text-lg)",lineHeight:"var(--lumina-leading-relaxed)"}},Ly=Te({__name:"LayoutTimeline",props:{data:{},slideIndex:{}},setup(t){const e=t,n=yt(vn),r=Z(()=>e.slideIndex??(n==null?void 0:n.state.currentIndex)??0),i=Z(()=>Gt(e.data,r.value,["title"])),o=Z(()=>Gt(e.data,r.value,["subtitle"])),s=a=>Gt(e.data,r.value,["timeline",a]);return(a,l)=>{const u=Pr("LuminaElement");return j(),$e(ji,{data:t.data,"slide-index":r.value},{default:ke(()=>[C("div",{class:Se(["w-full flex flex-col justify-center",t.data.sizing==="container"?"min-h-full py-12 lg:py-16":"min-h-screen"]),style:{padding:"var(--lumina-space-xl) var(--lumina-space-3xl)"}},[C("div",{class:Se(["text-center mb-16",t.data.class||"reveal-up"])},[ue(u,{id:i.value,tag:"h2",class:"font-bold mb-4",style:{fontFamily:"var(--lumina-font-heading)",fontSize:"var(--lumina-text-5xl)",lineHeight:"var(--lumina-leading-tight)",letterSpacing:"var(--lumina-tracking-tighter)",color:"var(--lumina-color-text-safe, var(--lumina-color-text))",textShadow:"0 2px 10px rgba(0,0,0,0.1)"}},{default:ke(()=>[bt(Ie(t.data.title),1)]),_:1},8,["id"]),t.data.subtitle?(j(),$e(u,{key:0,id:o.value,tag:"p",style:{color:"var(--lumina-color-muted-safe, var(--lumina-color-muted))",fontSize:"var(--lumina-text-xl)",opacity:.8}},{default:ke(()=>[bt(Ie(t.data.subtitle),1)]),_:1},8,["id"])):Oe("",!0)],2),C("div",Nj,[C("div",{class:Se(["absolute left-4 md:left-1/2 top-0 bottom-0 -translate-x-1/2 origin-top",t.data.lineClass||"reveal-zoom"]),style:{width:"var(--lumina-timeline-line-width, 2px)",backgroundColor:"var(--lumina-timeline-line-color, var(--lumina-color-border))"}},null,2),C("div",Rj,[(j(!0),K(Ue,null,It(t.data.timeline,(c,d)=>(j(),$e(u,{key:d,id:s(d),class:Se(["relative flex flex-col md:flex-row gap-8 md:gap-0 items-start md:items-center",c.class||"reveal-card",d%2===0?"":"md:flex-row-reverse"])},{default:ke(()=>[C("div",{class:Se(["w-full md:w-1/2 pl-12 md:pl-0 flex flex-col justify-center",d%2===0?"md:pr-12 md:text-right md:items-end":"md:pl-12 md:text-left md:items-start"])},[C("span",$j,Ie(c.date),1),C("h3",Dj,Ie(c.title||c.t),1)],2),l[0]||(l[0]=C("div",{class:"absolute left-4 md:left-1/2 -translate-x-1/2 rounded-full z-10 animate-pulse-glow",style:{width:"var(--lumina-timeline-node-size, 0.875rem)",height:"var(--lumina-timeline-node-size, 0.875rem)",background:"linear-gradient(135deg, var(--lumina-color-primary), var(--lumina-color-secondary))",border:"3px solid var(--lumina-color-background)"}},null,-1)),C("div",{class:Se(["w-full md:w-1/2 pl-12 md:pl-0",d%2===0?"md:pl-12":"md:pr-12 md:text-right"])},[C("p",Mj,Ie(c.description||c.desc),1)],2)]),_:2},1032,["id","class"]))),128))])])],2)]),_:1},8,["data","slide-index"])}}}),Lj={class:"font-bold",style:{fontFamily:"var(--lumina-font-heading)",fontSize:"var(--lumina-text-5xl)",marginBottom:"var(--lumina-space-md)",letterSpacing:"var(--lumina-tracking-tighter)",color:"var(--lumina-color-text-safe, var(--lumina-color-text))"}},Vj={key:0,style:{color:"var(--lumina-color-text-safe, var(--lumina-color-text))",opacity:.9,fontSize:"var(--lumina-text-xl)"}},Fj={class:"reveal-content",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(280px, 1fr))",gap:"var(--lumina-space-xl)",maxWidth:"72rem",margin:"0 auto",width:"100%"}},zj={style:{display:"flex",alignItems:"center",gap:"var(--lumina-space-md)",marginBottom:"var(--lumina-space-md)"}},Uj={class:"flex items-center justify-center font-bold reveal-child",style:{width:"var(--lumina-step-badge-size, 2.5rem)",height:"var(--lumina-step-badge-size, 2.5rem)",fontSize:"var(--lumina-step-font-size, 1rem)",background:"linear-gradient(135deg, var(--lumina-color-primary), var(--lumina-color-secondary))",color:"white",borderRadius:"var(--lumina-radius-xl)",boxShadow:"0 4px 12px rgba(var(--lumina-color-primary-rgb), 0.4)"}},Bj={class:"font-bold reveal-child",style:{fontSize:"var(--lumina-text-xl)",color:"var(--lumina-surface-text, var(--lumina-color-text))"}},jj={key:0,class:"reveal-child",style:{color:"var(--lumina-color-text-secondary)",lineHeight:"var(--lumina-leading-relaxed)",fontSize:"var(--lumina-text-base)",opacity:.8}},Hj={key:1,class:"absolute top-4 right-4 reveal-child",style:{color:"var(--lumina-color-primary)",opacity:.1,fontSize:"var(--lumina-text-4xl)"}},Vy=Te({__name:"LayoutSteps",props:{data:{},slideIndex:{}},setup(t){const e=t,n=yt(vn),r=Z(()=>e.slideIndex??(n==null?void 0:n.state.currentIndex)??0),i=Z(()=>Gt(e.data,r.value,["header"])),o=s=>Gt(e.data,r.value,["steps",s]);return(s,a)=>{const l=Pr("LuminaElement");return j(),$e(ji,{data:t.data,"slide-index":r.value},{default:ke(()=>[C("div",{class:Se(["w-full flex flex-col justify-center",t.data.sizing==="container"?"min-h-full py-12 lg:py-16":"min-h-screen"]),style:{padding:"var(--lumina-space-xl) var(--lumina-space-3xl)"}},[ue(l,{id:i.value,class:Se(["text-center max-w-4xl mx-auto",t.data.class||"reveal-up"]),style:{marginBottom:"var(--lumina-space-2xl)"}},{default:ke(()=>[C("h2",Lj,Ie(t.data.title),1),t.data.subtitle?(j(),K("p",Vj,Ie(t.data.subtitle),1)):Oe("",!0)]),_:1},8,["id","class"]),C("div",Fj,[(j(!0),K(Ue,null,It(t.data.steps,(u,c)=>(j(),$e(l,{key:c,id:o(c),class:Se(["glass-panel group relative overflow-hidden",u.class||"reveal-card"]),style:{borderRadius:"var(--lumina-card-radius)",padding:"var(--lumina-card-padding)"}},{default:ke(()=>[C("div",zj,[C("div",Uj,Ie(u.step),1),C("h3",Bj,Ie(u.title),1)]),u.description?(j(),K("p",jj,Ie(u.description),1)):Oe("",!0),u.icon?(j(),K("div",Hj,[C("i",{class:Se(["ph-thin",u.icon.startsWith("ph-")?u.icon:`ph-${u.icon}`])},null,2)])):Oe("",!0)]),_:2},1032,["id","class"]))),128))])],2)]),_:1},8,["data","slide-index"])}}}),Gj={key:1,class:"flex-1 flex items-center justify-center"},Wj={key:2,class:"flex-1 flex items-center justify-center"},Kj={class:"w-full h-full min-h-[300px] lg:min-h-[400px] relative"},FI=Te({__name:"LayoutChart",props:{data:{},slideIndex:{}},setup(t){let e=null;const n=we(null),r=we(!0),i=t,o=yt(vn),s=Z(()=>i.slideIndex??(o==null?void 0:o.state.currentIndex)??0),a=Z(()=>Gt(i.data,s.value,["title"])),l=Z(()=>Gt(i.data,s.value,["subtitle"])),u=Z(()=>Gt(i.data,s.value,["chart"])),c=we(null);let d=null;const h=async()=>{try{const E=await import("chart.js");return e=E.Chart,e.register(...E.registerables),r.value=!1,!0}catch{return n.value="Chart.js is required for chart slides. Install it with: npm install chart.js",r.value=!1,console.warn("[Lumina] chart.js not found. Install with: npm install chart.js"),!1}},p=(E,w)=>{if(!E){const v=["rgba(59, 130, 246, 0.8)","rgba(16, 185, 129, 0.8)","rgba(245, 158, 11, 0.8)","rgba(239, 68, 68, 0.8)","rgba(139, 92, 246, 0.8)","rgba(236, 72, 153, 0.8)"];return v[w%v.length]}switch(E){case"c:p":return getComputedStyle(document.documentElement).getPropertyValue("--lumina-colors-primary").trim()||"#3b82f6";case"c:s":return getComputedStyle(document.documentElement).getPropertyValue("--lumina-colors-secondary").trim()||"#10b981";case"c:m":return getComputedStyle(document.documentElement).getPropertyValue("--lumina-colors-muted").trim()||"#9ca3af";default:return E&&(E.startsWith("#")||E.startsWith("rgb")||E.startsWith("hsl"))||E&&/^[a-z]+$/i.test(E)?E:p(void 0,w)}},g=(E,w)=>{var N;const v=[],y=getComputedStyle(document.body),k=y.getPropertyValue("--lumina-color-primary").trim()||"#3b82f6",$=y.getPropertyValue("--lumina-color-secondary").trim()||"#8b5cf6",O=y.getPropertyValue("--lumina-color-accent").trim()||"#06b6d4",x=[...[k,$,O],"#f59e0b","#10b981","#ef4444"];for(let P=0;P<w;P++)E.length===1&&E[0].color&&w>1?v.push(x[P%x.length]):(N=E[0])!=null&&N.color?v.push(p(E[0].color,P)):v.push(x[P%x.length]);return v},m=Z(()=>{const{chartType:E,data:w}=i.data,v=E==="pie"||E==="doughnut";return{type:E,data:{labels:w.labels,datasets:w.datasets.map((y,k)=>({label:y.label,data:y.values,backgroundColor:v?g(w.datasets,w.labels.length):p(y.color,k),borderColor:v?"rgba(0, 0, 0, 0.2)":p(y.color,k),borderWidth:2,tension:E==="line"?.4:0,fill:E==="line"?!1:void 0}))},options:{responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!0,position:"bottom",labels:{color:getComputedStyle(document.body).getPropertyValue("--lumina-color-text").trim()||"#ffffff",padding:20,font:{family:"Inter, system-ui, sans-serif",size:12}}},tooltip:{backgroundColor:"rgba(0, 0, 0, 0.8)",titleColor:"#fff",bodyColor:"rgba(255, 255, 255, 0.8)",padding:12,cornerRadius:8,titleFont:{family:"Inter, system-ui, sans-serif",weight:"bold"},bodyFont:{family:"Inter, system-ui, sans-serif"}}},scales:v?{}:{x:{grid:{color:"rgba(128, 128, 128, 0.1)"},ticks:{color:getComputedStyle(document.body).getPropertyValue("--lumina-color-text-secondary").trim()||"#e5e7eb",font:{family:"Inter, system-ui, sans-serif"}}},y:{grid:{color:"rgba(128, 128, 128, 0.1)"},ticks:{color:getComputedStyle(document.body).getPropertyValue("--lumina-color-text-secondary").trim()||"#e5e7eb",font:{family:"Inter, system-ui, sans-serif"}}}}}}}),_=()=>{if(!c.value||!e)return;d&&d.destroy();const E=c.value.getContext("2d");E&&(d=new e(E,m.value))};return jt(async()=>{await h()&&setTimeout(_,50)}),sr(()=>{d&&(d.destroy(),d=null)}),Qe(()=>i.data,()=>{_()},{deep:!0}),(E,w)=>{const v=Pr("LuminaElement");return j(),$e(ji,{data:t.data,"slide-index":s.value},{default:ke(()=>[C("div",{class:Se(["w-full flex flex-col justify-center p-8 lg:p-16",t.data.sizing==="container"?"min-h-full py-8":"min-h-screen"])},[t.data.title||t.data.subtitle?(j(),K("div",{key:0,class:Se(["text-center mb-8",t.data.class||"reveal-up"])},[t.data.title?(j(),$e(v,{key:0,id:a.value,tag:"h2",class:"font-heading font-bold mb-3",style:{fontSize:"var(--lumina-text-5xl)",letterSpacing:"var(--lumina-tracking-tighter)",color:"var(--lumina-color-text-safe, var(--lumina-color-text))",textShadow:"0 2px 10px rgba(0,0,0,0.1)"}},{default:ke(()=>[bt(Ie(t.data.title),1)]),_:1},8,["id"])):Oe("",!0),t.data.subtitle?(j(),$e(v,{key:1,id:l.value,tag:"p",class:"text-lg lg:text-xl",style:{color:"var(--lumina-color-text-safe, var(--lumina-color-text))",opacity:.8}},{default:ke(()=>[bt(Ie(t.data.subtitle),1)]),_:1},8,["id"])):Oe("",!0)],2)):Oe("",!0),n.value?(j(),K("div",Gj,[...w[0]||(w[0]=[C("div",{class:"text-center p-8 bg-red-500/10 border border-red-500/30 rounded-xl max-w-lg"},[C("svg",{class:"w-12 h-12 mx-auto mb-4 text-red-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[C("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})]),C("p",{class:"text-red-300 font-medium mb-2"},"Chart.js Required"),C("code",{class:"text-sm bg-black/30 px-3 py-1 rounded text-red-200"},"npm install chart.js")],-1)])])):r.value?(j(),K("div",Wj,[...w[1]||(w[1]=[C("div",{class:"animate-pulse text-white/40"},"Loading chart...",-1)])])):(j(),$e(v,{key:3,id:u.value,class:Se(["flex-1 flex items-center justify-center max-w-5xl mx-auto w-full",t.data.chartClass||"reveal-zoom"])},{default:ke(()=>[C("div",Kj,[C("canvas",{ref_key:"chartCanvas",ref:c},null,512)])]),_:1},8,["id","class"]))],2)]),_:1},8,["data","slide-index"])}}}),Zj={class:"h-full w-full flex items-center justify-center bg-black relative overflow-hidden group reveal-content"},Xj={class:"text-white font-bold text-xl tracking-tighter"},zI=Te({__name:"LayoutVideo",props:{data:{type:Object,required:!0},slideIndex:{type:Number,default:void 0}},setup(t){const e=t,n=yt(vn),r=Z(()=>e.slideIndex??(n==null?void 0:n.state.currentIndex)??0),i=Z(()=>Gt(e.data,r.value,["video"])),o=Z(()=>Gt(e.data,r.value,["title"]));return(s,a)=>{const l=Pr("LuminaElement");return j(),$e(ji,{data:t.data,"slide-index":r.value},{default:ke(()=>[C("div",Zj,[ue(l,{id:i.value,class:"absolute inset-0 w-full h-full"},{default:ke(()=>[ue(Gh,{class:"w-full h-full",src:t.data.video.src,poster:t.data.video.poster,autoplay:t.data.video.autoplay,loop:t.data.video.loop,muted:t.data.video.muted,controls:t.data.video.controls,"object-fit":"cover"},null,8,["src","poster","autoplay","loop","muted","controls"])]),_:1},8,["id"]),t.data.title?(j(),$e(l,{key:0,id:o.value,class:Se(["absolute bottom-12 left-12 z-10 px-6 py-4 bg-black/50 backdrop-blur-md rounded-2xl border border-white/10 opacity-0 group-hover:opacity-100 transition-opacity duration-500",t.data.class||"reveal-up"])},{default:ke(()=>[C("h2",Xj,Ie(t.data.title),1)]),_:1},8,["id","class"])):Oe("",!0)])]),_:1},8,["data","slide-index"])}}}),UI=Te({__name:"LayoutAuto",props:{data:{},slideIndex:{}},emits:["action"],setup(t,{emit:e}){const n=t,r=e,i=yt(vn),o=Z(()=>n.slideIndex??(i==null?void 0:i.state.currentIndex)??0),s=Z(()=>{var g;const a=n.data||{},l=Array.isArray(a.timeline)&&a.timeline.length>0,u=Array.isArray(a.steps)&&a.steps.length>0,c=Array.isArray(a.features)&&a.features.length>0,d=!!a.image,h=!!a.chartType&&!!((g=a.data)!=null&&g.datasets);let p="layout-statement";return h?p="layout-chart":l?p="layout-timeline":u?p="layout-steps":c?p="layout-features":d&&(p="layout-half"),p});return(a,l)=>(j(),$e(Xn(s.value),{data:t.data,"slide-index":o.value,onAction:l[0]||(l[0]=u=>r("action",u))},null,40,["data","slide-index"]))}}),Yj=["innerHTML"],BI=Jr(Te({__name:"LayoutCustom",props:{data:{},slideIndex:{}},setup(t){const e=t,n=yt(vn),r=Z(()=>e.slideIndex??(n==null?void 0:n.state.currentIndex)??0),i=`custom-slide-${Math.random().toString(36).slice(2,10)}`;function o(){if(s(),!e.data.css)return;const l=document.createElement("style");l.id=i,l.textContent=e.data.css,document.head.appendChild(l)}function s(){const l=document.getElementById(i);l&&l.remove()}jt(()=>{o()}),Qe(()=>e.data.css,()=>{o()}),sr(()=>{s()});const a=Z(()=>e.data.html?e.data.html.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"").replace(/on\w+\s*=\s*["'][^"']*["']/gi,"").replace(/javascript:/gi,""):"");return(l,u)=>(j(),$e(ji,{data:t.data,"slide-index":r.value},{default:ke(()=>[C("div",{class:Se(["custom-slide-wrapper relative w-full overflow-hidden",t.data.sizing==="container"?"h-full":"min-h-screen"])},[C("div",{class:"custom-html-content w-full h-full reveal-content",innerHTML:a.value},null,8,Yj)],2)]),_:1},8,["data","slide-index"]))}}),[["__scopeId","data-v-97e7d21d"]]);function Fc(t){return Ed()?(cu(t),!0):!1}function Eo(t){return typeof t=="function"?t():re(t)}const Jj=typeof window<"u"&&typeof document<"u",Qj=t=>typeof t<"u",qj=Object.prototype.toString,eH=t=>qj.call(t)==="[object Object]",tH=()=>{};function nH(t,e){function n(...r){return new Promise((i,o)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(i).catch(o)})}return n}const jI=t=>t();function rH(t=jI){const e=we(!0);function n(){e.value=!1}function r(){e.value=!0}const i=(...o)=>{e.value&&t(...o)};return{isActive:$a(e),pause:n,resume:r,eventFilter:i}}function HI(t,e=!1,n="Timeout"){return new Promise((r,i)=>{setTimeout(e?()=>i(n):r,t)})}function iH(t,e,n={}){const{eventFilter:r=jI,...i}=n;return Qe(t,nH(r,e),i)}function Wl(t,e,n={}){const{eventFilter:r,...i}=n,{eventFilter:o,pause:s,resume:a,isActive:l}=rH(r);return{stop:iH(t,e,{...i,eventFilter:o}),pause:s,resume:a,isActive:l}}function oH(t,e={}){if(!Yt(t))return pb(t);const n=Array.isArray(t.value)?Array.from({length:t.value.length}):{};for(const r in t.value)n[r]=ig(()=>({get(){return t.value[r]},set(i){var o;if((o=Eo(e.replaceRef))!=null?o:!0)if(Array.isArray(t.value)){const a=[...t.value];a[r]=i,t.value=a}else{const a={...t.value,[r]:i};Object.setPrototypeOf(a,Object.getPrototypeOf(t.value)),t.value=a}else t.value[r]=i}}));return n}function Fy(t,e=!1){function n(d,{flush:h="sync",deep:p=!1,timeout:g,throwOnTimeout:m}={}){let _=null;const w=[new Promise(v=>{_=Qe(t,y=>{d(y)!==e&&(_==null||_(),v(y))},{flush:h,deep:p,immediate:!0})})];return g!=null&&w.push(HI(g,m).then(()=>Eo(t)).finally(()=>_==null?void 0:_())),Promise.race(w)}function r(d,h){if(!Yt(d))return n(y=>y===d,h);const{flush:p="sync",deep:g=!1,timeout:m,throwOnTimeout:_}=h??{};let E=null;const v=[new Promise(y=>{E=Qe([t,d],([k,$])=>{e!==(k===$)&&(E==null||E(),y(k))},{flush:p,deep:g,immediate:!0})})];return m!=null&&v.push(HI(m,_).then(()=>Eo(t)).finally(()=>(E==null||E(),Eo(t)))),Promise.race(v)}function i(d){return n(h=>!!h,d)}function o(d){return r(null,d)}function s(d){return r(void 0,d)}function a(d){return n(Number.isNaN,d)}function l(d,h){return n(p=>{const g=Array.from(p);return g.includes(d)||g.includes(Eo(d))},h)}function u(d){return c(1,d)}function c(d=1,h){let p=-1;return n(()=>(p+=1,p>=d),h)}return Array.isArray(Eo(t))?{toMatch:n,toContains:l,changed:u,changedTimes:c,get not(){return Fy(t,!e)}}:{toMatch:n,toBe:r,toBeTruthy:i,toBeNull:o,toBeNaN:a,toBeUndefined:s,changed:u,changedTimes:c,get not(){return Fy(t,!e)}}}function zy(t){return Fy(t)}function sH(t){var e;const n=Eo(t);return(e=n==null?void 0:n.$el)!=null?e:n}const GI=Jj?window:void 0;function WI(...t){let e,n,r,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,i]=t,e=GI):[e,n,r,i]=t,!e)return tH;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],s=()=>{o.forEach(c=>c()),o.length=0},a=(c,d,h,p)=>(c.addEventListener(d,h,p),()=>c.removeEventListener(d,h,p)),l=Qe(()=>[sH(e),Eo(i)],([c,d])=>{if(s(),!c)return;const h=eH(d)?{...d}:d;o.push(...n.flatMap(p=>r.map(g=>a(c,p,g,h))))},{immediate:!0,flush:"post"}),u=()=>{l(),s()};return Fc(u),u}function aH(t){return typeof t=="function"?t:typeof t=="string"?e=>e.key===t:Array.isArray(t)?e=>t.includes(e.key):()=>!0}function KI(...t){let e,n,r={};t.length===3?(e=t[0],n=t[1],r=t[2]):t.length===2?typeof t[1]=="object"?(e=!0,n=t[0],r=t[1]):(e=t[0],n=t[1]):(e=!0,n=t[0]);const{target:i=GI,eventName:o="keydown",passive:s=!1,dedupe:a=!1}=r,l=aH(e);return WI(i,o,c=>{c.repeat&&Eo(a)||l(c)&&n(c)},s)}function lH(t){return JSON.parse(JSON.stringify(t))}function Uy(t,e,n,r={}){var i,o,s;const{clone:a=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:d,shouldEmit:h}=r,p=_n(),g=n||(p==null?void 0:p.emit)||((i=p==null?void 0:p.$emit)==null?void 0:i.bind(p))||((s=(o=p==null?void 0:p.proxy)==null?void 0:o.$emit)==null?void 0:s.bind(p==null?void 0:p.proxy));let m=u;e||(e="modelValue"),m=m||`update:${e.toString()}`;const _=v=>a?typeof a=="function"?a(v):lH(v):v,E=()=>Qj(t[e])?_(t[e]):d,w=v=>{h?h(v)&&g(m,v):g(m,v)};if(l){const v=E(),y=we(v);let k=!1;return Qe(()=>t[e],$=>{k||(k=!0,y.value=_($),pr(()=>k=!1))}),Qe(y,$=>{!k&&($!==t[e]||c)&&w($)},{deep:c}),y}else return Z({get(){return E()},set(v){w(v)}})}var uH={value:()=>{}};function Wh(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Kh(n)}function Kh(t){this._=t}function cH(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Kh.prototype=Wh.prototype={constructor:Kh,on:function(t,e){var n=this._,r=cH(t+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((i=(t=r[o]).type)&&(i=dH(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<s;)if(i=(t=r[o]).type)n[i]=ZI(n[i],t.name,e);else if(e==null)for(i in n)n[i]=ZI(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Kh(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,i=o.length;r<i;++r)o[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};function dH(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function ZI(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=uH,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var By="http://www.w3.org/1999/xhtml";const XI={svg:"http://www.w3.org/2000/svg",xhtml:By,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Zh(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),XI.hasOwnProperty(e)?{space:XI[e],local:t}:t}function fH(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===By&&e.documentElement.namespaceURI===By?e.createElement(t):e.createElementNS(n,t)}}function hH(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function YI(t){var e=Zh(t);return(e.local?hH:fH)(e)}function pH(){}function jy(t){return t==null?pH:function(){return this.querySelector(t)}}function gH(t){typeof t!="function"&&(t=jy(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,a=r[i]=new Array(s),l,u,c=0;c<s;++c)(l=o[c])&&(u=t.call(l,l.__data__,c,o))&&("__data__"in l&&(u.__data__=l.__data__),a[c]=u);return new zr(r,this._parents)}function mH(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function vH(){return[]}function JI(t){return t==null?vH:function(){return this.querySelectorAll(t)}}function yH(t){return function(){return mH(t.apply(this,arguments))}}function bH(t){typeof t=="function"?t=yH(t):t=JI(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var s=e[o],a=s.length,l,u=0;u<a;++u)(l=s[u])&&(r.push(t.call(l,l.__data__,u,s)),i.push(l));return new zr(r,i)}function QI(t){return function(){return this.matches(t)}}function qI(t){return function(e){return e.matches(t)}}var _H=Array.prototype.find;function xH(t){return function(){return _H.call(this.children,t)}}function wH(){return this.firstElementChild}function SH(t){return this.select(t==null?wH:xH(typeof t=="function"?t:qI(t)))}var EH=Array.prototype.filter;function TH(){return Array.from(this.children)}function IH(t){return function(){return EH.call(this.children,t)}}function CH(t){return this.selectAll(t==null?TH:IH(typeof t=="function"?t:qI(t)))}function AH(t){typeof t!="function"&&(t=QI(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,a=r[i]=[],l,u=0;u<s;++u)(l=o[u])&&t.call(l,l.__data__,u,o)&&a.push(l);return new zr(r,this._parents)}function eC(t){return new Array(t.length)}function PH(){return new zr(this._enter||this._groups.map(eC),this._parents)}function Xh(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Xh.prototype={constructor:Xh,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function kH(t){return function(){return t}}function OH(t,e,n,r,i,o){for(var s=0,a,l=e.length,u=o.length;s<u;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new Xh(t,o[s]);for(;s<l;++s)(a=e[s])&&(i[s]=a)}function NH(t,e,n,r,i,o,s){var a,l,u=new Map,c=e.length,d=o.length,h=new Array(c),p;for(a=0;a<c;++a)(l=e[a])&&(h[a]=p=s.call(l,l.__data__,a,e)+"",u.has(p)?i[a]=l:u.set(p,l));for(a=0;a<d;++a)p=s.call(t,o[a],a,o)+"",(l=u.get(p))?(r[a]=l,l.__data__=o[a],u.delete(p)):n[a]=new Xh(t,o[a]);for(a=0;a<c;++a)(l=e[a])&&u.get(h[a])===l&&(i[a]=l)}function RH(t){return t.__data__}function $H(t,e){if(!arguments.length)return Array.from(this,RH);var n=e?NH:OH,r=this._parents,i=this._groups;typeof t!="function"&&(t=kH(t));for(var o=i.length,s=new Array(o),a=new Array(o),l=new Array(o),u=0;u<o;++u){var c=r[u],d=i[u],h=d.length,p=DH(t.call(c,c&&c.__data__,u,r)),g=p.length,m=a[u]=new Array(g),_=s[u]=new Array(g),E=l[u]=new Array(h);n(c,d,m,_,E,p,e);for(var w=0,v=0,y,k;w<g;++w)if(y=m[w]){for(w>=v&&(v=w+1);!(k=_[v])&&++v<g;);y._next=k||null}}return s=new zr(s,r),s._enter=a,s._exit=l,s}function DH(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function MH(){return new zr(this._exit||this._groups.map(eC),this._parents)}function LH(t,e,n){var r=this.enter(),i=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function VH(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,s=Math.min(i,o),a=new Array(i),l=0;l<s;++l)for(var u=n[l],c=r[l],d=u.length,h=a[l]=new Array(d),p,g=0;g<d;++g)(p=u[g]||c[g])&&(h[g]=p);for(;l<i;++l)a[l]=n[l];return new zr(a,this._parents)}function FH(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,o=r[i],s;--i>=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function zH(t){t||(t=UH);function e(d,h){return d&&h?t(d.__data__,h.__data__):!d-!h}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var s=n[o],a=s.length,l=i[o]=new Array(a),u,c=0;c<a;++c)(u=s[c])&&(l[c]=u);l.sort(e)}return new zr(i,this._parents).order()}function UH(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function BH(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function jH(){return Array.from(this)}function HH(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null}function GH(){let t=0;for(const e of this)++t;return t}function WH(){return!this.node()}function KH(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,s=i.length,a;o<s;++o)(a=i[o])&&t.call(a,a.__data__,o,i);return this}function ZH(t){return function(){this.removeAttribute(t)}}function XH(t){return function(){this.removeAttributeNS(t.space,t.local)}}function YH(t,e){return function(){this.setAttribute(t,e)}}function JH(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function QH(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function qH(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function eG(t,e){var n=Zh(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?XH:ZH:typeof e=="function"?n.local?qH:QH:n.local?JH:YH)(n,e))}function tC(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function tG(t){return function(){this.style.removeProperty(t)}}function nG(t,e,n){return function(){this.style.setProperty(t,e,n)}}function rG(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function iG(t,e,n){return arguments.length>1?this.each((e==null?tG:typeof e=="function"?rG:nG)(t,e,n??"")):Kl(this.node(),t)}function Kl(t,e){return t.style.getPropertyValue(e)||tC(t).getComputedStyle(t,null).getPropertyValue(e)}function oG(t){return function(){delete this[t]}}function sG(t,e){return function(){this[t]=e}}function aG(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function lG(t,e){return arguments.length>1?this.each((e==null?oG:typeof e=="function"?aG:sG)(t,e)):this.node()[t]}function nC(t){return t.trim().split(/^|\s+/)}function Hy(t){return t.classList||new rC(t)}function rC(t){this._node=t,this._names=nC(t.getAttribute("class")||"")}rC.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function iC(t,e){for(var n=Hy(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function oC(t,e){for(var n=Hy(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function uG(t){return function(){iC(this,t)}}function cG(t){return function(){oC(this,t)}}function dG(t,e){return function(){(e.apply(this,arguments)?iC:oC)(this,t)}}function fG(t,e){var n=nC(t+"");if(arguments.length<2){for(var r=Hy(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?dG:e?uG:cG)(n,e))}function hG(){this.textContent=""}function pG(t){return function(){this.textContent=t}}function gG(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function mG(t){return arguments.length?this.each(t==null?hG:(typeof t=="function"?gG:pG)(t)):this.node().textContent}function vG(){this.innerHTML=""}function yG(t){return function(){this.innerHTML=t}}function bG(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function _G(t){return arguments.length?this.each(t==null?vG:(typeof t=="function"?bG:yG)(t)):this.node().innerHTML}function xG(){this.nextSibling&&this.parentNode.appendChild(this)}function wG(){return this.each(xG)}function SG(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function EG(){return this.each(SG)}function TG(t){var e=typeof t=="function"?t:YI(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function IG(){return null}function CG(t,e){var n=typeof t=="function"?t:YI(t),r=e==null?IG:typeof e=="function"?e:jy(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function AG(){var t=this.parentNode;t&&t.removeChild(this)}function PG(){return this.each(AG)}function kG(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function OG(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function NG(t){return this.select(t?OG:kG)}function RG(t){return arguments.length?this.property("__data__",t):this.node().__data__}function $G(t){return function(e){t.call(this,e,this.__data__)}}function DG(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function MG(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,o;n<i;++n)o=e[n],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function LG(t,e,n){return function(){var r=this.__on,i,o=$G(e);if(r){for(var s=0,a=r.length;s<a;++s)if((i=r[s]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=e;return}}this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(i):this.__on=[i]}}function VG(t,e,n){var r=DG(t+""),i,o=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,u=a.length,c;l<u;++l)for(i=0,c=a[l];i<o;++i)if((s=r[i]).type===c.type&&s.name===c.name)return c.value}return}for(a=e?LG:MG,i=0;i<o;++i)this.each(a(r[i],e,n));return this}function sC(t,e,n){var r=tC(t),i=r.CustomEvent;typeof i=="function"?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function FG(t,e){return function(){return sC(this,t,e)}}function zG(t,e){return function(){return sC(this,t,e.apply(this,arguments))}}function UG(t,e){return this.each((typeof e=="function"?zG:FG)(t,e))}function*BG(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length,s;i<o;++i)(s=r[i])&&(yield s)}var aC=[null];function zr(t,e){this._groups=t,this._parents=e}function zc(){return new zr([[document.documentElement]],aC)}function jG(){return this}zr.prototype=zc.prototype={constructor:zr,select:gH,selectAll:bH,selectChild:SH,selectChildren:CH,filter:AH,data:$H,enter:PH,exit:MH,join:LH,merge:VH,selection:jG,order:FH,sort:zH,call:BH,nodes:jH,node:HH,size:GH,empty:WH,each:KH,attr:eG,style:iG,property:lG,classed:fG,text:mG,html:_G,raise:wG,lower:EG,append:TG,insert:CG,remove:PG,clone:NG,datum:RG,on:VG,dispatch:UG,[Symbol.iterator]:BG};function yi(t){return typeof t=="string"?new zr([[document.querySelector(t)]],[document.documentElement]):new zr([[t]],aC)}function HG(t){let e;for(;e=t.sourceEvent;)t=e;return t}function Hi(t,e){if(t=HG(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}const GG={passive:!1},Uc={capture:!0,passive:!1};function Gy(t){t.stopImmediatePropagation()}function Zl(t){t.preventDefault(),t.stopImmediatePropagation()}function lC(t){var e=t.document.documentElement,n=yi(t).on("dragstart.drag",Zl,Uc);"onselectstart"in e?n.on("selectstart.drag",Zl,Uc):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function uC(t,e){var n=t.document.documentElement,r=yi(t).on("dragstart.drag",null);e&&(r.on("click.drag",Zl,Uc),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const Yh=t=>()=>t;function Wy(t,{sourceEvent:e,subject:n,target:r,identifier:i,active:o,x:s,y:a,dx:l,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}Wy.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function WG(t){return!t.ctrlKey&&!t.button}function KG(){return this.parentNode}function ZG(t,e){return e??{x:t.x,y:t.y}}function XG(){return navigator.maxTouchPoints||"ontouchstart"in this}function YG(){var t=WG,e=KG,n=ZG,r=XG,i={},o=Wh("start","drag","end"),s=0,a,l,u,c,d=0;function h(y){y.on("mousedown.drag",p).filter(r).on("touchstart.drag",_).on("touchmove.drag",E,GG).on("touchend.drag touchcancel.drag",w).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(y,k){if(!(c||!t.call(this,y,k))){var $=v(this,e.call(this,y,k),y,k,"mouse");$&&(yi(y.view).on("mousemove.drag",g,Uc).on("mouseup.drag",m,Uc),lC(y.view),Gy(y),u=!1,a=y.clientX,l=y.clientY,$("start",y))}}function g(y){if(Zl(y),!u){var k=y.clientX-a,$=y.clientY-l;u=k*k+$*$>d}i.mouse("drag",y)}function m(y){yi(y.view).on("mousemove.drag mouseup.drag",null),uC(y.view,u),Zl(y),i.mouse("end",y)}function _(y,k){if(t.call(this,y,k)){var $=y.changedTouches,O=e.call(this,y,k),A=$.length,x,N;for(x=0;x<A;++x)(N=v(this,O,y,k,$[x].identifier,$[x]))&&(Gy(y),N("start",y,$[x]))}}function E(y){var k=y.changedTouches,$=k.length,O,A;for(O=0;O<$;++O)(A=i[k[O].identifier])&&(Zl(y),A("drag",y,k[O]))}function w(y){var k=y.changedTouches,$=k.length,O,A;for(c&&clearTimeout(c),c=setTimeout(function(){c=null},500),O=0;O<$;++O)(A=i[k[O].identifier])&&(Gy(y),A("end",y,k[O]))}function v(y,k,$,O,A,x){var N=o.copy(),P=Hi(x||$,k),b,S,I;if((I=n.call(y,new Wy("beforestart",{sourceEvent:$,target:h,identifier:A,active:s,x:P[0],y:P[1],dx:0,dy:0,dispatch:N}),O))!=null)return b=I.x-P[0]||0,S=I.y-P[1]||0,function V(M,H,G){var q=P,oe;switch(M){case"start":i[A]=V,oe=s++;break;case"end":delete i[A],--s;case"drag":P=Hi(G||H,k),oe=s;break}N.call(M,y,new Wy(M,{sourceEvent:H,subject:I,target:h,identifier:A,active:oe,x:P[0]+b,y:P[1]+S,dx:P[0]-q[0],dy:P[1]-q[1],dispatch:N}),O)}}return h.filter=function(y){return arguments.length?(t=typeof y=="function"?y:Yh(!!y),h):t},h.container=function(y){return arguments.length?(e=typeof y=="function"?y:Yh(y),h):e},h.subject=function(y){return arguments.length?(n=typeof y=="function"?y:Yh(y),h):n},h.touchable=function(y){return arguments.length?(r=typeof y=="function"?y:Yh(!!y),h):r},h.on=function(){var y=o.on.apply(o,arguments);return y===o?h:y},h.clickDistance=function(y){return arguments.length?(d=(y=+y)*y,h):Math.sqrt(d)},h}function Ky(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function cC(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Bc(){}var jc=.7,Jh=1/jc,Xl="\\s*([+-]?\\d+)\\s*",Hc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Gi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",JG=/^#([0-9a-f]{3,8})$/,QG=new RegExp(`^rgb\\(${Xl},${Xl},${Xl}\\)$`),qG=new RegExp(`^rgb\\(${Gi},${Gi},${Gi}\\)$`),eW=new RegExp(`^rgba\\(${Xl},${Xl},${Xl},${Hc}\\)$`),tW=new RegExp(`^rgba\\(${Gi},${Gi},${Gi},${Hc}\\)$`),nW=new RegExp(`^hsl\\(${Hc},${Gi},${Gi}\\)$`),rW=new RegExp(`^hsla\\(${Hc},${Gi},${Gi},${Hc}\\)$`),dC={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Ky(Bc,pa,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:fC,formatHex:fC,formatHex8:iW,formatHsl:oW,formatRgb:hC,toString:hC});function fC(){return this.rgb().formatHex()}function iW(){return this.rgb().formatHex8()}function oW(){return yC(this).formatHsl()}function hC(){return this.rgb().formatRgb()}function pa(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=JG.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?pC(e):n===3?new Ar(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?Qh(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?Qh(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=QG.exec(t))?new Ar(e[1],e[2],e[3],1):(e=qG.exec(t))?new Ar(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=eW.exec(t))?Qh(e[1],e[2],e[3],e[4]):(e=tW.exec(t))?Qh(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=nW.exec(t))?vC(e[1],e[2]/100,e[3]/100,1):(e=rW.exec(t))?vC(e[1],e[2]/100,e[3]/100,e[4]):dC.hasOwnProperty(t)?pC(dC[t]):t==="transparent"?new Ar(NaN,NaN,NaN,0):null}function pC(t){return new Ar(t>>16&255,t>>8&255,t&255,1)}function Qh(t,e,n,r){return r<=0&&(t=e=n=NaN),new Ar(t,e,n,r)}function sW(t){return t instanceof Bc||(t=pa(t)),t?(t=t.rgb(),new Ar(t.r,t.g,t.b,t.opacity)):new Ar}function Zy(t,e,n,r){return arguments.length===1?sW(t):new Ar(t,e,n,r??1)}function Ar(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}Ky(Ar,Zy,cC(Bc,{brighter(t){return t=t==null?Jh:Math.pow(Jh,t),new Ar(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?jc:Math.pow(jc,t),new Ar(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Ar(ga(this.r),ga(this.g),ga(this.b),qh(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:gC,formatHex:gC,formatHex8:aW,formatRgb:mC,toString:mC}));function gC(){return`#${ma(this.r)}${ma(this.g)}${ma(this.b)}`}function aW(){return`#${ma(this.r)}${ma(this.g)}${ma(this.b)}${ma((isNaN(this.opacity)?1:this.opacity)*255)}`}function mC(){const t=qh(this.opacity);return`${t===1?"rgb(":"rgba("}${ga(this.r)}, ${ga(this.g)}, ${ga(this.b)}${t===1?")":`, ${t})`}`}function qh(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ga(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ma(t){return t=ga(t),(t<16?"0":"")+t.toString(16)}function vC(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new bi(t,e,n,r)}function yC(t){if(t instanceof bi)return new bi(t.h,t.s,t.l,t.opacity);if(t instanceof Bc||(t=pa(t)),!t)return new bi;if(t instanceof bi)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,a=o-i,l=(o+i)/2;return a?(e===o?s=(n-r)/a+(n<r)*6:n===o?s=(r-e)/a+2:s=(e-n)/a+4,a/=l<.5?o+i:2-o-i,s*=60):a=l>0&&l<1?0:s,new bi(s,a,l,t.opacity)}function lW(t,e,n,r){return arguments.length===1?yC(t):new bi(t,e,n,r??1)}function bi(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Ky(bi,lW,cC(Bc,{brighter(t){return t=t==null?Jh:Math.pow(Jh,t),new bi(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?jc:Math.pow(jc,t),new bi(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Ar(Xy(t>=240?t-240:t+120,i,r),Xy(t,i,r),Xy(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new bi(bC(this.h),ep(this.s),ep(this.l),qh(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=qh(this.opacity);return`${t===1?"hsl(":"hsla("}${bC(this.h)}, ${ep(this.s)*100}%, ${ep(this.l)*100}%${t===1?")":`, ${t})`}`}}));function bC(t){return t=(t||0)%360,t<0?t+360:t}function ep(t){return Math.max(0,Math.min(1,t||0))}function Xy(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const Yy=t=>()=>t;function uW(t,e){return function(n){return t+n*e}}function cW(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function dW(t){return(t=+t)==1?_C:function(e,n){return n-e?cW(e,n,t):Yy(isNaN(e)?n:e)}}function _C(t,e){var n=e-t;return n?uW(t,n):Yy(isNaN(t)?e:t)}const tp=function t(e){var n=dW(e);function r(i,o){var s=n((i=Zy(i)).r,(o=Zy(o)).r),a=n(i.g,o.g),l=n(i.b,o.b),u=_C(i.opacity,o.opacity);return function(c){return i.r=s(c),i.g=a(c),i.b=l(c),i.opacity=u(c),i+""}}return r.gamma=t,r}(1);function fW(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=t[i]*(1-o)+e[i]*o;return r}}function hW(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function pW(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),o=new Array(n),s;for(s=0;s<r;++s)i[s]=Gc(t[s],e[s]);for(;s<n;++s)o[s]=e[s];return function(a){for(s=0;s<r;++s)o[s]=i[s](a);return o}}function gW(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Wi(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function mW(t,e){var n={},r={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?n[i]=Gc(t[i],e[i]):r[i]=e[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Jy=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qy=new RegExp(Jy.source,"g");function vW(t){return function(){return t}}function yW(t){return function(e){return t(e)+""}}function xC(t,e){var n=Jy.lastIndex=Qy.lastIndex=0,r,i,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(r=Jy.exec(t))&&(i=Qy.exec(e));)(o=i.index)>n&&(o=e.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:Wi(r,i)})),n=Qy.lastIndex;return n<e.length&&(o=e.slice(n),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?yW(l[0].x):vW(e):(e=l.length,function(u){for(var c=0,d;c<e;++c)a[(d=l[c]).i]=d.x(u);return a.join("")})}function Gc(t,e){var n=typeof e,r;return e==null||n==="boolean"?Yy(e):(n==="number"?Wi:n==="string"?(r=pa(e))?(e=r,tp):xC:e instanceof pa?tp:e instanceof Date?gW:hW(e)?fW:Array.isArray(e)?pW:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?mW:Wi)(t,e)}var wC=180/Math.PI,qy={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function SC(t,e,n,r,i,o){var s,a,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,l/=a),t*r<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*wC,skewX:Math.atan(l)*wC,scaleX:s,scaleY:a}}var np;function bW(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?qy:SC(e.a,e.b,e.c,e.d,e.e,e.f)}function _W(t){return t==null||(np||(np=document.createElementNS("http://www.w3.org/2000/svg","g")),np.setAttribute("transform",t),!(t=np.transform.baseVal.consolidate()))?qy:(t=t.matrix,SC(t.a,t.b,t.c,t.d,t.e,t.f))}function EC(t,e,n,r){function i(u){return u.length?u.pop()+" ":""}function o(u,c,d,h,p,g){if(u!==d||c!==h){var m=p.push("translate(",null,e,null,n);g.push({i:m-4,x:Wi(u,d)},{i:m-2,x:Wi(c,h)})}else(d||h)&&p.push("translate("+d+e+h+n)}function s(u,c,d,h){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),h.push({i:d.push(i(d)+"rotate(",null,r)-2,x:Wi(u,c)})):c&&d.push(i(d)+"rotate("+c+r)}function a(u,c,d,h){u!==c?h.push({i:d.push(i(d)+"skewX(",null,r)-2,x:Wi(u,c)}):c&&d.push(i(d)+"skewX("+c+r)}function l(u,c,d,h,p,g){if(u!==d||c!==h){var m=p.push(i(p)+"scale(",null,",",null,")");g.push({i:m-4,x:Wi(u,d)},{i:m-2,x:Wi(c,h)})}else(d!==1||h!==1)&&p.push(i(p)+"scale("+d+","+h+")")}return function(u,c){var d=[],h=[];return u=t(u),c=t(c),o(u.translateX,u.translateY,c.translateX,c.translateY,d,h),s(u.rotate,c.rotate,d,h),a(u.skewX,c.skewX,d,h),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,d,h),u=c=null,function(p){for(var g=-1,m=h.length,_;++g<m;)d[(_=h[g]).i]=_.x(p);return d.join("")}}}var xW=EC(bW,"px, ","px)","deg)"),wW=EC(_W,", ",")",")"),SW=1e-12;function TC(t){return((t=Math.exp(t))+1/t)/2}function EW(t){return((t=Math.exp(t))-1/t)/2}function TW(t){return((t=Math.exp(2*t))-1)/(t+1)}const rp=function t(e,n,r){function i(o,s){var a=o[0],l=o[1],u=o[2],c=s[0],d=s[1],h=s[2],p=c-a,g=d-l,m=p*p+g*g,_,E;if(m<SW)E=Math.log(h/u)/e,_=function(O){return[a+O*p,l+O*g,u*Math.exp(e*O*E)]};else{var w=Math.sqrt(m),v=(h*h-u*u+r*m)/(2*u*n*w),y=(h*h-u*u-r*m)/(2*h*n*w),k=Math.log(Math.sqrt(v*v+1)-v),$=Math.log(Math.sqrt(y*y+1)-y);E=($-k)/e,_=function(O){var A=O*E,x=TC(k),N=u/(n*w)*(x*TW(e*A+k)-EW(k));return[a+N*p,l+N*g,u*x/TC(e*A+k)]}}return _.duration=E*1e3*e/Math.SQRT2,_}return i.rho=function(o){var s=Math.max(.001,+o),a=s*s,l=a*a;return t(s,a,l)},i}(Math.SQRT2,2,4);var Yl=0,Wc=0,Kc=0,IC=1e3,ip,Zc,op=0,va=0,sp=0,Xc=typeof performance=="object"&&performance.now?performance:Date,CC=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function e0(){return va||(CC(IW),va=Xc.now()+sp)}function IW(){va=0}function ap(){this._call=this._time=this._next=null}ap.prototype=AC.prototype={constructor:ap,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?e0():+n)+(e==null?0:+e),!this._next&&Zc!==this&&(Zc?Zc._next=this:ip=this,Zc=this),this._call=t,this._time=n,t0()},stop:function(){this._call&&(this._call=null,this._time=1/0,t0())}};function AC(t,e,n){var r=new ap;return r.restart(t,e,n),r}function CW(){e0(),++Yl;for(var t=ip,e;t;)(e=va-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Yl}function PC(){va=(op=Xc.now())+sp,Yl=Wc=0;try{CW()}finally{Yl=0,PW(),va=0}}function AW(){var t=Xc.now(),e=t-op;e>IC&&(sp-=e,op=t)}function PW(){for(var t,e=ip,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:ip=n);Zc=t,t0(r)}function t0(t){if(!Yl){Wc&&(Wc=clearTimeout(Wc));var e=t-va;e>24?(t<1/0&&(Wc=setTimeout(PC,t-Xc.now()-sp)),Kc&&(Kc=clearInterval(Kc))):(Kc||(op=Xc.now(),Kc=setInterval(AW,IC)),Yl=1,CC(PC))}}function kC(t,e,n){var r=new ap;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var kW=Wh("start","end","cancel","interrupt"),OW=[],OC=0,NC=1,n0=2,lp=3,RC=4,r0=5,up=6;function cp(t,e,n,r,i,o){var s=t.__transition;if(!s)t.__transition={};else if(n in s)return;NW(t,n,{name:e,index:r,group:i,on:kW,tween:OW,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:OC})}function i0(t,e){var n=_i(t,e);if(n.state>OC)throw new Error("too late; already scheduled");return n}function Ki(t,e){var n=_i(t,e);if(n.state>lp)throw new Error("too late; already running");return n}function _i(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function NW(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=AC(o,0,n.time);function o(u){n.state=NC,n.timer.restart(s,n.delay,n.time),n.delay<=u&&s(u-n.delay)}function s(u){var c,d,h,p;if(n.state!==NC)return l();for(c in r)if(p=r[c],p.name===n.name){if(p.state===lp)return kC(s);p.state===RC?(p.state=up,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[c]):+c<e&&(p.state=up,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete r[c])}if(kC(function(){n.state===lp&&(n.state=RC,n.timer.restart(a,n.delay,n.time),a(u))}),n.state=n0,n.on.call("start",t,t.__data__,n.index,n.group),n.state===n0){for(n.state=lp,i=new Array(h=n.tween.length),c=0,d=-1;c<h;++c)(p=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(i[++d]=p);i.length=d+1}}function a(u){for(var c=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(l),n.state=r0,1),d=-1,h=i.length;++d<h;)i[d].call(t,c);n.state===r0&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){n.state=up,n.timer.stop(),delete r[e];for(var u in r)return;delete t.__transition}}function dp(t,e){var n=t.__transition,r,i,o=!0,s;if(n){e=e==null?null:e+"";for(s in n){if((r=n[s]).name!==e){o=!1;continue}i=r.state>n0&&r.state<r0,r.state=up,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[s]}o&&delete t.__transition}}function RW(t){return this.each(function(){dp(this,t)})}function $W(t,e){var n,r;return function(){var i=Ki(this,t),o=i.tween;if(o!==n){r=n=o;for(var s=0,a=r.length;s<a;++s)if(r[s].name===e){r=r.slice(),r.splice(s,1);break}}i.tween=r}}function DW(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=Ki(this,t),s=o.tween;if(s!==r){i=(r=s).slice();for(var a={name:e,value:n},l=0,u=i.length;l<u;++l)if(i[l].name===e){i[l]=a;break}l===u&&i.push(a)}o.tween=i}}function MW(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=_i(this.node(),n).tween,i=0,o=r.length,s;i<o;++i)if((s=r[i]).name===t)return s.value;return null}return this.each((e==null?$W:DW)(n,t,e))}function o0(t,e,n){var r=t._id;return t.each(function(){var i=Ki(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return _i(i,r).value[e]}}function $C(t,e){var n;return(typeof e=="number"?Wi:e instanceof pa?tp:(n=pa(e))?(e=n,tp):xC)(t,e)}function LW(t){return function(){this.removeAttribute(t)}}function VW(t){return function(){this.removeAttributeNS(t.space,t.local)}}function FW(t,e,n){var r,i=n+"",o;return function(){var s=this.getAttribute(t);return s===i?null:s===r?o:o=e(r=s,n)}}function zW(t,e,n){var r,i=n+"",o;return function(){var s=this.getAttributeNS(t.space,t.local);return s===i?null:s===r?o:o=e(r=s,n)}}function UW(t,e,n){var r,i,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttribute(t):(s=this.getAttribute(t),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a)))}}function BW(t,e,n){var r,i,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a)))}}function jW(t,e){var n=Zh(t),r=n==="transform"?wW:$C;return this.attrTween(t,typeof e=="function"?(n.local?BW:UW)(n,r,o0(this,"attr."+t,e)):e==null?(n.local?VW:LW)(n):(n.local?zW:FW)(n,r,e))}function HW(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function GW(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function WW(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&GW(t,o)),n}return i._value=e,i}function KW(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&HW(t,o)),n}return i._value=e,i}function ZW(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=Zh(t);return this.tween(n,(r.local?WW:KW)(r,e))}function XW(t,e){return function(){i0(this,t).delay=+e.apply(this,arguments)}}function YW(t,e){return e=+e,function(){i0(this,t).delay=e}}function JW(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?XW:YW)(e,t)):_i(this.node(),e).delay}function QW(t,e){return function(){Ki(this,t).duration=+e.apply(this,arguments)}}function qW(t,e){return e=+e,function(){Ki(this,t).duration=e}}function eK(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?QW:qW)(e,t)):_i(this.node(),e).duration}function tK(t,e){if(typeof e!="function")throw new Error;return function(){Ki(this,t).ease=e}}function nK(t){var e=this._id;return arguments.length?this.each(tK(e,t)):_i(this.node(),e).ease}function rK(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;Ki(this,t).ease=n}}function iK(t){if(typeof t!="function")throw new Error;return this.each(rK(this._id,t))}function oK(t){typeof t!="function"&&(t=QI(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,a=r[i]=[],l,u=0;u<s;++u)(l=o[u])&&t.call(l,l.__data__,u,o)&&a.push(l);return new To(r,this._parents,this._name,this._id)}function sK(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),s=new Array(r),a=0;a<o;++a)for(var l=e[a],u=n[a],c=l.length,d=s[a]=new Array(c),h,p=0;p<c;++p)(h=l[p]||u[p])&&(d[p]=h);for(;a<r;++a)s[a]=e[a];return new To(s,this._parents,this._name,this._id)}function aK(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function lK(t,e,n){var r,i,o=aK(e)?i0:Ki;return function(){var s=o(this,t),a=s.on;a!==r&&(i=(r=a).copy()).on(e,n),s.on=i}}function uK(t,e){var n=this._id;return arguments.length<2?_i(this.node(),n).on.on(t):this.each(lK(n,t,e))}function cK(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function dK(){return this.on("end.remove",cK(this._id))}function fK(t){var e=this._name,n=this._id;typeof t!="function"&&(t=jy(t));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s<i;++s)for(var a=r[s],l=a.length,u=o[s]=new Array(l),c,d,h=0;h<l;++h)(c=a[h])&&(d=t.call(c,c.__data__,h,a))&&("__data__"in c&&(d.__data__=c.__data__),u[h]=d,cp(u[h],e,n,h,u,_i(c,n)));return new To(o,this._parents,e,n)}function hK(t){var e=this._name,n=this._id;typeof t!="function"&&(t=JI(t));for(var r=this._groups,i=r.length,o=[],s=[],a=0;a<i;++a)for(var l=r[a],u=l.length,c,d=0;d<u;++d)if(c=l[d]){for(var h=t.call(c,c.__data__,d,l),p,g=_i(c,n),m=0,_=h.length;m<_;++m)(p=h[m])&&cp(p,e,n,m,h,g);o.push(h),s.push(c)}return new To(o,s,e,n)}var pK=zc.prototype.constructor;function gK(){return new pK(this._groups,this._parents)}function mK(t,e){var n,r,i;return function(){var o=Kl(this,t),s=(this.style.removeProperty(t),Kl(this,t));return o===s?null:o===n&&s===r?i:i=e(n=o,r=s)}}function DC(t){return function(){this.style.removeProperty(t)}}function vK(t,e,n){var r,i=n+"",o;return function(){var s=Kl(this,t);return s===i?null:s===r?o:o=e(r=s,n)}}function yK(t,e,n){var r,i,o;return function(){var s=Kl(this,t),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),Kl(this,t))),s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a))}}function bK(t,e){var n,r,i,o="style."+e,s="end."+o,a;return function(){var l=Ki(this,t),u=l.on,c=l.value[o]==null?a||(a=DC(e)):void 0;(u!==n||i!==c)&&(r=(n=u).copy()).on(s,i=c),l.on=r}}function _K(t,e,n){var r=(t+="")=="transform"?xW:$C;return e==null?this.styleTween(t,mK(t,r)).on("end.style."+t,DC(t)):typeof e=="function"?this.styleTween(t,yK(t,r,o0(this,"style."+t,e))).each(bK(this._id,t)):this.styleTween(t,vK(t,r,e),n).on("end.style."+t,null)}function xK(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function wK(t,e,n){var r,i;function o(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&xK(t,s,n)),r}return o._value=e,o}function SK(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,wK(t,e,n??""))}function EK(t){return function(){this.textContent=t}}function TK(t){return function(){var e=t(this);this.textContent=e??""}}function IK(t){return this.tween("text",typeof t=="function"?TK(o0(this,"text",t)):EK(t==null?"":t+""))}function CK(t){return function(e){this.textContent=t.call(this,e)}}function AK(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&CK(i)),e}return r._value=t,r}function PK(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,AK(t))}function kK(){for(var t=this._name,e=this._id,n=MC(),r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,u=0;u<a;++u)if(l=s[u]){var c=_i(l,e);cp(l,t,n,u,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new To(r,this._parents,t,n)}function OK(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(o,s){var a={value:s},l={value:function(){--i===0&&o()}};n.each(function(){var u=Ki(this,r),c=u.on;c!==t&&(e=(t=c).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),u.on=e}),i===0&&o()})}var NK=0;function To(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function MC(){return++NK}var Io=zc.prototype;To.prototype={constructor:To,select:fK,selectAll:hK,selectChild:Io.selectChild,selectChildren:Io.selectChildren,filter:oK,merge:sK,selection:gK,transition:kK,call:Io.call,nodes:Io.nodes,node:Io.node,size:Io.size,empty:Io.empty,each:Io.each,on:uK,attr:jW,attrTween:ZW,style:_K,styleTween:SK,text:IK,textTween:PK,remove:dK,tween:MW,delay:JW,duration:eK,ease:nK,easeVarying:iK,end:OK,[Symbol.iterator]:Io[Symbol.iterator]};function RK(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var $K={time:null,delay:0,duration:250,ease:RK};function DK(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function MK(t){var e,n;t instanceof To?(e=t._id,t=t._name):(e=MC(),(n=$K).time=e0(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,u=0;u<a;++u)(l=s[u])&&cp(l,t,e,u,s,n||DK(l,e));return new To(r,this._parents,t,e)}zc.prototype.interrupt=RW,zc.prototype.transition=MK;const fp=t=>()=>t;function LK(t,{sourceEvent:e,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Co(t,e,n){this.k=t,this.x=e,this.y=n}Co.prototype={constructor:Co,scale:function(t){return t===1?this:new Co(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Co(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Jl=new Co(1,0,0);Co.prototype;function s0(t){t.stopImmediatePropagation()}function Yc(t){t.preventDefault(),t.stopImmediatePropagation()}function VK(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function FK(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function LC(){return this.__zoom||Jl}function zK(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function UK(){return navigator.maxTouchPoints||"ontouchstart"in this}function BK(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],s=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}function jK(){var t=VK,e=FK,n=BK,r=zK,i=UK,o=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],a=250,l=rp,u=Wh("start","zoom","end"),c,d,h,p=500,g=150,m=0,_=10;function E(I){I.property("__zoom",LC).on("wheel.zoom",A,{passive:!1}).on("mousedown.zoom",x).on("dblclick.zoom",N).filter(i).on("touchstart.zoom",P).on("touchmove.zoom",b).on("touchend.zoom touchcancel.zoom",S).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}E.transform=function(I,V,M,H){var G=I.selection?I.selection():I;G.property("__zoom",LC),I!==G?k(I,V,M,H):G.interrupt().each(function(){$(this,arguments).event(H).start().zoom(null,typeof V=="function"?V.apply(this,arguments):V).end()})},E.scaleBy=function(I,V,M,H){E.scaleTo(I,function(){var G=this.__zoom.k,q=typeof V=="function"?V.apply(this,arguments):V;return G*q},M,H)},E.scaleTo=function(I,V,M,H){E.transform(I,function(){var G=e.apply(this,arguments),q=this.__zoom,oe=M==null?y(G):typeof M=="function"?M.apply(this,arguments):M,ae=q.invert(oe),he=typeof V=="function"?V.apply(this,arguments):V;return n(v(w(q,he),oe,ae),G,s)},M,H)},E.translateBy=function(I,V,M,H){E.transform(I,function(){return n(this.__zoom.translate(typeof V=="function"?V.apply(this,arguments):V,typeof M=="function"?M.apply(this,arguments):M),e.apply(this,arguments),s)},null,H)},E.translateTo=function(I,V,M,H,G){E.transform(I,function(){var q=e.apply(this,arguments),oe=this.__zoom,ae=H==null?y(q):typeof H=="function"?H.apply(this,arguments):H;return n(Jl.translate(ae[0],ae[1]).scale(oe.k).translate(typeof V=="function"?-V.apply(this,arguments):-V,typeof M=="function"?-M.apply(this,arguments):-M),q,s)},H,G)};function w(I,V){return V=Math.max(o[0],Math.min(o[1],V)),V===I.k?I:new Co(V,I.x,I.y)}function v(I,V,M){var H=V[0]-M[0]*I.k,G=V[1]-M[1]*I.k;return H===I.x&&G===I.y?I:new Co(I.k,H,G)}function y(I){return[(+I[0][0]+ +I[1][0])/2,(+I[0][1]+ +I[1][1])/2]}function k(I,V,M,H){I.on("start.zoom",function(){$(this,arguments).event(H).start()}).on("interrupt.zoom end.zoom",function(){$(this,arguments).event(H).end()}).tween("zoom",function(){var G=this,q=arguments,oe=$(G,q).event(H),ae=e.apply(G,q),he=M==null?y(ae):typeof M=="function"?M.apply(G,q):M,xe=Math.max(ae[1][0]-ae[0][0],ae[1][1]-ae[0][1]),Ee=G.__zoom,de=typeof V=="function"?V.apply(G,q):V,ce=l(Ee.invert(he).concat(xe/Ee.k),de.invert(he).concat(xe/de.k));return function(fe){if(fe===1)fe=de;else{var Le=ce(fe),Re=xe/Le[2];fe=new Co(Re,he[0]-Le[0]*Re,he[1]-Le[1]*Re)}oe.zoom(null,fe)}})}function $(I,V,M){return!M&&I.__zooming||new O(I,V)}function O(I,V){this.that=I,this.args=V,this.active=0,this.sourceEvent=null,this.extent=e.apply(I,V),this.taps=0}O.prototype={event:function(I){return I&&(this.sourceEvent=I),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(I,V){return this.mouse&&I!=="mouse"&&(this.mouse[1]=V.invert(this.mouse[0])),this.touch0&&I!=="touch"&&(this.touch0[1]=V.invert(this.touch0[0])),this.touch1&&I!=="touch"&&(this.touch1[1]=V.invert(this.touch1[0])),this.that.__zoom=V,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(I){var V=yi(this.that).datum();u.call(I,this.that,new LK(I,{sourceEvent:this.sourceEvent,target:E,transform:this.that.__zoom,dispatch:u}),V)}};function A(I,...V){if(!t.apply(this,arguments))return;var M=$(this,V).event(I),H=this.__zoom,G=Math.max(o[0],Math.min(o[1],H.k*Math.pow(2,r.apply(this,arguments)))),q=Hi(I);if(M.wheel)(M.mouse[0][0]!==q[0]||M.mouse[0][1]!==q[1])&&(M.mouse[1]=H.invert(M.mouse[0]=q)),clearTimeout(M.wheel);else{if(H.k===G)return;M.mouse=[q,H.invert(q)],dp(this),M.start()}Yc(I),M.wheel=setTimeout(oe,g),M.zoom("mouse",n(v(w(H,G),M.mouse[0],M.mouse[1]),M.extent,s));function oe(){M.wheel=null,M.end()}}function x(I,...V){if(h||!t.apply(this,arguments))return;var M=I.currentTarget,H=$(this,V,!0).event(I),G=yi(I.view).on("mousemove.zoom",he,!0).on("mouseup.zoom",xe,!0),q=Hi(I,M),oe=I.clientX,ae=I.clientY;lC(I.view),s0(I),H.mouse=[q,this.__zoom.invert(q)],dp(this),H.start();function he(Ee){if(Yc(Ee),!H.moved){var de=Ee.clientX-oe,ce=Ee.clientY-ae;H.moved=de*de+ce*ce>m}H.event(Ee).zoom("mouse",n(v(H.that.__zoom,H.mouse[0]=Hi(Ee,M),H.mouse[1]),H.extent,s))}function xe(Ee){G.on("mousemove.zoom mouseup.zoom",null),uC(Ee.view,H.moved),Yc(Ee),H.event(Ee).end()}}function N(I,...V){if(t.apply(this,arguments)){var M=this.__zoom,H=Hi(I.changedTouches?I.changedTouches[0]:I,this),G=M.invert(H),q=M.k*(I.shiftKey?.5:2),oe=n(v(w(M,q),H,G),e.apply(this,V),s);Yc(I),a>0?yi(this).transition().duration(a).call(k,oe,H,I):yi(this).call(E.transform,oe,H,I)}}function P(I,...V){if(t.apply(this,arguments)){var M=I.touches,H=M.length,G=$(this,V,I.changedTouches.length===H).event(I),q,oe,ae,he;for(s0(I),oe=0;oe<H;++oe)ae=M[oe],he=Hi(ae,this),he=[he,this.__zoom.invert(he),ae.identifier],G.touch0?!G.touch1&&G.touch0[2]!==he[2]&&(G.touch1=he,G.taps=0):(G.touch0=he,q=!0,G.taps=1+!!c);c&&(c=clearTimeout(c)),q&&(G.taps<2&&(d=he[0],c=setTimeout(function(){c=null},p)),dp(this),G.start())}}function b(I,...V){if(this.__zooming){var M=$(this,V).event(I),H=I.changedTouches,G=H.length,q,oe,ae,he;for(Yc(I),q=0;q<G;++q)oe=H[q],ae=Hi(oe,this),M.touch0&&M.touch0[2]===oe.identifier?M.touch0[0]=ae:M.touch1&&M.touch1[2]===oe.identifier&&(M.touch1[0]=ae);if(oe=M.that.__zoom,M.touch1){var xe=M.touch0[0],Ee=M.touch0[1],de=M.touch1[0],ce=M.touch1[1],fe=(fe=de[0]-xe[0])*fe+(fe=de[1]-xe[1])*fe,Le=(Le=ce[0]-Ee[0])*Le+(Le=ce[1]-Ee[1])*Le;oe=w(oe,Math.sqrt(fe/Le)),ae=[(xe[0]+de[0])/2,(xe[1]+de[1])/2],he=[(Ee[0]+ce[0])/2,(Ee[1]+ce[1])/2]}else if(M.touch0)ae=M.touch0[0],he=M.touch0[1];else return;M.zoom("touch",n(v(oe,ae,he),M.extent,s))}}function S(I,...V){if(this.__zooming){var M=$(this,V).event(I),H=I.changedTouches,G=H.length,q,oe;for(s0(I),h&&clearTimeout(h),h=setTimeout(function(){h=null},p),q=0;q<G;++q)oe=H[q],M.touch0&&M.touch0[2]===oe.identifier?delete M.touch0:M.touch1&&M.touch1[2]===oe.identifier&&delete M.touch1;if(M.touch1&&!M.touch0&&(M.touch0=M.touch1,delete M.touch1),M.touch0)M.touch0[1]=this.__zoom.invert(M.touch0[0]);else if(M.end(),M.taps===2&&(oe=Hi(oe,this),Math.hypot(d[0]-oe[0],d[1]-oe[1])<_)){var ae=yi(this).on("dblclick.zoom");ae&&ae.apply(this,arguments)}}}return E.wheelDelta=function(I){return arguments.length?(r=typeof I=="function"?I:fp(+I),E):r},E.filter=function(I){return arguments.length?(t=typeof I=="function"?I:fp(!!I),E):t},E.touchable=function(I){return arguments.length?(i=typeof I=="function"?I:fp(!!I),E):i},E.extent=function(I){return arguments.length?(e=typeof I=="function"?I:fp([[+I[0][0],+I[0][1]],[+I[1][0],+I[1][1]]]),E):e},E.scaleExtent=function(I){return arguments.length?(o[0]=+I[0],o[1]=+I[1],E):[o[0],o[1]]},E.translateExtent=function(I){return arguments.length?(s[0][0]=+I[0][0],s[1][0]=+I[1][0],s[0][1]=+I[0][1],s[1][1]=+I[1][1],E):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},E.constrain=function(I){return arguments.length?(n=I,E):n},E.duration=function(I){return arguments.length?(a=+I,E):a},E.interpolate=function(I){return arguments.length?(l=I,E):l},E.on=function(){var I=u.on.apply(u,arguments);return I===u?E:I},E.clickDistance=function(I){return arguments.length?(m=(I=+I)*I,E):Math.sqrt(m)},E.tapDistance=function(I){return arguments.length?(_=+I,E):_},E}var Fe=(t=>(t.Left="left",t.Top="top",t.Right="right",t.Bottom="bottom",t))(Fe||{}),a0=(t=>(t.Partial="partial",t.Full="full",t))(a0||{}),ya=(t=>(t.Bezier="default",t.SimpleBezier="simple-bezier",t.Straight="straight",t.Step="step",t.SmoothStep="smoothstep",t))(ya||{}),hs=(t=>(t.Strict="strict",t.Loose="loose",t))(hs||{}),l0=(t=>(t.Arrow="arrow",t.ArrowClosed="arrowclosed",t))(l0||{}),Jc=(t=>(t.Free="free",t.Vertical="vertical",t.Horizontal="horizontal",t))(Jc||{}),VC=(t=>(t.TopLeft="top-left",t.TopCenter="top-center",t.TopRight="top-right",t.BottomLeft="bottom-left",t.BottomCenter="bottom-center",t.BottomRight="bottom-right",t))(VC||{});const HK=["INPUT","SELECT","TEXTAREA"],GK=typeof document<"u"?document:null;function u0(t){var e,n;const r=((n=(e=t.composedPath)==null?void 0:e.call(t))==null?void 0:n[0])||t.target,i=typeof(r==null?void 0:r.hasAttribute)=="function"?r.hasAttribute("contenteditable"):!1,o=typeof(r==null?void 0:r.closest)=="function"?r.closest(".nokey"):null;return HK.includes(r==null?void 0:r.nodeName)||i||!!o}function WK(t){return t.ctrlKey||t.metaKey||t.shiftKey||t.altKey}function FC(t,e,n,r){const i=e.replace("+",`
|
|
2553
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E9="1.14.0";function xo(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var wo=xo(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ec=xo(/Edge/i),tI=xo(/firefox/i),Tc=xo(/safari/i)&&!xo(/chrome/i)&&!xo(/android/i),nI=xo(/iP(ad|od|hone)/i),T9=xo(/chrome/i)&&xo(/android/i),rI={capture:!1,passive:!1};function xt(t,e,n){t.addEventListener(e,n,!wo&&rI)}function pt(t,e,n){t.removeEventListener(e,n,!wo&&rI)}function Eh(t,e){if(e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function I9(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function pi(t,e,n,r){if(t){n=n||document;do{if(e!=null&&(e[0]===">"?t.parentNode===n&&Eh(t,e):Eh(t,e))||r&&t===n)return t;if(t===n)break}while(t=I9(t))}return null}var iI=/\s+/g;function un(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(iI," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(iI," ")}}function He(t,e,n){var r=t&&t.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),e===void 0?n:n[e];!(e in r)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),r[e]=n+(typeof n=="string"?"":"px")}}function ca(t,e){var n="";if(typeof t=="string")n=t;else do{var r=He(t,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function oI(t,e,n){if(t){var r=t.getElementsByTagName(e),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function Bi(){var t=document.scrollingElement;return t||document.documentElement}function tn(t,e,n,r,i){if(!(!t.getBoundingClientRect&&t!==window)){var o,s,a,l,u,c,d;if(t!==window&&t.parentNode&&t!==Bi()?(o=t.getBoundingClientRect(),s=o.top,a=o.left,l=o.bottom,u=o.right,c=o.height,d=o.width):(s=0,a=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,d=window.innerWidth),(e||n)&&t!==window&&(i=i||t.parentNode,!wo))do if(i&&i.getBoundingClientRect&&(He(i,"transform")!=="none"||n&&He(i,"position")!=="static")){var h=i.getBoundingClientRect();s-=h.top+parseInt(He(i,"border-top-width")),a-=h.left+parseInt(He(i,"border-left-width")),l=s+o.height,u=a+o.width;break}while(i=i.parentNode);if(r&&t!==window){var p=ca(i||t),g=p&&p.a,m=p&&p.d;p&&(s/=m,a/=g,d/=g,c/=m,l=s+c,u=a+d)}return{top:s,left:a,bottom:l,right:u,width:d,height:c}}}function sI(t,e,n){for(var r=us(t,!0),i=tn(t)[e];r;){var o=tn(r)[n],s=void 0;if(s=i>=o,!s)return r;if(r===Bi())break;r=us(r,!1)}return!1}function Vl(t,e,n,r){for(var i=0,o=0,s=t.children;o<s.length;){if(s[o].style.display!=="none"&&s[o]!==nt.ghost&&(r||s[o]!==nt.dragged)&&pi(s[o],n.draggable,t,!1)){if(i===e)return s[o];i++}o++}return null}function dy(t,e){for(var n=t.lastElementChild;n&&(n===nt.ghost||He(n,"display")==="none"||e&&!Eh(n,e));)n=n.previousElementSibling;return n||null}function fn(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==nt.clone&&(!e||Eh(t,e))&&n++;return n}function aI(t){var e=0,n=0,r=Bi();if(t)do{var i=ca(t),o=i.a,s=i.d;e+=t.scrollLeft*o,n+=t.scrollTop*s}while(t!==r&&(t=t.parentNode));return[e,n]}function C9(t,e){for(var n in t)if(t.hasOwnProperty(n)){for(var r in e)if(e.hasOwnProperty(r)&&e[r]===t[n][r])return Number(n)}return-1}function us(t,e){if(!t||!t.getBoundingClientRect)return Bi();var n=t,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=He(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Bi();if(r||e)return n;r=!0}}while(n=n.parentNode);return Bi()}function A9(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function fy(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var Ic;function lI(t,e){return function(){if(!Ic){var n=arguments,r=this;n.length===1?t.call(r,n[0]):t.apply(r,n),Ic=setTimeout(function(){Ic=void 0},e)}}}function P9(){clearTimeout(Ic),Ic=void 0}function uI(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function hy(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function cI(t,e){He(t,"position","absolute"),He(t,"top",e.top),He(t,"left",e.left),He(t,"width",e.width),He(t,"height",e.height)}function py(t){He(t,"position",""),He(t,"top",""),He(t,"left",""),He(t,"width",""),He(t,"height","")}var nr="Sortable"+new Date().getTime();function k9(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(i){if(!(He(i,"display")==="none"||i===nt.ghost)){t.push({target:i,rect:tn(i)});var o=Ui({},t[t.length-1].rect);if(i.thisAnimationDuration){var s=ca(i,!0);s&&(o.top-=s.f,o.left-=s.e)}i.fromRect=o}})}},addAnimationState:function(r){t.push(r)},removeAnimationState:function(r){t.splice(C9(t,{target:r}),1)},animateAll:function(r){var i=this;if(!this.options.animation){clearTimeout(e),typeof r=="function"&&r();return}var o=!1,s=0;t.forEach(function(a){var l=0,u=a.target,c=u.fromRect,d=tn(u),h=u.prevFromRect,p=u.prevToRect,g=a.rect,m=ca(u,!0);m&&(d.top-=m.f,d.left-=m.e),u.toRect=d,u.thisAnimationDuration&&fy(h,d)&&!fy(c,d)&&(g.top-d.top)/(g.left-d.left)===(c.top-d.top)/(c.left-d.left)&&(l=N9(g,h,p,i.options)),fy(d,c)||(u.prevFromRect=c,u.prevToRect=d,l||(l=i.options.animation),i.animate(u,g,d,l)),l&&(o=!0,s=Math.max(s,l),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},l),u.thisAnimationDuration=l)}),clearTimeout(e),o?e=setTimeout(function(){typeof r=="function"&&r()},s):typeof r=="function"&&r(),t=[]},animate:function(r,i,o,s){if(s){He(r,"transition",""),He(r,"transform","");var a=ca(this.el),l=a&&a.a,u=a&&a.d,c=(i.left-o.left)/(l||1),d=(i.top-o.top)/(u||1);r.animatingX=!!c,r.animatingY=!!d,He(r,"transform","translate3d("+c+"px,"+d+"px,0)"),this.forRepaintDummy=O9(r),He(r,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),He(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){He(r,"transition",""),He(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},s)}}}}function O9(t){return t.offsetWidth}function N9(t,e,n,r){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*r.animation}var Fl=[],gy={initializeByDefault:!0},Cc={mount:function(e){for(var n in gy)gy.hasOwnProperty(n)&&!(n in e)&&(e[n]=gy[n]);Fl.forEach(function(r){if(r.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),Fl.push(e)},pluginEvent:function(e,n,r){var i=this;this.eventCanceled=!1,r.cancel=function(){i.eventCanceled=!0};var o=e+"Global";Fl.forEach(function(s){n[s.pluginName]&&(n[s.pluginName][o]&&n[s.pluginName][o](Ui({sortable:n},r)),n.options[s.pluginName]&&n[s.pluginName][e]&&n[s.pluginName][e](Ui({sortable:n},r)))})},initializePlugins:function(e,n,r,i){Fl.forEach(function(a){var l=a.pluginName;if(!(!e.options[l]&&!a.initializeByDefault)){var u=new a(e,n,e.options);u.sortable=e,u.options=e.options,e[l]=u,Qr(r,u.defaults)}});for(var o in e.options)if(e.options.hasOwnProperty(o)){var s=this.modifyOption(e,o,e.options[o]);typeof s<"u"&&(e.options[o]=s)}},getEventProperties:function(e,n){var r={};return Fl.forEach(function(i){typeof i.eventProperties=="function"&&Qr(r,i.eventProperties.call(n[i.pluginName],e))}),r},modifyOption:function(e,n,r){var i;return Fl.forEach(function(o){e[o.pluginName]&&o.optionListeners&&typeof o.optionListeners[n]=="function"&&(i=o.optionListeners[n].call(e[o.pluginName],r))}),i}};function Ac(t){var e=t.sortable,n=t.rootEl,r=t.name,i=t.targetEl,o=t.cloneEl,s=t.toEl,a=t.fromEl,l=t.oldIndex,u=t.newIndex,c=t.oldDraggableIndex,d=t.newDraggableIndex,h=t.originalEvent,p=t.putSortable,g=t.extraEventProperties;if(e=e||n&&n[nr],!!e){var m,_=e.options,E="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!wo&&!Ec?m=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(m=document.createEvent("Event"),m.initEvent(r,!0,!0)),m.to=s||n,m.from=a||n,m.item=i||n,m.clone=o,m.oldIndex=l,m.newIndex=u,m.oldDraggableIndex=c,m.newDraggableIndex=d,m.originalEvent=h,m.pullMode=p?p.lastPutMode:void 0;var w=Ui(Ui({},g),Cc.getEventProperties(r,e));for(var v in w)m[v]=w[v];n&&n.dispatchEvent(m),_[E]&&_[E].call(e,m)}}var R9=["evt"],Ir=function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.evt,o=y9(r,R9);Cc.pluginEvent.bind(nt)(e,n,Ui({dragEl:Ae,parentEl:hn,ghostEl:at,rootEl:nn,nextEl:da,lastDownEl:Th,cloneEl:pn,cloneHidden:cs,dragStarted:kc,putSortable:Hn,activeSortable:nt.active,originalEvent:i,oldIndex:zl,oldDraggableIndex:Pc,newIndex:Vr,newDraggableIndex:ds,hideGhostForTarget:vI,unhideGhostForTarget:yI,cloneNowHidden:function(){cs=!0},cloneNowShown:function(){cs=!1},dispatchSortableEvent:function(a){cr({sortable:n,name:a,originalEvent:i})}},o))};function cr(t){Ac(Ui({putSortable:Hn,cloneEl:pn,targetEl:Ae,rootEl:nn,oldIndex:zl,oldDraggableIndex:Pc,newIndex:Vr,newDraggableIndex:ds},t))}var Ae,hn,at,nn,da,Th,pn,cs,zl,Vr,Pc,ds,Ih,Hn,Ul=!1,Ch=!1,Ah=[],fa,gi,my,vy,dI,fI,kc,Bl,Oc,Nc=!1,Ph=!1,kh,rr,yy=[],by=!1,Oh=[],Nh=typeof document<"u",Rh=nI,hI=Ec||wo?"cssFloat":"float",$9=Nh&&!T9&&!nI&&"draggable"in document.createElement("div"),pI=function(){if(Nh){if(wo)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),gI=function(e,n){var r=He(e),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),o=Vl(e,0,n),s=Vl(e,1,n),a=o&&He(o),l=s&&He(s),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+tn(o).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+tn(s).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&a.float!=="none"){var d=a.float==="left"?"left":"right";return s&&(l.clear==="both"||l.clear===d)?"vertical":"horizontal"}return o&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||u>=i&&r[hI]==="none"||s&&r[hI]==="none"&&u+c>i)?"vertical":"horizontal"},D9=function(e,n,r){var i=r?e.left:e.top,o=r?e.right:e.bottom,s=r?e.width:e.height,a=r?n.left:n.top,l=r?n.right:n.bottom,u=r?n.width:n.height;return i===a||o===l||i+s/2===a+u/2},M9=function(e,n){var r;return Ah.some(function(i){var o=i[nr].options.emptyInsertThreshold;if(!(!o||dy(i))){var s=tn(i),a=e>=s.left-o&&e<=s.right+o,l=n>=s.top-o&&n<=s.bottom+o;if(a&&l)return r=i}}),r},mI=function(e){function n(o,s){return function(a,l,u,c){var d=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(o==null&&(s||d))return!0;if(o==null||o===!1)return!1;if(s&&o==="clone")return o;if(typeof o=="function")return n(o(a,l,u,c),s)(a,l,u,c);var h=(s?a:l).options.group.name;return o===!0||typeof o=="string"&&o===h||o.join&&o.indexOf(h)>-1}}var r={},i=e.group;(!i||Sh(i)!="object")&&(i={name:i}),r.name=i.name,r.checkPull=n(i.pull,!0),r.checkPut=n(i.put),r.revertClone=i.revertClone,e.group=r},vI=function(){!pI&&at&&He(at,"display","none")},yI=function(){!pI&&at&&He(at,"display","")};Nh&&document.addEventListener("click",function(t){if(Ch)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Ch=!1,!1},!0);var ha=function(e){if(Ae){e=e.touches?e.touches[0]:e;var n=M9(e.clientX,e.clientY);if(n){var r={};for(var i in e)e.hasOwnProperty(i)&&(r[i]=e[i]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[nr]._onDragOver(r)}}},L9=function(e){Ae&&Ae.parentNode[nr]._isOutsideThisEl(e.target)};function nt(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=Qr({},e),t[nr]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return gI(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,a){s.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:nt.supportPointer!==!1&&"PointerEvent"in window&&!Tc,emptyInsertThreshold:5};Cc.initializePlugins(this,t,n);for(var r in n)!(r in e)&&(e[r]=n[r]);mI(e);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=e.forceFallback?!1:$9,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?xt(t,"pointerdown",this._onTapStart):(xt(t,"mousedown",this._onTapStart),xt(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(xt(t,"dragover",this),xt(t,"dragenter",this)),Ah.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Qr(this,k9())}nt.prototype={constructor:nt,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Bl=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,Ae):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,r=this.el,i=this.options,o=i.preventOnFilter,s=e.type,a=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,l=(a||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,c=i.filter;if(G9(r),!Ae&&!(/mousedown|pointerdown/.test(s)&&e.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Tc&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=pi(l,i.draggable,r,!1),!(l&&l.animated)&&Th!==l)){if(zl=fn(l),Pc=fn(l,i.draggable),typeof c=="function"){if(c.call(this,e,l,this)){cr({sortable:n,rootEl:u,name:"filter",targetEl:l,toEl:r,fromEl:r}),Ir("filter",n,{evt:e}),o&&e.cancelable&&e.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=pi(u,d.trim(),r,!1),d)return cr({sortable:n,rootEl:d,name:"filter",targetEl:l,fromEl:r,toEl:r}),Ir("filter",n,{evt:e}),!0}),c)){o&&e.cancelable&&e.preventDefault();return}i.handle&&!pi(u,i.handle,r,!1)||this._prepareDragStart(e,a,l)}}},_prepareDragStart:function(e,n,r){var i=this,o=i.el,s=i.options,a=o.ownerDocument,l;if(r&&!Ae&&r.parentNode===o){var u=tn(r);if(nn=o,Ae=r,hn=Ae.parentNode,da=Ae.nextSibling,Th=r,Ih=s.group,nt.dragged=Ae,fa={target:Ae,clientX:(n||e).clientX,clientY:(n||e).clientY},dI=fa.clientX-u.left,fI=fa.clientY-u.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,Ae.style["will-change"]="all",l=function(){if(Ir("delayEnded",i,{evt:e}),nt.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!tI&&i.nativeDraggable&&(Ae.draggable=!0),i._triggerDragStart(e,n),cr({sortable:i,name:"choose",originalEvent:e}),un(Ae,s.chosenClass,!0)},s.ignore.split(",").forEach(function(c){oI(Ae,c.trim(),_y)}),xt(a,"dragover",ha),xt(a,"mousemove",ha),xt(a,"touchmove",ha),xt(a,"mouseup",i._onDrop),xt(a,"touchend",i._onDrop),xt(a,"touchcancel",i._onDrop),tI&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Ae.draggable=!0),Ir("delayStart",this,{evt:e}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Ec||wo))){if(nt.eventCanceled){this._onDrop();return}xt(a,"mouseup",i._disableDelayedDrag),xt(a,"touchend",i._disableDelayedDrag),xt(a,"touchcancel",i._disableDelayedDrag),xt(a,"mousemove",i._delayedDragTouchMoveHandler),xt(a,"touchmove",i._delayedDragTouchMoveHandler),s.supportPointer&&xt(a,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(l,s.delay)}else l()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Ae&&_y(Ae),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;pt(e,"mouseup",this._disableDelayedDrag),pt(e,"touchend",this._disableDelayedDrag),pt(e,"touchcancel",this._disableDelayedDrag),pt(e,"mousemove",this._delayedDragTouchMoveHandler),pt(e,"touchmove",this._delayedDragTouchMoveHandler),pt(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?xt(document,"pointermove",this._onTouchMove):n?xt(document,"touchmove",this._onTouchMove):xt(document,"mousemove",this._onTouchMove):(xt(Ae,"dragend",this),xt(nn,"dragstart",this._onDragStart));try{document.selection?Dh(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,n){if(Ul=!1,nn&&Ae){Ir("dragStarted",this,{evt:n}),this.nativeDraggable&&xt(document,"dragover",L9);var r=this.options;!e&&un(Ae,r.dragClass,!1),un(Ae,r.ghostClass,!0),nt.active=this,e&&this._appendGhost(),cr({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(gi){this._lastX=gi.clientX,this._lastY=gi.clientY,vI();for(var e=document.elementFromPoint(gi.clientX,gi.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(gi.clientX,gi.clientY),e!==n);)n=e;if(Ae.parentNode[nr]._isOutsideThisEl(e),n)do{if(n[nr]){var r=void 0;if(r=n[nr]._onDragOver({clientX:gi.clientX,clientY:gi.clientY,target:e,rootEl:n}),r&&!this.options.dragoverBubble)break}e=n}while(n=n.parentNode);yI()}},_onTouchMove:function(e){if(fa){var n=this.options,r=n.fallbackTolerance,i=n.fallbackOffset,o=e.touches?e.touches[0]:e,s=at&&ca(at,!0),a=at&&s&&s.a,l=at&&s&&s.d,u=Rh&&rr&&aI(rr),c=(o.clientX-fa.clientX+i.x)/(a||1)+(u?u[0]-yy[0]:0)/(a||1),d=(o.clientY-fa.clientY+i.y)/(l||1)+(u?u[1]-yy[1]:0)/(l||1);if(!nt.active&&!Ul){if(r&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<r)return;this._onDragStart(e,!0)}if(at){s?(s.e+=c-(my||0),s.f+=d-(vy||0)):s={a:1,b:0,c:0,d:1,e:c,f:d};var h="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");He(at,"webkitTransform",h),He(at,"mozTransform",h),He(at,"msTransform",h),He(at,"transform",h),my=c,vy=d,gi=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!at){var e=this.options.fallbackOnBody?document.body:nn,n=tn(Ae,!0,Rh,!0,e),r=this.options;if(Rh){for(rr=e;He(rr,"position")==="static"&&He(rr,"transform")==="none"&&rr!==document;)rr=rr.parentNode;rr!==document.body&&rr!==document.documentElement?(rr===document&&(rr=Bi()),n.top+=rr.scrollTop,n.left+=rr.scrollLeft):rr=Bi(),yy=aI(rr)}at=Ae.cloneNode(!0),un(at,r.ghostClass,!1),un(at,r.fallbackClass,!0),un(at,r.dragClass,!0),He(at,"transition",""),He(at,"transform",""),He(at,"box-sizing","border-box"),He(at,"margin",0),He(at,"top",n.top),He(at,"left",n.left),He(at,"width",n.width),He(at,"height",n.height),He(at,"opacity","0.8"),He(at,"position",Rh?"absolute":"fixed"),He(at,"zIndex","100000"),He(at,"pointerEvents","none"),nt.ghost=at,e.appendChild(at),He(at,"transform-origin",dI/parseInt(at.style.width)*100+"% "+fI/parseInt(at.style.height)*100+"%")}},_onDragStart:function(e,n){var r=this,i=e.dataTransfer,o=r.options;if(Ir("dragStart",this,{evt:e}),nt.eventCanceled){this._onDrop();return}Ir("setupClone",this),nt.eventCanceled||(pn=hy(Ae),pn.draggable=!1,pn.style["will-change"]="",this._hideClone(),un(pn,this.options.chosenClass,!1),nt.clone=pn),r.cloneId=Dh(function(){Ir("clone",r),!nt.eventCanceled&&(r.options.removeCloneOnHide||nn.insertBefore(pn,Ae),r._hideClone(),cr({sortable:r,name:"clone"}))}),!n&&un(Ae,o.dragClass,!0),n?(Ch=!0,r._loopId=setInterval(r._emulateDragOver,50)):(pt(document,"mouseup",r._onDrop),pt(document,"touchend",r._onDrop),pt(document,"touchcancel",r._onDrop),i&&(i.effectAllowed="move",o.setData&&o.setData.call(r,i,Ae)),xt(document,"drop",r),He(Ae,"transform","translateZ(0)")),Ul=!0,r._dragStartId=Dh(r._dragStarted.bind(r,n,e)),xt(document,"selectstart",r),kc=!0,Tc&&He(document.body,"user-select","none")},_onDragOver:function(e){var n=this.el,r=e.target,i,o,s,a=this.options,l=a.group,u=nt.active,c=Ih===l,d=a.sort,h=Hn||u,p,g=this,m=!1;if(by)return;function _(G,J){Ir(G,g,Ui({evt:e,isOwner:c,axis:p?"vertical":"horizontal",revert:s,dragRect:i,targetRect:o,canSort:d,fromSortable:h,target:r,completed:w,onMove:function(ae,de){return $h(nn,n,Ae,i,ae,tn(ae),e,de)},changed:v},J))}function E(){_("dragOverAnimationCapture"),g.captureAnimationState(),g!==h&&h.captureAnimationState()}function w(G){return _("dragOverCompleted",{insertion:G}),G&&(c?u._hideClone():u._showClone(g),g!==h&&(un(Ae,Hn?Hn.options.ghostClass:u.options.ghostClass,!1),un(Ae,a.ghostClass,!0)),Hn!==g&&g!==nt.active?Hn=g:g===nt.active&&Hn&&(Hn=null),h===g&&(g._ignoreWhileAnimating=r),g.animateAll(function(){_("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(r===Ae&&!Ae.animated||r===n&&!r.animated)&&(Bl=null),!a.dragoverBubble&&!e.rootEl&&r!==document&&(Ae.parentNode[nr]._isOutsideThisEl(e.target),!G&&ha(e)),!a.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function v(){Vr=fn(Ae),ds=fn(Ae,a.draggable),cr({sortable:g,name:"change",toEl:n,newIndex:Vr,newDraggableIndex:ds,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),r=pi(r,a.draggable,n,!0),_("dragOver"),nt.eventCanceled)return m;if(Ae.contains(e.target)||r.animated&&r.animatingX&&r.animatingY||g._ignoreWhileAnimating===r)return w(!1);if(Ch=!1,u&&!a.disabled&&(c?d||(s=hn!==nn):Hn===this||(this.lastPutMode=Ih.checkPull(this,u,Ae,e))&&l.checkPut(this,u,Ae,e))){if(p=this._getDirection(e,r)==="vertical",i=tn(Ae),_("dragOverValid"),nt.eventCanceled)return m;if(s)return hn=nn,E(),this._hideClone(),_("revert"),nt.eventCanceled||(da?nn.insertBefore(Ae,da):nn.appendChild(Ae)),w(!0);var y=dy(n,a.draggable);if(!y||U9(e,p,this)&&!y.animated){if(y===Ae)return w(!1);if(y&&n===e.target&&(r=y),r&&(o=tn(r)),$h(nn,n,Ae,i,r,o,e,!!r)!==!1)return E(),n.appendChild(Ae),hn=n,v(),w(!0)}else if(y&&z9(e,p,this)){var k=Vl(n,0,a,!0);if(k===Ae)return w(!1);if(r=k,o=tn(r),$h(nn,n,Ae,i,r,o,e,!1)!==!1)return E(),n.insertBefore(Ae,k),hn=n,v(),w(!0)}else if(r.parentNode===n){o=tn(r);var $=0,O,A=Ae.parentNode!==n,x=!D9(Ae.animated&&Ae.toRect||i,r.animated&&r.toRect||o,p),N=p?"top":"left",P=sI(r,"top","top")||sI(Ae,"top","top"),b=P?P.scrollTop:void 0;Bl!==r&&(O=o[N],Nc=!1,Ph=!x&&a.invertSwap||A),$=B9(e,r,o,p,x?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Ph,Bl===r);var S;if($!==0){var I=fn(Ae);do I-=$,S=hn.children[I];while(S&&(He(S,"display")==="none"||S===at))}if($===0||S===r)return w(!1);Bl=r,Oc=$;var V=r.nextElementSibling,M=!1;M=$===1;var H=$h(nn,n,Ae,i,r,o,e,M);if(H!==!1)return(H===1||H===-1)&&(M=H===1),by=!0,setTimeout(F9,30),E(),M&&!V?n.appendChild(Ae):r.parentNode.insertBefore(Ae,M?V:r),P&&uI(P,0,b-P.scrollTop),hn=Ae.parentNode,O!==void 0&&!Ph&&(kh=Math.abs(O-tn(r)[N])),v(),w(!0)}if(n.contains(Ae))return w(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){pt(document,"mousemove",this._onTouchMove),pt(document,"touchmove",this._onTouchMove),pt(document,"pointermove",this._onTouchMove),pt(document,"dragover",ha),pt(document,"mousemove",ha),pt(document,"touchmove",ha)},_offUpEvents:function(){var e=this.el.ownerDocument;pt(e,"mouseup",this._onDrop),pt(e,"touchend",this._onDrop),pt(e,"pointerup",this._onDrop),pt(e,"touchcancel",this._onDrop),pt(document,"selectstart",this)},_onDrop:function(e){var n=this.el,r=this.options;if(Vr=fn(Ae),ds=fn(Ae,r.draggable),Ir("drop",this,{evt:e}),hn=Ae&&Ae.parentNode,Vr=fn(Ae),ds=fn(Ae,r.draggable),nt.eventCanceled){this._nulling();return}Ul=!1,Ph=!1,Nc=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),xy(this.cloneId),xy(this._dragStartId),this.nativeDraggable&&(pt(document,"drop",this),pt(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Tc&&He(document.body,"user-select",""),He(Ae,"transform",""),e&&(kc&&(e.cancelable&&e.preventDefault(),!r.dropBubble&&e.stopPropagation()),at&&at.parentNode&&at.parentNode.removeChild(at),(nn===hn||Hn&&Hn.lastPutMode!=="clone")&&pn&&pn.parentNode&&pn.parentNode.removeChild(pn),Ae&&(this.nativeDraggable&&pt(Ae,"dragend",this),_y(Ae),Ae.style["will-change"]="",kc&&!Ul&&un(Ae,Hn?Hn.options.ghostClass:this.options.ghostClass,!1),un(Ae,this.options.chosenClass,!1),cr({sortable:this,name:"unchoose",toEl:hn,newIndex:null,newDraggableIndex:null,originalEvent:e}),nn!==hn?(Vr>=0&&(cr({rootEl:hn,name:"add",toEl:hn,fromEl:nn,originalEvent:e}),cr({sortable:this,name:"remove",toEl:hn,originalEvent:e}),cr({rootEl:hn,name:"sort",toEl:hn,fromEl:nn,originalEvent:e}),cr({sortable:this,name:"sort",toEl:hn,originalEvent:e})),Hn&&Hn.save()):Vr!==zl&&Vr>=0&&(cr({sortable:this,name:"update",toEl:hn,originalEvent:e}),cr({sortable:this,name:"sort",toEl:hn,originalEvent:e})),nt.active&&((Vr==null||Vr===-1)&&(Vr=zl,ds=Pc),cr({sortable:this,name:"end",toEl:hn,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Ir("nulling",this),nn=Ae=hn=at=da=pn=Th=cs=fa=gi=kc=Vr=ds=zl=Pc=Bl=Oc=Hn=Ih=nt.dragged=nt.ghost=nt.clone=nt.active=null,Oh.forEach(function(e){e.checked=!0}),Oh.length=my=vy=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Ae&&(this._onDragOver(e),V9(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,r=this.el.children,i=0,o=r.length,s=this.options;i<o;i++)n=r[i],pi(n,s.draggable,this.el,!1)&&e.push(n.getAttribute(s.dataIdAttr)||H9(n));return e},sort:function(e,n){var r={},i=this.el;this.toArray().forEach(function(o,s){var a=i.children[s];pi(a,this.options.draggable,i,!1)&&(r[o]=a)},this),n&&this.captureAnimationState(),e.forEach(function(o){r[o]&&(i.removeChild(r[o]),i.appendChild(r[o]))}),n&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,n){return pi(e,n||this.options.draggable,this.el,!1)},option:function(e,n){var r=this.options;if(n===void 0)return r[e];var i=Cc.modifyOption(this,e,n);typeof i<"u"?r[e]=i:r[e]=n,e==="group"&&mI(r)},destroy:function(){Ir("destroy",this);var e=this.el;e[nr]=null,pt(e,"mousedown",this._onTapStart),pt(e,"touchstart",this._onTapStart),pt(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(pt(e,"dragover",this),pt(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ah.splice(Ah.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!cs){if(Ir("hideClone",this),nt.eventCanceled)return;He(pn,"display","none"),this.options.removeCloneOnHide&&pn.parentNode&&pn.parentNode.removeChild(pn),cs=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(cs){if(Ir("showClone",this),nt.eventCanceled)return;Ae.parentNode==nn&&!this.options.group.revertClone?nn.insertBefore(pn,Ae):da?nn.insertBefore(pn,da):nn.appendChild(pn),this.options.group.revertClone&&this.animate(Ae,pn),He(pn,"display",""),cs=!1}}};function V9(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function $h(t,e,n,r,i,o,s,a){var l,u=t[nr],c=u.options.onMove,d;return window.CustomEvent&&!wo&&!Ec?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=e,l.from=t,l.dragged=n,l.draggedRect=r,l.related=i||e,l.relatedRect=o||tn(e),l.willInsertAfter=a,l.originalEvent=s,t.dispatchEvent(l),c&&(d=c.call(u,l,s)),d}function _y(t){t.draggable=!1}function F9(){by=!1}function z9(t,e,n){var r=tn(Vl(n.el,0,n.options,!0)),i=10;return e?t.clientX<r.left-i||t.clientY<r.top&&t.clientX<r.right:t.clientY<r.top-i||t.clientY<r.bottom&&t.clientX<r.left}function U9(t,e,n){var r=tn(dy(n.el,n.options.draggable)),i=10;return e?t.clientX>r.right+i||t.clientX<=r.right&&t.clientY>r.bottom&&t.clientX>=r.left:t.clientX>r.right&&t.clientY>r.top||t.clientX<=r.right&&t.clientY>r.bottom+i}function B9(t,e,n,r,i,o,s,a){var l=r?t.clientY:t.clientX,u=r?n.height:n.width,c=r?n.top:n.left,d=r?n.bottom:n.right,h=!1;if(!s){if(a&&kh<u*i){if(!Nc&&(Oc===1?l>c+u*o/2:l<d-u*o/2)&&(Nc=!0),Nc)h=!0;else if(Oc===1?l<c+kh:l>d-kh)return-Oc}else if(l>c+u*(1-i)/2&&l<d-u*(1-i)/2)return j9(e)}return h=h||s,h&&(l<c+u*o/2||l>d-u*o/2)?l>c+u/2?1:-1:0}function j9(t){return fn(Ae)<fn(t)?1:-1}function H9(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;n--;)r+=e.charCodeAt(n);return r.toString(36)}function G9(t){Oh.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var r=e[n];r.checked&&Oh.push(r)}}function Dh(t){return setTimeout(t,0)}function xy(t){return clearTimeout(t)}Nh&&xt(document,"touchmove",function(t){(nt.active||Ul)&&t.cancelable&&t.preventDefault()}),nt.utils={on:xt,off:pt,css:He,find:oI,is:function(e,n){return!!pi(e,n,e,!1)},extend:A9,throttle:lI,closest:pi,toggleClass:un,clone:hy,index:fn,nextTick:Dh,cancelNextTick:xy,detectDirection:gI,getChild:Vl},nt.get=function(t){return t[nr]},nt.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(nt.utils=Ui(Ui({},nt.utils),r.utils)),Cc.mount(r)})},nt.create=function(t,e){return new nt(t,e)},nt.version=E9;var En=[],Rc,wy,Sy=!1,Ey,Ty,Mh,$c;function W9(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return t.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?xt(document,"dragover",this._handleAutoScroll):this.options.supportPointer?xt(document,"pointermove",this._handleFallbackAutoScroll):r.touches?xt(document,"touchmove",this._handleFallbackAutoScroll):xt(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?pt(document,"dragover",this._handleAutoScroll):(pt(document,"pointermove",this._handleFallbackAutoScroll),pt(document,"touchmove",this._handleFallbackAutoScroll),pt(document,"mousemove",this._handleFallbackAutoScroll)),bI(),Lh(),P9()},nulling:function(){Mh=wy=Rc=Sy=$c=Ey=Ty=null,En.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var i=this,o=(n.touches?n.touches[0]:n).clientX,s=(n.touches?n.touches[0]:n).clientY,a=document.elementFromPoint(o,s);if(Mh=n,r||this.options.forceAutoScrollFallback||Ec||wo||Tc){Iy(n,this.options,a,r);var l=us(a,!0);Sy&&(!$c||o!==Ey||s!==Ty)&&($c&&bI(),$c=setInterval(function(){var u=us(document.elementFromPoint(o,s),!0);u!==l&&(l=u,Lh()),Iy(n,i.options,u,r)},10),Ey=o,Ty=s)}else{if(!this.options.bubbleScroll||us(a,!0)===Bi()){Lh();return}Iy(n,this.options,us(a,!1),!1)}}},Qr(t,{pluginName:"scroll",initializeByDefault:!0})}function Lh(){En.forEach(function(t){clearInterval(t.pid)}),En=[]}function bI(){clearInterval($c)}var Iy=lI(function(t,e,n,r){if(e.scroll){var i=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,s=e.scrollSensitivity,a=e.scrollSpeed,l=Bi(),u=!1,c;wy!==n&&(wy=n,Lh(),Rc=e.scroll,c=e.scrollFn,Rc===!0&&(Rc=us(n,!0)));var d=0,h=Rc;do{var p=h,g=tn(p),m=g.top,_=g.bottom,E=g.left,w=g.right,v=g.width,y=g.height,k=void 0,$=void 0,O=p.scrollWidth,A=p.scrollHeight,x=He(p),N=p.scrollLeft,P=p.scrollTop;p===l?(k=v<O&&(x.overflowX==="auto"||x.overflowX==="scroll"||x.overflowX==="visible"),$=y<A&&(x.overflowY==="auto"||x.overflowY==="scroll"||x.overflowY==="visible")):(k=v<O&&(x.overflowX==="auto"||x.overflowX==="scroll"),$=y<A&&(x.overflowY==="auto"||x.overflowY==="scroll"));var b=k&&(Math.abs(w-i)<=s&&N+v<O)-(Math.abs(E-i)<=s&&!!N),S=$&&(Math.abs(_-o)<=s&&P+y<A)-(Math.abs(m-o)<=s&&!!P);if(!En[d])for(var I=0;I<=d;I++)En[I]||(En[I]={});(En[d].vx!=b||En[d].vy!=S||En[d].el!==p)&&(En[d].el=p,En[d].vx=b,En[d].vy=S,clearInterval(En[d].pid),(b!=0||S!=0)&&(u=!0,En[d].pid=setInterval((function(){r&&this.layer===0&&nt.active._onTouchMove(Mh);var V=En[this.layer].vy?En[this.layer].vy*a:0,M=En[this.layer].vx?En[this.layer].vx*a:0;typeof c=="function"&&c.call(nt.dragged.parentNode[nr],M,V,t,Mh,En[this.layer].el)!=="continue"||uI(En[this.layer].el,M,V)}).bind({layer:d}),24))),d++}while(e.bubbleScroll&&h!==l&&(h=us(h,!1)));Sy=u}},30),_I=function(e){var n=e.originalEvent,r=e.putSortable,i=e.dragEl,o=e.activeSortable,s=e.dispatchSortableEvent,a=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(n){var u=r||o;a();var c=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,d=document.elementFromPoint(c.clientX,c.clientY);l(),u&&!u.el.contains(d)&&(s("spill"),this.onSpill({dragEl:i,putSortable:r}))}};function Cy(){}Cy.prototype={startIndex:null,dragStart:function(e){var n=e.oldDraggableIndex;this.startIndex=n},onSpill:function(e){var n=e.dragEl,r=e.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var i=Vl(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(n,i):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:_I},Qr(Cy,{pluginName:"revertOnSpill"});function Ay(){}Ay.prototype={onSpill:function(e){var n=e.dragEl,r=e.putSortable,i=r||this.sortable;i.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),i.animateAll()},drop:_I},Qr(Ay,{pluginName:"removeOnSpill"});var qr;function K9(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(n){var r=n.dragEl;qr=r},dragOverValid:function(n){var r=n.completed,i=n.target,o=n.onMove,s=n.activeSortable,a=n.changed,l=n.cancel;if(s.options.swap){var u=this.sortable.el,c=this.options;if(i&&i!==u){var d=qr;o(i)!==!1?(un(i,c.swapClass,!0),qr=i):qr=null,d&&d!==qr&&un(d,c.swapClass,!1)}a(),r(!0),l()}},drop:function(n){var r=n.activeSortable,i=n.putSortable,o=n.dragEl,s=i||this.sortable,a=this.options;qr&&un(qr,a.swapClass,!1),qr&&(a.swap||i&&i.options.swap)&&o!==qr&&(s.captureAnimationState(),s!==r&&r.captureAnimationState(),Z9(o,qr),s.animateAll(),s!==r&&r.animateAll())},nulling:function(){qr=null}},Qr(t,{pluginName:"swap",eventProperties:function(){return{swapItem:qr}}})}function Z9(t,e){var n=t.parentNode,r=e.parentNode,i,o;!n||!r||n.isEqualNode(e)||r.isEqualNode(t)||(i=fn(t),o=fn(e),n.isEqualNode(r)&&i<o&&o++,n.insertBefore(e,n.children[i]),r.insertBefore(t,r.children[o]))}var st=[],Fr=[],Dc,mi,Mc=!1,Cr=!1,jl=!1,Kt,Lc,Vh;function X9(){function t(e){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));e.options.supportPointer?xt(document,"pointerup",this._deselectMultiDrag):(xt(document,"mouseup",this._deselectMultiDrag),xt(document,"touchend",this._deselectMultiDrag)),xt(document,"keydown",this._checkKeyDown),xt(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(i,o){var s="";st.length&&mi===e?st.forEach(function(a,l){s+=(l?", ":"")+a.textContent}):s=o.textContent,i.setData("Text",s)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var r=n.dragEl;Kt=r},delayEnded:function(){this.isMultiDrag=~st.indexOf(Kt)},setupClone:function(n){var r=n.sortable,i=n.cancel;if(this.isMultiDrag){for(var o=0;o<st.length;o++)Fr.push(hy(st[o])),Fr[o].sortableIndex=st[o].sortableIndex,Fr[o].draggable=!1,Fr[o].style["will-change"]="",un(Fr[o],this.options.selectedClass,!1),st[o]===Kt&&un(Fr[o],this.options.chosenClass,!1);r._hideClone(),i()}},clone:function(n){var r=n.sortable,i=n.rootEl,o=n.dispatchSortableEvent,s=n.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||st.length&&mi===r&&(xI(!0,i),o("clone"),s()))},showClone:function(n){var r=n.cloneNowShown,i=n.rootEl,o=n.cancel;this.isMultiDrag&&(xI(!1,i),Fr.forEach(function(s){He(s,"display","")}),r(),Vh=!1,o())},hideClone:function(n){var r=this;n.sortable;var i=n.cloneNowHidden,o=n.cancel;this.isMultiDrag&&(Fr.forEach(function(s){He(s,"display","none"),r.options.removeCloneOnHide&&s.parentNode&&s.parentNode.removeChild(s)}),i(),Vh=!0,o())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&mi&&mi.multiDrag._deselectMultiDrag(),st.forEach(function(r){r.sortableIndex=fn(r)}),st=st.sort(function(r,i){return r.sortableIndex-i.sortableIndex}),jl=!0},dragStarted:function(n){var r=this,i=n.sortable;if(this.isMultiDrag){if(this.options.sort&&(i.captureAnimationState(),this.options.animation)){st.forEach(function(s){s!==Kt&&He(s,"position","absolute")});var o=tn(Kt,!1,!0,!0);st.forEach(function(s){s!==Kt&&cI(s,o)}),Cr=!0,Mc=!0}i.animateAll(function(){Cr=!1,Mc=!1,r.options.animation&&st.forEach(function(s){py(s)}),r.options.sort&&Fh()})}},dragOver:function(n){var r=n.target,i=n.completed,o=n.cancel;Cr&&~st.indexOf(r)&&(i(!1),o())},revert:function(n){var r=n.fromSortable,i=n.rootEl,o=n.sortable,s=n.dragRect;st.length>1&&(st.forEach(function(a){o.addAnimationState({target:a,rect:Cr?tn(a):s}),py(a),a.fromRect=s,r.removeAnimationState(a)}),Cr=!1,Y9(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(n){var r=n.sortable,i=n.isOwner,o=n.insertion,s=n.activeSortable,a=n.parentEl,l=n.putSortable,u=this.options;if(o){if(i&&s._hideClone(),Mc=!1,u.animation&&st.length>1&&(Cr||!i&&!s.options.sort&&!l)){var c=tn(Kt,!1,!0,!0);st.forEach(function(h){h!==Kt&&(cI(h,c),a.appendChild(h))}),Cr=!0}if(!i)if(Cr||Fh(),st.length>1){var d=Vh;s._showClone(r),s.options.animation&&!Vh&&d&&Fr.forEach(function(h){s.addAnimationState({target:h,rect:Lc}),h.fromRect=Lc,h.thisAnimationDuration=null})}else s._showClone(r)}},dragOverAnimationCapture:function(n){var r=n.dragRect,i=n.isOwner,o=n.activeSortable;if(st.forEach(function(a){a.thisAnimationDuration=null}),o.options.animation&&!i&&o.multiDrag.isMultiDrag){Lc=Qr({},r);var s=ca(Kt,!0);Lc.top-=s.f,Lc.left-=s.e}},dragOverAnimationComplete:function(){Cr&&(Cr=!1,Fh())},drop:function(n){var r=n.originalEvent,i=n.rootEl,o=n.parentEl,s=n.sortable,a=n.dispatchSortableEvent,l=n.oldIndex,u=n.putSortable,c=u||this.sortable;if(r){var d=this.options,h=o.children;if(!jl)if(d.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),un(Kt,d.selectedClass,!~st.indexOf(Kt)),~st.indexOf(Kt))st.splice(st.indexOf(Kt),1),Dc=null,Ac({sortable:s,rootEl:i,name:"deselect",targetEl:Kt});else{if(st.push(Kt),Ac({sortable:s,rootEl:i,name:"select",targetEl:Kt}),r.shiftKey&&Dc&&s.el.contains(Dc)){var p=fn(Dc),g=fn(Kt);if(~p&&~g&&p!==g){var m,_;for(g>p?(_=p,m=g):(_=g,m=p+1);_<m;_++)~st.indexOf(h[_])||(un(h[_],d.selectedClass,!0),st.push(h[_]),Ac({sortable:s,rootEl:i,name:"select",targetEl:h[_]}))}}else Dc=Kt;mi=c}if(jl&&this.isMultiDrag){if(Cr=!1,(o[nr].options.sort||o!==i)&&st.length>1){var E=tn(Kt),w=fn(Kt,":not(."+this.options.selectedClass+")");if(!Mc&&d.animation&&(Kt.thisAnimationDuration=null),c.captureAnimationState(),!Mc&&(d.animation&&(Kt.fromRect=E,st.forEach(function(y){if(y.thisAnimationDuration=null,y!==Kt){var k=Cr?tn(y):E;y.fromRect=k,c.addAnimationState({target:y,rect:k})}})),Fh(),st.forEach(function(y){h[w]?o.insertBefore(y,h[w]):o.appendChild(y),w++}),l===fn(Kt))){var v=!1;st.forEach(function(y){if(y.sortableIndex!==fn(y)){v=!0;return}}),v&&a("update")}st.forEach(function(y){py(y)}),c.animateAll()}mi=c}(i===o||u&&u.lastPutMode!=="clone")&&Fr.forEach(function(y){y.parentNode&&y.parentNode.removeChild(y)})}},nullingGlobal:function(){this.isMultiDrag=jl=!1,Fr.length=0},destroyGlobal:function(){this._deselectMultiDrag(),pt(document,"pointerup",this._deselectMultiDrag),pt(document,"mouseup",this._deselectMultiDrag),pt(document,"touchend",this._deselectMultiDrag),pt(document,"keydown",this._checkKeyDown),pt(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof jl<"u"&&jl)&&mi===this.sortable&&!(n&&pi(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;st.length;){var r=st[0];un(r,this.options.selectedClass,!1),st.shift(),Ac({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:r})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Qr(t,{pluginName:"multiDrag",utils:{select:function(n){var r=n.parentNode[nr];!r||!r.options.multiDrag||~st.indexOf(n)||(mi&&mi!==r&&(mi.multiDrag._deselectMultiDrag(),mi=r),un(n,r.options.selectedClass,!0),st.push(n))},deselect:function(n){var r=n.parentNode[nr],i=st.indexOf(n);!r||!r.options.multiDrag||!~i||(un(n,r.options.selectedClass,!1),st.splice(i,1))}},eventProperties:function(){var n=this,r=[],i=[];return st.forEach(function(o){r.push({multiDragElement:o,index:o.sortableIndex});var s;Cr&&o!==Kt?s=-1:Cr?s=fn(o,":not(."+n.options.selectedClass+")"):s=fn(o),i.push({multiDragElement:o,index:s})}),{items:b9(st),clones:[].concat(Fr),oldIndicies:r,newIndicies:i}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function Y9(t,e){st.forEach(function(n,r){var i=e.children[n.sortableIndex+(t?Number(r):0)];i?e.insertBefore(n,i):e.appendChild(n)})}function xI(t,e){Fr.forEach(function(n,r){var i=e.children[n.sortableIndex+(t?Number(r):0)];i?e.insertBefore(n,i):e.appendChild(n)})}function Fh(){st.forEach(function(t){t!==Kt&&t.parentNode&&t.parentNode.removeChild(t)})}nt.mount(new W9),nt.mount(Ay,Cy);const J9=QT(Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:X9,Sortable:nt,Swap:K9,default:nt},Symbol.toStringTag,{value:"Module"})));(function(t,e){(function(r,i){t.exports=i(g9,J9)})(typeof self<"u"?self:h9,function(n,r){return function(i){var o={};function s(a){if(o[a])return o[a].exports;var l=o[a]={i:a,l:!1,exports:{}};return i[a].call(l.exports,l,l.exports,s),l.l=!0,l.exports}return s.m=i,s.c=o,s.d=function(a,l,u){s.o(a,l)||Object.defineProperty(a,l,{enumerable:!0,get:u})},s.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},s.t=function(a,l){if(l&1&&(a=s(a)),l&8||l&4&&typeof a=="object"&&a&&a.__esModule)return a;var u=Object.create(null);if(s.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:a}),l&2&&typeof a!="string")for(var c in a)s.d(u,c,(function(d){return a[d]}).bind(null,c));return u},s.n=function(a){var l=a&&a.__esModule?function(){return a.default}:function(){return a};return s.d(l,"a",l),l},s.o=function(a,l){return Object.prototype.hasOwnProperty.call(a,l)},s.p="",s(s.s="fb15")}({"00ee":function(i,o,s){var a=s("b622"),l=a("toStringTag"),u={};u[l]="z",i.exports=String(u)==="[object z]"},"0366":function(i,o,s){var a=s("1c0b");i.exports=function(l,u,c){if(a(l),u===void 0)return l;switch(c){case 0:return function(){return l.call(u)};case 1:return function(d){return l.call(u,d)};case 2:return function(d,h){return l.call(u,d,h)};case 3:return function(d,h,p){return l.call(u,d,h,p)}}return function(){return l.apply(u,arguments)}}},"057f":function(i,o,s){var a=s("fc6a"),l=s("241c").f,u={}.toString,c=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],d=function(h){try{return l(h)}catch{return c.slice()}};i.exports.f=function(p){return c&&u.call(p)=="[object Window]"?d(p):l(a(p))}},"06cf":function(i,o,s){var a=s("83ab"),l=s("d1e7"),u=s("5c6c"),c=s("fc6a"),d=s("c04e"),h=s("5135"),p=s("0cfb"),g=Object.getOwnPropertyDescriptor;o.f=a?g:function(_,E){if(_=c(_),E=d(E,!0),p)try{return g(_,E)}catch{}if(h(_,E))return u(!l.f.call(_,E),_[E])}},"0cfb":function(i,o,s){var a=s("83ab"),l=s("d039"),u=s("cc12");i.exports=!a&&!l(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(i,o,s){var a=s("23e7"),l=s("d58f").left,u=s("a640"),c=s("ae40"),d=u("reduce"),h=c("reduce",{1:0});a({target:"Array",proto:!0,forced:!d||!h},{reduce:function(g){return l(this,g,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(i,o,s){var a=s("c6b6"),l=s("9263");i.exports=function(u,c){var d=u.exec;if(typeof d=="function"){var h=d.call(u,c);if(typeof h!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return h}if(a(u)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(u,c)}},"159b":function(i,o,s){var a=s("da84"),l=s("fdbc"),u=s("17c2"),c=s("9112");for(var d in l){var h=a[d],p=h&&h.prototype;if(p&&p.forEach!==u)try{c(p,"forEach",u)}catch{p.forEach=u}}},"17c2":function(i,o,s){var a=s("b727").forEach,l=s("a640"),u=s("ae40"),c=l("forEach"),d=u("forEach");i.exports=!c||!d?function(p){return a(this,p,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(i,o,s){var a=s("d066");i.exports=a("document","documentElement")},"1c0b":function(i,o){i.exports=function(s){if(typeof s!="function")throw TypeError(String(s)+" is not a function");return s}},"1c7e":function(i,o,s){var a=s("b622"),l=a("iterator"),u=!1;try{var c=0,d={next:function(){return{done:!!c++}},return:function(){u=!0}};d[l]=function(){return this},Array.from(d,function(){throw 2})}catch{}i.exports=function(h,p){if(!p&&!u)return!1;var g=!1;try{var m={};m[l]=function(){return{next:function(){return{done:g=!0}}}},h(m)}catch{}return g}},"1d80":function(i,o){i.exports=function(s){if(s==null)throw TypeError("Can't call method on "+s);return s}},"1dde":function(i,o,s){var a=s("d039"),l=s("b622"),u=s("2d00"),c=l("species");i.exports=function(d){return u>=51||!a(function(){var h=[],p=h.constructor={};return p[c]=function(){return{foo:1}},h[d](Boolean).foo!==1})}},"23cb":function(i,o,s){var a=s("a691"),l=Math.max,u=Math.min;i.exports=function(c,d){var h=a(c);return h<0?l(h+d,0):u(h,d)}},"23e7":function(i,o,s){var a=s("da84"),l=s("06cf").f,u=s("9112"),c=s("6eeb"),d=s("ce4e"),h=s("e893"),p=s("94ca");i.exports=function(g,m){var _=g.target,E=g.global,w=g.stat,v,y,k,$,O,A;if(E?y=a:w?y=a[_]||d(_,{}):y=(a[_]||{}).prototype,y)for(k in m){if(O=m[k],g.noTargetGet?(A=l(y,k),$=A&&A.value):$=y[k],v=p(E?k:_+(w?".":"#")+k,g.forced),!v&&$!==void 0){if(typeof O==typeof $)continue;h(O,$)}(g.sham||$&&$.sham)&&u(O,"sham",!0),c(y,k,O,g)}}},"241c":function(i,o,s){var a=s("ca84"),l=s("7839"),u=l.concat("length","prototype");o.f=Object.getOwnPropertyNames||function(d){return a(d,u)}},"25f0":function(i,o,s){var a=s("6eeb"),l=s("825a"),u=s("d039"),c=s("ad6d"),d="toString",h=RegExp.prototype,p=h[d],g=u(function(){return p.call({source:"a",flags:"b"})!="/a/b"}),m=p.name!=d;(g||m)&&a(RegExp.prototype,d,function(){var E=l(this),w=String(E.source),v=E.flags,y=String(v===void 0&&E instanceof RegExp&&!("flags"in h)?c.call(E):v);return"/"+w+"/"+y},{unsafe:!0})},"2ca0":function(i,o,s){var a=s("23e7"),l=s("06cf").f,u=s("50c4"),c=s("5a34"),d=s("1d80"),h=s("ab13"),p=s("c430"),g="".startsWith,m=Math.min,_=h("startsWith"),E=!p&&!_&&!!function(){var w=l(String.prototype,"startsWith");return w&&!w.writable}();a({target:"String",proto:!0,forced:!E&&!_},{startsWith:function(v){var y=String(d(this));c(v);var k=u(m(arguments.length>1?arguments[1]:void 0,y.length)),$=String(v);return g?g.call(y,$,k):y.slice(k,k+$.length)===$}})},"2d00":function(i,o,s){var a=s("da84"),l=s("342f"),u=a.process,c=u&&u.versions,d=c&&c.v8,h,p;d?(h=d.split("."),p=h[0]+h[1]):l&&(h=l.match(/Edge\/(\d+)/),(!h||h[1]>=74)&&(h=l.match(/Chrome\/(\d+)/),h&&(p=h[1]))),i.exports=p&&+p},"342f":function(i,o,s){var a=s("d066");i.exports=a("navigator","userAgent")||""},"35a1":function(i,o,s){var a=s("f5df"),l=s("3f8c"),u=s("b622"),c=u("iterator");i.exports=function(d){if(d!=null)return d[c]||d["@@iterator"]||l[a(d)]}},"37e8":function(i,o,s){var a=s("83ab"),l=s("9bf2"),u=s("825a"),c=s("df75");i.exports=a?Object.defineProperties:function(h,p){u(h);for(var g=c(p),m=g.length,_=0,E;m>_;)l.f(h,E=g[_++],p[E]);return h}},"3bbe":function(i,o,s){var a=s("861d");i.exports=function(l){if(!a(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"3ca3":function(i,o,s){var a=s("6547").charAt,l=s("69f3"),u=s("7dd0"),c="String Iterator",d=l.set,h=l.getterFor(c);u(String,"String",function(p){d(this,{type:c,string:String(p),index:0})},function(){var g=h(this),m=g.string,_=g.index,E;return _>=m.length?{value:void 0,done:!0}:(E=a(m,_),g.index+=E.length,{value:E,done:!1})})},"3f8c":function(i,o){i.exports={}},4160:function(i,o,s){var a=s("23e7"),l=s("17c2");a({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})},"428f":function(i,o,s){var a=s("da84");i.exports=a},"44ad":function(i,o,s){var a=s("d039"),l=s("c6b6"),u="".split;i.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(c){return l(c)=="String"?u.call(c,""):Object(c)}:Object},"44d2":function(i,o,s){var a=s("b622"),l=s("7c73"),u=s("9bf2"),c=a("unscopables"),d=Array.prototype;d[c]==null&&u.f(d,c,{configurable:!0,value:l(null)}),i.exports=function(h){d[c][h]=!0}},"44e7":function(i,o,s){var a=s("861d"),l=s("c6b6"),u=s("b622"),c=u("match");i.exports=function(d){var h;return a(d)&&((h=d[c])!==void 0?!!h:l(d)=="RegExp")}},4930:function(i,o,s){var a=s("d039");i.exports=!!Object.getOwnPropertySymbols&&!a(function(){return!String(Symbol())})},"4d64":function(i,o,s){var a=s("fc6a"),l=s("50c4"),u=s("23cb"),c=function(d){return function(h,p,g){var m=a(h),_=l(m.length),E=u(g,_),w;if(d&&p!=p){for(;_>E;)if(w=m[E++],w!=w)return!0}else for(;_>E;E++)if((d||E in m)&&m[E]===p)return d||E||0;return!d&&-1}};i.exports={includes:c(!0),indexOf:c(!1)}},"4de4":function(i,o,s){var a=s("23e7"),l=s("b727").filter,u=s("1dde"),c=s("ae40"),d=u("filter"),h=c("filter");a({target:"Array",proto:!0,forced:!d||!h},{filter:function(g){return l(this,g,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(i,o,s){var a=s("0366"),l=s("7b0b"),u=s("9bdd"),c=s("e95a"),d=s("50c4"),h=s("8418"),p=s("35a1");i.exports=function(m){var _=l(m),E=typeof this=="function"?this:Array,w=arguments.length,v=w>1?arguments[1]:void 0,y=v!==void 0,k=p(_),$=0,O,A,x,N,P,b;if(y&&(v=a(v,w>2?arguments[2]:void 0,2)),k!=null&&!(E==Array&&c(k)))for(N=k.call(_),P=N.next,A=new E;!(x=P.call(N)).done;$++)b=y?u(N,v,[x.value,$],!0):x.value,h(A,$,b);else for(O=d(_.length),A=new E(O);O>$;$++)b=y?v(_[$],$):_[$],h(A,$,b);return A.length=$,A}},"4fad":function(i,o,s){var a=s("23e7"),l=s("6f53").entries;a({target:"Object",stat:!0},{entries:function(c){return l(c)}})},"50c4":function(i,o,s){var a=s("a691"),l=Math.min;i.exports=function(u){return u>0?l(a(u),9007199254740991):0}},5135:function(i,o){var s={}.hasOwnProperty;i.exports=function(a,l){return s.call(a,l)}},5319:function(i,o,s){var a=s("d784"),l=s("825a"),u=s("7b0b"),c=s("50c4"),d=s("a691"),h=s("1d80"),p=s("8aa5"),g=s("14c3"),m=Math.max,_=Math.min,E=Math.floor,w=/\$([$&'`]|\d\d?|<[^>]*>)/g,v=/\$([$&'`]|\d\d?)/g,y=function(k){return k===void 0?k:String(k)};a("replace",2,function(k,$,O,A){var x=A.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,N=A.REPLACE_KEEPS_$0,P=x?"$":"$0";return[function(I,V){var M=h(this),H=I==null?void 0:I[k];return H!==void 0?H.call(I,M,V):$.call(String(M),I,V)},function(S,I){if(!x&&N||typeof I=="string"&&I.indexOf(P)===-1){var V=O($,S,this,I);if(V.done)return V.value}var M=l(S),H=String(this),G=typeof I=="function";G||(I=String(I));var J=M.global;if(J){var oe=M.unicode;M.lastIndex=0}for(var ae=[];;){var de=g(M,H);if(de===null||(ae.push(de),!J))break;var xe=String(de[0]);xe===""&&(M.lastIndex=p(H,c(M.lastIndex),oe))}for(var Ee="",pe=0,le=0;le<ae.length;le++){de=ae[le];for(var fe=String(de[0]),Re=m(_(d(de.index),H.length),0),$e=[],Be=1;Be<de.length;Be++)$e.push(y(de[Be]));var et=de.groups;if(G){var Me=[fe].concat($e,Re,H);et!==void 0&&Me.push(et);var B=String(I.apply(void 0,Me))}else B=b(fe,H,Re,$e,et,I);Re>=pe&&(Ee+=H.slice(pe,Re)+B,pe=Re+fe.length)}return Ee+H.slice(pe)}];function b(S,I,V,M,H,G){var J=V+S.length,oe=M.length,ae=v;return H!==void 0&&(H=u(H),ae=w),$.call(G,ae,function(de,xe){var Ee;switch(xe.charAt(0)){case"$":return"$";case"&":return S;case"`":return I.slice(0,V);case"'":return I.slice(J);case"<":Ee=H[xe.slice(1,-1)];break;default:var pe=+xe;if(pe===0)return de;if(pe>oe){var le=E(pe/10);return le===0?de:le<=oe?M[le-1]===void 0?xe.charAt(1):M[le-1]+xe.charAt(1):de}Ee=M[pe-1]}return Ee===void 0?"":Ee})}})},5692:function(i,o,s){var a=s("c430"),l=s("c6cd");(i.exports=function(u,c){return l[u]||(l[u]=c!==void 0?c:{})})("versions",[]).push({version:"3.6.5",mode:a?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(i,o,s){var a=s("d066"),l=s("241c"),u=s("7418"),c=s("825a");i.exports=a("Reflect","ownKeys")||function(h){var p=l.f(c(h)),g=u.f;return g?p.concat(g(h)):p}},"5a34":function(i,o,s){var a=s("44e7");i.exports=function(l){if(a(l))throw TypeError("The method doesn't accept regular expressions");return l}},"5c6c":function(i,o){i.exports=function(s,a){return{enumerable:!(s&1),configurable:!(s&2),writable:!(s&4),value:a}}},"5db7":function(i,o,s){var a=s("23e7"),l=s("a2bf"),u=s("7b0b"),c=s("50c4"),d=s("1c0b"),h=s("65f0");a({target:"Array",proto:!0},{flatMap:function(g){var m=u(this),_=c(m.length),E;return d(g),E=h(m,0),E.length=l(E,m,m,_,0,1,g,arguments.length>1?arguments[1]:void 0),E}})},6547:function(i,o,s){var a=s("a691"),l=s("1d80"),u=function(c){return function(d,h){var p=String(l(d)),g=a(h),m=p.length,_,E;return g<0||g>=m?c?"":void 0:(_=p.charCodeAt(g),_<55296||_>56319||g+1===m||(E=p.charCodeAt(g+1))<56320||E>57343?c?p.charAt(g):_:c?p.slice(g,g+2):(_-55296<<10)+(E-56320)+65536)}};i.exports={codeAt:u(!1),charAt:u(!0)}},"65f0":function(i,o,s){var a=s("861d"),l=s("e8b5"),u=s("b622"),c=u("species");i.exports=function(d,h){var p;return l(d)&&(p=d.constructor,typeof p=="function"&&(p===Array||l(p.prototype))?p=void 0:a(p)&&(p=p[c],p===null&&(p=void 0))),new(p===void 0?Array:p)(h===0?0:h)}},"69f3":function(i,o,s){var a=s("7f9a"),l=s("da84"),u=s("861d"),c=s("9112"),d=s("5135"),h=s("f772"),p=s("d012"),g=l.WeakMap,m,_,E,w=function(x){return E(x)?_(x):m(x,{})},v=function(x){return function(N){var P;if(!u(N)||(P=_(N)).type!==x)throw TypeError("Incompatible receiver, "+x+" required");return P}};if(a){var y=new g,k=y.get,$=y.has,O=y.set;m=function(x,N){return O.call(y,x,N),N},_=function(x){return k.call(y,x)||{}},E=function(x){return $.call(y,x)}}else{var A=h("state");p[A]=!0,m=function(x,N){return c(x,A,N),N},_=function(x){return d(x,A)?x[A]:{}},E=function(x){return d(x,A)}}i.exports={set:m,get:_,has:E,enforce:w,getterFor:v}},"6eeb":function(i,o,s){var a=s("da84"),l=s("9112"),u=s("5135"),c=s("ce4e"),d=s("8925"),h=s("69f3"),p=h.get,g=h.enforce,m=String(String).split("String");(i.exports=function(_,E,w,v){var y=v?!!v.unsafe:!1,k=v?!!v.enumerable:!1,$=v?!!v.noTargetGet:!1;if(typeof w=="function"&&(typeof E=="string"&&!u(w,"name")&&l(w,"name",E),g(w).source=m.join(typeof E=="string"?E:"")),_===a){k?_[E]=w:c(E,w);return}else y?!$&&_[E]&&(k=!0):delete _[E];k?_[E]=w:l(_,E,w)})(Function.prototype,"toString",function(){return typeof this=="function"&&p(this).source||d(this)})},"6f53":function(i,o,s){var a=s("83ab"),l=s("df75"),u=s("fc6a"),c=s("d1e7").f,d=function(h){return function(p){for(var g=u(p),m=l(g),_=m.length,E=0,w=[],v;_>E;)v=m[E++],(!a||c.call(g,v))&&w.push(h?[v,g[v]]:g[v]);return w}};i.exports={entries:d(!0),values:d(!1)}},"73d9":function(i,o,s){var a=s("44d2");a("flatMap")},7418:function(i,o){o.f=Object.getOwnPropertySymbols},"746f":function(i,o,s){var a=s("428f"),l=s("5135"),u=s("e538"),c=s("9bf2").f;i.exports=function(d){var h=a.Symbol||(a.Symbol={});l(h,d)||c(h,d,{value:u.f(d)})}},7839:function(i,o){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(i,o,s){var a=s("1d80");i.exports=function(l){return Object(a(l))}},"7c73":function(i,o,s){var a=s("825a"),l=s("37e8"),u=s("7839"),c=s("d012"),d=s("1be4"),h=s("cc12"),p=s("f772"),g=">",m="<",_="prototype",E="script",w=p("IE_PROTO"),v=function(){},y=function(x){return m+E+g+x+m+"/"+E+g},k=function(x){x.write(y("")),x.close();var N=x.parentWindow.Object;return x=null,N},$=function(){var x=h("iframe"),N="java"+E+":",P;return x.style.display="none",d.appendChild(x),x.src=String(N),P=x.contentWindow.document,P.open(),P.write(y("document.F=Object")),P.close(),P.F},O,A=function(){try{O=document.domain&&new ActiveXObject("htmlfile")}catch{}A=O?k(O):$();for(var x=u.length;x--;)delete A[_][u[x]];return A()};c[w]=!0,i.exports=Object.create||function(N,P){var b;return N!==null?(v[_]=a(N),b=new v,v[_]=null,b[w]=N):b=A(),P===void 0?b:l(b,P)}},"7dd0":function(i,o,s){var a=s("23e7"),l=s("9ed3"),u=s("e163"),c=s("d2bb"),d=s("d44e"),h=s("9112"),p=s("6eeb"),g=s("b622"),m=s("c430"),_=s("3f8c"),E=s("ae93"),w=E.IteratorPrototype,v=E.BUGGY_SAFARI_ITERATORS,y=g("iterator"),k="keys",$="values",O="entries",A=function(){return this};i.exports=function(x,N,P,b,S,I,V){l(P,N,b);var M=function(le){if(le===S&&ae)return ae;if(!v&&le in J)return J[le];switch(le){case k:return function(){return new P(this,le)};case $:return function(){return new P(this,le)};case O:return function(){return new P(this,le)}}return function(){return new P(this)}},H=N+" Iterator",G=!1,J=x.prototype,oe=J[y]||J["@@iterator"]||S&&J[S],ae=!v&&oe||M(S),de=N=="Array"&&J.entries||oe,xe,Ee,pe;if(de&&(xe=u(de.call(new x)),w!==Object.prototype&&xe.next&&(!m&&u(xe)!==w&&(c?c(xe,w):typeof xe[y]!="function"&&h(xe,y,A)),d(xe,H,!0,!0),m&&(_[H]=A))),S==$&&oe&&oe.name!==$&&(G=!0,ae=function(){return oe.call(this)}),(!m||V)&&J[y]!==ae&&h(J,y,ae),_[N]=ae,S)if(Ee={values:M($),keys:I?ae:M(k),entries:M(O)},V)for(pe in Ee)(v||G||!(pe in J))&&p(J,pe,Ee[pe]);else a({target:N,proto:!0,forced:v||G},Ee);return Ee}},"7f9a":function(i,o,s){var a=s("da84"),l=s("8925"),u=a.WeakMap;i.exports=typeof u=="function"&&/native code/.test(l(u))},"825a":function(i,o,s){var a=s("861d");i.exports=function(l){if(!a(l))throw TypeError(String(l)+" is not an object");return l}},"83ab":function(i,o,s){var a=s("d039");i.exports=!a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(i,o,s){var a=s("c04e"),l=s("9bf2"),u=s("5c6c");i.exports=function(c,d,h){var p=a(d);p in c?l.f(c,p,u(0,h)):c[p]=h}},"861d":function(i,o){i.exports=function(s){return typeof s=="object"?s!==null:typeof s=="function"}},8875:function(i,o,s){var a,l,u;(function(c,d){l=[],a=d,u=typeof a=="function"?a.apply(o,l):a,u!==void 0&&(i.exports=u)})(typeof self<"u"?self:this,function(){function c(){var d=Object.getOwnPropertyDescriptor(document,"currentScript");if(!d&&"currentScript"in document&&document.currentScript||d&&d.get!==c&&document.currentScript)return document.currentScript;try{throw new Error}catch(O){var h=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,p=/@([^@]*):(\d+):(\d+)\s*$/ig,g=h.exec(O.stack)||p.exec(O.stack),m=g&&g[1]||!1,_=g&&g[2]||!1,E=document.location.href.replace(document.location.hash,""),w,v,y,k=document.getElementsByTagName("script");m===E&&(w=document.documentElement.outerHTML,v=new RegExp("(?:[^\\n]+?\\n){0,"+(_-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),y=w.replace(v,"$1").trim());for(var $=0;$<k.length;$++)if(k[$].readyState==="interactive"||k[$].src===m||m===E&&k[$].innerHTML&&k[$].innerHTML.trim()===y)return k[$];return null}}return c})},8925:function(i,o,s){var a=s("c6cd"),l=Function.toString;typeof a.inspectSource!="function"&&(a.inspectSource=function(u){return l.call(u)}),i.exports=a.inspectSource},"8aa5":function(i,o,s){var a=s("6547").charAt;i.exports=function(l,u,c){return u+(c?a(l,u).length:1)}},"8bbf":function(i,o){i.exports=n},"90e3":function(i,o){var s=0,a=Math.random();i.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++s+a).toString(36)}},9112:function(i,o,s){var a=s("83ab"),l=s("9bf2"),u=s("5c6c");i.exports=a?function(c,d,h){return l.f(c,d,u(1,h))}:function(c,d,h){return c[d]=h,c}},9263:function(i,o,s){var a=s("ad6d"),l=s("9f7f"),u=RegExp.prototype.exec,c=String.prototype.replace,d=u,h=function(){var _=/a/,E=/b*/g;return u.call(_,"a"),u.call(E,"a"),_.lastIndex!==0||E.lastIndex!==0}(),p=l.UNSUPPORTED_Y||l.BROKEN_CARET,g=/()??/.exec("")[1]!==void 0,m=h||g||p;m&&(d=function(E){var w=this,v,y,k,$,O=p&&w.sticky,A=a.call(w),x=w.source,N=0,P=E;return O&&(A=A.replace("y",""),A.indexOf("g")===-1&&(A+="g"),P=String(E).slice(w.lastIndex),w.lastIndex>0&&(!w.multiline||w.multiline&&E[w.lastIndex-1]!==`
|
|
2554
|
+
`)&&(x="(?: "+x+")",P=" "+P,N++),y=new RegExp("^(?:"+x+")",A)),g&&(y=new RegExp("^"+x+"$(?!\\s)",A)),h&&(v=w.lastIndex),k=u.call(O?y:w,P),O?k?(k.input=k.input.slice(N),k[0]=k[0].slice(N),k.index=w.lastIndex,w.lastIndex+=k[0].length):w.lastIndex=0:h&&k&&(w.lastIndex=w.global?k.index+k[0].length:v),g&&k&&k.length>1&&c.call(k[0],y,function(){for($=1;$<arguments.length-2;$++)arguments[$]===void 0&&(k[$]=void 0)}),k}),i.exports=d},"94ca":function(i,o,s){var a=s("d039"),l=/#|\.prototype\./,u=function(g,m){var _=d[c(g)];return _==p?!0:_==h?!1:typeof m=="function"?a(m):!!m},c=u.normalize=function(g){return String(g).replace(l,".").toLowerCase()},d=u.data={},h=u.NATIVE="N",p=u.POLYFILL="P";i.exports=u},"99af":function(i,o,s){var a=s("23e7"),l=s("d039"),u=s("e8b5"),c=s("861d"),d=s("7b0b"),h=s("50c4"),p=s("8418"),g=s("65f0"),m=s("1dde"),_=s("b622"),E=s("2d00"),w=_("isConcatSpreadable"),v=9007199254740991,y="Maximum allowed index exceeded",k=E>=51||!l(function(){var x=[];return x[w]=!1,x.concat()[0]!==x}),$=m("concat"),O=function(x){if(!c(x))return!1;var N=x[w];return N!==void 0?!!N:u(x)},A=!k||!$;a({target:"Array",proto:!0,forced:A},{concat:function(N){var P=d(this),b=g(P,0),S=0,I,V,M,H,G;for(I=-1,M=arguments.length;I<M;I++)if(G=I===-1?P:arguments[I],O(G)){if(H=h(G.length),S+H>v)throw TypeError(y);for(V=0;V<H;V++,S++)V in G&&p(b,S,G[V])}else{if(S>=v)throw TypeError(y);p(b,S++,G)}return b.length=S,b}})},"9bdd":function(i,o,s){var a=s("825a");i.exports=function(l,u,c,d){try{return d?u(a(c)[0],c[1]):u(c)}catch(p){var h=l.return;throw h!==void 0&&a(h.call(l)),p}}},"9bf2":function(i,o,s){var a=s("83ab"),l=s("0cfb"),u=s("825a"),c=s("c04e"),d=Object.defineProperty;o.f=a?d:function(p,g,m){if(u(p),g=c(g,!0),u(m),l)try{return d(p,g,m)}catch{}if("get"in m||"set"in m)throw TypeError("Accessors not supported");return"value"in m&&(p[g]=m.value),p}},"9ed3":function(i,o,s){var a=s("ae93").IteratorPrototype,l=s("7c73"),u=s("5c6c"),c=s("d44e"),d=s("3f8c"),h=function(){return this};i.exports=function(p,g,m){var _=g+" Iterator";return p.prototype=l(a,{next:u(1,m)}),c(p,_,!1,!0),d[_]=h,p}},"9f7f":function(i,o,s){var a=s("d039");function l(u,c){return RegExp(u,c)}o.UNSUPPORTED_Y=a(function(){var u=l("a","y");return u.lastIndex=2,u.exec("abcd")!=null}),o.BROKEN_CARET=a(function(){var u=l("^r","gy");return u.lastIndex=2,u.exec("str")!=null})},a2bf:function(i,o,s){var a=s("e8b5"),l=s("50c4"),u=s("0366"),c=function(d,h,p,g,m,_,E,w){for(var v=m,y=0,k=E?u(E,w,3):!1,$;y<g;){if(y in p){if($=k?k(p[y],y,h):p[y],_>0&&a($))v=c(d,h,$,l($.length),v,_-1)-1;else{if(v>=9007199254740991)throw TypeError("Exceed the acceptable array length");d[v]=$}v++}y++}return v};i.exports=c},a352:function(i,o){i.exports=r},a434:function(i,o,s){var a=s("23e7"),l=s("23cb"),u=s("a691"),c=s("50c4"),d=s("7b0b"),h=s("65f0"),p=s("8418"),g=s("1dde"),m=s("ae40"),_=g("splice"),E=m("splice",{ACCESSORS:!0,0:0,1:2}),w=Math.max,v=Math.min,y=9007199254740991,k="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!_||!E},{splice:function(O,A){var x=d(this),N=c(x.length),P=l(O,N),b=arguments.length,S,I,V,M,H,G;if(b===0?S=I=0:b===1?(S=0,I=N-P):(S=b-2,I=v(w(u(A),0),N-P)),N+S-I>y)throw TypeError(k);for(V=h(x,I),M=0;M<I;M++)H=P+M,H in x&&p(V,M,x[H]);if(V.length=I,S<I){for(M=P;M<N-I;M++)H=M+I,G=M+S,H in x?x[G]=x[H]:delete x[G];for(M=N;M>N-I+S;M--)delete x[M-1]}else if(S>I)for(M=N-I;M>P;M--)H=M+I-1,G=M+S-1,H in x?x[G]=x[H]:delete x[G];for(M=0;M<S;M++)x[M+P]=arguments[M+2];return x.length=N-I+S,V}})},a4d3:function(i,o,s){var a=s("23e7"),l=s("da84"),u=s("d066"),c=s("c430"),d=s("83ab"),h=s("4930"),p=s("fdbf"),g=s("d039"),m=s("5135"),_=s("e8b5"),E=s("861d"),w=s("825a"),v=s("7b0b"),y=s("fc6a"),k=s("c04e"),$=s("5c6c"),O=s("7c73"),A=s("df75"),x=s("241c"),N=s("057f"),P=s("7418"),b=s("06cf"),S=s("9bf2"),I=s("d1e7"),V=s("9112"),M=s("6eeb"),H=s("5692"),G=s("f772"),J=s("d012"),oe=s("90e3"),ae=s("b622"),de=s("e538"),xe=s("746f"),Ee=s("d44e"),pe=s("69f3"),le=s("b727").forEach,fe=G("hidden"),Re="Symbol",$e="prototype",Be=ae("toPrimitive"),et=pe.set,Me=pe.getterFor(Re),B=Object[$e],D=l.Symbol,L=u("JSON","stringify"),z=b.f,F=S.f,W=N.f,ee=I.f,Y=H("symbols"),te=H("op-symbols"),Q=H("string-to-symbol-registry"),ye=H("symbol-to-string-registry"),he=H("wks"),be=l.QObject,Le=!be||!be[$e]||!be[$e].findChild,rt=d&&g(function(){return O(F({},"a",{get:function(){return F(this,"a",{value:7}).a}})).a!=7})?function(Ze,Ve,Ke){var mt=z(B,Ve);mt&&delete B[Ve],F(Ze,Ve,Ke),mt&&Ze!==B&&F(B,Ve,mt)}:F,gt=function(Ze,Ve){var Ke=Y[Ze]=O(D[$e]);return et(Ke,{type:Re,tag:Ze,description:Ve}),d||(Ke.description=Ve),Ke},X=p?function(Ze){return typeof Ze=="symbol"}:function(Ze){return Object(Ze)instanceof D},q=function(Ve,Ke,mt){Ve===B&&q(te,Ke,mt),w(Ve);var it=k(Ke,!0);return w(mt),m(Y,it)?(mt.enumerable?(m(Ve,fe)&&Ve[fe][it]&&(Ve[fe][it]=!1),mt=O(mt,{enumerable:$(0,!1)})):(m(Ve,fe)||F(Ve,fe,$(1,{})),Ve[fe][it]=!0),rt(Ve,it,mt)):F(Ve,it,mt)},ie=function(Ve,Ke){w(Ve);var mt=y(Ke),it=A(mt).concat(Je(mt));return le(it,function(Gn){(!d||Ce.call(mt,Gn))&&q(Ve,Gn,mt[Gn])}),Ve},ge=function(Ve,Ke){return Ke===void 0?O(Ve):ie(O(Ve),Ke)},Ce=function(Ve){var Ke=k(Ve,!0),mt=ee.call(this,Ke);return this===B&&m(Y,Ke)&&!m(te,Ke)?!1:mt||!m(this,Ke)||!m(Y,Ke)||m(this,fe)&&this[fe][Ke]?mt:!0},We=function(Ve,Ke){var mt=y(Ve),it=k(Ke,!0);if(!(mt===B&&m(Y,it)&&!m(te,it))){var Gn=z(mt,it);return Gn&&m(Y,it)&&!(m(mt,fe)&&mt[fe][it])&&(Gn.enumerable=!0),Gn}},ot=function(Ve){var Ke=W(y(Ve)),mt=[];return le(Ke,function(it){!m(Y,it)&&!m(J,it)&&mt.push(it)}),mt},Je=function(Ve){var Ke=Ve===B,mt=W(Ke?te:y(Ve)),it=[];return le(mt,function(Gn){m(Y,Gn)&&(!Ke||m(B,Gn))&&it.push(Y[Gn])}),it};if(h||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor");var Ve=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),Ke=oe(Ve),mt=function(it){this===B&&mt.call(te,it),m(this,fe)&&m(this[fe],Ke)&&(this[fe][Ke]=!1),rt(this,Ke,$(1,it))};return d&&Le&&rt(B,Ke,{configurable:!0,set:mt}),gt(Ke,Ve)},M(D[$e],"toString",function(){return Me(this).tag}),M(D,"withoutSetter",function(Ze){return gt(oe(Ze),Ze)}),I.f=Ce,S.f=q,b.f=We,x.f=N.f=ot,P.f=Je,de.f=function(Ze){return gt(ae(Ze),Ze)},d&&(F(D[$e],"description",{configurable:!0,get:function(){return Me(this).description}}),c||M(B,"propertyIsEnumerable",Ce,{unsafe:!0}))),a({global:!0,wrap:!0,forced:!h,sham:!h},{Symbol:D}),le(A(he),function(Ze){xe(Ze)}),a({target:Re,stat:!0,forced:!h},{for:function(Ze){var Ve=String(Ze);if(m(Q,Ve))return Q[Ve];var Ke=D(Ve);return Q[Ve]=Ke,ye[Ke]=Ve,Ke},keyFor:function(Ve){if(!X(Ve))throw TypeError(Ve+" is not a symbol");if(m(ye,Ve))return ye[Ve]},useSetter:function(){Le=!0},useSimple:function(){Le=!1}}),a({target:"Object",stat:!0,forced:!h,sham:!d},{create:ge,defineProperty:q,defineProperties:ie,getOwnPropertyDescriptor:We}),a({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:ot,getOwnPropertySymbols:Je}),a({target:"Object",stat:!0,forced:g(function(){P.f(1)})},{getOwnPropertySymbols:function(Ve){return P.f(v(Ve))}}),L){var St=!h||g(function(){var Ze=D();return L([Ze])!="[null]"||L({a:Ze})!="{}"||L(Object(Ze))!="{}"});a({target:"JSON",stat:!0,forced:St},{stringify:function(Ve,Ke,mt){for(var it=[Ve],Gn=1,Po;arguments.length>Gn;)it.push(arguments[Gn++]);if(Po=Ke,!(!E(Ke)&&Ve===void 0||X(Ve)))return _(Ke)||(Ke=function(wa,ru){if(typeof Po=="function"&&(ru=Po.call(this,wa,ru)),!X(ru))return ru}),it[1]=Ke,L.apply(null,it)}})}D[$e][Be]||V(D[$e],Be,D[$e].valueOf),Ee(D,Re),J[fe]=!0},a630:function(i,o,s){var a=s("23e7"),l=s("4df4"),u=s("1c7e"),c=!u(function(d){Array.from(d)});a({target:"Array",stat:!0,forced:c},{from:l})},a640:function(i,o,s){var a=s("d039");i.exports=function(l,u){var c=[][l];return!!c&&a(function(){c.call(null,u||function(){throw 1},1)})}},a691:function(i,o){var s=Math.ceil,a=Math.floor;i.exports=function(l){return isNaN(l=+l)?0:(l>0?a:s)(l)}},ab13:function(i,o,s){var a=s("b622"),l=a("match");i.exports=function(u){var c=/./;try{"/./"[u](c)}catch{try{return c[l]=!1,"/./"[u](c)}catch{}}return!1}},ac1f:function(i,o,s){var a=s("23e7"),l=s("9263");a({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})},ad6d:function(i,o,s){var a=s("825a");i.exports=function(){var l=a(this),u="";return l.global&&(u+="g"),l.ignoreCase&&(u+="i"),l.multiline&&(u+="m"),l.dotAll&&(u+="s"),l.unicode&&(u+="u"),l.sticky&&(u+="y"),u}},ae40:function(i,o,s){var a=s("83ab"),l=s("d039"),u=s("5135"),c=Object.defineProperty,d={},h=function(p){throw p};i.exports=function(p,g){if(u(d,p))return d[p];g||(g={});var m=[][p],_=u(g,"ACCESSORS")?g.ACCESSORS:!1,E=u(g,0)?g[0]:h,w=u(g,1)?g[1]:void 0;return d[p]=!!m&&!l(function(){if(_&&!a)return!0;var v={length:-1};_?c(v,1,{enumerable:!0,get:h}):v[1]=1,m.call(v,E,w)})}},ae93:function(i,o,s){var a=s("e163"),l=s("9112"),u=s("5135"),c=s("b622"),d=s("c430"),h=c("iterator"),p=!1,g=function(){return this},m,_,E;[].keys&&(E=[].keys(),"next"in E?(_=a(a(E)),_!==Object.prototype&&(m=_)):p=!0),m==null&&(m={}),!d&&!u(m,h)&&l(m,h,g),i.exports={IteratorPrototype:m,BUGGY_SAFARI_ITERATORS:p}},b041:function(i,o,s){var a=s("00ee"),l=s("f5df");i.exports=a?{}.toString:function(){return"[object "+l(this)+"]"}},b0c0:function(i,o,s){var a=s("83ab"),l=s("9bf2").f,u=Function.prototype,c=u.toString,d=/^\s*function ([^ (]*)/,h="name";a&&!(h in u)&&l(u,h,{configurable:!0,get:function(){try{return c.call(this).match(d)[1]}catch{return""}}})},b622:function(i,o,s){var a=s("da84"),l=s("5692"),u=s("5135"),c=s("90e3"),d=s("4930"),h=s("fdbf"),p=l("wks"),g=a.Symbol,m=h?g:g&&g.withoutSetter||c;i.exports=function(_){return u(p,_)||(d&&u(g,_)?p[_]=g[_]:p[_]=m("Symbol."+_)),p[_]}},b64b:function(i,o,s){var a=s("23e7"),l=s("7b0b"),u=s("df75"),c=s("d039"),d=c(function(){u(1)});a({target:"Object",stat:!0,forced:d},{keys:function(p){return u(l(p))}})},b727:function(i,o,s){var a=s("0366"),l=s("44ad"),u=s("7b0b"),c=s("50c4"),d=s("65f0"),h=[].push,p=function(g){var m=g==1,_=g==2,E=g==3,w=g==4,v=g==6,y=g==5||v;return function(k,$,O,A){for(var x=u(k),N=l(x),P=a($,O,3),b=c(N.length),S=0,I=A||d,V=m?I(k,b):_?I(k,0):void 0,M,H;b>S;S++)if((y||S in N)&&(M=N[S],H=P(M,S,x),g)){if(m)V[S]=H;else if(H)switch(g){case 3:return!0;case 5:return M;case 6:return S;case 2:h.call(V,M)}else if(w)return!1}return v?-1:E||w?w:V}};i.exports={forEach:p(0),map:p(1),filter:p(2),some:p(3),every:p(4),find:p(5),findIndex:p(6)}},c04e:function(i,o,s){var a=s("861d");i.exports=function(l,u){if(!a(l))return l;var c,d;if(u&&typeof(c=l.toString)=="function"&&!a(d=c.call(l))||typeof(c=l.valueOf)=="function"&&!a(d=c.call(l))||!u&&typeof(c=l.toString)=="function"&&!a(d=c.call(l)))return d;throw TypeError("Can't convert object to primitive value")}},c430:function(i,o){i.exports=!1},c6b6:function(i,o){var s={}.toString;i.exports=function(a){return s.call(a).slice(8,-1)}},c6cd:function(i,o,s){var a=s("da84"),l=s("ce4e"),u="__core-js_shared__",c=a[u]||l(u,{});i.exports=c},c740:function(i,o,s){var a=s("23e7"),l=s("b727").findIndex,u=s("44d2"),c=s("ae40"),d="findIndex",h=!0,p=c(d);d in[]&&Array(1)[d](function(){h=!1}),a({target:"Array",proto:!0,forced:h||!p},{findIndex:function(m){return l(this,m,arguments.length>1?arguments[1]:void 0)}}),u(d)},c8ba:function(i,o){var s;s=function(){return this}();try{s=s||new Function("return this")()}catch{typeof window=="object"&&(s=window)}i.exports=s},c975:function(i,o,s){var a=s("23e7"),l=s("4d64").indexOf,u=s("a640"),c=s("ae40"),d=[].indexOf,h=!!d&&1/[1].indexOf(1,-0)<0,p=u("indexOf"),g=c("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:h||!p||!g},{indexOf:function(_){return h?d.apply(this,arguments)||0:l(this,_,arguments.length>1?arguments[1]:void 0)}})},ca84:function(i,o,s){var a=s("5135"),l=s("fc6a"),u=s("4d64").indexOf,c=s("d012");i.exports=function(d,h){var p=l(d),g=0,m=[],_;for(_ in p)!a(c,_)&&a(p,_)&&m.push(_);for(;h.length>g;)a(p,_=h[g++])&&(~u(m,_)||m.push(_));return m}},caad:function(i,o,s){var a=s("23e7"),l=s("4d64").includes,u=s("44d2"),c=s("ae40"),d=c("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:!d},{includes:function(p){return l(this,p,arguments.length>1?arguments[1]:void 0)}}),u("includes")},cc12:function(i,o,s){var a=s("da84"),l=s("861d"),u=a.document,c=l(u)&&l(u.createElement);i.exports=function(d){return c?u.createElement(d):{}}},ce4e:function(i,o,s){var a=s("da84"),l=s("9112");i.exports=function(u,c){try{l(a,u,c)}catch{a[u]=c}return c}},d012:function(i,o){i.exports={}},d039:function(i,o){i.exports=function(s){try{return!!s()}catch{return!0}}},d066:function(i,o,s){var a=s("428f"),l=s("da84"),u=function(c){return typeof c=="function"?c:void 0};i.exports=function(c,d){return arguments.length<2?u(a[c])||u(l[c]):a[c]&&a[c][d]||l[c]&&l[c][d]}},d1e7:function(i,o,s){var a={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,u=l&&!a.call({1:2},1);o.f=u?function(d){var h=l(this,d);return!!h&&h.enumerable}:a},d28b:function(i,o,s){var a=s("746f");a("iterator")},d2bb:function(i,o,s){var a=s("825a"),l=s("3bbe");i.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var u=!1,c={},d;try{d=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,d.call(c,[]),u=c instanceof Array}catch{}return function(p,g){return a(p),l(g),u?d.call(p,g):p.__proto__=g,p}}():void 0)},d3b7:function(i,o,s){var a=s("00ee"),l=s("6eeb"),u=s("b041");a||l(Object.prototype,"toString",u,{unsafe:!0})},d44e:function(i,o,s){var a=s("9bf2").f,l=s("5135"),u=s("b622"),c=u("toStringTag");i.exports=function(d,h,p){d&&!l(d=p?d:d.prototype,c)&&a(d,c,{configurable:!0,value:h})}},d58f:function(i,o,s){var a=s("1c0b"),l=s("7b0b"),u=s("44ad"),c=s("50c4"),d=function(h){return function(p,g,m,_){a(g);var E=l(p),w=u(E),v=c(E.length),y=h?v-1:0,k=h?-1:1;if(m<2)for(;;){if(y in w){_=w[y],y+=k;break}if(y+=k,h?y<0:v<=y)throw TypeError("Reduce of empty array with no initial value")}for(;h?y>=0:v>y;y+=k)y in w&&(_=g(_,w[y],y,E));return _}};i.exports={left:d(!1),right:d(!0)}},d784:function(i,o,s){s("ac1f");var a=s("6eeb"),l=s("d039"),u=s("b622"),c=s("9263"),d=s("9112"),h=u("species"),p=!l(function(){var w=/./;return w.exec=function(){var v=[];return v.groups={a:"7"},v},"".replace(w,"$<a>")!=="7"}),g=function(){return"a".replace(/./,"$0")==="$0"}(),m=u("replace"),_=function(){return/./[m]?/./[m]("a","$0")==="":!1}(),E=!l(function(){var w=/(?:)/,v=w.exec;w.exec=function(){return v.apply(this,arguments)};var y="ab".split(w);return y.length!==2||y[0]!=="a"||y[1]!=="b"});i.exports=function(w,v,y,k){var $=u(w),O=!l(function(){var S={};return S[$]=function(){return 7},""[w](S)!=7}),A=O&&!l(function(){var S=!1,I=/a/;return w==="split"&&(I={},I.constructor={},I.constructor[h]=function(){return I},I.flags="",I[$]=/./[$]),I.exec=function(){return S=!0,null},I[$](""),!S});if(!O||!A||w==="replace"&&!(p&&g&&!_)||w==="split"&&!E){var x=/./[$],N=y($,""[w],function(S,I,V,M,H){return I.exec===c?O&&!H?{done:!0,value:x.call(I,V,M)}:{done:!0,value:S.call(V,I,M)}:{done:!1}},{REPLACE_KEEPS_$0:g,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:_}),P=N[0],b=N[1];a(String.prototype,w,P),a(RegExp.prototype,$,v==2?function(S,I){return b.call(S,this,I)}:function(S){return b.call(S,this)})}k&&d(RegExp.prototype[$],"sham",!0)}},d81d:function(i,o,s){var a=s("23e7"),l=s("b727").map,u=s("1dde"),c=s("ae40"),d=u("map"),h=c("map");a({target:"Array",proto:!0,forced:!d||!h},{map:function(g){return l(this,g,arguments.length>1?arguments[1]:void 0)}})},da84:function(i,o,s){(function(a){var l=function(u){return u&&u.Math==Math&&u};i.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof a=="object"&&a)||Function("return this")()}).call(this,s("c8ba"))},dbb4:function(i,o,s){var a=s("23e7"),l=s("83ab"),u=s("56ef"),c=s("fc6a"),d=s("06cf"),h=s("8418");a({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(g){for(var m=c(g),_=d.f,E=u(m),w={},v=0,y,k;E.length>v;)k=_(m,y=E[v++]),k!==void 0&&h(w,y,k);return w}})},dbf1:function(i,o,s){(function(a){s.d(o,"a",function(){return u});function l(){return typeof window<"u"?window.console:a.console}var u=l()}).call(this,s("c8ba"))},ddb0:function(i,o,s){var a=s("da84"),l=s("fdbc"),u=s("e260"),c=s("9112"),d=s("b622"),h=d("iterator"),p=d("toStringTag"),g=u.values;for(var m in l){var _=a[m],E=_&&_.prototype;if(E){if(E[h]!==g)try{c(E,h,g)}catch{E[h]=g}if(E[p]||c(E,p,m),l[m]){for(var w in u)if(E[w]!==u[w])try{c(E,w,u[w])}catch{E[w]=u[w]}}}}},df75:function(i,o,s){var a=s("ca84"),l=s("7839");i.exports=Object.keys||function(c){return a(c,l)}},e01a:function(i,o,s){var a=s("23e7"),l=s("83ab"),u=s("da84"),c=s("5135"),d=s("861d"),h=s("9bf2").f,p=s("e893"),g=u.Symbol;if(l&&typeof g=="function"&&(!("description"in g.prototype)||g().description!==void 0)){var m={},_=function(){var $=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),O=this instanceof _?new g($):$===void 0?g():g($);return $===""&&(m[O]=!0),O};p(_,g);var E=_.prototype=g.prototype;E.constructor=_;var w=E.toString,v=String(g("test"))=="Symbol(test)",y=/^Symbol\((.*)\)[^)]+$/;h(E,"description",{configurable:!0,get:function(){var $=d(this)?this.valueOf():this,O=w.call($);if(c(m,$))return"";var A=v?O.slice(7,-1):O.replace(y,"$1");return A===""?void 0:A}}),a({global:!0,forced:!0},{Symbol:_})}},e163:function(i,o,s){var a=s("5135"),l=s("7b0b"),u=s("f772"),c=s("e177"),d=u("IE_PROTO"),h=Object.prototype;i.exports=c?Object.getPrototypeOf:function(p){return p=l(p),a(p,d)?p[d]:typeof p.constructor=="function"&&p instanceof p.constructor?p.constructor.prototype:p instanceof Object?h:null}},e177:function(i,o,s){var a=s("d039");i.exports=!a(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})},e260:function(i,o,s){var a=s("fc6a"),l=s("44d2"),u=s("3f8c"),c=s("69f3"),d=s("7dd0"),h="Array Iterator",p=c.set,g=c.getterFor(h);i.exports=d(Array,"Array",function(m,_){p(this,{type:h,target:a(m),index:0,kind:_})},function(){var m=g(this),_=m.target,E=m.kind,w=m.index++;return!_||w>=_.length?(m.target=void 0,{value:void 0,done:!0}):E=="keys"?{value:w,done:!1}:E=="values"?{value:_[w],done:!1}:{value:[w,_[w]],done:!1}},"values"),u.Arguments=u.Array,l("keys"),l("values"),l("entries")},e439:function(i,o,s){var a=s("23e7"),l=s("d039"),u=s("fc6a"),c=s("06cf").f,d=s("83ab"),h=l(function(){c(1)}),p=!d||h;a({target:"Object",stat:!0,forced:p,sham:!d},{getOwnPropertyDescriptor:function(m,_){return c(u(m),_)}})},e538:function(i,o,s){var a=s("b622");o.f=a},e893:function(i,o,s){var a=s("5135"),l=s("56ef"),u=s("06cf"),c=s("9bf2");i.exports=function(d,h){for(var p=l(h),g=c.f,m=u.f,_=0;_<p.length;_++){var E=p[_];a(d,E)||g(d,E,m(h,E))}}},e8b5:function(i,o,s){var a=s("c6b6");i.exports=Array.isArray||function(u){return a(u)=="Array"}},e95a:function(i,o,s){var a=s("b622"),l=s("3f8c"),u=a("iterator"),c=Array.prototype;i.exports=function(d){return d!==void 0&&(l.Array===d||c[u]===d)}},f5df:function(i,o,s){var a=s("00ee"),l=s("c6b6"),u=s("b622"),c=u("toStringTag"),d=l(function(){return arguments}())=="Arguments",h=function(p,g){try{return p[g]}catch{}};i.exports=a?l:function(p){var g,m,_;return p===void 0?"Undefined":p===null?"Null":typeof(m=h(g=Object(p),c))=="string"?m:d?l(g):(_=l(g))=="Object"&&typeof g.callee=="function"?"Arguments":_}},f772:function(i,o,s){var a=s("5692"),l=s("90e3"),u=a("keys");i.exports=function(c){return u[c]||(u[c]=l(c))}},fb15:function(i,o,s){if(s.r(o),typeof window<"u"){var a=window.document.currentScript;{var l=s("8875");a=l(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:l})}var u=a&&a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);u&&(s.p=u[1])}s("99af"),s("4de4"),s("4160"),s("c975"),s("d81d"),s("a434"),s("159b"),s("a4d3"),s("e439"),s("dbb4"),s("b64b");function c(X,q,ie){return q in X?Object.defineProperty(X,q,{value:ie,enumerable:!0,configurable:!0,writable:!0}):X[q]=ie,X}function d(X,q){var ie=Object.keys(X);if(Object.getOwnPropertySymbols){var ge=Object.getOwnPropertySymbols(X);q&&(ge=ge.filter(function(Ce){return Object.getOwnPropertyDescriptor(X,Ce).enumerable})),ie.push.apply(ie,ge)}return ie}function h(X){for(var q=1;q<arguments.length;q++){var ie=arguments[q]!=null?arguments[q]:{};q%2?d(Object(ie),!0).forEach(function(ge){c(X,ge,ie[ge])}):Object.getOwnPropertyDescriptors?Object.defineProperties(X,Object.getOwnPropertyDescriptors(ie)):d(Object(ie)).forEach(function(ge){Object.defineProperty(X,ge,Object.getOwnPropertyDescriptor(ie,ge))})}return X}function p(X){if(Array.isArray(X))return X}s("e01a"),s("d28b"),s("e260"),s("d3b7"),s("3ca3"),s("ddb0");function g(X,q){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(X)))){var ie=[],ge=!0,Ce=!1,We=void 0;try{for(var ot=X[Symbol.iterator](),Je;!(ge=(Je=ot.next()).done)&&(ie.push(Je.value),!(q&&ie.length===q));ge=!0);}catch(St){Ce=!0,We=St}finally{try{!ge&&ot.return!=null&&ot.return()}finally{if(Ce)throw We}}return ie}}s("a630"),s("fb6a"),s("b0c0"),s("25f0");function m(X,q){(q==null||q>X.length)&&(q=X.length);for(var ie=0,ge=new Array(q);ie<q;ie++)ge[ie]=X[ie];return ge}function _(X,q){if(X){if(typeof X=="string")return m(X,q);var ie=Object.prototype.toString.call(X).slice(8,-1);if(ie==="Object"&&X.constructor&&(ie=X.constructor.name),ie==="Map"||ie==="Set")return Array.from(X);if(ie==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ie))return m(X,q)}}function E(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2555
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w(X,q){return p(X)||g(X,q)||_(X,q)||E()}function v(X){if(Array.isArray(X))return m(X)}function y(X){if(typeof Symbol<"u"&&Symbol.iterator in Object(X))return Array.from(X)}function k(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2556
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $(X){return v(X)||y(X)||_(X)||k()}var O=s("a352"),A=s.n(O);function x(X){X.parentElement!==null&&X.parentElement.removeChild(X)}function N(X,q,ie){var ge=ie===0?X.children[0]:X.children[ie-1].nextSibling;X.insertBefore(q,ge)}var P=s("dbf1");s("13d5"),s("4fad"),s("ac1f"),s("5319");function b(X){var q=Object.create(null);return function(ge){var Ce=q[ge];return Ce||(q[ge]=X(ge))}}var S=/-(\w)/g,I=b(function(X){return X.replace(S,function(q,ie){return ie.toUpperCase()})});s("5db7"),s("73d9");var V=["Start","Add","Remove","Update","End"],M=["Choose","Unchoose","Sort","Filter","Clone"],H=["Move"],G=[H,V,M].flatMap(function(X){return X}).map(function(X){return"on".concat(X)}),J={manage:H,manageAndEmit:V,emit:M};function oe(X){return G.indexOf(X)!==-1}s("caad"),s("2ca0");var ae=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function de(X){return ae.includes(X)}function xe(X){return["transition-group","TransitionGroup"].includes(X)}function Ee(X){return["id","class","role","style"].includes(X)||X.startsWith("data-")||X.startsWith("aria-")||X.startsWith("on")}function pe(X){return X.reduce(function(q,ie){var ge=w(ie,2),Ce=ge[0],We=ge[1];return q[Ce]=We,q},{})}function le(X){var q=X.$attrs,ie=X.componentData,ge=ie===void 0?{}:ie,Ce=pe(Object.entries(q).filter(function(We){var ot=w(We,2),Je=ot[0];return ot[1],Ee(Je)}));return h(h({},Ce),ge)}function fe(X){var q=X.$attrs,ie=X.callBackBuilder,ge=pe(Re(q));Object.entries(ie).forEach(function(We){var ot=w(We,2),Je=ot[0],St=ot[1];J[Je].forEach(function(Ze){ge["on".concat(Ze)]=St(Ze)})});var Ce="[data-draggable]".concat(ge.draggable||"");return h(h({},ge),{},{draggable:Ce})}function Re(X){return Object.entries(X).filter(function(q){var ie=w(q,2),ge=ie[0];return ie[1],!Ee(ge)}).map(function(q){var ie=w(q,2),ge=ie[0],Ce=ie[1];return[I(ge),Ce]}).filter(function(q){var ie=w(q,2),ge=ie[0];return ie[1],!oe(ge)})}s("c740");function $e(X,q){if(!(X instanceof q))throw new TypeError("Cannot call a class as a function")}function Be(X,q){for(var ie=0;ie<q.length;ie++){var ge=q[ie];ge.enumerable=ge.enumerable||!1,ge.configurable=!0,"value"in ge&&(ge.writable=!0),Object.defineProperty(X,ge.key,ge)}}function et(X,q,ie){return q&&Be(X.prototype,q),X}var Me=function(q){var ie=q.el;return ie},B=function(q,ie){return q.__draggable_context=ie},D=function(q){return q.__draggable_context},L=function(){function X(q){var ie=q.nodes,ge=ie.header,Ce=ie.default,We=ie.footer,ot=q.root,Je=q.realList;$e(this,X),this.defaultNodes=Ce,this.children=[].concat($(ge),$(Ce),$(We)),this.externalComponent=ot.externalComponent,this.rootTransition=ot.transition,this.tag=ot.tag,this.realList=Je}return et(X,[{key:"render",value:function(ie,ge){var Ce=this.tag,We=this.children,ot=this._isRootComponent,Je=ot?{default:function(){return We}}:We;return ie(Ce,ge,Je)}},{key:"updated",value:function(){var ie=this.defaultNodes,ge=this.realList;ie.forEach(function(Ce,We){B(Me(Ce),{element:ge[We],index:We})})}},{key:"getUnderlyingVm",value:function(ie){return D(ie)}},{key:"getVmIndexFromDomIndex",value:function(ie,ge){var Ce=this.defaultNodes,We=Ce.length,ot=ge.children,Je=ot.item(ie);if(Je===null)return We;var St=D(Je);if(St)return St.index;if(We===0)return 0;var Ze=Me(Ce[0]),Ve=$(ot).findIndex(function(Ke){return Ke===Ze});return ie<Ve?0:We}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),X}(),z=s("8bbf");function F(X,q){var ie=X[q];return ie?ie():[]}function W(X){var q=X.$slots,ie=X.realList,ge=X.getKey,Ce=ie||[],We=["header","footer"].map(function(Ke){return F(q,Ke)}),ot=w(We,2),Je=ot[0],St=ot[1],Ze=q.item;if(!Ze)throw new Error("draggable element must have an item slot");var Ve=Ce.flatMap(function(Ke,mt){return Ze({element:Ke,index:mt}).map(function(it){return it.key=ge(Ke),it.props=h(h({},it.props||{}),{},{"data-draggable":!0}),it})});if(Ve.length!==Ce.length)throw new Error("Item slot must have only one child");return{header:Je,footer:St,default:Ve}}function ee(X){var q=xe(X),ie=!de(X)&&!q;return{transition:q,externalComponent:ie,tag:ie?Object(z.resolveComponent)(X):q?z.TransitionGroup:X}}function Y(X){var q=X.$slots,ie=X.tag,ge=X.realList,Ce=X.getKey,We=W({$slots:q,realList:ge,getKey:Ce}),ot=ee(ie);return new L({nodes:We,root:ot,realList:ge})}function te(X,q){var ie=this;Object(z.nextTick)(function(){return ie.$emit(X.toLowerCase(),q)})}function Q(X){var q=this;return function(ie,ge){if(q.realList!==null)return q["onDrag".concat(X)](ie,ge)}}function ye(X){var q=this,ie=Q.call(this,X);return function(ge,Ce){ie.call(q,ge,Ce),te.call(q,X,ge)}}var he=null,be={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(q){return q}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Le=["update:modelValue","change"].concat($([].concat($(J.manageAndEmit),$(J.emit)).map(function(X){return X.toLowerCase()}))),rt=Object(z.defineComponent)({name:"draggable",inheritAttrs:!1,props:be,emits:Le,data:function(){return{error:!1}},render:function(){try{this.error=!1;var q=this.$slots,ie=this.$attrs,ge=this.tag,Ce=this.componentData,We=this.realList,ot=this.getKey,Je=Y({$slots:q,tag:ge,realList:We,getKey:ot});this.componentStructure=Je;var St=le({$attrs:ie,componentData:Ce});return Je.render(z.h,St)}catch(Ze){return this.error=!0,Object(z.h)("pre",{style:{color:"red"}},Ze.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&P.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var q=this;if(!this.error){var ie=this.$attrs,ge=this.$el,Ce=this.componentStructure;Ce.updated();var We=fe({$attrs:ie,callBackBuilder:{manageAndEmit:function(St){return ye.call(q,St)},emit:function(St){return te.bind(q,St)},manage:function(St){return Q.call(q,St)}}}),ot=ge.nodeType===1?ge:ge.parentElement;this._sortable=new A.a(ot,We),this.targetDomElement=ot,ot.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var q=this.list;return q||this.modelValue},getKey:function(){var q=this.itemKey;return typeof q=="function"?q:function(ie){return ie[q]}}},watch:{$attrs:{handler:function(q){var ie=this._sortable;ie&&Re(q).forEach(function(ge){var Ce=w(ge,2),We=Ce[0],ot=Ce[1];ie.option(We,ot)})},deep:!0}},methods:{getUnderlyingVm:function(q){return this.componentStructure.getUnderlyingVm(q)||null},getUnderlyingPotencialDraggableComponent:function(q){return q.__draggable_component__},emitChanges:function(q){var ie=this;Object(z.nextTick)(function(){return ie.$emit("change",q)})},alterList:function(q){if(this.list){q(this.list);return}var ie=$(this.modelValue);q(ie),this.$emit("update:modelValue",ie)},spliceList:function(){var q=arguments,ie=function(Ce){return Ce.splice.apply(Ce,$(q))};this.alterList(ie)},updatePosition:function(q,ie){var ge=function(We){return We.splice(ie,0,We.splice(q,1)[0])};this.alterList(ge)},getRelatedContextFromMoveEvent:function(q){var ie=q.to,ge=q.related,Ce=this.getUnderlyingPotencialDraggableComponent(ie);if(!Ce)return{component:Ce};var We=Ce.realList,ot={list:We,component:Ce};if(ie!==ge&&We){var Je=Ce.getUnderlyingVm(ge)||{};return h(h({},Je),ot)}return ot},getVmIndexFromDomIndex:function(q){return this.componentStructure.getVmIndexFromDomIndex(q,this.targetDomElement)},onDragStart:function(q){this.context=this.getUnderlyingVm(q.item),q.item._underlying_vm_=this.clone(this.context.element),he=q.item},onDragAdd:function(q){var ie=q.item._underlying_vm_;if(ie!==void 0){x(q.item);var ge=this.getVmIndexFromDomIndex(q.newIndex);this.spliceList(ge,0,ie);var Ce={element:ie,newIndex:ge};this.emitChanges({added:Ce})}},onDragRemove:function(q){if(N(this.$el,q.item,q.oldIndex),q.pullMode==="clone"){x(q.clone);return}var ie=this.context,ge=ie.index,Ce=ie.element;this.spliceList(ge,1);var We={element:Ce,oldIndex:ge};this.emitChanges({removed:We})},onDragUpdate:function(q){x(q.item),N(q.from,q.item,q.oldIndex);var ie=this.context.index,ge=this.getVmIndexFromDomIndex(q.newIndex);this.updatePosition(ie,ge);var Ce={element:this.context.element,oldIndex:ie,newIndex:ge};this.emitChanges({moved:Ce})},computeFutureIndex:function(q,ie){if(!q.element)return 0;var ge=$(ie.to.children).filter(function(Je){return Je.style.display!=="none"}),Ce=ge.indexOf(ie.related),We=q.component.getVmIndexFromDomIndex(Ce),ot=ge.indexOf(he)!==-1;return ot||!ie.willInsertAfter?We:We+1},onDragMove:function(q,ie){var ge=this.move,Ce=this.realList;if(!ge||!Ce)return!0;var We=this.getRelatedContextFromMoveEvent(q),ot=this.computeFutureIndex(We,q),Je=h(h({},this.context),{},{futureIndex:ot}),St=h(h({},q),{},{relatedContext:We,draggedContext:Je});return ge(St,ie)},onDragEnd:function(){he=null}}}),gt=rt;o.default=gt},fb6a:function(i,o,s){var a=s("23e7"),l=s("861d"),u=s("e8b5"),c=s("23cb"),d=s("50c4"),h=s("fc6a"),p=s("8418"),g=s("b622"),m=s("1dde"),_=s("ae40"),E=m("slice"),w=_("slice",{ACCESSORS:!0,0:0,1:2}),v=g("species"),y=[].slice,k=Math.max;a({target:"Array",proto:!0,forced:!E||!w},{slice:function(O,A){var x=h(this),N=d(x.length),P=c(O,N),b=c(A===void 0?N:A,N),S,I,V;if(u(x)&&(S=x.constructor,typeof S=="function"&&(S===Array||u(S.prototype))?S=void 0:l(S)&&(S=S[v],S===null&&(S=void 0)),S===Array||S===void 0))return y.call(x,P,b);for(I=new(S===void 0?Array:S)(k(b-P,0)),V=0;P<b;P++,V++)P in x&&p(I,V,x[P]);return I.length=V,I}})},fc6a:function(i,o,s){var a=s("44ad"),l=s("1d80");i.exports=function(u){return a(l(u))}},fdbc:function(i,o){i.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(i,o,s){var a=s("4930");i.exports=a&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})(qT);var Q9=qT.exports;const zh=p9(Q9),q9={key:1,class:"w-4"},eU={class:"truncate flex-1"},tU={key:0,class:"border-l border-white/10 ml-2"},nU=Te({...Te({name:"LayerItem"}),props:{data:{},path:{},depth:{}},setup(t){const e=t,n=e.depth??0,r=si(),i=we(!0),o=Z(()=>r.selection.value===e.path),s=Z(()=>{var g,m,_;return(g=e.data)!=null&&g.type?e.data.type:(m=e.data)!=null&&m.title?e.data.title:(_=e.data)!=null&&_.text?e.data.text.substring(0,20)+"...":"Element"}),a=Z(()=>{var m;return{title:"ph-thin ph-text-h",text:"ph-thin ph-text-align-left",image:"ph-thin ph-image",video:"ph-thin ph-video-camera",content:"ph-thin ph-square",bullets:"ph-thin ph-list-bullets",ordered:"ph-thin ph-list-numbers",button:"ph-thin ph-rectangle",flex:"ph-thin ph-columns",half:"ph-thin ph-layout",statement:"ph-thin ph-quotes"}[(m=e.data)==null?void 0:m.type]||"ph-thin ph-cube"}),l=Z(()=>{var g,m,_;return(g=e.data)!=null&&g.elements?"elements":(m=e.data)!=null&&m.items?"items":(_=e.data)!=null&&_.features?"features":null}),u=Z(()=>{if(!l.value)return!1;const g=e.data[l.value];return Array.isArray(g)&&g.length>0}),c=Z(()=>l.value?e.data[l.value]||[]:[]),d=()=>{i.value=!i.value},h=()=>{r.select(e.path)},p=g=>{if(g.moved){const{oldIndex:m,newIndex:_}=g.moved;r.store.moveNode(`${e.path}.${l.value}`,m,_),r.commit()}};return(g,m)=>{const _=Pr("LayerItem",!0);return j(),K("div",{class:Se(["layer-item",{"ml-3":re(n)>0}])},[C("div",{class:Se(["flex items-center gap-1 py-1 px-2 rounded cursor-pointer transition-colors text-xs",[o.value?"bg-blue-600 text-white":"text-white/70 hover:bg-white/10 hover:text-white"]]),onClick:kr(h,["stop"])},[u.value?(j(),K("button",{key:0,onClick:kr(d,["stop"]),class:"w-4 h-4 flex items-center justify-center text-white/50 hover:text-white"},[C("i",{class:Se([i.value?"ph-thin ph-caret-down":"ph-thin ph-caret-right","text-[8px]"])},null,2)])):(j(),K("div",q9)),C("i",{class:Se([a.value,"text-[10px] opacity-70"])},null,2),C("span",eU,Ie(s.value),1)],2),i.value&&u.value?(j(),K("div",tU,[ce(re(zh),{list:c.value,"item-key":"dragKey",group:{name:"layers"},onChange:p,class:"min-h-[8px]"},{item:ke(({element:E,index:w})=>[ce(_,{data:E,path:`${t.path}.${l.value}.${w}`,depth:re(n)+1},null,8,["data","path","depth"])]),_:1},8,["list"])])):Oe("",!0)],2)}}}),rU={class:"flex flex-col h-full text-xs"},iU={class:"px-3 py-2 font-bold text-white/50 uppercase tracking-wider border-b border-[#333] flex items-center justify-between"},oU={class:"text-white/30 font-mono"},sU={class:"flex-1 overflow-y-auto p-2"},aU={key:1,class:"text-white/30 italic text-center mt-4"},lU=Te({__name:"StudioLayers",setup(t){const e=si(),n=Z(()=>{var o;return((o=e.store.state.deck)==null?void 0:o.slides)||[]});Z(()=>n.value.length);const r=Z(()=>e.store.state.currentIndex),i=Z(()=>n.value[r.value]);return we("flex"),(o,s)=>(j(),K("div",rU,[C("div",iU,[s[0]||(s[0]=C("span",null,"Elements",-1)),C("span",oU,"Slide "+Ie(r.value+1),1)]),C("div",sU,[i.value?(j(),De(nU,{key:0,data:i.value,path:`slides.${r.value}`},null,8,["data","path"])):(j(),K("div",aU," No slide selected "))])]))}}),Py={default:{colors:{primary:"#3b82f6",secondary:"#8b5cf6",accent:"#06b6d4",background:"#030303",surface:"#0a0a0a",text:"#ffffff",textSecondary:"#e5e7eb",muted:"#9ca3af",gradientFrom:"#3b82f6",gradientTo:"#8b5cf6"},typography:{fontFamily:{heading:"Inter, system-ui, sans-serif",body:"Inter, system-ui, sans-serif",mono:"ui-monospace, SFMono-Regular, monospace"}},effects:{useGradients:!0,useGlass:!0,useOrb:!0,useShadows:!0}},ocean:{colors:{primary:"#06b6d4",secondary:"#0ea5e9",accent:"#22d3ee",background:"#0f172a",surface:"#1e293b",text:"#f0f9ff",textSecondary:"#e0f2fe",muted:"#94a3b8",success:"#14b8a6",warning:"#fb923c",danger:"#f43f5e",info:"#38bdf8",border:"rgba(148, 163, 184, 0.2)",gradientFrom:"#06b6d4",gradientTo:"#0ea5e9"},typography:{fontFamily:{heading:"Outfit, Inter, sans-serif",body:"Inter, system-ui, sans-serif"}},effects:{orbOpacity:.3,glassOpacity:.05}},midnight:{colors:{primary:"#6366f1",secondary:"#8b5cf6",accent:"#a78bfa",background:"#000000",surface:"#0a0a0f",text:"#e0e7ff",textSecondary:"#c7d2fe",muted:"#6b7280",success:"#10b981",warning:"#fbbf24",danger:"#f87171",info:"#60a5fa",border:"rgba(99, 102, 241, 0.2)",gradientFrom:"#6366f1",gradientTo:"#a855f7"},effects:{orbOpacity:.5,shadowIntensity:"lg"}},forest:{colors:{primary:"#10b981",secondary:"#059669",accent:"#34d399",background:"#022c22",surface:"#064e3b",text:"#ecfdf5",textSecondary:"#d1fae5",muted:"#6ee7b7",success:"#22c55e",warning:"#fbbf24",danger:"#ef4444",info:"#38bdf8",border:"rgba(52, 211, 153, 0.2)",gradientFrom:"#10b981",gradientTo:"#059669"},effects:{orbOpacity:.35,orbBlur:"150px"}},cyber:{colors:{primary:"#f472b6",secondary:"#e879f9",accent:"#22d3ee",background:"#18181b",surface:"#27272a",text:"#ffffff",textSecondary:"#fafafa",muted:"#a1a1aa",success:"#4ade80",warning:"#facc15",danger:"#f87171",info:"#38bdf8",border:"rgba(244, 114, 182, 0.3)",gradientFrom:"#f472b6",gradientTo:"#e879f9"},typography:{fontFamily:{heading:"Orbitron, sans-serif",body:"Rajdhani, sans-serif"},letterSpacing:{widest:"0.15em"}},effects:{orbOpacity:.6,shadowIntensity:"xl",shadowColor:"rgba(244, 114, 182, 0.3)"},components:{cardRadius:"0.5rem",buttonRadius:"0.5rem"}},latte:{colors:{primary:"#d97706",secondary:"#ea580c",accent:"#f59e0b",background:"#fffbeb",surface:"#fef3c7",text:"#451a03",textSecondary:"#78350f",muted:"#92400e",success:"#16a34a",warning:"#ca8a04",danger:"#dc2626",info:"#2563eb",border:"rgba(146, 64, 14, 0.2)",shadow:"rgba(120, 53, 15, 0.1)",gradientFrom:"#d97706",gradientTo:"#ea580c"},typography:{fontFamily:{heading:"Playfair Display, Georgia, serif",body:"Lato, system-ui, sans-serif"}},effects:{useOrb:!1,glassOpacity:.5,glassBorderOpacity:.15,shadowColor:"rgba(120, 53, 15, 0.15)"},components:{cardBackground:"rgba(255, 255, 255, 0.7)"}},sunset:{colors:{primary:"#f97316",secondary:"#f43f5e",accent:"#fb7185",background:"#1c1917",surface:"#292524",text:"#fafaf9",textSecondary:"#e7e5e4",muted:"#a8a29e",gradientFrom:"#f97316",gradientTo:"#f43f5e"},effects:{orbOpacity:.45,gradientDirection:"to-br"}},monochrome:{colors:{primary:"#ffffff",secondary:"#a1a1aa",accent:"#d4d4d8",background:"#09090b",surface:"#18181b",text:"#fafafa",textSecondary:"#e4e4e7",muted:"#71717a",border:"rgba(255, 255, 255, 0.1)",gradientFrom:"#ffffff",gradientTo:"#a1a1aa"},effects:{useGradients:!1,orbOpacity:.2}}},wI=[{family:"Inter",category:"sans-serif",label:"Inter"},{family:"Roboto",category:"sans-serif",label:"Roboto"},{family:"Open Sans",category:"sans-serif",label:"Open Sans"},{family:"Montserrat",category:"sans-serif",label:"Montserrat"},{family:"Lato",category:"sans-serif",label:"Lato"},{family:"Poppins",category:"sans-serif",label:"Poppins"},{family:"Raleway",category:"sans-serif",label:"Raleway"},{family:"Nunito",category:"sans-serif",label:"Nunito"},{family:"Ubuntu",category:"sans-serif",label:"Ubuntu"},{family:"Rubik",category:"sans-serif",label:"Rubik"},{family:"Work Sans",category:"sans-serif",label:"Work Sans"},{family:"Quicksand",category:"sans-serif",label:"Quicksand"},{family:"Outfit",category:"sans-serif",label:"Outfit"},{family:"Plus Jakarta Sans",category:"sans-serif",label:"Plus Jakarta Sans"},{family:"Merriweather",category:"serif",label:"Merriweather"},{family:"Playfair Display",category:"serif",label:"Playfair Display"},{family:"Lora",category:"serif",label:"Lora"},{family:"PT Serif",category:"serif",label:"PT Serif"},{family:"Noto Serif",category:"serif",label:"Noto Serif"},{family:"Crimson Text",category:"serif",label:"Crimson Text"},{family:"Libre Baskerville",category:"serif",label:"Libre Baskerville"},{family:"Cinzel",category:"serif",label:"Cinzel"},{family:"Cormorant Garamond",category:"serif",label:"Cormorant Garamond"},{family:"DM Serif Display",category:"serif",label:"DM Serif Display"},{family:"Bebas Neue",category:"display",label:"Bebas Neue"},{family:"Lobster",category:"display",label:"Lobster"},{family:"Comfortaa",category:"display",label:"Comfortaa"},{family:"Abril Fatface",category:"display",label:"Abril Fatface"},{family:"Righteous",category:"display",label:"Righteous"},{family:"Alfa Slab One",category:"display",label:"Alfa Slab One"},{family:"Bangers",category:"display",label:"Bangers"},{family:"Orbitron",category:"display",label:"Orbitron"},{family:"Audiowide",category:"display",label:"Audiowide"},{family:"Press Start 2P",category:"display",label:"Press Start 2P"},{family:"Unbounded",category:"display",label:"Unbounded"},{family:"Syne",category:"display",label:"Syne"},{family:"Pacifico",category:"handwriting",label:"Pacifico"},{family:"Dancing Script",category:"handwriting",label:"Dancing Script"},{family:"Shadows Into Light",category:"handwriting",label:"Shadows Into Light"},{family:"Caveat",category:"handwriting",label:"Caveat"},{family:"Satisfy",category:"handwriting",label:"Satisfy"},{family:"Great Vibes",category:"handwriting",label:"Great Vibes"},{family:"Sacramento",category:"handwriting",label:"Sacramento"},{family:"Gloria Hallelujah",category:"handwriting",label:"Gloria Hallelujah"},{family:"Permanent Marker",category:"handwriting",label:"Permanent Marker"},{family:"Roboto Mono",category:"monospace",label:"Roboto Mono"},{family:"Inconsolata",category:"monospace",label:"Inconsolata"},{family:"Source Code Pro",category:"monospace",label:"Source Code Pro"},{family:"Space Mono",category:"monospace",label:"Space Mono"},{family:"JetBrains Mono",category:"monospace",label:"JetBrains Mono"},{family:"Fira Code",category:"monospace",label:"Fira Code"}],SI=new Set;function uU(t){const e=t.split(",")[0].replace(/['"]/g,"").trim();if(!wI.some(i=>i.family===e)||SI.has(e))return;SI.add(e);const n=document.createElement("link");n.rel="stylesheet";const r=e.replace(/ /g,"+");n.href=`https://fonts.googleapis.com/css2?family=${r}:wght@300;400;500;600;700;800&display=swap`,document.head.appendChild(n)}const Uh={colors:{primary:"#3b82f6",secondary:"#8b5cf6",accent:"#06b6d4",background:"#030303",surface:"#0a0a0a",text:"#ffffff",textSecondary:"#e5e7eb",muted:"#9ca3af",success:"#10b981",warning:"#f59e0b",danger:"#ef4444",info:"#3b82f6",border:"rgba(255, 255, 255, 0.1)",borderSubtle:"rgba(255, 255, 255, 0.05)",shadow:"#000000",overlay:"rgba(0, 0, 0, 0.5)",highlight:"rgba(59, 130, 246, 0.2)",buttonPrimary:"#3b82f6",buttonPrimaryText:"#ffffff",buttonSecondary:"rgba(255, 255, 255, 0.1)",buttonSecondaryText:"#ffffff",link:"#3b82f6",linkHover:"#60a5fa",gradientFrom:"#3b82f6",gradientVia:void 0,gradientTo:"#8b5cf6"},typography:{fontFamily:{heading:"Inter, system-ui, sans-serif",body:"Inter, system-ui, sans-serif",mono:"ui-monospace, SFMono-Regular, monospace"},fontSize:{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem"},fontWeight:{light:300,normal:400,medium:500,semibold:600,bold:800,extrabold:900},lineHeight:{tight:"1.1",snug:"1.25",normal:"1.5",relaxed:"1.625",loose:"2"},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"}},spacing:{none:"0",xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem","2xl":"3rem","3xl":"4rem","4xl":"6rem"},borderRadius:{none:"0",sm:"0.25rem",md:"0.5rem",lg:"0.75rem",xl:"1rem","2xl":"1.5rem","3xl":"2rem",full:"9999px"},effects:{useGradients:!0,gradientDirection:"to-b",gradientFrom:void 0,gradientVia:void 0,gradientTo:void 0,useShadows:!0,shadowIntensity:"md",shadowColor:"rgba(0, 0, 0, 0.4)",useGlass:!0,glassOpacity:.12,glassBlur:"20px",glassBorderOpacity:.2,useOrb:!0,orbOpacity:.2,orbBlur:"120px",orbSize:"80vw",animationsEnabled:!0,transitionDuration:"0.3s",transitionEasing:"cubic-bezier(0.16, 1, 0.3, 1)",hoverScale:1.05},components:{buttonRadius:"9999px",buttonPadding:"0.75rem 1.5rem",buttonFontWeight:700,buttonTextTransform:"none",cardRadius:"1.5rem",cardPadding:"2rem",cardBorderWidth:"1px",cardBackground:void 0,timelineNodeSize:"1rem",timelineLineWidth:"2px",timelineNodeColor:void 0,timelineLineColor:void 0,stepBadgeSize:"2.5rem",stepFontSize:"1rem",progressHeight:"0.5rem",progressRadius:"9999px",progressBackground:"rgba(255, 255, 255, 0.1)",progressFill:void 0,tagPadding:"0.25rem 1rem",tagRadius:"9999px",tagFontSize:"0.75rem",inputRadius:"0.5rem",inputPadding:"0.75rem 1rem",inputBorder:void 0,inputFocusBorder:void 0},fonts:{}},EI="lumina-theme-styles";function Bh(t,e){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const i=e[r],o=t[r];i!=null&&typeof i=="object"&&!Array.isArray(i)&&typeof o=="object"&&!Array.isArray(o)?n[r]=Bh(o,i):i!==void 0&&(n[r]=i)}return n}class Hl{static inject(e,n){var s;let r;if(typeof e=="string"){const a=Py[e]||Py.default;r=Bh(Uh,a)}else r=Bh(Uh,e);n&&(r=Bh(r,n)),r.fonts&&!((s=r.typography)!=null&&s.fontFamily)&&(r.typography=r.typography||{},r.typography.fontFamily={heading:r.fonts.heading,body:r.fonts.body,mono:r.fonts.mono});let i=document.getElementById(EI);i||(i=document.createElement("style"),i.id=EI,document.head.appendChild(i));const o=this.generateVars(r);i.innerHTML=`:root { ${o} }`}static getDefaultTheme(){return Uh}static generateVars(e){var i,o,s,a;const n=[];if(e.colors){for(const[l,u]of Object.entries(e.colors))if(u){const c=this.camelToKebab(l);n.push(`--lumina-color-${c}: ${u};`);const d=this.hexToRgb(u);d&&n.push(`--lumina-color-${c}-rgb: ${d.r}, ${d.g}, ${d.b};`)}}if(e.typography){const l=e.typography;if(l.fontFamily)for(const[u,c]of Object.entries(l.fontFamily))c&&(n.push(`--lumina-font-${u}: ${c};`),uU(c));if(l.fontSize)for(const[u,c]of Object.entries(l.fontSize))c&&n.push(`--lumina-text-${u}: ${c};`);if(l.fontWeight)for(const[u,c]of Object.entries(l.fontWeight))c!==void 0&&n.push(`--lumina-font-weight-${u}: ${c};`);if(l.lineHeight)for(const[u,c]of Object.entries(l.lineHeight))c&&n.push(`--lumina-leading-${u}: ${c};`);if(l.letterSpacing)for(const[u,c]of Object.entries(l.letterSpacing))c&&n.push(`--lumina-tracking-${u}: ${c};`)}if(e.spacing)for(const[l,u]of Object.entries(e.spacing))u&&n.push(`--lumina-space-${l}: ${u};`);if(e.borderRadius)for(const[l,u]of Object.entries(e.borderRadius))u&&n.push(`--lumina-radius-${l}: ${u};`);if(e.effects){const l=e.effects;n.push(`--lumina-use-gradients: ${l.useGradients?1:0};`),n.push(`--lumina-use-shadows: ${l.useShadows?1:0};`),n.push(`--lumina-use-glass: ${l.useGlass?1:0};`),n.push(`--lumina-use-orb: ${l.useOrb?1:0};`),n.push(`--lumina-use-animations: ${l.animationsEnabled?1:0};`),l.useGradients?(n.push("--lumina-gradient-text-fill: transparent;"),n.push("--lumina-gradient-bg-clip: text;")):(n.push("--lumina-gradient-text-fill: currentColor;"),n.push("--lumina-gradient-bg-clip: border-box;")),l.gradientDirection&&n.push(`--lumina-gradient-direction: ${this.gradientDirectionToCSS(l.gradientDirection)};`),l.gradientFrom&&n.push(`--lumina-gradient-from: ${l.gradientFrom};`),l.gradientVia&&n.push(`--lumina-gradient-via: ${l.gradientVia};`),l.gradientTo&&n.push(`--lumina-gradient-to: ${l.gradientTo};`),l.shadowIntensity&&n.push(`--lumina-shadow-intensity: ${l.shadowIntensity};`),l.shadowColor&&n.push(`--lumina-shadow-color: ${l.shadowColor};`),l.glassOpacity!==void 0&&n.push(`--lumina-glass-opacity: ${l.glassOpacity};`),l.glassBlur&&n.push(`--lumina-glass-blur: ${l.glassBlur};`),l.glassBorderOpacity!==void 0&&n.push(`--lumina-glass-border-opacity: ${l.glassBorderOpacity};`),l.orbOpacity!==void 0&&n.push(`--lumina-orb-opacity: ${l.orbOpacity};`),l.orbBlur&&n.push(`--lumina-orb-blur: ${l.orbBlur};`),l.orbSize&&n.push(`--lumina-orb-size: ${l.orbSize};`),l.transitionDuration&&n.push(`--lumina-transition-duration: ${l.transitionDuration};`),l.transitionEasing&&n.push(`--lumina-transition-easing: ${l.transitionEasing};`),l.hoverScale!==void 0&&n.push(`--lumina-hover-scale: ${l.hoverScale};`)}if(e.components){const l=e.components;l.buttonRadius&&n.push(`--lumina-button-radius: ${l.buttonRadius};`),l.buttonPadding&&n.push(`--lumina-button-padding: ${l.buttonPadding};`),l.buttonFontWeight!==void 0&&n.push(`--lumina-button-font-weight: ${l.buttonFontWeight};`),l.buttonTextTransform&&n.push(`--lumina-button-text-transform: ${l.buttonTextTransform};`),l.cardRadius&&n.push(`--lumina-card-radius: ${l.cardRadius};`),l.cardPadding&&n.push(`--lumina-card-padding: ${l.cardPadding};`),l.cardBorderWidth&&n.push(`--lumina-card-border-width: ${l.cardBorderWidth};`),l.cardBackground&&n.push(`--lumina-card-background: ${l.cardBackground};`),l.timelineNodeSize&&n.push(`--lumina-timeline-node-size: ${l.timelineNodeSize};`),l.timelineLineWidth&&n.push(`--lumina-timeline-line-width: ${l.timelineLineWidth};`),l.timelineNodeColor&&n.push(`--lumina-timeline-node-color: ${l.timelineNodeColor};`),l.timelineLineColor&&n.push(`--lumina-timeline-line-color: ${l.timelineLineColor};`),l.stepBadgeSize&&n.push(`--lumina-step-badge-size: ${l.stepBadgeSize};`),l.stepFontSize&&n.push(`--lumina-step-font-size: ${l.stepFontSize};`),l.progressHeight&&n.push(`--lumina-progress-height: ${l.progressHeight};`),l.progressRadius&&n.push(`--lumina-progress-radius: ${l.progressRadius};`),l.progressBackground&&n.push(`--lumina-progress-background: ${l.progressBackground};`),l.progressFill&&n.push(`--lumina-progress-fill: ${l.progressFill};`),l.tagPadding&&n.push(`--lumina-tag-padding: ${l.tagPadding};`),l.tagRadius&&n.push(`--lumina-tag-radius: ${l.tagRadius};`),l.tagFontSize&&n.push(`--lumina-tag-font-size: ${l.tagFontSize};`),l.inputRadius&&n.push(`--lumina-input-radius: ${l.inputRadius};`),l.inputPadding&&n.push(`--lumina-input-padding: ${l.inputPadding};`),l.inputBorder&&n.push(`--lumina-input-border: ${l.inputBorder};`),l.inputFocusBorder&&n.push(`--lumina-input-focus-border: ${l.inputFocusBorder};`)}(i=e.colors)!=null&&i.primary&&n.push(`--lumina-colors-primary: ${e.colors.primary};`),(o=e.colors)!=null&&o.background&&n.push(`--lumina-colors-background: ${e.colors.background};`),(s=e.colors)!=null&&s.text&&n.push(`--lumina-colors-text: ${e.colors.text};`),(a=e.colors)!=null&&a.muted&&n.push(`--lumina-colors-muted: ${e.colors.muted};`);const r=this.generateAutoContrastVars(e);return n.push(...r),n.join(" ")}static camelToKebab(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}static gradientDirectionToCSS(e){return{"to-t":"to top","to-b":"to bottom","to-l":"to left","to-r":"to right","to-tl":"to top left","to-tr":"to top right","to-bl":"to bottom left","to-br":"to bottom right"}[e]||"to bottom"}static hexToRgb(e){const n=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(n,(i,o,s,a)=>o+o+s+s+a+a);const r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return r?{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)}:null}static getLuminance(e){const n=this.hexToRgb(e);if(!n)return 0;const r=a=>{const l=a/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)},i=r(n.r),o=r(n.g),s=r(n.b);return .2126*i+.7152*o+.0722*s}static isLightColor(e){return this.getLuminance(e)>.4}static getContrastTextColor(e,n="#1a1a1a",r="#ffffff"){return this.isLightColor(e)?n:r}static getContrastMutedColor(e){return this.isLightColor(e)?"#4b5563":"#9ca3af"}static extractHexColor(e){if(!e)return null;if(e.startsWith("#"))return e.split(" ")[0];if(e.startsWith("rgb")){const r=e.match(/\d+/g);if(r&&r.length>=3){const i=parseInt(r[0]),o=parseInt(r[1]),s=parseInt(r[2]);return"#"+((1<<24)+(i<<16)+(o<<8)+s).toString(16).slice(1)}}const n=e.match(/#[a-fA-F0-9]{3,6}/);return n?n[0]:null}static generateAutoContrastVars(e){var d,h,p,g;const n=[],r=(d=e.colors)==null?void 0:d.background;if(!r)return n;const i=this.extractHexColor(r);if(!i)return n;const o=this.isLightColor(i),s=o?"#000000":"#ffffff",a=o?"#374151":"#9ca3af",l=o?"#374151":"#d1d5db";n.push(`--lumina-auto-text: ${s};`),n.push(`--lumina-auto-text-secondary: ${l};`),n.push(`--lumina-auto-muted: ${a};`),n.push(`--lumina-auto-is-light: ${o?"1":"0"};`);const u=(h=e.colors)==null?void 0:h.text,c=u?this.extractHexColor(u):null;if(c){const m=this.getLuminance(c),_=this.getLuminance(i);(Math.max(m,_)+.05)/(Math.min(m,_)+.05)<3?(n.push(`--lumina-color-text-safe: ${s};`),n.push(`--lumina-color-muted-safe: ${a};`),n.push(`--lumina-color-text: ${s};`),n.push(`--lumina-color-muted: ${a};`),n.push(`--lumina-color-text-secondary: ${l};`)):(n.push(`--lumina-color-text-safe: ${u};`),n.push(`--lumina-color-muted-safe: ${((p=e.colors)==null?void 0:p.muted)||a};`))}else n.push(`--lumina-color-text-safe: ${s};`),n.push(`--lumina-color-muted-safe: ${a};`);if(o)n.push("--lumina-color-text-rgb: 0, 0, 0;"),n.push("--lumina-glass-opacity: 0.06;"),n.push("--lumina-glass-border-opacity: 0.15;"),n.push("--lumina-color-surface: #ffffff;"),n.push("--lumina-surface-text: #1a1a1a;"),n.push("--lumina-surface-muted: #4b5563;"),n.push("--lumina-shadow-color: rgba(0, 0, 0, 0.15);"),n.push("--lumina-color-border: rgba(0, 0, 0, 0.12);"),n.push("--lumina-color-border-subtle: rgba(0, 0, 0, 0.08);"),n.push("--lumina-color-muted: #374151;"),n.push("--lumina-color-text-secondary: #1f2937;");else{const m=(g=e.colors)==null?void 0:g.surface;if(m){const _=this.extractHexColor(m);if(_){const E=this.getContrastTextColor(_),w=this.getContrastMutedColor(_);n.push(`--lumina-surface-text: ${E};`),n.push(`--lumina-surface-muted: ${w};`)}}}return n}}const cU={class:"border border-[#333] rounded bg-[#151515] overflow-hidden"},dU={class:"flex items-center gap-2"},fU={class:"text-[10px] uppercase tracking-widest font-bold text-white/50 group-hover:text-white/70 transition"},hU={class:"p-3 border-t border-[#333] space-y-3"},vi=Te({__name:"CollapsibleSection",props:{title:{},icon:{},defaultExpanded:{type:Boolean}},setup(t){const n=we(t.defaultExpanded??!1);return(r,i)=>(j(),K("div",cU,[C("button",{onClick:i[0]||(i[0]=o=>n.value=!n.value),class:"w-full flex items-center justify-between px-3 py-2 bg-[#1a1a1a] hover:bg-[#222] transition text-left group"},[C("div",dU,[t.icon?(j(),K("i",{key:0,class:Se([t.icon,"text-white/40 group-hover:text-white/70 transition w-4 text-center"])},null,2)):Oe("",!0),C("span",fU,Ie(t.title),1)]),C("i",{class:Se(["ph-thin ph-caret-down text-[10px] text-white/30 transition-transform duration-200",{"rotate-180":n.value}])},null,2)]),za(C("div",hU,[Mt(r.$slots,"default")],512),[[lf,n.value]])]))}}),pU={class:"space-y-1"},gU={class:"flex items-center justify-between"},mU={class:"text-white/50 uppercase tracking-wider text-[10px]"},vU={class:"text-white/70 text-[10px] font-mono"},yU=["min","max","step","value"],jh=Te({__name:"SliderField",props:{label:{},value:{},min:{},max:{},step:{},unit:{},multiplier:{}},emits:["update"],setup(t,{emit:e}){const n=t,r=e,i=Z(()=>typeof n.value=="number"?n.value:typeof n.value=="string"&&parseFloat(n.value)||0),o=Z(()=>`${i.value}${n.unit||""}`),s=a=>{const l=parseFloat(a);r("update",l)};return(a,l)=>(j(),K("div",pU,[C("div",gU,[C("label",mU,Ie(t.label),1),C("span",vU,Ie(o.value),1)]),C("input",{type:"range",min:t.min,max:t.max,step:t.step,value:i.value,onInput:l[0]||(l[0]=u=>s(u.target.value)),class:"w-full h-1 bg-[#333] rounded-lg appearance-none cursor-pointer accent-blue-500 hover:accent-blue-400"},null,40,yU)]))}}),bU={class:"flex flex-col h-full text-xs bg-[#111]"},_U={class:"flex-1 overflow-y-auto p-2 space-y-2 custom-scrollbar"},xU={class:"space-y-2"},wU={class:"space-y-1"},SU=["value"],EU={class:"space-y-1"},TU=["value"],IU={class:"grid grid-cols-2 gap-2"},CU=["onClick"],AU={class:"flex gap-1"},PU={class:"space-y-3"},kU={class:"space-y-3"},OU={class:"space-y-1"},NU=["value"],RU=["label"],$U=["value"],DU={class:"space-y-1"},MU=["value"],LU=["label"],VU=["value"],FU={class:"space-y-3"},zU={class:"grid grid-cols-2 gap-2"},UU={class:"text-white/50 uppercase tracking-wider text-[10px]"},BU=["value","onInput"],jU={class:"space-y-3"},HU={class:"grid grid-cols-2 gap-2"},GU={class:"text-white/50 uppercase tracking-wider text-[10px]"},WU=["value","onInput"],KU={class:"space-y-3"},ZU={key:0,class:"space-y-3 pt-2 pl-2 border-l-2 border-[#333]"},XU={class:"space-y-1"},YU=["value"],JU={class:"grid grid-cols-2 gap-2"},QU={class:"space-y-1"},qU=["value"],eB={class:"space-y-1"},tB=["value"],nB={class:"pt-2 border-t border-[#333]"},rB={key:0,class:"mt-2 pl-2 border-l-2 border-[#333] space-y-2"},iB={class:"pt-2 border-t border-[#333]"},oB={key:0,class:"mt-2 pl-2 border-l-2 border-[#333] space-y-2"},sB={class:"pt-2 border-t border-[#333]"},aB={class:"space-y-3"},lB={class:"space-y-1"},uB=["value"],cB={class:"space-y-1"},dB=["value"],fB={class:"space-y-2 pt-4 border-t border-[#333] mt-2"},hB={class:"flex justify-between text-white/50"},pB={class:"font-mono text-white"},gB=Jr(Te({__name:"StudioSettings",setup(t){const e=si(),n=Z(()=>{var P;return(P=e.store.state.deck)==null?void 0:P.meta}),r=Z(()=>{var P,b;return((b=(P=e.store.state.deck)==null?void 0:P.slides)==null?void 0:b.length)||0}),i=Z(()=>{var P,b,S;return((b=(P=e.store.state.deck)==null?void 0:P.meta)==null?void 0:b.theme)||((S=e.store.state.deck)==null?void 0:S.theme)||"default"}),o=[{id:"default",name:"Default",primary:"#3b82f6",secondary:"#8b5cf6",bg:"#030303"},{id:"dark",name:"Dark",primary:"#6366f1",secondary:"#a855f7",bg:"#0a0a0a"},{id:"midnight",name:"Midnight",primary:"#3b82f6",secondary:"#06b6d4",bg:"#0f172a"},{id:"ocean",name:"Ocean",primary:"#0ea5e9",secondary:"#14b8a6",bg:"#0c4a6e"},{id:"forest",name:"Forest",primary:"#22c55e",secondary:"#10b981",bg:"#052e16"},{id:"sunset",name:"Sunset",primary:"#f97316",secondary:"#ec4899",bg:"#1c1917"},{id:"cyber",name:"Cyber",primary:"#22d3ee",secondary:"#a855f7",bg:"#020617"},{id:"minimal",name:"Minimal",primary:"#18181b",secondary:"#3f3f46",bg:"#fafafa"}],s=Z(()=>{var P,b,S,I,V,M,H,G,J,oe,ae,de,xe,Ee,pe,le,fe,Re,$e,Be,et,Me,B,D,L,z,F,W,ee,Y;return{primary:((S=(b=(P=e.store.state.deck)==null?void 0:P.meta)==null?void 0:b.colors)==null?void 0:S.primary)||"#3b82f6",secondary:((M=(V=(I=e.store.state.deck)==null?void 0:I.meta)==null?void 0:V.colors)==null?void 0:M.secondary)||"#8b5cf6",accent:((J=(G=(H=e.store.state.deck)==null?void 0:H.meta)==null?void 0:G.colors)==null?void 0:J.accent)||"#06b6d4",background:((de=(ae=(oe=e.store.state.deck)==null?void 0:oe.meta)==null?void 0:ae.colors)==null?void 0:de.background)||"#030303",surface:((pe=(Ee=(xe=e.store.state.deck)==null?void 0:xe.meta)==null?void 0:Ee.colors)==null?void 0:pe.surface)||"#0a0a0a",text:((Re=(fe=(le=e.store.state.deck)==null?void 0:le.meta)==null?void 0:fe.colors)==null?void 0:Re.text)||"#ffffff",muted:((et=(Be=($e=e.store.state.deck)==null?void 0:$e.meta)==null?void 0:Be.colors)==null?void 0:et.muted)||"#9ca3af",success:((D=(B=(Me=e.store.state.deck)==null?void 0:Me.meta)==null?void 0:B.colors)==null?void 0:D.success)||"#10b981",warning:((F=(z=(L=e.store.state.deck)==null?void 0:L.meta)==null?void 0:z.colors)==null?void 0:F.warning)||"#f59e0b",danger:((Y=(ee=(W=e.store.state.deck)==null?void 0:W.meta)==null?void 0:ee.colors)==null?void 0:Y.danger)||"#ef4444"}}),a=Z(()=>{var P,b,S,I,V,M,H,G;return{heading:((I=(S=(b=(P=e.store.state.deck)==null?void 0:P.meta)==null?void 0:b.typography)==null?void 0:S.fontFamily)==null?void 0:I.heading)||"Inter, system-ui, sans-serif",body:((G=(H=(M=(V=e.store.state.deck)==null?void 0:V.meta)==null?void 0:M.typography)==null?void 0:H.fontFamily)==null?void 0:G.body)||"Inter, system-ui, sans-serif"}}),l=Z(()=>{var P,b,S,I,V,M;return{buttonRadius:((S=(b=(P=e.store.state.deck)==null?void 0:P.meta)==null?void 0:b.components)==null?void 0:S.buttonRadius)||"9999px",cardRadius:((M=(V=(I=e.store.state.deck)==null?void 0:I.meta)==null?void 0:V.components)==null?void 0:M.cardRadius)||"1.5rem"}}),u=["xs","sm","md","lg","xl","2xl","3xl","4xl"],c=Z(()=>{var S,I;const P={xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem","2xl":"3rem","3xl":"4rem","4xl":"6rem"},b=((I=(S=e.store.state.deck)==null?void 0:S.meta)==null?void 0:I.spacing)||{};return Object.fromEntries(u.map(V=>[V,b[V]||P[V]]))}),d=["sm","md","lg","xl","2xl","3xl","full"],h=Z(()=>{var S,I;const P={sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},b=((I=(S=e.store.state.deck)==null?void 0:S.meta)==null?void 0:I.borderRadius)||{};return Object.fromEntries(d.map(V=>[V,b[V]||P[V]]))}),p=Z(()=>{var P,b,S,I,V,M,H,G,J,oe,ae,de,xe,Ee,pe,le,fe,Re,$e,Be,et,Me,B,D,L,z,F,W,ee,Y,te,Q,ye,he,be,Le;return{animations:((S=(b=(P=e.store.state.deck)==null?void 0:P.meta)==null?void 0:b.effects)==null?void 0:S.animationsEnabled)??!0,animationType:((M=(V=(I=e.store.state.deck)==null?void 0:I.meta)==null?void 0:V.effects)==null?void 0:M.animationType)||"cascade",animationDuration:((J=(G=(H=e.store.state.deck)==null?void 0:H.meta)==null?void 0:G.effects)==null?void 0:J.animationDuration)??.8,animationStagger:((de=(ae=(oe=e.store.state.deck)==null?void 0:oe.meta)==null?void 0:ae.effects)==null?void 0:de.animationStagger)??.1,animationEase:((pe=(Ee=(xe=e.store.state.deck)==null?void 0:xe.meta)==null?void 0:Ee.effects)==null?void 0:pe.animationEase)||"power3.out",shadows:((Re=(fe=(le=e.store.state.deck)==null?void 0:le.meta)==null?void 0:fe.effects)==null?void 0:Re.useShadows)??!0,glass:((et=(Be=($e=e.store.state.deck)==null?void 0:$e.meta)==null?void 0:Be.effects)==null?void 0:et.useGlass)??!0,glassOpacity:((D=(B=(Me=e.store.state.deck)==null?void 0:Me.meta)==null?void 0:B.effects)==null?void 0:D.glassOpacity)??.12,glassBlur:((F=(z=(L=e.store.state.deck)==null?void 0:L.meta)==null?void 0:z.effects)==null?void 0:F.glassBlur)??"20px",orb:((Y=(ee=(W=e.store.state.deck)==null?void 0:W.meta)==null?void 0:ee.effects)==null?void 0:Y.useOrb)??!0,orbOpacity:((ye=(Q=(te=e.store.state.deck)==null?void 0:te.meta)==null?void 0:Q.effects)==null?void 0:ye.orbOpacity)??.2,orbBlur:((Le=(be=(he=e.store.state.deck)==null?void 0:he.meta)==null?void 0:be.effects)==null?void 0:Le.orbBlur)??"120px"}}),g=Z(()=>{const P={"sans-serif":{label:"Sans Serif",options:[]},serif:{label:"Serif",options:[]},display:{label:"Display",options:[]},handwriting:{label:"Handwriting",options:[]},monospace:{label:"Monospace",options:[]}};return wI.forEach(S=>{P[S.category]&&P[S.category].options.push({value:`${S.family}, ${S.category}`,label:S.label})}),{...P,system:{label:"System",options:[{value:"Inter, system-ui, sans-serif",label:"Inter (Default)"},{value:"system-ui, sans-serif",label:"System UI"}]}}});let m=null;const _=()=>{m&&clearTimeout(m),m=setTimeout(()=>{var S;e.commit();const P=((S=e.store.state.deck)==null?void 0:S.meta)||{},b={colors:P.colors,typography:P.typography,spacing:P.spacing,borderRadius:P.borderRadius,effects:P.effects,components:P.components};Hl.inject(i.value,b)},150)},E=(P,b)=>{e.store.updateNode(`meta.${P}`,b),_()},w=P=>{e.store.updateNode("meta.theme",P),e.store.updateNode("meta.colors",void 0),e.store.updateNode("meta.typography",void 0),e.store.updateNode("meta.spacing",void 0),e.store.updateNode("meta.borderRadius",void 0),e.store.updateNode("meta.components",void 0),e.store.updateNode("meta.effects",void 0),Hl.inject(P),e.commit()},v=(P,b)=>{e.store.updateNode(`meta.colors.${P}`,b),_()},y=(P,b)=>{e.store.updateNode(`meta.spacing.${P}`,b),_()},k=(P,b)=>{e.store.updateNode(`meta.borderRadius.${P}`,b),_()},$=(P,b)=>{e.store.updateNode(`meta.typography.fontFamily.${P}`,b),_()},O=(P,b)=>{e.store.updateNode(`meta.effects.${P}`,b),_()},A=(P,b)=>{e.store.updateNode(`meta.components.${P}`,b),_()},x=Te({props:["label","field","value"],emits:["update"],setup(P,{emit:b}){return()=>qe("div",{class:"flex items-center gap-2"},[qe("input",{type:"color",value:P.value,onInput:S=>b("update",P.field,S.target.value),class:"w-6 h-6 rounded border border-[#333] cursor-pointer bg-transparent"}),qe("span",{class:"flex-1 text-white/70"},P.label),qe("input",{type:"text",value:P.value,onInput:S=>b("update",P.field,S.target.value),class:"w-16 bg-[#1a1a1a] border border-[#333] rounded px-1.5 py-0.5 text-[10px] font-mono text-white/70"})])}}),N=Te({props:["label","value"],emits:["update"],setup(P,{emit:b}){return()=>qe("div",{class:"flex items-center justify-between"},[qe("span",{class:"text-white/70"},P.label),qe("button",{onClick:()=>b("update",!P.value),class:`w-8 h-4 rounded-full transition-colors relative ${P.value?"bg-blue-600":"bg-[#333]"}`},[qe("span",{class:`absolute top-0.5 w-3 h-3 rounded-full bg-white transition-transform ${P.value?"left-4.5 translate-x-1":"left-0.5"}`})])])}});return(P,b)=>(j(),K("div",bU,[b[37]||(b[37]=C("div",{class:"px-3 py-2 font-bold text-white/50 uppercase tracking-wider border-b border-[#333]"}," Deck Settings ",-1)),C("div",_U,[ce(vi,{title:"Metadata",icon:"ph-thin ph-info",defaultExpanded:!0},{default:ke(()=>{var S,I;return[C("div",xU,[C("div",wU,[b[17]||(b[17]=C("label",{class:"text-white/50 uppercase tracking-wider text-[10px]"},"Title",-1)),C("input",{type:"text",value:((S=n.value)==null?void 0:S.title)||"",onInput:b[0]||(b[0]=V=>E("title",V.target.value)),placeholder:"Presentation Title",class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none"},null,40,SU)]),C("div",EU,[b[18]||(b[18]=C("label",{class:"text-white/50 uppercase tracking-wider text-[10px]"},"Author",-1)),C("input",{type:"text",value:((I=n.value)==null?void 0:I.author)||"",onInput:b[1]||(b[1]=V=>E("author",V.target.value)),placeholder:"Author Name",class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none"},null,40,TU)])])]}),_:1}),ce(vi,{title:"Theme Preset",icon:"ph-thin ph-palette"},{default:ke(()=>[C("div",IU,[(j(),K(Ue,null,It(o,S=>C("button",{key:S.id,onClick:I=>w(S.id),class:Se(["p-2 rounded border text-[10px] font-bold transition flex flex-col items-center gap-1",i.value===S.id?"border-blue-500 bg-blue-500/20 text-blue-400":"border-[#333] bg-[#1a1a1a] text-white/70 hover:border-white/30"])},[C("div",AU,[C("span",{class:"w-3 h-3 rounded-full",style:Xe({backgroundColor:S.primary})},null,4),C("span",{class:"w-3 h-3 rounded-full",style:Xe({backgroundColor:S.secondary})},null,4),C("span",{class:"w-3 h-3 rounded-full",style:Xe({backgroundColor:S.bg})},null,4)]),bt(" "+Ie(S.name),1)],10,CU)),64))])]),_:1}),ce(vi,{title:"Colors",icon:"ph-thin ph-drop"},{default:ke(()=>[C("div",PU,[b[19]||(b[19]=C("div",{class:"text-white/30 text-[10px] uppercase tracking-widest"},"Brand",-1)),ce(re(x),{label:"Primary",field:"primary",value:s.value.primary,onUpdate:v},null,8,["value"]),ce(re(x),{label:"Secondary",field:"secondary",value:s.value.secondary,onUpdate:v},null,8,["value"]),ce(re(x),{label:"Accent",field:"accent",value:s.value.accent,onUpdate:v},null,8,["value"]),b[20]||(b[20]=C("div",{class:"text-white/30 text-[10px] uppercase tracking-widest pt-2 border-t border-[#333]"},"Base ",-1)),ce(re(x),{label:"Background",field:"background",value:s.value.background,onUpdate:v},null,8,["value"]),ce(re(x),{label:"Surface",field:"surface",value:s.value.surface,onUpdate:v},null,8,["value"]),b[21]||(b[21]=C("div",{class:"text-white/30 text-[10px] uppercase tracking-widest pt-2 border-t border-[#333]"},"Text ",-1)),ce(re(x),{label:"Text Main",field:"text",value:s.value.text,onUpdate:v},null,8,["value"]),ce(re(x),{label:"Text Muted",field:"muted",value:s.value.muted,onUpdate:v},null,8,["value"]),b[22]||(b[22]=C("div",{class:"text-white/30 text-[10px] uppercase tracking-widest pt-2 border-t border-[#333]"}," Semantic",-1)),ce(re(x),{label:"Success",field:"success",value:s.value.success,onUpdate:v},null,8,["value"]),ce(re(x),{label:"Warning",field:"warning",value:s.value.warning,onUpdate:v},null,8,["value"]),ce(re(x),{label:"Danger",field:"danger",value:s.value.danger,onUpdate:v},null,8,["value"])])]),_:1}),ce(vi,{title:"Typography",icon:"ph-thin ph-text-t"},{default:ke(()=>[C("div",kU,[C("div",OU,[b[23]||(b[23]=C("label",{class:"text-white/50 uppercase tracking-wider text-[10px]"},"Heading Font",-1)),C("select",{value:a.value.heading,onChange:b[2]||(b[2]=S=>$("heading",S.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none"},[(j(!0),K(Ue,null,It(g.value,(S,I)=>(j(),K("optgroup",{key:I,label:S.label},[(j(!0),K(Ue,null,It(S.options,V=>(j(),K("option",{key:V.value,value:V.value},Ie(V.label),9,$U))),128))],8,RU))),128))],40,NU)]),C("div",DU,[b[24]||(b[24]=C("label",{class:"text-white/50 uppercase tracking-wider text-[10px]"},"Body Font",-1)),C("select",{value:a.value.body,onChange:b[3]||(b[3]=S=>$("body",S.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none"},[(j(!0),K(Ue,null,It(g.value,(S,I)=>(j(),K("optgroup",{key:I,label:S.label},[(j(!0),K(Ue,null,It(S.options,V=>(j(),K("option",{key:V.value,value:V.value},Ie(V.label),9,VU))),128))],8,LU))),128))],40,MU)])])]),_:1}),ce(vi,{title:"Spacing Scale",icon:"ph-thin ph-ruler"},{default:ke(()=>[C("div",FU,[C("div",zU,[(j(),K(Ue,null,It(u,S=>C("div",{key:S,class:"space-y-1"},[C("label",UU,Ie(S),1),C("input",{type:"text",value:c.value[S],onInput:I=>y(S,I.target.value),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none font-mono text-xs"},null,40,BU)])),64))])])]),_:1}),ce(vi,{title:"Border Radius",icon:"ph-thin ph-corners-out"},{default:ke(()=>[C("div",jU,[C("div",HU,[(j(),K(Ue,null,It(d,S=>C("div",{key:S,class:"space-y-1"},[C("label",GU,Ie(S),1),C("input",{type:"text",value:h.value[S],onInput:I=>k(S,I.target.value),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none font-mono text-xs"},null,40,WU)])),64))])])]),_:1}),ce(vi,{title:"Effects",icon:"ph-thin ph-magic-wand"},{default:ke(()=>[C("div",KU,[ce(re(N),{label:"Animations Enabled",value:p.value.animations,onUpdate:b[4]||(b[4]=S=>O("animationsEnabled",S))},null,8,["value"]),p.value.animations?(j(),K("div",ZU,[C("div",XU,[b[26]||(b[26]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Default Animation",-1)),C("select",{value:p.value.animationType,onChange:b[5]||(b[5]=S=>O("animationType",S.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white font-mono"},[...b[25]||(b[25]=[C("option",{value:"cascade"},"Cascade",-1),C("option",{value:"fade"},"Fade",-1),C("option",{value:"slide"},"Slide",-1),C("option",{value:"zoom"},"Zoom",-1),C("option",{value:"spring"},"Spring",-1),C("option",{value:"blur"},"Blur",-1),C("option",{value:"skew"},"Skew",-1),C("option",{value:"flip"},"Flip (3D)",-1),C("option",{value:"zoom-rotate"},"Zoom Rotate",-1),C("option",{value:"elastic-up"},"Elastic Up",-1)])],40,YU)]),C("div",JU,[C("div",QU,[b[27]||(b[27]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Duration",-1)),C("input",{type:"number",step:"0.1",value:p.value.animationDuration,onInput:b[6]||(b[6]=S=>O("animationDuration",parseFloat(S.target.value))),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white font-mono"},null,40,qU)]),C("div",eB,[b[28]||(b[28]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Stagger",-1)),C("input",{type:"number",step:"0.05",value:p.value.animationStagger,onInput:b[7]||(b[7]=S=>O("animationStagger",parseFloat(S.target.value))),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white font-mono"},null,40,tB)])])])):Oe("",!0),C("div",nB,[ce(re(N),{label:"Ambient Orb",value:p.value.orb,onUpdate:b[8]||(b[8]=S=>O("useOrb",S))},null,8,["value"]),p.value.orb?(j(),K("div",rB,[ce(jh,{label:"Opacity",value:p.value.orbOpacity,min:0,max:1,step:.05,onUpdate:b[9]||(b[9]=S=>O("orbOpacity",S))},null,8,["value"]),ce(jh,{label:"Blur (px)",value:parseInt(p.value.orbBlur),min:0,max:200,step:10,unit:"px",onUpdate:b[10]||(b[10]=S=>O("orbBlur",S+"px"))},null,8,["value"])])):Oe("",!0)]),C("div",iB,[ce(re(N),{label:"Glass Effect",value:p.value.glass,onUpdate:b[11]||(b[11]=S=>O("useGlass",S))},null,8,["value"]),p.value.glass?(j(),K("div",oB,[ce(jh,{label:"Opacity",value:p.value.glassOpacity,min:0,max:1,step:.05,onUpdate:b[12]||(b[12]=S=>O("glassOpacity",S))},null,8,["value"]),ce(jh,{label:"Blur (px)",value:parseInt(p.value.glassBlur),min:0,max:50,step:2,unit:"px",onUpdate:b[13]||(b[13]=S=>O("glassBlur",S+"px"))},null,8,["value"])])):Oe("",!0)]),C("div",sB,[ce(re(N),{label:"Shadows",value:p.value.shadows,onUpdate:b[14]||(b[14]=S=>O("useShadows",S))},null,8,["value"])])])]),_:1}),ce(vi,{title:"Components",icon:"ph-thin ph-cubes"},{default:ke(()=>[C("div",aB,[b[33]||(b[33]=C("div",{class:"text-white/30 text-[10px] uppercase tracking-widest"},"Buttons",-1)),C("div",lB,[b[30]||(b[30]=C("label",{class:"text-white/50 uppercase tracking-wider text-[10px]"},"Radius",-1)),C("select",{value:l.value.buttonRadius,onChange:b[15]||(b[15]=S=>A("buttonRadius",S.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none"},[...b[29]||(b[29]=[C("option",{value:"0"},"Square",-1),C("option",{value:"0.25rem"},"Small",-1),C("option",{value:"0.5rem"},"Medium",-1),C("option",{value:"9999px"},"Pill (Full)",-1)])],40,uB)]),b[34]||(b[34]=C("div",{class:"text-white/30 text-[10px] uppercase tracking-widest pt-2 border-t border-[#333]"},"Cards ",-1)),C("div",cB,[b[32]||(b[32]=C("label",{class:"text-white/50 uppercase tracking-wider text-[10px]"},"Radius",-1)),C("select",{value:l.value.cardRadius,onChange:b[16]||(b[16]=S=>A("cardRadius",S.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none"},[...b[31]||(b[31]=[C("option",{value:"0"},"Square",-1),C("option",{value:"0.5rem"},"Small",-1),C("option",{value:"1rem"},"Medium",-1),C("option",{value:"1.5rem"},"Large",-1),C("option",{value:"2rem"},"X-Large",-1)])],40,dB)])])]),_:1}),C("div",fB,[b[36]||(b[36]=C("div",{class:"text-white/30 text-[10px] uppercase tracking-widest"},"Statistics",-1)),C("div",hB,[b[35]||(b[35]=C("span",null,"Slides",-1)),C("span",pB,Ie(r.value),1)])])])]))}}),[["__scopeId","data-v-c248dcb0"]]),mB={class:"w-64 bg-[#111] border-r border-[#333] flex flex-col"},vB={class:"flex border-b border-[#333]"},yB={class:"flex-1 overflow-hidden"},bB=Te({__name:"StudioSidebar",setup(t){const e=we("elements");return(n,r)=>(j(),K("div",mB,[C("div",vB,[C("button",{onClick:r[0]||(r[0]=i=>e.value="elements"),class:Se(["flex-1 px-3 py-2 text-xs font-bold uppercase transition",e.value==="elements"?"text-white bg-[#1a1a1a]":"text-white/50 hover:text-white"])},[...r[2]||(r[2]=[C("i",{class:"ph-thin ph-tree-structure mr-1"},null,-1),bt(" Elements ",-1)])],2),C("button",{onClick:r[1]||(r[1]=i=>e.value="settings"),class:Se(["flex-1 px-3 py-2 text-xs font-bold uppercase transition",e.value==="settings"?"text-white bg-[#1a1a1a]":"text-white/50 hover:text-white"])},[...r[3]||(r[3]=[C("i",{class:"ph-thin ph-gear mr-1"},null,-1),bt(" Settings ",-1)])],2)]),C("div",yB,[e.value==="elements"?(j(),De(lU,{key:0})):(j(),De(gB,{key:1}))])]))}}),_B={class:"space-y-2"},xB={class:"text-white/50 uppercase tracking-wider text-[10px] block"},wB={class:"flex items-center gap-2"},SB={class:"w-8 h-8 rounded bg-[#1a1a1a] border border-[#333] flex items-center justify-center text-lg"},EB={key:0,class:"bg-[#111] border border-[#333] rounded-lg p-3 space-y-2"},TB={class:"grid grid-cols-6 gap-1 max-h-48 overflow-y-auto"},IB=["onClick","title"],CB={class:"flex flex-wrap gap-1 pt-2 border-t border-[#333]"},AB=["onClick"],PB=Te({__name:"IconPicker",props:{modelValue:{},label:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,i=we(!1),o=we(""),s=["star","heart","check","x","plus","minus","magnifying-glass","gear","house","user","arrow-right","arrow-left","arrow-up","arrow-down","caret-right","caret-left","briefcase","chart-line","chart-bar","currency-dollar","coins","wallet","buildings","laptop","device-mobile","desktop","code","database","hard-drive","cloud","wifi-high","envelope","phone","chat-centered","chat-dots","bell","paper-plane","image","video-camera","camera","play","pause","speaker-high","music-note","lightbulb","lightning","fire","rocket","trophy","medal","flag","gift","leaf","tree","sun","moon","globe","mountains","lock","lock-open","shield-check","key","eye","eye-slash","download-simple","upload-simple","share","link","floppy-disk","pencil-simple","trash","copy","users","user-plus","handshake","users-four","magic-wand","sparkle","diamond","crown","infinity"],a=[{name:"All",prefix:""},{name:"Arrows",prefix:"arrow"},{name:"Business",prefix:"chart"},{name:"Tech",prefix:"code"},{name:"People",prefix:"user"}],l=Z(()=>o.value?s.filter(d=>d.includes(o.value.toLowerCase())):s),u=Z(()=>n.modelValue?n.modelValue.startsWith("ph-")?`ph-thin ${n.modelValue}`:`ph-thin ph-${n.modelValue}`:"ph-thin ph-question"),c=d=>{r("update:modelValue",d),i.value=!1,o.value=""};return(d,h)=>(j(),K("div",_B,[C("label",xB,Ie(t.label),1),C("div",wB,[C("div",SB,[C("i",{class:Se([u.value,"text-white"])},null,2)]),C("button",{onClick:h[0]||(h[0]=p=>i.value=!i.value),class:"flex-1 bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white text-left hover:border-blue-500 transition text-xs"},Ie(t.modelValue||"Select icon..."),1)]),i.value?(j(),K("div",EB,[za(C("input",{"onUpdate:modelValue":h[1]||(h[1]=p=>o.value=p),type:"text",placeholder:"Search icons...",class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white text-xs focus:border-blue-500 focus:outline-none"},null,512),[[Ms,o.value]]),C("div",TB,[(j(!0),K(Ue,null,It(l.value,p=>(j(),K("button",{key:p,onClick:g=>c(p),class:Se(["w-8 h-8 rounded flex items-center justify-center hover:bg-blue-600 transition",t.modelValue===p?"bg-blue-600":"bg-[#1a1a1a]"]),title:p},[C("i",{class:Se([`ph-thin ph-${p}`,"text-white text-sm"])},null,2)],10,IB))),128))]),C("div",CB,[(j(),K(Ue,null,It(a,p=>C("button",{key:p.name,onClick:g=>o.value=p.prefix,class:"px-2 py-0.5 rounded text-[10px] bg-[#1a1a1a] text-white/70 hover:bg-[#333] hover:text-white"},Ie(p.name),9,AB)),64))])])):Oe("",!0)]))}}),kB={direction:"Layout Direction",gap:"Spacing",padding:"Inner Padding",halign:"Horizontal Align",valign:"Vertical Align",align:"Text Alignment",size:"Size",imageSide:"Image Position",title:"Title",subtitle:"Subtitle",text:"Text Content",tag:"Label / Tag",description:"Description",desc:"Description",label:"Label",name:"Name",src:"Image URL",image:"Image",poster:"Video Poster",alt:"Alt Text",background:"Background",icon:"Icon",action:"Action ID",actionType:"Action Type",href:"Link URL",gotoSlide:"Go to Slide",target:"Open In",cta:"Call to Action",url:"URL",variant:"Style Variant",rounded:"Corner Radius",fit:"Object Fit",fill:"Fill Container",type:"Type",chartType:"Chart Type",data:"Data",elements:"Elements",features:"Features",timeline:"Timeline",steps:"Steps",paragraphs:"Paragraphs",bullets:"Bullet Points",notes:"Speaker Notes",sizing:"Sizing Mode",id:"ID",meta:"Metadata",orbColor:"Orb Color",orbPos:"Orb Position",date:"Date",step:"Step Number",year:"Year"},OB={direction:{horizontal:"→ Horizontal",vertical:"↓ Vertical"},gap:{none:"None",xs:"Extra Small",sm:"Small",md:"Medium",lg:"Large",xl:"Extra Large","2xl":"2X Large","3xl":"3X Large","4xl":"Huge"},padding:{none:"None",xs:"Extra Small",sm:"Small",md:"Medium",lg:"Large",xl:"Extra Large","2xl":"2X Large","3xl":"3X Large","4xl":"Huge"},size:{auto:"Auto",quarter:"25%",third:"33%",half:"50%","two-thirds":"66%","three-quarters":"75%",full:"100%"},halign:{left:"← Left",center:"↔ Center",right:"→ Right"},valign:{top:"↑ Top",center:"↕ Center",bottom:"↓ Bottom"},align:{left:"← Left",center:"↔ Center",right:"→ Right"},imageSide:{left:"← Left",right:"→ Right"},variant:{primary:"● Primary",secondary:"○ Secondary",outline:"□ Outline",ghost:"◌ Ghost"},rounded:{none:"None",sm:"Slight",md:"Medium",lg:"Large",xl:"Extra Large","2xl":"2X Large","3xl":"3X Large",full:"Full Circle"},fit:{cover:"Cover (fill)",contain:"Contain (fit)"},fill:{true:"Yes",false:"No"},chartType:{bar:"📊 Bar Chart",line:"📈 Line Chart",pie:"🥧 Pie Chart",doughnut:"🍩 Doughnut",radar:"🕸 Radar",polarArea:"🎯 Polar Area"},sizing:{viewport:"Full Screen",container:"Container"},type:{title:"📌 Heading",text:"📄 Paragraph",content:"📝 Content",image:"🖼 Image",video:"🎥 Video",button:"🔘 Button",spacer:"⬜ Spacer"},actionType:{none:"⊘ None",url:"🔗 Open URL",slide:"📑 Go to Slide",download:"⬇️ Download",event:"⚡ Custom Event"},target:{_blank:"New Tab",_self:"Same Tab"}};function TI(t){return kB[t]||RB(t)}function NB(t){const e=OB[t];return e?Object.entries(e).map(([n,r])=>({value:n,label:r})):null}function RB(t){return t.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()).trim()}const $B={class:"space-y-1"},DB={class:"text-white/50 uppercase tracking-wider text-[10px] block"},MB=["value"],LB=["value"],VB={key:2,class:"flex items-center justify-between py-1"},FB=["value"],zB={key:4,class:"flex gap-2"},UB=["value"],BB=["value"],jB={key:5,class:"space-y-2"},HB=["value"],GB={key:0,class:"w-full h-16 rounded bg-[#1a1a1a] border border-[#333] overflow-hidden"},WB=["src"],KB=["value"],ZB=["value","placeholder"],XB=Te({__name:"FieldEditor",props:{fieldKey:{},value:{}},emits:["update"],setup(t,{emit:e}){const n=t,r=e,i=Z(()=>TI(n.fieldKey)),o=Z(()=>n.fieldKey==="icon"),s=Z(()=>["color","primaryColor","secondaryColor","backgroundColor","orbColor"].includes(n.fieldKey)),a=Z(()=>["src","image","poster","background"].includes(n.fieldKey)&&typeof n.value=="string"),l=Z(()=>typeof n.value!="string"?!1:["text","description","desc","notes","subtitle","html","css"].includes(n.fieldKey)||n.value.length>60),u=Z(()=>{const h=NB(n.fieldKey);if(h)return h;const p={titleSize:["lg","xl","2xl","3xl"]};return p[n.fieldKey]?p[n.fieldKey].map(g=>({value:g,label:g.toUpperCase()})):null}),c=h=>({action:"button-click-action",href:"https://example.com",alt:"Image description",tag:"Category or label",cta:"Call to action text"})[h]||"",d=h=>{const p=h.target;p.style.display="none"};return(h,p)=>(j(),K("div",$B,[C("label",DB,Ie(i.value),1),o.value?(j(),De(PB,{key:0,"model-value":String(t.value||""),"onUpdate:modelValue":p[0]||(p[0]=g=>r("update",t.fieldKey,g))},null,8,["model-value"])):u.value?(j(),K("select",{key:1,value:t.value,onChange:p[1]||(p[1]=g=>r("update",t.fieldKey,g.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none"},[(j(!0),K(Ue,null,It(u.value,g=>(j(),K("option",{key:g.value,value:g.value},Ie(g.label),9,LB))),128))],40,MB)):typeof t.value=="boolean"?(j(),K("div",VB,[C("button",{onClick:p[2]||(p[2]=g=>r("update",t.fieldKey,!t.value)),class:Se(["w-10 h-5 rounded-full transition-colors relative",t.value?"bg-blue-600":"bg-[#333]"])},[C("span",{class:Se(["absolute top-0.5 w-4 h-4 rounded-full bg-white transition-transform",t.value?"left-5":"left-0.5"])},null,2)],2)])):typeof t.value=="number"?(j(),K("input",{key:3,type:"number",value:t.value,onInput:p[3]||(p[3]=g=>r("update",t.fieldKey,parseFloat(g.target.value))),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none"},null,40,FB)):s.value?(j(),K("div",zB,[C("input",{type:"color",value:String(t.value||"#ffffff"),onInput:p[4]||(p[4]=g=>r("update",t.fieldKey,g.target.value)),class:"w-10 h-8 rounded border border-[#333] cursor-pointer bg-transparent"},null,40,UB),C("input",{type:"text",value:t.value,onInput:p[5]||(p[5]=g=>r("update",t.fieldKey,g.target.value)),class:"flex-1 bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white font-mono text-xs focus:border-blue-500 focus:outline-none"},null,40,BB)])):a.value?(j(),K("div",jB,[C("input",{type:"url",value:t.value,onInput:p[6]||(p[6]=g=>r("update",t.fieldKey,g.target.value)),placeholder:"https://example.com/image.jpg",class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none"},null,40,HB),t.value?(j(),K("div",GB,[C("img",{src:String(t.value),alt:"Preview",class:"w-full h-full object-cover",onError:d},null,40,WB)])):Oe("",!0)])):l.value?(j(),K("textarea",{key:6,value:String(t.value||""),onInput:p[7]||(p[7]=g=>r("update",t.fieldKey,g.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none resize-none",rows:"3"},null,40,KB)):(j(),K("input",{key:7,type:"text",value:t.value,onInput:p[8]||(p[8]=g=>r("update",t.fieldKey,g.target.value)),placeholder:c(t.fieldKey),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none"},null,40,ZB))]))}}),YB={class:"space-y-2"},JB={class:"space-y-1"},QB=["value"],qB={key:0,class:"space-y-1"},e8={class:"text-white/50 uppercase tracking-wider text-[10px]"},t8=["value"],n8={key:1,class:"space-y-1"},r8={class:"flex gap-2"},i8={key:2,class:"space-y-1"},o8=["value"],s8=["value"],a8={key:3,class:"space-y-1"},l8=["value"],u8=Te({__name:"ActionEditor",props:{actionType:{},href:{},gotoSlide:{},target:{},action:{}},emits:["update"],setup(t,{emit:e}){const n=e,r=si(),i=Z(()=>{var u,c;return((c=(u=r.store.state.deck)==null?void 0:u.slides)==null?void 0:c.length)||0}),o=u=>{const c=u.target.value;n("update","actionType",c==="none"?void 0:c),c!=="url"&&c!=="download"&&n("update","href",void 0),c!=="slide"&&n("update","gotoSlide",void 0)},s=u=>{n("update","href",u.target.value||void 0)},a=u=>{const c=u.target.value;n("update","gotoSlide",c?parseInt(c):void 0)},l=u=>{n("update","action",u.target.value||void 0)};return(u,c)=>(j(),K("div",YB,[c[8]||(c[8]=C("div",{class:"text-white/30 text-[10px] uppercase tracking-widest"},"Action",-1)),C("div",JB,[c[3]||(c[3]=C("label",{class:"text-white/50 uppercase tracking-wider text-[10px]"},"Type",-1)),C("select",{value:t.actionType||"none",onChange:o,class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none"},[...c[2]||(c[2]=[nf('<option value="none">None</option><option value="url">Open URL</option><option value="slide">Go to Slide</option><option value="download">Download File</option><option value="event">Custom Event</option>',5)])],40,QB)]),t.actionType==="url"||t.actionType==="download"?(j(),K("div",qB,[C("label",e8,Ie(t.actionType==="download"?"File URL":"Link URL"),1),C("input",{type:"url",value:t.href||"",onInput:s,placeholder:"https://example.com",class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none"},null,40,t8)])):Oe("",!0),t.actionType==="url"?(j(),K("div",n8,[c[4]||(c[4]=C("label",{class:"text-white/50 uppercase tracking-wider text-[10px]"},"Open In",-1)),C("div",r8,[C("button",{onClick:c[0]||(c[0]=d=>n("update","target","_blank")),class:Se(["flex-1 px-2 py-1 text-[10px] rounded border transition",t.target!=="_self"?"bg-blue-600 border-blue-500 text-white":"bg-[#1a1a1a] border-[#333] text-white/50"])}," New Tab ",2),C("button",{onClick:c[1]||(c[1]=d=>n("update","target","_self")),class:Se(["flex-1 px-2 py-1 text-[10px] rounded border transition",t.target==="_self"?"bg-blue-600 border-blue-500 text-white":"bg-[#1a1a1a] border-[#333] text-white/50"])}," Same Tab ",2)])])):Oe("",!0),t.actionType==="slide"?(j(),K("div",i8,[c[6]||(c[6]=C("label",{class:"text-white/50 uppercase tracking-wider text-[10px]"},"Go to Slide",-1)),C("select",{value:t.gotoSlide??"",onChange:a,class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white focus:border-blue-500 focus:outline-none"},[c[5]||(c[5]=C("option",{value:""},"Select slide...",-1)),(j(!0),K(Ue,null,It(i.value,(d,h)=>(j(),K("option",{key:h,value:h}," Slide "+Ie(h+1),9,s8))),128))],40,o8)])):Oe("",!0),t.actionType==="event"?(j(),K("div",a8,[c[7]||(c[7]=C("label",{class:"text-white/50 uppercase tracking-wider text-[10px]"},"Action ID",-1)),C("input",{type:"text",value:t.action||"",onInput:l,placeholder:"custom-action-id",class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1.5 text-white font-mono text-xs focus:border-blue-500 focus:outline-none"},null,40,l8)])):Oe("",!0)]))}}),c8={class:"flex items-center gap-2"},d8=["value"],f8={class:"flex-1 text-white/70"},h8=["value"],II=Te({__name:"ColorField",props:{label:{},fieldKey:{},value:{}},emits:["update"],setup(t,{emit:e}){const n=e;return(r,i)=>(j(),K("div",c8,[C("input",{type:"color",value:String(t.value||"#ffffff"),onInput:i[0]||(i[0]=o=>n("update",t.fieldKey,o.target.value)),class:"w-6 h-6 rounded border border-[#333] cursor-pointer bg-transparent"},null,40,d8),C("span",f8,Ie(t.label),1),C("input",{type:"text",value:t.value,onInput:i[1]||(i[1]=o=>n("update",t.fieldKey,o.target.value)),class:"w-16 bg-[#1a1a1a] border border-[#333] rounded px-1.5 py-0.5 text-[10px] font-mono text-white/70 focus:border-blue-500 focus:outline-none"},null,40,h8)]))}}),p8={class:"space-y-4"},g8={class:"space-y-3"},m8={class:"space-y-1"},v8=["value"],y8={class:"space-y-1"},b8=["value"],_8={key:0,class:"space-y-1"},x8=["value"],w8={class:"grid grid-cols-2 gap-2"},S8={class:"space-y-1"},E8=["value"],T8={class:"space-y-1"},I8=["value"],C8={key:1,class:"space-y-1"},A8={class:"flex gap-2"},P8=["value"],k8=["value"],O8={key:2,class:"space-y-1"},N8={class:"flex gap-2"},R8=["value"],$8=["value"],D8={class:"pt-4 border-t border-[#333]"},M8=Te({__name:"DiagramNodeEditor",props:{data:{}},emits:["update","delete"],setup(t,{emit:e}){const n=t,r=e,i=Z(()=>{var u,c,d,h;return((c=(u=n.data)==null?void 0:u.data)==null?void 0:c.shape)==="image"||((h=(d=n.data)==null?void 0:d.data)==null?void 0:h.type)==="image"}),o=(u,c)=>{r("update",u,c)},s=(u,c)=>{r("update",`position.${u}`,c)},a=(u,c)=>{r("update",`data.style.${u}`,c)},l=(u,c)=>{r("update",`data.${u}`,c)};return(u,c)=>{var d,h,p,g,m,_,E,w,v;return j(),K("div",p8,[C("div",g8,[c[18]||(c[18]=C("div",{class:"text-white/30 text-[10px] uppercase tracking-widest"},"Node Properties",-1)),C("div",m8,[c[10]||(c[10]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Label",-1)),C("input",{type:"text",value:t.data.label,onInput:c[0]||(c[0]=y=>o("label",y.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white focus:border-blue-500 focus:outline-none"},null,40,v8)]),C("div",y8,[c[12]||(c[12]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Shape",-1)),C("select",{value:((d=t.data.data)==null?void 0:d.shape)||((h=t.data.data)==null?void 0:h.type)||"rectangle",onChange:c[1]||(c[1]=y=>l("shape",y.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white focus:border-blue-500 focus:outline-none"},[...c[11]||(c[11]=[C("option",{value:"rectangle"},"Rectangle",-1),C("option",{value:"rounded"},"Rounded",-1),C("option",{value:"image"},"Image",-1)])],40,b8)]),i.value?(j(),K("div",_8,[c[13]||(c[13]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Image URL",-1)),C("input",{type:"text",value:((p=t.data.data)==null?void 0:p.imageUrl)||"",placeholder:"https://...",onInput:c[2]||(c[2]=y=>l("imageUrl",y.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white focus:border-blue-500 focus:outline-none"},null,40,x8)])):Oe("",!0),C("div",w8,[C("div",S8,[c[14]||(c[14]=C("label",{class:"text-white/50 text-[10px] uppercase"},"X Position",-1)),C("input",{type:"number",value:(g=t.data.position)==null?void 0:g.x,onInput:c[3]||(c[3]=y=>s("x",parseFloat(y.target.value))),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white"},null,40,E8)]),C("div",T8,[c[15]||(c[15]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Y Position",-1)),C("input",{type:"number",value:(m=t.data.position)==null?void 0:m.y,onInput:c[4]||(c[4]=y=>s("y",parseFloat(y.target.value))),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white"},null,40,I8)])]),i.value?Oe("",!0):(j(),K("div",C8,[c[16]||(c[16]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Background Color",-1)),C("div",A8,[C("input",{type:"color",value:((_=t.data.style)==null?void 0:_.backgroundColor)||"#ffffff",onInput:c[5]||(c[5]=y=>a("backgroundColor",y.target.value)),class:"bg-transparent w-6 h-6 p-0 border-0 cursor-pointer"},null,40,P8),C("input",{type:"text",value:((E=t.data.style)==null?void 0:E.backgroundColor)||"",placeholder:"#ffffff",onInput:c[6]||(c[6]=y=>a("backgroundColor",y.target.value)),class:"flex-1 bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white font-mono"},null,40,k8)])])),i.value?Oe("",!0):(j(),K("div",O8,[c[17]||(c[17]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Text Color",-1)),C("div",N8,[C("input",{type:"color",value:((w=t.data.style)==null?void 0:w.color)||"#000000",onInput:c[7]||(c[7]=y=>a("color",y.target.value)),class:"bg-transparent w-6 h-6 p-0 border-0 cursor-pointer"},null,40,R8),C("input",{type:"text",value:((v=t.data.style)==null?void 0:v.color)||"",placeholder:"#000000",onInput:c[8]||(c[8]=y=>a("color",y.target.value)),class:"flex-1 bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white font-mono"},null,40,$8)])]))]),C("div",D8,[C("button",{onClick:c[9]||(c[9]=y=>u.$emit("delete")),class:"w-full px-3 py-2 rounded bg-red-900/30 border border-red-500/30 text-red-400 hover:bg-red-900/50 transition flex items-center justify-center gap-2"},[...c[19]||(c[19]=[C("i",{class:"ph-thin ph-trash text-xs"},null,-1),bt(" Delete Node ",-1)])])])])}}}),L8={class:"space-y-4"},V8={class:"space-y-3"},F8={class:"space-y-1"},z8=["value"],U8={class:"space-y-1"},B8=["value"],j8={class:"flex items-center justify-between"},H8={class:"space-y-1"},G8={class:"flex gap-2"},W8=["value"],K8=["value"],Z8={class:"pt-4 border-t border-[#333]"},X8=Te({__name:"DiagramEdgeEditor",props:{data:{}},emits:["update","delete"],setup(t,{emit:e}){const n=e,r=(o,s)=>{n("update",o,s)},i=(o,s)=>{n("update",`style.${o}`,s)};return(o,s)=>{var a,l;return j(),K("div",L8,[C("div",V8,[s[11]||(s[11]=C("div",{class:"text-white/30 text-[10px] uppercase tracking-widest"},"Connection Properties",-1)),C("div",F8,[s[6]||(s[6]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Label",-1)),C("input",{type:"text",value:t.data.label||"",onInput:s[0]||(s[0]=u=>r("label",u.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white focus:border-blue-500 focus:outline-none"},null,40,z8)]),C("div",U8,[s[8]||(s[8]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Line Type",-1)),C("select",{value:t.data.type||"default",onChange:s[1]||(s[1]=u=>r("type",u.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white focus:border-blue-500 focus:outline-none"},[...s[7]||(s[7]=[C("option",{value:"default"},"Bezier (Default)",-1),C("option",{value:"straight"},"Straight",-1),C("option",{value:"step"},"Step",-1),C("option",{value:"smoothstep"},"Smooth Step",-1)])],40,B8)]),C("div",j8,[s[9]||(s[9]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Animated",-1)),C("button",{onClick:s[2]||(s[2]=u=>r("animated",!t.data.animated)),class:Se(["w-8 h-4 rounded-full relative transition-colors duration-200",t.data.animated?"bg-blue-600":"bg-[#333]"])},[C("div",{class:Se(["absolute top-0.5 left-0.5 w-3 h-3 bg-white rounded-full transition-transform duration-200",t.data.animated?"translate-x-4":"translate-x-0"])},null,2)],2)]),C("div",H8,[s[10]||(s[10]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Stroke Color",-1)),C("div",G8,[C("input",{type:"color",value:((a=t.data.style)==null?void 0:a.stroke)||"#b1b1b7",onInput:s[3]||(s[3]=u=>i("stroke",u.target.value)),class:"bg-transparent w-6 h-6 p-0 border-0 cursor-pointer"},null,40,W8),C("input",{type:"text",value:((l=t.data.style)==null?void 0:l.stroke)||"",placeholder:"#b1b1b7",onInput:s[4]||(s[4]=u=>i("stroke",u.target.value)),class:"flex-1 bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white font-mono"},null,40,K8)])])]),C("div",Z8,[C("button",{onClick:s[5]||(s[5]=u=>o.$emit("delete")),class:"w-full px-3 py-2 rounded bg-red-900/30 border border-red-500/30 text-red-400 hover:bg-red-900/50 transition flex items-center justify-center gap-2"},[...s[12]||(s[12]=[C("i",{class:"ph-thin ph-trash text-xs"},null,-1),bt(" Delete Connection ",-1)])])])])}}}),Y8={class:"flex flex-col h-full text-xs"},J8={class:"px-3 py-2 font-bold text-white/50 uppercase tracking-wider border-b border-[#333] flex items-center justify-between"},Q8={key:0,class:"text-blue-400 font-mono"},q8={key:0,class:"flex-1 flex items-center justify-center p-4"},e7={key:1,class:"flex-1 overflow-y-auto p-3 space-y-4"},t7={key:0},n7={key:1},r7={key:2,class:"space-y-4"},i7={key:0,class:"p-3 bg-blue-900/10 border border-blue-500/20 rounded mb-4"},o7={class:"grid grid-cols-3 gap-2"},s7={key:1,class:"space-y-3"},a7={key:0,class:"space-y-1"},l7=["value"],u7={key:2,class:"space-y-4"},c7={class:"space-y-3"},d7={class:"space-y-1"},f7=["value"],h7={class:"space-y-1"},p7=["value"],g7={class:"space-y-1"},m7=["value"],v7={class:"space-y-1"},y7=["value"],b7={class:"space-y-1"},_7=["value"],x7={key:3,class:"space-y-4"},w7={class:"space-y-3"},S7={class:"space-y-1"},E7=["value"],T7={class:"grid grid-cols-2 gap-2"},I7={class:"space-y-1"},C7=["value"],A7={class:"space-y-1"},P7=["value"],k7={class:"pt-2 border-t border-[#333]"},O7={class:"space-y-1 pt-2"},N7={class:"grid grid-cols-2 gap-2"},R7=["value"],$7=["value"],D7={class:"space-y-3"},M7={class:"space-y-1"},L7=["value"],V7={class:"grid grid-cols-2 gap-2"},F7={class:"space-y-1"},z7=["value"],U7={class:"space-y-1"},B7=["value"],j7={key:4,class:"pt-2 border-t border-[#333]"},H7={class:"flex items-center justify-between"},G7={class:"text-white/30 text-[10px] uppercase tracking-widest"},W7=["onClick"],K7=["value","onInput"],Z7=["onClick"],X7={class:"flex items-center justify-between"},Y7={class:"text-white/30 text-[10px] uppercase tracking-widest"},J7=["onClick"],Q7={class:"flex items-center justify-between text-[10px] text-white/50 pb-1"},q7={class:"font-bold uppercase truncate pr-2"},ej={class:"flex gap-1 shrink-0"},tj=["onClick"],nj={class:"flex flex-col gap-0.5"},rj=["onClick"],ij=["onClick"],oj=["onClick"],sj={key:5,class:"space-y-4 pt-4 border-t border-[#333]"},aj=Te({__name:"StudioInspector",setup(t){const e=si(),n=Z(()=>e.getSelectedData()),r=Z(()=>{var S;return(S=n.value)==null?void 0:S.type}),i=Z(()=>/^slides\.\d+$/.test(e.selection.value||"")),o=Z(()=>e.selection.value&&e.selection.value.includes(".nodes.")&&!e.selection.value.endsWith(".nodes")),s=Z(()=>e.selection.value&&e.selection.value.includes(".edges.")&&!e.selection.value.endsWith(".edges")),a=Z(()=>{var I;const S=(I=n.value)==null?void 0:I.type;return S==="button"||S==="image"}),l=(S,I)=>{var G;const V=((G=e.selection.value)==null?void 0:G.split("."))||[];if(V.length<4)return;const M=parseInt(V[1]),H=e.getSelectedData();H!=null&&H.id&&Promise.resolve().then(()=>Fu).then(({bus:J})=>{J.emit("diagram-node-update",{slideIndex:M,nodeId:H.id,key:S,value:I})})},u=()=>{x()},c=(S,I)=>{const V=`${e.selection.value}.${S}`;e.store.updateNode(V,I),e.commit()},d=S=>{const I={id:`node-${Date.now()}`,label:"New Node",position:{x:250,y:250},type:S,style:{backgroundColor:"#ffffff",color:"#000000",width:"150px"},dragKey:Date.now()+Math.random()},V=`${e.selection.value}.nodes`;e.store.addNode(V,I),e.commit()},h=Z(()=>{if(!n.value)return{};const S=["type","actionType","href","gotoSlide","target","action","class","dragKey","position","style","data","sourcePosition","targetPosition","source","target","animated","nodes","edges"],I=i.value&&r.value==="flex"?["direction","gap","padding","halign","valign"]:[];return Object.fromEntries(Object.entries(n.value).filter(([V,M])=>!S.includes(V)&&!I.includes(V)&&(typeof M=="string"||typeof M=="boolean"||typeof M=="number")))}),p=Z(()=>n.value?Object.fromEntries(Object.entries(n.value).filter(([S,I])=>Array.isArray(I)&&I.length>0&&typeof I[0]=="string")):{}),g=Z(()=>{if(!n.value)return{};const S=["timeline","steps","features","elements","datasets"];return Object.fromEntries(Object.entries(n.value).filter(([I,V])=>S.includes(I)&&Array.isArray(V)))}),m=(S,I)=>S.title||S.date||S.step||S.label||`#${I+1}`,_=S=>({timeline:{date:"2024",title:"New Event",description:"Description",dragKey:Date.now()+Math.random()},steps:{step:"1",title:"New Step",description:"Description",dragKey:Date.now()+Math.random()},features:{icon:"star",title:"New Feature",desc:"Description",dragKey:Date.now()+Math.random()},elements:{type:"text",text:"New text element",dragKey:Date.now()+Math.random()},datasets:{label:"Dataset",values:[],dragKey:Date.now()+Math.random()}})[S]||{title:"New Item",dragKey:Date.now()+Math.random()};let E=null;const w=(S,I)=>{if(["actionType","variant","type","animationsEnabled","useOrb","useGlass","useShadows","class","backgroundOpacity"].includes(S)||typeof I=="boolean"){E&&clearTimeout(E),e.updateSelected(S,I),e.commit();return}E&&clearTimeout(E),E=setTimeout(()=>{e.updateSelected(S,I),e.commit()},150)},v=S=>{const I=`${e.selection.value}.${S}`;e.store.addNode(I,"New item"),e.commit()},y=S=>{const I=`${e.selection.value}.${S}`,V=_(S);e.store.addNode(I,V),e.commit();const M=e.getSelectedData(),H=M?M[S]:[];H&&H.length>0&&e.select(`${I}.${H.length-1}`)},k=(S,I)=>{const V=`${e.selection.value}.${S}.${I}`;e.select(V)},$=(S,I,V)=>{const M=`${e.selection.value}.${S}.${I}`;e.store.updateNode(M,V),e.commit()},O=(S,I)=>{const V=`${e.selection.value}.${S}`;e.store.removeNode(V,I),e.commit()},A=(S,I,V)=>{const M=`${e.selection.value}.${S}`;e.store.moveNode(M,I,I+V),e.commit()},x=()=>{if(!e.selection.value)return;const S=e.selection.value.split("."),I=parseInt(S.pop()),V=S.join(".");!isNaN(I)&&V!=="slides"&&(e.store.removeNode(V,I),e.commit(),e.select(null))},N=(S,I)=>{const V=`${e.selection.value}.meta.${S}`;e.store.updateNode(V,I),e.commit()},P=(S,I)=>{const V=`${e.selection.value}.meta.${S.replace("effects.","")}`;e.store.updateNode(V,I),e.commit()},b=(S,I)=>{S.dataTransfer&&(S.dataTransfer.setData("application/vueflow",I),S.dataTransfer.effectAllowed="move")};return(S,I)=>(j(),K("div",Y8,[C("div",J8,[I[22]||(I[22]=C("span",null,"Properties",-1)),r.value?(j(),K("span",Q8,Ie(r.value),1)):Oe("",!0)]),n.value?(j(),K("div",e7,[o.value?(j(),K("div",t7,[C("div",{class:"mb-4 flex items-center gap-2 text-[10px] text-white/50 uppercase tracking-widest cursor-pointer hover:text-white",onClick:I[0]||(I[0]=V=>re(e).select(re(e).selection.value.split(".nodes.")[0]))},[...I[24]||(I[24]=[C("i",{class:"ph-thin ph-caret-left"},null,-1),bt(" Back to Diagram ",-1)])]),ce(M8,{data:n.value,onUpdate:l,onDelete:u},null,8,["data"])])):s.value?(j(),K("div",n7,[C("div",{class:"mb-4 flex items-center gap-2 text-[10px] text-white/50 uppercase tracking-widest cursor-pointer hover:text-white",onClick:I[1]||(I[1]=V=>re(e).select(re(e).selection.value.split(".edges.")[0]))},[...I[25]||(I[25]=[C("i",{class:"ph-thin ph-caret-left"},null,-1),bt(" Back to Diagram ",-1)])]),ce(X8,{data:n.value,onUpdate:c,onDelete:x},null,8,["data"])])):(j(),K("div",r7,[r.value==="diagram"?(j(),K("div",i7,[I[29]||(I[29]=C("div",{class:"text-white/30 text-[10px] uppercase tracking-widest mb-2"},"Diagram Palette",-1)),C("div",o7,[C("div",{draggable:"true",onDragstart:I[2]||(I[2]=V=>b(V,"default")),onClick:I[3]||(I[3]=V=>d("default")),class:"cursor-grab flex flex-col items-center gap-1 p-2 bg-[#1a1a1a] hover:bg-[#252525] rounded border border-transparent hover:border-white/20 transition"},[...I[26]||(I[26]=[C("div",{class:"w-6 h-4 border border-white/50 bg-white/10"},null,-1),C("span",{class:"text-[9px] text-white/70"},"Rect",-1)])],32),C("div",{draggable:"true",onDragstart:I[4]||(I[4]=V=>b(V,"input")),onClick:I[5]||(I[5]=V=>d("input")),class:"cursor-grab flex flex-col items-center gap-1 p-2 bg-[#1a1a1a] hover:bg-[#252525] rounded border border-transparent hover:border-white/20 transition"},[...I[27]||(I[27]=[C("div",{class:"w-6 h-4 border border-white/50 bg-white/10 rounded-full"},null,-1),C("span",{class:"text-[9px] text-white/70"},"Rounded",-1)])],32),C("div",{draggable:"true",onDragstart:I[6]||(I[6]=V=>b(V,"image")),onClick:I[7]||(I[7]=V=>d("image")),class:"cursor-grab flex flex-col items-center gap-1 p-2 bg-[#1a1a1a] hover:bg-[#252525] rounded border border-transparent hover:border-white/20 transition"},[...I[28]||(I[28]=[C("i",{class:"ph-thin ph-image text-white/50 text-lg"},null,-1),C("span",{class:"text-[9px] text-white/70"},"Image",-1)])],32)]),I[30]||(I[30]=C("div",{class:"mt-2 text-[9px] text-blue-200/50 text-center"}," Drag from handle to handle on visible nodes to connect. ",-1))])):Oe("",!0),Object.keys(h.value).length>0?(j(),K("div",s7,[I[33]||(I[33]=C("div",{class:"text-white/30 text-[10px] uppercase tracking-widest"},"Properties",-1)),(j(!0),K(Ue,null,It(h.value,(V,M)=>(j(),De(XB,{key:M,fieldKey:M,value:V,onUpdate:w},null,8,["fieldKey","value"]))),128)),!i.value&&r.value!=="content"?(j(),K("div",a7,[I[32]||(I[32]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Reveal Animation",-1)),C("select",{value:n.value.class||"",onChange:I[8]||(I[8]=V=>w("class",V.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white"},[...I[31]||(I[31]=[nf('<option value="">None</option><option value="reveal-up">Reveal Up</option><option value="reveal-zoom">Reveal Zoom</option><option value="reveal-left">Reveal Left</option><option value="reveal-right">Reveal Right</option><option value="reveal-img">Image Cinematic</option>',6)])],40,l7)])):Oe("",!0)])):Oe("",!0),i.value&&r.value==="flex"?(j(),K("div",u7,[ce(vi,{title:"Layout",icon:"ph-thin ph-squares-four",defaultExpanded:!0},{default:ke(()=>[C("div",c7,[C("div",d7,[I[35]||(I[35]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Direction",-1)),C("select",{value:n.value.direction||"horizontal",onChange:I[9]||(I[9]=V=>w("direction",V.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white"},[...I[34]||(I[34]=[C("option",{value:"horizontal"},"→ Horizontal",-1),C("option",{value:"vertical"},"↓ Vertical",-1)])],40,f7)]),C("div",h7,[I[37]||(I[37]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Gap",-1)),C("select",{value:n.value.gap||"none",onChange:I[10]||(I[10]=V=>w("gap",V.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white"},[...I[36]||(I[36]=[C("option",{value:"none"},"None",-1),C("option",{value:"xs"},"XS",-1),C("option",{value:"sm"},"Sm",-1),C("option",{value:"md"},"Md",-1),C("option",{value:"lg"},"Lg",-1),C("option",{value:"xl"},"XL",-1),C("option",{value:"2xl"},"2XL",-1),C("option",{value:"3xl"},"3XL",-1),C("option",{value:"4xl"},"4XL",-1)])],40,p7)]),C("div",g7,[I[39]||(I[39]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Padding",-1)),C("select",{value:n.value.padding||"none",onChange:I[11]||(I[11]=V=>w("padding",V.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white"},[...I[38]||(I[38]=[C("option",{value:"none"},"None",-1),C("option",{value:"xs"},"XS",-1),C("option",{value:"sm"},"Sm",-1),C("option",{value:"md"},"Md",-1),C("option",{value:"lg"},"Lg",-1),C("option",{value:"xl"},"XL",-1),C("option",{value:"2xl"},"2XL",-1),C("option",{value:"3xl"},"3XL",-1),C("option",{value:"4xl"},"4XL",-1)])],40,m7)]),C("div",v7,[I[41]||(I[41]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Horizontal alignment",-1)),C("select",{value:n.value.halign||"left",onChange:I[12]||(I[12]=V=>w("halign",V.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white"},[...I[40]||(I[40]=[C("option",{value:"left"},"← Left",-1),C("option",{value:"center"},"↔ Center",-1),C("option",{value:"right"},"→ Right",-1)])],40,y7)]),C("div",b7,[I[43]||(I[43]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Vertical alignment",-1)),C("select",{value:n.value.valign||"top",onChange:I[13]||(I[13]=V=>w("valign",V.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white"},[...I[42]||(I[42]=[C("option",{value:"top"},"↑ Top",-1),C("option",{value:"center"},"↕ Center",-1),C("option",{value:"bottom"},"↓ Bottom",-1)])],40,_7)])])]),_:1})])):Oe("",!0),i.value?(j(),K("div",x7,[ce(vi,{title:"Slide Appearance",icon:"ph-thin ph-paint-brush",defaultExpanded:!0},{default:ke(()=>{var V,M,H,G,J,oe,ae,de;return[C("div",w7,[ce(II,{label:"Background Color",fieldKey:"colors.background",value:(M=(V=n.value.meta)==null?void 0:V.colors)==null?void 0:M.background,onUpdate:N},null,8,["value"]),C("div",S7,[I[44]||(I[44]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Background Image URL",-1)),C("input",{type:"text",value:n.value.background||"",onInput:I[14]||(I[14]=xe=>w("background",xe.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white"},null,40,E7)]),C("div",T7,[C("div",I7,[I[45]||(I[45]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Opacity",-1)),C("input",{type:"number",step:"0.1",min:"0",max:"1",value:n.value.backgroundOpacity??1,onInput:I[15]||(I[15]=xe=>w("backgroundOpacity",parseFloat(xe.target.value))),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white"},null,40,C7)]),C("div",A7,[I[47]||(I[47]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Size",-1)),C("select",{value:((H=n.value.meta)==null?void 0:H.backgroundSize)||"cover",onChange:I[16]||(I[16]=xe=>N("backgroundSize",xe.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white"},[...I[46]||(I[46]=[C("option",{value:"cover"},"Cover",-1),C("option",{value:"contain"},"Contain",-1),C("option",{value:"auto"},"Auto",-1)])],40,P7)])]),C("div",k7,[ce(II,{label:"Orb Color",fieldKey:"effects.orbColor",value:(G=n.value.meta)==null?void 0:G.orbColor,onUpdate:P},null,8,["value"]),C("div",O7,[I[48]||(I[48]=C("div",{class:"text-white/50 text-[10px] uppercase"},"Orb Position",-1)),C("div",N7,[C("input",{type:"text",value:((oe=(J=n.value.meta)==null?void 0:J.orbPos)==null?void 0:oe.top)||"",placeholder:"Top (e.g. 10%)",onInput:I[17]||(I[17]=xe=>N("orbPos.top",xe.target.value)),class:"bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white"},null,40,R7),C("input",{type:"text",value:((de=(ae=n.value.meta)==null?void 0:ae.orbPos)==null?void 0:de.left)||"",placeholder:"Left (e.g. 50%)",onInput:I[18]||(I[18]=xe=>N("orbPos.left",xe.target.value)),class:"bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white"},null,40,$7)])])])])]}),_:1}),ce(vi,{title:"Slide Transitions",icon:"ph-thin ph-magic-wand",defaultExpanded:!1},{default:ke(()=>{var V,M,H,G,J,oe;return[C("div",D7,[C("div",M7,[I[50]||(I[50]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Animation Preset",-1)),C("select",{value:((M=(V=n.value.meta)==null?void 0:V.effects)==null?void 0:M.animationType)||"",onChange:I[19]||(I[19]=ae=>N("effects.animationType",ae.target.value)),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white font-mono"},[...I[49]||(I[49]=[C("option",{value:""},"Global Default",-1),C("option",{value:"cascade"},"Cascade",-1),C("option",{value:"fade"},"Fade",-1),C("option",{value:"slide"},"Slide",-1),C("option",{value:"zoom"},"Zoom",-1),C("option",{value:"spring"},"Spring",-1),C("option",{value:"blur"},"Blur",-1),C("option",{value:"skew"},"Skew",-1),C("option",{value:"flip"},"Flip (3D)",-1),C("option",{value:"zoom-rotate"},"Zoom Rotate",-1),C("option",{value:"elastic-up"},"Elastic Up",-1)])],40,L7)]),C("div",V7,[C("div",F7,[I[51]||(I[51]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Duration",-1)),C("input",{type:"number",step:"0.1",value:((G=(H=n.value.meta)==null?void 0:H.effects)==null?void 0:G.animationDuration)||"",placeholder:"e.g. 0.8",onInput:I[20]||(I[20]=ae=>N("effects.animationDuration",parseFloat(ae.target.value))),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white"},null,40,z7)]),C("div",U7,[I[52]||(I[52]=C("label",{class:"text-white/50 text-[10px] uppercase"},"Stagger",-1)),C("input",{type:"number",step:"0.05",value:((oe=(J=n.value.meta)==null?void 0:J.effects)==null?void 0:oe.animationStagger)||"",placeholder:"e.g. 0.1",onInput:I[21]||(I[21]=ae=>N("effects.animationStagger",parseFloat(ae.target.value))),class:"w-full bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-xs text-white"},null,40,B7)])])])]}),_:1})])):Oe("",!0),a.value?(j(),K("div",j7,[ce(u8,{actionType:n.value.actionType,href:n.value.href,gotoSlide:n.value.gotoSlide,target:n.value.target,action:n.value.action,onUpdate:w},null,8,["actionType","href","gotoSlide","target","action"])])):Oe("",!0),(j(!0),K(Ue,null,It(p.value,(V,M)=>(j(),K("div",{key:M,class:"space-y-2"},[C("div",H7,[C("span",G7,Ie(re(TI)(M)),1),C("button",{onClick:H=>v(M),class:"text-[10px] px-2 py-0.5 bg-blue-600 hover:bg-blue-500 rounded text-white"},[...I[53]||(I[53]=[C("i",{class:"ph-thin ph-plus mr-1"},null,-1),bt("Add ",-1)])],8,W7)]),(j(!0),K(Ue,null,It(V,(H,G)=>(j(),K("div",{key:G,class:"flex gap-1"},[C("input",{type:"text",value:H,onInput:J=>$(M,G,J.target.value),class:"flex-1 bg-[#1a1a1a] border border-[#333] rounded px-2 py-1 text-white focus:border-blue-500 focus:outline-none"},null,40,K7),C("button",{onClick:J=>O(M,G),class:"w-6 h-6 flex items-center justify-center text-red-400 hover:text-red-300"},[...I[54]||(I[54]=[C("i",{class:"ph-thin ph-trash text-[10px]"},null,-1)])],8,Z7)]))),128))]))),128)),(j(!0),K(Ue,null,It(g.value,(V,M)=>(j(),K("div",{key:M,class:"space-y-2"},[C("div",X7,[C("span",Y7,Ie(M)+" ("+Ie(V.length)+")",1),C("button",{onClick:H=>y(M),class:"text-[10px] px-2 py-0.5 bg-blue-600 hover:bg-blue-500 rounded text-white"},[...I[55]||(I[55]=[C("i",{class:"ph-thin ph-plus mr-1"},null,-1),bt("Add ",-1)])],8,J7)]),(j(!0),K(Ue,null,It(V,(H,G)=>(j(),K("div",{key:G,class:"bg-[#1a1a1a] border border-[#333] rounded p-2 space-y-2"},[C("div",Q7,[C("span",q7,Ie(m(H,G)),1),C("div",ej,[C("button",{onClick:J=>k(M,G),class:"w-6 h-6 flex items-center justify-center bg-blue-600/20 text-blue-400 hover:bg-blue-600 hover:text-white rounded transition-colors",title:"Edit Element"},[...I[56]||(I[56]=[C("i",{class:"ph-thin ph-pencil-simple text-[10px]"},null,-1)])],8,tj),C("div",nj,[G>0?(j(),K("button",{key:0,onClick:J=>A(M,G,-1),class:"h-3 flex items-center justify-center text-white/30 hover:text-white",title:"Move Up"},[...I[57]||(I[57]=[C("i",{class:"ph-thin ph-caret-up text-[8px]"},null,-1)])],8,rj)):Oe("",!0),G<V.length-1?(j(),K("button",{key:1,onClick:J=>A(M,G,1),class:"h-3 flex items-center justify-center text-white/30 hover:text-white",title:"Move Down"},[...I[58]||(I[58]=[C("i",{class:"ph-thin ph-caret-down text-[8px]"},null,-1)])],8,ij)):Oe("",!0)]),C("button",{onClick:J=>O(M,G),class:"w-6 h-6 flex items-center justify-center text-red-400 hover:text-red-300 hover:bg-red-900/30 rounded transition-colors",title:"Delete"},[...I[59]||(I[59]=[C("i",{class:"ph-thin ph-trash text-[10px]"},null,-1)])],8,oj)])])]))),128))]))),128)),r.value==="diagram"?(j(),K("div",sj,[...I[60]||(I[60]=[C("div",{class:"text-white/30 text-[10px] uppercase tracking-widest"},"Diagram Flow",-1),C("div",{class:"p-2 bg-blue-900/10 border border-blue-500/20 rounded text-[10px] text-blue-200"},[C("i",{class:"ph-thin ph-info mr-1"}),bt(" Drag nodes directly on the canvas. Add new nodes here. ")],-1)])])):Oe("",!0),C("div",{class:"pt-4 border-t border-[#333] mt-4"},[C("button",{onClick:x,class:"w-full px-3 py-2 rounded bg-red-900/30 border border-red-500/30 text-red-400 hover:bg-red-900/50 transition flex items-center justify-center gap-2"},[...I[61]||(I[61]=[C("i",{class:"ph-thin ph-trash text-xs"},null,-1),bt(" Delete Element ",-1)])])])]))])):(j(),K("div",q8,[...I[23]||(I[23]=[C("div",{class:"text-white/30 italic text-center"},[C("i",{class:"ph-thin ph-cursor text-2xl mb-2 block opacity-50"}),bt(" Select an element to edit ")],-1)])]))]))}}),lj={key:0,class:"absolute -top-5 left-0 bg-blue-500/80 text-white text-[9px] px-1.5 py-0.5 rounded font-bold uppercase tracking-wider z-20 pointer-events-none whitespace-nowrap"},uj={key:1,class:"absolute -top-5 left-0 bg-blue-500 text-white text-[10px] px-1.5 py-0.5 rounded-t font-bold uppercase tracking-wider flex items-center gap-1 z-20"},fs=Jr(Te({__name:"EditorNode",props:{path:{},label:{},resizable:{type:Boolean,default:!1}},setup(t){const e=t,n=si(),r=Z(()=>n.selection.value===e.path),i=we(!1),o=we(!1),s=Z(()=>r.value?"ring-2 ring-blue-500 ring-offset-1 ring-offset-transparent z-20 bg-blue-500/5":i.value?"ring-2 ring-dashed ring-blue-400/60 z-10 cursor-pointer":"hover:ring-2 hover:ring-dashed hover:ring-blue-400/40"),a=()=>{n.select(e.path)},l=u=>{o.value=!0;const c=u.clientX,d=p=>{p.clientX-c},h=()=>{o.value=!1,document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",h)};document.addEventListener("mousemove",d),document.addEventListener("mouseup",h)};return(u,c)=>(j(),K("div",{class:Se(["editor-node relative group outline-none transition-all duration-150",s.value]),onClick:kr(a,["stop"]),onMouseenter:c[0]||(c[0]=d=>i.value=!0),onMouseleave:c[1]||(c[1]=d=>i.value=!1)},[i.value&&!r.value?(j(),K("div",lj,Ie(t.label||"Element"),1)):Oe("",!0),r.value?(j(),K("div",uj,[C("span",null,Ie(t.label||"Element"),1)])):Oe("",!0),Mt(u.$slots,"default",{},void 0,!0),r.value&&t.resizable?(j(),K("div",{key:2,onMousedown:kr(l,["stop","prevent"]),class:Se(["absolute top-0 right-0 w-2 h-full cursor-ew-resize bg-blue-500/50 hover:bg-blue-500 transition opacity-0 group-hover:opacity-100",{"opacity-100":o.value}])},null,34)):Oe("",!0)],34))}}),[["__scopeId","data-v-d7269475"]]),cj=["src","alt"],Hh=Te({__name:"FlexImage",props:{src:{},alt:{},fill:{type:Boolean},rounded:{},containerClass:{},containerStyle:{},href:{},target:{},class:{}},setup(t){const e=t,n=we(!1),r=Z(()=>e.class||""),i=()=>{n.value=!0},o=a=>{n.value=!0,a.target.src="https://placehold.co/800x600/1a1a1a/666?text=Image+Not+Found"},s=Z(()=>e.fill!==!1&&!e.rounded?"":{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"}[e.rounded||"lg"]||"rounded-lg");return(a,l)=>(j(),De(Xn(t.href?"a":"div"),{href:t.href||void 0,target:t.href?t.target||"_blank":void 0,rel:t.href?"noopener noreferrer":void 0,class:Se([t.containerClass,r.value,t.href&&"cursor-pointer hover:opacity-90 transition-opacity"]),style:Xe(t.containerStyle)},{default:ke(()=>[C("img",{src:t.src,alt:t.alt||"",class:Se(["w-full h-full transition-opacity duration-700",t.fill!==!1?"object-cover":"object-contain",s.value,n.value?"opacity-100":"opacity-0"]),onLoad:i,onError:o},null,42,cj)]),_:1},8,["href","target","rel","class","style"]))}}),dj=["data-split-text"],CI=Te({__name:"FlexTitle",props:{text:{},size:{},align:{},class:{}},setup(t){const e=t,n=Z(()=>e.class||""),r=Z(()=>({fontFamily:"var(--lumina-font-heading)",fontWeight:"var(--lumina-font-weight-bold)",lineHeight:"var(--lumina-leading-tight)",fontSize:{lg:"var(--lumina-text-3xl)",xl:"var(--lumina-text-4xl)","2xl":"var(--lumina-text-5xl)","3xl":"var(--lumina-text-6xl)"}[e.size||"xl"]||"var(--lumina-text-4xl)",textAlign:e.align||"left",width:"100%",letterSpacing:"var(--lumina-tracking-tighter)",color:"var(--lumina-color-text-safe, var(--lumina-color-text))"}));return(i,o)=>(j(),K("h2",{style:Xe(r.value),class:Se(["flex-title",n.value]),"data-split-text":n.value.includes("char")||n.value.includes("word")?"":null},Ie(t.text),15,dj))}}),AI=Te({__name:"FlexText",props:{text:{},align:{},muted:{type:Boolean},class:{}},setup(t){const e=t,n=Z(()=>e.class||""),r=Z(()=>({fontSize:"var(--lumina-text-lg)",lineHeight:"var(--lumina-leading-relaxed)",color:e.muted?"var(--lumina-color-text-secondary)":"var(--lumina-color-text)",opacity:e.muted?.8:1,textAlign:e.align||"left",width:"100%"}));return(i,o)=>(j(),K("p",{style:Xe(r.value),class:Se(n.value)},Ie(t.text),7))}}),fj={class:"relative z-10"},PI=Te({__name:"FlexButton",props:{label:{},action:{},actionType:{},href:{},gotoSlide:{},target:{},variant:{},fullWidth:{type:Boolean},class:{}},emits:["action"],setup(t,{emit:e}){const n=t,r=e,i=yt(vn,null),o=we(null),s=Z(()=>n.class||""),a=Z(()=>({...{padding:"var(--lumina-button-padding)",borderRadius:"var(--lumina-button-radius)",fontWeight:"var(--lumina-button-font-weight)",fontSize:"var(--lumina-text-lg)",width:n.fullWidth?"100%":"auto",position:"relative",cursor:"pointer",transition:"background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease"},...{primary:{background:"linear-gradient(to right, var(--lumina-color-primary), var(--lumina-color-secondary))",color:"var(--lumina-color-text)",boxShadow:"0 var(--lumina-space-xs) var(--lumina-space-lg) var(--lumina-shadow-color)",border:"none"},secondary:{backgroundColor:"rgba(var(--lumina-color-text-rgb), 0.1)",color:"var(--lumina-color-text)",border:"1px solid var(--lumina-color-border)"},outline:{backgroundColor:"transparent",color:"var(--lumina-color-text)",border:"2px solid var(--lumina-color-border)"},ghost:{backgroundColor:"transparent",color:"var(--lumina-color-muted)",border:"none",boxShadow:"none"}}[n.variant||"primary"]})),l=()=>{switch(o.value&&zt.fromTo(o.value,{scale:.95},{scale:1,duration:.2,ease:"back.out(2)"}),n.actionType||"event"){case"url":n.href&&window.open(n.href,n.target||"_blank");break;case"slide":n.gotoSlide!==void 0&&i&&i.goto(n.gotoSlide),r("action",{type:"goto",value:n.gotoSlide,origin:"flex-button"});break;case"download":if(n.href){const h=document.createElement("a");h.href=n.href,h.download="",h.click()}break;default:r("action",{type:"click",label:n.label,value:n.action||n.label,origin:"flex-button"})}},u=d=>{const h=o.value;if(!h)return;const p=h.getBoundingClientRect(),g=d.clientX-p.left-p.width/2,m=d.clientY-p.top-p.height/2;zt.to(h,{x:g*.3,y:m*.3,duration:.3,ease:"power2.out"})},c=()=>{o.value&&zt.to(o.value,{x:0,y:0,duration:.8,ease:"elastic.out(1, 0.4)"})};return(d,h)=>(j(),K("button",{ref_key:"btnRef",ref:o,class:Se(["flex-button",t.variant,s.value]),style:Xe(a.value),onClick:l,onMousemove:u,onMouseleave:c},[C("span",fj,Ie(t.label),1)],38))}}),kI=Te({__name:"FlexBullets",props:{items:{},class:{}},setup(t){const e=t,n=Z(()=>e.class||""),r={display:"flex",flexDirection:"column",gap:"var(--lumina-space-sm)",width:"100%"},i={display:"flex",alignItems:"flex-start",gap:"var(--lumina-space-sm)",fontSize:"var(--lumina-text-lg)",color:"var(--lumina-color-text-safe, var(--lumina-color-text))",opacity:.9},o={width:"var(--lumina-space-sm)",height:"var(--lumina-space-sm)",borderRadius:"var(--lumina-radius-full)",backgroundColor:"var(--lumina-color-primary)",marginTop:"var(--lumina-space-sm)",flexShrink:0,boxShadow:"0 0 var(--lumina-space-sm) rgba(var(--lumina-color-primary-rgb), 0.5)"};return(s,a)=>(j(),K("ul",{style:r,class:Se(n.value)},[(j(!0),K(Ue,null,It(t.items,(l,u)=>(j(),K("li",{key:u,style:i},[C("span",{style:o}),C("span",null,Ie(l),1)]))),128))],2))}}),OI=Te({__name:"FlexOrdered",props:{items:{},class:{}},setup(t){const e=t,n=Z(()=>e.class||""),r={display:"flex",flexDirection:"column",gap:"var(--lumina-space-sm)",width:"100%"},i={display:"flex",alignItems:"flex-start",gap:"var(--lumina-space-sm)",fontSize:"var(--lumina-text-lg)",color:"var(--lumina-color-text-safe, var(--lumina-color-text))",opacity:.9},o={fontSize:"var(--lumina-text-sm)",fontWeight:"var(--lumina-font-weight-bold)",color:"var(--lumina-color-primary)",marginTop:"2px",minWidth:"1.2em",textAlign:"right"};return(s,a)=>(j(),K("ol",{style:r,class:Se(n.value)},[(j(!0),K(Ue,null,It(t.items,(l,u)=>(j(),K("li",{key:u,style:i},[C("span",{style:o},Ie(u+1),1),C("span",null,Ie(l),1)]))),128))],2))}}),NI=Te({name:"FlexTimeline",props:["items","compact"],setup(t){return()=>qe("div",{style:{display:"flex",flexDirection:"column",gap:"var(--lumina-space-md)",width:"100%"}},(t.items||[]).map(e=>qe("div",{style:{display:"flex",gap:"var(--lumina-space-md)",alignItems:"flex-start",borderLeft:"var(--lumina-timeline-line-width) solid rgba(var(--lumina-color-primary-rgb), 0.3)",paddingLeft:"var(--lumina-space-md)"}},[qe("div",{style:{flexShrink:0,width:"calc(var(--lumina-timeline-node-size) * 0.75)",height:"calc(var(--lumina-timeline-node-size) * 0.75)",borderRadius:"var(--lumina-radius-full)",backgroundColor:"var(--lumina-color-primary)",marginLeft:"calc(-1 * var(--lumina-space-md) - var(--lumina-timeline-line-width) / 2 - var(--lumina-timeline-node-size) * 0.375)",marginTop:"var(--lumina-space-xs)",boxShadow:"0 0 var(--lumina-space-sm) rgba(var(--lumina-color-primary-rgb), 0.5)"}}),qe("div",{},[qe("span",{style:{fontSize:"var(--lumina-text-xs)",color:"var(--lumina-color-primary)",fontWeight:"var(--lumina-font-weight-bold)",textTransform:"uppercase",letterSpacing:"var(--lumina-tracking-wider)"}},e.date),qe("h4",{style:{fontWeight:"var(--lumina-font-weight-bold)",fontSize:"var(--lumina-text-lg)"}},e.title||e.t),qe("p",{style:{fontSize:"var(--lumina-text-sm)",color:"var(--lumina-color-muted)",opacity:.6}},e.description||e.desc)])])))}}),RI=Te({name:"FlexStepper",props:["items","compact"],setup(t){return()=>qe("div",{style:{display:"flex",flexDirection:"column",gap:"var(--lumina-space-md)",width:"100%"}},(t.items||[]).map(e=>qe("div",{style:{display:"flex",gap:"var(--lumina-space-md)",alignItems:"flex-start",padding:"var(--lumina-space-md)",borderRadius:"var(--lumina-radius-lg)",backgroundColor:"rgba(var(--lumina-color-text-rgb), 0.05)",border:"1px solid var(--lumina-color-border)"}},[qe("div",{style:{flexShrink:0,width:"var(--lumina-step-badge-size)",height:"var(--lumina-step-badge-size)",borderRadius:"var(--lumina-radius-lg)",background:"linear-gradient(135deg, rgba(var(--lumina-color-primary-rgb), 0.2), rgba(var(--lumina-color-secondary-rgb), 0.2))",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"var(--lumina-font-weight-bold)",color:"var(--lumina-color-primary)"}},e.step),qe("div",{},[qe("h4",{style:{fontWeight:"var(--lumina-font-weight-bold)"}},e.title||e.t),qe("p",{style:{fontSize:"var(--lumina-text-sm)",color:"var(--lumina-color-muted)",opacity:.6}},e.description||e.desc)])])))}}),So={none:"var(--lumina-space-none, 0)",xs:"var(--lumina-space-xs)",sm:"var(--lumina-space-sm)",md:"var(--lumina-space-md)",lg:"var(--lumina-space-lg)",xl:"var(--lumina-space-xl)","2xl":"var(--lumina-space-2xl)","3xl":"var(--lumina-space-3xl)","4xl":"var(--lumina-space-4xl)"},ky={auto:"auto",quarter:"25%",third:"33.333%",half:"50%","two-thirds":"66.666%","three-quarters":"75%",full:"100%"},Oy={top:"flex-start",Top:"flex-start",center:"center",Center:"center",bottom:"flex-end",Bottom:"flex-end"},Ny={left:"flex-start",Left:"flex-start",center:"center",Center:"center",right:"flex-end",Right:"flex-end"},Vc=t=>!t||t==="auto"?"flex-1":"",Ry=(t,e)=>{const n=t.size||"auto";return n==="auto"?{flex:"1 1 auto"}:{flex:`0 0 ${ky[n]}`,maxWidth:e?void 0:ky[n],maxHeight:e?ky[n]:void 0}},$I=t=>{const e=t.valign||"center",n=t.halign||"left",r=t.gap||"md",i=t.padding||"lg";return{display:"flex",flexDirection:"column",justifyContent:Oy[e],alignItems:Ny[n],gap:So[r],padding:So[i]}},DI=()=>({display:"flex",alignItems:"center",padding:So.lg}),MI=(t,e,n)=>{const r=t==="vertical"?Oy[n||"top"]:Ny[e||"left"],i=t==="vertical"?Ny[e||"left"]:Oy[n||"top"];return{justifyContent:r,alignItems:i}},hj=(t,e)=>e!==!1&&!t?"w-full h-full":{none:"w-full h-full rounded-none",sm:"w-full h-full rounded-sm",md:"w-full h-full rounded-md",lg:"w-full h-full rounded-lg",xl:"w-full h-full rounded-xl",full:"w-full h-full rounded-full"}[t||"lg"]||"w-full h-full rounded-lg",LI=Te({name:"FlexSpacer",props:["size"],setup(t){const e=So[t.size||"md"]||So.md;return()=>qe("div",{style:{height:e,width:"100%"}})}}),pj={key:0,class:"h-full w-full"},gj={key:2,class:"w-full h-full bg-gray-900 flex items-center justify-center text-white/20 rounded-lg"},mj=Te({__name:"EditorLayoutFlex",props:{data:{},slideIndex:{}},setup(t){const e=t,n=si(),r=Z(()=>e.data.elements||[]),i=Z(()=>e.data.direction==="vertical"?"flex-col":"flex-row"),o=Z(()=>({padding:So[e.data.padding||"none"]})),s=Z(()=>({gap:So[e.data.gap||"none"],...MI(e.data.direction,e.data.halign,e.data.valign)})),a=h=>Ry(h,e.data.direction==="vertical"),l=$I,u=h=>({title:CI,text:AI,image:Hh,bullets:kI,ordered:OI,button:PI,timeline:NI,stepper:RI,spacer:LI})[h]||"div",c=h=>{if(h.moved){const{oldIndex:p,newIndex:g}=h.moved;n.store.moveNode(`slides.${e.slideIndex}.elements`,p,g),n.commit()}},d=(h,p)=>{if(h.moved){const{oldIndex:g,newIndex:m}=h.moved;n.store.moveNode(`slides.${e.slideIndex}.elements.${p}.elements`,g,m),n.commit()}};return(h,p)=>(j(),K("div",{class:"w-full h-full flex items-center justify-center",style:Xe(o.value)},[ce(re(zh),{list:r.value,"item-key":"dragKey",group:{name:"elements"},onChange:c,class:Se(["flex w-full h-full max-w-7xl mx-auto",i.value]),style:Xe(s.value)},{item:ke(({element:g,index:m})=>[ce(fs,{path:`slides.${t.slideIndex}.elements.${m}`,label:g.type,resizable:!0,class:Se([re(Vc)(g.size),"relative"]),style:Xe(g.type==="content"||g.type==="image"||g.type==="video"?{...a(g),height:"100%"}:{...re(DI)(),width:"100%"})},{default:ke(()=>{var _;return[g.type==="content"?(j(),K("div",pj,[ce(re(zh),{list:g.elements,"item-key":"dragKey",group:{name:"elements"},onChange:E=>d(E,m),class:"w-full h-full flex flex-col",style:Xe([re(l)(g),{minHeight:"50px"}])},{item:ke(({element:E,index:w})=>[ce(fs,{path:`slides.${t.slideIndex}.elements.${m}.elements.${w}`,label:E.type,style:{width:"100%"}},{default:ke(()=>[(j(),De(Xn(u(E.type)),Hp(kg(E)),null,16))]),_:2},1032,["path","label"])]),_:2},1032,["list","onChange","style"])])):g.type==="image"?(j(),De(Hh,{key:1,src:g.src,alt:g.alt,fill:g.fill,rounded:g.rounded,"container-class":"w-full h-full"},null,8,["src","alt","fill","rounded"])):g.type==="video"?(j(),K("div",gj,[p[0]||(p[0]=C("i",{class:"ph-thin ph-play mr-2"},null,-1)),bt(" Video: "+Ie(((_=g.src)==null?void 0:_.split("/").pop())||"Unknown"),1)])):(j(),De(Xn(u(g.type)),Hp(ao({key:3},g)),null,16))]}),_:2},1032,["path","label","class","style"])]),_:1},8,["list","class","style"])],4))}});function Gl(t,e){var i,o,s,a;const n=(i=t.getAttribute)==null?void 0:i.call(t,"data-lumina-id");if(n&&((o=e[n])==null?void 0:o.visible)===!1)return!0;const r=((s=t.querySelectorAll)==null?void 0:s.call(t,"[data-lumina-id]"))||[];for(const l of r){const u=l.getAttribute("data-lumina-id");if(u&&((a=e[u])==null?void 0:a.visible)===!1)return!0}return!1}function vj(t,e,n){const r=yt(vn);let i=null;const o=u=>{var c;(c=t.value)==null||c.querySelectorAll("[data-split-init]").forEach(d=>{const h=d;h.hasAttribute("data-split-text")||(h.innerHTML=h.dataset.splitTextValue||h.innerText,delete h.dataset.splitInit,delete h.dataset.splitTextValue)}),u.forEach(d=>{const h=d,p=h.innerText;p&&h.dataset.splitTextValue!==p&&(h.innerHTML=p.split("").map(g=>g===" "?" ":`<span class="inline-block reveal-char">${g}</span>`).join(""),h.dataset.splitInit="true",h.dataset.splitTextValue=p,h.style.whiteSpace="normal")})},s=()=>{var h,p,g;const u=((h=e==null?void 0:e.meta)==null?void 0:h.effects)||{},c=((g=(p=r==null?void 0:r.state.deck)==null?void 0:p.meta)==null?void 0:g.effects)||{},d=(r==null?void 0:r.state.options.animation)||{};return{enabled:u.animationsEnabled??c.animationsEnabled??d.enabled??!0,type:u.animationType??c.animationType??d.type??"fade",durationIn:u.animationDuration??c.animationDuration??d.durationIn??.8,durationOut:u.animationDurationOut??c.animationDurationOut??d.durationOut??.5,stagger:u.animationStagger??c.animationStagger??d.stagger??.1,ease:u.animationEase??c.animationEase??d.ease??"power3.out",entranceReveal:u.entranceReveal===!0||c.entranceReveal===!0||d.entranceReveal===!0}},a=(u=!1)=>{var O;if(!t.value)return;i==null||i.revert();const c=s(),{enabled:d,type:h,durationIn:p,stagger:g,ease:m,entranceReveal:_}=c,E=h==="flip",w=h==="zoom-rotate",v=h==="elastic-up",y=h==="blur",k=h==="skew",$=h==="spring"||v;if(d===!1||u||!_){const A=[".reveal-up",".reveal-zoom",".reveal-card",".reveal-left",".reveal-right",".reveal-content > *",".flex-layout > div > *",".reveal-img",".reveal-char","[data-split-text]",".reveal-child"].join(", "),x=t.value.querySelectorAll("[data-split-text]");x.length&&o(x);const N=((O=r==null?void 0:r.state)==null?void 0:O.elementState)??{},P=Array.from(t.value.querySelectorAll(A)),b=P.filter(V=>!Gl(V,N)),S=P.filter(V=>Gl(V,N));zt.set(S,{opacity:0}),zt.set(b,{opacity:1,y:0,x:0,scale:1,filter:"blur(0px)",visibility:"visible",rotation:0,rotationY:0,skewY:0});const I=t.value.querySelectorAll(".reveal-char");I.length&&zt.set(I,{y:"0%",opacity:1,rotateX:0});return}i=zt.context(()=>{var pe;const A=t.value,x=A.querySelectorAll("[data-split-text]");x.length&&o(x);const N=h==="fade"||y||E?0:v?100:30,P=E?90:0,b=w?-10:0,S=h==="zoom"||w?.7:1,I=y?15:0,V=k?10:0,M=[".reveal-up",".reveal-zoom",".reveal-card",".reveal-left",".reveal-right",".reveal-content > *",".flex-layout > div > *"].join(", "),H=((pe=r==null?void 0:r.state)==null?void 0:pe.elementState)??{},G=Array.from(A.querySelectorAll(M)).filter(le=>!le.hasAttribute("data-split-text")),J=G.filter(le=>!Gl(le,H)),oe=G.filter(le=>Gl(le,H));oe.length&&zt.set(oe,{opacity:0});const ae=A.querySelectorAll(".reveal-char"),de=A.querySelectorAll(".reveal-img"),xe=A.querySelectorAll(".reveal-child");if(x.length&&zt.set(x,{opacity:1,visibility:"visible"}),J.length){zt.set(J,{y:N,opacity:0,scale:S,rotationY:P,rotation:b,filter:`blur(${I}px)`,skewY:V,transformPerspective:1200});const le=J.filter(Re=>Re.classList.contains("reveal-left")),fe=J.filter(Re=>Re.classList.contains("reveal-right"));le.length>0&&zt.set(le,{x:-50,y:0}),fe.length>0&&zt.set(fe,{x:50,y:0})}de.length&&zt.set(de,{scale:1.1,opacity:0,filter:"blur(10px)"}),ae.length&&zt.set(ae,{y:"100%",opacity:0,rotateX:-90}),xe.length&&zt.set(xe,{y:15,opacity:0});const Ee=zt.timeline({defaults:{ease:m||(v?"elastic.out(1, 0.5)":$?"back.out(1.5)":"power3.out"),duration:p||(v?1.2:.7)},onComplete:n});de.length&&Ee.to(de,{scale:1,opacity:1,filter:"blur(0px)",duration:(p||.7)*1.5,ease:"expo.out"},0),ae.length&&Ee.to(ae,{y:"0%",opacity:1,rotateX:0,duration:(p||.7)*.8,stagger:.015,ease:"back.out(2)"},.05),J.length&&Ee.to(J,{y:0,x:0,opacity:1,scale:1,rotationY:0,rotation:0,filter:"blur(0px)",skewY:0,duration:p||.7,stagger:g},.1),xe.length&&Ee.to(xe,{y:0,opacity:1,duration:(p||.7)*.6,stagger:.05,ease:"power2.out"},.2)},t.value)},l=()=>new Promise(u=>{if(!t.value){u();return}const c=s(),{enabled:d,type:h,durationOut:p,stagger:g}=c;if(d===!1){u();return}const m=t.value,_=[".reveal-up",".reveal-zoom",".reveal-card",".reveal-left",".reveal-right",".reveal-content > *",".flex-layout > div > *"].join(", "),E=m.querySelectorAll(_),w=m.querySelectorAll(".reveal-char"),v=m.querySelectorAll(".reveal-child"),y=m.querySelector(".reveal-img"),k=zt.timeline({onComplete:u,defaults:{duration:p,ease:"power2.in"}});if(E.length){const $=h==="fade"||h==="blur"?0:h==="cascade"?-30:20;k.to(E,{opacity:0,y:$,scale:h==="zoom"?.9:1,stagger:g*.5},0)}if(w.length){const $=h==="fade"?0:"-50%";k.to(w,{opacity:0,y:$,stagger:.005,ease:"power2.in"},.1)}y&&k.to(y,{opacity:0,scale:1.05,filter:"blur(10px)",duration:p*1.2},.1),v.length&&k.to(v,{opacity:0,y:10,duration:p*.8},0),!E.length&&!w.length&&!y&&u()});return Qe(()=>{var u,c;return[e,(c=(u=r==null?void 0:r.state.deck)==null?void 0:u.meta)==null?void 0:c.effects,r==null?void 0:r.state.options.animation]},()=>{pr(()=>a(!0))},{deep:!0}),jt(()=>{a();const u=new MutationObserver(()=>{var h;const c=t.value;if(!c)return;const d=s();if(d.enabled===!1||!d.entranceReveal){const p=[".reveal-up",".reveal-zoom",".reveal-card",".reveal-left",".reveal-right",".reveal-content > *",".flex-layout > div > *",".reveal-img",".reveal-char","[data-split-text]",".reveal-child"].join(", "),g=((h=r==null?void 0:r.state)==null?void 0:h.elementState)??{},m=Array.from(c.querySelectorAll(p)),_=m.filter(w=>!Gl(w,g)),E=m.filter(w=>Gl(w,g));E.length&&zt.set(E,{opacity:0}),_.length&&zt.set(_,{opacity:1,y:0,x:0,scale:1,filter:"blur(0px)",visibility:"visible"});return}if(d.entranceReveal){const p=c.querySelectorAll(".reveal-up, .reveal-zoom, .reveal-card, .reveal-left, .reveal-right, .reveal-content > *, .flex-layout > div > *");Array.from(p).some(m=>m.style.opacity===""&&getComputedStyle(m).opacity==="0")&&a()}});t.value&&u.observe(t.value,{childList:!0,subtree:!0}),sr(()=>u.disconnect())}),sr(()=>i==null?void 0:i.revert()),{animateIn:a,animateOut:l}}function VI(t){const e=yt(vn);if(!e)return{visible:Z(()=>!0),style:Z(()=>({})),class:Z(()=>"")};const n=Z(()=>{const o=ct(t);if(!o)return!0;const s=e.state.elementState[o];return(s==null?void 0:s.visible)!==!1}),r=Z(()=>{const o=ct(t);if(!o)return{};const s=e.state.elementState[o],a={};return(s==null?void 0:s.visible)===!1?a.opacity=0:(s==null?void 0:s.opacity)!==void 0&&(a.opacity=s.opacity),s!=null&&s.transform&&(a.transform=s.transform),s!=null&&s.style&&typeof s.style=="object"&&Object.assign(a,s.style),a}),i=Z(()=>{const o=ct(t);if(!o)return"";const s=e.state.elementState[o];return(s==null?void 0:s.class)||""});return{visible:n,style:r,class:i}}const yj=["data-lumina-id"],bj={class:"absolute inset-0 z-0 pointer-events-none overflow-hidden"},_j=["src","poster","autoplay","loop","muted"],xj={key:2,class:"absolute inset-0 bg-[var(--lumina-colors-background,black)]/30 pointer-events-none transition-opacity duration-1000"},wj={class:"relative z-10 w-full h-full"},ji=Te({__name:"BaseSlide",props:{data:{},customClass:{},slideIndex:{}},setup(t,{expose:e}){const n=t,r=Z(()=>Gt(n.data,n.slideIndex??0,["slide"])),i=VI(r),o=we(null),{animateIn:s,animateOut:a}=vj(o,n.data);e({animateIn:s,animateOut:a});const l=Z(()=>{var w,v;const E=(v=(w=n.data.meta)==null?void 0:w.colors)==null?void 0:v.background;return E?{backgroundColor:E}:{}}),u=Z(()=>n.data.background?typeof n.data.background=="string"?"image":n.data.background.type==="video"?"video":null:null),c=Z(()=>n.data.background?typeof n.data.background=="string"?n.data.background:n.data.background.src:""),d=Z(()=>{var E;return u.value!=="image"?{}:{backgroundImage:`url(${c.value})`,opacity:_.value,backgroundSize:((E=n.data.meta)==null?void 0:E.backgroundSize)||"cover"}}),h=Z(()=>{if(u.value==="video")return n.data.background.poster}),p=Z(()=>u.value!=="video"?void 0:n.data.background.autoplay??!0),g=Z(()=>u.value!=="video"?void 0:n.data.background.loop??!0),m=Z(()=>u.value!=="video"?void 0:n.data.background.muted??!0),_=Z(()=>n.data.backgroundOpacity??1);return(E,w)=>za((j(),K("div",{ref_key:"container",ref:o,class:Se(["w-full min-h-full relative text-white",[t.customClass,re(i).class].filter(Boolean)]),"data-lumina-id":r.value,style:Xe({...l.value,...re(i).style})},[C("div",bj,[u.value==="image"?(j(),K("div",{key:0,class:"absolute inset-0 bg-cover bg-center transition-opacity duration-1000",style:Xe(d.value)},null,4)):u.value==="video"?(j(),K("video",{key:1,class:"absolute inset-0 w-full h-full object-cover transition-opacity duration-1000",style:Xe({opacity:_.value}),src:c.value,poster:h.value,autoplay:p.value,loop:g.value,muted:m.value,playsinline:""},null,12,_j)):Oe("",!0),u.value==="video"?(j(),K("div",xj)):Oe("",!0),Mt(E.$slots,"background")]),C("div",wj,[Mt(E.$slots,"default")])],14,yj)),[[lf,re(i).visible]])}}),Sj=["src","poster","autoplay","loop","muted"],Ej={key:0,class:"absolute bottom-0 left-0 w-full p-4 bg-gradient-to-t from-black/80 via-black/40 to-transparent transition-opacity duration-300"},Tj={class:"flex items-center justify-between text-white"},Ij={class:"flex items-center gap-4"},Cj={class:"flex items-center gap-2 group/vol"},Aj={class:"text-xs font-mono opacity-70"},Pj={key:0,class:"absolute inset-0 flex items-center justify-center pointer-events-none"},Gh=Jr(Te({__name:"VideoPlayer",props:{src:{type:String,required:!0},poster:{type:String,default:""},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},muted:{type:Boolean,default:!1},controls:{type:Boolean,default:!0},objectFit:{type:String,default:"cover"}},setup(t){const e=t,n=we(null),r=we(!1),i=we(e.muted),o=we(1),s=we(0),a=we(0),l=we(0),u=we(!1),c=we(!1);let d;const h=Z(()=>e.objectFit==="contain"?"object-contain":"object-cover"),p=$=>{const O=Math.floor($/60),A=Math.floor($%60);return`${O}:${A.toString().padStart(2,"0")}`},g=()=>{n.value&&(n.value.paused?(n.value.play(),r.value=!0,c.value=!0):(n.value.pause(),r.value=!1))},m=()=>{n.value&&(n.value.muted=!n.value.muted,i.value=n.value.muted,i.value?o.value=0:o.value=1)},_=()=>{n.value&&(a.value=n.value.currentTime,s.value=a.value/l.value*100||0)},E=()=>{n.value&&(l.value=n.value.duration,e.autoplay&&g())},w=()=>{r.value=!1,e.loop&&n.value&&(n.value.currentTime=0,g())},v=$=>{if(!n.value)return;const O=$.currentTarget,A=$.offsetX/O.clientWidth;n.value.currentTime=A*l.value,s.value=A*100},y=()=>{if(!n.value)return;const $=n.value.parentElement;!document.fullscreenElement&&$?$.requestFullscreen():document.exitFullscreen()},k=()=>{u.value=!0,clearTimeout(d),d=setTimeout(()=>{r.value&&(u.value=!1)},3e3)};return Qe(o,$=>{n.value&&(n.value.volume=$,i.value=$===0,n.value.muted=$===0)}),jt(()=>{n.value&&(n.value.muted=e.muted,i.value=e.muted)}),($,O)=>(j(),K("div",{class:"relative w-full h-full group bg-black overflow-hidden",onMousemove:k,onMouseleave:O[1]||(O[1]=A=>u.value=!1)},[C("video",{ref_key:"videoRef",ref:n,class:Se(["w-full h-full",h.value]),src:t.src,poster:t.poster,autoplay:t.autoplay,loop:t.loop,muted:t.muted,playsinline:"",onClick:g,onTimeupdate:_,onLoadedmetadata:E,onEnded:w},null,42,Sj),ce(Xa,{name:"fade"},{default:ke(()=>[t.controls&&u.value?(j(),K("div",Ej,[C("div",{class:"w-full h-1 bg-white/20 rounded-full mb-4 cursor-pointer relative group/progress",onClick:v},[C("div",{class:"absolute top-0 left-0 h-full rounded-full transition-all duration-100",style:Xe({width:`${s.value}%`,backgroundColor:"var(--lumina-colors-primary, #3b82f6)"})},null,4),C("div",{class:"absolute top-1/2 -translate-y-1/2 w-3 h-3 bg-white rounded-full opacity-0 group-hover/progress:opacity-100 transition-opacity",style:Xe({left:`${s.value}%`})},null,4)]),C("div",Tj,[C("div",Ij,[C("button",{onClick:g,class:"hover:text-[var(--lumina-colors-primary)] transition"},[C("i",{class:Se(["ph-thin text-xl",r.value?"ph-pause":"ph-play"])},null,2)]),C("div",Cj,[C("button",{onClick:m,class:"hover:text-[var(--lumina-colors-primary)] transition w-6"},[C("i",{class:Se(["ph-thin",i.value?"ph-speaker-slash":"ph-speaker-high"])},null,2)]),za(C("input",{type:"range",min:"0",max:"1",step:"0.1","onUpdate:modelValue":O[0]||(O[0]=A=>o.value=A),class:"w-0 overflow-hidden group-hover/vol:w-20 transition-all duration-300 h-1 bg-white/20 rounded-lg appearance-none cursor-pointer [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:w-2 [&::-webkit-slider-thumb]:h-2 [&::-webkit-slider-thumb]:bg-white [&::-webkit-slider-thumb]:rounded-full"},null,512),[[Ms,o.value,void 0,{number:!0}]])]),C("span",Aj,Ie(p(a.value))+" / "+Ie(p(l.value)),1)]),C("div",{class:"flex items-center gap-4"},[C("button",{onClick:y,class:"hover:text-[var(--lumina-colors-primary)] transition"},[...O[2]||(O[2]=[C("i",{class:"ph-thin ph-corners-out"},null,-1)])])])])])):Oe("",!0)]),_:1}),t.controls&&!r.value&&!c.value?(j(),K("div",Pj,[C("div",{class:"w-16 h-16 rounded-full bg-black/50 backdrop-blur-sm border border-white/10 flex items-center justify-center text-white pointer-events-auto cursor-pointer hover:scale-110 transition duration-300",onClick:g},[...O[3]||(O[3]=[C("i",{class:"ph-thin ph-play text-2xl ml-1"},null,-1)])])])):Oe("",!0)],32))}}),[["__scopeId","data-v-a24eb9c6"]]),kj={key:0,class:"w-full h-full relative"},Oj=["src"],$y=Te({__name:"LayoutHalf",props:{data:{},slideIndex:{}},emits:["action"],setup(t){const e=t,n=yt(vn),r=we(!1),i=Z(()=>e.slideIndex??(n==null?void 0:n.state.currentIndex)??0),o=Z(()=>Gt(e.data,i.value,["media"])),s=Z(()=>Gt(e.data,i.value,["tag"])),a=Z(()=>Gt(e.data,i.value,["title"])),l=Z(()=>Gt(e.data,i.value,["paragraphs"])),u=Z(()=>Gt(e.data,i.value,["cta"])),c=Z(()=>({backgroundColor:"var(--lumina-color-background)",paddingTop:"var(--lumina-space-xl)",paddingLeft:"var(--lumina-space-3xl)",paddingRight:"var(--lumina-space-3xl)",paddingBottom:"calc(var(--lumina-space-xl) + var(--lumina-safe-area-bottom))"}));return(d,h)=>{const p=Pr("LuminaElement");return j(),De(ji,{data:t.data,"slide-index":i.value},{default:ke(()=>[C("div",{class:Se(["w-full flex flex-col lg:block relative",t.data.sizing==="container"?"min-h-full":"min-h-screen"])},[ce(p,{id:o.value,class:Se(["relative h-[40vh] lg:h-full lg:w-1/2 overflow-hidden z-0",t.data.sizing==="container"?"lg:absolute lg:top-0":"lg:fixed lg:top-0",t.data.imageSide==="right"?"lg:right-0 order-1":"lg:left-0 order-1"])},{default:ke(()=>[h[3]||(h[3]=C("div",{class:"absolute inset-0 z-10",style:{backgroundColor:"var(--lumina-color-overlay, rgba(0,0,0,0.2))"}},null,-1)),t.data.video?(j(),K("div",kj,[ce(Gh,{class:"w-full h-full",src:t.data.video.src,poster:t.data.video.poster,autoplay:t.data.video.autoplay??!0,loop:t.data.video.loop??!0,muted:t.data.video.muted??!0,controls:t.data.video.controls,"object-fit":"cover"},null,8,["src","poster","autoplay","loop","muted","controls"])])):t.data.image?(j(),K("img",{key:1,src:t.data.image,class:Se(["w-full h-full object-cover scale-110 origin-center",t.data.imageClass||"",r.value?"opacity-100":"opacity-0"]),style:{transition:"opacity var(--lumina-transition-duration) var(--lumina-transition-easing)"},alt:"Slide Image",onLoad:h[0]||(h[0]=g=>r.value=!0),onError:h[1]||(h[1]=g=>{r.value=!0,g.target.src="https://placehold.co/1920x1080/1a1a1a/666?text=Image+Not+Found"})},null,42,Oj)):Oe("",!0)]),_:1},8,["id","class"]),C("div",{class:Se(["relative z-10 w-full lg:w-1/2 min-h-[60vh] flex flex-col justify-center order-2",t.data.imageSide==="right"?"lg:mr-[50%]":"lg:ml-[50%]",t.data.sizing==="container"?"lg:min-h-full":"lg:min-h-screen"]),style:Xe(c.value)},[C("div",{class:Se(t.data.class||""),style:{maxWidth:"36rem"}},[t.data.tag?(j(),De(p,{key:0,id:s.value,tag:"span",class:"font-bold uppercase block",style:{color:"var(--lumina-color-primary)",letterSpacing:"var(--lumina-tracking-widest)",fontSize:"var(--lumina-text-xs)",marginBottom:"var(--lumina-space-lg)"}},{default:ke(()=>[bt(Ie(t.data.tag),1)]),_:1},8,["id"])):Oe("",!0),ce(p,{id:a.value,tag:"h1",class:"font-bold",style:{fontFamily:"var(--lumina-font-heading)",color:"var(--lumina-color-text-safe, var(--lumina-color-text))",fontSize:"var(--lumina-text-6xl)",letterSpacing:"var(--lumina-tracking-tighter)",lineHeight:"var(--lumina-leading-tight)",marginBottom:"var(--lumina-space-xl)",textShadow:"0 2px 10px rgba(0,0,0,0.1)"}},{default:ke(()=>[bt(Ie(t.data.title),1)]),_:1},8,["id"]),ce(p,{id:l.value,style:{color:"var(--lumina-color-text-safe, var(--lumina-color-text))",opacity:.9,fontSize:"var(--lumina-text-lg)",lineHeight:"var(--lumina-leading-relaxed)",marginBottom:"var(--lumina-space-xl)",display:"flex",flexDirection:"column",gap:"var(--lumina-space-lg)"}},{default:ke(()=>[(j(!0),K(Ue,null,It(t.data.paragraphs,(g,m)=>(j(),K("p",{key:m},Ie(g),1))),128))]),_:1},8,["id"]),t.data.cta?(j(),De(p,{key:1,id:u.value,style:{paddingTop:"var(--lumina-space-lg)",borderTop:"1px solid var(--lumina-color-border)"}},{default:ke(()=>[C("button",{onClick:h[2]||(h[2]=g=>d.$emit("action",{type:"cta",label:t.data.cta})),class:"font-bold flex items-center",style:{backgroundColor:"var(--lumina-color-primary)",color:"var(--lumina-color-background)",borderRadius:"var(--lumina-button-radius)",padding:"var(--lumina-button-padding)",fontWeight:"var(--lumina-button-font-weight)",gap:"var(--lumina-space-sm)",transition:"all var(--lumina-transition-duration) var(--lumina-transition-easing)"}},[bt(Ie(t.data.cta)+" ",1),h[4]||(h[4]=C("i",{class:"ph-thin ph-arrow-right"},null,-1))])]),_:1},8,["id"])):Oe("",!0)],2)],6)],2)]),_:1},8,["data","slide-index"])}}}),Dy=Te({__name:"LayoutStatement",props:{data:{},slideIndex:{}},setup(t){const e=t,n=yt(vn),r=Z(()=>e.slideIndex??(n==null?void 0:n.state.currentIndex)??0),i=Z(()=>Gt(e.data,r.value,["tag"])),o=Z(()=>Gt(e.data,r.value,["title"])),s=Z(()=>Gt(e.data,r.value,["subtitle"])),a=Z(()=>({fontSize:e.data.sizing==="container"?"var(--lumina-text-5xl)":"clamp(var(--lumina-text-4xl), 10vw, var(--lumina-text-7xl))",fontFamily:"var(--lumina-font-heading)",fontWeight:"var(--lumina-font-weight-bold)",lineHeight:"var(--lumina-leading-tight)",letterSpacing:"var(--lumina-tracking-tighter)",marginBottom:"var(--lumina-space-xl)",backgroundImage:"linear-gradient(135deg, var(--lumina-color-text-safe, var(--lumina-color-text)) 30%, #525252 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",color:"var(--lumina-color-text-safe, var(--lumina-color-text))"}));return(l,u)=>{const c=Pr("LuminaElement");return j(),De(ji,{data:t.data,"slide-index":r.value},{default:ke(()=>[C("div",{class:Se(["flex flex-col justify-center items-center text-center relative",t.data.sizing==="container"?"h-full":"min-h-screen"]),style:{paddingTop:"var(--lumina-space-xl)",paddingLeft:"var(--lumina-space-xl)",paddingRight:"var(--lumina-space-xl)",paddingBottom:"calc(var(--lumina-space-xl) + var(--lumina-safe-area-bottom))"}},[C("div",{class:Se([t.data.class||"","max-w-5xl z-10"])},[t.data.tag?(j(),De(c,{key:0,id:i.value,tag:"span",class:"inline-block rounded-full font-medium uppercase",style:{color:"var(--lumina-color-primary)",border:"1px solid var(--lumina-color-border)",backgroundColor:"rgba(var(--lumina-color-text-rgb), 0.05)",padding:"var(--lumina-tag-padding)",fontSize:"var(--lumina-tag-font-size)",letterSpacing:"var(--lumina-tracking-widest)",marginBottom:"var(--lumina-space-xl)"}},{default:ke(()=>[bt(Ie(t.data.tag),1)]),_:1},8,["id"])):Oe("",!0),ce(c,{id:o.value,tag:"h1",style:Xe(a.value)},{default:ke(()=>[bt(Ie(t.data.title),1)]),_:1},8,["id","style"]),t.data.subtitle?(j(),De(c,{key:1,id:s.value,tag:"p",class:"max-w-3xl mx-auto",style:{color:"var(--lumina-color-text-safe, var(--lumina-color-text))",opacity:.8,fontWeight:"normal",fontSize:"clamp(var(--lumina-text-xl), 3vw, var(--lumina-text-3xl))",lineHeight:"var(--lumina-leading-normal)"}},{default:ke(()=>[bt(Ie(t.data.subtitle),1)]),_:1},8,["id"])):Oe("",!0)],2)],2)]),_:1},8,["data","slide-index"])}}}),My=Jr(Te({__name:"LayoutFeatures",props:{data:{},slideIndex:{}},setup(t){const e=t,n=yt(vn),r=Z(()=>e.slideIndex??(n==null?void 0:n.state.currentIndex)??0),i=Z(()=>Gt(e.data,r.value,["header"])),o=s=>Gt(e.data,r.value,["features",s]);return(s,a)=>{const l=Pr("LuminaElement");return j(),De(ji,{data:t.data,"slide-index":r.value},{default:ke(()=>[C("div",{class:Se(["features-root w-full max-w-full flex flex-col justify-center overflow-x-hidden",t.data.sizing==="container"?"min-h-full":"min-h-screen"])},[ce(l,{id:i.value,class:Se([t.data.class||"","text-center lg:text-left max-w-6xl min-w-0"]),style:{marginBottom:"var(--lumina-space-2xl)"}},{default:ke(()=>[C("h2",{class:"font-bold break-words",style:Xe({fontFamily:"var(--lumina-font-heading)",fontSize:t.data.sizing==="container"?"var(--lumina-text-3xl)":"var(--lumina-text-5xl)",marginBottom:"var(--lumina-space-md)",letterSpacing:"var(--lumina-tracking-tighter)",color:"var(--lumina-color-text-safe, var(--lumina-color-text))",textShadow:"0 2px 10px rgba(0,0,0,0.1)"})},Ie(t.data.title),5),t.data.description?(j(),K("p",{key:0,class:"break-words",style:Xe({color:"var(--lumina-color-text-safe, var(--lumina-color-text))",opacity:.9,fontSize:t.data.sizing==="container"?"var(--lumina-text-sm)":"var(--lumina-text-xl)"})},Ie(t.data.description),5)):Oe("",!0)]),_:1},8,["id","class"]),C("div",{class:Se(["features-grid",t.data.sizing!=="container"?"features-grid--multi":""])},[(j(!0),K(Ue,null,It(t.data.features,(u,c)=>(j(),De(l,{key:c,id:o(c),class:Se(["glass-panel group min-w-0",u.class||""]),style:Xe({borderRadius:"var(--lumina-card-radius)",padding:t.data.sizing==="container"?"var(--lumina-space-lg)":"var(--lumina-card-padding)",borderTop:"1px solid var(--lumina-color-border-subtle)",transition:"all var(--lumina-transition-duration) var(--lumina-transition-easing)"})},{default:ke(()=>[C("div",{class:"flex items-center justify-center group-hover:scale-110 shrink-0",style:Xe({color:"white",background:"linear-gradient(135deg, var(--lumina-color-primary) 0%, var(--lumina-color-secondary) 100%)",width:t.data.sizing==="container"?"var(--lumina-space-xl)":"var(--lumina-space-2xl)",height:t.data.sizing==="container"?"var(--lumina-space-xl)":"var(--lumina-space-2xl)",borderRadius:"var(--lumina-radius-xl)",marginBottom:t.data.sizing==="container"?"var(--lumina-space-md)":"var(--lumina-space-lg)",fontSize:"var(--lumina-text-xl)",boxShadow:"0 4px 12px rgba(var(--lumina-color-primary-rgb), 0.3)",transition:"all var(--lumina-transition-duration) var(--lumina-transition-easing)"})},[C("i",{class:Se(["ph-thin",(u.icon||"star").startsWith("ph-")?u.icon:`ph-${u.icon||"star"}`])},null,2)],4),C("h3",{class:"font-bold break-words",style:Xe({color:"var(--lumina-surface-text, var(--lumina-color-text))",fontSize:t.data.sizing==="container"?"var(--lumina-text-lg)":"var(--lumina-text-2xl)",marginBottom:"var(--lumina-space-sm)"})},Ie(u.title),5),C("p",{class:"break-words",style:Xe({color:"var(--lumina-color-text-secondary)",fontSize:t.data.sizing==="container"?"var(--lumina-text-sm)":"var(--lumina-text-base)",lineHeight:"var(--lumina-leading-relaxed)",opacity:.8})},Ie(u.desc||u.description||""),5)]),_:2},1032,["id","class","style"]))),128))],2)],2)]),_:1},8,["data","slide-index"])}}}),[["__scopeId","data-v-c7f88c6d"]]),Nj={class:"relative max-w-6xl mx-auto w-full"},Rj={style:{display:"flex",flexDirection:"column",gap:"var(--lumina-space-2xl)"}},$j={class:"font-bold uppercase mb-1",style:{color:"var(--lumina-color-primary)",letterSpacing:"var(--lumina-tracking-widest)",fontSize:"var(--lumina-text-sm)"}},Dj={class:"font-bold",style:{fontSize:"var(--lumina-text-2xl)",color:"var(--lumina-color-text-safe, var(--lumina-color-text))"}},Mj={class:"leading-relaxed",style:{color:"var(--lumina-color-text-safe, var(--lumina-color-text))",opacity:.9,fontSize:"var(--lumina-text-lg)",lineHeight:"var(--lumina-leading-relaxed)"}},Ly=Te({__name:"LayoutTimeline",props:{data:{},slideIndex:{}},setup(t){const e=t,n=yt(vn),r=Z(()=>e.slideIndex??(n==null?void 0:n.state.currentIndex)??0),i=Z(()=>Gt(e.data,r.value,["title"])),o=Z(()=>Gt(e.data,r.value,["subtitle"])),s=a=>Gt(e.data,r.value,["timeline",a]);return(a,l)=>{const u=Pr("LuminaElement");return j(),De(ji,{data:t.data,"slide-index":r.value},{default:ke(()=>[C("div",{class:Se(["w-full flex flex-col justify-center",t.data.sizing==="container"?"min-h-full py-12 lg:py-16":"min-h-screen"]),style:{padding:"var(--lumina-space-xl) var(--lumina-space-3xl)"}},[C("div",{class:Se(["text-center mb-16",t.data.class||""])},[ce(u,{id:i.value,tag:"h2",class:"font-bold mb-4",style:{fontFamily:"var(--lumina-font-heading)",fontSize:"var(--lumina-text-5xl)",lineHeight:"var(--lumina-leading-tight)",letterSpacing:"var(--lumina-tracking-tighter)",color:"var(--lumina-color-text-safe, var(--lumina-color-text))",textShadow:"0 2px 10px rgba(0,0,0,0.1)"}},{default:ke(()=>[bt(Ie(t.data.title),1)]),_:1},8,["id"]),t.data.subtitle?(j(),De(u,{key:0,id:o.value,tag:"p",style:{color:"var(--lumina-color-muted-safe, var(--lumina-color-muted))",fontSize:"var(--lumina-text-xl)",opacity:.8}},{default:ke(()=>[bt(Ie(t.data.subtitle),1)]),_:1},8,["id"])):Oe("",!0)],2),C("div",Nj,[C("div",{class:Se(["absolute left-4 md:left-1/2 top-0 bottom-0 -translate-x-1/2 origin-top",t.data.lineClass||""]),style:{width:"var(--lumina-timeline-line-width, 2px)",backgroundColor:"var(--lumina-timeline-line-color, var(--lumina-color-border))"}},null,2),C("div",Rj,[(j(!0),K(Ue,null,It(t.data.timeline,(c,d)=>(j(),De(u,{key:d,id:s(d),class:Se(["relative flex flex-col md:flex-row gap-8 md:gap-0 items-start md:items-center",c.class||"",d%2===0?"":"md:flex-row-reverse"])},{default:ke(()=>[C("div",{class:Se(["w-full md:w-1/2 pl-12 md:pl-0 flex flex-col justify-center",d%2===0?"md:pr-12 md:text-right md:items-end":"md:pl-12 md:text-left md:items-start"])},[C("span",$j,Ie(c.date),1),C("h3",Dj,Ie(c.title||c.t),1)],2),l[0]||(l[0]=C("div",{class:"absolute left-4 md:left-1/2 -translate-x-1/2 rounded-full z-10 animate-pulse-glow",style:{width:"var(--lumina-timeline-node-size, 0.875rem)",height:"var(--lumina-timeline-node-size, 0.875rem)",background:"linear-gradient(135deg, var(--lumina-color-primary), var(--lumina-color-secondary))",border:"3px solid var(--lumina-color-background)"}},null,-1)),C("div",{class:Se(["w-full md:w-1/2 pl-12 md:pl-0",d%2===0?"md:pl-12":"md:pr-12 md:text-right"])},[C("p",Mj,Ie(c.description||c.desc),1)],2)]),_:2},1032,["id","class"]))),128))])])],2)]),_:1},8,["data","slide-index"])}}}),Lj={class:"font-bold",style:{fontFamily:"var(--lumina-font-heading)",fontSize:"var(--lumina-text-5xl)",marginBottom:"var(--lumina-space-md)",letterSpacing:"var(--lumina-tracking-tighter)",color:"var(--lumina-color-text-safe, var(--lumina-color-text))"}},Vj={key:0,style:{color:"var(--lumina-color-text-safe, var(--lumina-color-text))",opacity:.9,fontSize:"var(--lumina-text-xl)"}},Fj={style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(280px, 1fr))",gap:"var(--lumina-space-xl)",maxWidth:"72rem",margin:"0 auto",width:"100%"}},zj={style:{display:"flex",alignItems:"center",gap:"var(--lumina-space-md)",marginBottom:"var(--lumina-space-md)"}},Uj={class:"flex items-center justify-center font-bold",style:{width:"var(--lumina-step-badge-size, 2.5rem)",height:"var(--lumina-step-badge-size, 2.5rem)",fontSize:"var(--lumina-step-font-size, 1rem)",background:"linear-gradient(135deg, var(--lumina-color-primary), var(--lumina-color-secondary))",color:"white",borderRadius:"var(--lumina-radius-xl)",boxShadow:"0 4px 12px rgba(var(--lumina-color-primary-rgb), 0.4)"}},Bj={class:"font-bold",style:{fontSize:"var(--lumina-text-xl)",color:"var(--lumina-surface-text, var(--lumina-color-text))"}},jj={key:0,style:{color:"var(--lumina-color-text-secondary)",lineHeight:"var(--lumina-leading-relaxed)",fontSize:"var(--lumina-text-base)",opacity:.8}},Hj={key:1,class:"absolute top-4 right-4",style:{color:"var(--lumina-color-primary)",opacity:.1,fontSize:"var(--lumina-text-4xl)"}},Vy=Te({__name:"LayoutSteps",props:{data:{},slideIndex:{}},setup(t){const e=t,n=yt(vn),r=Z(()=>e.slideIndex??(n==null?void 0:n.state.currentIndex)??0),i=Z(()=>Gt(e.data,r.value,["header"])),o=s=>Gt(e.data,r.value,["steps",s]);return(s,a)=>{const l=Pr("LuminaElement");return j(),De(ji,{data:t.data,"slide-index":r.value},{default:ke(()=>[C("div",{class:Se(["w-full flex flex-col justify-center",t.data.sizing==="container"?"min-h-full py-12 lg:py-16":"min-h-screen"]),style:{padding:"var(--lumina-space-xl) var(--lumina-space-3xl)"}},[ce(l,{id:i.value,class:Se(["text-center max-w-4xl mx-auto",t.data.class||""]),style:{marginBottom:"var(--lumina-space-2xl)"}},{default:ke(()=>[C("h2",Lj,Ie(t.data.title),1),t.data.subtitle?(j(),K("p",Vj,Ie(t.data.subtitle),1)):Oe("",!0)]),_:1},8,["id","class"]),C("div",Fj,[(j(!0),K(Ue,null,It(t.data.steps,(u,c)=>(j(),De(l,{key:c,id:o(c),class:Se(["glass-panel group relative overflow-hidden",u.class||""]),style:{borderRadius:"var(--lumina-card-radius)",padding:"var(--lumina-card-padding)"}},{default:ke(()=>[C("div",zj,[C("div",Uj,Ie(u.step),1),C("h3",Bj,Ie(u.title),1)]),u.description?(j(),K("p",jj,Ie(u.description),1)):Oe("",!0),u.icon?(j(),K("div",Hj,[C("i",{class:Se(["ph-thin",u.icon.startsWith("ph-")?u.icon:`ph-${u.icon}`])},null,2)])):Oe("",!0)]),_:2},1032,["id","class"]))),128))])],2)]),_:1},8,["data","slide-index"])}}}),Gj={key:1,class:"flex-1 flex items-center justify-center"},Wj={key:2,class:"flex-1 flex items-center justify-center"},Kj={class:"w-full h-full min-h-[300px] lg:min-h-[400px] relative"},FI=Te({__name:"LayoutChart",props:{data:{},slideIndex:{}},setup(t){let e=null;const n=we(null),r=we(!0),i=t,o=yt(vn),s=Z(()=>i.slideIndex??(o==null?void 0:o.state.currentIndex)??0),a=Z(()=>Gt(i.data,s.value,["title"])),l=Z(()=>Gt(i.data,s.value,["subtitle"])),u=Z(()=>Gt(i.data,s.value,["chart"])),c=we(null);let d=null;const h=async()=>{try{const E=await import("chart.js");return e=E.Chart,e.register(...E.registerables),r.value=!1,!0}catch{return n.value="Chart.js is required for chart slides. Install it with: npm install chart.js",r.value=!1,console.warn("[Lumina] chart.js not found. Install with: npm install chart.js"),!1}},p=(E,w)=>{if(!E){const v=["rgba(59, 130, 246, 0.8)","rgba(16, 185, 129, 0.8)","rgba(245, 158, 11, 0.8)","rgba(239, 68, 68, 0.8)","rgba(139, 92, 246, 0.8)","rgba(236, 72, 153, 0.8)"];return v[w%v.length]}switch(E){case"c:p":return getComputedStyle(document.documentElement).getPropertyValue("--lumina-colors-primary").trim()||"#3b82f6";case"c:s":return getComputedStyle(document.documentElement).getPropertyValue("--lumina-colors-secondary").trim()||"#10b981";case"c:m":return getComputedStyle(document.documentElement).getPropertyValue("--lumina-colors-muted").trim()||"#9ca3af";default:return E&&(E.startsWith("#")||E.startsWith("rgb")||E.startsWith("hsl"))||E&&/^[a-z]+$/i.test(E)?E:p(void 0,w)}},g=(E,w)=>{var N;const v=[],y=getComputedStyle(document.body),k=y.getPropertyValue("--lumina-color-primary").trim()||"#3b82f6",$=y.getPropertyValue("--lumina-color-secondary").trim()||"#8b5cf6",O=y.getPropertyValue("--lumina-color-accent").trim()||"#06b6d4",x=[...[k,$,O],"#f59e0b","#10b981","#ef4444"];for(let P=0;P<w;P++)E.length===1&&E[0].color&&w>1?v.push(x[P%x.length]):(N=E[0])!=null&&N.color?v.push(p(E[0].color,P)):v.push(x[P%x.length]);return v},m=Z(()=>{const{chartType:E,data:w}=i.data,v=E==="pie"||E==="doughnut";return{type:E,data:{labels:w.labels,datasets:w.datasets.map((y,k)=>({label:y.label,data:y.values,backgroundColor:v?g(w.datasets,w.labels.length):p(y.color,k),borderColor:v?"rgba(0, 0, 0, 0.2)":p(y.color,k),borderWidth:2,tension:E==="line"?.4:0,fill:E==="line"?!1:void 0}))},options:{responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!0,position:"bottom",labels:{color:getComputedStyle(document.body).getPropertyValue("--lumina-color-text").trim()||"#ffffff",padding:20,font:{family:"Inter, system-ui, sans-serif",size:12}}},tooltip:{backgroundColor:"rgba(0, 0, 0, 0.8)",titleColor:"#fff",bodyColor:"rgba(255, 255, 255, 0.8)",padding:12,cornerRadius:8,titleFont:{family:"Inter, system-ui, sans-serif",weight:"bold"},bodyFont:{family:"Inter, system-ui, sans-serif"}}},scales:v?{}:{x:{grid:{color:"rgba(128, 128, 128, 0.1)"},ticks:{color:getComputedStyle(document.body).getPropertyValue("--lumina-color-text-secondary").trim()||"#e5e7eb",font:{family:"Inter, system-ui, sans-serif"}}},y:{grid:{color:"rgba(128, 128, 128, 0.1)"},ticks:{color:getComputedStyle(document.body).getPropertyValue("--lumina-color-text-secondary").trim()||"#e5e7eb",font:{family:"Inter, system-ui, sans-serif"}}}}}}}),_=()=>{if(!c.value||!e)return;d&&d.destroy();const E=c.value.getContext("2d");E&&(d=new e(E,m.value))};return jt(async()=>{await h()&&setTimeout(_,50)}),sr(()=>{d&&(d.destroy(),d=null)}),Qe(()=>i.data,()=>{_()},{deep:!0}),(E,w)=>{const v=Pr("LuminaElement");return j(),De(ji,{data:t.data,"slide-index":s.value},{default:ke(()=>[C("div",{class:Se(["w-full flex flex-col justify-center p-8 lg:p-16",t.data.sizing==="container"?"min-h-full py-8":"min-h-screen"])},[t.data.title||t.data.subtitle?(j(),K("div",{key:0,class:Se(["text-center mb-8",t.data.class||""])},[t.data.title?(j(),De(v,{key:0,id:a.value,tag:"h2",class:"font-heading font-bold mb-3",style:{fontSize:"var(--lumina-text-5xl)",letterSpacing:"var(--lumina-tracking-tighter)",color:"var(--lumina-color-text-safe, var(--lumina-color-text))",textShadow:"0 2px 10px rgba(0,0,0,0.1)"}},{default:ke(()=>[bt(Ie(t.data.title),1)]),_:1},8,["id"])):Oe("",!0),t.data.subtitle?(j(),De(v,{key:1,id:l.value,tag:"p",class:"text-lg lg:text-xl",style:{color:"var(--lumina-color-text-safe, var(--lumina-color-text))",opacity:.8}},{default:ke(()=>[bt(Ie(t.data.subtitle),1)]),_:1},8,["id"])):Oe("",!0)],2)):Oe("",!0),n.value?(j(),K("div",Gj,[...w[0]||(w[0]=[C("div",{class:"text-center p-8 bg-red-500/10 border border-red-500/30 rounded-xl max-w-lg"},[C("svg",{class:"w-12 h-12 mx-auto mb-4 text-red-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[C("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})]),C("p",{class:"text-red-300 font-medium mb-2"},"Chart.js Required"),C("code",{class:"text-sm bg-black/30 px-3 py-1 rounded text-red-200"},"npm install chart.js")],-1)])])):r.value?(j(),K("div",Wj,[...w[1]||(w[1]=[C("div",{class:"animate-pulse text-white/40"},"Loading chart...",-1)])])):(j(),De(v,{key:3,id:u.value,class:Se(["flex-1 flex items-center justify-center max-w-5xl mx-auto w-full",t.data.chartClass||""])},{default:ke(()=>[C("div",Kj,[C("canvas",{ref_key:"chartCanvas",ref:c},null,512)])]),_:1},8,["id","class"]))],2)]),_:1},8,["data","slide-index"])}}}),Zj={class:"h-full w-full flex items-center justify-center bg-black relative overflow-hidden group"},Xj={class:"text-white font-bold text-xl tracking-tighter"},zI=Te({__name:"LayoutVideo",props:{data:{type:Object,required:!0},slideIndex:{type:Number,default:void 0}},setup(t){const e=t,n=yt(vn),r=Z(()=>e.slideIndex??(n==null?void 0:n.state.currentIndex)??0),i=Z(()=>Gt(e.data,r.value,["video"])),o=Z(()=>Gt(e.data,r.value,["title"]));return(s,a)=>{const l=Pr("LuminaElement");return j(),De(ji,{data:t.data,"slide-index":r.value},{default:ke(()=>[C("div",Zj,[ce(l,{id:i.value,class:"absolute inset-0 w-full h-full"},{default:ke(()=>[ce(Gh,{class:"w-full h-full",src:t.data.video.src,poster:t.data.video.poster,autoplay:t.data.video.autoplay,loop:t.data.video.loop,muted:t.data.video.muted,controls:t.data.video.controls,"object-fit":"cover"},null,8,["src","poster","autoplay","loop","muted","controls"])]),_:1},8,["id"]),t.data.title?(j(),De(l,{key:0,id:o.value,class:Se(["absolute bottom-12 left-12 z-10 px-6 py-4 bg-black/50 backdrop-blur-md rounded-2xl border border-white/10 opacity-0 group-hover:opacity-100 transition-opacity duration-500",t.data.class||""])},{default:ke(()=>[C("h2",Xj,Ie(t.data.title),1)]),_:1},8,["id","class"])):Oe("",!0)])]),_:1},8,["data","slide-index"])}}}),UI=Te({__name:"LayoutAuto",props:{data:{},slideIndex:{}},emits:["action"],setup(t,{emit:e}){const n=t,r=e,i=yt(vn),o=Z(()=>n.slideIndex??(i==null?void 0:i.state.currentIndex)??0),s=Z(()=>{var g;const a=n.data||{},l=Array.isArray(a.timeline)&&a.timeline.length>0,u=Array.isArray(a.steps)&&a.steps.length>0,c=Array.isArray(a.features)&&a.features.length>0,d=!!a.image,h=!!a.chartType&&!!((g=a.data)!=null&&g.datasets);let p="layout-statement";return h?p="layout-chart":l?p="layout-timeline":u?p="layout-steps":c?p="layout-features":d&&(p="layout-half"),p});return(a,l)=>(j(),De(Xn(s.value),{data:t.data,"slide-index":o.value,onAction:l[0]||(l[0]=u=>r("action",u))},null,40,["data","slide-index"]))}}),Yj=["innerHTML"],BI=Jr(Te({__name:"LayoutCustom",props:{data:{},slideIndex:{}},setup(t){const e=t,n=yt(vn),r=Z(()=>e.slideIndex??(n==null?void 0:n.state.currentIndex)??0),i=`custom-slide-${Math.random().toString(36).slice(2,10)}`;function o(){if(s(),!e.data.css)return;const l=document.createElement("style");l.id=i,l.textContent=e.data.css,document.head.appendChild(l)}function s(){const l=document.getElementById(i);l&&l.remove()}jt(()=>{o()}),Qe(()=>e.data.css,()=>{o()}),sr(()=>{s()});const a=Z(()=>e.data.html?e.data.html.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"").replace(/on\w+\s*=\s*["'][^"']*["']/gi,"").replace(/javascript:/gi,""):"");return(l,u)=>(j(),De(ji,{data:t.data,"slide-index":r.value},{default:ke(()=>[C("div",{class:Se(["custom-slide-wrapper relative w-full overflow-hidden",t.data.sizing==="container"?"h-full":"min-h-screen"])},[C("div",{class:"custom-html-content w-full h-full",innerHTML:a.value},null,8,Yj)],2)]),_:1},8,["data","slide-index"]))}}),[["__scopeId","data-v-2cd387f8"]]);function Fc(t){return Ed()?(cu(t),!0):!1}function Eo(t){return typeof t=="function"?t():re(t)}const Jj=typeof window<"u"&&typeof document<"u",Qj=t=>typeof t<"u",qj=Object.prototype.toString,eH=t=>qj.call(t)==="[object Object]",tH=()=>{};function nH(t,e){function n(...r){return new Promise((i,o)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(i).catch(o)})}return n}const jI=t=>t();function rH(t=jI){const e=we(!0);function n(){e.value=!1}function r(){e.value=!0}const i=(...o)=>{e.value&&t(...o)};return{isActive:$a(e),pause:n,resume:r,eventFilter:i}}function HI(t,e=!1,n="Timeout"){return new Promise((r,i)=>{setTimeout(e?()=>i(n):r,t)})}function iH(t,e,n={}){const{eventFilter:r=jI,...i}=n;return Qe(t,nH(r,e),i)}function Wl(t,e,n={}){const{eventFilter:r,...i}=n,{eventFilter:o,pause:s,resume:a,isActive:l}=rH(r);return{stop:iH(t,e,{...i,eventFilter:o}),pause:s,resume:a,isActive:l}}function oH(t,e={}){if(!Yt(t))return pb(t);const n=Array.isArray(t.value)?Array.from({length:t.value.length}):{};for(const r in t.value)n[r]=ig(()=>({get(){return t.value[r]},set(i){var o;if((o=Eo(e.replaceRef))!=null?o:!0)if(Array.isArray(t.value)){const a=[...t.value];a[r]=i,t.value=a}else{const a={...t.value,[r]:i};Object.setPrototypeOf(a,Object.getPrototypeOf(t.value)),t.value=a}else t.value[r]=i}}));return n}function Fy(t,e=!1){function n(d,{flush:h="sync",deep:p=!1,timeout:g,throwOnTimeout:m}={}){let _=null;const w=[new Promise(v=>{_=Qe(t,y=>{d(y)!==e&&(_==null||_(),v(y))},{flush:h,deep:p,immediate:!0})})];return g!=null&&w.push(HI(g,m).then(()=>Eo(t)).finally(()=>_==null?void 0:_())),Promise.race(w)}function r(d,h){if(!Yt(d))return n(y=>y===d,h);const{flush:p="sync",deep:g=!1,timeout:m,throwOnTimeout:_}=h??{};let E=null;const v=[new Promise(y=>{E=Qe([t,d],([k,$])=>{e!==(k===$)&&(E==null||E(),y(k))},{flush:p,deep:g,immediate:!0})})];return m!=null&&v.push(HI(m,_).then(()=>Eo(t)).finally(()=>(E==null||E(),Eo(t)))),Promise.race(v)}function i(d){return n(h=>!!h,d)}function o(d){return r(null,d)}function s(d){return r(void 0,d)}function a(d){return n(Number.isNaN,d)}function l(d,h){return n(p=>{const g=Array.from(p);return g.includes(d)||g.includes(Eo(d))},h)}function u(d){return c(1,d)}function c(d=1,h){let p=-1;return n(()=>(p+=1,p>=d),h)}return Array.isArray(Eo(t))?{toMatch:n,toContains:l,changed:u,changedTimes:c,get not(){return Fy(t,!e)}}:{toMatch:n,toBe:r,toBeTruthy:i,toBeNull:o,toBeNaN:a,toBeUndefined:s,changed:u,changedTimes:c,get not(){return Fy(t,!e)}}}function zy(t){return Fy(t)}function sH(t){var e;const n=Eo(t);return(e=n==null?void 0:n.$el)!=null?e:n}const GI=Jj?window:void 0;function WI(...t){let e,n,r,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,i]=t,e=GI):[e,n,r,i]=t,!e)return tH;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],s=()=>{o.forEach(c=>c()),o.length=0},a=(c,d,h,p)=>(c.addEventListener(d,h,p),()=>c.removeEventListener(d,h,p)),l=Qe(()=>[sH(e),Eo(i)],([c,d])=>{if(s(),!c)return;const h=eH(d)?{...d}:d;o.push(...n.flatMap(p=>r.map(g=>a(c,p,g,h))))},{immediate:!0,flush:"post"}),u=()=>{l(),s()};return Fc(u),u}function aH(t){return typeof t=="function"?t:typeof t=="string"?e=>e.key===t:Array.isArray(t)?e=>t.includes(e.key):()=>!0}function KI(...t){let e,n,r={};t.length===3?(e=t[0],n=t[1],r=t[2]):t.length===2?typeof t[1]=="object"?(e=!0,n=t[0],r=t[1]):(e=t[0],n=t[1]):(e=!0,n=t[0]);const{target:i=GI,eventName:o="keydown",passive:s=!1,dedupe:a=!1}=r,l=aH(e);return WI(i,o,c=>{c.repeat&&Eo(a)||l(c)&&n(c)},s)}function lH(t){return JSON.parse(JSON.stringify(t))}function Uy(t,e,n,r={}){var i,o,s;const{clone:a=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:d,shouldEmit:h}=r,p=_n(),g=n||(p==null?void 0:p.emit)||((i=p==null?void 0:p.$emit)==null?void 0:i.bind(p))||((s=(o=p==null?void 0:p.proxy)==null?void 0:o.$emit)==null?void 0:s.bind(p==null?void 0:p.proxy));let m=u;e||(e="modelValue"),m=m||`update:${e.toString()}`;const _=v=>a?typeof a=="function"?a(v):lH(v):v,E=()=>Qj(t[e])?_(t[e]):d,w=v=>{h?h(v)&&g(m,v):g(m,v)};if(l){const v=E(),y=we(v);let k=!1;return Qe(()=>t[e],$=>{k||(k=!0,y.value=_($),pr(()=>k=!1))}),Qe(y,$=>{!k&&($!==t[e]||c)&&w($)},{deep:c}),y}else return Z({get(){return E()},set(v){w(v)}})}var uH={value:()=>{}};function Wh(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Kh(n)}function Kh(t){this._=t}function cH(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Kh.prototype=Wh.prototype={constructor:Kh,on:function(t,e){var n=this._,r=cH(t+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((i=(t=r[o]).type)&&(i=dH(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<s;)if(i=(t=r[o]).type)n[i]=ZI(n[i],t.name,e);else if(e==null)for(i in n)n[i]=ZI(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Kh(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,i=o.length;r<i;++r)o[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};function dH(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function ZI(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=uH,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var By="http://www.w3.org/1999/xhtml";const XI={svg:"http://www.w3.org/2000/svg",xhtml:By,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Zh(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),XI.hasOwnProperty(e)?{space:XI[e],local:t}:t}function fH(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===By&&e.documentElement.namespaceURI===By?e.createElement(t):e.createElementNS(n,t)}}function hH(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function YI(t){var e=Zh(t);return(e.local?hH:fH)(e)}function pH(){}function jy(t){return t==null?pH:function(){return this.querySelector(t)}}function gH(t){typeof t!="function"&&(t=jy(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,a=r[i]=new Array(s),l,u,c=0;c<s;++c)(l=o[c])&&(u=t.call(l,l.__data__,c,o))&&("__data__"in l&&(u.__data__=l.__data__),a[c]=u);return new zr(r,this._parents)}function mH(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function vH(){return[]}function JI(t){return t==null?vH:function(){return this.querySelectorAll(t)}}function yH(t){return function(){return mH(t.apply(this,arguments))}}function bH(t){typeof t=="function"?t=yH(t):t=JI(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var s=e[o],a=s.length,l,u=0;u<a;++u)(l=s[u])&&(r.push(t.call(l,l.__data__,u,s)),i.push(l));return new zr(r,i)}function QI(t){return function(){return this.matches(t)}}function qI(t){return function(e){return e.matches(t)}}var _H=Array.prototype.find;function xH(t){return function(){return _H.call(this.children,t)}}function wH(){return this.firstElementChild}function SH(t){return this.select(t==null?wH:xH(typeof t=="function"?t:qI(t)))}var EH=Array.prototype.filter;function TH(){return Array.from(this.children)}function IH(t){return function(){return EH.call(this.children,t)}}function CH(t){return this.selectAll(t==null?TH:IH(typeof t=="function"?t:qI(t)))}function AH(t){typeof t!="function"&&(t=QI(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,a=r[i]=[],l,u=0;u<s;++u)(l=o[u])&&t.call(l,l.__data__,u,o)&&a.push(l);return new zr(r,this._parents)}function eC(t){return new Array(t.length)}function PH(){return new zr(this._enter||this._groups.map(eC),this._parents)}function Xh(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Xh.prototype={constructor:Xh,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function kH(t){return function(){return t}}function OH(t,e,n,r,i,o){for(var s=0,a,l=e.length,u=o.length;s<u;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new Xh(t,o[s]);for(;s<l;++s)(a=e[s])&&(i[s]=a)}function NH(t,e,n,r,i,o,s){var a,l,u=new Map,c=e.length,d=o.length,h=new Array(c),p;for(a=0;a<c;++a)(l=e[a])&&(h[a]=p=s.call(l,l.__data__,a,e)+"",u.has(p)?i[a]=l:u.set(p,l));for(a=0;a<d;++a)p=s.call(t,o[a],a,o)+"",(l=u.get(p))?(r[a]=l,l.__data__=o[a],u.delete(p)):n[a]=new Xh(t,o[a]);for(a=0;a<c;++a)(l=e[a])&&u.get(h[a])===l&&(i[a]=l)}function RH(t){return t.__data__}function $H(t,e){if(!arguments.length)return Array.from(this,RH);var n=e?NH:OH,r=this._parents,i=this._groups;typeof t!="function"&&(t=kH(t));for(var o=i.length,s=new Array(o),a=new Array(o),l=new Array(o),u=0;u<o;++u){var c=r[u],d=i[u],h=d.length,p=DH(t.call(c,c&&c.__data__,u,r)),g=p.length,m=a[u]=new Array(g),_=s[u]=new Array(g),E=l[u]=new Array(h);n(c,d,m,_,E,p,e);for(var w=0,v=0,y,k;w<g;++w)if(y=m[w]){for(w>=v&&(v=w+1);!(k=_[v])&&++v<g;);y._next=k||null}}return s=new zr(s,r),s._enter=a,s._exit=l,s}function DH(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function MH(){return new zr(this._exit||this._groups.map(eC),this._parents)}function LH(t,e,n){var r=this.enter(),i=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function VH(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,s=Math.min(i,o),a=new Array(i),l=0;l<s;++l)for(var u=n[l],c=r[l],d=u.length,h=a[l]=new Array(d),p,g=0;g<d;++g)(p=u[g]||c[g])&&(h[g]=p);for(;l<i;++l)a[l]=n[l];return new zr(a,this._parents)}function FH(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,o=r[i],s;--i>=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function zH(t){t||(t=UH);function e(d,h){return d&&h?t(d.__data__,h.__data__):!d-!h}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var s=n[o],a=s.length,l=i[o]=new Array(a),u,c=0;c<a;++c)(u=s[c])&&(l[c]=u);l.sort(e)}return new zr(i,this._parents).order()}function UH(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function BH(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function jH(){return Array.from(this)}function HH(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null}function GH(){let t=0;for(const e of this)++t;return t}function WH(){return!this.node()}function KH(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,s=i.length,a;o<s;++o)(a=i[o])&&t.call(a,a.__data__,o,i);return this}function ZH(t){return function(){this.removeAttribute(t)}}function XH(t){return function(){this.removeAttributeNS(t.space,t.local)}}function YH(t,e){return function(){this.setAttribute(t,e)}}function JH(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function QH(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function qH(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function eG(t,e){var n=Zh(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?XH:ZH:typeof e=="function"?n.local?qH:QH:n.local?JH:YH)(n,e))}function tC(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function tG(t){return function(){this.style.removeProperty(t)}}function nG(t,e,n){return function(){this.style.setProperty(t,e,n)}}function rG(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function iG(t,e,n){return arguments.length>1?this.each((e==null?tG:typeof e=="function"?rG:nG)(t,e,n??"")):Kl(this.node(),t)}function Kl(t,e){return t.style.getPropertyValue(e)||tC(t).getComputedStyle(t,null).getPropertyValue(e)}function oG(t){return function(){delete this[t]}}function sG(t,e){return function(){this[t]=e}}function aG(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function lG(t,e){return arguments.length>1?this.each((e==null?oG:typeof e=="function"?aG:sG)(t,e)):this.node()[t]}function nC(t){return t.trim().split(/^|\s+/)}function Hy(t){return t.classList||new rC(t)}function rC(t){this._node=t,this._names=nC(t.getAttribute("class")||"")}rC.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function iC(t,e){for(var n=Hy(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function oC(t,e){for(var n=Hy(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function uG(t){return function(){iC(this,t)}}function cG(t){return function(){oC(this,t)}}function dG(t,e){return function(){(e.apply(this,arguments)?iC:oC)(this,t)}}function fG(t,e){var n=nC(t+"");if(arguments.length<2){for(var r=Hy(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?dG:e?uG:cG)(n,e))}function hG(){this.textContent=""}function pG(t){return function(){this.textContent=t}}function gG(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function mG(t){return arguments.length?this.each(t==null?hG:(typeof t=="function"?gG:pG)(t)):this.node().textContent}function vG(){this.innerHTML=""}function yG(t){return function(){this.innerHTML=t}}function bG(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function _G(t){return arguments.length?this.each(t==null?vG:(typeof t=="function"?bG:yG)(t)):this.node().innerHTML}function xG(){this.nextSibling&&this.parentNode.appendChild(this)}function wG(){return this.each(xG)}function SG(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function EG(){return this.each(SG)}function TG(t){var e=typeof t=="function"?t:YI(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function IG(){return null}function CG(t,e){var n=typeof t=="function"?t:YI(t),r=e==null?IG:typeof e=="function"?e:jy(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function AG(){var t=this.parentNode;t&&t.removeChild(this)}function PG(){return this.each(AG)}function kG(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function OG(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function NG(t){return this.select(t?OG:kG)}function RG(t){return arguments.length?this.property("__data__",t):this.node().__data__}function $G(t){return function(e){t.call(this,e,this.__data__)}}function DG(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function MG(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,o;n<i;++n)o=e[n],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function LG(t,e,n){return function(){var r=this.__on,i,o=$G(e);if(r){for(var s=0,a=r.length;s<a;++s)if((i=r[s]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=e;return}}this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(i):this.__on=[i]}}function VG(t,e,n){var r=DG(t+""),i,o=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,u=a.length,c;l<u;++l)for(i=0,c=a[l];i<o;++i)if((s=r[i]).type===c.type&&s.name===c.name)return c.value}return}for(a=e?LG:MG,i=0;i<o;++i)this.each(a(r[i],e,n));return this}function sC(t,e,n){var r=tC(t),i=r.CustomEvent;typeof i=="function"?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function FG(t,e){return function(){return sC(this,t,e)}}function zG(t,e){return function(){return sC(this,t,e.apply(this,arguments))}}function UG(t,e){return this.each((typeof e=="function"?zG:FG)(t,e))}function*BG(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length,s;i<o;++i)(s=r[i])&&(yield s)}var aC=[null];function zr(t,e){this._groups=t,this._parents=e}function zc(){return new zr([[document.documentElement]],aC)}function jG(){return this}zr.prototype=zc.prototype={constructor:zr,select:gH,selectAll:bH,selectChild:SH,selectChildren:CH,filter:AH,data:$H,enter:PH,exit:MH,join:LH,merge:VH,selection:jG,order:FH,sort:zH,call:BH,nodes:jH,node:HH,size:GH,empty:WH,each:KH,attr:eG,style:iG,property:lG,classed:fG,text:mG,html:_G,raise:wG,lower:EG,append:TG,insert:CG,remove:PG,clone:NG,datum:RG,on:VG,dispatch:UG,[Symbol.iterator]:BG};function yi(t){return typeof t=="string"?new zr([[document.querySelector(t)]],[document.documentElement]):new zr([[t]],aC)}function HG(t){let e;for(;e=t.sourceEvent;)t=e;return t}function Hi(t,e){if(t=HG(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}const GG={passive:!1},Uc={capture:!0,passive:!1};function Gy(t){t.stopImmediatePropagation()}function Zl(t){t.preventDefault(),t.stopImmediatePropagation()}function lC(t){var e=t.document.documentElement,n=yi(t).on("dragstart.drag",Zl,Uc);"onselectstart"in e?n.on("selectstart.drag",Zl,Uc):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function uC(t,e){var n=t.document.documentElement,r=yi(t).on("dragstart.drag",null);e&&(r.on("click.drag",Zl,Uc),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const Yh=t=>()=>t;function Wy(t,{sourceEvent:e,subject:n,target:r,identifier:i,active:o,x:s,y:a,dx:l,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}Wy.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function WG(t){return!t.ctrlKey&&!t.button}function KG(){return this.parentNode}function ZG(t,e){return e??{x:t.x,y:t.y}}function XG(){return navigator.maxTouchPoints||"ontouchstart"in this}function YG(){var t=WG,e=KG,n=ZG,r=XG,i={},o=Wh("start","drag","end"),s=0,a,l,u,c,d=0;function h(y){y.on("mousedown.drag",p).filter(r).on("touchstart.drag",_).on("touchmove.drag",E,GG).on("touchend.drag touchcancel.drag",w).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(y,k){if(!(c||!t.call(this,y,k))){var $=v(this,e.call(this,y,k),y,k,"mouse");$&&(yi(y.view).on("mousemove.drag",g,Uc).on("mouseup.drag",m,Uc),lC(y.view),Gy(y),u=!1,a=y.clientX,l=y.clientY,$("start",y))}}function g(y){if(Zl(y),!u){var k=y.clientX-a,$=y.clientY-l;u=k*k+$*$>d}i.mouse("drag",y)}function m(y){yi(y.view).on("mousemove.drag mouseup.drag",null),uC(y.view,u),Zl(y),i.mouse("end",y)}function _(y,k){if(t.call(this,y,k)){var $=y.changedTouches,O=e.call(this,y,k),A=$.length,x,N;for(x=0;x<A;++x)(N=v(this,O,y,k,$[x].identifier,$[x]))&&(Gy(y),N("start",y,$[x]))}}function E(y){var k=y.changedTouches,$=k.length,O,A;for(O=0;O<$;++O)(A=i[k[O].identifier])&&(Zl(y),A("drag",y,k[O]))}function w(y){var k=y.changedTouches,$=k.length,O,A;for(c&&clearTimeout(c),c=setTimeout(function(){c=null},500),O=0;O<$;++O)(A=i[k[O].identifier])&&(Gy(y),A("end",y,k[O]))}function v(y,k,$,O,A,x){var N=o.copy(),P=Hi(x||$,k),b,S,I;if((I=n.call(y,new Wy("beforestart",{sourceEvent:$,target:h,identifier:A,active:s,x:P[0],y:P[1],dx:0,dy:0,dispatch:N}),O))!=null)return b=I.x-P[0]||0,S=I.y-P[1]||0,function V(M,H,G){var J=P,oe;switch(M){case"start":i[A]=V,oe=s++;break;case"end":delete i[A],--s;case"drag":P=Hi(G||H,k),oe=s;break}N.call(M,y,new Wy(M,{sourceEvent:H,subject:I,target:h,identifier:A,active:oe,x:P[0]+b,y:P[1]+S,dx:P[0]-J[0],dy:P[1]-J[1],dispatch:N}),O)}}return h.filter=function(y){return arguments.length?(t=typeof y=="function"?y:Yh(!!y),h):t},h.container=function(y){return arguments.length?(e=typeof y=="function"?y:Yh(y),h):e},h.subject=function(y){return arguments.length?(n=typeof y=="function"?y:Yh(y),h):n},h.touchable=function(y){return arguments.length?(r=typeof y=="function"?y:Yh(!!y),h):r},h.on=function(){var y=o.on.apply(o,arguments);return y===o?h:y},h.clickDistance=function(y){return arguments.length?(d=(y=+y)*y,h):Math.sqrt(d)},h}function Ky(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function cC(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Bc(){}var jc=.7,Jh=1/jc,Xl="\\s*([+-]?\\d+)\\s*",Hc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Gi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",JG=/^#([0-9a-f]{3,8})$/,QG=new RegExp(`^rgb\\(${Xl},${Xl},${Xl}\\)$`),qG=new RegExp(`^rgb\\(${Gi},${Gi},${Gi}\\)$`),eW=new RegExp(`^rgba\\(${Xl},${Xl},${Xl},${Hc}\\)$`),tW=new RegExp(`^rgba\\(${Gi},${Gi},${Gi},${Hc}\\)$`),nW=new RegExp(`^hsl\\(${Hc},${Gi},${Gi}\\)$`),rW=new RegExp(`^hsla\\(${Hc},${Gi},${Gi},${Hc}\\)$`),dC={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Ky(Bc,pa,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:fC,formatHex:fC,formatHex8:iW,formatHsl:oW,formatRgb:hC,toString:hC});function fC(){return this.rgb().formatHex()}function iW(){return this.rgb().formatHex8()}function oW(){return yC(this).formatHsl()}function hC(){return this.rgb().formatRgb()}function pa(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=JG.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?pC(e):n===3?new Ar(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?Qh(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?Qh(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=QG.exec(t))?new Ar(e[1],e[2],e[3],1):(e=qG.exec(t))?new Ar(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=eW.exec(t))?Qh(e[1],e[2],e[3],e[4]):(e=tW.exec(t))?Qh(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=nW.exec(t))?vC(e[1],e[2]/100,e[3]/100,1):(e=rW.exec(t))?vC(e[1],e[2]/100,e[3]/100,e[4]):dC.hasOwnProperty(t)?pC(dC[t]):t==="transparent"?new Ar(NaN,NaN,NaN,0):null}function pC(t){return new Ar(t>>16&255,t>>8&255,t&255,1)}function Qh(t,e,n,r){return r<=0&&(t=e=n=NaN),new Ar(t,e,n,r)}function sW(t){return t instanceof Bc||(t=pa(t)),t?(t=t.rgb(),new Ar(t.r,t.g,t.b,t.opacity)):new Ar}function Zy(t,e,n,r){return arguments.length===1?sW(t):new Ar(t,e,n,r??1)}function Ar(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}Ky(Ar,Zy,cC(Bc,{brighter(t){return t=t==null?Jh:Math.pow(Jh,t),new Ar(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?jc:Math.pow(jc,t),new Ar(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Ar(ga(this.r),ga(this.g),ga(this.b),qh(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:gC,formatHex:gC,formatHex8:aW,formatRgb:mC,toString:mC}));function gC(){return`#${ma(this.r)}${ma(this.g)}${ma(this.b)}`}function aW(){return`#${ma(this.r)}${ma(this.g)}${ma(this.b)}${ma((isNaN(this.opacity)?1:this.opacity)*255)}`}function mC(){const t=qh(this.opacity);return`${t===1?"rgb(":"rgba("}${ga(this.r)}, ${ga(this.g)}, ${ga(this.b)}${t===1?")":`, ${t})`}`}function qh(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ga(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ma(t){return t=ga(t),(t<16?"0":"")+t.toString(16)}function vC(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new bi(t,e,n,r)}function yC(t){if(t instanceof bi)return new bi(t.h,t.s,t.l,t.opacity);if(t instanceof Bc||(t=pa(t)),!t)return new bi;if(t instanceof bi)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,a=o-i,l=(o+i)/2;return a?(e===o?s=(n-r)/a+(n<r)*6:n===o?s=(r-e)/a+2:s=(e-n)/a+4,a/=l<.5?o+i:2-o-i,s*=60):a=l>0&&l<1?0:s,new bi(s,a,l,t.opacity)}function lW(t,e,n,r){return arguments.length===1?yC(t):new bi(t,e,n,r??1)}function bi(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Ky(bi,lW,cC(Bc,{brighter(t){return t=t==null?Jh:Math.pow(Jh,t),new bi(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?jc:Math.pow(jc,t),new bi(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Ar(Xy(t>=240?t-240:t+120,i,r),Xy(t,i,r),Xy(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new bi(bC(this.h),ep(this.s),ep(this.l),qh(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=qh(this.opacity);return`${t===1?"hsl(":"hsla("}${bC(this.h)}, ${ep(this.s)*100}%, ${ep(this.l)*100}%${t===1?")":`, ${t})`}`}}));function bC(t){return t=(t||0)%360,t<0?t+360:t}function ep(t){return Math.max(0,Math.min(1,t||0))}function Xy(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const Yy=t=>()=>t;function uW(t,e){return function(n){return t+n*e}}function cW(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function dW(t){return(t=+t)==1?_C:function(e,n){return n-e?cW(e,n,t):Yy(isNaN(e)?n:e)}}function _C(t,e){var n=e-t;return n?uW(t,n):Yy(isNaN(t)?e:t)}const tp=function t(e){var n=dW(e);function r(i,o){var s=n((i=Zy(i)).r,(o=Zy(o)).r),a=n(i.g,o.g),l=n(i.b,o.b),u=_C(i.opacity,o.opacity);return function(c){return i.r=s(c),i.g=a(c),i.b=l(c),i.opacity=u(c),i+""}}return r.gamma=t,r}(1);function fW(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=t[i]*(1-o)+e[i]*o;return r}}function hW(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function pW(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),o=new Array(n),s;for(s=0;s<r;++s)i[s]=Gc(t[s],e[s]);for(;s<n;++s)o[s]=e[s];return function(a){for(s=0;s<r;++s)o[s]=i[s](a);return o}}function gW(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Wi(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function mW(t,e){var n={},r={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?n[i]=Gc(t[i],e[i]):r[i]=e[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Jy=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qy=new RegExp(Jy.source,"g");function vW(t){return function(){return t}}function yW(t){return function(e){return t(e)+""}}function xC(t,e){var n=Jy.lastIndex=Qy.lastIndex=0,r,i,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(r=Jy.exec(t))&&(i=Qy.exec(e));)(o=i.index)>n&&(o=e.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:Wi(r,i)})),n=Qy.lastIndex;return n<e.length&&(o=e.slice(n),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?yW(l[0].x):vW(e):(e=l.length,function(u){for(var c=0,d;c<e;++c)a[(d=l[c]).i]=d.x(u);return a.join("")})}function Gc(t,e){var n=typeof e,r;return e==null||n==="boolean"?Yy(e):(n==="number"?Wi:n==="string"?(r=pa(e))?(e=r,tp):xC:e instanceof pa?tp:e instanceof Date?gW:hW(e)?fW:Array.isArray(e)?pW:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?mW:Wi)(t,e)}var wC=180/Math.PI,qy={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function SC(t,e,n,r,i,o){var s,a,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,l/=a),t*r<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*wC,skewX:Math.atan(l)*wC,scaleX:s,scaleY:a}}var np;function bW(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?qy:SC(e.a,e.b,e.c,e.d,e.e,e.f)}function _W(t){return t==null||(np||(np=document.createElementNS("http://www.w3.org/2000/svg","g")),np.setAttribute("transform",t),!(t=np.transform.baseVal.consolidate()))?qy:(t=t.matrix,SC(t.a,t.b,t.c,t.d,t.e,t.f))}function EC(t,e,n,r){function i(u){return u.length?u.pop()+" ":""}function o(u,c,d,h,p,g){if(u!==d||c!==h){var m=p.push("translate(",null,e,null,n);g.push({i:m-4,x:Wi(u,d)},{i:m-2,x:Wi(c,h)})}else(d||h)&&p.push("translate("+d+e+h+n)}function s(u,c,d,h){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),h.push({i:d.push(i(d)+"rotate(",null,r)-2,x:Wi(u,c)})):c&&d.push(i(d)+"rotate("+c+r)}function a(u,c,d,h){u!==c?h.push({i:d.push(i(d)+"skewX(",null,r)-2,x:Wi(u,c)}):c&&d.push(i(d)+"skewX("+c+r)}function l(u,c,d,h,p,g){if(u!==d||c!==h){var m=p.push(i(p)+"scale(",null,",",null,")");g.push({i:m-4,x:Wi(u,d)},{i:m-2,x:Wi(c,h)})}else(d!==1||h!==1)&&p.push(i(p)+"scale("+d+","+h+")")}return function(u,c){var d=[],h=[];return u=t(u),c=t(c),o(u.translateX,u.translateY,c.translateX,c.translateY,d,h),s(u.rotate,c.rotate,d,h),a(u.skewX,c.skewX,d,h),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,d,h),u=c=null,function(p){for(var g=-1,m=h.length,_;++g<m;)d[(_=h[g]).i]=_.x(p);return d.join("")}}}var xW=EC(bW,"px, ","px)","deg)"),wW=EC(_W,", ",")",")"),SW=1e-12;function TC(t){return((t=Math.exp(t))+1/t)/2}function EW(t){return((t=Math.exp(t))-1/t)/2}function TW(t){return((t=Math.exp(2*t))-1)/(t+1)}const rp=function t(e,n,r){function i(o,s){var a=o[0],l=o[1],u=o[2],c=s[0],d=s[1],h=s[2],p=c-a,g=d-l,m=p*p+g*g,_,E;if(m<SW)E=Math.log(h/u)/e,_=function(O){return[a+O*p,l+O*g,u*Math.exp(e*O*E)]};else{var w=Math.sqrt(m),v=(h*h-u*u+r*m)/(2*u*n*w),y=(h*h-u*u-r*m)/(2*h*n*w),k=Math.log(Math.sqrt(v*v+1)-v),$=Math.log(Math.sqrt(y*y+1)-y);E=($-k)/e,_=function(O){var A=O*E,x=TC(k),N=u/(n*w)*(x*TW(e*A+k)-EW(k));return[a+N*p,l+N*g,u*x/TC(e*A+k)]}}return _.duration=E*1e3*e/Math.SQRT2,_}return i.rho=function(o){var s=Math.max(.001,+o),a=s*s,l=a*a;return t(s,a,l)},i}(Math.SQRT2,2,4);var Yl=0,Wc=0,Kc=0,IC=1e3,ip,Zc,op=0,va=0,sp=0,Xc=typeof performance=="object"&&performance.now?performance:Date,CC=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function e0(){return va||(CC(IW),va=Xc.now()+sp)}function IW(){va=0}function ap(){this._call=this._time=this._next=null}ap.prototype=AC.prototype={constructor:ap,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?e0():+n)+(e==null?0:+e),!this._next&&Zc!==this&&(Zc?Zc._next=this:ip=this,Zc=this),this._call=t,this._time=n,t0()},stop:function(){this._call&&(this._call=null,this._time=1/0,t0())}};function AC(t,e,n){var r=new ap;return r.restart(t,e,n),r}function CW(){e0(),++Yl;for(var t=ip,e;t;)(e=va-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Yl}function PC(){va=(op=Xc.now())+sp,Yl=Wc=0;try{CW()}finally{Yl=0,PW(),va=0}}function AW(){var t=Xc.now(),e=t-op;e>IC&&(sp-=e,op=t)}function PW(){for(var t,e=ip,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:ip=n);Zc=t,t0(r)}function t0(t){if(!Yl){Wc&&(Wc=clearTimeout(Wc));var e=t-va;e>24?(t<1/0&&(Wc=setTimeout(PC,t-Xc.now()-sp)),Kc&&(Kc=clearInterval(Kc))):(Kc||(op=Xc.now(),Kc=setInterval(AW,IC)),Yl=1,CC(PC))}}function kC(t,e,n){var r=new ap;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var kW=Wh("start","end","cancel","interrupt"),OW=[],OC=0,NC=1,n0=2,lp=3,RC=4,r0=5,up=6;function cp(t,e,n,r,i,o){var s=t.__transition;if(!s)t.__transition={};else if(n in s)return;NW(t,n,{name:e,index:r,group:i,on:kW,tween:OW,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:OC})}function i0(t,e){var n=_i(t,e);if(n.state>OC)throw new Error("too late; already scheduled");return n}function Ki(t,e){var n=_i(t,e);if(n.state>lp)throw new Error("too late; already running");return n}function _i(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function NW(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=AC(o,0,n.time);function o(u){n.state=NC,n.timer.restart(s,n.delay,n.time),n.delay<=u&&s(u-n.delay)}function s(u){var c,d,h,p;if(n.state!==NC)return l();for(c in r)if(p=r[c],p.name===n.name){if(p.state===lp)return kC(s);p.state===RC?(p.state=up,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[c]):+c<e&&(p.state=up,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete r[c])}if(kC(function(){n.state===lp&&(n.state=RC,n.timer.restart(a,n.delay,n.time),a(u))}),n.state=n0,n.on.call("start",t,t.__data__,n.index,n.group),n.state===n0){for(n.state=lp,i=new Array(h=n.tween.length),c=0,d=-1;c<h;++c)(p=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(i[++d]=p);i.length=d+1}}function a(u){for(var c=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(l),n.state=r0,1),d=-1,h=i.length;++d<h;)i[d].call(t,c);n.state===r0&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){n.state=up,n.timer.stop(),delete r[e];for(var u in r)return;delete t.__transition}}function dp(t,e){var n=t.__transition,r,i,o=!0,s;if(n){e=e==null?null:e+"";for(s in n){if((r=n[s]).name!==e){o=!1;continue}i=r.state>n0&&r.state<r0,r.state=up,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[s]}o&&delete t.__transition}}function RW(t){return this.each(function(){dp(this,t)})}function $W(t,e){var n,r;return function(){var i=Ki(this,t),o=i.tween;if(o!==n){r=n=o;for(var s=0,a=r.length;s<a;++s)if(r[s].name===e){r=r.slice(),r.splice(s,1);break}}i.tween=r}}function DW(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=Ki(this,t),s=o.tween;if(s!==r){i=(r=s).slice();for(var a={name:e,value:n},l=0,u=i.length;l<u;++l)if(i[l].name===e){i[l]=a;break}l===u&&i.push(a)}o.tween=i}}function MW(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=_i(this.node(),n).tween,i=0,o=r.length,s;i<o;++i)if((s=r[i]).name===t)return s.value;return null}return this.each((e==null?$W:DW)(n,t,e))}function o0(t,e,n){var r=t._id;return t.each(function(){var i=Ki(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return _i(i,r).value[e]}}function $C(t,e){var n;return(typeof e=="number"?Wi:e instanceof pa?tp:(n=pa(e))?(e=n,tp):xC)(t,e)}function LW(t){return function(){this.removeAttribute(t)}}function VW(t){return function(){this.removeAttributeNS(t.space,t.local)}}function FW(t,e,n){var r,i=n+"",o;return function(){var s=this.getAttribute(t);return s===i?null:s===r?o:o=e(r=s,n)}}function zW(t,e,n){var r,i=n+"",o;return function(){var s=this.getAttributeNS(t.space,t.local);return s===i?null:s===r?o:o=e(r=s,n)}}function UW(t,e,n){var r,i,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttribute(t):(s=this.getAttribute(t),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a)))}}function BW(t,e,n){var r,i,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a)))}}function jW(t,e){var n=Zh(t),r=n==="transform"?wW:$C;return this.attrTween(t,typeof e=="function"?(n.local?BW:UW)(n,r,o0(this,"attr."+t,e)):e==null?(n.local?VW:LW)(n):(n.local?zW:FW)(n,r,e))}function HW(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function GW(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function WW(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&GW(t,o)),n}return i._value=e,i}function KW(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&HW(t,o)),n}return i._value=e,i}function ZW(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=Zh(t);return this.tween(n,(r.local?WW:KW)(r,e))}function XW(t,e){return function(){i0(this,t).delay=+e.apply(this,arguments)}}function YW(t,e){return e=+e,function(){i0(this,t).delay=e}}function JW(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?XW:YW)(e,t)):_i(this.node(),e).delay}function QW(t,e){return function(){Ki(this,t).duration=+e.apply(this,arguments)}}function qW(t,e){return e=+e,function(){Ki(this,t).duration=e}}function eK(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?QW:qW)(e,t)):_i(this.node(),e).duration}function tK(t,e){if(typeof e!="function")throw new Error;return function(){Ki(this,t).ease=e}}function nK(t){var e=this._id;return arguments.length?this.each(tK(e,t)):_i(this.node(),e).ease}function rK(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;Ki(this,t).ease=n}}function iK(t){if(typeof t!="function")throw new Error;return this.each(rK(this._id,t))}function oK(t){typeof t!="function"&&(t=QI(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,a=r[i]=[],l,u=0;u<s;++u)(l=o[u])&&t.call(l,l.__data__,u,o)&&a.push(l);return new To(r,this._parents,this._name,this._id)}function sK(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),s=new Array(r),a=0;a<o;++a)for(var l=e[a],u=n[a],c=l.length,d=s[a]=new Array(c),h,p=0;p<c;++p)(h=l[p]||u[p])&&(d[p]=h);for(;a<r;++a)s[a]=e[a];return new To(s,this._parents,this._name,this._id)}function aK(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function lK(t,e,n){var r,i,o=aK(e)?i0:Ki;return function(){var s=o(this,t),a=s.on;a!==r&&(i=(r=a).copy()).on(e,n),s.on=i}}function uK(t,e){var n=this._id;return arguments.length<2?_i(this.node(),n).on.on(t):this.each(lK(n,t,e))}function cK(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function dK(){return this.on("end.remove",cK(this._id))}function fK(t){var e=this._name,n=this._id;typeof t!="function"&&(t=jy(t));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s<i;++s)for(var a=r[s],l=a.length,u=o[s]=new Array(l),c,d,h=0;h<l;++h)(c=a[h])&&(d=t.call(c,c.__data__,h,a))&&("__data__"in c&&(d.__data__=c.__data__),u[h]=d,cp(u[h],e,n,h,u,_i(c,n)));return new To(o,this._parents,e,n)}function hK(t){var e=this._name,n=this._id;typeof t!="function"&&(t=JI(t));for(var r=this._groups,i=r.length,o=[],s=[],a=0;a<i;++a)for(var l=r[a],u=l.length,c,d=0;d<u;++d)if(c=l[d]){for(var h=t.call(c,c.__data__,d,l),p,g=_i(c,n),m=0,_=h.length;m<_;++m)(p=h[m])&&cp(p,e,n,m,h,g);o.push(h),s.push(c)}return new To(o,s,e,n)}var pK=zc.prototype.constructor;function gK(){return new pK(this._groups,this._parents)}function mK(t,e){var n,r,i;return function(){var o=Kl(this,t),s=(this.style.removeProperty(t),Kl(this,t));return o===s?null:o===n&&s===r?i:i=e(n=o,r=s)}}function DC(t){return function(){this.style.removeProperty(t)}}function vK(t,e,n){var r,i=n+"",o;return function(){var s=Kl(this,t);return s===i?null:s===r?o:o=e(r=s,n)}}function yK(t,e,n){var r,i,o;return function(){var s=Kl(this,t),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),Kl(this,t))),s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a))}}function bK(t,e){var n,r,i,o="style."+e,s="end."+o,a;return function(){var l=Ki(this,t),u=l.on,c=l.value[o]==null?a||(a=DC(e)):void 0;(u!==n||i!==c)&&(r=(n=u).copy()).on(s,i=c),l.on=r}}function _K(t,e,n){var r=(t+="")=="transform"?xW:$C;return e==null?this.styleTween(t,mK(t,r)).on("end.style."+t,DC(t)):typeof e=="function"?this.styleTween(t,yK(t,r,o0(this,"style."+t,e))).each(bK(this._id,t)):this.styleTween(t,vK(t,r,e),n).on("end.style."+t,null)}function xK(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function wK(t,e,n){var r,i;function o(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&xK(t,s,n)),r}return o._value=e,o}function SK(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,wK(t,e,n??""))}function EK(t){return function(){this.textContent=t}}function TK(t){return function(){var e=t(this);this.textContent=e??""}}function IK(t){return this.tween("text",typeof t=="function"?TK(o0(this,"text",t)):EK(t==null?"":t+""))}function CK(t){return function(e){this.textContent=t.call(this,e)}}function AK(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&CK(i)),e}return r._value=t,r}function PK(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,AK(t))}function kK(){for(var t=this._name,e=this._id,n=MC(),r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,u=0;u<a;++u)if(l=s[u]){var c=_i(l,e);cp(l,t,n,u,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new To(r,this._parents,t,n)}function OK(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(o,s){var a={value:s},l={value:function(){--i===0&&o()}};n.each(function(){var u=Ki(this,r),c=u.on;c!==t&&(e=(t=c).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),u.on=e}),i===0&&o()})}var NK=0;function To(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function MC(){return++NK}var Io=zc.prototype;To.prototype={constructor:To,select:fK,selectAll:hK,selectChild:Io.selectChild,selectChildren:Io.selectChildren,filter:oK,merge:sK,selection:gK,transition:kK,call:Io.call,nodes:Io.nodes,node:Io.node,size:Io.size,empty:Io.empty,each:Io.each,on:uK,attr:jW,attrTween:ZW,style:_K,styleTween:SK,text:IK,textTween:PK,remove:dK,tween:MW,delay:JW,duration:eK,ease:nK,easeVarying:iK,end:OK,[Symbol.iterator]:Io[Symbol.iterator]};function RK(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var $K={time:null,delay:0,duration:250,ease:RK};function DK(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function MK(t){var e,n;t instanceof To?(e=t._id,t=t._name):(e=MC(),(n=$K).time=e0(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,u=0;u<a;++u)(l=s[u])&&cp(l,t,e,u,s,n||DK(l,e));return new To(r,this._parents,t,e)}zc.prototype.interrupt=RW,zc.prototype.transition=MK;const fp=t=>()=>t;function LK(t,{sourceEvent:e,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Co(t,e,n){this.k=t,this.x=e,this.y=n}Co.prototype={constructor:Co,scale:function(t){return t===1?this:new Co(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Co(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Jl=new Co(1,0,0);Co.prototype;function s0(t){t.stopImmediatePropagation()}function Yc(t){t.preventDefault(),t.stopImmediatePropagation()}function VK(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function FK(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function LC(){return this.__zoom||Jl}function zK(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function UK(){return navigator.maxTouchPoints||"ontouchstart"in this}function BK(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],s=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}function jK(){var t=VK,e=FK,n=BK,r=zK,i=UK,o=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],a=250,l=rp,u=Wh("start","zoom","end"),c,d,h,p=500,g=150,m=0,_=10;function E(I){I.property("__zoom",LC).on("wheel.zoom",A,{passive:!1}).on("mousedown.zoom",x).on("dblclick.zoom",N).filter(i).on("touchstart.zoom",P).on("touchmove.zoom",b).on("touchend.zoom touchcancel.zoom",S).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}E.transform=function(I,V,M,H){var G=I.selection?I.selection():I;G.property("__zoom",LC),I!==G?k(I,V,M,H):G.interrupt().each(function(){$(this,arguments).event(H).start().zoom(null,typeof V=="function"?V.apply(this,arguments):V).end()})},E.scaleBy=function(I,V,M,H){E.scaleTo(I,function(){var G=this.__zoom.k,J=typeof V=="function"?V.apply(this,arguments):V;return G*J},M,H)},E.scaleTo=function(I,V,M,H){E.transform(I,function(){var G=e.apply(this,arguments),J=this.__zoom,oe=M==null?y(G):typeof M=="function"?M.apply(this,arguments):M,ae=J.invert(oe),de=typeof V=="function"?V.apply(this,arguments):V;return n(v(w(J,de),oe,ae),G,s)},M,H)},E.translateBy=function(I,V,M,H){E.transform(I,function(){return n(this.__zoom.translate(typeof V=="function"?V.apply(this,arguments):V,typeof M=="function"?M.apply(this,arguments):M),e.apply(this,arguments),s)},null,H)},E.translateTo=function(I,V,M,H,G){E.transform(I,function(){var J=e.apply(this,arguments),oe=this.__zoom,ae=H==null?y(J):typeof H=="function"?H.apply(this,arguments):H;return n(Jl.translate(ae[0],ae[1]).scale(oe.k).translate(typeof V=="function"?-V.apply(this,arguments):-V,typeof M=="function"?-M.apply(this,arguments):-M),J,s)},H,G)};function w(I,V){return V=Math.max(o[0],Math.min(o[1],V)),V===I.k?I:new Co(V,I.x,I.y)}function v(I,V,M){var H=V[0]-M[0]*I.k,G=V[1]-M[1]*I.k;return H===I.x&&G===I.y?I:new Co(I.k,H,G)}function y(I){return[(+I[0][0]+ +I[1][0])/2,(+I[0][1]+ +I[1][1])/2]}function k(I,V,M,H){I.on("start.zoom",function(){$(this,arguments).event(H).start()}).on("interrupt.zoom end.zoom",function(){$(this,arguments).event(H).end()}).tween("zoom",function(){var G=this,J=arguments,oe=$(G,J).event(H),ae=e.apply(G,J),de=M==null?y(ae):typeof M=="function"?M.apply(G,J):M,xe=Math.max(ae[1][0]-ae[0][0],ae[1][1]-ae[0][1]),Ee=G.__zoom,pe=typeof V=="function"?V.apply(G,J):V,le=l(Ee.invert(de).concat(xe/Ee.k),pe.invert(de).concat(xe/pe.k));return function(fe){if(fe===1)fe=pe;else{var Re=le(fe),$e=xe/Re[2];fe=new Co($e,de[0]-Re[0]*$e,de[1]-Re[1]*$e)}oe.zoom(null,fe)}})}function $(I,V,M){return!M&&I.__zooming||new O(I,V)}function O(I,V){this.that=I,this.args=V,this.active=0,this.sourceEvent=null,this.extent=e.apply(I,V),this.taps=0}O.prototype={event:function(I){return I&&(this.sourceEvent=I),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(I,V){return this.mouse&&I!=="mouse"&&(this.mouse[1]=V.invert(this.mouse[0])),this.touch0&&I!=="touch"&&(this.touch0[1]=V.invert(this.touch0[0])),this.touch1&&I!=="touch"&&(this.touch1[1]=V.invert(this.touch1[0])),this.that.__zoom=V,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(I){var V=yi(this.that).datum();u.call(I,this.that,new LK(I,{sourceEvent:this.sourceEvent,target:E,transform:this.that.__zoom,dispatch:u}),V)}};function A(I,...V){if(!t.apply(this,arguments))return;var M=$(this,V).event(I),H=this.__zoom,G=Math.max(o[0],Math.min(o[1],H.k*Math.pow(2,r.apply(this,arguments)))),J=Hi(I);if(M.wheel)(M.mouse[0][0]!==J[0]||M.mouse[0][1]!==J[1])&&(M.mouse[1]=H.invert(M.mouse[0]=J)),clearTimeout(M.wheel);else{if(H.k===G)return;M.mouse=[J,H.invert(J)],dp(this),M.start()}Yc(I),M.wheel=setTimeout(oe,g),M.zoom("mouse",n(v(w(H,G),M.mouse[0],M.mouse[1]),M.extent,s));function oe(){M.wheel=null,M.end()}}function x(I,...V){if(h||!t.apply(this,arguments))return;var M=I.currentTarget,H=$(this,V,!0).event(I),G=yi(I.view).on("mousemove.zoom",de,!0).on("mouseup.zoom",xe,!0),J=Hi(I,M),oe=I.clientX,ae=I.clientY;lC(I.view),s0(I),H.mouse=[J,this.__zoom.invert(J)],dp(this),H.start();function de(Ee){if(Yc(Ee),!H.moved){var pe=Ee.clientX-oe,le=Ee.clientY-ae;H.moved=pe*pe+le*le>m}H.event(Ee).zoom("mouse",n(v(H.that.__zoom,H.mouse[0]=Hi(Ee,M),H.mouse[1]),H.extent,s))}function xe(Ee){G.on("mousemove.zoom mouseup.zoom",null),uC(Ee.view,H.moved),Yc(Ee),H.event(Ee).end()}}function N(I,...V){if(t.apply(this,arguments)){var M=this.__zoom,H=Hi(I.changedTouches?I.changedTouches[0]:I,this),G=M.invert(H),J=M.k*(I.shiftKey?.5:2),oe=n(v(w(M,J),H,G),e.apply(this,V),s);Yc(I),a>0?yi(this).transition().duration(a).call(k,oe,H,I):yi(this).call(E.transform,oe,H,I)}}function P(I,...V){if(t.apply(this,arguments)){var M=I.touches,H=M.length,G=$(this,V,I.changedTouches.length===H).event(I),J,oe,ae,de;for(s0(I),oe=0;oe<H;++oe)ae=M[oe],de=Hi(ae,this),de=[de,this.__zoom.invert(de),ae.identifier],G.touch0?!G.touch1&&G.touch0[2]!==de[2]&&(G.touch1=de,G.taps=0):(G.touch0=de,J=!0,G.taps=1+!!c);c&&(c=clearTimeout(c)),J&&(G.taps<2&&(d=de[0],c=setTimeout(function(){c=null},p)),dp(this),G.start())}}function b(I,...V){if(this.__zooming){var M=$(this,V).event(I),H=I.changedTouches,G=H.length,J,oe,ae,de;for(Yc(I),J=0;J<G;++J)oe=H[J],ae=Hi(oe,this),M.touch0&&M.touch0[2]===oe.identifier?M.touch0[0]=ae:M.touch1&&M.touch1[2]===oe.identifier&&(M.touch1[0]=ae);if(oe=M.that.__zoom,M.touch1){var xe=M.touch0[0],Ee=M.touch0[1],pe=M.touch1[0],le=M.touch1[1],fe=(fe=pe[0]-xe[0])*fe+(fe=pe[1]-xe[1])*fe,Re=(Re=le[0]-Ee[0])*Re+(Re=le[1]-Ee[1])*Re;oe=w(oe,Math.sqrt(fe/Re)),ae=[(xe[0]+pe[0])/2,(xe[1]+pe[1])/2],de=[(Ee[0]+le[0])/2,(Ee[1]+le[1])/2]}else if(M.touch0)ae=M.touch0[0],de=M.touch0[1];else return;M.zoom("touch",n(v(oe,ae,de),M.extent,s))}}function S(I,...V){if(this.__zooming){var M=$(this,V).event(I),H=I.changedTouches,G=H.length,J,oe;for(s0(I),h&&clearTimeout(h),h=setTimeout(function(){h=null},p),J=0;J<G;++J)oe=H[J],M.touch0&&M.touch0[2]===oe.identifier?delete M.touch0:M.touch1&&M.touch1[2]===oe.identifier&&delete M.touch1;if(M.touch1&&!M.touch0&&(M.touch0=M.touch1,delete M.touch1),M.touch0)M.touch0[1]=this.__zoom.invert(M.touch0[0]);else if(M.end(),M.taps===2&&(oe=Hi(oe,this),Math.hypot(d[0]-oe[0],d[1]-oe[1])<_)){var ae=yi(this).on("dblclick.zoom");ae&&ae.apply(this,arguments)}}}return E.wheelDelta=function(I){return arguments.length?(r=typeof I=="function"?I:fp(+I),E):r},E.filter=function(I){return arguments.length?(t=typeof I=="function"?I:fp(!!I),E):t},E.touchable=function(I){return arguments.length?(i=typeof I=="function"?I:fp(!!I),E):i},E.extent=function(I){return arguments.length?(e=typeof I=="function"?I:fp([[+I[0][0],+I[0][1]],[+I[1][0],+I[1][1]]]),E):e},E.scaleExtent=function(I){return arguments.length?(o[0]=+I[0],o[1]=+I[1],E):[o[0],o[1]]},E.translateExtent=function(I){return arguments.length?(s[0][0]=+I[0][0],s[1][0]=+I[1][0],s[0][1]=+I[0][1],s[1][1]=+I[1][1],E):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},E.constrain=function(I){return arguments.length?(n=I,E):n},E.duration=function(I){return arguments.length?(a=+I,E):a},E.interpolate=function(I){return arguments.length?(l=I,E):l},E.on=function(){var I=u.on.apply(u,arguments);return I===u?E:I},E.clickDistance=function(I){return arguments.length?(m=(I=+I)*I,E):Math.sqrt(m)},E.tapDistance=function(I){return arguments.length?(_=+I,E):_},E}var Fe=(t=>(t.Left="left",t.Top="top",t.Right="right",t.Bottom="bottom",t))(Fe||{}),a0=(t=>(t.Partial="partial",t.Full="full",t))(a0||{}),ya=(t=>(t.Bezier="default",t.SimpleBezier="simple-bezier",t.Straight="straight",t.Step="step",t.SmoothStep="smoothstep",t))(ya||{}),hs=(t=>(t.Strict="strict",t.Loose="loose",t))(hs||{}),l0=(t=>(t.Arrow="arrow",t.ArrowClosed="arrowclosed",t))(l0||{}),Jc=(t=>(t.Free="free",t.Vertical="vertical",t.Horizontal="horizontal",t))(Jc||{}),VC=(t=>(t.TopLeft="top-left",t.TopCenter="top-center",t.TopRight="top-right",t.BottomLeft="bottom-left",t.BottomCenter="bottom-center",t.BottomRight="bottom-right",t))(VC||{});const HK=["INPUT","SELECT","TEXTAREA"],GK=typeof document<"u"?document:null;function u0(t){var e,n;const r=((n=(e=t.composedPath)==null?void 0:e.call(t))==null?void 0:n[0])||t.target,i=typeof(r==null?void 0:r.hasAttribute)=="function"?r.hasAttribute("contenteditable"):!1,o=typeof(r==null?void 0:r.closest)=="function"?r.closest(".nokey"):null;return HK.includes(r==null?void 0:r.nodeName)||i||!!o}function WK(t){return t.ctrlKey||t.metaKey||t.shiftKey||t.altKey}function FC(t,e,n,r){const i=e.replace("+",`
|
|
2557
2557
|
`).replace(`
|
|
2558
2558
|
|
|
2559
2559
|
`,`
|
|
@@ -2578,7 +2578,7 @@ Edge: ${t}
|
|
|
2578
2578
|
Source: ${e}
|
|
2579
2579
|
Target: ${n}`,EDGE_ORPHANED:t=>`Edge was orphaned (suddenly missing source or target) and has been removed
|
|
2580
2580
|
Edge: ${t}`,EDGE_NOT_FOUND:t=>`Edge not found
|
|
2581
|
-
Edge: ${t}`,USEVUEFLOW_OPTIONS:()=>"The options parameter is deprecated and will be removed in the next major version. Please use the id parameter instead"};class An extends Error{constructor(e,...n){var r;super((r=dA[e])==null?void 0:r.call(dA,...n)),this.name="VueFlowError",this.code=e,this.args=n}}function h0(t){return"clientX"in t}function fZ(t){return"sourceEvent"in t}function Zi(t,e){const n=h0(t);let r,i;return n?(r=t.clientX,i=t.clientY):"touches"in t&&t.touches.length>0?(r=t.touches[0].clientX,i=t.touches[0].clientY):"changedTouches"in t&&t.changedTouches.length>0?(r=t.changedTouches[0].clientX,i=t.changedTouches[0].clientY):(r=0,i=0),{x:r-((e==null?void 0:e.left)??0),y:i-((e==null?void 0:e.top)??0)}}const vp=()=>{var t;return typeof navigator<"u"&&((t=navigator==null?void 0:navigator.userAgent)==null?void 0:t.indexOf("Mac"))>=0};function hZ(t){var e,n;return{width:((e=t.dimensions)==null?void 0:e.width)??t.width??0,height:((n=t.dimensions)==null?void 0:n.height)??t.height??0}}function yp(t,e=[1,1]){return{x:e[0]*Math.round(t.x/e[0]),y:e[1]*Math.round(t.y/e[1])}}const pZ=()=>!0;function p0(t){t==null||t.classList.remove("valid","connecting","vue-flow__handle-valid","vue-flow__handle-connecting")}function gZ(t,e,n){const r=[],i={x:t.x-n,y:t.y-n,width:n*2,height:n*2};for(const o of e.values())pp(i,hp(o))>0&&r.push(o);return r}const mZ=250;function vZ(t,e,n,r){var i,o;let s=[],a=Number.POSITIVE_INFINITY;const l=gZ(t,n,e+mZ);for(const u of l){const c=[...((i=u.handleBounds)==null?void 0:i.source)??[],...((o=u.handleBounds)==null?void 0:o.target)??[]];for(const d of c){if(r.nodeId===d.nodeId&&r.type===d.type&&r.id===d.id)continue;const{x:h,y:p}=eu(u,d,d.position,!0),g=Math.sqrt((h-t.x)**2+(p-t.y)**2);g>e||(g<a?(s=[{...d,x:h,y:p}],a=g):g===a&&s.push({...d,x:h,y:p}))}}if(!s.length)return null;if(s.length>1){const u=r.type==="source"?"target":"source";return s.find(c=>c.type===u)??s[0]}return s[0]}function fA(t,{handle:e,connectionMode:n,fromNodeId:r,fromHandleId:i,fromType:o,doc:s,lib:a,flowId:l,isValidConnection:u=pZ},c,d,h,p){const g=o==="target",m=e?s.querySelector(`.${a}-flow__handle[data-id="${l}-${e==null?void 0:e.nodeId}-${e==null?void 0:e.id}-${e==null?void 0:e.type}"]`):null,{x:_,y:E}=Zi(t),w=s.elementFromPoint(_,E),v=w!=null&&w.classList.contains(`${a}-flow__handle`)?w:m,y={handleDomNode:v,isValid:!1,connection:null,toHandle:null};if(v){const k=hA(void 0,v),$=v.getAttribute("data-nodeid"),O=v.getAttribute("data-handleid"),A=v.classList.contains("connectable"),x=v.classList.contains("connectableend");if(!$||!k)return y;const N={source:g?$:r,sourceHandle:g?O:i,target:g?r:$,targetHandle:g?i:O};y.connection=N;const b=A&&x&&(n===hs.Strict?g&&k==="source"||!g&&k==="target":$!==r||O!==i);y.isValid=b&&u(N,{nodes:d,edges:c,sourceNode:h(N.source),targetNode:h(N.target)}),y.toHandle=pA($,k,O,p,n,!0)}return y}function hA(t,e){return t||(e!=null&&e.classList.contains("target")?"target":e!=null&&e.classList.contains("source")?"source":null)}function yZ(t,e){let n=null;return e?n="valid":t&&!e&&(n="invalid"),n}function bZ(t,e){let n=null;return e?n=!0:t&&!e&&(n=!1),n}function pA(t,e,n,r,i,o=!1){var s,a,l;const u=r.get(t);if(!u)return null;const c=i===hs.Strict?(s=u.handleBounds)==null?void 0:s[e]:[...((a=u.handleBounds)==null?void 0:a.source)??[],...((l=u.handleBounds)==null?void 0:l.target)??[]],d=(n?c==null?void 0:c.find(h=>h.id===n):c==null?void 0:c[0])??null;return d&&o?{...d,...eu(u,d,d.position,!0)}:d}const g0={[Fe.Left]:Fe.Right,[Fe.Right]:Fe.Left,[Fe.Top]:Fe.Bottom,[Fe.Bottom]:Fe.Top},_Z=["production","prod"];function rd(t,...e){gA()&&console.warn(`[Vue Flow]: ${t}`,...e)}function gA(){return!_Z.includes("production")}function mA(t,e,n,r,i){const o=e.querySelectorAll(`.vue-flow__handle.${t}`);return o!=null&&o.length?Array.from(o).map(s=>{const a=s.getBoundingClientRect();return{id:s.getAttribute("data-handleid"),type:t,nodeId:i,position:s.getAttribute("data-handlepos"),x:(a.left-n.left)/r,y:(a.top-n.top)/r,...gp(s)}}):null}function m0(t,e,n,r,i,o=!1,s){i.value=!1,t.selected?(o||t.selected&&e)&&(r([t]),pr(()=>{s.blur()})):n([t])}function In(t){return typeof re(t)<"u"}function xZ(t,e,n,r){if(!t||!t.source||!t.target)return n(new An(Tn.EDGE_INVALID,(t==null?void 0:t.id)??"[ID UNKNOWN]")),!1;let i;return ps(t)?i=t:i={...t,id:KC(t)},i=GC(i,void 0,r),eZ(i,e)?!1:i}function wZ(t,e,n,r,i){if(!e.source||!e.target)return i(new An(Tn.EDGE_INVALID,t.id)),!1;if(!n)return i(new An(Tn.EDGE_NOT_FOUND,t.id)),!1;const{id:o,...s}=t;return{...s,id:r?KC(e):o,source:e.source,target:e.target,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle}}function vA(t,e,n){const r={},i=[];for(let o=0;o<t.length;++o){const s=t[o];if(!ba(s)){n(new An(Tn.NODE_INVALID,s==null?void 0:s.id)||`[ID UNKNOWN|INDEX ${o}]`);continue}const a=JK(s,e(s.id),s.parentNode);s.parentNode&&(r[s.parentNode]=!0),i[o]=a}for(const o of i){const s=e(o.parentNode)||i.find(a=>a.id===o.parentNode);o.parentNode&&!s&&n(new An(Tn.NODE_MISSING_PARENT,o.id,o.parentNode)),(o.parentNode||r[o.id])&&(r[o.id]&&(o.isParent=!0),s&&(s.isParent=!0))}return i}function yA(t,e,n,r,i,o){let s=i;const a=r.get(s)||new Map;r.set(s,a.set(n,e)),s=`${i}-${t}`;const l=r.get(s)||new Map;if(r.set(s,l.set(n,e)),o){s=`${i}-${t}-${o}`;const u=r.get(s)||new Map;r.set(s,u.set(n,e))}}function v0(t,e,n){t.clear();for(const r of n){const{source:i,target:o,sourceHandle:s=null,targetHandle:a=null}=r,l={edgeId:r.id,source:i,target:o,sourceHandle:s,targetHandle:a},u=`${i}-${s}--${o}-${a}`,c=`${o}-${a}--${i}-${s}`;yA("source",l,c,t,i,s),yA("target",l,u,t,o,a)}}function bA(t,e){if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0}function y0(t,e,n,r,i,o,s,a){const l=[];for(const u of t){const c=ps(u)?u:xZ(u,a,i,o);if(!c)continue;const d=n(c.source),h=n(c.target);if(!d||!h){i(new An(Tn.EDGE_SOURCE_TARGET_MISSING,c.id,c.source,c.target));continue}if(!d){i(new An(Tn.EDGE_SOURCE_MISSING,c.id,c.source));continue}if(!h){i(new An(Tn.EDGE_TARGET_MISSING,c.id,c.target));continue}if(e&&!e(c,{edges:a,nodes:s,sourceNode:d,targetNode:h})){i(new An(Tn.EDGE_INVALID,c.id));continue}const p=r(c.id);l.push({...GC(c,p,o),sourceNode:d,targetNode:h})}return l}const _A=Symbol("vueFlow"),b0=Symbol("nodeId"),xA=Symbol("nodeRef"),SZ=Symbol("edgeId"),EZ=Symbol("edgeRef"),bp=Symbol("slots");function wA(t){const{vueFlowRef:e,snapToGrid:n,snapGrid:r,noDragClassName:i,nodeLookup:o,nodeExtent:s,nodeDragThreshold:a,viewport:l,autoPanOnNodeDrag:u,autoPanSpeed:c,nodesDraggable:d,panBy:h,findNode:p,multiSelectionActive:g,nodesSelectionActive:m,selectNodesOnDrag:_,removeSelectedElements:E,addSelectedNodes:w,updateNodePositions:v,emits:y}=$t(),{onStart:k,onDrag:$,onStop:O,onClick:A,el:x,disabled:N,id:P,selectable:b,dragHandle:S}=t,I=Ei(!1);let V=[],M,H=null,G={x:void 0,y:void 0},q={x:0,y:0},oe=null,ae=!1,he=!1,xe=0,Ee=!1;const de=SA(),ce=({x:De,y:B})=>{G={x:De,y:B};let D=!1;if(V=V.map(L=>{const z={x:De-L.distance.x,y:B-L.distance.y},{computedPosition:F}=f0(L,n.value?yp(z,r.value):z,y.error,s.value,L.parentNode?p(L.parentNode):void 0);return D=D||L.position.x!==F.x||L.position.y!==F.y,L.position=F,L}),he=he||D,!!D&&(v(V,!0,!0),I.value=!0,oe)){const[L,z]=d0({id:P,dragItems:V,findNode:p});$({event:oe,node:L,nodes:z})}},fe=()=>{if(!H)return;const[De,B]=nA(q,H,c.value);if(De!==0||B!==0){const D={x:(G.x??0)-De/l.value.zoom,y:(G.y??0)-B/l.value.zoom};h({x:De,y:B})&&ce(D)}xe=requestAnimationFrame(fe)},Le=(De,B)=>{ae=!0;const D=p(P);!_.value&&!g.value&&D&&(D.selected||E()),D&&ct(b)&&_.value&&m0(D,g.value,w,E,m,!1,B);const L=de(De.sourceEvent);if(G=L,V=sZ(o.value,d.value,L,P),V.length){const[z,F]=d0({id:P,dragItems:V,findNode:p});k({event:De.sourceEvent,node:z,nodes:F})}},Re=(De,B)=>{var D;De.sourceEvent.type==="touchmove"&&De.sourceEvent.touches.length>1||(he=!1,a.value===0&&Le(De,B),G=de(De.sourceEvent),H=((D=e.value)==null?void 0:D.getBoundingClientRect())||null,q=Zi(De.sourceEvent,H))},Be=(De,B)=>{const D=de(De.sourceEvent);if(!Ee&&ae&&u.value&&(Ee=!0,fe()),!ae){const L=D.xSnapped-(G.x??0),z=D.ySnapped-(G.y??0);Math.sqrt(L*L+z*z)>a.value&&Le(De,B)}(G.x!==D.xSnapped||G.y!==D.ySnapped)&&V.length&&ae&&(oe=De.sourceEvent,q=Zi(De.sourceEvent,H),ce(D))},et=De=>{let B=!1;if(!ae&&!I.value&&!g.value){const D=De.sourceEvent,L=de(D),z=L.xSnapped-(G.x??0),F=L.ySnapped-(G.y??0),W=Math.sqrt(z*z+F*F);W!==0&&W<=a.value&&(A==null||A(D),B=!0)}if(V.length&&!B){he&&(v(V,!1,!1),he=!1);const[D,L]=d0({id:P,dragItems:V,findNode:p});O({event:De.sourceEvent,node:D,nodes:L})}V=[],I.value=!1,Ee=!1,ae=!1,G={x:void 0,y:void 0},cancelAnimationFrame(xe)};return Qe([()=>ct(N),x],([De,B],D,L)=>{if(B){const z=yi(B);De||(M=YG().on("start",F=>Re(F,B)).on("drag",F=>Be(F,B)).on("end",F=>et(F)).filter(F=>{const W=F.target,ee=ct(S);return!F.button&&(!i.value||!lA(W,`.${i.value}`,B)&&(!ee||lA(W,ee,B)))}),z.call(M)),L(()=>{z.on(".drag",null),M&&(M.on("start",null),M.on("drag",null),M.on("end",null))})}}),I}function TZ(){return{doubleClick:Ne(),click:Ne(),mouseEnter:Ne(),mouseMove:Ne(),mouseLeave:Ne(),contextMenu:Ne(),updateStart:Ne(),update:Ne(),updateEnd:Ne()}}function IZ(t,e){const n=TZ();return n.doubleClick.on(r=>{var i,o;e.edgeDoubleClick(r),(o=(i=t.events)==null?void 0:i.doubleClick)==null||o.call(i,r)}),n.click.on(r=>{var i,o;e.edgeClick(r),(o=(i=t.events)==null?void 0:i.click)==null||o.call(i,r)}),n.mouseEnter.on(r=>{var i,o;e.edgeMouseEnter(r),(o=(i=t.events)==null?void 0:i.mouseEnter)==null||o.call(i,r)}),n.mouseMove.on(r=>{var i,o;e.edgeMouseMove(r),(o=(i=t.events)==null?void 0:i.mouseMove)==null||o.call(i,r)}),n.mouseLeave.on(r=>{var i,o;e.edgeMouseLeave(r),(o=(i=t.events)==null?void 0:i.mouseLeave)==null||o.call(i,r)}),n.contextMenu.on(r=>{var i,o;e.edgeContextMenu(r),(o=(i=t.events)==null?void 0:i.contextMenu)==null||o.call(i,r)}),n.updateStart.on(r=>{var i,o;e.edgeUpdateStart(r),(o=(i=t.events)==null?void 0:i.updateStart)==null||o.call(i,r)}),n.update.on(r=>{var i,o;e.edgeUpdate(r),(o=(i=t.events)==null?void 0:i.update)==null||o.call(i,r)}),n.updateEnd.on(r=>{var i,o;e.edgeUpdateEnd(r),(o=(i=t.events)==null?void 0:i.updateEnd)==null||o.call(i,r)}),Object.entries(n).reduce((r,[i,o])=>(r.emit[i]=o.trigger,r.on[i]=o.on,r),{emit:{},on:{}})}function SA(){const{viewport:t,snapGrid:e,snapToGrid:n,vueFlowRef:r}=$t();return i=>{var o;const s=((o=r.value)==null?void 0:o.getBoundingClientRect())??{left:0,top:0},a=fZ(i)?i.sourceEvent:i,{x:l,y:u}=Zi(a,s),c=td({x:l,y:u},t.value),{x:d,y:h}=n.value?yp(c,e.value):c;return{xSnapped:d,ySnapped:h,...c}}}function _p(){return!0}function EA({handleId:t,nodeId:e,type:n,isValidConnection:r,edgeUpdaterType:i,onEdgeUpdate:o,onEdgeUpdateEnd:s}){const{id:a,vueFlowRef:l,connectionMode:u,connectionRadius:c,connectOnClick:d,connectionClickStartHandle:h,nodesConnectable:p,autoPanOnConnect:g,autoPanSpeed:m,findNode:_,panBy:E,startConnection:w,updateConnection:v,endConnection:y,emits:k,viewport:$,edges:O,nodes:A,isValidConnection:x,nodeLookup:N}=$t();let P=null,b=!1,S=null;function I(M){var H;const G=ct(n)==="target",q=h0(M),oe=HC(M.target),ae=M.currentTarget;if(ae&&(q&&M.button===0||!q)){let he=function(J){D=Zi(J,et),ce=vZ(td(D,$.value,!1,[1,1]),c.value,N.value,F),L||(z(),L=!0);const ye=fA(J,{handle:ce,connectionMode:u.value,fromNodeId:ct(e),fromHandleId:ct(t),fromType:G?"target":"source",isValidConnection:de,doc:oe,lib:"vue",flowId:a,nodeLookup:N.value},O.value,A.value,_,N.value);S=ye.handleDomNode,P=ye.connection,b=bZ(!!ce,ye.isValid);const pe={...te,isValid:b,to:ye.toHandle&&b?ed({x:ye.toHandle.x,y:ye.toHandle.y},$.value):D,toHandle:ye.toHandle,toPosition:b&&ye.toHandle?ye.toHandle.position:g0[F.position],toNode:ye.toHandle?N.value.get(ye.toHandle.nodeId):null};if(b&&ce&&(te!=null&&te.toHandle)&&pe.toHandle&&te.toHandle.type===pe.toHandle.type&&te.toHandle.nodeId===pe.toHandle.nodeId&&te.toHandle.id===pe.toHandle.id&&te.to.x===pe.to.x&&te.to.y===pe.to.y)return;const be=ce??ye.toHandle;if(v(be&&b?ed({x:be.x,y:be.y},$.value):D,be,yZ(!!be,b)),te=pe,!ce&&!b&&!S)return p0(B);P&&P.source!==P.target&&S&&(p0(B),B=S,S.classList.add("connecting","vue-flow__handle-connecting"),S.classList.toggle("valid",!!b),S.classList.toggle("vue-flow__handle-valid",!!b))},xe=function(J){"touches"in J&&J.touches.length>0||((ce||S)&&P&&b&&(o?o(J,P):k.connect(P)),k.connectEnd(J),i&&(s==null||s(J)),p0(B),cancelAnimationFrame(fe),y(J),L=!1,b=!1,P=null,S=null,oe.removeEventListener("mousemove",he),oe.removeEventListener("mouseup",xe),oe.removeEventListener("touchmove",he),oe.removeEventListener("touchend",xe))};const Ee=_(ct(e));let de=ct(r)||x.value||_p;!de&&Ee&&(de=(G?Ee.isValidSourcePos:Ee.isValidTargetPos)||_p);let ce,fe=0;const{x:Le,y:Re}=Zi(M),Be=hA(ct(i),ae),et=(H=l.value)==null?void 0:H.getBoundingClientRect();if(!et||!Be)return;const De=pA(ct(e),Be,ct(t),N.value,u.value);if(!De)return;let B,D=Zi(M,et),L=!1;const z=()=>{if(!g.value)return;const[J,ye]=nA(D,et,m.value);E({x:J,y:ye}),fe=requestAnimationFrame(z)},F={...De,nodeId:ct(e),type:Be,position:De.position},W=N.value.get(ct(e)),Y={inProgress:!0,isValid:null,from:eu(W,F,Fe.Left,!0),fromHandle:F,fromPosition:F.position,fromNode:W,to:D,toHandle:null,toPosition:g0[F.position],toNode:null};w({nodeId:ct(e),id:ct(t),type:Be,position:(ae==null?void 0:ae.getAttribute("data-handlepos"))||Fe.Top,...D},{x:Le-et.left,y:Re-et.top}),k.connectStart({event:M,nodeId:ct(e),handleId:ct(t),handleType:Be});let te=Y;oe.addEventListener("mousemove",he),oe.addEventListener("mouseup",xe),oe.addEventListener("touchmove",he),oe.addEventListener("touchend",xe)}}function V(M){var H,G;if(!d.value)return;const q=ct(n)==="target";if(!h.value){k.clickConnectStart({event:M,nodeId:ct(e),handleId:ct(t)}),w({nodeId:ct(e),type:ct(n),id:ct(t),position:Fe.Top,...Zi(M)},void 0,!0);return}let oe=ct(r)||x.value||_p;const ae=_(ct(e));if(!oe&&ae&&(oe=(q?ae.isValidSourcePos:ae.isValidTargetPos)||_p),ae&&(typeof ae.connectable>"u"?p.value:ae.connectable)===!1)return;const he=HC(M.target),xe=fA(M,{handle:{nodeId:ct(e),id:ct(t),type:ct(n),position:Fe.Top,...Zi(M)},connectionMode:u.value,fromNodeId:h.value.nodeId,fromHandleId:h.value.id??null,fromType:h.value.type,isValidConnection:oe,doc:he,lib:"vue",flowId:a,nodeLookup:N.value},O.value,A.value,_,N.value),Ee=((H=xe.connection)==null?void 0:H.source)===((G=xe.connection)==null?void 0:G.target);xe.isValid&&xe.connection&&!Ee&&k.connect(xe.connection),k.clickConnectEnd(M),y(M,!0)}return{handlePointerDown:I,handleClick:V}}function CZ(){return yt(b0,"")}function TA(t){const e=t??CZ()??"",n=yt(xA,we(null)),{findNode:r,edges:i,emits:o}=$t(),s=r(e);return s||o.error(new An(Tn.NODE_NOT_FOUND,e)),{id:e,nodeEl:n,node:s,parentNode:Z(()=>r(s.parentNode)),connectedEdges:Z(()=>JC([s],i.value))}}function AZ(){return{doubleClick:Ne(),click:Ne(),mouseEnter:Ne(),mouseMove:Ne(),mouseLeave:Ne(),contextMenu:Ne(),dragStart:Ne(),drag:Ne(),dragStop:Ne()}}function PZ(t,e){const n=AZ();return n.doubleClick.on(r=>{var i,o;e.nodeDoubleClick(r),(o=(i=t.events)==null?void 0:i.doubleClick)==null||o.call(i,r)}),n.click.on(r=>{var i,o;e.nodeClick(r),(o=(i=t.events)==null?void 0:i.click)==null||o.call(i,r)}),n.mouseEnter.on(r=>{var i,o;e.nodeMouseEnter(r),(o=(i=t.events)==null?void 0:i.mouseEnter)==null||o.call(i,r)}),n.mouseMove.on(r=>{var i,o;e.nodeMouseMove(r),(o=(i=t.events)==null?void 0:i.mouseMove)==null||o.call(i,r)}),n.mouseLeave.on(r=>{var i,o;e.nodeMouseLeave(r),(o=(i=t.events)==null?void 0:i.mouseLeave)==null||o.call(i,r)}),n.contextMenu.on(r=>{var i,o;e.nodeContextMenu(r),(o=(i=t.events)==null?void 0:i.contextMenu)==null||o.call(i,r)}),n.dragStart.on(r=>{var i,o;e.nodeDragStart(r),(o=(i=t.events)==null?void 0:i.dragStart)==null||o.call(i,r)}),n.drag.on(r=>{var i,o;e.nodeDrag(r),(o=(i=t.events)==null?void 0:i.drag)==null||o.call(i,r)}),n.dragStop.on(r=>{var i,o;e.nodeDragStop(r),(o=(i=t.events)==null?void 0:i.dragStop)==null||o.call(i,r)}),Object.entries(n).reduce((r,[i,o])=>(r.emit[i]=o.trigger,r.on[i]=o.on,r),{emit:{},on:{}})}function IA(){const{getSelectedNodes:t,nodeExtent:e,updateNodePositions:n,findNode:r,snapGrid:i,snapToGrid:o,nodesDraggable:s,emits:a}=$t();return(l,u=!1)=>{const c=o.value?i.value[0]:5,d=o.value?i.value[1]:5,h=u?4:1,p=l.x*c*h,g=l.y*d*h,m=[];for(const _ of t.value)if(_.draggable||s&&typeof _.draggable>"u"){const E={x:_.computedPosition.x+p,y:_.computedPosition.y+g},{position:w}=f0(_,E,a.error,e.value,_.parentNode?r(_.parentNode):void 0);m.push({id:_.id,position:w,from:_.position,distance:{x:l.x,y:l.y},dimensions:_.dimensions})}n(m,!0,!1)}}const xp=.1,kZ=t=>((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2;function vs(){return rd("Viewport not initialized yet."),Promise.resolve(!1)}const OZ={zoomIn:vs,zoomOut:vs,zoomTo:vs,fitView:vs,setCenter:vs,fitBounds:vs,project:t=>t,screenToFlowCoordinate:t=>t,flowToScreenCoordinate:t=>t,setViewport:vs,setTransform:vs,getViewport:()=>({x:0,y:0,zoom:1}),getTransform:()=>({x:0,y:0,zoom:1}),viewportInitialized:!1};function NZ(t){function e(r,i){return new Promise(o=>{t.d3Selection&&t.d3Zoom?t.d3Zoom.interpolate((i==null?void 0:i.interpolate)==="linear"?Gc:rp).scaleBy(_0(t.d3Selection,i==null?void 0:i.duration,i==null?void 0:i.ease,()=>{o(!0)}),r):o(!1)})}function n(r,i,o,s){return new Promise(a=>{var l;const{x:u,y:c}=jC({x:-r,y:-i},t.translateExtent),d=Jl.translate(-u,-c).scale(o);t.d3Selection&&t.d3Zoom?(l=t.d3Zoom)==null||l.interpolate((s==null?void 0:s.interpolate)==="linear"?Gc:rp).transform(_0(t.d3Selection,s==null?void 0:s.duration,s==null?void 0:s.ease,()=>{a(!0)}),d):a(!1)})}return Z(()=>t.d3Zoom&&t.d3Selection&&t.dimensions.width&&t.dimensions.height?{viewportInitialized:!0,zoomIn:i=>e(1.2,i),zoomOut:i=>e(1/1.2,i),zoomTo:(i,o)=>new Promise(s=>{t.d3Selection&&t.d3Zoom?t.d3Zoom.interpolate((o==null?void 0:o.interpolate)==="linear"?Gc:rp).scaleTo(_0(t.d3Selection,o==null?void 0:o.duration,o==null?void 0:o.ease,()=>{s(!0)}),i):s(!1)}),setViewport:(i,o)=>n(i.x,i.y,i.zoom,o),setTransform:(i,o)=>n(i.x,i.y,i.zoom,o),getViewport:()=>({x:t.viewport.x,y:t.viewport.y,zoom:t.viewport.zoom}),getTransform:()=>({x:t.viewport.x,y:t.viewport.y,zoom:t.viewport.zoom}),fitView:(i={padding:xp,includeHiddenNodes:!1,duration:0})=>{var o,s;const a=[];for(const h of t.nodes)h.dimensions.width&&h.dimensions.height&&((i==null?void 0:i.includeHiddenNodes)||!h.hidden)&&(!((o=i.nodes)!=null&&o.length)||(s=i.nodes)!=null&&s.length&&i.nodes.includes(h.id))&&a.push(h);if(!a.length)return Promise.resolve(!1);const l=XC(a),{x:u,y:c,zoom:d}=QC(l,t.dimensions.width,t.dimensions.height,i.minZoom??t.minZoom,i.maxZoom??t.maxZoom,i.padding??xp);return n(u,c,d,i)},setCenter:(i,o,s)=>{const a=typeof(s==null?void 0:s.zoom)<"u"?s.zoom:t.maxZoom,l=t.dimensions.width/2-i*a,u=t.dimensions.height/2-o*a;return n(l,u,a,s)},fitBounds:(i,o={padding:xp})=>{const{x:s,y:a,zoom:l}=QC(i,t.dimensions.width,t.dimensions.height,t.minZoom,t.maxZoom,o.padding??xp);return n(s,a,l,o)},project:i=>td(i,t.viewport,t.snapToGrid,t.snapGrid),screenToFlowCoordinate:i=>{if(t.vueFlowRef){const{x:o,y:s}=t.vueFlowRef.getBoundingClientRect(),a={x:i.x-o,y:i.y-s};return td(a,t.viewport,t.snapToGrid,t.snapGrid)}return{x:0,y:0}},flowToScreenCoordinate:i=>{if(t.vueFlowRef){const{x:o,y:s}=t.vueFlowRef.getBoundingClientRect(),a={x:i.x+o,y:i.y+s};return ed(a,t.viewport)}return{x:0,y:0}}}:OZ)}function _0(t,e=0,n=kZ,r=()=>{}){const i=typeof e=="number"&&e>0;return i||r(),i?t.transition().duration(e).ease(n).on("end",r):t}function RZ(t,e,n){const r=Kp(!0);return r.run(()=>{const i=()=>{r.run(()=>{let m,_,E=!!(n.nodes.value.length||n.edges.value.length);m=Wl([t.modelValue,()=>{var w,v;return(v=(w=t.modelValue)==null?void 0:w.value)==null?void 0:v.length}],([w])=>{w&&Array.isArray(w)&&(_==null||_.pause(),n.setElements(w),!_&&!E&&w.length?E=!0:_==null||_.resume())}),_=Wl([n.nodes,n.edges,()=>n.edges.value.length,()=>n.nodes.value.length],([w,v])=>{var y;(y=t.modelValue)!=null&&y.value&&Array.isArray(t.modelValue.value)&&(m==null||m.pause(),t.modelValue.value=[...w,...v],pr(()=>{m==null||m.resume()}))},{immediate:E}),cu(()=>{m==null||m.stop(),_==null||_.stop()})})},o=()=>{r.run(()=>{let m,_,E=!!n.nodes.value.length;m=Wl([t.nodes,()=>{var w,v;return(v=(w=t.nodes)==null?void 0:w.value)==null?void 0:v.length}],([w])=>{w&&Array.isArray(w)&&(_==null||_.pause(),n.setNodes(w),!_&&!E&&w.length?E=!0:_==null||_.resume())}),_=Wl([n.nodes,()=>n.nodes.value.length],([w])=>{var v;(v=t.nodes)!=null&&v.value&&Array.isArray(t.nodes.value)&&(m==null||m.pause(),t.nodes.value=[...w],pr(()=>{m==null||m.resume()}))},{immediate:E}),cu(()=>{m==null||m.stop(),_==null||_.stop()})})},s=()=>{r.run(()=>{let m,_,E=!!n.edges.value.length;m=Wl([t.edges,()=>{var w,v;return(v=(w=t.edges)==null?void 0:w.value)==null?void 0:v.length}],([w])=>{w&&Array.isArray(w)&&(_==null||_.pause(),n.setEdges(w),!_&&!E&&w.length?E=!0:_==null||_.resume())}),_=Wl([n.edges,()=>n.edges.value.length],([w])=>{var v;(v=t.edges)!=null&&v.value&&Array.isArray(t.edges.value)&&(m==null||m.pause(),t.edges.value=[...w],pr(()=>{m==null||m.resume()}))},{immediate:E}),cu(()=>{m==null||m.stop(),_==null||_.stop()})})},a=()=>{r.run(()=>{Qe(()=>e.maxZoom,()=>{e.maxZoom&&In(e.maxZoom)&&n.setMaxZoom(e.maxZoom)},{immediate:!0})})},l=()=>{r.run(()=>{Qe(()=>e.minZoom,()=>{e.minZoom&&In(e.minZoom)&&n.setMinZoom(e.minZoom)},{immediate:!0})})},u=()=>{r.run(()=>{Qe(()=>e.translateExtent,()=>{e.translateExtent&&In(e.translateExtent)&&n.setTranslateExtent(e.translateExtent)},{immediate:!0})})},c=()=>{r.run(()=>{Qe(()=>e.nodeExtent,()=>{e.nodeExtent&&In(e.nodeExtent)&&n.setNodeExtent(e.nodeExtent)},{immediate:!0})})},d=()=>{r.run(()=>{Qe(()=>e.applyDefault,()=>{In(e.applyDefault)&&(n.applyDefault.value=e.applyDefault)},{immediate:!0})})},h=()=>{r.run(()=>{const m=async _=>{let E=_;typeof e.autoConnect=="function"&&(E=await e.autoConnect(_)),E!==!1&&n.addEdges([E])};Qe(()=>e.autoConnect,()=>{In(e.autoConnect)&&(n.autoConnect.value=e.autoConnect)},{immediate:!0}),Qe(n.autoConnect,(_,E,w)=>{_?n.onConnect(m):n.hooks.value.connect.off(m),w(()=>{n.hooks.value.connect.off(m)})},{immediate:!0})})},p=()=>{const m=["id","modelValue","translateExtent","nodeExtent","edges","nodes","maxZoom","minZoom","applyDefault","autoConnect"];for(const _ of Object.keys(e)){const E=_;if(!m.includes(E)){const w=Ot(()=>e[E]),v=n[E];Yt(v)&&r.run(()=>{Qe(w,y=>{In(y)&&(v.value=y)},{immediate:!0})})}}};(()=>{i(),o(),s(),l(),a(),u(),c(),d(),h(),p()})()}),()=>r.stop()}function $Z(){return{edgesChange:Ne(),nodesChange:Ne(),nodeDoubleClick:Ne(),nodeClick:Ne(),nodeMouseEnter:Ne(),nodeMouseMove:Ne(),nodeMouseLeave:Ne(),nodeContextMenu:Ne(),nodeDragStart:Ne(),nodeDrag:Ne(),nodeDragStop:Ne(),nodesInitialized:Ne(),miniMapNodeClick:Ne(),miniMapNodeDoubleClick:Ne(),miniMapNodeMouseEnter:Ne(),miniMapNodeMouseMove:Ne(),miniMapNodeMouseLeave:Ne(),connect:Ne(),connectStart:Ne(),connectEnd:Ne(),clickConnectStart:Ne(),clickConnectEnd:Ne(),paneReady:Ne(),init:Ne(),move:Ne(),moveStart:Ne(),moveEnd:Ne(),selectionDragStart:Ne(),selectionDrag:Ne(),selectionDragStop:Ne(),selectionContextMenu:Ne(),selectionStart:Ne(),selectionEnd:Ne(),viewportChangeStart:Ne(),viewportChange:Ne(),viewportChangeEnd:Ne(),paneScroll:Ne(),paneClick:Ne(),paneContextMenu:Ne(),paneMouseEnter:Ne(),paneMouseMove:Ne(),paneMouseLeave:Ne(),edgeContextMenu:Ne(),edgeMouseEnter:Ne(),edgeMouseMove:Ne(),edgeMouseLeave:Ne(),edgeDoubleClick:Ne(),edgeClick:Ne(),edgeUpdateStart:Ne(),edgeUpdate:Ne(),edgeUpdateEnd:Ne(),updateNodeInternals:Ne(),error:Ne(t=>rd(t.message))}}function DZ(t,e){const n=_n();hg(()=>{for(const[i,o]of Object.entries(e.value)){const s=a=>{t(i,a)};o.setEmitter(s),Fc(o.removeEmitter),o.setHasEmitListeners(()=>r(i)),Fc(o.removeHasEmitListeners)}});function r(i){var o;const s=MZ(i);return!!((o=n==null?void 0:n.vnode.props)==null?void 0:o[s])}}function MZ(t){const[e,...n]=t.split(":");return`on${e.replace(/(?:^|-)(\w)/g,(i,o)=>o.toUpperCase())}${n.length?`:${n.join(":")}`:""}`}function CA(){return{vueFlowRef:null,viewportRef:null,nodes:[],edges:[],connectionLookup:new Map,nodeTypes:{},edgeTypes:{},initialized:!1,dimensions:{width:0,height:0},viewport:{x:0,y:0,zoom:1},d3Zoom:null,d3Selection:null,d3ZoomHandler:null,minZoom:.5,maxZoom:2,translateExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],nodeExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],selectionMode:a0.Full,paneDragging:!1,preventScrolling:!0,zoomOnScroll:!0,zoomOnPinch:!0,zoomOnDoubleClick:!0,panOnScroll:!1,panOnScrollSpeed:.5,panOnScrollMode:Jc.Free,paneClickDistance:0,panOnDrag:!0,edgeUpdaterRadius:10,onlyRenderVisibleElements:!1,defaultViewport:{x:0,y:0,zoom:1},nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,defaultMarkerColor:"#b1b1b7",connectionLineStyle:{},connectionLineType:null,connectionLineOptions:{type:ya.Bezier,style:{}},connectionMode:hs.Loose,connectionStartHandle:null,connectionEndHandle:null,connectionClickStartHandle:null,connectionPosition:{x:Number.NaN,y:Number.NaN},connectionRadius:20,connectOnClick:!0,connectionStatus:null,isValidConnection:null,snapGrid:[15,15],snapToGrid:!1,edgesUpdatable:!1,edgesFocusable:!0,nodesFocusable:!0,nodesConnectable:!0,nodesDraggable:!0,nodeDragThreshold:1,elementsSelectable:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,selectionKeyCode:"Shift",multiSelectionKeyCode:vp()?"Meta":"Control",zoomActivationKeyCode:vp()?"Meta":"Control",deleteKeyCode:"Backspace",panActivationKeyCode:"Space",hooks:$Z(),applyDefault:!0,autoConnect:!1,fitViewOnInit:!1,fitViewOnInitDone:!1,noDragClassName:"nodrag",noWheelClassName:"nowheel",noPanClassName:"nopan",defaultEdgeOptions:void 0,elevateEdgesOnSelect:!1,elevateNodesOnSelect:!0,autoPanOnNodeDrag:!0,autoPanOnConnect:!0,autoPanSpeed:15,disableKeyboardA11y:!1,ariaLiveMessage:""}}const LZ=["id","vueFlowRef","viewportRef","initialized","modelValue","nodes","edges","maxZoom","minZoom","translateExtent","hooks","defaultEdgeOptions"];function VZ(t,e,n){const r=NZ(t),i=D=>{const L=D??[];t.hooks.updateNodeInternals.trigger(L)},o=D=>qK(D,t.nodes,t.edges),s=D=>QK(D,t.nodes,t.edges),a=D=>JC(D,t.edges),l=({id:D,type:L,nodeId:z})=>{var F;const W=D?`-${L}-${D}`:`-${L}`;return Array.from(((F=t.connectionLookup.get(`${z}${W}`))==null?void 0:F.values())??[])},u=D=>{if(D)return e.value.get(D)},c=D=>{if(D)return n.value.get(D)},d=(D,L,z)=>{var F,W;const ee=[];for(const Y of D){const te={id:Y.id,type:"position",dragging:z,from:Y.from};if(L&&(te.position=Y.position,Y.parentNode)){const J=u(Y.parentNode);te.position={x:te.position.x-(((F=J==null?void 0:J.computedPosition)==null?void 0:F.x)??0),y:te.position.y-(((W=J==null?void 0:J.computedPosition)==null?void 0:W.y)??0)}}ee.push(te)}ee!=null&&ee.length&&t.hooks.nodesChange.trigger(ee)},h=D=>{if(!t.vueFlowRef)return;const L=t.vueFlowRef.querySelector(".vue-flow__transformationpane");if(!L)return;const z=window.getComputedStyle(L),{m22:F}=new window.DOMMatrixReadOnly(z.transform),W=[];for(const ee of D){const Y=ee,te=u(Y.id);if(te){const J=gp(Y.nodeElement);if(!!(J.width&&J.height&&(te.dimensions.width!==J.width||te.dimensions.height!==J.height||Y.forceUpdate))){const pe=Y.nodeElement.getBoundingClientRect();te.dimensions=J,te.handleBounds.source=mA("source",Y.nodeElement,pe,F,te.id),te.handleBounds.target=mA("target",Y.nodeElement,pe,F,te.id),W.push({id:te.id,type:"dimensions",dimensions:J})}}}!t.fitViewOnInitDone&&t.fitViewOnInit&&r.value.fitView().then(()=>{t.fitViewOnInitDone=!0}),W.length&&t.hooks.nodesChange.trigger(W)},p=(D,L)=>{const z=new Set,F=new Set;for(const Y of D)ba(Y)?z.add(Y.id):ps(Y)&&F.add(Y.id);const W=ms(e.value,z,!0),ee=ms(n.value,F);if(t.multiSelectionActive){for(const Y of z)W.push(gs(Y,L));for(const Y of F)ee.push(gs(Y,L))}W.length&&t.hooks.nodesChange.trigger(W),ee.length&&t.hooks.edgesChange.trigger(ee)},g=D=>{if(t.multiSelectionActive){const L=D.map(z=>gs(z.id,!0));t.hooks.nodesChange.trigger(L);return}t.hooks.nodesChange.trigger(ms(e.value,new Set(D.map(L=>L.id)),!0)),t.hooks.edgesChange.trigger(ms(n.value))},m=D=>{if(t.multiSelectionActive){const L=D.map(z=>gs(z.id,!0));t.hooks.edgesChange.trigger(L);return}t.hooks.edgesChange.trigger(ms(n.value,new Set(D.map(L=>L.id)))),t.hooks.nodesChange.trigger(ms(e.value,new Set,!0))},_=D=>{p(D,!0)},E=D=>{const z=(D||t.nodes).map(F=>(F.selected=!1,gs(F.id,!1)));t.hooks.nodesChange.trigger(z)},w=D=>{const z=(D||t.edges).map(F=>(F.selected=!1,gs(F.id,!1)));t.hooks.edgesChange.trigger(z)},v=D=>{if(!D||!D.length)return p([],!1);const L=D.reduce((z,F)=>{const W=gs(F.id,!1);return ba(F)?z.nodes.push(W):z.edges.push(W),z},{nodes:[],edges:[]});L.nodes.length&&t.hooks.nodesChange.trigger(L.nodes),L.edges.length&&t.hooks.edgesChange.trigger(L.edges)},y=D=>{var L;(L=t.d3Zoom)==null||L.scaleExtent([D,t.maxZoom]),t.minZoom=D},k=D=>{var L;(L=t.d3Zoom)==null||L.scaleExtent([t.minZoom,D]),t.maxZoom=D},$=D=>{var L;(L=t.d3Zoom)==null||L.translateExtent(D),t.translateExtent=D},O=D=>{t.nodeExtent=D,i()},A=D=>{var L;(L=t.d3Zoom)==null||L.clickDistance(D)},x=D=>{t.nodesDraggable=D,t.nodesConnectable=D,t.elementsSelectable=D},N=D=>{const L=D instanceof Function?D(t.nodes):D;!t.initialized&&!L.length||(t.nodes=vA(L,u,t.hooks.error.trigger))},P=D=>{const L=D instanceof Function?D(t.edges):D;if(!t.initialized&&!L.length)return;const z=y0(L,t.isValidConnection,u,c,t.hooks.error.trigger,t.defaultEdgeOptions,t.nodes,t.edges);v0(t.connectionLookup,n.value,z),t.edges=z},b=D=>{const L=D instanceof Function?D([...t.nodes,...t.edges]):D;!t.initialized&&!L.length||(N(L.filter(ba)),P(L.filter(ps)))},S=D=>{let L=D instanceof Function?D(t.nodes):D;L=Array.isArray(L)?L:[L];const z=vA(L,u,t.hooks.error.trigger),F=[];for(const W of z)F.push(iA(W));F.length&&t.hooks.nodesChange.trigger(F)},I=D=>{let L=D instanceof Function?D(t.edges):D;L=Array.isArray(L)?L:[L];const z=y0(L,t.isValidConnection,u,c,t.hooks.error.trigger,t.defaultEdgeOptions,t.nodes,t.edges),F=[];for(const W of z)F.push(iA(W));F.length&&t.hooks.edgesChange.trigger(F)},V=(D,L=!0,z=!1)=>{const F=D instanceof Function?D(t.nodes):D,W=Array.isArray(F)?F:[F],ee=[],Y=[];function te(ye){const pe=a(ye);for(const be of pe)(!In(be.deletable)||be.deletable)&&Y.push(sA(be.id,be.source,be.target,be.sourceHandle,be.targetHandle))}function J(ye){const pe=[];for(const be of t.nodes)be.parentNode===ye&&pe.push(be);if(pe.length){for(const be of pe)ee.push(oA(be.id));L&&te(pe);for(const be of pe)J(be.id)}}for(const ye of W){const pe=typeof ye=="string"?u(ye):ye;pe&&(In(pe.deletable)&&!pe.deletable||(ee.push(oA(pe.id)),L&&te([pe]),z&&J(pe.id)))}Y.length&&t.hooks.edgesChange.trigger(Y),ee.length&&t.hooks.nodesChange.trigger(ee)},M=D=>{const L=D instanceof Function?D(t.edges):D,z=Array.isArray(L)?L:[L],F=[];for(const W of z){const ee=typeof W=="string"?c(W):W;ee&&(In(ee.deletable)&&!ee.deletable||F.push(sA(typeof W=="string"?W:W.id,ee.source,ee.target,ee.sourceHandle,ee.targetHandle)))}t.hooks.edgesChange.trigger(F)},H=(D,L,z=!0)=>{const F=c(D.id);if(!F)return!1;const W=t.edges.indexOf(F),ee=wZ(D,L,F,z,t.hooks.error.trigger);if(ee){const[Y]=y0([ee],t.isValidConnection,u,c,t.hooks.error.trigger,t.defaultEdgeOptions,t.nodes,t.edges);return t.edges=t.edges.map((te,J)=>J===W?Y:te),v0(t.connectionLookup,n.value,[Y]),Y}return!1},G=(D,L,z={replace:!1})=>{const F=c(D);if(!F)return;const W=typeof L=="function"?L(F):L;F.data=z.replace?W:{...F.data,...W}},q=D=>rA(D,t.nodes),oe=D=>{const L=rA(D,t.edges);return v0(t.connectionLookup,n.value,L),L},ae=(D,L,z={replace:!1})=>{const F=u(D);if(!F)return;const W=typeof L=="function"?L(F):L;z.replace?t.nodes.splice(t.nodes.indexOf(F),1,W):Object.assign(F,W)},he=(D,L,z={replace:!1})=>{const F=u(D);if(!F)return;const W=typeof L=="function"?L(F):L;F.data=z.replace?W:{...F.data,...W}},xe=(D,L,z=!1)=>{z?t.connectionClickStartHandle=D:t.connectionStartHandle=D,t.connectionEndHandle=null,t.connectionStatus=null,L&&(t.connectionPosition=L)},Ee=(D,L=null,z=null)=>{t.connectionStartHandle&&(t.connectionPosition=D,t.connectionEndHandle=L,t.connectionStatus=z)},de=(D,L)=>{t.connectionPosition={x:Number.NaN,y:Number.NaN},t.connectionEndHandle=null,t.connectionStatus=null,L?t.connectionClickStartHandle=null:t.connectionStartHandle=null},ce=D=>{const L=YK(D),z=L?null:qc(D)?D:u(D.id);return!L&&!z?[null,null,L]:[L?D:hp(z),z,L]},fe=(D,L=!0,z=t.nodes)=>{const[F,W,ee]=ce(D);if(!F)return[];const Y=[];for(const te of z||t.nodes){if(!ee&&(te.id===W.id||!te.computedPosition))continue;const J=hp(te),ye=pp(J,F);(L&&ye>0||ye>=J.width*J.height||ye>=Number(F.width)*Number(F.height))&&Y.push(te)}return Y},Le=(D,L,z=!0)=>{const[F]=ce(D);if(!F)return!1;const W=pp(F,L);return z&&W>0||W>=Number(F.width)*Number(F.height)},Re=D=>{const{viewport:L,dimensions:z,d3Zoom:F,d3Selection:W,translateExtent:ee}=t;if(!F||!W||!D.x&&!D.y)return!1;const Y=Jl.translate(L.x+D.x,L.y+D.y).scale(L.zoom),te=[[0,0],[z.width,z.height]],J=F.constrain()(Y,te,ee),ye=t.viewport.x!==J.x||t.viewport.y!==J.y||t.viewport.zoom!==J.k;return F.transform(W,J),ye},Be=D=>{const L=D instanceof Function?D(t):D,z=["d3Zoom","d3Selection","d3ZoomHandler","viewportRef","vueFlowRef","dimensions","hooks"];In(L.defaultEdgeOptions)&&(t.defaultEdgeOptions=L.defaultEdgeOptions);const F=L.modelValue||L.nodes||L.edges?[]:void 0;F&&(L.modelValue&&F.push(...L.modelValue),L.nodes&&F.push(...L.nodes),L.edges&&F.push(...L.edges),b(F));const W=()=>{In(L.maxZoom)&&k(L.maxZoom),In(L.minZoom)&&y(L.minZoom),In(L.translateExtent)&&$(L.translateExtent)};for(const ee of Object.keys(L)){const Y=ee,te=L[Y];![...LZ,...z].includes(Y)&&In(te)&&(t[Y]=te)}zy(()=>t.d3Zoom).not.toBeNull().then(W),t.initialized||(t.initialized=!0)};return{updateNodePositions:d,updateNodeDimensions:h,setElements:b,setNodes:N,setEdges:P,addNodes:S,addEdges:I,removeNodes:V,removeEdges:M,findNode:u,findEdge:c,updateEdge:H,updateEdgeData:G,updateNode:ae,updateNodeData:he,applyEdgeChanges:oe,applyNodeChanges:q,addSelectedElements:_,addSelectedNodes:g,addSelectedEdges:m,setMinZoom:y,setMaxZoom:k,setTranslateExtent:$,setNodeExtent:O,setPaneClickDistance:A,removeSelectedElements:v,removeSelectedNodes:E,removeSelectedEdges:w,startConnection:xe,updateConnection:Ee,endConnection:de,setInteractive:x,setState:Be,getIntersectingNodes:fe,getIncomers:o,getOutgoers:s,getConnectedEdges:a,getHandleConnections:l,isNodeIntersecting:Le,panBy:Re,fitView:D=>r.value.fitView(D),zoomIn:D=>r.value.zoomIn(D),zoomOut:D=>r.value.zoomOut(D),zoomTo:(D,L)=>r.value.zoomTo(D,L),setViewport:(D,L)=>r.value.setViewport(D,L),setTransform:(D,L)=>r.value.setTransform(D,L),getViewport:()=>r.value.getViewport(),getTransform:()=>r.value.getTransform(),setCenter:(D,L,z)=>r.value.setCenter(D,L,z),fitBounds:(D,L)=>r.value.fitBounds(D,L),project:D=>r.value.project(D),screenToFlowCoordinate:D=>r.value.screenToFlowCoordinate(D),flowToScreenCoordinate:D=>r.value.flowToScreenCoordinate(D),toObject:()=>{const D=[],L=[];for(const z of t.nodes){const{computedPosition:F,handleBounds:W,selected:ee,dimensions:Y,isParent:te,resizing:J,dragging:ye,events:pe,...be}=z;D.push(be)}for(const z of t.edges){const{selected:F,sourceNode:W,targetNode:ee,events:Y,...te}=z;L.push(te)}return JSON.parse(JSON.stringify({nodes:D,edges:L,position:[t.viewport.x,t.viewport.y],zoom:t.viewport.zoom,viewport:t.viewport}))},fromObject:D=>new Promise(L=>{const{nodes:z,edges:F,position:W,zoom:ee,viewport:Y}=D;z&&N(z),F&&P(F);const[te,J]=Y!=null&&Y.x&&(Y!=null&&Y.y)?[Y.x,Y.y]:W??[null,null];if(te&&J){const ye=(Y==null?void 0:Y.zoom)||ee||t.viewport.zoom;return zy(()=>r.value.viewportInitialized).toBe(!0).then(()=>{r.value.setViewport({x:te,y:J,zoom:ye}).then(()=>{L(!0)})})}else L(!0)}),updateNodeInternals:i,viewportHelper:r,$reset:()=>{const D=CA();if(t.edges=[],t.nodes=[],t.d3Zoom&&t.d3Selection){const L=Jl.translate(D.defaultViewport.x??0,D.defaultViewport.y??0).scale(Ao(D.defaultViewport.zoom??1,D.minZoom,D.maxZoom)),z=t.viewportRef.getBoundingClientRect(),F=[[0,0],[z.width,z.height]],W=t.d3Zoom.constrain()(L,F,D.translateExtent);t.d3Zoom.transform(t.d3Selection,W)}Be(D)},$destroy:()=>{}}}const FZ=["data-id","data-handleid","data-nodeid","data-handlepos"],ys=Te({...{name:"Handle",compatConfig:{MODE:3}},props:{id:{default:null},type:{},position:{default:()=>Fe.Top},isValidConnection:{type:Function},connectable:{type:[Boolean,Number,String,Function],default:void 0},connectableStart:{type:Boolean,default:!0},connectableEnd:{type:Boolean,default:!0}},setup(t,{expose:e}){const n=n_(t,["position","connectable","connectableStart","connectableEnd","id"]),r=Ot(()=>n.type??"source"),i=Ot(()=>n.isValidConnection??null),{id:o,connectionStartHandle:s,connectionClickStartHandle:a,connectionEndHandle:l,vueFlowRef:u,nodesConnectable:c,noDragClassName:d,noPanClassName:h}=$t(),{id:p,node:g,nodeEl:m,connectedEdges:_}=TA(),E=we(),w=Ot(()=>typeof t.connectableStart<"u"?t.connectableStart:!0),v=Ot(()=>typeof t.connectableEnd<"u"?t.connectableEnd:!0),y=Ot(()=>{var P,b,S,I,V,M;return((P=s.value)==null?void 0:P.nodeId)===p&&((b=s.value)==null?void 0:b.id)===t.id&&((S=s.value)==null?void 0:S.type)===r.value||((I=l.value)==null?void 0:I.nodeId)===p&&((V=l.value)==null?void 0:V.id)===t.id&&((M=l.value)==null?void 0:M.type)===r.value}),k=Ot(()=>{var P,b,S;return((P=a.value)==null?void 0:P.nodeId)===p&&((b=a.value)==null?void 0:b.id)===t.id&&((S=a.value)==null?void 0:S.type)===r.value}),{handlePointerDown:$,handleClick:O}=EA({nodeId:p,handleId:t.id,isValidConnection:i,type:r}),A=Z(()=>typeof t.connectable=="string"&&t.connectable==="single"?!_.value.some(P=>{const b=P[`${r.value}Handle`];return P[r.value]!==p?!1:b?b===t.id:!0}):typeof t.connectable=="number"?_.value.filter(P=>{const b=P[`${r.value}Handle`];return P[r.value]!==p?!1:b?b===t.id:!0}).length<t.connectable:typeof t.connectable=="function"?t.connectable(g,_.value):In(t.connectable)?t.connectable:c.value);jt(()=>{var P;if(!g.dimensions.width||!g.dimensions.height)return;const b=(P=g.handleBounds[r.value])==null?void 0:P.find(q=>q.id===t.id);if(!u.value||b)return;const S=u.value.querySelector(".vue-flow__transformationpane");if(!m.value||!E.value||!S||!t.id)return;const I=m.value.getBoundingClientRect(),V=E.value.getBoundingClientRect(),M=window.getComputedStyle(S),{m22:H}=new window.DOMMatrixReadOnly(M.transform),G={id:t.id,position:t.position,x:(V.left-I.left)/H,y:(V.top-I.top)/H,type:r.value,nodeId:p,...gp(E.value)};g.handleBounds[r.value]=[...g.handleBounds[r.value]??[],G]});function x(P){const b=h0(P);A.value&&w.value&&(b&&P.button===0||!b)&&$(P)}function N(P){!p||!a.value&&!w.value||A.value&&O(P)}return e({handleClick:O,handlePointerDown:$,onClick:N,onPointerDown:x}),(P,b)=>(j(),K("div",{ref_key:"handle",ref:E,"data-id":`${re(o)}-${re(p)}-${t.id}-${r.value}`,"data-handleid":t.id,"data-nodeid":re(p),"data-handlepos":P.position,class:Se(["vue-flow__handle",[`vue-flow__handle-${P.position}`,`vue-flow__handle-${t.id}`,re(d),re(h),r.value,{connectable:A.value,connecting:k.value,connectablestart:w.value,connectableend:v.value,connectionindicator:A.value&&(w.value&&!y.value||v.value&&y.value)}]]),onMousedown:x,onTouchstartPassive:x,onClick:N},[Mt(P.$slots,"default",{id:P.id})],42,FZ))}}),wp=function({sourcePosition:t=Fe.Bottom,targetPosition:e=Fe.Top,label:n,connectable:r=!0,isValidTargetPos:i,isValidSourcePos:o,data:s}){const a=s.label??n;return[qe(ys,{type:"target",position:e,connectable:r,isValidConnection:i}),typeof a!="string"&&a?qe(a):qe(Ue,[a]),qe(ys,{type:"source",position:t,connectable:r,isValidConnection:o})]};wp.props=["sourcePosition","targetPosition","label","isValidTargetPos","isValidSourcePos","connectable","data"],wp.inheritAttrs=!1,wp.compatConfig={MODE:3};const zZ=wp,Sp=function({targetPosition:t=Fe.Top,label:e,connectable:n=!0,isValidTargetPos:r,data:i}){const o=i.label??e;return[qe(ys,{type:"target",position:t,connectable:n,isValidConnection:r}),typeof o!="string"&&o?qe(o):qe(Ue,[o])]};Sp.props=["targetPosition","label","isValidTargetPos","connectable","data"],Sp.inheritAttrs=!1,Sp.compatConfig={MODE:3};const UZ=Sp,Ep=function({sourcePosition:t=Fe.Bottom,label:e,connectable:n=!0,isValidSourcePos:r,data:i}){const o=i.label??e;return[typeof o!="string"&&o?qe(o):qe(Ue,[o]),qe(ys,{type:"source",position:t,connectable:n,isValidConnection:r})]};Ep.props=["sourcePosition","label","isValidSourcePos","connectable","data"],Ep.inheritAttrs=!1,Ep.compatConfig={MODE:3};const BZ=Ep,jZ=["transform"],HZ=["width","height","x","y","rx","ry"],GZ=["y"],WZ=Te({...{name:"EdgeText",compatConfig:{MODE:3}},props:{x:{},y:{},label:{},labelStyle:{default:()=>({})},labelShowBg:{type:Boolean,default:!0},labelBgStyle:{default:()=>({})},labelBgPadding:{default:()=>[2,4]},labelBgBorderRadius:{default:2}},setup(t){const e=we({x:0,y:0,width:0,height:0}),n=we(null),r=Z(()=>`translate(${t.x-e.value.width/2} ${t.y-e.value.height/2})`);jt(i),Qe([()=>t.x,()=>t.y,n,()=>t.label],i);function i(){if(!n.value)return;const o=n.value.getBBox();(o.width!==e.value.width||o.height!==e.value.height)&&(e.value=o)}return(o,s)=>(j(),K("g",{transform:r.value,class:"vue-flow__edge-textwrapper"},[o.labelShowBg?(j(),K("rect",{key:0,class:"vue-flow__edge-textbg",width:`${e.value.width+2*o.labelBgPadding[0]}px`,height:`${e.value.height+2*o.labelBgPadding[1]}px`,x:-o.labelBgPadding[0],y:-o.labelBgPadding[1],style:Xe(o.labelBgStyle),rx:o.labelBgBorderRadius,ry:o.labelBgBorderRadius},null,12,HZ)):Oe("",!0),C("text",ao(o.$attrs,{ref_key:"el",ref:n,class:"vue-flow__edge-text",y:e.value.height/2,dy:"0.3em",style:o.labelStyle}),[Mt(o.$slots,"default",{},()=>[typeof o.label!="string"?(j(),$e(Xn(o.label),{key:0})):(j(),K(Ue,{key:1},[bt(Ie(o.label),1)],64))])],16,GZ)],8,jZ))}}),KZ=["id","d","marker-end","marker-start"],ZZ=["d","stroke-width"],Tp=Te({...{name:"BaseEdge",inheritAttrs:!1,compatConfig:{MODE:3}},props:{id:{},labelX:{},labelY:{},path:{},label:{},markerStart:{},markerEnd:{},interactionWidth:{default:20},labelStyle:{},labelShowBg:{type:Boolean},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{}},setup(t,{expose:e}){const n=we(null),r=we(null),i=we(null),o=e_();return e({pathEl:n,interactionEl:r,labelEl:i}),(s,a)=>(j(),K(Ue,null,[C("path",ao(re(o),{id:s.id,ref_key:"pathEl",ref:n,d:s.path,class:"vue-flow__edge-path","marker-end":s.markerEnd,"marker-start":s.markerStart}),null,16,KZ),s.interactionWidth?(j(),K("path",{key:0,ref_key:"interactionEl",ref:r,fill:"none",d:s.path,"stroke-width":s.interactionWidth,"stroke-opacity":0,class:"vue-flow__edge-interaction"},null,8,ZZ)):Oe("",!0),s.label&&s.labelX&&s.labelY?(j(),$e(WZ,{key:1,ref_key:"labelEl",ref:i,x:s.labelX,y:s.labelY,label:s.label,"label-show-bg":s.labelShowBg,"label-bg-style":s.labelBgStyle,"label-bg-padding":s.labelBgPadding,"label-bg-border-radius":s.labelBgBorderRadius,"label-style":s.labelStyle},null,8,["x","y","label","label-show-bg","label-bg-style","label-bg-padding","label-bg-border-radius","label-style"])):Oe("",!0)],64))}});function AA({sourceX:t,sourceY:e,targetX:n,targetY:r}){const i=Math.abs(n-t)/2,o=n<t?n+i:n-i,s=Math.abs(r-e)/2,a=r<e?r+s:r-s;return[o,a,i,s]}function PA({sourceX:t,sourceY:e,targetX:n,targetY:r,sourceControlX:i,sourceControlY:o,targetControlX:s,targetControlY:a}){const l=t*.125+i*.375+s*.375+n*.125,u=e*.125+o*.375+a*.375+r*.125,c=Math.abs(l-t),d=Math.abs(u-e);return[l,u,c,d]}function Ip(t,e){return t>=0?.5*t:e*25*Math.sqrt(-t)}function kA({pos:t,x1:e,y1:n,x2:r,y2:i,c:o}){let s,a;switch(t){case Fe.Left:s=e-Ip(e-r,o),a=n;break;case Fe.Right:s=e+Ip(r-e,o),a=n;break;case Fe.Top:s=e,a=n-Ip(n-i,o);break;case Fe.Bottom:s=e,a=n+Ip(i-n,o);break}return[s,a]}function OA(t){const{sourceX:e,sourceY:n,sourcePosition:r=Fe.Bottom,targetX:i,targetY:o,targetPosition:s=Fe.Top,curvature:a=.25}=t,[l,u]=kA({pos:r,x1:e,y1:n,x2:i,y2:o,c:a}),[c,d]=kA({pos:s,x1:i,y1:o,x2:e,y2:n,c:a}),[h,p,g,m]=PA({sourceX:e,sourceY:n,targetX:i,targetY:o,sourceControlX:l,sourceControlY:u,targetControlX:c,targetControlY:d});return[`M${e},${n} C${l},${u} ${c},${d} ${i},${o}`,h,p,g,m]}function NA({pos:t,x1:e,y1:n,x2:r,y2:i}){let o,s;switch(t){case Fe.Left:case Fe.Right:o=.5*(e+r),s=n;break;case Fe.Top:case Fe.Bottom:o=e,s=.5*(n+i);break}return[o,s]}function RA(t){const{sourceX:e,sourceY:n,sourcePosition:r=Fe.Bottom,targetX:i,targetY:o,targetPosition:s=Fe.Top}=t,[a,l]=NA({pos:r,x1:e,y1:n,x2:i,y2:o}),[u,c]=NA({pos:s,x1:i,y1:o,x2:e,y2:n}),[d,h,p,g]=PA({sourceX:e,sourceY:n,targetX:i,targetY:o,sourceControlX:a,sourceControlY:l,targetControlX:u,targetControlY:c});return[`M${e},${n} C${a},${l} ${u},${c} ${i},${o}`,d,h,p,g]}const $A={[Fe.Left]:{x:-1,y:0},[Fe.Right]:{x:1,y:0},[Fe.Top]:{x:0,y:-1},[Fe.Bottom]:{x:0,y:1}};function XZ({source:t,sourcePosition:e=Fe.Bottom,target:n}){return e===Fe.Left||e===Fe.Right?t.x<n.x?{x:1,y:0}:{x:-1,y:0}:t.y<n.y?{x:0,y:1}:{x:0,y:-1}}function DA(t,e){return Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2)}function YZ({source:t,sourcePosition:e=Fe.Bottom,target:n,targetPosition:r=Fe.Top,center:i,offset:o}){const s=$A[e],a=$A[r],l={x:t.x+s.x*o,y:t.y+s.y*o},u={x:n.x+a.x*o,y:n.y+a.y*o},c=XZ({source:l,sourcePosition:e,target:u}),d=c.x!==0?"x":"y",h=c[d];let p,g,m;const _={x:0,y:0},E={x:0,y:0},[w,v,y,k]=AA({sourceX:t.x,sourceY:t.y,targetX:n.x,targetY:n.y});if(s[d]*a[d]===-1){g=i.x??w,m=i.y??v;const O=[{x:g,y:l.y},{x:g,y:u.y}],A=[{x:l.x,y:m},{x:u.x,y:m}];s[d]===h?p=d==="x"?O:A:p=d==="x"?A:O}else{const O=[{x:l.x,y:u.y}],A=[{x:u.x,y:l.y}];if(d==="x"?p=s.x===h?A:O:p=s.y===h?O:A,e===r){const S=Math.abs(t[d]-n[d]);if(S<=o){const I=Math.min(o-1,o-S);s[d]===h?_[d]=(l[d]>t[d]?-1:1)*I:E[d]=(u[d]>n[d]?-1:1)*I}}if(e!==r){const S=d==="x"?"y":"x",I=s[d]===a[S],V=l[S]>u[S],M=l[S]<u[S];(s[d]===1&&(!I&&V||I&&M)||s[d]!==1&&(!I&&M||I&&V))&&(p=d==="x"?O:A)}const x={x:l.x+_.x,y:l.y+_.y},N={x:u.x+E.x,y:u.y+E.y},P=Math.max(Math.abs(x.x-p[0].x),Math.abs(N.x-p[0].x)),b=Math.max(Math.abs(x.y-p[0].y),Math.abs(N.y-p[0].y));P>=b?(g=(x.x+N.x)/2,m=p[0].y):(g=p[0].x,m=(x.y+N.y)/2)}return[[t,{x:l.x+_.x,y:l.y+_.y},...p,{x:u.x+E.x,y:u.y+E.y},n],g,m,y,k]}function JZ(t,e,n,r){const i=Math.min(DA(t,e)/2,DA(e,n)/2,r),{x:o,y:s}=e;if(t.x===o&&o===n.x||t.y===s&&s===n.y)return`L${o} ${s}`;if(t.y===s){const u=t.x<n.x?-1:1,c=t.y<n.y?1:-1;return`L ${o+i*u},${s}Q ${o},${s} ${o},${s+i*c}`}const a=t.x<n.x?1:-1,l=t.y<n.y?-1:1;return`L ${o},${s+i*l}Q ${o},${s} ${o+i*a},${s}`}function x0(t){const{sourceX:e,sourceY:n,sourcePosition:r=Fe.Bottom,targetX:i,targetY:o,targetPosition:s=Fe.Top,borderRadius:a=5,centerX:l,centerY:u,offset:c=20}=t,[d,h,p,g,m]=YZ({source:{x:e,y:n},sourcePosition:r,target:{x:i,y:o},targetPosition:s,center:{x:l,y:u},offset:c});return[d.reduce((E,w,v)=>{let y;return v>0&&v<d.length-1?y=JZ(d[v-1],w,d[v+1],a):y=`${v===0?"M":"L"}${w.x} ${w.y}`,E+=y,E},""),h,p,g,m]}function QZ(t){const{sourceX:e,sourceY:n,targetX:r,targetY:i}=t,[o,s,a,l]=AA({sourceX:e,sourceY:n,targetX:r,targetY:i});return[`M ${e},${n}L ${r},${i}`,o,s,a,l]}const qZ=Te({name:"StraightEdge",props:["label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(t,{attrs:e}){return()=>{const[n,r,i]=QZ(t);return qe(Tp,{path:n,labelX:r,labelY:i,...e,...t})}}}),MA=Te({name:"SmoothStepEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","borderRadius","markerEnd","markerStart","interactionWidth","offset"],compatConfig:{MODE:3},setup(t,{attrs:e}){return()=>{const[n,r,i]=x0({...t,sourcePosition:t.sourcePosition??Fe.Bottom,targetPosition:t.targetPosition??Fe.Top});return qe(Tp,{path:n,labelX:r,labelY:i,...e,...t})}}}),eX=Te({name:"StepEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],setup(t,{attrs:e}){return()=>qe(MA,{...t,...e,borderRadius:0})}}),tX=Te({name:"BezierEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","curvature","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(t,{attrs:e}){return()=>{const[n,r,i]=OA({...t,sourcePosition:t.sourcePosition??Fe.Bottom,targetPosition:t.targetPosition??Fe.Top});return qe(Tp,{path:n,labelX:r,labelY:i,...e,...t})}}}),nX=Te({name:"SimpleBezierEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(t,{attrs:e}){return()=>{const[n,r,i]=RA({...t,sourcePosition:t.sourcePosition??Fe.Bottom,targetPosition:t.targetPosition??Fe.Top});return qe(Tp,{path:n,labelX:r,labelY:i,...e,...t})}}}),rX={input:BZ,default:zZ,output:UZ},iX={default:tX,straight:qZ,step:eX,smoothstep:MA,simplebezier:nX};function oX(t,e,n){const r=Z(()=>m=>e.value.get(m)),i=Z(()=>m=>n.value.get(m)),o=Z(()=>{const m={...iX,...t.edgeTypes},_=Object.keys(m);for(const E of t.edges)E.type&&!_.includes(E.type)&&(m[E.type]=E.type);return m}),s=Z(()=>{const m={...rX,...t.nodeTypes},_=Object.keys(m);for(const E of t.nodes)E.type&&!_.includes(E.type)&&(m[E.type]=E.type);return m}),a=Z(()=>t.onlyRenderVisibleElements?YC(t.nodes,{x:0,y:0,width:t.dimensions.width,height:t.dimensions.height},t.viewport,!0):t.nodes),l=Z(()=>{if(t.onlyRenderVisibleElements){const m=[];for(const _ of t.edges){const E=e.value.get(_.source),w=e.value.get(_.target);cZ({sourcePos:E.computedPosition||{x:0,y:0},targetPos:w.computedPosition||{x:0,y:0},sourceWidth:E.dimensions.width,sourceHeight:E.dimensions.height,targetWidth:w.dimensions.width,targetHeight:w.dimensions.height,width:t.dimensions.width,height:t.dimensions.height,viewport:t.viewport})&&m.push(_)}return m}return t.edges}),u=Z(()=>[...a.value,...l.value]),c=Z(()=>{const m=[];for(const _ of t.nodes)_.selected&&m.push(_);return m}),d=Z(()=>{const m=[];for(const _ of t.edges)_.selected&&m.push(_);return m}),h=Z(()=>[...c.value,...d.value]),p=Z(()=>{const m=[];for(const _ of t.nodes)_.dimensions.width&&_.dimensions.height&&_.handleBounds!==void 0&&m.push(_);return m}),g=Z(()=>a.value.length>0&&p.value.length===a.value.length);return{getNode:r,getEdge:i,getElements:u,getEdgeTypes:o,getNodeTypes:s,getEdges:l,getNodes:a,getSelectedElements:h,getSelectedNodes:c,getSelectedEdges:d,getNodesInitialized:p,areNodesInitialized:g}}class _a{constructor(){this.currentId=0,this.flows=new Map}static getInstance(){var e;const n=(e=_n())==null?void 0:e.appContext.app,r=(n==null?void 0:n.config.globalProperties.$vueFlowStorage)??_a.instance;return _a.instance=r??new _a,n&&(n.config.globalProperties.$vueFlowStorage=_a.instance),_a.instance}set(e,n){return this.flows.set(e,n)}get(e){return this.flows.get(e)}remove(e){return this.flows.delete(e)}create(e,n){const r=CA(),i=Ra(r),o={};for(const[h,p]of Object.entries(i.hooks)){const g=`on${h.charAt(0).toUpperCase()+h.slice(1)}`;o[g]=p.on}const s={};for(const[h,p]of Object.entries(i.hooks))s[h]=p.trigger;const a=Z(()=>{const h=new Map;for(const p of i.nodes)h.set(p.id,p);return h}),l=Z(()=>{const h=new Map;for(const p of i.edges)h.set(p.id,p);return h}),u=oX(i,a,l),c=VZ(i,a,l);c.setState({...i,...n});const d={...o,...u,...c,...oH(i),nodeLookup:a,edgeLookup:l,emits:s,id:e,vueFlowVersion:"1.48.1",$destroy:()=>{this.remove(e)}};return this.set(e,d),d}getId(){return`vue-flow-${this.currentId++}`}}function $t(t){const e=_a.getInstance(),n=Ed(),r=typeof t=="object",i=r?t:{id:t},o=i.id,s=o??(n==null?void 0:n.vueFlowId);let a;if(n){const l=yt(_A,null);typeof l<"u"&&l!==null&&(!s||l.id===s)&&(a=l)}if(a||s&&(a=e.get(s)),!a||s&&a.id!==s){const l=o??e.getId(),u=e.create(l,i);a=u,(n??Kp(!0)).run(()=>{Qe(u.applyDefault,(d,h,p)=>{const g=_=>{u.applyNodeChanges(_)},m=_=>{u.applyEdgeChanges(_)};d?(u.onNodesChange(g),u.onEdgesChange(m)):(u.hooks.value.nodesChange.off(g),u.hooks.value.edgesChange.off(m)),p(()=>{u.hooks.value.nodesChange.off(g),u.hooks.value.edgesChange.off(m)})},{immediate:!0}),Fc(()=>{if(a){const d=e.get(a.id);d?d.$destroy():rd(`No store instance found for id ${a.id} in storage.`)}})})}else r&&a.setState(i);if(n&&(to(_A,a),n.vueFlowId=a.id),r){const l=_n();(l==null?void 0:l.type.name)!=="VueFlow"&&a.emits.error(new An(Tn.USEVUEFLOW_OPTIONS))}return a}function sX(t){const{emits:e,dimensions:n}=$t();let r;jt(()=>{const i=()=>{var o,s;if(!t.value||!(((s=(o=t.value).checkVisibility)==null?void 0:s.call(o))??!0))return;const a=gp(t.value);(a.width===0||a.height===0)&&e.error(new An(Tn.MISSING_VIEWPORT_DIMENSIONS)),n.value={width:a.width||500,height:a.height||500}};i(),window.addEventListener("resize",i),t.value&&(r=new ResizeObserver(()=>i()),r.observe(t.value)),Ga(()=>{window.removeEventListener("resize",i),r&&t.value&&r.unobserve(t.value)})})}const aX=Te({...{name:"UserSelection",compatConfig:{MODE:3}},props:{userSelectionRect:{}},setup(t){return(e,n)=>(j(),K("div",{class:"vue-flow__selection vue-flow__container",style:Xe({width:`${e.userSelectionRect.width}px`,height:`${e.userSelectionRect.height}px`,transform:`translate(${e.userSelectionRect.x}px, ${e.userSelectionRect.y}px)`})},null,4))}}),lX=["tabIndex"],uX=Te({...{name:"NodesSelection",compatConfig:{MODE:3}},setup(t){const{emits:e,viewport:n,getSelectedNodes:r,noPanClassName:i,disableKeyboardA11y:o,userSelectionActive:s}=$t(),a=IA(),l=we(null),u=wA({el:l,onStart(g){e.selectionDragStart(g),e.nodeDragStart(g)},onDrag(g){e.selectionDrag(g),e.nodeDrag(g)},onStop(g){e.selectionDragStop(g),e.nodeDragStop(g)}});jt(()=>{var g;o.value||(g=l.value)==null||g.focus({preventScroll:!0})});const c=Z(()=>XC(r.value)),d=Z(()=>({width:`${c.value.width}px`,height:`${c.value.height}px`,top:`${c.value.y}px`,left:`${c.value.x}px`}));function h(g){e.selectionContextMenu({event:g,nodes:r.value})}function p(g){o.value||Ql[g.key]&&(g.preventDefault(),a({x:Ql[g.key].x,y:Ql[g.key].y},g.shiftKey))}return(g,m)=>!re(s)&&c.value.width&&c.value.height?(j(),K("div",{key:0,class:Se(["vue-flow__nodesselection vue-flow__container",re(i)]),style:Xe({transform:`translate(${re(n).x}px,${re(n).y}px) scale(${re(n).zoom})`})},[C("div",{ref_key:"el",ref:l,class:Se([{dragging:re(u)},"vue-flow__nodesselection-rect"]),style:Xe(d.value),tabIndex:re(o)?void 0:-1,onContextmenu:h,onKeydown:p},null,46,lX)],6)):Oe("",!0)}});function cX(t,e){return{x:t.clientX-e.left,y:t.clientY-e.top}}const dX=Te({...{name:"Pane",compatConfig:{MODE:3}},props:{isSelecting:{type:Boolean},selectionKeyPressed:{type:Boolean}},setup(t){const{vueFlowRef:e,nodes:n,viewport:r,emits:i,userSelectionActive:o,removeSelectedElements:s,userSelectionRect:a,elementsSelectable:l,nodesSelectionActive:u,getSelectedEdges:c,getSelectedNodes:d,removeNodes:h,removeEdges:p,selectionMode:g,deleteKeyCode:m,multiSelectionKeyCode:_,multiSelectionActive:E,edgeLookup:w,nodeLookup:v,connectionLookup:y,defaultEdgeOptions:k,connectionStartHandle:$,panOnDrag:O}=$t(),A=Ei(null),x=Ei(new Set),N=Ei(new Set),P=Ei(null),b=Ot(()=>l.value&&(t.isSelecting||o.value)),S=Ot(()=>$.value!==null);let I=!1,V=!1;const M=Qc(m,{actInsideInputWithModifier:!1}),H=Qc(_);Qe(M,de=>{de&&(h(d.value),p(c.value),u.value=!1)}),Qe(H,de=>{E.value=de});function G(de,ce){return fe=>{fe.target===ce&&(de==null||de(fe))}}function q(de){if(I||S.value){I=!1;return}i.paneClick(de),s(),u.value=!1}function oe(de){var ce;if(Array.isArray(O.value)&&((ce=O.value)!=null&&ce.includes(2))){de.preventDefault();return}i.paneContextMenu(de)}function ae(de){i.paneScroll(de)}function he(de){var ce,fe,Le;if(P.value=((ce=e.value)==null?void 0:ce.getBoundingClientRect())??null,!l.value||!t.isSelecting||de.button!==0||de.target!==A.value||!P.value)return;(Le=(fe=de.target)==null?void 0:fe.setPointerCapture)==null||Le.call(fe,de.pointerId);const{x:Re,y:Be}=cX(de,P.value);V=!0,I=!1,s(),a.value={width:0,height:0,startX:Re,startY:Be,x:Re,y:Be},i.selectionStart(de)}function xe(de){var ce;if(!P.value||!a.value)return;I=!0;const{x:fe,y:Le}=Zi(de,P.value),{startX:Re=0,startY:Be=0}=a.value,et={startX:Re,startY:Be,x:fe<Re?fe:Re,y:Le<Be?Le:Be,width:Math.abs(fe-Re),height:Math.abs(Le-Be)},De=x.value,B=N.value;x.value=new Set(YC(n.value,et,r.value,g.value===a0.Partial,!0).map(L=>L.id)),N.value=new Set;const D=((ce=k.value)==null?void 0:ce.selectable)??!0;for(const L of x.value){const z=y.value.get(L);if(z)for(const{edgeId:F}of z.values()){const W=w.value.get(F);W&&(W.selectable??D)&&N.value.add(F)}}if(!bA(De,x.value)){const L=ms(v.value,x.value,!0);i.nodesChange(L)}if(!bA(B,N.value)){const L=ms(w.value,N.value);i.edgesChange(L)}a.value=et,o.value=!0,u.value=!1}function Ee(de){var ce;de.button!==0||!V||((ce=de.target)==null||ce.releasePointerCapture(de.pointerId),!o.value&&a.value&&de.target===A.value&&q(de),o.value=!1,a.value=null,u.value=x.value.size>0,i.selectionEnd(de),t.selectionKeyPressed&&(I=!1),V=!1)}return(de,ce)=>(j(),K("div",{ref_key:"container",ref:A,class:Se(["vue-flow__pane vue-flow__container",{selection:de.isSelecting}]),onClick:ce[0]||(ce[0]=fe=>b.value?void 0:G(q,A.value)(fe)),onContextmenu:ce[1]||(ce[1]=fe=>G(oe,A.value)(fe)),onWheelPassive:ce[2]||(ce[2]=fe=>G(ae,A.value)(fe)),onPointerenter:ce[3]||(ce[3]=fe=>b.value?void 0:re(i).paneMouseEnter(fe)),onPointerdown:ce[4]||(ce[4]=fe=>b.value?he(fe):re(i).paneMouseMove(fe)),onPointermove:ce[5]||(ce[5]=fe=>b.value?xe(fe):re(i).paneMouseMove(fe)),onPointerup:ce[6]||(ce[6]=fe=>b.value?Ee(fe):void 0),onPointerleave:ce[7]||(ce[7]=fe=>re(i).paneMouseLeave(fe))},[Mt(de.$slots,"default"),re(o)&&re(a)?(j(),$e(aX,{key:0,"user-selection-rect":re(a)},null,8,["user-selection-rect"])):Oe("",!0),re(u)&&re(d).length?(j(),$e(uX,{key:1})):Oe("",!0)],34))}}),fX=Te({...{name:"Transform",compatConfig:{MODE:3}},setup(t){const{viewport:e,fitViewOnInit:n,fitViewOnInitDone:r}=$t(),i=Z(()=>n.value?!r.value:!1),o=Z(()=>`translate(${e.value.x}px,${e.value.y}px) scale(${e.value.zoom})`);return(s,a)=>(j(),K("div",{class:"vue-flow__transformationpane vue-flow__container",style:Xe({transform:o.value,opacity:i.value?0:void 0})},[Mt(s.$slots,"default")],4))}}),hX=Te({...{name:"Viewport",compatConfig:{MODE:3}},setup(t){const{minZoom:e,maxZoom:n,defaultViewport:r,translateExtent:i,zoomActivationKeyCode:o,selectionKeyCode:s,panActivationKeyCode:a,panOnScroll:l,panOnScrollMode:u,panOnScrollSpeed:c,panOnDrag:d,zoomOnDoubleClick:h,zoomOnPinch:p,zoomOnScroll:g,preventScrolling:m,noWheelClassName:_,noPanClassName:E,emits:w,connectionStartHandle:v,userSelectionActive:y,paneDragging:k,d3Zoom:$,d3Selection:O,d3ZoomHandler:A,viewport:x,viewportRef:N,paneClickDistance:P}=$t();sX(N);const b=Ei(!1),S=Ei(!1);let I=null,V=!1,M=0,H={x:0,y:0,zoom:0};const G=Qc(a),q=Qc(s),oe=Qc(o),ae=Ot(()=>(!q.value||q.value&&s.value===!0)&&(G.value||d.value)),he=Ot(()=>G.value||l.value),xe=Ot(()=>q.value||s.value===!0&&ae.value!==!0),Ee=Ot(()=>v.value!==null);jt(()=>{if(!N.value){rd("Viewport element is missing");return}const Re=N.value,Be=Re.getBoundingClientRect(),et=jK().clickDistance(P.value).scaleExtent([e.value,n.value]).translateExtent(i.value),De=yi(Re).call(et),B=De.on("wheel.zoom"),D=Jl.translate(r.value.x??0,r.value.y??0).scale(Ao(r.value.zoom??1,e.value,n.value)),L=[[0,0],[Be.width,Be.height]],z=et.constrain()(D,L,i.value);et.transform(De,z),et.wheelDelta(eA),$.value=et,O.value=De,A.value=B,x.value={x:z.x,y:z.y,zoom:z.k},et.on("start",F=>{var W;if(!F.sourceEvent)return null;M=F.sourceEvent.button,b.value=!0;const ee=fe(F.transform);((W=F.sourceEvent)==null?void 0:W.type)==="mousedown"&&(k.value=!0),H=ee,w.viewportChangeStart(ee),w.moveStart({event:F,flowTransform:ee})}),et.on("end",F=>{if(!F.sourceEvent)return null;if(b.value=!1,k.value=!1,de(ae.value,M??0)&&!V&&w.paneContextMenu(F.sourceEvent),V=!1,ce(H,F.transform)){const W=fe(F.transform);H=W,w.viewportChangeEnd(W),w.moveEnd({event:F,flowTransform:W})}}),et.filter(F=>{var W;const ee=oe.value||g.value,Y=p.value&&F.ctrlKey,te=F.button,J=F.type==="wheel";if(te===1&&F.type==="mousedown"&&(Le(F,"vue-flow__node")||Le(F,"vue-flow__edge")))return!0;if(!ae.value&&!ee&&!he.value&&!h.value&&!p.value||y.value||Ee.value&&!J||!h.value&&F.type==="dblclick"||Le(F,_.value)&&J||Le(F,E.value)&&(!J||he.value&&J&&!oe.value)||!p.value&&F.ctrlKey&&J||!ee&&!he.value&&!Y&&J)return!1;if(!p&&F.type==="touchstart"&&((W=F.touches)==null?void 0:W.length)>1)return F.preventDefault(),!1;if(!ae.value&&(F.type==="mousedown"||F.type==="touchstart")||s.value===!0&&Array.isArray(d.value)&&d.value.includes(0)&&te===0||Array.isArray(d.value)&&!d.value.includes(te)&&(F.type==="mousedown"||F.type==="touchstart"))return!1;const ye=Array.isArray(d.value)&&d.value.includes(te)||s.value===!0&&Array.isArray(d.value)&&!d.value.includes(0)||!te||te<=1;return(!F.ctrlKey||G.value||J)&&ye}),Qe([y,ae],()=>{y.value&&!b.value?et.on("zoom",null):y.value||et.on("zoom",F=>{x.value={x:F.transform.x,y:F.transform.y,zoom:F.transform.k};const W=fe(F.transform);V=de(ae.value,M??0),w.viewportChange(W),w.move({event:F,flowTransform:W})})},{immediate:!0}),Qe([y,he,u,oe,p,m,_],()=>{he.value&&!oe.value&&!y.value?De.on("wheel.zoom",F=>{if(Le(F,_.value))return!1;const W=oe.value||g.value,ee=p.value&&F.ctrlKey;if(!(!m.value||he.value||W||ee))return!1;F.preventDefault(),F.stopImmediatePropagation();const te=De.property("__zoom").k||1,J=vp();if(!G.value&&F.ctrlKey&&p.value&&J){const rt=Hi(F),gt=eA(F),X=te*2**gt;et.scaleTo(De,X,rt,F);return}const ye=F.deltaMode===1?20:1;let pe=u.value===Jc.Vertical?0:F.deltaX*ye,be=u.value===Jc.Horizontal?0:F.deltaY*ye;!J&&F.shiftKey&&u.value!==Jc.Vertical&&!pe&&be&&(pe=be,be=0),et.translateBy(De,-(pe/te)*c.value,-(be/te)*c.value);const Me=fe(De.property("__zoom"));I&&clearTimeout(I),S.value?(w.move({event:F,flowTransform:Me}),w.viewportChange(Me),I=setTimeout(()=>{w.moveEnd({event:F,flowTransform:Me}),w.viewportChangeEnd(Me),S.value=!1},150)):(S.value=!0,w.moveStart({event:F,flowTransform:Me}),w.viewportChangeStart(Me))},{passive:!1}):typeof B<"u"&&De.on("wheel.zoom",function(F,W){const ee=!m.value&&F.type==="wheel"&&!F.ctrlKey,Y=oe.value||g.value,te=p.value&&F.ctrlKey;if(!Y&&!l.value&&!te&&F.type==="wheel"||ee||Le(F,_.value))return null;F.preventDefault(),B.call(this,F,W)},{passive:!1})},{immediate:!0})});function de(Re,Be){return Be===2&&Array.isArray(Re)&&Re.includes(2)}function ce(Re,Be){return Re.x!==Be.x&&!Number.isNaN(Be.x)||Re.y!==Be.y&&!Number.isNaN(Be.y)||Re.zoom!==Be.k&&!Number.isNaN(Be.k)}function fe(Re){return{x:Re.x,y:Re.y,zoom:Re.k}}function Le(Re,Be){return Re.target.closest(`.${Be}`)}return(Re,Be)=>(j(),K("div",{ref_key:"viewportRef",ref:N,class:"vue-flow__viewport vue-flow__container"},[ue(dX,{"is-selecting":xe.value,"selection-key-pressed":re(q),class:Se({connecting:Ee.value,dragging:re(k),draggable:re(d)===!0||Array.isArray(re(d))&&re(d).includes(0)})},{default:ke(()=>[ue(fX,null,{default:ke(()=>[Mt(Re.$slots,"default")]),_:3})]),_:3},8,["is-selecting","selection-key-pressed","class"])],512))}}),pX=["id"],gX=["id"],mX=["id"],vX=Te({...{name:"A11yDescriptions",compatConfig:{MODE:3}},setup(t){const{id:e,disableKeyboardA11y:n,ariaLiveMessage:r}=$t();return(i,o)=>(j(),K(Ue,null,[C("div",{id:`${re(zC)}-${re(e)}`,style:{display:"none"}}," Press enter or space to select a node. "+Ie(re(n)?"":"You can then use the arrow keys to move the node around.")+" You can then use the arrow keys to move the node around, press delete to remove it and press escape to cancel. ",9,pX),C("div",{id:`${re(UC)}-${re(e)}`,style:{display:"none"}}," Press enter or space to select an edge. You can then press delete to remove it or press escape to cancel. ",8,gX),re(n)?Oe("",!0):(j(),K("div",{key:0,id:`${re(XK)}-${re(e)}`,"aria-live":"assertive","aria-atomic":"true",style:{position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)","clip-path":"inset(100%)"}},Ie(re(r)),9,mX))],64))}});function yX(){const t=$t();Qe(()=>t.viewportHelper.value.viewportInitialized,e=>{e&&setTimeout(()=>{t.emits.init(t),t.emits.paneReady(t)},1)})}function bX(t,e,n){return n===Fe.Left?t-e:n===Fe.Right?t+e:t}function _X(t,e,n){return n===Fe.Top?t-e:n===Fe.Bottom?t+e:t}const w0=function({radius:t=10,centerX:e=0,centerY:n=0,position:r=Fe.Top,type:i}){return qe("circle",{class:`vue-flow__edgeupdater vue-flow__edgeupdater-${i}`,cx:bX(e,t,r),cy:_X(n,t,r),r:t,stroke:"transparent",fill:"transparent"})};w0.props=["radius","centerX","centerY","position","type"],w0.compatConfig={MODE:3};const LA=w0,xX=Te({name:"Edge",compatConfig:{MODE:3},props:["id"],setup(t){const{id:e,addSelectedEdges:n,connectionMode:r,edgeUpdaterRadius:i,emits:o,nodesSelectionActive:s,noPanClassName:a,getEdgeTypes:l,removeSelectedEdges:u,findEdge:c,findNode:d,isValidConnection:h,multiSelectionActive:p,disableKeyboardA11y:g,elementsSelectable:m,edgesUpdatable:_,edgesFocusable:E,hooks:w}=$t(),v=Z(()=>c(t.id)),{emit:y,on:k}=IZ(v.value,o),$=yt(bp),O=_n(),A=we(!1),x=we(!1),N=we(""),P=we(null),b=we("source"),S=we(null),I=Ot(()=>typeof v.value.selectable>"u"?m.value:v.value.selectable),V=Ot(()=>typeof v.value.updatable>"u"?_.value:v.value.updatable),M=Ot(()=>typeof v.value.focusable>"u"?E.value:v.value.focusable);to(SZ,t.id),to(EZ,S);const H=Z(()=>v.value.class instanceof Function?v.value.class(v.value):v.value.class),G=Z(()=>v.value.style instanceof Function?v.value.style(v.value):v.value.style),q=Z(()=>{const L=v.value.type||"default",z=$==null?void 0:$[`edge-${L}`];if(z)return z;let F=v.value.template??l.value[L];if(typeof F=="string"&&O){const W=Object.keys(O.appContext.components);W&&W.includes(L)&&(F=Pr(L,!1))}return F&&typeof F!="string"?F:(o.error(new An(Tn.EDGE_TYPE_MISSING,F)),!1)}),{handlePointerDown:oe}=EA({nodeId:N,handleId:P,type:b,isValidConnection:h,edgeUpdaterType:b,onEdgeUpdate:xe,onEdgeUpdateEnd:Ee});return()=>{const L=d(v.value.source),z=d(v.value.target),F="pathOptions"in v.value?v.value.pathOptions:{};if(!L&&!z)return o.error(new An(Tn.EDGE_SOURCE_TARGET_MISSING,v.value.id,v.value.source,v.value.target)),null;if(!L)return o.error(new An(Tn.EDGE_SOURCE_MISSING,v.value.id,v.value.source)),null;if(!z)return o.error(new An(Tn.EDGE_TARGET_MISSING,v.value.id,v.value.target)),null;if(!v.value||v.value.hidden||L.hidden||z.hidden)return null;let W;r.value===hs.Strict?W=L.handleBounds.source:W=[...L.handleBounds.source||[],...L.handleBounds.target||[]];const ee=cA(W,v.value.sourceHandle);let Y;r.value===hs.Strict?Y=z.handleBounds.target:Y=[...z.handleBounds.target||[],...z.handleBounds.source||[]];const te=cA(Y,v.value.targetHandle),J=(ee==null?void 0:ee.position)||Fe.Bottom,ye=(te==null?void 0:te.position)||Fe.Top,{x:pe,y:be}=eu(L,ee,J),{x:Me,y:rt}=eu(z,te,ye);return v.value.sourceX=pe,v.value.sourceY=be,v.value.targetX=Me,v.value.targetY=rt,qe("g",{ref:S,key:t.id,"data-id":t.id,class:["vue-flow__edge",`vue-flow__edge-${q.value===!1?"default":v.value.type||"default"}`,a.value,H.value,{updating:A.value,selected:v.value.selected,animated:v.value.animated,inactive:!I.value&&!w.value.edgeClick.hasListeners()}],tabIndex:M.value?0:void 0,"aria-label":v.value.ariaLabel===null?void 0:v.value.ariaLabel??`Edge from ${v.value.source} to ${v.value.target}`,"aria-describedby":M.value?`${UC}-${e}`:void 0,"aria-roledescription":"edge",role:M.value?"group":"img",...v.value.domAttributes,onClick:ce,onContextmenu:fe,onDblclick:Le,onMouseenter:Re,onMousemove:Be,onMouseleave:et,onKeyDown:M.value?D:void 0},[x.value?null:qe(q.value===!1?l.value.default:q.value,{id:t.id,sourceNode:L,targetNode:z,source:v.value.source,target:v.value.target,type:v.value.type,updatable:V.value,selected:v.value.selected,animated:v.value.animated,label:v.value.label,labelStyle:v.value.labelStyle,labelShowBg:v.value.labelShowBg,labelBgStyle:v.value.labelBgStyle,labelBgPadding:v.value.labelBgPadding,labelBgBorderRadius:v.value.labelBgBorderRadius,data:v.value.data,events:{...v.value.events,...k},style:G.value,markerStart:`url('#${nd(v.value.markerStart,e)}')`,markerEnd:`url('#${nd(v.value.markerEnd,e)}')`,sourcePosition:J,targetPosition:ye,sourceX:pe,sourceY:be,targetX:Me,targetY:rt,sourceHandleId:v.value.sourceHandle,targetHandleId:v.value.targetHandle,interactionWidth:v.value.interactionWidth,...F}),[V.value==="source"||V.value===!0?[qe("g",{onMousedown:De,onMouseenter:ae,onMouseout:he},qe(LA,{position:J,centerX:pe,centerY:be,radius:i.value,type:"source","data-type":"source"}))]:null,V.value==="target"||V.value===!0?[qe("g",{onMousedown:B,onMouseenter:ae,onMouseout:he},qe(LA,{position:ye,centerX:Me,centerY:rt,radius:i.value,type:"target","data-type":"target"}))]:null]])};function ae(){A.value=!0}function he(){A.value=!1}function xe(L,z){y.update({event:L,edge:v.value,connection:z})}function Ee(L){y.updateEnd({event:L,edge:v.value}),x.value=!1}function de(L,z){L.button===0&&(x.value=!0,N.value=z?v.value.target:v.value.source,P.value=(z?v.value.targetHandle:v.value.sourceHandle)??null,b.value=z?"target":"source",y.updateStart({event:L,edge:v.value}),oe(L))}function ce(L){var z;const F={event:L,edge:v.value};I.value&&(s.value=!1,v.value.selected&&p.value?(u([v.value]),(z=S.value)==null||z.blur()):n([v.value])),y.click(F)}function fe(L){y.contextMenu({event:L,edge:v.value})}function Le(L){y.doubleClick({event:L,edge:v.value})}function Re(L){y.mouseEnter({event:L,edge:v.value})}function Be(L){y.mouseMove({event:L,edge:v.value})}function et(L){y.mouseLeave({event:L,edge:v.value})}function De(L){de(L,!0)}function B(L){de(L,!1)}function D(L){var z;!g.value&&BC.includes(L.key)&&I.value&&(L.key==="Escape"?((z=S.value)==null||z.blur(),u([c(t.id)])):n([c(t.id)]))}}}),wX=Te({name:"ConnectionLine",compatConfig:{MODE:3},setup(){var t;const{id:e,connectionMode:n,connectionStartHandle:r,connectionEndHandle:i,connectionPosition:o,connectionLineType:s,connectionLineStyle:a,connectionLineOptions:l,connectionStatus:u,viewport:c,findNode:d}=$t(),h=(t=yt(bp))==null?void 0:t["connection-line"],p=Z(()=>{var w;return d((w=r.value)==null?void 0:w.nodeId)}),g=Z(()=>{var w;return d((w=i.value)==null?void 0:w.nodeId)??null}),m=Z(()=>({x:(o.value.x-c.value.x)/c.value.zoom,y:(o.value.y-c.value.y)/c.value.zoom})),_=Z(()=>l.value.markerStart?`url(#${nd(l.value.markerStart,e)})`:""),E=Z(()=>l.value.markerEnd?`url(#${nd(l.value.markerEnd,e)})`:"");return()=>{var w,v,y;if(!p.value||!r.value)return null;const k=r.value.id,$=r.value.type,O=p.value.handleBounds;let A=(O==null?void 0:O[$])??[];if(n.value===hs.Loose){const G=(O==null?void 0:O[$==="source"?"target":"source"])??[];A=[...A,...G]}if(!A)return null;const x=(k?A.find(G=>G.id===k):A[0])??null,N=(x==null?void 0:x.position)??Fe.Top,{x:P,y:b}=eu(p.value,x,N);let S=null;g.value&&(n.value===hs.Strict?S=((w=g.value.handleBounds[$==="source"?"target":"source"])==null?void 0:w.find(G=>{var q;return G.id===((q=i.value)==null?void 0:q.id)}))||null:S=((v=[...g.value.handleBounds.source??[],...g.value.handleBounds.target??[]])==null?void 0:v.find(G=>{var q;return G.id===((q=i.value)==null?void 0:q.id)}))||null);const I=((y=i.value)==null?void 0:y.position)??(N?g0[N]:null);if(!N||!I)return null;const V=s.value??l.value.type??ya.Bezier;let M="";const H={sourceX:P,sourceY:b,sourcePosition:N,targetX:m.value.x,targetY:m.value.y,targetPosition:I};return V===ya.Bezier?[M]=OA(H):V===ya.Step?[M]=x0({...H,borderRadius:0}):V===ya.SmoothStep?[M]=x0(H):V===ya.SimpleBezier?[M]=RA(H):M=`M${P},${b} ${m.value.x},${m.value.y}`,qe("svg",{class:"vue-flow__edges vue-flow__connectionline vue-flow__container"},qe("g",{class:"vue-flow__connection"},h?qe(h,{sourceX:P,sourceY:b,sourcePosition:N,targetX:m.value.x,targetY:m.value.y,targetPosition:I,sourceNode:p.value,sourceHandle:x,targetNode:g.value,targetHandle:S,markerEnd:E.value,markerStart:_.value,connectionStatus:u.value}):qe("path",{d:M,class:[l.value.class,u.value,"vue-flow__connection-path"],style:{...a.value,...l.value.style},"marker-end":E.value,"marker-start":_.value})))}}}),SX=["id","markerWidth","markerHeight","markerUnits","orient"],EX=Te({...{name:"MarkerType",compatConfig:{MODE:3}},props:{id:{},type:{},color:{default:"none"},width:{default:12.5},height:{default:12.5},markerUnits:{default:"strokeWidth"},orient:{default:"auto-start-reverse"},strokeWidth:{default:1}},setup(t){return(e,n)=>(j(),K("marker",{id:e.id,class:"vue-flow__arrowhead",viewBox:"-10 -10 20 20",refX:"0",refY:"0",markerWidth:`${e.width}`,markerHeight:`${e.height}`,markerUnits:e.markerUnits,orient:e.orient},[e.type===re(l0).ArrowClosed?(j(),K("polyline",{key:0,style:Xe({stroke:e.color,fill:e.color,strokeWidth:e.strokeWidth}),"stroke-linecap":"round","stroke-linejoin":"round",points:"-5,-4 0,0 -5,4 -5,-4"},null,4)):Oe("",!0),e.type===re(l0).Arrow?(j(),K("polyline",{key:1,style:Xe({stroke:e.color,strokeWidth:e.strokeWidth}),"stroke-linecap":"round","stroke-linejoin":"round",fill:"none",points:"-5,-4 0,0 -5,4"},null,4)):Oe("",!0)],8,SX))}}),TX={class:"vue-flow__marker vue-flow__container","aria-hidden":"true"},IX=Te({...{name:"MarkerDefinitions",compatConfig:{MODE:3}},setup(t){const{id:e,edges:n,connectionLineOptions:r,defaultMarkerColor:i}=$t(),o=Z(()=>{const s=new Set,a=[],l=u=>{if(u){const c=nd(u,e);s.has(c)||(typeof u=="object"?a.push({...u,id:c,color:u.color||i.value}):a.push({id:c,color:i.value,type:u}),s.add(c))}};for(const u of[r.value.markerEnd,r.value.markerStart])l(u);for(const u of n.value)for(const c of[u.markerStart,u.markerEnd])l(c);return a.sort((u,c)=>u.id.localeCompare(c.id))});return(s,a)=>(j(),K("svg",TX,[C("defs",null,[(j(!0),K(Ue,null,It(o.value,l=>(j(),$e(EX,{id:l.id,key:l.id,type:l.type,color:l.color,width:l.width,height:l.height,markerUnits:l.markerUnits,"stroke-width":l.strokeWidth,orient:l.orient},null,8,["id","type","color","width","height","markerUnits","stroke-width","orient"]))),128))])]))}}),CX=Te({...{name:"Edges",compatConfig:{MODE:3}},setup(t){const{findNode:e,getEdges:n,elevateEdgesOnSelect:r}=$t();return(i,o)=>(j(),K(Ue,null,[ue(IX),(j(!0),K(Ue,null,It(re(n),s=>(j(),K("svg",{key:s.id,class:"vue-flow__edges vue-flow__container",style:Xe({zIndex:re(dZ)(s,re(e),re(r))})},[ue(re(xX),{id:s.id},null,8,["id"])],4))),128)),ue(re(wX))],64))}}),AX=Te({name:"Node",compatConfig:{MODE:3},props:["id","resizeObserver"],setup(t){const{id:e,noPanClassName:n,selectNodesOnDrag:r,nodesSelectionActive:i,multiSelectionActive:o,emits:s,removeSelectedNodes:a,addSelectedNodes:l,updateNodeDimensions:u,onUpdateNodeInternals:c,getNodeTypes:d,nodeExtent:h,elevateNodesOnSelect:p,disableKeyboardA11y:g,ariaLiveMessage:m,snapToGrid:_,snapGrid:E,nodeDragThreshold:w,nodesDraggable:v,elementsSelectable:y,nodesConnectable:k,nodesFocusable:$,hooks:O}=$t(),A=we(null);to(xA,A),to(b0,t.id);const x=yt(bp),N=_n(),P=IA(),{node:b,parentNode:S}=TA(t.id),{emit:I,on:V}=PZ(b,s),M=Ot(()=>typeof b.draggable>"u"?v.value:b.draggable),H=Ot(()=>typeof b.selectable>"u"?y.value:b.selectable),G=Ot(()=>typeof b.connectable>"u"?k.value:b.connectable),q=Ot(()=>typeof b.focusable>"u"?$.value:b.focusable),oe=Z(()=>H.value||M.value||O.value.nodeClick.hasListeners()||O.value.nodeDoubleClick.hasListeners()||O.value.nodeMouseEnter.hasListeners()||O.value.nodeMouseMove.hasListeners()||O.value.nodeMouseLeave.hasListeners()),ae=Ot(()=>!!b.dimensions.width&&!!b.dimensions.height),he=Z(()=>{const z=b.type||"default",F=x==null?void 0:x[`node-${z}`];if(F)return F;let W=b.template||d.value[z];if(typeof W=="string"&&N){const ee=Object.keys(N.appContext.components);ee&&ee.includes(z)&&(W=Pr(z,!1))}return W&&typeof W!="string"?W:(s.error(new An(Tn.NODE_TYPE_MISSING,W)),!1)}),xe=wA({id:t.id,el:A,disabled:()=>!M.value,selectable:H,dragHandle:()=>b.dragHandle,onStart(z){I.dragStart(z)},onDrag(z){I.drag(z)},onStop(z){I.dragStop(z)},onClick(z){D(z)}}),Ee=Z(()=>b.class instanceof Function?b.class(b):b.class),de=Z(()=>{const z=(b.style instanceof Function?b.style(b):b.style)||{},F=b.width instanceof Function?b.width(b):b.width,W=b.height instanceof Function?b.height(b):b.height;return!z.width&&F&&(z.width=typeof F=="string"?F:`${F}px`),!z.height&&W&&(z.height=typeof W=="string"?W:`${W}px`),z}),ce=Ot(()=>Number(b.zIndex??de.value.zIndex??0));return c(z=>{(z.includes(t.id)||!z.length)&&Le()}),jt(()=>{Qe(()=>b.hidden,(z=!1,F,W)=>{!z&&A.value&&(t.resizeObserver.observe(A.value),W(()=>{A.value&&t.resizeObserver.unobserve(A.value)}))},{immediate:!0,flush:"post"})}),Qe([()=>b.type,()=>b.sourcePosition,()=>b.targetPosition],()=>{pr(()=>{u([{id:t.id,nodeElement:A.value,forceUpdate:!0}])})}),Qe([()=>b.position.x,()=>b.position.y,()=>{var z;return(z=S.value)==null?void 0:z.computedPosition.x},()=>{var z;return(z=S.value)==null?void 0:z.computedPosition.y},()=>{var z;return(z=S.value)==null?void 0:z.computedPosition.z},ce,()=>b.selected,()=>b.dimensions.height,()=>b.dimensions.width,()=>{var z;return(z=S.value)==null?void 0:z.dimensions.height},()=>{var z;return(z=S.value)==null?void 0:z.dimensions.width}],([z,F,W,ee,Y,te])=>{const J={x:z,y:F,z:te+(p.value&&b.selected?1e3:0)};typeof W<"u"&&typeof ee<"u"?b.computedPosition=oZ({x:W,y:ee,z:Y},J):b.computedPosition=J},{flush:"post",immediate:!0}),Qe([()=>b.extent,h],([z,F],[W,ee])=>{(z!==W||F!==ee)&&fe()}),b.extent==="parent"||typeof b.extent=="object"&&"range"in b.extent&&b.extent.range==="parent"?zy(()=>ae).toBe(!0).then(fe):fe(),()=>b.hidden?null:qe("div",{ref:A,"data-id":b.id,class:["vue-flow__node",`vue-flow__node-${he.value===!1?"default":b.type||"default"}`,{[n.value]:M.value,dragging:xe==null?void 0:xe.value,draggable:M.value,selected:b.selected,selectable:H.value,parent:b.isParent},Ee.value],style:{visibility:ae.value?"visible":"hidden",zIndex:b.computedPosition.z??ce.value,transform:`translate(${b.computedPosition.x}px,${b.computedPosition.y}px)`,pointerEvents:oe.value?"all":"none",...de.value},tabIndex:q.value?0:void 0,role:q.value?"group":void 0,"aria-describedby":g.value?void 0:`${zC}-${e}`,"aria-label":b.ariaLabel,"aria-roledescription":"node",...b.domAttributes,onMouseenter:Re,onMousemove:Be,onMouseleave:et,onContextmenu:De,onClick:D,onDblclick:B,onKeydown:L},[qe(he.value===!1?d.value.default:he.value,{id:b.id,type:b.type,data:b.data,events:{...b.events,...V},selected:b.selected,resizing:b.resizing,dragging:xe.value,connectable:G.value,position:b.computedPosition,dimensions:b.dimensions,isValidTargetPos:b.isValidTargetPos,isValidSourcePos:b.isValidSourcePos,parent:b.parentNode,parentNodeId:b.parentNode,zIndex:b.computedPosition.z??ce.value,targetPosition:b.targetPosition,sourcePosition:b.sourcePosition,label:b.label,dragHandle:b.dragHandle,onUpdateNodeInternals:Le})]);function fe(){const z=b.computedPosition,{computedPosition:F,position:W}=f0(b,_.value?yp(z,E.value):z,s.error,h.value,S.value);(b.computedPosition.x!==F.x||b.computedPosition.y!==F.y)&&(b.computedPosition={...b.computedPosition,...F}),(b.position.x!==W.x||b.position.y!==W.y)&&(b.position=W)}function Le(){A.value&&u([{id:t.id,nodeElement:A.value,forceUpdate:!0}])}function Re(z){xe!=null&&xe.value||I.mouseEnter({event:z,node:b})}function Be(z){xe!=null&&xe.value||I.mouseMove({event:z,node:b})}function et(z){xe!=null&&xe.value||I.mouseLeave({event:z,node:b})}function De(z){return I.contextMenu({event:z,node:b})}function B(z){return I.doubleClick({event:z,node:b})}function D(z){H.value&&(!r.value||!M.value||w.value>0)&&m0(b,o.value,l,a,i,!1,A.value),I.click({event:z,node:b})}function L(z){if(!(u0(z)||g.value))if(BC.includes(z.key)&&H.value){const F=z.key==="Escape";m0(b,o.value,l,a,i,F,A.value)}else M.value&&b.selected&&Ql[z.key]&&(z.preventDefault(),m.value=`Moved selected node ${z.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~b.position.x}, y: ${~~b.position.y}`,P({x:Ql[z.key].x,y:Ql[z.key].y},z.shiftKey))}}});function PX(t={includeHiddenNodes:!1}){const{nodes:e}=$t();return Z(()=>{if(e.value.length===0)return!1;for(const n of e.value)if((t.includeHiddenNodes||!n.hidden)&&((n==null?void 0:n.handleBounds)===void 0||n.dimensions.width===0||n.dimensions.height===0))return!1;return!0})}const kX={class:"vue-flow__nodes vue-flow__container"},OX=Te({...{name:"Nodes",compatConfig:{MODE:3}},setup(t){const{getNodes:e,updateNodeDimensions:n,emits:r}=$t(),i=PX(),o=we();return Qe(i,s=>{s&&pr(()=>{r.nodesInitialized(e.value)})},{immediate:!0}),jt(()=>{o.value=new ResizeObserver(s=>{const a=s.map(l=>({id:l.target.getAttribute("data-id"),nodeElement:l.target,forceUpdate:!0}));pr(()=>n(a))})}),Ga(()=>{var s;return(s=o.value)==null?void 0:s.disconnect()}),(s,a)=>(j(),K("div",kX,[o.value?(j(!0),K(Ue,{key:0},It(re(e),(l,u,c,d)=>{const h=[l.id];if(d&&d.key===l.id&&Mg(d,h))return d;const p=(j(),$e(re(AX),{id:l.id,key:l.id,"resize-observer":o.value},null,8,["id","resize-observer"]));return p.memo=h,p},a,0),128)):Oe("",!0)]))}});function NX(){const{emits:t}=$t();jt(()=>{if(gA()){const e=document.querySelector(".vue-flow__pane");e&&window.getComputedStyle(e).zIndex!=="1"&&t.error(new An(Tn.MISSING_STYLES))}})}const RX=C("div",{class:"vue-flow__edge-labels"},null,-1),$X=Te({...{name:"VueFlow",compatConfig:{MODE:3}},props:{id:{},modelValue:{},nodes:{},edges:{},edgeTypes:{},nodeTypes:{},connectionMode:{},connectionLineType:{},connectionLineStyle:{default:void 0},connectionLineOptions:{default:void 0},connectionRadius:{},isValidConnection:{type:[Function,null],default:void 0},deleteKeyCode:{default:void 0},selectionKeyCode:{type:[Boolean,null],default:void 0},multiSelectionKeyCode:{default:void 0},zoomActivationKeyCode:{default:void 0},panActivationKeyCode:{default:void 0},snapToGrid:{type:Boolean,default:void 0},snapGrid:{},onlyRenderVisibleElements:{type:Boolean,default:void 0},edgesUpdatable:{type:[Boolean,String],default:void 0},nodesDraggable:{type:Boolean,default:void 0},nodesConnectable:{type:Boolean,default:void 0},nodeDragThreshold:{},elementsSelectable:{type:Boolean,default:void 0},selectNodesOnDrag:{type:Boolean,default:void 0},panOnDrag:{type:[Boolean,Array],default:void 0},minZoom:{},maxZoom:{},defaultViewport:{},translateExtent:{},nodeExtent:{},defaultMarkerColor:{},zoomOnScroll:{type:Boolean,default:void 0},zoomOnPinch:{type:Boolean,default:void 0},panOnScroll:{type:Boolean,default:void 0},panOnScrollSpeed:{},panOnScrollMode:{},paneClickDistance:{},zoomOnDoubleClick:{type:Boolean,default:void 0},preventScrolling:{type:Boolean,default:void 0},selectionMode:{},edgeUpdaterRadius:{},fitViewOnInit:{type:Boolean,default:void 0},connectOnClick:{type:Boolean,default:void 0},applyDefault:{type:Boolean,default:void 0},autoConnect:{type:[Boolean,Function],default:void 0},noDragClassName:{},noWheelClassName:{},noPanClassName:{},defaultEdgeOptions:{},elevateEdgesOnSelect:{type:Boolean,default:void 0},elevateNodesOnSelect:{type:Boolean,default:void 0},disableKeyboardA11y:{type:Boolean,default:void 0},edgesFocusable:{type:Boolean,default:void 0},nodesFocusable:{type:Boolean,default:void 0},autoPanOnConnect:{type:Boolean,default:void 0},autoPanOnNodeDrag:{type:Boolean,default:void 0},autoPanSpeed:{}},emits:["nodesChange","edgesChange","nodesInitialized","paneReady","init","updateNodeInternals","error","connect","connectStart","connectEnd","clickConnectStart","clickConnectEnd","moveStart","move","moveEnd","selectionDragStart","selectionDrag","selectionDragStop","selectionContextMenu","selectionStart","selectionEnd","viewportChangeStart","viewportChange","viewportChangeEnd","paneScroll","paneClick","paneContextMenu","paneMouseEnter","paneMouseMove","paneMouseLeave","edgeUpdate","edgeContextMenu","edgeMouseEnter","edgeMouseMove","edgeMouseLeave","edgeDoubleClick","edgeClick","edgeUpdateStart","edgeUpdateEnd","nodeContextMenu","nodeMouseEnter","nodeMouseMove","nodeMouseLeave","nodeDoubleClick","nodeClick","nodeDragStart","nodeDrag","nodeDragStop","miniMapNodeClick","miniMapNodeDoubleClick","miniMapNodeMouseEnter","miniMapNodeMouseMove","miniMapNodeMouseLeave","update:modelValue","update:nodes","update:edges"],setup(t,{expose:e,emit:n}){const r=t,i=qb(),o=Uy(r,"modelValue",n),s=Uy(r,"nodes",n),a=Uy(r,"edges",n),l=$t(r),u=RZ({modelValue:o,nodes:s,edges:a},r,l);return DZ(n,l.hooks),yX(),NX(),to(bp,i),sr(u),e(l),(c,d)=>(j(),K("div",{ref:re(l).vueFlowRef,class:"vue-flow"},[ue(hX,null,{default:ke(()=>[ue(CX),RX,ue(OX),Mt(c.$slots,"zoom-pane")]),_:3}),Mt(c.$slots,"default"),ue(vX)],512))}}),DX=Te({...{name:"Panel",compatConfig:{MODE:3}},props:{position:{}},setup(t){const e=t,{userSelectionActive:n}=$t(),r=Z(()=>`${e.position}`.split("-"));return(i,o)=>(j(),K("div",{class:Se(["vue-flow__panel",r.value]),style:Xe({pointerEvents:re(n)?"none":"all"})},[Mt(i.$slots,"default")],6))}}),MX={name:"ControlButton",compatConfig:{MODE:3}},LX=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n},VX={type:"button",class:"vue-flow__controls-button"};function FX(t,e,n,r,i,o){return j(),K("button",VX,[Mt(t.$slots,"default")])}const Cp=LX(MX,[["render",FX]]),zX={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},UX=[C("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"},null,-1)];function BX(t,e){return j(),K("svg",zX,UX)}const jX={render:BX},HX={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5"},GX=[C("path",{d:"M0 0h32v4.2H0z"},null,-1)];function WX(t,e){return j(),K("svg",HX,GX)}const KX={render:WX},ZX={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30"},XX=[C("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0 0 27.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94a.919.919 0 0 1-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"},null,-1)];function YX(t,e){return j(),K("svg",ZX,XX)}const JX={render:YX},QX={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},qX=[C("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"},null,-1)];function eY(t,e){return j(),K("svg",QX,qX)}const tY={render:eY},nY={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},rY=[C("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047z"},null,-1)];function iY(t,e){return j(),K("svg",nY,rY)}const oY={render:iY},sY=Te({...{name:"Controls",compatConfig:{MODE:3}},props:{showZoom:{type:Boolean,default:!0},showFitView:{type:Boolean,default:!0},showInteractive:{type:Boolean,default:!0},fitViewParams:{},position:{default:()=>VC.BottomLeft}},emits:["zoomIn","zoomOut","fitView","interactionChange"],setup(t,{emit:e}){const{nodesDraggable:n,nodesConnectable:r,elementsSelectable:i,setInteractive:o,zoomIn:s,zoomOut:a,fitView:l,viewport:u,minZoom:c,maxZoom:d}=$t(),h=Ot(()=>n.value||r.value||i.value),p=Ot(()=>u.value.zoom<=c.value),g=Ot(()=>u.value.zoom>=d.value);function m(){s(),e("zoomIn")}function _(){a(),e("zoomOut")}function E(){l(t.fitViewParams),e("fitView")}function w(){o(!h.value),e("interactionChange",!h.value)}return(v,y)=>(j(),$e(re(DX),{class:"vue-flow__controls",position:v.position},{default:ke(()=>[Mt(v.$slots,"top"),v.showZoom?(j(),K(Ue,{key:0},[Mt(v.$slots,"control-zoom-in",{},()=>[ue(Cp,{class:"vue-flow__controls-zoomin",disabled:g.value,onClick:m},{default:ke(()=>[Mt(v.$slots,"icon-zoom-in",{},()=>[(j(),$e(Xn(re(jX))))])]),_:3},8,["disabled"])]),Mt(v.$slots,"control-zoom-out",{},()=>[ue(Cp,{class:"vue-flow__controls-zoomout",disabled:p.value,onClick:_},{default:ke(()=>[Mt(v.$slots,"icon-zoom-out",{},()=>[(j(),$e(Xn(re(KX))))])]),_:3},8,["disabled"])])],64)):Oe("",!0),v.showFitView?Mt(v.$slots,"control-fit-view",{key:1},()=>[ue(Cp,{class:"vue-flow__controls-fitview",onClick:E},{default:ke(()=>[Mt(v.$slots,"icon-fit-view",{},()=>[(j(),$e(Xn(re(JX))))])]),_:3})]):Oe("",!0),v.showInteractive?Mt(v.$slots,"control-interactive",{key:2},()=>[v.showInteractive?(j(),$e(Cp,{key:0,class:"vue-flow__controls-interactive",onClick:w},{default:ke(()=>[h.value?Mt(v.$slots,"icon-unlock",{key:0},()=>[(j(),$e(Xn(re(oY))))]):Oe("",!0),h.value?Oe("",!0):Mt(v.$slots,"icon-lock",{key:1},()=>[(j(),$e(Xn(re(tY))))])]),_:3})):Oe("",!0)]):Oe("",!0),Mt(v.$slots,"default")]),_:3},8,["position"]))}});var S0="http://www.w3.org/1999/xhtml";const VA={svg:"http://www.w3.org/2000/svg",xhtml:S0,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function FA(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),VA.hasOwnProperty(e)?{space:VA[e],local:t}:t}function aY(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===S0&&e.documentElement.namespaceURI===S0?e.createElement(t):e.createElementNS(n,t)}}function lY(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function zA(t){var e=FA(t);return(e.local?lY:aY)(e)}function uY(){}function UA(t){return t==null?uY:function(){return this.querySelector(t)}}function cY(t){typeof t!="function"&&(t=UA(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,a=r[i]=new Array(s),l,u,c=0;c<s;++c)(l=o[c])&&(u=t.call(l,l.__data__,c,o))&&("__data__"in l&&(u.__data__=l.__data__),a[c]=u);return new ei(r,this._parents)}function dY(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function fY(){return[]}function hY(t){return t==null?fY:function(){return this.querySelectorAll(t)}}function pY(t){return function(){return dY(t.apply(this,arguments))}}function gY(t){typeof t=="function"?t=pY(t):t=hY(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var s=e[o],a=s.length,l,u=0;u<a;++u)(l=s[u])&&(r.push(t.call(l,l.__data__,u,s)),i.push(l));return new ei(r,i)}function mY(t){return function(){return this.matches(t)}}function BA(t){return function(e){return e.matches(t)}}var vY=Array.prototype.find;function yY(t){return function(){return vY.call(this.children,t)}}function bY(){return this.firstElementChild}function _Y(t){return this.select(t==null?bY:yY(typeof t=="function"?t:BA(t)))}var xY=Array.prototype.filter;function wY(){return Array.from(this.children)}function SY(t){return function(){return xY.call(this.children,t)}}function EY(t){return this.selectAll(t==null?wY:SY(typeof t=="function"?t:BA(t)))}function TY(t){typeof t!="function"&&(t=mY(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,a=r[i]=[],l,u=0;u<s;++u)(l=o[u])&&t.call(l,l.__data__,u,o)&&a.push(l);return new ei(r,this._parents)}function jA(t){return new Array(t.length)}function IY(){return new ei(this._enter||this._groups.map(jA),this._parents)}function Ap(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Ap.prototype={constructor:Ap,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function CY(t){return function(){return t}}function AY(t,e,n,r,i,o){for(var s=0,a,l=e.length,u=o.length;s<u;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new Ap(t,o[s]);for(;s<l;++s)(a=e[s])&&(i[s]=a)}function PY(t,e,n,r,i,o,s){var a,l,u=new Map,c=e.length,d=o.length,h=new Array(c),p;for(a=0;a<c;++a)(l=e[a])&&(h[a]=p=s.call(l,l.__data__,a,e)+"",u.has(p)?i[a]=l:u.set(p,l));for(a=0;a<d;++a)p=s.call(t,o[a],a,o)+"",(l=u.get(p))?(r[a]=l,l.__data__=o[a],u.delete(p)):n[a]=new Ap(t,o[a]);for(a=0;a<c;++a)(l=e[a])&&u.get(h[a])===l&&(i[a]=l)}function kY(t){return t.__data__}function OY(t,e){if(!arguments.length)return Array.from(this,kY);var n=e?PY:AY,r=this._parents,i=this._groups;typeof t!="function"&&(t=CY(t));for(var o=i.length,s=new Array(o),a=new Array(o),l=new Array(o),u=0;u<o;++u){var c=r[u],d=i[u],h=d.length,p=NY(t.call(c,c&&c.__data__,u,r)),g=p.length,m=a[u]=new Array(g),_=s[u]=new Array(g),E=l[u]=new Array(h);n(c,d,m,_,E,p,e);for(var w=0,v=0,y,k;w<g;++w)if(y=m[w]){for(w>=v&&(v=w+1);!(k=_[v])&&++v<g;);y._next=k||null}}return s=new ei(s,r),s._enter=a,s._exit=l,s}function NY(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function RY(){return new ei(this._exit||this._groups.map(jA),this._parents)}function $Y(t,e,n){var r=this.enter(),i=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function DY(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,s=Math.min(i,o),a=new Array(i),l=0;l<s;++l)for(var u=n[l],c=r[l],d=u.length,h=a[l]=new Array(d),p,g=0;g<d;++g)(p=u[g]||c[g])&&(h[g]=p);for(;l<i;++l)a[l]=n[l];return new ei(a,this._parents)}function MY(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,o=r[i],s;--i>=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function LY(t){t||(t=VY);function e(d,h){return d&&h?t(d.__data__,h.__data__):!d-!h}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var s=n[o],a=s.length,l=i[o]=new Array(a),u,c=0;c<a;++c)(u=s[c])&&(l[c]=u);l.sort(e)}return new ei(i,this._parents).order()}function VY(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function FY(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function zY(){return Array.from(this)}function UY(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null}function BY(){let t=0;for(const e of this)++t;return t}function jY(){return!this.node()}function HY(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,s=i.length,a;o<s;++o)(a=i[o])&&t.call(a,a.__data__,o,i);return this}function GY(t){return function(){this.removeAttribute(t)}}function WY(t){return function(){this.removeAttributeNS(t.space,t.local)}}function KY(t,e){return function(){this.setAttribute(t,e)}}function ZY(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function XY(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function YY(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function JY(t,e){var n=FA(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?WY:GY:typeof e=="function"?n.local?YY:XY:n.local?ZY:KY)(n,e))}function HA(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function QY(t){return function(){this.style.removeProperty(t)}}function qY(t,e,n){return function(){this.style.setProperty(t,e,n)}}function eJ(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function tJ(t,e,n){return arguments.length>1?this.each((e==null?QY:typeof e=="function"?eJ:qY)(t,e,n??"")):nJ(this.node(),t)}function nJ(t,e){return t.style.getPropertyValue(e)||HA(t).getComputedStyle(t,null).getPropertyValue(e)}function rJ(t){return function(){delete this[t]}}function iJ(t,e){return function(){this[t]=e}}function oJ(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function sJ(t,e){return arguments.length>1?this.each((e==null?rJ:typeof e=="function"?oJ:iJ)(t,e)):this.node()[t]}function GA(t){return t.trim().split(/^|\s+/)}function E0(t){return t.classList||new WA(t)}function WA(t){this._node=t,this._names=GA(t.getAttribute("class")||"")}WA.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function KA(t,e){for(var n=E0(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function ZA(t,e){for(var n=E0(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function aJ(t){return function(){KA(this,t)}}function lJ(t){return function(){ZA(this,t)}}function uJ(t,e){return function(){(e.apply(this,arguments)?KA:ZA)(this,t)}}function cJ(t,e){var n=GA(t+"");if(arguments.length<2){for(var r=E0(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?uJ:e?aJ:lJ)(n,e))}function dJ(){this.textContent=""}function fJ(t){return function(){this.textContent=t}}function hJ(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function pJ(t){return arguments.length?this.each(t==null?dJ:(typeof t=="function"?hJ:fJ)(t)):this.node().textContent}function gJ(){this.innerHTML=""}function mJ(t){return function(){this.innerHTML=t}}function vJ(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function yJ(t){return arguments.length?this.each(t==null?gJ:(typeof t=="function"?vJ:mJ)(t)):this.node().innerHTML}function bJ(){this.nextSibling&&this.parentNode.appendChild(this)}function _J(){return this.each(bJ)}function xJ(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function wJ(){return this.each(xJ)}function SJ(t){var e=typeof t=="function"?t:zA(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function EJ(){return null}function TJ(t,e){var n=typeof t=="function"?t:zA(t),r=e==null?EJ:typeof e=="function"?e:UA(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function IJ(){var t=this.parentNode;t&&t.removeChild(this)}function CJ(){return this.each(IJ)}function AJ(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function PJ(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function kJ(t){return this.select(t?PJ:AJ)}function OJ(t){return arguments.length?this.property("__data__",t):this.node().__data__}function NJ(t){return function(e){t.call(this,e,this.__data__)}}function RJ(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function $J(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,o;n<i;++n)o=e[n],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function DJ(t,e,n){return function(){var r=this.__on,i,o=NJ(e);if(r){for(var s=0,a=r.length;s<a;++s)if((i=r[s]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=e;return}}this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(i):this.__on=[i]}}function MJ(t,e,n){var r=RJ(t+""),i,o=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,u=a.length,c;l<u;++l)for(i=0,c=a[l];i<o;++i)if((s=r[i]).type===c.type&&s.name===c.name)return c.value}return}for(a=e?DJ:$J,i=0;i<o;++i)this.each(a(r[i],e,n));return this}function XA(t,e,n){var r=HA(t),i=r.CustomEvent;typeof i=="function"?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function LJ(t,e){return function(){return XA(this,t,e)}}function VJ(t,e){return function(){return XA(this,t,e.apply(this,arguments))}}function FJ(t,e){return this.each((typeof e=="function"?VJ:LJ)(t,e))}function*zJ(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length,s;i<o;++i)(s=r[i])&&(yield s)}var UJ=[null];function ei(t,e){this._groups=t,this._parents=e}function BJ(){return this}ei.prototype={constructor:ei,select:cY,selectAll:gY,selectChild:_Y,selectChildren:EY,filter:TY,data:OY,enter:IY,exit:RY,join:$Y,merge:DY,selection:BJ,order:MY,sort:LY,call:FY,nodes:zY,node:UY,size:BY,empty:jY,each:HY,attr:JY,style:tJ,property:sJ,classed:cJ,text:pJ,html:yJ,raise:_J,lower:wJ,append:SJ,insert:TJ,remove:CJ,clone:kJ,datum:OJ,on:MJ,dispatch:FJ,[Symbol.iterator]:zJ};function id(t){return typeof t=="string"?new ei([[document.querySelector(t)]],[document.documentElement]):new ei([[t]],UJ)}function jJ(t){let e;for(;e=t.sourceEvent;)t=e;return t}function YA(t,e){if(t=jJ(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}var HJ={value:()=>{}};function JA(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Pp(n)}function Pp(t){this._=t}function GJ(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Pp.prototype=JA.prototype={constructor:Pp,on:function(t,e){var n=this._,r=GJ(t+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((i=(t=r[o]).type)&&(i=WJ(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<s;)if(i=(t=r[o]).type)n[i]=QA(n[i],t.name,e);else if(e==null)for(i in n)n[i]=QA(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Pp(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,i=o.length;r<i;++r)o[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};function WJ(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function QA(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=HJ,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}const KJ={passive:!1},od={capture:!0,passive:!1};function T0(t){t.stopImmediatePropagation()}function tu(t){t.preventDefault(),t.stopImmediatePropagation()}function ZJ(t){var e=t.document.documentElement,n=id(t).on("dragstart.drag",tu,od);"onselectstart"in e?n.on("selectstart.drag",tu,od):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function XJ(t,e){var n=t.document.documentElement,r=id(t).on("dragstart.drag",null);e&&(r.on("click.drag",tu,od),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const kp=t=>()=>t;function I0(t,{sourceEvent:e,subject:n,target:r,identifier:i,active:o,x:s,y:a,dx:l,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}I0.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function YJ(t){return!t.ctrlKey&&!t.button}function JJ(){return this.parentNode}function QJ(t,e){return e??{x:t.x,y:t.y}}function qJ(){return navigator.maxTouchPoints||"ontouchstart"in this}function eQ(){var t=YJ,e=JJ,n=QJ,r=qJ,i={},o=JA("start","drag","end"),s=0,a,l,u,c,d=0;function h(y){y.on("mousedown.drag",p).filter(r).on("touchstart.drag",_).on("touchmove.drag",E,KJ).on("touchend.drag touchcancel.drag",w).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(y,k){if(!(c||!t.call(this,y,k))){var $=v(this,e.call(this,y,k),y,k,"mouse");$&&(id(y.view).on("mousemove.drag",g,od).on("mouseup.drag",m,od),ZJ(y.view),T0(y),u=!1,a=y.clientX,l=y.clientY,$("start",y))}}function g(y){if(tu(y),!u){var k=y.clientX-a,$=y.clientY-l;u=k*k+$*$>d}i.mouse("drag",y)}function m(y){id(y.view).on("mousemove.drag mouseup.drag",null),XJ(y.view,u),tu(y),i.mouse("end",y)}function _(y,k){if(t.call(this,y,k)){var $=y.changedTouches,O=e.call(this,y,k),A=$.length,x,N;for(x=0;x<A;++x)(N=v(this,O,y,k,$[x].identifier,$[x]))&&(T0(y),N("start",y,$[x]))}}function E(y){var k=y.changedTouches,$=k.length,O,A;for(O=0;O<$;++O)(A=i[k[O].identifier])&&(tu(y),A("drag",y,k[O]))}function w(y){var k=y.changedTouches,$=k.length,O,A;for(c&&clearTimeout(c),c=setTimeout(function(){c=null},500),O=0;O<$;++O)(A=i[k[O].identifier])&&(T0(y),A("end",y,k[O]))}function v(y,k,$,O,A,x){var N=o.copy(),P=YA(x||$,k),b,S,I;if((I=n.call(y,new I0("beforestart",{sourceEvent:$,target:h,identifier:A,active:s,x:P[0],y:P[1],dx:0,dy:0,dispatch:N}),O))!=null)return b=I.x-P[0]||0,S=I.y-P[1]||0,function V(M,H,G){var q=P,oe;switch(M){case"start":i[A]=V,oe=s++;break;case"end":delete i[A],--s;case"drag":P=YA(G||H,k),oe=s;break}N.call(M,y,new I0(M,{sourceEvent:H,subject:I,target:h,identifier:A,active:oe,x:P[0]+b,y:P[1]+S,dx:P[0]-q[0],dy:P[1]-q[1],dispatch:N}),O)}}return h.filter=function(y){return arguments.length?(t=typeof y=="function"?y:kp(!!y),h):t},h.container=function(y){return arguments.length?(e=typeof y=="function"?y:kp(y),h):e},h.subject=function(y){return arguments.length?(n=typeof y=="function"?y:kp(y),h):n},h.touchable=function(y){return arguments.length?(r=typeof y=="function"?y:kp(!!y),h):r},h.on=function(){var y=o.on.apply(o,arguments);return y===o?h:y},h.clickDistance=function(y){return arguments.length?(d=(y=+y)*y,h):Math.sqrt(d)},h}var xa=(t=>(t.Line="line",t.Handle="handle",t))(xa||{});function tQ({width:t,prevWidth:e,height:n,prevHeight:r,invertX:i,invertY:o}){const s=t-e,a=n-r,l=[s>0?1:s<0?-1:0,a>0?1:a<0?-1:0];return s&&i&&(l[0]=l[0]*-1),a&&o&&(l[1]=l[1]*-1),l}const nQ={[xa.Line]:"right",[xa.Handle]:"bottom-right"},rQ={[xa.Line]:"borderColor",[xa.Handle]:"backgroundColor"},qA=Te({...{name:"ResizeControl",compatConfig:{MODE:3}},props:{nodeId:{},color:{},minWidth:{default:10},minHeight:{default:10},maxWidth:{default:Number.MAX_VALUE},maxHeight:{default:Number.MAX_VALUE},position:{},variant:{default:"handle"},shouldResize:{},keepAspectRatio:{type:[Boolean,Number],default:!1},autoScale:{type:Boolean,default:!0},handleClassName:{},handleStyle:{},lineClassName:{},lineStyle:{},isVisible:{type:Boolean}},emits:["resizeStart","resize","resizeEnd"],setup(t,{emit:e}){const n=t,r={width:0,height:0,x:0,y:0},i={...r,pointerX:0,pointerY:0,aspectRatio:1},{findNode:o,emits:s,viewport:a,noDragClassName:l}=$t(),u=SA(),c=we();let d=i,h=r;const p=Ot(()=>n.position??nQ[n.variant]),g=Z(()=>p.value.split("-")),m=Ot(()=>n.color?{[rQ[n.variant]]:n.color}:{});return Tb(_=>{if(!c.value||!n.nodeId)return;const E=id(c.value),w=p.value.includes("right")||p.value.includes("left"),v=p.value.includes("bottom")||p.value.includes("top"),y=p.value.includes("left"),k=p.value.includes("top"),$=eQ().on("start",O=>{const A=o(n.nodeId),{xSnapped:x,ySnapped:N}=u(O);h={width:(A==null?void 0:A.dimensions.width)??0,height:(A==null?void 0:A.dimensions.height)??0,x:(A==null?void 0:A.position.x)??0,y:(A==null?void 0:A.position.y)??0},d={...h,pointerX:x,pointerY:N,aspectRatio:h.width/h.height},e("resizeStart",{event:O,params:h})}).on("drag",O=>{var A;const{xSnapped:x,ySnapped:N}=u(O),P=o(n.nodeId);if(P){const b=[],{pointerX:S,pointerY:I,width:V,height:M,x:H,y:G,aspectRatio:q}=d,{x:oe,y:ae,width:he,height:xe}=h,Ee=Math.floor(w?x-S:0),de=Math.floor(v?N-I:0);let ce=Ao(V+(y?-Ee:Ee),n.minWidth,n.maxWidth),fe=Ao(M+(k?-de:de),n.minHeight,n.maxHeight);if(n.keepAspectRatio){const B=ce/fe;let D=q;typeof n.keepAspectRatio=="number"&&B!==n.keepAspectRatio&&(D=n.keepAspectRatio);const L=w&&v,z=w&&!v,F=v&&!w;ce=B<=D&&L||F?fe*D:ce,fe=B>D&&L||z?ce/D:fe,ce>=n.maxWidth?(ce=n.maxWidth,fe=n.maxWidth/D):ce<=n.minWidth&&(ce=n.minWidth,fe=n.minWidth/D),fe>=n.maxHeight?(fe=n.maxHeight,ce=n.maxHeight*D):fe<=n.minHeight&&(fe=n.minHeight,ce=n.minHeight*D)}const Le=ce!==he,Re=fe!==xe;if(y||k){const B=y?H-(ce-V):H,D=k?G-(fe-M):G,L=B!==oe&&Le,z=D!==ae&ℜif(L||z){const F={id:P.id,type:"position",from:P.position,position:{x:L?B:oe,y:z?D:ae}};b.push(F),h.x=F.position.x,h.y=F.position.y}}if(n.nodeId&&(Le||Re)){const B={id:n.nodeId,type:"dimensions",updateStyle:!0,resizing:!0,dimensions:{width:ce,height:fe}};b.push(B),h.width=ce,h.height=fe}if(b.length===0)return;const Be=tQ({width:h.width,prevWidth:he,height:h.height,prevHeight:xe,invertX:y,invertY:k}),et={...h,direction:Be};if(((A=n.shouldResize)==null?void 0:A.call(n,O,et))===!1)return;e("resize",{event:O,params:et}),s.nodesChange(b)}}).on("end",O=>{if(n.nodeId){const A={id:n.nodeId,type:"dimensions",resizing:!1};e("resizeEnd",{event:O,params:h}),s.nodesChange([A])}});E.call($),_(()=>{E.on(".drag",null)})}),(_,E)=>(j(),K("div",{ref_key:"resizeControlRef",ref:c,class:Se(["vue-flow__resize-control",[...g.value,_.variant,re(l)]]),style:Xe({...m.value,scale:_.variant===re(xa).Handle?`${Math.max(1/re(a).zoom,1)}`:void 0})},[Mt(_.$slots,"default")],6))}}),iQ=Te({...{name:"NodeResizer",compatConfig:{MODE:3},inheritAttrs:!1},props:{nodeId:{},color:{},handleClassName:{},handleStyle:{},lineClassName:{},lineStyle:{},isVisible:{type:Boolean,default:!0},minWidth:{},minHeight:{},maxWidth:{},maxHeight:{},shouldResize:{},keepAspectRatio:{type:[Boolean,Number]},autoScale:{type:Boolean,default:!0}},emits:["resizeStart","resize","resizeEnd"],setup(t,{emit:e}){const n=t,{findNode:r,emits:i}=$t(),o=["top-left","top-right","bottom-left","bottom-right"],s=["top","right","bottom","left"],a=yt(b0,null),l=Ot(()=>typeof n.nodeId=="string"?n.nodeId:a),u=Z(()=>r(l.value));return Qe([()=>n.minWidth,()=>n.minHeight,()=>n.maxWidth,()=>n.maxHeight,()=>{var c;return!!((c=u.value)!=null&&c.dimensions.width)&&!!u.value.dimensions.height}],([c,d,h,p,g])=>{const m=u.value;if(m&&g){const _={id:m.id,type:"dimensions",updateStyle:!0,dimensions:{width:m.dimensions.width,height:m.dimensions.height}};c&&m.dimensions.width<c&&(_.dimensions.width=c),d&&m.dimensions.height<d&&(_.dimensions.height=d),h&&m.dimensions.width>h&&(_.dimensions.width=h),p&&m.dimensions.height>p&&(_.dimensions.height=p),(_.dimensions.width!==m.dimensions.width||_.dimensions.height!==m.dimensions.height)&&i.nodesChange([_])}},{flush:"post",immediate:!0}),(c,d)=>c.isVisible?(j(),K(Ue,{key:0},[(j(),K(Ue,null,It(s,h=>ue(qA,{key:h,class:Se(c.lineClassName),style:Xe(c.lineStyle),"node-id":l.value,position:h,variant:re(xa).Line,color:c.color,"min-width":c.minWidth,"min-height":c.minHeight,"max-width":c.maxWidth,"max-height":c.maxHeight,"should-resize":c.shouldResize,"keep-aspect-ratio":c.keepAspectRatio,"auto-scale":c.autoScale,onResizeStart:d[0]||(d[0]=p=>e("resizeStart",p)),onResize:d[1]||(d[1]=p=>e("resize",p)),onResizeEnd:d[2]||(d[2]=p=>e("resizeEnd",p))},null,8,["class","style","node-id","position","variant","color","min-width","min-height","max-width","max-height","should-resize","keep-aspect-ratio","auto-scale"])),64)),(j(),K(Ue,null,It(o,h=>ue(qA,{key:h,class:Se(c.handleClassName),style:Xe(c.handleStyle),"node-id":l.value,position:h,color:c.color,"min-width":c.minWidth,"min-height":c.minHeight,"max-width":c.maxWidth,"max-height":c.maxHeight,"should-resize":c.shouldResize,"keep-aspect-ratio":c.keepAspectRatio,"auto-scale":c.autoScale,onResizeStart:d[3]||(d[3]=p=>e("resizeStart",p)),onResize:d[4]||(d[4]=p=>e("resize",p)),onResizeEnd:d[5]||(d[5]=p=>e("resizeEnd",p))},null,8,["class","style","node-id","position","color","min-width","min-height","max-width","max-height","should-resize","keep-aspect-ratio","auto-scale"])),64))],64)):Oe("",!0)}}),oQ=["data-lumina-id"],sQ=["src"],aQ={key:1,class:"placeholder"},eP=Jr(Te({__name:"StudioDiagramNode",props:{id:{},data:{},selected:{type:Boolean},label:{},type:{},style:{},editable:{type:Boolean},elementId:{}},setup(t){const e=t,n=Z(()=>{if(!e.label)return null;if(typeof e.label=="string")return e.label;if(typeof e.label=="object"&&"toString"in e.label){const a=e.label.toString();if(a!=="[object Object]")return a}return null}),r=Z(()=>{var a,l;return((a=e.data)==null?void 0:a.type)==="image"||((l=e.data)==null?void 0:l.shape)==="image"}),i=Z(()=>{var a;return((a=e.data)==null?void 0:a.shape)||"rectangle"}),o=Z(()=>{var a,l,u,c,d,h;return{backgroundColor:((a=e.style)==null?void 0:a.backgroundColor)||((u=(l=e.data)==null?void 0:l.style)==null?void 0:u.backgroundColor)||"#ffffff",color:((c=e.style)==null?void 0:c.color)||((h=(d=e.data)==null?void 0:d.style)==null?void 0:h.color)||"#000000",borderRadius:i.value==="rounded"?"12px":"4px",border:e.editable&&e.selected?"2px solid #3b82f6":"1px solid #ccc"}}),s=Z(()=>({borderRadius:"4px",border:e.editable&&e.selected?"2px solid #3b82f6":"none",overflow:"hidden"}));return(a,l)=>{var u,c;return j(),K("div",{class:"studio-diagram-node","data-lumina-id":t.elementId||void 0},[t.editable&&t.selected?(j(),$e(re(iQ),{key:0,"min-width":80,"min-height":40})):Oe("",!0),r.value?(j(),K("div",{key:1,class:"node-content node-image",style:Xe(s.value)},[(u=t.data)!=null&&u.imageUrl?(j(),K("img",{key:0,src:t.data.imageUrl,alt:"",class:"node-img"},null,8,sQ)):(j(),K("div",aQ,[...l[0]||(l[0]=[C("i",{class:"ph-thin ph-image text-2xl text-gray-400"},null,-1),C("span",{class:"text-xs text-gray-400"},"No Image",-1)])]))],4)):(j(),K("div",{key:2,class:"node-content",style:Xe(o.value)},Ie(n.value||((c=t.data)==null?void 0:c.label)||"Node"),5)),t.editable?(j(),K(Ue,{key:3},[ue(re(ys),{type:"target",position:re(Fe).Top,class:"node-handle"},null,8,["position"]),ue(re(ys),{type:"source",position:re(Fe).Bottom,class:"node-handle"},null,8,["position"]),ue(re(ys),{type:"target",position:re(Fe).Left,class:"node-handle"},null,8,["position"]),ue(re(ys),{type:"source",position:re(Fe).Right,class:"node-handle"},null,8,["position"])],64)):Oe("",!0)],8,oQ)}}}),[["__scopeId","data-v-602e723d"]]),tP=Te({__name:"LayoutDiagram",props:{data:{}},setup(t){const e=t,{options:n,index:r}=um(),i=Z(()=>!!n.studio),o=we(e.data.nodes||[]),s=we(e.data.edges||[]);Qe(()=>e.data.edges,v=>{v&&JSON.stringify(v)!==JSON.stringify(s.value)&&(s.value=[...v])},{deep:!0}),jt(()=>{e.data.nodes&&(o.value=[...e.data.nodes]),e.data.edges&&(s.value=[...e.data.edges])});const{onNodeDragStop:a,onConnect:l}=$t(),u=()=>{const v=o.value.map(y=>JSON.parse(JSON.stringify(y)));Promise.resolve().then(()=>Fu).then(({bus:y})=>{y.emit("action",{type:"slide-update",slideIndex:r.value,patch:{nodes:v}})})};Promise.resolve().then(()=>Fu).then(({bus:v})=>{v.on("diagram-node-update",y=>{if(y.slideIndex!==r.value)return;const k=o.value.findIndex($=>$.id===y.nodeId);if(k!==-1){const $=o.value[k],O=y.key.split(".");let A=$;for(let x=0;x<O.length-1;x++)A[O[x]]||(A[O[x]]={}),A=A[O[x]];A[O[O.length-1]]=y.value,o.value=[...o.value],u()}})}),a(v=>{if(!i.value)return;const y=o.value.map(k=>JSON.parse(JSON.stringify(k)));Promise.resolve().then(()=>Fu).then(({bus:k})=>{k.emit("action",{type:"slide-update",slideIndex:r.value,patch:{nodes:y}})})}),l(v=>{if(!i.value)return;const y={id:`edge-${v.source}-${v.target}-${Date.now()}`,source:v.source,target:v.target,sourceHandle:v.sourceHandle,targetHandle:v.targetHandle,type:"default",animated:!1};s.value=[...s.value,y];const k=s.value.map($=>JSON.parse(JSON.stringify($)));Promise.resolve().then(()=>Fu).then(({bus:$})=>{$.emit("action",{type:"slide-update",slideIndex:r.value,patch:{edges:k}})})});const c=yt(Jm,null),{onNodeClick:d,onPaneClick:h,onEdgeClick:p,addNodes:g,project:m,findNode:_}=$t();d(({node:v})=>{if(!i.value||!c)return;const k=(e.data.nodes||[]).findIndex($=>$.id===v.id);k!==-1&&c.select(`slides.${r.value}.nodes.${k}`)}),p(({edge:v})=>{if(!i.value||!c)return;const k=(e.data.edges||[]).findIndex($=>$.id===v.id);if(k!==-1){const $=`slides.${r.value}.edges.${k}`;c.select($)}});const E=v=>{v.preventDefault(),v.dataTransfer&&(v.dataTransfer.dropEffect="move")},w=v=>{var x;if(!i.value||!c)return;const y=(x=v.dataTransfer)==null?void 0:x.getData("application/vueflow");if(!y)return;const{left:k,top:$}=v.currentTarget.getBoundingClientRect(),O=m({x:v.clientX-k,y:v.clientY-$}),A={id:`node-${Date.now()}`,type:"default",position:O,label:`${y} Node`,data:{type:y,style:{backgroundColor:"#ffffff",color:"#000000",width:"150px",height:"50px"}}};c.store.addNode(`slides.${r.value}.nodes`,A),c.commit()};return(v,y)=>(j(),$e(ji,{data:t.data,"slide-index":re(r),class:"layout-diagram"},{default:ke(()=>[C("div",{class:Se(["w-full relative",t.data.sizing==="container"?"h-full min-h-[400px]":"h-screen"]),onClick:y[2]||(y[2]=kr(()=>{},["stop"]))},[ue(re($X),{nodes:o.value,"onUpdate:nodes":y[0]||(y[0]=k=>o.value=k),edges:s.value,"onUpdate:edges":y[1]||(y[1]=k=>s.value=k),class:"h-full w-full","fit-view-on-init":!0,"default-viewport":{zoom:1},"min-zoom":.1,"max-zoom":4,onDragover:E,onDrop:w},{"node-default":ke(k=>{var $;return[ue(eP,ao(k,{editable:i.value,"element-id":($=k.node)==null?void 0:$.id}),null,16,["editable","element-id"])]}),"node-input":ke(k=>{var $;return[ue(eP,ao(k,{editable:i.value,"element-id":($=k.node)==null?void 0:$.id}),null,16,["editable","element-id"])]}),default:ke(()=>[i.value?(j(),$e(re(sY),{key:0})):Oe("",!0)]),_:1},8,["nodes","edges"])],2)]),_:1},8,["data","slide-index"]))}}),lQ={class:"w-full h-full"},uQ=Te({__name:"EditorLayoutFixed",props:{data:{},slideIndex:{}},setup(t){const e=n=>({half:$y,statement:Dy,features:My,timeline:Ly,steps:Vy,chart:FI,video:zI,auto:UI,custom:BI,diagram:tP})[n]||"div";return(n,r)=>(j(),K("div",lQ,[ue(fs,{path:`slides.${t.slideIndex}`,label:t.data.type,class:"w-full h-full"},{default:ke(()=>[(j(),$e(Xn(e(t.data.type)),{data:t.data},null,8,["data"]))]),_:1},8,["path","label"])]))}}),cQ={class:"w-full h-full"},dQ=Te({__name:"EditorLayoutSteps",props:{data:{},slideIndex:{}},setup(t){return(e,n)=>(j(),K("div",cQ,[ue(fs,{path:`slides.${t.slideIndex}`,label:t.data.type,class:"w-full h-full"},{default:ke(()=>[ue(Vy,{data:t.data},null,8,["data"])]),_:1},8,["path","label"])]))}}),fQ={class:"w-full h-full"},hQ=Te({__name:"EditorLayoutTimeline",props:{data:{},slideIndex:{}},setup(t){return(e,n)=>(j(),K("div",fQ,[ue(fs,{path:`slides.${t.slideIndex}`,label:t.data.type,class:"w-full h-full"},{default:ke(()=>[ue(Ly,{data:t.data},null,8,["data"])]),_:1},8,["path","label"])]))}}),pQ={class:"w-full h-full"},gQ=Te({__name:"EditorLayoutFeatures",props:{data:{},slideIndex:{}},setup(t){return(e,n)=>(j(),K("div",pQ,[ue(fs,{path:`slides.${t.slideIndex}`,label:t.data.type,class:"w-full h-full"},{default:ke(()=>[ue(My,{data:t.data},null,8,["data"])]),_:1},8,["path","label"])]))}}),mQ={class:"w-full h-full"},vQ=Te({__name:"EditorLayoutHalf",props:{data:{},slideIndex:{}},setup(t){return(e,n)=>(j(),K("div",mQ,[ue(fs,{path:`slides.${t.slideIndex}`,label:t.data.type,class:"w-full h-full"},{default:ke(()=>[ue($y,{data:t.data},null,8,["data"])]),_:1},8,["path","label"])]))}}),yQ={class:"w-full h-full"},bQ=Te({__name:"EditorLayoutStatement",props:{data:{},slideIndex:{}},setup(t){return(e,n)=>(j(),K("div",yQ,[ue(fs,{path:`slides.${t.slideIndex}`,label:t.data.type,class:"w-full h-full"},{default:ke(()=>[ue(Dy,{data:t.data},null,8,["data"])]),_:1},8,["path","label"])]))}}),_Q={class:"absolute top-4 right-4 z-50 flex items-center gap-2 bg-black/60 backdrop-blur-md rounded-lg px-3 py-2 border border-white/10"},xQ={class:"text-white/70 text-xs font-mono w-12 text-center"},wQ={key:0,class:"absolute top-4 left-4 z-50 bg-blue-500/80 text-white text-xs px-2 py-1 rounded"},SQ={class:"absolute inset-0 z-0 pointer-events-none"},EQ={class:"absolute inset-0 z-10 overflow-y-auto overflow-x-hidden scroll-smooth"},TQ={class:"relative min-h-full w-full"},IQ={key:1,class:"flex w-full h-[720px] items-center justify-center text-white/30"},CQ=Jr(Te({__name:"EditorCanvas",setup(t){const{slide:e,index:n}=um(),r=yt(vn),i=we(.6),o=we(0),s=we(0),a=we(!1),l=we({x:0,y:0}),u=Z(()=>({transform:`translate(${o.value}px, ${s.value}px) scale(${i.value})`,transformOrigin:"center center",transition:a.value?"none":"transform 0.15s ease-out"})),c=we({top:"-20%",left:"-10%"}),d=Z(()=>({backgroundColor:"var(--lumina-color-background, #030303)",color:"var(--lumina-color-text, #ffffff)",fontFamily:"var(--lumina-font-body, Inter, system-ui, sans-serif)"})),h=Z(()=>{var b,S,I,V,M,H;return{top:((I=(S=(b=e.value)==null?void 0:b.meta)==null?void 0:S.orbPos)==null?void 0:I.top)||c.value.top,left:((H=(M=(V=e.value)==null?void 0:V.meta)==null?void 0:M.orbPos)==null?void 0:H.left)||c.value.left}}),p=()=>{var M;const b=r==null?void 0:r.state.deck;if(!b)return;const S=((M=b.meta)==null?void 0:M.theme)||b.theme||"default",I=b.meta||{},V={colors:I.colors,typography:I.typography,spacing:I.spacing,borderRadius:I.borderRadius,effects:I.effects,components:I.components};Hl.inject(S,V)};Qe(()=>{var b,S;return(S=(b=r==null?void 0:r.state.deck)==null?void 0:b.meta)==null?void 0:S.theme},p,{immediate:!0}),Qe(()=>{var b;return(b=r==null?void 0:r.state.deck)==null?void 0:b.theme},p),Qe(()=>r==null?void 0:r.state.deck,p,{immediate:!0,deep:!1}),Qe(n,(b,S)=>{if(b===0)c.value={top:"-20%",left:"-10%"};else if(S!==void 0){const I=(V,M)=>Math.floor(Math.random()*(M-V+1)+V);c.value={top:`${I(-25,65)}%`,left:`${I(-25,65)}%`}}},{immediate:!0}),jt(()=>{p()});const g=()=>{i.value=Math.min(i.value+.1,2)},m=()=>{i.value=Math.max(i.value-.1,.2)},_=()=>{i.value=.6,o.value=0,s.value=0},E=b=>{if(b.ctrlKey||b.metaKey){b.preventDefault();const V=b.deltaY>0?-.05:.05;i.value=Math.max(.2,Math.min(2,i.value+V));return}const I=b.target.closest(".overflow-y-auto");if(I){const{scrollTop:V,scrollHeight:M,clientHeight:H}=I;if(M>H){const q=V<=0,oe=Math.abs(V+H-M)<1,ae=b.deltaY<0,he=b.deltaY>0;if(ae&&!q||he&&!oe){b.stopPropagation();return}}}b.preventDefault(),b.shiftKey&&b.deltaX===0?o.value-=b.deltaY:(o.value-=b.deltaX,s.value-=b.deltaY)},w=we(!1),v=we(null),y=b=>{b.code==="Space"&&!b.repeat&&!(b.target instanceof HTMLInputElement||b.target instanceof HTMLTextAreaElement)&&(w.value=!0)},k=b=>{b.code==="Space"&&(w.value=!1,a.value&&!$.value&&(a.value=!1))};jt(()=>{p(),window.addEventListener("keydown",y),window.addEventListener("keyup",k)}),sr(()=>{window.removeEventListener("keydown",y),window.removeEventListener("keyup",k)});const $=we(!1),O=b=>{const S=b.button===1,I=b.button===0,V=b.target,M=V.classList.contains("canvas-transform-wrapper")||V===v.value;(S||I&&(w.value||b.shiftKey||M))&&(a.value=!0,$.value=!0,l.value={x:b.clientX,y:b.clientY},b.preventDefault())},A=b=>{a.value&&(o.value+=b.clientX-l.value.x,s.value+=b.clientY-l.value.y,l.value={x:b.clientX,y:b.clientY})},x=()=>{a.value=!1,$.value=!1},N=si(),P=()=>{a.value||N.select(`slides.${n.value}`)};return(b,S)=>{var I,V;return j(),K("div",{ref_key:"canvasContainer",ref:v,class:Se(["flex-1 bg-[#050505] overflow-hidden flex items-center justify-center relative transition-cursor duration-150",{"cursor-grab":!a.value&&w.value,"cursor-grabbing":a.value,"cursor-default":!a.value&&!w.value}]),onWheel:E,onMousedown:O,onMousemove:A,onMouseup:x,onMouseleave:x},[C("div",_Q,[C("button",{onClick:m,class:"w-6 h-6 flex items-center justify-center text-white/70 hover:text-white transition"},[...S[0]||(S[0]=[C("i",{class:"ph-thin ph-minus text-xs"},null,-1)])]),C("span",xQ,Ie(Math.round(i.value*100))+"%",1),C("button",{onClick:g,class:"w-6 h-6 flex items-center justify-center text-white/70 hover:text-white transition"},[...S[1]||(S[1]=[C("i",{class:"ph-thin ph-plus text-xs"},null,-1)])]),C("button",{onClick:_,class:"w-6 h-6 flex items-center justify-center text-white/70 hover:text-white transition ml-2",title:"Reset Zoom"},[...S[2]||(S[2]=[C("i",{class:"ph-thin ph-arrows-out-simple text-xs"},null,-1)])])]),a.value?(j(),K("div",wQ," Panning ")):Oe("",!0),C("div",{class:"canvas-transform-wrapper",style:Xe(u.value)},[C("div",{class:"w-[1280px] h-[720px] shadow-2xl relative border border-[#333] overflow-hidden",style:Xe(d.value),onClick:kr(P,["stop"])},[C("div",SQ,[ue(cS,{"orb-color":(V=(I=re(e))==null?void 0:I.meta)==null?void 0:V.orbColor,"orb-pos":h.value},null,8,["orb-color","orb-pos"])]),C("div",EQ,[C("div",TQ,[re(e)?(j(),K(Ue,{key:0},[re(e).type==="flex"?(j(),$e(mj,{key:0,data:re(e),"slide-index":re(n)},null,8,["data","slide-index"])):re(e).type==="steps"?(j(),$e(dQ,{key:1,data:re(e),"slide-index":re(n)},null,8,["data","slide-index"])):re(e).type==="timeline"?(j(),$e(hQ,{key:2,data:re(e),"slide-index":re(n)},null,8,["data","slide-index"])):re(e).type==="features"?(j(),$e(gQ,{key:3,data:re(e),"slide-index":re(n)},null,8,["data","slide-index"])):re(e).type==="half"?(j(),$e(vQ,{key:4,data:re(e),"slide-index":re(n)},null,8,["data","slide-index"])):re(e).type==="statement"?(j(),$e(bQ,{key:5,data:re(e),"slide-index":re(n)},null,8,["data","slide-index"])):(j(),$e(uQ,{key:6,data:re(e),"slide-index":re(n)},null,8,["data","slide-index"]))],64)):(j(),K("div",IQ," No slide selected "))])])],4)],4)],34)}}}),[["__scopeId","data-v-06b57ef9"]]),AQ={class:"fixed bottom-6 left-1/2 -translate-x-1/2 z-50 flex items-center gap-3 bg-[#0a0a0a]/90 backdrop-blur-2xl px-4 py-3 rounded-2xl border border-white/10 shadow-[0_20px_50px_rgba(0,0,0,0.5)] transition-all duration-300"},PQ={class:"relative shrink-0"},kQ={class:"flex flex-col gap-1"},OQ=["onClick"],NQ={class:"w-8 h-8 rounded-lg bg-white/5 flex items-center justify-center group-hover:bg-blue-500/20 group-hover:text-blue-400 transition-colors"},RQ={class:"font-medium"},$Q=["onClick"],DQ={class:"w-full h-full flex items-center justify-center text-[8px] text-white/30",style:{backgroundColor:"var(--lumina-color-background, #0a0a0a)"}},MQ={class:"font-bold text-white/50"},LQ={class:"absolute bottom-1 right-1 px-1.5 py-0.5 bg-white/10 backdrop-blur-md rounded-md text-[6px] text-white/80 font-bold uppercase tracking-tighter"},VQ=["onClick"],FQ={class:"flex flex-col items-center justify-center px-4 py-1.5 rounded-xl bg-white/5 border border-white/5 shrink-0"},zQ={class:"text-[10px] font-mono text-white/50 leading-tight"},UQ={class:"flex flex-col items-center text-center mb-8"},BQ={class:"text-sm text-white/40"},jQ={class:"flex gap-4"},HQ=Jr(Te({__name:"SlideNavigator",setup(t){const e=yt(vn),n=si(),r=we(!1),i=we(null),o=we(!1),s=Z(()=>{var E;return((E=e.state.deck)==null?void 0:E.slides)||[]}),a=Z(()=>e.state.currentIndex),l=Z({get(){var E;return((E=e.state.deck)==null?void 0:E.slides)||[]},set(E){e.patchDeck({slides:E}),n.commit()}}),u=[{type:"flex",label:"Flex Layout",icon:"ph-thin ph-squares-four"},{type:"statement",label:"Statement",icon:"ph-thin ph-quotes"},{type:"half",label:"Half Layout",icon:"ph-thin ph-columns"},{type:"features",label:"Features",icon:"ph-thin ph-grid-four"},{type:"timeline",label:"Timeline",icon:"ph-thin ph-clock"},{type:"steps",label:"Steps",icon:"ph-thin ph-list-numbers"},{type:"diagram",label:"Diagram",icon:"ph-thin ph-tree-structure"}],c={flex:{type:"flex",direction:"horizontal",gap:"md",padding:"lg",elements:[{type:"content",size:"half",halign:"left",valign:"center",elements:[{type:"title",text:"New Slide",size:"xl"},{type:"text",text:"Start editing your content here."}]},{type:"image",size:"half",src:"https://images.unsplash.com/photo-1557683316-973673baf926?w=800",alt:"Placeholder image",fill:!0,rounded:"lg"}]},statement:{type:"statement",tag:"Tagline",title:"Big Statement Here",subtitle:"Supporting description text goes below the main statement."},half:{type:"half",imageSide:"right",image:"https://images.unsplash.com/photo-1557683316-973673baf926?w=800",tag:"Category",title:"Split Layout Title",paragraphs:["First paragraph of content.","Second paragraph with more details."],cta:"Learn More"},features:{type:"features",title:"Key Features",description:"Discover what makes us different.",features:[{icon:"star",title:"Feature One",desc:"Description of the first feature."},{icon:"rocket",title:"Feature Two",desc:"Description of the second feature."},{icon:"lightning",title:"Feature Three",desc:"Description of the third feature."}]},timeline:{type:"timeline",title:"Our Journey",subtitle:"Key milestones in our history.",timeline:[{date:"2020",title:"Founded",description:"Company was established."},{date:"2022",title:"Growth",description:"Expanded to new markets."},{date:"2024",title:"Today",description:"Serving customers worldwide."}]},steps:{type:"steps",title:"How It Works",subtitle:"Simple steps to get started.",steps:[{step:"1",title:"Step One",description:"First thing to do."},{step:"2",title:"Step Two",description:"Second thing to do."},{step:"3",title:"Step Three",description:"Final step."}]},diagram:{type:"diagram",title:"New Diagram",nodes:[{id:"1",type:"input",label:"Start",position:{x:250,y:5}},{id:"2",label:"Process",position:{x:100,y:100}},{id:"3",label:"End",position:{x:400,y:100}}],edges:[{id:"e1-2",source:"1",target:"2",animated:!0},{id:"e1-3",source:"1",target:"3"}]}},d=E=>({flex:"Flex",statement:"Stmt",half:"Half",features:"Feat",timeline:"Time",steps:"Step",diagram:"Diag"})[E]||E.slice(0,4),h=E=>{e.goto(E),n.select(null)},p=()=>{r.value=!r.value},g=E=>{const w=c[E]||c.flex,v=JSON.parse(JSON.stringify(w));v.type==="flex"&&Array.isArray(v.elements)&&v.elements.forEach($=>{$.dragKey=Date.now()+Math.random(),$.type==="content"&&Array.isArray($.elements)&&$.elements.forEach(O=>{O.dragKey=Date.now()+Math.random()+1})});const y=[...s.value],k=a.value+1;y.splice(k,0,v),e.patchDeck({slides:y}),n.commit(),setTimeout(()=>{e.goto(k),r.value=!1},50)},m=()=>{const E=i.value;if(E===null||s.value.length<=1){i.value=null;return}const w=[...s.value];w.splice(E,1),e.patchDeck({slides:w}),n.commit(),a.value>=w.length&&e.goto(w.length-1),i.value=null},_=()=>{r.value=!1};return jt(()=>{document.addEventListener("click",_)}),sr(()=>{document.removeEventListener("click",_)}),(E,w)=>(j(),K(Ue,null,[C("div",AQ,[C("div",PQ,[C("button",{onClick:kr(p,["stop"]),class:"w-10 h-10 rounded-xl bg-blue-600 hover:bg-blue-500 text-white flex items-center justify-center transition-all duration-200 active:scale-95 shadow-lg shadow-blue-600/20 group",title:"Add New Slide"},[C("i",{class:Se(["ph-thin ph-plus transition-transform duration-300",{"rotate-45":r.value}])},null,2)]),ue(Xa,{name:"menu"},{default:ke(()=>[r.value?(j(),K("div",{key:0,class:"absolute bottom-full left-0 mb-4 bg-[#111] border border-white/10 rounded-2xl p-2 min-w-[180px] shadow-2xl backdrop-blur-xl z-[60]",onClick:w[0]||(w[0]=kr(()=>{},["stop"]))},[w[7]||(w[7]=C("div",{class:"px-3 py-2 text-[10px] font-bold text-white/30 uppercase tracking-widest border-b border-white/5 mb-1"}," Select Layout ",-1)),C("div",kQ,[(j(),K(Ue,null,It(u,v=>C("button",{key:v.type,onClick:y=>g(v.type),class:"w-full px-3 py-2.5 text-left text-xs text-white/70 hover:text-white hover:bg-white/5 rounded-xl transition-all flex items-center gap-3 group"},[C("div",NQ,[C("i",{class:Se(v.icon)},null,2)]),C("span",RQ,Ie(v.label),1)],8,OQ)),64))])])):Oe("",!0)]),_:1})]),ue(re(zh),{modelValue:l.value,"onUpdate:modelValue":w[1]||(w[1]=v=>l.value=v),"item-key":"id",class:"flex items-center gap-2 max-w-[650px] overflow-x-auto slide-scroll px-1 py-1 scroll-smooth",animation:200,"ghost-class":"opacity-50","drag-class":"scale-105",onStart:w[2]||(w[2]=v=>o.value=!0),onEnd:w[3]||(w[3]=v=>o.value=!1)},{item:ke(({element:v,index:y})=>[C("button",{onClick:k=>h(y),class:Se(["shrink-0 w-16 h-10 rounded-xl overflow-hidden border-2 transition-all duration-200 relative group active:scale-95 cursor-grab active:cursor-grabbing",a.value===y?"border-blue-500 ring-4 ring-blue-500/20 scale-105 z-10":"border-white/5 shadow-inner hover:border-white/20"])},[C("div",DQ,[C("span",MQ,Ie(y+1),1),w[8]||(w[8]=C("div",{class:"absolute inset-0 bg-gradient-to-t from-black/60 to-transparent"},null,-1))]),C("div",LQ,Ie(d(v.type)),1),s.value.length>1?(j(),K("button",{key:0,onClick:kr(k=>i.value=y,["stop"]),class:"absolute top-1 right-1 w-5 h-5 bg-red-500/80 hover:bg-red-500 rounded-lg flex items-center justify-center opacity-0 group-hover:opacity-100 transition-all duration-200 transform hover:scale-110"},[...w[9]||(w[9]=[C("i",{class:"ph-thin ph-x text-[10px] text-white"},null,-1)])],8,VQ)):Oe("",!0)],10,$Q)]),_:1},8,["modelValue"]),C("div",FQ,[w[11]||(w[11]=C("div",{class:"text-[10px] font-bold text-white uppercase tracking-tighter leading-tight"},"Slide",-1)),C("div",zQ,[bt(Ie(a.value+1)+" ",1),w[10]||(w[10]=C("span",{class:"text-white/20"},"/",-1)),bt(" "+Ie(s.value.length),1)])])]),ue(Xa,{name:"modal"},{default:ke(()=>[i.value!==null?(j(),K("div",{key:0,class:"fixed inset-0 z-[100] flex items-center justify-center bg-black/80 backdrop-blur-md",onClick:w[6]||(w[6]=v=>i.value=null)},[C("div",{class:"bg-[#111111] border border-white/10 rounded-3xl p-8 shadow-2xl max-w-sm w-full mx-4 transform transition-all",onClick:w[5]||(w[5]=kr(()=>{},["stop"]))},[C("div",UQ,[w[12]||(w[12]=C("div",{class:"w-16 h-16 rounded-2xl bg-red-500/10 flex items-center justify-center text-red-500 mb-6 border border-red-500/20"},[C("i",{class:"ph-thin ph-trash text-2xl"})],-1)),w[13]||(w[13]=C("h3",{class:"text-xl font-bold text-white mb-2"},"Delete slide?",-1)),C("p",BQ,"This will permanently remove slide #"+Ie(i.value+1)+" and all its content.",1)]),C("div",jQ,[C("button",{onClick:w[4]||(w[4]=v=>i.value=null),class:"flex-1 px-6 py-3 rounded-2xl bg-white/5 hover:bg-white/10 text-white transition text-sm font-semibold border border-white/5"}," Cancel "),C("button",{onClick:m,class:"flex-1 px-6 py-3 rounded-2xl bg-red-600 hover:bg-red-500 text-white transition text-sm font-semibold shadow-xl shadow-red-600/30"}," Delete ")])])])):Oe("",!0)]),_:1})],64))}}),[["__scopeId","data-v-b431cd99"]]),GQ={class:"flex flex-col w-full h-screen bg-black text-white font-sans overflow-hidden"},WQ={class:"flex flex-1 overflow-hidden relative"},KQ={class:"w-72 bg-[#111] border-l border-[#333] flex flex-col"},nP=Te({__name:"LuminaStudio",setup(t){const e=E5();return to(Jm,e),(n,r)=>(j(),K("div",GQ,[ue(f9),C("div",WQ,[ue(bB),ue(CQ),C("div",KQ,[ue(aj)]),ue(HQ)])]))}}),ti=class ti{constructor(e){dr(this,"channel",null);dr(this,"handlers",new Set);dr(this,"lastTimestamp",0);dr(this,"heartbeatInterval",null);dr(this,"isConnected",!1);dr(this,"connectionHandlers",new Set);this.channelName=e,this.initChannel()}static getInstance(e,n=!1){return n?new ti(e):(ti.instances.has(e)||ti.instances.set(e,new ti(e)),ti.instances.get(e))}static isSupported(){return typeof BroadcastChannel<"u"}initChannel(){if(!ti.isSupported()){console.warn("[SpeakerChannel] BroadcastChannel not supported in this environment");return}try{this.channel=new BroadcastChannel(this.channelName),this.channel.onmessage=e=>{const n=e.data;if(!(n.timestamp&&n.timestamp===this.lastTimestamp)){if(n.action==="ping"){this.send({action:"pong"}),this.handlers.forEach(r=>{try{r(n)}catch(i){console.error("[SpeakerChannel] Handler error:",i)}});return}if(n.action==="pong"){this.setConnected(!0);return}if(n.action==="close"){this.setConnected(!1);return}this.handlers.forEach(r=>{try{r(n)}catch(i){console.error("[SpeakerChannel] Handler error:",i)}})}},this.channel.onmessageerror=e=>{console.error("[SpeakerChannel] Message error:",e)},this.startHeartbeat()}catch(e){console.error("[SpeakerChannel] Failed to initialize:",e)}}send(e){if(!this.channel)return;const n={...e,timestamp:Date.now(),channelId:this.channelName};this.lastTimestamp=n.timestamp,this.channel.postMessage(n)}subscribe(e){return this.handlers.add(e),()=>this.handlers.delete(e)}onConnectionChange(e){return this.connectionHandlers.add(e),e(this.isConnected),()=>this.connectionHandlers.delete(e)}get connected(){return this.isConnected}ping(){this.send({action:"ping"})}notifyClose(){this.send({action:"close"})}startHeartbeat(){this.ping(),this.heartbeatInterval=setInterval(()=>{(this.handlers.size>0||this.connectionHandlers.size>0)&&this.ping()},5e3)}setConnected(e){this.isConnected!==e&&(this.isConnected=e,this.connectionHandlers.forEach(n=>n(e)))}destroy(){this.notifyClose(),this.heartbeatInterval&&(clearInterval(this.heartbeatInterval),this.heartbeatInterval=null),this.channel&&(this.channel.close(),this.channel=null),this.handlers.clear(),this.connectionHandlers.clear(),ti.instances.delete(this.channelName)}static destroyAll(){ti.instances.forEach(e=>e.destroy()),ti.instances.clear()}};dr(ti,"instances",new Map);let nu=ti;const ZQ={class:"speaker-notes"},XQ={class:"sn-header"},YQ={class:"sn-status"},JQ={class:"sn-slide-count"},QQ={class:"sn-content"},qQ={class:"sn-notes-section"},eq=["innerHTML"],tq={key:1,class:"sn-notes-empty"},nq={class:"sn-footer"},rq={class:"sn-nav-controls"},iq=["disabled"],oq={class:"sn-timer-value"},sq=["disabled"],aq=Jr(Te({__name:"LuminaSpeakerNotes",props:{channelId:{}},setup(t){const e=t,n=we(0),r=we(0),i=we(""),o=we(null),s=we(!1),a=we(null),l=we(0),u=we(!1),c=we(null),d=Z(()=>r.value===0?"No slides loaded":`Slide ${n.value+1} / ${r.value}`),h=Z(()=>{const x=Math.floor(l.value/3600),N=Math.floor(l.value%3600/60),P=l.value%60;return x>0?`${x.toString().padStart(2,"0")}:${N.toString().padStart(2,"0")}:${P.toString().padStart(2,"0")}`:`${N.toString().padStart(2,"0")}:${P.toString().padStart(2,"0")}`}),p=Z(()=>n.value<r.value-1),g=Z(()=>n.value>0);function m(x){return x?x.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/__(.*?)__/g,"<strong>$1</strong>").replace(new RegExp("(?<!\\*)\\*(?!\\*)(.*?)(?<!\\*)\\*(?!\\*)","g"),"<em>$1</em>").replace(new RegExp("(?<!_)_(?!_)(.*?)(?<!_)_(?!_)","g"),"<em>$1</em>").replace(/\n/g,"<br>").replace(/^[-*]\s+(.*)$/gm,"<li>$1</li>").replace(/(<li>.*<\/li>)/gs,"<ul>$1</ul>").replace(/<\/ul>\s*<ul>/g,""):""}function _(){const x=new URLSearchParams(window.location.search),N=e.channelId||x.get("channel")||"lumina-speaker-default";a.value=nu.getInstance(N,!0),a.value.onConnectionChange(I=>{s.value=I}),a.value.subscribe(E);let P=0;const b=10,S=setInterval(()=>{var I;if(r.value>0||P>=b){clearInterval(S);return}(I=a.value)==null||I.ping(),P++},300);a.value.ping()}function E(x){switch(x.action){case"state":x.index!==void 0&&(n.value=x.index),x.totalSlides!==void 0&&(r.value=x.totalSlides),x.currentNotes!==void 0&&(i.value=x.currentNotes),x.nextSlidePreview&&(o.value=x.nextSlidePreview);break;case"goto":x.index!==void 0&&(n.value=x.index);break}}function w(){var x;p.value&&((x=a.value)==null||x.send({action:"next"}))}function v(){var x;g.value&&((x=a.value)==null||x.send({action:"prev"}))}function y(){u.value||(u.value=!0,c.value=setInterval(()=>{l.value++},1e3))}function k(){u.value=!1,c.value&&(clearInterval(c.value),c.value=null)}function $(){u.value?k():y()}function O(){k(),l.value=0}function A(x){switch(x.key){case"ArrowRight":case" ":case"Enter":x.preventDefault(),w();break;case"ArrowLeft":case"Backspace":x.preventDefault(),v();break;case"t":case"T":x.preventDefault(),$();break;case"r":case"R":if(x.ctrlKey||x.metaKey)return;x.preventDefault(),O();break}}return jt(()=>{_(),window.addEventListener("keydown",A),window.addEventListener("beforeunload",()=>{var x;(x=a.value)==null||x.notifyClose()})}),sr(()=>{var x;k(),window.removeEventListener("keydown",A),(x=a.value)==null||x.destroy()}),(x,N)=>(j(),K("div",ZQ,[C("header",XQ,[N[0]||(N[0]=nf('<div class="sn-title" data-v-ccdb989d><svg class="sn-logo" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-ccdb989d><path d="M12 2L2 7l10 5 10-5-10-5z" data-v-ccdb989d></path><path d="M2 17l10 5 10-5" data-v-ccdb989d></path><path d="M2 12l10 5 10-5" data-v-ccdb989d></path></svg><span data-v-ccdb989d>Lumina Speaker Notes</span></div>',1)),C("div",YQ,[C("span",{class:Se(["sn-indicator",{connected:s.value}])},null,2),C("span",JQ,Ie(d.value),1)])]),C("main",QQ,[C("section",qQ,[N[2]||(N[2]=C("h2",{class:"sn-section-title"},"Notes",-1)),i.value?(j(),K("div",{key:0,class:"sn-notes-content",innerHTML:m(i.value)},null,8,eq)):(j(),K("div",tq,[...N[1]||(N[1]=[C("p",null,"No notes for this slide",-1)])]))])]),C("footer",nq,[C("div",rq,[C("button",{class:"sn-btn sn-btn-nav",disabled:!g.value,onClick:v,title:"Previous (← or Backspace)"},[...N[3]||(N[3]=[C("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[C("polyline",{points:"15 18 9 12 15 6"})],-1),C("span",null,"Prev",-1)])],8,iq),C("div",{class:"sn-timer",onClick:$,title:"Click to start/pause (T)"},[C("span",{class:Se(["sn-timer-icon",{running:u.value}])},Ie(u.value?"⏸":"▶"),3),C("span",oq,Ie(h.value),1),C("button",{class:"sn-timer-reset",onClick:kr(O,["stop"]),title:"Reset timer (R)"},"↻")]),C("button",{class:"sn-btn sn-btn-nav sn-btn-primary",disabled:!p.value,onClick:w,title:"Next (→, Space, or Enter)"},[...N[4]||(N[4]=[C("span",null,"Next",-1),C("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[C("polyline",{points:"9 18 15 12 9 6"})],-1)])],8,sq)])])]))}}),[["__scopeId","data-v-ccdb989d"]]),lq=Jr(Te({__name:"LayoutFlex",props:{data:{},slideIndex:{}},emits:["action"],setup(t,{emit:e}){const n=t,r=e,i=yt(vn),o=Z(()=>n.slideIndex??(i==null?void 0:i.state.currentIndex)??0),s=m=>Gt(n.data,o.value,["elements",m]),a=(m,_)=>Gt(n.data,o.value,["elements",m,"elements",_]),l=Z(()=>({padding:So[n.data.padding||"none"]})),u=Z(()=>n.data.direction==="vertical"?"flex-col":"flex-col lg:flex-row"),c=Z(()=>({gap:So[n.data.gap||"none"],...MI(n.data.direction,n.data.halign,n.data.valign)})),d=m=>Ry(m,n.data.direction==="vertical"),h=m=>{const _=n.data.direction==="vertical";return{...Ry(m,_),...$I(m),height:_?"auto":"100%",width:_?"100%":"auto",minHeight:_?"auto":"100%"}},p=m=>{r("action",m),Oi.emit("action",m)},g=m=>({title:CI,text:AI,image:Hh,video:Gh,bullets:kI,ordered:OI,button:PI,timeline:NI,stepper:RI,spacer:LI})[m]||"div";return(m,_)=>{const E=Pr("LuminaElement");return j(),$e(ji,{data:t.data,"slide-index":o.value},{default:ke(()=>[C("div",{class:"flex-layout w-full h-screen flex flex-col overflow-y-auto lg:overflow-hidden",style:Xe(l.value)},[C("div",{class:Se(["flex-1 flex w-full reveal-content min-h-full lg:h-full",u.value]),style:Xe(c.value)},[(j(!0),K(Ue,null,It(t.data.elements,(w,v)=>(j(),K(Ue,{key:v},[w.type==="image"?(j(),$e(E,{key:0,id:s(v),class:Se(["flex-item",re(Vc)(w.size)]),style:Xe(d(w))},{default:ke(()=>[ue(Hh,{src:w.src,alt:w.alt,fill:w.fill,rounded:w.rounded,"container-class":"w-full h-full min-h-0","container-style":{},class:Se(w.class)},null,8,["src","alt","fill","rounded","class"])]),_:2},1032,["id","class","style"])):w.type==="video"?(j(),$e(E,{key:1,id:s(v),class:Se(["flex-item",re(Vc)(w.size),w.class]),style:Xe(d(w))},{default:ke(()=>[ue(Gh,{class:Se(re(hj)(w.rounded,w.fill)),src:w.src,poster:w.poster,autoplay:w.autoplay??!1,loop:w.loop??!1,muted:w.muted??!1,controls:w.controls??!0,"object-fit":w.fill!==!1?"cover":"contain"},null,8,["class","src","poster","autoplay","loop","muted","controls","object-fit"])]),_:2},1032,["id","class","style"])):w.type==="content"?(j(),$e(E,{key:2,id:s(v),class:Se(["flex-item flex flex-col h-full",re(Vc)(w.size)]),style:Xe(h(w))},{default:ke(()=>[(j(!0),K(Ue,null,It(w.elements,(y,k)=>(j(),$e(E,{key:k,id:a(v,k)},{default:ke(()=>[(j(),$e(Xn(g(y.type)),ao({ref_for:!0},y,{onAction:p}),null,16))]),_:2},1032,["id"]))),128))]),_:2},1032,["id","class","style"])):(j(),$e(E,{key:3,id:s(v),class:Se(["flex-item",re(Vc)(w.size)]),style:Xe({...re(DI)(),width:t.data.direction==="vertical"?"100%":"auto"})},{default:ke(()=>[(j(),$e(Xn(g(w.type)),ao({ref_for:!0},w,{onAction:p}),null,16))]),_:2},1032,["id","class","style"]))],64))),128))],6)],4)]),_:1},8,["data","slide-index"])}}}),[["__scopeId","data-v-fba127b7"]]),uq=Te({__name:"LuminaElement",props:{id:{},tag:{default:"div"},class:{},style:{}},setup(t){const e=t,n=VI(()=>e.id),r=Z(()=>{const s=e.id;if(s==null)return;const a=String(s).trim();return a||void 0}),i=Z(()=>{const s=e.class;return Array.isArray(s)?s.filter(Boolean).join(" "):s||""}),o=Z(()=>{const s=re(n.style)??{},a={...e.style||{},...s};return"opacity"in s&&a.transition==null&&(a.transition="opacity 0.35s ease-out"),a});return(s,a)=>(j(),$e(Xn(t.tag),{"data-lumina-id":r.value,style:Xe(o.value),class:Se([re(n).class,i.value].filter(Boolean))},{default:ke(()=>[Mt(s.$slots,"default")]),_:3},8,["data-lumina-id","style","class"]))}});function rP(t,e,n){function r(a){t.setElementState(n,a)}function i(){var a;return((a=t.state.elementState[n])==null?void 0:a.class)||""}const o={show(){r({visible:!0,opacity:1});const a=e.getElementById(n),l=a==null?void 0:a.closest(".reveal-zoom, .reveal-up, .reveal-card, .reveal-left, .reveal-right");return l&&zt.set(l,{opacity:1}),o},hide(){return r({visible:!1}),o},toggle(a){var u;const l=((u=t.state.elementState[n])==null?void 0:u.visible)!==!1;return r({visible:a!==void 0?a:!l}),o},opacity(a){return r({opacity:a}),o},transform(a){return r({transform:a}),o},css(a){return r({style:a}),o},addClass(a){const u=(i()+" "+a).trim();return r({class:u}),o},removeClass(a){const u=i().split(/\s+/).filter(c=>c&&c!==a).join(" ");return r({class:u}),o},animate(a){return s(a),o},animateAsync(a){return new Promise(l=>{s(a,()=>{var u;(u=a.onComplete)==null||u.call(a),l()})})}};function s(a,l){const u=e.getElementById(n);if(!u)return;const c=a.duration??.5,d=a.ease??"power2.out",h=l??a.onComplete,p={...a.to,duration:c,ease:d,overwrite:!0,onComplete:h};a.from?zt.fromTo(u,a.from,p):zt.to(u,p)}return o}class cq{constructor(e,n={}){dr(this,"app");dr(this,"store");dr(this,"speakerWindow",null);dr(this,"speakerChannel",null);dr(this,"speakerChannelId");dr(this,"speakerUnsubscribe",null);this.selector=e,this.speakerChannelId=`lumina-speaker-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,this.store=VM(n),n.theme&&Hl.inject(n.theme),this.app=n.studio?Ja(nP):Ja(dS),this.app.provide(vn,this.store),this.app.provide("LuminaEngine",this),Qe(()=>this.store.state.currentIndex,(r,i)=>{var s;const o=(s=this.store.state.deck)==null?void 0:s.slides[r];o&&Oi.emit("slideChange",{index:r,previousIndex:i??0,slide:o})}),Qe(()=>{var r;return(r=this.store.state.deck)==null?void 0:r.meta},r=>{if(r){const i={colors:r.colors,typography:r.typography,spacing:r.spacing,borderRadius:r.borderRadius,effects:r.effects,components:r.components},o=r.theme||"default";Hl.inject(o,i),r.orbColor&&document.documentElement.style.setProperty("--lumina-colors-primary",r.orbColor)}},{deep:!0}),this.app.component("layout-statement",Dy),this.app.component("layout-half",$y),this.app.component("layout-features",My),this.app.component("layout-timeline",Ly),this.app.component("layout-steps",Vy),this.app.component("layout-flex",lq),this.app.component("layout-auto",UI),this.app.component("layout-custom",BI),this.app.component("layout-chart",FI),this.app.component("layout-video",zI),this.app.component("layout-diagram",tP),this.app.component("LuminaElement",uq),Oi.on("action",r=>{if(r.type==="slide-update"&&typeof r.slideIndex=="number"){const{slideIndex:i,patch:o}=r;o&&typeof o=="object"&&("nodes"in o&&this.store.updateNode(`slides.${i}.nodes`,o.nodes),"edges"in o&&this.store.updateNode(`slides.${i}.edges`,o.edges))}this.store.recordAction(r)}),this.app.mount(this.selector),this.syncSpeakerNotes()}load(e){this.store.loadDeck(e),Oi.emit("ready",e),this.syncSpeakerNotes()}patch(e){this.store.patchDeck(e),this.syncSpeakerNotes()}exportState(){const{currentIndex:e,deck:n,actionHistory:r}=this.store.state,i=n==null?void 0:n.slides[e],o=r.map(a=>`User ${a.type}ed on ${a.label||a.value}`).join(" -> "),s=r.length>5?"High Engagement":"Low Engagement";return Object.freeze({status:"active",currentSlide:{index:e,id:(i==null?void 0:i.id)||e,type:i==null?void 0:i.type,title:(i&&"title"in i?i.title:null)||"(No Title)"},narrative:`User is currently on slide ${e+1}. Session Flow: ${o||"Just started"}.`,engagementLevel:s,history:[...r]})}on(e,n){Oi.on(e,n)}off(e,n){Oi.off(e,n)}destroy(){this.closeSpeakerNotes(),this.app&&this.app.unmount(),Oi.clear()}get currentSlideIndex(){return this.store.state.currentIndex}goTo(e){this.store.goto(e),this.syncSpeakerNotes()}next(){this.store.next(),this.syncSpeakerNotes()}prev(){this.store.prev(),this.syncSpeakerNotes()}getElementById(e){const n=document.querySelector(this.selector);if(!n)return null;const r=n.querySelector("[data-lumina-root]")||n,i=e.replace(/\\/g,"\\\\").replace(/"/g,'\\"');return r.querySelector(`[data-lumina-id="${i}"]`)||null}element(e,n){var r;if(typeof e=="number"){const i=(r=this.store.state.deck)==null?void 0:r.slides[e],o=Hx(n),s=i?Gt(i,e,o):Tf(e,...o);return rP(this.store,this,s)}return rP(this.store,this,e)}elements(e){var r;const n=(r=this.store.state.deck)==null?void 0:r.slides[e];return n?lm(n,e):[]}openSpeakerNotes(){if(this.speakerWindow&&!this.speakerWindow.closed)return this.speakerWindow.focus(),this.speakerWindow;if(!nu.isSupported())return console.error("[Lumina] BroadcastChannel not supported."),null;const e=600,n=800,r=window.screenX+window.outerWidth,i=window.screenY;if(this.speakerWindow=window.open("about:blank",`lumina-speaker-notes-${this.speakerChannelId}`,`width=${e},height=${n},left=${r},top=${i},resizable=yes,scrollbars=yes`),!this.speakerWindow)return console.warn("[Lumina] Popup blocked."),null;const o=this.speakerWindow;return o.document.open(),o.document.write(`
|
|
2581
|
+
Edge: ${t}`,USEVUEFLOW_OPTIONS:()=>"The options parameter is deprecated and will be removed in the next major version. Please use the id parameter instead"};class An extends Error{constructor(e,...n){var r;super((r=dA[e])==null?void 0:r.call(dA,...n)),this.name="VueFlowError",this.code=e,this.args=n}}function h0(t){return"clientX"in t}function fZ(t){return"sourceEvent"in t}function Zi(t,e){const n=h0(t);let r,i;return n?(r=t.clientX,i=t.clientY):"touches"in t&&t.touches.length>0?(r=t.touches[0].clientX,i=t.touches[0].clientY):"changedTouches"in t&&t.changedTouches.length>0?(r=t.changedTouches[0].clientX,i=t.changedTouches[0].clientY):(r=0,i=0),{x:r-((e==null?void 0:e.left)??0),y:i-((e==null?void 0:e.top)??0)}}const vp=()=>{var t;return typeof navigator<"u"&&((t=navigator==null?void 0:navigator.userAgent)==null?void 0:t.indexOf("Mac"))>=0};function hZ(t){var e,n;return{width:((e=t.dimensions)==null?void 0:e.width)??t.width??0,height:((n=t.dimensions)==null?void 0:n.height)??t.height??0}}function yp(t,e=[1,1]){return{x:e[0]*Math.round(t.x/e[0]),y:e[1]*Math.round(t.y/e[1])}}const pZ=()=>!0;function p0(t){t==null||t.classList.remove("valid","connecting","vue-flow__handle-valid","vue-flow__handle-connecting")}function gZ(t,e,n){const r=[],i={x:t.x-n,y:t.y-n,width:n*2,height:n*2};for(const o of e.values())pp(i,hp(o))>0&&r.push(o);return r}const mZ=250;function vZ(t,e,n,r){var i,o;let s=[],a=Number.POSITIVE_INFINITY;const l=gZ(t,n,e+mZ);for(const u of l){const c=[...((i=u.handleBounds)==null?void 0:i.source)??[],...((o=u.handleBounds)==null?void 0:o.target)??[]];for(const d of c){if(r.nodeId===d.nodeId&&r.type===d.type&&r.id===d.id)continue;const{x:h,y:p}=eu(u,d,d.position,!0),g=Math.sqrt((h-t.x)**2+(p-t.y)**2);g>e||(g<a?(s=[{...d,x:h,y:p}],a=g):g===a&&s.push({...d,x:h,y:p}))}}if(!s.length)return null;if(s.length>1){const u=r.type==="source"?"target":"source";return s.find(c=>c.type===u)??s[0]}return s[0]}function fA(t,{handle:e,connectionMode:n,fromNodeId:r,fromHandleId:i,fromType:o,doc:s,lib:a,flowId:l,isValidConnection:u=pZ},c,d,h,p){const g=o==="target",m=e?s.querySelector(`.${a}-flow__handle[data-id="${l}-${e==null?void 0:e.nodeId}-${e==null?void 0:e.id}-${e==null?void 0:e.type}"]`):null,{x:_,y:E}=Zi(t),w=s.elementFromPoint(_,E),v=w!=null&&w.classList.contains(`${a}-flow__handle`)?w:m,y={handleDomNode:v,isValid:!1,connection:null,toHandle:null};if(v){const k=hA(void 0,v),$=v.getAttribute("data-nodeid"),O=v.getAttribute("data-handleid"),A=v.classList.contains("connectable"),x=v.classList.contains("connectableend");if(!$||!k)return y;const N={source:g?$:r,sourceHandle:g?O:i,target:g?r:$,targetHandle:g?i:O};y.connection=N;const b=A&&x&&(n===hs.Strict?g&&k==="source"||!g&&k==="target":$!==r||O!==i);y.isValid=b&&u(N,{nodes:d,edges:c,sourceNode:h(N.source),targetNode:h(N.target)}),y.toHandle=pA($,k,O,p,n,!0)}return y}function hA(t,e){return t||(e!=null&&e.classList.contains("target")?"target":e!=null&&e.classList.contains("source")?"source":null)}function yZ(t,e){let n=null;return e?n="valid":t&&!e&&(n="invalid"),n}function bZ(t,e){let n=null;return e?n=!0:t&&!e&&(n=!1),n}function pA(t,e,n,r,i,o=!1){var s,a,l;const u=r.get(t);if(!u)return null;const c=i===hs.Strict?(s=u.handleBounds)==null?void 0:s[e]:[...((a=u.handleBounds)==null?void 0:a.source)??[],...((l=u.handleBounds)==null?void 0:l.target)??[]],d=(n?c==null?void 0:c.find(h=>h.id===n):c==null?void 0:c[0])??null;return d&&o?{...d,...eu(u,d,d.position,!0)}:d}const g0={[Fe.Left]:Fe.Right,[Fe.Right]:Fe.Left,[Fe.Top]:Fe.Bottom,[Fe.Bottom]:Fe.Top},_Z=["production","prod"];function rd(t,...e){gA()&&console.warn(`[Vue Flow]: ${t}`,...e)}function gA(){return!_Z.includes("production")}function mA(t,e,n,r,i){const o=e.querySelectorAll(`.vue-flow__handle.${t}`);return o!=null&&o.length?Array.from(o).map(s=>{const a=s.getBoundingClientRect();return{id:s.getAttribute("data-handleid"),type:t,nodeId:i,position:s.getAttribute("data-handlepos"),x:(a.left-n.left)/r,y:(a.top-n.top)/r,...gp(s)}}):null}function m0(t,e,n,r,i,o=!1,s){i.value=!1,t.selected?(o||t.selected&&e)&&(r([t]),pr(()=>{s.blur()})):n([t])}function In(t){return typeof re(t)<"u"}function xZ(t,e,n,r){if(!t||!t.source||!t.target)return n(new An(Tn.EDGE_INVALID,(t==null?void 0:t.id)??"[ID UNKNOWN]")),!1;let i;return ps(t)?i=t:i={...t,id:KC(t)},i=GC(i,void 0,r),eZ(i,e)?!1:i}function wZ(t,e,n,r,i){if(!e.source||!e.target)return i(new An(Tn.EDGE_INVALID,t.id)),!1;if(!n)return i(new An(Tn.EDGE_NOT_FOUND,t.id)),!1;const{id:o,...s}=t;return{...s,id:r?KC(e):o,source:e.source,target:e.target,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle}}function vA(t,e,n){const r={},i=[];for(let o=0;o<t.length;++o){const s=t[o];if(!ba(s)){n(new An(Tn.NODE_INVALID,s==null?void 0:s.id)||`[ID UNKNOWN|INDEX ${o}]`);continue}const a=JK(s,e(s.id),s.parentNode);s.parentNode&&(r[s.parentNode]=!0),i[o]=a}for(const o of i){const s=e(o.parentNode)||i.find(a=>a.id===o.parentNode);o.parentNode&&!s&&n(new An(Tn.NODE_MISSING_PARENT,o.id,o.parentNode)),(o.parentNode||r[o.id])&&(r[o.id]&&(o.isParent=!0),s&&(s.isParent=!0))}return i}function yA(t,e,n,r,i,o){let s=i;const a=r.get(s)||new Map;r.set(s,a.set(n,e)),s=`${i}-${t}`;const l=r.get(s)||new Map;if(r.set(s,l.set(n,e)),o){s=`${i}-${t}-${o}`;const u=r.get(s)||new Map;r.set(s,u.set(n,e))}}function v0(t,e,n){t.clear();for(const r of n){const{source:i,target:o,sourceHandle:s=null,targetHandle:a=null}=r,l={edgeId:r.id,source:i,target:o,sourceHandle:s,targetHandle:a},u=`${i}-${s}--${o}-${a}`,c=`${o}-${a}--${i}-${s}`;yA("source",l,c,t,i,s),yA("target",l,u,t,o,a)}}function bA(t,e){if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0}function y0(t,e,n,r,i,o,s,a){const l=[];for(const u of t){const c=ps(u)?u:xZ(u,a,i,o);if(!c)continue;const d=n(c.source),h=n(c.target);if(!d||!h){i(new An(Tn.EDGE_SOURCE_TARGET_MISSING,c.id,c.source,c.target));continue}if(!d){i(new An(Tn.EDGE_SOURCE_MISSING,c.id,c.source));continue}if(!h){i(new An(Tn.EDGE_TARGET_MISSING,c.id,c.target));continue}if(e&&!e(c,{edges:a,nodes:s,sourceNode:d,targetNode:h})){i(new An(Tn.EDGE_INVALID,c.id));continue}const p=r(c.id);l.push({...GC(c,p,o),sourceNode:d,targetNode:h})}return l}const _A=Symbol("vueFlow"),b0=Symbol("nodeId"),xA=Symbol("nodeRef"),SZ=Symbol("edgeId"),EZ=Symbol("edgeRef"),bp=Symbol("slots");function wA(t){const{vueFlowRef:e,snapToGrid:n,snapGrid:r,noDragClassName:i,nodeLookup:o,nodeExtent:s,nodeDragThreshold:a,viewport:l,autoPanOnNodeDrag:u,autoPanSpeed:c,nodesDraggable:d,panBy:h,findNode:p,multiSelectionActive:g,nodesSelectionActive:m,selectNodesOnDrag:_,removeSelectedElements:E,addSelectedNodes:w,updateNodePositions:v,emits:y}=$t(),{onStart:k,onDrag:$,onStop:O,onClick:A,el:x,disabled:N,id:P,selectable:b,dragHandle:S}=t,I=Ei(!1);let V=[],M,H=null,G={x:void 0,y:void 0},J={x:0,y:0},oe=null,ae=!1,de=!1,xe=0,Ee=!1;const pe=SA(),le=({x:Me,y:B})=>{G={x:Me,y:B};let D=!1;if(V=V.map(L=>{const z={x:Me-L.distance.x,y:B-L.distance.y},{computedPosition:F}=f0(L,n.value?yp(z,r.value):z,y.error,s.value,L.parentNode?p(L.parentNode):void 0);return D=D||L.position.x!==F.x||L.position.y!==F.y,L.position=F,L}),de=de||D,!!D&&(v(V,!0,!0),I.value=!0,oe)){const[L,z]=d0({id:P,dragItems:V,findNode:p});$({event:oe,node:L,nodes:z})}},fe=()=>{if(!H)return;const[Me,B]=nA(J,H,c.value);if(Me!==0||B!==0){const D={x:(G.x??0)-Me/l.value.zoom,y:(G.y??0)-B/l.value.zoom};h({x:Me,y:B})&&le(D)}xe=requestAnimationFrame(fe)},Re=(Me,B)=>{ae=!0;const D=p(P);!_.value&&!g.value&&D&&(D.selected||E()),D&&ct(b)&&_.value&&m0(D,g.value,w,E,m,!1,B);const L=pe(Me.sourceEvent);if(G=L,V=sZ(o.value,d.value,L,P),V.length){const[z,F]=d0({id:P,dragItems:V,findNode:p});k({event:Me.sourceEvent,node:z,nodes:F})}},$e=(Me,B)=>{var D;Me.sourceEvent.type==="touchmove"&&Me.sourceEvent.touches.length>1||(de=!1,a.value===0&&Re(Me,B),G=pe(Me.sourceEvent),H=((D=e.value)==null?void 0:D.getBoundingClientRect())||null,J=Zi(Me.sourceEvent,H))},Be=(Me,B)=>{const D=pe(Me.sourceEvent);if(!Ee&&ae&&u.value&&(Ee=!0,fe()),!ae){const L=D.xSnapped-(G.x??0),z=D.ySnapped-(G.y??0);Math.sqrt(L*L+z*z)>a.value&&Re(Me,B)}(G.x!==D.xSnapped||G.y!==D.ySnapped)&&V.length&&ae&&(oe=Me.sourceEvent,J=Zi(Me.sourceEvent,H),le(D))},et=Me=>{let B=!1;if(!ae&&!I.value&&!g.value){const D=Me.sourceEvent,L=pe(D),z=L.xSnapped-(G.x??0),F=L.ySnapped-(G.y??0),W=Math.sqrt(z*z+F*F);W!==0&&W<=a.value&&(A==null||A(D),B=!0)}if(V.length&&!B){de&&(v(V,!1,!1),de=!1);const[D,L]=d0({id:P,dragItems:V,findNode:p});O({event:Me.sourceEvent,node:D,nodes:L})}V=[],I.value=!1,Ee=!1,ae=!1,G={x:void 0,y:void 0},cancelAnimationFrame(xe)};return Qe([()=>ct(N),x],([Me,B],D,L)=>{if(B){const z=yi(B);Me||(M=YG().on("start",F=>$e(F,B)).on("drag",F=>Be(F,B)).on("end",F=>et(F)).filter(F=>{const W=F.target,ee=ct(S);return!F.button&&(!i.value||!lA(W,`.${i.value}`,B)&&(!ee||lA(W,ee,B)))}),z.call(M)),L(()=>{z.on(".drag",null),M&&(M.on("start",null),M.on("drag",null),M.on("end",null))})}}),I}function TZ(){return{doubleClick:Ne(),click:Ne(),mouseEnter:Ne(),mouseMove:Ne(),mouseLeave:Ne(),contextMenu:Ne(),updateStart:Ne(),update:Ne(),updateEnd:Ne()}}function IZ(t,e){const n=TZ();return n.doubleClick.on(r=>{var i,o;e.edgeDoubleClick(r),(o=(i=t.events)==null?void 0:i.doubleClick)==null||o.call(i,r)}),n.click.on(r=>{var i,o;e.edgeClick(r),(o=(i=t.events)==null?void 0:i.click)==null||o.call(i,r)}),n.mouseEnter.on(r=>{var i,o;e.edgeMouseEnter(r),(o=(i=t.events)==null?void 0:i.mouseEnter)==null||o.call(i,r)}),n.mouseMove.on(r=>{var i,o;e.edgeMouseMove(r),(o=(i=t.events)==null?void 0:i.mouseMove)==null||o.call(i,r)}),n.mouseLeave.on(r=>{var i,o;e.edgeMouseLeave(r),(o=(i=t.events)==null?void 0:i.mouseLeave)==null||o.call(i,r)}),n.contextMenu.on(r=>{var i,o;e.edgeContextMenu(r),(o=(i=t.events)==null?void 0:i.contextMenu)==null||o.call(i,r)}),n.updateStart.on(r=>{var i,o;e.edgeUpdateStart(r),(o=(i=t.events)==null?void 0:i.updateStart)==null||o.call(i,r)}),n.update.on(r=>{var i,o;e.edgeUpdate(r),(o=(i=t.events)==null?void 0:i.update)==null||o.call(i,r)}),n.updateEnd.on(r=>{var i,o;e.edgeUpdateEnd(r),(o=(i=t.events)==null?void 0:i.updateEnd)==null||o.call(i,r)}),Object.entries(n).reduce((r,[i,o])=>(r.emit[i]=o.trigger,r.on[i]=o.on,r),{emit:{},on:{}})}function SA(){const{viewport:t,snapGrid:e,snapToGrid:n,vueFlowRef:r}=$t();return i=>{var o;const s=((o=r.value)==null?void 0:o.getBoundingClientRect())??{left:0,top:0},a=fZ(i)?i.sourceEvent:i,{x:l,y:u}=Zi(a,s),c=td({x:l,y:u},t.value),{x:d,y:h}=n.value?yp(c,e.value):c;return{xSnapped:d,ySnapped:h,...c}}}function _p(){return!0}function EA({handleId:t,nodeId:e,type:n,isValidConnection:r,edgeUpdaterType:i,onEdgeUpdate:o,onEdgeUpdateEnd:s}){const{id:a,vueFlowRef:l,connectionMode:u,connectionRadius:c,connectOnClick:d,connectionClickStartHandle:h,nodesConnectable:p,autoPanOnConnect:g,autoPanSpeed:m,findNode:_,panBy:E,startConnection:w,updateConnection:v,endConnection:y,emits:k,viewport:$,edges:O,nodes:A,isValidConnection:x,nodeLookup:N}=$t();let P=null,b=!1,S=null;function I(M){var H;const G=ct(n)==="target",J=h0(M),oe=HC(M.target),ae=M.currentTarget;if(ae&&(J&&M.button===0||!J)){let de=function(Q){D=Zi(Q,et),le=vZ(td(D,$.value,!1,[1,1]),c.value,N.value,F),L||(z(),L=!0);const ye=fA(Q,{handle:le,connectionMode:u.value,fromNodeId:ct(e),fromHandleId:ct(t),fromType:G?"target":"source",isValidConnection:pe,doc:oe,lib:"vue",flowId:a,nodeLookup:N.value},O.value,A.value,_,N.value);S=ye.handleDomNode,P=ye.connection,b=bZ(!!le,ye.isValid);const he={...te,isValid:b,to:ye.toHandle&&b?ed({x:ye.toHandle.x,y:ye.toHandle.y},$.value):D,toHandle:ye.toHandle,toPosition:b&&ye.toHandle?ye.toHandle.position:g0[F.position],toNode:ye.toHandle?N.value.get(ye.toHandle.nodeId):null};if(b&&le&&(te!=null&&te.toHandle)&&he.toHandle&&te.toHandle.type===he.toHandle.type&&te.toHandle.nodeId===he.toHandle.nodeId&&te.toHandle.id===he.toHandle.id&&te.to.x===he.to.x&&te.to.y===he.to.y)return;const be=le??ye.toHandle;if(v(be&&b?ed({x:be.x,y:be.y},$.value):D,be,yZ(!!be,b)),te=he,!le&&!b&&!S)return p0(B);P&&P.source!==P.target&&S&&(p0(B),B=S,S.classList.add("connecting","vue-flow__handle-connecting"),S.classList.toggle("valid",!!b),S.classList.toggle("vue-flow__handle-valid",!!b))},xe=function(Q){"touches"in Q&&Q.touches.length>0||((le||S)&&P&&b&&(o?o(Q,P):k.connect(P)),k.connectEnd(Q),i&&(s==null||s(Q)),p0(B),cancelAnimationFrame(fe),y(Q),L=!1,b=!1,P=null,S=null,oe.removeEventListener("mousemove",de),oe.removeEventListener("mouseup",xe),oe.removeEventListener("touchmove",de),oe.removeEventListener("touchend",xe))};const Ee=_(ct(e));let pe=ct(r)||x.value||_p;!pe&&Ee&&(pe=(G?Ee.isValidSourcePos:Ee.isValidTargetPos)||_p);let le,fe=0;const{x:Re,y:$e}=Zi(M),Be=hA(ct(i),ae),et=(H=l.value)==null?void 0:H.getBoundingClientRect();if(!et||!Be)return;const Me=pA(ct(e),Be,ct(t),N.value,u.value);if(!Me)return;let B,D=Zi(M,et),L=!1;const z=()=>{if(!g.value)return;const[Q,ye]=nA(D,et,m.value);E({x:Q,y:ye}),fe=requestAnimationFrame(z)},F={...Me,nodeId:ct(e),type:Be,position:Me.position},W=N.value.get(ct(e)),Y={inProgress:!0,isValid:null,from:eu(W,F,Fe.Left,!0),fromHandle:F,fromPosition:F.position,fromNode:W,to:D,toHandle:null,toPosition:g0[F.position],toNode:null};w({nodeId:ct(e),id:ct(t),type:Be,position:(ae==null?void 0:ae.getAttribute("data-handlepos"))||Fe.Top,...D},{x:Re-et.left,y:$e-et.top}),k.connectStart({event:M,nodeId:ct(e),handleId:ct(t),handleType:Be});let te=Y;oe.addEventListener("mousemove",de),oe.addEventListener("mouseup",xe),oe.addEventListener("touchmove",de),oe.addEventListener("touchend",xe)}}function V(M){var H,G;if(!d.value)return;const J=ct(n)==="target";if(!h.value){k.clickConnectStart({event:M,nodeId:ct(e),handleId:ct(t)}),w({nodeId:ct(e),type:ct(n),id:ct(t),position:Fe.Top,...Zi(M)},void 0,!0);return}let oe=ct(r)||x.value||_p;const ae=_(ct(e));if(!oe&&ae&&(oe=(J?ae.isValidSourcePos:ae.isValidTargetPos)||_p),ae&&(typeof ae.connectable>"u"?p.value:ae.connectable)===!1)return;const de=HC(M.target),xe=fA(M,{handle:{nodeId:ct(e),id:ct(t),type:ct(n),position:Fe.Top,...Zi(M)},connectionMode:u.value,fromNodeId:h.value.nodeId,fromHandleId:h.value.id??null,fromType:h.value.type,isValidConnection:oe,doc:de,lib:"vue",flowId:a,nodeLookup:N.value},O.value,A.value,_,N.value),Ee=((H=xe.connection)==null?void 0:H.source)===((G=xe.connection)==null?void 0:G.target);xe.isValid&&xe.connection&&!Ee&&k.connect(xe.connection),k.clickConnectEnd(M),y(M,!0)}return{handlePointerDown:I,handleClick:V}}function CZ(){return yt(b0,"")}function TA(t){const e=t??CZ()??"",n=yt(xA,we(null)),{findNode:r,edges:i,emits:o}=$t(),s=r(e);return s||o.error(new An(Tn.NODE_NOT_FOUND,e)),{id:e,nodeEl:n,node:s,parentNode:Z(()=>r(s.parentNode)),connectedEdges:Z(()=>JC([s],i.value))}}function AZ(){return{doubleClick:Ne(),click:Ne(),mouseEnter:Ne(),mouseMove:Ne(),mouseLeave:Ne(),contextMenu:Ne(),dragStart:Ne(),drag:Ne(),dragStop:Ne()}}function PZ(t,e){const n=AZ();return n.doubleClick.on(r=>{var i,o;e.nodeDoubleClick(r),(o=(i=t.events)==null?void 0:i.doubleClick)==null||o.call(i,r)}),n.click.on(r=>{var i,o;e.nodeClick(r),(o=(i=t.events)==null?void 0:i.click)==null||o.call(i,r)}),n.mouseEnter.on(r=>{var i,o;e.nodeMouseEnter(r),(o=(i=t.events)==null?void 0:i.mouseEnter)==null||o.call(i,r)}),n.mouseMove.on(r=>{var i,o;e.nodeMouseMove(r),(o=(i=t.events)==null?void 0:i.mouseMove)==null||o.call(i,r)}),n.mouseLeave.on(r=>{var i,o;e.nodeMouseLeave(r),(o=(i=t.events)==null?void 0:i.mouseLeave)==null||o.call(i,r)}),n.contextMenu.on(r=>{var i,o;e.nodeContextMenu(r),(o=(i=t.events)==null?void 0:i.contextMenu)==null||o.call(i,r)}),n.dragStart.on(r=>{var i,o;e.nodeDragStart(r),(o=(i=t.events)==null?void 0:i.dragStart)==null||o.call(i,r)}),n.drag.on(r=>{var i,o;e.nodeDrag(r),(o=(i=t.events)==null?void 0:i.drag)==null||o.call(i,r)}),n.dragStop.on(r=>{var i,o;e.nodeDragStop(r),(o=(i=t.events)==null?void 0:i.dragStop)==null||o.call(i,r)}),Object.entries(n).reduce((r,[i,o])=>(r.emit[i]=o.trigger,r.on[i]=o.on,r),{emit:{},on:{}})}function IA(){const{getSelectedNodes:t,nodeExtent:e,updateNodePositions:n,findNode:r,snapGrid:i,snapToGrid:o,nodesDraggable:s,emits:a}=$t();return(l,u=!1)=>{const c=o.value?i.value[0]:5,d=o.value?i.value[1]:5,h=u?4:1,p=l.x*c*h,g=l.y*d*h,m=[];for(const _ of t.value)if(_.draggable||s&&typeof _.draggable>"u"){const E={x:_.computedPosition.x+p,y:_.computedPosition.y+g},{position:w}=f0(_,E,a.error,e.value,_.parentNode?r(_.parentNode):void 0);m.push({id:_.id,position:w,from:_.position,distance:{x:l.x,y:l.y},dimensions:_.dimensions})}n(m,!0,!1)}}const xp=.1,kZ=t=>((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2;function vs(){return rd("Viewport not initialized yet."),Promise.resolve(!1)}const OZ={zoomIn:vs,zoomOut:vs,zoomTo:vs,fitView:vs,setCenter:vs,fitBounds:vs,project:t=>t,screenToFlowCoordinate:t=>t,flowToScreenCoordinate:t=>t,setViewport:vs,setTransform:vs,getViewport:()=>({x:0,y:0,zoom:1}),getTransform:()=>({x:0,y:0,zoom:1}),viewportInitialized:!1};function NZ(t){function e(r,i){return new Promise(o=>{t.d3Selection&&t.d3Zoom?t.d3Zoom.interpolate((i==null?void 0:i.interpolate)==="linear"?Gc:rp).scaleBy(_0(t.d3Selection,i==null?void 0:i.duration,i==null?void 0:i.ease,()=>{o(!0)}),r):o(!1)})}function n(r,i,o,s){return new Promise(a=>{var l;const{x:u,y:c}=jC({x:-r,y:-i},t.translateExtent),d=Jl.translate(-u,-c).scale(o);t.d3Selection&&t.d3Zoom?(l=t.d3Zoom)==null||l.interpolate((s==null?void 0:s.interpolate)==="linear"?Gc:rp).transform(_0(t.d3Selection,s==null?void 0:s.duration,s==null?void 0:s.ease,()=>{a(!0)}),d):a(!1)})}return Z(()=>t.d3Zoom&&t.d3Selection&&t.dimensions.width&&t.dimensions.height?{viewportInitialized:!0,zoomIn:i=>e(1.2,i),zoomOut:i=>e(1/1.2,i),zoomTo:(i,o)=>new Promise(s=>{t.d3Selection&&t.d3Zoom?t.d3Zoom.interpolate((o==null?void 0:o.interpolate)==="linear"?Gc:rp).scaleTo(_0(t.d3Selection,o==null?void 0:o.duration,o==null?void 0:o.ease,()=>{s(!0)}),i):s(!1)}),setViewport:(i,o)=>n(i.x,i.y,i.zoom,o),setTransform:(i,o)=>n(i.x,i.y,i.zoom,o),getViewport:()=>({x:t.viewport.x,y:t.viewport.y,zoom:t.viewport.zoom}),getTransform:()=>({x:t.viewport.x,y:t.viewport.y,zoom:t.viewport.zoom}),fitView:(i={padding:xp,includeHiddenNodes:!1,duration:0})=>{var o,s;const a=[];for(const h of t.nodes)h.dimensions.width&&h.dimensions.height&&((i==null?void 0:i.includeHiddenNodes)||!h.hidden)&&(!((o=i.nodes)!=null&&o.length)||(s=i.nodes)!=null&&s.length&&i.nodes.includes(h.id))&&a.push(h);if(!a.length)return Promise.resolve(!1);const l=XC(a),{x:u,y:c,zoom:d}=QC(l,t.dimensions.width,t.dimensions.height,i.minZoom??t.minZoom,i.maxZoom??t.maxZoom,i.padding??xp);return n(u,c,d,i)},setCenter:(i,o,s)=>{const a=typeof(s==null?void 0:s.zoom)<"u"?s.zoom:t.maxZoom,l=t.dimensions.width/2-i*a,u=t.dimensions.height/2-o*a;return n(l,u,a,s)},fitBounds:(i,o={padding:xp})=>{const{x:s,y:a,zoom:l}=QC(i,t.dimensions.width,t.dimensions.height,t.minZoom,t.maxZoom,o.padding??xp);return n(s,a,l,o)},project:i=>td(i,t.viewport,t.snapToGrid,t.snapGrid),screenToFlowCoordinate:i=>{if(t.vueFlowRef){const{x:o,y:s}=t.vueFlowRef.getBoundingClientRect(),a={x:i.x-o,y:i.y-s};return td(a,t.viewport,t.snapToGrid,t.snapGrid)}return{x:0,y:0}},flowToScreenCoordinate:i=>{if(t.vueFlowRef){const{x:o,y:s}=t.vueFlowRef.getBoundingClientRect(),a={x:i.x+o,y:i.y+s};return ed(a,t.viewport)}return{x:0,y:0}}}:OZ)}function _0(t,e=0,n=kZ,r=()=>{}){const i=typeof e=="number"&&e>0;return i||r(),i?t.transition().duration(e).ease(n).on("end",r):t}function RZ(t,e,n){const r=Kp(!0);return r.run(()=>{const i=()=>{r.run(()=>{let m,_,E=!!(n.nodes.value.length||n.edges.value.length);m=Wl([t.modelValue,()=>{var w,v;return(v=(w=t.modelValue)==null?void 0:w.value)==null?void 0:v.length}],([w])=>{w&&Array.isArray(w)&&(_==null||_.pause(),n.setElements(w),!_&&!E&&w.length?E=!0:_==null||_.resume())}),_=Wl([n.nodes,n.edges,()=>n.edges.value.length,()=>n.nodes.value.length],([w,v])=>{var y;(y=t.modelValue)!=null&&y.value&&Array.isArray(t.modelValue.value)&&(m==null||m.pause(),t.modelValue.value=[...w,...v],pr(()=>{m==null||m.resume()}))},{immediate:E}),cu(()=>{m==null||m.stop(),_==null||_.stop()})})},o=()=>{r.run(()=>{let m,_,E=!!n.nodes.value.length;m=Wl([t.nodes,()=>{var w,v;return(v=(w=t.nodes)==null?void 0:w.value)==null?void 0:v.length}],([w])=>{w&&Array.isArray(w)&&(_==null||_.pause(),n.setNodes(w),!_&&!E&&w.length?E=!0:_==null||_.resume())}),_=Wl([n.nodes,()=>n.nodes.value.length],([w])=>{var v;(v=t.nodes)!=null&&v.value&&Array.isArray(t.nodes.value)&&(m==null||m.pause(),t.nodes.value=[...w],pr(()=>{m==null||m.resume()}))},{immediate:E}),cu(()=>{m==null||m.stop(),_==null||_.stop()})})},s=()=>{r.run(()=>{let m,_,E=!!n.edges.value.length;m=Wl([t.edges,()=>{var w,v;return(v=(w=t.edges)==null?void 0:w.value)==null?void 0:v.length}],([w])=>{w&&Array.isArray(w)&&(_==null||_.pause(),n.setEdges(w),!_&&!E&&w.length?E=!0:_==null||_.resume())}),_=Wl([n.edges,()=>n.edges.value.length],([w])=>{var v;(v=t.edges)!=null&&v.value&&Array.isArray(t.edges.value)&&(m==null||m.pause(),t.edges.value=[...w],pr(()=>{m==null||m.resume()}))},{immediate:E}),cu(()=>{m==null||m.stop(),_==null||_.stop()})})},a=()=>{r.run(()=>{Qe(()=>e.maxZoom,()=>{e.maxZoom&&In(e.maxZoom)&&n.setMaxZoom(e.maxZoom)},{immediate:!0})})},l=()=>{r.run(()=>{Qe(()=>e.minZoom,()=>{e.minZoom&&In(e.minZoom)&&n.setMinZoom(e.minZoom)},{immediate:!0})})},u=()=>{r.run(()=>{Qe(()=>e.translateExtent,()=>{e.translateExtent&&In(e.translateExtent)&&n.setTranslateExtent(e.translateExtent)},{immediate:!0})})},c=()=>{r.run(()=>{Qe(()=>e.nodeExtent,()=>{e.nodeExtent&&In(e.nodeExtent)&&n.setNodeExtent(e.nodeExtent)},{immediate:!0})})},d=()=>{r.run(()=>{Qe(()=>e.applyDefault,()=>{In(e.applyDefault)&&(n.applyDefault.value=e.applyDefault)},{immediate:!0})})},h=()=>{r.run(()=>{const m=async _=>{let E=_;typeof e.autoConnect=="function"&&(E=await e.autoConnect(_)),E!==!1&&n.addEdges([E])};Qe(()=>e.autoConnect,()=>{In(e.autoConnect)&&(n.autoConnect.value=e.autoConnect)},{immediate:!0}),Qe(n.autoConnect,(_,E,w)=>{_?n.onConnect(m):n.hooks.value.connect.off(m),w(()=>{n.hooks.value.connect.off(m)})},{immediate:!0})})},p=()=>{const m=["id","modelValue","translateExtent","nodeExtent","edges","nodes","maxZoom","minZoom","applyDefault","autoConnect"];for(const _ of Object.keys(e)){const E=_;if(!m.includes(E)){const w=Ot(()=>e[E]),v=n[E];Yt(v)&&r.run(()=>{Qe(w,y=>{In(y)&&(v.value=y)},{immediate:!0})})}}};(()=>{i(),o(),s(),l(),a(),u(),c(),d(),h(),p()})()}),()=>r.stop()}function $Z(){return{edgesChange:Ne(),nodesChange:Ne(),nodeDoubleClick:Ne(),nodeClick:Ne(),nodeMouseEnter:Ne(),nodeMouseMove:Ne(),nodeMouseLeave:Ne(),nodeContextMenu:Ne(),nodeDragStart:Ne(),nodeDrag:Ne(),nodeDragStop:Ne(),nodesInitialized:Ne(),miniMapNodeClick:Ne(),miniMapNodeDoubleClick:Ne(),miniMapNodeMouseEnter:Ne(),miniMapNodeMouseMove:Ne(),miniMapNodeMouseLeave:Ne(),connect:Ne(),connectStart:Ne(),connectEnd:Ne(),clickConnectStart:Ne(),clickConnectEnd:Ne(),paneReady:Ne(),init:Ne(),move:Ne(),moveStart:Ne(),moveEnd:Ne(),selectionDragStart:Ne(),selectionDrag:Ne(),selectionDragStop:Ne(),selectionContextMenu:Ne(),selectionStart:Ne(),selectionEnd:Ne(),viewportChangeStart:Ne(),viewportChange:Ne(),viewportChangeEnd:Ne(),paneScroll:Ne(),paneClick:Ne(),paneContextMenu:Ne(),paneMouseEnter:Ne(),paneMouseMove:Ne(),paneMouseLeave:Ne(),edgeContextMenu:Ne(),edgeMouseEnter:Ne(),edgeMouseMove:Ne(),edgeMouseLeave:Ne(),edgeDoubleClick:Ne(),edgeClick:Ne(),edgeUpdateStart:Ne(),edgeUpdate:Ne(),edgeUpdateEnd:Ne(),updateNodeInternals:Ne(),error:Ne(t=>rd(t.message))}}function DZ(t,e){const n=_n();hg(()=>{for(const[i,o]of Object.entries(e.value)){const s=a=>{t(i,a)};o.setEmitter(s),Fc(o.removeEmitter),o.setHasEmitListeners(()=>r(i)),Fc(o.removeHasEmitListeners)}});function r(i){var o;const s=MZ(i);return!!((o=n==null?void 0:n.vnode.props)==null?void 0:o[s])}}function MZ(t){const[e,...n]=t.split(":");return`on${e.replace(/(?:^|-)(\w)/g,(i,o)=>o.toUpperCase())}${n.length?`:${n.join(":")}`:""}`}function CA(){return{vueFlowRef:null,viewportRef:null,nodes:[],edges:[],connectionLookup:new Map,nodeTypes:{},edgeTypes:{},initialized:!1,dimensions:{width:0,height:0},viewport:{x:0,y:0,zoom:1},d3Zoom:null,d3Selection:null,d3ZoomHandler:null,minZoom:.5,maxZoom:2,translateExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],nodeExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],selectionMode:a0.Full,paneDragging:!1,preventScrolling:!0,zoomOnScroll:!0,zoomOnPinch:!0,zoomOnDoubleClick:!0,panOnScroll:!1,panOnScrollSpeed:.5,panOnScrollMode:Jc.Free,paneClickDistance:0,panOnDrag:!0,edgeUpdaterRadius:10,onlyRenderVisibleElements:!1,defaultViewport:{x:0,y:0,zoom:1},nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,defaultMarkerColor:"#b1b1b7",connectionLineStyle:{},connectionLineType:null,connectionLineOptions:{type:ya.Bezier,style:{}},connectionMode:hs.Loose,connectionStartHandle:null,connectionEndHandle:null,connectionClickStartHandle:null,connectionPosition:{x:Number.NaN,y:Number.NaN},connectionRadius:20,connectOnClick:!0,connectionStatus:null,isValidConnection:null,snapGrid:[15,15],snapToGrid:!1,edgesUpdatable:!1,edgesFocusable:!0,nodesFocusable:!0,nodesConnectable:!0,nodesDraggable:!0,nodeDragThreshold:1,elementsSelectable:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,selectionKeyCode:"Shift",multiSelectionKeyCode:vp()?"Meta":"Control",zoomActivationKeyCode:vp()?"Meta":"Control",deleteKeyCode:"Backspace",panActivationKeyCode:"Space",hooks:$Z(),applyDefault:!0,autoConnect:!1,fitViewOnInit:!1,fitViewOnInitDone:!1,noDragClassName:"nodrag",noWheelClassName:"nowheel",noPanClassName:"nopan",defaultEdgeOptions:void 0,elevateEdgesOnSelect:!1,elevateNodesOnSelect:!0,autoPanOnNodeDrag:!0,autoPanOnConnect:!0,autoPanSpeed:15,disableKeyboardA11y:!1,ariaLiveMessage:""}}const LZ=["id","vueFlowRef","viewportRef","initialized","modelValue","nodes","edges","maxZoom","minZoom","translateExtent","hooks","defaultEdgeOptions"];function VZ(t,e,n){const r=NZ(t),i=D=>{const L=D??[];t.hooks.updateNodeInternals.trigger(L)},o=D=>qK(D,t.nodes,t.edges),s=D=>QK(D,t.nodes,t.edges),a=D=>JC(D,t.edges),l=({id:D,type:L,nodeId:z})=>{var F;const W=D?`-${L}-${D}`:`-${L}`;return Array.from(((F=t.connectionLookup.get(`${z}${W}`))==null?void 0:F.values())??[])},u=D=>{if(D)return e.value.get(D)},c=D=>{if(D)return n.value.get(D)},d=(D,L,z)=>{var F,W;const ee=[];for(const Y of D){const te={id:Y.id,type:"position",dragging:z,from:Y.from};if(L&&(te.position=Y.position,Y.parentNode)){const Q=u(Y.parentNode);te.position={x:te.position.x-(((F=Q==null?void 0:Q.computedPosition)==null?void 0:F.x)??0),y:te.position.y-(((W=Q==null?void 0:Q.computedPosition)==null?void 0:W.y)??0)}}ee.push(te)}ee!=null&&ee.length&&t.hooks.nodesChange.trigger(ee)},h=D=>{if(!t.vueFlowRef)return;const L=t.vueFlowRef.querySelector(".vue-flow__transformationpane");if(!L)return;const z=window.getComputedStyle(L),{m22:F}=new window.DOMMatrixReadOnly(z.transform),W=[];for(const ee of D){const Y=ee,te=u(Y.id);if(te){const Q=gp(Y.nodeElement);if(!!(Q.width&&Q.height&&(te.dimensions.width!==Q.width||te.dimensions.height!==Q.height||Y.forceUpdate))){const he=Y.nodeElement.getBoundingClientRect();te.dimensions=Q,te.handleBounds.source=mA("source",Y.nodeElement,he,F,te.id),te.handleBounds.target=mA("target",Y.nodeElement,he,F,te.id),W.push({id:te.id,type:"dimensions",dimensions:Q})}}}!t.fitViewOnInitDone&&t.fitViewOnInit&&r.value.fitView().then(()=>{t.fitViewOnInitDone=!0}),W.length&&t.hooks.nodesChange.trigger(W)},p=(D,L)=>{const z=new Set,F=new Set;for(const Y of D)ba(Y)?z.add(Y.id):ps(Y)&&F.add(Y.id);const W=ms(e.value,z,!0),ee=ms(n.value,F);if(t.multiSelectionActive){for(const Y of z)W.push(gs(Y,L));for(const Y of F)ee.push(gs(Y,L))}W.length&&t.hooks.nodesChange.trigger(W),ee.length&&t.hooks.edgesChange.trigger(ee)},g=D=>{if(t.multiSelectionActive){const L=D.map(z=>gs(z.id,!0));t.hooks.nodesChange.trigger(L);return}t.hooks.nodesChange.trigger(ms(e.value,new Set(D.map(L=>L.id)),!0)),t.hooks.edgesChange.trigger(ms(n.value))},m=D=>{if(t.multiSelectionActive){const L=D.map(z=>gs(z.id,!0));t.hooks.edgesChange.trigger(L);return}t.hooks.edgesChange.trigger(ms(n.value,new Set(D.map(L=>L.id)))),t.hooks.nodesChange.trigger(ms(e.value,new Set,!0))},_=D=>{p(D,!0)},E=D=>{const z=(D||t.nodes).map(F=>(F.selected=!1,gs(F.id,!1)));t.hooks.nodesChange.trigger(z)},w=D=>{const z=(D||t.edges).map(F=>(F.selected=!1,gs(F.id,!1)));t.hooks.edgesChange.trigger(z)},v=D=>{if(!D||!D.length)return p([],!1);const L=D.reduce((z,F)=>{const W=gs(F.id,!1);return ba(F)?z.nodes.push(W):z.edges.push(W),z},{nodes:[],edges:[]});L.nodes.length&&t.hooks.nodesChange.trigger(L.nodes),L.edges.length&&t.hooks.edgesChange.trigger(L.edges)},y=D=>{var L;(L=t.d3Zoom)==null||L.scaleExtent([D,t.maxZoom]),t.minZoom=D},k=D=>{var L;(L=t.d3Zoom)==null||L.scaleExtent([t.minZoom,D]),t.maxZoom=D},$=D=>{var L;(L=t.d3Zoom)==null||L.translateExtent(D),t.translateExtent=D},O=D=>{t.nodeExtent=D,i()},A=D=>{var L;(L=t.d3Zoom)==null||L.clickDistance(D)},x=D=>{t.nodesDraggable=D,t.nodesConnectable=D,t.elementsSelectable=D},N=D=>{const L=D instanceof Function?D(t.nodes):D;!t.initialized&&!L.length||(t.nodes=vA(L,u,t.hooks.error.trigger))},P=D=>{const L=D instanceof Function?D(t.edges):D;if(!t.initialized&&!L.length)return;const z=y0(L,t.isValidConnection,u,c,t.hooks.error.trigger,t.defaultEdgeOptions,t.nodes,t.edges);v0(t.connectionLookup,n.value,z),t.edges=z},b=D=>{const L=D instanceof Function?D([...t.nodes,...t.edges]):D;!t.initialized&&!L.length||(N(L.filter(ba)),P(L.filter(ps)))},S=D=>{let L=D instanceof Function?D(t.nodes):D;L=Array.isArray(L)?L:[L];const z=vA(L,u,t.hooks.error.trigger),F=[];for(const W of z)F.push(iA(W));F.length&&t.hooks.nodesChange.trigger(F)},I=D=>{let L=D instanceof Function?D(t.edges):D;L=Array.isArray(L)?L:[L];const z=y0(L,t.isValidConnection,u,c,t.hooks.error.trigger,t.defaultEdgeOptions,t.nodes,t.edges),F=[];for(const W of z)F.push(iA(W));F.length&&t.hooks.edgesChange.trigger(F)},V=(D,L=!0,z=!1)=>{const F=D instanceof Function?D(t.nodes):D,W=Array.isArray(F)?F:[F],ee=[],Y=[];function te(ye){const he=a(ye);for(const be of he)(!In(be.deletable)||be.deletable)&&Y.push(sA(be.id,be.source,be.target,be.sourceHandle,be.targetHandle))}function Q(ye){const he=[];for(const be of t.nodes)be.parentNode===ye&&he.push(be);if(he.length){for(const be of he)ee.push(oA(be.id));L&&te(he);for(const be of he)Q(be.id)}}for(const ye of W){const he=typeof ye=="string"?u(ye):ye;he&&(In(he.deletable)&&!he.deletable||(ee.push(oA(he.id)),L&&te([he]),z&&Q(he.id)))}Y.length&&t.hooks.edgesChange.trigger(Y),ee.length&&t.hooks.nodesChange.trigger(ee)},M=D=>{const L=D instanceof Function?D(t.edges):D,z=Array.isArray(L)?L:[L],F=[];for(const W of z){const ee=typeof W=="string"?c(W):W;ee&&(In(ee.deletable)&&!ee.deletable||F.push(sA(typeof W=="string"?W:W.id,ee.source,ee.target,ee.sourceHandle,ee.targetHandle)))}t.hooks.edgesChange.trigger(F)},H=(D,L,z=!0)=>{const F=c(D.id);if(!F)return!1;const W=t.edges.indexOf(F),ee=wZ(D,L,F,z,t.hooks.error.trigger);if(ee){const[Y]=y0([ee],t.isValidConnection,u,c,t.hooks.error.trigger,t.defaultEdgeOptions,t.nodes,t.edges);return t.edges=t.edges.map((te,Q)=>Q===W?Y:te),v0(t.connectionLookup,n.value,[Y]),Y}return!1},G=(D,L,z={replace:!1})=>{const F=c(D);if(!F)return;const W=typeof L=="function"?L(F):L;F.data=z.replace?W:{...F.data,...W}},J=D=>rA(D,t.nodes),oe=D=>{const L=rA(D,t.edges);return v0(t.connectionLookup,n.value,L),L},ae=(D,L,z={replace:!1})=>{const F=u(D);if(!F)return;const W=typeof L=="function"?L(F):L;z.replace?t.nodes.splice(t.nodes.indexOf(F),1,W):Object.assign(F,W)},de=(D,L,z={replace:!1})=>{const F=u(D);if(!F)return;const W=typeof L=="function"?L(F):L;F.data=z.replace?W:{...F.data,...W}},xe=(D,L,z=!1)=>{z?t.connectionClickStartHandle=D:t.connectionStartHandle=D,t.connectionEndHandle=null,t.connectionStatus=null,L&&(t.connectionPosition=L)},Ee=(D,L=null,z=null)=>{t.connectionStartHandle&&(t.connectionPosition=D,t.connectionEndHandle=L,t.connectionStatus=z)},pe=(D,L)=>{t.connectionPosition={x:Number.NaN,y:Number.NaN},t.connectionEndHandle=null,t.connectionStatus=null,L?t.connectionClickStartHandle=null:t.connectionStartHandle=null},le=D=>{const L=YK(D),z=L?null:qc(D)?D:u(D.id);return!L&&!z?[null,null,L]:[L?D:hp(z),z,L]},fe=(D,L=!0,z=t.nodes)=>{const[F,W,ee]=le(D);if(!F)return[];const Y=[];for(const te of z||t.nodes){if(!ee&&(te.id===W.id||!te.computedPosition))continue;const Q=hp(te),ye=pp(Q,F);(L&&ye>0||ye>=Q.width*Q.height||ye>=Number(F.width)*Number(F.height))&&Y.push(te)}return Y},Re=(D,L,z=!0)=>{const[F]=le(D);if(!F)return!1;const W=pp(F,L);return z&&W>0||W>=Number(F.width)*Number(F.height)},$e=D=>{const{viewport:L,dimensions:z,d3Zoom:F,d3Selection:W,translateExtent:ee}=t;if(!F||!W||!D.x&&!D.y)return!1;const Y=Jl.translate(L.x+D.x,L.y+D.y).scale(L.zoom),te=[[0,0],[z.width,z.height]],Q=F.constrain()(Y,te,ee),ye=t.viewport.x!==Q.x||t.viewport.y!==Q.y||t.viewport.zoom!==Q.k;return F.transform(W,Q),ye},Be=D=>{const L=D instanceof Function?D(t):D,z=["d3Zoom","d3Selection","d3ZoomHandler","viewportRef","vueFlowRef","dimensions","hooks"];In(L.defaultEdgeOptions)&&(t.defaultEdgeOptions=L.defaultEdgeOptions);const F=L.modelValue||L.nodes||L.edges?[]:void 0;F&&(L.modelValue&&F.push(...L.modelValue),L.nodes&&F.push(...L.nodes),L.edges&&F.push(...L.edges),b(F));const W=()=>{In(L.maxZoom)&&k(L.maxZoom),In(L.minZoom)&&y(L.minZoom),In(L.translateExtent)&&$(L.translateExtent)};for(const ee of Object.keys(L)){const Y=ee,te=L[Y];![...LZ,...z].includes(Y)&&In(te)&&(t[Y]=te)}zy(()=>t.d3Zoom).not.toBeNull().then(W),t.initialized||(t.initialized=!0)};return{updateNodePositions:d,updateNodeDimensions:h,setElements:b,setNodes:N,setEdges:P,addNodes:S,addEdges:I,removeNodes:V,removeEdges:M,findNode:u,findEdge:c,updateEdge:H,updateEdgeData:G,updateNode:ae,updateNodeData:de,applyEdgeChanges:oe,applyNodeChanges:J,addSelectedElements:_,addSelectedNodes:g,addSelectedEdges:m,setMinZoom:y,setMaxZoom:k,setTranslateExtent:$,setNodeExtent:O,setPaneClickDistance:A,removeSelectedElements:v,removeSelectedNodes:E,removeSelectedEdges:w,startConnection:xe,updateConnection:Ee,endConnection:pe,setInteractive:x,setState:Be,getIntersectingNodes:fe,getIncomers:o,getOutgoers:s,getConnectedEdges:a,getHandleConnections:l,isNodeIntersecting:Re,panBy:$e,fitView:D=>r.value.fitView(D),zoomIn:D=>r.value.zoomIn(D),zoomOut:D=>r.value.zoomOut(D),zoomTo:(D,L)=>r.value.zoomTo(D,L),setViewport:(D,L)=>r.value.setViewport(D,L),setTransform:(D,L)=>r.value.setTransform(D,L),getViewport:()=>r.value.getViewport(),getTransform:()=>r.value.getTransform(),setCenter:(D,L,z)=>r.value.setCenter(D,L,z),fitBounds:(D,L)=>r.value.fitBounds(D,L),project:D=>r.value.project(D),screenToFlowCoordinate:D=>r.value.screenToFlowCoordinate(D),flowToScreenCoordinate:D=>r.value.flowToScreenCoordinate(D),toObject:()=>{const D=[],L=[];for(const z of t.nodes){const{computedPosition:F,handleBounds:W,selected:ee,dimensions:Y,isParent:te,resizing:Q,dragging:ye,events:he,...be}=z;D.push(be)}for(const z of t.edges){const{selected:F,sourceNode:W,targetNode:ee,events:Y,...te}=z;L.push(te)}return JSON.parse(JSON.stringify({nodes:D,edges:L,position:[t.viewport.x,t.viewport.y],zoom:t.viewport.zoom,viewport:t.viewport}))},fromObject:D=>new Promise(L=>{const{nodes:z,edges:F,position:W,zoom:ee,viewport:Y}=D;z&&N(z),F&&P(F);const[te,Q]=Y!=null&&Y.x&&(Y!=null&&Y.y)?[Y.x,Y.y]:W??[null,null];if(te&&Q){const ye=(Y==null?void 0:Y.zoom)||ee||t.viewport.zoom;return zy(()=>r.value.viewportInitialized).toBe(!0).then(()=>{r.value.setViewport({x:te,y:Q,zoom:ye}).then(()=>{L(!0)})})}else L(!0)}),updateNodeInternals:i,viewportHelper:r,$reset:()=>{const D=CA();if(t.edges=[],t.nodes=[],t.d3Zoom&&t.d3Selection){const L=Jl.translate(D.defaultViewport.x??0,D.defaultViewport.y??0).scale(Ao(D.defaultViewport.zoom??1,D.minZoom,D.maxZoom)),z=t.viewportRef.getBoundingClientRect(),F=[[0,0],[z.width,z.height]],W=t.d3Zoom.constrain()(L,F,D.translateExtent);t.d3Zoom.transform(t.d3Selection,W)}Be(D)},$destroy:()=>{}}}const FZ=["data-id","data-handleid","data-nodeid","data-handlepos"],ys=Te({...{name:"Handle",compatConfig:{MODE:3}},props:{id:{default:null},type:{},position:{default:()=>Fe.Top},isValidConnection:{type:Function},connectable:{type:[Boolean,Number,String,Function],default:void 0},connectableStart:{type:Boolean,default:!0},connectableEnd:{type:Boolean,default:!0}},setup(t,{expose:e}){const n=n_(t,["position","connectable","connectableStart","connectableEnd","id"]),r=Ot(()=>n.type??"source"),i=Ot(()=>n.isValidConnection??null),{id:o,connectionStartHandle:s,connectionClickStartHandle:a,connectionEndHandle:l,vueFlowRef:u,nodesConnectable:c,noDragClassName:d,noPanClassName:h}=$t(),{id:p,node:g,nodeEl:m,connectedEdges:_}=TA(),E=we(),w=Ot(()=>typeof t.connectableStart<"u"?t.connectableStart:!0),v=Ot(()=>typeof t.connectableEnd<"u"?t.connectableEnd:!0),y=Ot(()=>{var P,b,S,I,V,M;return((P=s.value)==null?void 0:P.nodeId)===p&&((b=s.value)==null?void 0:b.id)===t.id&&((S=s.value)==null?void 0:S.type)===r.value||((I=l.value)==null?void 0:I.nodeId)===p&&((V=l.value)==null?void 0:V.id)===t.id&&((M=l.value)==null?void 0:M.type)===r.value}),k=Ot(()=>{var P,b,S;return((P=a.value)==null?void 0:P.nodeId)===p&&((b=a.value)==null?void 0:b.id)===t.id&&((S=a.value)==null?void 0:S.type)===r.value}),{handlePointerDown:$,handleClick:O}=EA({nodeId:p,handleId:t.id,isValidConnection:i,type:r}),A=Z(()=>typeof t.connectable=="string"&&t.connectable==="single"?!_.value.some(P=>{const b=P[`${r.value}Handle`];return P[r.value]!==p?!1:b?b===t.id:!0}):typeof t.connectable=="number"?_.value.filter(P=>{const b=P[`${r.value}Handle`];return P[r.value]!==p?!1:b?b===t.id:!0}).length<t.connectable:typeof t.connectable=="function"?t.connectable(g,_.value):In(t.connectable)?t.connectable:c.value);jt(()=>{var P;if(!g.dimensions.width||!g.dimensions.height)return;const b=(P=g.handleBounds[r.value])==null?void 0:P.find(J=>J.id===t.id);if(!u.value||b)return;const S=u.value.querySelector(".vue-flow__transformationpane");if(!m.value||!E.value||!S||!t.id)return;const I=m.value.getBoundingClientRect(),V=E.value.getBoundingClientRect(),M=window.getComputedStyle(S),{m22:H}=new window.DOMMatrixReadOnly(M.transform),G={id:t.id,position:t.position,x:(V.left-I.left)/H,y:(V.top-I.top)/H,type:r.value,nodeId:p,...gp(E.value)};g.handleBounds[r.value]=[...g.handleBounds[r.value]??[],G]});function x(P){const b=h0(P);A.value&&w.value&&(b&&P.button===0||!b)&&$(P)}function N(P){!p||!a.value&&!w.value||A.value&&O(P)}return e({handleClick:O,handlePointerDown:$,onClick:N,onPointerDown:x}),(P,b)=>(j(),K("div",{ref_key:"handle",ref:E,"data-id":`${re(o)}-${re(p)}-${t.id}-${r.value}`,"data-handleid":t.id,"data-nodeid":re(p),"data-handlepos":P.position,class:Se(["vue-flow__handle",[`vue-flow__handle-${P.position}`,`vue-flow__handle-${t.id}`,re(d),re(h),r.value,{connectable:A.value,connecting:k.value,connectablestart:w.value,connectableend:v.value,connectionindicator:A.value&&(w.value&&!y.value||v.value&&y.value)}]]),onMousedown:x,onTouchstartPassive:x,onClick:N},[Mt(P.$slots,"default",{id:P.id})],42,FZ))}}),wp=function({sourcePosition:t=Fe.Bottom,targetPosition:e=Fe.Top,label:n,connectable:r=!0,isValidTargetPos:i,isValidSourcePos:o,data:s}){const a=s.label??n;return[qe(ys,{type:"target",position:e,connectable:r,isValidConnection:i}),typeof a!="string"&&a?qe(a):qe(Ue,[a]),qe(ys,{type:"source",position:t,connectable:r,isValidConnection:o})]};wp.props=["sourcePosition","targetPosition","label","isValidTargetPos","isValidSourcePos","connectable","data"],wp.inheritAttrs=!1,wp.compatConfig={MODE:3};const zZ=wp,Sp=function({targetPosition:t=Fe.Top,label:e,connectable:n=!0,isValidTargetPos:r,data:i}){const o=i.label??e;return[qe(ys,{type:"target",position:t,connectable:n,isValidConnection:r}),typeof o!="string"&&o?qe(o):qe(Ue,[o])]};Sp.props=["targetPosition","label","isValidTargetPos","connectable","data"],Sp.inheritAttrs=!1,Sp.compatConfig={MODE:3};const UZ=Sp,Ep=function({sourcePosition:t=Fe.Bottom,label:e,connectable:n=!0,isValidSourcePos:r,data:i}){const o=i.label??e;return[typeof o!="string"&&o?qe(o):qe(Ue,[o]),qe(ys,{type:"source",position:t,connectable:n,isValidConnection:r})]};Ep.props=["sourcePosition","label","isValidSourcePos","connectable","data"],Ep.inheritAttrs=!1,Ep.compatConfig={MODE:3};const BZ=Ep,jZ=["transform"],HZ=["width","height","x","y","rx","ry"],GZ=["y"],WZ=Te({...{name:"EdgeText",compatConfig:{MODE:3}},props:{x:{},y:{},label:{},labelStyle:{default:()=>({})},labelShowBg:{type:Boolean,default:!0},labelBgStyle:{default:()=>({})},labelBgPadding:{default:()=>[2,4]},labelBgBorderRadius:{default:2}},setup(t){const e=we({x:0,y:0,width:0,height:0}),n=we(null),r=Z(()=>`translate(${t.x-e.value.width/2} ${t.y-e.value.height/2})`);jt(i),Qe([()=>t.x,()=>t.y,n,()=>t.label],i);function i(){if(!n.value)return;const o=n.value.getBBox();(o.width!==e.value.width||o.height!==e.value.height)&&(e.value=o)}return(o,s)=>(j(),K("g",{transform:r.value,class:"vue-flow__edge-textwrapper"},[o.labelShowBg?(j(),K("rect",{key:0,class:"vue-flow__edge-textbg",width:`${e.value.width+2*o.labelBgPadding[0]}px`,height:`${e.value.height+2*o.labelBgPadding[1]}px`,x:-o.labelBgPadding[0],y:-o.labelBgPadding[1],style:Xe(o.labelBgStyle),rx:o.labelBgBorderRadius,ry:o.labelBgBorderRadius},null,12,HZ)):Oe("",!0),C("text",ao(o.$attrs,{ref_key:"el",ref:n,class:"vue-flow__edge-text",y:e.value.height/2,dy:"0.3em",style:o.labelStyle}),[Mt(o.$slots,"default",{},()=>[typeof o.label!="string"?(j(),De(Xn(o.label),{key:0})):(j(),K(Ue,{key:1},[bt(Ie(o.label),1)],64))])],16,GZ)],8,jZ))}}),KZ=["id","d","marker-end","marker-start"],ZZ=["d","stroke-width"],Tp=Te({...{name:"BaseEdge",inheritAttrs:!1,compatConfig:{MODE:3}},props:{id:{},labelX:{},labelY:{},path:{},label:{},markerStart:{},markerEnd:{},interactionWidth:{default:20},labelStyle:{},labelShowBg:{type:Boolean},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{}},setup(t,{expose:e}){const n=we(null),r=we(null),i=we(null),o=e_();return e({pathEl:n,interactionEl:r,labelEl:i}),(s,a)=>(j(),K(Ue,null,[C("path",ao(re(o),{id:s.id,ref_key:"pathEl",ref:n,d:s.path,class:"vue-flow__edge-path","marker-end":s.markerEnd,"marker-start":s.markerStart}),null,16,KZ),s.interactionWidth?(j(),K("path",{key:0,ref_key:"interactionEl",ref:r,fill:"none",d:s.path,"stroke-width":s.interactionWidth,"stroke-opacity":0,class:"vue-flow__edge-interaction"},null,8,ZZ)):Oe("",!0),s.label&&s.labelX&&s.labelY?(j(),De(WZ,{key:1,ref_key:"labelEl",ref:i,x:s.labelX,y:s.labelY,label:s.label,"label-show-bg":s.labelShowBg,"label-bg-style":s.labelBgStyle,"label-bg-padding":s.labelBgPadding,"label-bg-border-radius":s.labelBgBorderRadius,"label-style":s.labelStyle},null,8,["x","y","label","label-show-bg","label-bg-style","label-bg-padding","label-bg-border-radius","label-style"])):Oe("",!0)],64))}});function AA({sourceX:t,sourceY:e,targetX:n,targetY:r}){const i=Math.abs(n-t)/2,o=n<t?n+i:n-i,s=Math.abs(r-e)/2,a=r<e?r+s:r-s;return[o,a,i,s]}function PA({sourceX:t,sourceY:e,targetX:n,targetY:r,sourceControlX:i,sourceControlY:o,targetControlX:s,targetControlY:a}){const l=t*.125+i*.375+s*.375+n*.125,u=e*.125+o*.375+a*.375+r*.125,c=Math.abs(l-t),d=Math.abs(u-e);return[l,u,c,d]}function Ip(t,e){return t>=0?.5*t:e*25*Math.sqrt(-t)}function kA({pos:t,x1:e,y1:n,x2:r,y2:i,c:o}){let s,a;switch(t){case Fe.Left:s=e-Ip(e-r,o),a=n;break;case Fe.Right:s=e+Ip(r-e,o),a=n;break;case Fe.Top:s=e,a=n-Ip(n-i,o);break;case Fe.Bottom:s=e,a=n+Ip(i-n,o);break}return[s,a]}function OA(t){const{sourceX:e,sourceY:n,sourcePosition:r=Fe.Bottom,targetX:i,targetY:o,targetPosition:s=Fe.Top,curvature:a=.25}=t,[l,u]=kA({pos:r,x1:e,y1:n,x2:i,y2:o,c:a}),[c,d]=kA({pos:s,x1:i,y1:o,x2:e,y2:n,c:a}),[h,p,g,m]=PA({sourceX:e,sourceY:n,targetX:i,targetY:o,sourceControlX:l,sourceControlY:u,targetControlX:c,targetControlY:d});return[`M${e},${n} C${l},${u} ${c},${d} ${i},${o}`,h,p,g,m]}function NA({pos:t,x1:e,y1:n,x2:r,y2:i}){let o,s;switch(t){case Fe.Left:case Fe.Right:o=.5*(e+r),s=n;break;case Fe.Top:case Fe.Bottom:o=e,s=.5*(n+i);break}return[o,s]}function RA(t){const{sourceX:e,sourceY:n,sourcePosition:r=Fe.Bottom,targetX:i,targetY:o,targetPosition:s=Fe.Top}=t,[a,l]=NA({pos:r,x1:e,y1:n,x2:i,y2:o}),[u,c]=NA({pos:s,x1:i,y1:o,x2:e,y2:n}),[d,h,p,g]=PA({sourceX:e,sourceY:n,targetX:i,targetY:o,sourceControlX:a,sourceControlY:l,targetControlX:u,targetControlY:c});return[`M${e},${n} C${a},${l} ${u},${c} ${i},${o}`,d,h,p,g]}const $A={[Fe.Left]:{x:-1,y:0},[Fe.Right]:{x:1,y:0},[Fe.Top]:{x:0,y:-1},[Fe.Bottom]:{x:0,y:1}};function XZ({source:t,sourcePosition:e=Fe.Bottom,target:n}){return e===Fe.Left||e===Fe.Right?t.x<n.x?{x:1,y:0}:{x:-1,y:0}:t.y<n.y?{x:0,y:1}:{x:0,y:-1}}function DA(t,e){return Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2)}function YZ({source:t,sourcePosition:e=Fe.Bottom,target:n,targetPosition:r=Fe.Top,center:i,offset:o}){const s=$A[e],a=$A[r],l={x:t.x+s.x*o,y:t.y+s.y*o},u={x:n.x+a.x*o,y:n.y+a.y*o},c=XZ({source:l,sourcePosition:e,target:u}),d=c.x!==0?"x":"y",h=c[d];let p,g,m;const _={x:0,y:0},E={x:0,y:0},[w,v,y,k]=AA({sourceX:t.x,sourceY:t.y,targetX:n.x,targetY:n.y});if(s[d]*a[d]===-1){g=i.x??w,m=i.y??v;const O=[{x:g,y:l.y},{x:g,y:u.y}],A=[{x:l.x,y:m},{x:u.x,y:m}];s[d]===h?p=d==="x"?O:A:p=d==="x"?A:O}else{const O=[{x:l.x,y:u.y}],A=[{x:u.x,y:l.y}];if(d==="x"?p=s.x===h?A:O:p=s.y===h?O:A,e===r){const S=Math.abs(t[d]-n[d]);if(S<=o){const I=Math.min(o-1,o-S);s[d]===h?_[d]=(l[d]>t[d]?-1:1)*I:E[d]=(u[d]>n[d]?-1:1)*I}}if(e!==r){const S=d==="x"?"y":"x",I=s[d]===a[S],V=l[S]>u[S],M=l[S]<u[S];(s[d]===1&&(!I&&V||I&&M)||s[d]!==1&&(!I&&M||I&&V))&&(p=d==="x"?O:A)}const x={x:l.x+_.x,y:l.y+_.y},N={x:u.x+E.x,y:u.y+E.y},P=Math.max(Math.abs(x.x-p[0].x),Math.abs(N.x-p[0].x)),b=Math.max(Math.abs(x.y-p[0].y),Math.abs(N.y-p[0].y));P>=b?(g=(x.x+N.x)/2,m=p[0].y):(g=p[0].x,m=(x.y+N.y)/2)}return[[t,{x:l.x+_.x,y:l.y+_.y},...p,{x:u.x+E.x,y:u.y+E.y},n],g,m,y,k]}function JZ(t,e,n,r){const i=Math.min(DA(t,e)/2,DA(e,n)/2,r),{x:o,y:s}=e;if(t.x===o&&o===n.x||t.y===s&&s===n.y)return`L${o} ${s}`;if(t.y===s){const u=t.x<n.x?-1:1,c=t.y<n.y?1:-1;return`L ${o+i*u},${s}Q ${o},${s} ${o},${s+i*c}`}const a=t.x<n.x?1:-1,l=t.y<n.y?-1:1;return`L ${o},${s+i*l}Q ${o},${s} ${o+i*a},${s}`}function x0(t){const{sourceX:e,sourceY:n,sourcePosition:r=Fe.Bottom,targetX:i,targetY:o,targetPosition:s=Fe.Top,borderRadius:a=5,centerX:l,centerY:u,offset:c=20}=t,[d,h,p,g,m]=YZ({source:{x:e,y:n},sourcePosition:r,target:{x:i,y:o},targetPosition:s,center:{x:l,y:u},offset:c});return[d.reduce((E,w,v)=>{let y;return v>0&&v<d.length-1?y=JZ(d[v-1],w,d[v+1],a):y=`${v===0?"M":"L"}${w.x} ${w.y}`,E+=y,E},""),h,p,g,m]}function QZ(t){const{sourceX:e,sourceY:n,targetX:r,targetY:i}=t,[o,s,a,l]=AA({sourceX:e,sourceY:n,targetX:r,targetY:i});return[`M ${e},${n}L ${r},${i}`,o,s,a,l]}const qZ=Te({name:"StraightEdge",props:["label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(t,{attrs:e}){return()=>{const[n,r,i]=QZ(t);return qe(Tp,{path:n,labelX:r,labelY:i,...e,...t})}}}),MA=Te({name:"SmoothStepEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","borderRadius","markerEnd","markerStart","interactionWidth","offset"],compatConfig:{MODE:3},setup(t,{attrs:e}){return()=>{const[n,r,i]=x0({...t,sourcePosition:t.sourcePosition??Fe.Bottom,targetPosition:t.targetPosition??Fe.Top});return qe(Tp,{path:n,labelX:r,labelY:i,...e,...t})}}}),eX=Te({name:"StepEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],setup(t,{attrs:e}){return()=>qe(MA,{...t,...e,borderRadius:0})}}),tX=Te({name:"BezierEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","curvature","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(t,{attrs:e}){return()=>{const[n,r,i]=OA({...t,sourcePosition:t.sourcePosition??Fe.Bottom,targetPosition:t.targetPosition??Fe.Top});return qe(Tp,{path:n,labelX:r,labelY:i,...e,...t})}}}),nX=Te({name:"SimpleBezierEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(t,{attrs:e}){return()=>{const[n,r,i]=RA({...t,sourcePosition:t.sourcePosition??Fe.Bottom,targetPosition:t.targetPosition??Fe.Top});return qe(Tp,{path:n,labelX:r,labelY:i,...e,...t})}}}),rX={input:BZ,default:zZ,output:UZ},iX={default:tX,straight:qZ,step:eX,smoothstep:MA,simplebezier:nX};function oX(t,e,n){const r=Z(()=>m=>e.value.get(m)),i=Z(()=>m=>n.value.get(m)),o=Z(()=>{const m={...iX,...t.edgeTypes},_=Object.keys(m);for(const E of t.edges)E.type&&!_.includes(E.type)&&(m[E.type]=E.type);return m}),s=Z(()=>{const m={...rX,...t.nodeTypes},_=Object.keys(m);for(const E of t.nodes)E.type&&!_.includes(E.type)&&(m[E.type]=E.type);return m}),a=Z(()=>t.onlyRenderVisibleElements?YC(t.nodes,{x:0,y:0,width:t.dimensions.width,height:t.dimensions.height},t.viewport,!0):t.nodes),l=Z(()=>{if(t.onlyRenderVisibleElements){const m=[];for(const _ of t.edges){const E=e.value.get(_.source),w=e.value.get(_.target);cZ({sourcePos:E.computedPosition||{x:0,y:0},targetPos:w.computedPosition||{x:0,y:0},sourceWidth:E.dimensions.width,sourceHeight:E.dimensions.height,targetWidth:w.dimensions.width,targetHeight:w.dimensions.height,width:t.dimensions.width,height:t.dimensions.height,viewport:t.viewport})&&m.push(_)}return m}return t.edges}),u=Z(()=>[...a.value,...l.value]),c=Z(()=>{const m=[];for(const _ of t.nodes)_.selected&&m.push(_);return m}),d=Z(()=>{const m=[];for(const _ of t.edges)_.selected&&m.push(_);return m}),h=Z(()=>[...c.value,...d.value]),p=Z(()=>{const m=[];for(const _ of t.nodes)_.dimensions.width&&_.dimensions.height&&_.handleBounds!==void 0&&m.push(_);return m}),g=Z(()=>a.value.length>0&&p.value.length===a.value.length);return{getNode:r,getEdge:i,getElements:u,getEdgeTypes:o,getNodeTypes:s,getEdges:l,getNodes:a,getSelectedElements:h,getSelectedNodes:c,getSelectedEdges:d,getNodesInitialized:p,areNodesInitialized:g}}class _a{constructor(){this.currentId=0,this.flows=new Map}static getInstance(){var e;const n=(e=_n())==null?void 0:e.appContext.app,r=(n==null?void 0:n.config.globalProperties.$vueFlowStorage)??_a.instance;return _a.instance=r??new _a,n&&(n.config.globalProperties.$vueFlowStorage=_a.instance),_a.instance}set(e,n){return this.flows.set(e,n)}get(e){return this.flows.get(e)}remove(e){return this.flows.delete(e)}create(e,n){const r=CA(),i=Ra(r),o={};for(const[h,p]of Object.entries(i.hooks)){const g=`on${h.charAt(0).toUpperCase()+h.slice(1)}`;o[g]=p.on}const s={};for(const[h,p]of Object.entries(i.hooks))s[h]=p.trigger;const a=Z(()=>{const h=new Map;for(const p of i.nodes)h.set(p.id,p);return h}),l=Z(()=>{const h=new Map;for(const p of i.edges)h.set(p.id,p);return h}),u=oX(i,a,l),c=VZ(i,a,l);c.setState({...i,...n});const d={...o,...u,...c,...oH(i),nodeLookup:a,edgeLookup:l,emits:s,id:e,vueFlowVersion:"1.48.1",$destroy:()=>{this.remove(e)}};return this.set(e,d),d}getId(){return`vue-flow-${this.currentId++}`}}function $t(t){const e=_a.getInstance(),n=Ed(),r=typeof t=="object",i=r?t:{id:t},o=i.id,s=o??(n==null?void 0:n.vueFlowId);let a;if(n){const l=yt(_A,null);typeof l<"u"&&l!==null&&(!s||l.id===s)&&(a=l)}if(a||s&&(a=e.get(s)),!a||s&&a.id!==s){const l=o??e.getId(),u=e.create(l,i);a=u,(n??Kp(!0)).run(()=>{Qe(u.applyDefault,(d,h,p)=>{const g=_=>{u.applyNodeChanges(_)},m=_=>{u.applyEdgeChanges(_)};d?(u.onNodesChange(g),u.onEdgesChange(m)):(u.hooks.value.nodesChange.off(g),u.hooks.value.edgesChange.off(m)),p(()=>{u.hooks.value.nodesChange.off(g),u.hooks.value.edgesChange.off(m)})},{immediate:!0}),Fc(()=>{if(a){const d=e.get(a.id);d?d.$destroy():rd(`No store instance found for id ${a.id} in storage.`)}})})}else r&&a.setState(i);if(n&&(to(_A,a),n.vueFlowId=a.id),r){const l=_n();(l==null?void 0:l.type.name)!=="VueFlow"&&a.emits.error(new An(Tn.USEVUEFLOW_OPTIONS))}return a}function sX(t){const{emits:e,dimensions:n}=$t();let r;jt(()=>{const i=()=>{var o,s;if(!t.value||!(((s=(o=t.value).checkVisibility)==null?void 0:s.call(o))??!0))return;const a=gp(t.value);(a.width===0||a.height===0)&&e.error(new An(Tn.MISSING_VIEWPORT_DIMENSIONS)),n.value={width:a.width||500,height:a.height||500}};i(),window.addEventListener("resize",i),t.value&&(r=new ResizeObserver(()=>i()),r.observe(t.value)),Ga(()=>{window.removeEventListener("resize",i),r&&t.value&&r.unobserve(t.value)})})}const aX=Te({...{name:"UserSelection",compatConfig:{MODE:3}},props:{userSelectionRect:{}},setup(t){return(e,n)=>(j(),K("div",{class:"vue-flow__selection vue-flow__container",style:Xe({width:`${e.userSelectionRect.width}px`,height:`${e.userSelectionRect.height}px`,transform:`translate(${e.userSelectionRect.x}px, ${e.userSelectionRect.y}px)`})},null,4))}}),lX=["tabIndex"],uX=Te({...{name:"NodesSelection",compatConfig:{MODE:3}},setup(t){const{emits:e,viewport:n,getSelectedNodes:r,noPanClassName:i,disableKeyboardA11y:o,userSelectionActive:s}=$t(),a=IA(),l=we(null),u=wA({el:l,onStart(g){e.selectionDragStart(g),e.nodeDragStart(g)},onDrag(g){e.selectionDrag(g),e.nodeDrag(g)},onStop(g){e.selectionDragStop(g),e.nodeDragStop(g)}});jt(()=>{var g;o.value||(g=l.value)==null||g.focus({preventScroll:!0})});const c=Z(()=>XC(r.value)),d=Z(()=>({width:`${c.value.width}px`,height:`${c.value.height}px`,top:`${c.value.y}px`,left:`${c.value.x}px`}));function h(g){e.selectionContextMenu({event:g,nodes:r.value})}function p(g){o.value||Ql[g.key]&&(g.preventDefault(),a({x:Ql[g.key].x,y:Ql[g.key].y},g.shiftKey))}return(g,m)=>!re(s)&&c.value.width&&c.value.height?(j(),K("div",{key:0,class:Se(["vue-flow__nodesselection vue-flow__container",re(i)]),style:Xe({transform:`translate(${re(n).x}px,${re(n).y}px) scale(${re(n).zoom})`})},[C("div",{ref_key:"el",ref:l,class:Se([{dragging:re(u)},"vue-flow__nodesselection-rect"]),style:Xe(d.value),tabIndex:re(o)?void 0:-1,onContextmenu:h,onKeydown:p},null,46,lX)],6)):Oe("",!0)}});function cX(t,e){return{x:t.clientX-e.left,y:t.clientY-e.top}}const dX=Te({...{name:"Pane",compatConfig:{MODE:3}},props:{isSelecting:{type:Boolean},selectionKeyPressed:{type:Boolean}},setup(t){const{vueFlowRef:e,nodes:n,viewport:r,emits:i,userSelectionActive:o,removeSelectedElements:s,userSelectionRect:a,elementsSelectable:l,nodesSelectionActive:u,getSelectedEdges:c,getSelectedNodes:d,removeNodes:h,removeEdges:p,selectionMode:g,deleteKeyCode:m,multiSelectionKeyCode:_,multiSelectionActive:E,edgeLookup:w,nodeLookup:v,connectionLookup:y,defaultEdgeOptions:k,connectionStartHandle:$,panOnDrag:O}=$t(),A=Ei(null),x=Ei(new Set),N=Ei(new Set),P=Ei(null),b=Ot(()=>l.value&&(t.isSelecting||o.value)),S=Ot(()=>$.value!==null);let I=!1,V=!1;const M=Qc(m,{actInsideInputWithModifier:!1}),H=Qc(_);Qe(M,pe=>{pe&&(h(d.value),p(c.value),u.value=!1)}),Qe(H,pe=>{E.value=pe});function G(pe,le){return fe=>{fe.target===le&&(pe==null||pe(fe))}}function J(pe){if(I||S.value){I=!1;return}i.paneClick(pe),s(),u.value=!1}function oe(pe){var le;if(Array.isArray(O.value)&&((le=O.value)!=null&&le.includes(2))){pe.preventDefault();return}i.paneContextMenu(pe)}function ae(pe){i.paneScroll(pe)}function de(pe){var le,fe,Re;if(P.value=((le=e.value)==null?void 0:le.getBoundingClientRect())??null,!l.value||!t.isSelecting||pe.button!==0||pe.target!==A.value||!P.value)return;(Re=(fe=pe.target)==null?void 0:fe.setPointerCapture)==null||Re.call(fe,pe.pointerId);const{x:$e,y:Be}=cX(pe,P.value);V=!0,I=!1,s(),a.value={width:0,height:0,startX:$e,startY:Be,x:$e,y:Be},i.selectionStart(pe)}function xe(pe){var le;if(!P.value||!a.value)return;I=!0;const{x:fe,y:Re}=Zi(pe,P.value),{startX:$e=0,startY:Be=0}=a.value,et={startX:$e,startY:Be,x:fe<$e?fe:$e,y:Re<Be?Re:Be,width:Math.abs(fe-$e),height:Math.abs(Re-Be)},Me=x.value,B=N.value;x.value=new Set(YC(n.value,et,r.value,g.value===a0.Partial,!0).map(L=>L.id)),N.value=new Set;const D=((le=k.value)==null?void 0:le.selectable)??!0;for(const L of x.value){const z=y.value.get(L);if(z)for(const{edgeId:F}of z.values()){const W=w.value.get(F);W&&(W.selectable??D)&&N.value.add(F)}}if(!bA(Me,x.value)){const L=ms(v.value,x.value,!0);i.nodesChange(L)}if(!bA(B,N.value)){const L=ms(w.value,N.value);i.edgesChange(L)}a.value=et,o.value=!0,u.value=!1}function Ee(pe){var le;pe.button!==0||!V||((le=pe.target)==null||le.releasePointerCapture(pe.pointerId),!o.value&&a.value&&pe.target===A.value&&J(pe),o.value=!1,a.value=null,u.value=x.value.size>0,i.selectionEnd(pe),t.selectionKeyPressed&&(I=!1),V=!1)}return(pe,le)=>(j(),K("div",{ref_key:"container",ref:A,class:Se(["vue-flow__pane vue-flow__container",{selection:pe.isSelecting}]),onClick:le[0]||(le[0]=fe=>b.value?void 0:G(J,A.value)(fe)),onContextmenu:le[1]||(le[1]=fe=>G(oe,A.value)(fe)),onWheelPassive:le[2]||(le[2]=fe=>G(ae,A.value)(fe)),onPointerenter:le[3]||(le[3]=fe=>b.value?void 0:re(i).paneMouseEnter(fe)),onPointerdown:le[4]||(le[4]=fe=>b.value?de(fe):re(i).paneMouseMove(fe)),onPointermove:le[5]||(le[5]=fe=>b.value?xe(fe):re(i).paneMouseMove(fe)),onPointerup:le[6]||(le[6]=fe=>b.value?Ee(fe):void 0),onPointerleave:le[7]||(le[7]=fe=>re(i).paneMouseLeave(fe))},[Mt(pe.$slots,"default"),re(o)&&re(a)?(j(),De(aX,{key:0,"user-selection-rect":re(a)},null,8,["user-selection-rect"])):Oe("",!0),re(u)&&re(d).length?(j(),De(uX,{key:1})):Oe("",!0)],34))}}),fX=Te({...{name:"Transform",compatConfig:{MODE:3}},setup(t){const{viewport:e,fitViewOnInit:n,fitViewOnInitDone:r}=$t(),i=Z(()=>n.value?!r.value:!1),o=Z(()=>`translate(${e.value.x}px,${e.value.y}px) scale(${e.value.zoom})`);return(s,a)=>(j(),K("div",{class:"vue-flow__transformationpane vue-flow__container",style:Xe({transform:o.value,opacity:i.value?0:void 0})},[Mt(s.$slots,"default")],4))}}),hX=Te({...{name:"Viewport",compatConfig:{MODE:3}},setup(t){const{minZoom:e,maxZoom:n,defaultViewport:r,translateExtent:i,zoomActivationKeyCode:o,selectionKeyCode:s,panActivationKeyCode:a,panOnScroll:l,panOnScrollMode:u,panOnScrollSpeed:c,panOnDrag:d,zoomOnDoubleClick:h,zoomOnPinch:p,zoomOnScroll:g,preventScrolling:m,noWheelClassName:_,noPanClassName:E,emits:w,connectionStartHandle:v,userSelectionActive:y,paneDragging:k,d3Zoom:$,d3Selection:O,d3ZoomHandler:A,viewport:x,viewportRef:N,paneClickDistance:P}=$t();sX(N);const b=Ei(!1),S=Ei(!1);let I=null,V=!1,M=0,H={x:0,y:0,zoom:0};const G=Qc(a),J=Qc(s),oe=Qc(o),ae=Ot(()=>(!J.value||J.value&&s.value===!0)&&(G.value||d.value)),de=Ot(()=>G.value||l.value),xe=Ot(()=>J.value||s.value===!0&&ae.value!==!0),Ee=Ot(()=>v.value!==null);jt(()=>{if(!N.value){rd("Viewport element is missing");return}const $e=N.value,Be=$e.getBoundingClientRect(),et=jK().clickDistance(P.value).scaleExtent([e.value,n.value]).translateExtent(i.value),Me=yi($e).call(et),B=Me.on("wheel.zoom"),D=Jl.translate(r.value.x??0,r.value.y??0).scale(Ao(r.value.zoom??1,e.value,n.value)),L=[[0,0],[Be.width,Be.height]],z=et.constrain()(D,L,i.value);et.transform(Me,z),et.wheelDelta(eA),$.value=et,O.value=Me,A.value=B,x.value={x:z.x,y:z.y,zoom:z.k},et.on("start",F=>{var W;if(!F.sourceEvent)return null;M=F.sourceEvent.button,b.value=!0;const ee=fe(F.transform);((W=F.sourceEvent)==null?void 0:W.type)==="mousedown"&&(k.value=!0),H=ee,w.viewportChangeStart(ee),w.moveStart({event:F,flowTransform:ee})}),et.on("end",F=>{if(!F.sourceEvent)return null;if(b.value=!1,k.value=!1,pe(ae.value,M??0)&&!V&&w.paneContextMenu(F.sourceEvent),V=!1,le(H,F.transform)){const W=fe(F.transform);H=W,w.viewportChangeEnd(W),w.moveEnd({event:F,flowTransform:W})}}),et.filter(F=>{var W;const ee=oe.value||g.value,Y=p.value&&F.ctrlKey,te=F.button,Q=F.type==="wheel";if(te===1&&F.type==="mousedown"&&(Re(F,"vue-flow__node")||Re(F,"vue-flow__edge")))return!0;if(!ae.value&&!ee&&!de.value&&!h.value&&!p.value||y.value||Ee.value&&!Q||!h.value&&F.type==="dblclick"||Re(F,_.value)&&Q||Re(F,E.value)&&(!Q||de.value&&Q&&!oe.value)||!p.value&&F.ctrlKey&&Q||!ee&&!de.value&&!Y&&Q)return!1;if(!p&&F.type==="touchstart"&&((W=F.touches)==null?void 0:W.length)>1)return F.preventDefault(),!1;if(!ae.value&&(F.type==="mousedown"||F.type==="touchstart")||s.value===!0&&Array.isArray(d.value)&&d.value.includes(0)&&te===0||Array.isArray(d.value)&&!d.value.includes(te)&&(F.type==="mousedown"||F.type==="touchstart"))return!1;const ye=Array.isArray(d.value)&&d.value.includes(te)||s.value===!0&&Array.isArray(d.value)&&!d.value.includes(0)||!te||te<=1;return(!F.ctrlKey||G.value||Q)&&ye}),Qe([y,ae],()=>{y.value&&!b.value?et.on("zoom",null):y.value||et.on("zoom",F=>{x.value={x:F.transform.x,y:F.transform.y,zoom:F.transform.k};const W=fe(F.transform);V=pe(ae.value,M??0),w.viewportChange(W),w.move({event:F,flowTransform:W})})},{immediate:!0}),Qe([y,de,u,oe,p,m,_],()=>{de.value&&!oe.value&&!y.value?Me.on("wheel.zoom",F=>{if(Re(F,_.value))return!1;const W=oe.value||g.value,ee=p.value&&F.ctrlKey;if(!(!m.value||de.value||W||ee))return!1;F.preventDefault(),F.stopImmediatePropagation();const te=Me.property("__zoom").k||1,Q=vp();if(!G.value&&F.ctrlKey&&p.value&&Q){const rt=Hi(F),gt=eA(F),X=te*2**gt;et.scaleTo(Me,X,rt,F);return}const ye=F.deltaMode===1?20:1;let he=u.value===Jc.Vertical?0:F.deltaX*ye,be=u.value===Jc.Horizontal?0:F.deltaY*ye;!Q&&F.shiftKey&&u.value!==Jc.Vertical&&!he&&be&&(he=be,be=0),et.translateBy(Me,-(he/te)*c.value,-(be/te)*c.value);const Le=fe(Me.property("__zoom"));I&&clearTimeout(I),S.value?(w.move({event:F,flowTransform:Le}),w.viewportChange(Le),I=setTimeout(()=>{w.moveEnd({event:F,flowTransform:Le}),w.viewportChangeEnd(Le),S.value=!1},150)):(S.value=!0,w.moveStart({event:F,flowTransform:Le}),w.viewportChangeStart(Le))},{passive:!1}):typeof B<"u"&&Me.on("wheel.zoom",function(F,W){const ee=!m.value&&F.type==="wheel"&&!F.ctrlKey,Y=oe.value||g.value,te=p.value&&F.ctrlKey;if(!Y&&!l.value&&!te&&F.type==="wheel"||ee||Re(F,_.value))return null;F.preventDefault(),B.call(this,F,W)},{passive:!1})},{immediate:!0})});function pe($e,Be){return Be===2&&Array.isArray($e)&&$e.includes(2)}function le($e,Be){return $e.x!==Be.x&&!Number.isNaN(Be.x)||$e.y!==Be.y&&!Number.isNaN(Be.y)||$e.zoom!==Be.k&&!Number.isNaN(Be.k)}function fe($e){return{x:$e.x,y:$e.y,zoom:$e.k}}function Re($e,Be){return $e.target.closest(`.${Be}`)}return($e,Be)=>(j(),K("div",{ref_key:"viewportRef",ref:N,class:"vue-flow__viewport vue-flow__container"},[ce(dX,{"is-selecting":xe.value,"selection-key-pressed":re(J),class:Se({connecting:Ee.value,dragging:re(k),draggable:re(d)===!0||Array.isArray(re(d))&&re(d).includes(0)})},{default:ke(()=>[ce(fX,null,{default:ke(()=>[Mt($e.$slots,"default")]),_:3})]),_:3},8,["is-selecting","selection-key-pressed","class"])],512))}}),pX=["id"],gX=["id"],mX=["id"],vX=Te({...{name:"A11yDescriptions",compatConfig:{MODE:3}},setup(t){const{id:e,disableKeyboardA11y:n,ariaLiveMessage:r}=$t();return(i,o)=>(j(),K(Ue,null,[C("div",{id:`${re(zC)}-${re(e)}`,style:{display:"none"}}," Press enter or space to select a node. "+Ie(re(n)?"":"You can then use the arrow keys to move the node around.")+" You can then use the arrow keys to move the node around, press delete to remove it and press escape to cancel. ",9,pX),C("div",{id:`${re(UC)}-${re(e)}`,style:{display:"none"}}," Press enter or space to select an edge. You can then press delete to remove it or press escape to cancel. ",8,gX),re(n)?Oe("",!0):(j(),K("div",{key:0,id:`${re(XK)}-${re(e)}`,"aria-live":"assertive","aria-atomic":"true",style:{position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)","clip-path":"inset(100%)"}},Ie(re(r)),9,mX))],64))}});function yX(){const t=$t();Qe(()=>t.viewportHelper.value.viewportInitialized,e=>{e&&setTimeout(()=>{t.emits.init(t),t.emits.paneReady(t)},1)})}function bX(t,e,n){return n===Fe.Left?t-e:n===Fe.Right?t+e:t}function _X(t,e,n){return n===Fe.Top?t-e:n===Fe.Bottom?t+e:t}const w0=function({radius:t=10,centerX:e=0,centerY:n=0,position:r=Fe.Top,type:i}){return qe("circle",{class:`vue-flow__edgeupdater vue-flow__edgeupdater-${i}`,cx:bX(e,t,r),cy:_X(n,t,r),r:t,stroke:"transparent",fill:"transparent"})};w0.props=["radius","centerX","centerY","position","type"],w0.compatConfig={MODE:3};const LA=w0,xX=Te({name:"Edge",compatConfig:{MODE:3},props:["id"],setup(t){const{id:e,addSelectedEdges:n,connectionMode:r,edgeUpdaterRadius:i,emits:o,nodesSelectionActive:s,noPanClassName:a,getEdgeTypes:l,removeSelectedEdges:u,findEdge:c,findNode:d,isValidConnection:h,multiSelectionActive:p,disableKeyboardA11y:g,elementsSelectable:m,edgesUpdatable:_,edgesFocusable:E,hooks:w}=$t(),v=Z(()=>c(t.id)),{emit:y,on:k}=IZ(v.value,o),$=yt(bp),O=_n(),A=we(!1),x=we(!1),N=we(""),P=we(null),b=we("source"),S=we(null),I=Ot(()=>typeof v.value.selectable>"u"?m.value:v.value.selectable),V=Ot(()=>typeof v.value.updatable>"u"?_.value:v.value.updatable),M=Ot(()=>typeof v.value.focusable>"u"?E.value:v.value.focusable);to(SZ,t.id),to(EZ,S);const H=Z(()=>v.value.class instanceof Function?v.value.class(v.value):v.value.class),G=Z(()=>v.value.style instanceof Function?v.value.style(v.value):v.value.style),J=Z(()=>{const L=v.value.type||"default",z=$==null?void 0:$[`edge-${L}`];if(z)return z;let F=v.value.template??l.value[L];if(typeof F=="string"&&O){const W=Object.keys(O.appContext.components);W&&W.includes(L)&&(F=Pr(L,!1))}return F&&typeof F!="string"?F:(o.error(new An(Tn.EDGE_TYPE_MISSING,F)),!1)}),{handlePointerDown:oe}=EA({nodeId:N,handleId:P,type:b,isValidConnection:h,edgeUpdaterType:b,onEdgeUpdate:xe,onEdgeUpdateEnd:Ee});return()=>{const L=d(v.value.source),z=d(v.value.target),F="pathOptions"in v.value?v.value.pathOptions:{};if(!L&&!z)return o.error(new An(Tn.EDGE_SOURCE_TARGET_MISSING,v.value.id,v.value.source,v.value.target)),null;if(!L)return o.error(new An(Tn.EDGE_SOURCE_MISSING,v.value.id,v.value.source)),null;if(!z)return o.error(new An(Tn.EDGE_TARGET_MISSING,v.value.id,v.value.target)),null;if(!v.value||v.value.hidden||L.hidden||z.hidden)return null;let W;r.value===hs.Strict?W=L.handleBounds.source:W=[...L.handleBounds.source||[],...L.handleBounds.target||[]];const ee=cA(W,v.value.sourceHandle);let Y;r.value===hs.Strict?Y=z.handleBounds.target:Y=[...z.handleBounds.target||[],...z.handleBounds.source||[]];const te=cA(Y,v.value.targetHandle),Q=(ee==null?void 0:ee.position)||Fe.Bottom,ye=(te==null?void 0:te.position)||Fe.Top,{x:he,y:be}=eu(L,ee,Q),{x:Le,y:rt}=eu(z,te,ye);return v.value.sourceX=he,v.value.sourceY=be,v.value.targetX=Le,v.value.targetY=rt,qe("g",{ref:S,key:t.id,"data-id":t.id,class:["vue-flow__edge",`vue-flow__edge-${J.value===!1?"default":v.value.type||"default"}`,a.value,H.value,{updating:A.value,selected:v.value.selected,animated:v.value.animated,inactive:!I.value&&!w.value.edgeClick.hasListeners()}],tabIndex:M.value?0:void 0,"aria-label":v.value.ariaLabel===null?void 0:v.value.ariaLabel??`Edge from ${v.value.source} to ${v.value.target}`,"aria-describedby":M.value?`${UC}-${e}`:void 0,"aria-roledescription":"edge",role:M.value?"group":"img",...v.value.domAttributes,onClick:le,onContextmenu:fe,onDblclick:Re,onMouseenter:$e,onMousemove:Be,onMouseleave:et,onKeyDown:M.value?D:void 0},[x.value?null:qe(J.value===!1?l.value.default:J.value,{id:t.id,sourceNode:L,targetNode:z,source:v.value.source,target:v.value.target,type:v.value.type,updatable:V.value,selected:v.value.selected,animated:v.value.animated,label:v.value.label,labelStyle:v.value.labelStyle,labelShowBg:v.value.labelShowBg,labelBgStyle:v.value.labelBgStyle,labelBgPadding:v.value.labelBgPadding,labelBgBorderRadius:v.value.labelBgBorderRadius,data:v.value.data,events:{...v.value.events,...k},style:G.value,markerStart:`url('#${nd(v.value.markerStart,e)}')`,markerEnd:`url('#${nd(v.value.markerEnd,e)}')`,sourcePosition:Q,targetPosition:ye,sourceX:he,sourceY:be,targetX:Le,targetY:rt,sourceHandleId:v.value.sourceHandle,targetHandleId:v.value.targetHandle,interactionWidth:v.value.interactionWidth,...F}),[V.value==="source"||V.value===!0?[qe("g",{onMousedown:Me,onMouseenter:ae,onMouseout:de},qe(LA,{position:Q,centerX:he,centerY:be,radius:i.value,type:"source","data-type":"source"}))]:null,V.value==="target"||V.value===!0?[qe("g",{onMousedown:B,onMouseenter:ae,onMouseout:de},qe(LA,{position:ye,centerX:Le,centerY:rt,radius:i.value,type:"target","data-type":"target"}))]:null]])};function ae(){A.value=!0}function de(){A.value=!1}function xe(L,z){y.update({event:L,edge:v.value,connection:z})}function Ee(L){y.updateEnd({event:L,edge:v.value}),x.value=!1}function pe(L,z){L.button===0&&(x.value=!0,N.value=z?v.value.target:v.value.source,P.value=(z?v.value.targetHandle:v.value.sourceHandle)??null,b.value=z?"target":"source",y.updateStart({event:L,edge:v.value}),oe(L))}function le(L){var z;const F={event:L,edge:v.value};I.value&&(s.value=!1,v.value.selected&&p.value?(u([v.value]),(z=S.value)==null||z.blur()):n([v.value])),y.click(F)}function fe(L){y.contextMenu({event:L,edge:v.value})}function Re(L){y.doubleClick({event:L,edge:v.value})}function $e(L){y.mouseEnter({event:L,edge:v.value})}function Be(L){y.mouseMove({event:L,edge:v.value})}function et(L){y.mouseLeave({event:L,edge:v.value})}function Me(L){pe(L,!0)}function B(L){pe(L,!1)}function D(L){var z;!g.value&&BC.includes(L.key)&&I.value&&(L.key==="Escape"?((z=S.value)==null||z.blur(),u([c(t.id)])):n([c(t.id)]))}}}),wX=Te({name:"ConnectionLine",compatConfig:{MODE:3},setup(){var t;const{id:e,connectionMode:n,connectionStartHandle:r,connectionEndHandle:i,connectionPosition:o,connectionLineType:s,connectionLineStyle:a,connectionLineOptions:l,connectionStatus:u,viewport:c,findNode:d}=$t(),h=(t=yt(bp))==null?void 0:t["connection-line"],p=Z(()=>{var w;return d((w=r.value)==null?void 0:w.nodeId)}),g=Z(()=>{var w;return d((w=i.value)==null?void 0:w.nodeId)??null}),m=Z(()=>({x:(o.value.x-c.value.x)/c.value.zoom,y:(o.value.y-c.value.y)/c.value.zoom})),_=Z(()=>l.value.markerStart?`url(#${nd(l.value.markerStart,e)})`:""),E=Z(()=>l.value.markerEnd?`url(#${nd(l.value.markerEnd,e)})`:"");return()=>{var w,v,y;if(!p.value||!r.value)return null;const k=r.value.id,$=r.value.type,O=p.value.handleBounds;let A=(O==null?void 0:O[$])??[];if(n.value===hs.Loose){const G=(O==null?void 0:O[$==="source"?"target":"source"])??[];A=[...A,...G]}if(!A)return null;const x=(k?A.find(G=>G.id===k):A[0])??null,N=(x==null?void 0:x.position)??Fe.Top,{x:P,y:b}=eu(p.value,x,N);let S=null;g.value&&(n.value===hs.Strict?S=((w=g.value.handleBounds[$==="source"?"target":"source"])==null?void 0:w.find(G=>{var J;return G.id===((J=i.value)==null?void 0:J.id)}))||null:S=((v=[...g.value.handleBounds.source??[],...g.value.handleBounds.target??[]])==null?void 0:v.find(G=>{var J;return G.id===((J=i.value)==null?void 0:J.id)}))||null);const I=((y=i.value)==null?void 0:y.position)??(N?g0[N]:null);if(!N||!I)return null;const V=s.value??l.value.type??ya.Bezier;let M="";const H={sourceX:P,sourceY:b,sourcePosition:N,targetX:m.value.x,targetY:m.value.y,targetPosition:I};return V===ya.Bezier?[M]=OA(H):V===ya.Step?[M]=x0({...H,borderRadius:0}):V===ya.SmoothStep?[M]=x0(H):V===ya.SimpleBezier?[M]=RA(H):M=`M${P},${b} ${m.value.x},${m.value.y}`,qe("svg",{class:"vue-flow__edges vue-flow__connectionline vue-flow__container"},qe("g",{class:"vue-flow__connection"},h?qe(h,{sourceX:P,sourceY:b,sourcePosition:N,targetX:m.value.x,targetY:m.value.y,targetPosition:I,sourceNode:p.value,sourceHandle:x,targetNode:g.value,targetHandle:S,markerEnd:E.value,markerStart:_.value,connectionStatus:u.value}):qe("path",{d:M,class:[l.value.class,u.value,"vue-flow__connection-path"],style:{...a.value,...l.value.style},"marker-end":E.value,"marker-start":_.value})))}}}),SX=["id","markerWidth","markerHeight","markerUnits","orient"],EX=Te({...{name:"MarkerType",compatConfig:{MODE:3}},props:{id:{},type:{},color:{default:"none"},width:{default:12.5},height:{default:12.5},markerUnits:{default:"strokeWidth"},orient:{default:"auto-start-reverse"},strokeWidth:{default:1}},setup(t){return(e,n)=>(j(),K("marker",{id:e.id,class:"vue-flow__arrowhead",viewBox:"-10 -10 20 20",refX:"0",refY:"0",markerWidth:`${e.width}`,markerHeight:`${e.height}`,markerUnits:e.markerUnits,orient:e.orient},[e.type===re(l0).ArrowClosed?(j(),K("polyline",{key:0,style:Xe({stroke:e.color,fill:e.color,strokeWidth:e.strokeWidth}),"stroke-linecap":"round","stroke-linejoin":"round",points:"-5,-4 0,0 -5,4 -5,-4"},null,4)):Oe("",!0),e.type===re(l0).Arrow?(j(),K("polyline",{key:1,style:Xe({stroke:e.color,strokeWidth:e.strokeWidth}),"stroke-linecap":"round","stroke-linejoin":"round",fill:"none",points:"-5,-4 0,0 -5,4"},null,4)):Oe("",!0)],8,SX))}}),TX={class:"vue-flow__marker vue-flow__container","aria-hidden":"true"},IX=Te({...{name:"MarkerDefinitions",compatConfig:{MODE:3}},setup(t){const{id:e,edges:n,connectionLineOptions:r,defaultMarkerColor:i}=$t(),o=Z(()=>{const s=new Set,a=[],l=u=>{if(u){const c=nd(u,e);s.has(c)||(typeof u=="object"?a.push({...u,id:c,color:u.color||i.value}):a.push({id:c,color:i.value,type:u}),s.add(c))}};for(const u of[r.value.markerEnd,r.value.markerStart])l(u);for(const u of n.value)for(const c of[u.markerStart,u.markerEnd])l(c);return a.sort((u,c)=>u.id.localeCompare(c.id))});return(s,a)=>(j(),K("svg",TX,[C("defs",null,[(j(!0),K(Ue,null,It(o.value,l=>(j(),De(EX,{id:l.id,key:l.id,type:l.type,color:l.color,width:l.width,height:l.height,markerUnits:l.markerUnits,"stroke-width":l.strokeWidth,orient:l.orient},null,8,["id","type","color","width","height","markerUnits","stroke-width","orient"]))),128))])]))}}),CX=Te({...{name:"Edges",compatConfig:{MODE:3}},setup(t){const{findNode:e,getEdges:n,elevateEdgesOnSelect:r}=$t();return(i,o)=>(j(),K(Ue,null,[ce(IX),(j(!0),K(Ue,null,It(re(n),s=>(j(),K("svg",{key:s.id,class:"vue-flow__edges vue-flow__container",style:Xe({zIndex:re(dZ)(s,re(e),re(r))})},[ce(re(xX),{id:s.id},null,8,["id"])],4))),128)),ce(re(wX))],64))}}),AX=Te({name:"Node",compatConfig:{MODE:3},props:["id","resizeObserver"],setup(t){const{id:e,noPanClassName:n,selectNodesOnDrag:r,nodesSelectionActive:i,multiSelectionActive:o,emits:s,removeSelectedNodes:a,addSelectedNodes:l,updateNodeDimensions:u,onUpdateNodeInternals:c,getNodeTypes:d,nodeExtent:h,elevateNodesOnSelect:p,disableKeyboardA11y:g,ariaLiveMessage:m,snapToGrid:_,snapGrid:E,nodeDragThreshold:w,nodesDraggable:v,elementsSelectable:y,nodesConnectable:k,nodesFocusable:$,hooks:O}=$t(),A=we(null);to(xA,A),to(b0,t.id);const x=yt(bp),N=_n(),P=IA(),{node:b,parentNode:S}=TA(t.id),{emit:I,on:V}=PZ(b,s),M=Ot(()=>typeof b.draggable>"u"?v.value:b.draggable),H=Ot(()=>typeof b.selectable>"u"?y.value:b.selectable),G=Ot(()=>typeof b.connectable>"u"?k.value:b.connectable),J=Ot(()=>typeof b.focusable>"u"?$.value:b.focusable),oe=Z(()=>H.value||M.value||O.value.nodeClick.hasListeners()||O.value.nodeDoubleClick.hasListeners()||O.value.nodeMouseEnter.hasListeners()||O.value.nodeMouseMove.hasListeners()||O.value.nodeMouseLeave.hasListeners()),ae=Ot(()=>!!b.dimensions.width&&!!b.dimensions.height),de=Z(()=>{const z=b.type||"default",F=x==null?void 0:x[`node-${z}`];if(F)return F;let W=b.template||d.value[z];if(typeof W=="string"&&N){const ee=Object.keys(N.appContext.components);ee&&ee.includes(z)&&(W=Pr(z,!1))}return W&&typeof W!="string"?W:(s.error(new An(Tn.NODE_TYPE_MISSING,W)),!1)}),xe=wA({id:t.id,el:A,disabled:()=>!M.value,selectable:H,dragHandle:()=>b.dragHandle,onStart(z){I.dragStart(z)},onDrag(z){I.drag(z)},onStop(z){I.dragStop(z)},onClick(z){D(z)}}),Ee=Z(()=>b.class instanceof Function?b.class(b):b.class),pe=Z(()=>{const z=(b.style instanceof Function?b.style(b):b.style)||{},F=b.width instanceof Function?b.width(b):b.width,W=b.height instanceof Function?b.height(b):b.height;return!z.width&&F&&(z.width=typeof F=="string"?F:`${F}px`),!z.height&&W&&(z.height=typeof W=="string"?W:`${W}px`),z}),le=Ot(()=>Number(b.zIndex??pe.value.zIndex??0));return c(z=>{(z.includes(t.id)||!z.length)&&Re()}),jt(()=>{Qe(()=>b.hidden,(z=!1,F,W)=>{!z&&A.value&&(t.resizeObserver.observe(A.value),W(()=>{A.value&&t.resizeObserver.unobserve(A.value)}))},{immediate:!0,flush:"post"})}),Qe([()=>b.type,()=>b.sourcePosition,()=>b.targetPosition],()=>{pr(()=>{u([{id:t.id,nodeElement:A.value,forceUpdate:!0}])})}),Qe([()=>b.position.x,()=>b.position.y,()=>{var z;return(z=S.value)==null?void 0:z.computedPosition.x},()=>{var z;return(z=S.value)==null?void 0:z.computedPosition.y},()=>{var z;return(z=S.value)==null?void 0:z.computedPosition.z},le,()=>b.selected,()=>b.dimensions.height,()=>b.dimensions.width,()=>{var z;return(z=S.value)==null?void 0:z.dimensions.height},()=>{var z;return(z=S.value)==null?void 0:z.dimensions.width}],([z,F,W,ee,Y,te])=>{const Q={x:z,y:F,z:te+(p.value&&b.selected?1e3:0)};typeof W<"u"&&typeof ee<"u"?b.computedPosition=oZ({x:W,y:ee,z:Y},Q):b.computedPosition=Q},{flush:"post",immediate:!0}),Qe([()=>b.extent,h],([z,F],[W,ee])=>{(z!==W||F!==ee)&&fe()}),b.extent==="parent"||typeof b.extent=="object"&&"range"in b.extent&&b.extent.range==="parent"?zy(()=>ae).toBe(!0).then(fe):fe(),()=>b.hidden?null:qe("div",{ref:A,"data-id":b.id,class:["vue-flow__node",`vue-flow__node-${de.value===!1?"default":b.type||"default"}`,{[n.value]:M.value,dragging:xe==null?void 0:xe.value,draggable:M.value,selected:b.selected,selectable:H.value,parent:b.isParent},Ee.value],style:{visibility:ae.value?"visible":"hidden",zIndex:b.computedPosition.z??le.value,transform:`translate(${b.computedPosition.x}px,${b.computedPosition.y}px)`,pointerEvents:oe.value?"all":"none",...pe.value},tabIndex:J.value?0:void 0,role:J.value?"group":void 0,"aria-describedby":g.value?void 0:`${zC}-${e}`,"aria-label":b.ariaLabel,"aria-roledescription":"node",...b.domAttributes,onMouseenter:$e,onMousemove:Be,onMouseleave:et,onContextmenu:Me,onClick:D,onDblclick:B,onKeydown:L},[qe(de.value===!1?d.value.default:de.value,{id:b.id,type:b.type,data:b.data,events:{...b.events,...V},selected:b.selected,resizing:b.resizing,dragging:xe.value,connectable:G.value,position:b.computedPosition,dimensions:b.dimensions,isValidTargetPos:b.isValidTargetPos,isValidSourcePos:b.isValidSourcePos,parent:b.parentNode,parentNodeId:b.parentNode,zIndex:b.computedPosition.z??le.value,targetPosition:b.targetPosition,sourcePosition:b.sourcePosition,label:b.label,dragHandle:b.dragHandle,onUpdateNodeInternals:Re})]);function fe(){const z=b.computedPosition,{computedPosition:F,position:W}=f0(b,_.value?yp(z,E.value):z,s.error,h.value,S.value);(b.computedPosition.x!==F.x||b.computedPosition.y!==F.y)&&(b.computedPosition={...b.computedPosition,...F}),(b.position.x!==W.x||b.position.y!==W.y)&&(b.position=W)}function Re(){A.value&&u([{id:t.id,nodeElement:A.value,forceUpdate:!0}])}function $e(z){xe!=null&&xe.value||I.mouseEnter({event:z,node:b})}function Be(z){xe!=null&&xe.value||I.mouseMove({event:z,node:b})}function et(z){xe!=null&&xe.value||I.mouseLeave({event:z,node:b})}function Me(z){return I.contextMenu({event:z,node:b})}function B(z){return I.doubleClick({event:z,node:b})}function D(z){H.value&&(!r.value||!M.value||w.value>0)&&m0(b,o.value,l,a,i,!1,A.value),I.click({event:z,node:b})}function L(z){if(!(u0(z)||g.value))if(BC.includes(z.key)&&H.value){const F=z.key==="Escape";m0(b,o.value,l,a,i,F,A.value)}else M.value&&b.selected&&Ql[z.key]&&(z.preventDefault(),m.value=`Moved selected node ${z.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~b.position.x}, y: ${~~b.position.y}`,P({x:Ql[z.key].x,y:Ql[z.key].y},z.shiftKey))}}});function PX(t={includeHiddenNodes:!1}){const{nodes:e}=$t();return Z(()=>{if(e.value.length===0)return!1;for(const n of e.value)if((t.includeHiddenNodes||!n.hidden)&&((n==null?void 0:n.handleBounds)===void 0||n.dimensions.width===0||n.dimensions.height===0))return!1;return!0})}const kX={class:"vue-flow__nodes vue-flow__container"},OX=Te({...{name:"Nodes",compatConfig:{MODE:3}},setup(t){const{getNodes:e,updateNodeDimensions:n,emits:r}=$t(),i=PX(),o=we();return Qe(i,s=>{s&&pr(()=>{r.nodesInitialized(e.value)})},{immediate:!0}),jt(()=>{o.value=new ResizeObserver(s=>{const a=s.map(l=>({id:l.target.getAttribute("data-id"),nodeElement:l.target,forceUpdate:!0}));pr(()=>n(a))})}),Ga(()=>{var s;return(s=o.value)==null?void 0:s.disconnect()}),(s,a)=>(j(),K("div",kX,[o.value?(j(!0),K(Ue,{key:0},It(re(e),(l,u,c,d)=>{const h=[l.id];if(d&&d.key===l.id&&Mg(d,h))return d;const p=(j(),De(re(AX),{id:l.id,key:l.id,"resize-observer":o.value},null,8,["id","resize-observer"]));return p.memo=h,p},a,0),128)):Oe("",!0)]))}});function NX(){const{emits:t}=$t();jt(()=>{if(gA()){const e=document.querySelector(".vue-flow__pane");e&&window.getComputedStyle(e).zIndex!=="1"&&t.error(new An(Tn.MISSING_STYLES))}})}const RX=C("div",{class:"vue-flow__edge-labels"},null,-1),$X=Te({...{name:"VueFlow",compatConfig:{MODE:3}},props:{id:{},modelValue:{},nodes:{},edges:{},edgeTypes:{},nodeTypes:{},connectionMode:{},connectionLineType:{},connectionLineStyle:{default:void 0},connectionLineOptions:{default:void 0},connectionRadius:{},isValidConnection:{type:[Function,null],default:void 0},deleteKeyCode:{default:void 0},selectionKeyCode:{type:[Boolean,null],default:void 0},multiSelectionKeyCode:{default:void 0},zoomActivationKeyCode:{default:void 0},panActivationKeyCode:{default:void 0},snapToGrid:{type:Boolean,default:void 0},snapGrid:{},onlyRenderVisibleElements:{type:Boolean,default:void 0},edgesUpdatable:{type:[Boolean,String],default:void 0},nodesDraggable:{type:Boolean,default:void 0},nodesConnectable:{type:Boolean,default:void 0},nodeDragThreshold:{},elementsSelectable:{type:Boolean,default:void 0},selectNodesOnDrag:{type:Boolean,default:void 0},panOnDrag:{type:[Boolean,Array],default:void 0},minZoom:{},maxZoom:{},defaultViewport:{},translateExtent:{},nodeExtent:{},defaultMarkerColor:{},zoomOnScroll:{type:Boolean,default:void 0},zoomOnPinch:{type:Boolean,default:void 0},panOnScroll:{type:Boolean,default:void 0},panOnScrollSpeed:{},panOnScrollMode:{},paneClickDistance:{},zoomOnDoubleClick:{type:Boolean,default:void 0},preventScrolling:{type:Boolean,default:void 0},selectionMode:{},edgeUpdaterRadius:{},fitViewOnInit:{type:Boolean,default:void 0},connectOnClick:{type:Boolean,default:void 0},applyDefault:{type:Boolean,default:void 0},autoConnect:{type:[Boolean,Function],default:void 0},noDragClassName:{},noWheelClassName:{},noPanClassName:{},defaultEdgeOptions:{},elevateEdgesOnSelect:{type:Boolean,default:void 0},elevateNodesOnSelect:{type:Boolean,default:void 0},disableKeyboardA11y:{type:Boolean,default:void 0},edgesFocusable:{type:Boolean,default:void 0},nodesFocusable:{type:Boolean,default:void 0},autoPanOnConnect:{type:Boolean,default:void 0},autoPanOnNodeDrag:{type:Boolean,default:void 0},autoPanSpeed:{}},emits:["nodesChange","edgesChange","nodesInitialized","paneReady","init","updateNodeInternals","error","connect","connectStart","connectEnd","clickConnectStart","clickConnectEnd","moveStart","move","moveEnd","selectionDragStart","selectionDrag","selectionDragStop","selectionContextMenu","selectionStart","selectionEnd","viewportChangeStart","viewportChange","viewportChangeEnd","paneScroll","paneClick","paneContextMenu","paneMouseEnter","paneMouseMove","paneMouseLeave","edgeUpdate","edgeContextMenu","edgeMouseEnter","edgeMouseMove","edgeMouseLeave","edgeDoubleClick","edgeClick","edgeUpdateStart","edgeUpdateEnd","nodeContextMenu","nodeMouseEnter","nodeMouseMove","nodeMouseLeave","nodeDoubleClick","nodeClick","nodeDragStart","nodeDrag","nodeDragStop","miniMapNodeClick","miniMapNodeDoubleClick","miniMapNodeMouseEnter","miniMapNodeMouseMove","miniMapNodeMouseLeave","update:modelValue","update:nodes","update:edges"],setup(t,{expose:e,emit:n}){const r=t,i=qb(),o=Uy(r,"modelValue",n),s=Uy(r,"nodes",n),a=Uy(r,"edges",n),l=$t(r),u=RZ({modelValue:o,nodes:s,edges:a},r,l);return DZ(n,l.hooks),yX(),NX(),to(bp,i),sr(u),e(l),(c,d)=>(j(),K("div",{ref:re(l).vueFlowRef,class:"vue-flow"},[ce(hX,null,{default:ke(()=>[ce(CX),RX,ce(OX),Mt(c.$slots,"zoom-pane")]),_:3}),Mt(c.$slots,"default"),ce(vX)],512))}}),DX=Te({...{name:"Panel",compatConfig:{MODE:3}},props:{position:{}},setup(t){const e=t,{userSelectionActive:n}=$t(),r=Z(()=>`${e.position}`.split("-"));return(i,o)=>(j(),K("div",{class:Se(["vue-flow__panel",r.value]),style:Xe({pointerEvents:re(n)?"none":"all"})},[Mt(i.$slots,"default")],6))}}),MX={name:"ControlButton",compatConfig:{MODE:3}},LX=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n},VX={type:"button",class:"vue-flow__controls-button"};function FX(t,e,n,r,i,o){return j(),K("button",VX,[Mt(t.$slots,"default")])}const Cp=LX(MX,[["render",FX]]),zX={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},UX=[C("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"},null,-1)];function BX(t,e){return j(),K("svg",zX,UX)}const jX={render:BX},HX={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5"},GX=[C("path",{d:"M0 0h32v4.2H0z"},null,-1)];function WX(t,e){return j(),K("svg",HX,GX)}const KX={render:WX},ZX={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30"},XX=[C("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0 0 27.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94a.919.919 0 0 1-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"},null,-1)];function YX(t,e){return j(),K("svg",ZX,XX)}const JX={render:YX},QX={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},qX=[C("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"},null,-1)];function eY(t,e){return j(),K("svg",QX,qX)}const tY={render:eY},nY={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},rY=[C("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047z"},null,-1)];function iY(t,e){return j(),K("svg",nY,rY)}const oY={render:iY},sY=Te({...{name:"Controls",compatConfig:{MODE:3}},props:{showZoom:{type:Boolean,default:!0},showFitView:{type:Boolean,default:!0},showInteractive:{type:Boolean,default:!0},fitViewParams:{},position:{default:()=>VC.BottomLeft}},emits:["zoomIn","zoomOut","fitView","interactionChange"],setup(t,{emit:e}){const{nodesDraggable:n,nodesConnectable:r,elementsSelectable:i,setInteractive:o,zoomIn:s,zoomOut:a,fitView:l,viewport:u,minZoom:c,maxZoom:d}=$t(),h=Ot(()=>n.value||r.value||i.value),p=Ot(()=>u.value.zoom<=c.value),g=Ot(()=>u.value.zoom>=d.value);function m(){s(),e("zoomIn")}function _(){a(),e("zoomOut")}function E(){l(t.fitViewParams),e("fitView")}function w(){o(!h.value),e("interactionChange",!h.value)}return(v,y)=>(j(),De(re(DX),{class:"vue-flow__controls",position:v.position},{default:ke(()=>[Mt(v.$slots,"top"),v.showZoom?(j(),K(Ue,{key:0},[Mt(v.$slots,"control-zoom-in",{},()=>[ce(Cp,{class:"vue-flow__controls-zoomin",disabled:g.value,onClick:m},{default:ke(()=>[Mt(v.$slots,"icon-zoom-in",{},()=>[(j(),De(Xn(re(jX))))])]),_:3},8,["disabled"])]),Mt(v.$slots,"control-zoom-out",{},()=>[ce(Cp,{class:"vue-flow__controls-zoomout",disabled:p.value,onClick:_},{default:ke(()=>[Mt(v.$slots,"icon-zoom-out",{},()=>[(j(),De(Xn(re(KX))))])]),_:3},8,["disabled"])])],64)):Oe("",!0),v.showFitView?Mt(v.$slots,"control-fit-view",{key:1},()=>[ce(Cp,{class:"vue-flow__controls-fitview",onClick:E},{default:ke(()=>[Mt(v.$slots,"icon-fit-view",{},()=>[(j(),De(Xn(re(JX))))])]),_:3})]):Oe("",!0),v.showInteractive?Mt(v.$slots,"control-interactive",{key:2},()=>[v.showInteractive?(j(),De(Cp,{key:0,class:"vue-flow__controls-interactive",onClick:w},{default:ke(()=>[h.value?Mt(v.$slots,"icon-unlock",{key:0},()=>[(j(),De(Xn(re(oY))))]):Oe("",!0),h.value?Oe("",!0):Mt(v.$slots,"icon-lock",{key:1},()=>[(j(),De(Xn(re(tY))))])]),_:3})):Oe("",!0)]):Oe("",!0),Mt(v.$slots,"default")]),_:3},8,["position"]))}});var S0="http://www.w3.org/1999/xhtml";const VA={svg:"http://www.w3.org/2000/svg",xhtml:S0,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function FA(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),VA.hasOwnProperty(e)?{space:VA[e],local:t}:t}function aY(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===S0&&e.documentElement.namespaceURI===S0?e.createElement(t):e.createElementNS(n,t)}}function lY(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function zA(t){var e=FA(t);return(e.local?lY:aY)(e)}function uY(){}function UA(t){return t==null?uY:function(){return this.querySelector(t)}}function cY(t){typeof t!="function"&&(t=UA(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,a=r[i]=new Array(s),l,u,c=0;c<s;++c)(l=o[c])&&(u=t.call(l,l.__data__,c,o))&&("__data__"in l&&(u.__data__=l.__data__),a[c]=u);return new ei(r,this._parents)}function dY(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function fY(){return[]}function hY(t){return t==null?fY:function(){return this.querySelectorAll(t)}}function pY(t){return function(){return dY(t.apply(this,arguments))}}function gY(t){typeof t=="function"?t=pY(t):t=hY(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var s=e[o],a=s.length,l,u=0;u<a;++u)(l=s[u])&&(r.push(t.call(l,l.__data__,u,s)),i.push(l));return new ei(r,i)}function mY(t){return function(){return this.matches(t)}}function BA(t){return function(e){return e.matches(t)}}var vY=Array.prototype.find;function yY(t){return function(){return vY.call(this.children,t)}}function bY(){return this.firstElementChild}function _Y(t){return this.select(t==null?bY:yY(typeof t=="function"?t:BA(t)))}var xY=Array.prototype.filter;function wY(){return Array.from(this.children)}function SY(t){return function(){return xY.call(this.children,t)}}function EY(t){return this.selectAll(t==null?wY:SY(typeof t=="function"?t:BA(t)))}function TY(t){typeof t!="function"&&(t=mY(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,a=r[i]=[],l,u=0;u<s;++u)(l=o[u])&&t.call(l,l.__data__,u,o)&&a.push(l);return new ei(r,this._parents)}function jA(t){return new Array(t.length)}function IY(){return new ei(this._enter||this._groups.map(jA),this._parents)}function Ap(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Ap.prototype={constructor:Ap,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function CY(t){return function(){return t}}function AY(t,e,n,r,i,o){for(var s=0,a,l=e.length,u=o.length;s<u;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new Ap(t,o[s]);for(;s<l;++s)(a=e[s])&&(i[s]=a)}function PY(t,e,n,r,i,o,s){var a,l,u=new Map,c=e.length,d=o.length,h=new Array(c),p;for(a=0;a<c;++a)(l=e[a])&&(h[a]=p=s.call(l,l.__data__,a,e)+"",u.has(p)?i[a]=l:u.set(p,l));for(a=0;a<d;++a)p=s.call(t,o[a],a,o)+"",(l=u.get(p))?(r[a]=l,l.__data__=o[a],u.delete(p)):n[a]=new Ap(t,o[a]);for(a=0;a<c;++a)(l=e[a])&&u.get(h[a])===l&&(i[a]=l)}function kY(t){return t.__data__}function OY(t,e){if(!arguments.length)return Array.from(this,kY);var n=e?PY:AY,r=this._parents,i=this._groups;typeof t!="function"&&(t=CY(t));for(var o=i.length,s=new Array(o),a=new Array(o),l=new Array(o),u=0;u<o;++u){var c=r[u],d=i[u],h=d.length,p=NY(t.call(c,c&&c.__data__,u,r)),g=p.length,m=a[u]=new Array(g),_=s[u]=new Array(g),E=l[u]=new Array(h);n(c,d,m,_,E,p,e);for(var w=0,v=0,y,k;w<g;++w)if(y=m[w]){for(w>=v&&(v=w+1);!(k=_[v])&&++v<g;);y._next=k||null}}return s=new ei(s,r),s._enter=a,s._exit=l,s}function NY(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function RY(){return new ei(this._exit||this._groups.map(jA),this._parents)}function $Y(t,e,n){var r=this.enter(),i=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function DY(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,s=Math.min(i,o),a=new Array(i),l=0;l<s;++l)for(var u=n[l],c=r[l],d=u.length,h=a[l]=new Array(d),p,g=0;g<d;++g)(p=u[g]||c[g])&&(h[g]=p);for(;l<i;++l)a[l]=n[l];return new ei(a,this._parents)}function MY(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,o=r[i],s;--i>=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function LY(t){t||(t=VY);function e(d,h){return d&&h?t(d.__data__,h.__data__):!d-!h}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var s=n[o],a=s.length,l=i[o]=new Array(a),u,c=0;c<a;++c)(u=s[c])&&(l[c]=u);l.sort(e)}return new ei(i,this._parents).order()}function VY(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function FY(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function zY(){return Array.from(this)}function UY(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null}function BY(){let t=0;for(const e of this)++t;return t}function jY(){return!this.node()}function HY(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,s=i.length,a;o<s;++o)(a=i[o])&&t.call(a,a.__data__,o,i);return this}function GY(t){return function(){this.removeAttribute(t)}}function WY(t){return function(){this.removeAttributeNS(t.space,t.local)}}function KY(t,e){return function(){this.setAttribute(t,e)}}function ZY(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function XY(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function YY(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function JY(t,e){var n=FA(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?WY:GY:typeof e=="function"?n.local?YY:XY:n.local?ZY:KY)(n,e))}function HA(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function QY(t){return function(){this.style.removeProperty(t)}}function qY(t,e,n){return function(){this.style.setProperty(t,e,n)}}function eJ(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function tJ(t,e,n){return arguments.length>1?this.each((e==null?QY:typeof e=="function"?eJ:qY)(t,e,n??"")):nJ(this.node(),t)}function nJ(t,e){return t.style.getPropertyValue(e)||HA(t).getComputedStyle(t,null).getPropertyValue(e)}function rJ(t){return function(){delete this[t]}}function iJ(t,e){return function(){this[t]=e}}function oJ(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function sJ(t,e){return arguments.length>1?this.each((e==null?rJ:typeof e=="function"?oJ:iJ)(t,e)):this.node()[t]}function GA(t){return t.trim().split(/^|\s+/)}function E0(t){return t.classList||new WA(t)}function WA(t){this._node=t,this._names=GA(t.getAttribute("class")||"")}WA.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function KA(t,e){for(var n=E0(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function ZA(t,e){for(var n=E0(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function aJ(t){return function(){KA(this,t)}}function lJ(t){return function(){ZA(this,t)}}function uJ(t,e){return function(){(e.apply(this,arguments)?KA:ZA)(this,t)}}function cJ(t,e){var n=GA(t+"");if(arguments.length<2){for(var r=E0(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?uJ:e?aJ:lJ)(n,e))}function dJ(){this.textContent=""}function fJ(t){return function(){this.textContent=t}}function hJ(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function pJ(t){return arguments.length?this.each(t==null?dJ:(typeof t=="function"?hJ:fJ)(t)):this.node().textContent}function gJ(){this.innerHTML=""}function mJ(t){return function(){this.innerHTML=t}}function vJ(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function yJ(t){return arguments.length?this.each(t==null?gJ:(typeof t=="function"?vJ:mJ)(t)):this.node().innerHTML}function bJ(){this.nextSibling&&this.parentNode.appendChild(this)}function _J(){return this.each(bJ)}function xJ(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function wJ(){return this.each(xJ)}function SJ(t){var e=typeof t=="function"?t:zA(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function EJ(){return null}function TJ(t,e){var n=typeof t=="function"?t:zA(t),r=e==null?EJ:typeof e=="function"?e:UA(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function IJ(){var t=this.parentNode;t&&t.removeChild(this)}function CJ(){return this.each(IJ)}function AJ(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function PJ(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function kJ(t){return this.select(t?PJ:AJ)}function OJ(t){return arguments.length?this.property("__data__",t):this.node().__data__}function NJ(t){return function(e){t.call(this,e,this.__data__)}}function RJ(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function $J(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,o;n<i;++n)o=e[n],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function DJ(t,e,n){return function(){var r=this.__on,i,o=NJ(e);if(r){for(var s=0,a=r.length;s<a;++s)if((i=r[s]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=e;return}}this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(i):this.__on=[i]}}function MJ(t,e,n){var r=RJ(t+""),i,o=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,u=a.length,c;l<u;++l)for(i=0,c=a[l];i<o;++i)if((s=r[i]).type===c.type&&s.name===c.name)return c.value}return}for(a=e?DJ:$J,i=0;i<o;++i)this.each(a(r[i],e,n));return this}function XA(t,e,n){var r=HA(t),i=r.CustomEvent;typeof i=="function"?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function LJ(t,e){return function(){return XA(this,t,e)}}function VJ(t,e){return function(){return XA(this,t,e.apply(this,arguments))}}function FJ(t,e){return this.each((typeof e=="function"?VJ:LJ)(t,e))}function*zJ(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length,s;i<o;++i)(s=r[i])&&(yield s)}var UJ=[null];function ei(t,e){this._groups=t,this._parents=e}function BJ(){return this}ei.prototype={constructor:ei,select:cY,selectAll:gY,selectChild:_Y,selectChildren:EY,filter:TY,data:OY,enter:IY,exit:RY,join:$Y,merge:DY,selection:BJ,order:MY,sort:LY,call:FY,nodes:zY,node:UY,size:BY,empty:jY,each:HY,attr:JY,style:tJ,property:sJ,classed:cJ,text:pJ,html:yJ,raise:_J,lower:wJ,append:SJ,insert:TJ,remove:CJ,clone:kJ,datum:OJ,on:MJ,dispatch:FJ,[Symbol.iterator]:zJ};function id(t){return typeof t=="string"?new ei([[document.querySelector(t)]],[document.documentElement]):new ei([[t]],UJ)}function jJ(t){let e;for(;e=t.sourceEvent;)t=e;return t}function YA(t,e){if(t=jJ(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}var HJ={value:()=>{}};function JA(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Pp(n)}function Pp(t){this._=t}function GJ(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Pp.prototype=JA.prototype={constructor:Pp,on:function(t,e){var n=this._,r=GJ(t+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((i=(t=r[o]).type)&&(i=WJ(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<s;)if(i=(t=r[o]).type)n[i]=QA(n[i],t.name,e);else if(e==null)for(i in n)n[i]=QA(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Pp(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,i=o.length;r<i;++r)o[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};function WJ(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function QA(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=HJ,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}const KJ={passive:!1},od={capture:!0,passive:!1};function T0(t){t.stopImmediatePropagation()}function tu(t){t.preventDefault(),t.stopImmediatePropagation()}function ZJ(t){var e=t.document.documentElement,n=id(t).on("dragstart.drag",tu,od);"onselectstart"in e?n.on("selectstart.drag",tu,od):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function XJ(t,e){var n=t.document.documentElement,r=id(t).on("dragstart.drag",null);e&&(r.on("click.drag",tu,od),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const kp=t=>()=>t;function I0(t,{sourceEvent:e,subject:n,target:r,identifier:i,active:o,x:s,y:a,dx:l,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}I0.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function YJ(t){return!t.ctrlKey&&!t.button}function JJ(){return this.parentNode}function QJ(t,e){return e??{x:t.x,y:t.y}}function qJ(){return navigator.maxTouchPoints||"ontouchstart"in this}function eQ(){var t=YJ,e=JJ,n=QJ,r=qJ,i={},o=JA("start","drag","end"),s=0,a,l,u,c,d=0;function h(y){y.on("mousedown.drag",p).filter(r).on("touchstart.drag",_).on("touchmove.drag",E,KJ).on("touchend.drag touchcancel.drag",w).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(y,k){if(!(c||!t.call(this,y,k))){var $=v(this,e.call(this,y,k),y,k,"mouse");$&&(id(y.view).on("mousemove.drag",g,od).on("mouseup.drag",m,od),ZJ(y.view),T0(y),u=!1,a=y.clientX,l=y.clientY,$("start",y))}}function g(y){if(tu(y),!u){var k=y.clientX-a,$=y.clientY-l;u=k*k+$*$>d}i.mouse("drag",y)}function m(y){id(y.view).on("mousemove.drag mouseup.drag",null),XJ(y.view,u),tu(y),i.mouse("end",y)}function _(y,k){if(t.call(this,y,k)){var $=y.changedTouches,O=e.call(this,y,k),A=$.length,x,N;for(x=0;x<A;++x)(N=v(this,O,y,k,$[x].identifier,$[x]))&&(T0(y),N("start",y,$[x]))}}function E(y){var k=y.changedTouches,$=k.length,O,A;for(O=0;O<$;++O)(A=i[k[O].identifier])&&(tu(y),A("drag",y,k[O]))}function w(y){var k=y.changedTouches,$=k.length,O,A;for(c&&clearTimeout(c),c=setTimeout(function(){c=null},500),O=0;O<$;++O)(A=i[k[O].identifier])&&(T0(y),A("end",y,k[O]))}function v(y,k,$,O,A,x){var N=o.copy(),P=YA(x||$,k),b,S,I;if((I=n.call(y,new I0("beforestart",{sourceEvent:$,target:h,identifier:A,active:s,x:P[0],y:P[1],dx:0,dy:0,dispatch:N}),O))!=null)return b=I.x-P[0]||0,S=I.y-P[1]||0,function V(M,H,G){var J=P,oe;switch(M){case"start":i[A]=V,oe=s++;break;case"end":delete i[A],--s;case"drag":P=YA(G||H,k),oe=s;break}N.call(M,y,new I0(M,{sourceEvent:H,subject:I,target:h,identifier:A,active:oe,x:P[0]+b,y:P[1]+S,dx:P[0]-J[0],dy:P[1]-J[1],dispatch:N}),O)}}return h.filter=function(y){return arguments.length?(t=typeof y=="function"?y:kp(!!y),h):t},h.container=function(y){return arguments.length?(e=typeof y=="function"?y:kp(y),h):e},h.subject=function(y){return arguments.length?(n=typeof y=="function"?y:kp(y),h):n},h.touchable=function(y){return arguments.length?(r=typeof y=="function"?y:kp(!!y),h):r},h.on=function(){var y=o.on.apply(o,arguments);return y===o?h:y},h.clickDistance=function(y){return arguments.length?(d=(y=+y)*y,h):Math.sqrt(d)},h}var xa=(t=>(t.Line="line",t.Handle="handle",t))(xa||{});function tQ({width:t,prevWidth:e,height:n,prevHeight:r,invertX:i,invertY:o}){const s=t-e,a=n-r,l=[s>0?1:s<0?-1:0,a>0?1:a<0?-1:0];return s&&i&&(l[0]=l[0]*-1),a&&o&&(l[1]=l[1]*-1),l}const nQ={[xa.Line]:"right",[xa.Handle]:"bottom-right"},rQ={[xa.Line]:"borderColor",[xa.Handle]:"backgroundColor"},qA=Te({...{name:"ResizeControl",compatConfig:{MODE:3}},props:{nodeId:{},color:{},minWidth:{default:10},minHeight:{default:10},maxWidth:{default:Number.MAX_VALUE},maxHeight:{default:Number.MAX_VALUE},position:{},variant:{default:"handle"},shouldResize:{},keepAspectRatio:{type:[Boolean,Number],default:!1},autoScale:{type:Boolean,default:!0},handleClassName:{},handleStyle:{},lineClassName:{},lineStyle:{},isVisible:{type:Boolean}},emits:["resizeStart","resize","resizeEnd"],setup(t,{emit:e}){const n=t,r={width:0,height:0,x:0,y:0},i={...r,pointerX:0,pointerY:0,aspectRatio:1},{findNode:o,emits:s,viewport:a,noDragClassName:l}=$t(),u=SA(),c=we();let d=i,h=r;const p=Ot(()=>n.position??nQ[n.variant]),g=Z(()=>p.value.split("-")),m=Ot(()=>n.color?{[rQ[n.variant]]:n.color}:{});return Tb(_=>{if(!c.value||!n.nodeId)return;const E=id(c.value),w=p.value.includes("right")||p.value.includes("left"),v=p.value.includes("bottom")||p.value.includes("top"),y=p.value.includes("left"),k=p.value.includes("top"),$=eQ().on("start",O=>{const A=o(n.nodeId),{xSnapped:x,ySnapped:N}=u(O);h={width:(A==null?void 0:A.dimensions.width)??0,height:(A==null?void 0:A.dimensions.height)??0,x:(A==null?void 0:A.position.x)??0,y:(A==null?void 0:A.position.y)??0},d={...h,pointerX:x,pointerY:N,aspectRatio:h.width/h.height},e("resizeStart",{event:O,params:h})}).on("drag",O=>{var A;const{xSnapped:x,ySnapped:N}=u(O),P=o(n.nodeId);if(P){const b=[],{pointerX:S,pointerY:I,width:V,height:M,x:H,y:G,aspectRatio:J}=d,{x:oe,y:ae,width:de,height:xe}=h,Ee=Math.floor(w?x-S:0),pe=Math.floor(v?N-I:0);let le=Ao(V+(y?-Ee:Ee),n.minWidth,n.maxWidth),fe=Ao(M+(k?-pe:pe),n.minHeight,n.maxHeight);if(n.keepAspectRatio){const B=le/fe;let D=J;typeof n.keepAspectRatio=="number"&&B!==n.keepAspectRatio&&(D=n.keepAspectRatio);const L=w&&v,z=w&&!v,F=v&&!w;le=B<=D&&L||F?fe*D:le,fe=B>D&&L||z?le/D:fe,le>=n.maxWidth?(le=n.maxWidth,fe=n.maxWidth/D):le<=n.minWidth&&(le=n.minWidth,fe=n.minWidth/D),fe>=n.maxHeight?(fe=n.maxHeight,le=n.maxHeight*D):fe<=n.minHeight&&(fe=n.minHeight,le=n.minHeight*D)}const Re=le!==de,$e=fe!==xe;if(y||k){const B=y?H-(le-V):H,D=k?G-(fe-M):G,L=B!==oe&&Re,z=D!==ae&&$e;if(L||z){const F={id:P.id,type:"position",from:P.position,position:{x:L?B:oe,y:z?D:ae}};b.push(F),h.x=F.position.x,h.y=F.position.y}}if(n.nodeId&&(Re||$e)){const B={id:n.nodeId,type:"dimensions",updateStyle:!0,resizing:!0,dimensions:{width:le,height:fe}};b.push(B),h.width=le,h.height=fe}if(b.length===0)return;const Be=tQ({width:h.width,prevWidth:de,height:h.height,prevHeight:xe,invertX:y,invertY:k}),et={...h,direction:Be};if(((A=n.shouldResize)==null?void 0:A.call(n,O,et))===!1)return;e("resize",{event:O,params:et}),s.nodesChange(b)}}).on("end",O=>{if(n.nodeId){const A={id:n.nodeId,type:"dimensions",resizing:!1};e("resizeEnd",{event:O,params:h}),s.nodesChange([A])}});E.call($),_(()=>{E.on(".drag",null)})}),(_,E)=>(j(),K("div",{ref_key:"resizeControlRef",ref:c,class:Se(["vue-flow__resize-control",[...g.value,_.variant,re(l)]]),style:Xe({...m.value,scale:_.variant===re(xa).Handle?`${Math.max(1/re(a).zoom,1)}`:void 0})},[Mt(_.$slots,"default")],6))}}),iQ=Te({...{name:"NodeResizer",compatConfig:{MODE:3},inheritAttrs:!1},props:{nodeId:{},color:{},handleClassName:{},handleStyle:{},lineClassName:{},lineStyle:{},isVisible:{type:Boolean,default:!0},minWidth:{},minHeight:{},maxWidth:{},maxHeight:{},shouldResize:{},keepAspectRatio:{type:[Boolean,Number]},autoScale:{type:Boolean,default:!0}},emits:["resizeStart","resize","resizeEnd"],setup(t,{emit:e}){const n=t,{findNode:r,emits:i}=$t(),o=["top-left","top-right","bottom-left","bottom-right"],s=["top","right","bottom","left"],a=yt(b0,null),l=Ot(()=>typeof n.nodeId=="string"?n.nodeId:a),u=Z(()=>r(l.value));return Qe([()=>n.minWidth,()=>n.minHeight,()=>n.maxWidth,()=>n.maxHeight,()=>{var c;return!!((c=u.value)!=null&&c.dimensions.width)&&!!u.value.dimensions.height}],([c,d,h,p,g])=>{const m=u.value;if(m&&g){const _={id:m.id,type:"dimensions",updateStyle:!0,dimensions:{width:m.dimensions.width,height:m.dimensions.height}};c&&m.dimensions.width<c&&(_.dimensions.width=c),d&&m.dimensions.height<d&&(_.dimensions.height=d),h&&m.dimensions.width>h&&(_.dimensions.width=h),p&&m.dimensions.height>p&&(_.dimensions.height=p),(_.dimensions.width!==m.dimensions.width||_.dimensions.height!==m.dimensions.height)&&i.nodesChange([_])}},{flush:"post",immediate:!0}),(c,d)=>c.isVisible?(j(),K(Ue,{key:0},[(j(),K(Ue,null,It(s,h=>ce(qA,{key:h,class:Se(c.lineClassName),style:Xe(c.lineStyle),"node-id":l.value,position:h,variant:re(xa).Line,color:c.color,"min-width":c.minWidth,"min-height":c.minHeight,"max-width":c.maxWidth,"max-height":c.maxHeight,"should-resize":c.shouldResize,"keep-aspect-ratio":c.keepAspectRatio,"auto-scale":c.autoScale,onResizeStart:d[0]||(d[0]=p=>e("resizeStart",p)),onResize:d[1]||(d[1]=p=>e("resize",p)),onResizeEnd:d[2]||(d[2]=p=>e("resizeEnd",p))},null,8,["class","style","node-id","position","variant","color","min-width","min-height","max-width","max-height","should-resize","keep-aspect-ratio","auto-scale"])),64)),(j(),K(Ue,null,It(o,h=>ce(qA,{key:h,class:Se(c.handleClassName),style:Xe(c.handleStyle),"node-id":l.value,position:h,color:c.color,"min-width":c.minWidth,"min-height":c.minHeight,"max-width":c.maxWidth,"max-height":c.maxHeight,"should-resize":c.shouldResize,"keep-aspect-ratio":c.keepAspectRatio,"auto-scale":c.autoScale,onResizeStart:d[3]||(d[3]=p=>e("resizeStart",p)),onResize:d[4]||(d[4]=p=>e("resize",p)),onResizeEnd:d[5]||(d[5]=p=>e("resizeEnd",p))},null,8,["class","style","node-id","position","color","min-width","min-height","max-width","max-height","should-resize","keep-aspect-ratio","auto-scale"])),64))],64)):Oe("",!0)}}),oQ=["data-lumina-id"],sQ=["src"],aQ={key:1,class:"placeholder"},eP=Jr(Te({__name:"StudioDiagramNode",props:{id:{},data:{},selected:{type:Boolean},label:{},type:{},style:{},editable:{type:Boolean},elementId:{}},setup(t){const e=t,n=Z(()=>{if(!e.label)return null;if(typeof e.label=="string")return e.label;if(typeof e.label=="object"&&"toString"in e.label){const a=e.label.toString();if(a!=="[object Object]")return a}return null}),r=Z(()=>{var a,l;return((a=e.data)==null?void 0:a.type)==="image"||((l=e.data)==null?void 0:l.shape)==="image"}),i=Z(()=>{var a;return((a=e.data)==null?void 0:a.shape)||"rectangle"}),o=Z(()=>{var a,l,u,c,d,h;return{backgroundColor:((a=e.style)==null?void 0:a.backgroundColor)||((u=(l=e.data)==null?void 0:l.style)==null?void 0:u.backgroundColor)||"#ffffff",color:((c=e.style)==null?void 0:c.color)||((h=(d=e.data)==null?void 0:d.style)==null?void 0:h.color)||"#000000",borderRadius:i.value==="rounded"?"12px":"4px",border:e.editable&&e.selected?"2px solid #3b82f6":"1px solid #ccc"}}),s=Z(()=>({borderRadius:"4px",border:e.editable&&e.selected?"2px solid #3b82f6":"none",overflow:"hidden"}));return(a,l)=>{var u,c;return j(),K("div",{class:"studio-diagram-node","data-lumina-id":t.elementId||void 0},[t.editable&&t.selected?(j(),De(re(iQ),{key:0,"min-width":80,"min-height":40})):Oe("",!0),r.value?(j(),K("div",{key:1,class:"node-content node-image",style:Xe(s.value)},[(u=t.data)!=null&&u.imageUrl?(j(),K("img",{key:0,src:t.data.imageUrl,alt:"",class:"node-img"},null,8,sQ)):(j(),K("div",aQ,[...l[0]||(l[0]=[C("i",{class:"ph-thin ph-image text-2xl text-gray-400"},null,-1),C("span",{class:"text-xs text-gray-400"},"No Image",-1)])]))],4)):(j(),K("div",{key:2,class:"node-content",style:Xe(o.value)},Ie(n.value||((c=t.data)==null?void 0:c.label)||"Node"),5)),t.editable?(j(),K(Ue,{key:3},[ce(re(ys),{type:"target",position:re(Fe).Top,class:"node-handle"},null,8,["position"]),ce(re(ys),{type:"source",position:re(Fe).Bottom,class:"node-handle"},null,8,["position"]),ce(re(ys),{type:"target",position:re(Fe).Left,class:"node-handle"},null,8,["position"]),ce(re(ys),{type:"source",position:re(Fe).Right,class:"node-handle"},null,8,["position"])],64)):Oe("",!0)],8,oQ)}}}),[["__scopeId","data-v-602e723d"]]),tP=Te({__name:"LayoutDiagram",props:{data:{}},setup(t){const e=t,{options:n,index:r}=um(),i=Z(()=>!!n.studio),o=we(e.data.nodes||[]),s=we(e.data.edges||[]);Qe(()=>e.data.edges,v=>{v&&JSON.stringify(v)!==JSON.stringify(s.value)&&(s.value=[...v])},{deep:!0}),jt(()=>{e.data.nodes&&(o.value=[...e.data.nodes]),e.data.edges&&(s.value=[...e.data.edges])});const{onNodeDragStop:a,onConnect:l}=$t(),u=()=>{const v=o.value.map(y=>JSON.parse(JSON.stringify(y)));Promise.resolve().then(()=>Fu).then(({bus:y})=>{y.emit("action",{type:"slide-update",slideIndex:r.value,patch:{nodes:v}})})};Promise.resolve().then(()=>Fu).then(({bus:v})=>{v.on("diagram-node-update",y=>{if(y.slideIndex!==r.value)return;const k=o.value.findIndex($=>$.id===y.nodeId);if(k!==-1){const $=o.value[k],O=y.key.split(".");let A=$;for(let x=0;x<O.length-1;x++)A[O[x]]||(A[O[x]]={}),A=A[O[x]];A[O[O.length-1]]=y.value,o.value=[...o.value],u()}})}),a(v=>{if(!i.value)return;const y=o.value.map(k=>JSON.parse(JSON.stringify(k)));Promise.resolve().then(()=>Fu).then(({bus:k})=>{k.emit("action",{type:"slide-update",slideIndex:r.value,patch:{nodes:y}})})}),l(v=>{if(!i.value)return;const y={id:`edge-${v.source}-${v.target}-${Date.now()}`,source:v.source,target:v.target,sourceHandle:v.sourceHandle,targetHandle:v.targetHandle,type:"default",animated:!1};s.value=[...s.value,y];const k=s.value.map($=>JSON.parse(JSON.stringify($)));Promise.resolve().then(()=>Fu).then(({bus:$})=>{$.emit("action",{type:"slide-update",slideIndex:r.value,patch:{edges:k}})})});const c=yt(Jm,null),{onNodeClick:d,onPaneClick:h,onEdgeClick:p,addNodes:g,project:m,findNode:_}=$t();d(({node:v})=>{if(!i.value||!c)return;const k=(e.data.nodes||[]).findIndex($=>$.id===v.id);k!==-1&&c.select(`slides.${r.value}.nodes.${k}`)}),p(({edge:v})=>{if(!i.value||!c)return;const k=(e.data.edges||[]).findIndex($=>$.id===v.id);if(k!==-1){const $=`slides.${r.value}.edges.${k}`;c.select($)}});const E=v=>{v.preventDefault(),v.dataTransfer&&(v.dataTransfer.dropEffect="move")},w=v=>{var x;if(!i.value||!c)return;const y=(x=v.dataTransfer)==null?void 0:x.getData("application/vueflow");if(!y)return;const{left:k,top:$}=v.currentTarget.getBoundingClientRect(),O=m({x:v.clientX-k,y:v.clientY-$}),A={id:`node-${Date.now()}`,type:"default",position:O,label:`${y} Node`,data:{type:y,style:{backgroundColor:"#ffffff",color:"#000000",width:"150px",height:"50px"}}};c.store.addNode(`slides.${r.value}.nodes`,A),c.commit()};return(v,y)=>(j(),De(ji,{data:t.data,"slide-index":re(r),class:"layout-diagram"},{default:ke(()=>[C("div",{class:Se(["w-full relative",t.data.sizing==="container"?"h-full min-h-[400px]":"h-screen"]),onClick:y[2]||(y[2]=kr(()=>{},["stop"]))},[ce(re($X),{nodes:o.value,"onUpdate:nodes":y[0]||(y[0]=k=>o.value=k),edges:s.value,"onUpdate:edges":y[1]||(y[1]=k=>s.value=k),class:"h-full w-full","fit-view-on-init":!0,"default-viewport":{zoom:1},"min-zoom":.1,"max-zoom":4,onDragover:E,onDrop:w},{"node-default":ke(k=>{var $;return[ce(eP,ao(k,{editable:i.value,"element-id":($=k.node)==null?void 0:$.id}),null,16,["editable","element-id"])]}),"node-input":ke(k=>{var $;return[ce(eP,ao(k,{editable:i.value,"element-id":($=k.node)==null?void 0:$.id}),null,16,["editable","element-id"])]}),default:ke(()=>[i.value?(j(),De(re(sY),{key:0})):Oe("",!0)]),_:1},8,["nodes","edges"])],2)]),_:1},8,["data","slide-index"]))}}),lQ={class:"w-full h-full"},uQ=Te({__name:"EditorLayoutFixed",props:{data:{},slideIndex:{}},setup(t){const e=n=>({half:$y,statement:Dy,features:My,timeline:Ly,steps:Vy,chart:FI,video:zI,auto:UI,custom:BI,diagram:tP})[n]||"div";return(n,r)=>(j(),K("div",lQ,[ce(fs,{path:`slides.${t.slideIndex}`,label:t.data.type,class:"w-full h-full"},{default:ke(()=>[(j(),De(Xn(e(t.data.type)),{data:t.data},null,8,["data"]))]),_:1},8,["path","label"])]))}}),cQ={class:"w-full h-full"},dQ=Te({__name:"EditorLayoutSteps",props:{data:{},slideIndex:{}},setup(t){return(e,n)=>(j(),K("div",cQ,[ce(fs,{path:`slides.${t.slideIndex}`,label:t.data.type,class:"w-full h-full"},{default:ke(()=>[ce(Vy,{data:t.data},null,8,["data"])]),_:1},8,["path","label"])]))}}),fQ={class:"w-full h-full"},hQ=Te({__name:"EditorLayoutTimeline",props:{data:{},slideIndex:{}},setup(t){return(e,n)=>(j(),K("div",fQ,[ce(fs,{path:`slides.${t.slideIndex}`,label:t.data.type,class:"w-full h-full"},{default:ke(()=>[ce(Ly,{data:t.data},null,8,["data"])]),_:1},8,["path","label"])]))}}),pQ={class:"w-full h-full"},gQ=Te({__name:"EditorLayoutFeatures",props:{data:{},slideIndex:{}},setup(t){return(e,n)=>(j(),K("div",pQ,[ce(fs,{path:`slides.${t.slideIndex}`,label:t.data.type,class:"w-full h-full"},{default:ke(()=>[ce(My,{data:t.data},null,8,["data"])]),_:1},8,["path","label"])]))}}),mQ={class:"w-full h-full"},vQ=Te({__name:"EditorLayoutHalf",props:{data:{},slideIndex:{}},setup(t){return(e,n)=>(j(),K("div",mQ,[ce(fs,{path:`slides.${t.slideIndex}`,label:t.data.type,class:"w-full h-full"},{default:ke(()=>[ce($y,{data:t.data},null,8,["data"])]),_:1},8,["path","label"])]))}}),yQ={class:"w-full h-full"},bQ=Te({__name:"EditorLayoutStatement",props:{data:{},slideIndex:{}},setup(t){return(e,n)=>(j(),K("div",yQ,[ce(fs,{path:`slides.${t.slideIndex}`,label:t.data.type,class:"w-full h-full"},{default:ke(()=>[ce(Dy,{data:t.data},null,8,["data"])]),_:1},8,["path","label"])]))}}),_Q={class:"absolute top-4 right-4 z-50 flex items-center gap-2 bg-black/60 backdrop-blur-md rounded-lg px-3 py-2 border border-white/10"},xQ={class:"text-white/70 text-xs font-mono w-12 text-center"},wQ={key:0,class:"absolute top-4 left-4 z-50 bg-blue-500/80 text-white text-xs px-2 py-1 rounded"},SQ={class:"absolute inset-0 z-0 pointer-events-none"},EQ={class:"absolute inset-0 z-10 overflow-y-auto overflow-x-hidden scroll-smooth"},TQ={class:"relative min-h-full w-full"},IQ={key:1,class:"flex w-full h-[720px] items-center justify-center text-white/30"},CQ=Jr(Te({__name:"EditorCanvas",setup(t){const{slide:e,index:n}=um(),r=yt(vn),i=we(.6),o=we(0),s=we(0),a=we(!1),l=we({x:0,y:0}),u=Z(()=>({transform:`translate(${o.value}px, ${s.value}px) scale(${i.value})`,transformOrigin:"center center",transition:a.value?"none":"transform 0.15s ease-out"})),c=we({top:"-20%",left:"-10%"}),d=Z(()=>({backgroundColor:"var(--lumina-color-background, #030303)",color:"var(--lumina-color-text, #ffffff)",fontFamily:"var(--lumina-font-body, Inter, system-ui, sans-serif)"})),h=Z(()=>{var b,S,I,V,M,H;return{top:((I=(S=(b=e.value)==null?void 0:b.meta)==null?void 0:S.orbPos)==null?void 0:I.top)||c.value.top,left:((H=(M=(V=e.value)==null?void 0:V.meta)==null?void 0:M.orbPos)==null?void 0:H.left)||c.value.left}}),p=()=>{var M;const b=r==null?void 0:r.state.deck;if(!b)return;const S=((M=b.meta)==null?void 0:M.theme)||b.theme||"default",I=b.meta||{},V={colors:I.colors,typography:I.typography,spacing:I.spacing,borderRadius:I.borderRadius,effects:I.effects,components:I.components};Hl.inject(S,V)};Qe(()=>{var b,S;return(S=(b=r==null?void 0:r.state.deck)==null?void 0:b.meta)==null?void 0:S.theme},p,{immediate:!0}),Qe(()=>{var b;return(b=r==null?void 0:r.state.deck)==null?void 0:b.theme},p),Qe(()=>r==null?void 0:r.state.deck,p,{immediate:!0,deep:!1}),Qe(n,(b,S)=>{if(b===0)c.value={top:"-20%",left:"-10%"};else if(S!==void 0){const I=(V,M)=>Math.floor(Math.random()*(M-V+1)+V);c.value={top:`${I(-25,65)}%`,left:`${I(-25,65)}%`}}},{immediate:!0}),jt(()=>{p()});const g=()=>{i.value=Math.min(i.value+.1,2)},m=()=>{i.value=Math.max(i.value-.1,.2)},_=()=>{i.value=.6,o.value=0,s.value=0},E=b=>{if(b.ctrlKey||b.metaKey){b.preventDefault();const V=b.deltaY>0?-.05:.05;i.value=Math.max(.2,Math.min(2,i.value+V));return}const I=b.target.closest(".overflow-y-auto");if(I){const{scrollTop:V,scrollHeight:M,clientHeight:H}=I;if(M>H){const J=V<=0,oe=Math.abs(V+H-M)<1,ae=b.deltaY<0,de=b.deltaY>0;if(ae&&!J||de&&!oe){b.stopPropagation();return}}}b.preventDefault(),b.shiftKey&&b.deltaX===0?o.value-=b.deltaY:(o.value-=b.deltaX,s.value-=b.deltaY)},w=we(!1),v=we(null),y=b=>{b.code==="Space"&&!b.repeat&&!(b.target instanceof HTMLInputElement||b.target instanceof HTMLTextAreaElement)&&(w.value=!0)},k=b=>{b.code==="Space"&&(w.value=!1,a.value&&!$.value&&(a.value=!1))};jt(()=>{p(),window.addEventListener("keydown",y),window.addEventListener("keyup",k)}),sr(()=>{window.removeEventListener("keydown",y),window.removeEventListener("keyup",k)});const $=we(!1),O=b=>{const S=b.button===1,I=b.button===0,V=b.target,M=V.classList.contains("canvas-transform-wrapper")||V===v.value;(S||I&&(w.value||b.shiftKey||M))&&(a.value=!0,$.value=!0,l.value={x:b.clientX,y:b.clientY},b.preventDefault())},A=b=>{a.value&&(o.value+=b.clientX-l.value.x,s.value+=b.clientY-l.value.y,l.value={x:b.clientX,y:b.clientY})},x=()=>{a.value=!1,$.value=!1},N=si(),P=()=>{a.value||N.select(`slides.${n.value}`)};return(b,S)=>{var I,V;return j(),K("div",{ref_key:"canvasContainer",ref:v,class:Se(["flex-1 bg-[#050505] overflow-hidden flex items-center justify-center relative transition-cursor duration-150",{"cursor-grab":!a.value&&w.value,"cursor-grabbing":a.value,"cursor-default":!a.value&&!w.value}]),onWheel:E,onMousedown:O,onMousemove:A,onMouseup:x,onMouseleave:x},[C("div",_Q,[C("button",{onClick:m,class:"w-6 h-6 flex items-center justify-center text-white/70 hover:text-white transition"},[...S[0]||(S[0]=[C("i",{class:"ph-thin ph-minus text-xs"},null,-1)])]),C("span",xQ,Ie(Math.round(i.value*100))+"%",1),C("button",{onClick:g,class:"w-6 h-6 flex items-center justify-center text-white/70 hover:text-white transition"},[...S[1]||(S[1]=[C("i",{class:"ph-thin ph-plus text-xs"},null,-1)])]),C("button",{onClick:_,class:"w-6 h-6 flex items-center justify-center text-white/70 hover:text-white transition ml-2",title:"Reset Zoom"},[...S[2]||(S[2]=[C("i",{class:"ph-thin ph-arrows-out-simple text-xs"},null,-1)])])]),a.value?(j(),K("div",wQ," Panning ")):Oe("",!0),C("div",{class:"canvas-transform-wrapper",style:Xe(u.value)},[C("div",{class:"w-[1280px] h-[720px] shadow-2xl relative border border-[#333] overflow-hidden",style:Xe(d.value),onClick:kr(P,["stop"])},[C("div",SQ,[ce(cS,{"orb-color":(V=(I=re(e))==null?void 0:I.meta)==null?void 0:V.orbColor,"orb-pos":h.value},null,8,["orb-color","orb-pos"])]),C("div",EQ,[C("div",TQ,[re(e)?(j(),K(Ue,{key:0},[re(e).type==="flex"?(j(),De(mj,{key:0,data:re(e),"slide-index":re(n)},null,8,["data","slide-index"])):re(e).type==="steps"?(j(),De(dQ,{key:1,data:re(e),"slide-index":re(n)},null,8,["data","slide-index"])):re(e).type==="timeline"?(j(),De(hQ,{key:2,data:re(e),"slide-index":re(n)},null,8,["data","slide-index"])):re(e).type==="features"?(j(),De(gQ,{key:3,data:re(e),"slide-index":re(n)},null,8,["data","slide-index"])):re(e).type==="half"?(j(),De(vQ,{key:4,data:re(e),"slide-index":re(n)},null,8,["data","slide-index"])):re(e).type==="statement"?(j(),De(bQ,{key:5,data:re(e),"slide-index":re(n)},null,8,["data","slide-index"])):(j(),De(uQ,{key:6,data:re(e),"slide-index":re(n)},null,8,["data","slide-index"]))],64)):(j(),K("div",IQ," No slide selected "))])])],4)],4)],34)}}}),[["__scopeId","data-v-06b57ef9"]]),AQ={class:"fixed bottom-6 left-1/2 -translate-x-1/2 z-50 flex items-center gap-3 bg-[#0a0a0a]/90 backdrop-blur-2xl px-4 py-3 rounded-2xl border border-white/10 shadow-[0_20px_50px_rgba(0,0,0,0.5)] transition-all duration-300"},PQ={class:"relative shrink-0"},kQ={class:"flex flex-col gap-1"},OQ=["onClick"],NQ={class:"w-8 h-8 rounded-lg bg-white/5 flex items-center justify-center group-hover:bg-blue-500/20 group-hover:text-blue-400 transition-colors"},RQ={class:"font-medium"},$Q=["onClick"],DQ={class:"w-full h-full flex items-center justify-center text-[8px] text-white/30",style:{backgroundColor:"var(--lumina-color-background, #0a0a0a)"}},MQ={class:"font-bold text-white/50"},LQ={class:"absolute bottom-1 right-1 px-1.5 py-0.5 bg-white/10 backdrop-blur-md rounded-md text-[6px] text-white/80 font-bold uppercase tracking-tighter"},VQ=["onClick"],FQ={class:"flex flex-col items-center justify-center px-4 py-1.5 rounded-xl bg-white/5 border border-white/5 shrink-0"},zQ={class:"text-[10px] font-mono text-white/50 leading-tight"},UQ={class:"flex flex-col items-center text-center mb-8"},BQ={class:"text-sm text-white/40"},jQ={class:"flex gap-4"},HQ=Jr(Te({__name:"SlideNavigator",setup(t){const e=yt(vn),n=si(),r=we(!1),i=we(null),o=we(!1),s=Z(()=>{var E;return((E=e.state.deck)==null?void 0:E.slides)||[]}),a=Z(()=>e.state.currentIndex),l=Z({get(){var E;return((E=e.state.deck)==null?void 0:E.slides)||[]},set(E){e.patchDeck({slides:E}),n.commit()}}),u=[{type:"flex",label:"Flex Layout",icon:"ph-thin ph-squares-four"},{type:"statement",label:"Statement",icon:"ph-thin ph-quotes"},{type:"half",label:"Half Layout",icon:"ph-thin ph-columns"},{type:"features",label:"Features",icon:"ph-thin ph-grid-four"},{type:"timeline",label:"Timeline",icon:"ph-thin ph-clock"},{type:"steps",label:"Steps",icon:"ph-thin ph-list-numbers"},{type:"diagram",label:"Diagram",icon:"ph-thin ph-tree-structure"}],c={flex:{type:"flex",direction:"horizontal",gap:"md",padding:"lg",elements:[{type:"content",size:"half",halign:"left",valign:"center",elements:[{type:"title",text:"New Slide",size:"xl"},{type:"text",text:"Start editing your content here."}]},{type:"image",size:"half",src:"https://images.unsplash.com/photo-1557683316-973673baf926?w=800",alt:"Placeholder image",fill:!0,rounded:"lg"}]},statement:{type:"statement",tag:"Tagline",title:"Big Statement Here",subtitle:"Supporting description text goes below the main statement."},half:{type:"half",imageSide:"right",image:"https://images.unsplash.com/photo-1557683316-973673baf926?w=800",tag:"Category",title:"Split Layout Title",paragraphs:["First paragraph of content.","Second paragraph with more details."],cta:"Learn More"},features:{type:"features",title:"Key Features",description:"Discover what makes us different.",features:[{icon:"star",title:"Feature One",desc:"Description of the first feature."},{icon:"rocket",title:"Feature Two",desc:"Description of the second feature."},{icon:"lightning",title:"Feature Three",desc:"Description of the third feature."}]},timeline:{type:"timeline",title:"Our Journey",subtitle:"Key milestones in our history.",timeline:[{date:"2020",title:"Founded",description:"Company was established."},{date:"2022",title:"Growth",description:"Expanded to new markets."},{date:"2024",title:"Today",description:"Serving customers worldwide."}]},steps:{type:"steps",title:"How It Works",subtitle:"Simple steps to get started.",steps:[{step:"1",title:"Step One",description:"First thing to do."},{step:"2",title:"Step Two",description:"Second thing to do."},{step:"3",title:"Step Three",description:"Final step."}]},diagram:{type:"diagram",title:"New Diagram",nodes:[{id:"1",type:"input",label:"Start",position:{x:250,y:5}},{id:"2",label:"Process",position:{x:100,y:100}},{id:"3",label:"End",position:{x:400,y:100}}],edges:[{id:"e1-2",source:"1",target:"2",animated:!0},{id:"e1-3",source:"1",target:"3"}]}},d=E=>({flex:"Flex",statement:"Stmt",half:"Half",features:"Feat",timeline:"Time",steps:"Step",diagram:"Diag"})[E]||E.slice(0,4),h=E=>{e.goto(E),n.select(null)},p=()=>{r.value=!r.value},g=E=>{const w=c[E]||c.flex,v=JSON.parse(JSON.stringify(w));v.type==="flex"&&Array.isArray(v.elements)&&v.elements.forEach($=>{$.dragKey=Date.now()+Math.random(),$.type==="content"&&Array.isArray($.elements)&&$.elements.forEach(O=>{O.dragKey=Date.now()+Math.random()+1})});const y=[...s.value],k=a.value+1;y.splice(k,0,v),e.patchDeck({slides:y}),n.commit(),setTimeout(()=>{e.goto(k),r.value=!1},50)},m=()=>{const E=i.value;if(E===null||s.value.length<=1){i.value=null;return}const w=[...s.value];w.splice(E,1),e.patchDeck({slides:w}),n.commit(),a.value>=w.length&&e.goto(w.length-1),i.value=null},_=()=>{r.value=!1};return jt(()=>{document.addEventListener("click",_)}),sr(()=>{document.removeEventListener("click",_)}),(E,w)=>(j(),K(Ue,null,[C("div",AQ,[C("div",PQ,[C("button",{onClick:kr(p,["stop"]),class:"w-10 h-10 rounded-xl bg-blue-600 hover:bg-blue-500 text-white flex items-center justify-center transition-all duration-200 active:scale-95 shadow-lg shadow-blue-600/20 group",title:"Add New Slide"},[C("i",{class:Se(["ph-thin ph-plus transition-transform duration-300",{"rotate-45":r.value}])},null,2)]),ce(Xa,{name:"menu"},{default:ke(()=>[r.value?(j(),K("div",{key:0,class:"absolute bottom-full left-0 mb-4 bg-[#111] border border-white/10 rounded-2xl p-2 min-w-[180px] shadow-2xl backdrop-blur-xl z-[60]",onClick:w[0]||(w[0]=kr(()=>{},["stop"]))},[w[7]||(w[7]=C("div",{class:"px-3 py-2 text-[10px] font-bold text-white/30 uppercase tracking-widest border-b border-white/5 mb-1"}," Select Layout ",-1)),C("div",kQ,[(j(),K(Ue,null,It(u,v=>C("button",{key:v.type,onClick:y=>g(v.type),class:"w-full px-3 py-2.5 text-left text-xs text-white/70 hover:text-white hover:bg-white/5 rounded-xl transition-all flex items-center gap-3 group"},[C("div",NQ,[C("i",{class:Se(v.icon)},null,2)]),C("span",RQ,Ie(v.label),1)],8,OQ)),64))])])):Oe("",!0)]),_:1})]),ce(re(zh),{modelValue:l.value,"onUpdate:modelValue":w[1]||(w[1]=v=>l.value=v),"item-key":"id",class:"flex items-center gap-2 max-w-[650px] overflow-x-auto slide-scroll px-1 py-1 scroll-smooth",animation:200,"ghost-class":"opacity-50","drag-class":"scale-105",onStart:w[2]||(w[2]=v=>o.value=!0),onEnd:w[3]||(w[3]=v=>o.value=!1)},{item:ke(({element:v,index:y})=>[C("button",{onClick:k=>h(y),class:Se(["shrink-0 w-16 h-10 rounded-xl overflow-hidden border-2 transition-all duration-200 relative group active:scale-95 cursor-grab active:cursor-grabbing",a.value===y?"border-blue-500 ring-4 ring-blue-500/20 scale-105 z-10":"border-white/5 shadow-inner hover:border-white/20"])},[C("div",DQ,[C("span",MQ,Ie(y+1),1),w[8]||(w[8]=C("div",{class:"absolute inset-0 bg-gradient-to-t from-black/60 to-transparent"},null,-1))]),C("div",LQ,Ie(d(v.type)),1),s.value.length>1?(j(),K("button",{key:0,onClick:kr(k=>i.value=y,["stop"]),class:"absolute top-1 right-1 w-5 h-5 bg-red-500/80 hover:bg-red-500 rounded-lg flex items-center justify-center opacity-0 group-hover:opacity-100 transition-all duration-200 transform hover:scale-110"},[...w[9]||(w[9]=[C("i",{class:"ph-thin ph-x text-[10px] text-white"},null,-1)])],8,VQ)):Oe("",!0)],10,$Q)]),_:1},8,["modelValue"]),C("div",FQ,[w[11]||(w[11]=C("div",{class:"text-[10px] font-bold text-white uppercase tracking-tighter leading-tight"},"Slide",-1)),C("div",zQ,[bt(Ie(a.value+1)+" ",1),w[10]||(w[10]=C("span",{class:"text-white/20"},"/",-1)),bt(" "+Ie(s.value.length),1)])])]),ce(Xa,{name:"modal"},{default:ke(()=>[i.value!==null?(j(),K("div",{key:0,class:"fixed inset-0 z-[100] flex items-center justify-center bg-black/80 backdrop-blur-md",onClick:w[6]||(w[6]=v=>i.value=null)},[C("div",{class:"bg-[#111111] border border-white/10 rounded-3xl p-8 shadow-2xl max-w-sm w-full mx-4 transform transition-all",onClick:w[5]||(w[5]=kr(()=>{},["stop"]))},[C("div",UQ,[w[12]||(w[12]=C("div",{class:"w-16 h-16 rounded-2xl bg-red-500/10 flex items-center justify-center text-red-500 mb-6 border border-red-500/20"},[C("i",{class:"ph-thin ph-trash text-2xl"})],-1)),w[13]||(w[13]=C("h3",{class:"text-xl font-bold text-white mb-2"},"Delete slide?",-1)),C("p",BQ,"This will permanently remove slide #"+Ie(i.value+1)+" and all its content.",1)]),C("div",jQ,[C("button",{onClick:w[4]||(w[4]=v=>i.value=null),class:"flex-1 px-6 py-3 rounded-2xl bg-white/5 hover:bg-white/10 text-white transition text-sm font-semibold border border-white/5"}," Cancel "),C("button",{onClick:m,class:"flex-1 px-6 py-3 rounded-2xl bg-red-600 hover:bg-red-500 text-white transition text-sm font-semibold shadow-xl shadow-red-600/30"}," Delete ")])])])):Oe("",!0)]),_:1})],64))}}),[["__scopeId","data-v-b431cd99"]]),GQ={class:"flex flex-col w-full h-screen bg-black text-white font-sans overflow-hidden"},WQ={class:"flex flex-1 overflow-hidden relative"},KQ={class:"w-72 bg-[#111] border-l border-[#333] flex flex-col"},nP=Te({__name:"LuminaStudio",setup(t){const e=E5();return to(Jm,e),(n,r)=>(j(),K("div",GQ,[ce(f9),C("div",WQ,[ce(bB),ce(CQ),C("div",KQ,[ce(aj)]),ce(HQ)])]))}}),ti=class ti{constructor(e){dr(this,"channel",null);dr(this,"handlers",new Set);dr(this,"lastTimestamp",0);dr(this,"heartbeatInterval",null);dr(this,"isConnected",!1);dr(this,"connectionHandlers",new Set);this.channelName=e,this.initChannel()}static getInstance(e,n=!1){return n?new ti(e):(ti.instances.has(e)||ti.instances.set(e,new ti(e)),ti.instances.get(e))}static isSupported(){return typeof BroadcastChannel<"u"}initChannel(){if(!ti.isSupported()){console.warn("[SpeakerChannel] BroadcastChannel not supported in this environment");return}try{this.channel=new BroadcastChannel(this.channelName),this.channel.onmessage=e=>{const n=e.data;if(!(n.timestamp&&n.timestamp===this.lastTimestamp)){if(n.action==="ping"){this.send({action:"pong"}),this.handlers.forEach(r=>{try{r(n)}catch(i){console.error("[SpeakerChannel] Handler error:",i)}});return}if(n.action==="pong"){this.setConnected(!0);return}if(n.action==="close"){this.setConnected(!1);return}this.handlers.forEach(r=>{try{r(n)}catch(i){console.error("[SpeakerChannel] Handler error:",i)}})}},this.channel.onmessageerror=e=>{console.error("[SpeakerChannel] Message error:",e)},this.startHeartbeat()}catch(e){console.error("[SpeakerChannel] Failed to initialize:",e)}}send(e){if(!this.channel)return;const n={...e,timestamp:Date.now(),channelId:this.channelName};this.lastTimestamp=n.timestamp,this.channel.postMessage(n)}subscribe(e){return this.handlers.add(e),()=>this.handlers.delete(e)}onConnectionChange(e){return this.connectionHandlers.add(e),e(this.isConnected),()=>this.connectionHandlers.delete(e)}get connected(){return this.isConnected}ping(){this.send({action:"ping"})}notifyClose(){this.send({action:"close"})}startHeartbeat(){this.ping(),this.heartbeatInterval=setInterval(()=>{(this.handlers.size>0||this.connectionHandlers.size>0)&&this.ping()},5e3)}setConnected(e){this.isConnected!==e&&(this.isConnected=e,this.connectionHandlers.forEach(n=>n(e)))}destroy(){this.notifyClose(),this.heartbeatInterval&&(clearInterval(this.heartbeatInterval),this.heartbeatInterval=null),this.channel&&(this.channel.close(),this.channel=null),this.handlers.clear(),this.connectionHandlers.clear(),ti.instances.delete(this.channelName)}static destroyAll(){ti.instances.forEach(e=>e.destroy()),ti.instances.clear()}};dr(ti,"instances",new Map);let nu=ti;const ZQ={class:"speaker-notes"},XQ={class:"sn-header"},YQ={class:"sn-status"},JQ={class:"sn-slide-count"},QQ={class:"sn-content"},qQ={class:"sn-notes-section"},eq=["innerHTML"],tq={key:1,class:"sn-notes-empty"},nq={class:"sn-footer"},rq={class:"sn-nav-controls"},iq=["disabled"],oq={class:"sn-timer-value"},sq=["disabled"],aq=Jr(Te({__name:"LuminaSpeakerNotes",props:{channelId:{}},setup(t){const e=t,n=we(0),r=we(0),i=we(""),o=we(null),s=we(!1),a=we(null),l=we(0),u=we(!1),c=we(null),d=Z(()=>r.value===0?"No slides loaded":`Slide ${n.value+1} / ${r.value}`),h=Z(()=>{const x=Math.floor(l.value/3600),N=Math.floor(l.value%3600/60),P=l.value%60;return x>0?`${x.toString().padStart(2,"0")}:${N.toString().padStart(2,"0")}:${P.toString().padStart(2,"0")}`:`${N.toString().padStart(2,"0")}:${P.toString().padStart(2,"0")}`}),p=Z(()=>n.value<r.value-1),g=Z(()=>n.value>0);function m(x){return x?x.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/__(.*?)__/g,"<strong>$1</strong>").replace(new RegExp("(?<!\\*)\\*(?!\\*)(.*?)(?<!\\*)\\*(?!\\*)","g"),"<em>$1</em>").replace(new RegExp("(?<!_)_(?!_)(.*?)(?<!_)_(?!_)","g"),"<em>$1</em>").replace(/\n/g,"<br>").replace(/^[-*]\s+(.*)$/gm,"<li>$1</li>").replace(/(<li>.*<\/li>)/gs,"<ul>$1</ul>").replace(/<\/ul>\s*<ul>/g,""):""}function _(){const x=new URLSearchParams(window.location.search),N=e.channelId||x.get("channel")||"lumina-speaker-default";a.value=nu.getInstance(N,!0),a.value.onConnectionChange(I=>{s.value=I}),a.value.subscribe(E);let P=0;const b=10,S=setInterval(()=>{var I;if(r.value>0||P>=b){clearInterval(S);return}(I=a.value)==null||I.ping(),P++},300);a.value.ping()}function E(x){switch(x.action){case"state":x.index!==void 0&&(n.value=x.index),x.totalSlides!==void 0&&(r.value=x.totalSlides),x.currentNotes!==void 0&&(i.value=x.currentNotes),x.nextSlidePreview&&(o.value=x.nextSlidePreview);break;case"goto":x.index!==void 0&&(n.value=x.index);break}}function w(){var x;p.value&&((x=a.value)==null||x.send({action:"next"}))}function v(){var x;g.value&&((x=a.value)==null||x.send({action:"prev"}))}function y(){u.value||(u.value=!0,c.value=setInterval(()=>{l.value++},1e3))}function k(){u.value=!1,c.value&&(clearInterval(c.value),c.value=null)}function $(){u.value?k():y()}function O(){k(),l.value=0}function A(x){switch(x.key){case"ArrowRight":case" ":case"Enter":x.preventDefault(),w();break;case"ArrowLeft":case"Backspace":x.preventDefault(),v();break;case"t":case"T":x.preventDefault(),$();break;case"r":case"R":if(x.ctrlKey||x.metaKey)return;x.preventDefault(),O();break}}return jt(()=>{_(),window.addEventListener("keydown",A),window.addEventListener("beforeunload",()=>{var x;(x=a.value)==null||x.notifyClose()})}),sr(()=>{var x;k(),window.removeEventListener("keydown",A),(x=a.value)==null||x.destroy()}),(x,N)=>(j(),K("div",ZQ,[C("header",XQ,[N[0]||(N[0]=nf('<div class="sn-title" data-v-ccdb989d><svg class="sn-logo" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-ccdb989d><path d="M12 2L2 7l10 5 10-5-10-5z" data-v-ccdb989d></path><path d="M2 17l10 5 10-5" data-v-ccdb989d></path><path d="M2 12l10 5 10-5" data-v-ccdb989d></path></svg><span data-v-ccdb989d>Lumina Speaker Notes</span></div>',1)),C("div",YQ,[C("span",{class:Se(["sn-indicator",{connected:s.value}])},null,2),C("span",JQ,Ie(d.value),1)])]),C("main",QQ,[C("section",qQ,[N[2]||(N[2]=C("h2",{class:"sn-section-title"},"Notes",-1)),i.value?(j(),K("div",{key:0,class:"sn-notes-content",innerHTML:m(i.value)},null,8,eq)):(j(),K("div",tq,[...N[1]||(N[1]=[C("p",null,"No notes for this slide",-1)])]))])]),C("footer",nq,[C("div",rq,[C("button",{class:"sn-btn sn-btn-nav",disabled:!g.value,onClick:v,title:"Previous (← or Backspace)"},[...N[3]||(N[3]=[C("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[C("polyline",{points:"15 18 9 12 15 6"})],-1),C("span",null,"Prev",-1)])],8,iq),C("div",{class:"sn-timer",onClick:$,title:"Click to start/pause (T)"},[C("span",{class:Se(["sn-timer-icon",{running:u.value}])},Ie(u.value?"⏸":"▶"),3),C("span",oq,Ie(h.value),1),C("button",{class:"sn-timer-reset",onClick:kr(O,["stop"]),title:"Reset timer (R)"},"↻")]),C("button",{class:"sn-btn sn-btn-nav sn-btn-primary",disabled:!p.value,onClick:w,title:"Next (→, Space, or Enter)"},[...N[4]||(N[4]=[C("span",null,"Next",-1),C("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[C("polyline",{points:"9 18 15 12 9 6"})],-1)])],8,sq)])])]))}}),[["__scopeId","data-v-ccdb989d"]]),lq=Jr(Te({__name:"LayoutFlex",props:{data:{},slideIndex:{}},emits:["action"],setup(t,{emit:e}){const n=t,r=e,i=yt(vn),o=Z(()=>n.slideIndex??(i==null?void 0:i.state.currentIndex)??0),s=m=>Gt(n.data,o.value,["elements",m]),a=(m,_)=>Gt(n.data,o.value,["elements",m,"elements",_]),l=Z(()=>({padding:So[n.data.padding||"none"]})),u=Z(()=>n.data.direction==="vertical"?"flex-col":"flex-col lg:flex-row"),c=Z(()=>({gap:So[n.data.gap||"none"],...MI(n.data.direction,n.data.halign,n.data.valign)})),d=m=>Ry(m,n.data.direction==="vertical"),h=m=>{const _=n.data.direction==="vertical";return{...Ry(m,_),...$I(m),height:_?"auto":"100%",width:_?"100%":"auto",minHeight:_?"auto":"100%"}},p=m=>{r("action",m),Oi.emit("action",m)},g=m=>({title:CI,text:AI,image:Hh,video:Gh,bullets:kI,ordered:OI,button:PI,timeline:NI,stepper:RI,spacer:LI})[m]||"div";return(m,_)=>{const E=Pr("LuminaElement");return j(),De(ji,{data:t.data,"slide-index":o.value},{default:ke(()=>[C("div",{class:"flex-layout w-full h-screen flex flex-col overflow-y-auto lg:overflow-hidden",style:Xe(l.value)},[C("div",{class:Se(["flex-1 flex w-full min-h-full lg:h-full",u.value]),style:Xe(c.value)},[(j(!0),K(Ue,null,It(t.data.elements,(w,v)=>(j(),K(Ue,{key:v},[w.type==="image"?(j(),De(E,{key:0,id:s(v),class:Se(["flex-item",re(Vc)(w.size)]),style:Xe(d(w))},{default:ke(()=>[ce(Hh,{src:w.src,alt:w.alt,fill:w.fill,rounded:w.rounded,"container-class":"w-full h-full min-h-0","container-style":{},class:Se(w.class)},null,8,["src","alt","fill","rounded","class"])]),_:2},1032,["id","class","style"])):w.type==="video"?(j(),De(E,{key:1,id:s(v),class:Se(["flex-item",re(Vc)(w.size),w.class]),style:Xe(d(w))},{default:ke(()=>[ce(Gh,{class:Se(re(hj)(w.rounded,w.fill)),src:w.src,poster:w.poster,autoplay:w.autoplay??!1,loop:w.loop??!1,muted:w.muted??!1,controls:w.controls??!0,"object-fit":w.fill!==!1?"cover":"contain"},null,8,["class","src","poster","autoplay","loop","muted","controls","object-fit"])]),_:2},1032,["id","class","style"])):w.type==="content"?(j(),De(E,{key:2,id:s(v),class:Se(["flex-item flex flex-col h-full",re(Vc)(w.size)]),style:Xe(h(w))},{default:ke(()=>[(j(!0),K(Ue,null,It(w.elements,(y,k)=>(j(),De(E,{key:k,id:a(v,k)},{default:ke(()=>[(j(),De(Xn(g(y.type)),ao({ref_for:!0},y,{onAction:p}),null,16))]),_:2},1032,["id"]))),128))]),_:2},1032,["id","class","style"])):(j(),De(E,{key:3,id:s(v),class:Se(["flex-item",re(Vc)(w.size)]),style:Xe({...re(DI)(),width:t.data.direction==="vertical"?"100%":"auto"})},{default:ke(()=>[(j(),De(Xn(g(w.type)),ao({ref_for:!0},w,{onAction:p}),null,16))]),_:2},1032,["id","class","style"]))],64))),128))],6)],4)]),_:1},8,["data","slide-index"])}}}),[["__scopeId","data-v-8a1ddc69"]]),uq=Te({__name:"LuminaElement",props:{id:{},tag:{default:"div"},class:{},style:{}},setup(t){const e=t,n=VI(()=>e.id),r=Z(()=>{const s=e.id;if(s==null)return;const a=String(s).trim();return a||void 0}),i=Z(()=>{const s=e.class;return Array.isArray(s)?s.filter(Boolean).join(" "):s||""}),o=Z(()=>{const s=re(n.style)??{},a={...e.style||{},...s};return"opacity"in s&&a.transition==null&&(a.transition="opacity 0.35s ease-out"),a});return(s,a)=>(j(),De(Xn(t.tag),{"data-lumina-id":r.value,style:Xe(o.value),class:Se([re(n).class,i.value].filter(Boolean))},{default:ke(()=>[Mt(s.$slots,"default")]),_:3},8,["data-lumina-id","style","class"]))}});function rP(t,e,n){function r(a){t.setElementState(n,a)}function i(){var a;return((a=t.state.elementState[n])==null?void 0:a.class)||""}const o={show(){r({visible:!0,opacity:1});const a=e.getElementById(n),l=a==null?void 0:a.closest(".reveal-zoom, .reveal-up, .reveal-card, .reveal-left, .reveal-right");return l&&zt.set(l,{opacity:1}),o},hide(){return r({visible:!1}),o},toggle(a){var u;const l=((u=t.state.elementState[n])==null?void 0:u.visible)!==!1;return r({visible:a!==void 0?a:!l}),o},opacity(a){return r({opacity:a}),o},transform(a){return r({transform:a}),o},css(a){return r({style:a}),o},addClass(a){const u=(i()+" "+a).trim();return r({class:u}),o},removeClass(a){const u=i().split(/\s+/).filter(c=>c&&c!==a).join(" ");return r({class:u}),o},animate(a){return s(a),o},animateAsync(a){return new Promise(l=>{s(a,()=>{var u;(u=a.onComplete)==null||u.call(a),l()})})}};function s(a,l){const u=e.getElementById(n);if(!u)return;const c=a.duration??.5,d=a.ease??"power2.out",h=l??a.onComplete,p={...a.to,duration:c,ease:d,overwrite:!0,onComplete:h};a.from?zt.fromTo(u,a.from,p):zt.to(u,p)}return o}class cq{constructor(e,n={}){dr(this,"app");dr(this,"store");dr(this,"speakerWindow",null);dr(this,"speakerChannel",null);dr(this,"speakerChannelId");dr(this,"speakerUnsubscribe",null);this.selector=e,this.speakerChannelId=`lumina-speaker-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,this.store=VM(n),n.theme&&Hl.inject(n.theme),this.app=n.studio?Ja(nP):Ja(dS),this.app.provide(vn,this.store),this.app.provide("LuminaEngine",this),Qe(()=>this.store.state.currentIndex,(r,i)=>{var s;const o=(s=this.store.state.deck)==null?void 0:s.slides[r];o&&Oi.emit("slideChange",{index:r,previousIndex:i??0,slide:o})}),Qe(()=>{var r;return(r=this.store.state.deck)==null?void 0:r.meta},r=>{if(r){const i={colors:r.colors,typography:r.typography,spacing:r.spacing,borderRadius:r.borderRadius,effects:r.effects,components:r.components},o=r.theme||"default";Hl.inject(o,i),r.orbColor&&document.documentElement.style.setProperty("--lumina-colors-primary",r.orbColor)}},{deep:!0}),this.app.component("layout-statement",Dy),this.app.component("layout-half",$y),this.app.component("layout-features",My),this.app.component("layout-timeline",Ly),this.app.component("layout-steps",Vy),this.app.component("layout-flex",lq),this.app.component("layout-auto",UI),this.app.component("layout-custom",BI),this.app.component("layout-chart",FI),this.app.component("layout-video",zI),this.app.component("layout-diagram",tP),this.app.component("LuminaElement",uq),Oi.on("action",r=>{if(r.type==="slide-update"&&typeof r.slideIndex=="number"){const{slideIndex:i,patch:o}=r;o&&typeof o=="object"&&("nodes"in o&&this.store.updateNode(`slides.${i}.nodes`,o.nodes),"edges"in o&&this.store.updateNode(`slides.${i}.edges`,o.edges))}this.store.recordAction(r)}),this.app.mount(this.selector),this.syncSpeakerNotes()}load(e){this.store.loadDeck(e),Oi.emit("ready",e),this.syncSpeakerNotes()}patch(e){this.store.patchDeck(e),this.syncSpeakerNotes()}exportState(){const{currentIndex:e,deck:n,actionHistory:r}=this.store.state,i=n==null?void 0:n.slides[e],o=r.map(a=>`User ${a.type}ed on ${a.label||a.value}`).join(" -> "),s=r.length>5?"High Engagement":"Low Engagement";return Object.freeze({status:"active",currentSlide:{index:e,id:(i==null?void 0:i.id)||e,type:i==null?void 0:i.type,title:(i&&"title"in i?i.title:null)||"(No Title)"},narrative:`User is currently on slide ${e+1}. Session Flow: ${o||"Just started"}.`,engagementLevel:s,history:[...r]})}on(e,n){Oi.on(e,n)}off(e,n){Oi.off(e,n)}destroy(){this.closeSpeakerNotes(),this.app&&this.app.unmount(),Oi.clear()}get currentSlideIndex(){return this.store.state.currentIndex}goTo(e){this.store.goto(e),this.syncSpeakerNotes()}next(){this.store.next(),this.syncSpeakerNotes()}prev(){this.store.prev(),this.syncSpeakerNotes()}getElementById(e){const n=document.querySelector(this.selector);if(!n)return null;const r=n.querySelector("[data-lumina-root]")||n,i=e.replace(/\\/g,"\\\\").replace(/"/g,'\\"');return r.querySelector(`[data-lumina-id="${i}"]`)||null}element(e,n){var r;if(typeof e=="number"){const i=(r=this.store.state.deck)==null?void 0:r.slides[e],o=Hx(n),s=i?Gt(i,e,o):Tf(e,...o);return rP(this.store,this,s)}return rP(this.store,this,e)}elements(e){var r;const n=(r=this.store.state.deck)==null?void 0:r.slides[e];return n?lm(n,e):[]}openSpeakerNotes(){if(this.speakerWindow&&!this.speakerWindow.closed)return this.speakerWindow.focus(),this.speakerWindow;if(!nu.isSupported())return console.error("[Lumina] BroadcastChannel not supported."),null;const e=600,n=800,r=window.screenX+window.outerWidth,i=window.screenY;if(this.speakerWindow=window.open("about:blank",`lumina-speaker-notes-${this.speakerChannelId}`,`width=${e},height=${n},left=${r},top=${i},resizable=yes,scrollbars=yes`),!this.speakerWindow)return console.warn("[Lumina] Popup blocked."),null;const o=this.speakerWindow;return o.document.open(),o.document.write(`
|
|
2582
2582
|
<!DOCTYPE html>
|
|
2583
2583
|
<html lang="en">
|
|
2584
2584
|
<head>
|