@zenuml/core 3.24.19 → 3.24.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/zenuml.js CHANGED
@@ -3359,7 +3359,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`),d3=W,o1=e2);const M1={
3359
3359
  <span class="http-method-${n[1].toLowerCase()}">${n[1]}</span>
3360
3360
  <span class="http-path">${n[2]}</span>
3361
3361
  </code>
3362
- `:`<code>${t}</code>`}};k2.setOptions({highlight:function(t,e){if(!e)return F9.highlightAuto(t).value;const n=F9.getLanguage(e)?e:"plaintext";return F9.highlight(n,t).value},breaks:!0}),k2.use({renderer:Mb});const yb={name:"comment",props:["comment","commentObj"],computed:{markedComment(){var e,n;const t=((e=this.commentObj)==null?void 0:e.text)&&k2.parse((n=this.commentObj)==null?void 0:n.text)||this.comment&&k2.parse(this.comment);return dS.sanitize(t)},commentStyle(){var t;return(t=this.commentObj)==null?void 0:t.commentStyle},classNames(){var t;return(t=this.commentObj)==null?void 0:t.commentClassNames}}},Rb={class:"comments text-skin-comment min-w-[100px] flex text-left opacity-50 hover:opacity-100"},Ab=["innerHTML"];function kb(t,e,n,i,s,r){return I(),B("div",Rb,[R("div",{innerHTML:r.markedComment,class:y2(r.classNames),style:R2(r.commentStyle)},null,14,Ab)])}const N5=Y2(yb,[["render",kb],["__scopeId","data-v-05f7b74d"]]),Ez="",Zb={props:["collapsed"],emits:["click"]},Tb={class:"collapsible-header"},Sb=[T8('<g id="SVGRepo_bgCarrier" stroke-width="0" data-v-175097b8></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-175097b8></g><g id="SVGRepo_iconCarrier" data-v-175097b8><line x1="13" y1="2" x2="13" y2="10" data-v-175097b8></line><polyline points="9 7 13 11 17 7" data-v-175097b8></polyline><line x1="13" y1="23" x2="13" y2="15" data-v-175097b8></line><polyline points="9 19 13 15 17 19" data-v-175097b8></polyline></g>',3)],bb=[T8('<g id="SVGRepo_bgCarrier" stroke-width="0" data-v-175097b8></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-175097b8></g><g id="SVGRepo_iconCarrier" data-v-175097b8><line x1="13" y1="1" x2="13" y2="9" data-v-175097b8></line><polyline points="9 5 13 1 17 5" data-v-175097b8></polyline><line x1="13" y1="13" x2="13" y2="13" data-v-175097b8></line><line x1="13" y1="24" x2="13" y2="17" data-v-175097b8></line><polyline points="9 20 13 24 17 20" data-v-175097b8></polyline></g>',3)];function Eb(t,e,n,i,s,r){return I(),B("div",Tb,[(I(),B("svg",{width:"20px",height:"20px",class:y2([{hidden:n.collapsed,expanded:!n.collapsed},"collapse-button cursor-pointer"]),onClick:e[0]||(e[0]=o=>t.$emit("click",o)),viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"miter"},Sb,2)),(I(),B("svg",{width:"20px",height:"20px",class:y2([{hidden:!n.collapsed},"cursor-pointer"]),onClick:e[1]||(e[1]=o=>t.$emit("click",o)),viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"miter"},bb,2))])}const Ib=Y2(Zb,[["render",Eb],["__scopeId","data-v-175097b8"]]),Oz="",Nz="",Fb={name:"occurrence",props:["context","selfCallIndent","participant","rtl","number"],data:function(){return{center:0,collapsed:!1}},computed:{...z3(["centerOf","messageLayerLeft"]),...y9(["code"]),debug(){return!!localStorage.zenumlDebug},computedCenter:function(){try{return this.centerOf(this.participant)}catch(t){return console.error(t),0}},hasAnyStatementsExceptReturn:function(){var i;let t=this.context.braceBlock();if(!t)return!1;let e=((i=t.block())==null?void 0:i.stat())||[],n=e.length;return n>1||n==1&&e[0].ret()==null}},methods:{toggle(){this.collapsed=!this.collapsed,d7.$emit("participant_set_top")}},components:{CollapseButton:Ib},watch:{context(){this.collapsed&&(this.collapsed=!1)}}},ba=t=>(_4("data-v-643ed288"),t=t(),v4(),t),Ob=["data-belongs-to","data-x-offset","data-debug-center-of"],Nb={key:0,class:"absolute w-full left-0 bg-amber-700 h-3 -top-1 flex justify-center items-center"},Db=[ba(()=>R("div",{class:"w-px h-full bg-black"},null,-1))],Pb={key:1,class:"absolute w-full left-0 bg-amber-700 h-3 -bottom-1 flex justify-center items-center"},Bb=[ba(()=>R("div",{class:"w-px h-full bg-black"},null,-1))];function zb(t,e,n,i,s,r){const o=w2("collapse-button"),l=w2("block");return I(),B("div",{class:y2(["occurrence shadow-occurrence border-skin-occurrence bg-skin-occurrence rounded-sm border-2 relative left-full",{"right-to-left":n.rtl}]),"data-el-type":"occurrence","data-belongs-to":n.participant,"data-x-offset":t.center,"data-debug-center-of":r.computedCenter},[r.debug?(I(),B("div",Nb,Db)):g2("",!0),r.debug?(I(),B("div",Pb,Bb)):g2("",!0),r.hasAnyStatementsExceptReturn?(I(),S2(o,{key:2,collapsed:t.collapsed,onClick:this.toggle},null,8,["collapsed","onClick"])):g2("",!0),this.context.braceBlock()?(I(),S2(l,{key:3,context:n.context.braceBlock().block(),selfCallIndent:n.selfCallIndent,number:n.number,collapsed:t.collapsed,inheritFromOccurrence:!0},null,8,["context","selfCallIndent","number","collapsed"])):g2("",!0)],10,Ob)}const Ea=Y2(Fb,[["render",zb],["__scopeId","data-v-643ed288"]]);class M0{constructor(e,n,i,s){i2(this,"start");i2(this,"stop");this.start={line:e,col:n},this.stop={line:i,col:s}}static from(e){const n=e.start,i=e.stop;return new M0(n.line,n.column,i.line,i.column+i.text.length)}}const Ia=E0.child({name:"Creation"}),Ub={name:"creation",props:["context","comment","commentObj","selfCallIndent","number"],computed:{...z3(["cursor","onElementClick","distance2"]),...y9(["numbering"]),from(){return this.context.Origin()},creation(){return this.context.creation()},interactionWidth(){let t=this.selfCallIndent||0;return Math.abs(this.distance2(this.from,this.to)-t)-1},rightToLeft(){return this.distance2(this.from,this.to)<0},signature(){return this.creation.SignatureText(!1)},assignee(){function t(s){return s&&s.getFormattedText()||""}let e=this.creation.creationBody().assignment();if(!e)return"";let n=t(e.assignee());const i=t(e.type());return n+(i?":"+i:"")},to(){return this.creation.Owner()},isCurrent(){return this.creation.isCurrent(this.cursor)},isInitedFromOccurrence:function(){return this.creation.isInitedFromOccurrence(this.from)},messageTextStyle(){var t;return(t=this.commentObj)==null?void 0:t.messageStyle},messageClassNames(){var t;return(t=this.commentObj)==null?void 0:t.messageClassNames}},mounted(){this.layoutMessageContainer(),Ia.log(`mounted for ${this.to}`)},updated(){this.layoutMessageContainer(),Ia.debug(`mounted for ${this.to}`)},methods:{layoutMessageContainer(){(()=>{if(!this.$refs.participantPlaceHolder||!this.$refs.messageContainer)return;const e=this.$refs.participantPlaceHolder.offsetWidth/2;this.$refs.messageContainer.style.width=`calc(100% + ${e+7}px`,this.rightToLeft&&(this.$refs.messageContainer.style.transform=`translateX( ${-(e+7)}px`)})()},onClick(){this.onElementClick(M0.from(this.context))}},components:{Participant:ql,Comment:N5,Occurrence:Ea,Message:v5}},Wb=["data-signature"],Hb=["data-to"],$b={ref:"participantPlaceHolder",class:"invisible right-0 flex flex-col justify-center flex-shrink-0"};function Vb(t,e,n,i,s,r){var c;const o=w2("comment"),l=w2("message"),L=w2("participant"),a=w2("occurrence");return I(),B("div",{class:y2(["interaction creation sync text-center transform",{"right-to-left":r.rightToLeft,"-translate-x-full":r.rightToLeft,highlight:r.isCurrent,"inited-from-occurrence":r.isInitedFromOccurrence}]),onClick:e[0]||(e[0]=e5((...C)=>r.onClick&&r.onClick(...C),["stop"])),"data-signature":r.signature,style:R2({width:r.interactionWidth+"px"})},[n.comment?(I(),S2(o,{key:0,commentObj:n.commentObj},null,8,["commentObj"])):g2("",!0),R("div",{ref:"messageContainer","data-type":"creation",class:y2(["message-container pointer-events-none flex items-center h-10 relative",{"flex-row-reverse":r.rightToLeft}]),"data-to":r.to},[G(l,{ref:"messageEl",class:"invocation w-full transform -translate-y-1/2 pointer-events-auto",context:r.creation,content:r.signature,rtl:r.rightToLeft,type:"creation",number:n.number,classNames:r.messageClassNames,textStyle:r.messageTextStyle},null,8,["context","content","rtl","number","classNames","textStyle"]),R("div",$b,[G(L,{entity:{name:r.to}},null,8,["entity"])],512)],10,Hb),G(a,{context:r.creation,class:"pointer-events-auto",participant:r.to,number:n.number},null,8,["context","participant","number"]),r.assignee?(I(),S2(l,{key:1,class:"return transform -translate-y-full pointer-events-auto",context:r.creation.creationBody().assignment(),content:r.assignee,rtl:!r.rightToLeft,type:"return",number:`${n.number}.${(((c=r.creation.braceBlock())==null?void 0:c.block().stat().length)||0)+1}`,classNames:r.messageClassNames,textStyle:r.messageTextStyle},null,8,["context","content","rtl","number","classNames","textStyle"])):g2("",!0)],14,Wb)}const Gb=Y2(Ub,[["render",Vb]]),jb={class:"name text-left group px-px hover:text-skin-message-hover hover:bg-skin-message-hover relative min-h-[1em] w-full"},qb={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500"},Kb={class:"label"},Yb={key:0},Xb={class:"assignee px-1"},Qb=R("span",null,"=",-1),Jb=R("svg",{class:"arrow text-skin-message-arrow",width:"30",height:"24"},[R("polyline",{class:"line stroke-current fill-none stroke-2",points:"0,2 28,2 28,15 14,15"}),R("polyline",{class:"head stroke-current fill-current stroke-2",points:"18,9 8,15 18,21"})],-1),eE=X2({__name:"SelfInvocation",props:{context:null,number:null,textStyle:null,classNames:null},setup(t){const e=t,{context:n}=L9(e),i=S1(),s=F(()=>i.state.numbering),r=C2(),o=F(()=>{const c=n==null?void 0:n.value.messageBody().func();return c?[c.start.start,c.stop.stop]:[-1,-1]}),l=F(()=>{let c=n==null?void 0:n.value.Assignment();return c?c.getText():""}),L=F(()=>n==null?void 0:n.value.SignatureText()),a=()=>{i.getters.onMessageClick(n,r.value)};return(c,C)=>(I(),B("div",{class:"self-invocation message self flex items-start flex-col",style:{"border-width":"0"},onClick:a,ref_key:"messageRef",ref:r},[R("label",jb,[N(s)?(I(),B("div",qb,K2(t.number),1)):g2("",!0),R("div",Kb,[N(l)?(I(),B("span",Yb,[R("span",Xb,K2(N(l)),1),Qb])):g2("",!0),G(m7,{style:R2(t.textStyle),class:y2(t.classNames),labelText:N(L),labelPosition:N(o),isSelf:!0},null,8,["style","class","labelText","labelPosition"])])]),Jb],512))}}),Bz="",tE={name:"interaction",props:["context","selfCallIndent","commentObj","number"],computed:{...z3(["participants","distance2","cursor","onElementClick"]),hasComment(){var t;return((t=this.commentObj)==null?void 0:t.text)!==""},messageTextStyle(){var t;return(t=this.commentObj)==null?void 0:t.messageStyle},messageClassNames(){var t;return(t=this.commentObj)==null?void 0:t.messageClassNames},message:function(){var t;return(t=this.context)==null?void 0:t.message()},providedFrom:function(){var t,e;return(e=(t=this.context)==null?void 0:t.message())==null?void 0:e.ProvidedFrom()},from:function(){return this.providedFrom||this.origin},outOfBand:function(){return!!this.providedFrom&&this.providedFrom!==this.origin},assignee:function(){var e;let t=(e=this.message)==null?void 0:e.Assignment();return t?t.getText():""},signature:function(){var t;return(t=this.message)==null?void 0:t.SignatureText()},translateX:function(){if(!this.rightToLeft&&!this.outOfBand)return 0;const e=this.rightToLeft?this.to:this.providedFrom,n=this.distance2(this.origin,e),i=this.selfCallIndent||0;return n+0-i},rightToLeft:function(){return this.distance2(this.from,this.to)<0},isCurrent:function(){var t;return(t=this.message)==null?void 0:t.isCurrent(this.cursor)},showStarter(){return this.participants.Starter().name!=="_STARTER_"},isRootBlock(){var t,e;return((e=(t=this.context)==null?void 0:t.parentCtx)==null?void 0:e.parentCtx)instanceof bp},origin:function(){var t;return(t=this.context)==null?void 0:t.Origin()},passOnOffset:function(){return this.isSelf&&!this.isRootBlock?(this.selfCallIndent||0)+7:0},interactionWidth:function(){if(this.context&&this.isSelf)return 0;let t=this.outOfBand?0:this.selfCallIndent||0;return Math.abs(this.distance2(this.from,this.to)-t)-1},to:function(){var t,e;return(e=(t=this.context)==null?void 0:t.message())==null?void 0:e.Owner()},isSelf:function(){return!this.to||this.to===this.from},isInitedFromOccurrence:function(){var t;return(t=this.message)==null?void 0:t.isInitedFromOccurrence(this.context)}},methods:{onClick(){this.onElementClick(M0.from(this.context))}},components:{Message:v5,SelfInvocation:eE,Comment:N5,Occurrence:Ea}},nE=["data-to","data-signature"];function iE(t,e,n,i,s,r){var c;const o=w2("comment"),l=w2("self-invocation"),L=w2("message"),a=w2("occurrence");return I(),B("div",{class:y2(["interaction sync inline-block",{highlight:r.isCurrent,self:r.isSelf,"from-no-occurrence":r.providedFrom&&r.providedFrom!==r.origin,"inited-from-occurrence":r.isInitedFromOccurrence,"right-to-left":r.rightToLeft}]),onClick:e[0]||(e[0]=e5((...C)=>r.onClick&&r.onClick(...C),["stop"])),"data-to":r.to,"data-type":"interaction","data-signature":r.signature,style:R2({width:r.isSelf?void 0:r.interactionWidth+"px",transform:"translateX("+r.translateX+"px)"})},[r.showStarter&&r.isRootBlock||r.outOfBand?(I(),B("div",{key:0,class:y2(["occurrence source border-2",{"right-to-left":r.rightToLeft}])},null,2)):g2("",!0),r.hasComment?(I(),S2(o,{key:1,commentObj:n.commentObj},null,8,["commentObj"])):g2("",!0),r.isSelf?(I(),S2(l,{key:2,classNames:r.messageClassNames,textStyle:r.messageTextStyle,context:r.message,number:n.number},null,8,["classNames","textStyle","context","number"])):(I(),S2(L,{key:3,class:"text-center",classNames:r.messageClassNames,textStyle:r.messageTextStyle,context:r.message,content:r.signature,rtl:r.rightToLeft,type:"sync",number:n.number},null,8,["classNames","textStyle","context","content","rtl","number"])),G(a,{context:r.message,participant:r.to,selfCallIndent:r.passOnOffset,rtl:r.rightToLeft,number:n.number},null,8,["context","participant","selfCallIndent","rtl","number"]),r.assignee&&!r.isSelf?(I(),S2(L,{key:4,class:"return transform -translate-y-full",context:r.message,content:r.assignee,rtl:!r.rightToLeft,type:"return",number:`${n.number}.${(((c=r.message.braceBlock())==null?void 0:c.block().stat().length)||0)+1}`,classNames:r.messageClassNames,textStyle:r.messageTextStyle},null,8,["context","content","rtl","number","classNames","textStyle"])):g2("",!0)],14,nE)}const sE=Y2(tE,[["render",iE],["__scopeId","data-v-24f8e1a5"]]),rE=t=>(_4("data-v-d34f9057"),t=t(),v4(),t),oE={class:"message self flex items-start flex-col",style:{"border-width":"0"}},lE={class:"name group px-px hover:text-skin-message-hover hover:bg-skin-message-hover min-h-[1em]"},LE={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500"},aE=rE(()=>R("svg",{class:"arrow text-skin-message-arrow",width:"34",height:"34"},[R("polyline",{class:"stroke-current stroke-2 fill-none",points:"0,2 28,2 28,25 1,25"}),R("polyline",{class:"head stroke-current stroke-2 fill-none",points:"11,19 1,25 11,31"})],-1)),cE=X2({__name:"SelfInvocation-async",props:{context:null,number:null,textStyle:null,classNames:null},setup(t){const e=t,{context:n}=L9(e),i=S1(),s=F(()=>n==null?void 0:n.value.content()),r=F(()=>i.state.numbering),o=F(()=>s.value?[s.value.start.start,s.value.stop.stop]:[-1,-1]),l=F(()=>{var L;return(L=s.value)==null?void 0:L.getFormattedText()});return(L,a)=>(I(),B("div",oE,[R("label",lE,[N(r)?(I(),B("div",LE,K2(t.number),1)):g2("",!0),G(m7,{style:R2(t.textStyle),class:y2(t.classNames),labelText:N(l),labelPosition:N(o),isAsync:!0,isSelf:!0},null,8,["style","class","labelText","labelPosition"])]),aE]))}}),zz="",CE=Y2(cE,[["__scopeId","data-v-d34f9057"]]),Uz="";function Nn(t){return t==null}const uE={name:"interaction-async",props:["context","comment","commentObj","selfCallIndent","number"],computed:{...z3(["distance","cursor","onElementClick"]),from:function(){return this.context.Origin()},asyncMessage:function(){var t;return(t=this.context)==null?void 0:t.asyncMessage()},interactionWidth:function(){var t;return this.isSelf?10*(((t=this.signature)==null?void 0:t.length)||0)+100:Math.abs(this.distance(this.target,this.source))},translateX:function(){return this.rightToLeft?this.distance(this.target,this.from):this.distance(this.source,this.from)},rightToLeft:function(){return this.distance(this.target,this.source)<0},signature:function(){var t,e;return(e=(t=this.asyncMessage)==null?void 0:t.content())==null?void 0:e.getFormattedText()},source:function(){var t,e;return((e=(t=this.asyncMessage)==null?void 0:t.from())==null?void 0:e.getFormattedText())||this.from},target:function(){var t,e;return(e=(t=this.asyncMessage)==null?void 0:t.to())==null?void 0:e.getFormattedText()},borderWidth:function(){const t={borderLeftWidth:"7px",borderRightWidth:"7px"},e=this.rightToLeft?"Left":"Right",n=this.rightToLeft?"Right":"Left";return this.isJointOccurrence(this.source)||(t[`border${n}Width`]="0px"),this.isJointOccurrence(this.target)||(t[`border${e}Width`]="0px"),t},isCurrent:function(){const t=this.asyncMessage.start.start,e=this.asyncMessage.stop.stop+1;return Nn(this.cursor)||Nn(t)||Nn(e)?!1:this.cursor>=t&&this.cursor<=e},isSelf:function(){return this.source===this.target},origin:function(){var t;return(t=this.context)==null?void 0:t.Origin()},messageTextStyle(){var t;return(t=this.commentObj)==null?void 0:t.messageStyle},messageClassNames(){var t;return(t=this.commentObj)==null?void 0:t.messageClassNames}},methods:{onClick(){this.onElementClick(M0.from(this.context))},isJointOccurrence(t){let e=this.findOwningContext(t);return e?e instanceof d.MessageContext||e instanceof d.CreationContext:!1},findOwningContext(t){let e=this.context;for(;e;){if(!e.Owner){e=e.parentCtx;continue}if(e.Owner()===t)return e;e=e.parentCtx}return null}},components:{Comment:N5,SelfInvocationAsync:CE,Message:v5}},hE=["data-signature"];function dE(t,e,n,i,s,r){const o=w2("comment"),l=w2("self-invocation-async"),L=w2("message");return I(),B("div",{class:y2(["interaction async",{"left-to-right":!r.rightToLeft,"right-to-left":r.rightToLeft,highlight:r.isCurrent,"self-invocation":r.isSelf}]),onClick:e[0]||(e[0]=e5((...a)=>r.onClick&&r.onClick(...a),["stop"])),"data-signature":r.signature,style:R2({...r.borderWidth,width:r.interactionWidth+"px",transform:"translateX("+r.translateX+"px)"})},[n.comment?(I(),S2(o,{key:0,commentObj:n.commentObj},null,8,["commentObj"])):g2("",!0),r.isSelf?(I(),S2(l,{key:1,classNames:r.messageClassNames,textStyle:r.messageTextStyle,context:r.asyncMessage,number:n.number},null,8,["classNames","textStyle","context","number"])):(I(),S2(L,{key:2,classNames:r.messageClassNames,textStyle:r.messageTextStyle,context:r.asyncMessage,content:r.signature,rtl:r.rightToLeft,type:"async",number:n.number},null,8,["classNames","textStyle","context","content","rtl","number"]))],14,hE)}const fE=Y2(uE,[["render",dE],["__scopeId","data-v-38f08c01"]]),Wz="",gE={components:{Icon:q4},props:["label","collapsed"],emits:["click"]},pE={class:"collapsible-header"},mE={class:"mb-0"};function wE(t,e,n,i,s,r){const o=w2("Icon");return I(),B("div",pE,[R("label",mE,K2(n.label),1),n.collapsed?(I(),S2(o,{key:1,name:"collapse-unexpanded","icon-class":"w-4 h-4 cursor-pointer",onIconClick:e[1]||(e[1]=l=>t.$emit("click",l))})):(I(),S2(o,{key:0,name:"collapse-expanded","icon-class":`w-4 h-4 collapse-button cursor-pointer ${n.collapsed?"":"expanded"}`,onIconClick:e[0]||(e[0]=l=>t.$emit("click",l))},null,8,["icon-class"]))])}const xE=Y2(gE,[["render",wE],["__scopeId","data-v-048a5186"]]),e9={computed:{...z3(["coordinates"]),offsetX:function(){const t=this.coordinates.orderedParticipantNames(),n=new Gt(t).getFrame(this.context),i=qt(n),s=[this.context.Origin(),...w0(this.context).Names()],r=t.find(l=>s.includes(l));let o=this.coordinates.half(r);return console.debug(`left participant: ${r} ${o}`),this.coordinates.distance(r,this.from)+i.left+o},fragmentStyle:function(){return{transform:"translateX("+(this.offsetX+1)*-1+"px)",width:Jl(this.context,this.coordinates)+"px"}}},data:function(){return{collapsed:!1}},methods:{toggle(){this.collapsed=!this.collapsed,d7.emit("participant_set_top")}},components:{CollapseButton:xE},watch:{context(){this.collapsed&&(this.collapsed=!1)}}},_E=t=>{const e={loop:"FragmentLoop",alt:"FragmentAlt",par:"FragmentPar",opt:"FragmentOpt",section:"FragmentSection",critical:"FragmentCritical",tcf:"FragmentTryCatchFinally",creation:"Creation",message:"Interaction",asyncMessage:"InteractionAsync",divider:"Divider",ret:"Return"},n=Object.keys(e).find(i=>t[i]()!==null)||"";return e[n]},D5=t=>t&&t.stat()?t.stat().filter(e=>_E(e)!=="Divider").length:0,Fa=(t,e)=>{if(t){const n=t.split(".");return n[n.length-1]=Number(n[n.length-1])+e,n.join(".")}else return String(e)},vE=["contenteditable"],Oa=X2({__name:"ConditionLabel",props:{condition:null},setup(t){const e=t,n=/\b(\w+)\s*==\s*(\w+)\b/g,{condition:i}=L9(e),s=S1(),r=F(()=>s.state.mode),o=F(()=>s.getters.code),l=F(()=>s.getters.onContentChange||(()=>{})),L=F(()=>{var _,p;return(p=(_=i==null?void 0:i.value)==null?void 0:_.getFormattedText())!=null?p:""});function a(_){s.dispatch("updateCode",{code:_}),l.value(_)}function c(_){var Z,b,k,S,V;_.preventDefault(),_.stopPropagation();const p=_.target;if(!(p instanceof HTMLElement))return;let g=(Z=p.innerText.trim())!=null?Z:"";if(g===""){p.innerText=L.value;return}x5.test(g)&&!n.test(g)&&(g=g.replace(/"/g,""),g=`"${g}"`);const[m,v]=[(k=(b=i.value)==null?void 0:b.start)==null?void 0:k.start,(V=(S=i.value)==null?void 0:S.stop)==null?void 0:V.stop];if(m===-1||v===-1){console.warn("labelPosition is not set");return}a(o.value.slice(0,m)+g+o.value.slice(v+1))}const{editing:C,handleDblClick:u,handleBlur:h,handleKeydown:f,handleKeyup:w}=p7(c);return(_,p)=>(I(),B("label",{title:"Double click to edit",class:y2(["bg-skin-frame/[0.66] condition px-1 cursor-text hover:text-skin-message-hover hover:bg-skin-message-hover",{"py-1 px-2 ml-1 cursor-text":N(C)}]),contenteditable:N(C)&&N(r)===N(e3).Dynamic,onDblclick:p[0]||(p[0]=(...g)=>N(u)&&N(u)(...g)),onBlur:p[1]||(p[1]=(...g)=>N(h)&&N(h)(...g)),onKeyup:p[2]||(p[2]=(...g)=>N(w)&&N(w)(...g)),onKeydown:p[3]||(p[3]=(...g)=>N(f)&&N(f)(...g))},K2(N(C)?N(L):`[${N(L)}]`),43,vE))}}),Hz="",ME={name:"fragment-alt",props:["context","comment","selfCallIndent","commentObj","number"],mixins:[e9],components:{ConditionLabel:Oa},setup(t){const e=S1(),n=F(()=>e.state.numbering),i=F(()=>t.context.Origin()),s=F(()=>t.context.alt()),r=F(()=>{var u;return(u=s.value)==null?void 0:u.ifBlock()}),o=F(()=>{var u;return(u=s.value)==null?void 0:u.elseIfBlock()}),l=F(()=>{var u,h,f;return(f=(h=(u=s.value)==null?void 0:u.elseBlock())==null?void 0:h.braceBlock())==null?void 0:f.block()}),L=F(()=>{var u,h,f;return(f=(h=(u=s.value)==null?void 0:u.ifBlock())==null?void 0:h.braceBlock())==null?void 0:f.block()}),a=F(()=>{var h;const u=[D5(L.value)];return(h=s.value)!=null&&h.elseIfBlock()&&s.value.elseIfBlock().forEach(f=>{u.push(u[u.length-1]+D5(C(f)))}),u});function c(u){var h;return(h=u==null?void 0:u.parExpr())==null?void 0:h.condition()}function C(u){var h;return(h=u==null?void 0:u.braceBlock())==null?void 0:h.block()}return{numbering:n,from:i,alt:s,blockInIfBlock:L,ifBlock:r,elseIfBlocks:o,elseBlock:l,blockLengthAcc:a,conditionFromIfElseBlock:c,blockInElseIfBlock:C,increaseNumber:Fa,blockLength:D5}}},Na=t=>(_4("data-v-61565253"),t=t(),v4(),t),yE={class:"segment"},RE={class:"header bg-skin-fragment-header text-skin-fragment-header leading-4 rounded-t relative"},AE={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 font-thin leading-6"},kE={class:"name font-semibold p-1 border-b"},ZE={class:"p-0"},TE={class:"segment"},SE={class:"text-skin-fragment flex"},bE=Na(()=>R("label",{class:"else-if hidden"},"else if",-1)),EE={key:0,class:"segment mt-2 border-t border-solid"},IE=Na(()=>R("div",{class:"text-skin-fragment"},[R("label",{class:"p-1"},"[else]")],-1));function FE(t,e,n,i,s,r){const o=w2("comment"),l=w2("collapse-button"),L=w2("ConditionLabel"),a=w2("block");return I(),B("div",{class:"fragment alt border-skin-fragment rounded",style:R2(t.fragmentStyle)},[R("div",yE,[n.commentObj.text?(I(),S2(o,{key:0,comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):g2("",!0),R("div",RE,[i.numbering?(I(),B("div",AE,K2(n.number),1)):g2("",!0),R("div",kE,[R("label",ZE,[G(l,{label:"Alt",collapsed:t.collapsed,onClick:this.toggle,style:R2(n.commentObj.messageStyle),class:y2(n.commentObj.messageClassNames)},null,8,["collapsed","onClick","style","class"])])])])]),R("div",{class:y2({hidden:t.collapsed})},[R("div",TE,[R("div",SE,[G(L,{condition:i.conditionFromIfElseBlock(i.ifBlock)},null,8,["condition"])]),i.blockInIfBlock?(I(),S2(a,{key:0,style:R2({paddingLeft:`${t.offsetX}px`}),context:i.blockInIfBlock,selfCallIndent:n.selfCallIndent,number:`${n.number}.1`,incremental:""},null,8,["style","context","selfCallIndent","number"])):g2("",!0)]),(I(!0),B(z2,null,P3(i.elseIfBlocks,(c,C)=>(I(),B("div",{key:C+500,class:"segment mt-2 border-t border-solid"},[(I(),B("div",{class:"text-skin-fragment",key:C+1e3},[bE,G(L,{condition:i.conditionFromIfElseBlock(c)},null,8,["condition"])])),(I(),S2(a,{style:R2({paddingLeft:`${t.offsetX}px`}),context:i.blockInElseIfBlock(c),selfCallIndent:n.selfCallIndent,key:C+2e3,number:`${n.number}.${i.blockLengthAcc[C]+1}`,incremental:""},null,8,["style","context","selfCallIndent","number"]))]))),128)),i.elseBlock?(I(),B("div",EE,[IE,G(a,{style:R2({paddingLeft:`${t.offsetX}px`}),context:i.elseBlock,selfCallIndent:n.selfCallIndent,number:`${n.number}.${i.blockLengthAcc[i.blockLengthAcc.length-1]+1}`,incremental:""},null,8,["style","context","selfCallIndent","number"])])):g2("",!0)],2)],4)}const OE=Y2(ME,[["render",FE],["__scopeId","data-v-61565253"]]),$z="",Vz="",NE={name:"fragment-par",props:["context","comment","commentObj","selfCallIndent","number"],mixins:[e9],computed:{...y9(["numbering"]),from:function(){return this.context.Origin()},par:function(){return this.context.par()}}},DE={class:"header bg-skin-fragment-header text-skin-fragment-header leading-4 rounded-t relative"},PE={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 font-thin leading-6"},BE={class:"name font-semibold p-1 border-b"};function zE(t,e,n,i,s,r){const o=w2("comment"),l=w2("collapse-button"),L=w2("block");return I(),B("div",{class:"fragment par border-skin-fragment rounded",style:R2(t.fragmentStyle)},[n.commentObj.text?(I(),S2(o,{key:0,comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):g2("",!0),R("div",DE,[t.numbering?(I(),B("div",PE,K2(n.number),1)):g2("",!0),R("div",BE,[G(l,{label:"Par",collapsed:t.collapsed,onClick:this.toggle,style:R2(n.commentObj.messageStyle),class:y2(n.commentObj.messageClassNames)},null,8,["collapsed","onClick","style","class"])])]),G(L,{class:y2({hidden:t.collapsed}),style:R2({paddingLeft:`${t.offsetX}px`}),context:r.par.braceBlock().block(),selfCallIndent:n.selfCallIndent,number:n.number},null,8,["class","style","context","selfCallIndent","number"])],4)}const UE=Y2(NE,[["render",zE],["__scopeId","data-v-908744dd"]]),Gz="",WE={name:"fragment-loop",props:["context","comment","commentObj","selfCallIndent","number"],mixins:[e9],components:{ConditionLabel:Oa},setup(t){const e=S1(),n=F(()=>e.state.numbering),i=F(()=>t.context.Origin()),s=F(()=>t.context.loop()),r=F(()=>{var o,l;return(l=(o=s.value)==null?void 0:o.braceBlock())==null?void 0:l.block()});return{numbering:n,from:i,loop:s,blockInLoop:r,getConditionFromBlock:()=>{var o,l;return(l=(o=s.value)==null?void 0:o.parExpr())==null?void 0:l.condition()}}}},HE={class:"header text-skin-fragment-header bg-skin-fragment-header leading-4 relative"},$E={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 font-thin leading-6"},VE={class:"name font-semibold p-1 border-b"},GE={class:"segment"},jE={class:"text-skin-fragment"};function qE(t,e,n,i,s,r){const o=w2("comment"),l=w2("collapse-button"),L=w2("ConditionLabel"),a=w2("block");return I(),B("div",{class:"fragment loop border-skin-fragment rounded",style:R2(t.fragmentStyle)},[n.commentObj.text?(I(),S2(o,{key:0,comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):g2("",!0),R("div",HE,[i.numbering?(I(),B("div",$E,K2(n.number),1)):g2("",!0),R("div",VE,[G(l,{label:"Loop",collapsed:t.collapsed,onClick:this.toggle,style:R2(n.commentObj.messageStyle),class:y2(n.commentObj.messageClassNames)},null,8,["collapsed","onClick","style","class"])])]),R("div",{class:y2({hidden:t.collapsed})},[R("div",GE,[R("div",jE,[G(L,{condition:i.getConditionFromBlock(i.blockInLoop)},null,8,["condition"])]),G(a,{style:R2({paddingLeft:`${t.offsetX}px`}),context:i.blockInLoop,selfCallIndent:n.selfCallIndent,number:n.number},null,8,["style","context","selfCallIndent","number"])])],2)],4)}const KE=Y2(WE,[["render",qE],["__scopeId","data-v-82d18530"]]),jz="",YE={name:"fragment-opt",props:["context","comment","commentObj","selfCallIndent","number"],mixins:[e9],computed:{...y9(["numbering"]),from:function(){return this.context.Origin()},opt:function(){return this.context.opt()}}},XE={class:"header bg-skin-fragment-header text-skin-fragment-header leading-4 relative"},QE={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 font-thin leading-6"},JE={class:"name font-semibold p-1 border-b"};function eI(t,e,n,i,s,r){const o=w2("comment"),l=w2("collapse-button"),L=w2("block");return I(),B("div",{class:"fragment opt border-skin-fragment rounded",style:R2(t.fragmentStyle)},[n.commentObj.text?(I(),S2(o,{key:0,comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):g2("",!0),R("div",XE,[t.numbering?(I(),B("div",QE,K2(n.number),1)):g2("",!0),R("div",JE,[G(l,{label:"Opt",collapsed:t.collapsed,onClick:this.toggle,style:R2(n.commentObj.textStyle),class:y2(n.commentObj.classNames)},null,8,["collapsed","onClick","style","class"])])]),G(L,{class:y2({hidden:t.collapsed}),style:R2({paddingLeft:`${t.offsetX}px`}),context:r.opt.braceBlock().block(),selfCallIndent:n.selfCallIndent,number:n.number},null,8,["class","style","context","selfCallIndent","number"])],4)}const tI=Y2(YE,[["render",eI],["__scopeId","data-v-81f38061"]]);var nI=typeof O1=="object"&&O1&&O1.Object===Object&&O1,iI=nI,sI=iI,rI=typeof self=="object"&&self&&self.Object===Object&&self,oI=sI||rI||Function("return this")(),lI=oI,LI=lI,aI=LI.Symbol,Dn=aI;function cI(t,e){for(var n=-1,i=t==null?0:t.length,s=Array(i);++n<i;)s[n]=e(t[n],n,t);return s}var CI=cI,uI=Array.isArray,hI=uI,Da=Dn,Pa=Object.prototype,dI=Pa.hasOwnProperty,fI=Pa.toString,P5=Da?Da.toStringTag:void 0;function gI(t){var e=dI.call(t,P5),n=t[P5];try{t[P5]=void 0;var i=!0}catch{}var s=fI.call(t);return i&&(e?t[P5]=n:delete t[P5]),s}var pI=gI,mI=Object.prototype,wI=mI.toString;function xI(t){return wI.call(t)}var _I=xI,Ba=Dn,vI=pI,MI=_I,yI="[object Null]",RI="[object Undefined]",za=Ba?Ba.toStringTag:void 0;function AI(t){return t==null?t===void 0?RI:yI:za&&za in Object(t)?vI(t):MI(t)}var kI=AI;function ZI(t){return t!=null&&typeof t=="object"}var TI=ZI,SI=kI,bI=TI,EI="[object Symbol]";function II(t){return typeof t=="symbol"||bI(t)&&SI(t)==EI}var FI=II,Ua=Dn,OI=CI,NI=hI,DI=FI,PI=1/0,Wa=Ua?Ua.prototype:void 0,Ha=Wa?Wa.toString:void 0;function $a(t){if(typeof t=="string")return t;if(NI(t))return OI(t,$a)+"";if(DI(t))return Ha?Ha.call(t):"";var e=t+"";return e=="0"&&1/t==-PI?"-0":e}var BI=$a,zI=BI;function UI(t){return t==null?"":zI(t)}var Va=UI;function WI(t,e,n){var i=-1,s=t.length;e<0&&(e=-e>s?0:s+e),n=n>s?s:n,n<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++i<s;)r[i]=t[i+e];return r}var HI=WI,$I=HI;function VI(t,e,n){var i=t.length;return n=n===void 0?i:n,!e&&n>=i?t:$I(t,e,n)}var GI=VI,jI="\\ud800-\\udfff",qI="\\u0300-\\u036f",KI="\\ufe20-\\ufe2f",YI="\\u20d0-\\u20ff",XI=qI+KI+YI,QI="\\ufe0e\\ufe0f",JI="\\u200d",eF=RegExp("["+JI+jI+XI+QI+"]");function tF(t){return eF.test(t)}var Ga=tF;function nF(t){return t.split("")}var iF=nF,ja="\\ud800-\\udfff",sF="\\u0300-\\u036f",rF="\\ufe20-\\ufe2f",oF="\\u20d0-\\u20ff",lF=sF+rF+oF,LF="\\ufe0e\\ufe0f",aF="["+ja+"]",Pn="["+lF+"]",Bn="\\ud83c[\\udffb-\\udfff]",cF="(?:"+Pn+"|"+Bn+")",qa="[^"+ja+"]",Ka="(?:\\ud83c[\\udde6-\\uddff]){2}",Ya="[\\ud800-\\udbff][\\udc00-\\udfff]",CF="\\u200d",Xa=cF+"?",Qa="["+LF+"]?",uF="(?:"+CF+"(?:"+[qa,Ka,Ya].join("|")+")"+Qa+Xa+")*",hF=Qa+Xa+uF,dF="(?:"+[qa+Pn+"?",Pn,Ka,Ya,aF].join("|")+")",fF=RegExp(Bn+"(?="+Bn+")|"+dF+hF,"g");function gF(t){return t.match(fF)||[]}var pF=gF,mF=iF,wF=Ga,xF=pF;function _F(t){return wF(t)?xF(t):mF(t)}var vF=_F,MF=GI,yF=Ga,RF=vF,AF=Va;function kF(t){return function(e){e=AF(e);var n=yF(e)?RF(e):void 0,i=n?n[0]:e.charAt(0),s=n?MF(n,1).join(""):e.slice(1);return i[t]()+s}}var ZF=kF,TF=ZF,SF=TF("toUpperCase"),bF=SF,EF=Va,IF=bF;function FF(t){return IF(EF(t).toLowerCase())}var OF=FF;const qz="",NF={name:"fragment-section",props:["context","comment","selfCallIndent","commentObj","number"],mixins:[e9],setup(t){const e=S1(),n=F(()=>e.state.numbering),i=F(()=>t.context.Origin()),s=F(()=>t.context.section()),r=F(()=>{var a;return(a=s.value)==null?void 0:a.braceBlock()}),o=F(()=>{var a,c;return(c=(a=s.value)==null?void 0:a.atom())==null?void 0:c.getFormattedText()}),l=F(()=>{var a;return(a=r.value)==null?void 0:a.block()}),L=F(()=>{var a;return(a=o.value)!=null?a:OF(s.value.SECTION())});return{numbering:n,from:i,label:L,braceBlock:r,blockInSection:l}}},DF=t=>(_4("data-v-4fa4a08e"),t=t(),v4(),t),PF={class:"segment"},BF={class:"header bg-skin-fragment-header text-skin-fragment-header leading-4 rounded-t relative"},zF={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 font-thin leading-6"},UF={class:"name font-semibold p-1 border-b"},WF={class:"p-0"},HF={class:"segment"},$F=DF(()=>R("div",{class:"text-skin-fragment flex"},null,-1));function VF(t,e,n,i,s,r){const o=w2("comment"),l=w2("collapse-button"),L=w2("block");return I(),B("div",{class:"fragment section border-skin-fragment rounded",style:R2(t.fragmentStyle)},[R("div",PF,[n.commentObj.text?(I(),S2(o,{key:0,comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):g2("",!0),R("div",BF,[i.numbering?(I(),B("div",zF,K2(n.number),1)):g2("",!0),R("div",UF,[R("label",WF,[G(l,{label:i.label,collapsed:t.collapsed,onClick:this.toggle,style:R2(n.commentObj.messageStyle),class:y2(n.commentObj.messageClassNames)},null,8,["label","collapsed","onClick","style","class"])])])])]),R("div",{class:y2({hidden:t.collapsed})},[R("div",HF,[$F,i.blockInSection?(I(),S2(L,{key:0,style:R2({paddingLeft:`${t.offsetX}px`}),context:i.blockInSection,selfCallIndent:n.selfCallIndent,number:n.number},null,8,["style","context","selfCallIndent","number"])):g2("",!0)])],2)],4)}const GF=Y2(NF,[["render",VF],["__scopeId","data-v-4fa4a08e"]]),Kz="",jF={name:"fragment-section",props:["context","comment","selfCallIndent","commentObj","number"],mixins:[e9],setup(t){const e=S1(),n=F(()=>e.state.numbering),i=F(()=>t.context.Origin()),s=F(()=>t.context.critical()),r=F(()=>{var a;return(a=s.value)==null?void 0:a.braceBlock()}),o=F(()=>{var a,c;return(c=(a=s.value)==null?void 0:a.atom())==null?void 0:c.getFormattedText()}),l=F(()=>{var a;return(a=r.value)==null?void 0:a.block()}),L=F(()=>o.value?`Critical:${o.value}`:"Critical");return{numbering:n,from:i,label:L,braceBlock:r,blockInCritical:l}}},qF=t=>(_4("data-v-5b5c7189"),t=t(),v4(),t),KF={class:"segment"},YF={class:"header bg-skin-fragment-header text-skin-fragment-header leading-4 rounded-t relative"},XF={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 font-thin leading-6"},QF={class:"name font-semibold p-1 border-b"},JF={class:"p-0"},eO={class:"segment"},tO=qF(()=>R("div",{class:"text-skin-fragment flex"},null,-1));function nO(t,e,n,i,s,r){const o=w2("comment"),l=w2("collapse-button"),L=w2("block");return I(),B("div",{class:"fragment critical border-skin-fragment rounded relative",style:R2(t.fragmentStyle)},[R("div",KF,[n.commentObj.text?(I(),S2(o,{key:0,comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):g2("",!0),R("div",YF,[i.numbering?(I(),B("div",XF,K2(n.number),1)):g2("",!0),R("div",QF,[R("label",JF,[G(l,{label:i.label,collapsed:t.collapsed,onClick:this.toggle,style:R2(n.commentObj.messageStyle),class:y2(n.commentObj.messageClassNames)},null,8,["label","collapsed","onClick","style","class"])])])])]),R("div",{class:y2({hidden:t.collapsed})},[R("div",eO,[tO,i.blockInCritical?(I(),S2(L,{key:0,style:R2({paddingLeft:`${t.offsetX}px`}),context:i.blockInCritical,selfCallIndent:n.selfCallIndent,number:n.number},null,8,["style","context","selfCallIndent","number"])):g2("",!0)])],2)],4)}const iO=Y2(jF,[["render",nO],["__scopeId","data-v-5b5c7189"]]),Yz="",sO={name:"fragment-section",props:["context","comment","selfCallIndent","commentObj","number"],components:{MessageLabel:m7},mixins:[e9],setup(t){const e=S1(),n=F(()=>e.state.numbering),i=F(()=>t.context.Origin()),s=F(()=>t.context.ref().Content()),r=F(()=>{var l;return(l=s.value)==null?void 0:l.getFormattedText()}),o=F(()=>{var l,L;return[(l=s.value)==null?void 0:l.start.start,(L=s.value)==null?void 0:L.stop.stop]});return{store:e,from:i,numbering:n,contentLabel:r,contentPosition:o}}},rO=t=>(_4("data-v-3ec977d9"),t=t(),v4(),t),oO={class:"header bg-skin-fragment-header text-skin-fragment-header leading-4 rounded-t absolute top-0 left-0"},lO={key:0,class:"absolute right-full top-0 pr-1 group-hover:hidden text-gray-500 font-thin leading-6"},LO={class:"text-skin-fragment relative w-9 h-8 -top-[1px] -left-[1px]"},aO=rO(()=>R("div",{class:"polygon-border absolute inset-0"},null,-1)),cO={class:"polygon-content bg-skin-frame text-skin-fragment-header absolute inset-[1px] flex flex-col items-center justify-center"};function CO(t,e,n,i,s,r){const o=w2("comment"),l=w2("MessageLabel");return I(),B("div",{class:"fragment bg-skin-frame border-skin-fragment relative rounded min-w-[140px] w-max py-4 px-2 flex justify-center items-center flex-col",style:R2(t.fragmentStyle)},[R("div",oO,[i.numbering?(I(),B("div",lO,K2(n.number),1)):g2("",!0),n.commentObj.text?(I(),S2(o,{key:1,class:"absolute -top-4 left-0",comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):g2("",!0),R("div",LO,[aO,R("div",cO,[R("span",{class:y2(["flex items-center justify-center font-semibold",n.commentObj.messageClassNames]),style:R2(n.commentObj.messageStyle)}," Ref ",6)])])]),G(l,{class:"text-skin-title mt-3 mb-2",labelText:i.contentLabel,labelPosition:i.contentPosition},null,8,["labelText","labelPosition"])],4)}const uO=Y2(sO,[["render",CO],["__scopeId","data-v-3ec977d9"]]),Xz="",hO={name:"fragment-tcf",props:["context","comment","commentObj","selfCallIndent","number"],mixins:[e9],computed:{...y9(["numbering"]),from:function(){return this.context.Origin()},tcf:function(){return this.context.tcf()},blockInTryBlock:function(){var t,e,n;return(n=(e=(t=this.tcf)==null?void 0:t.tryBlock())==null?void 0:e.braceBlock())==null?void 0:n.block()},finallyBlock:function(){var t,e,n;return(n=(e=(t=this.tcf)==null?void 0:t.finallyBlock())==null?void 0:e.braceBlock())==null?void 0:n.block()},blockLengthAcc(){var e;const t=[D5(this.blockInTryBlock)];return(e=this.tcf)!=null&&e.catchBlock()&&this.tcf.catchBlock().forEach(n=>{t.push(t[t.length-1]+D5(this.blockInCatchBlock(n)))}),t}},methods:{exception(t){var e,n;return(n=(e=t==null?void 0:t.invocation())==null?void 0:e.parameters())==null?void 0:n.getFormattedText()},blockInCatchBlock(t){var e;return(e=t==null?void 0:t.braceBlock())==null?void 0:e.block()}}},Ja=t=>(_4("data-v-1d163267"),t=t(),v4(),t),dO={class:"segment"},fO={class:"header bg-skin-fragment-header text-skin-fragment-header leading-4 rounded-t relative"},gO={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 font-thin leading-6"},pO={class:"name font-semibold p-1 border-b"},mO={class:"segment"},wO=Ja(()=>R("label",{class:"keyword catch p-1"},"catch",-1)),xO={class:"exception p-1"},_O={key:0,class:"segment mt-2 border-t border-solid"},vO=Ja(()=>R("div",{class:"header flex text-skin-fragment finally"},[R("label",{class:"keyword finally bg-skin-frame/[0.66] px-1 inline-block"},"finally")],-1));function MO(t,e,n,i,s,r){const o=w2("comment"),l=w2("collapse-button"),L=w2("block");return I(),B("div",{class:"fragment tcf border-skin-fragment rounded",style:R2(t.fragmentStyle)},[R("div",dO,[n.commentObj.text?(I(),S2(o,{key:0,comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):g2("",!0),R("div",fO,[t.numbering?(I(),B("div",gO,K2(n.number),1)):g2("",!0),R("div",pO,[G(l,{label:"Try",collapsed:t.collapsed,onClick:this.toggle,style:R2(n.commentObj.messageStyle),class:y2(n.commentObj.messageClassNames)},null,8,["collapsed","onClick","style","class"])])])]),R("div",{class:y2({hidden:t.collapsed})},[R("div",mO,[r.blockInTryBlock?(I(),S2(L,{key:0,style:R2({paddingLeft:`${t.offsetX}px`}),context:r.blockInTryBlock,selfCallIndent:n.selfCallIndent,number:`${n.number}.1`,incremental:""},null,8,["style","context","selfCallIndent","number"])):g2("",!0)]),(I(!0),B(z2,null,P3(r.tcf.catchBlock(),(a,c)=>(I(),B("div",{key:c+500,class:"segment mt-2 border-t border-solid"},[(I(),B("div",{class:"header inline-block bg-skin-frame/[0.66]",key:c+1e3},[wO,R("label",xO,K2(r.exception(a)),1)])),(I(),S2(L,{style:R2({paddingLeft:`${t.offsetX}px`}),context:r.blockInCatchBlock(a),selfCallIndent:n.selfCallIndent,key:c+2e3,number:`${n.number}.${r.blockLengthAcc[c]+1}`,incremental:""},null,8,["style","context","selfCallIndent","number"]))]))),128)),r.finallyBlock?(I(),B("div",_O,[vO,G(L,{style:R2({paddingLeft:`${t.offsetX}px`}),context:r.finallyBlock,selfCallIndent:n.selfCallIndent,number:`${n.number}.${r.blockLengthAcc[r.blockLengthAcc.length-1]+1}`,incremental:""},null,8,["style","context","selfCallIndent","number"])])):g2("",!0)],2)],4)}const yO=Y2(hO,[["render",MO],["__scopeId","data-v-1d163267"]]),RO={name:"return",props:["context","comment","commentObj","number"],computed:{...z3(["distance","cursor","onElementClick","participants"]),from:function(){return this.context.Origin()},asyncMessage:function(){var t;return(t=this.context)==null?void 0:t.ret().asyncMessage()},width:function(){return this.isSelf?p5(this.signature,j4.MessageContent):Math.abs(this.distance(this.target,this.source))},left:function(){return this.rightToLeft?this.distance(this.target,this.from):this.distance(this.source,this.from)},rightToLeft:function(){return this.distance(this.target,this.source)<0},signature:function(){var t,e,n,i,s;return((e=(t=this.asyncMessage)==null?void 0:t.content())==null?void 0:e.getFormattedText())||((s=(i=(n=this.context)==null?void 0:n.ret())==null?void 0:i.expr())==null?void 0:s.getFormattedText())},source:function(){var t,e;return((e=(t=this.asyncMessage)==null?void 0:t.from())==null?void 0:e.getFormattedText())||this.from},target:function(){var t,e,n,i;return((e=(t=this.asyncMessage)==null?void 0:t.to())==null?void 0:e.getFormattedText())||((i=(n=this.context)==null?void 0:n.ret())==null?void 0:i.ReturnTo())},borderWidth:function(){const t={borderLeftWidth:"7px",borderRightWidth:"7px"},e=this.rightToLeft?"Left":"Right",n=this.rightToLeft?"Right":"Left";return this.isJointOccurrence(this.source)||(t[`border${n}Width`]="0px"),this.isJointOccurrence(this.target)||(t[`border${e}Width`]="0px"),t},isCurrent:function(){return!1},isSelf:function(){return this.source===this.target},messageTextStyle(){var t;return(t=this.commentObj)==null?void 0:t.messageStyle},messageClassNames(){var t;return(t=this.commentObj)==null?void 0:t.messageClassNames},messageContext(){var t,e,n;return((t=this.asyncMessage)==null?void 0:t.content())||((n=(e=this.context)==null?void 0:e.ret())==null?void 0:n.expr())}},methods:{onClick(){this.onElementClick(M0.from(this.context))},isJointOccurrence(t){let e=this.findOwningContext(t);return e?e instanceof d.MessageContext||e instanceof d.CreationContext:!1},findOwningContext(t){let e=this.context;for(;e;){if(!e.Owner){e=e.parentCtx;continue}if(e.Owner()===t)return e;e=e.parentCtx}return null}},components:{Comment:N5,Message:v5}},AO=["data-signature"],kO={key:1,class:"flex items-center"},ZO=R("svg",{class:"w-3 h-3 flex-shrink-0 fill-current m-1",viewBox:"0 0 512 512"},[R("path",{class:"cls-1",d:"M256 0C114.84 0 0 114.84 0 256s114.84 256 256 256 256-114.84 256-256S397.16 0 256 0Zm0 469.33c-117.63 0-213.33-95.7-213.33-213.33S138.37 42.67 256 42.67 469.33 138.37 469.33 256 373.63 469.33 256 469.33Z"}),R("path",{class:"cls-1",d:"M288 192h-87.16l27.58-27.58a21.33 21.33 0 1 0-30.17-30.17l-64 64a21.33 21.33 0 0 0 0 30.17l64 64a21.33 21.33 0 0 0 30.17-30.17l-27.58-27.58H288a53.33 53.33 0 0 1 0 106.67h-32a21.33 21.33 0 0 0 0 42.66h32a96 96 0 0 0 0-192Z"})],-1),TO={class:"name"};function SO(t,e,n,i,s,r){const o=w2("comment"),l=w2("Message");return I(),B("div",{class:y2(["interaction return relative",{"right-to-left":r.rightToLeft,"bare-source":t.bareSource,"bare-target":t.bareTarget,highlight:r.isCurrent}]),onClick:e[0]||(e[0]=e5((...L)=>r.onClick&&r.onClick(...L),["stop"])),"data-signature":r.signature,style:R2({...r.borderWidth,width:r.width+"px",left:r.left+"px"})},[n.comment?(I(),S2(o,{key:0,commentObj:n.commentObj},null,8,["commentObj"])):g2("",!0),r.isSelf?(I(),B("div",kO,[ZO,R("span",TO,K2(r.signature),1)])):g2("",!0),r.isSelf?g2("",!0):(I(),S2(l,{key:2,classNames:r.messageClassNames,textStyle:r.messageTextStyle,context:r.messageContext,content:r.signature,rtl:r.rightToLeft,type:"return",number:n.number},null,8,["classNames","textStyle","context","content","rtl","number"]))],14,AO)}const bO=Y2(RO,[["render",SO]]),EO=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],IO=["italic","oblique"],FO=["bold","bolder","lighter"],OO=["underline","overline","line-through"],B5=t=>{const e={},n=[];return t.forEach(i=>{switch(!0){case EO.includes(i):e.color=i;break;case IO.includes(i):e.fontStyle=i;break;case FO.includes(i):e.fontWeight=i;break;case OO.includes(i):e.textDecoration=i;break;default:n.push(i)}}),{textStyle:e,classNames:n}},Qz="",NO={name:"divider",props:["context"],computed:{...z3(["participants","centerOf"]),width(){let t=this.participants.Names().pop();return this.centerOf(t)+10},from:function(){return this.context.Origin()},centerOfFrom(){return this.centerOf(this.from)},note:function(){return this.context.divider().Note()},messageStyle(){if(this.note.trim().indexOf("[")===0&&this.note.indexOf("]")!==-1){const t=this.note.indexOf("["),e=this.note.indexOf("]"),[n,i]=[this.note.slice(t+1,e),this.note.slice(e+1)];return{style:B5(n.split(",").map(s=>s.trim())),note:i}}return{style:B5([]),note:this.note}}}},ec=t=>(_4("data-v-0be02001"),t=t(),v4(),t),DO=ec(()=>R("div",{class:"left bg-skin-divider"},null,-1)),PO=ec(()=>R("div",{class:"right bg-skin-divider"},null,-1));function BO(t,e,n,i,s,r){return I(),B("div",{class:"divider",style:R2({width:r.width+"px",transform:"translateX("+(-1*r.centerOfFrom+10)+"px)"})},[DO,R("div",{class:y2(["name",r.messageStyle.style.classNames]),style:R2(r.messageStyle.style.textStyle)},K2(r.messageStyle.note),7),PO],4)}const zO=Y2(NO,[["render",BO],["__scopeId","data-v-0be02001"]]);function UO(t){const e={"<>":new Set,"()":new Set,"[]":new Set},n=/<([^>]*)>|\(([^)]*)\)|\[([^\]]*)\]|([^<>()[\]\s]+)/g;let i,s;for(;i=n.exec(t);){if(i[4]){s!==void 0&&(s=i.index);break}s=i.index+i[0].length,i[1]&&i[1].split(",").forEach(r=>e["<>"].add(r.trim())),i[2]&&i[2].split(",").forEach(r=>e["()"].add(r.trim())),i[3]&&i[3].split(",").forEach(r=>e["[]"].add(r.trim()))}return[Array.from(e["<>"]),Array.from(e["()"]),Array.from(e["[]"]),t.slice(s)]}class WO{constructor(e){i2(this,"text","");i2(this,"classNames",[]);i2(this,"textStyle",{});i2(this,"commentStyle",{});i2(this,"messageStyle",{});i2(this,"commentClassNames",[]);i2(this,"messageClassNames",[]);const n=e.slice(0,-1).split(`
3362
+ `:`<code>${t}</code>`}};k2.setOptions({highlight:function(t,e){if(!e)return F9.highlightAuto(t).value;const n=F9.getLanguage(e)?e:"plaintext";return F9.highlight(n,t).value},breaks:!0}),k2.use({renderer:Mb});const yb={name:"comment",props:["comment","commentObj"],computed:{markedComment(){var e,n;const t=((e=this.commentObj)==null?void 0:e.text)&&k2.parse((n=this.commentObj)==null?void 0:n.text)||this.comment&&k2.parse(this.comment);return dS.sanitize(t)},commentStyle(){var t;return(t=this.commentObj)==null?void 0:t.commentStyle},classNames(){var t;return(t=this.commentObj)==null?void 0:t.commentClassNames}}},Rb={class:"comments text-skin-comment min-w-[100px] flex text-left opacity-50 hover:opacity-100"},Ab=["innerHTML"];function kb(t,e,n,i,s,r){return I(),B("div",Rb,[R("div",{innerHTML:r.markedComment,class:y2(r.classNames),style:R2(r.commentStyle)},null,14,Ab)])}const N5=Y2(yb,[["render",kb],["__scopeId","data-v-05f7b74d"]]),Ez="",Zb={props:["collapsed"],emits:["click"]},Tb={class:"collapsible-header"},Sb=[T8('<g id="SVGRepo_bgCarrier" stroke-width="0" data-v-175097b8></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-175097b8></g><g id="SVGRepo_iconCarrier" data-v-175097b8><line x1="13" y1="2" x2="13" y2="10" data-v-175097b8></line><polyline points="9 7 13 11 17 7" data-v-175097b8></polyline><line x1="13" y1="23" x2="13" y2="15" data-v-175097b8></line><polyline points="9 19 13 15 17 19" data-v-175097b8></polyline></g>',3)],bb=[T8('<g id="SVGRepo_bgCarrier" stroke-width="0" data-v-175097b8></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-175097b8></g><g id="SVGRepo_iconCarrier" data-v-175097b8><line x1="13" y1="1" x2="13" y2="9" data-v-175097b8></line><polyline points="9 5 13 1 17 5" data-v-175097b8></polyline><line x1="13" y1="13" x2="13" y2="13" data-v-175097b8></line><line x1="13" y1="24" x2="13" y2="17" data-v-175097b8></line><polyline points="9 20 13 24 17 20" data-v-175097b8></polyline></g>',3)];function Eb(t,e,n,i,s,r){return I(),B("div",Tb,[(I(),B("svg",{width:"20px",height:"20px",class:y2([{hidden:n.collapsed,expanded:!n.collapsed},"collapse-button cursor-pointer"]),onClick:e[0]||(e[0]=o=>t.$emit("click",o)),viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"miter"},Sb,2)),(I(),B("svg",{width:"20px",height:"20px",class:y2([{hidden:!n.collapsed},"cursor-pointer"]),onClick:e[1]||(e[1]=o=>t.$emit("click",o)),viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"miter"},bb,2))])}const Ib=Y2(Zb,[["render",Eb],["__scopeId","data-v-175097b8"]]),Oz="",Nz="",Fb={name:"occurrence",props:["context","selfCallIndent","participant","rtl","number"],data:function(){return{center:0,collapsed:!1}},computed:{...z3(["centerOf","messageLayerLeft"]),...y9(["code"]),debug(){return!!localStorage.zenumlDebug},computedCenter:function(){try{return this.centerOf(this.participant)}catch(t){return console.error(t),0}},hasAnyStatementsExceptReturn:function(){var i;let t=this.context.braceBlock();if(!t)return!1;let e=((i=t.block())==null?void 0:i.stat())||[],n=e.length;return n>1||n==1&&e[0].ret()==null}},methods:{toggle(){this.collapsed=!this.collapsed,d7.$emit("participant_set_top")}},components:{CollapseButton:Ib},watch:{context(){this.collapsed&&(this.collapsed=!1)}}},ba=t=>(_4("data-v-643ed288"),t=t(),v4(),t),Ob=["data-belongs-to","data-x-offset","data-debug-center-of"],Nb={key:0,class:"absolute w-full left-0 bg-amber-700 h-3 -top-1 flex justify-center items-center"},Db=[ba(()=>R("div",{class:"w-px h-full bg-black"},null,-1))],Pb={key:1,class:"absolute w-full left-0 bg-amber-700 h-3 -bottom-1 flex justify-center items-center"},Bb=[ba(()=>R("div",{class:"w-px h-full bg-black"},null,-1))];function zb(t,e,n,i,s,r){const o=w2("collapse-button"),l=w2("block");return I(),B("div",{class:y2(["occurrence shadow-occurrence border-skin-occurrence bg-skin-occurrence rounded-sm border-2 relative left-full",{"right-to-left":n.rtl}]),"data-el-type":"occurrence","data-belongs-to":n.participant,"data-x-offset":t.center,"data-debug-center-of":r.computedCenter},[r.debug?(I(),B("div",Nb,Db)):g2("",!0),r.debug?(I(),B("div",Pb,Bb)):g2("",!0),r.hasAnyStatementsExceptReturn?(I(),S2(o,{key:2,collapsed:t.collapsed,onClick:this.toggle},null,8,["collapsed","onClick"])):g2("",!0),this.context.braceBlock()?(I(),S2(l,{key:3,context:n.context.braceBlock().block(),selfCallIndent:n.selfCallIndent,number:n.number,collapsed:t.collapsed,inheritFromOccurrence:!0},null,8,["context","selfCallIndent","number","collapsed"])):g2("",!0)],10,Ob)}const Ea=Y2(Fb,[["render",zb],["__scopeId","data-v-643ed288"]]);class M0{constructor(e,n,i,s){i2(this,"start");i2(this,"stop");this.start={line:e,col:n},this.stop={line:i,col:s}}static from(e){const n=e.start,i=e.stop;return new M0(n.line,n.column,i.line,i.column+i.text.length)}}const Ia=E0.child({name:"Creation"}),Ub={name:"creation",props:["context","comment","commentObj","selfCallIndent","number"],computed:{...z3(["cursor","onElementClick","distance2"]),...y9(["numbering"]),from(){return this.context.Origin()},creation(){return this.context.creation()},interactionWidth(){let t=this.selfCallIndent||0;return Math.abs(this.distance2(this.from,this.to)-t)-1},rightToLeft(){return this.distance2(this.from,this.to)<0},signature(){return this.creation.SignatureText(!1)},assignee(){function t(s){return s&&s.getFormattedText()||""}let e=this.creation.creationBody().assignment();if(!e)return"";let n=t(e.assignee());const i=t(e.type());return n+(i?":"+i:"")},to(){return this.creation.Owner()},isCurrent(){return this.creation.isCurrent(this.cursor)},isInitedFromOccurrence:function(){return this.creation.isInitedFromOccurrence(this.from)},messageTextStyle(){var t;return(t=this.commentObj)==null?void 0:t.messageStyle},messageClassNames(){var t;return(t=this.commentObj)==null?void 0:t.messageClassNames}},mounted(){this.layoutMessageContainer(),Ia.log(`mounted for ${this.to}`)},updated(){this.layoutMessageContainer(),Ia.debug(`mounted for ${this.to}`)},methods:{layoutMessageContainer(){(()=>{if(!this.$refs.participantPlaceHolder||!this.$refs.messageContainer)return;const e=this.$refs.participantPlaceHolder.offsetWidth/2;this.$refs.messageContainer.style.width=`calc(100% + ${e+7}px`,this.rightToLeft&&(this.$refs.messageContainer.style.transform=`translateX( ${-(e+7)}px`)})()},onClick(){this.onElementClick(M0.from(this.context))}},components:{Participant:ql,Comment:N5,Occurrence:Ea,Message:v5}},Wb=["data-signature"],Hb=["data-to"],$b={ref:"participantPlaceHolder",class:"invisible right-0 flex flex-col justify-center flex-shrink-0"};function Vb(t,e,n,i,s,r){var c;const o=w2("comment"),l=w2("message"),L=w2("participant"),a=w2("occurrence");return I(),B("div",{class:y2(["interaction creation sync text-center transform",{"right-to-left":r.rightToLeft,"-translate-x-full":r.rightToLeft,highlight:r.isCurrent,"inited-from-occurrence":r.isInitedFromOccurrence}]),onClick:e[0]||(e[0]=e5((...C)=>r.onClick&&r.onClick(...C),["stop"])),"data-signature":r.signature,style:R2({width:r.interactionWidth+"px"})},[n.comment?(I(),S2(o,{key:0,commentObj:n.commentObj},null,8,["commentObj"])):g2("",!0),R("div",{ref:"messageContainer","data-type":"creation",class:y2(["message-container pointer-events-none flex items-center h-10 relative",{"flex-row-reverse":r.rightToLeft}]),"data-to":r.to},[G(l,{ref:"messageEl",class:"invocation w-full transform -translate-y-1/2 pointer-events-auto",context:r.creation,content:r.signature,rtl:r.rightToLeft,type:"creation",number:n.number,classNames:r.messageClassNames,textStyle:r.messageTextStyle},null,8,["context","content","rtl","number","classNames","textStyle"]),R("div",$b,[G(L,{entity:{name:r.to}},null,8,["entity"])],512)],10,Hb),G(a,{context:r.creation,class:"pointer-events-auto",participant:r.to,number:n.number},null,8,["context","participant","number"]),r.assignee?(I(),S2(l,{key:1,class:"return transform -translate-y-full pointer-events-auto",context:r.creation.creationBody().assignment(),content:r.assignee,rtl:!r.rightToLeft,type:"return",number:`${n.number}.${(((c=r.creation.braceBlock())==null?void 0:c.block().stat().length)||0)+1}`,classNames:r.messageClassNames,textStyle:r.messageTextStyle},null,8,["context","content","rtl","number","classNames","textStyle"])):g2("",!0)],14,Wb)}const Gb=Y2(Ub,[["render",Vb]]),jb={class:"name text-left group px-px hover:text-skin-message-hover hover:bg-skin-message-hover relative min-h-[1em] w-full"},qb={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500"},Kb={class:"label"},Yb={key:0},Xb={class:"assignee px-1"},Qb=R("span",null,"=",-1),Jb=R("svg",{class:"arrow text-skin-message-arrow",width:"30",height:"24"},[R("polyline",{class:"line stroke-current fill-none stroke-2",points:"0,2 28,2 28,15 14,15"}),R("polyline",{class:"head stroke-current fill-current stroke-2",points:"18,9 8,15 18,21"})],-1),eE=X2({__name:"SelfInvocation",props:{context:null,number:null,textStyle:null,classNames:null},setup(t){const e=t,{context:n}=L9(e),i=S1(),s=F(()=>i.state.numbering),r=C2(),o=F(()=>{const c=n==null?void 0:n.value.messageBody().func();return c?[c.start.start,c.stop.stop]:[-1,-1]}),l=F(()=>{let c=n==null?void 0:n.value.Assignment();return c?c.getText():""}),L=F(()=>n==null?void 0:n.value.SignatureText()),a=()=>{i.getters.onMessageClick(n,r.value)};return(c,C)=>(I(),B("div",{class:"self-invocation message self flex items-start flex-col",style:{"border-width":"0"},onClick:a,ref_key:"messageRef",ref:r},[R("label",jb,[N(s)?(I(),B("div",qb,K2(t.number),1)):g2("",!0),R("div",Kb,[N(l)?(I(),B("span",Yb,[R("span",Xb,K2(N(l)),1),Qb])):g2("",!0),G(m7,{style:R2(t.textStyle),class:y2(t.classNames),labelText:N(L),labelPosition:N(o),isSelf:!0},null,8,["style","class","labelText","labelPosition"])])]),Jb],512))}}),Bz="",tE={name:"interaction",props:["context","selfCallIndent","commentObj","number"],computed:{...z3(["participants","distance2","cursor","onElementClick"]),hasComment(){var t;return((t=this.commentObj)==null?void 0:t.text)!==""},messageTextStyle(){var t;return(t=this.commentObj)==null?void 0:t.messageStyle},messageClassNames(){var t;return(t=this.commentObj)==null?void 0:t.messageClassNames},message:function(){var t;return(t=this.context)==null?void 0:t.message()},providedFrom:function(){var t,e;return(e=(t=this.context)==null?void 0:t.message())==null?void 0:e.ProvidedFrom()},from:function(){return this.providedFrom||this.origin},outOfBand:function(){return!!this.providedFrom&&this.providedFrom!==this.origin},assignee:function(){var e;let t=(e=this.message)==null?void 0:e.Assignment();return t?t.getText():""},signature:function(){var t;return(t=this.message)==null?void 0:t.SignatureText()},translateX:function(){if(!this.rightToLeft&&!this.outOfBand)return 0;const e=this.rightToLeft?this.to:this.providedFrom,n=this.distance2(this.origin,e),i=this.selfCallIndent||0;return n+0-i},rightToLeft:function(){return this.distance2(this.from,this.to)<0},isCurrent:function(){var t;return(t=this.message)==null?void 0:t.isCurrent(this.cursor)},showStarter(){return this.participants.Starter().name!=="_STARTER_"},isRootBlock(){var t,e;return((e=(t=this.context)==null?void 0:t.parentCtx)==null?void 0:e.parentCtx)instanceof bp},origin:function(){var t;return(t=this.context)==null?void 0:t.Origin()},passOnOffset:function(){return this.isSelf&&!this.isRootBlock?(this.selfCallIndent||0)+7:0},interactionWidth:function(){if(this.context&&this.isSelf)return 0;let t=this.outOfBand?0:this.selfCallIndent||0;return Math.abs(this.distance2(this.from,this.to)-t)-1},to:function(){var t,e;return(e=(t=this.context)==null?void 0:t.message())==null?void 0:e.Owner()},isSelf:function(){return!this.to||this.to===this.from},isInitedFromOccurrence:function(){var t;return(t=this.message)==null?void 0:t.isInitedFromOccurrence(this.context)}},methods:{onClick(){this.onElementClick(M0.from(this.context))}},components:{Message:v5,SelfInvocation:eE,Comment:N5,Occurrence:Ea}},nE=["data-to","data-signature"];function iE(t,e,n,i,s,r){var c;const o=w2("comment"),l=w2("self-invocation"),L=w2("message"),a=w2("occurrence");return I(),B("div",{class:y2(["interaction sync inline-block",{highlight:r.isCurrent,self:r.isSelf,"from-no-occurrence":r.providedFrom&&r.providedFrom!==r.origin,"inited-from-occurrence":r.isInitedFromOccurrence,"right-to-left":r.rightToLeft}]),onClick:e[0]||(e[0]=e5((...C)=>r.onClick&&r.onClick(...C),["stop"])),"data-to":r.to,"data-type":"interaction","data-signature":r.signature,style:R2({width:r.isSelf?void 0:r.interactionWidth+"px",transform:"translateX("+r.translateX+"px)"})},[r.showStarter&&r.isRootBlock||r.outOfBand?(I(),B("div",{key:0,class:y2(["occurrence source border-2",{"right-to-left":r.rightToLeft}])},null,2)):g2("",!0),r.hasComment?(I(),S2(o,{key:1,commentObj:n.commentObj},null,8,["commentObj"])):g2("",!0),r.isSelf?(I(),S2(l,{key:2,classNames:r.messageClassNames,textStyle:r.messageTextStyle,context:r.message,number:n.number},null,8,["classNames","textStyle","context","number"])):(I(),S2(L,{key:3,class:"text-center",classNames:r.messageClassNames,textStyle:r.messageTextStyle,context:r.message,content:r.signature,rtl:r.rightToLeft,type:"sync",number:n.number},null,8,["classNames","textStyle","context","content","rtl","number"])),G(a,{context:r.message,participant:r.to,selfCallIndent:r.passOnOffset,rtl:r.rightToLeft,number:n.number},null,8,["context","participant","selfCallIndent","rtl","number"]),r.assignee&&!r.isSelf?(I(),S2(L,{key:4,class:"return transform -translate-y-full",context:r.message,content:r.assignee,rtl:!r.rightToLeft,type:"return",number:`${n.number}.${(((c=r.message.braceBlock())==null?void 0:c.block().stat().length)||0)+1}`,classNames:r.messageClassNames,textStyle:r.messageTextStyle},null,8,["context","content","rtl","number","classNames","textStyle"])):g2("",!0)],14,nE)}const sE=Y2(tE,[["render",iE],["__scopeId","data-v-24f8e1a5"]]),rE=t=>(_4("data-v-d34f9057"),t=t(),v4(),t),oE={class:"message self flex items-start flex-col",style:{"border-width":"0"}},lE={class:"name group px-px hover:text-skin-message-hover hover:bg-skin-message-hover min-h-[1em]"},LE={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500"},aE=rE(()=>R("svg",{class:"arrow text-skin-message-arrow",width:"34",height:"34"},[R("polyline",{class:"stroke-current stroke-2 fill-none",points:"0,2 28,2 28,25 1,25"}),R("polyline",{class:"head stroke-current stroke-2 fill-none",points:"11,19 1,25 11,31"})],-1)),cE=X2({__name:"SelfInvocation-async",props:{context:null,number:null,textStyle:null,classNames:null},setup(t){const e=t,{context:n}=L9(e),i=S1(),s=F(()=>n==null?void 0:n.value.content()),r=F(()=>i.state.numbering),o=F(()=>s.value?[s.value.start.start,s.value.stop.stop]:[-1,-1]),l=F(()=>{var L;return(L=s.value)==null?void 0:L.getFormattedText()});return(L,a)=>(I(),B("div",oE,[R("label",lE,[N(r)?(I(),B("div",LE,K2(t.number),1)):g2("",!0),G(m7,{style:R2(t.textStyle),class:y2(t.classNames),labelText:N(l),labelPosition:N(o),isAsync:!0,isSelf:!0},null,8,["style","class","labelText","labelPosition"])]),aE]))}}),zz="",CE=Y2(cE,[["__scopeId","data-v-d34f9057"]]),Uz="";function Nn(t){return t==null}const uE={name:"interaction-async",props:["context","comment","commentObj","selfCallIndent","number"],computed:{...z3(["distance","cursor","onElementClick"]),from:function(){return this.context.Origin()},asyncMessage:function(){var t;return(t=this.context)==null?void 0:t.asyncMessage()},interactionWidth:function(){var t;return this.isSelf?10*(((t=this.signature)==null?void 0:t.length)||0)+100:Math.abs(this.distance(this.target,this.source))},translateX:function(){return this.rightToLeft?this.distance(this.target,this.from):this.distance(this.source,this.from)},rightToLeft:function(){return this.distance(this.target,this.source)<0},signature:function(){var t,e;return(e=(t=this.asyncMessage)==null?void 0:t.content())==null?void 0:e.getFormattedText()},source:function(){var t,e;return((e=(t=this.asyncMessage)==null?void 0:t.from())==null?void 0:e.getFormattedText())||this.from},target:function(){var t,e;return(e=(t=this.asyncMessage)==null?void 0:t.to())==null?void 0:e.getFormattedText()},borderWidth:function(){const t={borderLeftWidth:"7px",borderRightWidth:"7px"},e=this.rightToLeft?"Left":"Right",n=this.rightToLeft?"Right":"Left";return this.isJointOccurrence(this.source)||(t[`border${n}Width`]="0px"),this.isJointOccurrence(this.target)||(t[`border${e}Width`]="0px"),t},isCurrent:function(){const t=this.asyncMessage.start.start,e=this.asyncMessage.stop.stop+1;return Nn(this.cursor)||Nn(t)||Nn(e)?!1:this.cursor>=t&&this.cursor<=e},isSelf:function(){return this.source===this.target},origin:function(){var t;return(t=this.context)==null?void 0:t.Origin()},messageTextStyle(){var t;return(t=this.commentObj)==null?void 0:t.messageStyle},messageClassNames(){var t;return(t=this.commentObj)==null?void 0:t.messageClassNames}},methods:{onClick(){this.onElementClick(M0.from(this.context))},isJointOccurrence(t){let e=this.findOwningContext(t);return e?e instanceof d.MessageContext||e instanceof d.CreationContext:!1},findOwningContext(t){let e=this.context;for(;e;){if(!e.Owner){e=e.parentCtx;continue}if(e.Owner()===t)return e;e=e.parentCtx}return null}},components:{Comment:N5,SelfInvocationAsync:CE,Message:v5}},hE=["data-signature"];function dE(t,e,n,i,s,r){const o=w2("comment"),l=w2("self-invocation-async"),L=w2("message");return I(),B("div",{class:y2(["interaction async",{"left-to-right":!r.rightToLeft,"right-to-left":r.rightToLeft,highlight:r.isCurrent,"self-invocation":r.isSelf}]),onClick:e[0]||(e[0]=e5((...a)=>r.onClick&&r.onClick(...a),["stop"])),"data-signature":r.signature,style:R2({...r.borderWidth,width:r.interactionWidth+"px",transform:"translateX("+r.translateX+"px)"})},[n.comment?(I(),S2(o,{key:0,commentObj:n.commentObj},null,8,["commentObj"])):g2("",!0),r.isSelf?(I(),S2(l,{key:1,classNames:r.messageClassNames,textStyle:r.messageTextStyle,context:r.asyncMessage,number:n.number},null,8,["classNames","textStyle","context","number"])):(I(),S2(L,{key:2,classNames:r.messageClassNames,textStyle:r.messageTextStyle,context:r.asyncMessage,content:r.signature,rtl:r.rightToLeft,type:"async",number:n.number},null,8,["classNames","textStyle","context","content","rtl","number"]))],14,hE)}const fE=Y2(uE,[["render",dE],["__scopeId","data-v-38f08c01"]]),Wz="",gE={components:{Icon:q4},props:["label","collapsed"],emits:["click"]},pE={class:"collapsible-header"},mE={class:"mb-0"};function wE(t,e,n,i,s,r){const o=w2("Icon");return I(),B("div",pE,[R("label",mE,K2(n.label),1),n.collapsed?(I(),S2(o,{key:1,name:"collapse-unexpanded","icon-class":"w-4 h-4 cursor-pointer",onIconClick:e[1]||(e[1]=l=>t.$emit("click",l))})):(I(),S2(o,{key:0,name:"collapse-expanded","icon-class":`w-4 h-4 collapse-button cursor-pointer ${n.collapsed?"":"expanded"}`,onIconClick:e[0]||(e[0]=l=>t.$emit("click",l))},null,8,["icon-class"]))])}const xE=Y2(gE,[["render",wE],["__scopeId","data-v-048a5186"]]),e9={computed:{...z3(["coordinates"]),offsetX:function(){const t=this.coordinates.orderedParticipantNames(),n=new Gt(t).getFrame(this.context),i=qt(n),s=[this.context.Origin(),...w0(this.context).Names()],r=t.find(l=>s.includes(l));let o=this.coordinates.half(r);return console.debug(`left participant: ${r} ${o}`),this.coordinates.distance(r,this.from)+i.left+o},fragmentStyle:function(){return{transform:"translateX("+(this.offsetX+1)*-1+"px)",width:Jl(this.context,this.coordinates)+"px"}}},data:function(){return{collapsed:!1}},methods:{toggle(){this.collapsed=!this.collapsed,d7.emit("participant_set_top")}},components:{CollapseButton:xE},watch:{context(){this.collapsed&&(this.collapsed=!1)}}},_E=t=>{const e={loop:"FragmentLoop",alt:"FragmentAlt",par:"FragmentPar",opt:"FragmentOpt",section:"FragmentSection",critical:"FragmentCritical",tcf:"FragmentTryCatchFinally",creation:"Creation",message:"Interaction",asyncMessage:"InteractionAsync",divider:"Divider",ret:"Return"},n=Object.keys(e).find(i=>t[i]()!==null)||"";return e[n]},D5=t=>t&&t.stat()?t.stat().filter(e=>_E(e)!=="Divider").length:0,Fa=(t,e)=>{if(t){const n=t.split(".");return n[n.length-1]=Number(n[n.length-1])+e,n.join(".")}else return String(e)},vE=["contenteditable"],Oa=X2({__name:"ConditionLabel",props:{condition:null},setup(t){const e=t,n=/\b(\w+)\s*==\s*(\w+)\b/g,{condition:i}=L9(e),s=S1(),r=F(()=>s.state.mode),o=F(()=>s.getters.code),l=F(()=>s.getters.onContentChange||(()=>{})),L=F(()=>{var _,p;return(p=(_=i==null?void 0:i.value)==null?void 0:_.getFormattedText())!=null?p:""});function a(_){s.dispatch("updateCode",{code:_}),l.value(_)}function c(_){var Z,b,k,S,V;_.preventDefault(),_.stopPropagation();const p=_.target;if(!(p instanceof HTMLElement))return;let g=(Z=p.innerText.trim())!=null?Z:"";if(g===""){p.innerText=L.value;return}x5.test(g)&&!n.test(g)&&(g=g.replace(/"/g,""),g=`"${g}"`);const[m,v]=[(k=(b=i.value)==null?void 0:b.start)==null?void 0:k.start,(V=(S=i.value)==null?void 0:S.stop)==null?void 0:V.stop];if(m===-1||v===-1){console.warn("labelPosition is not set");return}a(o.value.slice(0,m)+g+o.value.slice(v+1))}const{editing:C,handleDblClick:u,handleBlur:h,handleKeydown:f,handleKeyup:w}=p7(c);return(_,p)=>(I(),B("label",{title:"Double click to edit",class:y2(["bg-skin-frame/[0.66] condition px-1 cursor-text hover:text-skin-message-hover hover:bg-skin-message-hover",{"py-1 px-2 ml-1 cursor-text":N(C)}]),contenteditable:N(C)&&N(r)===N(e3).Dynamic,onDblclick:p[0]||(p[0]=(...g)=>N(u)&&N(u)(...g)),onBlur:p[1]||(p[1]=(...g)=>N(h)&&N(h)(...g)),onKeyup:p[2]||(p[2]=(...g)=>N(w)&&N(w)(...g)),onKeydown:p[3]||(p[3]=(...g)=>N(f)&&N(f)(...g))},K2(N(C)?N(L):`[${N(L)}]`),43,vE))}}),Hz="",ME={name:"fragment-alt",props:["context","comment","selfCallIndent","commentObj","number"],mixins:[e9],components:{ConditionLabel:Oa},setup(t){const e=S1(),n=F(()=>e.state.numbering),i=F(()=>t.context.Origin()),s=F(()=>t.context.alt()),r=F(()=>{var u;return(u=s.value)==null?void 0:u.ifBlock()}),o=F(()=>{var u;return(u=s.value)==null?void 0:u.elseIfBlock()}),l=F(()=>{var u,h,f;return(f=(h=(u=s.value)==null?void 0:u.elseBlock())==null?void 0:h.braceBlock())==null?void 0:f.block()}),L=F(()=>{var u,h,f;return(f=(h=(u=s.value)==null?void 0:u.ifBlock())==null?void 0:h.braceBlock())==null?void 0:f.block()}),a=F(()=>{var h;const u=[D5(L.value)];return(h=s.value)!=null&&h.elseIfBlock()&&s.value.elseIfBlock().forEach(f=>{u.push(u[u.length-1]+D5(C(f)))}),u});function c(u){var h;return(h=u==null?void 0:u.parExpr())==null?void 0:h.condition()}function C(u){var h;return(h=u==null?void 0:u.braceBlock())==null?void 0:h.block()}return{numbering:n,from:i,alt:s,blockInIfBlock:L,ifBlock:r,elseIfBlocks:o,elseBlock:l,blockLengthAcc:a,conditionFromIfElseBlock:c,blockInElseIfBlock:C,increaseNumber:Fa,blockLength:D5}}},Na=t=>(_4("data-v-61565253"),t=t(),v4(),t),yE={class:"segment"},RE={class:"header bg-skin-fragment-header text-skin-fragment-header leading-4 rounded-t relative"},AE={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 font-thin leading-6"},kE={class:"name font-semibold p-1 border-b"},ZE={class:"p-0"},TE={class:"segment"},SE={class:"text-skin-fragment flex"},bE=Na(()=>R("label",{class:"else-if hidden"},"else if",-1)),EE={key:0,class:"segment mt-2 border-t border-solid"},IE=Na(()=>R("div",{class:"text-skin-fragment"},[R("label",{class:"p-1"},"[else]")],-1));function FE(t,e,n,i,s,r){const o=w2("comment"),l=w2("collapse-button"),L=w2("ConditionLabel"),a=w2("block");return I(),B("div",{class:"fragment alt border-skin-fragment rounded",style:R2(t.fragmentStyle)},[R("div",yE,[n.commentObj.text?(I(),S2(o,{key:0,comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):g2("",!0),R("div",RE,[i.numbering?(I(),B("div",AE,K2(n.number),1)):g2("",!0),R("div",kE,[R("label",ZE,[G(l,{label:"Alt",collapsed:t.collapsed,onClick:this.toggle,style:R2(n.commentObj.messageStyle),class:y2(n.commentObj.messageClassNames)},null,8,["collapsed","onClick","style","class"])])])])]),R("div",{class:y2({hidden:t.collapsed})},[R("div",TE,[R("div",SE,[G(L,{condition:i.conditionFromIfElseBlock(i.ifBlock)},null,8,["condition"])]),i.blockInIfBlock?(I(),S2(a,{key:0,style:R2({paddingLeft:`${t.offsetX}px`}),context:i.blockInIfBlock,selfCallIndent:n.selfCallIndent,number:`${n.number}.1`,incremental:""},null,8,["style","context","selfCallIndent","number"])):g2("",!0)]),(I(!0),B(z2,null,P3(i.elseIfBlocks,(c,C)=>(I(),B("div",{key:C+500,class:"segment mt-2 border-t border-solid"},[(I(),B("div",{class:"text-skin-fragment",key:C+1e3},[bE,G(L,{condition:i.conditionFromIfElseBlock(c)},null,8,["condition"])])),(I(),S2(a,{style:R2({paddingLeft:`${t.offsetX}px`}),context:i.blockInElseIfBlock(c),selfCallIndent:n.selfCallIndent,key:C+2e3,number:`${n.number}.${i.blockLengthAcc[C]+1}`,incremental:""},null,8,["style","context","selfCallIndent","number"]))]))),128)),i.elseBlock?(I(),B("div",EE,[IE,G(a,{style:R2({paddingLeft:`${t.offsetX}px`}),context:i.elseBlock,selfCallIndent:n.selfCallIndent,number:`${n.number}.${i.blockLengthAcc[i.blockLengthAcc.length-1]+1}`,incremental:""},null,8,["style","context","selfCallIndent","number"])])):g2("",!0)],2)],4)}const OE=Y2(ME,[["render",FE],["__scopeId","data-v-61565253"]]),$z="",Vz="",NE={name:"fragment-par",props:["context","comment","commentObj","selfCallIndent","number"],mixins:[e9],computed:{...y9(["numbering"]),from:function(){return this.context.Origin()},par:function(){return this.context.par()}}},DE={class:"header bg-skin-fragment-header text-skin-fragment-header leading-4 rounded-t relative"},PE={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 font-thin leading-6"},BE={class:"name font-semibold p-1 border-b"};function zE(t,e,n,i,s,r){const o=w2("comment"),l=w2("collapse-button"),L=w2("block");return I(),B("div",{class:"fragment par border-skin-fragment rounded",style:R2(t.fragmentStyle)},[n.commentObj.text?(I(),S2(o,{key:0,comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):g2("",!0),R("div",DE,[t.numbering?(I(),B("div",PE,K2(n.number),1)):g2("",!0),R("div",BE,[G(l,{label:"Par",collapsed:t.collapsed,onClick:this.toggle,style:R2(n.commentObj.messageStyle),class:y2(n.commentObj.messageClassNames)},null,8,["collapsed","onClick","style","class"])])]),G(L,{class:y2({hidden:t.collapsed}),style:R2({paddingLeft:`${t.offsetX}px`}),context:r.par.braceBlock().block(),selfCallIndent:n.selfCallIndent,number:n.number},null,8,["class","style","context","selfCallIndent","number"])],4)}const UE=Y2(NE,[["render",zE],["__scopeId","data-v-908744dd"]]),Gz="",WE={name:"fragment-loop",props:["context","comment","commentObj","selfCallIndent","number"],mixins:[e9],components:{ConditionLabel:Oa},setup(t){const e=S1(),n=F(()=>e.state.numbering),i=F(()=>t.context.Origin()),s=F(()=>t.context.loop()),r=F(()=>{var o,l;return(l=(o=s.value)==null?void 0:o.braceBlock())==null?void 0:l.block()});return{numbering:n,from:i,loop:s,blockInLoop:r,getConditionFromBlock:()=>{var o,l;return(l=(o=s.value)==null?void 0:o.parExpr())==null?void 0:l.condition()}}}},HE={class:"header text-skin-fragment-header bg-skin-fragment-header leading-4 relative"},$E={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 font-thin leading-6"},VE={class:"name font-semibold p-1 border-b"},GE={class:"segment"},jE={class:"text-skin-fragment"};function qE(t,e,n,i,s,r){const o=w2("comment"),l=w2("collapse-button"),L=w2("ConditionLabel"),a=w2("block");return I(),B("div",{class:"fragment loop border-skin-fragment rounded",style:R2(t.fragmentStyle)},[n.commentObj.text?(I(),S2(o,{key:0,comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):g2("",!0),R("div",HE,[i.numbering?(I(),B("div",$E,K2(n.number),1)):g2("",!0),R("div",VE,[G(l,{label:"Loop",collapsed:t.collapsed,onClick:this.toggle,style:R2(n.commentObj.messageStyle),class:y2(n.commentObj.messageClassNames)},null,8,["collapsed","onClick","style","class"])])]),R("div",{class:y2({hidden:t.collapsed})},[R("div",GE,[R("div",jE,[G(L,{condition:i.getConditionFromBlock(i.blockInLoop)},null,8,["condition"])]),G(a,{style:R2({paddingLeft:`${t.offsetX}px`}),context:i.blockInLoop,selfCallIndent:n.selfCallIndent,number:n.number},null,8,["style","context","selfCallIndent","number"])])],2)],4)}const KE=Y2(WE,[["render",qE],["__scopeId","data-v-82d18530"]]),jz="",YE={name:"fragment-opt",props:["context","comment","commentObj","selfCallIndent","number"],mixins:[e9],computed:{...y9(["numbering"]),from:function(){return this.context.Origin()},opt:function(){return this.context.opt()}}},XE={class:"header bg-skin-fragment-header text-skin-fragment-header leading-4 relative"},QE={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 font-thin leading-6"},JE={class:"name font-semibold p-1 border-b"};function eI(t,e,n,i,s,r){const o=w2("comment"),l=w2("collapse-button"),L=w2("block");return I(),B("div",{class:"fragment opt border-skin-fragment rounded",style:R2(t.fragmentStyle)},[n.commentObj.text?(I(),S2(o,{key:0,comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):g2("",!0),R("div",XE,[t.numbering?(I(),B("div",QE,K2(n.number),1)):g2("",!0),R("div",JE,[G(l,{label:"Opt",collapsed:t.collapsed,onClick:this.toggle,style:R2(n.commentObj.textStyle),class:y2(n.commentObj.classNames)},null,8,["collapsed","onClick","style","class"])])]),G(L,{class:y2({hidden:t.collapsed}),style:R2({paddingLeft:`${t.offsetX}px`}),context:r.opt.braceBlock().block(),selfCallIndent:n.selfCallIndent,number:n.number},null,8,["class","style","context","selfCallIndent","number"])],4)}const tI=Y2(YE,[["render",eI],["__scopeId","data-v-81f38061"]]);var nI=typeof O1=="object"&&O1&&O1.Object===Object&&O1,iI=nI,sI=iI,rI=typeof self=="object"&&self&&self.Object===Object&&self,oI=sI||rI||Function("return this")(),lI=oI,LI=lI,aI=LI.Symbol,Dn=aI;function cI(t,e){for(var n=-1,i=t==null?0:t.length,s=Array(i);++n<i;)s[n]=e(t[n],n,t);return s}var CI=cI,uI=Array.isArray,hI=uI,Da=Dn,Pa=Object.prototype,dI=Pa.hasOwnProperty,fI=Pa.toString,P5=Da?Da.toStringTag:void 0;function gI(t){var e=dI.call(t,P5),n=t[P5];try{t[P5]=void 0;var i=!0}catch{}var s=fI.call(t);return i&&(e?t[P5]=n:delete t[P5]),s}var pI=gI,mI=Object.prototype,wI=mI.toString;function xI(t){return wI.call(t)}var _I=xI,Ba=Dn,vI=pI,MI=_I,yI="[object Null]",RI="[object Undefined]",za=Ba?Ba.toStringTag:void 0;function AI(t){return t==null?t===void 0?RI:yI:za&&za in Object(t)?vI(t):MI(t)}var kI=AI;function ZI(t){return t!=null&&typeof t=="object"}var TI=ZI,SI=kI,bI=TI,EI="[object Symbol]";function II(t){return typeof t=="symbol"||bI(t)&&SI(t)==EI}var FI=II,Ua=Dn,OI=CI,NI=hI,DI=FI,PI=1/0,Wa=Ua?Ua.prototype:void 0,Ha=Wa?Wa.toString:void 0;function $a(t){if(typeof t=="string")return t;if(NI(t))return OI(t,$a)+"";if(DI(t))return Ha?Ha.call(t):"";var e=t+"";return e=="0"&&1/t==-PI?"-0":e}var BI=$a,zI=BI;function UI(t){return t==null?"":zI(t)}var Va=UI;function WI(t,e,n){var i=-1,s=t.length;e<0&&(e=-e>s?0:s+e),n=n>s?s:n,n<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++i<s;)r[i]=t[i+e];return r}var HI=WI,$I=HI;function VI(t,e,n){var i=t.length;return n=n===void 0?i:n,!e&&n>=i?t:$I(t,e,n)}var GI=VI,jI="\\ud800-\\udfff",qI="\\u0300-\\u036f",KI="\\ufe20-\\ufe2f",YI="\\u20d0-\\u20ff",XI=qI+KI+YI,QI="\\ufe0e\\ufe0f",JI="\\u200d",eF=RegExp("["+JI+jI+XI+QI+"]");function tF(t){return eF.test(t)}var Ga=tF;function nF(t){return t.split("")}var iF=nF,ja="\\ud800-\\udfff",sF="\\u0300-\\u036f",rF="\\ufe20-\\ufe2f",oF="\\u20d0-\\u20ff",lF=sF+rF+oF,LF="\\ufe0e\\ufe0f",aF="["+ja+"]",Pn="["+lF+"]",Bn="\\ud83c[\\udffb-\\udfff]",cF="(?:"+Pn+"|"+Bn+")",qa="[^"+ja+"]",Ka="(?:\\ud83c[\\udde6-\\uddff]){2}",Ya="[\\ud800-\\udbff][\\udc00-\\udfff]",CF="\\u200d",Xa=cF+"?",Qa="["+LF+"]?",uF="(?:"+CF+"(?:"+[qa,Ka,Ya].join("|")+")"+Qa+Xa+")*",hF=Qa+Xa+uF,dF="(?:"+[qa+Pn+"?",Pn,Ka,Ya,aF].join("|")+")",fF=RegExp(Bn+"(?="+Bn+")|"+dF+hF,"g");function gF(t){return t.match(fF)||[]}var pF=gF,mF=iF,wF=Ga,xF=pF;function _F(t){return wF(t)?xF(t):mF(t)}var vF=_F,MF=GI,yF=Ga,RF=vF,AF=Va;function kF(t){return function(e){e=AF(e);var n=yF(e)?RF(e):void 0,i=n?n[0]:e.charAt(0),s=n?MF(n,1).join(""):e.slice(1);return i[t]()+s}}var ZF=kF,TF=ZF,SF=TF("toUpperCase"),bF=SF,EF=Va,IF=bF;function FF(t){return IF(EF(t).toLowerCase())}var OF=FF;const qz="",NF={name:"fragment-section",props:["context","comment","selfCallIndent","commentObj","number"],mixins:[e9],setup(t){const e=S1(),n=F(()=>e.state.numbering),i=F(()=>t.context.Origin()),s=F(()=>t.context.section()),r=F(()=>{var a;return(a=s.value)==null?void 0:a.braceBlock()}),o=F(()=>{var a,c;return(c=(a=s.value)==null?void 0:a.atom())==null?void 0:c.getFormattedText()}),l=F(()=>{var a;return(a=r.value)==null?void 0:a.block()}),L=F(()=>{var a;return(a=o.value)!=null?a:OF(s.value.SECTION())});return{numbering:n,from:i,label:L,braceBlock:r,blockInSection:l}}},DF=t=>(_4("data-v-4fa4a08e"),t=t(),v4(),t),PF={class:"segment"},BF={class:"header bg-skin-fragment-header text-skin-fragment-header leading-4 rounded-t relative"},zF={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 font-thin leading-6"},UF={class:"name font-semibold p-1 border-b"},WF={class:"p-0"},HF={class:"segment"},$F=DF(()=>R("div",{class:"text-skin-fragment flex"},null,-1));function VF(t,e,n,i,s,r){const o=w2("comment"),l=w2("collapse-button"),L=w2("block");return I(),B("div",{class:"fragment section border-skin-fragment rounded",style:R2(t.fragmentStyle)},[R("div",PF,[n.commentObj.text?(I(),S2(o,{key:0,comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):g2("",!0),R("div",BF,[i.numbering?(I(),B("div",zF,K2(n.number),1)):g2("",!0),R("div",UF,[R("label",WF,[G(l,{label:i.label,collapsed:t.collapsed,onClick:this.toggle,style:R2(n.commentObj.messageStyle),class:y2(n.commentObj.messageClassNames)},null,8,["label","collapsed","onClick","style","class"])])])])]),R("div",{class:y2({hidden:t.collapsed})},[R("div",HF,[$F,i.blockInSection?(I(),S2(L,{key:0,style:R2({paddingLeft:`${t.offsetX}px`}),context:i.blockInSection,selfCallIndent:n.selfCallIndent,number:n.number},null,8,["style","context","selfCallIndent","number"])):g2("",!0)])],2)],4)}const GF=Y2(NF,[["render",VF],["__scopeId","data-v-4fa4a08e"]]),Kz="",jF={name:"fragment-section",props:["context","comment","selfCallIndent","commentObj","number"],mixins:[e9],setup(t){const e=S1(),n=F(()=>e.state.numbering),i=F(()=>t.context.Origin()),s=F(()=>t.context.critical()),r=F(()=>{var a;return(a=s.value)==null?void 0:a.braceBlock()}),o=F(()=>{var a,c;return(c=(a=s.value)==null?void 0:a.atom())==null?void 0:c.getFormattedText()}),l=F(()=>{var a;return(a=r.value)==null?void 0:a.block()}),L=F(()=>o.value?`Critical:${o.value}`:"Critical");return{numbering:n,from:i,label:L,braceBlock:r,blockInCritical:l}}},qF=t=>(_4("data-v-5b5c7189"),t=t(),v4(),t),KF={class:"segment"},YF={class:"header bg-skin-fragment-header text-skin-fragment-header leading-4 rounded-t relative"},XF={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 font-thin leading-6"},QF={class:"name font-semibold p-1 border-b"},JF={class:"p-0"},eO={class:"segment"},tO=qF(()=>R("div",{class:"text-skin-fragment flex"},null,-1));function nO(t,e,n,i,s,r){const o=w2("comment"),l=w2("collapse-button"),L=w2("block");return I(),B("div",{class:"fragment critical border-skin-fragment rounded relative",style:R2(t.fragmentStyle)},[R("div",KF,[n.commentObj.text?(I(),S2(o,{key:0,comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):g2("",!0),R("div",YF,[i.numbering?(I(),B("div",XF,K2(n.number),1)):g2("",!0),R("div",QF,[R("label",JF,[G(l,{label:i.label,collapsed:t.collapsed,onClick:this.toggle,style:R2(n.commentObj.messageStyle),class:y2(n.commentObj.messageClassNames)},null,8,["label","collapsed","onClick","style","class"])])])])]),R("div",{class:y2({hidden:t.collapsed})},[R("div",eO,[tO,i.blockInCritical?(I(),S2(L,{key:0,style:R2({paddingLeft:`${t.offsetX}px`}),context:i.blockInCritical,selfCallIndent:n.selfCallIndent,number:n.number},null,8,["style","context","selfCallIndent","number"])):g2("",!0)])],2)],4)}const iO=Y2(jF,[["render",nO],["__scopeId","data-v-5b5c7189"]]),Yz="",sO={name:"fragment-section",props:["context","comment","selfCallIndent","commentObj","number"],components:{MessageLabel:m7},mixins:[e9],setup(t){const e=S1(),n=F(()=>e.state.numbering),i=F(()=>t.context.Origin()),s=F(()=>t.context.ref().Content()),r=F(()=>{var l;return(l=s.value)==null?void 0:l.getFormattedText()}),o=F(()=>{var l,L;return[(l=s.value)==null?void 0:l.start.start,(L=s.value)==null?void 0:L.stop.stop]});return{store:e,from:i,numbering:n,contentLabel:r,contentPosition:o}}},rO=t=>(_4("data-v-3ec977d9"),t=t(),v4(),t),oO={class:"header bg-skin-fragment-header text-skin-fragment-header leading-4 rounded-t absolute top-0 left-0"},lO={key:0,class:"absolute right-full top-0 pr-1 group-hover:hidden text-gray-500 font-thin leading-6"},LO={class:"text-skin-fragment relative w-9 h-8 -top-[1px] -left-[1px]"},aO=rO(()=>R("div",{class:"polygon-border absolute inset-0"},null,-1)),cO={class:"polygon-content bg-skin-frame text-skin-fragment-header absolute inset-[1px] flex flex-col items-center justify-center"};function CO(t,e,n,i,s,r){const o=w2("comment"),l=w2("MessageLabel");return I(),B("div",{class:"fragment bg-skin-frame border-skin-fragment relative rounded min-w-[140px] w-max py-4 px-2 flex justify-center items-center flex-col",style:R2(t.fragmentStyle)},[R("div",oO,[i.numbering?(I(),B("div",lO,K2(n.number),1)):g2("",!0),n.commentObj.text?(I(),S2(o,{key:1,class:"absolute -top-4 left-0",comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):g2("",!0),R("div",LO,[aO,R("div",cO,[R("span",{class:y2(["flex items-center justify-center font-semibold",n.commentObj.messageClassNames]),style:R2(n.commentObj.messageStyle)}," Ref ",6)])])]),G(l,{class:"text-skin-title mt-3 mb-2",labelText:i.contentLabel,labelPosition:i.contentPosition},null,8,["labelText","labelPosition"])],4)}const uO=Y2(sO,[["render",CO],["__scopeId","data-v-3ec977d9"]]),Xz="",hO={name:"fragment-tcf",props:["context","comment","commentObj","selfCallIndent","number"],mixins:[e9],computed:{...y9(["numbering"]),from:function(){return this.context.Origin()},tcf:function(){return this.context.tcf()},blockInTryBlock:function(){var t,e,n;return(n=(e=(t=this.tcf)==null?void 0:t.tryBlock())==null?void 0:e.braceBlock())==null?void 0:n.block()},finallyBlock:function(){var t,e,n;return(n=(e=(t=this.tcf)==null?void 0:t.finallyBlock())==null?void 0:e.braceBlock())==null?void 0:n.block()},blockLengthAcc(){var e;const t=[D5(this.blockInTryBlock)];return(e=this.tcf)!=null&&e.catchBlock()&&this.tcf.catchBlock().forEach(n=>{t.push(t[t.length-1]+D5(this.blockInCatchBlock(n)))}),t}},methods:{exception(t){var e,n;return(n=(e=t==null?void 0:t.invocation())==null?void 0:e.parameters())==null?void 0:n.getFormattedText()},blockInCatchBlock(t){var e;return(e=t==null?void 0:t.braceBlock())==null?void 0:e.block()}}},Ja=t=>(_4("data-v-1d163267"),t=t(),v4(),t),dO={class:"segment"},fO={class:"header bg-skin-fragment-header text-skin-fragment-header leading-4 rounded-t relative"},gO={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 font-thin leading-6"},pO={class:"name font-semibold p-1 border-b"},mO={class:"segment"},wO=Ja(()=>R("label",{class:"keyword catch p-1"},"catch",-1)),xO={class:"exception p-1"},_O={key:0,class:"segment mt-2 border-t border-solid"},vO=Ja(()=>R("div",{class:"header flex text-skin-fragment finally"},[R("label",{class:"keyword finally bg-skin-frame/[0.66] px-1 inline-block"},"finally")],-1));function MO(t,e,n,i,s,r){const o=w2("comment"),l=w2("collapse-button"),L=w2("block");return I(),B("div",{class:"fragment tcf border-skin-fragment rounded",style:R2(t.fragmentStyle)},[R("div",dO,[n.commentObj.text?(I(),S2(o,{key:0,comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):g2("",!0),R("div",fO,[t.numbering?(I(),B("div",gO,K2(n.number),1)):g2("",!0),R("div",pO,[G(l,{label:"Try",collapsed:t.collapsed,onClick:this.toggle,style:R2(n.commentObj.messageStyle),class:y2(n.commentObj.messageClassNames)},null,8,["collapsed","onClick","style","class"])])])]),R("div",{class:y2({hidden:t.collapsed})},[R("div",mO,[r.blockInTryBlock?(I(),S2(L,{key:0,style:R2({paddingLeft:`${t.offsetX}px`}),context:r.blockInTryBlock,selfCallIndent:n.selfCallIndent,number:`${n.number}.1`,incremental:""},null,8,["style","context","selfCallIndent","number"])):g2("",!0)]),(I(!0),B(z2,null,P3(r.tcf.catchBlock(),(a,c)=>(I(),B("div",{key:c+500,class:"segment mt-2 border-t border-solid"},[(I(),B("div",{class:"header inline-block bg-skin-frame/[0.66]",key:c+1e3},[wO,R("label",xO,K2(r.exception(a)),1)])),(I(),S2(L,{style:R2({paddingLeft:`${t.offsetX}px`}),context:r.blockInCatchBlock(a),selfCallIndent:n.selfCallIndent,key:c+2e3,number:`${n.number}.${r.blockLengthAcc[c]+1}`,incremental:""},null,8,["style","context","selfCallIndent","number"]))]))),128)),r.finallyBlock?(I(),B("div",_O,[vO,G(L,{style:R2({paddingLeft:`${t.offsetX}px`}),context:r.finallyBlock,selfCallIndent:n.selfCallIndent,number:`${n.number}.${r.blockLengthAcc[r.blockLengthAcc.length-1]+1}`,incremental:""},null,8,["style","context","selfCallIndent","number"])])):g2("",!0)],2)],4)}const yO=Y2(hO,[["render",MO],["__scopeId","data-v-1d163267"]]),RO={name:"return",props:["context","comment","commentObj","number"],mixins:[{computed:{borderWidth:function(){const t={borderLeftWidth:"7px",borderRightWidth:"7px"},e=this.rightToLeft?"Left":"Right",n=this.rightToLeft?"Right":"Left";return this.isJointOccurrence(this.source)||(t[`border${n}Width`]="0px"),this.isJointOccurrence(this.target)||(t[`border${e}Width`]="0px"),t}},methods:{isJointOccurrence(t){let e=this.findOwningContext(t);return e?e instanceof d.MessageContext||e instanceof d.CreationContext:!1},findOwningContext(t){let e=this.context;for(;e;){if(!e.Owner){e=e.parentCtx;continue}if(e.Owner()===t)return e;e=e.parentCtx}return null}}}],computed:{...z3(["distance","cursor","onElementClick","participants"]),from:function(){return this.context.Origin()},asyncMessage:function(){var t;return(t=this.context)==null?void 0:t.ret().asyncMessage()},width:function(){return this.isSelf?p5(this.signature,j4.MessageContent):Math.abs(this.distance(this.target,this.source))},left:function(){return this.rightToLeft?this.distance(this.target,this.from):this.distance(this.source,this.from)},rightToLeft:function(){return this.distance(this.target,this.source)<0},signature:function(){var t,e,n,i,s;return((e=(t=this.asyncMessage)==null?void 0:t.content())==null?void 0:e.getFormattedText())||((s=(i=(n=this.context)==null?void 0:n.ret())==null?void 0:i.expr())==null?void 0:s.getFormattedText())},source:function(){var t,e;return((e=(t=this.asyncMessage)==null?void 0:t.from())==null?void 0:e.getFormattedText())||this.from},target:function(){var t,e,n,i;return((e=(t=this.asyncMessage)==null?void 0:t.to())==null?void 0:e.getFormattedText())||((i=(n=this.context)==null?void 0:n.ret())==null?void 0:i.ReturnTo())},isCurrent:function(){return!1},isSelf:function(){return this.source===this.target},messageTextStyle(){var t;return(t=this.commentObj)==null?void 0:t.messageStyle},messageClassNames(){var t;return(t=this.commentObj)==null?void 0:t.messageClassNames},messageContext(){var t,e,n;return((t=this.asyncMessage)==null?void 0:t.content())||((n=(e=this.context)==null?void 0:e.ret())==null?void 0:n.expr())}},methods:{onClick(){this.onElementClick(M0.from(this.context))}},components:{Comment:N5,Message:v5}},AO=["data-signature"],kO={key:1,class:"flex items-center"},ZO=R("svg",{class:"w-3 h-3 flex-shrink-0 fill-current m-1",viewBox:"0 0 512 512"},[R("path",{class:"cls-1",d:"M256 0C114.84 0 0 114.84 0 256s114.84 256 256 256 256-114.84 256-256S397.16 0 256 0Zm0 469.33c-117.63 0-213.33-95.7-213.33-213.33S138.37 42.67 256 42.67 469.33 138.37 469.33 256 373.63 469.33 256 469.33Z"}),R("path",{class:"cls-1",d:"M288 192h-87.16l27.58-27.58a21.33 21.33 0 1 0-30.17-30.17l-64 64a21.33 21.33 0 0 0 0 30.17l64 64a21.33 21.33 0 0 0 30.17-30.17l-27.58-27.58H288a53.33 53.33 0 0 1 0 106.67h-32a21.33 21.33 0 0 0 0 42.66h32a96 96 0 0 0 0-192Z"})],-1),TO={class:"name"};function SO(t,e,n,i,s,r){const o=w2("comment"),l=w2("Message");return I(),B("div",{class:y2(["interaction return relative",{"right-to-left":r.rightToLeft,"bare-source":t.bareSource,"bare-target":t.bareTarget,highlight:r.isCurrent}]),onClick:e[0]||(e[0]=e5((...L)=>r.onClick&&r.onClick(...L),["stop"])),"data-signature":r.signature,style:R2({...t.borderWidth,width:r.width+"px",left:r.left+"px"})},[n.comment?(I(),S2(o,{key:0,commentObj:n.commentObj},null,8,["commentObj"])):g2("",!0),r.isSelf?(I(),B("div",kO,[ZO,R("span",TO,K2(r.signature),1)])):g2("",!0),r.isSelf?g2("",!0):(I(),S2(l,{key:2,classNames:r.messageClassNames,textStyle:r.messageTextStyle,context:r.messageContext,content:r.signature,rtl:r.rightToLeft,type:"return",number:n.number},null,8,["classNames","textStyle","context","content","rtl","number"]))],14,AO)}const bO=Y2(RO,[["render",SO]]),EO=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],IO=["italic","oblique"],FO=["bold","bolder","lighter"],OO=["underline","overline","line-through"],B5=t=>{const e={},n=[];return t.forEach(i=>{switch(!0){case EO.includes(i):e.color=i;break;case IO.includes(i):e.fontStyle=i;break;case FO.includes(i):e.fontWeight=i;break;case OO.includes(i):e.textDecoration=i;break;default:n.push(i)}}),{textStyle:e,classNames:n}},Jz="",NO={name:"divider",props:["context"],computed:{...z3(["participants","centerOf"]),width(){let t=this.participants.Names().pop();return this.centerOf(t)+10},from:function(){return this.context.Origin()},centerOfFrom(){return this.centerOf(this.from)},note:function(){return this.context.divider().Note()},messageStyle(){if(this.note.trim().indexOf("[")===0&&this.note.indexOf("]")!==-1){const t=this.note.indexOf("["),e=this.note.indexOf("]"),[n,i]=[this.note.slice(t+1,e),this.note.slice(e+1)];return{style:B5(n.split(",").map(s=>s.trim())),note:i}}return{style:B5([]),note:this.note}}}},ec=t=>(_4("data-v-0be02001"),t=t(),v4(),t),DO=ec(()=>R("div",{class:"left bg-skin-divider"},null,-1)),PO=ec(()=>R("div",{class:"right bg-skin-divider"},null,-1));function BO(t,e,n,i,s,r){return I(),B("div",{class:"divider",style:R2({width:r.width+"px",transform:"translateX("+(-1*r.centerOfFrom+10)+"px)"})},[DO,R("div",{class:y2(["name",r.messageStyle.style.classNames]),style:R2(r.messageStyle.style.textStyle)},K2(r.messageStyle.note),7),PO],4)}const zO=Y2(NO,[["render",BO],["__scopeId","data-v-0be02001"]]);function UO(t){const e={"<>":new Set,"()":new Set,"[]":new Set},n=/<([^>]*)>|\(([^)]*)\)|\[([^\]]*)\]|([^<>()[\]\s]+)/g;let i,s;for(;i=n.exec(t);){if(i[4]){s!==void 0&&(s=i.index);break}s=i.index+i[0].length,i[1]&&i[1].split(",").forEach(r=>e["<>"].add(r.trim())),i[2]&&i[2].split(",").forEach(r=>e["()"].add(r.trim())),i[3]&&i[3].split(",").forEach(r=>e["[]"].add(r.trim()))}return[Array.from(e["<>"]),Array.from(e["()"]),Array.from(e["[]"]),t.slice(s)]}class WO{constructor(e){i2(this,"text","");i2(this,"classNames",[]);i2(this,"textStyle",{});i2(this,"commentStyle",{});i2(this,"messageStyle",{});i2(this,"commentClassNames",[]);i2(this,"messageClassNames",[]);const n=e.slice(0,-1).split(`
3363
3363
  `),i=n[n.length-1],[s,r,o,l]=UO(i),{textStyle:L,classNames:a}=B5(s),{textStyle:c,classNames:C}=B5(r),{textStyle:u,classNames:h}=B5(o);this.text=(n.slice(0,n.length-1).join(`
3364
3364
  `)+`
3365
3365
  `+l).trim(),this.textStyle={...u,...L,...c},this.classNames=[...h,...a,...C],this.commentStyle={...u,...L},this.messageStyle={...u,...c},this.commentClassNames=[...h,...a],this.messageClassNames=[...h,...C]}}const HO={name:"statement",props:["context","selfCallIndent","number","collapsed","inheritFromOccurrence"],computed:{comment:function(){return this.context.getComment()?this.context.getComment():""},commentObj:function(){return new WO(this.comment)},subStatement:function(){let t=this,e={loop:"FragmentLoop",alt:"FragmentAlt",par:"FragmentPar",opt:"FragmentOpt",section:"FragmentSection",critical:"FragmentCritical",tcf:"FragmentTryCatchFinally",ref:"FragmentRef",creation:"Creation",message:"Interaction",asyncMessage:"InteractionAsync",divider:"Divider",ret:"Return"},n=Object.keys(e).find(i=>t.context[i]()!==null);return e[n]},collapsedCheck:function(){return this.collapsed&&this.subStatement!="Return"}},components:{Creation:Gb,Interaction:sE,InteractionAsync:fE,FragmentAlt:OE,FragmentPar:UE,FragmentOpt:tI,FragmentSection:GF,FragmentCritical:iO,FragmentRef:uO,FragmentTryCatchFinally:yO,FragmentLoop:KE,Divider:zO,Return:bO}};function $O(t,e,n,i,s,r){return I(),S2(w8(r.subStatement),{class:y2(["text-left text-sm text-skin-message",{hidden:r.collapsedCheck}]),context:n.context,comment:r.comment,commentObj:r.commentObj,selfCallIndent:n.selfCallIndent,number:n.number,inheritFromOccurrence:n.inheritFromOccurrence},null,8,["class","context","comment","commentObj","selfCallIndent","number","inheritFromOccurrence"])}const VO=Y2(HO,[["render",$O]]),GO={class:"block"},jO=X2({__name:"Block",props:{context:null,selfCallIndent:null,number:null,incremental:{type:Boolean},collapsed:{type:Boolean},inheritFromOccurrence:{type:Boolean}},setup(t){const e=t,n=F(()=>{var s;return((s=e.context)==null?void 0:s.stat())||[]}),i=s=>e.number?e.incremental?Fa(e.number,s):`${e.number}.${s+1}`:String(s+1);return(s,r)=>(I(),B("div",GO,[(I(!0),B(z2,null,P3(N(n),(o,l)=>(I(),B("div",{class:"statement-container mt-1",key:l},[G(VO,{inheritFromOccurrence:t.inheritFromOccurrence,context:o,collapsed:t.collapsed,selfCallIndent:t.selfCallIndent,number:i(l)},null,8,["inheritFromOccurrence","context","collapsed","selfCallIndent","number"])]))),128))]))}});function qO(t){const e=Math.floor(t/1e3),n=Math.floor(t%1e3),i=Math.floor((t%1e3-n)*1e3);return e+"s "+n+"ms "+i+"\u03BCs"}const KO=(t,e)=>{const i=tc()-e;return console.debug(t+" cost: "+qO(i)),i},tc=()=>performance.now(),YO=E0.child({name:"core"});class XO{constructor(e,n=!1){i2(this,"el");i2(this,"_code");i2(this,"_theme");i2(this,"store");i2(this,"app");i2(this,"_currentTimeout");i2(this,"_lastRenderingCostMilliseconds",0);i2(this,"initialRender",!0);this.el=e,this.store=Jr(Rl()),this.app=i5(n?Kt:$L),this.app.component("Comment",N5),this.app.component("Block",jO),this.app.use(this.store),this.app.mount(this.el),this.addPortalRootElement()}addPortalRootElement(){const e=document.createElement("div");e.id="headlessui-portal-root",e.className="zenuml",e.append(document.createElement("div")),document.body.append(e)}async render(e,n){return this._currentTimeout&&(console.debug("rendering clearTimeout"),clearTimeout(this._currentTimeout)),YO.debug("rendering",e,n),this._code=e||this._code,this._theme=(n==null?void 0:n.theme)||this._theme,this.store.state.stickyOffset=(n==null?void 0:n.stickyOffset)||0,this.store.state.theme=this._theme||"default",this.store.state.enableScopedTheming=(n==null?void 0:n.enableScopedTheming)||!1,this.store.state.mode=(n==null?void 0:n.mode)||e3.Dynamic,this.initialRender?(this.initialRender=!1,await this.doRender(n)):this._currentTimeout=setTimeout(async()=>await this.doRender(n),this.calculateDebounceMilliseconds()),this}async doRender(e){console.debug("rendering start");const n=tc();xl(),this.store.commit("onContentChange",(e==null?void 0:e.onContentChange)||(()=>{})),this.store.commit("onThemeChange",(e==null?void 0:e.onThemeChange)||(()=>{})),this.store.commit("onEventEmit",(e==null?void 0:e.onEventEmit)||(()=>{})),(e==null?void 0:e.enableMultiTheme)!==void 0&&(this.store.state.enableMultiTheme=e==null?void 0:e.enableMultiTheme),await this.store.dispatch("updateCode",{code:this._code}),this._lastRenderingCostMilliseconds=KO("rendering end",n)}calculateDebounceMilliseconds(){let e=this._lastRenderingCostMilliseconds;return e>2e3&&(e=2e3),console.debug("rendering debounce: "+e+"ms"),e}get code(){return this._code}get theme(){return this._theme}async getPng(){return this.el.children[0].__vue__.toPng()}}const QO={createApp:i5,createStore:Jr,Store:Rl,SeqDiagram:Kt,DiagramFrame:$L},JO={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","aria-hidden":"true",viewBox:"0 0 24 24"},eN=[R("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18 18 6M6 6l12 12"},null,-1)];function nc(t,e){return I(),B("svg",JO,eN)}const tN=Object.freeze(Object.defineProperty({__proto__:null,render:nc,default:{render:nc}},Symbol.toStringTag,{value:"Module"})),nN={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round",viewBox:"0 0 24 24"},iN=[R("path",{d:"m14 10 7-7M20 10h-6V4M3 21l7-7M4 14h6v6"},null,-1)];function ic(t,e){return I(),B("svg",nN,iN)}const sN=Object.freeze(Object.defineProperty({__proto__:null,render:ic,default:{render:ic}},Symbol.toStringTag,{value:"Module"})),rN={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},oN=[R("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"},[R("path",{d:"M3 17.3V21h3.7","data-name":"Right"}),R("path",{d:"m10 14-6.2 6.2M14 10l6.2-6.2"}),R("path",{d:"M21 6.7V3h-3.7","data-name":"Right"})],-1)];function sc(t,e){return I(),B("svg",rN,oN)}const lN=Object.freeze(Object.defineProperty({__proto__:null,render:sc,default:{render:sc}},Symbol.toStringTag,{value:"Module"})),LN={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},aN=[R("path",{d:"M6 3v12"},null,-1),R("circle",{cx:"18",cy:"6",r:"3"},null,-1),R("circle",{cx:"6",cy:"18",r:"3"},null,-1),R("path",{d:"M18 9a9 9 0 0 1-9 9"},null,-1)];function rc(t,e){return I(),B("svg",LN,aN)}const cN=Object.freeze(Object.defineProperty({__proto__:null,render:rc,default:{render:rc}},Symbol.toStringTag,{value:"Module"})),CN={xmlns:"http://www.w3.org/2000/svg",width:"30",height:"24",class:"arrow text-skin-message-arrow"},uN=[R("path",{d:"M0 2h28v13H14",class:"line stroke-current fill-none stroke-2"},null,-1),R("path",{d:"M18 9 8 15l10 6",class:"head stroke-current fill-current stroke-2"},null,-1)];function oc(t,e){return I(),B("svg",CN,uN)}const hN=Object.freeze(Object.defineProperty({__proto__:null,render:oc,default:{render:oc}},Symbol.toStringTag,{value:"Module"})),dN={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",fill:"none",viewBox:"0 0 20 20"},fN=[R("circle",{cx:"10",cy:"10",r:"10",fill:"#000","fill-opacity":".1"},null,-1)];function lc(t,e){return I(),B("svg",dN,fN)}const gN=Object.freeze(Object.defineProperty({__proto__:null,render:lc,default:{render:lc}},Symbol.toStringTag,{value:"Module"})),pN={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 100 100"},mN=[R("path",{fill:"#000",d:"M21.886 32.09V67H17.66V36.523h-.204l-8.523 5.659v-4.296l8.727-5.795h4.227Zm11.662 35.126a2.338 2.338 0 0 1-1.714-.715 2.338 2.338 0 0 1-.715-1.714c0-.666.239-1.237.715-1.714a2.338 2.338 0 0 1 1.714-.715c.666 0 1.237.238 1.714.715.477.477.715 1.048.715 1.714 0 .44-.112.846-.337 1.214a2.52 2.52 0 0 1-.877.891c-.36.216-.765.324-1.215.324Zm8.24-.216v-2.557l9.603-10.511a66.703 66.703 0 0 0 2.784-3.21c.73-.919 1.269-1.78 1.62-2.586a6.26 6.26 0 0 0 .54-2.556c0-1.023-.247-1.909-.74-2.657-.482-.748-1.145-1.326-1.988-1.733-.843-.407-1.79-.61-2.841-.61-1.117 0-2.093.232-2.926.696a4.792 4.792 0 0 0-1.918 1.917c-.445.824-.667 1.79-.667 2.898h-3.353c0-1.705.393-3.2 1.18-4.489a8.192 8.192 0 0 1 3.21-3.011c1.363-.72 2.892-1.08 4.588-1.08 1.704 0 3.215.36 4.53 1.08 1.317.72 2.35 1.69 3.098 2.912.748 1.221 1.122 2.58 1.122 4.077 0 1.07-.195 2.116-.583 3.139-.379 1.013-1.041 2.145-1.988 3.395-.938 1.24-2.24 2.755-3.907 4.545l-6.534 6.989v.227h13.523V67H41.789Zm26.444.216a2.338 2.338 0 0 1-1.714-.715 2.338 2.338 0 0 1-.715-1.714c0-.666.238-1.237.715-1.714a2.338 2.338 0 0 1 1.714-.715c.666 0 1.237.238 1.714.715.477.477.715 1.048.715 1.714 0 .44-.113.846-.338 1.214a2.52 2.52 0 0 1-.877.891c-.36.216-.764.324-1.214.324Zm15.502.102c-1.5 0-2.837-.257-4.012-.772-1.166-.516-2.094-1.232-2.784-2.148-.682-.924-1.053-1.996-1.113-3.216h2.863c.06.75.318 1.398.773 1.943.454.538 1.05.954 1.784 1.25.735.296 1.55.443 2.443.443 1 0 1.887-.174 2.66-.522.772-.349 1.378-.834 1.817-1.455.44-.621.66-1.341.66-2.16 0-.855-.213-1.609-.637-2.26-.424-.66-1.045-1.175-1.863-1.546-.819-.371-1.819-.557-3-.557H81.46v-2.5h1.864c.924 0 1.734-.166 2.431-.5.705-.333 1.254-.803 1.648-1.409.402-.606.602-1.318.602-2.136 0-.788-.174-1.474-.522-2.057a3.575 3.575 0 0 0-1.478-1.364c-.628-.325-1.37-.488-2.227-.488-.803 0-1.56.147-2.273.443a4.234 4.234 0 0 0-1.727 1.261c-.447.546-.69 1.205-.727 1.977h-2.727c.045-1.22.412-2.287 1.102-3.204.69-.924 1.59-1.644 2.704-2.16 1.122-.514 2.353-.772 3.694-.772 1.439 0 2.674.292 3.704.875 1.03.576 1.822 1.337 2.375 2.284.553.947.83 1.97.83 3.068 0 1.311-.345 2.428-1.034 3.353-.682.924-1.61 1.564-2.785 1.92v.182c1.47.242 2.618.867 3.444 1.875.825 1 1.238 2.239 1.238 3.716 0 1.265-.344 2.401-1.034 3.409-.682 1-1.613 1.788-2.795 2.364-1.182.575-2.527.863-4.034.863Z"},null,-1),R("path",{fill:"#000",d:"M21.886 32.09h1v-1h-1v1Zm0 34.91v1h1v-1h-1Zm-4.227 0h-1v1h1v-1Zm0-30.477h1v-1h-1v1Zm-.204 0v-1h-.302l-.252.167.553.833Zm-8.523 5.659h-1v1.864l1.553-1.031-.553-.833Zm0-4.296-.553-.833-.447.297v.536h1Zm8.727-5.795v-1h-.302l-.251.167.553.833Zm3.227 0V67h2V32.09h-2Zm1 33.909H17.66v2h4.227v-2Zm-3.227 1V36.523h-2V67h2Zm-1-31.477h-.204v2h.204v-2Zm-.758.167L8.38 41.349l1.106 1.666 8.523-5.66L16.9 35.69Zm-6.97 6.492v-4.296h-2v4.296h2Zm-.446-3.463 8.727-5.795-1.106-1.666-8.727 5.795 1.106 1.666Zm8.174-5.628h4.227v-2H17.66v2ZM31.834 66.5l.708-.707-.708.707Zm0-3.428-.707-.707.707.707Zm3.428 0 .707-.707-.707.707Zm.378 2.928-.854-.52-.005.008-.004.007.863.505Zm-.877.891.514.858.006-.004-.52-.854Zm-1.215-.676a1.34 1.34 0 0 1-1.006-.422l-1.415 1.414a3.337 3.337 0 0 0 2.421 1.008v-2Zm-1.006-.422a1.34 1.34 0 0 1-.423-1.007h-2c0 .935.347 1.76 1.008 2.42l1.415-1.413Zm-.423-1.007c0-.397.13-.715.423-1.007l-1.415-1.414a3.337 3.337 0 0 0-1.008 2.42h2Zm.423-1.007a1.34 1.34 0 0 1 1.006-.422v-2c-.934 0-1.759.346-2.42 1.008l1.414 1.414Zm1.006-.422c.397 0 .715.13 1.007.422l1.414-1.414a3.337 3.337 0 0 0-2.42-1.008v2Zm1.007.422c.292.292.422.61.422 1.007h2c0-.935-.346-1.76-1.008-2.421l-1.414 1.414Zm.422 1.007c0 .261-.064.485-.19.694l1.707 1.041a3.288 3.288 0 0 0 .483-1.735h-2Zm-.2.71a1.52 1.52 0 0 1-.535.541l1.041 1.708c.509-.31.92-.726 1.22-1.24l-1.726-1.01Zm-.529.538a1.317 1.317 0 0 1-.7.18v2c.618 0 1.203-.15 1.73-.466l-1.03-1.714Zm7.54.965h-1v1h1v-1Zm0-2.557-.738-.674-.261.286v.388h1Zm9.603-10.511-.738-.675.738.675Zm2.784-3.21.78.625.003-.004-.783-.621Zm1.62-2.586-.915-.404-.003.005.917.4Zm-.2-5.213-.84.543.005.007.836-.55Zm-1.988-1.733.435-.9-.435.9Zm-5.767.086.483.875.003-.002-.486-.873Zm-1.918 1.917-.875-.483-.005.008.88.475Zm-.667 2.898v1h1v-1h-1Zm-3.353 0h-1v1h1v-1Zm1.18-4.489.853.521-.854-.52Zm3.21-3.011-.467-.885-.003.002.47.883Zm9.119 0 .48-.877-.48.877Zm3.096 2.912-.852.522.852-.522Zm.54 7.216-.935-.355-.002.005.937.35Zm-1.988 3.395-.797-.604h-.001l.798.604Zm-3.907 4.545.73.683.002-.001-.732-.682Zm-6.534 6.989-.73-.683-.27.288v.395h1Zm0 .227h-1v1h1v-1Zm13.523 0h1v-1h-1v1Zm0 3.125v1h1v-1h-1Zm-17.352 0v-2.557h-2V67h2Zm-.262-1.882 9.602-10.512-1.476-1.349L41.05 63.77l1.477 1.349Zm9.602-10.511a67.671 67.671 0 0 0 2.826-3.26l-1.56-1.251a65.769 65.769 0 0 1-2.742 3.16l1.476 1.351Zm2.83-3.264c.766-.965 1.358-1.901 1.752-2.808l-1.834-.798c-.306.704-.793 1.491-1.485 2.363l1.566 1.243Zm1.75-2.803a7.259 7.259 0 0 0 .625-2.96h-2c0 .75-.15 1.465-.454 2.152l1.83.809Zm.625-2.96c0-1.19-.289-2.273-.903-3.206l-1.67 1.1c.37.562.573 1.25.573 2.106h2Zm-.898-3.2a5.792 5.792 0 0 0-2.394-2.09l-.87 1.8c.686.332 1.205.79 1.583 1.376l1.68-1.085Zm-2.394-2.09c-.994-.48-2.093-.71-3.276-.71v2c.92 0 1.715.177 2.406.51l.87-1.8Zm-3.276-.71c-1.258 0-2.407.262-3.413.822l.973 1.747c.661-.368 1.463-.57 2.44-.57v-2Zm-3.41.82a5.791 5.791 0 0 0-2.31 2.31l1.752.966a3.792 3.792 0 0 1 1.525-1.525l-.966-1.751Zm-2.314 2.318c-.537.994-.787 2.13-.787 3.373h2c0-.973.194-1.77.547-2.422l-1.76-.951Zm.213 2.373h-3.353v2h3.353v-2Zm-2.353 1c0-1.545.355-2.856 1.033-3.968l-1.707-1.042c-.894 1.465-1.326 3.146-1.326 5.01h2Zm1.033-3.968a7.193 7.193 0 0 1 2.826-2.65l-.939-1.765a9.192 9.192 0 0 0-3.594 3.373l1.707 1.042Zm2.823-2.648c1.206-.636 2.573-.964 4.122-.964v-2c-1.842 0-3.534.393-5.055 1.195l.933 1.77Zm4.122-.964c1.56 0 2.901.328 4.051.957l.96-1.755c-1.483-.81-3.162-1.202-5.011-1.202v2Zm4.051.957c1.17.64 2.071 1.492 2.724 2.557l1.705-1.044c-.843-1.378-2.007-2.468-3.47-3.267l-.959 1.754Zm2.724 2.557c.647 1.057.975 2.234.975 3.555h2c0-1.672-.421-3.213-1.27-4.6l-1.705 1.045Zm.975 3.555c0 .946-.172 1.872-.518 2.784l1.87.71c.43-1.134.648-2.3.648-3.494h-2Zm-.52 2.789c-.333.891-.936 1.937-1.849 3.14l1.595 1.209c.981-1.296 1.704-2.514 2.128-3.65l-1.873-.7Zm-1.85 3.142c-.908 1.202-2.185 2.69-3.84 4.467l1.464 1.363c1.679-1.803 3.006-3.346 3.972-4.624l-1.595-1.206Zm-3.838 4.465-6.534 6.989 1.46 1.366 6.535-6.989-1.461-1.366Zm-6.804 7.672v.227h2v-.227h-2Zm1 1.227h13.523v-2H46.618v2Zm12.523-1V67h2v-3.125h-2Zm1 2.125H41.789v2H60.14v-2Zm6.377.5.707-.706-.707.707Zm0-3.427-.707-.707.707.707Zm3.428 0 .707-.707-.707.707Zm.377 2.928-.853-.52-.005.008-.005.007.864.505Zm-.877.891.515.858.006-.004-.52-.854Zm-1.214-.676a1.34 1.34 0 0 1-1.007-.422l-1.414 1.414a3.337 3.337 0 0 0 2.42 1.008v-2Zm-1.007-.422a1.34 1.34 0 0 1-.422-1.007h-2c0 .935.346 1.76 1.008 2.42l1.414-1.413Zm-.422-1.007c0-.397.13-.715.422-1.007l-1.414-1.414a3.337 3.337 0 0 0-1.008 2.42h2Zm.422-1.007a1.34 1.34 0 0 1 1.007-.422v-2c-.935 0-1.76.346-2.421 1.008l1.414 1.414Zm1.007-.422c.397 0 .715.13 1.007.422l1.414-1.414a3.337 3.337 0 0 0-2.421-1.008v2Zm1.007.422c.291.292.422.61.422 1.007h2c0-.935-.347-1.76-1.008-2.421l-1.414 1.414Zm.422 1.007c0 .261-.064.485-.191.694l1.707 1.041a3.288 3.288 0 0 0 .484-1.735h-2Zm-.2.71a1.52 1.52 0 0 1-.535.541l1.041 1.708a3.52 3.52 0 0 0 1.22-1.24l-1.727-1.01Zm-.53.538a1.317 1.317 0 0 1-.7.18v2c.618 0 1.203-.15 1.73-.466l-1.03-1.714Zm10.791.51-.404.915.003.001.401-.915Zm-2.784-2.147-.805.593.006.008.8-.601Zm-1.113-3.216v-1h-1.051l.052 1.05.999-.05Zm2.863 0 .997-.08-.074-.92h-.923v1Zm.773 1.943-.768.64.004.005.764-.645Zm1.784 1.25-.373.928.373-.928Zm6.92-1.534-.816-.578.816.578Zm.023-4.42-.84.54.002.005.838-.546Zm-1.863-1.546-.414.91.414-.91Zm-4.864-.557h-1v1h1v-1Zm0-2.5v-1h-1v1h1Zm4.295-.5-.427-.904-.004.002.431.902Zm1.648-1.409-.834-.552-.004.007.838.545Zm.08-4.193.858-.513-.858.513Zm-1.478-1.364-.46.888.005.002.455-.89Zm-4.5-.045.379.925.005-.002-.384-.923Zm-1.727 1.261.774.634.004-.005-.778-.629Zm-.727 1.977v1h.952l.047-.95-1-.05Zm-2.727 0-1-.037-.038 1.037h1.038v-1Zm1.102-3.204.8.601.001-.003-.801-.598Zm2.704-2.16-.417-.908-.002.001.42.908Zm7.398.103-.493.87.005.003.488-.873Zm2.375 2.284-.863.505.863-.505Zm-.204 6.42-.802-.597-.003.004.805.594Zm-2.785 1.921-.29-.957-.71.215v.742h1Zm0 .182h-1v.849l.838.138.162-.987Zm3.444 1.875-.774.634.003.003.77-.637Zm.204 7.125-.825-.565-.001.002.826.563Zm-2.795 2.364.438.898-.438-.898Zm-4.034-.137c-1.385 0-2.582-.237-3.61-.688l-.803 1.831c1.32.58 2.798.857 4.413.857v-2Zm-3.608-.687c-1.028-.454-1.813-1.07-2.389-1.834l-1.598 1.202c.803 1.068 1.874 1.885 3.18 2.461l.807-1.83Zm-2.383-1.827c-.558-.756-.868-1.636-.92-2.672l-1.997.1c.07 1.403.501 2.667 1.308 3.76l1.609-1.188Zm-1.918-1.622h2.863v-2h-2.863v2Zm1.867-.92c.076.943.406 1.79 1 2.503l1.537-1.28c-.314-.377-.499-.826-.544-1.384l-1.993.161Zm1.005 2.508c.572.678 1.308 1.184 2.175 1.533l.746-1.856c-.603-.242-1.056-.569-1.393-.968l-1.528 1.291Zm2.175 1.533c.868.349 1.81.515 2.816.515v-2c-.782 0-1.468-.129-2.07-.37l-.746 1.855Zm2.816.515c1.117 0 2.147-.195 3.07-.611l-.822-1.823c-.622.28-1.364.434-2.248.434v2Zm3.07-.611c.917-.413 1.67-1.006 2.224-1.789l-1.633-1.155c-.325.46-.784.837-1.413 1.12l.822 1.824Zm2.224-1.789c.568-.803.843-1.728.843-2.736h-2c0 .628-.165 1.142-.476 1.581l1.633 1.155Zm.843-2.736c0-1.03-.258-1.977-.799-2.807l-1.676 1.091c.308.473.475 1.033.475 1.716h2Zm-.796-2.803c-.543-.843-1.324-1.476-2.291-1.915l-.827 1.822c.67.303 1.13.701 1.436 1.176l1.682-1.083Zm-2.291-1.915c-.982-.445-2.132-.646-3.413-.646v2c1.082 0 1.932.17 2.586.468l.827-1.822Zm-3.413-.646H81.46v2h1.864v-2Zm-.864 1v-2.5h-2v2.5h2Zm-1-1.5h1.864v-2H81.46v2Zm1.864 0c1.044 0 2.007-.188 2.863-.598l-.863-1.804c-.538.258-1.197.402-2 .402v2Zm2.86-.596c.858-.406 1.555-.994 2.058-1.768l-1.677-1.09c-.285.439-.687.79-1.237 1.05l.855 1.808Zm2.053-1.76c.523-.79.768-1.7.768-2.69h-2c0 .648-.156 1.163-.436 1.585l1.668 1.104Zm.768-2.69c0-.938-.209-1.807-.664-2.569l-1.717 1.026c.242.405.381.907.381 1.544h2Zm-.664-2.569a4.575 4.575 0 0 0-1.88-1.74l-.911 1.78c.478.244.827.572 1.074.986l1.717-1.026Zm-1.876-1.739c-.797-.413-1.704-.6-2.687-.6v2c.73 0 1.308.138 1.767.376l.92-1.776Zm-2.687-.6a6.87 6.87 0 0 0-2.656.52l.767 1.846a4.87 4.87 0 0 1 1.89-.366v-2Zm-2.65.517A5.232 5.232 0 0 0 79 46.94l1.556 1.257a3.234 3.234 0 0 1 1.328-.965l-.757-1.85Zm-2.123 1.553c-.596.728-.906 1.598-.953 2.563l1.998.097c.028-.58.204-1.029.502-1.392l-1.547-1.268Zm.046 1.611h-2.727v2h2.727v-2Zm-1.728 1.038c.038-1.03.343-1.898.902-2.641l-1.598-1.202c-.82 1.09-1.25 2.358-1.303 3.768l1.999.075Zm.904-2.644c.584-.782 1.35-1.4 2.323-1.85l-.84-1.815c-1.254.58-2.29 1.403-3.086 2.469l1.603 1.196Zm2.32-1.849c.98-.45 2.067-.68 3.277-.68v-2c-1.473 0-2.848.283-4.111.863l.835 1.817Zm3.277-.68c1.303 0 2.36.263 3.211.744l.986-1.74c-1.21-.685-2.622-1.005-4.197-1.005v2Zm3.216.747c.887.496 1.544 1.135 2 1.916l1.727-1.01c-.65-1.112-1.577-1.996-2.751-2.652l-.976 1.746Zm2 1.916a4.98 4.98 0 0 1 .693 2.563h2a6.98 6.98 0 0 0-.966-3.572l-1.727 1.008Zm.693 2.563c0 1.126-.293 2.026-.836 2.755l1.603 1.196c.836-1.12 1.233-2.455 1.233-3.95h-2Zm-.84 2.759c-.544.739-1.286 1.259-2.269 1.557l.58 1.914c1.366-.414 2.48-1.174 3.3-2.284l-1.61-1.187Zm-2.979 2.514v.182h2v-.182h-2Zm.838 1.169c1.266.208 2.182.729 2.832 1.522l1.547-1.268c-1.002-1.222-2.381-1.952-4.054-2.228l-.325 1.974Zm2.835 1.525c.657.796 1.01 1.8 1.01 3.079h2c0-1.676-.474-3.149-1.468-4.353l-1.542 1.274Zm1.01 3.079c0 1.071-.289 2.01-.86 2.844l1.65 1.13c.808-1.18 1.21-2.515 1.21-3.974h-2Zm-.861 2.846c-.575.844-1.368 1.521-2.407 2.028l.876 1.797c1.324-.645 2.395-1.543 3.183-2.699l-1.652-1.126Zm-2.407 2.028c-1.027.5-2.218.762-3.596.762v2c1.637 0 3.135-.313 4.472-.965l-.876-1.797Z"},null,-1)];function Lc(t,e){return I(),B("svg",pN,mN)}const wN=Object.freeze(Object.defineProperty({__proto__:null,render:Lc,default:{render:Lc}},Symbol.toStringTag,{value:"Module"})),xN={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 214.27 214.27"},_N=[R("path",{d:"M196.926 55.171c-.11-5.785-.215-11.25-.215-16.537a7.5 7.5 0 0 0-7.5-7.5c-32.075 0-56.496-9.218-76.852-29.01a7.498 7.498 0 0 0-10.457 0c-20.354 19.792-44.771 29.01-76.844 29.01a7.5 7.5 0 0 0-7.5 7.5c0 5.288-.104 10.755-.215 16.541-1.028 53.836-2.436 127.567 87.331 158.682a7.495 7.495 0 0 0 4.912 0c89.774-31.116 88.368-104.849 87.34-158.686zm-89.795 143.641c-76.987-27.967-75.823-89.232-74.79-143.351.062-3.248.122-6.396.164-9.482 30.04-1.268 54.062-10.371 74.626-28.285 20.566 17.914 44.592 27.018 74.634 28.285.042 3.085.102 6.231.164 9.477 1.032 54.121 2.195 115.388-74.798 143.356z"},null,-1),R("path",{d:"m132.958 81.082-36.199 36.197-15.447-15.447a7.501 7.501 0 0 0-10.606 10.607l20.75 20.75a7.477 7.477 0 0 0 5.303 2.196 7.477 7.477 0 0 0 5.303-2.196l41.501-41.5a7.498 7.498 0 0 0 .001-10.606 7.5 7.5 0 0 0-10.606-.001z"},null,-1)];function ac(t,e){return I(),B("svg",xN,_N)}const vN=Object.freeze(Object.defineProperty({__proto__:null,render:ac,default:{render:ac}},Symbol.toStringTag,{value:"Module"})),MN={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",fill:"none",viewBox:"0 0 20 20"},yN=[R("circle",{cx:"10",cy:"10",r:"10",fill:"#4f8cf7","fill-opacity":".2",class:"text-base"},null,-1),R("path",{stroke:"#4f8cf7","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"m6 10 3 3 5-5"},null,-1)];function cc(t,e){return I(),B("svg",MN,yN)}const RN=Object.freeze(Object.defineProperty({__proto__:null,render:cc,default:{render:cc}},Symbol.toStringTag,{value:"Module"})),AN={xmlns:"http://www.w3.org/2000/svg",class:"grayscale h-4 w-4",viewBox:"0 0 1024 1024"},kN=[R("path",{fill:"currentColor",d:"M42.667 512C42.667 251.733 251.733 42.667 512 42.667s469.333 187.733 469.333 422.4c0 72.533-29.866 145.066-81.066 200.533-51.2 51.2-123.734 81.067-200.534 81.067H614.4c-12.8 0-25.6 12.8-29.867 25.6 0 8.533 4.267 17.066 8.534 21.333 21.333 21.333 29.866 46.933 29.866 76.8 0 64-51.2 110.933-115.2 115.2-256-4.267-465.066-213.333-465.066-473.6zM128 512c0 213.333 170.667 384 384 384 17.067 0 29.867-12.8 29.867-29.867 0-4.266 0-8.533-4.267-12.8l-4.267-4.266c-17.066-21.334-25.6-46.934-29.866-76.8 0-64 51.2-110.934 115.2-110.934H704c51.2 0 102.4-21.333 136.533-55.466 38.4-38.4 55.467-85.334 55.467-136.534C896 281.6 725.333 128 512 128S128 298.667 128 512zm593.067 21.333c-21.334-21.333-25.6-51.2-17.067-76.8 12.8-25.6 38.4-42.666 64-42.666 38.4 0 68.267 34.133 72.533 72.533 0 29.867-17.066 55.467-42.666 64-8.534 4.267-17.067 4.267-25.6 4.267-17.067 0-38.4-8.534-51.2-21.334zm-520.534 0c-21.333-21.333-25.6-51.2-17.066-76.8 12.8-25.6 38.4-42.666 64-42.666 38.4 0 68.266 34.133 72.533 72.533 0 29.867-17.067 55.467-42.667 64-8.533 4.267-17.066 4.267-25.6 4.267-21.333 0-38.4-8.534-51.2-21.334zM580.267 345.6c-21.334-21.333-25.6-51.2-17.067-76.8 12.8-25.6 38.4-42.667 64-42.667 38.4 0 68.267 34.134 72.533 72.534 0 29.866-17.066 55.466-42.666 64-8.534 4.266-17.067 4.266-25.6 4.266-21.334 0-38.4-8.533-51.2-21.333zm-238.934 0c-17.066-21.333-25.6-51.2-12.8-76.8 12.8-25.6 38.4-42.667 64-42.667 38.4 0 68.267 34.134 72.534 72.534 0 29.866-17.067 55.466-42.667 64l-29.867 4.266c-17.066 0-34.133-8.533-51.2-21.333z"},null,-1)];function Cc(t,e){return I(),B("svg",AN,kN)}const ZN=Object.freeze(Object.defineProperty({__proto__:null,render:Cc,default:{render:Cc}},Symbol.toStringTag,{value:"Module"})),TN={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},SN=[R("path",{fill:"currentColor",d:"M512 1024C229.248 1024 0 794.752 0 512S229.248 0 512 0s512 229.248 512 512-229.248 512-512 512zm0-938.667C276.352 85.333 85.333 276.352 85.333 512S276.352 938.667 512 938.667 938.667 747.648 938.667 512A426.667 426.667 0 0 0 512 85.333zM512 768a42.667 42.667 0 0 1-42.368-42.667V469.76a42.368 42.368 0 1 1 84.693 0v255.573A42.41 42.41 0 0 1 512 768zm0-426.667a42.325 42.325 0 1 1-.085-84.65 42.325 42.325 0 0 1 .085 84.65zm42.325-42.666z"},null,-1)];function uc(t,e){return I(),B("svg",TN,SN)}const bN=Object.freeze(Object.defineProperty({__proto__:null,render:uc,default:{render:uc}},Symbol.toStringTag,{value:"Module"})),EN={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},IN=[R("path",{fill:"currentColor",d:"M945.067 898.133 755.2 708.267c55.467-64 87.467-149.334 87.467-241.067 0-204.8-168.534-373.333-373.334-373.333S96 264.533 96 469.333s168.533 373.334 373.333 373.334c91.734 0 174.934-34.134 241.067-87.467l189.867 189.867c6.4 6.4 14.933 8.533 23.466 8.533s17.067-2.133 23.467-8.533c8.533-12.8 8.533-34.134-2.133-46.934zM469.333 778.667C298.667 778.667 160 640 160 469.333S298.667 160 469.333 160s309.334 138.667 309.334 309.333S640 778.667 469.333 778.667z"},null,-1),R("path",{fill:"currentColor",d:"M597.333 437.333h-96v-96c0-17.066-14.933-32-32-32s-32 14.934-32 32v96h-96c-17.066 0-32 14.934-32 32s14.934 32 32 32h96v96c0 17.067 14.934 32 32 32s32-14.933 32-32v-96h96c17.067 0 32-14.933 32-32s-14.933-32-32-32z"},null,-1)];function hc(t,e){return I(),B("svg",EN,IN)}const FN=Object.freeze(Object.defineProperty({__proto__:null,render:hc,default:{render:hc}},Symbol.toStringTag,{value:"Module"})),ON={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},NN=[R("path",{fill:"currentColor",d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"},null,-1),R("path",{fill:"currentColor",d:"M921 867 775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"},null,-1)];function dc(t,e){return I(),B("svg",ON,NN)}const DN=Object.freeze(Object.defineProperty({__proto__:null,render:dc,default:{render:dc}},Symbol.toStringTag,{value:"Module"})),fc=["top","right","bottom","left"],gc=["start","end"],pc=fc.reduce((t,e)=>t.concat(e,e+"-"+gc[0],e+"-"+gc[1]),[]),k3=Math.min,z1=Math.max,B7=Math.round,z7=Math.floor,t9=t=>({x:t,y:t}),PN={left:"right",right:"left",bottom:"top",top:"bottom"},BN={start:"end",end:"start"};function zn(t,e,n){return z1(t,k3(e,n))}function H3(t,e){return typeof t=="function"?t(e):t}function Z3(t){return t.split("-")[0]}function $3(t){return t.split("-")[1]}function Un(t){return t==="x"?"y":"x"}function Wn(t){return t==="y"?"height":"width"}function O9(t){return["top","bottom"].includes(Z3(t))?"y":"x"}function Hn(t){return Un(O9(t))}function mc(t,e,n){n===void 0&&(n=!1);const i=$3(t),s=Hn(t),r=Wn(s);let o=s==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(o=W7(o)),[o,W7(o)]}function zN(t){const e=W7(t);return[U7(t),e,U7(e)]}function U7(t){return t.replace(/start|end/g,e=>BN[e])}function UN(t,e,n){const i=["left","right"],s=["right","left"],r=["top","bottom"],o=["bottom","top"];switch(t){case"top":case"bottom":return n?e?s:i:e?i:s;case"left":case"right":return e?r:o;default:return[]}}function WN(t,e,n,i){const s=$3(t);let r=UN(Z3(t),n==="start",i);return s&&(r=r.map(o=>o+"-"+s),e&&(r=r.concat(r.map(U7)))),r}function W7(t){return t.replace(/left|right|bottom|top/g,e=>PN[e])}function HN(t){return{top:0,right:0,bottom:0,left:0,...t}}function $n(t){return typeof t!="number"?HN(t):{top:t,right:t,bottom:t,left:t}}function y0(t){const{x:e,y:n,width:i,height:s}=t;return{width:i,height:s,top:n,left:e,right:e+i,bottom:n+s,x:e,y:n}}function wc(t,e,n){let{reference:i,floating:s}=t;const r=O9(e),o=Hn(e),l=Wn(o),L=Z3(e),a=r==="y",c=i.x+i.width/2-s.width/2,C=i.y+i.height/2-s.height/2,u=i[l]/2-s[l]/2;let h;switch(L){case"top":h={x:c,y:i.y-s.height};break;case"bottom":h={x:c,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:C};break;case"left":h={x:i.x-s.width,y:C};break;default:h={x:i.x,y:i.y}}switch($3(e)){case"start":h[o]-=u*(n&&a?-1:1);break;case"end":h[o]+=u*(n&&a?-1:1);break}return h}const $N=async(t,e,n)=>{const{placement:i="bottom",strategy:s="absolute",middleware:r=[],platform:o}=n,l=r.filter(Boolean),L=await(o.isRTL==null?void 0:o.isRTL(e));let a=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:c,y:C}=wc(a,i,L),u=i,h={},f=0;for(let w=0;w<l.length;w++){const{name:_,fn:p}=l[w],{x:g,y:m,data:v,reset:Z}=await p({x:c,y:C,initialPlacement:i,placement:u,strategy:s,middlewareData:h,rects:a,platform:o,elements:{reference:t,floating:e}});c=g!=null?g:c,C=m!=null?m:C,h={...h,[_]:{...h[_],...v}},Z&&f<=50&&(f++,typeof Z=="object"&&(Z.placement&&(u=Z.placement),Z.rects&&(a=Z.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:s}):Z.rects),{x:c,y:C}=wc(a,u,L)),w=-1)}return{x:c,y:C,placement:u,strategy:s,middlewareData:h}};async function R0(t,e){var n;e===void 0&&(e={});const{x:i,y:s,platform:r,rects:o,elements:l,strategy:L}=t,{boundary:a="clippingAncestors",rootBoundary:c="viewport",elementContext:C="floating",altBoundary:u=!1,padding:h=0}=H3(e,t),f=$n(h),_=l[u?C==="floating"?"reference":"floating":C],p=y0(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(_)))==null||n?_:_.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(l.floating)),boundary:a,rootBoundary:c,strategy:L})),g=C==="floating"?{x:i,y:s,width:o.floating.width,height:o.floating.height}:o.reference,m=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l.floating)),v=await(r.isElement==null?void 0:r.isElement(m))?await(r.getScale==null?void 0:r.getScale(m))||{x:1,y:1}:{x:1,y:1},Z=y0(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:m,strategy:L}):g);return{top:(p.top-Z.top+f.top)/v.y,bottom:(Z.bottom-p.bottom+f.bottom)/v.y,left:(p.left-Z.left+f.left)/v.x,right:(Z.right-p.right+f.right)/v.x}}const VN=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:s,rects:r,platform:o,elements:l,middlewareData:L}=e,{element:a,padding:c=0}=H3(t,e)||{};if(a==null)return{};const C=$n(c),u={x:n,y:i},h=Hn(s),f=Wn(h),w=await o.getDimensions(a),_=h==="y",p=_?"top":"left",g=_?"bottom":"right",m=_?"clientHeight":"clientWidth",v=r.reference[f]+r.reference[h]-u[h]-r.floating[f],Z=u[h]-r.reference[h],b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a));let k=b?b[m]:0;(!k||!await(o.isElement==null?void 0:o.isElement(b)))&&(k=l.floating[m]||r.floating[f]);const S=v/2-Z/2,V=k/2-w[f]/2-1,D=k3(C[p],V),t2=k3(C[g],V),h2=D,L2=k-w[f]-t2,X=k/2-w[f]/2+S,q=zn(h2,X,L2),z=!L.arrow&&$3(s)!=null&&X!==q&&r.reference[f]/2-(X<h2?D:t2)-w[f]/2<0,n2=z?X<h2?X-h2:X-L2:0;return{[h]:u[h]+n2,data:{[h]:q,centerOffset:X-q-n2,...z&&{alignmentOffset:n2}},reset:z}}});function GN(t,e,n){return(t?[...n.filter(s=>$3(s)===t),...n.filter(s=>$3(s)!==t)]:n.filter(s=>Z3(s)===s)).filter(s=>t?$3(s)===t||(e?U7(s)!==s:!1):!0)}const jN=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,i,s;const{rects:r,middlewareData:o,placement:l,platform:L,elements:a}=e,{crossAxis:c=!1,alignment:C,allowedPlacements:u=pc,autoAlignment:h=!0,...f}=H3(t,e),w=C!==void 0||u===pc?GN(C||null,h,u):u,_=await R0(e,f),p=((n=o.autoPlacement)==null?void 0:n.index)||0,g=w[p];if(g==null)return{};const m=mc(g,r,await(L.isRTL==null?void 0:L.isRTL(a.floating)));if(l!==g)return{reset:{placement:w[0]}};const v=[_[Z3(g)],_[m[0]],_[m[1]]],Z=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:g,overflows:v}],b=w[p+1];if(b)return{data:{index:p+1,overflows:Z},reset:{placement:b}};const k=Z.map(D=>{const t2=$3(D.placement);return[D.placement,t2&&c?D.overflows.slice(0,2).reduce((h2,L2)=>h2+L2,0):D.overflows[0],D.overflows]}).sort((D,t2)=>D[1]-t2[1]),V=((s=k.filter(D=>D[2].slice(0,$3(D[0])?2:3).every(t2=>t2<=0))[0])==null?void 0:s[0])||k[0][0];return V!==l?{data:{index:p+1,overflows:Z},reset:{placement:V}}:{}}}},qN=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:s,middlewareData:r,rects:o,initialPlacement:l,platform:L,elements:a}=e,{mainAxis:c=!0,crossAxis:C=!0,fallbackPlacements:u,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:w=!0,..._}=H3(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const p=Z3(s),g=Z3(l)===l,m=await(L.isRTL==null?void 0:L.isRTL(a.floating)),v=u||(g||!w?[W7(l)]:zN(l));!u&&f!=="none"&&v.push(...WN(l,w,f,m));const Z=[l,...v],b=await R0(e,_),k=[];let S=((i=r.flip)==null?void 0:i.overflows)||[];if(c&&k.push(b[p]),C){const h2=mc(s,o,m);k.push(b[h2[0]],b[h2[1]])}if(S=[...S,{placement:s,overflows:k}],!k.every(h2=>h2<=0)){var V,D;const h2=(((V=r.flip)==null?void 0:V.index)||0)+1,L2=Z[h2];if(L2)return{data:{index:h2,overflows:S},reset:{placement:L2}};let X=(D=S.filter(q=>q.overflows[0]<=0).sort((q,z)=>q.overflows[1]-z.overflows[1])[0])==null?void 0:D.placement;if(!X)switch(h){case"bestFit":{var t2;const q=(t2=S.map(z=>[z.placement,z.overflows.filter(n2=>n2>0).reduce((n2,x2)=>n2+x2,0)]).sort((z,n2)=>z[1]-n2[1])[0])==null?void 0:t2[0];q&&(X=q);break}case"initialPlacement":X=l;break}if(s!==X)return{reset:{placement:X}}}return{}}}};function xc(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function _c(t){return fc.some(e=>t[e]>=0)}const KN=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:i="referenceHidden",...s}=H3(t,e);switch(i){case"referenceHidden":{const r=await R0(e,{...s,elementContext:"reference"}),o=xc(r,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:_c(o)}}}case"escaped":{const r=await R0(e,{...s,altBoundary:!0}),o=xc(r,n.floating);return{data:{escapedOffsets:o,escaped:_c(o)}}}default:return{}}}}};function vc(t){const e=k3(...t.map(r=>r.left)),n=k3(...t.map(r=>r.top)),i=z1(...t.map(r=>r.right)),s=z1(...t.map(r=>r.bottom));return{x:e,y:n,width:i-e,height:s-n}}function YN(t){const e=t.slice().sort((s,r)=>s.y-r.y),n=[];let i=null;for(let s=0;s<e.length;s++){const r=e[s];!i||r.y-i.y>i.height/2?n.push([r]):n[n.length-1].push(r),i=r}return n.map(s=>y0(vc(s)))}const XN=function(t){return t===void 0&&(t={}),{name:"inline",options:t,async fn(e){const{placement:n,elements:i,rects:s,platform:r,strategy:o}=e,{padding:l=2,x:L,y:a}=H3(t,e),c=Array.from(await(r.getClientRects==null?void 0:r.getClientRects(i.reference))||[]),C=YN(c),u=y0(vc(c)),h=$n(l);function f(){if(C.length===2&&C[0].left>C[1].right&&L!=null&&a!=null)return C.find(_=>L>_.left-h.left&&L<_.right+h.right&&a>_.top-h.top&&a<_.bottom+h.bottom)||u;if(C.length>=2){if(O9(n)==="y"){const D=C[0],t2=C[C.length-1],h2=Z3(n)==="top",L2=D.top,X=t2.bottom,q=h2?D.left:t2.left,z=h2?D.right:t2.right,n2=z-q,x2=X-L2;return{top:L2,bottom:X,left:q,right:z,width:n2,height:x2,x:q,y:L2}}const _=Z3(n)==="left",p=z1(...C.map(D=>D.right)),g=k3(...C.map(D=>D.left)),m=C.filter(D=>_?D.left===g:D.right===p),v=m[0].top,Z=m[m.length-1].bottom,b=g,k=p,S=k-b,V=Z-v;return{top:v,bottom:Z,left:b,right:k,width:S,height:V,x:b,y:v}}return u}const w=await r.getElementRects({reference:{getBoundingClientRect:f},floating:i.floating,strategy:o});return s.reference.x!==w.reference.x||s.reference.y!==w.reference.y||s.reference.width!==w.reference.width||s.reference.height!==w.reference.height?{reset:{rects:w}}:{}}}};async function QN(t,e){const{placement:n,platform:i,elements:s}=t,r=await(i.isRTL==null?void 0:i.isRTL(s.floating)),o=Z3(n),l=$3(n),L=O9(n)==="y",a=["left","top"].includes(o)?-1:1,c=r&&L?-1:1,C=H3(e,t);let{mainAxis:u,crossAxis:h,alignmentAxis:f}=typeof C=="number"?{mainAxis:C,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...C};return l&&typeof f=="number"&&(h=l==="end"?f*-1:f),L?{x:h*c,y:u*a}:{x:u*a,y:h*c}}const JN=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,i;const{x:s,y:r,placement:o,middlewareData:l}=e,L=await QN(e,t);return o===((n=l.offset)==null?void 0:n.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:s+L.x,y:r+L.y,data:{...L,placement:o}}}}},eD=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:s}=e,{mainAxis:r=!0,crossAxis:o=!1,limiter:l={fn:_=>{let{x:p,y:g}=_;return{x:p,y:g}}},...L}=H3(t,e),a={x:n,y:i},c=await R0(e,L),C=O9(Z3(s)),u=Un(C);let h=a[u],f=a[C];if(r){const _=u==="y"?"top":"left",p=u==="y"?"bottom":"right",g=h+c[_],m=h-c[p];h=zn(g,h,m)}if(o){const _=C==="y"?"top":"left",p=C==="y"?"bottom":"right",g=f+c[_],m=f-c[p];f=zn(g,f,m)}const w=l.fn({...e,[u]:h,[C]:f});return{...w,data:{x:w.x-n,y:w.y-i}}}}},tD=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:i,placement:s,rects:r,middlewareData:o}=e,{offset:l=0,mainAxis:L=!0,crossAxis:a=!0}=H3(t,e),c={x:n,y:i},C=O9(s),u=Un(C);let h=c[u],f=c[C];const w=H3(l,e),_=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(L){const m=u==="y"?"height":"width",v=r.reference[u]-r.floating[m]+_.mainAxis,Z=r.reference[u]+r.reference[m]-_.mainAxis;h<v?h=v:h>Z&&(h=Z)}if(a){var p,g;const m=u==="y"?"width":"height",v=["top","left"].includes(Z3(s)),Z=r.reference[C]-r.floating[m]+(v&&((p=o.offset)==null?void 0:p[C])||0)+(v?0:_.crossAxis),b=r.reference[C]+r.reference[m]+(v?0:((g=o.offset)==null?void 0:g[C])||0)-(v?_.crossAxis:0);f<Z?f=Z:f>b&&(f=b)}return{[u]:h,[C]:f}}}},nD=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:i,platform:s,elements:r}=e,{apply:o=()=>{},...l}=H3(t,e),L=await R0(e,l),a=Z3(n),c=$3(n),C=O9(n)==="y",{width:u,height:h}=i.floating;let f,w;a==="top"||a==="bottom"?(f=a,w=c===(await(s.isRTL==null?void 0:s.isRTL(r.floating))?"start":"end")?"left":"right"):(w=a,f=c==="end"?"top":"bottom");const _=h-L.top-L.bottom,p=u-L.left-L.right,g=k3(h-L[f],_),m=k3(u-L[w],p),v=!e.middlewareData.shift;let Z=g,b=m;if(C?b=c||v?k3(m,p):p:Z=c||v?k3(g,_):_,v&&!c){const S=z1(L.left,0),V=z1(L.right,0),D=z1(L.top,0),t2=z1(L.bottom,0);C?b=u-2*(S!==0||V!==0?S+V:z1(L.left,L.right)):Z=h-2*(D!==0||t2!==0?D+t2:z1(L.top,L.bottom))}await o({...e,availableWidth:b,availableHeight:Z});const k=await s.getDimensions(r.floating);return u!==k.width||h!==k.height?{reset:{rects:!0}}:{}}}};function A0(t){return Mc(t)?(t.nodeName||"").toLowerCase():"#document"}function T3(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function S4(t){var e;return(e=(Mc(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Mc(t){return t instanceof Node||t instanceof T3(t).Node}function C4(t){return t instanceof Element||t instanceof T3(t).Element}function u4(t){return t instanceof HTMLElement||t instanceof T3(t).HTMLElement}function yc(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof T3(t).ShadowRoot}function z5(t){const{overflow:e,overflowX:n,overflowY:i,display:s}=V3(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(s)}function iD(t){return["table","td","th"].includes(A0(t))}function Vn(t){const e=Gn(),n=V3(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(n.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(n.contain||"").includes(i))}function sD(t){let e=n9(t);for(;u4(e)&&!k0(e);){if(Vn(e))return e;e=n9(e)}return null}function Gn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function k0(t){return["html","body","#document"].includes(A0(t))}function V3(t){return T3(t).getComputedStyle(t)}function H7(t){return C4(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function n9(t){if(A0(t)==="html")return t;const e=t.assignedSlot||t.parentNode||yc(t)&&t.host||S4(t);return yc(e)?e.host:e}function Rc(t){const e=n9(t);return k0(e)?t.ownerDocument?t.ownerDocument.body:t.body:u4(e)&&z5(e)?e:Rc(e)}function U5(t,e,n){var i;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=Rc(t),r=s===((i=t.ownerDocument)==null?void 0:i.body),o=T3(s);return r?e.concat(o,o.visualViewport||[],z5(s)?s:[],o.frameElement&&n?U5(o.frameElement):[]):e.concat(s,U5(s,[],n))}function Ac(t){const e=V3(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const s=u4(t),r=s?t.offsetWidth:n,o=s?t.offsetHeight:i,l=B7(n)!==r||B7(i)!==o;return l&&(n=r,i=o),{width:n,height:i,$:l}}function jn(t){return C4(t)?t:t.contextElement}function Z0(t){const e=jn(t);if(!u4(e))return t9(1);const n=e.getBoundingClientRect(),{width:i,height:s,$:r}=Ac(e);let o=(r?B7(n.width):n.width)/i,l=(r?B7(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const rD=t9(0);function kc(t){const e=T3(t);return!Gn()||!e.visualViewport?rD:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function oD(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==T3(t)?!1:e}function N9(t,e,n,i){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),r=jn(t);let o=t9(1);e&&(i?C4(i)&&(o=Z0(i)):o=Z0(t));const l=oD(r,n,i)?kc(r):t9(0);let L=(s.left+l.x)/o.x,a=(s.top+l.y)/o.y,c=s.width/o.x,C=s.height/o.y;if(r){const u=T3(r),h=i&&C4(i)?T3(i):i;let f=u,w=f.frameElement;for(;w&&i&&h!==f;){const _=Z0(w),p=w.getBoundingClientRect(),g=V3(w),m=p.left+(w.clientLeft+parseFloat(g.paddingLeft))*_.x,v=p.top+(w.clientTop+parseFloat(g.paddingTop))*_.y;L*=_.x,a*=_.y,c*=_.x,C*=_.y,L+=m,a+=v,f=T3(w),w=f.frameElement}}return y0({width:c,height:C,x:L,y:a})}const lD=[":popover-open",":modal"];function qn(t){return lD.some(e=>{try{return t.matches(e)}catch{return!1}})}function LD(t){let{elements:e,rect:n,offsetParent:i,strategy:s}=t;const r=s==="fixed",o=S4(i),l=e?qn(e.floating):!1;if(i===o||l&&r)return n;let L={scrollLeft:0,scrollTop:0},a=t9(1);const c=t9(0),C=u4(i);if((C||!C&&!r)&&((A0(i)!=="body"||z5(o))&&(L=H7(i)),u4(i))){const u=N9(i);a=Z0(i),c.x=u.x+i.clientLeft,c.y=u.y+i.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-L.scrollLeft*a.x+c.x,y:n.y*a.y-L.scrollTop*a.y+c.y}}function aD(t){return Array.from(t.getClientRects())}function Zc(t){return N9(S4(t)).left+H7(t).scrollLeft}function cD(t){const e=S4(t),n=H7(t),i=t.ownerDocument.body,s=z1(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=z1(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let o=-n.scrollLeft+Zc(t);const l=-n.scrollTop;return V3(i).direction==="rtl"&&(o+=z1(e.clientWidth,i.clientWidth)-s),{width:s,height:r,x:o,y:l}}function CD(t,e){const n=T3(t),i=S4(t),s=n.visualViewport;let r=i.clientWidth,o=i.clientHeight,l=0,L=0;if(s){r=s.width,o=s.height;const a=Gn();(!a||a&&e==="fixed")&&(l=s.offsetLeft,L=s.offsetTop)}return{width:r,height:o,x:l,y:L}}function uD(t,e){const n=N9(t,!0,e==="fixed"),i=n.top+t.clientTop,s=n.left+t.clientLeft,r=u4(t)?Z0(t):t9(1),o=t.clientWidth*r.x,l=t.clientHeight*r.y,L=s*r.x,a=i*r.y;return{width:o,height:l,x:L,y:a}}function Tc(t,e,n){let i;if(e==="viewport")i=CD(t,n);else if(e==="document")i=cD(S4(t));else if(C4(e))i=uD(e,n);else{const s=kc(t);i={...e,x:e.x-s.x,y:e.y-s.y}}return y0(i)}function Sc(t,e){const n=n9(t);return n===e||!C4(n)||k0(n)?!1:V3(n).position==="fixed"||Sc(n,e)}function hD(t,e){const n=e.get(t);if(n)return n;let i=U5(t,[],!1).filter(l=>C4(l)&&A0(l)!=="body"),s=null;const r=V3(t).position==="fixed";let o=r?n9(t):t;for(;C4(o)&&!k0(o);){const l=V3(o),L=Vn(o);!L&&l.position==="fixed"&&(s=null),(r?!L&&!s:!L&&l.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||z5(o)&&!L&&Sc(t,o))?i=i.filter(c=>c!==o):s=l,o=n9(o)}return e.set(t,i),i}function dD(t){let{element:e,boundary:n,rootBoundary:i,strategy:s}=t;const o=[...n==="clippingAncestors"?qn(e)?[]:hD(e,this._c):[].concat(n),i],l=o[0],L=o.reduce((a,c)=>{const C=Tc(e,c,s);return a.top=z1(C.top,a.top),a.right=k3(C.right,a.right),a.bottom=k3(C.bottom,a.bottom),a.left=z1(C.left,a.left),a},Tc(e,l,s));return{width:L.right-L.left,height:L.bottom-L.top,x:L.left,y:L.top}}function fD(t){const{width:e,height:n}=Ac(t);return{width:e,height:n}}function gD(t,e,n){const i=u4(e),s=S4(e),r=n==="fixed",o=N9(t,!0,r,e);let l={scrollLeft:0,scrollTop:0};const L=t9(0);if(i||!i&&!r)if((A0(e)!=="body"||z5(s))&&(l=H7(e)),i){const C=N9(e,!0,r,e);L.x=C.x+e.clientLeft,L.y=C.y+e.clientTop}else s&&(L.x=Zc(s));const a=o.left+l.scrollLeft-L.x,c=o.top+l.scrollTop-L.y;return{x:a,y:c,width:o.width,height:o.height}}function Kn(t){return V3(t).position==="static"}function bc(t,e){return!u4(t)||V3(t).position==="fixed"?null:e?e(t):t.offsetParent}function Ec(t,e){const n=T3(t);if(qn(t))return n;if(!u4(t)){let s=n9(t);for(;s&&!k0(s);){if(C4(s)&&!Kn(s))return s;s=n9(s)}return n}let i=bc(t,e);for(;i&&iD(i)&&Kn(i);)i=bc(i,e);return i&&k0(i)&&Kn(i)&&!Vn(i)?n:i||sD(t)||n}const pD=async function(t){const e=this.getOffsetParent||Ec,n=this.getDimensions,i=await n(t.floating);return{reference:gD(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function mD(t){return V3(t).direction==="rtl"}const wD={convertOffsetParentRelativeRectToViewportRelativeRect:LD,getDocumentElement:S4,getClippingRect:dD,getOffsetParent:Ec,getElementRects:pD,getClientRects:aD,getDimensions:fD,getScale:Z0,isElement:C4,isRTL:mD};function xD(t,e){let n=null,i;const s=S4(t);function r(){var l;clearTimeout(i),(l=n)==null||l.disconnect(),n=null}function o(l,L){l===void 0&&(l=!1),L===void 0&&(L=1),r();const{left:a,top:c,width:C,height:u}=t.getBoundingClientRect();if(l||e(),!C||!u)return;const h=z7(c),f=z7(s.clientWidth-(a+C)),w=z7(s.clientHeight-(c+u)),_=z7(a),g={rootMargin:-h+"px "+-f+"px "+-w+"px "+-_+"px",threshold:z1(0,k3(1,L))||1};let m=!0;function v(Z){const b=Z[0].intersectionRatio;if(b!==L){if(!m)return o();b?o(!1,b):i=setTimeout(()=>{o(!1,1e-7)},1e3)}m=!1}try{n=new IntersectionObserver(v,{...g,root:s.ownerDocument})}catch{n=new IntersectionObserver(v,g)}n.observe(t)}return o(!0),r}function _D(t,e,n,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:r=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:L=!1}=i,a=jn(t),c=s||r?[...a?U5(a):[],...U5(e)]:[];c.forEach(p=>{s&&p.addEventListener("scroll",n,{passive:!0}),r&&p.addEventListener("resize",n)});const C=a&&l?xD(a,n):null;let u=-1,h=null;o&&(h=new ResizeObserver(p=>{let[g]=p;g&&g.target===a&&h&&(h.unobserve(e),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var m;(m=h)==null||m.observe(e)})),n()}),a&&!L&&h.observe(a),h.observe(e));let f,w=L?N9(t):null;L&&_();function _(){const p=N9(t);w&&(p.x!==w.x||p.y!==w.y||p.width!==w.width||p.height!==w.height)&&n(),w=p,f=requestAnimationFrame(_)}return n(),()=>{var p;c.forEach(g=>{s&&g.removeEventListener("scroll",n),r&&g.removeEventListener("resize",n)}),C==null||C(),(p=h)==null||p.disconnect(),h=null,L&&cancelAnimationFrame(f)}}const vD=JN,MD=jN,yD=eD,RD=qN,AD=KN,kD=VN,ZD=(t,e,n)=>{const i=new Map,s={platform:wD,...n},r={...s.platform,_c:i};return $N(t,e,{...s,platform:r})};function TD(t){return Ic(t)?(t.nodeName||"").toLowerCase():"#document"}function SD(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ic(t){return t instanceof Node||t instanceof SD(t).Node}function bD(t){return t!=null&&typeof t=="object"&&"$el"in t}function Yn(t){if(bD(t)){const e=t.$el;return Ic(e)&&TD(e)==="#comment"?null:e}return t}function ED(t){return{name:"arrow",options:t,fn(e){const n=Yn(N(t.element));return n==null?{}:kD({element:n,padding:t.padding}).fn(e)}}}function Fc(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Oc(t,e){const n=Fc(t);return Math.round(e*n)/n}function ID(t,e,n){n===void 0&&(n={});const i=n.whileElementsMounted,s=F(()=>{var k;return(k=N(n.open))!=null?k:!0}),r=F(()=>N(n.middleware)),o=F(()=>{var k;return(k=N(n.placement))!=null?k:"bottom"}),l=F(()=>{var k;return(k=N(n.strategy))!=null?k:"absolute"}),L=F(()=>{var k;return(k=N(n.transform))!=null?k:!0}),a=F(()=>Yn(t.value)),c=F(()=>Yn(e.value)),C=C2(0),u=C2(0),h=C2(l.value),f=C2(o.value),w=l8({}),_=C2(!1),p=F(()=>{const k={position:h.value,left:"0",top:"0"};if(!c.value)return k;const S=Oc(c.value,C.value),V=Oc(c.value,u.value);return L.value?{...k,transform:"translate("+S+"px, "+V+"px)",...Fc(c.value)>=1.5&&{willChange:"transform"}}:{position:h.value,left:S+"px",top:V+"px"}});let g;function m(){a.value==null||c.value==null||ZD(a.value,c.value,{middleware:r.value,placement:o.value,strategy:l.value}).then(k=>{C.value=k.x,u.value=k.y,h.value=k.strategy,f.value=k.placement,w.value=k.middlewareData,_.value=!0})}function v(){typeof g=="function"&&(g(),g=void 0)}function Z(){if(v(),i===void 0){m();return}if(a.value!=null&&c.value!=null){g=i(a.value,c.value,m);return}}function b(){s.value||(_.value=!1)}return a1([r,o,l],m,{flush:"sync"}),a1([a,c],Z,{flush:"sync"}),a1(s,b,{flush:"sync"}),ui()&&hi(v),{x:o9(C),y:o9(u),strategy:o9(h),placement:o9(f),middlewareData:o9(w),isPositioned:o9(_),floatingStyles:p,update:m}}var FD=Object.defineProperty,OD=(t,e,n)=>e in t?FD(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ND=(t,e,n)=>(OD(t,typeof e!="symbol"?e+"":e,n),n);function W5(t){return t==null||t.value==null?null:t.value instanceof Node?t.value:"$el"in t.value&&t.value.$el?W5(C2(t.value.$el)):"getBoundingClientRect"in t.value?t.value:null}function Nc(t){return t.reduce((e,n)=>n.type===z2?e.concat(Nc(n.children)):e.concat(n),[])}function DD(t){return t==null?!1:typeof t.type=="string"||typeof t.type=="object"||typeof t.type=="function"}function Dc(t){return t=N(t),t&&(t==null?void 0:t.nodeType)!==Node.COMMENT_NODE}class PD{constructor(){ND(this,"current",this.detect())}set(e){this.current!==e&&(this.current=e)}reset(){this.set(this.detect())}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}}const Xn=new PD;function BD(t){if(Xn.isServer)return null;if(t instanceof Node)return t.ownerDocument;if(Object.prototype.hasOwnProperty.call(t,"value")){const e=W5(t);if(e)return e.ownerDocument}return document}function zD(t,e){!e.vueTransition&&(e.transitionName||e.transitionType)&&console.warn(`[headlessui-float]: <${t} /> pass "transition-name" or "transition-type" prop, must be set "vue-transition" prop.`)}function UD(t,e,n,i,s){a1([()=>s.offset,()=>s.flip,()=>s.shift,()=>s.autoPlacement,()=>s.arrow,()=>s.hide,()=>s.middleware],()=>{const r=[];(typeof s.offset=="number"||typeof s.offset=="object"||typeof s.offset=="function")&&r.push(vD(s.offset)),(s.flip===!0||typeof s.flip=="number"||typeof s.flip=="object")&&r.push(RD({padding:typeof s.flip=="number"?s.flip:void 0,...typeof s.flip=="object"?s.flip:{}})),(s.shift===!0||typeof s.shift=="number"||typeof s.shift=="object")&&r.push(yD({padding:typeof s.shift=="number"?s.shift:void 0,...typeof s.shift=="object"?s.shift:{}})),(s.autoPlacement===!0||typeof s.autoPlacement=="object")&&r.push(MD(typeof s.autoPlacement=="object"?s.autoPlacement:void 0)),r.push(...typeof s.middleware=="function"?s.middleware({referenceEl:e,floatingEl:n}):s.middleware||[]),(s.arrow===!0||typeof s.arrow=="number")&&r.push(ED({element:i,padding:s.arrow===!0?0:s.arrow})),(s.hide===!0||typeof s.hide=="object"||Array.isArray(s.hide))&&(Array.isArray(s.hide)?s.hide:[s.hide]).forEach(o=>{r.push(AD(typeof o=="object"?o:void 0))}),t.value=r},{immediate:!0})}function WD(t,e,n){let i=()=>{};e1(()=>{if(t&&Xn.isClient&&typeof ResizeObserver<"u"&&e.value&&e.value instanceof Element){const s=new ResizeObserver(([r])=>{n.value=r.borderBoxSize.reduce((o,{inlineSize:l})=>o+l,0)});s.observe(e.value),i=()=>{s.disconnect(),n.value=null}}}),J9(()=>{i()})}const HD=t=>{switch(t){case"top":return"origin-bottom";case"bottom":return"origin-top";case"left":return"origin-right";case"right":return"origin-left";case"top-start":case"right-end":return"origin-bottom-left";case"top-end":case"left-end":return"origin-bottom-right";case"right-start":case"bottom-start":return"origin-top-left";case"left-start":case"bottom-end":return"origin-top-right";default:return"origin-center"}};function $D(t,e){const n=F(()=>{if(typeof t.originClass=="function")return t.originClass(e.value);if(typeof t.originClass=="string")return t.originClass;if(t.tailwindcssOriginClass)return HD(e.value)}),i=F(()=>t.enter||n.value?`${t.enter||""} ${n.value||""}`:void 0),s=F(()=>t.leave||n.value?`${t.leave||""} ${n.value||""}`:void 0);return{originClassRef:n,enterActiveClassRef:i,leaveActiveClassRef:s}}function Pc(t,e,...n){if(t in e){const s=e[t];return typeof s=="function"?s(...n):s}const i=new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(s=>`"${s}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,Pc),i}const Bc=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(t=>`${t}:not([tabindex='-1'])`).join(",");var zc=(t=>(t[t.Strict=0]="Strict",t[t.Loose=1]="Loose",t))(zc||{});function VD(t,e=0){var n;return t===((n=BD(t))==null?void 0:n.body)?!1:Pc(e,{0(){return t.matches(Bc)},1(){let i=t;for(;i!==null;){if(i.matches(Bc))return!0;i=i.parentElement}return!1}})}function Qn(t,e,n){Xn.isServer||L3(i=>{document.addEventListener(t,e,n),i(()=>document.removeEventListener(t,e,n))})}function GD(t,e,n=F(()=>!0)){function i(r,o){if(!n.value||r.defaultPrevented)return;const l=o(r);if(l===null||!l.getRootNode().contains(l))return;const L=function a(c){return typeof c=="function"?a(c()):Array.isArray(c)||c instanceof Set?c:[c]}(t);for(const a of L){if(a===null)continue;const c=a instanceof HTMLElement?a:W5(a);if(c!=null&&c.contains(l)||r.composed&&r.composedPath().includes(c))return}return!VD(l,zc.Loose)&&l.tabIndex!==-1&&r.preventDefault(),e(r,l)}const s=C2(null);Qn("mousedown",r=>{var o,l;n.value&&(s.value=((l=(o=r.composedPath)==null?void 0:o.call(r))==null?void 0:l[0])||r.target)},!0),Qn("click",r=>{s.value&&(i(r,()=>s.value),s.value=null)},!0),Qn("blur",r=>i(r,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}const jD=Symbol("ArrowContext"),Z2={as:{type:[String,Function],default:"template"},floatingAs:{type:[String,Function],default:"div"},show:{type:Boolean,default:null},placement:{type:String,default:"bottom-start"},strategy:{type:String,default:"absolute"},offset:[Number,Function,Object],shift:{type:[Boolean,Number,Object],default:!1},flip:{type:[Boolean,Number,Object],default:!1},arrow:{type:[Boolean,Number],default:!1},autoPlacement:{type:[Boolean,Object],default:!1},hide:{type:[Boolean,Object,Array],default:!1},referenceHiddenClass:String,escapedClass:String,autoUpdate:{type:[Boolean,Object],default:!0},zIndex:{type:[Number,String],default:9999},vueTransition:{type:Boolean,default:!1},transitionName:String,transitionType:String,enter:String,enterFrom:String,enterTo:String,leave:String,leaveFrom:String,leaveTo:String,originClass:[String,Function],tailwindcssOriginClass:{type:Boolean,default:!1},portal:{type:Boolean,default:!1},transform:{type:Boolean,default:!1},adaptiveWidth:{type:[Boolean,Object],default:!1},composable:{type:Boolean,default:!1},dialog:{type:Boolean,default:!1},middleware:{type:[Array,Function],default:()=>[]}};function qD(t,e,n,i){const{floatingRef:s,props:r,mounted:o,show:l,referenceHidden:L,escaped:a,placement:c,floatingStyles:C,referenceElWidth:u,updateFloating:h}=i,f=x9({...r,as:r.floatingAs},e),{enterActiveClassRef:w,leaveActiveClassRef:_}=$D(f,c),p={show:o.value?f.show:!1,enter:w.value,enterFrom:f.enterFrom,enterTo:f.enterTo,leave:_.value,leaveFrom:f.leaveFrom,leaveTo:f.leaveTo,onBeforeEnter(){l.value=!0},onAfterLeave(){l.value=!1}},g={name:f.transitionName,type:f.transitionType,appear:!0,...f.transitionName?{}:{enterActiveClass:w.value,enterFromClass:f.enterFrom,enterToClass:f.enterTo,leaveActiveClass:_.value,leaveFromClass:f.leaveFrom,leaveToClass:f.leaveTo},onBeforeEnter(){l.value=!0},onAfterLeave(){l.value=!1}},m={class:[L.value?f.referenceHiddenClass:void 0,a.value?f.escapedClass:void 0].filter(k=>!!k).join(" "),style:{...C.value,zIndex:f.zIndex}};if(f.adaptiveWidth&&typeof u.value=="number"){const k={attribute:"width",...typeof f.adaptiveWidth=="object"?f.adaptiveWidth:{}};m.style[k.attribute]=`${u.value}px`}function v(k){return f.portal?o.value?r1(an,()=>k):g2():k}function Z(k){const S=x9(m,n,f.dialog?{}:{ref:s});return f.as==="template"?k:typeof f.as=="string"?r1(f.as,S,k):r1(f.as,S,()=>k)}function b(){function k(){var S;const V=f.as==="template"?x9(m,n,f.dialog?{}:{ref:s}):null,D=w3(t,V);return((S=t.props)==null?void 0:S.unmount)===!1?(h(),D):f.vueTransition&&f.show===!1?g2():D}return o.value?f.vueTransition?r1(n0,{...f.dialog?{ref:s}:{},...g},k):r1(f.transitionChild?T7:mn,{key:`placement-${c.value}`,...f.dialog?{ref:s}:{},as:"template",...p},k):g2()}return v(Z(b()))}function KD(t,e,n,i,s){const r=C2(!1),o=L8(i,"placement"),l=L8(i,"strategy"),L=l8({}),a=C2(void 0),c=C2(void 0),C=C2(null),u=C2(void 0),h=C2(void 0),f=F(()=>W5(e)),w=F(()=>W5(n)),_=F(()=>Dc(f)&&Dc(w)),{placement:p,middlewareData:g,isPositioned:m,floatingStyles:v,update:Z}=ID(f,w,{placement:o,strategy:l,middleware:L,transform:i.dialog?!1:i.transform,whileElementsMounted:i.dialog?()=>()=>{}:void 0}),b=C2(null);e1(()=>{r.value=!0}),a1(t,(h2,L2)=>{h2&&!L2?s("show"):!h2&&L2&&s("hide")},{immediate:!0});function k(){_.value&&(Z(),s("update"))}a1([o,l,L],k,{flush:"sync"}),UD(L,f,w,C,i),a1([g,()=>i.hide,m],()=>{var h2,L2;(i.hide===!0||typeof i.hide=="object"||Array.isArray(i.hide))&&(a.value=((h2=g.value.hide)==null?void 0:h2.referenceHidden)||!m.value,c.value=(L2=g.value.hide)==null?void 0:L2.escaped)}),a1(g,()=>{const h2=g.value.arrow;u.value=h2==null?void 0:h2.x,h.value=h2==null?void 0:h2.y}),WD(!!i.adaptiveWidth,f,b),a1([t,_],async(h2,L2,X)=>{if(await w4(),t.value&&_.value&&i.autoUpdate){const q=_D(f.value,w.value,k,typeof i.autoUpdate=="object"?i.autoUpdate:void 0);X(q)}},{flush:"post",immediate:!0});const S=C2(!0);a1(f,()=>{!(f.value instanceof Element)&&_.value&&S.value&&(S.value=!1,window.requestAnimationFrame(()=>{S.value=!0,k()}))},{flush:"sync"});const V={referenceRef:e,placement:p},D={floatingRef:n,props:i,mounted:r,show:t,referenceHidden:a,escaped:c,placement:p,floatingStyles:v,referenceElWidth:b,updateFloating:k},t2={ref:C,placement:p,x:u,y:h};return V1(jD,t2),{referenceApi:V,floatingApi:D,arrowApi:t2,placement:p,referenceEl:f,floatingEl:w,middlewareData:g,update:k}}({...Z2.as});const YD={as:Z2.as,show:Z2.show,placement:Z2.placement,strategy:Z2.strategy,offset:Z2.offset,shift:Z2.shift,flip:Z2.flip,arrow:Z2.arrow,autoPlacement:Z2.autoPlacement,autoUpdate:Z2.autoUpdate,zIndex:Z2.zIndex,vueTransition:Z2.vueTransition,transitionName:Z2.transitionName,transitionType:Z2.transitionType,enter:Z2.enter,enterFrom:Z2.enterFrom,enterTo:Z2.enterTo,leave:Z2.leave,leaveFrom:Z2.leaveFrom,leaveTo:Z2.leaveTo,originClass:Z2.originClass,tailwindcssOriginClass:Z2.tailwindcssOriginClass,portal:Z2.portal,transform:Z2.transform,middleware:Z2.middleware},XD={name:"FloatVirtual",inheritAttrs:!1,props:YD,emits:["initial","show","hide","update"],setup(t,{emit:e,slots:n,attrs:i}){var c;zD("FloatVirtual",t);const s=C2((c=t.show)!=null?c:!1),r=C2({getBoundingClientRect(){return{x:0,y:0,top:0,left:0,bottom:0,right:0,width:0,height:0}}}),o=C2(null),{floatingApi:l,placement:L}=KD(s,r,o,t,e);a1(()=>t.show,()=>{var C;s.value=(C=t.show)!=null?C:!1});function a(){s.value=!1}return e("initial",{show:s,placement:L,reference:r,floating:o}),()=>{if(!n.default)return;const C={placement:L.value,close:a},[u]=Nc(n.default(C)).filter(DD);return qD(u,{as:t.as,show:s.value},i,l)}}};Z2.as,Z2.placement,Z2.strategy,Z2.offset,Z2.shift,{...Z2.flip},Z2.arrow,Z2.autoPlacement,Z2.autoUpdate,Z2.zIndex,Z2.vueTransition,Z2.transitionName,Z2.transitionType,Z2.enter,Z2.enterFrom,Z2.enterTo,Z2.leave,Z2.leaveFrom,Z2.leaveTo,Z2.originClass,Z2.tailwindcssOriginClass,Z2.transform,Z2.middleware;const QD={class:"flex bg-white shadow-md z-10 rounded-md p-1"},JD=["onClick"],eP=Object.freeze(Object.defineProperty({__proto__:null,default:X2({__name:"StylePanel",setup(t){const e=C2({value:null}),n=S1(),i=F(()=>n.getters.onContentChange||(()=>{})),s=F(()=>$t(n.getters.diagramElement)+_l),r=F(()=>n.getters.code),o=C=>{n.dispatch("updateCode",{code:C}),i.value(C)},l=C2([]);let L;const a=({show:C,reference:u,floating:h})=>{let f,w,_,p,g,m;n.commit("onMessageClick",(v,Z)=>{var b;if(f=v.value.start.start,w=Ot(r.value,f),_=Zp(r.value,f),p=((b=r.value.slice(w).match(/^\s*/))==null?void 0:b[0])||"",g=_.trim().startsWith("//"),g){const k=_.trimStart().slice(2).trimStart(),S=k.indexOf("["),V=k.indexOf("]");m=Boolean(S===0&&V),m?l.value=k.slice(S+1,V).split(",").map(D=>D.trim()):l.value=[]}u.value={getBoundingClientRect:()=>Z.getBoundingClientRect()},e.value=v,C.value=!0}),GD(h,()=>{C.value=!1,l.value=[]},F(()=>C.value)),L=v=>{var Z;if(C.value=!1,!!e.value.value)if(g){let b="";if(m){let k;l.value.includes(v)?k=l.value.filter(S=>S!==v):k=[...l.value,v],b=`${p}// [${k.filter(Boolean).join(", ")}] ${_.slice(_.indexOf("]")+1).trimStart()}`}else b=`${p}// [${v}] ${_.slice((((Z=_.match(/\/\/*/))==null?void 0:Z.index)||-2)+2).trimStart()}`;b.endsWith(`
@@ -1,4 +1,4 @@
1
- import { o as c, c as e, a as o } from "./core.52cfe7c6.js";
1
+ import { o as c, c as e, a as o } from "./core.81dce1c8.js";
2
2
  const s = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  viewBox: "0 0 1024 1024"
@@ -20,4 +20,4 @@ export {
20
20
  _ as default,
21
21
  l as render
22
22
  };
23
- //# sourceMappingURL=zoom-in.55c8acb9.js.map
23
+ //# sourceMappingURL=zoom-in.42c2ce97.js.map
@@ -1,4 +1,4 @@
1
- import { o as t, c, a as o } from "./core.52cfe7c6.js";
1
+ import { o as t, c, a as o } from "./core.81dce1c8.js";
2
2
  const e = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  viewBox: "0 0 1024 1024"
@@ -20,4 +20,4 @@ export {
20
20
  h as default,
21
21
  s as render
22
22
  };
23
- //# sourceMappingURL=zoom-out.f5b01a6e.js.map
23
+ //# sourceMappingURL=zoom-out.ebc6179a.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenuml/core",
3
- "version": "3.24.19",
3
+ "version": "3.24.20",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "repository": {