@zenuml/core 3.23.11 → 3.23.12
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/{StylePanel.85313c56.js → StylePanel.3d4e665f.js} +2 -2
- package/dist/{close.a507b2a6.js → close.ea3d38c2.js} +2 -2
- package/dist/{collapse-expanded.688b663f.js → collapse-expanded.eef91e0f.js} +2 -2
- package/dist/{collapse-unexpanded.6fe3ff05.js → collapse-unexpanded.7e6a99fa.js} +2 -2
- package/dist/{core.f16ac481.js → core.6d6052eb.js} +4 -4
- package/dist/{debug.5805c38c.js → debug.61922298.js} +2 -2
- package/dist/{message-arrow.65bd8a20.js → message-arrow.c2d73269.js} +2 -2
- package/dist/{non-selected-cycle.bf8de14b.js → non-selected-cycle.fe4fc9bc.js} +2 -2
- package/dist/{numbering.040b24ae.js → numbering.f85c36fe.js} +2 -2
- package/dist/{privacy.a08063bf.js → privacy.3a6f886e.js} +2 -2
- package/dist/{selected-cycle.4a0ed4f9.js → selected-cycle.0e4ad2a4.js} +2 -2
- package/dist/{theme.659782eb.js → theme.0c1703d7.js} +2 -2
- package/dist/{tip.0be1e41b.js → tip.bf17baf6.js} +2 -2
- package/dist/zenuml.esm.mjs +1 -1
- package/dist/zenuml.js +1 -1
- package/dist/{zoom-in.181e4429.js → zoom-in.dc2e27ff.js} +2 -2
- package/dist/{zoom-out.74ebea8d.js → zoom-out.3c3e350c.js} +2 -2
- package/package.json +1 -1
package/dist/zenuml.js
CHANGED
|
@@ -3349,7 +3349,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`),Q3=z,l1=C2);const v1={
|
|
|
3349
3349
|
<span class="http-method-${n[1].toLowerCase()}">${n[1]}</span>
|
|
3350
3350
|
<span class="http-path">${n[2]}</span>
|
|
3351
3351
|
</code>
|
|
3352
|
-
`:`<code>${t}</code>`}};x2.setOptions({highlight:function(t,e){if(!e)return h9.highlightAuto(t).value;const n=h9.getLanguage(e)?e:"plaintext";return h9.highlight(n,t).value},breaks:!0}),x2.use({renderer:LN});const aN={name:"comment",props:["comment","commentObj"],computed:{markedComment(){var t,e;return((t=this.commentObj)==null?void 0:t.text)&&x2.parse((e=this.commentObj)==null?void 0:e.text)||this.comment&&x2.parse(this.comment)},commentStyle(){var t;return(t=this.commentObj)==null?void 0:t.commentStyle},classNames(){var t;return(t=this.commentObj)==null?void 0:t.commentClassNames}}},cN={class:"comments text-skin-comment min-w-[100px] flex text-left text-sm opacity-50 hover:opacity-100"},CN=["innerHTML"];function uN(t,e,n,i,s,r){return I(),$("div",cN,[A("div",{innerHTML:r.markedComment,class:M2(r.classNames),style:y2(r.commentStyle)},null,14,CN)])}const p5=j2(aN,[["render",uN],["__scopeId","data-v-49a61c68"]]),WW="",hN={props:["collapsed"],emits:["click"]},dN={class:"collapsible-header"},fN=[a8('<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)],gN=[a8('<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 pN(t,e,n,i,s,r){return I(),$("div",dN,[(I(),$("svg",{width:"20px",height:"20px",class:M2([{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"},fN,2)),(I(),$("svg",{width:"20px",height:"20px",class:M2([{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"},gN,2))])}const mN=j2(hN,[["render",pN],["__scopeId","data-v-175097b8"]]),GW="",jW="",wN={name:"occurrence",props:["context","selfCallIndent","participant","rtl","number"],data:function(){return{center:0,collapsed:!1}},computed:{...M3(["centerOf","messageLayerLeft"]),...n9(["code"]),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,vt.$emit("participant_set_top")}},components:{CollapseButton:mN},watch:{context(){this.collapsed&&(this.collapsed=!1)}}},xN=["data-belongs-to","data-x-offset","data-debug-center-of"];function vN(t,e,n,i,s,r){const o=p2("collapse-button"),l=p2("block");return I(),$("div",{class:M2(["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.hasAnyStatementsExceptReturn?(I(),k2(o,{key:0,collapsed:t.collapsed,onClick:this.toggle},null,8,["collapsed","onClick"])):m2("",!0),this.context.braceBlock()?(I(),k2(l,{key:1,context:n.context.braceBlock().block(),selfCallIndent:n.selfCallIndent,number:n.number,collapsed:t.collapsed,inheritFromOccurrence:!0},null,8,["context","selfCallIndent","number","collapsed"])):m2("",!0)],10,xN)}const ba=j2(wN,[["render",vN],["__scopeId","data-v-3ef58b46"]]);class o0{constructor(e,n,i,s){J(this,"start");J(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 o0(n.line,n.column,i.line,i.column+i.text.length)}}const Sa=h0.child({name:"Creation"}),_N={name:"creation",props:["context","comment","commentObj","selfCallIndent","number"],computed:{...M3(["cursor","onElementClick","distance"]),...n9(["numbering"]),from(){return this.context.Origin()},creation(){return this.context.creation()},interactionWidth(){let t=Math.abs(this.distance(this.to,this.from)),e=this.selfCallIndent||0;return t+(this.rightToLeft?e:-e)},rightToLeft(){return this.distance(this.to,this.from)<0},signature(){return this.creation.SignatureText()},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(),Sa.log(`mounted for ${this.to}`)},updated(){this.layoutMessageContainer(),Sa.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(o0.from(this.context))}},components:{Participant:rL,Comment:p5,Occurrence:ba,Message:l5}},MN=["data-signature"],yN=["data-to"],RN={ref:"participantPlaceHolder",class:"invisible right-0 flex flex-col justify-center flex-shrink-0"};function ZN(t,e,n,i,s,r){var c;const o=p2("comment"),l=p2("message"),L=p2("participant"),a=p2("occurrence");return I(),$("div",{class:M2(["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]=D0((...C)=>r.onClick&&r.onClick(...C),["stop"])),"data-signature":r.signature,style:y2({width:r.interactionWidth+"px"})},[n.comment?(I(),k2(o,{key:0,commentObj:n.commentObj},null,8,["commentObj"])):m2("",!0),A("div",{ref:"messageContainer","data-type":"creation",class:M2(["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"]),A("div",RN,[G(L,{entity:{name:r.to}},null,8,["entity"])],512)],10,yN),G(a,{context:r.creation,class:"pointer-events-auto",participant:r.to,number:n.number},null,8,["context","participant","number"]),r.assignee?(I(),k2(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"])):m2("",!0)],14,MN)}const AN=j2(_N,[["render",ZN]]),kN={class:"name group px-px hover:text-skin-message-hover hover:bg-skin-message-hover relative min-h-[1em] w-full"},bN={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500"},SN=A("svg",{class:"arrow text-skin-message-arrow",width:"30",height:"24"},[A("polyline",{class:"line stroke-current fill-none stroke-2",points:"0,2 28,2 28,15 14,15"}),A("polyline",{class:"head stroke-current fill-current stroke-2",points:"18,9 8,15 18,21"})],-1),TN=$2({__name:"SelfInvocation",props:{context:null,number:null,textStyle:null,classNames:null},setup(t){const e=t,{context:n}=z4(e),i=H1(),s=O(()=>i.state.numbering),r=i2(),o=O(()=>{const a=n==null?void 0:n.value.messageBody();return[a.start.start,a.stop.stop]}),l=O(()=>n==null?void 0:n.value.messageBody().getFormattedText()),L=()=>{i.getters.onMessageClick(n,r.value)};return(a,c)=>(I(),$("div",{class:"message self text-sm flex items-start flex-col",style:{"border-width":"0"},onClick:L,ref_key:"messageRef",ref:r},[A("label",kN,[D(s)?(I(),$("div",bN,H2(t.number),1)):m2("",!0),A("div",{style:y2(t.textStyle),class:M2(t.classNames)},[G(Ft,{labelText:D(l),labelPosition:D(o),isSelf:!0},null,8,["labelText","labelPosition"])],6)]),SN],512))}}),qW="",IN={name:"interaction",props:["context","selfCallIndent","commentObj","number"],computed:{...M3(["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 DM},origin:function(){var t;return(t=this.context)==null?void 0:t.Origin()},passOnOffset:function(){return this.isSelf&&!this.isRootBlock?(this.selfCallIndent||0)+6: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)},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(o0.from(this.context))}},components:{Message:l5,SelfInvocation:TN,Comment:p5,Occurrence:ba}},EN=["data-to","data-signature"];function FN(t,e,n,i,s,r){var c;const o=p2("comment"),l=p2("self-invocation"),L=p2("message"),a=p2("occurrence");return I(),$("div",{class:M2(["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]=D0((...C)=>r.onClick&&r.onClick(...C),["stop"])),"data-to":r.to,"data-type":"interaction","data-signature":r.signature,style:y2({width:!r.isSelf&&r.interactionWidth+"px",transform:"translateX("+r.translateX+"px)"})},[r.showStarter&&r.isRootBlock||r.outOfBand?(I(),$("div",{key:0,class:M2(["occurrence source border-2",{"right-to-left":r.rightToLeft}])},null,2)):m2("",!0),r.hasComment?(I(),k2(o,{key:1,commentObj:n.commentObj},null,8,["commentObj"])):m2("",!0),r.isSelf?(I(),k2(l,{key:2,classNames:r.messageClassNames,textStyle:r.messageTextStyle,context:r.message,number:`${n.number}`},null,8,["classNames","textStyle","context","number"])):(I(),k2(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(),k2(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"])):m2("",!0)],14,EN)}const ON=j2(IN,[["render",FN],["__scopeId","data-v-3bc6eae5"]]),DN=t=>(R0("data-v-ecfb84d4"),t=t(),Z0(),t),NN={class:"message self flex items-start flex-col",style:{"border-width":"0"}},BN={class:"name group px-px hover:text-skin-message-hover hover:bg-skin-message-hover min-h-[1em]"},PN={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500"},zN=DN(()=>A("svg",{class:"arrow text-skin-message-arrow",width:"34",height:"34"},[A("polyline",{class:"stroke-current stroke-2 fill-none",points:"0,2 28,2 28,25 1,25"}),A("polyline",{class:"head stroke-current stroke-2 fill-none",points:"11,19 1,25 11,31"})],-1)),UN=$2({__name:"SelfInvocation-async",props:{context:null,number:null,textStyle:null,classNames:null},setup(t){const e=t,{context:n}=z4(e),i=H1(),s=O(()=>i.state.numbering),r=O(()=>{if(!(n!=null&&n.value))return[-1,-1];const l=n==null?void 0:n.value.content();return[l.start.start,l.stop.stop]}),o=O(()=>n==null?void 0:n.value.content().getFormattedText());return(l,L)=>(I(),$("div",NN,[A("label",BN,[D(s)?(I(),$("div",PN,H2(t.number),1)):m2("",!0),G(Ft,{labelText:D(o),labelPosition:D(r),isAsync:!0,isSelf:!0},null,8,["labelText","labelPosition"])]),zN]))}}),KW="",$N=j2(UN,[["__scopeId","data-v-ecfb84d4"]]),YW="";function dn(t){return t==null}const WN={name:"interaction-async",props:["context","comment","commentObj","selfCallIndent","number"],computed:{...M3(["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()},isCurrent:function(){const t=this.asyncMessage.start.start,e=this.asyncMessage.stop.stop+1;return dn(this.cursor)||dn(t)||dn(e)?!1:this.cursor>=t&&this.cursor<=e},isSelf:function(){return this.source===this.target},providedFrom:function(){var t,e;return(e=(t=this.context)==null?void 0:t.asyncMessage())==null?void 0:e.From()},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},isToOccurrence(){return this.parentCtxIncludeMessage(this.asyncMessage)},isInitedFromOccurrence:function(){var t;return(t=this.message)==null?void 0:t.isInitedFromOccurrence(this.context)}},methods:{onClick(){this.onElementClick(o0.from(this.context))},parentCtxIncludeMessage(t){const e=t.Owner();if(!e)return!1;for(t=t==null?void 0:t.parentCtx;t;){if(t.To&&t.To()===e)return!0;t=t.parentCtx}return!1}},components:{Comment:p5,SelfInvocationAsync:$N,Message:l5}},HN=["data-signature"];function VN(t,e,n,i,s,r){const o=p2("comment"),l=p2("self-invocation-async"),L=p2("message");return I(),$("div",{class:M2(["interaction async",{"to-occurrence":r.isToOccurrence,"right-to-left":r.rightToLeft,"from-no-occurrence":r.providedFrom&&r.providedFrom!==r.origin,highlight:r.isCurrent,"inited-from-occurrence":r.isInitedFromOccurrence,"self-invocation":r.isSelf}]),onClick:e[0]||(e[0]=D0((...a)=>r.onClick&&r.onClick(...a),["stop"])),"data-signature":r.signature,style:y2({width:r.interactionWidth+"px",transform:"translateX("+r.translateX+"px)"})},[n.comment?(I(),k2(o,{key:0,commentObj:n.commentObj},null,8,["commentObj"])):m2("",!0),r.isSelf?(I(),k2(l,{key:1,classNames:r.messageClassNames,textStyle:r.messageTextStyle,context:r.asyncMessage,number:`${n.number}`},null,8,["classNames","textStyle","context","number"])):(I(),k2(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,HN)}const GN=j2(WN,[["render",VN],["__scopeId","data-v-d9e0a8fb"]]),QW="",jN={components:{Icon:A4},props:["label","collapsed"],emits:["click"]},qN={class:"collapsible-header"},KN={class:"mb-0"};function YN(t,e,n,i,s,r){const o=p2("Icon");return I(),$("div",qN,[A("label",KN,H2(n.label),1),n.collapsed?(I(),k2(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(),k2(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 QN=j2(jN,[["render",YN],["__scopeId","data-v-048a5186"]]),m5={computed:{...M3(["coordinates"]),offsetX:function(){const t=this.coordinates.orderedParticipantNames(),n=new St(t).getFrame(this.context),i=It(n),s=[this.context.Origin(),...n0(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:cL(this.context,this.coordinates)+"px"}}},data:function(){return{collapsed:!1}},methods:{toggle(){this.collapsed=!this.collapsed,vt.$emit("participant_set_top")}},components:{CollapseButton:QN},watch:{context(){this.collapsed&&(this.collapsed=!1)}}},XN=t=>{const e={loop:"FragmentLoop",alt:"FragmentAlt",par:"FragmentPar",opt:"FragmentOpt",tcf:"FragmentTryCatchFinally",creation:"Creation",message:"Interaction",asyncMessage:"InteractionAsync",divider:"Divider",ret:"Return"},n=Object.keys(e).find(i=>t[i]()!==null)||"";return e[n]},w5=t=>t&&t.stat()?t.stat().filter(e=>XN(e)!=="Divider").length:0,Ta=(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)},JN=["contenteditable"],Ia=$2({__name:"ConditionLabel",props:{condition:null},setup(t){const e=t,n=/\b(\w+)\s*==\s*(\w+)\b/g,{condition:i}=z4(e),s=H1(),r=O(()=>s.state.mode),o=O(()=>s.getters.code),l=O(()=>s.getters.onContentChange||(()=>{})),L=O(()=>{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,T,y,b,W;_.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}r5.test(g)&&!n.test(g)&&(g=g.replace(/"/g,""),g=`"${g}"`);const[w,v]=[(y=(T=i.value)==null?void 0:T.start)==null?void 0:y.start,(W=(b=i.value)==null?void 0:b.stop)==null?void 0:W.stop];if(w===-1||v===-1){console.warn("labelPosition is not set");return}a(o.value.slice(0,w)+g+o.value.slice(v+1))}const{editing:C,handleDblClick:u,handleBlur:h,handleKeydown:f,handleKeyup:m}=kt(c);return(_,p)=>(I(),$("label",{title:"Double click to edit",class:M2(["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":D(C)}]),contenteditable:D(C)&&D(r)===D(o3).Dynamic,onDblclick:p[0]||(p[0]=(...g)=>D(u)&&D(u)(...g)),onBlur:p[1]||(p[1]=(...g)=>D(h)&&D(h)(...g)),onKeyup:p[2]||(p[2]=(...g)=>D(m)&&D(m)(...g)),onKeydown:p[3]||(p[3]=(...g)=>D(f)&&D(f)(...g))},H2(D(C)?D(L):`[${D(L)}]`),43,JN))}}),XW="",eB={name:"fragment-alt",props:["context","comment","selfCallIndent","commentObj","number"],mixins:[m5],components:{ConditionLabel:Ia},setup(t){const e=H1(),n=O(()=>e.state.numbering),i=O(()=>t.context.Origin()),s=O(()=>t.context.alt()),r=O(()=>{var u;return(u=s.value)==null?void 0:u.ifBlock()}),o=O(()=>{var u;return(u=s.value)==null?void 0:u.elseIfBlock()}),l=O(()=>{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=O(()=>{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=O(()=>{var h;const u=[w5(L.value)];return(h=s.value)!=null&&h.elseIfBlock()&&s.value.elseIfBlock().forEach(f=>{u.push(u[u.length-1]+w5(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:Ta,blockLength:w5}}},Ea=t=>(R0("data-v-b9c5cb88"),t=t(),Z0(),t),tB={class:"segment"},nB={class:"header bg-skin-fragment-header text-skin-fragment-header text-base leading-4 rounded-t relative"},iB={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 text-sm font-thin leading-6"},sB={class:"name font-semibold p-1 border-b text-sm"},rB={class:"p-0"},oB={class:"segment"},lB={class:"text-skin-fragment flex"},LB=Ea(()=>A("label",{class:"else-if hidden"},"else if",-1)),aB={key:0,class:"segment mt-2 border-t border-solid"},cB=Ea(()=>A("div",{class:"text-skin-fragment"},[A("label",{class:"p-1"},"[else]")],-1));function CB(t,e,n,i,s,r){const o=p2("comment"),l=p2("collapse-button"),L=p2("ConditionLabel"),a=p2("block");return I(),$("div",{class:"fragment alt border-skin-fragment rounded",style:y2(t.fragmentStyle)},[A("div",tB,[n.comment?(I(),k2(o,{key:0,comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):m2("",!0),A("div",nB,[i.numbering?(I(),$("div",iB,H2(n.number),1)):m2("",!0),A("div",sB,[A("label",rB,[G(l,{label:"Alt",collapsed:t.collapsed,onClick:this.toggle,style:y2(n.commentObj.messageStyle),class:M2(n.commentObj.messageClassNames)},null,8,["collapsed","onClick","style","class"])])])])]),A("div",{class:M2({hidden:t.collapsed})},[A("div",oB,[A("div",lB,[G(L,{condition:i.conditionFromIfElseBlock(i.ifBlock)},null,8,["condition"])]),i.blockInIfBlock?(I(),k2(a,{key:0,style:y2({paddingLeft:`${t.offsetX}px`}),context:i.blockInIfBlock,selfCallIndent:n.selfCallIndent,number:`${n.number}.1`,incremental:""},null,8,["style","context","selfCallIndent","number"])):m2("",!0)]),(I(!0),$(E2,null,v3(i.elseIfBlocks,(c,C)=>(I(),$("div",{key:C+500,class:"segment mt-2 border-t border-solid"},[(I(),$("div",{class:"text-skin-fragment",key:C+1e3},[LB,G(L,{condition:i.conditionFromIfElseBlock(c)},null,8,["condition"])])),(I(),k2(a,{style:y2({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(),$("div",aB,[cB,G(a,{style:y2({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"])])):m2("",!0)],2)],4)}const uB=j2(eB,[["render",CB],["__scopeId","data-v-b9c5cb88"]]),JW="",eH="",hB={name:"fragment-par",props:["context","comment","commentObj","selfCallIndent","number"],mixins:[m5],computed:{...n9(["numbering"]),from:function(){return this.context.Origin()},par:function(){return this.context.par()}}},dB={class:"header bg-skin-fragment-header text-skin-fragment-header text-base leading-4 rounded-t relative"},fB={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 text-sm font-thin leading-6"},gB={class:"name font-semibold p-1 border-b"};function pB(t,e,n,i,s,r){const o=p2("comment"),l=p2("collapse-button"),L=p2("block");return I(),$("div",{class:"fragment par border-skin-fragment rounded",style:y2(t.fragmentStyle)},[n.comment?(I(),k2(o,{key:0,comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):m2("",!0),A("div",dB,[t.numbering?(I(),$("div",fB,H2(n.number),1)):m2("",!0),A("div",gB,[G(l,{label:"Par",collapsed:t.collapsed,onClick:this.toggle,style:y2(n.commentObj.messageStyle),class:M2(n.commentObj.messageClassNames)},null,8,["collapsed","onClick","style","class"])])]),G(L,{class:M2({hidden:t.collapsed}),style:y2({paddingLeft:`${t.offsetX}px`}),context:r.par.braceBlock().block(),selfCallIndent:n.selfCallIndent,number:n.number},null,8,["class","style","context","selfCallIndent","number"])],4)}const mB=j2(hB,[["render",pB],["__scopeId","data-v-12f63f5c"]]),tH="",wB={name:"fragment-loop",props:["context","comment","commentObj","selfCallIndent","number"],mixins:[m5],components:{ConditionLabel:Ia},setup(t){const e=H1(),n=O(()=>e.state.numbering),i=O(()=>t.context.Origin()),s=O(()=>t.context.loop()),r=O(()=>{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()}}}},xB={class:"header text-skin-fragment-header bg-skin-fragment-header text-base leading-4 relative"},vB={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 text-sm font-thin leading-6"},_B={class:"name font-semibold p-1 border-b"},MB={class:"segment"},yB={class:"text-skin-fragment"};function RB(t,e,n,i,s,r){const o=p2("comment"),l=p2("collapse-button"),L=p2("ConditionLabel"),a=p2("block");return I(),$("div",{class:"fragment loop border-skin-fragment rounded",style:y2(t.fragmentStyle)},[n.comment?(I(),k2(o,{key:0,comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):m2("",!0),A("div",xB,[i.numbering?(I(),$("div",vB,H2(n.number),1)):m2("",!0),A("div",_B,[G(l,{label:"Loop",collapsed:t.collapsed,onClick:this.toggle,style:y2(n.commentObj.messageStyle),class:M2(n.commentObj.messageClassNames)},null,8,["collapsed","onClick","style","class"])])]),A("div",{class:M2({hidden:t.collapsed})},[A("div",MB,[A("div",yB,[G(L,{condition:i.getConditionFromBlock(i.blockInLoop)},null,8,["condition"])]),G(a,{style:y2({paddingLeft:`${t.offsetX}px`}),context:i.blockInLoop,selfCallIndent:n.selfCallIndent,number:n.number},null,8,["style","context","selfCallIndent","number"])])],2)],4)}const ZB=j2(wB,[["render",RB],["__scopeId","data-v-632f3b8c"]]),nH="",AB={name:"fragment-opt",props:["context","comment","commentObj","selfCallIndent","number"],mixins:[m5],computed:{...n9(["numbering"]),from:function(){return this.context.Origin()},opt:function(){return this.context.opt()}}},kB={class:"header bg-skin-fragment-header text-skin-fragment-header text-base leading-4 relative"},bB={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 text-sm font-thin leading-6"},SB={class:"name font-semibold p-1 border-b"};function TB(t,e,n,i,s,r){const o=p2("comment"),l=p2("collapse-button"),L=p2("block");return I(),$("div",{class:"fragment opt border-skin-fragment rounded",style:y2(t.fragmentStyle)},[n.comment?(I(),k2(o,{key:0,comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):m2("",!0),A("div",kB,[t.numbering?(I(),$("div",bB,H2(n.number),1)):m2("",!0),A("div",SB,[G(l,{label:"Opt",collapsed:t.collapsed,onClick:this.toggle,style:y2(n.commentObj.textStyle),class:M2(n.commentObj.classNames)},null,8,["collapsed","onClick","style","class"])])]),G(L,{class:M2({hidden:t.collapsed}),style:y2({paddingLeft:`${t.offsetX}px`}),context:r.opt.braceBlock().block(),selfCallIndent:n.selfCallIndent,number:n.number},null,8,["class","style","context","selfCallIndent","number"])],4)}const IB=j2(AB,[["render",TB],["__scopeId","data-v-533e0127"]]),iH="",EB={name:"fragment-tcf",props:["context","comment","commentObj","selfCallIndent","number"],mixins:[m5],computed:{...n9(["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=[w5(this.blockInTryBlock)];return(e=this.tcf)!=null&&e.catchBlock()&&this.tcf.catchBlock().forEach(n=>{t.push(t[t.length-1]+w5(this.blockInCatchBlock(n)))}),t}},methods:{exception(t){var e;return(e=t==null?void 0:t.invocation())==null?void 0:e.parameters().getText()},blockInCatchBlock(t){var e;return(e=t==null?void 0:t.braceBlock())==null?void 0:e.block()}}},Fa=t=>(R0("data-v-4defdd44"),t=t(),Z0(),t),FB={class:"segment"},OB={class:"header bg-skin-fragment-header text-skin-fragment-header text-base leading-4 rounded-t relative"},DB={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 text-sm font-thin leading-6"},NB={class:"name font-semibold p-1 border-b text-sm"},BB={class:"segment"},PB=Fa(()=>A("label",{class:"keyword catch p-1"},"catch",-1)),zB={class:"exception p-1"},UB={key:0,class:"segment mt-2 border-t border-solid"},$B=Fa(()=>A("div",{class:"header flex text-skin-fragment finally"},[A("label",{class:"keyword finally bg-skin-frame/[0.66] px-1 inline-block text-sm"},"finally")],-1));function WB(t,e,n,i,s,r){const o=p2("comment"),l=p2("collapse-button"),L=p2("block");return I(),$("div",{class:"fragment tcf border-skin-fragment rounded",style:y2(t.fragmentStyle)},[A("div",FB,[n.comment?(I(),k2(o,{key:0,comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):m2("",!0),A("div",OB,[t.numbering?(I(),$("div",DB,H2(n.number),1)):m2("",!0),A("div",NB,[G(l,{label:"Try",collapsed:t.collapsed,onClick:this.toggle},null,8,["collapsed","onClick"])])])]),A("div",{class:M2({hidden:t.collapsed})},[A("div",BB,[r.blockInTryBlock?(I(),k2(L,{key:0,style:y2({paddingLeft:`${t.offsetX}px`}),context:r.blockInTryBlock,selfCallIndent:n.selfCallIndent,number:`${n.number}.1`,incremental:""},null,8,["style","context","selfCallIndent","number"])):m2("",!0)]),(I(!0),$(E2,null,v3(r.tcf.catchBlock(),(a,c)=>(I(),$("div",{key:c+500,class:"segment text-sm mt-2 border-t border-solid"},[(I(),$("div",{class:"header inline-block bg-skin-frame/[0.66]",key:c+1e3},[PB,A("label",zB,H2(r.exception(a)),1)])),(I(),k2(L,{style:y2({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(),$("div",UB,[$B,G(L,{style:y2({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"])])):m2("",!0)],2)],4)}const HB=j2(EB,[["render",WB],["__scopeId","data-v-4defdd44"]]),VB={name:"return",props:["context","comment","commentObj","number"],computed:{...M3(["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?n5(this.signature,Z4.MessageContent):Math.abs(this.distance(this.target,this.source))},left:function(){return this.rightToLeft?this.distance(this.target,this.from)+2:this.distance(this.source,this.from)+2},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},isReturnToStart(){return this.target===this.participants.Starter().name},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(o0.from(this.context))}},components:{Comment:p5,Message:l5}},GB=["data-signature"],jB={key:1,class:"flex items-center"},qB=A("svg",{class:"w-3 h-3 flex-shrink-0 fill-current m-1",viewBox:"0 0 512 512"},[A("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"}),A("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),KB={class:"name text-sm"};function YB(t,e,n,i,s,r){const o=p2("comment"),l=p2("Message");return I(),$("div",{class:M2(["interaction return relative",{"right-to-left":r.rightToLeft,highlight:r.isCurrent,"return-to-start":r.isReturnToStart}]),onClick:e[0]||(e[0]=D0((...L)=>r.onClick&&r.onClick(...L),["stop"])),"data-signature":r.signature,style:y2({width:r.width+"px",left:r.left+"px"})},[n.comment?(I(),k2(o,{key:0,commentObj:n.commentObj},null,8,["commentObj"])):m2("",!0),r.isSelf?(I(),$("div",jB,[qB,A("span",KB,H2(r.signature),1)])):m2("",!0),r.isSelf?m2("",!0):(I(),k2(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,GB)}const QB=j2(VB,[["render",YB]]),XB=["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"],JB=["italic","oblique"],eP=["bold","bolder","lighter"],tP=["underline","overline","line-through"],x5=t=>{const e={},n=[];return t.forEach(i=>{switch(!0){case XB.includes(i):e.color=i;break;case JB.includes(i):e.fontStyle=i;break;case eP.includes(i):e.fontWeight=i;break;case tP.includes(i):e.textDecoration=i;break;default:n.push(i)}}),{textStyle:e,classNames:n}},sH="",nP={name:"divider",props:["context"],computed:{...M3(["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:x5(n.split(",").map(s=>s.trim())),note:i}}return{style:x5([]),note:this.note}}}},Oa=t=>(R0("data-v-0be02001"),t=t(),Z0(),t),iP=Oa(()=>A("div",{class:"left bg-skin-divider"},null,-1)),sP=Oa(()=>A("div",{class:"right bg-skin-divider"},null,-1));function rP(t,e,n,i,s,r){return I(),$("div",{class:"divider",style:y2({width:r.width+"px",transform:"translateX("+(-1*r.centerOfFrom+10)+"px)"})},[iP,A("div",{class:M2(["name",r.messageStyle.style.classNames]),style:y2(r.messageStyle.style.textStyle)},H2(r.messageStyle.note),7),sP],4)}const oP=j2(nP,[["render",rP],["__scopeId","data-v-0be02001"]]);function lP(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 LP{constructor(e){J(this,"text","");J(this,"classNames",[]);J(this,"textStyle",{});J(this,"commentStyle",{});J(this,"messageStyle",{});J(this,"commentClassNames",[]);J(this,"messageClassNames",[]);const n=e.slice(0,-1).split(`
|
|
3352
|
+
`:`<code>${t}</code>`}};x2.setOptions({highlight:function(t,e){if(!e)return h9.highlightAuto(t).value;const n=h9.getLanguage(e)?e:"plaintext";return h9.highlight(n,t).value},breaks:!0}),x2.use({renderer:LN});const aN={name:"comment",props:["comment","commentObj"],computed:{markedComment(){var t,e;return((t=this.commentObj)==null?void 0:t.text)&&x2.parse((e=this.commentObj)==null?void 0:e.text)||this.comment&&x2.parse(this.comment)},commentStyle(){var t;return(t=this.commentObj)==null?void 0:t.commentStyle},classNames(){var t;return(t=this.commentObj)==null?void 0:t.commentClassNames}}},cN={class:"comments text-skin-comment min-w-[100px] flex text-left text-sm opacity-50 hover:opacity-100"},CN=["innerHTML"];function uN(t,e,n,i,s,r){return I(),$("div",cN,[A("div",{innerHTML:r.markedComment,class:M2(r.classNames),style:y2(r.commentStyle)},null,14,CN)])}const p5=j2(aN,[["render",uN],["__scopeId","data-v-49a61c68"]]),WW="",hN={props:["collapsed"],emits:["click"]},dN={class:"collapsible-header"},fN=[a8('<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)],gN=[a8('<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 pN(t,e,n,i,s,r){return I(),$("div",dN,[(I(),$("svg",{width:"20px",height:"20px",class:M2([{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"},fN,2)),(I(),$("svg",{width:"20px",height:"20px",class:M2([{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"},gN,2))])}const mN=j2(hN,[["render",pN],["__scopeId","data-v-175097b8"]]),GW="",jW="",wN={name:"occurrence",props:["context","selfCallIndent","participant","rtl","number"],data:function(){return{center:0,collapsed:!1}},computed:{...M3(["centerOf","messageLayerLeft"]),...n9(["code"]),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,vt.$emit("participant_set_top")}},components:{CollapseButton:mN},watch:{context(){this.collapsed&&(this.collapsed=!1)}}},xN=["data-belongs-to","data-x-offset","data-debug-center-of"];function vN(t,e,n,i,s,r){const o=p2("collapse-button"),l=p2("block");return I(),$("div",{class:M2(["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.hasAnyStatementsExceptReturn?(I(),k2(o,{key:0,collapsed:t.collapsed,onClick:this.toggle},null,8,["collapsed","onClick"])):m2("",!0),this.context.braceBlock()?(I(),k2(l,{key:1,context:n.context.braceBlock().block(),selfCallIndent:n.selfCallIndent,number:n.number,collapsed:t.collapsed,inheritFromOccurrence:!0},null,8,["context","selfCallIndent","number","collapsed"])):m2("",!0)],10,xN)}const ba=j2(wN,[["render",vN],["__scopeId","data-v-3ef58b46"]]);class o0{constructor(e,n,i,s){J(this,"start");J(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 o0(n.line,n.column,i.line,i.column+i.text.length)}}const Sa=h0.child({name:"Creation"}),_N={name:"creation",props:["context","comment","commentObj","selfCallIndent","number"],computed:{...M3(["cursor","onElementClick","distance"]),...n9(["numbering"]),from(){return this.context.Origin()},creation(){return this.context.creation()},interactionWidth(){let t=Math.abs(this.distance(this.to,this.from)),e=this.selfCallIndent||0;return t+(this.rightToLeft?e:-e)},rightToLeft(){return this.distance(this.to,this.from)<0},signature(){return this.creation.SignatureText()},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(),Sa.log(`mounted for ${this.to}`)},updated(){this.layoutMessageContainer(),Sa.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(o0.from(this.context))}},components:{Participant:rL,Comment:p5,Occurrence:ba,Message:l5}},MN=["data-signature"],yN=["data-to"],RN={ref:"participantPlaceHolder",class:"invisible right-0 flex flex-col justify-center flex-shrink-0"};function ZN(t,e,n,i,s,r){var c;const o=p2("comment"),l=p2("message"),L=p2("participant"),a=p2("occurrence");return I(),$("div",{class:M2(["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]=D0((...C)=>r.onClick&&r.onClick(...C),["stop"])),"data-signature":r.signature,style:y2({width:r.interactionWidth+"px"})},[n.comment?(I(),k2(o,{key:0,commentObj:n.commentObj},null,8,["commentObj"])):m2("",!0),A("div",{ref:"messageContainer","data-type":"creation",class:M2(["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"]),A("div",RN,[G(L,{entity:{name:r.to}},null,8,["entity"])],512)],10,yN),G(a,{context:r.creation,class:"pointer-events-auto",participant:r.to,number:n.number},null,8,["context","participant","number"]),r.assignee?(I(),k2(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"])):m2("",!0)],14,MN)}const AN=j2(_N,[["render",ZN]]),kN={class:"name group px-px hover:text-skin-message-hover hover:bg-skin-message-hover relative min-h-[1em]"},bN={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500"},SN=A("svg",{class:"arrow text-skin-message-arrow",width:"30",height:"24"},[A("polyline",{class:"line stroke-current fill-none stroke-2",points:"0,2 28,2 28,15 14,15"}),A("polyline",{class:"head stroke-current fill-current stroke-2",points:"18,9 8,15 18,21"})],-1),TN=$2({__name:"SelfInvocation",props:{context:null,number:null,textStyle:null,classNames:null},setup(t){const e=t,{context:n}=z4(e),i=H1(),s=O(()=>i.state.numbering),r=i2(),o=O(()=>{const a=n==null?void 0:n.value.messageBody();return[a.start.start,a.stop.stop]}),l=O(()=>n==null?void 0:n.value.messageBody().getFormattedText()),L=()=>{i.getters.onMessageClick(n,r.value)};return(a,c)=>(I(),$("div",{class:"message self text-sm flex items-start flex-col",style:{"border-width":"0"},onClick:L,ref_key:"messageRef",ref:r},[A("label",kN,[D(s)?(I(),$("div",bN,H2(t.number),1)):m2("",!0),A("div",{style:y2(t.textStyle),class:M2(t.classNames)},[G(Ft,{labelText:D(l),labelPosition:D(o),isSelf:!0},null,8,["labelText","labelPosition"])],6)]),SN],512))}}),qW="",IN={name:"interaction",props:["context","selfCallIndent","commentObj","number"],computed:{...M3(["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 DM},origin:function(){var t;return(t=this.context)==null?void 0:t.Origin()},passOnOffset:function(){return this.isSelf&&!this.isRootBlock?(this.selfCallIndent||0)+6: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)},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(o0.from(this.context))}},components:{Message:l5,SelfInvocation:TN,Comment:p5,Occurrence:ba}},EN=["data-to","data-signature"];function FN(t,e,n,i,s,r){var c;const o=p2("comment"),l=p2("self-invocation"),L=p2("message"),a=p2("occurrence");return I(),$("div",{class:M2(["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]=D0((...C)=>r.onClick&&r.onClick(...C),["stop"])),"data-to":r.to,"data-type":"interaction","data-signature":r.signature,style:y2({width:!r.isSelf&&r.interactionWidth+"px",transform:"translateX("+r.translateX+"px)"})},[r.showStarter&&r.isRootBlock||r.outOfBand?(I(),$("div",{key:0,class:M2(["occurrence source border-2",{"right-to-left":r.rightToLeft}])},null,2)):m2("",!0),r.hasComment?(I(),k2(o,{key:1,commentObj:n.commentObj},null,8,["commentObj"])):m2("",!0),r.isSelf?(I(),k2(l,{key:2,classNames:r.messageClassNames,textStyle:r.messageTextStyle,context:r.message,number:`${n.number}`},null,8,["classNames","textStyle","context","number"])):(I(),k2(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(),k2(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"])):m2("",!0)],14,EN)}const ON=j2(IN,[["render",FN],["__scopeId","data-v-3bc6eae5"]]),DN=t=>(R0("data-v-ecfb84d4"),t=t(),Z0(),t),NN={class:"message self flex items-start flex-col",style:{"border-width":"0"}},BN={class:"name group px-px hover:text-skin-message-hover hover:bg-skin-message-hover min-h-[1em]"},PN={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500"},zN=DN(()=>A("svg",{class:"arrow text-skin-message-arrow",width:"34",height:"34"},[A("polyline",{class:"stroke-current stroke-2 fill-none",points:"0,2 28,2 28,25 1,25"}),A("polyline",{class:"head stroke-current stroke-2 fill-none",points:"11,19 1,25 11,31"})],-1)),UN=$2({__name:"SelfInvocation-async",props:{context:null,number:null,textStyle:null,classNames:null},setup(t){const e=t,{context:n}=z4(e),i=H1(),s=O(()=>i.state.numbering),r=O(()=>{if(!(n!=null&&n.value))return[-1,-1];const l=n==null?void 0:n.value.content();return[l.start.start,l.stop.stop]}),o=O(()=>n==null?void 0:n.value.content().getFormattedText());return(l,L)=>(I(),$("div",NN,[A("label",BN,[D(s)?(I(),$("div",PN,H2(t.number),1)):m2("",!0),G(Ft,{labelText:D(o),labelPosition:D(r),isAsync:!0,isSelf:!0},null,8,["labelText","labelPosition"])]),zN]))}}),KW="",$N=j2(UN,[["__scopeId","data-v-ecfb84d4"]]),YW="";function dn(t){return t==null}const WN={name:"interaction-async",props:["context","comment","commentObj","selfCallIndent","number"],computed:{...M3(["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()},isCurrent:function(){const t=this.asyncMessage.start.start,e=this.asyncMessage.stop.stop+1;return dn(this.cursor)||dn(t)||dn(e)?!1:this.cursor>=t&&this.cursor<=e},isSelf:function(){return this.source===this.target},providedFrom:function(){var t,e;return(e=(t=this.context)==null?void 0:t.asyncMessage())==null?void 0:e.From()},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},isToOccurrence(){return this.parentCtxIncludeMessage(this.asyncMessage)},isInitedFromOccurrence:function(){var t;return(t=this.message)==null?void 0:t.isInitedFromOccurrence(this.context)}},methods:{onClick(){this.onElementClick(o0.from(this.context))},parentCtxIncludeMessage(t){const e=t.Owner();if(!e)return!1;for(t=t==null?void 0:t.parentCtx;t;){if(t.To&&t.To()===e)return!0;t=t.parentCtx}return!1}},components:{Comment:p5,SelfInvocationAsync:$N,Message:l5}},HN=["data-signature"];function VN(t,e,n,i,s,r){const o=p2("comment"),l=p2("self-invocation-async"),L=p2("message");return I(),$("div",{class:M2(["interaction async",{"to-occurrence":r.isToOccurrence,"right-to-left":r.rightToLeft,"from-no-occurrence":r.providedFrom&&r.providedFrom!==r.origin,highlight:r.isCurrent,"inited-from-occurrence":r.isInitedFromOccurrence,"self-invocation":r.isSelf}]),onClick:e[0]||(e[0]=D0((...a)=>r.onClick&&r.onClick(...a),["stop"])),"data-signature":r.signature,style:y2({width:r.interactionWidth+"px",transform:"translateX("+r.translateX+"px)"})},[n.comment?(I(),k2(o,{key:0,commentObj:n.commentObj},null,8,["commentObj"])):m2("",!0),r.isSelf?(I(),k2(l,{key:1,classNames:r.messageClassNames,textStyle:r.messageTextStyle,context:r.asyncMessage,number:`${n.number}`},null,8,["classNames","textStyle","context","number"])):(I(),k2(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,HN)}const GN=j2(WN,[["render",VN],["__scopeId","data-v-d9e0a8fb"]]),QW="",jN={components:{Icon:A4},props:["label","collapsed"],emits:["click"]},qN={class:"collapsible-header"},KN={class:"mb-0"};function YN(t,e,n,i,s,r){const o=p2("Icon");return I(),$("div",qN,[A("label",KN,H2(n.label),1),n.collapsed?(I(),k2(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(),k2(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 QN=j2(jN,[["render",YN],["__scopeId","data-v-048a5186"]]),m5={computed:{...M3(["coordinates"]),offsetX:function(){const t=this.coordinates.orderedParticipantNames(),n=new St(t).getFrame(this.context),i=It(n),s=[this.context.Origin(),...n0(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:cL(this.context,this.coordinates)+"px"}}},data:function(){return{collapsed:!1}},methods:{toggle(){this.collapsed=!this.collapsed,vt.$emit("participant_set_top")}},components:{CollapseButton:QN},watch:{context(){this.collapsed&&(this.collapsed=!1)}}},XN=t=>{const e={loop:"FragmentLoop",alt:"FragmentAlt",par:"FragmentPar",opt:"FragmentOpt",tcf:"FragmentTryCatchFinally",creation:"Creation",message:"Interaction",asyncMessage:"InteractionAsync",divider:"Divider",ret:"Return"},n=Object.keys(e).find(i=>t[i]()!==null)||"";return e[n]},w5=t=>t&&t.stat()?t.stat().filter(e=>XN(e)!=="Divider").length:0,Ta=(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)},JN=["contenteditable"],Ia=$2({__name:"ConditionLabel",props:{condition:null},setup(t){const e=t,n=/\b(\w+)\s*==\s*(\w+)\b/g,{condition:i}=z4(e),s=H1(),r=O(()=>s.state.mode),o=O(()=>s.getters.code),l=O(()=>s.getters.onContentChange||(()=>{})),L=O(()=>{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,T,y,b,W;_.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}r5.test(g)&&!n.test(g)&&(g=g.replace(/"/g,""),g=`"${g}"`);const[w,v]=[(y=(T=i.value)==null?void 0:T.start)==null?void 0:y.start,(W=(b=i.value)==null?void 0:b.stop)==null?void 0:W.stop];if(w===-1||v===-1){console.warn("labelPosition is not set");return}a(o.value.slice(0,w)+g+o.value.slice(v+1))}const{editing:C,handleDblClick:u,handleBlur:h,handleKeydown:f,handleKeyup:m}=kt(c);return(_,p)=>(I(),$("label",{title:"Double click to edit",class:M2(["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":D(C)}]),contenteditable:D(C)&&D(r)===D(o3).Dynamic,onDblclick:p[0]||(p[0]=(...g)=>D(u)&&D(u)(...g)),onBlur:p[1]||(p[1]=(...g)=>D(h)&&D(h)(...g)),onKeyup:p[2]||(p[2]=(...g)=>D(m)&&D(m)(...g)),onKeydown:p[3]||(p[3]=(...g)=>D(f)&&D(f)(...g))},H2(D(C)?D(L):`[${D(L)}]`),43,JN))}}),XW="",eB={name:"fragment-alt",props:["context","comment","selfCallIndent","commentObj","number"],mixins:[m5],components:{ConditionLabel:Ia},setup(t){const e=H1(),n=O(()=>e.state.numbering),i=O(()=>t.context.Origin()),s=O(()=>t.context.alt()),r=O(()=>{var u;return(u=s.value)==null?void 0:u.ifBlock()}),o=O(()=>{var u;return(u=s.value)==null?void 0:u.elseIfBlock()}),l=O(()=>{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=O(()=>{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=O(()=>{var h;const u=[w5(L.value)];return(h=s.value)!=null&&h.elseIfBlock()&&s.value.elseIfBlock().forEach(f=>{u.push(u[u.length-1]+w5(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:Ta,blockLength:w5}}},Ea=t=>(R0("data-v-b9c5cb88"),t=t(),Z0(),t),tB={class:"segment"},nB={class:"header bg-skin-fragment-header text-skin-fragment-header text-base leading-4 rounded-t relative"},iB={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 text-sm font-thin leading-6"},sB={class:"name font-semibold p-1 border-b text-sm"},rB={class:"p-0"},oB={class:"segment"},lB={class:"text-skin-fragment flex"},LB=Ea(()=>A("label",{class:"else-if hidden"},"else if",-1)),aB={key:0,class:"segment mt-2 border-t border-solid"},cB=Ea(()=>A("div",{class:"text-skin-fragment"},[A("label",{class:"p-1"},"[else]")],-1));function CB(t,e,n,i,s,r){const o=p2("comment"),l=p2("collapse-button"),L=p2("ConditionLabel"),a=p2("block");return I(),$("div",{class:"fragment alt border-skin-fragment rounded",style:y2(t.fragmentStyle)},[A("div",tB,[n.comment?(I(),k2(o,{key:0,comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):m2("",!0),A("div",nB,[i.numbering?(I(),$("div",iB,H2(n.number),1)):m2("",!0),A("div",sB,[A("label",rB,[G(l,{label:"Alt",collapsed:t.collapsed,onClick:this.toggle,style:y2(n.commentObj.messageStyle),class:M2(n.commentObj.messageClassNames)},null,8,["collapsed","onClick","style","class"])])])])]),A("div",{class:M2({hidden:t.collapsed})},[A("div",oB,[A("div",lB,[G(L,{condition:i.conditionFromIfElseBlock(i.ifBlock)},null,8,["condition"])]),i.blockInIfBlock?(I(),k2(a,{key:0,style:y2({paddingLeft:`${t.offsetX}px`}),context:i.blockInIfBlock,selfCallIndent:n.selfCallIndent,number:`${n.number}.1`,incremental:""},null,8,["style","context","selfCallIndent","number"])):m2("",!0)]),(I(!0),$(E2,null,v3(i.elseIfBlocks,(c,C)=>(I(),$("div",{key:C+500,class:"segment mt-2 border-t border-solid"},[(I(),$("div",{class:"text-skin-fragment",key:C+1e3},[LB,G(L,{condition:i.conditionFromIfElseBlock(c)},null,8,["condition"])])),(I(),k2(a,{style:y2({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(),$("div",aB,[cB,G(a,{style:y2({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"])])):m2("",!0)],2)],4)}const uB=j2(eB,[["render",CB],["__scopeId","data-v-b9c5cb88"]]),JW="",eH="",hB={name:"fragment-par",props:["context","comment","commentObj","selfCallIndent","number"],mixins:[m5],computed:{...n9(["numbering"]),from:function(){return this.context.Origin()},par:function(){return this.context.par()}}},dB={class:"header bg-skin-fragment-header text-skin-fragment-header text-base leading-4 rounded-t relative"},fB={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 text-sm font-thin leading-6"},gB={class:"name font-semibold p-1 border-b"};function pB(t,e,n,i,s,r){const o=p2("comment"),l=p2("collapse-button"),L=p2("block");return I(),$("div",{class:"fragment par border-skin-fragment rounded",style:y2(t.fragmentStyle)},[n.comment?(I(),k2(o,{key:0,comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):m2("",!0),A("div",dB,[t.numbering?(I(),$("div",fB,H2(n.number),1)):m2("",!0),A("div",gB,[G(l,{label:"Par",collapsed:t.collapsed,onClick:this.toggle,style:y2(n.commentObj.messageStyle),class:M2(n.commentObj.messageClassNames)},null,8,["collapsed","onClick","style","class"])])]),G(L,{class:M2({hidden:t.collapsed}),style:y2({paddingLeft:`${t.offsetX}px`}),context:r.par.braceBlock().block(),selfCallIndent:n.selfCallIndent,number:n.number},null,8,["class","style","context","selfCallIndent","number"])],4)}const mB=j2(hB,[["render",pB],["__scopeId","data-v-12f63f5c"]]),tH="",wB={name:"fragment-loop",props:["context","comment","commentObj","selfCallIndent","number"],mixins:[m5],components:{ConditionLabel:Ia},setup(t){const e=H1(),n=O(()=>e.state.numbering),i=O(()=>t.context.Origin()),s=O(()=>t.context.loop()),r=O(()=>{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()}}}},xB={class:"header text-skin-fragment-header bg-skin-fragment-header text-base leading-4 relative"},vB={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 text-sm font-thin leading-6"},_B={class:"name font-semibold p-1 border-b"},MB={class:"segment"},yB={class:"text-skin-fragment"};function RB(t,e,n,i,s,r){const o=p2("comment"),l=p2("collapse-button"),L=p2("ConditionLabel"),a=p2("block");return I(),$("div",{class:"fragment loop border-skin-fragment rounded",style:y2(t.fragmentStyle)},[n.comment?(I(),k2(o,{key:0,comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):m2("",!0),A("div",xB,[i.numbering?(I(),$("div",vB,H2(n.number),1)):m2("",!0),A("div",_B,[G(l,{label:"Loop",collapsed:t.collapsed,onClick:this.toggle,style:y2(n.commentObj.messageStyle),class:M2(n.commentObj.messageClassNames)},null,8,["collapsed","onClick","style","class"])])]),A("div",{class:M2({hidden:t.collapsed})},[A("div",MB,[A("div",yB,[G(L,{condition:i.getConditionFromBlock(i.blockInLoop)},null,8,["condition"])]),G(a,{style:y2({paddingLeft:`${t.offsetX}px`}),context:i.blockInLoop,selfCallIndent:n.selfCallIndent,number:n.number},null,8,["style","context","selfCallIndent","number"])])],2)],4)}const ZB=j2(wB,[["render",RB],["__scopeId","data-v-632f3b8c"]]),nH="",AB={name:"fragment-opt",props:["context","comment","commentObj","selfCallIndent","number"],mixins:[m5],computed:{...n9(["numbering"]),from:function(){return this.context.Origin()},opt:function(){return this.context.opt()}}},kB={class:"header bg-skin-fragment-header text-skin-fragment-header text-base leading-4 relative"},bB={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 text-sm font-thin leading-6"},SB={class:"name font-semibold p-1 border-b"};function TB(t,e,n,i,s,r){const o=p2("comment"),l=p2("collapse-button"),L=p2("block");return I(),$("div",{class:"fragment opt border-skin-fragment rounded",style:y2(t.fragmentStyle)},[n.comment?(I(),k2(o,{key:0,comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):m2("",!0),A("div",kB,[t.numbering?(I(),$("div",bB,H2(n.number),1)):m2("",!0),A("div",SB,[G(l,{label:"Opt",collapsed:t.collapsed,onClick:this.toggle,style:y2(n.commentObj.textStyle),class:M2(n.commentObj.classNames)},null,8,["collapsed","onClick","style","class"])])]),G(L,{class:M2({hidden:t.collapsed}),style:y2({paddingLeft:`${t.offsetX}px`}),context:r.opt.braceBlock().block(),selfCallIndent:n.selfCallIndent,number:n.number},null,8,["class","style","context","selfCallIndent","number"])],4)}const IB=j2(AB,[["render",TB],["__scopeId","data-v-533e0127"]]),iH="",EB={name:"fragment-tcf",props:["context","comment","commentObj","selfCallIndent","number"],mixins:[m5],computed:{...n9(["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=[w5(this.blockInTryBlock)];return(e=this.tcf)!=null&&e.catchBlock()&&this.tcf.catchBlock().forEach(n=>{t.push(t[t.length-1]+w5(this.blockInCatchBlock(n)))}),t}},methods:{exception(t){var e;return(e=t==null?void 0:t.invocation())==null?void 0:e.parameters().getText()},blockInCatchBlock(t){var e;return(e=t==null?void 0:t.braceBlock())==null?void 0:e.block()}}},Fa=t=>(R0("data-v-4defdd44"),t=t(),Z0(),t),FB={class:"segment"},OB={class:"header bg-skin-fragment-header text-skin-fragment-header text-base leading-4 rounded-t relative"},DB={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 text-sm font-thin leading-6"},NB={class:"name font-semibold p-1 border-b text-sm"},BB={class:"segment"},PB=Fa(()=>A("label",{class:"keyword catch p-1"},"catch",-1)),zB={class:"exception p-1"},UB={key:0,class:"segment mt-2 border-t border-solid"},$B=Fa(()=>A("div",{class:"header flex text-skin-fragment finally"},[A("label",{class:"keyword finally bg-skin-frame/[0.66] px-1 inline-block text-sm"},"finally")],-1));function WB(t,e,n,i,s,r){const o=p2("comment"),l=p2("collapse-button"),L=p2("block");return I(),$("div",{class:"fragment tcf border-skin-fragment rounded",style:y2(t.fragmentStyle)},[A("div",FB,[n.comment?(I(),k2(o,{key:0,comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):m2("",!0),A("div",OB,[t.numbering?(I(),$("div",DB,H2(n.number),1)):m2("",!0),A("div",NB,[G(l,{label:"Try",collapsed:t.collapsed,onClick:this.toggle},null,8,["collapsed","onClick"])])])]),A("div",{class:M2({hidden:t.collapsed})},[A("div",BB,[r.blockInTryBlock?(I(),k2(L,{key:0,style:y2({paddingLeft:`${t.offsetX}px`}),context:r.blockInTryBlock,selfCallIndent:n.selfCallIndent,number:`${n.number}.1`,incremental:""},null,8,["style","context","selfCallIndent","number"])):m2("",!0)]),(I(!0),$(E2,null,v3(r.tcf.catchBlock(),(a,c)=>(I(),$("div",{key:c+500,class:"segment text-sm mt-2 border-t border-solid"},[(I(),$("div",{class:"header inline-block bg-skin-frame/[0.66]",key:c+1e3},[PB,A("label",zB,H2(r.exception(a)),1)])),(I(),k2(L,{style:y2({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(),$("div",UB,[$B,G(L,{style:y2({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"])])):m2("",!0)],2)],4)}const HB=j2(EB,[["render",WB],["__scopeId","data-v-4defdd44"]]),VB={name:"return",props:["context","comment","commentObj","number"],computed:{...M3(["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?n5(this.signature,Z4.MessageContent):Math.abs(this.distance(this.target,this.source))},left:function(){return this.rightToLeft?this.distance(this.target,this.from)+2:this.distance(this.source,this.from)+2},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},isReturnToStart(){return this.target===this.participants.Starter().name},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(o0.from(this.context))}},components:{Comment:p5,Message:l5}},GB=["data-signature"],jB={key:1,class:"flex items-center"},qB=A("svg",{class:"w-3 h-3 flex-shrink-0 fill-current m-1",viewBox:"0 0 512 512"},[A("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"}),A("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),KB={class:"name text-sm"};function YB(t,e,n,i,s,r){const o=p2("comment"),l=p2("Message");return I(),$("div",{class:M2(["interaction return relative",{"right-to-left":r.rightToLeft,highlight:r.isCurrent,"return-to-start":r.isReturnToStart}]),onClick:e[0]||(e[0]=D0((...L)=>r.onClick&&r.onClick(...L),["stop"])),"data-signature":r.signature,style:y2({width:r.width+"px",left:r.left+"px"})},[n.comment?(I(),k2(o,{key:0,commentObj:n.commentObj},null,8,["commentObj"])):m2("",!0),r.isSelf?(I(),$("div",jB,[qB,A("span",KB,H2(r.signature),1)])):m2("",!0),r.isSelf?m2("",!0):(I(),k2(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,GB)}const QB=j2(VB,[["render",YB]]),XB=["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"],JB=["italic","oblique"],eP=["bold","bolder","lighter"],tP=["underline","overline","line-through"],x5=t=>{const e={},n=[];return t.forEach(i=>{switch(!0){case XB.includes(i):e.color=i;break;case JB.includes(i):e.fontStyle=i;break;case eP.includes(i):e.fontWeight=i;break;case tP.includes(i):e.textDecoration=i;break;default:n.push(i)}}),{textStyle:e,classNames:n}},sH="",nP={name:"divider",props:["context"],computed:{...M3(["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:x5(n.split(",").map(s=>s.trim())),note:i}}return{style:x5([]),note:this.note}}}},Oa=t=>(R0("data-v-0be02001"),t=t(),Z0(),t),iP=Oa(()=>A("div",{class:"left bg-skin-divider"},null,-1)),sP=Oa(()=>A("div",{class:"right bg-skin-divider"},null,-1));function rP(t,e,n,i,s,r){return I(),$("div",{class:"divider",style:y2({width:r.width+"px",transform:"translateX("+(-1*r.centerOfFrom+10)+"px)"})},[iP,A("div",{class:M2(["name",r.messageStyle.style.classNames]),style:y2(r.messageStyle.style.textStyle)},H2(r.messageStyle.note),7),sP],4)}const oP=j2(nP,[["render",rP],["__scopeId","data-v-0be02001"]]);function lP(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 LP{constructor(e){J(this,"text","");J(this,"classNames",[]);J(this,"textStyle",{});J(this,"commentStyle",{});J(this,"messageStyle",{});J(this,"commentClassNames",[]);J(this,"messageClassNames",[]);const n=e.slice(0,-1).split(`
|
|
3353
3353
|
`),i=n[n.length-1],[s,r,o,l]=lP(i),{textStyle:L,classNames:a}=x5(s),{textStyle:c,classNames:C}=x5(r),{textStyle:u,classNames:h}=x5(o);this.text=(n.slice(0,n.length-1).join(`
|
|
3354
3354
|
`)+`
|
|
3355
3355
|
`+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 aP={name:"statement",props:["context","selfCallIndent","number","collapsed","inheritFromOccurrence"],computed:{comment:function(){return this.context.getComment()?this.context.getComment():""},commentObj:function(){return new LP(this.comment)},subStatement:function(){let t=this,e={loop:"FragmentLoop",alt:"FragmentAlt",par:"FragmentPar",opt:"FragmentOpt",tcf:"FragmentTryCatchFinally",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:AN,Interaction:ON,InteractionAsync:GN,FragmentAlt:uB,FragmentPar:mB,FragmentOpt:IB,FragmentTryCatchFinally:HB,FragmentLoop:ZB,Divider:oP,Return:QB}};function cP(t,e,n,i,s,r){return I(),k2(J5(r.subStatement),{class:M2(["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 CP=j2(aP,[["render",cP]]),uP={class:"block"},hP=$2({__name:"Block",props:{context:null,selfCallIndent:null,number:null,incremental:{type:Boolean},collapsed:{type:Boolean},inheritFromOccurrence:{type:Boolean}},setup(t){const e=t,n=O(()=>{var s;return((s=e.context)==null?void 0:s.stat())||[]}),i=s=>e.number?e.incremental?Ta(e.number,s):`${e.number}.${s+1}`:String(s+1);return(s,r)=>(I(),$("div",uP,[(I(!0),$(E2,null,v3(D(n),(o,l)=>(I(),$("div",{class:"statement-container mt-1",key:l},[G(CP,{inheritFromOccurrence:t.inheritFromOccurrence,context:o,collapsed:t.collapsed,selfCallIndent:t.selfCallIndent,number:i(l)},null,8,["inheritFromOccurrence","context","collapsed","selfCallIndent","number"])]))),128))]))}});function dP(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 fP=(t,e)=>{const i=Da()-e;return console.debug(t+" cost: "+dP(i)),i},Da=()=>performance.now(),gP=h0.child({name:"core"});class pP{constructor(e,n=!1){J(this,"el");J(this,"_code");J(this,"_theme");J(this,"store");J(this,"app");J(this,"_currentTimeout");J(this,"_lastRenderingCostMilliseconds",0);J(this,"initialRender",!0);this.el=e,this.store=br(Nl()),this.app=z0(n?Et:ta),this.app.component("Comment",p5),this.app.component("Block",hP),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)),gP.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)||o3.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=Da();Tl(),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=fP("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 mP={createApp:z0,createStore:br,Store:Nl,SeqDiagram:Et,DiagramFrame:ta},wP={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","aria-hidden":"true",viewBox:"0 0 24 24"},xP=[A("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18 18 6M6 6l12 12"},null,-1)];function Na(t,e){return I(),$("svg",wP,xP)}const vP=Object.freeze(Object.defineProperty({__proto__:null,render:Na,default:{render:Na}},Symbol.toStringTag,{value:"Module"})),_P={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round",viewBox:"0 0 24 24"},MP=[A("path",{d:"m14 10 7-7M20 10h-6V4M3 21l7-7M4 14h6v6"},null,-1)];function Ba(t,e){return I(),$("svg",_P,MP)}const yP=Object.freeze(Object.defineProperty({__proto__:null,render:Ba,default:{render:Ba}},Symbol.toStringTag,{value:"Module"})),RP={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},ZP=[A("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"},[A("path",{d:"M3 17.3V21h3.7","data-name":"Right"}),A("path",{d:"m10 14-6.2 6.2M14 10l6.2-6.2"}),A("path",{d:"M21 6.7V3h-3.7","data-name":"Right"})],-1)];function Pa(t,e){return I(),$("svg",RP,ZP)}const AP=Object.freeze(Object.defineProperty({__proto__:null,render:Pa,default:{render:Pa}},Symbol.toStringTag,{value:"Module"})),kP={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"},bP=[A("path",{d:"M6 3v12"},null,-1),A("circle",{cx:"18",cy:"6",r:"3"},null,-1),A("circle",{cx:"6",cy:"18",r:"3"},null,-1),A("path",{d:"M18 9a9 9 0 0 1-9 9"},null,-1)];function za(t,e){return I(),$("svg",kP,bP)}const SP=Object.freeze(Object.defineProperty({__proto__:null,render:za,default:{render:za}},Symbol.toStringTag,{value:"Module"})),TP={xmlns:"http://www.w3.org/2000/svg",width:"30",height:"24",class:"arrow text-skin-message-arrow"},IP=[A("path",{d:"M0 2h28v13H14",class:"line stroke-current fill-none stroke-2"},null,-1),A("path",{d:"M18 9 8 15l10 6",class:"head stroke-current fill-current stroke-2"},null,-1)];function Ua(t,e){return I(),$("svg",TP,IP)}const EP=Object.freeze(Object.defineProperty({__proto__:null,render:Ua,default:{render:Ua}},Symbol.toStringTag,{value:"Module"})),FP={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",fill:"none",viewBox:"0 0 20 20"},OP=[A("circle",{cx:"10",cy:"10",r:"10",fill:"#000","fill-opacity":".1"},null,-1)];function $a(t,e){return I(),$("svg",FP,OP)}const DP=Object.freeze(Object.defineProperty({__proto__:null,render:$a,default:{render:$a}},Symbol.toStringTag,{value:"Module"})),NP={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 100 100"},BP=[A("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),A("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 Wa(t,e){return I(),$("svg",NP,BP)}const PP=Object.freeze(Object.defineProperty({__proto__:null,render:Wa,default:{render:Wa}},Symbol.toStringTag,{value:"Module"})),zP={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 214.27 214.27"},UP=[A("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),A("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 Ha(t,e){return I(),$("svg",zP,UP)}const $P=Object.freeze(Object.defineProperty({__proto__:null,render:Ha,default:{render:Ha}},Symbol.toStringTag,{value:"Module"})),WP={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",fill:"none",viewBox:"0 0 20 20"},HP=[A("circle",{cx:"10",cy:"10",r:"10",fill:"#4f8cf7","fill-opacity":".2",class:"text-base"},null,-1),A("path",{stroke:"#4f8cf7","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"m6 10 3 3 5-5"},null,-1)];function Va(t,e){return I(),$("svg",WP,HP)}const VP=Object.freeze(Object.defineProperty({__proto__:null,render:Va,default:{render:Va}},Symbol.toStringTag,{value:"Module"})),GP={xmlns:"http://www.w3.org/2000/svg",class:"grayscale h-4 w-4",viewBox:"0 0 1024 1024"},jP=[A("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 Ga(t,e){return I(),$("svg",GP,jP)}const qP=Object.freeze(Object.defineProperty({__proto__:null,render:Ga,default:{render:Ga}},Symbol.toStringTag,{value:"Module"})),KP={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},YP=[A("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 ja(t,e){return I(),$("svg",KP,YP)}const QP=Object.freeze(Object.defineProperty({__proto__:null,render:ja,default:{render:ja}},Symbol.toStringTag,{value:"Module"})),XP={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},JP=[A("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),A("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 qa(t,e){return I(),$("svg",XP,JP)}const ez=Object.freeze(Object.defineProperty({__proto__:null,render:qa,default:{render:qa}},Symbol.toStringTag,{value:"Module"})),tz={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},nz=[A("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),A("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 Ka(t,e){return I(),$("svg",tz,nz)}const iz=Object.freeze(Object.defineProperty({__proto__:null,render:Ka,default:{render:Ka}},Symbol.toStringTag,{value:"Module"})),Ya=["top","right","bottom","left"],Qa=["start","end"],Xa=Ya.reduce((t,e)=>t.concat(e,e+"-"+Qa[0],e+"-"+Qa[1]),[]),c3=Math.min,k1=Math.max,w7=Math.round,x7=Math.floor,E4=t=>({x:t,y:t}),sz={left:"right",right:"left",bottom:"top",top:"bottom"},rz={start:"end",end:"start"};function fn(t,e,n){return k1(t,c3(e,n))}function Z3(t,e){return typeof t=="function"?t(e):t}function C3(t){return t.split("-")[0]}function A3(t){return t.split("-")[1]}function gn(t){return t==="x"?"y":"x"}function pn(t){return t==="y"?"height":"width"}function d9(t){return["top","bottom"].includes(C3(t))?"y":"x"}function mn(t){return gn(d9(t))}function Ja(t,e,n){n===void 0&&(n=!1);const i=A3(t),s=mn(t),r=pn(s);let o=s==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(o=_7(o)),[o,_7(o)]}function oz(t){const e=_7(t);return[v7(t),e,v7(e)]}function v7(t){return t.replace(/start|end/g,e=>rz[e])}function lz(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 Lz(t,e,n,i){const s=A3(t);let r=lz(C3(t),n==="start",i);return s&&(r=r.map(o=>o+"-"+s),e&&(r=r.concat(r.map(v7)))),r}function _7(t){return t.replace(/left|right|bottom|top/g,e=>sz[e])}function az(t){return{top:0,right:0,bottom:0,left:0,...t}}function wn(t){return typeof t!="number"?az(t):{top:t,right:t,bottom:t,left:t}}function l0(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 ec(t,e,n){let{reference:i,floating:s}=t;const r=d9(e),o=mn(e),l=pn(o),L=C3(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(A3(e)){case"start":h[o]-=u*(n&&a?-1:1);break;case"end":h[o]+=u*(n&&a?-1:1);break}return h}const cz=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}=ec(a,i,L),u=i,h={},f=0;for(let m=0;m<l.length;m++){const{name:_,fn:p}=l[m],{x:g,y:w,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=w!=null?w: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}=ec(a,u,L)),m=-1)}return{x:c,y:C,placement:u,strategy:s,middlewareData:h}};async function L0(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}=Z3(e,t),f=wn(h),_=l[u?C==="floating"?"reference":"floating":C],p=l0(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,w=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l.floating)),v=await(r.isElement==null?void 0:r.isElement(w))?await(r.getScale==null?void 0:r.getScale(w))||{x:1,y:1}:{x:1,y:1},Z=l0(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:w,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 Cz=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}=Z3(t,e)||{};if(a==null)return{};const C=wn(c),u={x:n,y:i},h=mn(s),f=pn(h),m=await o.getDimensions(a),_=h==="y",p=_?"top":"left",g=_?"bottom":"right",w=_?"clientHeight":"clientWidth",v=r.reference[f]+r.reference[h]-u[h]-r.floating[f],Z=u[h]-r.reference[h],T=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a));let y=T?T[w]:0;(!y||!await(o.isElement==null?void 0:o.isElement(T)))&&(y=l.floating[w]||r.floating[f]);const b=v/2-Z/2,W=y/2-m[f]/2-1,E=c3(C[p],W),t2=c3(C[g],W),h2=E,L2=y-m[f]-t2,Y=y/2-m[f]/2+b,v2=fn(h2,Y,L2),B=!L.arrow&&A3(s)!=null&&Y!==v2&&r.reference[f]/2-(Y<h2?E:t2)-m[f]/2<0,Q=B?Y<h2?Y-h2:Y-L2:0;return{[h]:u[h]+Q,data:{[h]:v2,centerOffset:Y-v2-Q,...B&&{alignmentOffset:Q}},reset:B}}});function uz(t,e,n){return(t?[...n.filter(s=>A3(s)===t),...n.filter(s=>A3(s)!==t)]:n.filter(s=>C3(s)===s)).filter(s=>t?A3(s)===t||(e?v7(s)!==s:!1):!0)}const hz=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=Xa,autoAlignment:h=!0,...f}=Z3(t,e),m=C!==void 0||u===Xa?uz(C||null,h,u):u,_=await L0(e,f),p=((n=o.autoPlacement)==null?void 0:n.index)||0,g=m[p];if(g==null)return{};const w=Ja(g,r,await(L.isRTL==null?void 0:L.isRTL(a.floating)));if(l!==g)return{reset:{placement:m[0]}};const v=[_[C3(g)],_[w[0]],_[w[1]]],Z=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:g,overflows:v}],T=m[p+1];if(T)return{data:{index:p+1,overflows:Z},reset:{placement:T}};const y=Z.map(E=>{const t2=A3(E.placement);return[E.placement,t2&&c?E.overflows.slice(0,2).reduce((h2,L2)=>h2+L2,0):E.overflows[0],E.overflows]}).sort((E,t2)=>E[1]-t2[1]),W=((s=y.filter(E=>E[2].slice(0,A3(E[0])?2:3).every(t2=>t2<=0))[0])==null?void 0:s[0])||y[0][0];return W!==l?{data:{index:p+1,overflows:Z},reset:{placement:W}}:{}}}},dz=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:m=!0,..._}=Z3(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const p=C3(s),g=C3(l)===l,w=await(L.isRTL==null?void 0:L.isRTL(a.floating)),v=u||(g||!m?[_7(l)]:oz(l));!u&&f!=="none"&&v.push(...Lz(l,m,f,w));const Z=[l,...v],T=await L0(e,_),y=[];let b=((i=r.flip)==null?void 0:i.overflows)||[];if(c&&y.push(T[p]),C){const h2=Ja(s,o,w);y.push(T[h2[0]],T[h2[1]])}if(b=[...b,{placement:s,overflows:y}],!y.every(h2=>h2<=0)){var W,E;const h2=(((W=r.flip)==null?void 0:W.index)||0)+1,L2=Z[h2];if(L2)return{data:{index:h2,overflows:b},reset:{placement:L2}};let Y=(E=b.filter(v2=>v2.overflows[0]<=0).sort((v2,B)=>v2.overflows[1]-B.overflows[1])[0])==null?void 0:E.placement;if(!Y)switch(h){case"bestFit":{var t2;const v2=(t2=b.map(B=>[B.placement,B.overflows.filter(Q=>Q>0).reduce((Q,d2)=>Q+d2,0)]).sort((B,Q)=>B[1]-Q[1])[0])==null?void 0:t2[0];v2&&(Y=v2);break}case"initialPlacement":Y=l;break}if(s!==Y)return{reset:{placement:Y}}}return{}}}};function tc(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function nc(t){return Ya.some(e=>t[e]>=0)}const fz=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:i="referenceHidden",...s}=Z3(t,e);switch(i){case"referenceHidden":{const r=await L0(e,{...s,elementContext:"reference"}),o=tc(r,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:nc(o)}}}case"escaped":{const r=await L0(e,{...s,altBoundary:!0}),o=tc(r,n.floating);return{data:{escapedOffsets:o,escaped:nc(o)}}}default:return{}}}}};function ic(t){const e=c3(...t.map(r=>r.left)),n=c3(...t.map(r=>r.top)),i=k1(...t.map(r=>r.right)),s=k1(...t.map(r=>r.bottom));return{x:e,y:n,width:i-e,height:s-n}}function gz(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=>l0(ic(s)))}const pz=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}=Z3(t,e),c=Array.from(await(r.getClientRects==null?void 0:r.getClientRects(i.reference))||[]),C=gz(c),u=l0(ic(c)),h=wn(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(d9(n)==="y"){const E=C[0],t2=C[C.length-1],h2=C3(n)==="top",L2=E.top,Y=t2.bottom,v2=h2?E.left:t2.left,B=h2?E.right:t2.right,Q=B-v2,d2=Y-L2;return{top:L2,bottom:Y,left:v2,right:B,width:Q,height:d2,x:v2,y:L2}}const _=C3(n)==="left",p=k1(...C.map(E=>E.right)),g=c3(...C.map(E=>E.left)),w=C.filter(E=>_?E.left===g:E.right===p),v=w[0].top,Z=w[w.length-1].bottom,T=g,y=p,b=y-T,W=Z-v;return{top:v,bottom:Z,left:T,right:y,width:b,height:W,x:T,y:v}}return u}const m=await r.getElementRects({reference:{getBoundingClientRect:f},floating:i.floating,strategy:o});return s.reference.x!==m.reference.x||s.reference.y!==m.reference.y||s.reference.width!==m.reference.width||s.reference.height!==m.reference.height?{reset:{rects:m}}:{}}}};async function mz(t,e){const{placement:n,platform:i,elements:s}=t,r=await(i.isRTL==null?void 0:i.isRTL(s.floating)),o=C3(n),l=A3(n),L=d9(n)==="y",a=["left","top"].includes(o)?-1:1,c=r&&L?-1:1,C=Z3(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 wz=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 mz(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}}}}},xz=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}=Z3(t,e),a={x:n,y:i},c=await L0(e,L),C=d9(C3(s)),u=gn(C);let h=a[u],f=a[C];if(r){const _=u==="y"?"top":"left",p=u==="y"?"bottom":"right",g=h+c[_],w=h-c[p];h=fn(g,h,w)}if(o){const _=C==="y"?"top":"left",p=C==="y"?"bottom":"right",g=f+c[_],w=f-c[p];f=fn(g,f,w)}const m=l.fn({...e,[u]:h,[C]:f});return{...m,data:{x:m.x-n,y:m.y-i}}}}},vz=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}=Z3(t,e),c={x:n,y:i},C=d9(s),u=gn(C);let h=c[u],f=c[C];const m=Z3(l,e),_=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(L){const w=u==="y"?"height":"width",v=r.reference[u]-r.floating[w]+_.mainAxis,Z=r.reference[u]+r.reference[w]-_.mainAxis;h<v?h=v:h>Z&&(h=Z)}if(a){var p,g;const w=u==="y"?"width":"height",v=["top","left"].includes(C3(s)),Z=r.reference[C]-r.floating[w]+(v&&((p=o.offset)==null?void 0:p[C])||0)+(v?0:_.crossAxis),T=r.reference[C]+r.reference[w]+(v?0:((g=o.offset)==null?void 0:g[C])||0)-(v?_.crossAxis:0);f<Z?f=Z:f>T&&(f=T)}return{[u]:h,[C]:f}}}},_z=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}=Z3(t,e),L=await L0(e,l),a=C3(n),c=A3(n),C=d9(n)==="y",{width:u,height:h}=i.floating;let f,m;a==="top"||a==="bottom"?(f=a,m=c===(await(s.isRTL==null?void 0:s.isRTL(r.floating))?"start":"end")?"left":"right"):(m=a,f=c==="end"?"top":"bottom");const _=h-L.top-L.bottom,p=u-L.left-L.right,g=c3(h-L[f],_),w=c3(u-L[m],p),v=!e.middlewareData.shift;let Z=g,T=w;if(C?T=c||v?c3(w,p):p:Z=c||v?c3(g,_):_,v&&!c){const b=k1(L.left,0),W=k1(L.right,0),E=k1(L.top,0),t2=k1(L.bottom,0);C?T=u-2*(b!==0||W!==0?b+W:k1(L.left,L.right)):Z=h-2*(E!==0||t2!==0?E+t2:k1(L.top,L.bottom))}await o({...e,availableWidth:T,availableHeight:Z});const y=await s.getDimensions(r.floating);return u!==y.width||h!==y.height?{reset:{rects:!0}}:{}}}};function f9(t){return xn(t)?(t.nodeName||"").toLowerCase():"#document"}function u3(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function C4(t){var e;return(e=(xn(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function xn(t){return t instanceof Node||t instanceof u3(t).Node}function K3(t){return t instanceof Element||t instanceof u3(t).Element}function Y3(t){return t instanceof HTMLElement||t instanceof u3(t).HTMLElement}function sc(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof u3(t).ShadowRoot}function v5(t){const{overflow:e,overflowX:n,overflowY:i,display:s}=k3(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(s)}function Mz(t){return["table","td","th"].includes(f9(t))}function vn(t){const e=_n(),n=k3(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 yz(t){let e=F4(t);for(;Y3(e)&&!a0(e);){if(vn(e))return e;e=F4(e)}return null}function _n(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function a0(t){return["html","body","#document"].includes(f9(t))}function k3(t){return u3(t).getComputedStyle(t)}function M7(t){return K3(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function F4(t){if(f9(t)==="html")return t;const e=t.assignedSlot||t.parentNode||sc(t)&&t.host||C4(t);return sc(e)?e.host:e}function rc(t){const e=F4(t);return a0(e)?t.ownerDocument?t.ownerDocument.body:t.body:Y3(e)&&v5(e)?e:rc(e)}function _5(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=u3(s);return r?e.concat(o,o.visualViewport||[],v5(s)?s:[],o.frameElement&&n?_5(o.frameElement):[]):e.concat(s,_5(s,[],n))}function oc(t){const e=k3(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const s=Y3(t),r=s?t.offsetWidth:n,o=s?t.offsetHeight:i,l=w7(n)!==r||w7(i)!==o;return l&&(n=r,i=o),{width:n,height:i,$:l}}function Mn(t){return K3(t)?t:t.contextElement}function c0(t){const e=Mn(t);if(!Y3(e))return E4(1);const n=e.getBoundingClientRect(),{width:i,height:s,$:r}=oc(e);let o=(r?w7(n.width):n.width)/i,l=(r?w7(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const Rz=E4(0);function lc(t){const e=u3(t);return!_n()||!e.visualViewport?Rz:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Zz(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==u3(t)?!1:e}function g9(t,e,n,i){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),r=Mn(t);let o=E4(1);e&&(i?K3(i)&&(o=c0(i)):o=c0(t));const l=Zz(r,n,i)?lc(r):E4(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=u3(r),h=i&&K3(i)?u3(i):i;let f=u,m=f.frameElement;for(;m&&i&&h!==f;){const _=c0(m),p=m.getBoundingClientRect(),g=k3(m),w=p.left+(m.clientLeft+parseFloat(g.paddingLeft))*_.x,v=p.top+(m.clientTop+parseFloat(g.paddingTop))*_.y;L*=_.x,a*=_.y,c*=_.x,C*=_.y,L+=w,a+=v,f=u3(m),m=f.frameElement}}return l0({width:c,height:C,x:L,y:a})}const Az=[":popover-open",":modal"];function yn(t){return Az.some(e=>{try{return t.matches(e)}catch{return!1}})}function kz(t){let{elements:e,rect:n,offsetParent:i,strategy:s}=t;const r=s==="fixed",o=C4(i),l=e?yn(e.floating):!1;if(i===o||l&&r)return n;let L={scrollLeft:0,scrollTop:0},a=E4(1);const c=E4(0),C=Y3(i);if((C||!C&&!r)&&((f9(i)!=="body"||v5(o))&&(L=M7(i)),Y3(i))){const u=g9(i);a=c0(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 bz(t){return Array.from(t.getClientRects())}function Lc(t){return g9(C4(t)).left+M7(t).scrollLeft}function Sz(t){const e=C4(t),n=M7(t),i=t.ownerDocument.body,s=k1(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=k1(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let o=-n.scrollLeft+Lc(t);const l=-n.scrollTop;return k3(i).direction==="rtl"&&(o+=k1(e.clientWidth,i.clientWidth)-s),{width:s,height:r,x:o,y:l}}function Tz(t,e){const n=u3(t),i=C4(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=_n();(!a||a&&e==="fixed")&&(l=s.offsetLeft,L=s.offsetTop)}return{width:r,height:o,x:l,y:L}}function Iz(t,e){const n=g9(t,!0,e==="fixed"),i=n.top+t.clientTop,s=n.left+t.clientLeft,r=Y3(t)?c0(t):E4(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 ac(t,e,n){let i;if(e==="viewport")i=Tz(t,n);else if(e==="document")i=Sz(C4(t));else if(K3(e))i=Iz(e,n);else{const s=lc(t);i={...e,x:e.x-s.x,y:e.y-s.y}}return l0(i)}function cc(t,e){const n=F4(t);return n===e||!K3(n)||a0(n)?!1:k3(n).position==="fixed"||cc(n,e)}function Ez(t,e){const n=e.get(t);if(n)return n;let i=_5(t,[],!1).filter(l=>K3(l)&&f9(l)!=="body"),s=null;const r=k3(t).position==="fixed";let o=r?F4(t):t;for(;K3(o)&&!a0(o);){const l=k3(o),L=vn(o);!L&&l.position==="fixed"&&(s=null),(r?!L&&!s:!L&&l.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||v5(o)&&!L&&cc(t,o))?i=i.filter(c=>c!==o):s=l,o=F4(o)}return e.set(t,i),i}function Fz(t){let{element:e,boundary:n,rootBoundary:i,strategy:s}=t;const o=[...n==="clippingAncestors"?yn(e)?[]:Ez(e,this._c):[].concat(n),i],l=o[0],L=o.reduce((a,c)=>{const C=ac(e,c,s);return a.top=k1(C.top,a.top),a.right=c3(C.right,a.right),a.bottom=c3(C.bottom,a.bottom),a.left=k1(C.left,a.left),a},ac(e,l,s));return{width:L.right-L.left,height:L.bottom-L.top,x:L.left,y:L.top}}function Oz(t){const{width:e,height:n}=oc(t);return{width:e,height:n}}function Dz(t,e,n){const i=Y3(e),s=C4(e),r=n==="fixed",o=g9(t,!0,r,e);let l={scrollLeft:0,scrollTop:0};const L=E4(0);if(i||!i&&!r)if((f9(e)!=="body"||v5(s))&&(l=M7(e)),i){const C=g9(e,!0,r,e);L.x=C.x+e.clientLeft,L.y=C.y+e.clientTop}else s&&(L.x=Lc(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 Rn(t){return k3(t).position==="static"}function Cc(t,e){return!Y3(t)||k3(t).position==="fixed"?null:e?e(t):t.offsetParent}function uc(t,e){const n=u3(t);if(yn(t))return n;if(!Y3(t)){let s=F4(t);for(;s&&!a0(s);){if(K3(s)&&!Rn(s))return s;s=F4(s)}return n}let i=Cc(t,e);for(;i&&Mz(i)&&Rn(i);)i=Cc(i,e);return i&&a0(i)&&Rn(i)&&!vn(i)?n:i||yz(t)||n}const Nz=async function(t){const e=this.getOffsetParent||uc,n=this.getDimensions,i=await n(t.floating);return{reference:Dz(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Bz(t){return k3(t).direction==="rtl"}const Pz={convertOffsetParentRelativeRectToViewportRelativeRect:kz,getDocumentElement:C4,getClippingRect:Fz,getOffsetParent:uc,getElementRects:Nz,getClientRects:bz,getDimensions:Oz,getScale:c0,isElement:K3,isRTL:Bz};function zz(t,e){let n=null,i;const s=C4(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=x7(c),f=x7(s.clientWidth-(a+C)),m=x7(s.clientHeight-(c+u)),_=x7(a),g={rootMargin:-h+"px "+-f+"px "+-m+"px "+-_+"px",threshold:k1(0,c3(1,L))||1};let w=!0;function v(Z){const T=Z[0].intersectionRatio;if(T!==L){if(!w)return o();T?o(!1,T):i=setTimeout(()=>{o(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(v,{...g,root:s.ownerDocument})}catch{n=new IntersectionObserver(v,g)}n.observe(t)}return o(!0),r}function Uz(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=Mn(t),c=s||r?[...a?_5(a):[],..._5(e)]:[];c.forEach(p=>{s&&p.addEventListener("scroll",n,{passive:!0}),r&&p.addEventListener("resize",n)});const C=a&&l?zz(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 w;(w=h)==null||w.observe(e)})),n()}),a&&!L&&h.observe(a),h.observe(e));let f,m=L?g9(t):null;L&&_();function _(){const p=g9(t);m&&(p.x!==m.x||p.y!==m.y||p.width!==m.width||p.height!==m.height)&&n(),m=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 $z=wz,Wz=hz,Hz=xz,Vz=dz,Gz=fz,jz=Cz,qz=(t,e,n)=>{const i=new Map,s={platform:Pz,...n},r={...s.platform,_c:i};return cz(t,e,{...s,platform:r})};function Kz(t){return t!=null&&typeof t=="object"&&"$el"in t}function Zn(t){if(Kz(t)){const e=t.$el;return xn(e)&&f9(e)==="#comment"?null:e}return t}function Yz(t){return{name:"arrow",options:t,fn(e){const n=Zn(D(t.element));return n==null?{}:jz({element:n,padding:t.padding}).fn(e)}}}function hc(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function dc(t,e){const n=hc(t);return Math.round(e*n)/n}function Qz(t,e,n){n===void 0&&(n={});const i=n.whileElementsMounted,s=O(()=>{var y;return(y=D(n.open))!=null?y:!0}),r=O(()=>D(n.middleware)),o=O(()=>{var y;return(y=D(n.placement))!=null?y:"bottom"}),l=O(()=>{var y;return(y=D(n.strategy))!=null?y:"absolute"}),L=O(()=>{var y;return(y=D(n.transform))!=null?y:!0}),a=O(()=>Zn(t.value)),c=O(()=>Zn(e.value)),C=i2(0),u=i2(0),h=i2(l.value),f=i2(o.value),m=z5({}),_=i2(!1),p=O(()=>{const y={position:h.value,left:"0",top:"0"};if(!c.value)return y;const b=dc(c.value,C.value),W=dc(c.value,u.value);return L.value?{...y,transform:"translate("+b+"px, "+W+"px)",...hc(c.value)>=1.5&&{willChange:"transform"}}:{position:h.value,left:b+"px",top:W+"px"}});let g;function w(){a.value==null||c.value==null||qz(a.value,c.value,{middleware:r.value,placement:o.value,strategy:l.value}).then(y=>{C.value=y.x,u.value=y.y,h.value=y.strategy,f.value=y.placement,m.value=y.middlewareData,_.value=!0})}function v(){typeof g=="function"&&(g(),g=void 0)}function Z(){if(v(),i===void 0){w();return}if(a.value!=null&&c.value!=null){g=i(a.value,c.value,w);return}}function T(){s.value||(_.value=!1)}return J2([r,o,l],w,{flush:"sync"}),J2([a,c],Z,{flush:"sync"}),J2(s,T,{flush:"sync"}),Un()&&$n(v),{x:B4(C),y:B4(u),strategy:B4(h),placement:B4(f),middlewareData:B4(m),isPositioned:B4(_),floatingStyles:p,update:w}}var Xz=Object.defineProperty,Jz=(t,e,n)=>e in t?Xz(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,eU=(t,e,n)=>(Jz(t,typeof e!="symbol"?e+"":e,n),n);function M5(t){return t==null||t.value==null?null:t.value instanceof Node?t.value:"$el"in t.value&&t.value.$el?M5(i2(t.value.$el)):"getBoundingClientRect"in t.value?t.value:null}function fc(t){return t.reduce((e,n)=>n.type===E2?e.concat(fc(n.children)):e.concat(n),[])}function tU(t){return t==null?!1:typeof t.type=="string"||typeof t.type=="object"||typeof t.type=="function"}function gc(t){return t=D(t),t&&(t==null?void 0:t.nodeType)!==Node.COMMENT_NODE}class nU{constructor(){eU(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 An=new nU;function iU(t){if(An.isServer)return null;if(t instanceof Node)return t.ownerDocument;if(Object.prototype.hasOwnProperty.call(t,"value")){const e=M5(t);if(e)return e.ownerDocument}return document}function sU(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 rU(t,e,n,i,s){J2([()=>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($z(s.offset)),(s.flip===!0||typeof s.flip=="number"||typeof s.flip=="object")&&r.push(Vz({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(Hz({padding:typeof s.shift=="number"?s.shift:void 0,...typeof s.shift=="object"?s.shift:{}})),(s.autoPlacement===!0||typeof s.autoPlacement=="object")&&r.push(Wz(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(Yz({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(Gz(typeof o=="object"?o:void 0))}),t.value=r},{immediate:!0})}function oU(t,e,n){let i=()=>{};G2(()=>{if(t&&An.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}}}),E9(()=>{i()})}const lU=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 LU(t,e){const n=O(()=>{if(typeof t.originClass=="function")return t.originClass(e.value);if(typeof t.originClass=="string")return t.originClass;if(t.tailwindcssOriginClass)return lU(e.value)}),i=O(()=>t.enter||n.value?`${t.enter||""} ${n.value||""}`:void 0),s=O(()=>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 mc=["[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 wc=(t=>(t[t.Strict=0]="Strict",t[t.Loose=1]="Loose",t))(wc||{});function aU(t,e=0){var n;return t===((n=iU(t))==null?void 0:n.body)?!1:pc(e,{0(){return t.matches(mc)},1(){let i=t;for(;i!==null;){if(i.matches(mc))return!0;i=i.parentElement}return!1}})}function kn(t,e,n){An.isServer||z1(i=>{document.addEventListener(t,e,n),i(()=>document.removeEventListener(t,e,n))})}function cU(t,e,n=O(()=>!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:M5(a);if(c!=null&&c.contains(l)||r.composed&&r.composedPath().includes(c))return}return!aU(l,wc.Loose)&&l.tabIndex!==-1&&r.preventDefault(),e(r,l)}const s=i2(null);kn("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),kn("click",r=>{s.value&&(i(r,()=>s.value),s.value=null)},!0),kn("blur",r=>i(r,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}const CU=Symbol("ArrowContext"),_2={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 uU(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=X4({...r,as:r.floatingAs},e),{enterActiveClassRef:m,leaveActiveClassRef:_}=LU(f,c),p={show:o.value?f.show:!1,enter:m.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:m.value,enterFromClass:f.enterFrom,enterToClass:f.enterTo,leaveActiveClass:_.value,leaveFromClass:f.leaveFrom,leaveToClass:f.leaveTo},onBeforeEnter(){l.value=!0},onAfterLeave(){l.value=!1}},w={class:[L.value?f.referenceHiddenClass:void 0,a.value?f.escapedClass:void 0].filter(y=>!!y).join(" "),style:{...C.value,zIndex:f.zIndex}};if(f.adaptiveWidth&&typeof u.value=="number"){const y={attribute:"width",...typeof f.adaptiveWidth=="object"?f.adaptiveWidth:{}};w.style[y.attribute]=`${u.value}px`}function v(y){return f.portal?o.value?Y2(jt,()=>y):m2():y}function Z(y){const b=X4(w,n,f.dialog?{}:{ref:s});return f.as==="template"?y:typeof f.as=="string"?Y2(f.as,b,y):Y2(f.as,b,()=>y)}function T(){function y(){var b;const W=f.as==="template"?X4(w,n,f.dialog?{}:{ref:s}):null,E=t3(t,W);return((b=t.props)==null?void 0:b.unmount)===!1?(h(),E):f.vueTransition&&f.show===!1?m2():E}return o.value?f.vueTransition?Y2(D9,{...f.dialog?{ref:s}:{},...g},y):Y2(f.transitionChild?h7:nn,{key:`placement-${c.value}`,...f.dialog?{ref:s}:{},as:"template",...p},y):m2()}return v(Z(T()))}function hU(t,e,n,i,s){const r=i2(!1),o=U5(i,"placement"),l=U5(i,"strategy"),L=z5({}),a=i2(void 0),c=i2(void 0),C=i2(null),u=i2(void 0),h=i2(void 0),f=O(()=>M5(e)),m=O(()=>M5(n)),_=O(()=>gc(f)&&gc(m)),{placement:p,middlewareData:g,isPositioned:w,floatingStyles:v,update:Z}=Qz(f,m,{placement:o,strategy:l,middleware:L,transform:i.dialog?!1:i.transform,whileElementsMounted:i.dialog?()=>()=>{}:void 0}),T=i2(null);G2(()=>{r.value=!0}),J2(t,(h2,L2)=>{h2&&!L2?s("show"):!h2&&L2&&s("hide")},{immediate:!0});function y(){_.value&&(Z(),s("update"))}J2([o,l,L],y,{flush:"sync"}),rU(L,f,m,C,i),J2([g,()=>i.hide,w],()=>{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)||!w.value,c.value=(L2=g.value.hide)==null?void 0:L2.escaped)}),J2(g,()=>{const h2=g.value.arrow;u.value=h2==null?void 0:h2.x,h.value=h2==null?void 0:h2.y}),oU(!!i.adaptiveWidth,f,T),J2([t,_],async(h2,L2,Y)=>{if(await n4(),t.value&&_.value&&i.autoUpdate){const v2=Uz(f.value,m.value,y,typeof i.autoUpdate=="object"?i.autoUpdate:void 0);Y(v2)}},{flush:"post",immediate:!0});const b=i2(!0);J2(f,()=>{!(f.value instanceof Element)&&_.value&&b.value&&(b.value=!1,window.requestAnimationFrame(()=>{b.value=!0,y()}))},{flush:"sync"});const W={referenceRef:e,placement:p},E={floatingRef:n,props:i,mounted:r,show:t,referenceHidden:a,escaped:c,placement:p,floatingStyles:v,referenceElWidth:T,updateFloating:y},t2={ref:C,placement:p,x:u,y:h};return T1(CU,t2),{referenceApi:W,floatingApi:E,arrowApi:t2,placement:p,referenceEl:f,floatingEl:m,middlewareData:g,update:y}}({..._2.as});const dU={as:_2.as,show:_2.show,placement:_2.placement,strategy:_2.strategy,offset:_2.offset,shift:_2.shift,flip:_2.flip,arrow:_2.arrow,autoPlacement:_2.autoPlacement,autoUpdate:_2.autoUpdate,zIndex:_2.zIndex,vueTransition:_2.vueTransition,transitionName:_2.transitionName,transitionType:_2.transitionType,enter:_2.enter,enterFrom:_2.enterFrom,enterTo:_2.enterTo,leave:_2.leave,leaveFrom:_2.leaveFrom,leaveTo:_2.leaveTo,originClass:_2.originClass,tailwindcssOriginClass:_2.tailwindcssOriginClass,portal:_2.portal,transform:_2.transform,middleware:_2.middleware},fU={name:"FloatVirtual",inheritAttrs:!1,props:dU,emits:["initial","show","hide","update"],setup(t,{emit:e,slots:n,attrs:i}){var c;sU("FloatVirtual",t);const s=i2((c=t.show)!=null?c:!1),r=i2({getBoundingClientRect(){return{x:0,y:0,top:0,left:0,bottom:0,right:0,width:0,height:0}}}),o=i2(null),{floatingApi:l,placement:L}=hU(s,r,o,t,e);J2(()=>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]=fc(n.default(C)).filter(tU);return uU(u,{as:t.as,show:s.value},i,l)}}};_2.as,_2.placement,_2.strategy,_2.offset,_2.shift,{..._2.flip},_2.arrow,_2.autoPlacement,_2.autoUpdate,_2.zIndex,_2.vueTransition,_2.transitionName,_2.transitionType,_2.enter,_2.enterFrom,_2.enterTo,_2.leave,_2.leaveFrom,_2.leaveTo,_2.originClass,_2.tailwindcssOriginClass,_2.transform,_2.middleware;const gU={class:"flex bg-white shadow-md z-10 rounded-md p-1"},pU=["onClick"],mU=Object.freeze(Object.defineProperty({__proto__:null,default:$2({__name:"StylePanel",setup(t){const e=i2({value:null}),n=H1(),i=O(()=>n.getters.onContentChange||(()=>{})),s=O(()=>At(n.getters.diagramElement)+Il),r=O(()=>n.getters.code),o=C=>{n.dispatch("updateCode",{code:C}),i.value(C)},l=i2([]);let L;const a=({show:C,reference:u,floating:h})=>{let f,m,_,p,g,w;n.commit("onMessageClick",(v,Z)=>{var T;if(f=v.value.start.start,m=pt(r.value,f),_=EM(r.value,f),p=((T=r.value.slice(m).match(/^\s*/))==null?void 0:T[0])||"",g=_.trim().startsWith("//"),g){const y=_.trimStart().slice(2).trimStart(),b=y.indexOf("["),W=y.indexOf("]");w=Boolean(b===0&&W),w?l.value=y.slice(b+1,W).split(",").map(E=>E.trim()):l.value=[]}u.value={getBoundingClientRect:()=>Z.getBoundingClientRect()},e.value=v,C.value=!0}),cU(h,()=>{C.value=!1,l.value=[]},O(()=>C.value)),L=v=>{var Z;if(C.value=!1,!!e.value.value)if(g){let T="";if(w){let y;l.value.includes(v)?y=l.value.filter(b=>b!==v):y=[...l.value,v],T=`${p}// [${y.filter(Boolean).join(", ")}] ${_.slice(_.indexOf("]")+1).trimStart()}`}else T=`${p}// [${v}] ${_.slice((((Z=_.match(/\/\/*/))==null?void 0:Z.index)||-2)+2).trimStart()}`;T.endsWith(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as c, c as e, a as o } from "./core.
|
|
1
|
+
import { o as c, c as e, a as o } from "./core.6d6052eb.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.
|
|
23
|
+
//# sourceMappingURL=zoom-in.dc2e27ff.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as t, c, a as o } from "./core.
|
|
1
|
+
import { o as t, c, a as o } from "./core.6d6052eb.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.
|
|
23
|
+
//# sourceMappingURL=zoom-out.3c3e350c.js.map
|