orcaq 1.1.7 → 1.1.8
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/.output/nitro.json +1 -1
- package/.output/public/_nuxt/-7uW7YTy.js +1 -0
- package/.output/public/_nuxt/{DzjHXopz.js → 5450EsIE.js} +1 -1
- package/.output/public/_nuxt/6mVUr42b.js +1 -0
- package/.output/public/_nuxt/7H5y5euK.js +1 -0
- package/.output/public/_nuxt/7iCr9_qw.js +26 -0
- package/.output/public/_nuxt/{CJnTtXrv.js → B0gkARnK.js} +1 -1
- package/.output/public/_nuxt/B21nC2NZ.js +1 -0
- package/.output/public/_nuxt/B232GDut.js +2 -0
- package/.output/public/_nuxt/{DtgJAz2h.js → B6N_D8QI.js} +1 -1
- package/.output/public/_nuxt/B7C8fo37.js +1 -0
- package/.output/public/_nuxt/BC82eJHt.js +1 -0
- package/.output/public/_nuxt/BHr4_sbs.js +9 -0
- package/.output/public/_nuxt/{DSOwr8Hs.js → BJvJ0Hlu.js} +4 -4
- package/.output/public/_nuxt/BK-6CJ0A.js +1 -0
- package/.output/public/_nuxt/BMVgfiQu.js +1 -0
- package/.output/public/_nuxt/BNh4NY7v.js +1 -0
- package/.output/public/_nuxt/{DuKway_J.js → BO3FEgXG.js} +1 -1
- package/.output/public/_nuxt/BQm1mt0O.js +1 -0
- package/.output/public/_nuxt/BRCvv3op.js +1 -0
- package/.output/public/_nuxt/{Cym7bWgs.js → BRWis86L.js} +1 -1
- package/.output/public/_nuxt/{CG4v011f.js → BRzWRTTF.js} +1 -1
- package/.output/public/_nuxt/{BRVpLa1E.js → BWTTrGtY.js} +2 -2
- package/.output/public/_nuxt/{CczQKYUP.js → BXMKgn-J.js} +1 -1
- package/.output/public/_nuxt/{C7A87LE3.js → BYaoWfSN.js} +1 -1
- package/.output/public/_nuxt/{Z5g5B4NJ.js → BalNYDR1.js} +1 -1
- package/.output/public/_nuxt/{DQdL5Jcl.js → BmfnP4qD.js} +1 -1
- package/.output/public/_nuxt/Bn6_QGSK.js +1 -0
- package/.output/public/_nuxt/{RTN5rY4m.js → BsCPQnkm.js} +1 -1
- package/.output/public/_nuxt/{39ZZCZCn.js → Bu6ybm3Z.js} +1 -1
- package/.output/public/_nuxt/{2TwRWQjG.js → BuTCm7Bo.js} +1 -1
- package/.output/public/_nuxt/BuzCyLCh.js +1 -0
- package/.output/public/_nuxt/{BCm7jnPt.js → BzNEuLKx.js} +1 -1
- package/.output/public/_nuxt/{DyFXtlg0.js → BzNNFvTW.js} +1 -1
- package/.output/public/_nuxt/{nrlEwpIH.js → BzqjH2-H.js} +1 -1
- package/.output/public/_nuxt/{D0oaRUYx.js → C-e53AuW.js} +1 -1
- package/.output/public/_nuxt/C0jXhwNq.js +1 -0
- package/.output/public/_nuxt/C6K-C4_d.js +1 -0
- package/.output/public/_nuxt/{D7uoAo-G.js → C6teO48Y.js} +5 -5
- package/.output/public/_nuxt/{DUvUg_V7.js → C874itvn.js} +1 -1
- package/.output/public/_nuxt/C8ZJ2pm_.js +1 -0
- package/.output/public/_nuxt/CA3O4M9L.js +1 -0
- package/.output/public/_nuxt/{DStg2VwN.js → CAjVwGyz.js} +1 -1
- package/.output/public/_nuxt/{B41tp0B8.js → CCC5u9Ni.js} +1 -1
- package/.output/public/_nuxt/{3vYvhEat.js → CCCJ2fw7.js} +1 -1
- package/.output/public/_nuxt/{vGkKA7iH.js → CFi6G8Aj.js} +2 -2
- package/.output/public/_nuxt/CKlMKmo6.js +1 -0
- package/.output/public/_nuxt/{BvD9dW-2.js → CMDq7o88.js} +1 -1
- package/.output/public/_nuxt/CMI-3q_e.js +1 -0
- package/.output/public/_nuxt/{D_fdC3mJ.js → CMnjMfEQ.js} +1 -1
- package/.output/public/_nuxt/{DTlu-CJn.js → CQFANjzf.js} +1 -1
- package/.output/public/_nuxt/{DEjwIQuc.js → CU5cwnUW.js} +1 -1
- package/.output/public/_nuxt/{BO-QgaRL.js → CXQ2zrsE.js} +1 -1
- package/.output/public/_nuxt/{BLEKzUmC.js → CXbrqQhC.js} +1 -1
- package/.output/public/_nuxt/CZXyfpHW.js +1 -0
- package/.output/public/_nuxt/CZgTP5wX.js +1 -0
- package/.output/public/_nuxt/{BhT0iBlH.js → Cd_fVKDw.js} +1 -1
- package/.output/public/_nuxt/CeXnSKvd.js +1 -0
- package/.output/public/_nuxt/Chw5tFzx.js +1 -0
- package/.output/public/_nuxt/CkLSGVwV.js +1 -0
- package/.output/public/_nuxt/Cqk0ImDE.js +1 -0
- package/.output/public/_nuxt/{Ch-A9iSC.js → CuXTA7ZW.js} +1 -1
- package/.output/public/_nuxt/Cv9v5fHN.js +1 -0
- package/.output/public/_nuxt/{LUfaevBS.js → CvbYm0uB.js} +1 -1
- package/.output/public/_nuxt/{BV4g1sVY.js → Cw1HIv3s.js} +1 -1
- package/.output/public/_nuxt/{DxF9DsEl.js → CyEOtFwE.js} +1 -1
- package/.output/public/_nuxt/{Clm3Z8VL.js → CyKRjZZo.js} +1 -1
- package/.output/public/_nuxt/{Cj9tYr3P.js → D4DMGxvZ.js} +1 -1
- package/.output/public/_nuxt/{BNnChlxR.js → D5GonnbJ.js} +1 -1
- package/.output/public/_nuxt/D5Oboajo.js +1 -0
- package/.output/public/_nuxt/D8egDyEO.js +1 -0
- package/.output/public/_nuxt/DBSV6YXN.js +1 -0
- package/.output/public/_nuxt/{gWmEw6BT.js → DCewvWOu.js} +1 -1
- package/.output/public/_nuxt/{BG_B-fo0.js → DG9CsZCx.js} +1 -1
- package/.output/public/_nuxt/{BOVFFCPB.js → DH2V7e8U.js} +1 -1
- package/.output/public/_nuxt/{DcXAnOS1.js → DHXwq7wT.js} +1 -1
- package/.output/public/_nuxt/DJXrgohw.js +2 -0
- package/.output/public/_nuxt/{CxZK-Vs6.js → DQRyK9Io.js} +1 -1
- package/.output/public/_nuxt/{B-u0WX5Q.js → DXVrM3CN.js} +1 -1
- package/.output/public/_nuxt/{XVZ0obUR.js → DZ4xLzJg.js} +1 -1
- package/.output/public/_nuxt/DZIoL4RO.js +1 -0
- package/.output/public/_nuxt/D_kY6P5P.js +1 -0
- package/.output/public/_nuxt/{DzN4YRfa.js → DgxTwFGe.js} +2 -2
- package/.output/public/_nuxt/DkX74xDd.js +1 -0
- package/.output/public/_nuxt/{DzaPC1WB.js → DmnufEYq.js} +1 -1
- package/.output/public/_nuxt/{CCk2r9DD.js → Dopm1f4X.js} +1 -1
- package/.output/public/_nuxt/{jJeqAxmP.js → Dpkaavgs.js} +1 -1
- package/.output/public/_nuxt/DpsqSAMo.js +20 -0
- package/.output/public/_nuxt/{CRDIOG8r.js → DrkGD_bQ.js} +1 -1
- package/.output/public/_nuxt/{DLIUYAz9.js → Dtry_3Qa.js} +1 -1
- package/.output/public/_nuxt/DwPmcz47.js +1 -0
- package/.output/public/_nuxt/DyjsVMbv.js +1 -0
- package/.output/public/_nuxt/{CBgbjsPd.js → FmHWbXNk.js} +1 -1
- package/.output/public/_nuxt/{CWGzL6OE.js → JxgekUqn.js} +1 -1
- package/.output/public/_nuxt/KoGK2wLb.js +1 -0
- package/.output/public/_nuxt/LU_a7qLd.js +1 -0
- package/.output/public/_nuxt/{1VXrIDkr.js → LxqkguPP.js} +1 -1
- package/.output/public/_nuxt/Q8x88Gcd.js +1 -0
- package/.output/public/_nuxt/{RFRrMFyH.js → R04uZjs6.js} +1 -1
- package/.output/public/_nuxt/So0hX8V0.js +31 -0
- package/.output/public/_nuxt/WGDY9i_Q.js +1 -0
- package/.output/public/_nuxt/{BZQUF1W4.js → WZQ8mcv9.js} +1 -1
- package/.output/public/_nuxt/{CrwM3gOU.js → XjywAggc.js} +1 -1
- package/.output/public/_nuxt/{_fileId_.DxhkUVGK.css → _fileId_.CiauI_x3.css} +1 -1
- package/.output/public/_nuxt/{z1xPtaLw.js → _uLivI44.js} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/30582efd-125a-4f88-bd89-20a7b2ba8697.json +1 -0
- package/.output/public/_nuxt/{DRuCf0Sx.js → eQskTKIU.js} +1 -1
- package/.output/public/_nuxt/ecWNT6PZ.js +1 -0
- package/.output/public/_nuxt/entry.BcHy7sxf.css +1 -0
- package/.output/public/_nuxt/{BGAd-CMD.js → f6XRRKUb.js} +1 -1
- package/.output/public/_nuxt/jtwYTq7X.js +52 -0
- package/.output/public/_nuxt/{Bw-4PosZ.js → mcYTISF7.js} +1 -1
- package/.output/public/_nuxt/mcfKrWU-.js +1 -0
- package/.output/public/_nuxt/{CB56S0b2.js → soHTUlpn.js} +3 -3
- package/.output/public/_nuxt/tc7vkD0J.js +3 -0
- package/.output/public/_nuxt/vEHvfalB.js +53 -0
- package/.output/public/_nuxt/vP25tZUh.js +2 -0
- package/.output/public/_nuxt/{CpkrwN3Q.js → zndqWf9s.js} +1 -1
- package/.output/server/chunks/_/tables.factory.mjs +1 -1
- package/.output/server/chunks/build/client.manifest.mjs +794 -730
- package/.output/server/chunks/build/client.manifest.mjs.map +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +676 -648
- package/.output/server/package.json +1 -1
- package/package.json +1 -1
- package/.output/public/_nuxt/1fIGBJPQ.js +0 -1
- package/.output/public/_nuxt/1kY3DHv7.js +0 -1
- package/.output/public/_nuxt/9bnMBg54.js +0 -1
- package/.output/public/_nuxt/BFMjnjgH.js +0 -1
- package/.output/public/_nuxt/BN2mQ8OV.js +0 -20
- package/.output/public/_nuxt/BNyWhB4W.js +0 -1
- package/.output/public/_nuxt/BXziI6Bt.js +0 -3
- package/.output/public/_nuxt/BZmEvFAZ.js +0 -28
- package/.output/public/_nuxt/Ba_fqsW2.js +0 -1
- package/.output/public/_nuxt/BbzZxPNQ.js +0 -1
- package/.output/public/_nuxt/Bhm1GL_M.js +0 -1
- package/.output/public/_nuxt/BiSZmDoN.js +0 -1
- package/.output/public/_nuxt/BjK8Fug8.js +0 -1
- package/.output/public/_nuxt/BjpSpz5C.js +0 -1
- package/.output/public/_nuxt/BkqB6n0T.js +0 -1
- package/.output/public/_nuxt/BoPjUGS6.js +0 -1
- package/.output/public/_nuxt/BtwwqY0e.js +0 -1
- package/.output/public/_nuxt/C0l_59dE.js +0 -1
- package/.output/public/_nuxt/C1TOiVRQ.js +0 -9
- package/.output/public/_nuxt/C80Zs8U0.js +0 -1
- package/.output/public/_nuxt/CFZerEKx.js +0 -2
- package/.output/public/_nuxt/CSPqdI4x.js +0 -1
- package/.output/public/_nuxt/CTYqoFvv.js +0 -1
- package/.output/public/_nuxt/CYJEOEaU.js +0 -1
- package/.output/public/_nuxt/CYu-xp_f.js +0 -1
- package/.output/public/_nuxt/CZvnl0uO.js +0 -52
- package/.output/public/_nuxt/CadjlDLt.js +0 -1
- package/.output/public/_nuxt/CeXr_3vU.js +0 -2
- package/.output/public/_nuxt/Culm7V2R.js +0 -53
- package/.output/public/_nuxt/CzBFxx8v.js +0 -1
- package/.output/public/_nuxt/D8KJQqug.js +0 -1
- package/.output/public/_nuxt/D8Z5BXgG.js +0 -26
- package/.output/public/_nuxt/DDK9-_jm.js +0 -1
- package/.output/public/_nuxt/DDQU7vSH.js +0 -1
- package/.output/public/_nuxt/DSEkO8kW.js +0 -1
- package/.output/public/_nuxt/Da1F0IxL.js +0 -1
- package/.output/public/_nuxt/DdtQIDaq.js +0 -1
- package/.output/public/_nuxt/Dfz8k_Rn.js +0 -1
- package/.output/public/_nuxt/DitYzGT4.js +0 -1
- package/.output/public/_nuxt/Djh3G2Nf.js +0 -1
- package/.output/public/_nuxt/DmWFeTaU.js +0 -1
- package/.output/public/_nuxt/_ltJfz1p.js +0 -1
- package/.output/public/_nuxt/builds/meta/1cbed594-12e2-48e6-bea9-7a9159c3c1d3.json +0 -1
- package/.output/public/_nuxt/dkyHOJLf.js +0 -1
- package/.output/public/_nuxt/entry.D1DMaixs.css +0 -1
- package/.output/public/_nuxt/ixgiI20S.js +0 -1
- package/.output/public/_nuxt/lisFd8W1.js +0 -2
- package/.output/public/_nuxt/uHyBIwWw.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d,$ as v,a0 as f,k as i,o as u,w as l,E as c,a1 as m,a2 as _,g as e,a3 as g,a4 as w,a5 as I,c as x,p as y,j as M}from"./C6teO48Y.js";import{M as P}from"./WGDY9i_Q.js";import{D as z,d as b,a as h}from"./BMVgfiQu.js";var B=d({__name:"DropdownMenuItem",props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(r,{emit:s}){const o=r,a=v(s);return f(),(t,p)=>(u(),i(e(P),m(_({...o,...e(a)})),{default:l(()=>[c(t.$slots,"default")]),_:3},16))}}),C=B;const S=d({__name:"DropdownMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{},inset:{type:Boolean},variant:{default:"default"}},setup(r){const s=r,o=g(s,"inset","variant"),n=w(o),a=I(z,x(()=>"default"));return(t,p)=>(u(),i(e(C),y({"data-slot":"dropdown-menu-item","data-size":e(a),"data-inset":t.inset?"":void 0,"data-variant":t.variant},e(n),{class:e(M)("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive-foreground data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/40 data-[variant=destructive]:focus:text-destructive-foreground data-[variant=destructive]:*:[svg]:!text-destructive-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e(b)[e(a)],t.inset&&e(h)[e(a)],s.class)}),{default:l(()=>[c(t.$slots,"default")]),_:3},16,["data-size","data-inset","data-variant","class"]))}});export{S as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as f,a0 as x,aj as P,r as M,ak as I,bV as S,aa as E,k as c,o as m,w as u,E as g,g as e,i as F,bJ as b,al as D,p as _,a1 as R,a2 as A,an as T,f as C,ab as N,bH as $,aq as K,a3 as j,c as h,aK as L,a5 as U,j as V,a4 as W}from"./C6teO48Y.js";import{a as J,b as H,c as Y,d as Z}from"./WGDY9i_Q.js";const[q,G]=E("DropdownMenuRoot");var Q=f({__name:"DropdownMenuRoot",props:{defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1,default:void 0},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(d,{emit:i}){const t=d,p=i;x();const a=P(t,"open",p,{defaultValue:t.defaultOpen,passive:t.open===void 0}),o=M(),{modal:r,dir:s}=I(t),n=S(s);return G({open:a,onOpenChange:l=>{a.value=l},onOpenToggle:()=>{a.value=!a.value},triggerId:"",triggerElement:o,contentId:"",modal:r,dir:n}),(l,w)=>(m(),c(e(J),{open:e(a),"onUpdate:open":w[0]||(w[0]=y=>F(a)?a.value=y:null),dir:e(n),modal:e(r)},{default:u(()=>[g(l.$slots,"default",{open:e(a)})]),_:3},8,["open","dir","modal"]))}}),X=Q,ee=f({__name:"DropdownMenuContent",props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(d,{emit:i}){const a=b(d,i);x();const o=q(),r=M(!1);function s(n){n.defaultPrevented||(r.value||setTimeout(()=>{var l;(l=o.triggerElement.value)==null||l.focus()},0),r.value=!1,n.preventDefault())}return o.contentId||(o.contentId=D(void 0,"reka-dropdown-menu-content")),(n,l)=>{var w;return m(),c(e(H),_(e(a),{id:e(o).contentId,"aria-labelledby":(w=e(o))==null?void 0:w.triggerId,style:{"--reka-dropdown-menu-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-dropdown-menu-content-available-width":"var(--reka-popper-available-width)","--reka-dropdown-menu-content-available-height":"var(--reka-popper-available-height)","--reka-dropdown-menu-trigger-width":"var(--reka-popper-anchor-width)","--reka-dropdown-menu-trigger-height":"var(--reka-popper-anchor-height)"},onCloseAutoFocus:s,onInteractOutside:l[0]||(l[0]=y=>{var B;if(y.defaultPrevented)return;const v=y.detail.originalEvent,k=v.button===0&&v.ctrlKey===!0,O=v.button===2||k;(!e(o).modal.value||O)&&(r.value=!0),(B=e(o).triggerElement.value)!=null&&B.contains(y.target)&&y.preventDefault()})}),{default:u(()=>[g(n.$slots,"default")]),_:3},16,["id","aria-labelledby"])}}}),te=ee,oe=f({__name:"DropdownMenuPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(d){const i=d;return(t,p)=>(m(),c(e(Y),R(A(i)),{default:u(()=>[g(t.$slots,"default")]),_:3},16))}}),ae=oe,se=f({__name:"DropdownMenuTrigger",props:{disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(d){const i=d,t=q(),{forwardRef:p,currentElement:a}=x();return T(()=>{t.triggerElement=a}),t.triggerId||(t.triggerId=D(void 0,"reka-dropdown-menu-trigger")),(o,r)=>(m(),c(e(Z),{"as-child":""},{default:u(()=>[C(e(N),{id:e(t).triggerId,ref:e(p),type:o.as==="button"?"button":void 0,"as-child":i.asChild,as:o.as,"aria-haspopup":"menu","aria-expanded":e(t).open.value,"aria-controls":e(t).open.value?e(t).contentId:void 0,"data-disabled":o.disabled?"":void 0,disabled:o.disabled,"data-state":e(t).open.value?"open":"closed",onClick:r[0]||(r[0]=async s=>{var n;!o.disabled&&s.button===0&&s.ctrlKey===!1&&((n=e(t))==null||n.onOpenToggle(),await K(),e(t).open.value&&s.preventDefault())}),onKeydown:r[1]||(r[1]=$(s=>{o.disabled||(["Enter"," "].includes(s.key)&&e(t).onOpenToggle(),s.key==="ArrowDown"&&e(t).onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())},["enter","space","arrow-down"]))},{default:u(()=>[g(o.$slots,"default")]),_:3},8,["id","type","as-child","as","aria-expanded","aria-controls","data-disabled","disabled","data-state"])]),_:3}))}}),re=se;const z=Symbol("dropdown-menu-size"),ie=f({__name:"DropdownMenu",props:{defaultOpen:{type:Boolean},open:{type:Boolean},dir:{},modal:{type:Boolean},size:{default:"default"}},emits:["update:open"],setup(d,{emit:i}){const t=d,p=i,a=j(t,"size"),o=b(a,p),r=h(()=>t.size);return L(z,r),(s,n)=>(m(),c(e(X),_({"data-slot":"dropdown-menu"},e(o)),{default:u(()=>[g(s.$slots,"default")]),_:3},16))}}),ne={lg:"p-1.5",default:"p-1",sm:"p-1",xxs:"p-0.5"},pe={lg:"px-3 py-2 text-sm",default:"px-2 py-1.5 text-sm",sm:"px-2 py-1 text-sm",xxs:"px-1.5 py-1 text-xs"},ue={lg:"pl-9",default:"pl-8",sm:"pl-7",xxs:"pl-6"},fe={lg:"py-2 pr-3 pl-9 text-sm",default:"py-1.5 pr-2 pl-8 text-sm",sm:"py-1 pr-2 pl-7 text-sm",xxs:"py-1 pr-1.5 pl-6 text-xs"},ce={lg:"left-3 size-4",default:"left-2 size-3.5",sm:"left-2 size-3.5",xxs:"left-1.5 size-3"},me={lg:"size-4",default:"size-4",sm:"size-3.5",xxs:"size-3"},ge={lg:"size-2.5",default:"size-2",sm:"size-2",xxs:"size-1.5"},ye={lg:"px-3 py-2 text-sm",default:"px-2 py-1.5 text-sm",sm:"px-2 py-1 text-sm",xxs:"px-1.5 py-1 text-xs"},we={lg:"-mx-1.5 my-1.5",default:"-mx-1 my-1",sm:"-mx-1 my-1",xxs:"-mx-0.5 my-0.5"},_e=f({__name:"DropdownMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{default:4},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},class:{},restoreFocus:{type:Boolean,default:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(d,{emit:i}){const t=d,p=i,a=h(()=>{const{class:s,restoreFocus:n,...l}=t;return l}),o=b(a,p),r=U(z,h(()=>"default"));return(s,n)=>(m(),c(e(ae),null,{default:u(()=>[C(e(te),_({"data-slot":"dropdown-menu-content","data-size":e(r)},e(o),{onCloseAutoFocus:n[0]||(n[0]=l=>!t.restoreFocus&&l.preventDefault()),class:e(V)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--reka-dropdown-menu-content-available-height) min-w-[8rem] origin-(--reka-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",e(ne)[e(r)],t.class)}),{default:u(()=>[g(s.$slots,"default")]),_:3},16,["data-size","class"])]),_:3}))}}),ve=f({__name:"DropdownMenuTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(d){const t=W(d);return(p,a)=>(m(),c(e(re),_({"data-slot":"dropdown-menu-trigger"},e(t)),{default:u(()=>[g(p.$slots,"default")]),_:3},16))}});export{z as D,ie as _,ue as a,ye as b,we as c,pe as d,ve as e,_e as f,fe as g,ce as h,ge as i,me as j};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as H}from"./DH2V7e8U.js";import{d as R,bz as K,e as a,m as d,f as o,bj as P,w,g as r,A as j,N as G,o as t,z as k,k as V,t as u,l as S,bm as W,r as q,c as M,an as J,F as y,s as T,n as z,j as X,bi as Y,V as Z,i as ee,bA as te,bB as se,bC as ne}from"./C6teO48Y.js";import{_ as oe,a as ae}from"./DQRyK9Io.js";import{_ as ie}from"./BC82eJHt.js";import{_ as A}from"./DZ4xLzJg.js";import{_ as re}from"./Cv9v5fHN.js";const de={class:"flex flex-col gap-2 rounded-lg border bg-card p-4 sm:flex-row sm:items-end sm:justify-between"},le={class:"flex min-w-0 flex-1 flex-col gap-1.5"},ce={class:"flex h-9 items-center justify-center sm:w-6"},ue={class:"flex min-w-0 flex-1 flex-col gap-1.5"},me=R({__name:"SchemaDiffConnectionSelector",props:{sourceConnection:{},targetConnection:{},connections:{},isLoading:{type:Boolean}},emits:["update:targetConnection","run"],setup(x,{emit:_}){const{workspaceId:p}=K(),l=_;return(n,f)=>{var e,c;const g=P,v=j,C=G;return t(),a("div",de,[d("div",le,[o(g,{class:"text-xs font-medium text-muted-foreground"},{default:w(()=>f[2]||(f[2]=[k("Source")])),_:1}),o(A,{class:"h-9 w-full","workspace-id":r(p)||"","connection-id":((e=n.sourceConnection)==null?void 0:e.id)||"",connection:n.sourceConnection||void 0,connections:n.sourceConnection?[n.sourceConnection]:[],disabled:""},null,8,["workspace-id","connection-id","connection","connections"])]),d("div",ce,[o(v,{name:"hugeicons:arrow-right-02",class:"size-4 text-muted-foreground"})]),d("div",ue,[o(g,{class:"text-xs font-medium text-muted-foreground"},{default:w(()=>f[3]||(f[3]=[k("Target")])),_:1}),o(A,{class:"h-9 w-full","workspace-id":r(p)||"","connection-id":((c=n.targetConnection)==null?void 0:c.id)||"",connection:n.targetConnection||void 0,connections:n.connections,"onUpdate:connectionId":f[0]||(f[0]=$=>l("update:targetConnection",n.connections.find(b=>b.id===$)||null)),"skip-strict-mode-connections":""},null,8,["workspace-id","connection-id","connection","connections"])]),o(C,{disabled:!n.sourceConnection||!n.targetConnection||n.isLoading,size:"sm",onClick:f[1]||(f[1]=$=>l("run"))},{default:w(()=>[n.isLoading?(t(),V(v,{key:0,name:"hugeicons:loading-03",class:"size-4 animate-spin"})):(t(),V(v,{key:1,name:"hugeicons:git-compare",class:"size-4"})),k(" "+u(n.isLoading?"Comparing...":"Run Diff"),1)]),_:1},8,["disabled"])])}}}),fe={class:"flex flex-col gap-3"},pe={class:"flex items-center gap-3"},ge={class:"flex items-center gap-2 text-sm"},xe={class:"text-xs text-muted-foreground"},_e={class:"ml-auto flex items-center gap-2 text-xs"},he={key:0,class:"flex items-center gap-1 rounded-md bg-red-100 px-2 py-1 text-xs text-red-700 dark:bg-red-900/30 dark:text-red-400"},ve={key:0,class:"flex items-start gap-2 rounded-md border border-amber-200 bg-amber-50 p-3 text-xs text-amber-800 dark:border-amber-800 dark:bg-amber-900/20 dark:text-amber-300"},ye={key:2,class:"min-h-32 flex items-center justify-center rounded-md border bg-muted/30 p-4 font-mono text-xs text-muted-foreground"},ke=R({__name:"SchemaDiffSqlPanel",props:{sql:{},safeMode:{type:Boolean},statementCount:{},destructiveCount:{}},emits:["update:safeMode"],setup(x,{emit:_}){const p=_;return(l,n)=>{const f=j,g=P,v=W,C=re;return t(),a("div",fe,[d("div",pe,[d("div",ge,[o(f,{name:"hugeicons:code",class:"size-4 text-muted-foreground"}),n[1]||(n[1]=d("span",{class:"font-medium"},"Generated SQL",-1)),d("span",xe,"("+u(l.statementCount)+" statements)",1)]),d("div",_e,[o(g,{for:"safe-mode-toggle",class:"cursor-pointer text-muted-foreground"},{default:w(()=>n[2]||(n[2]=[k(" Safe mode ")])),_:1}),o(v,{id:"safe-mode-toggle","model-value":l.safeMode,"onUpdate:modelValue":n[0]||(n[0]=e=>p("update:safeMode",e))},null,8,["model-value"])]),l.destructiveCount>0&&!l.safeMode?(t(),a("div",he,[o(f,{name:"hugeicons:alert-circle",class:"size-3.5"}),k(" "+u(l.destructiveCount)+" destructive ",1)])):S("",!0)]),l.safeMode?(t(),a("div",ve,[o(f,{name:"hugeicons:shield-01",class:"mt-0.5 size-3.5 shrink-0"}),n[3]||(n[3]=d("span",null,"Safe mode is on — destructive statements (DROP TABLE, DROP COLUMN) are commented out. Disable to include them.",-1))])):S("",!0),l.sql?(t(),V(C,{key:1,code:l.sql,language:"sql","max-height":"400px"},null,8,["code"])):(t(),a("div",ye," No SQL statements generated. "))])}}}),be={class:"space-y-1 font-mono text-sm"},Ce={class:"mb-3 flex flex-wrap gap-2"},we=["onClick"],$e={key:0,class:"divide-y"},ze=["onClick"],Se={class:"flex-1 truncate"},De={class:"flex-1 truncate text-xs"},qe={class:"shrink-0 text-xxs text-muted-foreground"},Le={class:"flex-1 truncate text-xs"},Te={class:"flex-1 truncate"},Me={class:"flex-1 truncate"},Ve={key:0,class:"flex flex-col items-center gap-2 py-12 text-muted-foreground"},Be=R({__name:"SchemaDiffTree",props:{result:{}},setup(x){const _=q(new Set),p=q(new Set),l={added:{label:"Added",class:"text-emerald-600 dark:text-emerald-400",icon:"hugeicons:plus-sign"},removed:{label:"Removed",class:"text-red-600 dark:text-red-400",icon:"hugeicons:minus-sign"},modified:{label:"Modified",class:"text-amber-600 dark:text-amber-400",icon:"hugeicons:edit-02"},unchanged:{label:"Unchanged",class:"text-muted-foreground",icon:"hugeicons:check-01"}},n={added:"bg-emerald-100 text-emerald-700 dark:bg-emerald-900/40 dark:text-emerald-400 rounded-sm",removed:"bg-red-100 text-red-700 dark:bg-red-900/40 dark:text-red-400 rounded-sm",modified:"bg-amber-100 text-amber-700 dark:bg-amber-900/40 dark:text-amber-400 rounded-sm"},f=e=>{_.value.has(e)?_.value.delete(e):_.value.add(e)},g=e=>{p.value.has(e)?p.value.delete(e):p.value.add(e)},v=(e,c)=>`${e}.${c}`,C=M(()=>x.result.schemas.filter(e=>e.tables.some(c=>c.status!=="unchanged")||e.views.some(c=>c.status!=="unchanged")||e.functions.some(c=>c.status!=="unchanged")));return J(()=>{for(const e of C.value)_.value.add(e.name)}),(e,c)=>{const $=Y,b=j;return t(),a("div",be,[d("div",Ce,[(t(!0),a(y,null,T(e.result.summary,(h,s)=>(t(),a(y,{key:s},[s!=="unchanged"?(t(),V($,{key:0,variant:"outline",class:z(r(X)(n[s],"capitalize border-0"))},{default:w(()=>[k(u(h)+" "+u(s),1)]),_:2},1032,["class"])):S("",!0)],64))),128))]),(t(!0),a(y,null,T(r(C),h=>(t(),a("div",{key:h.name,class:"rounded-md border overflow-hidden"},[d("button",{class:"flex w-full items-center gap-2 bg-muted/50 px-3 py-2 text-left text-xs font-semibold capitalize text-muted-foreground hover:bg-muted",onClick:s=>f(h.name)},[o(b,{name:r(_).has(h.name)?"hugeicons:arrow-down-01":"hugeicons:arrow-right-01",class:"size-3.5 shrink-0"},null,8,["name"]),o(b,{name:"hugeicons:database",class:"size-3.5 shrink-0"}),k(" "+u(h.name),1)],8,we),r(_).has(h.name)?(t(),a("div",$e,[(t(!0),a(y,null,T(h.tables.filter(s=>s.status!=="unchanged"),s=>(t(),a(y,{key:s.name},[d("div",{class:z(["flex cursor-pointer items-center gap-2 px-4 py-2 hover:bg-muted/30",l[s.status].class]),onClick:i=>g(v(h.name,s.name))},[o(b,{name:r(p).has(v(h.name,s.name))?"hugeicons:arrow-down-01":"hugeicons:arrow-right-01",class:"size-3 shrink-0 text-muted-foreground"},null,8,["name"]),o(b,{name:"hugeicons:table-01",class:"size-3.5 shrink-0"}),d("span",Se,u(s.name),1),d("span",{class:z(["ml-auto shrink-0 rounded px-1.5 py-0.5 text-xxs font-medium capitalize",n[s.status]])},u(s.status),3)],10,ze),r(p).has(v(h.name,s.name))?(t(),a(y,{key:0},[(t(!0),a(y,null,T(s.columns.filter(i=>i.status!=="unchanged"),i=>{var D,m,B;return t(),a("div",{key:i.name,class:z(["flex items-center gap-2 py-1.5 pl-10 pr-4",l[i.status].class])},[o(b,{name:"hugeicons:columns-02",class:"size-3 shrink-0 opacity-60"}),d("span",De,u(i.name),1),d("span",qe,[i.status==="added"?(t(),a(y,{key:0},[k(u((D=i.source)==null?void 0:D.type),1)],64)):i.status==="removed"?(t(),a(y,{key:1},[k(u((m=i.target)==null?void 0:m.type),1)],64)):(B=i.changes)!=null&&B.type?(t(),a(y,{key:2},[k(u(i.changes.type.from)+" → "+u(i.changes.type.to),1)],64)):S("",!0)]),d("span",{class:z(["shrink-0 rounded px-1 py-0.5 text-[9px] font-medium capitalize",n[i.status]])},u(i.status),3)],2)}),128)),(t(!0),a(y,null,T(s.foreignKeys.filter(i=>i.status!=="unchanged"),i=>(t(),a("div",{key:i.key,class:z(["flex items-center gap-2 py-1.5 pl-10 pr-4",l[i.status].class])},[o(b,{name:"hugeicons:link-01",class:"size-3 shrink-0 opacity-60"}),d("span",Le,u(i.key),1),d("span",{class:z(["shrink-0 rounded px-1 py-0.5 text-[9px] font-medium capitalize",n[i.status]])},u(i.status),3)],2))),128))],64)):S("",!0)],64))),128)),(t(!0),a(y,null,T(h.views.filter(s=>s.status!=="unchanged"),s=>(t(),a("div",{key:s.name,class:z(["flex items-center gap-2 px-4 py-2",l[s.status].class])},[o(b,{name:"hugeicons:eye",class:"size-3.5 shrink-0"}),d("span",Te,u(s.name),1),c[0]||(c[0]=d("span",{class:"ml-2 shrink-0 text-xxs text-muted-foreground"},"view",-1)),d("span",{class:z(["ml-auto shrink-0 rounded px-1.5 py-0.5 text-xxs font-medium capitalize",n[s.status]])},u(s.status),3)],2))),128)),(t(!0),a(y,null,T(h.functions.filter(s=>s.status!=="unchanged"),s=>(t(),a("div",{key:s.signature,class:z(["flex items-center gap-2 px-4 py-2",l[s.status].class])},[o(b,{name:"hugeicons:function-of-x",class:"size-3.5 shrink-0"}),d("span",Me,u(s.name),1),c[1]||(c[1]=d("span",{class:"ml-2 shrink-0 text-xxs text-muted-foreground"},"fn",-1)),d("span",{class:z(["ml-auto shrink-0 rounded px-1.5 py-0.5 text-xxs font-medium capitalize",n[s.status]])},u(s.status),3)],2))),128))])):S("",!0)]))),128)),r(C).length===0?(t(),a("div",Ve,[o(b,{name:"hugeicons:checkmark-circle-02",class:"size-10 text-emerald-500"}),c[2]||(c[2]=d("p",{class:"text-sm font-medium"},"Schemas are identical",-1)),c[3]||(c[3]=d("p",{class:"text-xs"},"No differences detected between source and target.",-1))])):S("",!0)])}}}),Ie={diff:x=>$fetch("/api/schema-diff",{method:"POST",body:x})};function Re(){const x=q(null),_=q(!1),p=q(null),l=q(!0),n=e=>({type:e.type,connectionString:e.connectionString,host:e.host,port:e.port,username:e.username,password:e.password,database:e.database,ssl:e.ssl,ssh:e.ssh}),f=async(e,c)=>{_.value=!0,p.value=null,x.value=null;try{x.value=await Ie.diff({source:n(e),target:n(c),safeMode:l.value})}catch($){p.value=$ instanceof Error?$.message:"Schema diff failed. Check connection details."}finally{_.value=!1}},g=()=>{x.value=null,p.value=null},v=M(()=>x.value?l.value?x.value.sql.safe:x.value.sql.full:""),C=M(()=>{if(!x.value)return!1;const{added:e,removed:c,modified:$}=x.value.summary;return e+c+$>0});return{result:x,isLoading:_,error:p,safeMode:l,currentSql:v,hasDifferences:C,runDiff:f,reset:g}}const je={class:"flex h-full flex-col gap-4 overflow-hidden p-4"},Ne={class:"flex items-center justify-between gap-2"},Ae={key:0,class:"ml-1 rounded-full bg-primary px-1.5 py-0.5 text-xxs text-primary-foreground"},Pe={key:0,class:"ml-1 rounded-full bg-muted px-1.5 py-0.5 text-xxs text-muted-foreground"},Ue={class:"text-xs text-muted-foreground"},Oe={key:0,class:"flex-1 overflow-y-auto"},Qe={key:1,class:"flex-1 overflow-y-auto"},Ee={key:2,class:"flex flex-1 flex-col items-center justify-center gap-3 text-muted-foreground"},Xe=R({__name:"SchemaDiffContainer",props:{sourceConnectionId:{}},setup(x){const _=x,p=Z(),l=M(()=>p.connections.find(D=>D.id===_.sourceConnectionId)??null),n=M(()=>p.connections.filter(D=>D.id!==_.sourceConnectionId)),f=q(null),{result:g,isLoading:v,error:C,safeMode:e,currentSql:c,hasDifferences:$,runDiff:b}=Re(),h=async()=>{!l.value||!f.value||await b(l.value,f.value)},s=M(()=>{var D;return((D=g.value)==null?void 0:D.sql.statements.filter(m=>m.destructive).length)??0}),i=q("diff");return(D,m)=>{const B=H,I=j,U=ie,O=ae,Q=oe,N=ne,E=se,F=te;return t(),a("div",je,[o(B,{icon:"hugeicons:git-compare",title:"Schema Diff",description:"Compare schemas between two database connections and generate sync SQL."}),o(me,{"source-connection":r(l),"target-connection":r(f),connections:r(n),"is-loading":r(v),"onUpdate:targetConnection":m[0]||(m[0]=L=>f.value=L),onRun:h},null,8,["source-connection","target-connection","connections","is-loading"]),r(C)?(t(),V(Q,{key:0,class:"border-border bg-muted/30"},{default:w(()=>[o(I,{name:"hugeicons:alert-circle",class:"size-4 text-destructive"}),o(U,{class:"text-destructive"},{default:w(()=>m[5]||(m[5]=[k("Diff Failed")])),_:1}),o(O,{class:"text-muted-foreground"},{default:w(()=>[k(u(r(C)),1)]),_:1})]),_:1})):S("",!0),r(g)?(t(),a(y,{key:1},[d("div",Ne,[o(F,{modelValue:r(i),"onUpdate:modelValue":m[3]||(m[3]=L=>ee(i)?i.value=L:null),class:"min-w-0 flex-1 gap-0"},{default:w(()=>[o(E,{size:"sm",class:"max-w-full justify-start! overflow-x-auto"},{default:w(()=>[o(N,{size:"xs",value:"diff",class:"min-w-fit shrink-0 cursor-pointer rounded-sm",onClick:m[1]||(m[1]=L=>i.value="diff")},{default:w(()=>[o(I,{name:"hugeicons:git-compare",class:"shrink-0 size-3.5"}),m[6]||(m[6]=k(" Diff View ")),r($)?(t(),a("span",Ae,u(r(g).summary.added+r(g).summary.removed+r(g).summary.modified),1)):S("",!0)]),_:1}),o(N,{value:"sql",class:"min-w-fit shrink-0 cursor-pointer rounded-sm px-1.5 text-xs",onClick:m[2]||(m[2]=L=>i.value="sql")},{default:w(()=>[o(I,{name:"hugeicons:code",class:"shrink-0 size-3.5"}),m[7]||(m[7]=k(" SQL ")),r(g).sql.statements.length>0?(t(),a("span",Pe,u(r(g).sql.statements.length),1)):S("",!0)]),_:1})]),_:1})]),_:1},8,["modelValue"]),d("div",Ue,u(r(i)==="diff"?"Visualize structural differences":"Review synchronization script"),1)]),r(i)==="diff"?(t(),a("div",Oe,[o(Be,{result:r(g)},null,8,["result"])])):(t(),a("div",Qe,[o(ke,{sql:r(c),"safe-mode":r(e),"statement-count":r(g).sql.statements.length,"destructive-count":r(s),"onUpdate:safeMode":m[4]||(m[4]=L=>e.value=L)},null,8,["sql","safe-mode","statement-count","destructive-count"])]))],64)):r(v)?S("",!0):(t(),a("div",Ee,[o(I,{name:"hugeicons:git-compare",class:"size-14 opacity-30"}),m[8]||(m[8]=d("p",{class:"text-sm"},"Select a target connection and run the diff",-1))]))])}}});export{Xe as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as a,e as w,l as x}from"./
|
|
1
|
+
import{_ as a,e as w,l as x}from"./BJvJ0Hlu.js";var d=a((e,t,i,o)=>{e.attr("class",i);const{width:r,height:h,x:n,y:c}=u(e,t);w(e,h,r,o);const s=l(n,c,r,h,t);e.attr("viewBox",s),x.debug(`viewBox configured: ${s} with padding: ${t}`)},"setupViewPortForSVG"),u=a((e,t)=>{var o;const i=((o=e.node())==null?void 0:o.getBBox())||{width:0,height:0,x:0,y:0};return{width:i.width+t*2,height:i.height+t*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),l=a((e,t,i,o,r)=>`${e-r} ${t-r} ${i} ${o}`,"createViewBox");export{d as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{S as ee,d as ne,e as q,o as v,n as ve,m as f,k as S,l as F,f as n,w as t,g as e,J as k,N as pe,z as u,A as b,L as R,O as z,V as ge,a$ as _e,ad as Ce,r as c,c as C,G as Q,b0 as be,b1 as Se,b2 as ye,b3 as he,b4 as we,b5 as $e,b6 as xe,b7 as ke,i as A,b8 as K,b9 as G,ba as H,t as Re,bb as j,bc as J,bd as Y,be as Z,bf as ze,bg as W,ae as Pe,bh as De,F as Te,K as Fe}from"./C6teO48Y.js";import{_ as Oe}from"./Cv9v5fHN.js";import{s as qe}from"./Dtry_3Qa.js";import{g as O,a as X}from"./COAycMg4.js";import{_ as Me,f as Ne}from"./DpsqSAMo.js";import{_ as Ue}from"./D5GonnbJ.js";import{m as Be}from"./BYaoWfSN.js";import{u as Ee}from"./CvbYm0uB.js";import"./BHr4_sbs.js";import"./BuTCm7Bo.js";const Ie=w=>ee.of([{key:"Ctrl-s",mac:"Cmd-s",run:g=>{const m=g.state.doc.toString();return w(m),!0},preventDefault:!0}]),Le={class:ve(["flex items-center justify-between p-1 rounded-md bg-muted"])},Ve={class:"flex items-center gap-1"},Qe={key:0,class:"text-xs text-muted-foreground"},Ae=ne({__name:"FunctionControlBar",props:{hasChanges:{type:Boolean},isSaving:{type:Boolean}},emits:["onPreview","onSave","onDiscard","onReload"],setup(w,{emit:g}){const m=g;return(d,s)=>{const i=pe,_=Ue;return v(),q("div",Le,[f("div",Ve,[d.hasChanges?(v(),S(e(z),{key:0},{default:t(()=>[n(e(k),{"as-child":""},{default:t(()=>[f("div",null,[n(i,{variant:"outline",size:"xxs",disabled:d.isSaving,onClick:s[0]||(s[0]=r=>m("onPreview"))},{default:t(()=>[n(e(b),{name:"lucide:file-search",class:"size-4"}),s[4]||(s[4]=u(" Preview changes "))]),_:1},8,["disabled"])])]),_:1}),n(e(R),null,{default:t(()=>s[5]||(s[5]=[f("p",null,"Preview SQL changes before saving",-1)])),_:1})]),_:1})):F("",!0),n(e(z),null,{default:t(()=>[n(e(k),{"as-child":""},{default:t(()=>[f("div",null,[n(i,{variant:"outline",size:"xxs",disabled:!d.hasChanges||d.isSaving,onClick:s[1]||(s[1]=r=>m("onSave"))},{default:t(()=>[d.isSaving?(v(),S(e(b),{key:0,name:"hugeicons:loading-03",class:"size-4 animate-spin"})):(v(),S(e(b),{key:1,name:"lucide:save",class:"size-4"})),s[7]||(s[7]=u(" Save ")),n(_,null,{default:t(()=>s[6]||(s[6]=[u("⌘S")])),_:1})]),_:1},8,["disabled"])])]),_:1}),n(e(R),null,{default:t(()=>[s[8]||(s[8]=f("p",null,"Save routine changes",-1)),d.hasChanges?F("",!0):(v(),q("p",Qe," No changes to save "))]),_:1})]),_:1}),n(e(z),null,{default:t(()=>[n(e(k),{"as-child":""},{default:t(()=>[f("div",null,[n(i,{variant:"outline",size:"xxs",disabled:d.isSaving,onClick:s[2]||(s[2]=r=>m("onReload"))},{default:t(()=>[n(e(b),{name:"lucide:refresh-cw",class:"size-4"}),s[10]||(s[10]=u(" Reload ")),n(_,null,{default:t(()=>s[9]||(s[9]=[u("⌘R")])),_:1})]),_:1},8,["disabled"])])]),_:1}),n(e(R),null,{default:t(()=>s[11]||(s[11]=[f("p",null,"Reload latest version from database",-1)])),_:1})]),_:1}),d.hasChanges?(v(),S(e(z),{key:1},{default:t(()=>[n(e(k),{"as-child":""},{default:t(()=>[f("div",null,[n(i,{variant:"outline",size:"xxs",disabled:d.isSaving,onClick:s[3]||(s[3]=r=>m("onDiscard"))},{default:t(()=>[n(e(b),{name:"lucide:undo-2",class:"size-4"}),s[12]||(s[12]=u(" discard changes "))]),_:1},8,["disabled"])])]),_:1}),n(e(R),null,{default:t(()=>s[13]||(s[13]=[f("p",null,"Discard changes",-1)])),_:1})]),_:1})):F("",!0)])])}}}),Ke={class:"flex flex-col h-full p-1"},Ge={class:"flex flex-col h-full border rounded-md"},He={class:"h-full flex flex-col overflow-y-auto relative"},sn=ne({__name:"FunctionDetail",props:{functionId:{},connectionId:{}},setup(w){const g=w,m=ge(),d=_e(),{activeSchema:s}=Ce(d),i=c(""),_=c(""),r=c(!1),M=c(""),N=c("Query error!"),$=c(!1),y=c(!1),h=c(""),ae=C(()=>O(i.value)),te=C(()=>O(_.value)),P=C(()=>ae.value!==te.value),se=C(()=>{const o=X(h.value);return o?`${o} update preview`:"Routine update preview"}),oe=C(()=>{var o;return Be({schemas:d.activeSchemas,defaultSchemaName:(o=s.value)==null?void 0:o.name})}),le=new be,U=C(()=>g.connectionId?m.connections.find(o=>o.id===g.connectionId):m.selectedConnection),B=C(()=>({functionId:g.functionId,...Q(U.value)})),{status:ie,refresh:E}=Ee("/api/functions/definition",{method:"POST",body:B,onResponse:o=>{if(typeof o.response._data=="string"){const a=o.response._data||"";i.value=a,_.value=a}},watch:[B]},"$cS7qZacQ7d"),D=(o,a)=>{N.value=o,M.value=a,$.value=!0},I=()=>{if(!P.value){D("No changes to save","The routine definition already matches the loaded version.");return}const o=O(i.value);if(!X(o)){D("Invalid routine definition","Preview requires a valid CREATE OR REPLACE FUNCTION or PROCEDURE statement.");return}return o},ue=()=>{if(r.value)return;const o=I();o&&(h.value=o,y.value=!0)},L=async(o=h.value)=>{var a;if(!(!o||r.value)){r.value=!0;try{const l=await $fetch("/api/functions/update",{method:"POST",body:{...Q(U.value),functionDefinition:o}});_.value=i.value,y.value=!1,Fe.success("Routine saved",{description:`Updated successfully in ${(l==null?void 0:l.queryTime)??0}ms`})}catch(l){y.value=!1,D("Save failed",((a=l==null?void 0:l.data)==null?void 0:a.message)||(l==null?void 0:l.message)||"Failed to save routine.")}finally{r.value=!1}}},V=async()=>{if(r.value)return;const o=I();o&&(h.value=o,await L(o))},re=()=>{i.value=_.value},x=c(!1),T=async()=>{P.value?x.value=!0:await E()},de=async()=>{x.value=!1,await E()},fe=[Ie(o=>{i.value=o,V()}),qe(o=>Ne(o,{language:"postgresql",keywordCase:"upper"})),ee.of([{key:"Mod-i",run:he},{key:"Tab",run:we},{key:"Mod-r",mac:"Cmd-r",run:()=>(T(),!0),preventDefault:!0},{key:"F5",run:()=>(T(),!0),preventDefault:!0}]),le.of($e({dialect:xe.PostgreSQLHighlightDialect,upperCaseKeywords:!0,keywordCompletion:ke,schema:oe.value.schema})),...Se(),ye];return(o,a)=>{const l=b,me=Oe,ce=Pe;return v(),q(Te,null,[n(Me,{open:e($),"onUpdate:open":a[0]||(a[0]=p=>A($)?$.value=p:null),title:e(N),message:e(M)},null,8,["open","title","message"]),n(e(W),{open:e(y),"onUpdate:open":a[2]||(a[2]=p=>y.value=p)},{default:t(()=>[n(e(K),{size:"preview"},{default:t(()=>[n(e(G),null,{default:t(()=>[n(e(H),{class:"flex items-center text-base font-medium"},{default:t(()=>[n(l,{name:"lucide:file-search",class:"size-4 mr-2"}),u(" "+Re(e(se)),1)]),_:1}),n(e(j),null,{default:t(()=>a[5]||(a[5]=[u(" Review the exact SQL that will be submitted. The routine is not updated until you confirm this save. ")])),_:1})]),_:1}),n(me,{code:e(h),"show-copy-button":"","max-height":"24rem"},null,8,["code"]),n(e(J),null,{default:t(()=>[n(e(Y),{disabled:e(r)},{default:t(()=>a[6]||(a[6]=[u("Cancel")])),_:1},8,["disabled"]),n(e(Z),{class:"gap-2",onClick:a[1]||(a[1]=ze(p=>L(),["prevent"]))},{default:t(()=>[e(r)?(v(),S(l,{key:0,name:"hugeicons:loading-03",class:"size-4 animate-spin"})):(v(),S(l,{key:1,name:"lucide:save",class:"size-4"})),a[7]||(a[7]=u(" Save to database "))]),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),n(e(W),{open:e(x),"onUpdate:open":a[3]||(a[3]=p=>x.value=p)},{default:t(()=>[n(e(K),null,{default:t(()=>[n(e(G),null,{default:t(()=>[n(e(H),{class:"flex items-center text-base font-medium text-destructive"},{default:t(()=>[n(l,{name:"lucide:alert-triangle",class:"size-5 mr-2"}),a[8]||(a[8]=u(" Discard Unsaved Changes? "))]),_:1}),n(e(j),null,{default:t(()=>a[9]||(a[9]=[u(" You have unsaved changes in your editor. Reloading will fetch the latest definition from the database and discard all your local modifications. This action cannot be undone. ")])),_:1})]),_:1}),n(e(J),null,{default:t(()=>[n(e(Y),null,{default:t(()=>a[10]||(a[10]=[u("Cancel")])),_:1}),n(e(Z),{variant:"destructive",onClick:de},{default:t(()=>a[11]||(a[11]=[u(" Reload and Discard ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),f("div",Ke,[f("div",Ge,[n(Ae,{"has-changes":e(P),"is-saving":e(r),onOnPreview:ue,onOnSave:V,onOnDiscard:re,onOnReload:T},null,8,["has-changes","is-saving"]),f("div",He,[n(ce,{visible:e(ie)==="pending"||e(r)},null,8,["visible"]),n(De,{modelValue:e(i),"onUpdate:modelValue":a[4]||(a[4]=p=>A(i)?i.value=p:null),extensions:fe,disabled:!1},null,8,["modelValue"])])])])],64)}}});export{sn as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{bD as y,bE as k,aa as x,d as _,a0 as R,aj as j,c as p,bF as P,k as m,o as b,w as n,E as g,l as A,g as e,bG as K,p as q,bH as M,bf as N,q as z,bI as D,ab as S,f as C,ap as H,bJ as J,j as L,bK as O}from"./C6teO48Y.js";function B(s,d){return y(s)?!1:Array.isArray(s)?s.some(t=>k(t,d)):k(s,d)}const[T,ee]=x("CheckboxGroupRoot");function h(s){return s==="indeterminate"}function E(s){return h(s)?"indeterminate":s?"checked":"unchecked"}const[Q,U]=x("CheckboxRoot");var W=_({inheritAttrs:!1,__name:"CheckboxRoot",props:{defaultValue:{type:[Boolean,String],required:!1},modelValue:{type:[Boolean,String,null],required:!1,default:void 0},disabled:{type:Boolean,required:!1},value:{type:null,required:!1,default:"on"},id:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue"],setup(s,{emit:d}){const t=s,r=d,{forwardRef:c,currentElement:f}=R(),l=T(null),o=j(t,"modelValue",r,{defaultValue:t.defaultValue,passive:t.modelValue===void 0}),u=p(()=>(l==null?void 0:l.disabled.value)||t.disabled),i=p(()=>y(l==null?void 0:l.modelValue.value)?o.value==="indeterminate"?"indeterminate":o.value:B(l.modelValue.value,t.value));function F(){if(y(l==null?void 0:l.modelValue.value))o.value=h(o.value)?!0:!o.value;else{const a=[...l.modelValue.value||[]];if(B(a,t.value)){const V=a.findIndex(v=>k(v,t.value));a.splice(V,1)}else a.push(t.value);l.modelValue.value=a}}const I=P(f),$=p(()=>{var a;return t.id&&f.value?(a=document.querySelector(`[for="${t.id}"]`))==null?void 0:a.innerText:void 0});return U({disabled:u,state:i}),(a,V)=>{var v,w;return b(),m(z((v=e(l))!=null&&v.rovingFocus.value?e(D):e(S)),q(a.$attrs,{id:a.id,ref:e(c),role:"checkbox","as-child":a.asChild,as:a.as,type:a.as==="button"?"button":void 0,"aria-checked":e(h)(i.value)?"mixed":i.value,"aria-required":a.required,"aria-label":a.$attrs["aria-label"]||$.value,"data-state":e(E)(i.value),"data-disabled":u.value?"":void 0,disabled:u.value,focusable:(w=e(l))!=null&&w.rovingFocus.value?!u.value:void 0,onKeydown:M(N(()=>{},["prevent"]),["enter"]),onClick:F}),{default:n(()=>[g(a.$slots,"default",{modelValue:e(o),state:i.value}),e(I)&&a.name&&!e(l)?(b(),m(e(K),{key:0,type:"checkbox",checked:!!i.value,name:a.name,value:a.value,disabled:u.value,required:a.required},null,8,["checked","name","value","disabled","required"])):A("v-if",!0)]),_:3},16,["id","as-child","as","type","aria-checked","aria-required","aria-label","data-state","data-disabled","disabled","focusable","onKeydown"])}}}),X=W,Y=_({__name:"CheckboxIndicator",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(s){const{forwardRef:d}=R(),t=Q();return(r,c)=>(b(),m(e(H),{present:r.forceMount||e(h)(e(t).state.value)||e(t).state.value===!0},{default:n(()=>[C(e(S),q({ref:e(d),"data-state":e(E)(e(t).state.value),"data-disabled":e(t).disabled.value?"":void 0,style:{pointerEvents:"none"},"as-child":r.asChild,as:r.as},r.$attrs),{default:n(()=>[g(r.$slots,"default")]),_:3},16,["data-state","data-disabled","as-child","as"])]),_:3},8,["present"]))}}),Z=Y;const ae=_({__name:"Checkbox",props:{defaultValue:{type:[Boolean,String]},modelValue:{type:[Boolean,String,null]},disabled:{type:Boolean},value:{},id:{},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean},class:{}},emits:["update:modelValue"],setup(s,{emit:d}){const t=s,r=d,c=p(()=>{const{class:l,...o}=t;return o}),f=J(c,r);return(l,o)=>(b(),m(e(X),q({"data-slot":"checkbox"},e(f),{class:e(L)("peer border-input data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t.class)}),{default:n(()=>[C(e(Z),{"data-slot":"checkbox-indicator",class:"flex items-center justify-center text-current transition-none"},{default:n(()=>[g(l.$slots,"default",{},()=>[C(e(O),{class:"size-3.5"})])]),_:3})]),_:3},16,["class"]))}});export{ae as _,B as i};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as te}from"./
|
|
1
|
+
import{g as te}from"./BsCPQnkm.js";import{s as ee}from"./BO3FEgXG.js";import{_ as f,l as b,c as F,r as se,u as ie,a as re,b as ae,g as ne,s as oe,q as le,t as ce,ab as he,k as W,A as ue}from"./BJvJ0Hlu.js";var vt=function(){var e=f(function(V,o,h,n){for(h=h||{},n=V.length;n--;h[V[n]]=o);return h},"o"),t=[1,2],s=[1,3],a=[1,4],i=[2,4],l=[1,9],d=[1,11],S=[1,16],p=[1,17],T=[1,18],_=[1,19],m=[1,33],k=[1,20],A=[1,21],$=[1,22],x=[1,23],R=[1,24],u=[1,26],L=[1,27],I=[1,28],N=[1,29],G=[1,30],P=[1,31],B=[1,32],at=[1,35],nt=[1,36],ot=[1,37],lt=[1,38],K=[1,34],y=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],ct=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],xt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],gt={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:f(function(o,h,n,g,E,r,Z){var c=r.length-1;switch(E){case 3:return g.setRootDoc(r[c]),r[c];case 4:this.$=[];break;case 5:r[c]!="nl"&&(r[c-1].push(r[c]),this.$=r[c-1]);break;case 6:case 7:this.$=r[c];break;case 8:this.$="nl";break;case 12:this.$=r[c];break;case 13:const tt=r[c-1];tt.description=g.trimColon(r[c]),this.$=tt;break;case 14:this.$={stmt:"relation",state1:r[c-2],state2:r[c]};break;case 15:const Tt=g.trimColon(r[c]);this.$={stmt:"relation",state1:r[c-3],state2:r[c-1],description:Tt};break;case 19:this.$={stmt:"state",id:r[c-3],type:"default",description:"",doc:r[c-1]};break;case 20:var U=r[c],X=r[c-2].trim();if(r[c].match(":")){var ut=r[c].split(":");U=ut[0],X=[X,ut[1]]}this.$={stmt:"state",id:U,type:"default",description:X};break;case 21:this.$={stmt:"state",id:r[c-3],type:"default",description:r[c-5],doc:r[c-1]};break;case 22:this.$={stmt:"state",id:r[c],type:"fork"};break;case 23:this.$={stmt:"state",id:r[c],type:"join"};break;case 24:this.$={stmt:"state",id:r[c],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:r[c-1].trim(),note:{position:r[c-2].trim(),text:r[c].trim()}};break;case 29:this.$=r[c].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=r[c].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:r[c-3],url:r[c-2],tooltip:r[c-1]};break;case 33:this.$={stmt:"click",id:r[c-3],url:r[c-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:r[c-1].trim(),classes:r[c].trim()};break;case 36:this.$={stmt:"style",id:r[c-1].trim(),styleClass:r[c].trim()};break;case 37:this.$={stmt:"applyClass",id:r[c-1].trim(),styleClass:r[c].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:r[c].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:r[c-2].trim(),classes:[r[c].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:r[c-2].trim(),classes:[r[c].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:t,5:s,6:a},{1:[3]},{3:5,4:t,5:s,6:a},{3:6,4:t,5:s,6:a},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:l,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:p,19:T,22:_,24:m,25:k,26:A,27:$,28:x,29:R,32:25,33:u,35:L,37:I,38:N,41:G,45:P,48:B,51:at,52:nt,53:ot,54:lt,57:K},e(y,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:S,17:p,19:T,22:_,24:m,25:k,26:A,27:$,28:x,29:R,32:25,33:u,35:L,37:I,38:N,41:G,45:P,48:B,51:at,52:nt,53:ot,54:lt,57:K},e(y,[2,7]),e(y,[2,8]),e(y,[2,9]),e(y,[2,10]),e(y,[2,11]),e(y,[2,12],{14:[1,40],15:[1,41]}),e(y,[2,16]),{18:[1,42]},e(y,[2,18],{20:[1,43]}),{23:[1,44]},e(y,[2,22]),e(y,[2,23]),e(y,[2,24]),e(y,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(y,[2,28]),{34:[1,49]},{36:[1,50]},e(y,[2,31]),{13:51,24:m,57:K},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(ct,[2,44],{58:[1,56]}),e(ct,[2,45],{58:[1,57]}),e(y,[2,38]),e(y,[2,39]),e(y,[2,40]),e(y,[2,41]),e(y,[2,6]),e(y,[2,13]),{13:58,24:m,57:K},e(y,[2,17]),e(xt,i,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(y,[2,29]),e(y,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},e(y,[2,14],{14:[1,71]}),{4:l,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:p,19:T,21:[1,72],22:_,24:m,25:k,26:A,27:$,28:x,29:R,32:25,33:u,35:L,37:I,38:N,41:G,45:P,48:B,51:at,52:nt,53:ot,54:lt,57:K},e(y,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(y,[2,34]),e(y,[2,35]),e(y,[2,36]),e(y,[2,37]),e(ct,[2,46]),e(ct,[2,47]),e(y,[2,15]),e(y,[2,19]),e(xt,i,{7:78}),e(y,[2,26]),e(y,[2,27]),{5:[1,79]},{5:[1,80]},{4:l,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:p,19:T,21:[1,81],22:_,24:m,25:k,26:A,27:$,28:x,29:R,32:25,33:u,35:L,37:I,38:N,41:G,45:P,48:B,51:at,52:nt,53:ot,54:lt,57:K},e(y,[2,32]),e(y,[2,33]),e(y,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:f(function(o,h){if(h.recoverable)this.trace(o);else{var n=new Error(o);throw n.hash=h,n}},"parseError"),parse:f(function(o){var h=this,n=[0],g=[],E=[null],r=[],Z=this.table,c="",U=0,X=0,ut=2,tt=1,Tt=r.slice.call(arguments,1),D=Object.create(this.lexer),j={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(j.yy[Et]=this.yy[Et]);D.setInput(o,j.yy),j.yy.lexer=D,j.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var _t=D.yylloc;r.push(_t);var Qt=D.options&&D.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Zt(O){n.length=n.length-2*O,E.length=E.length-O,r.length=r.length-O}f(Zt,"popStack");function Lt(){var O;return O=g.pop()||D.lex()||tt,typeof O!="number"&&(O instanceof Array&&(g=O,O=g.pop()),O=h.symbols_[O]||O),O}f(Lt,"lex");for(var C,H,w,mt,J={},dt,Y,Ot,ft;;){if(H=n[n.length-1],this.defaultActions[H]?w=this.defaultActions[H]:((C===null||typeof C>"u")&&(C=Lt()),w=Z[H]&&Z[H][C]),typeof w>"u"||!w.length||!w[0]){var bt="";ft=[];for(dt in Z[H])this.terminals_[dt]&&dt>ut&&ft.push("'"+this.terminals_[dt]+"'");D.showPosition?bt="Parse error on line "+(U+1)+`:
|
|
2
2
|
`+D.showPosition()+`
|
|
3
3
|
Expecting `+ft.join(", ")+", got '"+(this.terminals_[C]||C)+"'":bt="Parse error on line "+(U+1)+": Unexpected "+(C==tt?"end of input":"'"+(this.terminals_[C]||C)+"'"),this.parseError(bt,{text:D.match,token:this.terminals_[C]||C,line:D.yylineno,loc:_t,expected:ft})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+H+", token: "+C);switch(w[0]){case 1:n.push(C),E.push(D.yytext),r.push(D.yylloc),n.push(w[1]),C=null,X=D.yyleng,c=D.yytext,U=D.yylineno,_t=D.yylloc;break;case 2:if(Y=this.productions_[w[1]][1],J.$=E[E.length-Y],J._$={first_line:r[r.length-(Y||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(Y||1)].first_column,last_column:r[r.length-1].last_column},Qt&&(J._$.range=[r[r.length-(Y||1)].range[0],r[r.length-1].range[1]]),mt=this.performAction.apply(J,[c,X,U,j.yy,w[1],E,r].concat(Tt)),typeof mt<"u")return mt;Y&&(n=n.slice(0,-1*Y*2),E=E.slice(0,-1*Y),r=r.slice(0,-1*Y)),n.push(this.productions_[w[1]][0]),E.push(J.$),r.push(J._$),Ot=Z[n[n.length-2]][n[n.length-1]],n.push(Ot);break;case 3:return!0}}return!0},"parse")},qt=function(){var V={EOF:1,parseError:f(function(h,n){if(this.yy.parser)this.yy.parser.parseError(h,n);else throw new Error(h)},"parseError"),setInput:f(function(o,h){return this.yy=h||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:f(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var h=o.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:f(function(o){var h=o.length,n=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===g.length?this.yylloc.first_column:0)+g[g.length-n.length].length-n[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(o){this.unput(this.match.slice(o))},"less"),pastInput:f(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var o=this.pastInput(),h=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_,o as je,c as et,d as kt,l as Q,j as ve,e as ts,f as es,k as S,b as me,s as ss,q as rs,a as as,g as is,t as ns,v as os,J as cs,A as ls,i as vt,u as H,a2 as U,a3 as Nt,a4 as Ce,a5 as hs,a6 as ds,a7 as Me,H as Gt}from"./DSOwr8Hs.js";import{a as Ts,b as Qt,g as lt,d as Es,e as $t,f as jt}from"./CWGzL6OE.js";import{I as ps}from"./DTlu-CJn.js";import"./D7uoAo-G.js";var Xt=function(){var e=_(function(Tt,b,A,N){for(A=A||{},N=Tt.length;N--;A[Tt[N]]=b);return A},"o"),t=[1,2],a=[1,3],s=[1,4],i=[2,4],n=[1,9],o=[1,11],h=[1,12],l=[1,14],r=[1,15],E=[1,17],p=[1,18],f=[1,19],u=[1,25],y=[1,26],I=[1,27],L=[1,28],w=[1,29],P=[1,30],m=[1,31],k=[1,32],v=[1,33],W=[1,34],K=[1,35],q=[1,36],G=[1,37],X=[1,38],z=[1,39],C=[1,40],$=[1,42],J=[1,43],j=[1,44],st=[1,45],rt=[1,46],O=[1,47],R=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],nt=[1,74],ot=[1,80],M=[1,81],te=[1,82],ee=[1,83],se=[1,84],re=[1,85],ae=[1,86],ie=[1,87],ne=[1,88],oe=[1,89],ce=[1,90],le=[1,91],he=[1,92],de=[1,93],Te=[1,94],Ee=[1,95],pe=[1,96],ue=[1,97],_e=[1,98],fe=[1,99],ge=[1,100],xe=[1,101],Ie=[1,102],Re=[1,103],Oe=[1,104],ye=[1,105],Le=[2,78],Lt=[4,5,17,51,53,54],At=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],be=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],Wt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],Se=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Kt=[5,52],B=[70,71,72,73],at=[1,151],Ft={trace:_(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:_(function(b,A,N,g,V,c,bt){var T=c.length-1;switch(V){case 3:return g.apply(c[T]),c[T];case 4:case 10:this.$=[];break;case 5:case 11:c[T-1].push(c[T]),this.$=c[T-1];break;case 6:case 7:case 12:case 13:this.$=c[T];break;case 8:case 9:case 14:this.$=[];break;case 16:c[T].type="createParticipant",this.$=c[T];break;case 17:c[T-1].unshift({type:"boxStart",boxData:g.parseBoxData(c[T-2])}),c[T-1].push({type:"boxEnd",boxText:c[T-2]}),this.$=c[T-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(c[T-2]),sequenceIndexStep:Number(c[T-1]),sequenceVisible:!0,signalType:g.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(c[T-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:g.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:g.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:g.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:g.LINETYPE.ACTIVE_START,actor:c[T-1].actor};break;case 24:this.$={type:"activeEnd",signalType:g.LINETYPE.ACTIVE_END,actor:c[T-1].actor};break;case 30:g.setDiagramTitle(c[T].substring(6)),this.$=c[T].substring(6);break;case 31:g.setDiagramTitle(c[T].substring(7)),this.$=c[T].substring(7);break;case 32:this.$=c[T].trim(),g.setAccTitle(this.$);break;case 33:case 34:this.$=c[T].trim(),g.setAccDescription(this.$);break;case 35:c[T-1].unshift({type:"loopStart",loopText:g.parseMessage(c[T-2]),signalType:g.LINETYPE.LOOP_START}),c[T-1].push({type:"loopEnd",loopText:c[T-2],signalType:g.LINETYPE.LOOP_END}),this.$=c[T-1];break;case 36:c[T-1].unshift({type:"rectStart",color:g.parseMessage(c[T-2]),signalType:g.LINETYPE.RECT_START}),c[T-1].push({type:"rectEnd",color:g.parseMessage(c[T-2]),signalType:g.LINETYPE.RECT_END}),this.$=c[T-1];break;case 37:c[T-1].unshift({type:"optStart",optText:g.parseMessage(c[T-2]),signalType:g.LINETYPE.OPT_START}),c[T-1].push({type:"optEnd",optText:g.parseMessage(c[T-2]),signalType:g.LINETYPE.OPT_END}),this.$=c[T-1];break;case 38:c[T-1].unshift({type:"altStart",altText:g.parseMessage(c[T-2]),signalType:g.LINETYPE.ALT_START}),c[T-1].push({type:"altEnd",signalType:g.LINETYPE.ALT_END}),this.$=c[T-1];break;case 39:c[T-1].unshift({type:"parStart",parText:g.parseMessage(c[T-2]),signalType:g.LINETYPE.PAR_START}),c[T-1].push({type:"parEnd",signalType:g.LINETYPE.PAR_END}),this.$=c[T-1];break;case 40:c[T-1].unshift({type:"parStart",parText:g.parseMessage(c[T-2]),signalType:g.LINETYPE.PAR_OVER_START}),c[T-1].push({type:"parEnd",signalType:g.LINETYPE.PAR_END}),this.$=c[T-1];break;case 41:c[T-1].unshift({type:"criticalStart",criticalText:g.parseMessage(c[T-2]),signalType:g.LINETYPE.CRITICAL_START}),c[T-1].push({type:"criticalEnd",signalType:g.LINETYPE.CRITICAL_END}),this.$=c[T-1];break;case 42:c[T-1].unshift({type:"breakStart",breakText:g.parseMessage(c[T-2]),signalType:g.LINETYPE.BREAK_START}),c[T-1].push({type:"breakEnd",optText:g.parseMessage(c[T-2]),signalType:g.LINETYPE.BREAK_END}),this.$=c[T-1];break;case 44:this.$=c[T-3].concat([{type:"option",optionText:g.parseMessage(c[T-1]),signalType:g.LINETYPE.CRITICAL_OPTION},c[T]]);break;case 46:this.$=c[T-3].concat([{type:"and",parText:g.parseMessage(c[T-1]),signalType:g.LINETYPE.PAR_AND},c[T]]);break;case 48:this.$=c[T-3].concat([{type:"else",altText:g.parseMessage(c[T-1]),signalType:g.LINETYPE.ALT_ELSE},c[T]]);break;case 49:c[T-3].draw="participant",c[T-3].type="addParticipant",c[T-3].description=g.parseMessage(c[T-1]),this.$=c[T-3];break;case 50:c[T-1].draw="participant",c[T-1].type="addParticipant",this.$=c[T-1];break;case 51:c[T-3].draw="actor",c[T-3].type="addParticipant",c[T-3].description=g.parseMessage(c[T-1]),this.$=c[T-3];break;case 52:case 57:c[T-1].draw="actor",c[T-1].type="addParticipant",this.$=c[T-1];break;case 53:c[T-1].type="destroyParticipant",this.$=c[T-1];break;case 54:c[T-3].draw="participant",c[T-3].type="addParticipant",c[T-3].description=g.parseMessage(c[T-1]),this.$=c[T-3];break;case 55:c[T-1].draw="participant",c[T-1].type="addParticipant",this.$=c[T-1];break;case 56:c[T-3].draw="actor",c[T-3].type="addParticipant",c[T-3].description=g.parseMessage(c[T-1]),this.$=c[T-3];break;case 58:this.$=[c[T-1],{type:"addNote",placement:c[T-2],actor:c[T-1].actor,text:c[T]}];break;case 59:c[T-2]=[].concat(c[T-1],c[T-1]).slice(0,2),c[T-2][0]=c[T-2][0].actor,c[T-2][1]=c[T-2][1].actor,this.$=[c[T-1],{type:"addNote",placement:g.PLACEMENT.OVER,actor:c[T-2].slice(0,2),text:c[T]}];break;case 60:this.$=[c[T-1],{type:"addLinks",actor:c[T-1].actor,text:c[T]}];break;case 61:this.$=[c[T-1],{type:"addALink",actor:c[T-1].actor,text:c[T]}];break;case 62:this.$=[c[T-1],{type:"addProperties",actor:c[T-1].actor,text:c[T]}];break;case 63:this.$=[c[T-1],{type:"addDetails",actor:c[T-1].actor,text:c[T]}];break;case 66:this.$=[c[T-2],c[T]];break;case 67:this.$=c[T];break;case 68:this.$=g.PLACEMENT.LEFTOF;break;case 69:this.$=g.PLACEMENT.RIGHTOF;break;case 70:this.$=[c[T-4],c[T-1],{type:"addMessage",from:c[T-4].actor,to:c[T-1].actor,signalType:c[T-3],msg:c[T],activate:!0},{type:"activeStart",signalType:g.LINETYPE.ACTIVE_START,actor:c[T-1].actor}];break;case 71:this.$=[c[T-4],c[T-1],{type:"addMessage",from:c[T-4].actor,to:c[T-1].actor,signalType:c[T-3],msg:c[T]},{type:"activeEnd",signalType:g.LINETYPE.ACTIVE_END,actor:c[T-4].actor}];break;case 72:this.$=[c[T-4],c[T-1],{type:"addMessage",from:c[T-4].actor,to:c[T-1].actor,signalType:c[T-3],msg:c[T],activate:!0,centralConnection:g.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:g.LINETYPE.CENTRAL_CONNECTION,actor:c[T-1].actor}];break;case 73:this.$=[c[T-4],c[T-1],{type:"addMessage",from:c[T-4].actor,to:c[T-1].actor,signalType:c[T-2],msg:c[T],activate:!1,centralConnection:g.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:g.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:c[T-4].actor}];break;case 74:this.$=[c[T-5],c[T-1],{type:"addMessage",from:c[T-5].actor,to:c[T-1].actor,signalType:c[T-3],msg:c[T],activate:!0,centralConnection:g.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:g.LINETYPE.CENTRAL_CONNECTION,actor:c[T-1].actor},{type:"centralConnectionReverse",signalType:g.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:c[T-5].actor}];break;case 75:this.$=[c[T-3],c[T-1],{type:"addMessage",from:c[T-3].actor,to:c[T-1].actor,signalType:c[T-2],msg:c[T]}];break;case 76:this.$={type:"addParticipant",actor:c[T-1],config:c[T]};break;case 77:this.$=c[T-1].trim();break;case 78:this.$={type:"addParticipant",actor:c[T]};break;case 79:this.$=g.LINETYPE.SOLID_OPEN;break;case 80:this.$=g.LINETYPE.DOTTED_OPEN;break;case 81:this.$=g.LINETYPE.SOLID;break;case 82:this.$=g.LINETYPE.SOLID_TOP;break;case 83:this.$=g.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=g.LINETYPE.STICK_TOP;break;case 85:this.$=g.LINETYPE.STICK_BOTTOM;break;case 86:this.$=g.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=g.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=g.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=g.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=g.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=g.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=g.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=g.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=g.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=g.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=g.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=g.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=g.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=g.LINETYPE.DOTTED;break;case 100:this.$=g.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=g.LINETYPE.SOLID_CROSS;break;case 102:this.$=g.LINETYPE.DOTTED_CROSS;break;case 103:this.$=g.LINETYPE.SOLID_POINT;break;case 104:this.$=g.LINETYPE.DOTTED_POINT;break;case 105:this.$=g.parseMessage(c[T].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:a,6:s},{1:[3]},{3:5,4:t,5:a,6:s},{3:6,4:t,5:a,6:s},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:n,5:o,8:8,9:10,10:h,13:13,14:l,15:r,18:16,19:E,22:p,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:u,31:y,32:I,34:L,36:w,37:P,38:m,39:k,40:v,42:W,44:K,45:q,47:G,51:X,53:z,54:C,56:$,61:J,62:j,63:st,64:rt,73:O},e(R,[2,5]),{9:48,13:13,14:l,15:r,18:16,19:E,22:p,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:u,31:y,32:I,34:L,36:w,37:P,38:m,39:k,40:v,42:W,44:K,45:q,47:G,51:X,53:z,54:C,56:$,61:J,62:j,63:st,64:rt,73:O},e(R,[2,7]),e(R,[2,8]),e(R,[2,9]),e(R,[2,15]),{13:49,51:X,53:z,54:C},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:O},{23:56,73:O},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(R,[2,30]),e(R,[2,31]),{33:[1,62]},{35:[1,63]},e(R,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:nt},{23:75,55:76,73:nt},{23:77,73:O},{69:78,72:[1,79],78:ot,79:M,80:te,81:ee,82:se,83:re,84:ae,85:ie,86:ne,87:oe,88:ce,89:le,90:he,91:de,92:Te,93:Ee,94:pe,95:ue,96:_e,97:fe,98:ge,99:xe,100:Ie,101:Re,102:Oe,103:ye},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:O},{23:111,73:O},{23:112,73:O},{23:113,73:O},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],Le),e(R,[2,6]),e(R,[2,16]),e(Lt,[2,10],{11:114}),e(R,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(R,[2,22]),{5:[1,118]},{5:[1,119]},e(R,[2,25]),e(R,[2,26]),e(R,[2,27]),e(R,[2,28]),e(R,[2,29]),e(R,[2,32]),e(R,[2,33]),e(At,i,{7:120}),e(At,i,{7:121}),e(At,i,{7:122}),e(be,i,{41:123,7:124}),e(Wt,i,{43:125,7:126}),e(Wt,i,{7:126,43:127}),e(Se,i,{46:128,7:129}),e(At,i,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Kt,Le,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:O},{69:146,78:ot,79:M,80:te,81:ee,82:se,83:re,84:ae,85:ie,86:ne,87:oe,88:ce,89:le,90:he,91:de,92:Te,93:Ee,94:pe,95:ue,96:_e,97:fe,98:ge,99:xe,100:Ie,101:Re,102:Oe,103:ye},e(B,[2,79]),e(B,[2,80]),e(B,[2,81]),e(B,[2,82]),e(B,[2,83]),e(B,[2,84]),e(B,[2,85]),e(B,[2,86]),e(B,[2,87]),e(B,[2,88]),e(B,[2,89]),e(B,[2,90]),e(B,[2,91]),e(B,[2,92]),e(B,[2,93]),e(B,[2,94]),e(B,[2,95]),e(B,[2,96]),e(B,[2,97]),e(B,[2,98]),e(B,[2,99]),e(B,[2,100]),e(B,[2,101]),e(B,[2,102]),e(B,[2,103]),e(B,[2,104]),{23:147,73:O},{23:149,60:148,73:O},{73:[2,68]},{73:[2,69]},{58:150,104:at},{58:152,104:at},{58:153,104:at},{58:154,104:at},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:X,53:z,54:C},{5:[1,160]},e(R,[2,20]),e(R,[2,21]),e(R,[2,23]),e(R,[2,24]),{4:n,5:o,8:8,9:10,10:h,13:13,14:l,15:r,17:[1,161],18:16,19:E,22:p,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:u,31:y,32:I,34:L,36:w,37:P,38:m,39:k,40:v,42:W,44:K,45:q,47:G,51:X,53:z,54:C,56:$,61:J,62:j,63:st,64:rt,73:O},{4:n,5:o,8:8,9:10,10:h,13:13,14:l,15:r,17:[1,162],18:16,19:E,22:p,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:u,31:y,32:I,34:L,36:w,37:P,38:m,39:k,40:v,42:W,44:K,45:q,47:G,51:X,53:z,54:C,56:$,61:J,62:j,63:st,64:rt,73:O},{4:n,5:o,8:8,9:10,10:h,13:13,14:l,15:r,17:[1,163],18:16,19:E,22:p,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:u,31:y,32:I,34:L,36:w,37:P,38:m,39:k,40:v,42:W,44:K,45:q,47:G,51:X,53:z,54:C,56:$,61:J,62:j,63:st,64:rt,73:O},{17:[1,164]},{4:n,5:o,8:8,9:10,10:h,13:13,14:l,15:r,17:[2,47],18:16,19:E,22:p,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:u,31:y,32:I,34:L,36:w,37:P,38:m,39:k,40:v,42:W,44:K,45:q,47:G,50:[1,165],51:X,53:z,54:C,56:$,61:J,62:j,63:st,64:rt,73:O},{17:[1,166]},{4:n,5:o,8:8,9:10,10:h,13:13,14:l,15:r,17:[2,45],18:16,19:E,22:p,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:u,31:y,32:I,34:L,36:w,37:P,38:m,39:k,40:v,42:W,44:K,45:q,47:G,49:[1,167],51:X,53:z,54:C,56:$,61:J,62:j,63:st,64:rt,73:O},{17:[1,168]},{17:[1,169]},{4:n,5:o,8:8,9:10,10:h,13:13,14:l,15:r,17:[2,43],18:16,19:E,22:p,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:u,31:y,32:I,34:L,36:w,37:P,38:m,39:k,40:v,42:W,44:K,45:q,47:G,48:[1,170],51:X,53:z,54:C,56:$,61:J,62:j,63:st,64:rt,73:O},{4:n,5:o,8:8,9:10,10:h,13:13,14:l,15:r,17:[1,171],18:16,19:E,22:p,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:u,31:y,32:I,34:L,36:w,37:P,38:m,39:k,40:v,42:W,44:K,45:q,47:G,51:X,53:z,54:C,56:$,61:J,62:j,63:st,64:rt,73:O},{16:[1,172]},e(R,[2,50]),{16:[1,173]},e(R,[2,55]),e(Kt,[2,76]),{76:[1,174]},{16:[1,175]},e(R,[2,52]),{16:[1,176]},e(R,[2,57]),e(R,[2,53]),{23:177,73:O},{23:178,73:O},{23:179,73:O},{58:180,104:at},{23:181,72:[1,182],73:O},{58:183,104:at},{58:184,104:at},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(R,[2,17]),e(Lt,[2,11]),{13:186,51:X,53:z,54:C},e(Lt,[2,13]),e(Lt,[2,14]),e(R,[2,19]),e(R,[2,35]),e(R,[2,36]),e(R,[2,37]),e(R,[2,38]),{16:[1,187]},e(R,[2,39]),{16:[1,188]},e(R,[2,40]),e(R,[2,41]),{16:[1,189]},e(R,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:at},{58:196,104:at},{58:197,104:at},{5:[2,75]},{58:198,104:at},{23:199,73:O},{5:[2,58]},{5:[2,59]},{23:200,73:O},e(Lt,[2,12]),e(be,i,{7:124,41:201}),e(Wt,i,{7:126,43:202}),e(Se,i,{7:129,46:203}),e(R,[2,49]),e(R,[2,54]),e(Kt,[2,77]),e(R,[2,51]),e(R,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:at},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:_(function(b,A){if(A.recoverable)this.trace(b);else{var N=new Error(b);throw N.hash=A,N}},"parseError"),parse:_(function(b){var A=this,N=[0],g=[],V=[null],c=[],bt=this.table,T="",Pt=0,Ne=0,Je=2,Ae=1,Ze=c.slice.call(arguments,1),F=Object.create(this.lexer),ut={yy:{}};for(var Ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ht)&&(ut.yy[Ht]=this.yy[Ht]);F.setInput(b,ut.yy),ut.yy.lexer=F,ut.yy.parser=this,typeof F.yylloc>"u"&&(F.yylloc={});var qt=F.yylloc;c.push(qt);var Qe=F.options&&F.options.ranges;typeof ut.yy.parseError=="function"?this.parseError=ut.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function $e(tt){N.length=N.length-2*tt,V.length=V.length-tt,c.length=c.length-tt}_($e,"popStack");function we(){var tt;return tt=g.pop()||F.lex()||Ae,typeof tt!="number"&&(tt instanceof Array&&(g=tt,tt=g.pop()),tt=A.symbols_[tt]||tt),tt}_(we,"lex");for(var Z,_t,it,zt,It={},mt,ht,Pe,Dt;;){if(_t=N[N.length-1],this.defaultActions[_t]?it=this.defaultActions[_t]:((Z===null||typeof Z>"u")&&(Z=we()),it=bt[_t]&&bt[_t][Z]),typeof it>"u"||!it.length||!it[0]){var Ut="";Dt=[];for(mt in bt[_t])this.terminals_[mt]&&mt>Je&&Dt.push("'"+this.terminals_[mt]+"'");F.showPosition?Ut="Parse error on line "+(Pt+1)+`:
|
|
1
|
+
import{_,o as je,c as et,d as kt,l as Q,j as ve,e as ts,f as es,k as S,b as me,s as ss,q as rs,a as as,g as is,t as ns,v as os,J as cs,A as ls,i as vt,u as H,a2 as U,a3 as Nt,a4 as Ce,a5 as hs,a6 as ds,a7 as Me,H as Gt}from"./BJvJ0Hlu.js";import{a as Ts,b as Qt,g as lt,d as Es,e as $t,f as jt}from"./JxgekUqn.js";import{I as ps}from"./CQFANjzf.js";import"./C6teO48Y.js";var Xt=function(){var e=_(function(Tt,b,A,N){for(A=A||{},N=Tt.length;N--;A[Tt[N]]=b);return A},"o"),t=[1,2],a=[1,3],s=[1,4],i=[2,4],n=[1,9],o=[1,11],h=[1,12],l=[1,14],r=[1,15],E=[1,17],p=[1,18],f=[1,19],u=[1,25],y=[1,26],I=[1,27],L=[1,28],w=[1,29],P=[1,30],m=[1,31],k=[1,32],v=[1,33],W=[1,34],K=[1,35],q=[1,36],G=[1,37],X=[1,38],z=[1,39],C=[1,40],$=[1,42],J=[1,43],j=[1,44],st=[1,45],rt=[1,46],O=[1,47],R=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],nt=[1,74],ot=[1,80],M=[1,81],te=[1,82],ee=[1,83],se=[1,84],re=[1,85],ae=[1,86],ie=[1,87],ne=[1,88],oe=[1,89],ce=[1,90],le=[1,91],he=[1,92],de=[1,93],Te=[1,94],Ee=[1,95],pe=[1,96],ue=[1,97],_e=[1,98],fe=[1,99],ge=[1,100],xe=[1,101],Ie=[1,102],Re=[1,103],Oe=[1,104],ye=[1,105],Le=[2,78],Lt=[4,5,17,51,53,54],At=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],be=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],Wt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],Se=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Kt=[5,52],B=[70,71,72,73],at=[1,151],Ft={trace:_(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:_(function(b,A,N,g,V,c,bt){var T=c.length-1;switch(V){case 3:return g.apply(c[T]),c[T];case 4:case 10:this.$=[];break;case 5:case 11:c[T-1].push(c[T]),this.$=c[T-1];break;case 6:case 7:case 12:case 13:this.$=c[T];break;case 8:case 9:case 14:this.$=[];break;case 16:c[T].type="createParticipant",this.$=c[T];break;case 17:c[T-1].unshift({type:"boxStart",boxData:g.parseBoxData(c[T-2])}),c[T-1].push({type:"boxEnd",boxText:c[T-2]}),this.$=c[T-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(c[T-2]),sequenceIndexStep:Number(c[T-1]),sequenceVisible:!0,signalType:g.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(c[T-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:g.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:g.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:g.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:g.LINETYPE.ACTIVE_START,actor:c[T-1].actor};break;case 24:this.$={type:"activeEnd",signalType:g.LINETYPE.ACTIVE_END,actor:c[T-1].actor};break;case 30:g.setDiagramTitle(c[T].substring(6)),this.$=c[T].substring(6);break;case 31:g.setDiagramTitle(c[T].substring(7)),this.$=c[T].substring(7);break;case 32:this.$=c[T].trim(),g.setAccTitle(this.$);break;case 33:case 34:this.$=c[T].trim(),g.setAccDescription(this.$);break;case 35:c[T-1].unshift({type:"loopStart",loopText:g.parseMessage(c[T-2]),signalType:g.LINETYPE.LOOP_START}),c[T-1].push({type:"loopEnd",loopText:c[T-2],signalType:g.LINETYPE.LOOP_END}),this.$=c[T-1];break;case 36:c[T-1].unshift({type:"rectStart",color:g.parseMessage(c[T-2]),signalType:g.LINETYPE.RECT_START}),c[T-1].push({type:"rectEnd",color:g.parseMessage(c[T-2]),signalType:g.LINETYPE.RECT_END}),this.$=c[T-1];break;case 37:c[T-1].unshift({type:"optStart",optText:g.parseMessage(c[T-2]),signalType:g.LINETYPE.OPT_START}),c[T-1].push({type:"optEnd",optText:g.parseMessage(c[T-2]),signalType:g.LINETYPE.OPT_END}),this.$=c[T-1];break;case 38:c[T-1].unshift({type:"altStart",altText:g.parseMessage(c[T-2]),signalType:g.LINETYPE.ALT_START}),c[T-1].push({type:"altEnd",signalType:g.LINETYPE.ALT_END}),this.$=c[T-1];break;case 39:c[T-1].unshift({type:"parStart",parText:g.parseMessage(c[T-2]),signalType:g.LINETYPE.PAR_START}),c[T-1].push({type:"parEnd",signalType:g.LINETYPE.PAR_END}),this.$=c[T-1];break;case 40:c[T-1].unshift({type:"parStart",parText:g.parseMessage(c[T-2]),signalType:g.LINETYPE.PAR_OVER_START}),c[T-1].push({type:"parEnd",signalType:g.LINETYPE.PAR_END}),this.$=c[T-1];break;case 41:c[T-1].unshift({type:"criticalStart",criticalText:g.parseMessage(c[T-2]),signalType:g.LINETYPE.CRITICAL_START}),c[T-1].push({type:"criticalEnd",signalType:g.LINETYPE.CRITICAL_END}),this.$=c[T-1];break;case 42:c[T-1].unshift({type:"breakStart",breakText:g.parseMessage(c[T-2]),signalType:g.LINETYPE.BREAK_START}),c[T-1].push({type:"breakEnd",optText:g.parseMessage(c[T-2]),signalType:g.LINETYPE.BREAK_END}),this.$=c[T-1];break;case 44:this.$=c[T-3].concat([{type:"option",optionText:g.parseMessage(c[T-1]),signalType:g.LINETYPE.CRITICAL_OPTION},c[T]]);break;case 46:this.$=c[T-3].concat([{type:"and",parText:g.parseMessage(c[T-1]),signalType:g.LINETYPE.PAR_AND},c[T]]);break;case 48:this.$=c[T-3].concat([{type:"else",altText:g.parseMessage(c[T-1]),signalType:g.LINETYPE.ALT_ELSE},c[T]]);break;case 49:c[T-3].draw="participant",c[T-3].type="addParticipant",c[T-3].description=g.parseMessage(c[T-1]),this.$=c[T-3];break;case 50:c[T-1].draw="participant",c[T-1].type="addParticipant",this.$=c[T-1];break;case 51:c[T-3].draw="actor",c[T-3].type="addParticipant",c[T-3].description=g.parseMessage(c[T-1]),this.$=c[T-3];break;case 52:case 57:c[T-1].draw="actor",c[T-1].type="addParticipant",this.$=c[T-1];break;case 53:c[T-1].type="destroyParticipant",this.$=c[T-1];break;case 54:c[T-3].draw="participant",c[T-3].type="addParticipant",c[T-3].description=g.parseMessage(c[T-1]),this.$=c[T-3];break;case 55:c[T-1].draw="participant",c[T-1].type="addParticipant",this.$=c[T-1];break;case 56:c[T-3].draw="actor",c[T-3].type="addParticipant",c[T-3].description=g.parseMessage(c[T-1]),this.$=c[T-3];break;case 58:this.$=[c[T-1],{type:"addNote",placement:c[T-2],actor:c[T-1].actor,text:c[T]}];break;case 59:c[T-2]=[].concat(c[T-1],c[T-1]).slice(0,2),c[T-2][0]=c[T-2][0].actor,c[T-2][1]=c[T-2][1].actor,this.$=[c[T-1],{type:"addNote",placement:g.PLACEMENT.OVER,actor:c[T-2].slice(0,2),text:c[T]}];break;case 60:this.$=[c[T-1],{type:"addLinks",actor:c[T-1].actor,text:c[T]}];break;case 61:this.$=[c[T-1],{type:"addALink",actor:c[T-1].actor,text:c[T]}];break;case 62:this.$=[c[T-1],{type:"addProperties",actor:c[T-1].actor,text:c[T]}];break;case 63:this.$=[c[T-1],{type:"addDetails",actor:c[T-1].actor,text:c[T]}];break;case 66:this.$=[c[T-2],c[T]];break;case 67:this.$=c[T];break;case 68:this.$=g.PLACEMENT.LEFTOF;break;case 69:this.$=g.PLACEMENT.RIGHTOF;break;case 70:this.$=[c[T-4],c[T-1],{type:"addMessage",from:c[T-4].actor,to:c[T-1].actor,signalType:c[T-3],msg:c[T],activate:!0},{type:"activeStart",signalType:g.LINETYPE.ACTIVE_START,actor:c[T-1].actor}];break;case 71:this.$=[c[T-4],c[T-1],{type:"addMessage",from:c[T-4].actor,to:c[T-1].actor,signalType:c[T-3],msg:c[T]},{type:"activeEnd",signalType:g.LINETYPE.ACTIVE_END,actor:c[T-4].actor}];break;case 72:this.$=[c[T-4],c[T-1],{type:"addMessage",from:c[T-4].actor,to:c[T-1].actor,signalType:c[T-3],msg:c[T],activate:!0,centralConnection:g.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:g.LINETYPE.CENTRAL_CONNECTION,actor:c[T-1].actor}];break;case 73:this.$=[c[T-4],c[T-1],{type:"addMessage",from:c[T-4].actor,to:c[T-1].actor,signalType:c[T-2],msg:c[T],activate:!1,centralConnection:g.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:g.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:c[T-4].actor}];break;case 74:this.$=[c[T-5],c[T-1],{type:"addMessage",from:c[T-5].actor,to:c[T-1].actor,signalType:c[T-3],msg:c[T],activate:!0,centralConnection:g.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:g.LINETYPE.CENTRAL_CONNECTION,actor:c[T-1].actor},{type:"centralConnectionReverse",signalType:g.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:c[T-5].actor}];break;case 75:this.$=[c[T-3],c[T-1],{type:"addMessage",from:c[T-3].actor,to:c[T-1].actor,signalType:c[T-2],msg:c[T]}];break;case 76:this.$={type:"addParticipant",actor:c[T-1],config:c[T]};break;case 77:this.$=c[T-1].trim();break;case 78:this.$={type:"addParticipant",actor:c[T]};break;case 79:this.$=g.LINETYPE.SOLID_OPEN;break;case 80:this.$=g.LINETYPE.DOTTED_OPEN;break;case 81:this.$=g.LINETYPE.SOLID;break;case 82:this.$=g.LINETYPE.SOLID_TOP;break;case 83:this.$=g.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=g.LINETYPE.STICK_TOP;break;case 85:this.$=g.LINETYPE.STICK_BOTTOM;break;case 86:this.$=g.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=g.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=g.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=g.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=g.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=g.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=g.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=g.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=g.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=g.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=g.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=g.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=g.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=g.LINETYPE.DOTTED;break;case 100:this.$=g.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=g.LINETYPE.SOLID_CROSS;break;case 102:this.$=g.LINETYPE.DOTTED_CROSS;break;case 103:this.$=g.LINETYPE.SOLID_POINT;break;case 104:this.$=g.LINETYPE.DOTTED_POINT;break;case 105:this.$=g.parseMessage(c[T].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:a,6:s},{1:[3]},{3:5,4:t,5:a,6:s},{3:6,4:t,5:a,6:s},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:n,5:o,8:8,9:10,10:h,13:13,14:l,15:r,18:16,19:E,22:p,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:u,31:y,32:I,34:L,36:w,37:P,38:m,39:k,40:v,42:W,44:K,45:q,47:G,51:X,53:z,54:C,56:$,61:J,62:j,63:st,64:rt,73:O},e(R,[2,5]),{9:48,13:13,14:l,15:r,18:16,19:E,22:p,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:u,31:y,32:I,34:L,36:w,37:P,38:m,39:k,40:v,42:W,44:K,45:q,47:G,51:X,53:z,54:C,56:$,61:J,62:j,63:st,64:rt,73:O},e(R,[2,7]),e(R,[2,8]),e(R,[2,9]),e(R,[2,15]),{13:49,51:X,53:z,54:C},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:O},{23:56,73:O},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(R,[2,30]),e(R,[2,31]),{33:[1,62]},{35:[1,63]},e(R,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:nt},{23:75,55:76,73:nt},{23:77,73:O},{69:78,72:[1,79],78:ot,79:M,80:te,81:ee,82:se,83:re,84:ae,85:ie,86:ne,87:oe,88:ce,89:le,90:he,91:de,92:Te,93:Ee,94:pe,95:ue,96:_e,97:fe,98:ge,99:xe,100:Ie,101:Re,102:Oe,103:ye},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:O},{23:111,73:O},{23:112,73:O},{23:113,73:O},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],Le),e(R,[2,6]),e(R,[2,16]),e(Lt,[2,10],{11:114}),e(R,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(R,[2,22]),{5:[1,118]},{5:[1,119]},e(R,[2,25]),e(R,[2,26]),e(R,[2,27]),e(R,[2,28]),e(R,[2,29]),e(R,[2,32]),e(R,[2,33]),e(At,i,{7:120}),e(At,i,{7:121}),e(At,i,{7:122}),e(be,i,{41:123,7:124}),e(Wt,i,{43:125,7:126}),e(Wt,i,{7:126,43:127}),e(Se,i,{46:128,7:129}),e(At,i,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Kt,Le,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:O},{69:146,78:ot,79:M,80:te,81:ee,82:se,83:re,84:ae,85:ie,86:ne,87:oe,88:ce,89:le,90:he,91:de,92:Te,93:Ee,94:pe,95:ue,96:_e,97:fe,98:ge,99:xe,100:Ie,101:Re,102:Oe,103:ye},e(B,[2,79]),e(B,[2,80]),e(B,[2,81]),e(B,[2,82]),e(B,[2,83]),e(B,[2,84]),e(B,[2,85]),e(B,[2,86]),e(B,[2,87]),e(B,[2,88]),e(B,[2,89]),e(B,[2,90]),e(B,[2,91]),e(B,[2,92]),e(B,[2,93]),e(B,[2,94]),e(B,[2,95]),e(B,[2,96]),e(B,[2,97]),e(B,[2,98]),e(B,[2,99]),e(B,[2,100]),e(B,[2,101]),e(B,[2,102]),e(B,[2,103]),e(B,[2,104]),{23:147,73:O},{23:149,60:148,73:O},{73:[2,68]},{73:[2,69]},{58:150,104:at},{58:152,104:at},{58:153,104:at},{58:154,104:at},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:X,53:z,54:C},{5:[1,160]},e(R,[2,20]),e(R,[2,21]),e(R,[2,23]),e(R,[2,24]),{4:n,5:o,8:8,9:10,10:h,13:13,14:l,15:r,17:[1,161],18:16,19:E,22:p,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:u,31:y,32:I,34:L,36:w,37:P,38:m,39:k,40:v,42:W,44:K,45:q,47:G,51:X,53:z,54:C,56:$,61:J,62:j,63:st,64:rt,73:O},{4:n,5:o,8:8,9:10,10:h,13:13,14:l,15:r,17:[1,162],18:16,19:E,22:p,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:u,31:y,32:I,34:L,36:w,37:P,38:m,39:k,40:v,42:W,44:K,45:q,47:G,51:X,53:z,54:C,56:$,61:J,62:j,63:st,64:rt,73:O},{4:n,5:o,8:8,9:10,10:h,13:13,14:l,15:r,17:[1,163],18:16,19:E,22:p,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:u,31:y,32:I,34:L,36:w,37:P,38:m,39:k,40:v,42:W,44:K,45:q,47:G,51:X,53:z,54:C,56:$,61:J,62:j,63:st,64:rt,73:O},{17:[1,164]},{4:n,5:o,8:8,9:10,10:h,13:13,14:l,15:r,17:[2,47],18:16,19:E,22:p,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:u,31:y,32:I,34:L,36:w,37:P,38:m,39:k,40:v,42:W,44:K,45:q,47:G,50:[1,165],51:X,53:z,54:C,56:$,61:J,62:j,63:st,64:rt,73:O},{17:[1,166]},{4:n,5:o,8:8,9:10,10:h,13:13,14:l,15:r,17:[2,45],18:16,19:E,22:p,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:u,31:y,32:I,34:L,36:w,37:P,38:m,39:k,40:v,42:W,44:K,45:q,47:G,49:[1,167],51:X,53:z,54:C,56:$,61:J,62:j,63:st,64:rt,73:O},{17:[1,168]},{17:[1,169]},{4:n,5:o,8:8,9:10,10:h,13:13,14:l,15:r,17:[2,43],18:16,19:E,22:p,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:u,31:y,32:I,34:L,36:w,37:P,38:m,39:k,40:v,42:W,44:K,45:q,47:G,48:[1,170],51:X,53:z,54:C,56:$,61:J,62:j,63:st,64:rt,73:O},{4:n,5:o,8:8,9:10,10:h,13:13,14:l,15:r,17:[1,171],18:16,19:E,22:p,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:u,31:y,32:I,34:L,36:w,37:P,38:m,39:k,40:v,42:W,44:K,45:q,47:G,51:X,53:z,54:C,56:$,61:J,62:j,63:st,64:rt,73:O},{16:[1,172]},e(R,[2,50]),{16:[1,173]},e(R,[2,55]),e(Kt,[2,76]),{76:[1,174]},{16:[1,175]},e(R,[2,52]),{16:[1,176]},e(R,[2,57]),e(R,[2,53]),{23:177,73:O},{23:178,73:O},{23:179,73:O},{58:180,104:at},{23:181,72:[1,182],73:O},{58:183,104:at},{58:184,104:at},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(R,[2,17]),e(Lt,[2,11]),{13:186,51:X,53:z,54:C},e(Lt,[2,13]),e(Lt,[2,14]),e(R,[2,19]),e(R,[2,35]),e(R,[2,36]),e(R,[2,37]),e(R,[2,38]),{16:[1,187]},e(R,[2,39]),{16:[1,188]},e(R,[2,40]),e(R,[2,41]),{16:[1,189]},e(R,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:at},{58:196,104:at},{58:197,104:at},{5:[2,75]},{58:198,104:at},{23:199,73:O},{5:[2,58]},{5:[2,59]},{23:200,73:O},e(Lt,[2,12]),e(be,i,{7:124,41:201}),e(Wt,i,{7:126,43:202}),e(Se,i,{7:129,46:203}),e(R,[2,49]),e(R,[2,54]),e(Kt,[2,77]),e(R,[2,51]),e(R,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:at},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:_(function(b,A){if(A.recoverable)this.trace(b);else{var N=new Error(b);throw N.hash=A,N}},"parseError"),parse:_(function(b){var A=this,N=[0],g=[],V=[null],c=[],bt=this.table,T="",Pt=0,Ne=0,Je=2,Ae=1,Ze=c.slice.call(arguments,1),F=Object.create(this.lexer),ut={yy:{}};for(var Ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ht)&&(ut.yy[Ht]=this.yy[Ht]);F.setInput(b,ut.yy),ut.yy.lexer=F,ut.yy.parser=this,typeof F.yylloc>"u"&&(F.yylloc={});var qt=F.yylloc;c.push(qt);var Qe=F.options&&F.options.ranges;typeof ut.yy.parseError=="function"?this.parseError=ut.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function $e(tt){N.length=N.length-2*tt,V.length=V.length-tt,c.length=c.length-tt}_($e,"popStack");function we(){var tt;return tt=g.pop()||F.lex()||Ae,typeof tt!="number"&&(tt instanceof Array&&(g=tt,tt=g.pop()),tt=A.symbols_[tt]||tt),tt}_(we,"lex");for(var Z,_t,it,zt,It={},mt,ht,Pe,Dt;;){if(_t=N[N.length-1],this.defaultActions[_t]?it=this.defaultActions[_t]:((Z===null||typeof Z>"u")&&(Z=we()),it=bt[_t]&&bt[_t][Z]),typeof it>"u"||!it.length||!it[0]){var Ut="";Dt=[];for(mt in bt[_t])this.terminals_[mt]&&mt>Je&&Dt.push("'"+this.terminals_[mt]+"'");F.showPosition?Ut="Parse error on line "+(Pt+1)+`:
|
|
2
2
|
`+F.showPosition()+`
|
|
3
3
|
Expecting `+Dt.join(", ")+", got '"+(this.terminals_[Z]||Z)+"'":Ut="Parse error on line "+(Pt+1)+": Unexpected "+(Z==Ae?"end of input":"'"+(this.terminals_[Z]||Z)+"'"),this.parseError(Ut,{text:F.match,token:this.terminals_[Z]||Z,line:F.yylineno,loc:qt,expected:Dt})}if(it[0]instanceof Array&&it.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_t+", token: "+Z);switch(it[0]){case 1:N.push(Z),V.push(F.yytext),c.push(F.yylloc),N.push(it[1]),Z=null,Ne=F.yyleng,T=F.yytext,Pt=F.yylineno,qt=F.yylloc;break;case 2:if(ht=this.productions_[it[1]][1],It.$=V[V.length-ht],It._$={first_line:c[c.length-(ht||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(ht||1)].first_column,last_column:c[c.length-1].last_column},Qe&&(It._$.range=[c[c.length-(ht||1)].range[0],c[c.length-1].range[1]]),zt=this.performAction.apply(It,[T,Ne,Pt,ut.yy,it[1],V,c].concat(Ze)),typeof zt<"u")return zt;ht&&(N=N.slice(0,-1*ht*2),V=V.slice(0,-1*ht),c=c.slice(0,-1*ht)),N.push(this.productions_[it[1]][0]),V.push(It.$),c.push(It._$),Pe=bt[N[N.length-2]][N[N.length-1]],N.push(Pe);break;case 3:return!0}}return!0},"parse")},Xe=function(){var Tt={EOF:1,parseError:_(function(A,N){if(this.yy.parser)this.yy.parser.parseError(A,N);else throw new Error(A)},"parseError"),setInput:_(function(b,A){return this.yy=A||this.yy||{},this._input=b,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:_(function(){var b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var A=b.match(/(?:\r\n?|\n).*/g);return A?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),b},"input"),unput:_(function(b){var A=b.length,N=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-A),this.offset-=A;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),N.length-1&&(this.yylineno-=N.length-1);var V=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:N?(N.length===g.length?this.yylloc.first_column:0)+g[g.length-N.length].length-N[0].length:this.yylloc.first_column-A},this.options.ranges&&(this.yylloc.range=[V[0],V[0]+this.yyleng-A]),this.yyleng=this.yytext.length,this},"unput"),more:_(function(){return this._more=!0,this},"more"),reject:_(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:_(function(b){this.unput(this.match.slice(b))},"less"),pastInput:_(function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:_(function(){var b=this.match;return b.length<20&&(b+=this._input.substr(0,20-b.length)),(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:_(function(){var b=this.pastInput(),A=new Array(b.length+1).join("-");return b+this.upcomingInput()+`
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{d as
|
|
1
|
+
import{d as Cn,r as ne,au as we,c as S,aF as m,g as C,an as Mn,i as Ne,am as ye,aG as rt,at as Se,q as wn,ar as en,aC as it,aq as ue,aH as lt,aI as at,aJ as Re,a5 as De,aK as nn,aL as mn,aM as ut}from"./C6teO48Y.js";var Te;Te||(Te={});/**
|
|
2
2
|
* vee-validate v4.15.0
|
|
3
3
|
* (c) 2024 Abdelrahman Awad
|
|
4
4
|
* @license MIT
|
|
5
|
-
*/function k(e){return typeof e=="function"}function Nn(e){return e==null}const ge=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function un(e){return Number(e)>=0}function ot(e){const n=parseFloat(e);return isNaN(n)?e:n}function st(e){return typeof e=="object"&&e!==null}function dt(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function yn(e){if(!st(e)||dt(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let n=e;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}function Ee(e,n){return Object.keys(n).forEach(t=>{if(yn(n[t])&&yn(e[t])){e[t]||(e[t]={}),Ee(e[t],n[t]);return}e[t]=n[t]}),e}function Ae(e){const n=e.split(".");if(!n.length)return"";let t=String(n[0]);for(let r=1;r<n.length;r++){if(un(n[r])){t+=`[${n[r]}]`;continue}t+=`.${n[r]}`}return t}const ct={};function ft(e){return ct[e]}function gn(e,n,t){typeof t.value=="object"&&(t.value=P(t.value)),!t.enumerable||t.get||t.set||!t.configurable||!t.writable||n==="__proto__"?Object.defineProperty(e,n,t):e[n]=t.value}function P(e){if(typeof e!="object")return e;var n=0,t,r,a,u=Object.prototype.toString.call(e);if(u==="[object Object]"?a=Object.create(e.__proto__||null):u==="[object Array]"?a=Array(e.length):u==="[object Set]"?(a=new Set,e.forEach(function(s){a.add(P(s))})):u==="[object Map]"?(a=new Map,e.forEach(function(s,c){a.set(P(c),P(s))})):u==="[object Date]"?a=new Date(+e):u==="[object RegExp]"?a=new RegExp(e.source,e.flags):u==="[object DataView]"?a=new e.constructor(P(e.buffer)):u==="[object ArrayBuffer]"?a=e.slice(0):u.slice(-6)==="Array]"&&(a=new e.constructor(e)),a){for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)gn(a,r[n],Object.getOwnPropertyDescriptor(e,r[n]));for(n=0,r=Object.getOwnPropertyNames(e);n<r.length;n++)Object.hasOwnProperty.call(a,t=r[n])&&a[t]===e[t]||gn(a,t,Object.getOwnPropertyDescriptor(e,t))}return a||e}const Ve=Symbol("vee-validate-form"),vt=Symbol("vee-validate-form-context"),on=Symbol("vee-validate-field-instance"),Be=Symbol("Default empty value"),ht=typeof window<"u";function tn(e){return k(e)&&!!e.__locatorRef}function te(e){return!!e&&k(e.parse)&&e.__type==="VVTypedSchema"}function Ue(e){return!!e&&k(e.validate)}function Pe(e){return e==="checkbox"||e==="radio"}function mt(e){return ge(e)||Array.isArray(e)}function yt(e){return Array.isArray(e)?e.length===0:ge(e)&&Object.keys(e).length===0}function Fe(e){return/^\[.+\]$/i.test(e)}function gt(e){return Tn(e)&&e.multiple}function Tn(e){return e.tagName==="SELECT"}function Ot(e,n){const t=![!1,null,void 0,0].includes(n.multiple)&&!Number.isNaN(n.multiple);return e==="select"&&"multiple"in n&&t}function bt(e,n){return!Ot(e,n)&&n.type!=="file"&&!Pe(n.type)}function pt(e){return Bn(e)&&e.target&&"submit"in e.target}function Bn(e){return e?!!(typeof Event<"u"&&k(Event)&&e instanceof Event||e&&e.srcElement):!1}function On(e,n){return n in e&&e[n]!==Be}function H(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var t,r,a;if(Array.isArray(e)){if(t=e.length,t!=n.length)return!1;for(r=t;r--!==0;)if(!H(e[r],n[r]))return!1;return!0}if(e instanceof Map&&n instanceof Map){if(e.size!==n.size)return!1;for(r of e.entries())if(!n.has(r[0]))return!1;for(r of e.entries())if(!H(r[1],n.get(r[0])))return!1;return!0}if(pn(e)&&pn(n))return!(e.size!==n.size||e.name!==n.name||e.lastModified!==n.lastModified||e.type!==n.type);if(e instanceof Set&&n instanceof Set){if(e.size!==n.size)return!1;for(r of e.entries())if(!n.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(n)){if(t=e.length,t!=n.length)return!1;for(r=t;r--!==0;)if(e[r]!==n[r])return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(a=Object.keys(e),t=a.length-bn(e,a),t!==Object.keys(n).length-bn(n,Object.keys(n)))return!1;for(r=t;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[r]))return!1;for(r=t;r--!==0;){var u=a[r];if(!H(e[u],n[u]))return!1}return!0}return e!==e&&n!==n}function bn(e,n){let t=0;for(let a=n.length;a--!==0;){var r=n[a];e[r]===void 0&&t++}return t}function pn(e){return ht?e instanceof File:!1}function $e(e){return Fe(e)?e.replace(/\[|\]/gi,""):e}function G(e,n,t){return e?Fe(n)?e[$e(n)]:(n||"").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((a,u)=>mt(a)&&u in a?a[u]:t,e):t}function se(e,n,t){if(Fe(n)){e[$e(n)]=t;return}const r=n.split(/\.|\[(\d+)\]/).filter(Boolean);let a=e;for(let u=0;u<r.length;u++){if(u===r.length-1){a[r[u]]=t;return}(!(r[u]in a)||Nn(a[r[u]]))&&(a[r[u]]=un(r[u+1])?[]:{}),a=a[r[u]]}}function Xe(e,n){if(Array.isArray(e)&&un(n)){e.splice(Number(n),1);return}ge(e)&&delete e[n]}function Vn(e,n){if(Fe(n)){delete e[$e(n)];return}const t=n.split(/\.|\[(\d+)\]/).filter(Boolean);let r=e;for(let u=0;u<t.length;u++){if(u===t.length-1){Xe(r,t[u]);break}if(!(t[u]in r)||Nn(r[t[u]]))break;r=r[t[u]]}const a=t.map((u,s)=>G(e,t.slice(0,s).join(".")));for(let u=a.length-1;u>=0;u--)if(yt(a[u])){if(u===0){Xe(e,t[0]);continue}Xe(a[u-1],t[u-1])}}function Z(e){return Object.keys(e)}function ze(e,n=void 0){const t=Re();return(t==null?void 0:t.provides[e])||De(e,n)}function _n(e,n,t){if(Array.isArray(e)){const r=[...e],a=r.findIndex(u=>H(u,n));return a>=0?r.splice(a,1):r.push(n),r}return H(e,n)?t:n}function jn(e,n=0){let t=null,r=[];return function(...a){return t&&clearTimeout(t),t=setTimeout(()=>{const u=e(...a);r.forEach(s=>s(u)),r=[]},n),new Promise(u=>r.push(u))}}function Vt(e,n){return ge(n)&&n.number?ot(e):e}function rn(e,n){let t;return async function(...a){const u=e(...a);t=u;const s=await u;return u!==t?s:(t=void 0,n(s,a))}}function ln(e){return Array.isArray(e)?e:e?[e]:[]}function sn(e){const n=ze(Ve),t=e?S(()=>n==null?void 0:n.getPathState(m(e))):void 0,r=e?void 0:De(on);return!r&&(t!=null&&t.value),t||r}function Me(e,n){const t={};for(const r in e)n.includes(r)||(t[r]=e[r]);return t}function _t(e){let n=null,t=[];return function(...r){const a=ue(()=>{if(n!==a)return;const u=e(...r);t.forEach(s=>s(u)),t=[],n=null});return n=a,new Promise(u=>t.push(u))}}function Un(e,n,t){return n.slots.default?typeof e=="string"||!e?n.slots.default(t()):{default:()=>{var r,a;return(a=(r=n.slots).default)===null||a===void 0?void 0:a.call(r,t())}}:n.slots.default}function Qe(e){if(kn(e))return e._value}function kn(e){return"_value"in e}function jt(e){return e.type==="number"||e.type==="range"?Number.isNaN(e.valueAsNumber)?e.value:e.valueAsNumber:e.value}function ke(e){if(!Bn(e))return e;const n=e.target;if(Pe(n.type)&&kn(n))return Qe(n);if(n.type==="file"&&n.files){const t=Array.from(n.files);return n.multiple?t:t[0]}if(gt(n))return Array.from(n.options).filter(t=>t.selected&&!t.disabled).map(Qe);if(Tn(n)){const t=Array.from(n.options).find(r=>r.selected);return t?Qe(t):n.value}return jt(n)}function Rn(e){const n={};return Object.defineProperty(n,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),e?ge(e)&&e._$$isNormalized?e:ge(e)?Object.keys(e).reduce((t,r)=>{const a=St(e[r]);return e[r]!==!1&&(t[r]=Sn(a)),t},n):typeof e!="string"?n:e.split("|").reduce((t,r)=>{const a=At(r);return a.name&&(t[a.name]=Sn(a.params)),t},n):n}function St(e){return e===!0?[]:Array.isArray(e)||ge(e)?e:[e]}function Sn(e){const n=t=>typeof t=="string"&&t[0]==="@"?Et(t.slice(1)):t;return Array.isArray(e)?e.map(n):e instanceof RegExp?[e]:Object.keys(e).reduce((t,r)=>(t[r]=n(e[r]),t),{})}const At=e=>{let n=[];const t=e.split(":")[0];return e.includes(":")&&(n=e.split(":").slice(1).join(":").split(",")),{name:t,params:n}};function Et(e){const n=t=>{var r;return(r=G(t,e))!==null&&r!==void 0?r:t[e]};return n.__locatorRef=e,n}function Pt(e){return Array.isArray(e)?e.filter(tn):Z(e).filter(n=>tn(e[n])).map(n=>e[n])}const Ft={generateMessage:({field:e})=>`${e} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0};let It=Object.assign({},Ft);const me=()=>It;async function Dn(e,n,t={}){const r=t==null?void 0:t.bails,a={name:(t==null?void 0:t.name)||"{field}",rules:n,label:t==null?void 0:t.label,bails:r??!0,formData:(t==null?void 0:t.values)||{}},u=await Mt(a,e);return Object.assign(Object.assign({},u),{valid:!u.errors.length})}async function Mt(e,n){const t=e.rules;if(te(t)||Ue(t))return wt(n,Object.assign(Object.assign({},e),{rules:t}));if(k(t)||Array.isArray(t)){const c={field:e.label||e.name,name:e.name,label:e.label,form:e.formData,value:n},v=Array.isArray(t)?t:[t],d=v.length,y=[];for(let V=0;V<d;V++){const A=v[V],b=await A(n,c);if(!(typeof b!="string"&&!Array.isArray(b)&&b)){if(Array.isArray(b))y.push(...b);else{const K=typeof b=="string"?b:zn(c);y.push(K)}if(e.bails)return{errors:y}}}return{errors:y}}const r=Object.assign(Object.assign({},e),{rules:Rn(t)}),a=[],u=Object.keys(r.rules),s=u.length;for(let c=0;c<s;c++){const v=u[c],d=await Nt(r,n,{name:v,params:r.rules[v]});if(d.error&&(a.push(d.error),e.bails))return{errors:a}}return{errors:a}}function Ct(e){return!!e&&e.name==="ValidationError"}function $n(e){return{__type:"VVTypedSchema",async parse(t,r){var a;try{return{output:await e.validate(t,{abortEarly:!1,context:(r==null?void 0:r.formData)||{}}),errors:[]}}catch(u){if(!Ct(u))throw u;if(!(!((a=u.inner)===null||a===void 0)&&a.length)&&u.errors.length)return{errors:[{path:u.path,errors:u.errors}]};const s=u.inner.reduce((c,v)=>{const d=v.path||"";return c[d]||(c[d]={errors:[],path:d}),c[d].errors.push(...v.errors),c},{});return{errors:Object.values(s)}}}}}async function wt(e,n){const r=await(te(n.rules)?n.rules:$n(n.rules)).parse(e,{formData:n.formData}),a=[];for(const u of r.errors)u.errors.length&&a.push(...u.errors);return{value:r.value,errors:a}}async function Nt(e,n,t){const r=ft(t.name);if(!r)throw new Error(`No such validator '${t.name}' exists.`);const a=Tt(t.params,e.formData),u={field:e.label||e.name,name:e.name,label:e.label,value:n,form:e.formData,rule:Object.assign(Object.assign({},t),{params:a})},s=await r(n,a,u);return typeof s=="string"?{error:s}:{error:s?void 0:zn(u)}}function zn(e){const n=me().generateMessage;return n?n(e):"Field is invalid"}function Tt(e,n){const t=r=>tn(r)?r(n):r;return Array.isArray(e)?e.map(t):Object.keys(e).reduce((r,a)=>(r[a]=t(e[a]),r),{})}async function Bt(e,n){const r=await(te(e)?e:$n(e)).parse(P(n),{formData:P(n)}),a={},u={};for(const s of r.errors){const c=s.errors,v=(s.path||"").replace(/\["(\d+)"\]/g,(d,y)=>`[${y}]`);a[v]={valid:!c.length,errors:c},c.length&&(u[v]=c[0])}return{valid:!r.errors.length,results:a,errors:u,values:r.value,source:"schema"}}async function Ut(e,n,t){const a=Z(e).map(async d=>{var y,V,A;const b=(y=t==null?void 0:t.names)===null||y===void 0?void 0:y[d],w=await Dn(G(n,d),e[d],{name:(b==null?void 0:b.name)||d,label:b==null?void 0:b.label,values:n,bails:(A=(V=t==null?void 0:t.bailsMap)===null||V===void 0?void 0:V[d])!==null&&A!==void 0?A:!0});return Object.assign(Object.assign({},w),{path:d})});let u=!0;const s=await Promise.all(a),c={},v={};for(const d of s)c[d.path]={valid:d.valid,errors:d.errors},d.valid||(u=!1,v[d.path]=d.errors[0]);return{valid:u,results:c,errors:v,source:"schema"}}let An=0;function kt(e,n){const{value:t,initialValue:r,setInitialValue:a}=Rt(e,n.modelValue,n.form);if(!n.form){let v=function(b){var w;"value"in b&&(t.value=b.value),"errors"in b&&y(b.errors),"touched"in b&&(A.touched=(w=b.touched)!==null&&w!==void 0?w:A.touched),"initialValue"in b&&a(b.initialValue)};const{errors:d,setErrors:y}=zt(),V=An>=Number.MAX_SAFE_INTEGER?0:++An,A=$t(t,r,d,n.schema);return{id:V,path:e,value:t,initialValue:r,meta:A,flags:{pendingUnmount:{[V]:!1},pendingReset:!1},errors:d,setState:v}}const u=n.form.createPathState(e,{bails:n.bails,label:n.label,type:n.type,validate:n.validate,schema:n.schema}),s=S(()=>u.errors);function c(v){var d,y,V;"value"in v&&(t.value=v.value),"errors"in v&&((d=n.form)===null||d===void 0||d.setFieldError(M(e),v.errors)),"touched"in v&&((y=n.form)===null||y===void 0||y.setFieldTouched(M(e),(V=v.touched)!==null&&V!==void 0?V:!1)),"initialValue"in v&&a(v.initialValue)}return{id:Array.isArray(u.id)?u.id[u.id.length-1]:u.id,path:e,value:t,errors:s,meta:u,initialValue:r,flags:u.__flags,setState:c}}function Rt(e,n,t){const r=ne(M(n));function a(){return t?G(t.initialValues.value,M(e),M(r)):M(r)}function u(d){if(!t){r.value=d;return}t.setFieldInitialValue(M(e),d,!0)}const s=S(a);if(!t)return{value:ne(a()),initialValue:s,setInitialValue:u};const c=Dt(n,t,s,e);return t.stageInitialValue(M(e),c,!0),{value:S({get(){return G(t.values,M(e))},set(d){t.setFieldValue(M(e),d,!1)}}),initialValue:s,setInitialValue:u}}function Dt(e,n,t,r){return Ne(e)?M(e):e!==void 0?e:G(n.values,M(r),M(t))}function $t(e,n,t,r){const a=S(()=>{var s,c,v;return(v=(c=(s=m(r))===null||s===void 0?void 0:s.describe)===null||c===void 0?void 0:c.call(s).required)!==null&&v!==void 0?v:!1}),u=we({touched:!1,pending:!1,valid:!0,required:a,validated:!!M(t).length,initialValue:S(()=>M(n)),dirty:S(()=>!H(M(e),M(n)))});return ye(t,s=>{u.valid=!s.length},{immediate:!0,flush:"sync"}),u}function zt(){const e=ne([]);return{errors:e,setErrors:n=>{e.value=ln(n)}}}function qt(e,n,t){return Pe(t==null?void 0:t.type)?Wt(e,n,t):qn(e,n,t)}function qn(e,n,t){const{initialValue:r,validateOnMount:a,bails:u,type:s,checkedValue:c,label:v,validateOnValueUpdate:d,uncheckedValue:y,controlled:V,keepValueOnUnmount:A,syncVModel:b,form:w}=Lt(t),K=V?ze(Ve):void 0,j=w||K,L=S(()=>Ae(m(e))),R=S(()=>{if(m(j==null?void 0:j.schema))return;const _=M(n);return Ue(_)||te(_)||k(_)||Array.isArray(_)?_:Rn(_)}),Oe=!k(R.value)&&te(m(n)),{id:Y,value:re,initialValue:ie,meta:T,setState:de,errors:U,flags:D}=kt(L,{modelValue:r,form:j,bails:u,label:v,type:s,validate:R.value?ee:void 0,schema:Oe?n:void 0}),$=S(()=>U.value[0]);b&&Ht({value:re,prop:b,handleChange:E,shouldValidate:()=>d&&!D.pendingReset});const ce=(h,_=!1)=>{T.touched=!0,_&&le()};async function be(h){var _,I;if(j!=null&&j.validateSchema){const{results:F}=await j.validateSchema(h);return(_=F[m(L)])!==null&&_!==void 0?_:{valid:!0,errors:[]}}return R.value?Dn(re.value,R.value,{name:m(L),label:m(v),values:(I=j==null?void 0:j.values)!==null&&I!==void 0?I:{},bails:u}):{valid:!0,errors:[]}}const le=rn(async()=>(T.pending=!0,T.validated=!0,be("validated-only")),h=>(D.pendingUnmount[W.id]||(de({errors:h.errors}),T.pending=!1,T.valid=h.valid),h)),Q=rn(async()=>be("silent"),h=>(T.valid=h.valid,h));function ee(h){return(h==null?void 0:h.mode)==="silent"?Q():le()}function E(h,_=!0){const I=ke(h);_e(I,_)}Cn(()=>{if(a)return le();(!j||!j.validateSchema)&&Q()});function qe(h){T.touched=h}function fe(h){var _;const I=h&&"value"in h?h.value:ie.value;de({value:P(I),initialValue:P(I),touched:(_=h==null?void 0:h.touched)!==null&&_!==void 0?_:!1,errors:(h==null?void 0:h.errors)||[]}),T.pending=!1,T.validated=!1,Q()}const ve=Re();function _e(h,_=!0){re.value=ve&&b?Vt(h,ve.props.modelModifiers):h,(_?le:Q)()}function Ie(h){de({errors:Array.isArray(h)?h:[h]})}const dn=S({get(){return re.value},set(h){_e(h,d)}}),W={id:Y,name:L,label:v,value:dn,meta:T,errors:U,errorMessage:$,type:s,checkedValue:c,uncheckedValue:y,bails:u,keepValueOnUnmount:A,resetField:fe,handleReset:()=>fe(),validate:ee,handleChange:E,handleBlur:ce,setState:de,setTouched:qe,setErrors:Ie,setValue:_e};if(nn(on,W),Ne(n)&&typeof M(n)!="function"&&ye(n,(h,_)=>{H(h,_)||(T.validated?le():Q())},{deep:!0}),!j)return W;const Le=S(()=>{const h=R.value;return!h||k(h)||Ue(h)||te(h)||Array.isArray(h)?{}:Object.keys(h).reduce((_,I)=>{const F=Pt(h[I]).map(oe=>oe.__locatorRef).reduce((oe,ae)=>{const J=G(j.values,ae)||j.values[ae];return J!==void 0&&(oe[ae]=J),oe},{});return Object.assign(_,F),_},{})});return ye(Le,(h,_)=>{if(!Object.keys(h).length)return;!H(h,_)&&(T.validated?le():Q())}),at(()=>{var h;const _=(h=m(W.keepValueOnUnmount))!==null&&h!==void 0?h:m(j.keepValuesOnUnmount),I=m(L);if(_||!j||D.pendingUnmount[W.id]){j==null||j.removePathState(I,Y);return}D.pendingUnmount[W.id]=!0;const F=j.getPathState(I);if(Array.isArray(F==null?void 0:F.id)&&(F!=null&&F.multiple)?F!=null&&F.id.includes(W.id):(F==null?void 0:F.id)===W.id){if(F!=null&&F.multiple&&Array.isArray(F.value)){const ae=F.value.findIndex(J=>H(J,m(W.checkedValue)));if(ae>-1){const J=[...F.value];J.splice(ae,1),j.setFieldValue(I,J)}Array.isArray(F.id)&&F.id.splice(F.id.indexOf(W.id),1)}else j.unsetPathValue(m(L));j.removePathState(I,Y)}}),W}function Lt(e){const n=()=>({initialValue:void 0,validateOnMount:!1,bails:!0,label:void 0,validateOnValueUpdate:!0,keepValueOnUnmount:void 0,syncVModel:!1,controlled:!0}),t=!!(e!=null&&e.syncVModel),r=typeof(e==null?void 0:e.syncVModel)=="string"?e.syncVModel:(e==null?void 0:e.modelPropName)||"modelValue",a=t&&!("initialValue"in(e||{}))?an(Re(),r):e==null?void 0:e.initialValue;if(!e)return Object.assign(Object.assign({},n()),{initialValue:a});const u="valueProp"in e?e.valueProp:e.checkedValue,s="standalone"in e?!e.standalone:e.controlled,c=(e==null?void 0:e.modelPropName)||(e==null?void 0:e.syncVModel)||!1;return Object.assign(Object.assign(Object.assign({},n()),e||{}),{initialValue:a,controlled:s??!0,checkedValue:u,syncVModel:c})}function Wt(e,n,t){const r=t!=null&&t.standalone?void 0:ze(Ve),a=t==null?void 0:t.checkedValue,u=t==null?void 0:t.uncheckedValue;function s(c){const v=c.handleChange,d=S(()=>{const V=m(c.value),A=m(a);return Array.isArray(V)?V.findIndex(b=>H(b,A))>=0:H(A,V)});function y(V,A=!0){var b,w;if(d.value===((b=V==null?void 0:V.target)===null||b===void 0?void 0:b.checked)){A&&c.validate();return}const K=m(e),j=r==null?void 0:r.getPathState(K),L=ke(V);let R=(w=m(a))!==null&&w!==void 0?w:L;r&&(j!=null&&j.multiple)&&j.type==="checkbox"?R=_n(G(r.values,K)||[],R,void 0):(t==null?void 0:t.type)==="checkbox"&&(R=_n(m(c.value),R,m(u))),v(R,A)}return Object.assign(Object.assign({},c),{checked:d,checkedValue:a,uncheckedValue:u,handleChange:y})}return s(qn(e,n,t))}function Ht({prop:e,value:n,handleChange:t,shouldValidate:r}){const a=Re();if(!a||!e)return;const u=typeof e=="string"?e:"modelValue",s=`update:${u}`;u in a.props&&(ye(n,c=>{H(c,an(a,u))||a.emit(s,c)}),ye(()=>an(a,u),c=>{if(c===Be&&n.value===void 0)return;const v=c===Be?void 0:c;H(v,n.value)||t(v,r())}))}function an(e,n){if(e)return e.props[n]}const Kt=Mn({name:"Field",inheritAttrs:!1,props:{as:{type:[String,Object],default:void 0},name:{type:String,required:!0},rules:{type:[Object,String,Function],default:void 0},validateOnMount:{type:Boolean,default:!1},validateOnBlur:{type:Boolean,default:void 0},validateOnChange:{type:Boolean,default:void 0},validateOnInput:{type:Boolean,default:void 0},validateOnModelUpdate:{type:Boolean,default:void 0},bails:{type:Boolean,default:()=>me().bails},label:{type:String,default:void 0},uncheckedValue:{type:null,default:void 0},modelValue:{type:null,default:Be},modelModifiers:{type:null,default:()=>({})},"onUpdate:modelValue":{type:null,default:void 0},standalone:{type:Boolean,default:!1},keepValue:{type:Boolean,default:void 0}},setup(e,n){const t=Se(e,"rules"),r=Se(e,"name"),a=Se(e,"label"),u=Se(e,"uncheckedValue"),s=Se(e,"keepValue"),{errors:c,value:v,errorMessage:d,validate:y,handleChange:V,handleBlur:A,setTouched:b,resetField:w,handleReset:K,meta:j,checked:L,setErrors:R,setValue:Oe}=qt(r,t,{validateOnMount:e.validateOnMount,bails:e.bails,standalone:e.standalone,type:n.attrs.type,initialValue:Gt(e,n),checkedValue:n.attrs.value,uncheckedValue:u,label:a,validateOnValueUpdate:e.validateOnModelUpdate,keepValueOnUnmount:s,syncVModel:!0}),Y=function(D,$=!0){V(D,$)},re=S(()=>{const{validateOnInput:U,validateOnChange:D,validateOnBlur:$,validateOnModelUpdate:ce}=xt(e);function be(E){A(E,$),k(n.attrs.onBlur)&&n.attrs.onBlur(E)}function le(E){Y(E,U),k(n.attrs.onInput)&&n.attrs.onInput(E)}function Q(E){Y(E,D),k(n.attrs.onChange)&&n.attrs.onChange(E)}const ee={name:e.name,onBlur:be,onInput:le,onChange:Q};return ee["onUpdate:modelValue"]=E=>Y(E,ce),ee}),ie=S(()=>{const U=Object.assign({},re.value);Pe(n.attrs.type)&&L&&(U.checked=L.value);const D=En(e,n);return bt(D,n.attrs)&&(U.value=v.value),U}),T=S(()=>Object.assign(Object.assign({},re.value),{modelValue:v.value}));function de(){return{field:ie.value,componentField:T.value,value:v.value,meta:j,errors:c.value,errorMessage:d.value,validate:y,resetField:w,handleChange:Y,handleInput:U=>Y(U,!1),handleReset:K,handleBlur:re.value.onBlur,setTouched:b,setErrors:R,setValue:Oe}}return n.expose({value:v,meta:j,errors:c,errorMessage:d,setErrors:R,setTouched:b,setValue:Oe,reset:w,validate:y,handleChange:V}),()=>{const U=wn(En(e,n)),D=Un(U,n,de);return U?en(U,Object.assign(Object.assign({},n.attrs),ie.value),D):D}}});function En(e,n){let t=e.as||"";return!e.as&&!n.slots.default&&(t="input"),t}function xt(e){var n,t,r,a;const{validateOnInput:u,validateOnChange:s,validateOnBlur:c,validateOnModelUpdate:v}=me();return{validateOnInput:(n=e.validateOnInput)!==null&&n!==void 0?n:u,validateOnChange:(t=e.validateOnChange)!==null&&t!==void 0?t:s,validateOnBlur:(r=e.validateOnBlur)!==null&&r!==void 0?r:c,validateOnModelUpdate:(a=e.validateOnModelUpdate)!==null&&a!==void 0?a:v}}function Gt(e,n){return Pe(n.attrs.type)?On(e,"modelValue")?e.modelValue:void 0:On(e,"modelValue")?e.modelValue:n.attrs.value}const ar=Kt;let Zt=0;const Ce=["bails","fieldsCount","id","multiple","type","validate"];function Ln(e){const n=(e==null?void 0:e.initialValues)||{},t=Object.assign({},m(n)),r=M(e==null?void 0:e.validationSchema);return r&&te(r)&&k(r.cast)?P(r.cast(t)||{}):P(t)}function ur(e){var n;const t=Zt++,r=(e==null?void 0:e.name)||"Form";let a=0;const u=ne(!1),s=ne(!1),c=ne(0),v=[],d=we(Ln(e)),y=ne([]),V=ne({}),A=ne({}),b=_t(()=>{A.value=y.value.reduce((l,i)=>(l[Ae(m(i.path))]=i,l),{})});function w(l,i){const o=E(l);if(!o){typeof l=="string"&&(V.value[Ae(l)]=ln(i));return}if(typeof l=="string"){const f=Ae(l);V.value[f]&&delete V.value[f]}o.errors=ln(i),o.valid=!o.errors.length}function K(l){Z(l).forEach(i=>{w(i,l[i])})}e!=null&&e.initialErrors&&K(e.initialErrors);const j=S(()=>{const l=y.value.reduce((i,o)=>(o.errors.length&&(i[m(o.path)]=o.errors),i),{});return Object.assign(Object.assign({},V.value),l)}),L=S(()=>Z(j.value).reduce((l,i)=>{const o=j.value[i];return o!=null&&o.length&&(l[i]=o[0]),l},{})),R=S(()=>y.value.reduce((l,i)=>(l[m(i.path)]={name:m(i.path)||"",label:i.label||""},l),{})),Oe=S(()=>y.value.reduce((l,i)=>{var o;return l[m(i.path)]=(o=i.bails)!==null&&o!==void 0?o:!0,l},{})),Y=Object.assign({},(e==null?void 0:e.initialErrors)||{}),re=(n=e==null?void 0:e.keepValuesOnUnmount)!==null&&n!==void 0?n:!1,{initialValues:ie,originalInitialValues:T,setInitialValues:de}=Jt(y,d,e),U=Yt(y,d,T,L),D=S(()=>y.value.reduce((l,i)=>{const o=G(d,m(i.path));return se(l,m(i.path),o),l},{})),$=e==null?void 0:e.validationSchema;function ce(l,i){var o,f;const O=S(()=>G(ie.value,m(l))),p=A.value[m(l)],g=(i==null?void 0:i.type)==="checkbox"||(i==null?void 0:i.type)==="radio";if(p&&g){p.multiple=!0;const X=a++;return Array.isArray(p.id)?p.id.push(X):p.id=[p.id,X],p.fieldsCount++,p.__flags.pendingUnmount[X]=!1,p}const N=S(()=>G(d,m(l))),B=m(l),z=fe.findIndex(X=>X===B);z!==-1&&fe.splice(z,1);const C=S(()=>{var X,je,Ge,Ze;const Ye=m($);if(te(Ye))return(je=(X=Ye.describe)===null||X===void 0?void 0:X.call(Ye,m(l)).required)!==null&&je!==void 0?je:!1;const Je=m(i==null?void 0:i.schema);return te(Je)&&(Ze=(Ge=Je.describe)===null||Ge===void 0?void 0:Ge.call(Je).required)!==null&&Ze!==void 0?Ze:!1}),q=a++,x=we({id:q,path:l,touched:!1,pending:!1,valid:!0,validated:!!(!((o=Y[B])===null||o===void 0)&&o.length),required:C,initialValue:O,errors:lt([]),bails:(f=i==null?void 0:i.bails)!==null&&f!==void 0?f:!1,label:i==null?void 0:i.label,type:(i==null?void 0:i.type)||"default",value:N,multiple:!1,__flags:{pendingUnmount:{[q]:!1},pendingReset:!1},fieldsCount:1,validate:i==null?void 0:i.validate,dirty:S(()=>!H(M(N),M(O)))});return y.value.push(x),A.value[B]=x,b(),L.value[B]&&!Y[B]&&ue(()=>{he(B,{mode:"silent"})}),Ne(l)&&ye(l,X=>{b();const je=P(N.value);A.value[X]=x,ue(()=>{se(d,X,je)})}),x}const be=jn(vn,5),le=jn(vn,5),Q=rn(async l=>await(l==="silent"?be():le()),(l,[i])=>{const o=Z(_.errorBag.value),O=[...new Set([...Z(l.results),...y.value.map(p=>p.path),...o])].sort().reduce((p,g)=>{var N;const B=g,z=E(B)||qe(B),C=((N=l.results[B])===null||N===void 0?void 0:N.errors)||[],q=m(z==null?void 0:z.path)||B,x=Xt({errors:C,valid:!C.length},p.results[q]);return p.results[q]=x,x.valid||(p.errors[q]=x.errors[0]),z&&V.value[q]&&delete V.value[q],z?(z.valid=x.valid,i==="silent"||i==="validated-only"&&!z.validated||w(z,x.errors),p):(w(q,C),p)},{valid:l.valid,results:{},errors:{},source:l.source});return l.values&&(O.values=l.values,O.source=l.source),Z(O.results).forEach(p=>{var g;const N=E(p);N&&i!=="silent"&&(i==="validated-only"&&!N.validated||w(N,(g=O.results[p])===null||g===void 0?void 0:g.errors))}),O});function ee(l){y.value.forEach(l)}function E(l){const i=typeof l=="string"?Ae(l):l;return typeof i=="string"?A.value[i]:i}function qe(l){return y.value.filter(o=>l.startsWith(m(o.path))).reduce((o,f)=>o?f.path.length>o.path.length?f:o:f,void 0)}let fe=[],ve;function _e(l){return fe.push(l),ve||(ve=ue(()=>{[...fe].sort().reverse().forEach(o=>{Vn(d,o)}),fe=[],ve=null})),ve}function Ie(l){return function(o,f){return function(p){return p instanceof Event&&(p.preventDefault(),p.stopPropagation()),ee(g=>g.touched=!0),u.value=!0,c.value++,pe().then(g=>{const N=P(d);if(g.valid&&typeof o=="function"){const B=P(D.value);let z=l?B:N;return g.values&&(z=g.source==="schema"?g.values:Object.assign({},z,g.values)),o(z,{evt:p,controlledValues:B,setErrors:K,setFieldError:w,setTouched:We,setFieldTouched:J,setValues:oe,setFieldValue:I,resetForm:He,resetField:cn})}!g.valid&&typeof f=="function"&&f({values:N,evt:p,errors:g.errors,results:g.results})}).then(g=>(u.value=!1,g),g=>{throw u.value=!1,g})}}}const W=Ie(!1);W.withControlled=Ie(!0);function Le(l,i){const o=y.value.findIndex(O=>O.path===l&&(Array.isArray(O.id)?O.id.includes(i):O.id===i)),f=y.value[o];if(!(o===-1||!f)){if(ue(()=>{he(l,{mode:"silent",warn:!1})}),f.multiple&&f.fieldsCount&&f.fieldsCount--,Array.isArray(f.id)){const O=f.id.indexOf(i);O>=0&&f.id.splice(O,1),delete f.__flags.pendingUnmount[i]}(!f.multiple||f.fieldsCount<=0)&&(y.value.splice(o,1),fn(l),b(),delete A.value[l])}}function h(l){Z(A.value).forEach(i=>{i.startsWith(l)&&delete A.value[i]}),y.value=y.value.filter(i=>!i.path.startsWith(l)),ue(()=>{b()})}const _={name:r,formId:t,values:d,controlledValues:D,errorBag:j,errors:L,schema:$,submitCount:c,meta:U,isSubmitting:u,isValidating:s,fieldArrays:v,keepValuesOnUnmount:re,validateSchema:M($)?Q:void 0,validate:pe,setFieldError:w,validateField:he,setFieldValue:I,setValues:oe,setErrors:K,setFieldTouched:J,setTouched:We,resetForm:He,resetField:cn,handleSubmit:W,useFieldModel:et,defineInputBinds:nt,defineComponentBinds:tt,defineField:xe,stageInitialValue:Xn,unsetInitialValue:fn,setFieldInitialValue:Ke,createPathState:ce,getPathState:E,unsetPathValue:_e,removePathState:Le,initialValues:ie,getAllPathStates:()=>y.value,destroyPath:h,isFieldTouched:Zn,isFieldDirty:Yn,isFieldValid:Jn};function I(l,i,o=!0){const f=P(i),O=typeof l=="string"?l:l.path;E(O)||ce(O),se(d,O,f),o&&he(O)}function F(l,i=!0){Z(d).forEach(o=>{delete d[o]}),Z(l).forEach(o=>{I(o,l[o],!1)}),i&&pe()}function oe(l,i=!0){Ee(d,l),v.forEach(o=>o&&o.reset()),i&&pe()}function ae(l,i){const o=E(m(l))||ce(l);return S({get(){return o.value},set(f){var O;const p=m(l);I(p,f,(O=m(i))!==null&&O!==void 0?O:!1)}})}function J(l,i){const o=E(l);o&&(o.touched=i)}function Zn(l){const i=E(l);return i?i.touched:y.value.filter(o=>o.path.startsWith(l)).some(o=>o.touched)}function Yn(l){const i=E(l);return i?i.dirty:y.value.filter(o=>o.path.startsWith(l)).some(o=>o.dirty)}function Jn(l){const i=E(l);return i?i.valid:y.value.filter(o=>o.path.startsWith(l)).every(o=>o.valid)}function We(l){if(typeof l=="boolean"){ee(i=>{i.touched=l});return}Z(l).forEach(i=>{J(i,!!l[i])})}function cn(l,i){var o;const f=i&&"value"in i?i.value:G(ie.value,l),O=E(l);O&&(O.__flags.pendingReset=!0),Ke(l,P(f),!0),I(l,f,!1),J(l,(o=i==null?void 0:i.touched)!==null&&o!==void 0?o:!1),w(l,(i==null?void 0:i.errors)||[]),ue(()=>{O&&(O.__flags.pendingReset=!1)})}function He(l,i){let o=P(l!=null&&l.values?l.values:T.value);o=i!=null&&i.force?o:Ee(T.value,o),o=te($)&&k($.cast)?$.cast(o):o,de(o,{force:i==null?void 0:i.force}),ee(f=>{var O;f.__flags.pendingReset=!0,f.validated=!1,f.touched=((O=l==null?void 0:l.touched)===null||O===void 0?void 0:O[m(f.path)])||!1,I(m(f.path),G(o,m(f.path)),!1),w(m(f.path),void 0)}),i!=null&&i.force?F(o,!1):oe(o,!1),K((l==null?void 0:l.errors)||{}),c.value=(l==null?void 0:l.submitCount)||0,ue(()=>{pe({mode:"silent"}),ee(f=>{f.__flags.pendingReset=!1})})}async function pe(l){const i=(l==null?void 0:l.mode)||"force";if(i==="force"&&ee(g=>g.validated=!0),_.validateSchema)return _.validateSchema(i);s.value=!0;const o=await Promise.all(y.value.map(g=>g.validate?g.validate(l).then(N=>({key:m(g.path),valid:N.valid,errors:N.errors,value:N.value})):Promise.resolve({key:m(g.path),valid:!0,errors:[],value:void 0})));s.value=!1;const f={},O={},p={};for(const g of o)f[g.key]={valid:g.valid,errors:g.errors},g.value&&se(p,g.key,g.value),g.errors.length&&(O[g.key]=g.errors[0]);return{valid:o.every(g=>g.valid),results:f,errors:O,values:p,source:"fields"}}async function he(l,i){var o;const f=E(l);if(f&&(i==null?void 0:i.mode)!=="silent"&&(f.validated=!0),$){const{results:O}=await Q((i==null?void 0:i.mode)||"validated-only");return O[l]||{errors:[],valid:!0}}return f!=null&&f.validate?f.validate(i):(!f&&(o=i==null?void 0:i.warn),Promise.resolve({errors:[],valid:!0}))}function fn(l){Vn(ie.value,l)}function Xn(l,i,o=!1){Ke(l,i),se(d,l,i),o&&!(e!=null&&e.initialValues)&&se(T.value,l,P(i))}function Ke(l,i,o=!1){se(ie.value,l,P(i)),o&&se(T.value,l,P(i))}async function vn(){const l=M($);if(!l)return{valid:!0,results:{},errors:{},source:"none"};s.value=!0;const i=Ue(l)||te(l)?await Bt(l,d):await Ut(l,d,{names:R.value,bailsMap:Oe.value});return s.value=!1,i}const Qn=W((l,{evt:i})=>{pt(i)&&i.target.submit()});Cn(()=>{if(e!=null&&e.initialErrors&&K(e.initialErrors),e!=null&&e.initialTouched&&We(e.initialTouched),e!=null&&e.validateOnMount){pe();return}_.validateSchema&&_.validateSchema("silent")}),Ne($)&&ye($,()=>{var l;(l=_.validateSchema)===null||l===void 0||l.call(_,"validated-only")}),nn(Ve,_);function xe(l,i){const o=k(i)||i==null?void 0:i.label,f=E(m(l))||ce(l,{label:o}),O=()=>k(i)?i(Me(f,Ce)):i||{};function p(){var C;f.touched=!0,((C=O().validateOnBlur)!==null&&C!==void 0?C:me().validateOnBlur)&&he(m(f.path))}function g(){var C;((C=O().validateOnInput)!==null&&C!==void 0?C:me().validateOnInput)&&ue(()=>{he(m(f.path))})}function N(){var C;((C=O().validateOnChange)!==null&&C!==void 0?C:me().validateOnChange)&&ue(()=>{he(m(f.path))})}const B=S(()=>{const C={onChange:N,onInput:g,onBlur:p};return k(i)?Object.assign(Object.assign({},C),i(Me(f,Ce)).props||{}):i!=null&&i.props?Object.assign(Object.assign({},C),i.props(Me(f,Ce))):C});return[ae(l,()=>{var C,q,x;return(x=(C=O().validateOnModelUpdate)!==null&&C!==void 0?C:(q=me())===null||q===void 0?void 0:q.validateOnModelUpdate)!==null&&x!==void 0?x:!0}),B]}function et(l){return Array.isArray(l)?l.map(i=>ae(i,!0)):ae(l)}function nt(l,i){const[o,f]=xe(l,i);function O(){f.value.onBlur()}function p(N){const B=ke(N);I(m(l),B,!1),f.value.onInput()}function g(N){const B=ke(N);I(m(l),B,!1),f.value.onChange()}return S(()=>Object.assign(Object.assign({},f.value),{onBlur:O,onInput:p,onChange:g,value:o.value}))}function tt(l,i){const[o,f]=xe(l,i),O=E(m(l));function p(g){o.value=g}return S(()=>{const g=k(i)?i(Me(O,Ce)):i||{};return Object.assign({[g.model||"modelValue"]:o.value,[`onUpdate:${g.model||"modelValue"}`]:p},f.value)})}const hn=Object.assign(Object.assign({},_),{values:rt(d),handleReset:()=>He(),submitForm:Qn});return nn(vt,hn),hn}function Yt(e,n,t,r){const a={touched:"some",pending:"some",valid:"every"},u=S(()=>!H(n,M(t)));function s(){const v=e.value;return Z(a).reduce((d,y)=>{const V=a[y];return d[y]=v[V](A=>A[y]),d},{})}const c=we(s());return it(()=>{const v=s();c.touched=v.touched,c.valid=v.valid,c.pending=v.pending}),S(()=>Object.assign(Object.assign({initialValues:M(t)},c),{valid:c.valid&&!Z(r.value).length,dirty:u.value}))}function Jt(e,n,t){const r=Ln(t),a=ne(r),u=ne(P(r));function s(c,v){v!=null&&v.force?(a.value=P(c),u.value=P(c)):(a.value=Ee(P(a.value)||{},P(c)),u.value=Ee(P(u.value)||{},P(c))),v!=null&&v.updateFields&&e.value.forEach(d=>{if(d.touched)return;const V=G(a.value,m(d.path));se(n,m(d.path),P(V))})}return{initialValues:a,originalInitialValues:u,setInitialValues:s}}function Xt(e,n){return n?{valid:e.valid&&n.valid,errors:[...e.errors,...n.errors]}:e}const Qt=Mn({name:"ErrorMessage",props:{as:{type:String,default:void 0},name:{type:String,required:!0}},setup(e,n){const t=De(Ve,void 0),r=S(()=>t==null?void 0:t.errors.value[e.name]);function a(){return{message:r.value}}return()=>{if(!r.value)return;const u=e.as?wn(e.as):e.as,s=Un(u,n,a),c=Object.assign({role:"alert"},n.attrs);return!u&&(Array.isArray(s)||!s)&&(s!=null&&s.length)?s:(Array.isArray(s)||!s)&&!(s!=null&&s.length)?en(u||"span",c,r.value):en(u,c,s)}}}),or=Qt;function sr(e){const n=sn(e);return S(()=>{var t,r;return n&&(r="meta"in n?n.meta.dirty:(t=n==null?void 0:n.value)===null||t===void 0?void 0:t.dirty)!==null&&r!==void 0?r:!1})}function dr(e){const n=sn(e);return S(()=>{var t,r;return n&&(r="meta"in n?n.meta.touched:(t=n==null?void 0:n.value)===null||t===void 0?void 0:t.touched)!==null&&r!==void 0?r:!1})}function cr(e){const n=sn(e);return S(()=>{var t,r;return n&&(r="meta"in n?n.meta.valid:(t=n==null?void 0:n.value)===null||t===void 0?void 0:t.valid)!==null&&r!==void 0?r:!1})}function fr(e){const n=ze(Ve),t=e?void 0:De(on);return S(()=>e?n==null?void 0:n.errors.value[m(e)]:t==null?void 0:t.errorMessage.value)}/**
|
|
5
|
+
*/function k(e){return typeof e=="function"}function Nn(e){return e==null}const ge=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function un(e){return Number(e)>=0}function ot(e){const n=parseFloat(e);return isNaN(n)?e:n}function st(e){return typeof e=="object"&&e!==null}function dt(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function yn(e){if(!st(e)||dt(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let n=e;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}function Ee(e,n){return Object.keys(n).forEach(t=>{if(yn(n[t])&&yn(e[t])){e[t]||(e[t]={}),Ee(e[t],n[t]);return}e[t]=n[t]}),e}function Ae(e){const n=e.split(".");if(!n.length)return"";let t=String(n[0]);for(let r=1;r<n.length;r++){if(un(n[r])){t+=`[${n[r]}]`;continue}t+=`.${n[r]}`}return t}const ct={};function ft(e){return ct[e]}function gn(e,n,t){typeof t.value=="object"&&(t.value=P(t.value)),!t.enumerable||t.get||t.set||!t.configurable||!t.writable||n==="__proto__"?Object.defineProperty(e,n,t):e[n]=t.value}function P(e){if(typeof e!="object")return e;var n=0,t,r,a,u=Object.prototype.toString.call(e);if(u==="[object Object]"?a=Object.create(e.__proto__||null):u==="[object Array]"?a=Array(e.length):u==="[object Set]"?(a=new Set,e.forEach(function(s){a.add(P(s))})):u==="[object Map]"?(a=new Map,e.forEach(function(s,c){a.set(P(c),P(s))})):u==="[object Date]"?a=new Date(+e):u==="[object RegExp]"?a=new RegExp(e.source,e.flags):u==="[object DataView]"?a=new e.constructor(P(e.buffer)):u==="[object ArrayBuffer]"?a=e.slice(0):u.slice(-6)==="Array]"&&(a=new e.constructor(e)),a){for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)gn(a,r[n],Object.getOwnPropertyDescriptor(e,r[n]));for(n=0,r=Object.getOwnPropertyNames(e);n<r.length;n++)Object.hasOwnProperty.call(a,t=r[n])&&a[t]===e[t]||gn(a,t,Object.getOwnPropertyDescriptor(e,t))}return a||e}const Ve=Symbol("vee-validate-form"),vt=Symbol("vee-validate-form-context"),on=Symbol("vee-validate-field-instance"),Be=Symbol("Default empty value"),ht=typeof window<"u";function tn(e){return k(e)&&!!e.__locatorRef}function te(e){return!!e&&k(e.parse)&&e.__type==="VVTypedSchema"}function Ue(e){return!!e&&k(e.validate)}function Pe(e){return e==="checkbox"||e==="radio"}function mt(e){return ge(e)||Array.isArray(e)}function yt(e){return Array.isArray(e)?e.length===0:ge(e)&&Object.keys(e).length===0}function Fe(e){return/^\[.+\]$/i.test(e)}function gt(e){return Tn(e)&&e.multiple}function Tn(e){return e.tagName==="SELECT"}function Ot(e,n){const t=![!1,null,void 0,0].includes(n.multiple)&&!Number.isNaN(n.multiple);return e==="select"&&"multiple"in n&&t}function bt(e,n){return!Ot(e,n)&&n.type!=="file"&&!Pe(n.type)}function pt(e){return Bn(e)&&e.target&&"submit"in e.target}function Bn(e){return e?!!(typeof Event<"u"&&k(Event)&&e instanceof Event||e&&e.srcElement):!1}function On(e,n){return n in e&&e[n]!==Be}function H(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var t,r,a;if(Array.isArray(e)){if(t=e.length,t!=n.length)return!1;for(r=t;r--!==0;)if(!H(e[r],n[r]))return!1;return!0}if(e instanceof Map&&n instanceof Map){if(e.size!==n.size)return!1;for(r of e.entries())if(!n.has(r[0]))return!1;for(r of e.entries())if(!H(r[1],n.get(r[0])))return!1;return!0}if(pn(e)&&pn(n))return!(e.size!==n.size||e.name!==n.name||e.lastModified!==n.lastModified||e.type!==n.type);if(e instanceof Set&&n instanceof Set){if(e.size!==n.size)return!1;for(r of e.entries())if(!n.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(n)){if(t=e.length,t!=n.length)return!1;for(r=t;r--!==0;)if(e[r]!==n[r])return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(a=Object.keys(e),t=a.length-bn(e,a),t!==Object.keys(n).length-bn(n,Object.keys(n)))return!1;for(r=t;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[r]))return!1;for(r=t;r--!==0;){var u=a[r];if(!H(e[u],n[u]))return!1}return!0}return e!==e&&n!==n}function bn(e,n){let t=0;for(let a=n.length;a--!==0;){var r=n[a];e[r]===void 0&&t++}return t}function pn(e){return ht?e instanceof File:!1}function $e(e){return Fe(e)?e.replace(/\[|\]/gi,""):e}function G(e,n,t){return e?Fe(n)?e[$e(n)]:(n||"").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((a,u)=>mt(a)&&u in a?a[u]:t,e):t}function se(e,n,t){if(Fe(n)){e[$e(n)]=t;return}const r=n.split(/\.|\[(\d+)\]/).filter(Boolean);let a=e;for(let u=0;u<r.length;u++){if(u===r.length-1){a[r[u]]=t;return}(!(r[u]in a)||Nn(a[r[u]]))&&(a[r[u]]=un(r[u+1])?[]:{}),a=a[r[u]]}}function Xe(e,n){if(Array.isArray(e)&&un(n)){e.splice(Number(n),1);return}ge(e)&&delete e[n]}function Vn(e,n){if(Fe(n)){delete e[$e(n)];return}const t=n.split(/\.|\[(\d+)\]/).filter(Boolean);let r=e;for(let u=0;u<t.length;u++){if(u===t.length-1){Xe(r,t[u]);break}if(!(t[u]in r)||Nn(r[t[u]]))break;r=r[t[u]]}const a=t.map((u,s)=>G(e,t.slice(0,s).join(".")));for(let u=a.length-1;u>=0;u--)if(yt(a[u])){if(u===0){Xe(e,t[0]);continue}Xe(a[u-1],t[u-1])}}function Z(e){return Object.keys(e)}function qe(e,n=void 0){const t=Re();return(t==null?void 0:t.provides[e])||De(e,n)}function _n(e,n,t){if(Array.isArray(e)){const r=[...e],a=r.findIndex(u=>H(u,n));return a>=0?r.splice(a,1):r.push(n),r}return H(e,n)?t:n}function jn(e,n=0){let t=null,r=[];return function(...a){return t&&clearTimeout(t),t=setTimeout(()=>{const u=e(...a);r.forEach(s=>s(u)),r=[]},n),new Promise(u=>r.push(u))}}function Vt(e,n){return ge(n)&&n.number?ot(e):e}function rn(e,n){let t;return async function(...a){const u=e(...a);t=u;const s=await u;return u!==t?s:(t=void 0,n(s,a))}}function ln(e){return Array.isArray(e)?e:e?[e]:[]}function sn(e){const n=qe(Ve),t=e?S(()=>n==null?void 0:n.getPathState(m(e))):void 0,r=e?void 0:De(on);return!r&&(t!=null&&t.value),t||r}function Ce(e,n){const t={};for(const r in e)n.includes(r)||(t[r]=e[r]);return t}function _t(e){let n=null,t=[];return function(...r){const a=ue(()=>{if(n!==a)return;const u=e(...r);t.forEach(s=>s(u)),t=[],n=null});return n=a,new Promise(u=>t.push(u))}}function Un(e,n,t){return n.slots.default?typeof e=="string"||!e?n.slots.default(t()):{default:()=>{var r,a;return(a=(r=n.slots).default)===null||a===void 0?void 0:a.call(r,t())}}:n.slots.default}function Qe(e){if(kn(e))return e._value}function kn(e){return"_value"in e}function jt(e){return e.type==="number"||e.type==="range"?Number.isNaN(e.valueAsNumber)?e.value:e.valueAsNumber:e.value}function ke(e){if(!Bn(e))return e;const n=e.target;if(Pe(n.type)&&kn(n))return Qe(n);if(n.type==="file"&&n.files){const t=Array.from(n.files);return n.multiple?t:t[0]}if(gt(n))return Array.from(n.options).filter(t=>t.selected&&!t.disabled).map(Qe);if(Tn(n)){const t=Array.from(n.options).find(r=>r.selected);return t?Qe(t):n.value}return jt(n)}function Rn(e){const n={};return Object.defineProperty(n,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),e?ge(e)&&e._$$isNormalized?e:ge(e)?Object.keys(e).reduce((t,r)=>{const a=St(e[r]);return e[r]!==!1&&(t[r]=Sn(a)),t},n):typeof e!="string"?n:e.split("|").reduce((t,r)=>{const a=At(r);return a.name&&(t[a.name]=Sn(a.params)),t},n):n}function St(e){return e===!0?[]:Array.isArray(e)||ge(e)?e:[e]}function Sn(e){const n=t=>typeof t=="string"&&t[0]==="@"?Et(t.slice(1)):t;return Array.isArray(e)?e.map(n):e instanceof RegExp?[e]:Object.keys(e).reduce((t,r)=>(t[r]=n(e[r]),t),{})}const At=e=>{let n=[];const t=e.split(":")[0];return e.includes(":")&&(n=e.split(":").slice(1).join(":").split(",")),{name:t,params:n}};function Et(e){const n=t=>{var r;return(r=G(t,e))!==null&&r!==void 0?r:t[e]};return n.__locatorRef=e,n}function Pt(e){return Array.isArray(e)?e.filter(tn):Z(e).filter(n=>tn(e[n])).map(n=>e[n])}const Ft={generateMessage:({field:e})=>`${e} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0};let It=Object.assign({},Ft);const me=()=>It;async function Dn(e,n,t={}){const r=t==null?void 0:t.bails,a={name:(t==null?void 0:t.name)||"{field}",rules:n,label:t==null?void 0:t.label,bails:r??!0,formData:(t==null?void 0:t.values)||{}},u=await Ct(a,e);return Object.assign(Object.assign({},u),{valid:!u.errors.length})}async function Ct(e,n){const t=e.rules;if(te(t)||Ue(t))return wt(n,Object.assign(Object.assign({},e),{rules:t}));if(k(t)||Array.isArray(t)){const c={field:e.label||e.name,name:e.name,label:e.label,form:e.formData,value:n},v=Array.isArray(t)?t:[t],d=v.length,y=[];for(let V=0;V<d;V++){const A=v[V],b=await A(n,c);if(!(typeof b!="string"&&!Array.isArray(b)&&b)){if(Array.isArray(b))y.push(...b);else{const K=typeof b=="string"?b:qn(c);y.push(K)}if(e.bails)return{errors:y}}}return{errors:y}}const r=Object.assign(Object.assign({},e),{rules:Rn(t)}),a=[],u=Object.keys(r.rules),s=u.length;for(let c=0;c<s;c++){const v=u[c],d=await Nt(r,n,{name:v,params:r.rules[v]});if(d.error&&(a.push(d.error),e.bails))return{errors:a}}return{errors:a}}function Mt(e){return!!e&&e.name==="ValidationError"}function $n(e){return{__type:"VVTypedSchema",async parse(t,r){var a;try{return{output:await e.validate(t,{abortEarly:!1,context:(r==null?void 0:r.formData)||{}}),errors:[]}}catch(u){if(!Mt(u))throw u;if(!(!((a=u.inner)===null||a===void 0)&&a.length)&&u.errors.length)return{errors:[{path:u.path,errors:u.errors}]};const s=u.inner.reduce((c,v)=>{const d=v.path||"";return c[d]||(c[d]={errors:[],path:d}),c[d].errors.push(...v.errors),c},{});return{errors:Object.values(s)}}}}}async function wt(e,n){const r=await(te(n.rules)?n.rules:$n(n.rules)).parse(e,{formData:n.formData}),a=[];for(const u of r.errors)u.errors.length&&a.push(...u.errors);return{value:r.value,errors:a}}async function Nt(e,n,t){const r=ft(t.name);if(!r)throw new Error(`No such validator '${t.name}' exists.`);const a=Tt(t.params,e.formData),u={field:e.label||e.name,name:e.name,label:e.label,value:n,form:e.formData,rule:Object.assign(Object.assign({},t),{params:a})},s=await r(n,a,u);return typeof s=="string"?{error:s}:{error:s?void 0:qn(u)}}function qn(e){const n=me().generateMessage;return n?n(e):"Field is invalid"}function Tt(e,n){const t=r=>tn(r)?r(n):r;return Array.isArray(e)?e.map(t):Object.keys(e).reduce((r,a)=>(r[a]=t(e[a]),r),{})}async function Bt(e,n){const r=await(te(e)?e:$n(e)).parse(P(n),{formData:P(n)}),a={},u={};for(const s of r.errors){const c=s.errors,v=(s.path||"").replace(/\["(\d+)"\]/g,(d,y)=>`[${y}]`);a[v]={valid:!c.length,errors:c},c.length&&(u[v]=c[0])}return{valid:!r.errors.length,results:a,errors:u,values:r.value,source:"schema"}}async function Ut(e,n,t){const a=Z(e).map(async d=>{var y,V,A;const b=(y=t==null?void 0:t.names)===null||y===void 0?void 0:y[d],w=await Dn(G(n,d),e[d],{name:(b==null?void 0:b.name)||d,label:b==null?void 0:b.label,values:n,bails:(A=(V=t==null?void 0:t.bailsMap)===null||V===void 0?void 0:V[d])!==null&&A!==void 0?A:!0});return Object.assign(Object.assign({},w),{path:d})});let u=!0;const s=await Promise.all(a),c={},v={};for(const d of s)c[d.path]={valid:d.valid,errors:d.errors},d.valid||(u=!1,v[d.path]=d.errors[0]);return{valid:u,results:c,errors:v,source:"schema"}}let An=0;function kt(e,n){const{value:t,initialValue:r,setInitialValue:a}=Rt(e,n.modelValue,n.form);if(!n.form){let v=function(b){var w;"value"in b&&(t.value=b.value),"errors"in b&&y(b.errors),"touched"in b&&(A.touched=(w=b.touched)!==null&&w!==void 0?w:A.touched),"initialValue"in b&&a(b.initialValue)};const{errors:d,setErrors:y}=qt(),V=An>=Number.MAX_SAFE_INTEGER?0:++An,A=$t(t,r,d,n.schema);return{id:V,path:e,value:t,initialValue:r,meta:A,flags:{pendingUnmount:{[V]:!1},pendingReset:!1},errors:d,setState:v}}const u=n.form.createPathState(e,{bails:n.bails,label:n.label,type:n.type,validate:n.validate,schema:n.schema}),s=S(()=>u.errors);function c(v){var d,y,V;"value"in v&&(t.value=v.value),"errors"in v&&((d=n.form)===null||d===void 0||d.setFieldError(C(e),v.errors)),"touched"in v&&((y=n.form)===null||y===void 0||y.setFieldTouched(C(e),(V=v.touched)!==null&&V!==void 0?V:!1)),"initialValue"in v&&a(v.initialValue)}return{id:Array.isArray(u.id)?u.id[u.id.length-1]:u.id,path:e,value:t,errors:s,meta:u,initialValue:r,flags:u.__flags,setState:c}}function Rt(e,n,t){const r=ne(C(n));function a(){return t?G(t.initialValues.value,C(e),C(r)):C(r)}function u(d){if(!t){r.value=d;return}t.setFieldInitialValue(C(e),d,!0)}const s=S(a);if(!t)return{value:ne(a()),initialValue:s,setInitialValue:u};const c=Dt(n,t,s,e);return t.stageInitialValue(C(e),c,!0),{value:S({get(){return G(t.values,C(e))},set(d){t.setFieldValue(C(e),d,!1)}}),initialValue:s,setInitialValue:u}}function Dt(e,n,t,r){return Ne(e)?C(e):e!==void 0?e:G(n.values,C(r),C(t))}function $t(e,n,t,r){const a=S(()=>{var s,c,v;return(v=(c=(s=m(r))===null||s===void 0?void 0:s.describe)===null||c===void 0?void 0:c.call(s).required)!==null&&v!==void 0?v:!1}),u=we({touched:!1,pending:!1,valid:!0,required:a,validated:!!C(t).length,initialValue:S(()=>C(n)),dirty:S(()=>!H(C(e),C(n)))});return ye(t,s=>{u.valid=!s.length},{immediate:!0,flush:"sync"}),u}function qt(){const e=ne([]);return{errors:e,setErrors:n=>{e.value=ln(n)}}}function zt(e,n,t){return Pe(t==null?void 0:t.type)?Wt(e,n,t):zn(e,n,t)}function zn(e,n,t){const{initialValue:r,validateOnMount:a,bails:u,type:s,checkedValue:c,label:v,validateOnValueUpdate:d,uncheckedValue:y,controlled:V,keepValueOnUnmount:A,syncVModel:b,form:w}=Lt(t),K=V?qe(Ve):void 0,j=w||K,L=S(()=>Ae(m(e))),R=S(()=>{if(m(j==null?void 0:j.schema))return;const _=C(n);return Ue(_)||te(_)||k(_)||Array.isArray(_)?_:Rn(_)}),Oe=!k(R.value)&&te(m(n)),{id:Y,value:re,initialValue:ie,meta:T,setState:de,errors:U,flags:D}=kt(L,{modelValue:r,form:j,bails:u,label:v,type:s,validate:R.value?ee:void 0,schema:Oe?n:void 0}),$=S(()=>U.value[0]);b&&Ht({value:re,prop:b,handleChange:E,shouldValidate:()=>d&&!D.pendingReset});const ce=(h,_=!1)=>{T.touched=!0,_&&le()};async function be(h){var _,I;if(j!=null&&j.validateSchema){const{results:F}=await j.validateSchema(h);return(_=F[m(L)])!==null&&_!==void 0?_:{valid:!0,errors:[]}}return R.value?Dn(re.value,R.value,{name:m(L),label:m(v),values:(I=j==null?void 0:j.values)!==null&&I!==void 0?I:{},bails:u}):{valid:!0,errors:[]}}const le=rn(async()=>(T.pending=!0,T.validated=!0,be("validated-only")),h=>(D.pendingUnmount[W.id]||(de({errors:h.errors}),T.pending=!1,T.valid=h.valid),h)),Q=rn(async()=>be("silent"),h=>(T.valid=h.valid,h));function ee(h){return(h==null?void 0:h.mode)==="silent"?Q():le()}function E(h,_=!0){const I=ke(h);_e(I,_)}Mn(()=>{if(a)return le();(!j||!j.validateSchema)&&Q()});function ze(h){T.touched=h}function fe(h){var _;const I=h&&"value"in h?h.value:ie.value;de({value:P(I),initialValue:P(I),touched:(_=h==null?void 0:h.touched)!==null&&_!==void 0?_:!1,errors:(h==null?void 0:h.errors)||[]}),T.pending=!1,T.validated=!1,Q()}const ve=Re();function _e(h,_=!0){re.value=ve&&b?Vt(h,ve.props.modelModifiers):h,(_?le:Q)()}function Ie(h){de({errors:Array.isArray(h)?h:[h]})}const dn=S({get(){return re.value},set(h){_e(h,d)}}),W={id:Y,name:L,label:v,value:dn,meta:T,errors:U,errorMessage:$,type:s,checkedValue:c,uncheckedValue:y,bails:u,keepValueOnUnmount:A,resetField:fe,handleReset:()=>fe(),validate:ee,handleChange:E,handleBlur:ce,setState:de,setTouched:ze,setErrors:Ie,setValue:_e};if(nn(on,W),Ne(n)&&typeof C(n)!="function"&&ye(n,(h,_)=>{H(h,_)||(T.validated?le():Q())},{deep:!0}),!j)return W;const Le=S(()=>{const h=R.value;return!h||k(h)||Ue(h)||te(h)||Array.isArray(h)?{}:Object.keys(h).reduce((_,I)=>{const F=Pt(h[I]).map(oe=>oe.__locatorRef).reduce((oe,ae)=>{const J=G(j.values,ae)||j.values[ae];return J!==void 0&&(oe[ae]=J),oe},{});return Object.assign(_,F),_},{})});return ye(Le,(h,_)=>{if(!Object.keys(h).length)return;!H(h,_)&&(T.validated?le():Q())}),at(()=>{var h;const _=(h=m(W.keepValueOnUnmount))!==null&&h!==void 0?h:m(j.keepValuesOnUnmount),I=m(L);if(_||!j||D.pendingUnmount[W.id]){j==null||j.removePathState(I,Y);return}D.pendingUnmount[W.id]=!0;const F=j.getPathState(I);if(Array.isArray(F==null?void 0:F.id)&&(F!=null&&F.multiple)?F!=null&&F.id.includes(W.id):(F==null?void 0:F.id)===W.id){if(F!=null&&F.multiple&&Array.isArray(F.value)){const ae=F.value.findIndex(J=>H(J,m(W.checkedValue)));if(ae>-1){const J=[...F.value];J.splice(ae,1),j.setFieldValue(I,J)}Array.isArray(F.id)&&F.id.splice(F.id.indexOf(W.id),1)}else j.unsetPathValue(m(L));j.removePathState(I,Y)}}),W}function Lt(e){const n=()=>({initialValue:void 0,validateOnMount:!1,bails:!0,label:void 0,validateOnValueUpdate:!0,keepValueOnUnmount:void 0,syncVModel:!1,controlled:!0}),t=!!(e!=null&&e.syncVModel),r=typeof(e==null?void 0:e.syncVModel)=="string"?e.syncVModel:(e==null?void 0:e.modelPropName)||"modelValue",a=t&&!("initialValue"in(e||{}))?an(Re(),r):e==null?void 0:e.initialValue;if(!e)return Object.assign(Object.assign({},n()),{initialValue:a});const u="valueProp"in e?e.valueProp:e.checkedValue,s="standalone"in e?!e.standalone:e.controlled,c=(e==null?void 0:e.modelPropName)||(e==null?void 0:e.syncVModel)||!1;return Object.assign(Object.assign(Object.assign({},n()),e||{}),{initialValue:a,controlled:s??!0,checkedValue:u,syncVModel:c})}function Wt(e,n,t){const r=t!=null&&t.standalone?void 0:qe(Ve),a=t==null?void 0:t.checkedValue,u=t==null?void 0:t.uncheckedValue;function s(c){const v=c.handleChange,d=S(()=>{const V=m(c.value),A=m(a);return Array.isArray(V)?V.findIndex(b=>H(b,A))>=0:H(A,V)});function y(V,A=!0){var b,w;if(d.value===((b=V==null?void 0:V.target)===null||b===void 0?void 0:b.checked)){A&&c.validate();return}const K=m(e),j=r==null?void 0:r.getPathState(K),L=ke(V);let R=(w=m(a))!==null&&w!==void 0?w:L;r&&(j!=null&&j.multiple)&&j.type==="checkbox"?R=_n(G(r.values,K)||[],R,void 0):(t==null?void 0:t.type)==="checkbox"&&(R=_n(m(c.value),R,m(u))),v(R,A)}return Object.assign(Object.assign({},c),{checked:d,checkedValue:a,uncheckedValue:u,handleChange:y})}return s(zn(e,n,t))}function Ht({prop:e,value:n,handleChange:t,shouldValidate:r}){const a=Re();if(!a||!e)return;const u=typeof e=="string"?e:"modelValue",s=`update:${u}`;u in a.props&&(ye(n,c=>{H(c,an(a,u))||a.emit(s,c)}),ye(()=>an(a,u),c=>{if(c===Be&&n.value===void 0)return;const v=c===Be?void 0:c;H(v,n.value)||t(v,r())}))}function an(e,n){if(e)return e.props[n]}const Kt=Cn({name:"Field",inheritAttrs:!1,props:{as:{type:[String,Object],default:void 0},name:{type:String,required:!0},rules:{type:[Object,String,Function],default:void 0},validateOnMount:{type:Boolean,default:!1},validateOnBlur:{type:Boolean,default:void 0},validateOnChange:{type:Boolean,default:void 0},validateOnInput:{type:Boolean,default:void 0},validateOnModelUpdate:{type:Boolean,default:void 0},bails:{type:Boolean,default:()=>me().bails},label:{type:String,default:void 0},uncheckedValue:{type:null,default:void 0},modelValue:{type:null,default:Be},modelModifiers:{type:null,default:()=>({})},"onUpdate:modelValue":{type:null,default:void 0},standalone:{type:Boolean,default:!1},keepValue:{type:Boolean,default:void 0}},setup(e,n){const t=Se(e,"rules"),r=Se(e,"name"),a=Se(e,"label"),u=Se(e,"uncheckedValue"),s=Se(e,"keepValue"),{errors:c,value:v,errorMessage:d,validate:y,handleChange:V,handleBlur:A,setTouched:b,resetField:w,handleReset:K,meta:j,checked:L,setErrors:R,setValue:Oe}=zt(r,t,{validateOnMount:e.validateOnMount,bails:e.bails,standalone:e.standalone,type:n.attrs.type,initialValue:Gt(e,n),checkedValue:n.attrs.value,uncheckedValue:u,label:a,validateOnValueUpdate:e.validateOnModelUpdate,keepValueOnUnmount:s,syncVModel:!0}),Y=function(D,$=!0){V(D,$)},re=S(()=>{const{validateOnInput:U,validateOnChange:D,validateOnBlur:$,validateOnModelUpdate:ce}=xt(e);function be(E){A(E,$),k(n.attrs.onBlur)&&n.attrs.onBlur(E)}function le(E){Y(E,U),k(n.attrs.onInput)&&n.attrs.onInput(E)}function Q(E){Y(E,D),k(n.attrs.onChange)&&n.attrs.onChange(E)}const ee={name:e.name,onBlur:be,onInput:le,onChange:Q};return ee["onUpdate:modelValue"]=E=>Y(E,ce),ee}),ie=S(()=>{const U=Object.assign({},re.value);Pe(n.attrs.type)&&L&&(U.checked=L.value);const D=En(e,n);return bt(D,n.attrs)&&(U.value=v.value),U}),T=S(()=>Object.assign(Object.assign({},re.value),{modelValue:v.value}));function de(){return{field:ie.value,componentField:T.value,value:v.value,meta:j,errors:c.value,errorMessage:d.value,validate:y,resetField:w,handleChange:Y,handleInput:U=>Y(U,!1),handleReset:K,handleBlur:re.value.onBlur,setTouched:b,setErrors:R,setValue:Oe}}return n.expose({value:v,meta:j,errors:c,errorMessage:d,setErrors:R,setTouched:b,setValue:Oe,reset:w,validate:y,handleChange:V}),()=>{const U=wn(En(e,n)),D=Un(U,n,de);return U?en(U,Object.assign(Object.assign({},n.attrs),ie.value),D):D}}});function En(e,n){let t=e.as||"";return!e.as&&!n.slots.default&&(t="input"),t}function xt(e){var n,t,r,a;const{validateOnInput:u,validateOnChange:s,validateOnBlur:c,validateOnModelUpdate:v}=me();return{validateOnInput:(n=e.validateOnInput)!==null&&n!==void 0?n:u,validateOnChange:(t=e.validateOnChange)!==null&&t!==void 0?t:s,validateOnBlur:(r=e.validateOnBlur)!==null&&r!==void 0?r:c,validateOnModelUpdate:(a=e.validateOnModelUpdate)!==null&&a!==void 0?a:v}}function Gt(e,n){return Pe(n.attrs.type)?On(e,"modelValue")?e.modelValue:void 0:On(e,"modelValue")?e.modelValue:n.attrs.value}const ar=Kt;let Zt=0;const Me=["bails","fieldsCount","id","multiple","type","validate"];function Ln(e){const n=(e==null?void 0:e.initialValues)||{},t=Object.assign({},m(n)),r=C(e==null?void 0:e.validationSchema);return r&&te(r)&&k(r.cast)?P(r.cast(t)||{}):P(t)}function ur(e){var n;const t=Zt++,r=(e==null?void 0:e.name)||"Form";let a=0;const u=ne(!1),s=ne(!1),c=ne(0),v=[],d=we(Ln(e)),y=ne([]),V=ne({}),A=ne({}),b=_t(()=>{A.value=y.value.reduce((l,i)=>(l[Ae(m(i.path))]=i,l),{})});function w(l,i){const o=E(l);if(!o){typeof l=="string"&&(V.value[Ae(l)]=ln(i));return}if(typeof l=="string"){const f=Ae(l);V.value[f]&&delete V.value[f]}o.errors=ln(i),o.valid=!o.errors.length}function K(l){Z(l).forEach(i=>{w(i,l[i])})}e!=null&&e.initialErrors&&K(e.initialErrors);const j=S(()=>{const l=y.value.reduce((i,o)=>(o.errors.length&&(i[m(o.path)]=o.errors),i),{});return Object.assign(Object.assign({},V.value),l)}),L=S(()=>Z(j.value).reduce((l,i)=>{const o=j.value[i];return o!=null&&o.length&&(l[i]=o[0]),l},{})),R=S(()=>y.value.reduce((l,i)=>(l[m(i.path)]={name:m(i.path)||"",label:i.label||""},l),{})),Oe=S(()=>y.value.reduce((l,i)=>{var o;return l[m(i.path)]=(o=i.bails)!==null&&o!==void 0?o:!0,l},{})),Y=Object.assign({},(e==null?void 0:e.initialErrors)||{}),re=(n=e==null?void 0:e.keepValuesOnUnmount)!==null&&n!==void 0?n:!1,{initialValues:ie,originalInitialValues:T,setInitialValues:de}=Jt(y,d,e),U=Yt(y,d,T,L),D=S(()=>y.value.reduce((l,i)=>{const o=G(d,m(i.path));return se(l,m(i.path),o),l},{})),$=e==null?void 0:e.validationSchema;function ce(l,i){var o,f;const O=S(()=>G(ie.value,m(l))),p=A.value[m(l)],g=(i==null?void 0:i.type)==="checkbox"||(i==null?void 0:i.type)==="radio";if(p&&g){p.multiple=!0;const X=a++;return Array.isArray(p.id)?p.id.push(X):p.id=[p.id,X],p.fieldsCount++,p.__flags.pendingUnmount[X]=!1,p}const N=S(()=>G(d,m(l))),B=m(l),q=fe.findIndex(X=>X===B);q!==-1&&fe.splice(q,1);const M=S(()=>{var X,je,Ge,Ze;const Ye=m($);if(te(Ye))return(je=(X=Ye.describe)===null||X===void 0?void 0:X.call(Ye,m(l)).required)!==null&&je!==void 0?je:!1;const Je=m(i==null?void 0:i.schema);return te(Je)&&(Ze=(Ge=Je.describe)===null||Ge===void 0?void 0:Ge.call(Je).required)!==null&&Ze!==void 0?Ze:!1}),z=a++,x=we({id:z,path:l,touched:!1,pending:!1,valid:!0,validated:!!(!((o=Y[B])===null||o===void 0)&&o.length),required:M,initialValue:O,errors:lt([]),bails:(f=i==null?void 0:i.bails)!==null&&f!==void 0?f:!1,label:i==null?void 0:i.label,type:(i==null?void 0:i.type)||"default",value:N,multiple:!1,__flags:{pendingUnmount:{[z]:!1},pendingReset:!1},fieldsCount:1,validate:i==null?void 0:i.validate,dirty:S(()=>!H(C(N),C(O)))});return y.value.push(x),A.value[B]=x,b(),L.value[B]&&!Y[B]&&ue(()=>{he(B,{mode:"silent"})}),Ne(l)&&ye(l,X=>{b();const je=P(N.value);A.value[X]=x,ue(()=>{se(d,X,je)})}),x}const be=jn(vn,5),le=jn(vn,5),Q=rn(async l=>await(l==="silent"?be():le()),(l,[i])=>{const o=Z(_.errorBag.value),O=[...new Set([...Z(l.results),...y.value.map(p=>p.path),...o])].sort().reduce((p,g)=>{var N;const B=g,q=E(B)||ze(B),M=((N=l.results[B])===null||N===void 0?void 0:N.errors)||[],z=m(q==null?void 0:q.path)||B,x=Xt({errors:M,valid:!M.length},p.results[z]);return p.results[z]=x,x.valid||(p.errors[z]=x.errors[0]),q&&V.value[z]&&delete V.value[z],q?(q.valid=x.valid,i==="silent"||i==="validated-only"&&!q.validated||w(q,x.errors),p):(w(z,M),p)},{valid:l.valid,results:{},errors:{},source:l.source});return l.values&&(O.values=l.values,O.source=l.source),Z(O.results).forEach(p=>{var g;const N=E(p);N&&i!=="silent"&&(i==="validated-only"&&!N.validated||w(N,(g=O.results[p])===null||g===void 0?void 0:g.errors))}),O});function ee(l){y.value.forEach(l)}function E(l){const i=typeof l=="string"?Ae(l):l;return typeof i=="string"?A.value[i]:i}function ze(l){return y.value.filter(o=>l.startsWith(m(o.path))).reduce((o,f)=>o?f.path.length>o.path.length?f:o:f,void 0)}let fe=[],ve;function _e(l){return fe.push(l),ve||(ve=ue(()=>{[...fe].sort().reverse().forEach(o=>{Vn(d,o)}),fe=[],ve=null})),ve}function Ie(l){return function(o,f){return function(p){return p instanceof Event&&(p.preventDefault(),p.stopPropagation()),ee(g=>g.touched=!0),u.value=!0,c.value++,pe().then(g=>{const N=P(d);if(g.valid&&typeof o=="function"){const B=P(D.value);let q=l?B:N;return g.values&&(q=g.source==="schema"?g.values:Object.assign({},q,g.values)),o(q,{evt:p,controlledValues:B,setErrors:K,setFieldError:w,setTouched:We,setFieldTouched:J,setValues:oe,setFieldValue:I,resetForm:He,resetField:cn})}!g.valid&&typeof f=="function"&&f({values:N,evt:p,errors:g.errors,results:g.results})}).then(g=>(u.value=!1,g),g=>{throw u.value=!1,g})}}}const W=Ie(!1);W.withControlled=Ie(!0);function Le(l,i){const o=y.value.findIndex(O=>O.path===l&&(Array.isArray(O.id)?O.id.includes(i):O.id===i)),f=y.value[o];if(!(o===-1||!f)){if(ue(()=>{he(l,{mode:"silent",warn:!1})}),f.multiple&&f.fieldsCount&&f.fieldsCount--,Array.isArray(f.id)){const O=f.id.indexOf(i);O>=0&&f.id.splice(O,1),delete f.__flags.pendingUnmount[i]}(!f.multiple||f.fieldsCount<=0)&&(y.value.splice(o,1),fn(l),b(),delete A.value[l])}}function h(l){Z(A.value).forEach(i=>{i.startsWith(l)&&delete A.value[i]}),y.value=y.value.filter(i=>!i.path.startsWith(l)),ue(()=>{b()})}const _={name:r,formId:t,values:d,controlledValues:D,errorBag:j,errors:L,schema:$,submitCount:c,meta:U,isSubmitting:u,isValidating:s,fieldArrays:v,keepValuesOnUnmount:re,validateSchema:C($)?Q:void 0,validate:pe,setFieldError:w,validateField:he,setFieldValue:I,setValues:oe,setErrors:K,setFieldTouched:J,setTouched:We,resetForm:He,resetField:cn,handleSubmit:W,useFieldModel:et,defineInputBinds:nt,defineComponentBinds:tt,defineField:xe,stageInitialValue:Xn,unsetInitialValue:fn,setFieldInitialValue:Ke,createPathState:ce,getPathState:E,unsetPathValue:_e,removePathState:Le,initialValues:ie,getAllPathStates:()=>y.value,destroyPath:h,isFieldTouched:Zn,isFieldDirty:Yn,isFieldValid:Jn};function I(l,i,o=!0){const f=P(i),O=typeof l=="string"?l:l.path;E(O)||ce(O),se(d,O,f),o&&he(O)}function F(l,i=!0){Z(d).forEach(o=>{delete d[o]}),Z(l).forEach(o=>{I(o,l[o],!1)}),i&&pe()}function oe(l,i=!0){Ee(d,l),v.forEach(o=>o&&o.reset()),i&&pe()}function ae(l,i){const o=E(m(l))||ce(l);return S({get(){return o.value},set(f){var O;const p=m(l);I(p,f,(O=m(i))!==null&&O!==void 0?O:!1)}})}function J(l,i){const o=E(l);o&&(o.touched=i)}function Zn(l){const i=E(l);return i?i.touched:y.value.filter(o=>o.path.startsWith(l)).some(o=>o.touched)}function Yn(l){const i=E(l);return i?i.dirty:y.value.filter(o=>o.path.startsWith(l)).some(o=>o.dirty)}function Jn(l){const i=E(l);return i?i.valid:y.value.filter(o=>o.path.startsWith(l)).every(o=>o.valid)}function We(l){if(typeof l=="boolean"){ee(i=>{i.touched=l});return}Z(l).forEach(i=>{J(i,!!l[i])})}function cn(l,i){var o;const f=i&&"value"in i?i.value:G(ie.value,l),O=E(l);O&&(O.__flags.pendingReset=!0),Ke(l,P(f),!0),I(l,f,!1),J(l,(o=i==null?void 0:i.touched)!==null&&o!==void 0?o:!1),w(l,(i==null?void 0:i.errors)||[]),ue(()=>{O&&(O.__flags.pendingReset=!1)})}function He(l,i){let o=P(l!=null&&l.values?l.values:T.value);o=i!=null&&i.force?o:Ee(T.value,o),o=te($)&&k($.cast)?$.cast(o):o,de(o,{force:i==null?void 0:i.force}),ee(f=>{var O;f.__flags.pendingReset=!0,f.validated=!1,f.touched=((O=l==null?void 0:l.touched)===null||O===void 0?void 0:O[m(f.path)])||!1,I(m(f.path),G(o,m(f.path)),!1),w(m(f.path),void 0)}),i!=null&&i.force?F(o,!1):oe(o,!1),K((l==null?void 0:l.errors)||{}),c.value=(l==null?void 0:l.submitCount)||0,ue(()=>{pe({mode:"silent"}),ee(f=>{f.__flags.pendingReset=!1})})}async function pe(l){const i=(l==null?void 0:l.mode)||"force";if(i==="force"&&ee(g=>g.validated=!0),_.validateSchema)return _.validateSchema(i);s.value=!0;const o=await Promise.all(y.value.map(g=>g.validate?g.validate(l).then(N=>({key:m(g.path),valid:N.valid,errors:N.errors,value:N.value})):Promise.resolve({key:m(g.path),valid:!0,errors:[],value:void 0})));s.value=!1;const f={},O={},p={};for(const g of o)f[g.key]={valid:g.valid,errors:g.errors},g.value&&se(p,g.key,g.value),g.errors.length&&(O[g.key]=g.errors[0]);return{valid:o.every(g=>g.valid),results:f,errors:O,values:p,source:"fields"}}async function he(l,i){var o;const f=E(l);if(f&&(i==null?void 0:i.mode)!=="silent"&&(f.validated=!0),$){const{results:O}=await Q((i==null?void 0:i.mode)||"validated-only");return O[l]||{errors:[],valid:!0}}return f!=null&&f.validate?f.validate(i):(!f&&(o=i==null?void 0:i.warn),Promise.resolve({errors:[],valid:!0}))}function fn(l){Vn(ie.value,l)}function Xn(l,i,o=!1){Ke(l,i),se(d,l,i),o&&!(e!=null&&e.initialValues)&&se(T.value,l,P(i))}function Ke(l,i,o=!1){se(ie.value,l,P(i)),o&&se(T.value,l,P(i))}async function vn(){const l=C($);if(!l)return{valid:!0,results:{},errors:{},source:"none"};s.value=!0;const i=Ue(l)||te(l)?await Bt(l,d):await Ut(l,d,{names:R.value,bailsMap:Oe.value});return s.value=!1,i}const Qn=W((l,{evt:i})=>{pt(i)&&i.target.submit()});Mn(()=>{if(e!=null&&e.initialErrors&&K(e.initialErrors),e!=null&&e.initialTouched&&We(e.initialTouched),e!=null&&e.validateOnMount){pe();return}_.validateSchema&&_.validateSchema("silent")}),Ne($)&&ye($,()=>{var l;(l=_.validateSchema)===null||l===void 0||l.call(_,"validated-only")}),nn(Ve,_);function xe(l,i){const o=k(i)||i==null?void 0:i.label,f=E(m(l))||ce(l,{label:o}),O=()=>k(i)?i(Ce(f,Me)):i||{};function p(){var M;f.touched=!0,((M=O().validateOnBlur)!==null&&M!==void 0?M:me().validateOnBlur)&&he(m(f.path))}function g(){var M;((M=O().validateOnInput)!==null&&M!==void 0?M:me().validateOnInput)&&ue(()=>{he(m(f.path))})}function N(){var M;((M=O().validateOnChange)!==null&&M!==void 0?M:me().validateOnChange)&&ue(()=>{he(m(f.path))})}const B=S(()=>{const M={onChange:N,onInput:g,onBlur:p};return k(i)?Object.assign(Object.assign({},M),i(Ce(f,Me)).props||{}):i!=null&&i.props?Object.assign(Object.assign({},M),i.props(Ce(f,Me))):M});return[ae(l,()=>{var M,z,x;return(x=(M=O().validateOnModelUpdate)!==null&&M!==void 0?M:(z=me())===null||z===void 0?void 0:z.validateOnModelUpdate)!==null&&x!==void 0?x:!0}),B]}function et(l){return Array.isArray(l)?l.map(i=>ae(i,!0)):ae(l)}function nt(l,i){const[o,f]=xe(l,i);function O(){f.value.onBlur()}function p(N){const B=ke(N);I(m(l),B,!1),f.value.onInput()}function g(N){const B=ke(N);I(m(l),B,!1),f.value.onChange()}return S(()=>Object.assign(Object.assign({},f.value),{onBlur:O,onInput:p,onChange:g,value:o.value}))}function tt(l,i){const[o,f]=xe(l,i),O=E(m(l));function p(g){o.value=g}return S(()=>{const g=k(i)?i(Ce(O,Me)):i||{};return Object.assign({[g.model||"modelValue"]:o.value,[`onUpdate:${g.model||"modelValue"}`]:p},f.value)})}const hn=Object.assign(Object.assign({},_),{values:rt(d),handleReset:()=>He(),submitForm:Qn});return nn(vt,hn),hn}function Yt(e,n,t,r){const a={touched:"some",pending:"some",valid:"every"},u=S(()=>!H(n,C(t)));function s(){const v=e.value;return Z(a).reduce((d,y)=>{const V=a[y];return d[y]=v[V](A=>A[y]),d},{})}const c=we(s());return it(()=>{const v=s();c.touched=v.touched,c.valid=v.valid,c.pending=v.pending}),S(()=>Object.assign(Object.assign({initialValues:C(t)},c),{valid:c.valid&&!Z(r.value).length,dirty:u.value}))}function Jt(e,n,t){const r=Ln(t),a=ne(r),u=ne(P(r));function s(c,v){v!=null&&v.force?(a.value=P(c),u.value=P(c)):(a.value=Ee(P(a.value)||{},P(c)),u.value=Ee(P(u.value)||{},P(c))),v!=null&&v.updateFields&&e.value.forEach(d=>{if(d.touched)return;const V=G(a.value,m(d.path));se(n,m(d.path),P(V))})}return{initialValues:a,originalInitialValues:u,setInitialValues:s}}function Xt(e,n){return n?{valid:e.valid&&n.valid,errors:[...e.errors,...n.errors]}:e}const Qt=Cn({name:"ErrorMessage",props:{as:{type:String,default:void 0},name:{type:String,required:!0}},setup(e,n){const t=De(Ve,void 0),r=S(()=>t==null?void 0:t.errors.value[e.name]);function a(){return{message:r.value}}return()=>{if(!r.value)return;const u=e.as?wn(e.as):e.as,s=Un(u,n,a),c=Object.assign({role:"alert"},n.attrs);return!u&&(Array.isArray(s)||!s)&&(s!=null&&s.length)?s:(Array.isArray(s)||!s)&&!(s!=null&&s.length)?en(u||"span",c,r.value):en(u,c,s)}}}),or=Qt;function sr(e){const n=sn(e);return S(()=>{var t,r;return n&&(r="meta"in n?n.meta.dirty:(t=n==null?void 0:n.value)===null||t===void 0?void 0:t.dirty)!==null&&r!==void 0?r:!1})}function dr(e){const n=sn(e);return S(()=>{var t,r;return n&&(r="meta"in n?n.meta.touched:(t=n==null?void 0:n.value)===null||t===void 0?void 0:t.touched)!==null&&r!==void 0?r:!1})}function cr(e){const n=sn(e);return S(()=>{var t,r;return n&&(r="meta"in n?n.meta.valid:(t=n==null?void 0:n.value)===null||t===void 0?void 0:t.valid)!==null&&r!==void 0?r:!1})}function fr(e){const n=qe(Ve),t=e?void 0:De(on);return S(()=>e?n==null?void 0:n.errors.value[m(e)]:t==null?void 0:t.errorMessage.value)}/**
|
|
6
6
|
* vee-validate v4.15.0
|
|
7
7
|
* (c) 2024 Abdelrahman Awad
|
|
8
8
|
* @license MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Vt}from"./RTN5rY4m.js";import{s as Mt}from"./DuKway_J.js";import{_ as u,b as Bt,a as Ft,s as Yt,g as Pt,q as zt,t as Gt,c as it,l as L,A as Kt,y as Ut,C as Zt,E as jt,p as Wt,r as Qt,d as Xt,u as qt}from"./DSOwr8Hs.js";import{c as Ht}from"./CzBFxx8v.js";import"./D7uoAo-G.js";var _t=function(){var s=u(function(R,n,a,c){for(a=a||{},c=R.length;c--;a[R[c]]=n);return a},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],h=[1,10],d=[1,11],o=[1,12],l=[1,13],f=[1,23],_=[1,24],E=[1,25],V=[1,26],W=[1,27],S=[1,19],rt=[1,28],Q=[1,29],T=[1,20],I=[1,18],M=[1,21],B=[1,22],nt=[1,36],at=[1,37],ct=[1,38],lt=[1,39],ot=[1,40],F=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,65,66,67,68,69],O=[1,45],N=[1,46],Y=[1,55],P=[40,48,50,51,52,70,71],z=[1,66],G=[1,64],A=[1,61],K=[1,65],U=[1,67],X=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,65,66,67,68,69],gt=[65,66,67,68,69],bt=[1,84],mt=[1,83],Et=[1,81],kt=[1,82],St=[6,10,42,47],v=[6,10,13,41,42,47,48,49],q=[1,92],H=[1,91],J=[1,90],Z=[19,58],Tt=[1,101],Ot=[1,100],ht=[19,58,60,62],ut={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,attributeKeyType:59,",":60,ATTRIBUTE_KEY:61,COMMENT:62,cardinality:63,relType:64,ZERO_OR_ONE:65,ZERO_OR_MORE:66,ONE_OR_MORE:67,ONLY_ONE:68,MD_PARENT:69,NON_IDENTIFYING:70,IDENTIFYING:71,WORD:72,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",60:",",61:"ATTRIBUTE_KEY",62:"COMMENT",65:"ZERO_OR_ONE",66:"ZERO_OR_MORE",67:"ONE_OR_MORE",68:"ONLY_ONE",69:"MD_PARENT",70:"NON_IDENTIFYING",71:"IDENTIFYING",72:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[55,1],[56,1],[56,3],[59,1],[57,1],[12,3],[63,1],[63,1],[63,1],[63,1],[63,1],[64,1],[64,1],[14,1],[14,1],[14,1]],performAction:u(function(n,a,c,r,p,t,j){var e=t.length-1;switch(p){case 1:break;case 2:this.$=[];break;case 3:t[e-1].push(t[e]),this.$=t[e-1];break;case 4:case 5:this.$=t[e];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(t[e-4]),r.addEntity(t[e-2]),r.addRelationship(t[e-4],t[e],t[e-2],t[e-3]);break;case 9:r.addEntity(t[e-8]),r.addEntity(t[e-4]),r.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),r.setClass([t[e-8]],t[e-6]),r.setClass([t[e-4]],t[e-2]);break;case 10:r.addEntity(t[e-6]),r.addEntity(t[e-2]),r.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),r.setClass([t[e-6]],t[e-4]);break;case 11:r.addEntity(t[e-6]),r.addEntity(t[e-4]),r.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),r.setClass([t[e-4]],t[e-2]);break;case 12:r.addEntity(t[e-3]),r.addAttributes(t[e-3],t[e-1]);break;case 13:r.addEntity(t[e-5]),r.addAttributes(t[e-5],t[e-1]),r.setClass([t[e-5]],t[e-3]);break;case 14:r.addEntity(t[e-2]);break;case 15:r.addEntity(t[e-4]),r.setClass([t[e-4]],t[e-2]);break;case 16:r.addEntity(t[e]);break;case 17:r.addEntity(t[e-2]),r.setClass([t[e-2]],t[e]);break;case 18:r.addEntity(t[e-6],t[e-4]),r.addAttributes(t[e-6],t[e-1]);break;case 19:r.addEntity(t[e-8],t[e-6]),r.addAttributes(t[e-8],t[e-1]),r.setClass([t[e-8]],t[e-3]);break;case 20:r.addEntity(t[e-5],t[e-3]);break;case 21:r.addEntity(t[e-7],t[e-5]),r.setClass([t[e-7]],t[e-2]);break;case 22:r.addEntity(t[e-3],t[e-1]);break;case 23:r.addEntity(t[e-5],t[e-3]),r.setClass([t[e-5]],t[e]);break;case 24:case 25:this.$=t[e].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=t[e].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=t[e-3],r.addClass(t[e-2],t[e-1]);break;case 37:case 38:case 59:case 67:this.$=[t[e]];break;case 39:case 40:this.$=t[e-2].concat([t[e]]);break;case 41:this.$=t[e-2],r.setClass(t[e-1],t[e]);break;case 42:this.$=t[e-3],r.addCssStyles(t[e-2],t[e-1]);break;case 43:this.$=[t[e]];break;case 44:t[e-2].push(t[e]),this.$=t[e-2];break;case 46:this.$=t[e-1]+t[e];break;case 54:case 79:case 80:this.$=t[e].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 81:this.$=t[e];break;case 60:t[e].push(t[e-1]),this.$=t[e];break;case 61:this.$={type:t[e-1],name:t[e]};break;case 62:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 63:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 64:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 65:case 66:case 69:this.$=t[e];break;case 68:t[e-2].push(t[e]),this.$=t[e-2];break;case 70:this.$=t[e].replace(/"/g,"");break;case 71:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 72:this.$=r.Cardinality.ZERO_OR_ONE;break;case 73:this.$=r.Cardinality.ZERO_OR_MORE;break;case 74:this.$=r.Cardinality.ONE_OR_MORE;break;case 75:this.$=r.Cardinality.ONLY_ONE;break;case 76:this.$=r.Cardinality.MD_PARENT;break;case 77:this.$=r.Identification.NON_IDENTIFYING;break;case 78:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:h,24:d,26:o,28:l,29:14,30:15,31:16,32:17,33:f,34:_,35:E,36:V,37:W,40:S,43:rt,44:Q,48:T,50:I,51:M,52:B},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:30,11:9,22:h,24:d,26:o,28:l,29:14,30:15,31:16,32:17,33:f,34:_,35:E,36:V,37:W,40:S,43:rt,44:Q,48:T,50:I,51:M,52:B},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:31,63:35,15:[1,32],17:[1,33],20:[1,34],65:nt,66:at,67:ct,68:lt,69:ot}),{23:[1,41]},{25:[1,42]},{27:[1,43]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(F,[2,54]),s(F,[2,55]),s(F,[2,56]),s(F,[2,57]),s(F,[2,58]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:44,40:O,41:N},{16:47,40:O,41:N},{16:48,40:O,41:N},s(i,[2,4]),{11:49,40:S,48:T,50:I,51:M,52:B},{16:50,40:O,41:N},{18:51,19:[1,52],53:53,54:54,58:Y},{11:56,40:S,48:T,50:I,51:M,52:B},{64:57,70:[1,58],71:[1,59]},s(P,[2,72]),s(P,[2,73]),s(P,[2,74]),s(P,[2,75]),s(P,[2,76]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:z,38:60,41:G,42:A,45:62,46:63,48:K,49:U},s(X,[2,37]),s(X,[2,38]),{16:68,40:O,41:N,42:A},{13:z,38:69,41:G,42:A,45:62,46:63,48:K,49:U},{13:[1,70],15:[1,71]},s(i,[2,17],{63:35,12:72,17:[1,73],42:A,65:nt,66:at,67:ct,68:lt,69:ot}),{19:[1,74]},s(i,[2,14]),{18:75,19:[2,59],53:53,54:54,58:Y},{55:76,58:[1,77]},{58:[2,65]},{21:[1,78]},{63:79,65:nt,66:at,67:ct,68:lt,69:ot},s(gt,[2,77]),s(gt,[2,78]),{6:bt,10:mt,39:80,42:Et,47:kt},{40:[1,85],41:[1,86]},s(St,[2,43],{46:87,13:z,41:G,48:K,49:U}),s(v,[2,45]),s(v,[2,50]),s(v,[2,51]),s(v,[2,52]),s(v,[2,53]),s(i,[2,41],{42:A}),{6:bt,10:mt,39:88,42:Et,47:kt},{14:89,40:q,50:H,72:J},{16:93,40:O,41:N},{11:94,40:S,48:T,50:I,51:M,52:B},{18:95,19:[1,96],53:53,54:54,58:Y},s(i,[2,12]),{19:[2,60]},s(Z,[2,61],{56:97,57:98,59:99,61:Tt,62:Ot}),s([19,58,61,62],[2,66]),s(i,[2,22],{15:[1,103],17:[1,102]}),s([40,48,50,51,52],[2,71]),s(i,[2,36]),{13:z,41:G,45:104,46:63,48:K,49:U},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(X,[2,39]),s(X,[2,40]),s(v,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,79]),s(i,[2,80]),s(i,[2,81]),{13:[1,105],42:A},{13:[1,107],15:[1,106]},{19:[1,108]},s(i,[2,15]),s(Z,[2,62],{57:109,60:[1,110],62:Ot}),s(Z,[2,63]),s(ht,[2,67]),s(Z,[2,70]),s(ht,[2,69]),{18:111,19:[1,112],53:53,54:54,58:Y},{16:113,40:O,41:N},s(St,[2,44],{46:87,13:z,41:G,48:K,49:U}),{14:114,40:q,50:H,72:J},{16:115,40:O,41:N},{14:116,40:q,50:H,72:J},s(i,[2,13]),s(Z,[2,64]),{59:117,61:Tt},{19:[1,118]},s(i,[2,20]),s(i,[2,23],{17:[1,119],42:A}),s(i,[2,11]),{13:[1,120],42:A},s(i,[2,10]),s(ht,[2,68]),s(i,[2,18]),{18:121,19:[1,122],53:53,54:54,58:Y},{14:123,40:q,50:H,72:J},{19:[1,124]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:u(function(n,a){if(a.recoverable)this.trace(n);else{var c=new Error(n);throw c.hash=a,c}},"parseError"),parse:u(function(n){var a=this,c=[0],r=[],p=[null],t=[],j=this.table,e="",tt=0,Nt=0,vt=2,At=1,Dt=t.slice.call(arguments,1),y=Object.create(this.lexer),x={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(x.yy[dt]=this.yy[dt]);y.setInput(n,x.yy),x.yy.lexer=y,x.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var pt=y.yylloc;t.push(pt);var Lt=y.options&&y.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function wt(b){c.length=c.length-2*b,p.length=p.length-b,t.length=t.length-b}u(wt,"popStack");function Rt(){var b;return b=r.pop()||y.lex()||At,typeof b!="number"&&(b instanceof Array&&(r=b,b=r.pop()),b=a.symbols_[b]||b),b}u(Rt,"lex");for(var g,C,m,yt,D={},et,k,It,st;;){if(C=c[c.length-1],this.defaultActions[C]?m=this.defaultActions[C]:((g===null||typeof g>"u")&&(g=Rt()),m=j[C]&&j[C][g]),typeof m>"u"||!m.length||!m[0]){var ft="";st=[];for(et in j[C])this.terminals_[et]&&et>vt&&st.push("'"+this.terminals_[et]+"'");y.showPosition?ft="Parse error on line "+(tt+1)+`:
|
|
1
|
+
import{g as Vt}from"./BsCPQnkm.js";import{s as Mt}from"./BO3FEgXG.js";import{_ as u,b as Bt,a as Ft,s as Yt,g as Pt,q as zt,t as Gt,c as it,l as L,A as Kt,y as Ut,C as Zt,E as jt,p as Wt,r as Qt,d as Xt,u as qt}from"./BJvJ0Hlu.js";import{c as Ht}from"./CZgTP5wX.js";import"./C6teO48Y.js";var _t=function(){var s=u(function(R,n,a,c){for(a=a||{},c=R.length;c--;a[R[c]]=n);return a},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],h=[1,10],d=[1,11],o=[1,12],l=[1,13],f=[1,23],_=[1,24],E=[1,25],V=[1,26],W=[1,27],S=[1,19],rt=[1,28],Q=[1,29],T=[1,20],I=[1,18],M=[1,21],B=[1,22],nt=[1,36],at=[1,37],ct=[1,38],lt=[1,39],ot=[1,40],F=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,65,66,67,68,69],O=[1,45],N=[1,46],Y=[1,55],P=[40,48,50,51,52,70,71],z=[1,66],G=[1,64],A=[1,61],K=[1,65],U=[1,67],X=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,65,66,67,68,69],gt=[65,66,67,68,69],bt=[1,84],mt=[1,83],Et=[1,81],kt=[1,82],St=[6,10,42,47],v=[6,10,13,41,42,47,48,49],q=[1,92],H=[1,91],J=[1,90],Z=[19,58],Tt=[1,101],Ot=[1,100],ht=[19,58,60,62],ut={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,attributeKeyType:59,",":60,ATTRIBUTE_KEY:61,COMMENT:62,cardinality:63,relType:64,ZERO_OR_ONE:65,ZERO_OR_MORE:66,ONE_OR_MORE:67,ONLY_ONE:68,MD_PARENT:69,NON_IDENTIFYING:70,IDENTIFYING:71,WORD:72,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",60:",",61:"ATTRIBUTE_KEY",62:"COMMENT",65:"ZERO_OR_ONE",66:"ZERO_OR_MORE",67:"ONE_OR_MORE",68:"ONLY_ONE",69:"MD_PARENT",70:"NON_IDENTIFYING",71:"IDENTIFYING",72:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[55,1],[56,1],[56,3],[59,1],[57,1],[12,3],[63,1],[63,1],[63,1],[63,1],[63,1],[64,1],[64,1],[14,1],[14,1],[14,1]],performAction:u(function(n,a,c,r,p,t,j){var e=t.length-1;switch(p){case 1:break;case 2:this.$=[];break;case 3:t[e-1].push(t[e]),this.$=t[e-1];break;case 4:case 5:this.$=t[e];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(t[e-4]),r.addEntity(t[e-2]),r.addRelationship(t[e-4],t[e],t[e-2],t[e-3]);break;case 9:r.addEntity(t[e-8]),r.addEntity(t[e-4]),r.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),r.setClass([t[e-8]],t[e-6]),r.setClass([t[e-4]],t[e-2]);break;case 10:r.addEntity(t[e-6]),r.addEntity(t[e-2]),r.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),r.setClass([t[e-6]],t[e-4]);break;case 11:r.addEntity(t[e-6]),r.addEntity(t[e-4]),r.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),r.setClass([t[e-4]],t[e-2]);break;case 12:r.addEntity(t[e-3]),r.addAttributes(t[e-3],t[e-1]);break;case 13:r.addEntity(t[e-5]),r.addAttributes(t[e-5],t[e-1]),r.setClass([t[e-5]],t[e-3]);break;case 14:r.addEntity(t[e-2]);break;case 15:r.addEntity(t[e-4]),r.setClass([t[e-4]],t[e-2]);break;case 16:r.addEntity(t[e]);break;case 17:r.addEntity(t[e-2]),r.setClass([t[e-2]],t[e]);break;case 18:r.addEntity(t[e-6],t[e-4]),r.addAttributes(t[e-6],t[e-1]);break;case 19:r.addEntity(t[e-8],t[e-6]),r.addAttributes(t[e-8],t[e-1]),r.setClass([t[e-8]],t[e-3]);break;case 20:r.addEntity(t[e-5],t[e-3]);break;case 21:r.addEntity(t[e-7],t[e-5]),r.setClass([t[e-7]],t[e-2]);break;case 22:r.addEntity(t[e-3],t[e-1]);break;case 23:r.addEntity(t[e-5],t[e-3]),r.setClass([t[e-5]],t[e]);break;case 24:case 25:this.$=t[e].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=t[e].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=t[e-3],r.addClass(t[e-2],t[e-1]);break;case 37:case 38:case 59:case 67:this.$=[t[e]];break;case 39:case 40:this.$=t[e-2].concat([t[e]]);break;case 41:this.$=t[e-2],r.setClass(t[e-1],t[e]);break;case 42:this.$=t[e-3],r.addCssStyles(t[e-2],t[e-1]);break;case 43:this.$=[t[e]];break;case 44:t[e-2].push(t[e]),this.$=t[e-2];break;case 46:this.$=t[e-1]+t[e];break;case 54:case 79:case 80:this.$=t[e].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 81:this.$=t[e];break;case 60:t[e].push(t[e-1]),this.$=t[e];break;case 61:this.$={type:t[e-1],name:t[e]};break;case 62:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 63:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 64:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 65:case 66:case 69:this.$=t[e];break;case 68:t[e-2].push(t[e]),this.$=t[e-2];break;case 70:this.$=t[e].replace(/"/g,"");break;case 71:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 72:this.$=r.Cardinality.ZERO_OR_ONE;break;case 73:this.$=r.Cardinality.ZERO_OR_MORE;break;case 74:this.$=r.Cardinality.ONE_OR_MORE;break;case 75:this.$=r.Cardinality.ONLY_ONE;break;case 76:this.$=r.Cardinality.MD_PARENT;break;case 77:this.$=r.Identification.NON_IDENTIFYING;break;case 78:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:h,24:d,26:o,28:l,29:14,30:15,31:16,32:17,33:f,34:_,35:E,36:V,37:W,40:S,43:rt,44:Q,48:T,50:I,51:M,52:B},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:30,11:9,22:h,24:d,26:o,28:l,29:14,30:15,31:16,32:17,33:f,34:_,35:E,36:V,37:W,40:S,43:rt,44:Q,48:T,50:I,51:M,52:B},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:31,63:35,15:[1,32],17:[1,33],20:[1,34],65:nt,66:at,67:ct,68:lt,69:ot}),{23:[1,41]},{25:[1,42]},{27:[1,43]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(F,[2,54]),s(F,[2,55]),s(F,[2,56]),s(F,[2,57]),s(F,[2,58]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:44,40:O,41:N},{16:47,40:O,41:N},{16:48,40:O,41:N},s(i,[2,4]),{11:49,40:S,48:T,50:I,51:M,52:B},{16:50,40:O,41:N},{18:51,19:[1,52],53:53,54:54,58:Y},{11:56,40:S,48:T,50:I,51:M,52:B},{64:57,70:[1,58],71:[1,59]},s(P,[2,72]),s(P,[2,73]),s(P,[2,74]),s(P,[2,75]),s(P,[2,76]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:z,38:60,41:G,42:A,45:62,46:63,48:K,49:U},s(X,[2,37]),s(X,[2,38]),{16:68,40:O,41:N,42:A},{13:z,38:69,41:G,42:A,45:62,46:63,48:K,49:U},{13:[1,70],15:[1,71]},s(i,[2,17],{63:35,12:72,17:[1,73],42:A,65:nt,66:at,67:ct,68:lt,69:ot}),{19:[1,74]},s(i,[2,14]),{18:75,19:[2,59],53:53,54:54,58:Y},{55:76,58:[1,77]},{58:[2,65]},{21:[1,78]},{63:79,65:nt,66:at,67:ct,68:lt,69:ot},s(gt,[2,77]),s(gt,[2,78]),{6:bt,10:mt,39:80,42:Et,47:kt},{40:[1,85],41:[1,86]},s(St,[2,43],{46:87,13:z,41:G,48:K,49:U}),s(v,[2,45]),s(v,[2,50]),s(v,[2,51]),s(v,[2,52]),s(v,[2,53]),s(i,[2,41],{42:A}),{6:bt,10:mt,39:88,42:Et,47:kt},{14:89,40:q,50:H,72:J},{16:93,40:O,41:N},{11:94,40:S,48:T,50:I,51:M,52:B},{18:95,19:[1,96],53:53,54:54,58:Y},s(i,[2,12]),{19:[2,60]},s(Z,[2,61],{56:97,57:98,59:99,61:Tt,62:Ot}),s([19,58,61,62],[2,66]),s(i,[2,22],{15:[1,103],17:[1,102]}),s([40,48,50,51,52],[2,71]),s(i,[2,36]),{13:z,41:G,45:104,46:63,48:K,49:U},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(X,[2,39]),s(X,[2,40]),s(v,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,79]),s(i,[2,80]),s(i,[2,81]),{13:[1,105],42:A},{13:[1,107],15:[1,106]},{19:[1,108]},s(i,[2,15]),s(Z,[2,62],{57:109,60:[1,110],62:Ot}),s(Z,[2,63]),s(ht,[2,67]),s(Z,[2,70]),s(ht,[2,69]),{18:111,19:[1,112],53:53,54:54,58:Y},{16:113,40:O,41:N},s(St,[2,44],{46:87,13:z,41:G,48:K,49:U}),{14:114,40:q,50:H,72:J},{16:115,40:O,41:N},{14:116,40:q,50:H,72:J},s(i,[2,13]),s(Z,[2,64]),{59:117,61:Tt},{19:[1,118]},s(i,[2,20]),s(i,[2,23],{17:[1,119],42:A}),s(i,[2,11]),{13:[1,120],42:A},s(i,[2,10]),s(ht,[2,68]),s(i,[2,18]),{18:121,19:[1,122],53:53,54:54,58:Y},{14:123,40:q,50:H,72:J},{19:[1,124]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:u(function(n,a){if(a.recoverable)this.trace(n);else{var c=new Error(n);throw c.hash=a,c}},"parseError"),parse:u(function(n){var a=this,c=[0],r=[],p=[null],t=[],j=this.table,e="",tt=0,Nt=0,vt=2,At=1,Dt=t.slice.call(arguments,1),y=Object.create(this.lexer),x={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(x.yy[dt]=this.yy[dt]);y.setInput(n,x.yy),x.yy.lexer=y,x.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var pt=y.yylloc;t.push(pt);var Lt=y.options&&y.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function wt(b){c.length=c.length-2*b,p.length=p.length-b,t.length=t.length-b}u(wt,"popStack");function Rt(){var b;return b=r.pop()||y.lex()||At,typeof b!="number"&&(b instanceof Array&&(r=b,b=r.pop()),b=a.symbols_[b]||b),b}u(Rt,"lex");for(var g,C,m,yt,D={},et,k,It,st;;){if(C=c[c.length-1],this.defaultActions[C]?m=this.defaultActions[C]:((g===null||typeof g>"u")&&(g=Rt()),m=j[C]&&j[C][g]),typeof m>"u"||!m.length||!m[0]){var ft="";st=[];for(et in j[C])this.terminals_[et]&&et>vt&&st.push("'"+this.terminals_[et]+"'");y.showPosition?ft="Parse error on line "+(tt+1)+`:
|
|
2
2
|
`+y.showPosition()+`
|
|
3
3
|
Expecting `+st.join(", ")+", got '"+(this.terminals_[g]||g)+"'":ft="Parse error on line "+(tt+1)+": Unexpected "+(g==At?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(ft,{text:y.match,token:this.terminals_[g]||g,line:y.yylineno,loc:pt,expected:st})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+g);switch(m[0]){case 1:c.push(g),p.push(y.yytext),t.push(y.yylloc),c.push(m[1]),g=null,Nt=y.yyleng,e=y.yytext,tt=y.yylineno,pt=y.yylloc;break;case 2:if(k=this.productions_[m[1]][1],D.$=p[p.length-k],D._$={first_line:t[t.length-(k||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(k||1)].first_column,last_column:t[t.length-1].last_column},Lt&&(D._$.range=[t[t.length-(k||1)].range[0],t[t.length-1].range[1]]),yt=this.performAction.apply(D,[e,Nt,tt,x.yy,m[1],p,t].concat(Dt)),typeof yt<"u")return yt;k&&(c=c.slice(0,-1*k*2),p=p.slice(0,-1*k),t=t.slice(0,-1*k)),c.push(this.productions_[m[1]][0]),p.push(D.$),t.push(D._$),It=j[c[c.length-2]][c[c.length-1]],c.push(It);break;case 3:return!0}}return!0},"parse")},Ct=function(){var R={EOF:1,parseError:u(function(a,c){if(this.yy.parser)this.yy.parser.parseError(a,c);else throw new Error(a)},"parseError"),setInput:u(function(n,a){return this.yy=a||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:u(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var a=n.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:u(function(n){var a=n.length,c=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===r.length?this.yylloc.first_column:0)+r[r.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:u(function(n){this.unput(this.match.slice(n))},"less"),pastInput:u(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var n=this.pastInput(),a=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{T as u}from"./C6teO48Y.js";function $(l){if(!l)return"t";let e=l.toLowerCase();const m=["tbl_","table_"];for(const s of m)e!=null&&e.startsWith(s)&&(e=e.slice(s.length));e=e.replace(/(_v\d+|_\d+)$/,"");let n=e.split(/[_-]/);n.length===1&&(n=e.match(/[A-Z]?[a-z]+|[A-Z]+(?=[A-Z][a-z]|\b)/g)||[e]);let o=n.filter(s=>s.length>0).map(s=>s[0]).join("");return!o&&e&&(o=e[0]),o}function N(l,e,m){var d,t;const n=document.createElement("div");n.className="gap-1 flex flex-col text-sm min-w-[20rem]";const o=((d=e.primary_keys)==null?void 0:d.map(c=>c.column))||[],s=((t=e.foreign_keys)==null?void 0:t.map(c=>c.column))||[],a=document.createElement("div");a.className="font-medium text-sm mb-1",a.textContent=`${l} (${m||"public"})`,n.appendChild(a);const i=document.createElement("div");if(i.className="text-xs text-muted-foreground",i.textContent=`Columns: ${e.columns.length}`,n.appendChild(i),o.length>0){const c=document.createElement("div");c.className="text-xs text-muted-foreground",c.textContent=`Primary Keys: ${o.join(", ")}`,n.appendChild(c)}if(s.length>0){const c=document.createElement("div");c.className="text-xs text-muted-foreground",c.textContent=`Foreign Keys: ${s.join(", ")}`,n.appendChild(c)}const r=document.createElement("div");r.className="mt-1 text-xs max-h-[12rem] overflow-auto";for(const c of e.columns){const p=document.createElement("div");p.className=o.includes(c.name)?"py-0.5 font-semibold":"py-0.5",p.append(document.createTextNode(`${c.name}: `));const x=document.createElement("span");x.className="text-muted-foreground",x.textContent=c.short_type_name,p.appendChild(x),r.appendChild(p)}return n.appendChild(r),n}function g(l,e,m,n,o,s){const a=document.createElement("div");a.className="gap-1 flex flex-col text-sm min-w-[10rem]";const i=document.createElement("div");i.className="font-medium text-sm mb-1",i.textContent=l,a.appendChild(i);const r=document.createElement("div");r.className="text-xs text-muted-foreground",r.textContent=`Type: ${e}`,a.appendChild(r);const d=document.createElement("div");if(d.className="text-xs text-muted-foreground",d.textContent=`Table: ${s?`${s}.${m}`:m}`,a.appendChild(d),n){const t=document.createElement("div");t.className="text-xs text-yellow-500 mt-1 flex items-center gap-1",t.textContent="Primary Key",a.appendChild(t)}if(o){const t=document.createElement("div");t.className="text-xs text-blue-500 mt-1 flex items-center gap-1",t.textContent=`FK -> ${o.referenced_table}.${o.referenced_column}`,a.appendChild(t)}return a}function E(l,e,m){const n=document.createElement("div");n.className="gap-1 flex flex-col text-sm min-w-[20rem]";const o=document.createElement("div");o.className="font-medium text-sm mb-1",o.textContent=`${l} (View, ${m||"public"})`,n.appendChild(o);const s=document.createElement("div");s.className="text-xs text-muted-foreground",s.textContent=`Type: ${e.type}`,n.appendChild(s);const a=document.createElement("div");a.className="text-xs text-muted-foreground",a.textContent=`Columns: ${e.columns.length}`,n.appendChild(a);const i=document.createElement("div");i.className="mt-1 text-xs max-h-[12rem] overflow-auto";for(const r of e.columns){const d=document.createElement("div");d.className="py-0.5",d.append(document.createTextNode(`${r.name}: `));const t=document.createElement("span");t.className="text-muted-foreground",t.textContent=r.short_type_name,d.appendChild(t),i.appendChild(d)}return n.appendChild(i),n}function w(l,e,m,n){const o=document.createElement("div");o.className="gap-1 flex flex-col text-sm min-w-[18rem]";const s=document.createElement("div");if(s.className="font-medium text-sm mb-1",s.textContent=`${l} (${e}, ${n||"public"})`,o.appendChild(s),m){const a=document.createElement("div");a.className="text-xs font-semibold mt-1",a.textContent="Parameters:",o.appendChild(a);const i=document.createElement("div");i.className="text-xs text-muted-foreground leading-relaxed";const r=m.split(",").map(d=>d.trim());for(const d of r){const t=document.createElement("div");t.textContent=`• ${d}`,i.appendChild(t)}o.appendChild(i)}else{const a=document.createElement("div");a.className="text-xs text-muted-foreground",a.textContent="No parameters",o.appendChild(a)}return o}function j(l,e){const m=document.createElement("div");m.className="gap-1 flex flex-col text-sm min-w-[12rem]";const n=document.createElement("div");n.className="font-medium text-sm mb-1",n.textContent=`Variable: ${l}`,m.appendChild(n);const o=document.createElement("div");o.className="text-xs font-semibold mt-1",o.textContent="Current Value:",m.appendChild(o);const s=document.createElement("pre");return s.className="text-xs bg-muted p-1.5 rounded-sm mt-0.5 overflow-auto max-w-[20rem]",s.textContent=typeof e=="object"?JSON.stringify(e,null,2):String(e),m.appendChild(s),m}function _(l){return l?`(${l.split(",").map(n=>n.trim()).map(n=>{const o=n.match(/^([\w"]+)\s+([\w"\[\]]+)/i);return o?`${o[1]}:${o[2]}`:n}).join(", ")})`:"()"}function T(l){if(!l)return u.Field;const e=l.toLowerCase();return e.includes("int")||e.includes("numeric")||e.includes("decimal")||e.includes("float")||e.includes("double")||e.includes("real")||e.includes("serial")||e.includes("money")?u.Numeric:e.includes("char")||e.includes("text")||e.includes("varchar")||e.includes("string")||e.includes("uuid")||e.includes("citext")?u.String:e.includes("date")||e.includes("time")||e.includes("timestamp")||e.includes("interval")?u.Calendar:e.includes("array")||e.includes("json")||e.includes("jsonb")||e.includes("[]")?u.Brackets:e.includes("vector")?u.Vector:u.Field}function S({typeName:l,isPrimaryKey:e,hasForeignKey:m}){return e?u.Keyword:m?u.ForeignKey:T(l)}function y({column:l,tableName:e,schemaName:m,isPrimaryKey:n,foreignKey:o,info:s}){const a={label:l.name,type:S({typeName:l.short_type_name,isPrimaryKey:n,hasForeignKey:!!o}),detail:l.short_type_name,boost:-l.ordinal_position};return s?a.info=s:a.info=()=>g(l.name,l.short_type_name,e,n,o,m),a}function F({schemas:l,defaultSchemaName:e,fileVariables:m}){var s,a;const n={};if(l&&l.length>0)for(const i of l){const r=i.name,d={};if(i.tableDetails)for(const t in i.tableDetails){const c=i.tableDetails[t],p={},x=new Set(((s=c.primary_keys)==null?void 0:s.map(f=>f.column))||[]),h=new Map(((a=c.foreign_keys)==null?void 0:a.map(f=>[f.column,f]))||[]);for(const f of c.columns||[]){const b=x.has(f.name),v=h.get(f.name);p[f.name]={self:y({column:f,tableName:t,schemaName:r,isPrimaryKey:b,foreignKey:v}),children:{}}}p["*"]={self:{label:"*",type:u.Function,detail:"All columns",boost:50,info:()=>g("* All columns","Selects all columns",t,!1,void 0,r)},children:{}};const C=$(t);d[t]={self:{label:t,displayLabel:`${t} AS ${C}`,type:u.Table,detail:`${c.columns.length} columns`,apply:`${t} AS ${C}`,boost:100,info:()=>N(t,c,r)},children:p}}if(i.viewDetails)for(const t in i.viewDetails){const c=i.viewDetails[t],p={};for(const x of c.columns||[])p[x.name]={self:y({column:x,tableName:t,schemaName:r,isPrimaryKey:!1}),children:{}};d[t]={self:{label:t,type:u.Table,detail:`View (${c.columns.length} columns)`,boost:90,info:()=>E(t,c,r)},children:p}}if(i.functions)for(const t of i.functions){const c=_(t.parameters);d[t.name]={self:{label:t.name,type:u.Function,detail:`${(t.type||"function").toLowerCase()}`,boost:80,info:()=>w(t.name,t.type,t.parameters,r),apply(p,x,h,C){const f=`${t.name}${c}`;p.dispatch({changes:{from:h,to:C,insert:f},selection:{anchor:h+t.name.length+1},userEvent:"input.complete"})}},children:{}}}n[r]={self:{label:r,type:u.Database,detail:`${Object.keys(d).length} objects`},children:d}}const o=(e&&n[e]?e:void 0)||Object.keys(n)[0];return{schema:n,defaultSchema:o}}export{y as a,j as c,$ as g,F as m};
|