@a2simcode/dui 0.0.51 → 0.0.52
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/dui.es.js +2979 -2958
- package/dist/dui.umd.js +8 -8
- package/package.json +1 -1
package/dist/dui.umd.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(re,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("@a2simcode/ui")):typeof define=="function"&&define.amd?define(["exports","vue","@a2simcode/ui"],r):(re=typeof globalThis<"u"?globalThis:re||self,r(re.DuiUI={},re.Vue,re.SimCodeUI))})(this,function(re,r,me){Object.defineProperties(re,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var Qu=Object.create,lr=Object.defineProperty,Eu=Object.getOwnPropertyDescriptor,Fu=Object.getOwnPropertyNames,Uu=Object.getPrototypeOf,bu=Object.prototype.hasOwnProperty,Hu=(e,A)=>()=>(A||(e((A={exports:{}}).exports,A),e=null),A.exports),Iu=(e,A)=>{let t={};for(var n in e)lr(t,n,{get:e[n],enumerable:!0});return A||lr(t,Symbol.toStringTag,{value:"Module"}),t},ko=(e,A,t,n)=>{if(A&&typeof A=="object"||typeof A=="function")for(var o=Fu(A),a=0,u=o.length,d;a<u;a++)d=o[a],!bu.call(e,d)&&d!==t&&lr(e,d,{get:(h=>A[h]).bind(null,d),enumerable:!(n=Eu(A,d))||n.enumerable});return e},_u=(e,A,t)=>(ko(e,A,"default"),t&&ko(t,A,"default")),gs=(e,A,t)=>(t=e!=null?Qu(Uu(e)):{},ko(A||!e||!e.__esModule?lr(t,"default",{value:e,enumerable:!0}):t,e));r=gs(r,1);var ft=(e,A)=>(e.install=t=>{t.component(e.name,e),A&&A.forEach(n=>{t.component(n.name,n)})},e),gt=(e="")=>{const A=Date.now(),t=Math.floor(Math.random()*1e9);return e===""?String(t)+String(A):e+"_"+t+String(A)},Qn=e=>{if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(Qn);const A={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=Qn(e[t]));return A},Su=e=>{if(Array.isArray(e))e.length=0;else if(e&&typeof e=="object")for(const A in e)Object.prototype.hasOwnProperty.call(e,A)&&delete e[A]},Mo={},xu=(e,A,t)=>{t[e]=t[e]||{};const n=gt();return t[e][n]=A,n},Du=(e,A,t)=>{const n=[],o=t[e]||{};return Object.keys(o).forEach(a=>{const u=o[a];try{u&&n.push(u(A))}catch(d){console.error(d)}}),n},Nu=(e,A,t)=>{if(A){const n=t[e];n&&delete n[A]}else delete t[e]},hs=(e,A)=>xu(e,A,Mo),oe=(e,A)=>Du(e,A,Mo),Lu=(e,A)=>{Nu(e,A,Mo)},Bs=(e,A,t,n,o,a)=>{const u=A.id,d=A.level,{getDesignLocals:h,selectComponent:g,getComponent:B,isMyChildComponent:w,addComponent:m,deleteComponent:v,getParentComponents:y,removeComponentFromContainer:I,addComponentToContainer:N,copyComponent:D,activedComponent:P,top:H}=(0,r.inject)("d-drag-design-provide",{}),O=[],sA=(0,r.ref)(!1),J=(0,r.ref)(!1),cA=(0,r.ref)(!1),aA=(0,r.ref)(!1),oA=(0,r.ref)(!1),iA={id:"",type:""},AA=(0,r.ref)(!1),S=(0,r.ref)(!1);let eA="",U=null;const K=$=>{if(eA===$)return U;eA=$;const{top:uA,left:mA,width:bA,height:_A}=e.value.getBoundingClientRect();return U=[{x:mA,y:uA},{x:mA+bA,y:uA},{x:mA+bA,y:uA+_A},{x:mA,y:uA+_A}],U},b=($,uA,mA)=>{let bA=uA-mA[0].y;bA<0&&(bA=-bA);let _A=uA-mA[3].y;_A<0&&(_A=-_A);let fA=$-mA[0].x;fA<0&&(fA=-fA);let Z=$-mA[1].x;return Z<0&&(Z=-Z),{ly:bA>_A?_A:bA,typey:bA>_A?"bottom":"top",lx:fA>Z?Z:fA,lallx:fA+Z}},R=($,uA,mA)=>$>=mA[0].x&&$<=mA[1].x&&uA>=mA[0].y&&uA<=mA[3].y,k=()=>{if(o){oe("dragClick",{id:u});return}if(!J.value){if(g(u),d!==0){const $=e.value.getBoundingClientRect(),uA=h();$.top-uA.top<22?aA.value=!0:aA.value=!1}J.value=!0,oe("dragClick",{id:u})}},T=$=>{const uA=v($);uA&&(0,r.nextTick)(()=>{oe("dragClick",{id:uA})})},M=()=>{iA.id="",iA.type="",d===0&&(oA.value=!1)},Y=()=>{oe("mouseEnterOrLeave",{id:u,type:"enter"})},tA=()=>{oe("mouseEnterOrLeave",{id:u,type:"leave"})},BA=$=>{oe("dragClick",{id:$})},UA={mouseEnterOrLeave:({id:$,type:uA})=>{uA==="enter"?O.push($):O.length>0&&O.splice(O.length-1,1);const mA=O.length;mA>0&&u===O[mA-1]?sA.value=!0:sA.value=!1},dragAciveChild:({type:$,id:uA})=>{uA===u?$==="top"?(AA.value=!0,S.value=!1):(S.value=!0,AA.value=!1):(S.value=!1,AA.value=!1)},dragClick({id:$,isAgain:uA}){$!==u?J.value=!1:(uA&&(J.value=!1),k())}};UA[`dragGetChildDistance_${u}`]=({dragX:$,dragY:uA,moveId:mA})=>b($,uA,K(mA));const nA={isInContainer({x:$,y:uA,id:mA,moveId:bA}){if(u===mA||w(mA,u))return cA.value=!1,{isIn:!1,level:d,id:u,groupId:a};const _A=K(bA);if(R($,uA,_A))return d===0&&(oA.value=!0),{isIn:!0,level:d,id:u,groupId:a};if(d===0){const{ly:fA,lx:Z}=b($,uA,_A);if(fA<20&&Z<20)return oA.value=!0,{isIn:!0,level:d,id:u,groupId:a};oA.value=!1}return cA.value=!1,{isIn:!1,level:d,id:u,groupId:a}},dragActiveContainer:({containerId:$,containerGroupId:uA,dragX:mA,dragY:bA,moveId:_A})=>{if($===u&&uA===a)if(cA.value=!0,n&&n.value.length>0){let fA={ly:9999999,lx:0,lallx:0,id:"",typey:""};n?.value.forEach(Z=>{if(a&&Z.groupId!==a)return;const _=oe(`dragGetChildDistance_${Z.id}`,{dragX:mA,dragY:bA,moveId:_A})[0];_&&(fA.ly>_.ly||fA.ly===_.ly&&(fA.lx>_.lx||fA.lx===_.lx&&fA.lallx>_.lallx))&&(fA=_,fA.id=Z.id)}),iA.id=fA.id,iA.type=fA.typey,oe("dragAciveChild",{id:fA.id,type:fA.typey})}else oe("dragAciveChild",{id:""});else cA.value=!1},dragAdd:$=>{if(cA.value){let uA=n?.value.length||0;iA.id!==""&&iA.id!==void 0&&(uA=n?.value.findIndex(mA=>mA.id===iA.id)||0,iA.type==="bottom"&&(uA+=1)),m($,u,uA,a),cA.value=!1}M()},dragAddByClick:$=>{if(!P.value&&u===H.id||P.value?.id===u||P.value?.containerId===u&&P.value?.dragType!=="container"){const uA=m($,u,n?.value.length||0,a,!0);uA&&$.config&&Object.keys($.config).forEach(mA=>{uA.config[mA]=$.config[mA]})}},dragUpdate($){if(cA.value){const uA=B($);if(uA.level=d+1,iA.id!==uA.id){I(uA.containerId,$);let mA=n?.value.findIndex(bA=>bA.id===iA.id)||0;iA.type==="bottom"&&(mA+=1),N(uA,u,mA,a)}cA.value=!1,(0,r.nextTick)(()=>{oe("dragClick",{id:uA.id,isAgain:!0})})}M()}},W={};return(0,r.onMounted)(()=>{(!o||t!=="container")&&Object.keys(UA).forEach($=>{W[$]=hs($,UA[$])}),t==="container"&&Object.keys(nA).forEach($=>{W[$]=hs($,nA[$])}),A.isNewAdd&&(0,r.nextTick)(()=>{k(),delete A.isNewAdd})}),(0,r.onUnmounted)(()=>{Object.keys(W).forEach($=>{Lu($,W[$])})}),{onMouseenter:Y,onMouseleave:tA,activeComponent:k,handleComponentClick:BA,deleteComponentByClick:T,copyComponent:D,getParentComponents:y,isBottomToolBar:aA,isHover:sA,isSelect:J,isToContainer:cA,isMoveingInTopLevel:oA,isTopActive:AA,isBottomActive:S}},ps=(e,A)=>{const t={x:0,y:0,clientX:0,clientY:0,dragElement:null,dragElementId:"jcode-darg-move-id",toContainerLevel:-1,toContainerId:"",groupId:"",id:""};let n=!1;const o=(v,y)=>{n!==!0&&(n=!0,setTimeout(()=>{v(),n=!1},y))},a=(0,r.ref)(!1),u=(v,y,I)=>{const N=document.createElement("div");return N.id=t.dragElementId,N.innerText=v,N.className="d-drag-move",N.style.top=`${y}px`,N.style.left=`${I}px`,document.body.appendChild(N),N},d=()=>{document.onmousemove=null,document.onmouseup=null,a.value=!1,oe("dragAciveChild",{id:""})},h=()=>{d(),t.dragElement&&(t.dragElement.remove(),t.dragElement=null,A?oe("dragAdd",e):oe("dragUpdate",e.id))},g=v=>{const{clientY:y,clientX:I}=v;if(!t.dragElement){const N=Math.abs(t.x-I),D=Math.abs(t.y-y);if(N<=1&&D<=1)return;a.value=!0,t.dragElement=u(e.name,y-11,I-32)}t.dragElement.style.top=`${y-11}px`,t.dragElement.style.left=`${I-32}px`,t.clientX=I,t.clientY=y,o(()=>{if(!a.value)return;const N=oe("isInContainer",{x:I,y,id:e.id,moveId:t.id});t.toContainerLevel=-1,t.toContainerId="",t.groupId="",N.forEach(({level:D,id:P,isIn:H,groupId:O})=>{H&&t.toContainerLevel<D&&(t.toContainerLevel=D,t.toContainerId=P,t.groupId=O)}),t.toContainerId!==""?oe("dragActiveContainer",{containerId:t.toContainerId,containerGroupId:t.groupId,dragX:I,dragY:y,moveId:t.id}):oe("dragAciveChild",{id:""})},100)};return{onContextmenu:()=>{d()},onMousedown:v=>{t.x=v.clientX,t.y=v.clientY,t.id=gt(),document.onmouseup=h,document.onmousemove=g},onClick:()=>{oe("dragAddByClick",e)},moveActive:a}},Tu={class:"d-drag-btns-pname"},ku={key:0,class:"d-drag-mask"},Mu=(0,r.defineComponent)({name:"DDrag",__name:"drag",props:{componentData:{default:()=>({})},isContainer:{type:Boolean,default:!1}},setup(e){const A=e,t=(0,r.ref)(),{onMouseenter:n,onMouseleave:o,activeComponent:a,handleComponentClick:u,deleteComponentByClick:d,copyComponent:h,getParentComponents:g,isHover:B,isSelect:w,isTopActive:m,isBottomActive:v,isBottomToolBar:y}=Bs(t,A.componentData,"component"),{onContextmenu:I,onMousedown:N,moveActive:D}=ps(A.componentData,!1);return(P,H)=>{const O=(0,r.resolveComponent)("j-button"),sA=(0,r.resolveComponent)("el-space");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["d-drag-component",{selected:(0,r.unref)(w),hovered:(0,r.unref)(B),isBottomToolBar:(0,r.unref)(y),active:(0,r.unref)(D),isTopActive:(0,r.unref)(m),isBottomActive:(0,r.unref)(v)}])},[H[11]||(H[11]=(0,r.createElementVNode)("div",{class:"d-drag-line"},null,-1)),(0,r.createElementVNode)("div",{class:"d-drag-btns",onMouseenter:H[4]||(H[4]=(...J)=>(0,r.unref)(n)&&(0,r.unref)(n)(...J)),onMouseleave:H[5]||(H[5]=(...J)=>(0,r.unref)(o)&&(0,r.unref)(o)(...J))},[(0,r.createVNode)(sA,{size:4},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",{class:"d-drag-btns-names",onClick:(0,r.withModifiers)(()=>{},["stop"])},[(0,r.createVNode)(O,{class:"d-drag-btn",type:"primary",size:"small",label:e.componentData.name},null,8,["label"]),(0,r.createElementVNode)("div",Tu,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)((0,r.unref)(g)(e.componentData.containerId),J=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:J.id},[(0,r.createVNode)(O,{class:"d-drag-btn",type:"primary",size:"small",label:J.name,onClick:cA=>(0,r.unref)(u)(J.id)},null,8,["label","onClick"])]))),128))])]),(0,r.createVNode)(O,{class:"d-drag-btn",type:"primary",size:"small",icon:"mdi:content-copy",onClick:H[0]||(H[0]=(0,r.withModifiers)(J=>(0,r.unref)(h)(e.componentData.id),["stop"]))}),(0,r.createElementVNode)("div",{onContextmenu:H[1]||(H[1]=(0,r.withModifiers)((...J)=>(0,r.unref)(I)&&(0,r.unref)(I)(...J),["stop"])),onMousedown:H[2]||(H[2]=(0,r.withModifiers)((...J)=>(0,r.unref)(N)&&(0,r.unref)(N)(...J),["stop"])),style:{display:"flex"}},[(0,r.createVNode)(O,{class:"d-drag-btn",type:"primary",size:"small",icon:"mdi:drag"})],32),(0,r.createVNode)(O,{class:"d-drag-btn",danger:"",type:"primary",size:"small",icon:"mdi:delete",onClick:H[3]||(H[3]=(0,r.withModifiers)(J=>(0,r.unref)(d)(e.componentData.id),["stop"]))})]),_:1})],32),(0,r.createElementVNode)("div",{ref_key:"refDrag",ref:t,class:"d-drag-body",onClick:H[6]||(H[6]=(0,r.withModifiers)((...J)=>(0,r.unref)(a)&&(0,r.unref)(a)(...J),["stop"])),onContextmenu:H[7]||(H[7]=(0,r.withModifiers)((...J)=>(0,r.unref)(I)&&(0,r.unref)(I)(...J),["stop"])),onMousedown:H[8]||(H[8]=(0,r.withModifiers)((...J)=>(0,r.unref)(N)&&(0,r.unref)(N)(...J),["stop"])),onMouseenter:H[9]||(H[9]=(...J)=>(0,r.unref)(n)&&(0,r.unref)(n)(...J)),onMouseleave:H[10]||(H[10]=(...J)=>(0,r.unref)(o)&&(0,r.unref)(o)(...J))},[(0,r.renderSlot)(P.$slots,"default"),e.isContainer?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",ku))],544)],2)}}}),Oo=Mu,Ou=(0,r.defineComponent)({name:"DDragTool",__name:"tool",props:{config:{}},setup(e){const{onContextmenu:A,onMousedown:t,onClick:n}=ps(e.config??{name:"",id:""},!0);return(o,a)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"d-drag-tool",onClick:a[0]||(a[0]=(0,r.withModifiers)((...u)=>(0,r.unref)(n)&&(0,r.unref)(n)(...u),["stop"])),onContextmenu:a[1]||(a[1]=(0,r.withModifiers)((...u)=>(0,r.unref)(A)&&(0,r.unref)(A)(...u),["stop"])),onMousedown:a[2]||(a[2]=(0,r.withModifiers)((...u)=>(0,r.unref)(t)&&(0,r.unref)(t)(...u),["stop"]))},[(0,r.renderSlot)(o.$slots,"default")],32))}}),Ko=Ou,Ku={key:0,class:"d-drag-line"},Ru={key:1,class:"d-drag-btns"},Vu=(0,r.defineComponent)({name:"DDragContainer",__name:"container",props:{componentData:{default:()=>({})},isComponentContainer:{type:Boolean,default:!0},groupId:{default:void 0}},setup(e){const A=e,t=(0,r.ref)(),n=(0,r.computed)(()=>A.componentData?.children||[]),{onMouseenter:o,onMouseleave:a,activeComponent:u,isHover:d,isSelect:h,isToContainer:g,isMoveingInTopLevel:B,isTopActive:w,isBottomActive:m}=Bs(t,A.componentData,"container",n,A.isComponentContainer,A.groupId),v=(0,r.computed)(()=>!!(n.value.findIndex(y=>y.groupId===A.groupId)===-1&&g.value));return(y,I)=>{const N=(0,r.resolveComponent)("j-button");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{ref_key:"refDrag",ref:t,class:(0,r.normalizeClass)(["d-drag-container",{selected:(0,r.unref)(h)&&!e.isComponentContainer,hovered:(0,r.unref)(d)&&!e.isComponentContainer,isTopLevel:e.componentData.level===0,active:v.value,isMoveingInTopLevel:(0,r.unref)(B),isTopActive:(0,r.unref)(w),isBottomActive:(0,r.unref)(m)}])},[e.isComponentContainer?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",Ku)),e.isComponentContainer?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",Ru,[(0,r.createElementVNode)("div",{class:"d-drag-btns-names",onClick:(0,r.withModifiers)(()=>{},["stop"])},[(0,r.createVNode)(N,{class:"d-drag-btn",type:"primary",size:"small",label:e.componentData.name},null,8,["label"])])])),(0,r.createElementVNode)("div",{class:"d-drag-body",onClick:I[0]||(I[0]=(0,r.withModifiers)((...D)=>(0,r.unref)(u)&&(0,r.unref)(u)(...D),["stop"])),onMouseenter:I[1]||(I[1]=(...D)=>(0,r.unref)(o)&&(0,r.unref)(o)(...D)),onMouseleave:I[2]||(I[2]=(...D)=>(0,r.unref)(a)&&(0,r.unref)(a)(...D))},[(0,r.renderSlot)(y.$slots,"default")],32)],2)}}}),Ro=Vu,Pu=(0,r.defineComponent)({name:"DDragFormList",__name:"dragFormList",props:{componentList:{default:()=>[]},globalConfig:{default:()=>({})}},setup(e){const{designItemName:A}=(0,r.inject)("dui-design-provide",{});return(t,n)=>{const o=(0,r.resolveComponent)("el-col");return(0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.componentList,a=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:a.id},[a.type!="pkey"?((0,r.openBlock)(),(0,r.createBlock)(o,{key:0,span:a.config.span||24},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(Oo,{"is-container":a.dragType!=="component","component-data":a},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(A)),{"component-data":a,"global-config":e.globalConfig},null,8,["component-data","global-config"]))]),_:2},1032,["is-container","component-data"])]),_:2},1032,["span"])):(0,r.createCommentVNode)("",!0)],64))),128)}}}),Vo=Pu,Gu=(0,r.defineComponent)({name:"DDragIndexList",__name:"dragIndexList",props:{componentList:{default:()=>[]},globalConfig:{default:()=>({})}},setup(e){const{designItemName:A}=(0,r.inject)("dui-design-provide",{}),t=n=>{if(n.flexWidth)return{width:n.flexWidth+"%"}};return(n,o)=>((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.componentList,a=>((0,r.openBlock)(),(0,r.createBlock)(Oo,{key:a.id,style:(0,r.normalizeStyle)(t(a.config)),"is-container":a.dragType!=="component","component-data":a},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(A)),{"component-data":a,"global-config":e.globalConfig},null,8,["component-data","global-config"]))]),_:2},1032,["style","is-container","component-data"]))),128))}}),Po=Gu,ms=ft(Oo,[Ko,Ro,Vo,Po]);function En(e){return(0,r.getCurrentScope)()?((0,r.onScopeDispose)(e),!0):!1}function je(e){return typeof e=="function"?e():(0,r.unref)(e)}var zu=typeof window<"u"&&typeof document<"u",Xu=e=>typeof e<"u",$u=Object.prototype.toString,Yu=e=>$u.call(e)==="[object Object]",Wu=()=>{};function Ju(e,A){function t(...n){return new Promise((o,a)=>{Promise.resolve(e(()=>A.apply(this,n),{fn:A,thisArg:this,args:n})).then(o).catch(a)})}return t}var ws=e=>e();function Zu(e=ws){const A=(0,r.ref)(!0);function t(){A.value=!1}function n(){A.value=!0}const o=(...a)=>{A.value&&e(...a)};return{isActive:(0,r.readonly)(A),pause:t,resume:n,eventFilter:o}}function Cs(e,A=!1,t="Timeout"){return new Promise((n,o)=>{setTimeout(A?()=>o(t):n,e)})}function ju(e,A,t={}){const{eventFilter:n=ws,...o}=t;return(0,r.watch)(e,Ju(n,A),o)}function Wt(e,A,t={}){const{eventFilter:n,...o}=t,{eventFilter:a,pause:u,resume:d,isActive:h}=Zu(n);return{stop:ju(e,A,{...o,eventFilter:a}),pause:u,resume:d,isActive:h}}function qu(e,A={}){if(!(0,r.isRef)(e))return(0,r.toRefs)(e);const t=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const n in e.value)t[n]=(0,r.customRef)(()=>({get(){return e.value[n]},set(o){var a;if((a=je(A.replaceRef))==null||a)if(Array.isArray(e.value)){const u=[...e.value];u[n]=o,e.value=u}else{const u={...e.value,[n]:o};Object.setPrototypeOf(u,Object.getPrototypeOf(e.value)),e.value=u}else e.value[n]=o}}));return t}function Go(e,A=!1){function t(w,{flush:m="sync",deep:v=!1,timeout:y,throwOnTimeout:I}={}){let N=null;const D=[new Promise(P=>{N=(0,r.watch)(e,H=>{w(H)!==A&&(N?.(),P(H))},{flush:m,deep:v,immediate:!0})})];return y!=null&&D.push(Cs(y,I).then(()=>je(e)).finally(()=>N?.())),Promise.race(D)}function n(w,m){if(!(0,r.isRef)(w))return t(H=>H===w,m);const{flush:v="sync",deep:y=!1,timeout:I,throwOnTimeout:N}=m??{};let D=null;const P=[new Promise(H=>{D=(0,r.watch)([e,w],([O,sA])=>{A!==(O===sA)&&(D?.(),H(O))},{flush:v,deep:y,immediate:!0})})];return I!=null&&P.push(Cs(I,N).then(()=>je(e)).finally(()=>(D?.(),je(e)))),Promise.race(P)}function o(w){return t(m=>!!m,w)}function a(w){return n(null,w)}function u(w){return n(void 0,w)}function d(w){return t(Number.isNaN,w)}function h(w,m){return t(v=>{const y=Array.from(v);return y.includes(w)||y.includes(je(w))},m)}function g(w){return B(1,w)}function B(w=1,m){let v=-1;return t(()=>(v+=1,v>=w),m)}return Array.isArray(je(e))?{toMatch:t,toContains:h,changed:g,changedTimes:B,get not(){return Go(e,!A)}}:{toMatch:t,toBe:n,toBeTruthy:o,toBeNull:a,toBeNaN:d,toBeUndefined:u,changed:g,changedTimes:B,get not(){return Go(e,!A)}}}function zo(e){return Go(e)}function Ad(e){var A;const t=je(e);return(A=t?.$el)!=null?A:t}var vs=zu?window:void 0;function ys(...e){let A,t,n,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,n,o]=e,A=vs):[A,t,n,o]=e,!A)return Wu;Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);const a=[],u=()=>{a.forEach(B=>B()),a.length=0},d=(B,w,m,v)=>(B.addEventListener(w,m,v),()=>B.removeEventListener(w,m,v)),h=(0,r.watch)(()=>[Ad(A),je(o)],([B,w])=>{if(u(),!B)return;const m=Yu(w)?{...w}:w;a.push(...t.flatMap(v=>n.map(y=>d(B,v,y,m))))},{immediate:!0,flush:"post"}),g=()=>{h(),u()};return En(g),g}function ed(e){return typeof e=="function"?e:typeof e=="string"?A=>A.key===e:Array.isArray(e)?A=>e.includes(A.key):()=>!0}function Qs(...e){let A,t,n={};e.length===3?(A=e[0],t=e[1],n=e[2]):e.length===2?typeof e[1]=="object"?(A=!0,t=e[0],n=e[1]):(A=e[0],t=e[1]):(A=!0,t=e[0]);const{target:o=vs,eventName:a="keydown",passive:u=!1,dedupe:d=!1}=n,h=ed(A);return ys(o,a,B=>{B.repeat&&je(d)||h(B)&&t(B)},u)}function td(e){return JSON.parse(JSON.stringify(e))}function Xo(e,A,t,n={}){var o,a,u;const{clone:d=!1,passive:h=!1,eventName:g,deep:B=!1,defaultValue:w,shouldEmit:m}=n,v=(0,r.getCurrentInstance)(),y=t||v?.emit||((o=v?.$emit)==null?void 0:o.bind(v))||((u=(a=v?.proxy)==null?void 0:a.$emit)==null?void 0:u.bind(v?.proxy));let I=g;A||(A="modelValue"),I=I||`update:${A.toString()}`;const N=H=>d?typeof d=="function"?d(H):td(H):H,D=()=>Xu(e[A])?N(e[A]):w,P=H=>{m?m(H)&&y(I,H):y(I,H)};if(h){const H=(0,r.ref)(D());let O=!1;return(0,r.watch)(()=>e[A],sA=>{O||(O=!0,H.value=N(sA),(0,r.nextTick)(()=>O=!1))}),(0,r.watch)(H,sA=>{!O&&(sA!==e[A]||B)&&P(sA)},{deep:B}),H}else return(0,r.computed)({get(){return D()},set(H){P(H)}})}var nd={value:()=>{}};function cr(){for(var e=0,A=arguments.length,t={},n;e<A;++e){if(!(n=arguments[e]+"")||n in t||/[\s.]/.test(n))throw new Error("illegal type: "+n);t[n]=[]}return new ur(t)}function ur(e){this._=e}function rd(e,A){return e.trim().split(/^|\s+/).map(function(t){var n="",o=t.indexOf(".");if(o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),t&&!A.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}ur.prototype=cr.prototype={constructor:ur,on:function(e,A){var t=this._,n=rd(e+"",t),o,a=-1,u=n.length;if(arguments.length<2){for(;++a<u;)if((o=(e=n[a]).type)&&(o=od(t[o],e.name)))return o;return}if(A!=null&&typeof A!="function")throw new Error("invalid callback: "+A);for(;++a<u;)if(o=(e=n[a]).type)t[o]=Es(t[o],e.name,A);else if(A==null)for(o in t)t[o]=Es(t[o],e.name,null);return this},copy:function(){var e={},A=this._;for(var t in A)e[t]=A[t].slice();return new ur(e)},call:function(e,A){if((o=arguments.length-2)>0)for(var t=new Array(o),n=0,o,a;n<o;++n)t[n]=arguments[n+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],n=0,o=a.length;n<o;++n)a[n].value.apply(A,t)},apply:function(e,A,t){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],o=0,a=n.length;o<a;++o)n[o].value.apply(A,t)}};function od(e,A){for(var t=0,n=e.length,o;t<n;++t)if((o=e[t]).name===A)return o.value}function Es(e,A,t){for(var n=0,o=e.length;n<o;++n)if(e[n].name===A){e[n]=nd,e=e.slice(0,n).concat(e.slice(n+1));break}return t!=null&&e.push({name:A,value:t}),e}var $o="http://www.w3.org/1999/xhtml",Fs={svg:"http://www.w3.org/2000/svg",xhtml:$o,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function dr(e){var A=e+="",t=A.indexOf(":");return t>=0&&(A=e.slice(0,t))!=="xmlns"&&(e=e.slice(t+1)),Fs.hasOwnProperty(A)?{space:Fs[A],local:e}:e}function id(e){return function(){var A=this.ownerDocument,t=this.namespaceURI;return t===$o&&A.documentElement.namespaceURI===$o?A.createElement(e):A.createElementNS(t,e)}}function sd(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Us(e){var A=dr(e);return(A.local?sd:id)(A)}function ad(){}function Yo(e){return e==null?ad:function(){return this.querySelector(e)}}function ld(e){typeof e!="function"&&(e=Yo(e));for(var A=this._groups,t=A.length,n=new Array(t),o=0;o<t;++o)for(var a=A[o],u=a.length,d=n[o]=new Array(u),h,g,B=0;B<u;++B)(h=a[B])&&(g=e.call(h,h.__data__,B,a))&&("__data__"in h&&(g.__data__=h.__data__),d[B]=g);return new Fe(n,this._parents)}function cd(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function ud(){return[]}function bs(e){return e==null?ud:function(){return this.querySelectorAll(e)}}function dd(e){return function(){return cd(e.apply(this,arguments))}}function fd(e){typeof e=="function"?e=dd(e):e=bs(e);for(var A=this._groups,t=A.length,n=[],o=[],a=0;a<t;++a)for(var u=A[a],d=u.length,h,g=0;g<d;++g)(h=u[g])&&(n.push(e.call(h,h.__data__,g,u)),o.push(h));return new Fe(n,o)}function Hs(e){return function(){return this.matches(e)}}function Is(e){return function(A){return A.matches(e)}}var gd=Array.prototype.find;function hd(e){return function(){return gd.call(this.children,e)}}function Bd(){return this.firstElementChild}function pd(e){return this.select(e==null?Bd:hd(typeof e=="function"?e:Is(e)))}var md=Array.prototype.filter;function wd(){return Array.from(this.children)}function Cd(e){return function(){return md.call(this.children,e)}}function vd(e){return this.selectAll(e==null?wd:Cd(typeof e=="function"?e:Is(e)))}function yd(e){typeof e!="function"&&(e=Hs(e));for(var A=this._groups,t=A.length,n=new Array(t),o=0;o<t;++o)for(var a=A[o],u=a.length,d=n[o]=[],h,g=0;g<u;++g)(h=a[g])&&e.call(h,h.__data__,g,a)&&d.push(h);return new Fe(n,this._parents)}function _s(e){return new Array(e.length)}function Qd(){return new Fe(this._enter||this._groups.map(_s),this._parents)}function fr(e,A){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=A}fr.prototype={constructor:fr,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,A){return this._parent.insertBefore(e,A)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Ed(e){return function(){return e}}function Fd(e,A,t,n,o,a){for(var u=0,d,h=A.length,g=a.length;u<g;++u)(d=A[u])?(d.__data__=a[u],n[u]=d):t[u]=new fr(e,a[u]);for(;u<h;++u)(d=A[u])&&(o[u]=d)}function Ud(e,A,t,n,o,a,u){var d,h,g=new Map,B=A.length,w=a.length,m=new Array(B),v;for(d=0;d<B;++d)(h=A[d])&&(m[d]=v=u.call(h,h.__data__,d,A)+"",g.has(v)?o[d]=h:g.set(v,h));for(d=0;d<w;++d)v=u.call(e,a[d],d,a)+"",(h=g.get(v))?(n[d]=h,h.__data__=a[d],g.delete(v)):t[d]=new fr(e,a[d]);for(d=0;d<B;++d)(h=A[d])&&g.get(m[d])===h&&(o[d]=h)}function bd(e){return e.__data__}function Hd(e,A){if(!arguments.length)return Array.from(this,bd);var t=A?Ud:Fd,n=this._parents,o=this._groups;typeof e!="function"&&(e=Ed(e));for(var a=o.length,u=new Array(a),d=new Array(a),h=new Array(a),g=0;g<a;++g){var B=n[g],w=o[g],m=w.length,v=Id(e.call(B,B&&B.__data__,g,n)),y=v.length,I=d[g]=new Array(y),N=u[g]=new Array(y);t(B,w,I,N,h[g]=new Array(m),v,A);for(var D=0,P=0,H,O;D<y;++D)if(H=I[D]){for(D>=P&&(P=D+1);!(O=N[P])&&++P<y;);H._next=O||null}}return u=new Fe(u,n),u._enter=d,u._exit=h,u}function Id(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function _d(){return new Fe(this._exit||this._groups.map(_s),this._parents)}function Sd(e,A,t){var n=this.enter(),o=this,a=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),A!=null&&(o=A(o),o&&(o=o.selection())),t==null?a.remove():t(a),n&&o?n.merge(o).order():o}function xd(e){for(var A=e.selection?e.selection():e,t=this._groups,n=A._groups,o=t.length,a=n.length,u=Math.min(o,a),d=new Array(o),h=0;h<u;++h)for(var g=t[h],B=n[h],w=g.length,m=d[h]=new Array(w),v,y=0;y<w;++y)(v=g[y]||B[y])&&(m[y]=v);for(;h<o;++h)d[h]=t[h];return new Fe(d,this._parents)}function Dd(){for(var e=this._groups,A=-1,t=e.length;++A<t;)for(var n=e[A],o=n.length-1,a=n[o],u;--o>=0;)(u=n[o])&&(a&&u.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(u,a),a=u);return this}function Nd(e){e||(e=Ld);function A(w,m){return w&&m?e(w.__data__,m.__data__):!w-!m}for(var t=this._groups,n=t.length,o=new Array(n),a=0;a<n;++a){for(var u=t[a],d=u.length,h=o[a]=new Array(d),g,B=0;B<d;++B)(g=u[B])&&(h[B]=g);h.sort(A)}return new Fe(o,this._parents).order()}function Ld(e,A){return e<A?-1:e>A?1:e>=A?0:NaN}function Td(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function kd(){return Array.from(this)}function Md(){for(var e=this._groups,A=0,t=e.length;A<t;++A)for(var n=e[A],o=0,a=n.length;o<a;++o){var u=n[o];if(u)return u}return null}function Od(){let e=0;for(const A of this)++e;return e}function Kd(){return!this.node()}function Rd(e){for(var A=this._groups,t=0,n=A.length;t<n;++t)for(var o=A[t],a=0,u=o.length,d;a<u;++a)(d=o[a])&&e.call(d,d.__data__,a,o);return this}function Vd(e){return function(){this.removeAttribute(e)}}function Pd(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Gd(e,A){return function(){this.setAttribute(e,A)}}function zd(e,A){return function(){this.setAttributeNS(e.space,e.local,A)}}function Xd(e,A){return function(){var t=A.apply(this,arguments);t==null?this.removeAttribute(e):this.setAttribute(e,t)}}function $d(e,A){return function(){var t=A.apply(this,arguments);t==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}}function Yd(e,A){var t=dr(e);if(arguments.length<2){var n=this.node();return t.local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}return this.each((A==null?t.local?Pd:Vd:typeof A=="function"?t.local?$d:Xd:t.local?zd:Gd)(t,A))}function Ss(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Wd(e){return function(){this.style.removeProperty(e)}}function Jd(e,A,t){return function(){this.style.setProperty(e,A,t)}}function Zd(e,A,t){return function(){var n=A.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,t)}}function jd(e,A,t){return arguments.length>1?this.each((A==null?Wd:typeof A=="function"?Zd:Jd)(e,A,t??"")):Jt(this.node(),e)}function Jt(e,A){return e.style.getPropertyValue(A)||Ss(e).getComputedStyle(e,null).getPropertyValue(A)}function qd(e){return function(){delete this[e]}}function Af(e,A){return function(){this[e]=A}}function ef(e,A){return function(){var t=A.apply(this,arguments);t==null?delete this[e]:this[e]=t}}function tf(e,A){return arguments.length>1?this.each((A==null?qd:typeof A=="function"?ef:Af)(e,A)):this.node()[e]}function xs(e){return e.trim().split(/^|\s+/)}function Wo(e){return e.classList||new Ds(e)}function Ds(e){this._node=e,this._names=xs(e.getAttribute("class")||"")}Ds.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var A=this._names.indexOf(e);A>=0&&(this._names.splice(A,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Ns(e,A){for(var t=Wo(e),n=-1,o=A.length;++n<o;)t.add(A[n])}function Ls(e,A){for(var t=Wo(e),n=-1,o=A.length;++n<o;)t.remove(A[n])}function nf(e){return function(){Ns(this,e)}}function rf(e){return function(){Ls(this,e)}}function of(e,A){return function(){(A.apply(this,arguments)?Ns:Ls)(this,e)}}function sf(e,A){var t=xs(e+"");if(arguments.length<2){for(var n=Wo(this.node()),o=-1,a=t.length;++o<a;)if(!n.contains(t[o]))return!1;return!0}return this.each((typeof A=="function"?of:A?nf:rf)(t,A))}function af(){this.textContent=""}function lf(e){return function(){this.textContent=e}}function cf(e){return function(){var A=e.apply(this,arguments);this.textContent=A??""}}function uf(e){return arguments.length?this.each(e==null?af:(typeof e=="function"?cf:lf)(e)):this.node().textContent}function df(){this.innerHTML=""}function ff(e){return function(){this.innerHTML=e}}function gf(e){return function(){var A=e.apply(this,arguments);this.innerHTML=A??""}}function hf(e){return arguments.length?this.each(e==null?df:(typeof e=="function"?gf:ff)(e)):this.node().innerHTML}function Bf(){this.nextSibling&&this.parentNode.appendChild(this)}function pf(){return this.each(Bf)}function mf(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function wf(){return this.each(mf)}function Cf(e){var A=typeof e=="function"?e:Us(e);return this.select(function(){return this.appendChild(A.apply(this,arguments))})}function vf(){return null}function yf(e,A){var t=typeof e=="function"?e:Us(e),n=A==null?vf:typeof A=="function"?A:Yo(A);return this.select(function(){return this.insertBefore(t.apply(this,arguments),n.apply(this,arguments)||null)})}function Qf(){var e=this.parentNode;e&&e.removeChild(this)}function Ef(){return this.each(Qf)}function Ff(){var e=this.cloneNode(!1),A=this.parentNode;return A?A.insertBefore(e,this.nextSibling):e}function Uf(){var e=this.cloneNode(!0),A=this.parentNode;return A?A.insertBefore(e,this.nextSibling):e}function bf(e){return this.select(e?Uf:Ff)}function Hf(e){return arguments.length?this.property("__data__",e):this.node().__data__}function If(e){return function(A){e.call(this,A,this.__data__)}}function _f(e){return e.trim().split(/^|\s+/).map(function(A){var t="",n=A.indexOf(".");return n>=0&&(t=A.slice(n+1),A=A.slice(0,n)),{type:A,name:t}})}function Sf(e){return function(){var A=this.__on;if(A){for(var t=0,n=-1,o=A.length,a;t<o;++t)a=A[t],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):A[++n]=a;++n?A.length=n:delete this.__on}}}function xf(e,A,t){return function(){var n=this.__on,o,a=If(A);if(n){for(var u=0,d=n.length;u<d;++u)if((o=n[u]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=a,o.options=t),o.value=A;return}}this.addEventListener(e.type,a,t),o={type:e.type,name:e.name,value:A,listener:a,options:t},n?n.push(o):this.__on=[o]}}function Df(e,A,t){var n=_f(e+""),o,a=n.length,u;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,g=d.length,B;h<g;++h)for(o=0,B=d[h];o<a;++o)if((u=n[o]).type===B.type&&u.name===B.name)return B.value}return}for(d=A?xf:Sf,o=0;o<a;++o)this.each(d(n[o],A,t));return this}function Ts(e,A,t){var n=Ss(e),o=n.CustomEvent;typeof o=="function"?o=new o(A,t):(o=n.document.createEvent("Event"),t?(o.initEvent(A,t.bubbles,t.cancelable),o.detail=t.detail):o.initEvent(A,!1,!1)),e.dispatchEvent(o)}function Nf(e,A){return function(){return Ts(this,e,A)}}function Lf(e,A){return function(){return Ts(this,e,A.apply(this,arguments))}}function Tf(e,A){return this.each((typeof A=="function"?Lf:Nf)(e,A))}function*kf(){for(var e=this._groups,A=0,t=e.length;A<t;++A)for(var n=e[A],o=0,a=n.length,u;o<a;++o)(u=n[o])&&(yield u)}var ks=[null];function Fe(e,A){this._groups=e,this._parents=A}function Fn(){return new Fe([[document.documentElement]],ks)}function Mf(){return this}Fe.prototype=Fn.prototype={constructor:Fe,select:ld,selectAll:fd,selectChild:pd,selectChildren:vd,filter:yd,data:Hd,enter:Qd,exit:_d,join:Sd,merge:xd,selection:Mf,order:Dd,sort:Nd,call:Td,nodes:kd,node:Md,size:Od,empty:Kd,each:Rd,attr:Yd,style:jd,property:tf,classed:sf,text:uf,html:hf,raise:pf,lower:wf,append:Cf,insert:yf,remove:Ef,clone:bf,datum:Hf,on:Df,dispatch:Tf,[Symbol.iterator]:kf};function Le(e){return typeof e=="string"?new Fe([[document.querySelector(e)]],[document.documentElement]):new Fe([[e]],ks)}function Of(e){let A;for(;A=e.sourceEvent;)e=A;return e}function Re(e,A){if(e=Of(e),A===void 0&&(A=e.currentTarget),A){var t=A.ownerSVGElement||A;if(t.createSVGPoint){var n=t.createSVGPoint();return n.x=e.clientX,n.y=e.clientY,n=n.matrixTransform(A.getScreenCTM().inverse()),[n.x,n.y]}if(A.getBoundingClientRect){var o=A.getBoundingClientRect();return[e.clientX-o.left-A.clientLeft,e.clientY-o.top-A.clientTop]}}return[e.pageX,e.pageY]}var Kf={passive:!1},Un={capture:!0,passive:!1};function Jo(e){e.stopImmediatePropagation()}function Zt(e){e.preventDefault(),e.stopImmediatePropagation()}function Ms(e){var A=e.document.documentElement,t=Le(e).on("dragstart.drag",Zt,Un);"onselectstart"in A?t.on("selectstart.drag",Zt,Un):(A.__noselect=A.style.MozUserSelect,A.style.MozUserSelect="none")}function Os(e,A){var t=e.document.documentElement,n=Le(e).on("dragstart.drag",null);A&&(n.on("click.drag",Zt,Un),setTimeout(function(){n.on("click.drag",null)},0)),"onselectstart"in t?n.on("selectstart.drag",null):(t.style.MozUserSelect=t.__noselect,delete t.__noselect)}var gr=e=>()=>e;function Zo(e,{sourceEvent:A,subject:t,target:n,identifier:o,active:a,x:u,y:d,dx:h,dy:g,dispatch:B}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:A,enumerable:!0,configurable:!0},subject:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:u,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:g,enumerable:!0,configurable:!0},_:{value:B}})}Zo.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Rf(e){return!e.ctrlKey&&!e.button}function Vf(){return this.parentNode}function Pf(e,A){return A??{x:e.x,y:e.y}}function Gf(){return navigator.maxTouchPoints||"ontouchstart"in this}function zf(){var e=Rf,A=Vf,t=Pf,n=Gf,o={},a=cr("start","drag","end"),u=0,d,h,g,B,w=0;function m(O){O.on("mousedown.drag",v).filter(n).on("touchstart.drag",N).on("touchmove.drag",D,Kf).on("touchend.drag touchcancel.drag",P).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(O,sA){if(!(B||!e.call(this,O,sA))){var J=H(this,A.call(this,O,sA),O,sA,"mouse");J&&(Le(O.view).on("mousemove.drag",y,Un).on("mouseup.drag",I,Un),Ms(O.view),Jo(O),g=!1,d=O.clientX,h=O.clientY,J("start",O))}}function y(O){if(Zt(O),!g){var sA=O.clientX-d,J=O.clientY-h;g=sA*sA+J*J>w}o.mouse("drag",O)}function I(O){Le(O.view).on("mousemove.drag mouseup.drag",null),Os(O.view,g),Zt(O),o.mouse("end",O)}function N(O,sA){if(e.call(this,O,sA)){var J=O.changedTouches,cA=A.call(this,O,sA),aA=J.length,oA,iA;for(oA=0;oA<aA;++oA)(iA=H(this,cA,O,sA,J[oA].identifier,J[oA]))&&(Jo(O),iA("start",O,J[oA]))}}function D(O){var sA=O.changedTouches,J=sA.length,cA,aA;for(cA=0;cA<J;++cA)(aA=o[sA[cA].identifier])&&(Zt(O),aA("drag",O,sA[cA]))}function P(O){var sA=O.changedTouches,J=sA.length,cA,aA;for(B&&clearTimeout(B),B=setTimeout(function(){B=null},500),cA=0;cA<J;++cA)(aA=o[sA[cA].identifier])&&(Jo(O),aA("end",O,sA[cA]))}function H(O,sA,J,cA,aA,oA){var iA=a.copy(),AA=Re(oA||J,sA),S,eA,U;if((U=t.call(O,new Zo("beforestart",{sourceEvent:J,target:m,identifier:aA,active:u,x:AA[0],y:AA[1],dx:0,dy:0,dispatch:iA}),cA))!=null)return S=U.x-AA[0]||0,eA=U.y-AA[1]||0,function K(b,R,k){var T=AA,M;switch(b){case"start":o[aA]=K,M=u++;break;case"end":delete o[aA],--u;case"drag":AA=Re(k||R,sA),M=u;break}iA.call(b,O,new Zo(b,{sourceEvent:R,subject:U,target:m,identifier:aA,active:M,x:AA[0]+S,y:AA[1]+eA,dx:AA[0]-T[0],dy:AA[1]-T[1],dispatch:iA}),cA)}}return m.filter=function(O){return arguments.length?(e=typeof O=="function"?O:gr(!!O),m):e},m.container=function(O){return arguments.length?(A=typeof O=="function"?O:gr(O),m):A},m.subject=function(O){return arguments.length?(t=typeof O=="function"?O:gr(O),m):t},m.touchable=function(O){return arguments.length?(n=typeof O=="function"?O:gr(!!O),m):n},m.on=function(){var O=a.on.apply(a,arguments);return O===a?m:O},m.clickDistance=function(O){return arguments.length?(w=(O=+O)*O,m):Math.sqrt(w)},m}function jo(e,A,t){e.prototype=A.prototype=t,t.constructor=e}function Ks(e,A){var t=Object.create(e.prototype);for(var n in A)t[n]=A[n];return t}function bn(){}var Hn=.7,hr=1/Hn,jt="\\s*([+-]?\\d+)\\s*",In="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ve="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Xf=/^#([0-9a-f]{3,8})$/,$f=new RegExp(`^rgb\\(${jt},${jt},${jt}\\)$`),Yf=new RegExp(`^rgb\\(${Ve},${Ve},${Ve}\\)$`),Wf=new RegExp(`^rgba\\(${jt},${jt},${jt},${In}\\)$`),Jf=new RegExp(`^rgba\\(${Ve},${Ve},${Ve},${In}\\)$`),Zf=new RegExp(`^hsl\\(${In},${Ve},${Ve}\\)$`),jf=new RegExp(`^hsla\\(${In},${Ve},${Ve},${In}\\)$`),Rs={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};jo(bn,xt,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Vs,formatHex:Vs,formatHex8:qf,formatHsl:Ag,formatRgb:Ps,toString:Ps});function Vs(){return this.rgb().formatHex()}function qf(){return this.rgb().formatHex8()}function Ag(){return Ys(this).formatHsl()}function Ps(){return this.rgb().formatRgb()}function xt(e){var A,t;return e=(e+"").trim().toLowerCase(),(A=Xf.exec(e))?(t=A[1].length,A=parseInt(A[1],16),t===6?Gs(A):t===3?new Ce(A>>8&15|A>>4&240,A>>4&15|A&240,(A&15)<<4|A&15,1):t===8?Br(A>>24&255,A>>16&255,A>>8&255,(A&255)/255):t===4?Br(A>>12&15|A>>8&240,A>>8&15|A>>4&240,A>>4&15|A&240,((A&15)<<4|A&15)/255):null):(A=$f.exec(e))?new Ce(A[1],A[2],A[3],1):(A=Yf.exec(e))?new Ce(A[1]*255/100,A[2]*255/100,A[3]*255/100,1):(A=Wf.exec(e))?Br(A[1],A[2],A[3],A[4]):(A=Jf.exec(e))?Br(A[1]*255/100,A[2]*255/100,A[3]*255/100,A[4]):(A=Zf.exec(e))?$s(A[1],A[2]/100,A[3]/100,1):(A=jf.exec(e))?$s(A[1],A[2]/100,A[3]/100,A[4]):Rs.hasOwnProperty(e)?Gs(Rs[e]):e==="transparent"?new Ce(NaN,NaN,NaN,0):null}function Gs(e){return new Ce(e>>16&255,e>>8&255,e&255,1)}function Br(e,A,t,n){return n<=0&&(e=A=t=NaN),new Ce(e,A,t,n)}function eg(e){return e instanceof bn||(e=xt(e)),e?(e=e.rgb(),new Ce(e.r,e.g,e.b,e.opacity)):new Ce}function qo(e,A,t,n){return arguments.length===1?eg(e):new Ce(e,A,t,n??1)}function Ce(e,A,t,n){this.r=+e,this.g=+A,this.b=+t,this.opacity=+n}jo(Ce,qo,Ks(bn,{brighter(e){return e=e==null?hr:Math.pow(hr,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Hn:Math.pow(Hn,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ce(Dt(this.r),Dt(this.g),Dt(this.b),pr(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:zs,formatHex:zs,formatHex8:tg,formatRgb:Xs,toString:Xs}));function zs(){return`#${Nt(this.r)}${Nt(this.g)}${Nt(this.b)}`}function tg(){return`#${Nt(this.r)}${Nt(this.g)}${Nt(this.b)}${Nt((isNaN(this.opacity)?1:this.opacity)*255)}`}function Xs(){const e=pr(this.opacity);return`${e===1?"rgb(":"rgba("}${Dt(this.r)}, ${Dt(this.g)}, ${Dt(this.b)}${e===1?")":`, ${e})`}`}function pr(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Dt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Nt(e){return e=Dt(e),(e<16?"0":"")+e.toString(16)}function $s(e,A,t,n){return n<=0?e=A=t=NaN:t<=0||t>=1?e=A=NaN:A<=0&&(e=NaN),new Te(e,A,t,n)}function Ys(e){if(e instanceof Te)return new Te(e.h,e.s,e.l,e.opacity);if(e instanceof bn||(e=xt(e)),!e)return new Te;if(e instanceof Te)return e;e=e.rgb();var A=e.r/255,t=e.g/255,n=e.b/255,o=Math.min(A,t,n),a=Math.max(A,t,n),u=NaN,d=a-o,h=(a+o)/2;return d?(A===a?u=(t-n)/d+(t<n)*6:t===a?u=(n-A)/d+2:u=(A-t)/d+4,d/=h<.5?a+o:2-a-o,u*=60):d=h>0&&h<1?0:u,new Te(u,d,h,e.opacity)}function ng(e,A,t,n){return arguments.length===1?Ys(e):new Te(e,A,t,n??1)}function Te(e,A,t,n){this.h=+e,this.s=+A,this.l=+t,this.opacity=+n}jo(Te,ng,Ks(bn,{brighter(e){return e=e==null?hr:Math.pow(hr,e),new Te(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Hn:Math.pow(Hn,e),new Te(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,A=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,n=t+(t<.5?t:1-t)*A,o=2*t-n;return new Ce(Ai(e>=240?e-240:e+120,o,n),Ai(e,o,n),Ai(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Te(Ws(this.h),mr(this.s),mr(this.l),pr(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=pr(this.opacity);return`${e===1?"hsl(":"hsla("}${Ws(this.h)}, ${mr(this.s)*100}%, ${mr(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Ws(e){return e=(e||0)%360,e<0?e+360:e}function mr(e){return Math.max(0,Math.min(1,e||0))}function Ai(e,A,t){return(e<60?A+(t-A)*e/60:e<180?t:e<240?A+(t-A)*(240-e)/60:A)*255}var ei=e=>()=>e;function rg(e,A){return function(t){return e+t*A}}function og(e,A,t){return e=Math.pow(e,t),A=Math.pow(A,t)-e,t=1/t,function(n){return Math.pow(e+n*A,t)}}function ig(e){return(e=+e)==1?Js:function(A,t){return t-A?og(A,t,e):ei(isNaN(A)?t:A)}}function Js(e,A){var t=A-e;return t?rg(e,t):ei(isNaN(e)?A:e)}var wr=(function e(A){var t=ig(A);function n(o,a){var u=t((o=qo(o)).r,(a=qo(a)).r),d=t(o.g,a.g),h=t(o.b,a.b),g=Js(o.opacity,a.opacity);return function(B){return o.r=u(B),o.g=d(B),o.b=h(B),o.opacity=g(B),o+""}}return n.gamma=e,n})(1);function sg(e,A){A||(A=[]);var t=e?Math.min(A.length,e.length):0,n=A.slice(),o;return function(a){for(o=0;o<t;++o)n[o]=e[o]*(1-a)+A[o]*a;return n}}function ag(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function lg(e,A){var t=A?A.length:0,n=e?Math.min(t,e.length):0,o=new Array(n),a=new Array(t),u;for(u=0;u<n;++u)o[u]=_n(e[u],A[u]);for(;u<t;++u)a[u]=A[u];return function(d){for(u=0;u<n;++u)a[u]=o[u](d);return a}}function cg(e,A){var t=new Date;return e=+e,A=+A,function(n){return t.setTime(e*(1-n)+A*n),t}}function Pe(e,A){return e=+e,A=+A,function(t){return e*(1-t)+A*t}}function ug(e,A){var t={},n={},o;(e===null||typeof e!="object")&&(e={}),(A===null||typeof A!="object")&&(A={});for(o in A)o in e?t[o]=_n(e[o],A[o]):n[o]=A[o];return function(a){for(o in t)n[o]=t[o](a);return n}}var ti=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ni=new RegExp(ti.source,"g");function dg(e){return function(){return e}}function fg(e){return function(A){return e(A)+""}}function Zs(e,A){var t=ti.lastIndex=ni.lastIndex=0,n,o,a,u=-1,d=[],h=[];for(e=e+"",A=A+"";(n=ti.exec(e))&&(o=ni.exec(A));)(a=o.index)>t&&(a=A.slice(t,a),d[u]?d[u]+=a:d[++u]=a),(n=n[0])===(o=o[0])?d[u]?d[u]+=o:d[++u]=o:(d[++u]=null,h.push({i:u,x:Pe(n,o)})),t=ni.lastIndex;return t<A.length&&(a=A.slice(t),d[u]?d[u]+=a:d[++u]=a),d.length<2?h[0]?fg(h[0].x):dg(A):(A=h.length,function(g){for(var B=0,w;B<A;++B)d[(w=h[B]).i]=w.x(g);return d.join("")})}function _n(e,A){var t=typeof A,n;return A==null||t==="boolean"?ei(A):(t==="number"?Pe:t==="string"?(n=xt(A))?(A=n,wr):Zs:A instanceof xt?wr:A instanceof Date?cg:ag(A)?sg:Array.isArray(A)?lg:typeof A.valueOf!="function"&&typeof A.toString!="function"||isNaN(A)?ug:Pe)(e,A)}var js=180/Math.PI,ri={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function qs(e,A,t,n,o,a){var u,d,h;return(u=Math.sqrt(e*e+A*A))&&(e/=u,A/=u),(h=e*t+A*n)&&(t-=e*h,n-=A*h),(d=Math.sqrt(t*t+n*n))&&(t/=d,n/=d,h/=d),e*n<A*t&&(e=-e,A=-A,h=-h,u=-u),{translateX:o,translateY:a,rotate:Math.atan2(A,e)*js,skewX:Math.atan(h)*js,scaleX:u,scaleY:d}}var Cr;function gg(e){const A=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return A.isIdentity?ri:qs(A.a,A.b,A.c,A.d,A.e,A.f)}function hg(e){return e==null||(Cr||(Cr=document.createElementNS("http://www.w3.org/2000/svg","g")),Cr.setAttribute("transform",e),!(e=Cr.transform.baseVal.consolidate()))?ri:(e=e.matrix,qs(e.a,e.b,e.c,e.d,e.e,e.f))}function Aa(e,A,t,n){function o(g){return g.length?g.pop()+" ":""}function a(g,B,w,m,v,y){if(g!==w||B!==m){var I=v.push("translate(",null,A,null,t);y.push({i:I-4,x:Pe(g,w)},{i:I-2,x:Pe(B,m)})}else(w||m)&&v.push("translate("+w+A+m+t)}function u(g,B,w,m){g!==B?(g-B>180?B+=360:B-g>180&&(g+=360),m.push({i:w.push(o(w)+"rotate(",null,n)-2,x:Pe(g,B)})):B&&w.push(o(w)+"rotate("+B+n)}function d(g,B,w,m){g!==B?m.push({i:w.push(o(w)+"skewX(",null,n)-2,x:Pe(g,B)}):B&&w.push(o(w)+"skewX("+B+n)}function h(g,B,w,m,v,y){if(g!==w||B!==m){var I=v.push(o(v)+"scale(",null,",",null,")");y.push({i:I-4,x:Pe(g,w)},{i:I-2,x:Pe(B,m)})}else(w!==1||m!==1)&&v.push(o(v)+"scale("+w+","+m+")")}return function(g,B){var w=[],m=[];return g=e(g),B=e(B),a(g.translateX,g.translateY,B.translateX,B.translateY,w,m),u(g.rotate,B.rotate,w,m),d(g.skewX,B.skewX,w,m),h(g.scaleX,g.scaleY,B.scaleX,B.scaleY,w,m),g=B=null,function(v){for(var y=-1,I=m.length,N;++y<I;)w[(N=m[y]).i]=N.x(v);return w.join("")}}}var Bg=Aa(gg,"px, ","px)","deg)"),pg=Aa(hg,", ",")",")"),mg=1e-12;function ea(e){return((e=Math.exp(e))+1/e)/2}function wg(e){return((e=Math.exp(e))-1/e)/2}function Cg(e){return((e=Math.exp(2*e))-1)/(e+1)}var vr=(function e(A,t,n){function o(a,u){var d=a[0],h=a[1],g=a[2],B=u[0],w=u[1],m=u[2],v=B-d,y=w-h,I=v*v+y*y,N,D;if(I<mg)D=Math.log(m/g)/A,N=function(J){return[d+J*v,h+J*y,g*Math.exp(A*J*D)]};else{var P=Math.sqrt(I),H=(m*m-g*g+n*I)/(2*g*t*P),O=(m*m-g*g-n*I)/(2*m*t*P),sA=Math.log(Math.sqrt(H*H+1)-H);D=(Math.log(Math.sqrt(O*O+1)-O)-sA)/A,N=function(J){var cA=J*D,aA=ea(sA),oA=g/(t*P)*(aA*Cg(A*cA+sA)-wg(sA));return[d+oA*v,h+oA*y,g*aA/ea(A*cA+sA)]}}return N.duration=D*1e3*A/Math.SQRT2,N}return o.rho=function(a){var u=Math.max(.001,+a),d=u*u;return e(u,d,d*d)},o})(Math.SQRT2,2,4),qt=0,Sn=0,xn=0,ta=1e3,yr,Dn,Qr=0,Lt=0,Er=0,Nn=typeof performance=="object"&&performance.now?performance:Date,na=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function oi(){return Lt||(na(vg),Lt=Nn.now()+Er)}function vg(){Lt=0}function Fr(){this._call=this._time=this._next=null}Fr.prototype=ra.prototype={constructor:Fr,restart:function(e,A,t){if(typeof e!="function")throw new TypeError("callback is not a function");t=(t==null?oi():+t)+(A==null?0:+A),!this._next&&Dn!==this&&(Dn?Dn._next=this:yr=this,Dn=this),this._call=e,this._time=t,ii()},stop:function(){this._call&&(this._call=null,this._time=1/0,ii())}};function ra(e,A,t){var n=new Fr;return n.restart(e,A,t),n}function yg(){oi(),++qt;for(var e=yr,A;e;)(A=Lt-e._time)>=0&&e._call.call(void 0,A),e=e._next;--qt}function oa(){Lt=(Qr=Nn.now())+Er,qt=Sn=0;try{yg()}finally{qt=0,Eg(),Lt=0}}function Qg(){var e=Nn.now(),A=e-Qr;A>ta&&(Er-=A,Qr=e)}function Eg(){for(var e,A=yr,t,n=1/0;A;)A._call?(n>A._time&&(n=A._time),e=A,A=A._next):(t=A._next,A._next=null,A=e?e._next=t:yr=t);Dn=e,ii(n)}function ii(e){qt||(Sn&&(Sn=clearTimeout(Sn)),e-Lt>24?(e<1/0&&(Sn=setTimeout(oa,e-Nn.now()-Er)),xn&&(xn=clearInterval(xn))):(xn||(Qr=Nn.now(),xn=setInterval(Qg,ta)),qt=1,na(oa)))}function ia(e,A,t){var n=new Fr;return A=A==null?0:+A,n.restart(o=>{n.stop(),e(o+A)},A,t),n}var Fg=cr("start","end","cancel","interrupt"),Ug=[],sa=0,aa=1,si=2,Ur=3,la=4,ai=5,br=6;function Hr(e,A,t,n,o,a){var u=e.__transition;if(!u)e.__transition={};else if(t in u)return;bg(e,t,{name:A,index:n,group:o,on:Fg,tween:Ug,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:sa})}function li(e,A){var t=ke(e,A);if(t.state>sa)throw new Error("too late; already scheduled");return t}function Ge(e,A){var t=ke(e,A);if(t.state>Ur)throw new Error("too late; already running");return t}function ke(e,A){var t=e.__transition;if(!t||!(t=t[A]))throw new Error("transition not found");return t}function bg(e,A,t){var n=e.__transition,o;n[A]=t,t.timer=ra(a,0,t.time);function a(g){t.state=aa,t.timer.restart(u,t.delay,t.time),t.delay<=g&&u(g-t.delay)}function u(g){var B,w,m,v;if(t.state!==aa)return h();for(B in n)if(v=n[B],v.name===t.name){if(v.state===Ur)return ia(u);v.state===la?(v.state=br,v.timer.stop(),v.on.call("interrupt",e,e.__data__,v.index,v.group),delete n[B]):+B<A&&(v.state=br,v.timer.stop(),v.on.call("cancel",e,e.__data__,v.index,v.group),delete n[B])}if(ia(function(){t.state===Ur&&(t.state=la,t.timer.restart(d,t.delay,t.time),d(g))}),t.state=si,t.on.call("start",e,e.__data__,t.index,t.group),t.state===si){for(t.state=Ur,o=new Array(m=t.tween.length),B=0,w=-1;B<m;++B)(v=t.tween[B].value.call(e,e.__data__,t.index,t.group))&&(o[++w]=v);o.length=w+1}}function d(g){for(var B=g<t.duration?t.ease.call(null,g/t.duration):(t.timer.restart(h),t.state=ai,1),w=-1,m=o.length;++w<m;)o[w].call(e,B);t.state===ai&&(t.on.call("end",e,e.__data__,t.index,t.group),h())}function h(){t.state=br,t.timer.stop(),delete n[A];for(var g in n)return;delete e.__transition}}function Ir(e,A){var t=e.__transition,n,o,a=!0,u;if(t){A=A==null?null:A+"";for(u in t){if((n=t[u]).name!==A){a=!1;continue}o=n.state>si&&n.state<ai,n.state=br,n.timer.stop(),n.on.call(o?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete t[u]}a&&delete e.__transition}}function Hg(e){return this.each(function(){Ir(this,e)})}function Ig(e,A){var t,n;return function(){var o=Ge(this,e),a=o.tween;if(a!==t){n=t=a;for(var u=0,d=n.length;u<d;++u)if(n[u].name===A){n=n.slice(),n.splice(u,1);break}}o.tween=n}}function _g(e,A,t){var n,o;if(typeof t!="function")throw new Error;return function(){var a=Ge(this,e),u=a.tween;if(u!==n){o=(n=u).slice();for(var d={name:A,value:t},h=0,g=o.length;h<g;++h)if(o[h].name===A){o[h]=d;break}h===g&&o.push(d)}a.tween=o}}function Sg(e,A){var t=this._id;if(e+="",arguments.length<2){for(var n=ke(this.node(),t).tween,o=0,a=n.length,u;o<a;++o)if((u=n[o]).name===e)return u.value;return null}return this.each((A==null?Ig:_g)(t,e,A))}function ci(e,A,t){var n=e._id;return e.each(function(){var o=Ge(this,n);(o.value||(o.value={}))[A]=t.apply(this,arguments)}),function(o){return ke(o,n).value[A]}}function ca(e,A){var t;return(typeof A=="number"?Pe:A instanceof xt?wr:(t=xt(A))?(A=t,wr):Zs)(e,A)}function xg(e){return function(){this.removeAttribute(e)}}function Dg(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ng(e,A,t){var n,o=t+"",a;return function(){var u=this.getAttribute(e);return u===o?null:u===n?a:a=A(n=u,t)}}function Lg(e,A,t){var n,o=t+"",a;return function(){var u=this.getAttributeNS(e.space,e.local);return u===o?null:u===n?a:a=A(n=u,t)}}function Tg(e,A,t){var n,o,a;return function(){var u,d=t(this),h;return d==null?void this.removeAttribute(e):(u=this.getAttribute(e),h=d+"",u===h?null:u===n&&h===o?a:(o=h,a=A(n=u,d)))}}function kg(e,A,t){var n,o,a;return function(){var u,d=t(this),h;return d==null?void this.removeAttributeNS(e.space,e.local):(u=this.getAttributeNS(e.space,e.local),h=d+"",u===h?null:u===n&&h===o?a:(o=h,a=A(n=u,d)))}}function Mg(e,A){var t=dr(e),n=t==="transform"?pg:ca;return this.attrTween(e,typeof A=="function"?(t.local?kg:Tg)(t,n,ci(this,"attr."+e,A)):A==null?(t.local?Dg:xg)(t):(t.local?Lg:Ng)(t,n,A))}function Og(e,A){return function(t){this.setAttribute(e,A.call(this,t))}}function Kg(e,A){return function(t){this.setAttributeNS(e.space,e.local,A.call(this,t))}}function Rg(e,A){var t,n;function o(){var a=A.apply(this,arguments);return a!==n&&(t=(n=a)&&Kg(e,a)),t}return o._value=A,o}function Vg(e,A){var t,n;function o(){var a=A.apply(this,arguments);return a!==n&&(t=(n=a)&&Og(e,a)),t}return o._value=A,o}function Pg(e,A){var t="attr."+e;if(arguments.length<2)return(t=this.tween(t))&&t._value;if(A==null)return this.tween(t,null);if(typeof A!="function")throw new Error;var n=dr(e);return this.tween(t,(n.local?Rg:Vg)(n,A))}function Gg(e,A){return function(){li(this,e).delay=+A.apply(this,arguments)}}function zg(e,A){return A=+A,function(){li(this,e).delay=A}}function Xg(e){var A=this._id;return arguments.length?this.each((typeof e=="function"?Gg:zg)(A,e)):ke(this.node(),A).delay}function $g(e,A){return function(){Ge(this,e).duration=+A.apply(this,arguments)}}function Yg(e,A){return A=+A,function(){Ge(this,e).duration=A}}function Wg(e){var A=this._id;return arguments.length?this.each((typeof e=="function"?$g:Yg)(A,e)):ke(this.node(),A).duration}function Jg(e,A){if(typeof A!="function")throw new Error;return function(){Ge(this,e).ease=A}}function Zg(e){var A=this._id;return arguments.length?this.each(Jg(A,e)):ke(this.node(),A).ease}function jg(e,A){return function(){var t=A.apply(this,arguments);if(typeof t!="function")throw new Error;Ge(this,e).ease=t}}function qg(e){if(typeof e!="function")throw new Error;return this.each(jg(this._id,e))}function Ah(e){typeof e!="function"&&(e=Hs(e));for(var A=this._groups,t=A.length,n=new Array(t),o=0;o<t;++o)for(var a=A[o],u=a.length,d=n[o]=[],h,g=0;g<u;++g)(h=a[g])&&e.call(h,h.__data__,g,a)&&d.push(h);return new qe(n,this._parents,this._name,this._id)}function eh(e){if(e._id!==this._id)throw new Error;for(var A=this._groups,t=e._groups,n=A.length,o=t.length,a=Math.min(n,o),u=new Array(n),d=0;d<a;++d)for(var h=A[d],g=t[d],B=h.length,w=u[d]=new Array(B),m,v=0;v<B;++v)(m=h[v]||g[v])&&(w[v]=m);for(;d<n;++d)u[d]=A[d];return new qe(u,this._parents,this._name,this._id)}function th(e){return(e+"").trim().split(/^|\s+/).every(function(A){var t=A.indexOf(".");return t>=0&&(A=A.slice(0,t)),!A||A==="start"})}function nh(e,A,t){var n,o,a=th(A)?li:Ge;return function(){var u=a(this,e),d=u.on;d!==n&&(o=(n=d).copy()).on(A,t),u.on=o}}function rh(e,A){var t=this._id;return arguments.length<2?ke(this.node(),t).on.on(e):this.each(nh(t,e,A))}function oh(e){return function(){var A=this.parentNode;for(var t in this.__transition)if(+t!==e)return;A&&A.removeChild(this)}}function ih(){return this.on("end.remove",oh(this._id))}function sh(e){var A=this._name,t=this._id;typeof e!="function"&&(e=Yo(e));for(var n=this._groups,o=n.length,a=new Array(o),u=0;u<o;++u)for(var d=n[u],h=d.length,g=a[u]=new Array(h),B,w,m=0;m<h;++m)(B=d[m])&&(w=e.call(B,B.__data__,m,d))&&("__data__"in B&&(w.__data__=B.__data__),g[m]=w,Hr(g[m],A,t,m,g,ke(B,t)));return new qe(a,this._parents,A,t)}function ah(e){var A=this._name,t=this._id;typeof e!="function"&&(e=bs(e));for(var n=this._groups,o=n.length,a=[],u=[],d=0;d<o;++d)for(var h=n[d],g=h.length,B,w=0;w<g;++w)if(B=h[w]){for(var m=e.call(B,B.__data__,w,h),v,y=ke(B,t),I=0,N=m.length;I<N;++I)(v=m[I])&&Hr(v,A,t,I,m,y);a.push(m),u.push(B)}return new qe(a,u,A,t)}var lh=Fn.prototype.constructor;function ch(){return new lh(this._groups,this._parents)}function uh(e,A){var t,n,o;return function(){var a=Jt(this,e),u=(this.style.removeProperty(e),Jt(this,e));return a===u?null:a===t&&u===n?o:o=A(t=a,n=u)}}function ua(e){return function(){this.style.removeProperty(e)}}function dh(e,A,t){var n,o=t+"",a;return function(){var u=Jt(this,e);return u===o?null:u===n?a:a=A(n=u,t)}}function fh(e,A,t){var n,o,a;return function(){var u=Jt(this,e),d=t(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),Jt(this,e))),u===h?null:u===n&&h===o?a:(o=h,a=A(n=u,d))}}function gh(e,A){var t,n,o,a="style."+A,u="end."+a,d;return function(){var h=Ge(this,e),g=h.on,B=h.value[a]==null?d||(d=ua(A)):void 0;(g!==t||o!==B)&&(n=(t=g).copy()).on(u,o=B),h.on=n}}function hh(e,A,t){var n=(e+="")=="transform"?Bg:ca;return A==null?this.styleTween(e,uh(e,n)).on("end.style."+e,ua(e)):typeof A=="function"?this.styleTween(e,fh(e,n,ci(this,"style."+e,A))).each(gh(this._id,e)):this.styleTween(e,dh(e,n,A),t).on("end.style."+e,null)}function Bh(e,A,t){return function(n){this.style.setProperty(e,A.call(this,n),t)}}function ph(e,A,t){var n,o;function a(){var u=A.apply(this,arguments);return u!==o&&(n=(o=u)&&Bh(e,u,t)),n}return a._value=A,a}function mh(e,A,t){var n="style."+(e+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(A==null)return this.tween(n,null);if(typeof A!="function")throw new Error;return this.tween(n,ph(e,A,t??""))}function wh(e){return function(){this.textContent=e}}function Ch(e){return function(){var A=e(this);this.textContent=A??""}}function vh(e){return this.tween("text",typeof e=="function"?Ch(ci(this,"text",e)):wh(e==null?"":e+""))}function yh(e){return function(A){this.textContent=e.call(this,A)}}function Qh(e){var A,t;function n(){var o=e.apply(this,arguments);return o!==t&&(A=(t=o)&&yh(o)),A}return n._value=e,n}function Eh(e){var A="text";if(arguments.length<1)return(A=this.tween(A))&&A._value;if(e==null)return this.tween(A,null);if(typeof e!="function")throw new Error;return this.tween(A,Qh(e))}function Fh(){for(var e=this._name,A=this._id,t=da(),n=this._groups,o=n.length,a=0;a<o;++a)for(var u=n[a],d=u.length,h,g=0;g<d;++g)if(h=u[g]){var B=ke(h,A);Hr(h,e,t,g,u,{time:B.time+B.delay+B.duration,delay:0,duration:B.duration,ease:B.ease})}return new qe(n,this._parents,e,t)}function Uh(){var e,A,t=this,n=t._id,o=t.size();return new Promise(function(a,u){var d={value:u},h={value:function(){--o===0&&a()}};t.each(function(){var g=Ge(this,n),B=g.on;B!==e&&(A=(e=B).copy(),A._.cancel.push(d),A._.interrupt.push(d),A._.end.push(h)),g.on=A}),o===0&&a()})}var bh=0;function qe(e,A,t,n){this._groups=e,this._parents=A,this._name=t,this._id=n}function da(){return++bh}var At=Fn.prototype;qe.prototype={constructor:qe,select:sh,selectAll:ah,selectChild:At.selectChild,selectChildren:At.selectChildren,filter:Ah,merge:eh,selection:ch,transition:Fh,call:At.call,nodes:At.nodes,node:At.node,size:At.size,empty:At.empty,each:At.each,on:rh,attr:Mg,attrTween:Pg,style:hh,styleTween:mh,text:vh,textTween:Eh,remove:ih,tween:Sg,delay:Xg,duration:Wg,ease:Zg,easeVarying:qg,end:Uh,[Symbol.iterator]:At[Symbol.iterator]};function Hh(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Ih={time:null,delay:0,duration:250,ease:Hh};function _h(e,A){for(var t;!(t=e.__transition)||!(t=t[A]);)if(!(e=e.parentNode))throw new Error(`transition ${A} not found`);return t}function Sh(e){var A,t;e instanceof qe?(A=e._id,e=e._name):(A=da(),(t=Ih).time=oi(),e=e==null?null:e+"");for(var n=this._groups,o=n.length,a=0;a<o;++a)for(var u=n[a],d=u.length,h,g=0;g<d;++g)(h=u[g])&&Hr(h,e,A,g,u,t||_h(h,A));return new qe(n,this._parents,e,A)}Fn.prototype.interrupt=Hg,Fn.prototype.transition=Sh;var _r=e=>()=>e;function xh(e,{sourceEvent:A,target:t,transform:n,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:A,enumerable:!0,configurable:!0},target:{value:t,enumerable:!0,configurable:!0},transform:{value:n,enumerable:!0,configurable:!0},_:{value:o}})}function et(e,A,t){this.k=e,this.x=A,this.y=t}et.prototype={constructor:et,scale:function(e){return e===1?this:new et(this.k*e,this.x,this.y)},translate:function(e,A){return e===0&A===0?this:new et(this.k,this.x+this.k*e,this.y+this.k*A)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var An=new et(1,0,0);et.prototype;function ui(e){e.stopImmediatePropagation()}function Ln(e){e.preventDefault(),e.stopImmediatePropagation()}function Dh(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Nh(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function fa(){return this.__zoom||An}function Lh(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Th(){return navigator.maxTouchPoints||"ontouchstart"in this}function kh(e,A,t){var n=e.invertX(A[0][0])-t[0][0],o=e.invertX(A[1][0])-t[1][0],a=e.invertY(A[0][1])-t[0][1],u=e.invertY(A[1][1])-t[1][1];return e.translate(o>n?(n+o)/2:Math.min(0,n)||Math.max(0,o),u>a?(a+u)/2:Math.min(0,a)||Math.max(0,u))}function Mh(){var e=Dh,A=Nh,t=kh,n=Lh,o=Th,a=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],d=250,h=vr,g=cr("start","zoom","end"),B,w,m,v=500,y=150,I=0,N=10;function D(U){U.property("__zoom",fa).on("wheel.zoom",aA,{passive:!1}).on("mousedown.zoom",oA).on("dblclick.zoom",iA).filter(o).on("touchstart.zoom",AA).on("touchmove.zoom",S).on("touchend.zoom touchcancel.zoom",eA).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}D.transform=function(U,K,b,R){var k=U.selection?U.selection():U;k.property("__zoom",fa),U!==k?sA(U,K,b,R):k.interrupt().each(function(){J(this,arguments).event(R).start().zoom(null,typeof K=="function"?K.apply(this,arguments):K).end()})},D.scaleBy=function(U,K,b,R){D.scaleTo(U,function(){return this.__zoom.k*(typeof K=="function"?K.apply(this,arguments):K)},b,R)},D.scaleTo=function(U,K,b,R){D.transform(U,function(){var k=A.apply(this,arguments),T=this.__zoom,M=b==null?O(k):typeof b=="function"?b.apply(this,arguments):b,Y=T.invert(M),tA=typeof K=="function"?K.apply(this,arguments):K;return t(H(P(T,tA),M,Y),k,u)},b,R)},D.translateBy=function(U,K,b,R){D.transform(U,function(){return t(this.__zoom.translate(typeof K=="function"?K.apply(this,arguments):K,typeof b=="function"?b.apply(this,arguments):b),A.apply(this,arguments),u)},null,R)},D.translateTo=function(U,K,b,R,k){D.transform(U,function(){var T=A.apply(this,arguments),M=this.__zoom,Y=R==null?O(T):typeof R=="function"?R.apply(this,arguments):R;return t(An.translate(Y[0],Y[1]).scale(M.k).translate(typeof K=="function"?-K.apply(this,arguments):-K,typeof b=="function"?-b.apply(this,arguments):-b),T,u)},R,k)};function P(U,K){return K=Math.max(a[0],Math.min(a[1],K)),K===U.k?U:new et(K,U.x,U.y)}function H(U,K,b){var R=K[0]-b[0]*U.k,k=K[1]-b[1]*U.k;return R===U.x&&k===U.y?U:new et(U.k,R,k)}function O(U){return[(+U[0][0]+ +U[1][0])/2,(+U[0][1]+ +U[1][1])/2]}function sA(U,K,b,R){U.on("start.zoom",function(){J(this,arguments).event(R).start()}).on("interrupt.zoom end.zoom",function(){J(this,arguments).event(R).end()}).tween("zoom",function(){var k=this,T=arguments,M=J(k,T).event(R),Y=A.apply(k,T),tA=b==null?O(Y):typeof b=="function"?b.apply(k,T):b,BA=Math.max(Y[1][0]-Y[0][0],Y[1][1]-Y[0][1]),UA=k.__zoom,nA=typeof K=="function"?K.apply(k,T):K,W=h(UA.invert(tA).concat(BA/UA.k),nA.invert(tA).concat(BA/nA.k));return function($){if($===1)$=nA;else{var uA=W($),mA=BA/uA[2];$=new et(mA,tA[0]-uA[0]*mA,tA[1]-uA[1]*mA)}M.zoom(null,$)}})}function J(U,K,b){return!b&&U.__zooming||new cA(U,K)}function cA(U,K){this.that=U,this.args=K,this.active=0,this.sourceEvent=null,this.extent=A.apply(U,K),this.taps=0}cA.prototype={event:function(U){return U&&(this.sourceEvent=U),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(U,K){return this.mouse&&U!=="mouse"&&(this.mouse[1]=K.invert(this.mouse[0])),this.touch0&&U!=="touch"&&(this.touch0[1]=K.invert(this.touch0[0])),this.touch1&&U!=="touch"&&(this.touch1[1]=K.invert(this.touch1[0])),this.that.__zoom=K,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(U){var K=Le(this.that).datum();g.call(U,this.that,new xh(U,{sourceEvent:this.sourceEvent,target:D,type:U,transform:this.that.__zoom,dispatch:g}),K)}};function aA(U,...K){if(!e.apply(this,arguments))return;var b=J(this,K).event(U),R=this.__zoom,k=Math.max(a[0],Math.min(a[1],R.k*Math.pow(2,n.apply(this,arguments)))),T=Re(U);if(b.wheel)(b.mouse[0][0]!==T[0]||b.mouse[0][1]!==T[1])&&(b.mouse[1]=R.invert(b.mouse[0]=T)),clearTimeout(b.wheel);else{if(R.k===k)return;b.mouse=[T,R.invert(T)],Ir(this),b.start()}Ln(U),b.wheel=setTimeout(M,y),b.zoom("mouse",t(H(P(R,k),b.mouse[0],b.mouse[1]),b.extent,u));function M(){b.wheel=null,b.end()}}function oA(U,...K){if(m||!e.apply(this,arguments))return;var b=U.currentTarget,R=J(this,K,!0).event(U),k=Le(U.view).on("mousemove.zoom",tA,!0).on("mouseup.zoom",BA,!0),T=Re(U,b),M=U.clientX,Y=U.clientY;Ms(U.view),ui(U),R.mouse=[T,this.__zoom.invert(T)],Ir(this),R.start();function tA(UA){if(Ln(UA),!R.moved){var nA=UA.clientX-M,W=UA.clientY-Y;R.moved=nA*nA+W*W>I}R.event(UA).zoom("mouse",t(H(R.that.__zoom,R.mouse[0]=Re(UA,b),R.mouse[1]),R.extent,u))}function BA(UA){k.on("mousemove.zoom mouseup.zoom",null),Os(UA.view,R.moved),Ln(UA),R.event(UA).end()}}function iA(U,...K){if(e.apply(this,arguments)){var b=this.__zoom,R=Re(U.changedTouches?U.changedTouches[0]:U,this),k=b.invert(R),T=b.k*(U.shiftKey?.5:2),M=t(H(P(b,T),R,k),A.apply(this,K),u);Ln(U),d>0?Le(this).transition().duration(d).call(sA,M,R,U):Le(this).call(D.transform,M,R,U)}}function AA(U,...K){if(e.apply(this,arguments)){var b=U.touches,R=b.length,k=J(this,K,U.changedTouches.length===R).event(U),T,M,Y,tA;for(ui(U),M=0;M<R;++M)Y=b[M],tA=Re(Y,this),tA=[tA,this.__zoom.invert(tA),Y.identifier],k.touch0?!k.touch1&&k.touch0[2]!==tA[2]&&(k.touch1=tA,k.taps=0):(k.touch0=tA,T=!0,k.taps=1+!!B);B&&(B=clearTimeout(B)),T&&(k.taps<2&&(w=tA[0],B=setTimeout(function(){B=null},v)),Ir(this),k.start())}}function S(U,...K){if(this.__zooming){var b=J(this,K).event(U),R=U.changedTouches,k=R.length,T,M,Y,tA;for(Ln(U),T=0;T<k;++T)M=R[T],Y=Re(M,this),b.touch0&&b.touch0[2]===M.identifier?b.touch0[0]=Y:b.touch1&&b.touch1[2]===M.identifier&&(b.touch1[0]=Y);if(M=b.that.__zoom,b.touch1){var BA=b.touch0[0],UA=b.touch0[1],nA=b.touch1[0],W=b.touch1[1],$=($=nA[0]-BA[0])*$+($=nA[1]-BA[1])*$,uA=(uA=W[0]-UA[0])*uA+(uA=W[1]-UA[1])*uA;M=P(M,Math.sqrt($/uA)),Y=[(BA[0]+nA[0])/2,(BA[1]+nA[1])/2],tA=[(UA[0]+W[0])/2,(UA[1]+W[1])/2]}else if(b.touch0)Y=b.touch0[0],tA=b.touch0[1];else return;b.zoom("touch",t(H(M,Y,tA),b.extent,u))}}function eA(U,...K){if(this.__zooming){var b=J(this,K).event(U),R=U.changedTouches,k=R.length,T,M;for(ui(U),m&&clearTimeout(m),m=setTimeout(function(){m=null},v),T=0;T<k;++T)M=R[T],b.touch0&&b.touch0[2]===M.identifier?delete b.touch0:b.touch1&&b.touch1[2]===M.identifier&&delete b.touch1;if(b.touch1&&!b.touch0&&(b.touch0=b.touch1,delete b.touch1),b.touch0)b.touch0[1]=this.__zoom.invert(b.touch0[0]);else if(b.end(),b.taps===2&&(M=Re(M,this),Math.hypot(w[0]-M[0],w[1]-M[1])<N)){var Y=Le(this).on("dblclick.zoom");Y&&Y.apply(this,arguments)}}}return D.wheelDelta=function(U){return arguments.length?(n=typeof U=="function"?U:_r(+U),D):n},D.filter=function(U){return arguments.length?(e=typeof U=="function"?U:_r(!!U),D):e},D.touchable=function(U){return arguments.length?(o=typeof U=="function"?U:_r(!!U),D):o},D.extent=function(U){return arguments.length?(A=typeof U=="function"?U:_r([[+U[0][0],+U[0][1]],[+U[1][0],+U[1][1]]]),D):A},D.scaleExtent=function(U){return arguments.length?(a[0]=+U[0],a[1]=+U[1],D):[a[0],a[1]]},D.translateExtent=function(U){return arguments.length?(u[0][0]=+U[0][0],u[1][0]=+U[1][0],u[0][1]=+U[0][1],u[1][1]=+U[1][1],D):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},D.constrain=function(U){return arguments.length?(t=U,D):t},D.duration=function(U){return arguments.length?(d=+U,D):d},D.interpolate=function(U){return arguments.length?(h=U,D):h},D.on=function(){var U=g.on.apply(g,arguments);return U===g?D:U},D.clickDistance=function(U){return arguments.length?(I=(U=+U)*U,D):Math.sqrt(I)},D.tapDistance=function(U){return arguments.length?(N=+U,D):N},D}var HA=(e=>(e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom",e))(HA||{}),di=(e=>(e.Partial="partial",e.Full="full",e))(di||{}),Tt=(e=>(e.Bezier="default",e.SimpleBezier="simple-bezier",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e))(Tt||{}),tt=(e=>(e.Strict="strict",e.Loose="loose",e))(tt||{}),nt=(e=>(e.Arrow="arrow",e.ArrowClosed="arrowclosed",e))(nt||{}),Tn=(e=>(e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal",e))(Tn||{}),ga=(e=>(e.TopLeft="top-left",e.TopCenter="top-center",e.TopRight="top-right",e.BottomLeft="bottom-left",e.BottomCenter="bottom-center",e.BottomRight="bottom-right",e))(ga||{}),Oh=["INPUT","SELECT","TEXTAREA"],Kh=typeof document<"u"?document:null;function fi(e){var A,t;const n=((t=(A=e.composedPath)==null?void 0:A.call(e))==null?void 0:t[0])||e.target,o=typeof n?.hasAttribute=="function"?n.hasAttribute("contenteditable"):!1,a=typeof n?.closest=="function"?n.closest(".nokey"):null;return Oh.includes(n?.nodeName)||o||!!a}function Rh(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey}function ha(e,A,t,n){const o=A.replace("+",`
|
|
1
|
+
(function(ne,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("@a2simcode/ui")):typeof define=="function"&&define.amd?define(["exports","vue","@a2simcode/ui"],r):(ne=typeof globalThis<"u"?globalThis:ne||self,r(ne.DuiUI={},ne.Vue,ne.SimCodeUI))})(this,function(ne,r,pe){Object.defineProperties(ne,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var Eu=Object.create,lr=Object.defineProperty,Fu=Object.getOwnPropertyDescriptor,Uu=Object.getOwnPropertyNames,bu=Object.getPrototypeOf,Hu=Object.prototype.hasOwnProperty,Iu=(e,A)=>()=>(A||(e((A={exports:{}}).exports,A),e=null),A.exports),_u=(e,A)=>{let t={};for(var n in e)lr(t,n,{get:e[n],enumerable:!0});return A||lr(t,Symbol.toStringTag,{value:"Module"}),t},Mo=(e,A,t,n)=>{if(A&&typeof A=="object"||typeof A=="function")for(var o=Uu(A),a=0,u=o.length,d;a<u;a++)d=o[a],!Hu.call(e,d)&&d!==t&&lr(e,d,{get:(h=>A[h]).bind(null,d),enumerable:!(n=Fu(A,d))||n.enumerable});return e},Su=(e,A,t)=>(Mo(e,A,"default"),t&&Mo(t,A,"default")),Bs=(e,A,t)=>(t=e!=null?Eu(bu(e)):{},Mo(A||!e||!e.__esModule?lr(t,"default",{value:e,enumerable:!0}):t,e));r=Bs(r,1);var ft=(e,A)=>(e.install=t=>{t.component(e.name,e),A&&A.forEach(n=>{t.component(n.name,n)})},e),gt=(e="")=>{const A=Date.now(),t=Math.floor(Math.random()*1e9);return e===""?String(t)+String(A):e+"_"+t+String(A)},En=e=>{if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(En);const A={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=En(e[t]));return A},xu=e=>{if(Array.isArray(e))e.length=0;else if(e&&typeof e=="object")for(const A in e)Object.prototype.hasOwnProperty.call(e,A)&&delete e[A]},Oo={},Du=(e,A,t)=>{t[e]=t[e]||{};const n=gt();return t[e][n]=A,n},Nu=(e,A,t)=>{const n=[],o=t[e]||{};return Object.keys(o).forEach(a=>{const u=o[a];try{u&&n.push(u(A))}catch(d){console.error(d)}}),n},Lu=(e,A,t)=>{if(A){const n=t[e];n&&delete n[A]}else delete t[e]},ps=(e,A)=>Du(e,A,Oo),re=(e,A)=>Nu(e,A,Oo),Tu=(e,A)=>{Lu(e,A,Oo)},ms=(e,A,t,n,o,a)=>{const u=A.id,d=A.level,{getDesignLocals:h,selectComponent:g,getComponent:B,isMyChildComponent:w,addComponent:m,deleteComponent:v,getParentComponents:y,removeComponentFromContainer:I,addComponentToContainer:N,copyComponent:D,activedComponent:P,top:H}=(0,r.inject)("d-drag-design-provide",{}),O=[],sA=(0,r.ref)(!1),J=(0,r.ref)(!1),cA=(0,r.ref)(!1),lA=(0,r.ref)(!1),oA=(0,r.ref)(!1),iA={id:"",type:""},AA=(0,r.ref)(!1),S=(0,r.ref)(!1);let eA="",U=null;const K=$=>{if(eA===$)return U;eA=$;const{top:uA,left:wA,width:HA,height:xA}=e.value.getBoundingClientRect();return U=[{x:wA,y:uA},{x:wA+HA,y:uA},{x:wA+HA,y:uA+xA},{x:wA,y:uA+xA}],U},b=($,uA,wA)=>{let HA=uA-wA[0].y;HA<0&&(HA=-HA);let xA=uA-wA[3].y;xA<0&&(xA=-xA);let gA=$-wA[0].x;gA<0&&(gA=-gA);let Z=$-wA[1].x;return Z<0&&(Z=-Z),{ly:HA>xA?xA:HA,typey:HA>xA?"bottom":"top",lx:gA>Z?Z:gA,lallx:gA+Z}},R=($,uA,wA)=>$>=wA[0].x&&$<=wA[1].x&&uA>=wA[0].y&&uA<=wA[3].y,k=()=>{if(o){re("dragClick",{id:u});return}if(!J.value){if(g(u),d!==0){const $=e.value.getBoundingClientRect(),uA=h();$.top-uA.top<22?lA.value=!0:lA.value=!1}J.value=!0,re("dragClick",{id:u})}},T=$=>{const uA=v($);uA&&(0,r.nextTick)(()=>{re("dragClick",{id:uA})})},M=()=>{iA.id="",iA.type="",d===0&&(oA.value=!1)},Y=()=>{re("mouseEnterOrLeave",{id:u,type:"enter"})},tA=()=>{re("mouseEnterOrLeave",{id:u,type:"leave"})},BA=$=>{re("dragClick",{id:$})},bA={mouseEnterOrLeave:({id:$,type:uA})=>{uA==="enter"?O.push($):O.length>0&&O.splice(O.length-1,1);const wA=O.length;wA>0&&u===O[wA-1]?sA.value=!0:sA.value=!1},dragAciveChild:({type:$,id:uA})=>{uA===u?$==="top"?(AA.value=!0,S.value=!1):(S.value=!0,AA.value=!1):(S.value=!1,AA.value=!1)},dragClick({id:$,isAgain:uA}){$!==u?J.value=!1:(uA&&(J.value=!1),k())}};bA[`dragGetChildDistance_${u}`]=({dragX:$,dragY:uA,moveId:wA})=>b($,uA,K(wA));const nA={isInContainer({x:$,y:uA,id:wA,moveId:HA}){if(u===wA||w(wA,u))return cA.value=!1,{isIn:!1,level:d,id:u,groupId:a};const xA=K(HA);if(R($,uA,xA))return d===0&&(oA.value=!0),{isIn:!0,level:d,id:u,groupId:a};if(d===0){const{ly:gA,lx:Z}=b($,uA,xA);if(gA<20&&Z<20)return oA.value=!0,{isIn:!0,level:d,id:u,groupId:a};oA.value=!1}return cA.value=!1,{isIn:!1,level:d,id:u,groupId:a}},dragActiveContainer:({containerId:$,containerGroupId:uA,dragX:wA,dragY:HA,moveId:xA})=>{if($===u&&uA===a)if(cA.value=!0,n&&n.value.length>0){let gA={ly:9999999,lx:0,lallx:0,id:"",typey:""};n?.value.forEach(Z=>{if(a&&Z.groupId!==a)return;const _=re(`dragGetChildDistance_${Z.id}`,{dragX:wA,dragY:HA,moveId:xA})[0];_&&(gA.ly>_.ly||gA.ly===_.ly&&(gA.lx>_.lx||gA.lx===_.lx&&gA.lallx>_.lallx))&&(gA=_,gA.id=Z.id)}),iA.id=gA.id,iA.type=gA.typey,re("dragAciveChild",{id:gA.id,type:gA.typey})}else re("dragAciveChild",{id:""});else cA.value=!1},dragAdd:$=>{if(cA.value){let uA=n?.value.length||0;iA.id!==""&&iA.id!==void 0&&(uA=n?.value.findIndex(wA=>wA.id===iA.id)||0,iA.type==="bottom"&&(uA+=1)),m($,u,uA,a),cA.value=!1}M()},dragAddByClick:$=>{if(!P.value&&u===H.id||P.value?.id===u||P.value?.containerId===u&&P.value?.dragType!=="container"){const uA=m($,u,n?.value.length||0,a,!0);uA&&$.config&&Object.keys($.config).forEach(wA=>{uA.config[wA]=$.config[wA]})}},dragUpdate($){if(cA.value){const uA=B($);if(uA.level=d+1,iA.id!==uA.id){I(uA.containerId,$);let wA=n?.value.findIndex(HA=>HA.id===iA.id)||0;iA.type==="bottom"&&(wA+=1),N(uA,u,wA,a)}cA.value=!1,(0,r.nextTick)(()=>{re("dragClick",{id:uA.id,isAgain:!0})})}M()}},W={};return(0,r.onMounted)(()=>{(!o||t!=="container")&&Object.keys(bA).forEach($=>{W[$]=ps($,bA[$])}),t==="container"&&Object.keys(nA).forEach($=>{W[$]=ps($,nA[$])}),A.isNewAdd&&(0,r.nextTick)(()=>{k(),delete A.isNewAdd})}),(0,r.onUnmounted)(()=>{Object.keys(W).forEach($=>{Tu($,W[$])})}),{onMouseenter:Y,onMouseleave:tA,activeComponent:k,handleComponentClick:BA,deleteComponentByClick:T,copyComponent:D,getParentComponents:y,isBottomToolBar:lA,isHover:sA,isSelect:J,isToContainer:cA,isMoveingInTopLevel:oA,isTopActive:AA,isBottomActive:S}},ws=(e,A)=>{const t={x:0,y:0,clientX:0,clientY:0,dragElement:null,dragElementId:"jcode-darg-move-id",toContainerLevel:-1,toContainerId:"",groupId:"",id:""};let n=!1;const o=(v,y)=>{n!==!0&&(n=!0,setTimeout(()=>{v(),n=!1},y))},a=(0,r.ref)(!1),u=(v,y,I)=>{const N=document.createElement("div");return N.id=t.dragElementId,N.innerText=v,N.className="d-drag-move",N.style.top=`${y}px`,N.style.left=`${I}px`,document.body.appendChild(N),N},d=()=>{document.onmousemove=null,document.onmouseup=null,a.value=!1,re("dragAciveChild",{id:""})},h=()=>{d(),t.dragElement&&(t.dragElement.remove(),t.dragElement=null,A?re("dragAdd",e):re("dragUpdate",e.id))},g=v=>{const{clientY:y,clientX:I}=v;if(!t.dragElement){const N=Math.abs(t.x-I),D=Math.abs(t.y-y);if(N<=1&&D<=1)return;a.value=!0,t.dragElement=u(e.name,y-11,I-32)}t.dragElement.style.top=`${y-11}px`,t.dragElement.style.left=`${I-32}px`,t.clientX=I,t.clientY=y,o(()=>{if(!a.value)return;const N=re("isInContainer",{x:I,y,id:e.id,moveId:t.id});t.toContainerLevel=-1,t.toContainerId="",t.groupId="",N.forEach(({level:D,id:P,isIn:H,groupId:O})=>{H&&t.toContainerLevel<D&&(t.toContainerLevel=D,t.toContainerId=P,t.groupId=O)}),t.toContainerId!==""?re("dragActiveContainer",{containerId:t.toContainerId,containerGroupId:t.groupId,dragX:I,dragY:y,moveId:t.id}):re("dragAciveChild",{id:""})},100)};return{onContextmenu:()=>{d()},onMousedown:v=>{t.x=v.clientX,t.y=v.clientY,t.id=gt(),document.onmouseup=h,document.onmousemove=g},onClick:()=>{re("dragAddByClick",e)},moveActive:a}},ku={class:"d-drag-btns-pname"},Mu={key:0,class:"d-drag-mask"},Ou=(0,r.defineComponent)({name:"DDrag",__name:"drag",props:{componentData:{default:()=>({})},isContainer:{type:Boolean,default:!1}},setup(e){const A=e,t=(0,r.ref)(),{onMouseenter:n,onMouseleave:o,activeComponent:a,handleComponentClick:u,deleteComponentByClick:d,copyComponent:h,getParentComponents:g,isHover:B,isSelect:w,isTopActive:m,isBottomActive:v,isBottomToolBar:y}=ms(t,A.componentData,"component"),{onContextmenu:I,onMousedown:N,moveActive:D}=ws(A.componentData,!1);return(P,H)=>{const O=(0,r.resolveComponent)("j-button"),sA=(0,r.resolveComponent)("el-space");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["d-drag-component",{selected:(0,r.unref)(w),hovered:(0,r.unref)(B),isBottomToolBar:(0,r.unref)(y),active:(0,r.unref)(D),isTopActive:(0,r.unref)(m),isBottomActive:(0,r.unref)(v)}])},[H[11]||(H[11]=(0,r.createElementVNode)("div",{class:"d-drag-line"},null,-1)),(0,r.createElementVNode)("div",{class:"d-drag-btns",onMouseenter:H[4]||(H[4]=(...J)=>(0,r.unref)(n)&&(0,r.unref)(n)(...J)),onMouseleave:H[5]||(H[5]=(...J)=>(0,r.unref)(o)&&(0,r.unref)(o)(...J))},[(0,r.createVNode)(sA,{size:4},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",{class:"d-drag-btns-names",onClick:(0,r.withModifiers)(()=>{},["stop"])},[(0,r.createVNode)(O,{class:"d-drag-btn",type:"primary",size:"small",label:e.componentData.name},null,8,["label"]),(0,r.createElementVNode)("div",ku,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)((0,r.unref)(g)(e.componentData.containerId),J=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:J.id},[(0,r.createVNode)(O,{class:"d-drag-btn",type:"primary",size:"small",label:J.name,onClick:cA=>(0,r.unref)(u)(J.id)},null,8,["label","onClick"])]))),128))])]),(0,r.createVNode)(O,{class:"d-drag-btn",type:"primary",size:"small",icon:"mdi:content-copy",onClick:H[0]||(H[0]=(0,r.withModifiers)(J=>(0,r.unref)(h)(e.componentData.id),["stop"]))}),(0,r.createElementVNode)("div",{onContextmenu:H[1]||(H[1]=(0,r.withModifiers)((...J)=>(0,r.unref)(I)&&(0,r.unref)(I)(...J),["stop"])),onMousedown:H[2]||(H[2]=(0,r.withModifiers)((...J)=>(0,r.unref)(N)&&(0,r.unref)(N)(...J),["stop"])),style:{display:"flex"}},[(0,r.createVNode)(O,{class:"d-drag-btn",type:"primary",size:"small",icon:"mdi:drag"})],32),(0,r.createVNode)(O,{class:"d-drag-btn",danger:"",type:"primary",size:"small",icon:"mdi:delete",onClick:H[3]||(H[3]=(0,r.withModifiers)(J=>(0,r.unref)(d)(e.componentData.id),["stop"]))})]),_:1})],32),(0,r.createElementVNode)("div",{ref_key:"refDrag",ref:t,class:"d-drag-body",onClick:H[6]||(H[6]=(0,r.withModifiers)((...J)=>(0,r.unref)(a)&&(0,r.unref)(a)(...J),["stop"])),onContextmenu:H[7]||(H[7]=(0,r.withModifiers)((...J)=>(0,r.unref)(I)&&(0,r.unref)(I)(...J),["stop"])),onMousedown:H[8]||(H[8]=(0,r.withModifiers)((...J)=>(0,r.unref)(N)&&(0,r.unref)(N)(...J),["stop"])),onMouseenter:H[9]||(H[9]=(...J)=>(0,r.unref)(n)&&(0,r.unref)(n)(...J)),onMouseleave:H[10]||(H[10]=(...J)=>(0,r.unref)(o)&&(0,r.unref)(o)(...J))},[(0,r.renderSlot)(P.$slots,"default"),e.isContainer?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",Mu))],544)],2)}}}),Ko=Ou,Ku=(0,r.defineComponent)({name:"DDragTool",__name:"tool",props:{config:{}},setup(e){const{onContextmenu:A,onMousedown:t,onClick:n}=ws(e.config??{name:"",id:""},!0);return(o,a)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"d-drag-tool",onClick:a[0]||(a[0]=(0,r.withModifiers)((...u)=>(0,r.unref)(n)&&(0,r.unref)(n)(...u),["stop"])),onContextmenu:a[1]||(a[1]=(0,r.withModifiers)((...u)=>(0,r.unref)(A)&&(0,r.unref)(A)(...u),["stop"])),onMousedown:a[2]||(a[2]=(0,r.withModifiers)((...u)=>(0,r.unref)(t)&&(0,r.unref)(t)(...u),["stop"]))},[(0,r.renderSlot)(o.$slots,"default")],32))}}),Ro=Ku,Ru={key:0,class:"d-drag-line"},Vu={key:1,class:"d-drag-btns"},Pu=(0,r.defineComponent)({name:"DDragContainer",__name:"container",props:{componentData:{default:()=>({})},isComponentContainer:{type:Boolean,default:!0},groupId:{default:void 0}},setup(e){const A=e,t=(0,r.ref)(),n=(0,r.computed)(()=>A.componentData?.children||[]),{onMouseenter:o,onMouseleave:a,activeComponent:u,isHover:d,isSelect:h,isToContainer:g,isMoveingInTopLevel:B,isTopActive:w,isBottomActive:m}=ms(t,A.componentData,"container",n,A.isComponentContainer,A.groupId),v=(0,r.computed)(()=>!!(n.value.findIndex(y=>y.groupId===A.groupId)===-1&&g.value));return(y,I)=>{const N=(0,r.resolveComponent)("j-button");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{ref_key:"refDrag",ref:t,class:(0,r.normalizeClass)(["d-drag-container",{selected:(0,r.unref)(h)&&!e.isComponentContainer,hovered:(0,r.unref)(d)&&!e.isComponentContainer,isTopLevel:e.componentData.level===0,active:v.value,isMoveingInTopLevel:(0,r.unref)(B),isTopActive:(0,r.unref)(w),isBottomActive:(0,r.unref)(m)}])},[e.isComponentContainer?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",Ru)),e.isComponentContainer?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",Vu,[(0,r.createElementVNode)("div",{class:"d-drag-btns-names",onClick:(0,r.withModifiers)(()=>{},["stop"])},[(0,r.createVNode)(N,{class:"d-drag-btn",type:"primary",size:"small",label:e.componentData.name},null,8,["label"])])])),(0,r.createElementVNode)("div",{class:"d-drag-body",onClick:I[0]||(I[0]=(0,r.withModifiers)((...D)=>(0,r.unref)(u)&&(0,r.unref)(u)(...D),["stop"])),onMouseenter:I[1]||(I[1]=(...D)=>(0,r.unref)(o)&&(0,r.unref)(o)(...D)),onMouseleave:I[2]||(I[2]=(...D)=>(0,r.unref)(a)&&(0,r.unref)(a)(...D))},[(0,r.renderSlot)(y.$slots,"default")],32)],2)}}}),Vo=Pu,Gu=(0,r.defineComponent)({name:"DDragFormList",__name:"dragFormList",props:{componentList:{default:()=>[]},globalConfig:{default:()=>({})}},setup(e){const{designItemName:A}=(0,r.inject)("dui-design-provide",{});return(t,n)=>{const o=(0,r.resolveComponent)("el-col");return(0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.componentList,a=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:a.id},[a.type!="pkey"?((0,r.openBlock)(),(0,r.createBlock)(o,{key:0,span:a.config.span||24},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(Ko,{"is-container":a.dragType!=="component","component-data":a},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(A)),{"component-data":a,"global-config":e.globalConfig},null,8,["component-data","global-config"]))]),_:2},1032,["is-container","component-data"])]),_:2},1032,["span"])):(0,r.createCommentVNode)("",!0)],64))),128)}}}),Po=Gu,zu=(0,r.defineComponent)({name:"DDragIndexList",__name:"dragIndexList",props:{componentList:{default:()=>[]},globalConfig:{default:()=>({})}},setup(e){const{designItemName:A}=(0,r.inject)("dui-design-provide",{}),t=n=>{if(n.flexWidth)return{width:n.flexWidth+"%"}};return(n,o)=>((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.componentList,a=>((0,r.openBlock)(),(0,r.createBlock)(Ko,{key:a.id,style:(0,r.normalizeStyle)(t(a.config)),"is-container":a.dragType!=="component","component-data":a},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(A)),{"component-data":a,"global-config":e.globalConfig},null,8,["component-data","global-config"]))]),_:2},1032,["style","is-container","component-data"]))),128))}}),Go=zu,Cs=ft(Ko,[Ro,Vo,Po,Go]);function Fn(e){return(0,r.getCurrentScope)()?((0,r.onScopeDispose)(e),!0):!1}function qe(e){return typeof e=="function"?e():(0,r.unref)(e)}var Xu=typeof window<"u"&&typeof document<"u",$u=e=>typeof e<"u",Yu=Object.prototype.toString,Wu=e=>Yu.call(e)==="[object Object]",Ju=()=>{};function Zu(e,A){function t(...n){return new Promise((o,a)=>{Promise.resolve(e(()=>A.apply(this,n),{fn:A,thisArg:this,args:n})).then(o).catch(a)})}return t}var vs=e=>e();function ju(e=vs){const A=(0,r.ref)(!0);function t(){A.value=!1}function n(){A.value=!0}const o=(...a)=>{A.value&&e(...a)};return{isActive:(0,r.readonly)(A),pause:t,resume:n,eventFilter:o}}function ys(e,A=!1,t="Timeout"){return new Promise((n,o)=>{setTimeout(A?()=>o(t):n,e)})}function qu(e,A,t={}){const{eventFilter:n=vs,...o}=t;return(0,r.watch)(e,Zu(n,A),o)}function Yt(e,A,t={}){const{eventFilter:n,...o}=t,{eventFilter:a,pause:u,resume:d,isActive:h}=ju(n);return{stop:qu(e,A,{...o,eventFilter:a}),pause:u,resume:d,isActive:h}}function Ad(e,A={}){if(!(0,r.isRef)(e))return(0,r.toRefs)(e);const t=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const n in e.value)t[n]=(0,r.customRef)(()=>({get(){return e.value[n]},set(o){var a;if((a=qe(A.replaceRef))==null||a)if(Array.isArray(e.value)){const u=[...e.value];u[n]=o,e.value=u}else{const u={...e.value,[n]:o};Object.setPrototypeOf(u,Object.getPrototypeOf(e.value)),e.value=u}else e.value[n]=o}}));return t}function zo(e,A=!1){function t(w,{flush:m="sync",deep:v=!1,timeout:y,throwOnTimeout:I}={}){let N=null;const D=[new Promise(P=>{N=(0,r.watch)(e,H=>{w(H)!==A&&(N?.(),P(H))},{flush:m,deep:v,immediate:!0})})];return y!=null&&D.push(ys(y,I).then(()=>qe(e)).finally(()=>N?.())),Promise.race(D)}function n(w,m){if(!(0,r.isRef)(w))return t(H=>H===w,m);const{flush:v="sync",deep:y=!1,timeout:I,throwOnTimeout:N}=m??{};let D=null;const P=[new Promise(H=>{D=(0,r.watch)([e,w],([O,sA])=>{A!==(O===sA)&&(D?.(),H(O))},{flush:v,deep:y,immediate:!0})})];return I!=null&&P.push(ys(I,N).then(()=>qe(e)).finally(()=>(D?.(),qe(e)))),Promise.race(P)}function o(w){return t(m=>!!m,w)}function a(w){return n(null,w)}function u(w){return n(void 0,w)}function d(w){return t(Number.isNaN,w)}function h(w,m){return t(v=>{const y=Array.from(v);return y.includes(w)||y.includes(qe(w))},m)}function g(w){return B(1,w)}function B(w=1,m){let v=-1;return t(()=>(v+=1,v>=w),m)}return Array.isArray(qe(e))?{toMatch:t,toContains:h,changed:g,changedTimes:B,get not(){return zo(e,!A)}}:{toMatch:t,toBe:n,toBeTruthy:o,toBeNull:a,toBeNaN:d,toBeUndefined:u,changed:g,changedTimes:B,get not(){return zo(e,!A)}}}function Xo(e){return zo(e)}function ed(e){var A;const t=qe(e);return(A=t?.$el)!=null?A:t}var Qs=Xu?window:void 0;function Es(...e){let A,t,n,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,n,o]=e,A=Qs):[A,t,n,o]=e,!A)return Ju;Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);const a=[],u=()=>{a.forEach(B=>B()),a.length=0},d=(B,w,m,v)=>(B.addEventListener(w,m,v),()=>B.removeEventListener(w,m,v)),h=(0,r.watch)(()=>[ed(A),qe(o)],([B,w])=>{if(u(),!B)return;const m=Wu(w)?{...w}:w;a.push(...t.flatMap(v=>n.map(y=>d(B,v,y,m))))},{immediate:!0,flush:"post"}),g=()=>{h(),u()};return Fn(g),g}function td(e){return typeof e=="function"?e:typeof e=="string"?A=>A.key===e:Array.isArray(e)?A=>e.includes(A.key):()=>!0}function Fs(...e){let A,t,n={};e.length===3?(A=e[0],t=e[1],n=e[2]):e.length===2?typeof e[1]=="object"?(A=!0,t=e[0],n=e[1]):(A=e[0],t=e[1]):(A=!0,t=e[0]);const{target:o=Qs,eventName:a="keydown",passive:u=!1,dedupe:d=!1}=n,h=td(A);return Es(o,a,B=>{B.repeat&&qe(d)||h(B)&&t(B)},u)}function nd(e){return JSON.parse(JSON.stringify(e))}function $o(e,A,t,n={}){var o,a,u;const{clone:d=!1,passive:h=!1,eventName:g,deep:B=!1,defaultValue:w,shouldEmit:m}=n,v=(0,r.getCurrentInstance)(),y=t||v?.emit||((o=v?.$emit)==null?void 0:o.bind(v))||((u=(a=v?.proxy)==null?void 0:a.$emit)==null?void 0:u.bind(v?.proxy));let I=g;A||(A="modelValue"),I=I||`update:${A.toString()}`;const N=H=>d?typeof d=="function"?d(H):nd(H):H,D=()=>$u(e[A])?N(e[A]):w,P=H=>{m?m(H)&&y(I,H):y(I,H)};if(h){const H=(0,r.ref)(D());let O=!1;return(0,r.watch)(()=>e[A],sA=>{O||(O=!0,H.value=N(sA),(0,r.nextTick)(()=>O=!1))}),(0,r.watch)(H,sA=>{!O&&(sA!==e[A]||B)&&P(sA)},{deep:B}),H}else return(0,r.computed)({get(){return D()},set(H){P(H)}})}var rd={value:()=>{}};function cr(){for(var e=0,A=arguments.length,t={},n;e<A;++e){if(!(n=arguments[e]+"")||n in t||/[\s.]/.test(n))throw new Error("illegal type: "+n);t[n]=[]}return new ur(t)}function ur(e){this._=e}function od(e,A){return e.trim().split(/^|\s+/).map(function(t){var n="",o=t.indexOf(".");if(o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),t&&!A.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}ur.prototype=cr.prototype={constructor:ur,on:function(e,A){var t=this._,n=od(e+"",t),o,a=-1,u=n.length;if(arguments.length<2){for(;++a<u;)if((o=(e=n[a]).type)&&(o=id(t[o],e.name)))return o;return}if(A!=null&&typeof A!="function")throw new Error("invalid callback: "+A);for(;++a<u;)if(o=(e=n[a]).type)t[o]=Us(t[o],e.name,A);else if(A==null)for(o in t)t[o]=Us(t[o],e.name,null);return this},copy:function(){var e={},A=this._;for(var t in A)e[t]=A[t].slice();return new ur(e)},call:function(e,A){if((o=arguments.length-2)>0)for(var t=new Array(o),n=0,o,a;n<o;++n)t[n]=arguments[n+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],n=0,o=a.length;n<o;++n)a[n].value.apply(A,t)},apply:function(e,A,t){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],o=0,a=n.length;o<a;++o)n[o].value.apply(A,t)}};function id(e,A){for(var t=0,n=e.length,o;t<n;++t)if((o=e[t]).name===A)return o.value}function Us(e,A,t){for(var n=0,o=e.length;n<o;++n)if(e[n].name===A){e[n]=rd,e=e.slice(0,n).concat(e.slice(n+1));break}return t!=null&&e.push({name:A,value:t}),e}var Yo="http://www.w3.org/1999/xhtml",bs={svg:"http://www.w3.org/2000/svg",xhtml:Yo,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function dr(e){var A=e+="",t=A.indexOf(":");return t>=0&&(A=e.slice(0,t))!=="xmlns"&&(e=e.slice(t+1)),bs.hasOwnProperty(A)?{space:bs[A],local:e}:e}function sd(e){return function(){var A=this.ownerDocument,t=this.namespaceURI;return t===Yo&&A.documentElement.namespaceURI===Yo?A.createElement(e):A.createElementNS(t,e)}}function ad(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Hs(e){var A=dr(e);return(A.local?ad:sd)(A)}function ld(){}function Wo(e){return e==null?ld:function(){return this.querySelector(e)}}function cd(e){typeof e!="function"&&(e=Wo(e));for(var A=this._groups,t=A.length,n=new Array(t),o=0;o<t;++o)for(var a=A[o],u=a.length,d=n[o]=new Array(u),h,g,B=0;B<u;++B)(h=a[B])&&(g=e.call(h,h.__data__,B,a))&&("__data__"in h&&(g.__data__=h.__data__),d[B]=g);return new Fe(n,this._parents)}function ud(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function dd(){return[]}function Is(e){return e==null?dd:function(){return this.querySelectorAll(e)}}function fd(e){return function(){return ud(e.apply(this,arguments))}}function gd(e){typeof e=="function"?e=fd(e):e=Is(e);for(var A=this._groups,t=A.length,n=[],o=[],a=0;a<t;++a)for(var u=A[a],d=u.length,h,g=0;g<d;++g)(h=u[g])&&(n.push(e.call(h,h.__data__,g,u)),o.push(h));return new Fe(n,o)}function _s(e){return function(){return this.matches(e)}}function Ss(e){return function(A){return A.matches(e)}}var hd=Array.prototype.find;function Bd(e){return function(){return hd.call(this.children,e)}}function pd(){return this.firstElementChild}function md(e){return this.select(e==null?pd:Bd(typeof e=="function"?e:Ss(e)))}var wd=Array.prototype.filter;function Cd(){return Array.from(this.children)}function vd(e){return function(){return wd.call(this.children,e)}}function yd(e){return this.selectAll(e==null?Cd:vd(typeof e=="function"?e:Ss(e)))}function Qd(e){typeof e!="function"&&(e=_s(e));for(var A=this._groups,t=A.length,n=new Array(t),o=0;o<t;++o)for(var a=A[o],u=a.length,d=n[o]=[],h,g=0;g<u;++g)(h=a[g])&&e.call(h,h.__data__,g,a)&&d.push(h);return new Fe(n,this._parents)}function xs(e){return new Array(e.length)}function Ed(){return new Fe(this._enter||this._groups.map(xs),this._parents)}function fr(e,A){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=A}fr.prototype={constructor:fr,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,A){return this._parent.insertBefore(e,A)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Fd(e){return function(){return e}}function Ud(e,A,t,n,o,a){for(var u=0,d,h=A.length,g=a.length;u<g;++u)(d=A[u])?(d.__data__=a[u],n[u]=d):t[u]=new fr(e,a[u]);for(;u<h;++u)(d=A[u])&&(o[u]=d)}function bd(e,A,t,n,o,a,u){var d,h,g=new Map,B=A.length,w=a.length,m=new Array(B),v;for(d=0;d<B;++d)(h=A[d])&&(m[d]=v=u.call(h,h.__data__,d,A)+"",g.has(v)?o[d]=h:g.set(v,h));for(d=0;d<w;++d)v=u.call(e,a[d],d,a)+"",(h=g.get(v))?(n[d]=h,h.__data__=a[d],g.delete(v)):t[d]=new fr(e,a[d]);for(d=0;d<B;++d)(h=A[d])&&g.get(m[d])===h&&(o[d]=h)}function Hd(e){return e.__data__}function Id(e,A){if(!arguments.length)return Array.from(this,Hd);var t=A?bd:Ud,n=this._parents,o=this._groups;typeof e!="function"&&(e=Fd(e));for(var a=o.length,u=new Array(a),d=new Array(a),h=new Array(a),g=0;g<a;++g){var B=n[g],w=o[g],m=w.length,v=_d(e.call(B,B&&B.__data__,g,n)),y=v.length,I=d[g]=new Array(y),N=u[g]=new Array(y);t(B,w,I,N,h[g]=new Array(m),v,A);for(var D=0,P=0,H,O;D<y;++D)if(H=I[D]){for(D>=P&&(P=D+1);!(O=N[P])&&++P<y;);H._next=O||null}}return u=new Fe(u,n),u._enter=d,u._exit=h,u}function _d(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Sd(){return new Fe(this._exit||this._groups.map(xs),this._parents)}function xd(e,A,t){var n=this.enter(),o=this,a=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),A!=null&&(o=A(o),o&&(o=o.selection())),t==null?a.remove():t(a),n&&o?n.merge(o).order():o}function Dd(e){for(var A=e.selection?e.selection():e,t=this._groups,n=A._groups,o=t.length,a=n.length,u=Math.min(o,a),d=new Array(o),h=0;h<u;++h)for(var g=t[h],B=n[h],w=g.length,m=d[h]=new Array(w),v,y=0;y<w;++y)(v=g[y]||B[y])&&(m[y]=v);for(;h<o;++h)d[h]=t[h];return new Fe(d,this._parents)}function Nd(){for(var e=this._groups,A=-1,t=e.length;++A<t;)for(var n=e[A],o=n.length-1,a=n[o],u;--o>=0;)(u=n[o])&&(a&&u.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(u,a),a=u);return this}function Ld(e){e||(e=Td);function A(w,m){return w&&m?e(w.__data__,m.__data__):!w-!m}for(var t=this._groups,n=t.length,o=new Array(n),a=0;a<n;++a){for(var u=t[a],d=u.length,h=o[a]=new Array(d),g,B=0;B<d;++B)(g=u[B])&&(h[B]=g);h.sort(A)}return new Fe(o,this._parents).order()}function Td(e,A){return e<A?-1:e>A?1:e>=A?0:NaN}function kd(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Md(){return Array.from(this)}function Od(){for(var e=this._groups,A=0,t=e.length;A<t;++A)for(var n=e[A],o=0,a=n.length;o<a;++o){var u=n[o];if(u)return u}return null}function Kd(){let e=0;for(const A of this)++e;return e}function Rd(){return!this.node()}function Vd(e){for(var A=this._groups,t=0,n=A.length;t<n;++t)for(var o=A[t],a=0,u=o.length,d;a<u;++a)(d=o[a])&&e.call(d,d.__data__,a,o);return this}function Pd(e){return function(){this.removeAttribute(e)}}function Gd(e){return function(){this.removeAttributeNS(e.space,e.local)}}function zd(e,A){return function(){this.setAttribute(e,A)}}function Xd(e,A){return function(){this.setAttributeNS(e.space,e.local,A)}}function $d(e,A){return function(){var t=A.apply(this,arguments);t==null?this.removeAttribute(e):this.setAttribute(e,t)}}function Yd(e,A){return function(){var t=A.apply(this,arguments);t==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}}function Wd(e,A){var t=dr(e);if(arguments.length<2){var n=this.node();return t.local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}return this.each((A==null?t.local?Gd:Pd:typeof A=="function"?t.local?Yd:$d:t.local?Xd:zd)(t,A))}function Ds(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Jd(e){return function(){this.style.removeProperty(e)}}function Zd(e,A,t){return function(){this.style.setProperty(e,A,t)}}function jd(e,A,t){return function(){var n=A.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,t)}}function qd(e,A,t){return arguments.length>1?this.each((A==null?Jd:typeof A=="function"?jd:Zd)(e,A,t??"")):Wt(this.node(),e)}function Wt(e,A){return e.style.getPropertyValue(A)||Ds(e).getComputedStyle(e,null).getPropertyValue(A)}function Af(e){return function(){delete this[e]}}function ef(e,A){return function(){this[e]=A}}function tf(e,A){return function(){var t=A.apply(this,arguments);t==null?delete this[e]:this[e]=t}}function nf(e,A){return arguments.length>1?this.each((A==null?Af:typeof A=="function"?tf:ef)(e,A)):this.node()[e]}function Ns(e){return e.trim().split(/^|\s+/)}function Jo(e){return e.classList||new Ls(e)}function Ls(e){this._node=e,this._names=Ns(e.getAttribute("class")||"")}Ls.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var A=this._names.indexOf(e);A>=0&&(this._names.splice(A,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Ts(e,A){for(var t=Jo(e),n=-1,o=A.length;++n<o;)t.add(A[n])}function ks(e,A){for(var t=Jo(e),n=-1,o=A.length;++n<o;)t.remove(A[n])}function rf(e){return function(){Ts(this,e)}}function of(e){return function(){ks(this,e)}}function sf(e,A){return function(){(A.apply(this,arguments)?Ts:ks)(this,e)}}function af(e,A){var t=Ns(e+"");if(arguments.length<2){for(var n=Jo(this.node()),o=-1,a=t.length;++o<a;)if(!n.contains(t[o]))return!1;return!0}return this.each((typeof A=="function"?sf:A?rf:of)(t,A))}function lf(){this.textContent=""}function cf(e){return function(){this.textContent=e}}function uf(e){return function(){var A=e.apply(this,arguments);this.textContent=A??""}}function df(e){return arguments.length?this.each(e==null?lf:(typeof e=="function"?uf:cf)(e)):this.node().textContent}function ff(){this.innerHTML=""}function gf(e){return function(){this.innerHTML=e}}function hf(e){return function(){var A=e.apply(this,arguments);this.innerHTML=A??""}}function Bf(e){return arguments.length?this.each(e==null?ff:(typeof e=="function"?hf:gf)(e)):this.node().innerHTML}function pf(){this.nextSibling&&this.parentNode.appendChild(this)}function mf(){return this.each(pf)}function wf(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Cf(){return this.each(wf)}function vf(e){var A=typeof e=="function"?e:Hs(e);return this.select(function(){return this.appendChild(A.apply(this,arguments))})}function yf(){return null}function Qf(e,A){var t=typeof e=="function"?e:Hs(e),n=A==null?yf:typeof A=="function"?A:Wo(A);return this.select(function(){return this.insertBefore(t.apply(this,arguments),n.apply(this,arguments)||null)})}function Ef(){var e=this.parentNode;e&&e.removeChild(this)}function Ff(){return this.each(Ef)}function Uf(){var e=this.cloneNode(!1),A=this.parentNode;return A?A.insertBefore(e,this.nextSibling):e}function bf(){var e=this.cloneNode(!0),A=this.parentNode;return A?A.insertBefore(e,this.nextSibling):e}function Hf(e){return this.select(e?bf:Uf)}function If(e){return arguments.length?this.property("__data__",e):this.node().__data__}function _f(e){return function(A){e.call(this,A,this.__data__)}}function Sf(e){return e.trim().split(/^|\s+/).map(function(A){var t="",n=A.indexOf(".");return n>=0&&(t=A.slice(n+1),A=A.slice(0,n)),{type:A,name:t}})}function xf(e){return function(){var A=this.__on;if(A){for(var t=0,n=-1,o=A.length,a;t<o;++t)a=A[t],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):A[++n]=a;++n?A.length=n:delete this.__on}}}function Df(e,A,t){return function(){var n=this.__on,o,a=_f(A);if(n){for(var u=0,d=n.length;u<d;++u)if((o=n[u]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=a,o.options=t),o.value=A;return}}this.addEventListener(e.type,a,t),o={type:e.type,name:e.name,value:A,listener:a,options:t},n?n.push(o):this.__on=[o]}}function Nf(e,A,t){var n=Sf(e+""),o,a=n.length,u;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,g=d.length,B;h<g;++h)for(o=0,B=d[h];o<a;++o)if((u=n[o]).type===B.type&&u.name===B.name)return B.value}return}for(d=A?Df:xf,o=0;o<a;++o)this.each(d(n[o],A,t));return this}function Ms(e,A,t){var n=Ds(e),o=n.CustomEvent;typeof o=="function"?o=new o(A,t):(o=n.document.createEvent("Event"),t?(o.initEvent(A,t.bubbles,t.cancelable),o.detail=t.detail):o.initEvent(A,!1,!1)),e.dispatchEvent(o)}function Lf(e,A){return function(){return Ms(this,e,A)}}function Tf(e,A){return function(){return Ms(this,e,A.apply(this,arguments))}}function kf(e,A){return this.each((typeof A=="function"?Tf:Lf)(e,A))}function*Mf(){for(var e=this._groups,A=0,t=e.length;A<t;++A)for(var n=e[A],o=0,a=n.length,u;o<a;++o)(u=n[o])&&(yield u)}var Os=[null];function Fe(e,A){this._groups=e,this._parents=A}function Un(){return new Fe([[document.documentElement]],Os)}function Of(){return this}Fe.prototype=Un.prototype={constructor:Fe,select:cd,selectAll:gd,selectChild:md,selectChildren:yd,filter:Qd,data:Id,enter:Ed,exit:Sd,join:xd,merge:Dd,selection:Of,order:Nd,sort:Ld,call:kd,nodes:Md,node:Od,size:Kd,empty:Rd,each:Vd,attr:Wd,style:qd,property:nf,classed:af,text:df,html:Bf,raise:mf,lower:Cf,append:vf,insert:Qf,remove:Ff,clone:Hf,datum:If,on:Nf,dispatch:kf,[Symbol.iterator]:Mf};function Te(e){return typeof e=="string"?new Fe([[document.querySelector(e)]],[document.documentElement]):new Fe([[e]],Os)}function Kf(e){let A;for(;A=e.sourceEvent;)e=A;return e}function Pe(e,A){if(e=Kf(e),A===void 0&&(A=e.currentTarget),A){var t=A.ownerSVGElement||A;if(t.createSVGPoint){var n=t.createSVGPoint();return n.x=e.clientX,n.y=e.clientY,n=n.matrixTransform(A.getScreenCTM().inverse()),[n.x,n.y]}if(A.getBoundingClientRect){var o=A.getBoundingClientRect();return[e.clientX-o.left-A.clientLeft,e.clientY-o.top-A.clientTop]}}return[e.pageX,e.pageY]}var Rf={passive:!1},bn={capture:!0,passive:!1};function Zo(e){e.stopImmediatePropagation()}function Jt(e){e.preventDefault(),e.stopImmediatePropagation()}function Ks(e){var A=e.document.documentElement,t=Te(e).on("dragstart.drag",Jt,bn);"onselectstart"in A?t.on("selectstart.drag",Jt,bn):(A.__noselect=A.style.MozUserSelect,A.style.MozUserSelect="none")}function Rs(e,A){var t=e.document.documentElement,n=Te(e).on("dragstart.drag",null);A&&(n.on("click.drag",Jt,bn),setTimeout(function(){n.on("click.drag",null)},0)),"onselectstart"in t?n.on("selectstart.drag",null):(t.style.MozUserSelect=t.__noselect,delete t.__noselect)}var gr=e=>()=>e;function jo(e,{sourceEvent:A,subject:t,target:n,identifier:o,active:a,x:u,y:d,dx:h,dy:g,dispatch:B}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:A,enumerable:!0,configurable:!0},subject:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:u,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:g,enumerable:!0,configurable:!0},_:{value:B}})}jo.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Vf(e){return!e.ctrlKey&&!e.button}function Pf(){return this.parentNode}function Gf(e,A){return A??{x:e.x,y:e.y}}function zf(){return navigator.maxTouchPoints||"ontouchstart"in this}function Xf(){var e=Vf,A=Pf,t=Gf,n=zf,o={},a=cr("start","drag","end"),u=0,d,h,g,B,w=0;function m(O){O.on("mousedown.drag",v).filter(n).on("touchstart.drag",N).on("touchmove.drag",D,Rf).on("touchend.drag touchcancel.drag",P).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(O,sA){if(!(B||!e.call(this,O,sA))){var J=H(this,A.call(this,O,sA),O,sA,"mouse");J&&(Te(O.view).on("mousemove.drag",y,bn).on("mouseup.drag",I,bn),Ks(O.view),Zo(O),g=!1,d=O.clientX,h=O.clientY,J("start",O))}}function y(O){if(Jt(O),!g){var sA=O.clientX-d,J=O.clientY-h;g=sA*sA+J*J>w}o.mouse("drag",O)}function I(O){Te(O.view).on("mousemove.drag mouseup.drag",null),Rs(O.view,g),Jt(O),o.mouse("end",O)}function N(O,sA){if(e.call(this,O,sA)){var J=O.changedTouches,cA=A.call(this,O,sA),lA=J.length,oA,iA;for(oA=0;oA<lA;++oA)(iA=H(this,cA,O,sA,J[oA].identifier,J[oA]))&&(Zo(O),iA("start",O,J[oA]))}}function D(O){var sA=O.changedTouches,J=sA.length,cA,lA;for(cA=0;cA<J;++cA)(lA=o[sA[cA].identifier])&&(Jt(O),lA("drag",O,sA[cA]))}function P(O){var sA=O.changedTouches,J=sA.length,cA,lA;for(B&&clearTimeout(B),B=setTimeout(function(){B=null},500),cA=0;cA<J;++cA)(lA=o[sA[cA].identifier])&&(Zo(O),lA("end",O,sA[cA]))}function H(O,sA,J,cA,lA,oA){var iA=a.copy(),AA=Pe(oA||J,sA),S,eA,U;if((U=t.call(O,new jo("beforestart",{sourceEvent:J,target:m,identifier:lA,active:u,x:AA[0],y:AA[1],dx:0,dy:0,dispatch:iA}),cA))!=null)return S=U.x-AA[0]||0,eA=U.y-AA[1]||0,function K(b,R,k){var T=AA,M;switch(b){case"start":o[lA]=K,M=u++;break;case"end":delete o[lA],--u;case"drag":AA=Pe(k||R,sA),M=u;break}iA.call(b,O,new jo(b,{sourceEvent:R,subject:U,target:m,identifier:lA,active:M,x:AA[0]+S,y:AA[1]+eA,dx:AA[0]-T[0],dy:AA[1]-T[1],dispatch:iA}),cA)}}return m.filter=function(O){return arguments.length?(e=typeof O=="function"?O:gr(!!O),m):e},m.container=function(O){return arguments.length?(A=typeof O=="function"?O:gr(O),m):A},m.subject=function(O){return arguments.length?(t=typeof O=="function"?O:gr(O),m):t},m.touchable=function(O){return arguments.length?(n=typeof O=="function"?O:gr(!!O),m):n},m.on=function(){var O=a.on.apply(a,arguments);return O===a?m:O},m.clickDistance=function(O){return arguments.length?(w=(O=+O)*O,m):Math.sqrt(w)},m}function qo(e,A,t){e.prototype=A.prototype=t,t.constructor=e}function Vs(e,A){var t=Object.create(e.prototype);for(var n in A)t[n]=A[n];return t}function Hn(){}var In=.7,hr=1/In,Zt="\\s*([+-]?\\d+)\\s*",_n="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ge="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$f=/^#([0-9a-f]{3,8})$/,Yf=new RegExp(`^rgb\\(${Zt},${Zt},${Zt}\\)$`),Wf=new RegExp(`^rgb\\(${Ge},${Ge},${Ge}\\)$`),Jf=new RegExp(`^rgba\\(${Zt},${Zt},${Zt},${_n}\\)$`),Zf=new RegExp(`^rgba\\(${Ge},${Ge},${Ge},${_n}\\)$`),jf=new RegExp(`^hsl\\(${_n},${Ge},${Ge}\\)$`),qf=new RegExp(`^hsla\\(${_n},${Ge},${Ge},${_n}\\)$`),Ps={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};qo(Hn,St,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Gs,formatHex:Gs,formatHex8:Ag,formatHsl:eg,formatRgb:zs,toString:zs});function Gs(){return this.rgb().formatHex()}function Ag(){return this.rgb().formatHex8()}function eg(){return Js(this).formatHsl()}function zs(){return this.rgb().formatRgb()}function St(e){var A,t;return e=(e+"").trim().toLowerCase(),(A=$f.exec(e))?(t=A[1].length,A=parseInt(A[1],16),t===6?Xs(A):t===3?new we(A>>8&15|A>>4&240,A>>4&15|A&240,(A&15)<<4|A&15,1):t===8?Br(A>>24&255,A>>16&255,A>>8&255,(A&255)/255):t===4?Br(A>>12&15|A>>8&240,A>>8&15|A>>4&240,A>>4&15|A&240,((A&15)<<4|A&15)/255):null):(A=Yf.exec(e))?new we(A[1],A[2],A[3],1):(A=Wf.exec(e))?new we(A[1]*255/100,A[2]*255/100,A[3]*255/100,1):(A=Jf.exec(e))?Br(A[1],A[2],A[3],A[4]):(A=Zf.exec(e))?Br(A[1]*255/100,A[2]*255/100,A[3]*255/100,A[4]):(A=jf.exec(e))?Ws(A[1],A[2]/100,A[3]/100,1):(A=qf.exec(e))?Ws(A[1],A[2]/100,A[3]/100,A[4]):Ps.hasOwnProperty(e)?Xs(Ps[e]):e==="transparent"?new we(NaN,NaN,NaN,0):null}function Xs(e){return new we(e>>16&255,e>>8&255,e&255,1)}function Br(e,A,t,n){return n<=0&&(e=A=t=NaN),new we(e,A,t,n)}function tg(e){return e instanceof Hn||(e=St(e)),e?(e=e.rgb(),new we(e.r,e.g,e.b,e.opacity)):new we}function Ai(e,A,t,n){return arguments.length===1?tg(e):new we(e,A,t,n??1)}function we(e,A,t,n){this.r=+e,this.g=+A,this.b=+t,this.opacity=+n}qo(we,Ai,Vs(Hn,{brighter(e){return e=e==null?hr:Math.pow(hr,e),new we(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?In:Math.pow(In,e),new we(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new we(xt(this.r),xt(this.g),xt(this.b),pr(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:$s,formatHex:$s,formatHex8:ng,formatRgb:Ys,toString:Ys}));function $s(){return`#${Dt(this.r)}${Dt(this.g)}${Dt(this.b)}`}function ng(){return`#${Dt(this.r)}${Dt(this.g)}${Dt(this.b)}${Dt((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ys(){const e=pr(this.opacity);return`${e===1?"rgb(":"rgba("}${xt(this.r)}, ${xt(this.g)}, ${xt(this.b)}${e===1?")":`, ${e})`}`}function pr(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function xt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Dt(e){return e=xt(e),(e<16?"0":"")+e.toString(16)}function Ws(e,A,t,n){return n<=0?e=A=t=NaN:t<=0||t>=1?e=A=NaN:A<=0&&(e=NaN),new ke(e,A,t,n)}function Js(e){if(e instanceof ke)return new ke(e.h,e.s,e.l,e.opacity);if(e instanceof Hn||(e=St(e)),!e)return new ke;if(e instanceof ke)return e;e=e.rgb();var A=e.r/255,t=e.g/255,n=e.b/255,o=Math.min(A,t,n),a=Math.max(A,t,n),u=NaN,d=a-o,h=(a+o)/2;return d?(A===a?u=(t-n)/d+(t<n)*6:t===a?u=(n-A)/d+2:u=(A-t)/d+4,d/=h<.5?a+o:2-a-o,u*=60):d=h>0&&h<1?0:u,new ke(u,d,h,e.opacity)}function rg(e,A,t,n){return arguments.length===1?Js(e):new ke(e,A,t,n??1)}function ke(e,A,t,n){this.h=+e,this.s=+A,this.l=+t,this.opacity=+n}qo(ke,rg,Vs(Hn,{brighter(e){return e=e==null?hr:Math.pow(hr,e),new ke(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?In:Math.pow(In,e),new ke(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,A=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,n=t+(t<.5?t:1-t)*A,o=2*t-n;return new we(ei(e>=240?e-240:e+120,o,n),ei(e,o,n),ei(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new ke(Zs(this.h),mr(this.s),mr(this.l),pr(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=pr(this.opacity);return`${e===1?"hsl(":"hsla("}${Zs(this.h)}, ${mr(this.s)*100}%, ${mr(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Zs(e){return e=(e||0)%360,e<0?e+360:e}function mr(e){return Math.max(0,Math.min(1,e||0))}function ei(e,A,t){return(e<60?A+(t-A)*e/60:e<180?t:e<240?A+(t-A)*(240-e)/60:A)*255}var ti=e=>()=>e;function og(e,A){return function(t){return e+t*A}}function ig(e,A,t){return e=Math.pow(e,t),A=Math.pow(A,t)-e,t=1/t,function(n){return Math.pow(e+n*A,t)}}function sg(e){return(e=+e)==1?js:function(A,t){return t-A?ig(A,t,e):ti(isNaN(A)?t:A)}}function js(e,A){var t=A-e;return t?og(e,t):ti(isNaN(e)?A:e)}var wr=(function e(A){var t=sg(A);function n(o,a){var u=t((o=Ai(o)).r,(a=Ai(a)).r),d=t(o.g,a.g),h=t(o.b,a.b),g=js(o.opacity,a.opacity);return function(B){return o.r=u(B),o.g=d(B),o.b=h(B),o.opacity=g(B),o+""}}return n.gamma=e,n})(1);function ag(e,A){A||(A=[]);var t=e?Math.min(A.length,e.length):0,n=A.slice(),o;return function(a){for(o=0;o<t;++o)n[o]=e[o]*(1-a)+A[o]*a;return n}}function lg(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function cg(e,A){var t=A?A.length:0,n=e?Math.min(t,e.length):0,o=new Array(n),a=new Array(t),u;for(u=0;u<n;++u)o[u]=Sn(e[u],A[u]);for(;u<t;++u)a[u]=A[u];return function(d){for(u=0;u<n;++u)a[u]=o[u](d);return a}}function ug(e,A){var t=new Date;return e=+e,A=+A,function(n){return t.setTime(e*(1-n)+A*n),t}}function ze(e,A){return e=+e,A=+A,function(t){return e*(1-t)+A*t}}function dg(e,A){var t={},n={},o;(e===null||typeof e!="object")&&(e={}),(A===null||typeof A!="object")&&(A={});for(o in A)o in e?t[o]=Sn(e[o],A[o]):n[o]=A[o];return function(a){for(o in t)n[o]=t[o](a);return n}}var ni=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ri=new RegExp(ni.source,"g");function fg(e){return function(){return e}}function gg(e){return function(A){return e(A)+""}}function qs(e,A){var t=ni.lastIndex=ri.lastIndex=0,n,o,a,u=-1,d=[],h=[];for(e=e+"",A=A+"";(n=ni.exec(e))&&(o=ri.exec(A));)(a=o.index)>t&&(a=A.slice(t,a),d[u]?d[u]+=a:d[++u]=a),(n=n[0])===(o=o[0])?d[u]?d[u]+=o:d[++u]=o:(d[++u]=null,h.push({i:u,x:ze(n,o)})),t=ri.lastIndex;return t<A.length&&(a=A.slice(t),d[u]?d[u]+=a:d[++u]=a),d.length<2?h[0]?gg(h[0].x):fg(A):(A=h.length,function(g){for(var B=0,w;B<A;++B)d[(w=h[B]).i]=w.x(g);return d.join("")})}function Sn(e,A){var t=typeof A,n;return A==null||t==="boolean"?ti(A):(t==="number"?ze:t==="string"?(n=St(A))?(A=n,wr):qs:A instanceof St?wr:A instanceof Date?ug:lg(A)?ag:Array.isArray(A)?cg:typeof A.valueOf!="function"&&typeof A.toString!="function"||isNaN(A)?dg:ze)(e,A)}var Aa=180/Math.PI,oi={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ea(e,A,t,n,o,a){var u,d,h;return(u=Math.sqrt(e*e+A*A))&&(e/=u,A/=u),(h=e*t+A*n)&&(t-=e*h,n-=A*h),(d=Math.sqrt(t*t+n*n))&&(t/=d,n/=d,h/=d),e*n<A*t&&(e=-e,A=-A,h=-h,u=-u),{translateX:o,translateY:a,rotate:Math.atan2(A,e)*Aa,skewX:Math.atan(h)*Aa,scaleX:u,scaleY:d}}var Cr;function hg(e){const A=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return A.isIdentity?oi:ea(A.a,A.b,A.c,A.d,A.e,A.f)}function Bg(e){return e==null||(Cr||(Cr=document.createElementNS("http://www.w3.org/2000/svg","g")),Cr.setAttribute("transform",e),!(e=Cr.transform.baseVal.consolidate()))?oi:(e=e.matrix,ea(e.a,e.b,e.c,e.d,e.e,e.f))}function ta(e,A,t,n){function o(g){return g.length?g.pop()+" ":""}function a(g,B,w,m,v,y){if(g!==w||B!==m){var I=v.push("translate(",null,A,null,t);y.push({i:I-4,x:ze(g,w)},{i:I-2,x:ze(B,m)})}else(w||m)&&v.push("translate("+w+A+m+t)}function u(g,B,w,m){g!==B?(g-B>180?B+=360:B-g>180&&(g+=360),m.push({i:w.push(o(w)+"rotate(",null,n)-2,x:ze(g,B)})):B&&w.push(o(w)+"rotate("+B+n)}function d(g,B,w,m){g!==B?m.push({i:w.push(o(w)+"skewX(",null,n)-2,x:ze(g,B)}):B&&w.push(o(w)+"skewX("+B+n)}function h(g,B,w,m,v,y){if(g!==w||B!==m){var I=v.push(o(v)+"scale(",null,",",null,")");y.push({i:I-4,x:ze(g,w)},{i:I-2,x:ze(B,m)})}else(w!==1||m!==1)&&v.push(o(v)+"scale("+w+","+m+")")}return function(g,B){var w=[],m=[];return g=e(g),B=e(B),a(g.translateX,g.translateY,B.translateX,B.translateY,w,m),u(g.rotate,B.rotate,w,m),d(g.skewX,B.skewX,w,m),h(g.scaleX,g.scaleY,B.scaleX,B.scaleY,w,m),g=B=null,function(v){for(var y=-1,I=m.length,N;++y<I;)w[(N=m[y]).i]=N.x(v);return w.join("")}}}var pg=ta(hg,"px, ","px)","deg)"),mg=ta(Bg,", ",")",")"),wg=1e-12;function na(e){return((e=Math.exp(e))+1/e)/2}function Cg(e){return((e=Math.exp(e))-1/e)/2}function vg(e){return((e=Math.exp(2*e))-1)/(e+1)}var vr=(function e(A,t,n){function o(a,u){var d=a[0],h=a[1],g=a[2],B=u[0],w=u[1],m=u[2],v=B-d,y=w-h,I=v*v+y*y,N,D;if(I<wg)D=Math.log(m/g)/A,N=function(J){return[d+J*v,h+J*y,g*Math.exp(A*J*D)]};else{var P=Math.sqrt(I),H=(m*m-g*g+n*I)/(2*g*t*P),O=(m*m-g*g-n*I)/(2*m*t*P),sA=Math.log(Math.sqrt(H*H+1)-H);D=(Math.log(Math.sqrt(O*O+1)-O)-sA)/A,N=function(J){var cA=J*D,lA=na(sA),oA=g/(t*P)*(lA*vg(A*cA+sA)-Cg(sA));return[d+oA*v,h+oA*y,g*lA/na(A*cA+sA)]}}return N.duration=D*1e3*A/Math.SQRT2,N}return o.rho=function(a){var u=Math.max(.001,+a),d=u*u;return e(u,d,d*d)},o})(Math.SQRT2,2,4),jt=0,xn=0,Dn=0,ra=1e3,yr,Nn,Qr=0,Nt=0,Er=0,Ln=typeof performance=="object"&&performance.now?performance:Date,oa=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ii(){return Nt||(oa(yg),Nt=Ln.now()+Er)}function yg(){Nt=0}function Fr(){this._call=this._time=this._next=null}Fr.prototype=ia.prototype={constructor:Fr,restart:function(e,A,t){if(typeof e!="function")throw new TypeError("callback is not a function");t=(t==null?ii():+t)+(A==null?0:+A),!this._next&&Nn!==this&&(Nn?Nn._next=this:yr=this,Nn=this),this._call=e,this._time=t,si()},stop:function(){this._call&&(this._call=null,this._time=1/0,si())}};function ia(e,A,t){var n=new Fr;return n.restart(e,A,t),n}function Qg(){ii(),++jt;for(var e=yr,A;e;)(A=Nt-e._time)>=0&&e._call.call(void 0,A),e=e._next;--jt}function sa(){Nt=(Qr=Ln.now())+Er,jt=xn=0;try{Qg()}finally{jt=0,Fg(),Nt=0}}function Eg(){var e=Ln.now(),A=e-Qr;A>ra&&(Er-=A,Qr=e)}function Fg(){for(var e,A=yr,t,n=1/0;A;)A._call?(n>A._time&&(n=A._time),e=A,A=A._next):(t=A._next,A._next=null,A=e?e._next=t:yr=t);Nn=e,si(n)}function si(e){jt||(xn&&(xn=clearTimeout(xn)),e-Nt>24?(e<1/0&&(xn=setTimeout(sa,e-Ln.now()-Er)),Dn&&(Dn=clearInterval(Dn))):(Dn||(Qr=Ln.now(),Dn=setInterval(Eg,ra)),jt=1,oa(sa)))}function aa(e,A,t){var n=new Fr;return A=A==null?0:+A,n.restart(o=>{n.stop(),e(o+A)},A,t),n}var Ug=cr("start","end","cancel","interrupt"),bg=[],la=0,ca=1,ai=2,Ur=3,ua=4,li=5,br=6;function Hr(e,A,t,n,o,a){var u=e.__transition;if(!u)e.__transition={};else if(t in u)return;Hg(e,t,{name:A,index:n,group:o,on:Ug,tween:bg,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:la})}function ci(e,A){var t=Me(e,A);if(t.state>la)throw new Error("too late; already scheduled");return t}function Xe(e,A){var t=Me(e,A);if(t.state>Ur)throw new Error("too late; already running");return t}function Me(e,A){var t=e.__transition;if(!t||!(t=t[A]))throw new Error("transition not found");return t}function Hg(e,A,t){var n=e.__transition,o;n[A]=t,t.timer=ia(a,0,t.time);function a(g){t.state=ca,t.timer.restart(u,t.delay,t.time),t.delay<=g&&u(g-t.delay)}function u(g){var B,w,m,v;if(t.state!==ca)return h();for(B in n)if(v=n[B],v.name===t.name){if(v.state===Ur)return aa(u);v.state===ua?(v.state=br,v.timer.stop(),v.on.call("interrupt",e,e.__data__,v.index,v.group),delete n[B]):+B<A&&(v.state=br,v.timer.stop(),v.on.call("cancel",e,e.__data__,v.index,v.group),delete n[B])}if(aa(function(){t.state===Ur&&(t.state=ua,t.timer.restart(d,t.delay,t.time),d(g))}),t.state=ai,t.on.call("start",e,e.__data__,t.index,t.group),t.state===ai){for(t.state=Ur,o=new Array(m=t.tween.length),B=0,w=-1;B<m;++B)(v=t.tween[B].value.call(e,e.__data__,t.index,t.group))&&(o[++w]=v);o.length=w+1}}function d(g){for(var B=g<t.duration?t.ease.call(null,g/t.duration):(t.timer.restart(h),t.state=li,1),w=-1,m=o.length;++w<m;)o[w].call(e,B);t.state===li&&(t.on.call("end",e,e.__data__,t.index,t.group),h())}function h(){t.state=br,t.timer.stop(),delete n[A];for(var g in n)return;delete e.__transition}}function Ir(e,A){var t=e.__transition,n,o,a=!0,u;if(t){A=A==null?null:A+"";for(u in t){if((n=t[u]).name!==A){a=!1;continue}o=n.state>ai&&n.state<li,n.state=br,n.timer.stop(),n.on.call(o?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete t[u]}a&&delete e.__transition}}function Ig(e){return this.each(function(){Ir(this,e)})}function _g(e,A){var t,n;return function(){var o=Xe(this,e),a=o.tween;if(a!==t){n=t=a;for(var u=0,d=n.length;u<d;++u)if(n[u].name===A){n=n.slice(),n.splice(u,1);break}}o.tween=n}}function Sg(e,A,t){var n,o;if(typeof t!="function")throw new Error;return function(){var a=Xe(this,e),u=a.tween;if(u!==n){o=(n=u).slice();for(var d={name:A,value:t},h=0,g=o.length;h<g;++h)if(o[h].name===A){o[h]=d;break}h===g&&o.push(d)}a.tween=o}}function xg(e,A){var t=this._id;if(e+="",arguments.length<2){for(var n=Me(this.node(),t).tween,o=0,a=n.length,u;o<a;++o)if((u=n[o]).name===e)return u.value;return null}return this.each((A==null?_g:Sg)(t,e,A))}function ui(e,A,t){var n=e._id;return e.each(function(){var o=Xe(this,n);(o.value||(o.value={}))[A]=t.apply(this,arguments)}),function(o){return Me(o,n).value[A]}}function da(e,A){var t;return(typeof A=="number"?ze:A instanceof St?wr:(t=St(A))?(A=t,wr):qs)(e,A)}function Dg(e){return function(){this.removeAttribute(e)}}function Ng(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Lg(e,A,t){var n,o=t+"",a;return function(){var u=this.getAttribute(e);return u===o?null:u===n?a:a=A(n=u,t)}}function Tg(e,A,t){var n,o=t+"",a;return function(){var u=this.getAttributeNS(e.space,e.local);return u===o?null:u===n?a:a=A(n=u,t)}}function kg(e,A,t){var n,o,a;return function(){var u,d=t(this),h;return d==null?void this.removeAttribute(e):(u=this.getAttribute(e),h=d+"",u===h?null:u===n&&h===o?a:(o=h,a=A(n=u,d)))}}function Mg(e,A,t){var n,o,a;return function(){var u,d=t(this),h;return d==null?void this.removeAttributeNS(e.space,e.local):(u=this.getAttributeNS(e.space,e.local),h=d+"",u===h?null:u===n&&h===o?a:(o=h,a=A(n=u,d)))}}function Og(e,A){var t=dr(e),n=t==="transform"?mg:da;return this.attrTween(e,typeof A=="function"?(t.local?Mg:kg)(t,n,ui(this,"attr."+e,A)):A==null?(t.local?Ng:Dg)(t):(t.local?Tg:Lg)(t,n,A))}function Kg(e,A){return function(t){this.setAttribute(e,A.call(this,t))}}function Rg(e,A){return function(t){this.setAttributeNS(e.space,e.local,A.call(this,t))}}function Vg(e,A){var t,n;function o(){var a=A.apply(this,arguments);return a!==n&&(t=(n=a)&&Rg(e,a)),t}return o._value=A,o}function Pg(e,A){var t,n;function o(){var a=A.apply(this,arguments);return a!==n&&(t=(n=a)&&Kg(e,a)),t}return o._value=A,o}function Gg(e,A){var t="attr."+e;if(arguments.length<2)return(t=this.tween(t))&&t._value;if(A==null)return this.tween(t,null);if(typeof A!="function")throw new Error;var n=dr(e);return this.tween(t,(n.local?Vg:Pg)(n,A))}function zg(e,A){return function(){ci(this,e).delay=+A.apply(this,arguments)}}function Xg(e,A){return A=+A,function(){ci(this,e).delay=A}}function $g(e){var A=this._id;return arguments.length?this.each((typeof e=="function"?zg:Xg)(A,e)):Me(this.node(),A).delay}function Yg(e,A){return function(){Xe(this,e).duration=+A.apply(this,arguments)}}function Wg(e,A){return A=+A,function(){Xe(this,e).duration=A}}function Jg(e){var A=this._id;return arguments.length?this.each((typeof e=="function"?Yg:Wg)(A,e)):Me(this.node(),A).duration}function Zg(e,A){if(typeof A!="function")throw new Error;return function(){Xe(this,e).ease=A}}function jg(e){var A=this._id;return arguments.length?this.each(Zg(A,e)):Me(this.node(),A).ease}function qg(e,A){return function(){var t=A.apply(this,arguments);if(typeof t!="function")throw new Error;Xe(this,e).ease=t}}function Ah(e){if(typeof e!="function")throw new Error;return this.each(qg(this._id,e))}function eh(e){typeof e!="function"&&(e=_s(e));for(var A=this._groups,t=A.length,n=new Array(t),o=0;o<t;++o)for(var a=A[o],u=a.length,d=n[o]=[],h,g=0;g<u;++g)(h=a[g])&&e.call(h,h.__data__,g,a)&&d.push(h);return new At(n,this._parents,this._name,this._id)}function th(e){if(e._id!==this._id)throw new Error;for(var A=this._groups,t=e._groups,n=A.length,o=t.length,a=Math.min(n,o),u=new Array(n),d=0;d<a;++d)for(var h=A[d],g=t[d],B=h.length,w=u[d]=new Array(B),m,v=0;v<B;++v)(m=h[v]||g[v])&&(w[v]=m);for(;d<n;++d)u[d]=A[d];return new At(u,this._parents,this._name,this._id)}function nh(e){return(e+"").trim().split(/^|\s+/).every(function(A){var t=A.indexOf(".");return t>=0&&(A=A.slice(0,t)),!A||A==="start"})}function rh(e,A,t){var n,o,a=nh(A)?ci:Xe;return function(){var u=a(this,e),d=u.on;d!==n&&(o=(n=d).copy()).on(A,t),u.on=o}}function oh(e,A){var t=this._id;return arguments.length<2?Me(this.node(),t).on.on(e):this.each(rh(t,e,A))}function ih(e){return function(){var A=this.parentNode;for(var t in this.__transition)if(+t!==e)return;A&&A.removeChild(this)}}function sh(){return this.on("end.remove",ih(this._id))}function ah(e){var A=this._name,t=this._id;typeof e!="function"&&(e=Wo(e));for(var n=this._groups,o=n.length,a=new Array(o),u=0;u<o;++u)for(var d=n[u],h=d.length,g=a[u]=new Array(h),B,w,m=0;m<h;++m)(B=d[m])&&(w=e.call(B,B.__data__,m,d))&&("__data__"in B&&(w.__data__=B.__data__),g[m]=w,Hr(g[m],A,t,m,g,Me(B,t)));return new At(a,this._parents,A,t)}function lh(e){var A=this._name,t=this._id;typeof e!="function"&&(e=Is(e));for(var n=this._groups,o=n.length,a=[],u=[],d=0;d<o;++d)for(var h=n[d],g=h.length,B,w=0;w<g;++w)if(B=h[w]){for(var m=e.call(B,B.__data__,w,h),v,y=Me(B,t),I=0,N=m.length;I<N;++I)(v=m[I])&&Hr(v,A,t,I,m,y);a.push(m),u.push(B)}return new At(a,u,A,t)}var ch=Un.prototype.constructor;function uh(){return new ch(this._groups,this._parents)}function dh(e,A){var t,n,o;return function(){var a=Wt(this,e),u=(this.style.removeProperty(e),Wt(this,e));return a===u?null:a===t&&u===n?o:o=A(t=a,n=u)}}function fa(e){return function(){this.style.removeProperty(e)}}function fh(e,A,t){var n,o=t+"",a;return function(){var u=Wt(this,e);return u===o?null:u===n?a:a=A(n=u,t)}}function gh(e,A,t){var n,o,a;return function(){var u=Wt(this,e),d=t(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),Wt(this,e))),u===h?null:u===n&&h===o?a:(o=h,a=A(n=u,d))}}function hh(e,A){var t,n,o,a="style."+A,u="end."+a,d;return function(){var h=Xe(this,e),g=h.on,B=h.value[a]==null?d||(d=fa(A)):void 0;(g!==t||o!==B)&&(n=(t=g).copy()).on(u,o=B),h.on=n}}function Bh(e,A,t){var n=(e+="")=="transform"?pg:da;return A==null?this.styleTween(e,dh(e,n)).on("end.style."+e,fa(e)):typeof A=="function"?this.styleTween(e,gh(e,n,ui(this,"style."+e,A))).each(hh(this._id,e)):this.styleTween(e,fh(e,n,A),t).on("end.style."+e,null)}function ph(e,A,t){return function(n){this.style.setProperty(e,A.call(this,n),t)}}function mh(e,A,t){var n,o;function a(){var u=A.apply(this,arguments);return u!==o&&(n=(o=u)&&ph(e,u,t)),n}return a._value=A,a}function wh(e,A,t){var n="style."+(e+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(A==null)return this.tween(n,null);if(typeof A!="function")throw new Error;return this.tween(n,mh(e,A,t??""))}function Ch(e){return function(){this.textContent=e}}function vh(e){return function(){var A=e(this);this.textContent=A??""}}function yh(e){return this.tween("text",typeof e=="function"?vh(ui(this,"text",e)):Ch(e==null?"":e+""))}function Qh(e){return function(A){this.textContent=e.call(this,A)}}function Eh(e){var A,t;function n(){var o=e.apply(this,arguments);return o!==t&&(A=(t=o)&&Qh(o)),A}return n._value=e,n}function Fh(e){var A="text";if(arguments.length<1)return(A=this.tween(A))&&A._value;if(e==null)return this.tween(A,null);if(typeof e!="function")throw new Error;return this.tween(A,Eh(e))}function Uh(){for(var e=this._name,A=this._id,t=ga(),n=this._groups,o=n.length,a=0;a<o;++a)for(var u=n[a],d=u.length,h,g=0;g<d;++g)if(h=u[g]){var B=Me(h,A);Hr(h,e,t,g,u,{time:B.time+B.delay+B.duration,delay:0,duration:B.duration,ease:B.ease})}return new At(n,this._parents,e,t)}function bh(){var e,A,t=this,n=t._id,o=t.size();return new Promise(function(a,u){var d={value:u},h={value:function(){--o===0&&a()}};t.each(function(){var g=Xe(this,n),B=g.on;B!==e&&(A=(e=B).copy(),A._.cancel.push(d),A._.interrupt.push(d),A._.end.push(h)),g.on=A}),o===0&&a()})}var Hh=0;function At(e,A,t,n){this._groups=e,this._parents=A,this._name=t,this._id=n}function ga(){return++Hh}var et=Un.prototype;At.prototype={constructor:At,select:ah,selectAll:lh,selectChild:et.selectChild,selectChildren:et.selectChildren,filter:eh,merge:th,selection:uh,transition:Uh,call:et.call,nodes:et.nodes,node:et.node,size:et.size,empty:et.empty,each:et.each,on:oh,attr:Og,attrTween:Gg,style:Bh,styleTween:wh,text:yh,textTween:Fh,remove:sh,tween:xg,delay:$g,duration:Jg,ease:jg,easeVarying:Ah,end:bh,[Symbol.iterator]:et[Symbol.iterator]};function Ih(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var _h={time:null,delay:0,duration:250,ease:Ih};function Sh(e,A){for(var t;!(t=e.__transition)||!(t=t[A]);)if(!(e=e.parentNode))throw new Error(`transition ${A} not found`);return t}function xh(e){var A,t;e instanceof At?(A=e._id,e=e._name):(A=ga(),(t=_h).time=ii(),e=e==null?null:e+"");for(var n=this._groups,o=n.length,a=0;a<o;++a)for(var u=n[a],d=u.length,h,g=0;g<d;++g)(h=u[g])&&Hr(h,e,A,g,u,t||Sh(h,A));return new At(n,this._parents,e,A)}Un.prototype.interrupt=Ig,Un.prototype.transition=xh;var _r=e=>()=>e;function Dh(e,{sourceEvent:A,target:t,transform:n,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:A,enumerable:!0,configurable:!0},target:{value:t,enumerable:!0,configurable:!0},transform:{value:n,enumerable:!0,configurable:!0},_:{value:o}})}function tt(e,A,t){this.k=e,this.x=A,this.y=t}tt.prototype={constructor:tt,scale:function(e){return e===1?this:new tt(this.k*e,this.x,this.y)},translate:function(e,A){return e===0&A===0?this:new tt(this.k,this.x+this.k*e,this.y+this.k*A)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var qt=new tt(1,0,0);tt.prototype;function di(e){e.stopImmediatePropagation()}function Tn(e){e.preventDefault(),e.stopImmediatePropagation()}function Nh(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Lh(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function ha(){return this.__zoom||qt}function Th(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function kh(){return navigator.maxTouchPoints||"ontouchstart"in this}function Mh(e,A,t){var n=e.invertX(A[0][0])-t[0][0],o=e.invertX(A[1][0])-t[1][0],a=e.invertY(A[0][1])-t[0][1],u=e.invertY(A[1][1])-t[1][1];return e.translate(o>n?(n+o)/2:Math.min(0,n)||Math.max(0,o),u>a?(a+u)/2:Math.min(0,a)||Math.max(0,u))}function Oh(){var e=Nh,A=Lh,t=Mh,n=Th,o=kh,a=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],d=250,h=vr,g=cr("start","zoom","end"),B,w,m,v=500,y=150,I=0,N=10;function D(U){U.property("__zoom",ha).on("wheel.zoom",lA,{passive:!1}).on("mousedown.zoom",oA).on("dblclick.zoom",iA).filter(o).on("touchstart.zoom",AA).on("touchmove.zoom",S).on("touchend.zoom touchcancel.zoom",eA).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}D.transform=function(U,K,b,R){var k=U.selection?U.selection():U;k.property("__zoom",ha),U!==k?sA(U,K,b,R):k.interrupt().each(function(){J(this,arguments).event(R).start().zoom(null,typeof K=="function"?K.apply(this,arguments):K).end()})},D.scaleBy=function(U,K,b,R){D.scaleTo(U,function(){return this.__zoom.k*(typeof K=="function"?K.apply(this,arguments):K)},b,R)},D.scaleTo=function(U,K,b,R){D.transform(U,function(){var k=A.apply(this,arguments),T=this.__zoom,M=b==null?O(k):typeof b=="function"?b.apply(this,arguments):b,Y=T.invert(M),tA=typeof K=="function"?K.apply(this,arguments):K;return t(H(P(T,tA),M,Y),k,u)},b,R)},D.translateBy=function(U,K,b,R){D.transform(U,function(){return t(this.__zoom.translate(typeof K=="function"?K.apply(this,arguments):K,typeof b=="function"?b.apply(this,arguments):b),A.apply(this,arguments),u)},null,R)},D.translateTo=function(U,K,b,R,k){D.transform(U,function(){var T=A.apply(this,arguments),M=this.__zoom,Y=R==null?O(T):typeof R=="function"?R.apply(this,arguments):R;return t(qt.translate(Y[0],Y[1]).scale(M.k).translate(typeof K=="function"?-K.apply(this,arguments):-K,typeof b=="function"?-b.apply(this,arguments):-b),T,u)},R,k)};function P(U,K){return K=Math.max(a[0],Math.min(a[1],K)),K===U.k?U:new tt(K,U.x,U.y)}function H(U,K,b){var R=K[0]-b[0]*U.k,k=K[1]-b[1]*U.k;return R===U.x&&k===U.y?U:new tt(U.k,R,k)}function O(U){return[(+U[0][0]+ +U[1][0])/2,(+U[0][1]+ +U[1][1])/2]}function sA(U,K,b,R){U.on("start.zoom",function(){J(this,arguments).event(R).start()}).on("interrupt.zoom end.zoom",function(){J(this,arguments).event(R).end()}).tween("zoom",function(){var k=this,T=arguments,M=J(k,T).event(R),Y=A.apply(k,T),tA=b==null?O(Y):typeof b=="function"?b.apply(k,T):b,BA=Math.max(Y[1][0]-Y[0][0],Y[1][1]-Y[0][1]),bA=k.__zoom,nA=typeof K=="function"?K.apply(k,T):K,W=h(bA.invert(tA).concat(BA/bA.k),nA.invert(tA).concat(BA/nA.k));return function($){if($===1)$=nA;else{var uA=W($),wA=BA/uA[2];$=new tt(wA,tA[0]-uA[0]*wA,tA[1]-uA[1]*wA)}M.zoom(null,$)}})}function J(U,K,b){return!b&&U.__zooming||new cA(U,K)}function cA(U,K){this.that=U,this.args=K,this.active=0,this.sourceEvent=null,this.extent=A.apply(U,K),this.taps=0}cA.prototype={event:function(U){return U&&(this.sourceEvent=U),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(U,K){return this.mouse&&U!=="mouse"&&(this.mouse[1]=K.invert(this.mouse[0])),this.touch0&&U!=="touch"&&(this.touch0[1]=K.invert(this.touch0[0])),this.touch1&&U!=="touch"&&(this.touch1[1]=K.invert(this.touch1[0])),this.that.__zoom=K,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(U){var K=Te(this.that).datum();g.call(U,this.that,new Dh(U,{sourceEvent:this.sourceEvent,target:D,type:U,transform:this.that.__zoom,dispatch:g}),K)}};function lA(U,...K){if(!e.apply(this,arguments))return;var b=J(this,K).event(U),R=this.__zoom,k=Math.max(a[0],Math.min(a[1],R.k*Math.pow(2,n.apply(this,arguments)))),T=Pe(U);if(b.wheel)(b.mouse[0][0]!==T[0]||b.mouse[0][1]!==T[1])&&(b.mouse[1]=R.invert(b.mouse[0]=T)),clearTimeout(b.wheel);else{if(R.k===k)return;b.mouse=[T,R.invert(T)],Ir(this),b.start()}Tn(U),b.wheel=setTimeout(M,y),b.zoom("mouse",t(H(P(R,k),b.mouse[0],b.mouse[1]),b.extent,u));function M(){b.wheel=null,b.end()}}function oA(U,...K){if(m||!e.apply(this,arguments))return;var b=U.currentTarget,R=J(this,K,!0).event(U),k=Te(U.view).on("mousemove.zoom",tA,!0).on("mouseup.zoom",BA,!0),T=Pe(U,b),M=U.clientX,Y=U.clientY;Ks(U.view),di(U),R.mouse=[T,this.__zoom.invert(T)],Ir(this),R.start();function tA(bA){if(Tn(bA),!R.moved){var nA=bA.clientX-M,W=bA.clientY-Y;R.moved=nA*nA+W*W>I}R.event(bA).zoom("mouse",t(H(R.that.__zoom,R.mouse[0]=Pe(bA,b),R.mouse[1]),R.extent,u))}function BA(bA){k.on("mousemove.zoom mouseup.zoom",null),Rs(bA.view,R.moved),Tn(bA),R.event(bA).end()}}function iA(U,...K){if(e.apply(this,arguments)){var b=this.__zoom,R=Pe(U.changedTouches?U.changedTouches[0]:U,this),k=b.invert(R),T=b.k*(U.shiftKey?.5:2),M=t(H(P(b,T),R,k),A.apply(this,K),u);Tn(U),d>0?Te(this).transition().duration(d).call(sA,M,R,U):Te(this).call(D.transform,M,R,U)}}function AA(U,...K){if(e.apply(this,arguments)){var b=U.touches,R=b.length,k=J(this,K,U.changedTouches.length===R).event(U),T,M,Y,tA;for(di(U),M=0;M<R;++M)Y=b[M],tA=Pe(Y,this),tA=[tA,this.__zoom.invert(tA),Y.identifier],k.touch0?!k.touch1&&k.touch0[2]!==tA[2]&&(k.touch1=tA,k.taps=0):(k.touch0=tA,T=!0,k.taps=1+!!B);B&&(B=clearTimeout(B)),T&&(k.taps<2&&(w=tA[0],B=setTimeout(function(){B=null},v)),Ir(this),k.start())}}function S(U,...K){if(this.__zooming){var b=J(this,K).event(U),R=U.changedTouches,k=R.length,T,M,Y,tA;for(Tn(U),T=0;T<k;++T)M=R[T],Y=Pe(M,this),b.touch0&&b.touch0[2]===M.identifier?b.touch0[0]=Y:b.touch1&&b.touch1[2]===M.identifier&&(b.touch1[0]=Y);if(M=b.that.__zoom,b.touch1){var BA=b.touch0[0],bA=b.touch0[1],nA=b.touch1[0],W=b.touch1[1],$=($=nA[0]-BA[0])*$+($=nA[1]-BA[1])*$,uA=(uA=W[0]-bA[0])*uA+(uA=W[1]-bA[1])*uA;M=P(M,Math.sqrt($/uA)),Y=[(BA[0]+nA[0])/2,(BA[1]+nA[1])/2],tA=[(bA[0]+W[0])/2,(bA[1]+W[1])/2]}else if(b.touch0)Y=b.touch0[0],tA=b.touch0[1];else return;b.zoom("touch",t(H(M,Y,tA),b.extent,u))}}function eA(U,...K){if(this.__zooming){var b=J(this,K).event(U),R=U.changedTouches,k=R.length,T,M;for(di(U),m&&clearTimeout(m),m=setTimeout(function(){m=null},v),T=0;T<k;++T)M=R[T],b.touch0&&b.touch0[2]===M.identifier?delete b.touch0:b.touch1&&b.touch1[2]===M.identifier&&delete b.touch1;if(b.touch1&&!b.touch0&&(b.touch0=b.touch1,delete b.touch1),b.touch0)b.touch0[1]=this.__zoom.invert(b.touch0[0]);else if(b.end(),b.taps===2&&(M=Pe(M,this),Math.hypot(w[0]-M[0],w[1]-M[1])<N)){var Y=Te(this).on("dblclick.zoom");Y&&Y.apply(this,arguments)}}}return D.wheelDelta=function(U){return arguments.length?(n=typeof U=="function"?U:_r(+U),D):n},D.filter=function(U){return arguments.length?(e=typeof U=="function"?U:_r(!!U),D):e},D.touchable=function(U){return arguments.length?(o=typeof U=="function"?U:_r(!!U),D):o},D.extent=function(U){return arguments.length?(A=typeof U=="function"?U:_r([[+U[0][0],+U[0][1]],[+U[1][0],+U[1][1]]]),D):A},D.scaleExtent=function(U){return arguments.length?(a[0]=+U[0],a[1]=+U[1],D):[a[0],a[1]]},D.translateExtent=function(U){return arguments.length?(u[0][0]=+U[0][0],u[1][0]=+U[1][0],u[0][1]=+U[0][1],u[1][1]=+U[1][1],D):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},D.constrain=function(U){return arguments.length?(t=U,D):t},D.duration=function(U){return arguments.length?(d=+U,D):d},D.interpolate=function(U){return arguments.length?(h=U,D):h},D.on=function(){var U=g.on.apply(g,arguments);return U===g?D:U},D.clickDistance=function(U){return arguments.length?(I=(U=+U)*U,D):Math.sqrt(I)},D.tapDistance=function(U){return arguments.length?(N=+U,D):N},D}var IA=(e=>(e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom",e))(IA||{}),fi=(e=>(e.Partial="partial",e.Full="full",e))(fi||{}),Lt=(e=>(e.Bezier="default",e.SimpleBezier="simple-bezier",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e))(Lt||{}),nt=(e=>(e.Strict="strict",e.Loose="loose",e))(nt||{}),rt=(e=>(e.Arrow="arrow",e.ArrowClosed="arrowclosed",e))(rt||{}),kn=(e=>(e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal",e))(kn||{}),Ba=(e=>(e.TopLeft="top-left",e.TopCenter="top-center",e.TopRight="top-right",e.BottomLeft="bottom-left",e.BottomCenter="bottom-center",e.BottomRight="bottom-right",e))(Ba||{}),Kh=["INPUT","SELECT","TEXTAREA"],Rh=typeof document<"u"?document:null;function gi(e){var A,t;const n=((t=(A=e.composedPath)==null?void 0:A.call(e))==null?void 0:t[0])||e.target,o=typeof n?.hasAttribute=="function"?n.hasAttribute("contenteditable"):!1,a=typeof n?.closest=="function"?n.closest(".nokey"):null;return Kh.includes(n?.nodeName)||o||!!a}function Vh(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey}function pa(e,A,t,n){const o=A.replace("+",`
|
|
2
2
|
`).replace(`
|
|
3
3
|
|
|
4
4
|
`,`
|
|
5
5
|
+`).split(`
|
|
6
|
-
`).map(u=>u.trim().toLowerCase());if(o.length===1)return e.toLowerCase()===A.toLowerCase();n||t.add(e.toLowerCase());const a=o.every((u,d)=>t.has(u)&&Array.from(t.values())[d]===o[d]);return n&&t.delete(e.toLowerCase()),a}function Vh(e,A){return t=>{if(!t.code&&!t.key)return!1;const n=Ph(t.code,e);return Array.isArray(e)?e.some(o=>ha(t[n],o,A,t.type==="keyup")):ha(t[n],e,A,t.type==="keyup")}}function Ph(e,A){return A.includes(e)?"code":"key"}function kn(e,A){const t=(0,r.computed)(()=>(0,r.toValue)(A?.target)??Kh),n=(0,r.shallowRef)((0,r.toValue)(e)===!0);let o=!1;const a=new Set;let u=h((0,r.toValue)(e));(0,r.watch)(()=>(0,r.toValue)(e),(g,B)=>{typeof B=="boolean"&&typeof g!="boolean"&&d(),u=h(g)},{immediate:!0}),ys(["blur","contextmenu"],d),Qs((...g)=>u(...g),g=>{var B,w;const m=(0,r.toValue)(A?.actInsideInputWithModifier)??!0,v=(0,r.toValue)(A?.preventDefault)??!1;if(o=Rh(g),(!o||o&&!m)&&fi(g))return;const y=((w=(B=g.composedPath)==null?void 0:B.call(g))==null?void 0:w[0])||g.target,I=y?.nodeName==="BUTTON"||y?.nodeName==="A";!v&&(o||!I)&&g.preventDefault(),n.value=!0},{eventName:"keydown",target:t}),Qs((...g)=>u(...g),g=>{const B=(0,r.toValue)(A?.actInsideInputWithModifier)??!0;if(n.value){if((!o||o&&!B)&&fi(g))return;o=!1,n.value=!1}},{eventName:"keyup",target:t});function d(){o=!1,a.clear(),n.value=(0,r.toValue)(e)===!0}function h(g){return g===null?(d(),()=>!1):typeof g=="boolean"?(d(),n.value=g,()=>!1):Array.isArray(g)||typeof g=="string"?Vh(g,a):g}return n}var Ba="vue-flow__node-desc",pa="vue-flow__edge-desc",Gh="vue-flow__aria-live",ma=["Enter"," ","Escape"],en={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};function Sr(e){return{...e.computedPosition||{x:0,y:0},width:e.dimensions.width||0,height:e.dimensions.height||0}}function xr(e,A){const t=Math.max(0,Math.min(e.x+e.width,A.x+A.width)-Math.max(e.x,A.x)),n=Math.max(0,Math.min(e.y+e.height,A.y+A.height)-Math.max(e.y,A.y));return Math.ceil(t*n)}function Dr(e){return{width:e.offsetWidth,height:e.offsetHeight}}function kt(e,A=0,t=1){return Math.min(Math.max(e,A),t)}function wa(e,A){return{x:kt(e.x,A[0][0],A[1][0]),y:kt(e.y,A[0][1],A[1][1])}}function Ca(e){const A=e.getRootNode();return"elementFromPoint"in A?A:window.document}function ht(e){return e&&typeof e=="object"&&"id"in e&&"source"in e&&"target"in e}function Mt(e){return e&&typeof e=="object"&&"id"in e&&"position"in e&&!ht(e)}function Mn(e){return Mt(e)&&"computedPosition"in e}function Nr(e){return!Number.isNaN(e)&&Number.isFinite(e)}function zh(e){return Nr(e.width)&&Nr(e.height)&&Nr(e.x)&&Nr(e.y)}function Xh(e,A,t){const n={id:e.id.toString(),type:e.type??"default",dimensions:(0,r.markRaw)({width:0,height:0}),computedPosition:(0,r.markRaw)({z:0,...e.position}),handleBounds:{source:[],target:[]},draggable:void 0,selectable:void 0,connectable:void 0,focusable:void 0,selected:!1,dragging:!1,resizing:!1,initialized:!1,isParent:!1,position:{x:0,y:0},data:ae(e.data)?e.data:{},events:(0,r.markRaw)(ae(e.events)?e.events:{})};return Object.assign(A??n,e,{id:e.id.toString(),parentNode:t})}function va(e,A,t){var n,o;const a={id:e.id.toString(),type:e.type??A?.type??"default",source:e.source.toString(),target:e.target.toString(),sourceHandle:(n=e.sourceHandle)==null?void 0:n.toString(),targetHandle:(o=e.targetHandle)==null?void 0:o.toString(),updatable:e.updatable??t?.updatable,selectable:e.selectable??t?.selectable,focusable:e.focusable??t?.focusable,data:ae(e.data)?e.data:{},events:(0,r.markRaw)(ae(e.events)?e.events:{}),label:e.label??"",interactionWidth:e.interactionWidth??t?.interactionWidth,...t??{}};return Object.assign(A??a,e,{id:e.id.toString()})}function ya(e,A,t,n){const o=typeof e=="string"?e:e.id,a=new Set,u=n==="source"?"target":"source";for(const d of t)d[u]===o&&a.add(d[n]);return A.filter(d=>a.has(d.id))}function $h(...e){if(e.length===3){const[o,a,u]=e;return ya(o,a,u,"target")}const[A,t]=e,n=typeof A=="string"?A:A.id;return t.filter(o=>ht(o)&&o.source===n).map(o=>t.find(a=>Mt(a)&&a.id===o.target))}function Yh(...e){if(e.length===3){const[o,a,u]=e;return ya(o,a,u,"source")}const[A,t]=e,n=typeof A=="string"?A:A.id;return t.filter(o=>ht(o)&&o.target===n).map(o=>t.find(a=>Mt(a)&&a.id===o.source))}function Qa({source:e,sourceHandle:A,target:t,targetHandle:n}){return`vueflow__edge-${e}${A??""}-${t}${n??""}`}function Wh(e,A){return A.some(t=>ht(t)&&t.source===e.source&&t.target===e.target&&(t.sourceHandle===e.sourceHandle||!t.sourceHandle&&!e.sourceHandle)&&(t.targetHandle===e.targetHandle||!t.targetHandle&&!e.targetHandle))}function On({x:e,y:A},{x:t,y:n,zoom:o}){return{x:e*o+t,y:A*o+n}}function Kn({x:e,y:A},{x:t,y:n,zoom:o},a=!1,u=[1,1]){const d={x:(e-t)/o,y:(A-n)/o};return a?Tr(d,u):d}function Jh(e,A){return{x:Math.min(e.x,A.x),y:Math.min(e.y,A.y),x2:Math.max(e.x2,A.x2),y2:Math.max(e.y2,A.y2)}}function Ea({x:e,y:A,width:t,height:n}){return{x:e,y:A,x2:e+t,y2:A+n}}function Zh({x:e,y:A,x2:t,y2:n}){return{x:e,y:A,width:t-e,height:n-A}}function Fa(e){let A={x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY,x2:Number.NEGATIVE_INFINITY,y2:Number.NEGATIVE_INFINITY};for(let t=0;t<e.length;t++){const n=e[t];A=Jh(A,Ea({...n.computedPosition,...n.dimensions}))}return Zh(A)}function Ua(e,A,t={x:0,y:0,zoom:1},n=!1,o=!1){const a={...Kn(A,t),width:A.width/t.zoom,height:A.height/t.zoom},u=[];for(const d of e){const{dimensions:h,selectable:g=!0,hidden:B=!1}=d,w=h.width??d.width??null,m=h.height??d.height??null;if(o&&!g||B)continue;const v=xr(a,Sr(d)),y=w===null||m===null,I=n&&v>0,N=(w??0)*(m??0);(y||I||v>=N||d.dragging)&&u.push(d)}return u}function ba(e,A){const t=new Set;if(typeof e=="string")t.add(e);else if(e.length>=1)for(const n of e)t.add(n.id);return A.filter(n=>t.has(n.source)||t.has(n.target))}function tn(e,A){if(typeof e=="number")return Math.floor((A-A/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const t=Number.parseFloat(e);if(!Number.isNaN(t))return Math.floor(t)}if(typeof e=="string"&&e.endsWith("%")){const t=Number.parseFloat(e);if(!Number.isNaN(t))return Math.floor(A*t*.01)}return Vn(`The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function jh(e,A,t){if(typeof e=="string"||typeof e=="number"){const n=tn(e,t),o=tn(e,A);return{top:n,right:o,bottom:n,left:o,x:o*2,y:n*2}}if(typeof e=="object"){const n=tn(e.top??e.y??0,t),o=tn(e.bottom??e.y??0,t),a=tn(e.left??e.x??0,A),u=tn(e.right??e.x??0,A);return{top:n,right:u,bottom:o,left:a,x:a+u,y:n+o}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function qh(e,A,t,n,o,a){const{x:u,y:d}=On(e,{x:A,y:t,zoom:n}),{x:h,y:g}=On({x:e.x+e.width,y:e.y+e.height},{x:A,y:t,zoom:n}),B=o-h,w=a-g;return{left:Math.floor(u),top:Math.floor(d),right:Math.floor(B),bottom:Math.floor(w)}}function Ha(e,A,t,n,o,a=.1){const u=jh(a,A,t),d=(A-u.x)/e.width,h=(t-u.y)/e.height,g=kt(Math.min(d,h),n,o),B=e.x+e.width/2,w=e.y+e.height/2,m=A/2-B*g,v=t/2-w*g,y=qh(e,m,v,g,A,t),I={left:Math.min(y.left-u.left,0),top:Math.min(y.top-u.top,0),right:Math.min(y.right-u.right,0),bottom:Math.min(y.bottom-u.bottom,0)};return{x:m-I.left+I.right,y:v-I.top+I.bottom,zoom:g}}function AB(e,A){return{x:A.x+e.x,y:A.y+e.y,z:(e.z>A.z?e.z:A.z)+1}}function Ia(e,A){if(!e.parentNode)return!1;const t=A.get(e.parentNode);return t?t.selected?!0:Ia(t,A):!1}function Rn(e,A){return typeof e>"u"?"":typeof e=="string"?e:`${A?`${A}__`:""}${Object.keys(e).sort().map(t=>`${t}=${e[t]}`).join("&")}`}function _a(e){const A=e.ctrlKey&&Lr()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*A}function Sa(e,A,t){return e<A?kt(Math.abs(e-A),1,A)/A:e>t?-kt(Math.abs(e-t),1,A)/A:0}function xa(e,A,t=15,n=40){return[Sa(e.x,n,A.width-n)*t,Sa(e.y,n,A.height-n)*t]}function gi(e,A){if(A){const t=e.position.x+e.dimensions.width-A.dimensions.width,n=e.position.y+e.dimensions.height-A.dimensions.height;if(t>0||n>0||e.position.x<0||e.position.y<0){let o={};if(typeof A.style=="function"?o={...A.style(A)}:A.style&&(o={...A.style}),o.width=o.width??`${A.dimensions.width}px`,o.height=o.height??`${A.dimensions.height}px`,t>0)if(typeof o.width=="string"){const a=Number(o.width.replace("px",""));o.width=`${a+t}px`}else o.width+=t;if(n>0)if(typeof o.height=="string"){const a=Number(o.height.replace("px",""));o.height=`${a+n}px`}else o.height+=n;if(e.position.x<0){const a=Math.abs(e.position.x);if(A.position.x=A.position.x-a,typeof o.width=="string"){const u=Number(o.width.replace("px",""));o.width=`${u+a}px`}else o.width+=a;e.position.x=0}if(e.position.y<0){const a=Math.abs(e.position.y);if(A.position.y=A.position.y-a,typeof o.height=="string"){const u=Number(o.height.replace("px",""));o.height=`${u+a}px`}else o.height+=a;e.position.y=0}A.dimensions.width=Number(o.width.toString().replace("px","")),A.dimensions.height=Number(o.height.toString().replace("px","")),typeof A.style=="function"?A.style=a=>{const u=A.style;return{...u(a),...o}}:A.style={...A.style,...o}}}}function Da(e,A){var t,n;const o=e.filter(u=>u.type==="add"||u.type==="remove");for(const u of o)if(u.type==="add")A.findIndex(d=>d.id===u.item.id)===-1&&A.push(u.item);else if(u.type==="remove"){const d=A.findIndex(h=>h.id===u.id);d!==-1&&A.splice(d,1)}const a=A.map(u=>u.id);for(const u of A)for(const d of e)if(d.id===u.id)switch(d.type){case"select":u.selected=d.selected;break;case"position":if(Mn(u)&&(typeof d.position<"u"&&(u.position=d.position),typeof d.dragging<"u"&&(u.dragging=d.dragging),u.expandParent&&u.parentNode)){const h=A[a.indexOf(u.parentNode)];h&&Mn(h)&&gi(u,h)}break;case"dimensions":if(Mn(u)&&(typeof d.dimensions<"u"&&(u.dimensions=d.dimensions),typeof d.updateStyle<"u"&&d.updateStyle&&(u.style={...u.style||{},width:`${(t=d.dimensions)==null?void 0:t.width}px`,height:`${(n=d.dimensions)==null?void 0:n.height}px`}),typeof d.resizing<"u"&&(u.resizing=d.resizing),u.expandParent&&u.parentNode)){const h=A[a.indexOf(u.parentNode)];h&&Mn(h)&&(h.dimensions.width&&h.dimensions.height?gi(u,h):(0,r.nextTick)(()=>{gi(u,h)}))}break}return A}function Bt(e,A){return{id:e,type:"select",selected:A}}function Na(e){return{item:e,type:"add"}}function La(e){return{id:e,type:"remove"}}function Ta(e,A,t,n,o){return{id:e,source:A,target:t,sourceHandle:n||null,targetHandle:o||null,type:"remove"}}function pt(e,A=new Set,t=!1){const n=[];for(const[o,a]of e){const u=A.has(o);!(a.selected===void 0&&!u)&&a.selected!==u&&(t&&(a.selected=u),n.push(Bt(a.id,u)))}return n}var ka=()=>{};function yA(e){const A=new Set;let t=ka,n=()=>!1;const o=()=>A.size>0||n(),a=m=>{t=m},u=()=>{t=ka},d=m=>{n=m},h=()=>{n=()=>!1},g=m=>{A.delete(m)};return{on:m=>{A.add(m);const v=()=>g(m);return En(v),{off:v}},off:g,trigger:m=>{const v=[t];return o()?v.push(...A):e&&v.push(e),Promise.allSettled(v.map(y=>y(m)))},hasListeners:o,listeners:A,setEmitter:a,removeEmitter:u,setHasEmitListeners:d,removeHasEmitListeners:h}}function Ma(e,A,t){let n=e;do{if(n&&n.matches(A))return!0;if(n===t)return!1;n=n.parentElement}while(n);return!1}function eB(e,A,t,n){var o,a;const u=new Map;for(const[d,h]of e)(h.selected||h.id===n)&&(!h.parentNode||!Ia(h,e))&&(h.draggable||A&&typeof h.draggable>"u")&&e.get(d)&&u.set(d,{id:h.id,position:h.position||{x:0,y:0},distance:{x:t.x-((o=h.computedPosition)==null?void 0:o.x)||0,y:t.y-((a=h.computedPosition)==null?void 0:a.y)||0},from:{x:h.computedPosition.x,y:h.computedPosition.y},extent:h.extent,parentNode:h.parentNode,dimensions:{...h.dimensions},expandParent:h.expandParent});return Array.from(u.values())}function hi({id:e,dragItems:A,findNode:t}){const n=[];for(const o of A){const a=t(o.id);a&&n.push(a)}return[e?n.find(o=>o.id===e):n[0],n]}function Oa(e){if(Array.isArray(e))switch(e.length){case 1:return[e[0],e[0],e[0],e[0]];case 2:return[e[0],e[1],e[0],e[1]];case 3:return[e[0],e[1],e[2],e[1]];case 4:return e;default:return[0,0,0,0]}return[e,e,e,e]}function tB(e,A,t){const[n,o,a,u]=typeof e!="string"?Oa(e.padding):[0,0,0,0];return t&&typeof t.computedPosition.x<"u"&&typeof t.computedPosition.y<"u"&&typeof t.dimensions.width<"u"&&typeof t.dimensions.height<"u"?[[t.computedPosition.x+u,t.computedPosition.y+n],[t.computedPosition.x+t.dimensions.width-o,t.computedPosition.y+t.dimensions.height-a]]:!1}function nB(e,A,t,n){let o=e.extent||t;if((o==="parent"||!Array.isArray(o)&&o?.range==="parent")&&!e.expandParent)if(e.parentNode&&n&&e.dimensions.width&&e.dimensions.height){const a=tB(o,e,n);a&&(o=a)}else A(new ue(se.NODE_EXTENT_INVALID,e.id)),o=t;else if(Array.isArray(o)){const a=n?.computedPosition.x||0,u=n?.computedPosition.y||0;o=[[o[0][0]+a,o[0][1]+u],[o[1][0]+a,o[1][1]+u]]}else if(o!=="parent"&&o?.range&&Array.isArray(o.range)){const[a,u,d,h]=Oa(o.padding),g=n?.computedPosition.x||0,B=n?.computedPosition.y||0;o=[[o.range[0][0]+g+h,o.range[0][1]+B+a],[o.range[1][0]+g-u,o.range[1][1]+B-d]]}return o==="parent"?[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]]:o}function rB({width:e,height:A},t){return[t[0],[t[1][0]-(e||0),t[1][1]-(A||0)]]}function Bi(e,A,t,n,o){const a=wa(A,rB(e.dimensions,nB(e,t,n,o)));return{position:{x:a.x-(o?.computedPosition.x||0),y:a.y-(o?.computedPosition.y||0)},computedPosition:a}}function nn(e,A,t=HA.Left,n=!1){const o=(A?.x??0)+e.computedPosition.x,a=(A?.y??0)+e.computedPosition.y,{width:u,height:d}=A??aB(e);if(n)return{x:o+u/2,y:a+d/2};switch(A?.position??t){case HA.Top:return{x:o+u/2,y:a};case HA.Right:return{x:o+u,y:a+d/2};case HA.Bottom:return{x:o+u/2,y:a+d};case HA.Left:return{x:o,y:a+d/2}}}function Ka(e,A){return e&&(A?e.find(t=>t.id===A):e[0])||null}function oB({sourcePos:e,targetPos:A,sourceWidth:t,sourceHeight:n,targetWidth:o,targetHeight:a,width:u,height:d,viewport:h}){const g={x:Math.min(e.x,A.x),y:Math.min(e.y,A.y),x2:Math.max(e.x+t,A.x+o),y2:Math.max(e.y+n,A.y+a)};g.x===g.x2&&(g.x2+=1),g.y===g.y2&&(g.y2+=1);const B=Ea({x:(0-h.x)/h.zoom,y:(0-h.y)/h.zoom,width:u/h.zoom,height:d/h.zoom}),w=Math.max(0,Math.min(B.x2,g.x2)-Math.max(B.x,g.x)),m=Math.max(0,Math.min(B.y2,g.y2)-Math.max(B.y,g.y));return Math.ceil(w*m)>0}function iB(e,A,t=!1){const n=typeof e.zIndex=="number";let o=n?e.zIndex:0;const a=A(e.source),u=A(e.target);return!a||!u?0:(t&&(o=n?e.zIndex:Math.max(a.computedPosition.z||0,u.computedPosition.z||0)),o)}var se=(e=>(e.MISSING_STYLES="MISSING_STYLES",e.MISSING_VIEWPORT_DIMENSIONS="MISSING_VIEWPORT_DIMENSIONS",e.NODE_INVALID="NODE_INVALID",e.NODE_NOT_FOUND="NODE_NOT_FOUND",e.NODE_MISSING_PARENT="NODE_MISSING_PARENT",e.NODE_TYPE_MISSING="NODE_TYPE_MISSING",e.NODE_EXTENT_INVALID="NODE_EXTENT_INVALID",e.EDGE_INVALID="EDGE_INVALID",e.EDGE_NOT_FOUND="EDGE_NOT_FOUND",e.EDGE_SOURCE_MISSING="EDGE_SOURCE_MISSING",e.EDGE_TARGET_MISSING="EDGE_TARGET_MISSING",e.EDGE_TYPE_MISSING="EDGE_TYPE_MISSING",e.EDGE_SOURCE_TARGET_SAME="EDGE_SOURCE_TARGET_SAME",e.EDGE_SOURCE_TARGET_MISSING="EDGE_SOURCE_TARGET_MISSING",e.EDGE_ORPHANED="EDGE_ORPHANED",e.USEVUEFLOW_OPTIONS="USEVUEFLOW_OPTIONS",e))(se||{}),Ra={MISSING_STYLES:()=>"It seems that you haven't loaded the necessary styles. Please import '@vue-flow/core/dist/style.css' to ensure that the graph is rendered correctly",MISSING_VIEWPORT_DIMENSIONS:()=>"The Vue Flow parent container needs a width and a height to render the graph",NODE_INVALID:e=>`Node is invalid
|
|
6
|
+
`).map(u=>u.trim().toLowerCase());if(o.length===1)return e.toLowerCase()===A.toLowerCase();n||t.add(e.toLowerCase());const a=o.every((u,d)=>t.has(u)&&Array.from(t.values())[d]===o[d]);return n&&t.delete(e.toLowerCase()),a}function Ph(e,A){return t=>{if(!t.code&&!t.key)return!1;const n=Gh(t.code,e);return Array.isArray(e)?e.some(o=>pa(t[n],o,A,t.type==="keyup")):pa(t[n],e,A,t.type==="keyup")}}function Gh(e,A){return A.includes(e)?"code":"key"}function Mn(e,A){const t=(0,r.computed)(()=>(0,r.toValue)(A?.target)??Rh),n=(0,r.shallowRef)((0,r.toValue)(e)===!0);let o=!1;const a=new Set;let u=h((0,r.toValue)(e));(0,r.watch)(()=>(0,r.toValue)(e),(g,B)=>{typeof B=="boolean"&&typeof g!="boolean"&&d(),u=h(g)},{immediate:!0}),Es(["blur","contextmenu"],d),Fs((...g)=>u(...g),g=>{var B,w;const m=(0,r.toValue)(A?.actInsideInputWithModifier)??!0,v=(0,r.toValue)(A?.preventDefault)??!1;if(o=Vh(g),(!o||o&&!m)&&gi(g))return;const y=((w=(B=g.composedPath)==null?void 0:B.call(g))==null?void 0:w[0])||g.target,I=y?.nodeName==="BUTTON"||y?.nodeName==="A";!v&&(o||!I)&&g.preventDefault(),n.value=!0},{eventName:"keydown",target:t}),Fs((...g)=>u(...g),g=>{const B=(0,r.toValue)(A?.actInsideInputWithModifier)??!0;if(n.value){if((!o||o&&!B)&&gi(g))return;o=!1,n.value=!1}},{eventName:"keyup",target:t});function d(){o=!1,a.clear(),n.value=(0,r.toValue)(e)===!0}function h(g){return g===null?(d(),()=>!1):typeof g=="boolean"?(d(),n.value=g,()=>!1):Array.isArray(g)||typeof g=="string"?Ph(g,a):g}return n}var ma="vue-flow__node-desc",wa="vue-flow__edge-desc",zh="vue-flow__aria-live",Ca=["Enter"," ","Escape"],An={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};function Sr(e){return{...e.computedPosition||{x:0,y:0},width:e.dimensions.width||0,height:e.dimensions.height||0}}function xr(e,A){const t=Math.max(0,Math.min(e.x+e.width,A.x+A.width)-Math.max(e.x,A.x)),n=Math.max(0,Math.min(e.y+e.height,A.y+A.height)-Math.max(e.y,A.y));return Math.ceil(t*n)}function Dr(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Tt(e,A=0,t=1){return Math.min(Math.max(e,A),t)}function va(e,A){return{x:Tt(e.x,A[0][0],A[1][0]),y:Tt(e.y,A[0][1],A[1][1])}}function ya(e){const A=e.getRootNode();return"elementFromPoint"in A?A:window.document}function ht(e){return e&&typeof e=="object"&&"id"in e&&"source"in e&&"target"in e}function kt(e){return e&&typeof e=="object"&&"id"in e&&"position"in e&&!ht(e)}function On(e){return kt(e)&&"computedPosition"in e}function Nr(e){return!Number.isNaN(e)&&Number.isFinite(e)}function Xh(e){return Nr(e.width)&&Nr(e.height)&&Nr(e.x)&&Nr(e.y)}function $h(e,A,t){const n={id:e.id.toString(),type:e.type??"default",dimensions:(0,r.markRaw)({width:0,height:0}),computedPosition:(0,r.markRaw)({z:0,...e.position}),handleBounds:{source:[],target:[]},draggable:void 0,selectable:void 0,connectable:void 0,focusable:void 0,selected:!1,dragging:!1,resizing:!1,initialized:!1,isParent:!1,position:{x:0,y:0},data:se(e.data)?e.data:{},events:(0,r.markRaw)(se(e.events)?e.events:{})};return Object.assign(A??n,e,{id:e.id.toString(),parentNode:t})}function Qa(e,A,t){var n,o;const a={id:e.id.toString(),type:e.type??A?.type??"default",source:e.source.toString(),target:e.target.toString(),sourceHandle:(n=e.sourceHandle)==null?void 0:n.toString(),targetHandle:(o=e.targetHandle)==null?void 0:o.toString(),updatable:e.updatable??t?.updatable,selectable:e.selectable??t?.selectable,focusable:e.focusable??t?.focusable,data:se(e.data)?e.data:{},events:(0,r.markRaw)(se(e.events)?e.events:{}),label:e.label??"",interactionWidth:e.interactionWidth??t?.interactionWidth,...t??{}};return Object.assign(A??a,e,{id:e.id.toString()})}function Ea(e,A,t,n){const o=typeof e=="string"?e:e.id,a=new Set,u=n==="source"?"target":"source";for(const d of t)d[u]===o&&a.add(d[n]);return A.filter(d=>a.has(d.id))}function Yh(...e){if(e.length===3){const[o,a,u]=e;return Ea(o,a,u,"target")}const[A,t]=e,n=typeof A=="string"?A:A.id;return t.filter(o=>ht(o)&&o.source===n).map(o=>t.find(a=>kt(a)&&a.id===o.target))}function Wh(...e){if(e.length===3){const[o,a,u]=e;return Ea(o,a,u,"source")}const[A,t]=e,n=typeof A=="string"?A:A.id;return t.filter(o=>ht(o)&&o.target===n).map(o=>t.find(a=>kt(a)&&a.id===o.source))}function Fa({source:e,sourceHandle:A,target:t,targetHandle:n}){return`vueflow__edge-${e}${A??""}-${t}${n??""}`}function Jh(e,A){return A.some(t=>ht(t)&&t.source===e.source&&t.target===e.target&&(t.sourceHandle===e.sourceHandle||!t.sourceHandle&&!e.sourceHandle)&&(t.targetHandle===e.targetHandle||!t.targetHandle&&!e.targetHandle))}function Kn({x:e,y:A},{x:t,y:n,zoom:o}){return{x:e*o+t,y:A*o+n}}function Rn({x:e,y:A},{x:t,y:n,zoom:o},a=!1,u=[1,1]){const d={x:(e-t)/o,y:(A-n)/o};return a?Tr(d,u):d}function Zh(e,A){return{x:Math.min(e.x,A.x),y:Math.min(e.y,A.y),x2:Math.max(e.x2,A.x2),y2:Math.max(e.y2,A.y2)}}function Ua({x:e,y:A,width:t,height:n}){return{x:e,y:A,x2:e+t,y2:A+n}}function jh({x:e,y:A,x2:t,y2:n}){return{x:e,y:A,width:t-e,height:n-A}}function ba(e){let A={x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY,x2:Number.NEGATIVE_INFINITY,y2:Number.NEGATIVE_INFINITY};for(let t=0;t<e.length;t++){const n=e[t];A=Zh(A,Ua({...n.computedPosition,...n.dimensions}))}return jh(A)}function Ha(e,A,t={x:0,y:0,zoom:1},n=!1,o=!1){const a={...Rn(A,t),width:A.width/t.zoom,height:A.height/t.zoom},u=[];for(const d of e){const{dimensions:h,selectable:g=!0,hidden:B=!1}=d,w=h.width??d.width??null,m=h.height??d.height??null;if(o&&!g||B)continue;const v=xr(a,Sr(d)),y=w===null||m===null,I=n&&v>0,N=(w??0)*(m??0);(y||I||v>=N||d.dragging)&&u.push(d)}return u}function Ia(e,A){const t=new Set;if(typeof e=="string")t.add(e);else if(e.length>=1)for(const n of e)t.add(n.id);return A.filter(n=>t.has(n.source)||t.has(n.target))}function en(e,A){if(typeof e=="number")return Math.floor((A-A/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const t=Number.parseFloat(e);if(!Number.isNaN(t))return Math.floor(t)}if(typeof e=="string"&&e.endsWith("%")){const t=Number.parseFloat(e);if(!Number.isNaN(t))return Math.floor(A*t*.01)}return Pn(`The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function qh(e,A,t){if(typeof e=="string"||typeof e=="number"){const n=en(e,t),o=en(e,A);return{top:n,right:o,bottom:n,left:o,x:o*2,y:n*2}}if(typeof e=="object"){const n=en(e.top??e.y??0,t),o=en(e.bottom??e.y??0,t),a=en(e.left??e.x??0,A),u=en(e.right??e.x??0,A);return{top:n,right:u,bottom:o,left:a,x:a+u,y:n+o}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function AB(e,A,t,n,o,a){const{x:u,y:d}=Kn(e,{x:A,y:t,zoom:n}),{x:h,y:g}=Kn({x:e.x+e.width,y:e.y+e.height},{x:A,y:t,zoom:n}),B=o-h,w=a-g;return{left:Math.floor(u),top:Math.floor(d),right:Math.floor(B),bottom:Math.floor(w)}}function _a(e,A,t,n,o,a=.1){const u=qh(a,A,t),d=(A-u.x)/e.width,h=(t-u.y)/e.height,g=Tt(Math.min(d,h),n,o),B=e.x+e.width/2,w=e.y+e.height/2,m=A/2-B*g,v=t/2-w*g,y=AB(e,m,v,g,A,t),I={left:Math.min(y.left-u.left,0),top:Math.min(y.top-u.top,0),right:Math.min(y.right-u.right,0),bottom:Math.min(y.bottom-u.bottom,0)};return{x:m-I.left+I.right,y:v-I.top+I.bottom,zoom:g}}function eB(e,A){return{x:A.x+e.x,y:A.y+e.y,z:(e.z>A.z?e.z:A.z)+1}}function Sa(e,A){if(!e.parentNode)return!1;const t=A.get(e.parentNode);return t?t.selected?!0:Sa(t,A):!1}function Vn(e,A){return typeof e>"u"?"":typeof e=="string"?e:`${A?`${A}__`:""}${Object.keys(e).sort().map(t=>`${t}=${e[t]}`).join("&")}`}function xa(e){const A=e.ctrlKey&&Lr()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*A}function Da(e,A,t){return e<A?Tt(Math.abs(e-A),1,A)/A:e>t?-Tt(Math.abs(e-t),1,A)/A:0}function Na(e,A,t=15,n=40){return[Da(e.x,n,A.width-n)*t,Da(e.y,n,A.height-n)*t]}function hi(e,A){if(A){const t=e.position.x+e.dimensions.width-A.dimensions.width,n=e.position.y+e.dimensions.height-A.dimensions.height;if(t>0||n>0||e.position.x<0||e.position.y<0){let o={};if(typeof A.style=="function"?o={...A.style(A)}:A.style&&(o={...A.style}),o.width=o.width??`${A.dimensions.width}px`,o.height=o.height??`${A.dimensions.height}px`,t>0)if(typeof o.width=="string"){const a=Number(o.width.replace("px",""));o.width=`${a+t}px`}else o.width+=t;if(n>0)if(typeof o.height=="string"){const a=Number(o.height.replace("px",""));o.height=`${a+n}px`}else o.height+=n;if(e.position.x<0){const a=Math.abs(e.position.x);if(A.position.x=A.position.x-a,typeof o.width=="string"){const u=Number(o.width.replace("px",""));o.width=`${u+a}px`}else o.width+=a;e.position.x=0}if(e.position.y<0){const a=Math.abs(e.position.y);if(A.position.y=A.position.y-a,typeof o.height=="string"){const u=Number(o.height.replace("px",""));o.height=`${u+a}px`}else o.height+=a;e.position.y=0}A.dimensions.width=Number(o.width.toString().replace("px","")),A.dimensions.height=Number(o.height.toString().replace("px","")),typeof A.style=="function"?A.style=a=>{const u=A.style;return{...u(a),...o}}:A.style={...A.style,...o}}}}function La(e,A){var t,n;const o=e.filter(u=>u.type==="add"||u.type==="remove");for(const u of o)if(u.type==="add")A.findIndex(d=>d.id===u.item.id)===-1&&A.push(u.item);else if(u.type==="remove"){const d=A.findIndex(h=>h.id===u.id);d!==-1&&A.splice(d,1)}const a=A.map(u=>u.id);for(const u of A)for(const d of e)if(d.id===u.id)switch(d.type){case"select":u.selected=d.selected;break;case"position":if(On(u)&&(typeof d.position<"u"&&(u.position=d.position),typeof d.dragging<"u"&&(u.dragging=d.dragging),u.expandParent&&u.parentNode)){const h=A[a.indexOf(u.parentNode)];h&&On(h)&&hi(u,h)}break;case"dimensions":if(On(u)&&(typeof d.dimensions<"u"&&(u.dimensions=d.dimensions),typeof d.updateStyle<"u"&&d.updateStyle&&(u.style={...u.style||{},width:`${(t=d.dimensions)==null?void 0:t.width}px`,height:`${(n=d.dimensions)==null?void 0:n.height}px`}),typeof d.resizing<"u"&&(u.resizing=d.resizing),u.expandParent&&u.parentNode)){const h=A[a.indexOf(u.parentNode)];h&&On(h)&&(h.dimensions.width&&h.dimensions.height?hi(u,h):(0,r.nextTick)(()=>{hi(u,h)}))}break}return A}function Bt(e,A){return{id:e,type:"select",selected:A}}function Ta(e){return{item:e,type:"add"}}function ka(e){return{id:e,type:"remove"}}function Ma(e,A,t,n,o){return{id:e,source:A,target:t,sourceHandle:n||null,targetHandle:o||null,type:"remove"}}function pt(e,A=new Set,t=!1){const n=[];for(const[o,a]of e){const u=A.has(o);!(a.selected===void 0&&!u)&&a.selected!==u&&(t&&(a.selected=u),n.push(Bt(a.id,u)))}return n}var Oa=()=>{};function yA(e){const A=new Set;let t=Oa,n=()=>!1;const o=()=>A.size>0||n(),a=m=>{t=m},u=()=>{t=Oa},d=m=>{n=m},h=()=>{n=()=>!1},g=m=>{A.delete(m)};return{on:m=>{A.add(m);const v=()=>g(m);return Fn(v),{off:v}},off:g,trigger:m=>{const v=[t];return o()?v.push(...A):e&&v.push(e),Promise.allSettled(v.map(y=>y(m)))},hasListeners:o,listeners:A,setEmitter:a,removeEmitter:u,setHasEmitListeners:d,removeHasEmitListeners:h}}function Ka(e,A,t){let n=e;do{if(n&&n.matches(A))return!0;if(n===t)return!1;n=n.parentElement}while(n);return!1}function tB(e,A,t,n){var o,a;const u=new Map;for(const[d,h]of e)(h.selected||h.id===n)&&(!h.parentNode||!Sa(h,e))&&(h.draggable||A&&typeof h.draggable>"u")&&e.get(d)&&u.set(d,{id:h.id,position:h.position||{x:0,y:0},distance:{x:t.x-((o=h.computedPosition)==null?void 0:o.x)||0,y:t.y-((a=h.computedPosition)==null?void 0:a.y)||0},from:{x:h.computedPosition.x,y:h.computedPosition.y},extent:h.extent,parentNode:h.parentNode,dimensions:{...h.dimensions},expandParent:h.expandParent});return Array.from(u.values())}function Bi({id:e,dragItems:A,findNode:t}){const n=[];for(const o of A){const a=t(o.id);a&&n.push(a)}return[e?n.find(o=>o.id===e):n[0],n]}function Ra(e){if(Array.isArray(e))switch(e.length){case 1:return[e[0],e[0],e[0],e[0]];case 2:return[e[0],e[1],e[0],e[1]];case 3:return[e[0],e[1],e[2],e[1]];case 4:return e;default:return[0,0,0,0]}return[e,e,e,e]}function nB(e,A,t){const[n,o,a,u]=typeof e!="string"?Ra(e.padding):[0,0,0,0];return t&&typeof t.computedPosition.x<"u"&&typeof t.computedPosition.y<"u"&&typeof t.dimensions.width<"u"&&typeof t.dimensions.height<"u"?[[t.computedPosition.x+u,t.computedPosition.y+n],[t.computedPosition.x+t.dimensions.width-o,t.computedPosition.y+t.dimensions.height-a]]:!1}function rB(e,A,t,n){let o=e.extent||t;if((o==="parent"||!Array.isArray(o)&&o?.range==="parent")&&!e.expandParent)if(e.parentNode&&n&&e.dimensions.width&&e.dimensions.height){const a=nB(o,e,n);a&&(o=a)}else A(new ce(ie.NODE_EXTENT_INVALID,e.id)),o=t;else if(Array.isArray(o)){const a=n?.computedPosition.x||0,u=n?.computedPosition.y||0;o=[[o[0][0]+a,o[0][1]+u],[o[1][0]+a,o[1][1]+u]]}else if(o!=="parent"&&o?.range&&Array.isArray(o.range)){const[a,u,d,h]=Ra(o.padding),g=n?.computedPosition.x||0,B=n?.computedPosition.y||0;o=[[o.range[0][0]+g+h,o.range[0][1]+B+a],[o.range[1][0]+g-u,o.range[1][1]+B-d]]}return o==="parent"?[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]]:o}function oB({width:e,height:A},t){return[t[0],[t[1][0]-(e||0),t[1][1]-(A||0)]]}function pi(e,A,t,n,o){const a=va(A,oB(e.dimensions,rB(e,t,n,o)));return{position:{x:a.x-(o?.computedPosition.x||0),y:a.y-(o?.computedPosition.y||0)},computedPosition:a}}function tn(e,A,t=IA.Left,n=!1){const o=(A?.x??0)+e.computedPosition.x,a=(A?.y??0)+e.computedPosition.y,{width:u,height:d}=A??lB(e);if(n)return{x:o+u/2,y:a+d/2};switch(A?.position??t){case IA.Top:return{x:o+u/2,y:a};case IA.Right:return{x:o+u,y:a+d/2};case IA.Bottom:return{x:o+u/2,y:a+d};case IA.Left:return{x:o,y:a+d/2}}}function Va(e,A){return e&&(A?e.find(t=>t.id===A):e[0])||null}function iB({sourcePos:e,targetPos:A,sourceWidth:t,sourceHeight:n,targetWidth:o,targetHeight:a,width:u,height:d,viewport:h}){const g={x:Math.min(e.x,A.x),y:Math.min(e.y,A.y),x2:Math.max(e.x+t,A.x+o),y2:Math.max(e.y+n,A.y+a)};g.x===g.x2&&(g.x2+=1),g.y===g.y2&&(g.y2+=1);const B=Ua({x:(0-h.x)/h.zoom,y:(0-h.y)/h.zoom,width:u/h.zoom,height:d/h.zoom}),w=Math.max(0,Math.min(B.x2,g.x2)-Math.max(B.x,g.x)),m=Math.max(0,Math.min(B.y2,g.y2)-Math.max(B.y,g.y));return Math.ceil(w*m)>0}function sB(e,A,t=!1){const n=typeof e.zIndex=="number";let o=n?e.zIndex:0;const a=A(e.source),u=A(e.target);return!a||!u?0:(t&&(o=n?e.zIndex:Math.max(a.computedPosition.z||0,u.computedPosition.z||0)),o)}var ie=(e=>(e.MISSING_STYLES="MISSING_STYLES",e.MISSING_VIEWPORT_DIMENSIONS="MISSING_VIEWPORT_DIMENSIONS",e.NODE_INVALID="NODE_INVALID",e.NODE_NOT_FOUND="NODE_NOT_FOUND",e.NODE_MISSING_PARENT="NODE_MISSING_PARENT",e.NODE_TYPE_MISSING="NODE_TYPE_MISSING",e.NODE_EXTENT_INVALID="NODE_EXTENT_INVALID",e.EDGE_INVALID="EDGE_INVALID",e.EDGE_NOT_FOUND="EDGE_NOT_FOUND",e.EDGE_SOURCE_MISSING="EDGE_SOURCE_MISSING",e.EDGE_TARGET_MISSING="EDGE_TARGET_MISSING",e.EDGE_TYPE_MISSING="EDGE_TYPE_MISSING",e.EDGE_SOURCE_TARGET_SAME="EDGE_SOURCE_TARGET_SAME",e.EDGE_SOURCE_TARGET_MISSING="EDGE_SOURCE_TARGET_MISSING",e.EDGE_ORPHANED="EDGE_ORPHANED",e.USEVUEFLOW_OPTIONS="USEVUEFLOW_OPTIONS",e))(ie||{}),Pa={MISSING_STYLES:()=>"It seems that you haven't loaded the necessary styles. Please import '@vue-flow/core/dist/style.css' to ensure that the graph is rendered correctly",MISSING_VIEWPORT_DIMENSIONS:()=>"The Vue Flow parent container needs a width and a height to render the graph",NODE_INVALID:e=>`Node is invalid
|
|
7
7
|
Node: ${e}`,NODE_NOT_FOUND:e=>`Node not found
|
|
8
8
|
Node: ${e}`,NODE_MISSING_PARENT:(e,A)=>`Node is missing a parent
|
|
9
9
|
Node: ${e}
|
|
@@ -23,13 +23,13 @@ Edge: ${e}
|
|
|
23
23
|
Source: ${A}
|
|
24
24
|
Target: ${t}`,EDGE_ORPHANED:e=>`Edge was orphaned (suddenly missing source or target) and has been removed
|
|
25
25
|
Edge: ${e}`,EDGE_NOT_FOUND:e=>`Edge not found
|
|
26
|
-
Edge: ${e}`,USEVUEFLOW_OPTIONS:()=>"The options parameter is deprecated and will be removed in the next major version. Please use the id parameter instead"},ue=class extends Error{constructor(e,...A){var t;super((t=Ra[e])==null?void 0:t.call(Ra,...A)),this.name="VueFlowError",this.code=e,this.args=A}};function pi(e){return"clientX"in e}function sB(e){return"sourceEvent"in e}function ze(e,A){const t=pi(e);let n,o;return t?(n=e.clientX,o=e.clientY):"touches"in e&&e.touches.length>0?(n=e.touches[0].clientX,o=e.touches[0].clientY):"changedTouches"in e&&e.changedTouches.length>0?(n=e.changedTouches[0].clientX,o=e.changedTouches[0].clientY):(n=0,o=0),{x:n-(A?.left??0),y:o-(A?.top??0)}}var Lr=()=>{var e;return typeof navigator<"u"&&((e=navigator?.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function aB(e){var A,t;return{width:((A=e.dimensions)==null?void 0:A.width)??e.width??0,height:((t=e.dimensions)==null?void 0:t.height)??e.height??0}}function Tr(e,A=[1,1]){return{x:A[0]*Math.round(e.x/A[0]),y:A[1]*Math.round(e.y/A[1])}}var lB=()=>!0;function mi(e){e?.classList.remove("valid","connecting","vue-flow__handle-valid","vue-flow__handle-connecting")}function cB(e,A,t){const n=[],o={x:e.x-t,y:e.y-t,width:t*2,height:t*2};for(const a of A.values())xr(o,Sr(a))>0&&n.push(a);return n}var uB=250;function dB(e,A,t,n){var o,a;let u=[],d=Number.POSITIVE_INFINITY;const h=cB(e,t,A+uB);for(const g of h){const B=[...((o=g.handleBounds)==null?void 0:o.source)??[],...((a=g.handleBounds)==null?void 0:a.target)??[]];for(const w of B){if(n.nodeId===w.nodeId&&n.type===w.type&&n.id===w.id)continue;const{x:m,y:v}=nn(g,w,w.position,!0),y=Math.sqrt((m-e.x)**2+(v-e.y)**2);y>A||(y<d?(u=[{...w,x:m,y:v}],d=y):y===d&&u.push({...w,x:m,y:v}))}}if(!u.length)return null;if(u.length>1){const g=n.type==="source"?"target":"source";return u.find(B=>B.type===g)??u[0]}return u[0]}function Va(e,{handle:A,connectionMode:t,fromNodeId:n,fromHandleId:o,fromType:a,doc:u,lib:d,flowId:h,isValidConnection:g=lB},B,w,m,v){const y=a==="target",I=A?u.querySelector(`.${d}-flow__handle[data-id="${h}-${A?.nodeId}-${A?.id}-${A?.type}"]`):null,{x:N,y:D}=ze(e),P=u.elementFromPoint(N,D),H=P?.classList.contains(`${d}-flow__handle`)?P:I,O={handleDomNode:H,isValid:!1,connection:null,toHandle:null};if(H){const sA=Pa(void 0,H),J=H.getAttribute("data-nodeid"),cA=H.getAttribute("data-handleid"),aA=H.classList.contains("connectable"),oA=H.classList.contains("connectableend");if(!J||!sA)return O;const iA={source:y?J:n,sourceHandle:y?cA:o,target:y?n:J,targetHandle:y?o:cA};O.connection=iA,O.isValid=aA&&oA&&(t===tt.Strict?y&&sA==="source"||!y&&sA==="target":J!==n||cA!==o)&&g(iA,{nodes:w,edges:B,sourceNode:m(iA.source),targetNode:m(iA.target)}),O.toHandle=Ga(J,sA,cA,v,t,!0)}return O}function Pa(e,A){return e||(A?.classList.contains("target")?"target":A?.classList.contains("source")?"source":null)}function fB(e,A){let t=null;return A?t="valid":e&&!A&&(t="invalid"),t}function gB(e,A){let t=null;return A?t=!0:e&&!A&&(t=!1),t}function Ga(e,A,t,n,o,a=!1){var u,d,h;const g=n.get(e);if(!g)return null;const B=o===tt.Strict?(u=g.handleBounds)==null?void 0:u[A]:[...((d=g.handleBounds)==null?void 0:d.source)??[],...((h=g.handleBounds)==null?void 0:h.target)??[]],w=(t?B?.find(m=>m.id===t):B?.[0])??null;return w&&a?{...w,...nn(g,w,w.position,!0)}:w}var wi={[HA.Left]:HA.Right,[HA.Right]:HA.Left,[HA.Top]:HA.Bottom,[HA.Bottom]:HA.Top},hB=["production","prod"];function Vn(e,...A){za()&&console.warn(`[Vue Flow]: ${e}`,...A)}function za(){return!hB.includes(process.env.NODE_ENV||"")}function Xa(e,A,t,n,o){const a=A.querySelectorAll(`.vue-flow__handle.${e}`);return a?.length?Array.from(a).map(u=>{const d=u.getBoundingClientRect();return{id:u.getAttribute("data-handleid"),type:e,nodeId:o,position:u.getAttribute("data-handlepos"),x:(d.left-t.left)/n,y:(d.top-t.top)/n,...Dr(u)}}):null}function Ci(e,A,t,n,o,a=!1,u){o.value=!1,e.selected?(a||e.selected&&A)&&(n([e]),(0,r.nextTick)(()=>{u.blur()})):t([e])}function ae(e){return typeof(0,r.unref)(e)<"u"}function BB(e,A,t,n){if(!e||!e.source||!e.target)return t(new ue(se.EDGE_INVALID,e?.id??"[ID UNKNOWN]")),!1;let o;return ht(e)?o=e:o={...e,id:Qa(e)},o=va(o,void 0,n),Wh(o,A)?!1:o}function pB(e,A,t,n,o){if(!A.source||!A.target)return o(new ue(se.EDGE_INVALID,e.id)),!1;if(!t)return o(new ue(se.EDGE_NOT_FOUND,e.id)),!1;const{id:a,...u}=e;return{...u,id:n?Qa(A):a,source:A.source,target:A.target,sourceHandle:A.sourceHandle,targetHandle:A.targetHandle}}function $a(e,A,t){const n={},o=[];for(let a=0;a<e.length;++a){const u=e[a];if(!Mt(u)){t(new ue(se.NODE_INVALID,u?.id));continue}const d=Xh(u,A(u.id),u.parentNode);u.parentNode&&(n[u.parentNode]=!0),o[a]=d}for(const a of o){const u=A(a.parentNode)||o.find(d=>d.id===a.parentNode);a.parentNode&&!u&&t(new ue(se.NODE_MISSING_PARENT,a.id,a.parentNode)),(a.parentNode||n[a.id])&&(n[a.id]&&(a.isParent=!0),u&&(u.isParent=!0))}return o}function Ya(e,A,t,n,o,a){let u=o;const d=n.get(u)||new Map;n.set(u,d.set(t,A)),u=`${o}-${e}`;const h=n.get(u)||new Map;if(n.set(u,h.set(t,A)),a){u=`${o}-${e}-${a}`;const g=n.get(u)||new Map;n.set(u,g.set(t,A))}}function vi(e,A,t){e.clear();for(const n of t){const{source:o,target:a,sourceHandle:u=null,targetHandle:d=null}=n,h={edgeId:n.id,source:o,target:a,sourceHandle:u,targetHandle:d},g=`${o}-${u}--${a}-${d}`;Ya("source",h,`${a}-${d}--${o}-${u}`,e,o,u),Ya("target",h,g,e,a,d)}}function Wa(e,A){if(e.size!==A.size)return!1;for(const t of e)if(!A.has(t))return!1;return!0}function yi(e,A,t,n,o,a,u,d){const h=[];for(const g of e){const B=ht(g)?g:BB(g,d,o,a);if(!B)continue;const w=t(B.source),m=t(B.target);if(!w||!m){o(new ue(se.EDGE_SOURCE_TARGET_MISSING,B.id,B.source,B.target));continue}if(!w){o(new ue(se.EDGE_SOURCE_MISSING,B.id,B.source));continue}if(!m){o(new ue(se.EDGE_TARGET_MISSING,B.id,B.target));continue}if(A&&!A(B,{edges:d,nodes:u,sourceNode:w,targetNode:m})){o(new ue(se.EDGE_INVALID,B.id));continue}const v=n(B.id);h.push({...va(B,v,a),sourceNode:w,targetNode:m})}return h}var Ja=Symbol("vueFlow"),Za=Symbol("nodeId"),ja=Symbol("nodeRef"),mB=Symbol("edgeId"),wB=Symbol("edgeRef"),kr=Symbol("slots");function qa(e){const{vueFlowRef:A,snapToGrid:t,snapGrid:n,noDragClassName:o,nodeLookup:a,nodeExtent:u,nodeDragThreshold:d,viewport:h,autoPanOnNodeDrag:g,autoPanSpeed:B,nodesDraggable:w,panBy:m,findNode:v,multiSelectionActive:y,nodesSelectionActive:I,selectNodesOnDrag:N,removeSelectedElements:D,addSelectedNodes:P,updateNodePositions:H,emits:O}=YA(),{onStart:sA,onDrag:J,onStop:cA,onClick:aA,el:oA,disabled:iA,id:AA,selectable:S,dragHandle:eA}=e,U=(0,r.shallowRef)(!1);let K=[],b,R=null,k={x:void 0,y:void 0},T={x:0,y:0},M=null,Y=!1,tA=!1,BA=0,UA=!1;const nA=yB(),W=({x:fA,y:Z})=>{k={x:fA,y:Z};let _=!1;if(K=K.map(F=>{const x={x:fA-F.distance.x,y:Z-F.distance.y},{computedPosition:z}=Bi(F,t.value?Tr(x,n.value):x,O.error,u.value,F.parentNode?v(F.parentNode):void 0);return _=_||F.position.x!==z.x||F.position.y!==z.y,F.position=z,F}),tA=tA||_,!!_&&(H(K,!0,!0),U.value=!0,M)){const[F,x]=hi({id:AA,dragItems:K,findNode:v});J({event:M,node:F,nodes:x})}},$=()=>{if(!R)return;const[fA,Z]=xa(T,R,B.value);if(fA!==0||Z!==0){const _={x:(k.x??0)-fA/h.value.zoom,y:(k.y??0)-Z/h.value.zoom};m({x:fA,y:Z})&&W(_)}BA=requestAnimationFrame($)},uA=(fA,Z)=>{Y=!0;const _=v(AA);!N.value&&!y.value&&_&&(_.selected||D()),_&&(0,r.toValue)(S)&&N.value&&Ci(_,y.value,P,D,I,!1,Z);const F=nA(fA.sourceEvent);if(k=F,K=eB(a.value,w.value,F,AA),K.length){const[x,z]=hi({id:AA,dragItems:K,findNode:v});sA({event:fA.sourceEvent,node:x,nodes:z})}},mA=(fA,Z)=>{var _;fA.sourceEvent.type==="touchmove"&&fA.sourceEvent.touches.length>1||(tA=!1,d.value===0&&uA(fA,Z),k=nA(fA.sourceEvent),R=((_=A.value)==null?void 0:_.getBoundingClientRect())||null,T=ze(fA.sourceEvent,R))},bA=(fA,Z)=>{const _=nA(fA.sourceEvent);if(!UA&&Y&&g.value&&(UA=!0,$()),!Y){const F=_.xSnapped-(k.x??0),x=_.ySnapped-(k.y??0);Math.sqrt(F*F+x*x)>d.value&&uA(fA,Z)}(k.x!==_.xSnapped||k.y!==_.ySnapped)&&K.length&&Y&&(M=fA.sourceEvent,T=ze(fA.sourceEvent,R),W(_))},_A=fA=>{let Z=!1;if(!Y&&!U.value&&!y.value){const _=fA.sourceEvent,F=nA(_),x=F.xSnapped-(k.x??0),z=F.ySnapped-(k.y??0),G=Math.sqrt(x*x+z*z);G!==0&&G<=d.value&&(aA?.(_),Z=!0)}if(K.length&&!Z){tA&&(H(K,!1,!1),tA=!1);const[_,F]=hi({id:AA,dragItems:K,findNode:v});cA({event:fA.sourceEvent,node:_,nodes:F})}K=[],U.value=!1,UA=!1,Y=!1,k={x:void 0,y:void 0},cancelAnimationFrame(BA)};return(0,r.watch)([()=>(0,r.toValue)(iA),oA],([fA,Z],_,F)=>{if(Z){const x=Le(Z);fA||(b=zf().on("start",z=>mA(z,Z)).on("drag",z=>bA(z,Z)).on("end",z=>_A(z)).filter(z=>{const G=z.target,dA=(0,r.toValue)(eA);return!z.button&&(!o.value||!Ma(G,`.${o.value}`,Z)&&(!dA||Ma(G,dA,Z)))}),x.call(b)),F(()=>{x.on(".drag",null),b&&(b.on("start",null),b.on("drag",null),b.on("end",null))})}}),U}function CB(){return{doubleClick:yA(),click:yA(),mouseEnter:yA(),mouseMove:yA(),mouseLeave:yA(),contextMenu:yA(),updateStart:yA(),update:yA(),updateEnd:yA()}}function vB(e,A){const t=CB();return t.doubleClick.on(n=>{var o,a;A.edgeDoubleClick(n),(a=(o=e.events)==null?void 0:o.doubleClick)==null||a.call(o,n)}),t.click.on(n=>{var o,a;A.edgeClick(n),(a=(o=e.events)==null?void 0:o.click)==null||a.call(o,n)}),t.mouseEnter.on(n=>{var o,a;A.edgeMouseEnter(n),(a=(o=e.events)==null?void 0:o.mouseEnter)==null||a.call(o,n)}),t.mouseMove.on(n=>{var o,a;A.edgeMouseMove(n),(a=(o=e.events)==null?void 0:o.mouseMove)==null||a.call(o,n)}),t.mouseLeave.on(n=>{var o,a;A.edgeMouseLeave(n),(a=(o=e.events)==null?void 0:o.mouseLeave)==null||a.call(o,n)}),t.contextMenu.on(n=>{var o,a;A.edgeContextMenu(n),(a=(o=e.events)==null?void 0:o.contextMenu)==null||a.call(o,n)}),t.updateStart.on(n=>{var o,a;A.edgeUpdateStart(n),(a=(o=e.events)==null?void 0:o.updateStart)==null||a.call(o,n)}),t.update.on(n=>{var o,a;A.edgeUpdate(n),(a=(o=e.events)==null?void 0:o.update)==null||a.call(o,n)}),t.updateEnd.on(n=>{var o,a;A.edgeUpdateEnd(n),(a=(o=e.events)==null?void 0:o.updateEnd)==null||a.call(o,n)}),Object.entries(t).reduce((n,[o,a])=>(n.emit[o]=a.trigger,n.on[o]=a.on,n),{emit:{},on:{}})}function yB(){const{viewport:e,snapGrid:A,snapToGrid:t,vueFlowRef:n}=YA();return o=>{var a;const u=((a=n.value)==null?void 0:a.getBoundingClientRect())??{left:0,top:0},{x:d,y:h}=ze(sB(o)?o.sourceEvent:o,u),g=Kn({x:d,y:h},e.value),{x:B,y:w}=t.value?Tr(g,A.value):g;return{xSnapped:B,ySnapped:w,...g}}}function Mr(){return!0}function Al({handleId:e,nodeId:A,type:t,isValidConnection:n,edgeUpdaterType:o,onEdgeUpdate:a,onEdgeUpdateEnd:u}){const{id:d,vueFlowRef:h,connectionMode:g,connectionRadius:B,connectOnClick:w,connectionClickStartHandle:m,nodesConnectable:v,autoPanOnConnect:y,autoPanSpeed:I,findNode:N,panBy:D,startConnection:P,updateConnection:H,endConnection:O,emits:sA,viewport:J,edges:cA,nodes:aA,isValidConnection:oA,nodeLookup:iA}=YA();let AA=null,S=!1,eA=null;function U(b){var R;const k=(0,r.toValue)(t)==="target",T=pi(b),M=Ca(b.target),Y=b.currentTarget;if(Y&&(T&&b.button===0||!T)){let tA=function(EA){_=ze(EA,_A),W=dB(Kn(_,J.value,!1,[1,1]),B.value,iA.value,z),F||(x(),F=!0);const wA=Va(EA,{handle:W,connectionMode:g.value,fromNodeId:(0,r.toValue)(A),fromHandleId:(0,r.toValue)(e),fromType:k?"target":"source",isValidConnection:nA,doc:M,lib:"vue",flowId:d,nodeLookup:iA.value},cA.value,aA.value,N,iA.value);eA=wA.handleDomNode,AA=wA.connection,S=gB(!!W,wA.isValid);const DA={...gA,isValid:S,to:wA.toHandle&&S?On({x:wA.toHandle.x,y:wA.toHandle.y},J.value):_,toHandle:wA.toHandle,toPosition:S&&wA.toHandle?wA.toHandle.position:wi[z.position],toNode:wA.toHandle?iA.value.get(wA.toHandle.nodeId):null};if(S&&W&&gA?.toHandle&&DA.toHandle&&gA.toHandle.type===DA.toHandle.type&&gA.toHandle.nodeId===DA.toHandle.nodeId&&gA.toHandle.id===DA.toHandle.id&&gA.to.x===DA.to.x&&gA.to.y===DA.to.y)return;const MA=W??wA.toHandle;if(H(MA&&S?On({x:MA.x,y:MA.y},J.value):_,MA,fB(!!MA,S)),gA=DA,!W&&!S&&!eA)return mi(Z);AA&&AA.source!==AA.target&&eA&&(mi(Z),Z=eA,eA.classList.add("connecting","vue-flow__handle-connecting"),eA.classList.toggle("valid",!!S),eA.classList.toggle("vue-flow__handle-valid",!!S))},BA=function(EA){"touches"in EA&&EA.touches.length>0||((W||eA)&&AA&&S&&(a?a(EA,AA):sA.connect(AA)),sA.connectEnd(EA),o&&u?.(EA),mi(Z),cancelAnimationFrame($),O(EA),F=!1,S=!1,AA=null,eA=null,M.removeEventListener("mousemove",tA),M.removeEventListener("mouseup",BA),M.removeEventListener("touchmove",tA),M.removeEventListener("touchend",BA))};const UA=N((0,r.toValue)(A));let nA=(0,r.toValue)(n)||oA.value||Mr;!nA&&UA&&(nA=(k?UA.isValidSourcePos:UA.isValidTargetPos)||Mr);let W,$=0;const{x:uA,y:mA}=ze(b),bA=Pa((0,r.toValue)(o),Y),_A=(R=h.value)==null?void 0:R.getBoundingClientRect();if(!_A||!bA)return;const fA=Ga((0,r.toValue)(A),bA,(0,r.toValue)(e),iA.value,g.value);if(!fA)return;let Z,_=ze(b,_A),F=!1;const x=()=>{if(!y.value)return;const[EA,wA]=xa(_,_A,I.value);D({x:EA,y:wA}),$=requestAnimationFrame(x)},z={...fA,nodeId:(0,r.toValue)(A),type:bA,position:fA.position},G=iA.value.get((0,r.toValue)(A)),dA={inProgress:!0,isValid:null,from:nn(G,z,HA.Left,!0),fromHandle:z,fromPosition:z.position,fromNode:G,to:_,toHandle:null,toPosition:wi[z.position],toNode:null};P({nodeId:(0,r.toValue)(A),id:(0,r.toValue)(e),type:bA,position:Y?.getAttribute("data-handlepos")||HA.Top,..._},{x:uA-_A.left,y:mA-_A.top}),sA.connectStart({event:b,nodeId:(0,r.toValue)(A),handleId:(0,r.toValue)(e),handleType:bA});let gA=dA;M.addEventListener("mousemove",tA),M.addEventListener("mouseup",BA),M.addEventListener("touchmove",tA),M.addEventListener("touchend",BA)}}function K(b){var R,k;if(!w.value)return;const T=(0,r.toValue)(t)==="target";if(!m.value){sA.clickConnectStart({event:b,nodeId:(0,r.toValue)(A),handleId:(0,r.toValue)(e)}),P({nodeId:(0,r.toValue)(A),type:(0,r.toValue)(t),id:(0,r.toValue)(e),position:HA.Top,...ze(b)},void 0,!0);return}let M=(0,r.toValue)(n)||oA.value||Mr;const Y=N((0,r.toValue)(A));if(!M&&Y&&(M=(T?Y.isValidSourcePos:Y.isValidTargetPos)||Mr),Y&&(typeof Y.connectable>"u"?v.value:Y.connectable)===!1)return;const tA=Ca(b.target),BA=Va(b,{handle:{nodeId:(0,r.toValue)(A),id:(0,r.toValue)(e),type:(0,r.toValue)(t),position:HA.Top,...ze(b)},connectionMode:g.value,fromNodeId:m.value.nodeId,fromHandleId:m.value.id??null,fromType:m.value.type,isValidConnection:M,doc:tA,lib:"vue",flowId:d,nodeLookup:iA.value},cA.value,aA.value,N,iA.value),UA=((R=BA.connection)==null?void 0:R.source)===((k=BA.connection)==null?void 0:k.target);BA.isValid&&BA.connection&&!UA&&sA.connect(BA.connection),sA.clickConnectEnd(b),O(b,!0)}return{handlePointerDown:U,handleClick:K}}function QB(){return(0,r.inject)(Za,"")}function el(e){const A=e??QB()??"",t=(0,r.inject)(ja,(0,r.ref)(null)),{findNode:n,edges:o,emits:a}=YA(),u=n(A);return u||a.error(new ue(se.NODE_NOT_FOUND,A)),{id:A,nodeEl:t,node:u,parentNode:(0,r.computed)(()=>n(u.parentNode)),connectedEdges:(0,r.computed)(()=>ba([u],o.value))}}function EB(){return{doubleClick:yA(),click:yA(),mouseEnter:yA(),mouseMove:yA(),mouseLeave:yA(),contextMenu:yA(),dragStart:yA(),drag:yA(),dragStop:yA()}}function FB(e,A){const t=EB();return t.doubleClick.on(n=>{var o,a;A.nodeDoubleClick(n),(a=(o=e.events)==null?void 0:o.doubleClick)==null||a.call(o,n)}),t.click.on(n=>{var o,a;A.nodeClick(n),(a=(o=e.events)==null?void 0:o.click)==null||a.call(o,n)}),t.mouseEnter.on(n=>{var o,a;A.nodeMouseEnter(n),(a=(o=e.events)==null?void 0:o.mouseEnter)==null||a.call(o,n)}),t.mouseMove.on(n=>{var o,a;A.nodeMouseMove(n),(a=(o=e.events)==null?void 0:o.mouseMove)==null||a.call(o,n)}),t.mouseLeave.on(n=>{var o,a;A.nodeMouseLeave(n),(a=(o=e.events)==null?void 0:o.mouseLeave)==null||a.call(o,n)}),t.contextMenu.on(n=>{var o,a;A.nodeContextMenu(n),(a=(o=e.events)==null?void 0:o.contextMenu)==null||a.call(o,n)}),t.dragStart.on(n=>{var o,a;A.nodeDragStart(n),(a=(o=e.events)==null?void 0:o.dragStart)==null||a.call(o,n)}),t.drag.on(n=>{var o,a;A.nodeDrag(n),(a=(o=e.events)==null?void 0:o.drag)==null||a.call(o,n)}),t.dragStop.on(n=>{var o,a;A.nodeDragStop(n),(a=(o=e.events)==null?void 0:o.dragStop)==null||a.call(o,n)}),Object.entries(t).reduce((n,[o,a])=>(n.emit[o]=a.trigger,n.on[o]=a.on,n),{emit:{},on:{}})}function tl(){const{getSelectedNodes:e,nodeExtent:A,updateNodePositions:t,findNode:n,snapGrid:o,snapToGrid:a,nodesDraggable:u,emits:d}=YA();return(h,g=!1)=>{const B=a.value?o.value[0]:5,w=a.value?o.value[1]:5,m=g?4:1,v=h.x*B*m,y=h.y*w*m,I=[];for(const N of e.value)if(N.draggable||u&&typeof N.draggable>"u"){const{position:D}=Bi(N,{x:N.computedPosition.x+v,y:N.computedPosition.y+y},d.error,A.value,N.parentNode?n(N.parentNode):void 0);I.push({id:N.id,position:D,from:N.position,distance:{x:h.x,y:h.y},dimensions:N.dimensions})}t(I,!0,!1)}}var Or=.1,UB=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2;function mt(){return Vn("Viewport not initialized yet."),Promise.resolve(!1)}var bB={zoomIn:mt,zoomOut:mt,zoomTo:mt,fitView:mt,setCenter:mt,fitBounds:mt,project:e=>e,screenToFlowCoordinate:e=>e,flowToScreenCoordinate:e=>e,setViewport:mt,setTransform:mt,getViewport:()=>({x:0,y:0,zoom:1}),getTransform:()=>({x:0,y:0,zoom:1}),viewportInitialized:!1};function HB(e){function A(n,o){return new Promise(a=>{e.d3Selection&&e.d3Zoom?e.d3Zoom.interpolate(o?.interpolate==="linear"?_n:vr).scaleBy(Qi(e.d3Selection,o?.duration,o?.ease,()=>{a(!0)}),n):a(!1)})}function t(n,o,a,u){return new Promise(d=>{var h;const{x:g,y:B}=wa({x:-n,y:-o},e.translateExtent),w=An.translate(-g,-B).scale(a);e.d3Selection&&e.d3Zoom?(h=e.d3Zoom)==null||h.interpolate(u?.interpolate==="linear"?_n:vr).transform(Qi(e.d3Selection,u?.duration,u?.ease,()=>{d(!0)}),w):d(!1)})}return(0,r.computed)(()=>e.d3Zoom&&e.d3Selection&&e.dimensions.width&&e.dimensions.height?{viewportInitialized:!0,zoomIn:n=>A(1.2,n),zoomOut:n=>A(1/1.2,n),zoomTo:(n,o)=>new Promise(a=>{e.d3Selection&&e.d3Zoom?e.d3Zoom.interpolate(o?.interpolate==="linear"?_n:vr).scaleTo(Qi(e.d3Selection,o?.duration,o?.ease,()=>{a(!0)}),n):a(!1)}),setViewport:(n,o)=>t(n.x,n.y,n.zoom,o),setTransform:(n,o)=>t(n.x,n.y,n.zoom,o),getViewport:()=>({x:e.viewport.x,y:e.viewport.y,zoom:e.viewport.zoom}),getTransform:()=>({x:e.viewport.x,y:e.viewport.y,zoom:e.viewport.zoom}),fitView:(n={padding:Or,includeHiddenNodes:!1,duration:0})=>{var o,a;const u=[];for(const B of e.nodes)B.dimensions.width&&B.dimensions.height&&(n?.includeHiddenNodes||!B.hidden)&&(!((o=n.nodes)!=null&&o.length)||(a=n.nodes)!=null&&a.length&&n.nodes.includes(B.id))&&u.push(B);if(!u.length)return Promise.resolve(!1);const{x:d,y:h,zoom:g}=Ha(Fa(u),e.dimensions.width,e.dimensions.height,n.minZoom??e.minZoom,n.maxZoom??e.maxZoom,n.padding??Or);return t(d,h,g,n)},setCenter:(n,o,a)=>{const u=typeof a?.zoom<"u"?a.zoom:e.maxZoom;return t(e.dimensions.width/2-n*u,e.dimensions.height/2-o*u,u,a)},fitBounds:(n,o={padding:Or})=>{const{x:a,y:u,zoom:d}=Ha(n,e.dimensions.width,e.dimensions.height,e.minZoom,e.maxZoom,o.padding??Or);return t(a,u,d,o)},project:n=>Kn(n,e.viewport,e.snapToGrid,e.snapGrid),screenToFlowCoordinate:n=>{if(e.vueFlowRef){const{x:o,y:a}=e.vueFlowRef.getBoundingClientRect();return Kn({x:n.x-o,y:n.y-a},e.viewport,e.snapToGrid,e.snapGrid)}return{x:0,y:0}},flowToScreenCoordinate:n=>{if(e.vueFlowRef){const{x:o,y:a}=e.vueFlowRef.getBoundingClientRect();return On({x:n.x+o,y:n.y+a},e.viewport)}return{x:0,y:0}}}:bB)}function Qi(e,A=0,t=UB,n=()=>{}){const o=typeof A=="number"&&A>0;return o||n(),o?e.transition().duration(A).ease(t).on("end",n):e}function IB(e,A,t){const n=(0,r.effectScope)(!0);return n.run(()=>{const o=()=>{n.run(()=>{let I,N,D=!!(t.nodes.value.length||t.edges.value.length);I=Wt([e.modelValue,()=>{var P,H;return(H=(P=e.modelValue)==null?void 0:P.value)==null?void 0:H.length}],([P])=>{P&&Array.isArray(P)&&(N?.pause(),t.setElements(P),!N&&!D&&P.length?D=!0:N?.resume())}),N=Wt([t.nodes,t.edges,()=>t.edges.value.length,()=>t.nodes.value.length],([P,H])=>{var O;(O=e.modelValue)!=null&&O.value&&Array.isArray(e.modelValue.value)&&(I?.pause(),e.modelValue.value=[...P,...H],(0,r.nextTick)(()=>{I?.resume()}))},{immediate:D}),(0,r.onScopeDispose)(()=>{I?.stop(),N?.stop()})})},a=()=>{n.run(()=>{let I,N,D=!!t.nodes.value.length;I=Wt([e.nodes,()=>{var P,H;return(H=(P=e.nodes)==null?void 0:P.value)==null?void 0:H.length}],([P])=>{P&&Array.isArray(P)&&(N?.pause(),t.setNodes(P),!N&&!D&&P.length?D=!0:N?.resume())}),N=Wt([t.nodes,()=>t.nodes.value.length],([P])=>{var H;(H=e.nodes)!=null&&H.value&&Array.isArray(e.nodes.value)&&(I?.pause(),e.nodes.value=[...P],(0,r.nextTick)(()=>{I?.resume()}))},{immediate:D}),(0,r.onScopeDispose)(()=>{I?.stop(),N?.stop()})})},u=()=>{n.run(()=>{let I,N,D=!!t.edges.value.length;I=Wt([e.edges,()=>{var P,H;return(H=(P=e.edges)==null?void 0:P.value)==null?void 0:H.length}],([P])=>{P&&Array.isArray(P)&&(N?.pause(),t.setEdges(P),!N&&!D&&P.length?D=!0:N?.resume())}),N=Wt([t.edges,()=>t.edges.value.length],([P])=>{var H;(H=e.edges)!=null&&H.value&&Array.isArray(e.edges.value)&&(I?.pause(),e.edges.value=[...P],(0,r.nextTick)(()=>{I?.resume()}))},{immediate:D}),(0,r.onScopeDispose)(()=>{I?.stop(),N?.stop()})})},d=()=>{n.run(()=>{(0,r.watch)(()=>A.maxZoom,()=>{A.maxZoom&&ae(A.maxZoom)&&t.setMaxZoom(A.maxZoom)},{immediate:!0})})},h=()=>{n.run(()=>{(0,r.watch)(()=>A.minZoom,()=>{A.minZoom&&ae(A.minZoom)&&t.setMinZoom(A.minZoom)},{immediate:!0})})},g=()=>{n.run(()=>{(0,r.watch)(()=>A.translateExtent,()=>{A.translateExtent&&ae(A.translateExtent)&&t.setTranslateExtent(A.translateExtent)},{immediate:!0})})},B=()=>{n.run(()=>{(0,r.watch)(()=>A.nodeExtent,()=>{A.nodeExtent&&ae(A.nodeExtent)&&t.setNodeExtent(A.nodeExtent)},{immediate:!0})})},w=()=>{n.run(()=>{(0,r.watch)(()=>A.applyDefault,()=>{ae(A.applyDefault)&&(t.applyDefault.value=A.applyDefault)},{immediate:!0})})},m=()=>{n.run(()=>{const I=async N=>{let D=N;typeof A.autoConnect=="function"&&(D=await A.autoConnect(N)),D!==!1&&t.addEdges([D])};(0,r.watch)(()=>A.autoConnect,()=>{ae(A.autoConnect)&&(t.autoConnect.value=A.autoConnect)},{immediate:!0}),(0,r.watch)(t.autoConnect,(N,D,P)=>{N?t.onConnect(I):t.hooks.value.connect.off(I),P(()=>{t.hooks.value.connect.off(I)})},{immediate:!0})})},v=()=>{const I=["id","modelValue","translateExtent","nodeExtent","edges","nodes","maxZoom","minZoom","applyDefault","autoConnect"];for(const N of Object.keys(A)){const D=N;if(!I.includes(D)){const P=(0,r.toRef)(()=>A[D]),H=t[D];(0,r.isRef)(H)&&n.run(()=>{(0,r.watch)(P,O=>{ae(O)&&(H.value=O)},{immediate:!0})})}}};o(),a(),u(),h(),d(),g(),B(),w(),m(),v()}),()=>n.stop()}function _B(){return{edgesChange:yA(),nodesChange:yA(),nodeDoubleClick:yA(),nodeClick:yA(),nodeMouseEnter:yA(),nodeMouseMove:yA(),nodeMouseLeave:yA(),nodeContextMenu:yA(),nodeDragStart:yA(),nodeDrag:yA(),nodeDragStop:yA(),nodesInitialized:yA(),miniMapNodeClick:yA(),miniMapNodeDoubleClick:yA(),miniMapNodeMouseEnter:yA(),miniMapNodeMouseMove:yA(),miniMapNodeMouseLeave:yA(),connect:yA(),connectStart:yA(),connectEnd:yA(),clickConnectStart:yA(),clickConnectEnd:yA(),paneReady:yA(),init:yA(),move:yA(),moveStart:yA(),moveEnd:yA(),selectionDragStart:yA(),selectionDrag:yA(),selectionDragStop:yA(),selectionContextMenu:yA(),selectionStart:yA(),selectionEnd:yA(),viewportChangeStart:yA(),viewportChange:yA(),viewportChangeEnd:yA(),paneScroll:yA(),paneClick:yA(),paneContextMenu:yA(),paneMouseEnter:yA(),paneMouseMove:yA(),paneMouseLeave:yA(),edgeContextMenu:yA(),edgeMouseEnter:yA(),edgeMouseMove:yA(),edgeMouseLeave:yA(),edgeDoubleClick:yA(),edgeClick:yA(),edgeUpdateStart:yA(),edgeUpdate:yA(),edgeUpdateEnd:yA(),updateNodeInternals:yA(),error:yA(e=>Vn(e.message))}}function SB(e,A){const t=(0,r.getCurrentInstance)();(0,r.onBeforeMount)(()=>{for(const[o,a]of Object.entries(A.value)){const u=d=>{e(o,d)};a.setEmitter(u),En(a.removeEmitter),a.setHasEmitListeners(()=>n(o)),En(a.removeHasEmitListeners)}});function n(o){var a;const u=xB(o);return!!((a=t?.vnode.props)!=null&&a[u])}}function xB(e){const[A,...t]=e.split(":");return`on${A.replace(/(?:^|-)(\w)/g,(n,o)=>o.toUpperCase())}${t.length?`:${t.join(":")}`:""}`}function nl(){return{vueFlowRef:null,viewportRef:null,nodes:[],edges:[],connectionLookup:new Map,nodeTypes:{},edgeTypes:{},initialized:!1,dimensions:{width:0,height:0},viewport:{x:0,y:0,zoom:1},d3Zoom:null,d3Selection:null,d3ZoomHandler:null,minZoom:.5,maxZoom:2,translateExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],nodeExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],selectionMode:di.Full,paneDragging:!1,preventScrolling:!0,zoomOnScroll:!0,zoomOnPinch:!0,zoomOnDoubleClick:!0,panOnScroll:!1,panOnScrollSpeed:.5,panOnScrollMode:Tn.Free,paneClickDistance:0,panOnDrag:!0,edgeUpdaterRadius:10,onlyRenderVisibleElements:!1,defaultViewport:{x:0,y:0,zoom:1},nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,defaultMarkerColor:"#b1b1b7",connectionLineStyle:{},connectionLineType:null,connectionLineOptions:{type:Tt.Bezier,style:{}},connectionMode:tt.Loose,connectionStartHandle:null,connectionEndHandle:null,connectionClickStartHandle:null,connectionPosition:{x:NaN,y:NaN},connectionRadius:20,connectOnClick:!0,connectionStatus:null,isValidConnection:null,snapGrid:[15,15],snapToGrid:!1,edgesUpdatable:!1,edgesFocusable:!0,nodesFocusable:!0,nodesConnectable:!0,nodesDraggable:!0,nodeDragThreshold:1,elementsSelectable:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,selectionKeyCode:"Shift",multiSelectionKeyCode:Lr()?"Meta":"Control",zoomActivationKeyCode:Lr()?"Meta":"Control",deleteKeyCode:"Backspace",panActivationKeyCode:"Space",hooks:_B(),applyDefault:!0,autoConnect:!1,fitViewOnInit:!1,fitViewOnInitDone:!1,noDragClassName:"nodrag",noWheelClassName:"nowheel",noPanClassName:"nopan",defaultEdgeOptions:void 0,elevateEdgesOnSelect:!1,elevateNodesOnSelect:!0,autoPanOnNodeDrag:!0,autoPanOnConnect:!0,autoPanSpeed:15,disableKeyboardA11y:!1,ariaLiveMessage:""}}var DB=["id","vueFlowRef","viewportRef","initialized","modelValue","nodes","edges","maxZoom","minZoom","translateExtent","hooks","defaultEdgeOptions"];function NB(e,A,t){const n=HB(e),o=_=>{const F=_??[];e.hooks.updateNodeInternals.trigger(F)},a=_=>Yh(_,e.nodes,e.edges),u=_=>$h(_,e.nodes,e.edges),d=_=>ba(_,e.edges),h=({id:_,type:F,nodeId:x})=>{var z;const G=_?`-${F}-${_}`:`-${F}`;return Array.from(((z=e.connectionLookup.get(`${x}${G}`))==null?void 0:z.values())??[])},g=_=>{if(_)return A.value.get(_)},B=_=>{if(_)return t.value.get(_)},w=(_,F,x)=>{var z,G;const dA=[];for(const gA of _){const EA={id:gA.id,type:"position",dragging:x,from:gA.from};if(F&&(EA.position=gA.position,gA.parentNode)){const wA=g(gA.parentNode);EA.position={x:EA.position.x-(((z=wA?.computedPosition)==null?void 0:z.x)??0),y:EA.position.y-(((G=wA?.computedPosition)==null?void 0:G.y)??0)}}dA.push(EA)}dA?.length&&e.hooks.nodesChange.trigger(dA)},m=_=>{if(!e.vueFlowRef)return;const F=e.vueFlowRef.querySelector(".vue-flow__transformationpane");if(!F)return;const x=window.getComputedStyle(F),{m22:z}=new window.DOMMatrixReadOnly(x.transform),G=[];for(const dA of _){const gA=dA,EA=g(gA.id);if(EA){const wA=Dr(gA.nodeElement);if(wA.width&&wA.height&&(EA.dimensions.width!==wA.width||EA.dimensions.height!==wA.height||gA.forceUpdate)){const DA=gA.nodeElement.getBoundingClientRect();EA.dimensions=wA,EA.handleBounds.source=Xa("source",gA.nodeElement,DA,z,EA.id),EA.handleBounds.target=Xa("target",gA.nodeElement,DA,z,EA.id),G.push({id:EA.id,type:"dimensions",dimensions:wA})}}}!e.fitViewOnInitDone&&e.fitViewOnInit&&n.value.fitView().then(()=>{e.fitViewOnInitDone=!0}),G.length&&e.hooks.nodesChange.trigger(G)},v=(_,F)=>{const x=new Set,z=new Set;for(const gA of _)Mt(gA)?x.add(gA.id):ht(gA)&&z.add(gA.id);const G=pt(A.value,x,!0),dA=pt(t.value,z);if(e.multiSelectionActive){for(const gA of x)G.push(Bt(gA,F));for(const gA of z)dA.push(Bt(gA,F))}G.length&&e.hooks.nodesChange.trigger(G),dA.length&&e.hooks.edgesChange.trigger(dA)},y=_=>{if(e.multiSelectionActive){const F=_.map(x=>Bt(x.id,!0));e.hooks.nodesChange.trigger(F);return}e.hooks.nodesChange.trigger(pt(A.value,new Set(_.map(F=>F.id)),!0)),e.hooks.edgesChange.trigger(pt(t.value))},I=_=>{if(e.multiSelectionActive){const F=_.map(x=>Bt(x.id,!0));e.hooks.edgesChange.trigger(F);return}e.hooks.edgesChange.trigger(pt(t.value,new Set(_.map(F=>F.id)))),e.hooks.nodesChange.trigger(pt(A.value,new Set,!0))},N=_=>{v(_,!0)},D=_=>{const F=(_||e.nodes).map(x=>(x.selected=!1,Bt(x.id,!1)));e.hooks.nodesChange.trigger(F)},P=_=>{const F=(_||e.edges).map(x=>(x.selected=!1,Bt(x.id,!1)));e.hooks.edgesChange.trigger(F)},H=_=>{if(!_||!_.length)return v([],!1);const F=_.reduce((x,z)=>{const G=Bt(z.id,!1);return Mt(z)?x.nodes.push(G):x.edges.push(G),x},{nodes:[],edges:[]});F.nodes.length&&e.hooks.nodesChange.trigger(F.nodes),F.edges.length&&e.hooks.edgesChange.trigger(F.edges)},O=_=>{var F;(F=e.d3Zoom)==null||F.scaleExtent([_,e.maxZoom]),e.minZoom=_},sA=_=>{var F;(F=e.d3Zoom)==null||F.scaleExtent([e.minZoom,_]),e.maxZoom=_},J=_=>{var F;(F=e.d3Zoom)==null||F.translateExtent(_),e.translateExtent=_},cA=_=>{e.nodeExtent=_,o()},aA=_=>{var F;(F=e.d3Zoom)==null||F.clickDistance(_)},oA=_=>{e.nodesDraggable=_,e.nodesConnectable=_,e.elementsSelectable=_},iA=_=>{const F=_ instanceof Function?_(e.nodes):_;!e.initialized&&!F.length||(e.nodes=$a(F,g,e.hooks.error.trigger))},AA=_=>{const F=_ instanceof Function?_(e.edges):_;if(!e.initialized&&!F.length)return;const x=yi(F,e.isValidConnection,g,B,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges);vi(e.connectionLookup,t.value,x),e.edges=x},S=_=>{const F=_ instanceof Function?_([...e.nodes,...e.edges]):_;!e.initialized&&!F.length||(iA(F.filter(Mt)),AA(F.filter(ht)))},eA=_=>{let F=_ instanceof Function?_(e.nodes):_;F=Array.isArray(F)?F:[F];const x=$a(F,g,e.hooks.error.trigger),z=[];for(const G of x)z.push(Na(G));z.length&&e.hooks.nodesChange.trigger(z)},U=_=>{let F=_ instanceof Function?_(e.edges):_;F=Array.isArray(F)?F:[F];const x=yi(F,e.isValidConnection,g,B,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges),z=[];for(const G of x)z.push(Na(G));z.length&&e.hooks.edgesChange.trigger(z)},K=(_,F=!0,x=!1)=>{const z=_ instanceof Function?_(e.nodes):_,G=Array.isArray(z)?z:[z],dA=[],gA=[];function EA(DA){const MA=d(DA);for(const RA of MA)(!ae(RA.deletable)||RA.deletable)&&gA.push(Ta(RA.id,RA.source,RA.target,RA.sourceHandle,RA.targetHandle))}function wA(DA){const MA=[];for(const RA of e.nodes)RA.parentNode===DA&&MA.push(RA);if(MA.length){for(const RA of MA)dA.push(La(RA.id));F&&EA(MA);for(const RA of MA)wA(RA.id)}}for(const DA of G){const MA=typeof DA=="string"?g(DA):DA;MA&&(ae(MA.deletable)&&!MA.deletable||(dA.push(La(MA.id)),F&&EA([MA]),x&&wA(MA.id)))}gA.length&&e.hooks.edgesChange.trigger(gA),dA.length&&e.hooks.nodesChange.trigger(dA)},b=_=>{const F=_ instanceof Function?_(e.edges):_,x=Array.isArray(F)?F:[F],z=[];for(const G of x){const dA=typeof G=="string"?B(G):G;dA&&(ae(dA.deletable)&&!dA.deletable||z.push(Ta(typeof G=="string"?G:G.id,dA.source,dA.target,dA.sourceHandle,dA.targetHandle)))}e.hooks.edgesChange.trigger(z)},R=(_,F,x=!0)=>{const z=B(_.id);if(!z)return!1;const G=e.edges.indexOf(z),dA=pB(_,F,z,x,e.hooks.error.trigger);if(dA){const[gA]=yi([dA],e.isValidConnection,g,B,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges);return e.edges=e.edges.map((EA,wA)=>wA===G?gA:EA),vi(e.connectionLookup,t.value,[gA]),gA}return!1},k=(_,F,x={replace:!1})=>{const z=B(_);if(!z)return;const G=typeof F=="function"?F(z):F;z.data=x.replace?G:{...z.data,...G}},T=_=>Da(_,e.nodes),M=_=>{const F=Da(_,e.edges);return vi(e.connectionLookup,t.value,F),F},Y=(_,F,x={replace:!1})=>{const z=g(_);if(!z)return;const G=typeof F=="function"?F(z):F;x.replace?e.nodes.splice(e.nodes.indexOf(z),1,G):Object.assign(z,G)},tA=(_,F,x={replace:!1})=>{const z=g(_);if(!z)return;const G=typeof F=="function"?F(z):F;z.data=x.replace?G:{...z.data,...G}},BA=(_,F,x=!1)=>{x?e.connectionClickStartHandle=_:e.connectionStartHandle=_,e.connectionEndHandle=null,e.connectionStatus=null,F&&(e.connectionPosition=F)},UA=(_,F=null,x=null)=>{e.connectionStartHandle&&(e.connectionPosition=_,e.connectionEndHandle=F,e.connectionStatus=x)},nA=(_,F)=>{e.connectionPosition={x:NaN,y:NaN},e.connectionEndHandle=null,e.connectionStatus=null,F?e.connectionClickStartHandle=null:e.connectionStartHandle=null},W=_=>{const F=zh(_),x=F?null:Mn(_)?_:g(_.id);return!F&&!x?[null,null,F]:[F?_:Sr(x),x,F]},$=(_,F=!0,x=e.nodes)=>{const[z,G,dA]=W(_);if(!z)return[];const gA=[];for(const EA of x||e.nodes){if(!dA&&(EA.id===G.id||!EA.computedPosition))continue;const wA=Sr(EA),DA=xr(wA,z);(F&&DA>0||DA>=wA.width*wA.height||DA>=Number(z.width)*Number(z.height))&&gA.push(EA)}return gA},uA=(_,F,x=!0)=>{const[z]=W(_);if(!z)return!1;const G=xr(z,F);return x&&G>0||G>=Number(z.width)*Number(z.height)},mA=_=>{const{viewport:F,dimensions:x,d3Zoom:z,d3Selection:G,translateExtent:dA}=e;if(!z||!G||!_.x&&!_.y)return!1;const gA=An.translate(F.x+_.x,F.y+_.y).scale(F.zoom),EA=[[0,0],[x.width,x.height]],wA=z.constrain()(gA,EA,dA),DA=e.viewport.x!==wA.x||e.viewport.y!==wA.y||e.viewport.zoom!==wA.k;return z.transform(G,wA),DA},bA=_=>{const F=_ instanceof Function?_(e):_,x=["d3Zoom","d3Selection","d3ZoomHandler","viewportRef","vueFlowRef","dimensions","hooks"];ae(F.defaultEdgeOptions)&&(e.defaultEdgeOptions=F.defaultEdgeOptions);const z=F.modelValue||F.nodes||F.edges?[]:void 0;z&&(F.modelValue&&z.push(...F.modelValue),F.nodes&&z.push(...F.nodes),F.edges&&z.push(...F.edges),S(z));const G=()=>{ae(F.maxZoom)&&sA(F.maxZoom),ae(F.minZoom)&&O(F.minZoom),ae(F.translateExtent)&&J(F.translateExtent)};for(const dA of Object.keys(F)){const gA=dA,EA=F[gA];![...DB,...x].includes(gA)&&ae(EA)&&(e[gA]=EA)}zo(()=>e.d3Zoom).not.toBeNull().then(G),e.initialized||(e.initialized=!0)};return{updateNodePositions:w,updateNodeDimensions:m,setElements:S,setNodes:iA,setEdges:AA,addNodes:eA,addEdges:U,removeNodes:K,removeEdges:b,findNode:g,findEdge:B,updateEdge:R,updateEdgeData:k,updateNode:Y,updateNodeData:tA,applyEdgeChanges:M,applyNodeChanges:T,addSelectedElements:N,addSelectedNodes:y,addSelectedEdges:I,setMinZoom:O,setMaxZoom:sA,setTranslateExtent:J,setNodeExtent:cA,setPaneClickDistance:aA,removeSelectedElements:H,removeSelectedNodes:D,removeSelectedEdges:P,startConnection:BA,updateConnection:UA,endConnection:nA,setInteractive:oA,setState:bA,getIntersectingNodes:$,getIncomers:a,getOutgoers:u,getConnectedEdges:d,getHandleConnections:h,isNodeIntersecting:uA,panBy:mA,fitView:_=>n.value.fitView(_),zoomIn:_=>n.value.zoomIn(_),zoomOut:_=>n.value.zoomOut(_),zoomTo:(_,F)=>n.value.zoomTo(_,F),setViewport:(_,F)=>n.value.setViewport(_,F),setTransform:(_,F)=>n.value.setTransform(_,F),getViewport:()=>n.value.getViewport(),getTransform:()=>n.value.getTransform(),setCenter:(_,F,x)=>n.value.setCenter(_,F,x),fitBounds:(_,F)=>n.value.fitBounds(_,F),project:_=>n.value.project(_),screenToFlowCoordinate:_=>n.value.screenToFlowCoordinate(_),flowToScreenCoordinate:_=>n.value.flowToScreenCoordinate(_),toObject:()=>{const _=[],F=[];for(const x of e.nodes){const{computedPosition:z,handleBounds:G,selected:dA,dimensions:gA,isParent:EA,resizing:wA,dragging:DA,events:MA,...RA}=x;_.push(RA)}for(const x of e.edges){const{selected:z,sourceNode:G,targetNode:dA,events:gA,...EA}=x;F.push(EA)}return JSON.parse(JSON.stringify({nodes:_,edges:F,position:[e.viewport.x,e.viewport.y],zoom:e.viewport.zoom,viewport:e.viewport}))},fromObject:_=>new Promise(F=>{const{nodes:x,edges:z,position:G,zoom:dA,viewport:gA}=_;x&&iA(x),z&&AA(z);const[EA,wA]=gA?.x&&gA?.y?[gA.x,gA.y]:G??[null,null];if(EA&&wA){const DA=gA?.zoom||dA||e.viewport.zoom;return zo(()=>n.value.viewportInitialized).toBe(!0).then(()=>{n.value.setViewport({x:EA,y:wA,zoom:DA}).then(()=>{F(!0)})})}else F(!0)}),updateNodeInternals:o,viewportHelper:n,$reset:()=>{const _=nl();if(e.edges=[],e.nodes=[],e.d3Zoom&&e.d3Selection){const F=An.translate(_.defaultViewport.x??0,_.defaultViewport.y??0).scale(kt(_.defaultViewport.zoom??1,_.minZoom,_.maxZoom)),x=e.viewportRef.getBoundingClientRect(),z=[[0,0],[x.width,x.height]],G=e.d3Zoom.constrain()(F,z,_.translateExtent);e.d3Zoom.transform(e.d3Selection,G)}bA(_)},$destroy:()=>{}}}var LB=["data-id","data-handleid","data-nodeid","data-handlepos"],rn=(0,r.defineComponent)({name:"Handle",compatConfig:{MODE:3},props:{id:{default:null},type:{},position:{default:()=>HA.Top},isValidConnection:{type:Function},connectable:{type:[Boolean,Number,String,Function],default:void 0},connectableStart:{type:Boolean,default:!0},connectableEnd:{type:Boolean,default:!0}},setup(e,{expose:A}){const t=(0,r.createPropsRestProxy)(e,["position","connectable","connectableStart","connectableEnd","id"]),n=(0,r.toRef)(()=>t.type??"source"),o=(0,r.toRef)(()=>t.isValidConnection??null),{id:a,connectionStartHandle:u,connectionClickStartHandle:d,connectionEndHandle:h,vueFlowRef:g,nodesConnectable:B,noDragClassName:w,noPanClassName:m}=YA(),{id:v,node:y,nodeEl:I,connectedEdges:N}=el(),D=(0,r.ref)(),P=(0,r.toRef)(()=>typeof e.connectableStart<"u"?e.connectableStart:!0),H=(0,r.toRef)(()=>typeof e.connectableEnd<"u"?e.connectableEnd:!0),O=(0,r.toRef)(()=>{var AA,S,eA,U,K,b;return((AA=u.value)==null?void 0:AA.nodeId)===v&&((S=u.value)==null?void 0:S.id)===e.id&&((eA=u.value)==null?void 0:eA.type)===n.value||((U=h.value)==null?void 0:U.nodeId)===v&&((K=h.value)==null?void 0:K.id)===e.id&&((b=h.value)==null?void 0:b.type)===n.value}),sA=(0,r.toRef)(()=>{var AA,S,eA;return((AA=d.value)==null?void 0:AA.nodeId)===v&&((S=d.value)==null?void 0:S.id)===e.id&&((eA=d.value)==null?void 0:eA.type)===n.value}),{handlePointerDown:J,handleClick:cA}=Al({nodeId:v,handleId:e.id,isValidConnection:o,type:n}),aA=(0,r.computed)(()=>typeof e.connectable=="string"&&e.connectable==="single"?!N.value.some(AA=>{const S=AA[`${n.value}Handle`];return AA[n.value]!==v?!1:S?S===e.id:!0}):typeof e.connectable=="number"?N.value.filter(AA=>{const S=AA[`${n.value}Handle`];return AA[n.value]!==v?!1:S?S===e.id:!0}).length<e.connectable:typeof e.connectable=="function"?e.connectable(y,N.value):ae(e.connectable)?e.connectable:B.value);(0,r.onMounted)(()=>{var AA;if(!y.dimensions.width||!y.dimensions.height)return;const S=(AA=y.handleBounds[n.value])==null?void 0:AA.find(T=>T.id===e.id);if(!g.value||S)return;const eA=g.value.querySelector(".vue-flow__transformationpane");if(!I.value||!D.value||!eA||!e.id)return;const U=I.value.getBoundingClientRect(),K=D.value.getBoundingClientRect(),b=window.getComputedStyle(eA),{m22:R}=new window.DOMMatrixReadOnly(b.transform),k={id:e.id,position:e.position,x:(K.left-U.left)/R,y:(K.top-U.top)/R,type:n.value,nodeId:v,...Dr(D.value)};y.handleBounds[n.value]=[...y.handleBounds[n.value]??[],k]});function oA(AA){const S=pi(AA);aA.value&&P.value&&(S&&AA.button===0||!S)&&J(AA)}function iA(AA){!v||!d.value&&!P.value||aA.value&&cA(AA)}return A({handleClick:cA,handlePointerDown:J,onClick:iA,onPointerDown:oA}),(AA,S)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{ref_key:"handle",ref:D,"data-id":`${(0,r.unref)(a)}-${(0,r.unref)(v)}-${e.id}-${n.value}`,"data-handleid":e.id,"data-nodeid":(0,r.unref)(v),"data-handlepos":AA.position,class:(0,r.normalizeClass)(["vue-flow__handle",[`vue-flow__handle-${AA.position}`,`vue-flow__handle-${e.id}`,(0,r.unref)(w),(0,r.unref)(m),n.value,{connectable:aA.value,connecting:sA.value,connectablestart:P.value,connectableend:H.value,connectionindicator:aA.value&&(P.value&&!O.value||H.value&&O.value)}]]),onMousedown:oA,onTouchstartPassive:oA,onClick:iA},[(0,r.renderSlot)(AA.$slots,"default",{id:AA.id})],42,LB))}}),Kr=function({sourcePosition:e=HA.Bottom,targetPosition:A=HA.Top,label:t,connectable:n=!0,isValidTargetPos:o,isValidSourcePos:a,data:u}){const d=u.label??t;return[(0,r.h)(rn,{type:"target",position:A,connectable:n,isValidConnection:o}),typeof d!="string"&&d?(0,r.h)(d):(0,r.h)(r.Fragment,[d]),(0,r.h)(rn,{type:"source",position:e,connectable:n,isValidConnection:a})]};Kr.props=["sourcePosition","targetPosition","label","isValidTargetPos","isValidSourcePos","connectable","data"],Kr.inheritAttrs=!1,Kr.compatConfig={MODE:3};var TB=Kr,Rr=function({targetPosition:e=HA.Top,label:A,connectable:t=!0,isValidTargetPos:n,data:o}){const a=o.label??A;return[(0,r.h)(rn,{type:"target",position:e,connectable:t,isValidConnection:n}),typeof a!="string"&&a?(0,r.h)(a):(0,r.h)(r.Fragment,[a])]};Rr.props=["targetPosition","label","isValidTargetPos","connectable","data"],Rr.inheritAttrs=!1,Rr.compatConfig={MODE:3};var kB=Rr,Vr=function({sourcePosition:e=HA.Bottom,label:A,connectable:t=!0,isValidSourcePos:n,data:o}){const a=o.label??A;return[typeof a!="string"&&a?(0,r.h)(a):(0,r.h)(r.Fragment,[a]),(0,r.h)(rn,{type:"source",position:e,connectable:t,isValidConnection:n})]};Vr.props=["sourcePosition","label","isValidSourcePos","connectable","data"],Vr.inheritAttrs=!1,Vr.compatConfig={MODE:3};var MB=Vr,OB=["transform"],KB=["width","height","x","y","rx","ry"],RB=["y"],VB=(0,r.defineComponent)({name:"EdgeText",compatConfig:{MODE:3},props:{x:{},y:{},label:{},labelStyle:{default:()=>({})},labelShowBg:{type:Boolean,default:!0},labelBgStyle:{default:()=>({})},labelBgPadding:{default:()=>[2,4]},labelBgBorderRadius:{default:2}},setup(e){const A=(0,r.ref)({x:0,y:0,width:0,height:0}),t=(0,r.ref)(null),n=(0,r.computed)(()=>`translate(${e.x-A.value.width/2} ${e.y-A.value.height/2})`);(0,r.onMounted)(o),(0,r.watch)([()=>e.x,()=>e.y,t,()=>e.label],o);function o(){if(!t.value)return;const a=t.value.getBBox();(a.width!==A.value.width||a.height!==A.value.height)&&(A.value=a)}return(a,u)=>((0,r.openBlock)(),(0,r.createElementBlock)("g",{transform:n.value,class:"vue-flow__edge-textwrapper"},[a.labelShowBg?((0,r.openBlock)(),(0,r.createElementBlock)("rect",{key:0,class:"vue-flow__edge-textbg",width:`${A.value.width+2*a.labelBgPadding[0]}px`,height:`${A.value.height+2*a.labelBgPadding[1]}px`,x:-a.labelBgPadding[0],y:-a.labelBgPadding[1],style:(0,r.normalizeStyle)(a.labelBgStyle),rx:a.labelBgBorderRadius,ry:a.labelBgBorderRadius},null,12,KB)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("text",(0,r.mergeProps)(a.$attrs,{ref_key:"el",ref:t,class:"vue-flow__edge-text",y:A.value.height/2,dy:"0.3em",style:a.labelStyle}),[(0,r.renderSlot)(a.$slots,"default",{},()=>[typeof a.label!="string"?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(a.label),{key:0})):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createTextVNode)((0,r.toDisplayString)(a.label),1)],64))])],16,RB)],8,OB))}}),PB=["id","d","marker-end","marker-start"],GB=["d","stroke-width"],Pn=(0,r.defineComponent)({name:"BaseEdge",inheritAttrs:!1,compatConfig:{MODE:3},props:{id:{},labelX:{},labelY:{},path:{},label:{},markerStart:{},markerEnd:{},interactionWidth:{default:20},labelStyle:{},labelShowBg:{type:Boolean},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{}},setup(e,{expose:A}){const t=(0,r.ref)(null),n=(0,r.ref)(null),o=(0,r.ref)(null),a=(0,r.useAttrs)();return A({pathEl:t,interactionEl:n,labelEl:o}),(u,d)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createElementVNode)("path",(0,r.mergeProps)((0,r.unref)(a),{id:u.id,ref_key:"pathEl",ref:t,d:u.path,class:"vue-flow__edge-path","marker-end":u.markerEnd,"marker-start":u.markerStart}),null,16,PB),u.interactionWidth?((0,r.openBlock)(),(0,r.createElementBlock)("path",{key:0,ref_key:"interactionEl",ref:n,fill:"none",d:u.path,"stroke-width":u.interactionWidth,"stroke-opacity":0,class:"vue-flow__edge-interaction"},null,8,GB)):(0,r.createCommentVNode)("",!0),u.label&&u.labelX&&u.labelY?((0,r.openBlock)(),(0,r.createBlock)(VB,{key:1,ref_key:"labelEl",ref:o,x:u.labelX,y:u.labelY,label:u.label,"label-show-bg":u.labelShowBg,"label-bg-style":u.labelBgStyle,"label-bg-padding":u.labelBgPadding,"label-bg-border-radius":u.labelBgBorderRadius,"label-style":u.labelStyle},null,8,["x","y","label","label-show-bg","label-bg-style","label-bg-padding","label-bg-border-radius","label-style"])):(0,r.createCommentVNode)("",!0)],64))}});function rl({sourceX:e,sourceY:A,targetX:t,targetY:n}){const o=Math.abs(t-e)/2,a=t<e?t+o:t-o,u=Math.abs(n-A)/2;return[a,n<A?n+u:n-u,o,u]}function ol({sourceX:e,sourceY:A,targetX:t,targetY:n,sourceControlX:o,sourceControlY:a,targetControlX:u,targetControlY:d}){const h=e*.125+o*.375+u*.375+t*.125,g=A*.125+a*.375+d*.375+n*.125;return[h,g,Math.abs(h-e),Math.abs(g-A)]}function Pr(e,A){return e>=0?.5*e:A*25*Math.sqrt(-e)}function il({pos:e,x1:A,y1:t,x2:n,y2:o,c:a}){let u,d;switch(e){case HA.Left:u=A-Pr(A-n,a),d=t;break;case HA.Right:u=A+Pr(n-A,a),d=t;break;case HA.Top:u=A,d=t-Pr(t-o,a);break;case HA.Bottom:u=A,d=t+Pr(o-t,a);break}return[u,d]}function Ei(e){const{sourceX:A,sourceY:t,sourcePosition:n=HA.Bottom,targetX:o,targetY:a,targetPosition:u=HA.Top,curvature:d=.25}=e,[h,g]=il({pos:n,x1:A,y1:t,x2:o,y2:a,c:d}),[B,w]=il({pos:u,x1:o,y1:a,x2:A,y2:t,c:d}),[m,v,y,I]=ol({sourceX:A,sourceY:t,targetX:o,targetY:a,sourceControlX:h,sourceControlY:g,targetControlX:B,targetControlY:w});return[`M${A},${t} C${h},${g} ${B},${w} ${o},${a}`,m,v,y,I]}function sl({pos:e,x1:A,y1:t,x2:n,y2:o}){let a,u;switch(e){case HA.Left:case HA.Right:a=.5*(A+n),u=t;break;case HA.Top:case HA.Bottom:a=A,u=.5*(t+o);break}return[a,u]}function al(e){const{sourceX:A,sourceY:t,sourcePosition:n=HA.Bottom,targetX:o,targetY:a,targetPosition:u=HA.Top}=e,[d,h]=sl({pos:n,x1:A,y1:t,x2:o,y2:a}),[g,B]=sl({pos:u,x1:o,y1:a,x2:A,y2:t}),[w,m,v,y]=ol({sourceX:A,sourceY:t,targetX:o,targetY:a,sourceControlX:d,sourceControlY:h,targetControlX:g,targetControlY:B});return[`M${A},${t} C${d},${h} ${g},${B} ${o},${a}`,w,m,v,y]}var ll={[HA.Left]:{x:-1,y:0},[HA.Right]:{x:1,y:0},[HA.Top]:{x:0,y:-1},[HA.Bottom]:{x:0,y:1}};function zB({source:e,sourcePosition:A=HA.Bottom,target:t}){return A===HA.Left||A===HA.Right?e.x<t.x?{x:1,y:0}:{x:-1,y:0}:e.y<t.y?{x:0,y:1}:{x:0,y:-1}}function cl(e,A){return Math.sqrt((A.x-e.x)**2+(A.y-e.y)**2)}function XB({source:e,sourcePosition:A=HA.Bottom,target:t,targetPosition:n=HA.Top,center:o,offset:a}){const u=ll[A],d=ll[n],h={x:e.x+u.x*a,y:e.y+u.y*a},g={x:t.x+d.x*a,y:t.y+d.y*a},B=zB({source:h,sourcePosition:A,target:g}),w=B.x!==0?"x":"y",m=B[w];let v,y,I;const N={x:0,y:0},D={x:0,y:0},[P,H,O,sA]=rl({sourceX:e.x,sourceY:e.y,targetX:t.x,targetY:t.y});if(u[w]*d[w]===-1){y=o.x??P,I=o.y??H;const J=[{x:y,y:h.y},{x:y,y:g.y}],cA=[{x:h.x,y:I},{x:g.x,y:I}];u[w]===m?v=w==="x"?J:cA:v=w==="x"?cA:J}else{const J=[{x:h.x,y:g.y}],cA=[{x:g.x,y:h.y}];if(w==="x"?v=u.x===m?cA:J:v=u.y===m?J:cA,A===n){const iA=Math.abs(e[w]-t[w]);if(iA<=a){const AA=Math.min(a-1,a-iA);u[w]===m?N[w]=(h[w]>e[w]?-1:1)*AA:D[w]=(g[w]>t[w]?-1:1)*AA}}if(A!==n){const iA=w==="x"?"y":"x",AA=u[w]===d[iA],S=h[iA]>g[iA],eA=h[iA]<g[iA];(u[w]===1&&(!AA&&S||AA&&eA)||u[w]!==1&&(!AA&&eA||AA&&S))&&(v=w==="x"?J:cA)}const aA={x:h.x+N.x,y:h.y+N.y},oA={x:g.x+D.x,y:g.y+D.y};Math.max(Math.abs(aA.x-v[0].x),Math.abs(oA.x-v[0].x))>=Math.max(Math.abs(aA.y-v[0].y),Math.abs(oA.y-v[0].y))?(y=(aA.x+oA.x)/2,I=v[0].y):(y=v[0].x,I=(aA.y+oA.y)/2)}return[[e,{x:h.x+N.x,y:h.y+N.y},...v,{x:g.x+D.x,y:g.y+D.y},t],y,I,O,sA]}function $B(e,A,t,n){const o=Math.min(cl(e,A)/2,cl(A,t)/2,n),{x:a,y:u}=A;if(e.x===a&&a===t.x||e.y===u&&u===t.y)return`L${a} ${u}`;if(e.y===u){const h=e.x<t.x?-1:1,g=e.y<t.y?1:-1;return`L ${a+o*h},${u}Q ${a},${u} ${a},${u+o*g}`}const d=e.x<t.x?1:-1;return`L ${a},${u+o*(e.y<t.y?-1:1)}Q ${a},${u} ${a+o*d},${u}`}function Fi(e){const{sourceX:A,sourceY:t,sourcePosition:n=HA.Bottom,targetX:o,targetY:a,targetPosition:u=HA.Top,borderRadius:d=5,centerX:h,centerY:g,offset:B=20}=e,[w,m,v,y,I]=XB({source:{x:A,y:t},sourcePosition:n,target:{x:o,y:a},targetPosition:u,center:{x:h,y:g},offset:B});return[w.reduce((N,D,P)=>{let H;return P>0&&P<w.length-1?H=$B(w[P-1],D,w[P+1],d):H=`${P===0?"M":"L"}${D.x} ${D.y}`,N+=H,N},""),m,v,y,I]}function YB(e){const{sourceX:A,sourceY:t,targetX:n,targetY:o}=e,[a,u,d,h]=rl({sourceX:A,sourceY:t,targetX:n,targetY:o});return[`M ${A},${t}L ${n},${o}`,a,u,d,h]}var WB=(0,r.defineComponent)({name:"StraightEdge",props:["label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(e,{attrs:A}){return()=>{const[t,n,o]=YB(e);return(0,r.h)(Pn,{path:t,labelX:n,labelY:o,...A,...e})}}}),ul=(0,r.defineComponent)({name:"SmoothStepEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","borderRadius","markerEnd","markerStart","interactionWidth","offset"],compatConfig:{MODE:3},setup(e,{attrs:A}){return()=>{const[t,n,o]=Fi({...e,sourcePosition:e.sourcePosition??HA.Bottom,targetPosition:e.targetPosition??HA.Top});return(0,r.h)(Pn,{path:t,labelX:n,labelY:o,...A,...e})}}}),JB=(0,r.defineComponent)({name:"StepEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],setup(e,{attrs:A}){return()=>(0,r.h)(ul,{...e,...A,borderRadius:0})}}),ZB=(0,r.defineComponent)({name:"BezierEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","curvature","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(e,{attrs:A}){return()=>{const[t,n,o]=Ei({...e,sourcePosition:e.sourcePosition??HA.Bottom,targetPosition:e.targetPosition??HA.Top});return(0,r.h)(Pn,{path:t,labelX:n,labelY:o,...A,...e})}}}),jB=(0,r.defineComponent)({name:"SimpleBezierEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(e,{attrs:A}){return()=>{const[t,n,o]=al({...e,sourcePosition:e.sourcePosition??HA.Bottom,targetPosition:e.targetPosition??HA.Top});return(0,r.h)(Pn,{path:t,labelX:n,labelY:o,...A,...e})}}}),qB={input:MB,default:TB,output:kB},Ap={default:ZB,straight:WB,step:JB,smoothstep:ul,simplebezier:jB};function ep(e,A,t){const n=(0,r.computed)(()=>y=>A.value.get(y)),o=(0,r.computed)(()=>y=>t.value.get(y)),a=(0,r.computed)(()=>{const y={...Ap,...e.edgeTypes},I=Object.keys(y);for(const N of e.edges)N.type&&!I.includes(N.type)&&(y[N.type]=N.type);return y}),u=(0,r.computed)(()=>{const y={...qB,...e.nodeTypes},I=Object.keys(y);for(const N of e.nodes)N.type&&!I.includes(N.type)&&(y[N.type]=N.type);return y}),d=(0,r.computed)(()=>e.onlyRenderVisibleElements?Ua(e.nodes,{x:0,y:0,width:e.dimensions.width,height:e.dimensions.height},e.viewport,!0):e.nodes),h=(0,r.computed)(()=>{if(e.onlyRenderVisibleElements){const y=[];for(const I of e.edges){const N=A.value.get(I.source),D=A.value.get(I.target);oB({sourcePos:N.computedPosition||{x:0,y:0},targetPos:D.computedPosition||{x:0,y:0},sourceWidth:N.dimensions.width,sourceHeight:N.dimensions.height,targetWidth:D.dimensions.width,targetHeight:D.dimensions.height,width:e.dimensions.width,height:e.dimensions.height,viewport:e.viewport})&&y.push(I)}return y}return e.edges}),g=(0,r.computed)(()=>[...d.value,...h.value]),B=(0,r.computed)(()=>{const y=[];for(const I of e.nodes)I.selected&&y.push(I);return y}),w=(0,r.computed)(()=>{const y=[];for(const I of e.edges)I.selected&&y.push(I);return y}),m=(0,r.computed)(()=>[...B.value,...w.value]),v=(0,r.computed)(()=>{const y=[];for(const I of e.nodes)I.dimensions.width&&I.dimensions.height&&I.handleBounds!==void 0&&y.push(I);return y});return{getNode:n,getEdge:o,getElements:g,getEdgeTypes:a,getNodeTypes:u,getEdges:h,getNodes:d,getSelectedElements:m,getSelectedNodes:B,getSelectedEdges:w,getNodesInitialized:v,areNodesInitialized:(0,r.computed)(()=>d.value.length>0&&v.value.length===d.value.length)}}var tp=class vn{constructor(){this.currentId=0,this.flows=new Map}static getInstance(){var A;const t=(A=(0,r.getCurrentInstance)())==null?void 0:A.appContext.app;return vn.instance=t?.config.globalProperties.$vueFlowStorage??vn.instance??new vn,t&&(t.config.globalProperties.$vueFlowStorage=vn.instance),vn.instance}set(A,t){return this.flows.set(A,t)}get(A){return this.flows.get(A)}remove(A){return this.flows.delete(A)}create(A,t){const n=(0,r.reactive)(nl()),o={};for(const[w,m]of Object.entries(n.hooks)){const v=`on${w.charAt(0).toUpperCase()+w.slice(1)}`;o[v]=m.on}const a={};for(const[w,m]of Object.entries(n.hooks))a[w]=m.trigger;const u=(0,r.computed)(()=>{const w=new Map;for(const m of n.nodes)w.set(m.id,m);return w}),d=(0,r.computed)(()=>{const w=new Map;for(const m of n.edges)w.set(m.id,m);return w}),h=ep(n,u,d),g=NB(n,u,d);g.setState({...n,...t});const B={...o,...h,...g,...qu(n),nodeLookup:u,edgeLookup:d,emits:a,id:A,vueFlowVersion:"1.48.2",$destroy:()=>{this.remove(A)}};return this.set(A,B),B}getId(){return`vue-flow-${this.currentId++}`}};function YA(e){const A=tp.getInstance(),t=(0,r.getCurrentScope)(),n=typeof e=="object",o=n?e:{id:e},a=o.id,u=a??t?.vueFlowId;let d;if(t){const h=(0,r.inject)(Ja,null);typeof h<"u"&&h!==null&&(!u||h.id===u)&&(d=h)}if(d||u&&(d=A.get(u)),!d||u&&d.id!==u){const h=a??A.getId(),g=A.create(h,o);d=g,(t??(0,r.effectScope)(!0)).run(()=>{(0,r.watch)(g.applyDefault,(B,w,m)=>{const v=I=>{g.applyNodeChanges(I)},y=I=>{g.applyEdgeChanges(I)};B?(g.onNodesChange(v),g.onEdgesChange(y)):(g.hooks.value.nodesChange.off(v),g.hooks.value.edgesChange.off(y)),m(()=>{g.hooks.value.nodesChange.off(v),g.hooks.value.edgesChange.off(y)})},{immediate:!0}),En(()=>{if(d){const B=A.get(d.id);B?B.$destroy():Vn(`No store instance found for id ${d.id} in storage.`)}})})}else n&&d.setState(o);if(t&&((0,r.provide)(Ja,d),t.vueFlowId=d.id),n){const h=(0,r.getCurrentInstance)();h?.type.name!=="VueFlow"&&d.emits.error(new ue(se.USEVUEFLOW_OPTIONS))}return d}function np(e){const{emits:A,dimensions:t}=YA();let n;(0,r.onMounted)(()=>{const o=()=>{var a,u;if(!e.value||!(((u=(a=e.value).checkVisibility)==null?void 0:u.call(a))??!0))return;const d=Dr(e.value);(d.width===0||d.height===0)&&A.error(new ue(se.MISSING_VIEWPORT_DIMENSIONS)),t.value={width:d.width||500,height:d.height||500}};o(),window.addEventListener("resize",o),e.value&&(n=new ResizeObserver(()=>o()),n.observe(e.value)),(0,r.onBeforeUnmount)(()=>{window.removeEventListener("resize",o),n&&e.value&&n.unobserve(e.value)})})}var rp=(0,r.defineComponent)({name:"UserSelection",compatConfig:{MODE:3},props:{userSelectionRect:{}},setup(e){return(A,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"vue-flow__selection vue-flow__container",style:(0,r.normalizeStyle)({width:`${A.userSelectionRect.width}px`,height:`${A.userSelectionRect.height}px`,transform:`translate(${A.userSelectionRect.x}px, ${A.userSelectionRect.y}px)`})},null,4))}}),op=["tabIndex"],ip=(0,r.defineComponent)({name:"NodesSelection",compatConfig:{MODE:3},setup(e){const{emits:A,viewport:t,getSelectedNodes:n,noPanClassName:o,disableKeyboardA11y:a,userSelectionActive:u}=YA(),d=tl(),h=(0,r.ref)(null),g=qa({el:h,onStart(y){A.selectionDragStart(y),A.nodeDragStart(y)},onDrag(y){A.selectionDrag(y),A.nodeDrag(y)},onStop(y){A.selectionDragStop(y),A.nodeDragStop(y)}});(0,r.onMounted)(()=>{var y;a.value||(y=h.value)==null||y.focus({preventScroll:!0})});const B=(0,r.computed)(()=>Fa(n.value)),w=(0,r.computed)(()=>({width:`${B.value.width}px`,height:`${B.value.height}px`,top:`${B.value.y}px`,left:`${B.value.x}px`}));function m(y){A.selectionContextMenu({event:y,nodes:n.value})}function v(y){a.value||en[y.key]&&(y.preventDefault(),d({x:en[y.key].x,y:en[y.key].y},y.shiftKey))}return(y,I)=>!(0,r.unref)(u)&&B.value.width&&B.value.height?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(["vue-flow__nodesselection vue-flow__container",(0,r.unref)(o)]),style:(0,r.normalizeStyle)({transform:`translate(${(0,r.unref)(t).x}px,${(0,r.unref)(t).y}px) scale(${(0,r.unref)(t).zoom})`})},[(0,r.createElementVNode)("div",{ref_key:"el",ref:h,class:(0,r.normalizeClass)([{dragging:(0,r.unref)(g)},"vue-flow__nodesselection-rect"]),style:(0,r.normalizeStyle)(w.value),tabIndex:(0,r.unref)(a)?void 0:-1,onContextmenu:m,onKeydown:v},null,46,op)],6)):(0,r.createCommentVNode)("",!0)}});function sp(e,A){return{x:e.clientX-A.left,y:e.clientY-A.top}}var ap=(0,r.defineComponent)({name:"Pane",compatConfig:{MODE:3},props:{isSelecting:{type:Boolean},selectionKeyPressed:{type:Boolean}},setup(e){const{vueFlowRef:A,nodes:t,viewport:n,emits:o,userSelectionActive:a,removeSelectedElements:u,userSelectionRect:d,elementsSelectable:h,nodesSelectionActive:g,getSelectedEdges:B,getSelectedNodes:w,removeNodes:m,removeEdges:v,selectionMode:y,deleteKeyCode:I,multiSelectionKeyCode:N,multiSelectionActive:D,edgeLookup:P,nodeLookup:H,connectionLookup:O,defaultEdgeOptions:sA,connectionStartHandle:J,panOnDrag:cA}=YA(),aA=(0,r.shallowRef)(null),oA=(0,r.shallowRef)(new Set),iA=(0,r.shallowRef)(new Set),AA=(0,r.shallowRef)(null),S=(0,r.toRef)(()=>h.value&&(e.isSelecting||a.value)),eA=(0,r.toRef)(()=>J.value!==null);let U=!1,K=!1;const b=kn(I,{actInsideInputWithModifier:!1}),R=kn(N);(0,r.watch)(b,nA=>{nA&&(m(w.value),v(B.value),g.value=!1)}),(0,r.watch)(R,nA=>{D.value=nA});function k(nA,W){return $=>{$.target===W&&nA?.($)}}function T(nA){if(U||eA.value){U=!1;return}o.paneClick(nA),u(),g.value=!1}function M(nA){var W;if(Array.isArray(cA.value)&&((W=cA.value)!=null&&W.includes(2))){nA.preventDefault();return}o.paneContextMenu(nA)}function Y(nA){o.paneScroll(nA)}function tA(nA){var W,$,uA;if(AA.value=((W=A.value)==null?void 0:W.getBoundingClientRect())??null,!h.value||!e.isSelecting||nA.button!==0||nA.target!==aA.value||!AA.value)return;(uA=($=nA.target)==null?void 0:$.setPointerCapture)==null||uA.call($,nA.pointerId);const{x:mA,y:bA}=sp(nA,AA.value);K=!0,U=!1,u(),d.value={width:0,height:0,startX:mA,startY:bA,x:mA,y:bA},o.selectionStart(nA)}function BA(nA){var W;if(!AA.value||!d.value)return;U=!0;const{x:$,y:uA}=ze(nA,AA.value),{startX:mA=0,startY:bA=0}=d.value,_A={startX:mA,startY:bA,x:$<mA?$:mA,y:uA<bA?uA:bA,width:Math.abs($-mA),height:Math.abs(uA-bA)},fA=oA.value,Z=iA.value;oA.value=new Set(Ua(t.value,_A,n.value,y.value===di.Partial,!0).map(F=>F.id)),iA.value=new Set;const _=((W=sA.value)==null?void 0:W.selectable)??!0;for(const F of oA.value){const x=O.value.get(F);if(x)for(const{edgeId:z}of x.values()){const G=P.value.get(z);G&&(G.selectable??_)&&iA.value.add(z)}}if(!Wa(fA,oA.value)){const F=pt(H.value,oA.value,!0);o.nodesChange(F)}if(!Wa(Z,iA.value)){const F=pt(P.value,iA.value);o.edgesChange(F)}d.value=_A,a.value=!0,g.value=!1}function UA(nA){var W;nA.button!==0||!K||((W=nA.target)==null||W.releasePointerCapture(nA.pointerId),!a.value&&d.value&&nA.target===aA.value&&T(nA),a.value=!1,d.value=null,g.value=oA.value.size>0,o.selectionEnd(nA),e.selectionKeyPressed&&(U=!1),K=!1)}return(nA,W)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{ref_key:"container",ref:aA,class:(0,r.normalizeClass)(["vue-flow__pane vue-flow__container",{selection:nA.isSelecting}]),onClick:W[0]||(W[0]=$=>S.value?void 0:k(T,aA.value)($)),onContextmenu:W[1]||(W[1]=$=>k(M,aA.value)($)),onWheelPassive:W[2]||(W[2]=$=>k(Y,aA.value)($)),onPointerenter:W[3]||(W[3]=$=>S.value?void 0:(0,r.unref)(o).paneMouseEnter($)),onPointerdown:W[4]||(W[4]=$=>S.value?tA($):(0,r.unref)(o).paneMouseMove($)),onPointermove:W[5]||(W[5]=$=>S.value?BA($):(0,r.unref)(o).paneMouseMove($)),onPointerup:W[6]||(W[6]=$=>S.value?UA($):void 0),onPointerleave:W[7]||(W[7]=$=>(0,r.unref)(o).paneMouseLeave($))},[(0,r.renderSlot)(nA.$slots,"default"),(0,r.unref)(a)&&(0,r.unref)(d)?((0,r.openBlock)(),(0,r.createBlock)(rp,{key:0,"user-selection-rect":(0,r.unref)(d)},null,8,["user-selection-rect"])):(0,r.createCommentVNode)("",!0),(0,r.unref)(g)&&(0,r.unref)(w).length?((0,r.openBlock)(),(0,r.createBlock)(ip,{key:1})):(0,r.createCommentVNode)("",!0)],34))}}),lp=(0,r.defineComponent)({name:"Transform",compatConfig:{MODE:3},setup(e){const{viewport:A,fitViewOnInit:t,fitViewOnInitDone:n}=YA(),o=(0,r.computed)(()=>t.value?!n.value:!1),a=(0,r.computed)(()=>`translate(${A.value.x}px,${A.value.y}px) scale(${A.value.zoom})`);return(u,d)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"vue-flow__transformationpane vue-flow__container",style:(0,r.normalizeStyle)({transform:a.value,opacity:o.value?0:void 0})},[(0,r.renderSlot)(u.$slots,"default")],4))}}),cp=(0,r.defineComponent)({name:"Viewport",compatConfig:{MODE:3},setup(e){const{minZoom:A,maxZoom:t,defaultViewport:n,translateExtent:o,zoomActivationKeyCode:a,selectionKeyCode:u,panActivationKeyCode:d,panOnScroll:h,panOnScrollMode:g,panOnScrollSpeed:B,panOnDrag:w,zoomOnDoubleClick:m,zoomOnPinch:v,zoomOnScroll:y,preventScrolling:I,noWheelClassName:N,noPanClassName:D,emits:P,connectionStartHandle:H,userSelectionActive:O,paneDragging:sA,d3Zoom:J,d3Selection:cA,d3ZoomHandler:aA,viewport:oA,viewportRef:iA,paneClickDistance:AA}=YA();np(iA);const S=(0,r.shallowRef)(!1),eA=(0,r.shallowRef)(!1);let U=null,K=!1,b=0,R={x:0,y:0,zoom:0};const k=kn(d),T=kn(u),M=kn(a),Y=(0,r.toRef)(()=>(!T.value||T.value&&u.value===!0)&&(k.value||w.value)),tA=(0,r.toRef)(()=>k.value||h.value),BA=(0,r.toRef)(()=>u.value===!0&&Y.value!==!0),UA=(0,r.toRef)(()=>T.value&&u.value!==!0||O.value||BA.value),nA=(0,r.toRef)(()=>H.value!==null);(0,r.onMounted)(()=>{if(!iA.value){Vn("Viewport element is missing");return}const bA=iA.value,_A=bA.getBoundingClientRect(),fA=Mh().clickDistance(AA.value).scaleExtent([A.value,t.value]).translateExtent(o.value),Z=Le(bA).call(fA),_=Z.on("wheel.zoom"),F=An.translate(n.value.x??0,n.value.y??0).scale(kt(n.value.zoom??1,A.value,t.value)),x=[[0,0],[_A.width,_A.height]],z=fA.constrain()(F,x,o.value);fA.transform(Z,z),fA.wheelDelta(_a),J.value=fA,cA.value=Z,aA.value=_,oA.value={x:z.x,y:z.y,zoom:z.k},fA.on("start",G=>{var dA;if(!G.sourceEvent)return null;b=G.sourceEvent.button,S.value=!0;const gA=uA(G.transform);((dA=G.sourceEvent)==null?void 0:dA.type)==="mousedown"&&(sA.value=!0),R=gA,P.viewportChangeStart(gA),P.moveStart({event:G,flowTransform:gA})}),fA.on("end",G=>{if(!G.sourceEvent)return null;if(S.value=!1,sA.value=!1,W(Y.value,b??0)&&!K&&P.paneContextMenu(G.sourceEvent),K=!1,$(R,G.transform)){const dA=uA(G.transform);R=dA,P.viewportChangeEnd(dA),P.moveEnd({event:G,flowTransform:dA})}}),fA.filter(G=>{var dA;const gA=M.value||y.value,EA=v.value&&G.ctrlKey,wA=G.button,DA=G.type==="wheel";if(wA===1&&G.type==="mousedown"&&(mA(G,"vue-flow__node")||mA(G,"vue-flow__edge")))return!0;if(!Y.value&&!gA&&!tA.value&&!m.value&&!v.value||O.value||nA.value&&!DA||!m.value&&G.type==="dblclick"||mA(G,N.value)&&DA||mA(G,D.value)&&(!DA||tA.value&&DA&&!M.value)||!v.value&&G.ctrlKey&&DA||!gA&&!tA.value&&!EA&&DA)return!1;if(!v&&G.type==="touchstart"&&((dA=G.touches)==null?void 0:dA.length)>1)return G.preventDefault(),!1;if(!Y.value&&(G.type==="mousedown"||G.type==="touchstart")||BA.value&&Array.isArray(w.value)&&w.value.includes(0)&&wA===0||Array.isArray(w.value)&&!w.value.includes(wA)&&(G.type==="mousedown"||G.type==="touchstart"))return!1;const MA=Array.isArray(w.value)&&w.value.includes(wA)||u.value===!0&&Array.isArray(w.value)&&!w.value.includes(0)||!wA||wA<=1;return(!G.ctrlKey||k.value||DA)&&MA}),(0,r.watch)([O,Y],()=>{O.value&&!S.value?fA.on("zoom",null):O.value||fA.on("zoom",G=>{oA.value={x:G.transform.x,y:G.transform.y,zoom:G.transform.k};const dA=uA(G.transform);K=W(Y.value,b??0),P.viewportChange(dA),P.move({event:G,flowTransform:dA})})},{immediate:!0}),(0,r.watch)([O,tA,g,M,v,I,N],()=>{tA.value&&!M.value&&!O.value?Z.on("wheel.zoom",G=>{if(mA(G,N.value))return!1;const dA=M.value||y.value,gA=v.value&&G.ctrlKey;if(!(!I.value||tA.value||dA||gA))return!1;G.preventDefault(),G.stopImmediatePropagation();const EA=Z.property("__zoom").k||1,wA=Lr();if(!k.value&&G.ctrlKey&&v.value&&wA){const te=Re(G),ot=EA*2**_a(G);fA.scaleTo(Z,ot,te,G);return}const DA=G.deltaMode===1?20:1;let MA=g.value===Tn.Vertical?0:G.deltaX*DA,RA=g.value===Tn.Horizontal?0:G.deltaY*DA;!wA&&G.shiftKey&&g.value!==Tn.Vertical&&!MA&&RA&&(MA=RA,RA=0),fA.translateBy(Z,-(MA/EA)*B.value,-(RA/EA)*B.value);const WA=uA(Z.property("__zoom"));U&&clearTimeout(U),eA.value?(P.move({event:G,flowTransform:WA}),P.viewportChange(WA),U=setTimeout(()=>{P.moveEnd({event:G,flowTransform:WA}),P.viewportChangeEnd(WA),eA.value=!1},150)):(eA.value=!0,P.moveStart({event:G,flowTransform:WA}),P.viewportChangeStart(WA))},{passive:!1}):typeof _<"u"&&Z.on("wheel.zoom",function(G,dA){const gA=!I.value&&G.type==="wheel"&&!G.ctrlKey,EA=M.value||y.value,wA=v.value&&G.ctrlKey;if(!EA&&!h.value&&!wA&&G.type==="wheel"||gA||mA(G,N.value))return null;G.preventDefault(),_.call(this,G,dA)},{passive:!1})},{immediate:!0})});function W(bA,_A){return _A===2&&Array.isArray(bA)&&bA.includes(2)}function $(bA,_A){return bA.x!==_A.x&&!Number.isNaN(_A.x)||bA.y!==_A.y&&!Number.isNaN(_A.y)||bA.zoom!==_A.k&&!Number.isNaN(_A.k)}function uA(bA){return{x:bA.x,y:bA.y,zoom:bA.k}}function mA(bA,_A){return bA.target.closest(`.${_A}`)}return(bA,_A)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{ref_key:"viewportRef",ref:iA,class:"vue-flow__viewport vue-flow__container"},[(0,r.createVNode)(ap,{"is-selecting":UA.value,"selection-key-pressed":(0,r.unref)(T),class:(0,r.normalizeClass)({connecting:nA.value,dragging:(0,r.unref)(sA),draggable:(0,r.unref)(w)===!0||Array.isArray((0,r.unref)(w))&&(0,r.unref)(w).includes(0)})},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(lp,null,{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(bA.$slots,"default")]),_:3})]),_:3},8,["is-selecting","selection-key-pressed","class"])],512))}}),up=["id"],dp=["id"],fp=["id"],gp=(0,r.defineComponent)({name:"A11yDescriptions",compatConfig:{MODE:3},setup(e){const{id:A,disableKeyboardA11y:t,ariaLiveMessage:n}=YA();return(o,a)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createElementVNode)("div",{id:`${(0,r.unref)(Ba)}-${(0,r.unref)(A)}`,style:{display:"none"}}," Press enter or space to select a node. "+(0,r.toDisplayString)((0,r.unref)(t)?"":"You can then use the arrow keys to move the node around.")+" You can then use the arrow keys to move the node around, press delete to remove it and press escape to cancel. ",9,up),(0,r.createElementVNode)("div",{id:`${(0,r.unref)(pa)}-${(0,r.unref)(A)}`,style:{display:"none"}}," Press enter or space to select an edge. You can then press delete to remove it or press escape to cancel. ",8,dp),(0,r.unref)(t)?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,id:`${(0,r.unref)(Gh)}-${(0,r.unref)(A)}`,"aria-live":"assertive","aria-atomic":"true",style:{position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)","clip-path":"inset(100%)"}},(0,r.toDisplayString)((0,r.unref)(n)),9,fp))],64))}});function hp(){const e=YA();(0,r.watch)(()=>e.viewportHelper.value.viewportInitialized,A=>{A&&setTimeout(()=>{e.emits.init(e),e.emits.paneReady(e)},1)})}function Bp(e,A,t){return t===HA.Left?e-A:t===HA.Right?e+A:e}function pp(e,A,t){return t===HA.Top?e-A:t===HA.Bottom?e+A:e}var Ui=function({radius:e=10,centerX:A=0,centerY:t=0,position:n=HA.Top,type:o}){return(0,r.h)("circle",{class:`vue-flow__edgeupdater vue-flow__edgeupdater-${o}`,cx:Bp(A,e,n),cy:pp(t,e,n),r:e,stroke:"transparent",fill:"transparent"})};Ui.props=["radius","centerX","centerY","position","type"],Ui.compatConfig={MODE:3};var dl=Ui,mp=(0,r.defineComponent)({name:"Edge",compatConfig:{MODE:3},props:["id"],setup(e){const{id:A,addSelectedEdges:t,connectionMode:n,edgeUpdaterRadius:o,emits:a,nodesSelectionActive:u,noPanClassName:d,getEdgeTypes:h,removeSelectedEdges:g,findEdge:B,findNode:w,isValidConnection:m,multiSelectionActive:v,disableKeyboardA11y:y,elementsSelectable:I,edgesUpdatable:N,edgesFocusable:D,hooks:P}=YA(),H=(0,r.computed)(()=>B(e.id)),{emit:O,on:sA}=vB(H.value,a),J=(0,r.inject)(kr),cA=(0,r.getCurrentInstance)(),aA=(0,r.ref)(!1),oA=(0,r.ref)(!1),iA=(0,r.ref)(""),AA=(0,r.ref)(null),S=(0,r.ref)("source"),eA=(0,r.ref)(null),U=(0,r.toRef)(()=>typeof H.value.selectable>"u"?I.value:H.value.selectable),K=(0,r.toRef)(()=>typeof H.value.updatable>"u"?N.value:H.value.updatable),b=(0,r.toRef)(()=>typeof H.value.focusable>"u"?D.value:H.value.focusable);(0,r.provide)(mB,e.id),(0,r.provide)(wB,eA);const R=(0,r.computed)(()=>H.value.class instanceof Function?H.value.class(H.value):H.value.class),k=(0,r.computed)(()=>H.value.style instanceof Function?H.value.style(H.value):H.value.style),T=(0,r.computed)(()=>{const F=H.value.type||"default",x=J?.[`edge-${F}`];if(x)return x;let z=H.value.template??h.value[F];if(typeof z=="string"&&cA){const G=Object.keys(cA.appContext.components);G&&G.includes(F)&&(z=(0,r.resolveComponent)(F,!1))}return z&&typeof z!="string"?z:(a.error(new ue(se.EDGE_TYPE_MISSING,z)),!1)}),{handlePointerDown:M}=Al({nodeId:iA,handleId:AA,type:S,isValidConnection:m,edgeUpdaterType:S,onEdgeUpdate:BA,onEdgeUpdateEnd:UA});return()=>{const F=w(H.value.source),x=w(H.value.target),z="pathOptions"in H.value?H.value.pathOptions:{};if(!F&&!x)return a.error(new ue(se.EDGE_SOURCE_TARGET_MISSING,H.value.id,H.value.source,H.value.target)),null;if(!F)return a.error(new ue(se.EDGE_SOURCE_MISSING,H.value.id,H.value.source)),null;if(!x)return a.error(new ue(se.EDGE_TARGET_MISSING,H.value.id,H.value.target)),null;if(!H.value||H.value.hidden||F.hidden||x.hidden)return null;let G;n.value===tt.Strict?G=F.handleBounds.source:G=[...F.handleBounds.source||[],...F.handleBounds.target||[]];const dA=Ka(G,H.value.sourceHandle);let gA;n.value===tt.Strict?gA=x.handleBounds.target:gA=[...x.handleBounds.target||[],...x.handleBounds.source||[]];const EA=Ka(gA,H.value.targetHandle),wA=dA?.position||HA.Bottom,DA=EA?.position||HA.Top,{x:MA,y:RA}=nn(F,dA,wA),{x:WA,y:te}=nn(x,EA,DA);return H.value.sourceX=MA,H.value.sourceY=RA,H.value.targetX=WA,H.value.targetY=te,(0,r.h)("g",{ref:eA,key:e.id,"data-id":e.id,class:["vue-flow__edge",`vue-flow__edge-${T.value===!1?"default":H.value.type||"default"}`,d.value,R.value,{updating:aA.value,selected:H.value.selected,animated:H.value.animated,inactive:!U.value&&!P.value.edgeClick.hasListeners()}],tabIndex:b.value?0:void 0,"aria-label":H.value.ariaLabel===null?void 0:H.value.ariaLabel??`Edge from ${H.value.source} to ${H.value.target}`,"aria-describedby":b.value?`${pa}-${A}`:void 0,"aria-roledescription":"edge",role:b.value?"group":"img",...H.value.domAttributes,onClick:W,onContextmenu:$,onDblclick:uA,onMouseenter:mA,onMousemove:bA,onMouseleave:_A,onKeyDown:b.value?_:void 0},[oA.value?null:(0,r.h)(T.value===!1?h.value.default:T.value,{id:e.id,sourceNode:F,targetNode:x,source:H.value.source,target:H.value.target,type:H.value.type,updatable:K.value,selected:H.value.selected,animated:H.value.animated,label:H.value.label,labelStyle:H.value.labelStyle,labelShowBg:H.value.labelShowBg,labelBgStyle:H.value.labelBgStyle,labelBgPadding:H.value.labelBgPadding,labelBgBorderRadius:H.value.labelBgBorderRadius,data:H.value.data,events:{...H.value.events,...sA},style:k.value,markerStart:`url('#${Rn(H.value.markerStart,A)}')`,markerEnd:`url('#${Rn(H.value.markerEnd,A)}')`,sourcePosition:wA,targetPosition:DA,sourceX:MA,sourceY:RA,targetX:WA,targetY:te,sourceHandleId:H.value.sourceHandle,targetHandleId:H.value.targetHandle,interactionWidth:H.value.interactionWidth,...z}),[K.value==="source"||K.value===!0?[(0,r.h)("g",{onMousedown:fA,onMouseenter:Y,onMouseout:tA},(0,r.h)(dl,{position:wA,centerX:MA,centerY:RA,radius:o.value,type:"source","data-type":"source"}))]:null,K.value==="target"||K.value===!0?[(0,r.h)("g",{onMousedown:Z,onMouseenter:Y,onMouseout:tA},(0,r.h)(dl,{position:DA,centerX:WA,centerY:te,radius:o.value,type:"target","data-type":"target"}))]:null]])};function Y(){aA.value=!0}function tA(){aA.value=!1}function BA(F,x){O.update({event:F,edge:H.value,connection:x})}function UA(F){O.updateEnd({event:F,edge:H.value}),oA.value=!1}function nA(F,x){F.button===0&&(oA.value=!0,iA.value=x?H.value.target:H.value.source,AA.value=(x?H.value.targetHandle:H.value.sourceHandle)??null,S.value=x?"target":"source",O.updateStart({event:F,edge:H.value}),M(F))}function W(F){var x;const z={event:F,edge:H.value};U.value&&(u.value=!1,H.value.selected&&v.value?(g([H.value]),(x=eA.value)==null||x.blur()):t([H.value])),O.click(z)}function $(F){O.contextMenu({event:F,edge:H.value})}function uA(F){O.doubleClick({event:F,edge:H.value})}function mA(F){O.mouseEnter({event:F,edge:H.value})}function bA(F){O.mouseMove({event:F,edge:H.value})}function _A(F){O.mouseLeave({event:F,edge:H.value})}function fA(F){nA(F,!0)}function Z(F){nA(F,!1)}function _(F){var x;!y.value&&ma.includes(F.key)&&U.value&&(F.key==="Escape"?((x=eA.value)==null||x.blur(),g([B(e.id)])):t([B(e.id)]))}}}),wp=(0,r.defineComponent)({name:"ConnectionLine",compatConfig:{MODE:3},setup(){var e;const{id:A,connectionMode:t,connectionStartHandle:n,connectionEndHandle:o,connectionPosition:a,connectionLineType:u,connectionLineStyle:d,connectionLineOptions:h,connectionStatus:g,viewport:B,findNode:w}=YA(),m=(e=(0,r.inject)(kr))==null?void 0:e["connection-line"],v=(0,r.computed)(()=>{var P;return w((P=n.value)==null?void 0:P.nodeId)}),y=(0,r.computed)(()=>{var P;return w((P=o.value)==null?void 0:P.nodeId)??null}),I=(0,r.computed)(()=>({x:(a.value.x-B.value.x)/B.value.zoom,y:(a.value.y-B.value.y)/B.value.zoom})),N=(0,r.computed)(()=>h.value.markerStart?`url(#${Rn(h.value.markerStart,A)})`:""),D=(0,r.computed)(()=>h.value.markerEnd?`url(#${Rn(h.value.markerEnd,A)})`:"");return()=>{var P,H,O;if(!v.value||!n.value)return null;const sA=n.value.id,J=n.value.type,cA=v.value.handleBounds;let aA=cA?.[J]??[];if(t.value===tt.Loose){const k=cA?.[J==="source"?"target":"source"]??[];aA=[...aA,...k]}if(!aA)return null;const oA=(sA?aA.find(k=>k.id===sA):aA[0])??null,iA=oA?.position??HA.Top,{x:AA,y:S}=nn(v.value,oA,iA);let eA=null;y.value&&(t.value===tt.Strict?eA=((P=y.value.handleBounds[J==="source"?"target":"source"])==null?void 0:P.find(k=>{var T;return k.id===((T=o.value)==null?void 0:T.id)}))||null:eA=((H=[...y.value.handleBounds.source??[],...y.value.handleBounds.target??[]])==null?void 0:H.find(k=>{var T;return k.id===((T=o.value)==null?void 0:T.id)}))||null);const U=((O=o.value)==null?void 0:O.position)??(iA?wi[iA]:null);if(!iA||!U)return null;const K=u.value??h.value.type??Tt.Bezier;let b="";const R={sourceX:AA,sourceY:S,sourcePosition:iA,targetX:I.value.x,targetY:I.value.y,targetPosition:U};return K===Tt.Bezier?[b]=Ei(R):K===Tt.Step?[b]=Fi({...R,borderRadius:0}):K===Tt.SmoothStep?[b]=Fi(R):K===Tt.SimpleBezier?[b]=al(R):b=`M${AA},${S} ${I.value.x},${I.value.y}`,(0,r.h)("svg",{class:"vue-flow__edges vue-flow__connectionline vue-flow__container"},(0,r.h)("g",{class:"vue-flow__connection"},m?(0,r.h)(m,{sourceX:AA,sourceY:S,sourcePosition:iA,targetX:I.value.x,targetY:I.value.y,targetPosition:U,sourceNode:v.value,sourceHandle:oA,targetNode:y.value,targetHandle:eA,markerEnd:D.value,markerStart:N.value,connectionStatus:g.value}):(0,r.h)("path",{d:b,class:[h.value.class,g.value,"vue-flow__connection-path"],style:{...d.value,...h.value.style},"marker-end":D.value,"marker-start":N.value})))}}}),Cp=["id","markerWidth","markerHeight","markerUnits","orient"],vp=(0,r.defineComponent)({name:"MarkerType",compatConfig:{MODE:3},props:{id:{},type:{},color:{default:"none"},width:{default:12.5},height:{default:12.5},markerUnits:{default:"strokeWidth"},orient:{default:"auto-start-reverse"},strokeWidth:{default:1}},setup(e){return(A,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("marker",{id:A.id,class:"vue-flow__arrowhead",viewBox:"-10 -10 20 20",refX:"0",refY:"0",markerWidth:`${A.width}`,markerHeight:`${A.height}`,markerUnits:A.markerUnits,orient:A.orient},[A.type===(0,r.unref)(nt).ArrowClosed?((0,r.openBlock)(),(0,r.createElementBlock)("polyline",{key:0,style:(0,r.normalizeStyle)({stroke:A.color,fill:A.color,strokeWidth:A.strokeWidth}),"stroke-linecap":"round","stroke-linejoin":"round",points:"-5,-4 0,0 -5,4 -5,-4"},null,4)):(0,r.createCommentVNode)("",!0),A.type===(0,r.unref)(nt).Arrow?((0,r.openBlock)(),(0,r.createElementBlock)("polyline",{key:1,style:(0,r.normalizeStyle)({stroke:A.color,strokeWidth:A.strokeWidth}),"stroke-linecap":"round","stroke-linejoin":"round",fill:"none",points:"-5,-4 0,0 -5,4"},null,4)):(0,r.createCommentVNode)("",!0)],8,Cp))}}),yp={class:"vue-flow__marker vue-flow__container","aria-hidden":"true"},Qp=(0,r.defineComponent)({name:"MarkerDefinitions",compatConfig:{MODE:3},setup(e){const{id:A,edges:t,connectionLineOptions:n,defaultMarkerColor:o}=YA(),a=(0,r.computed)(()=>{const u=new Set,d=[],h=g=>{if(g){const B=Rn(g,A);u.has(B)||(typeof g=="object"?d.push({...g,id:B,color:g.color||o.value}):d.push({id:B,color:o.value,type:g}),u.add(B))}};for(const g of[n.value.markerEnd,n.value.markerStart])h(g);for(const g of t.value)for(const B of[g.markerStart,g.markerEnd])h(B);return d.sort((g,B)=>g.id.localeCompare(B.id))});return(u,d)=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",yp,[(0,r.createElementVNode)("defs",null,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(a.value,h=>((0,r.openBlock)(),(0,r.createBlock)(vp,{id:h.id,key:h.id,type:h.type,color:h.color,width:h.width,height:h.height,markerUnits:h.markerUnits,"stroke-width":h.strokeWidth,orient:h.orient},null,8,["id","type","color","width","height","markerUnits","stroke-width","orient"]))),128))])]))}}),Ep=(0,r.defineComponent)({name:"Edges",compatConfig:{MODE:3},setup(e){const{findNode:A,getEdges:t,elevateEdgesOnSelect:n}=YA();return(o,a)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(Qp),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)((0,r.unref)(t),u=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",{key:u.id,class:"vue-flow__edges vue-flow__container",style:(0,r.normalizeStyle)({zIndex:(0,r.unref)(iB)(u,(0,r.unref)(A),(0,r.unref)(n))})},[(0,r.createVNode)((0,r.unref)(mp),{id:u.id},null,8,["id"])],4))),128)),(0,r.createVNode)((0,r.unref)(wp))],64))}}),Fp=(0,r.defineComponent)({name:"Node",compatConfig:{MODE:3},props:["id","resizeObserver"],setup(e){const{id:A,noPanClassName:t,selectNodesOnDrag:n,nodesSelectionActive:o,multiSelectionActive:a,emits:u,removeSelectedNodes:d,addSelectedNodes:h,updateNodeDimensions:g,onUpdateNodeInternals:B,getNodeTypes:w,nodeExtent:m,elevateNodesOnSelect:v,disableKeyboardA11y:y,ariaLiveMessage:I,snapToGrid:N,snapGrid:D,nodeDragThreshold:P,nodesDraggable:H,elementsSelectable:O,nodesConnectable:sA,nodesFocusable:J,hooks:cA}=YA(),aA=(0,r.ref)(null);(0,r.provide)(ja,aA),(0,r.provide)(Za,e.id);const oA=(0,r.inject)(kr),iA=(0,r.getCurrentInstance)(),AA=tl(),{node:S,parentNode:eA}=el(e.id),{emit:U,on:K}=FB(S,u),b=(0,r.toRef)(()=>typeof S.draggable>"u"?H.value:S.draggable),R=(0,r.toRef)(()=>typeof S.selectable>"u"?O.value:S.selectable),k=(0,r.toRef)(()=>typeof S.connectable>"u"?sA.value:S.connectable),T=(0,r.toRef)(()=>typeof S.focusable>"u"?J.value:S.focusable),M=(0,r.computed)(()=>R.value||b.value||cA.value.nodeClick.hasListeners()||cA.value.nodeDoubleClick.hasListeners()||cA.value.nodeMouseEnter.hasListeners()||cA.value.nodeMouseMove.hasListeners()||cA.value.nodeMouseLeave.hasListeners()),Y=(0,r.toRef)(()=>!!S.dimensions.width&&!!S.dimensions.height),tA=(0,r.computed)(()=>{const x=S.type||"default",z=oA?.[`node-${x}`];if(z)return z;let G=S.template||w.value[x];if(typeof G=="string"&&iA){const dA=Object.keys(iA.appContext.components);dA&&dA.includes(x)&&(G=(0,r.resolveComponent)(x,!1))}return G&&typeof G!="string"?G:(u.error(new ue(se.NODE_TYPE_MISSING,G)),!1)}),BA=qa({id:e.id,el:aA,disabled:()=>!b.value,selectable:R,dragHandle:()=>S.dragHandle,onStart(x){U.dragStart(x)},onDrag(x){U.drag(x)},onStop(x){U.dragStop(x)},onClick(x){_(x)}}),UA=(0,r.computed)(()=>S.class instanceof Function?S.class(S):S.class),nA=(0,r.computed)(()=>{const x=(S.style instanceof Function?S.style(S):S.style)||{},z=S.width instanceof Function?S.width(S):S.width,G=S.height instanceof Function?S.height(S):S.height;return!x.width&&z&&(x.width=typeof z=="string"?z:`${z}px`),!x.height&&G&&(x.height=typeof G=="string"?G:`${G}px`),x}),W=(0,r.toRef)(()=>Number(S.zIndex??nA.value.zIndex??0));return B(x=>{(x.includes(e.id)||!x.length)&&uA()}),(0,r.onMounted)(()=>{(0,r.watch)(()=>S.hidden,(x=!1,z,G)=>{!x&&aA.value&&(e.resizeObserver.observe(aA.value),G(()=>{aA.value&&e.resizeObserver.unobserve(aA.value)}))},{immediate:!0,flush:"post"})}),(0,r.watch)([()=>S.type,()=>S.sourcePosition,()=>S.targetPosition],()=>{(0,r.nextTick)(()=>{g([{id:e.id,nodeElement:aA.value,forceUpdate:!0}])})}),(0,r.watch)([()=>S.position.x,()=>S.position.y,()=>{var x;return(x=eA.value)==null?void 0:x.computedPosition.x},()=>{var x;return(x=eA.value)==null?void 0:x.computedPosition.y},()=>{var x;return(x=eA.value)==null?void 0:x.computedPosition.z},W,()=>S.selected,()=>S.dimensions.height,()=>S.dimensions.width,()=>{var x;return(x=eA.value)==null?void 0:x.dimensions.height},()=>{var x;return(x=eA.value)==null?void 0:x.dimensions.width}],([x,z,G,dA,gA,EA])=>{const wA={x,y:z,z:EA+(v.value&&S.selected?1e3:0)};typeof G<"u"&&typeof dA<"u"?S.computedPosition=AB({x:G,y:dA,z:gA},wA):S.computedPosition=wA},{flush:"post",immediate:!0}),(0,r.watch)([()=>S.extent,m],([x,z],[G,dA])=>{(x!==G||z!==dA)&&$()}),S.extent==="parent"||typeof S.extent=="object"&&"range"in S.extent&&S.extent.range==="parent"?zo(()=>Y).toBe(!0).then($):$(),()=>S.hidden?null:(0,r.h)("div",{ref:aA,"data-id":S.id,class:["vue-flow__node",`vue-flow__node-${tA.value===!1?"default":S.type||"default"}`,{[t.value]:b.value,dragging:BA?.value,draggable:b.value,selected:S.selected,selectable:R.value,parent:S.isParent},UA.value],style:{visibility:Y.value?"visible":"hidden",zIndex:S.computedPosition.z??W.value,transform:`translate(${S.computedPosition.x}px,${S.computedPosition.y}px)`,pointerEvents:M.value?"all":"none",...nA.value},tabIndex:T.value?0:void 0,role:T.value?"group":void 0,"aria-describedby":y.value?void 0:`${Ba}-${A}`,"aria-label":S.ariaLabel,"aria-roledescription":"node",...S.domAttributes,onMouseenter:mA,onMousemove:bA,onMouseleave:_A,onContextmenu:fA,onClick:_,onDblclick:Z,onKeydown:F},[(0,r.h)(tA.value===!1?w.value.default:tA.value,{id:S.id,type:S.type,data:S.data,events:{...S.events,...K},selected:S.selected,resizing:S.resizing,dragging:BA.value,connectable:k.value,position:S.computedPosition,dimensions:S.dimensions,isValidTargetPos:S.isValidTargetPos,isValidSourcePos:S.isValidSourcePos,parent:S.parentNode,parentNodeId:S.parentNode,zIndex:S.computedPosition.z??W.value,targetPosition:S.targetPosition,sourcePosition:S.sourcePosition,label:S.label,dragHandle:S.dragHandle,onUpdateNodeInternals:uA})]);function $(){const x=S.computedPosition,{computedPosition:z,position:G}=Bi(S,N.value?Tr(x,D.value):x,u.error,m.value,eA.value);(S.computedPosition.x!==z.x||S.computedPosition.y!==z.y)&&(S.computedPosition={...S.computedPosition,...z}),(S.position.x!==G.x||S.position.y!==G.y)&&(S.position=G)}function uA(){aA.value&&g([{id:e.id,nodeElement:aA.value,forceUpdate:!0}])}function mA(x){BA?.value||U.mouseEnter({event:x,node:S})}function bA(x){BA?.value||U.mouseMove({event:x,node:S})}function _A(x){BA?.value||U.mouseLeave({event:x,node:S})}function fA(x){return U.contextMenu({event:x,node:S})}function Z(x){return U.doubleClick({event:x,node:S})}function _(x){R.value&&(!n.value||!b.value||P.value>0)&&Ci(S,a.value,h,d,o,!1,aA.value),U.click({event:x,node:S})}function F(x){if(!(fi(x)||y.value))if(ma.includes(x.key)&&R.value){const z=x.key==="Escape";Ci(S,a.value,h,d,o,z,aA.value)}else b.value&&S.selected&&en[x.key]&&(x.preventDefault(),I.value=`Moved selected node ${x.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~S.position.x}, y: ${~~S.position.y}`,AA({x:en[x.key].x,y:en[x.key].y},x.shiftKey))}}}),Up={height:"0",width:"0"},bp=(0,r.defineComponent)({name:"EdgeLabelRenderer",compatConfig:{MODE:3},setup(e){const{viewportRef:A}=YA(),t=(0,r.toRef)(()=>{var n;return(n=A.value)==null?void 0:n.getElementsByClassName("vue-flow__edge-labels")[0]});return(n,o)=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",null,[((0,r.openBlock)(),(0,r.createElementBlock)("foreignObject",Up,[((0,r.openBlock)(),(0,r.createBlock)(r.Teleport,{to:t.value,disabled:!t.value},[(0,r.renderSlot)(n.$slots,"default")],8,["to","disabled"]))]))]))}});function Hp(e={includeHiddenNodes:!1}){const{nodes:A}=YA();return(0,r.computed)(()=>{if(A.value.length===0)return!1;for(const t of A.value)if((e.includeHiddenNodes||!t.hidden)&&(t?.handleBounds===void 0||t.dimensions.width===0||t.dimensions.height===0))return!1;return!0})}var Ip={class:"vue-flow__nodes vue-flow__container"},_p=(0,r.defineComponent)({name:"Nodes",compatConfig:{MODE:3},setup(e){const{getNodes:A,updateNodeDimensions:t,emits:n}=YA(),o=Hp(),a=(0,r.ref)();return(0,r.watch)(o,u=>{u&&(0,r.nextTick)(()=>{n.nodesInitialized(A.value)})},{immediate:!0}),(0,r.onMounted)(()=>{a.value=new ResizeObserver(u=>{const d=u.map(h=>({id:h.target.getAttribute("data-id"),nodeElement:h.target,forceUpdate:!0}));(0,r.nextTick)(()=>t(d))})}),(0,r.onBeforeUnmount)(()=>{var u;return(u=a.value)==null?void 0:u.disconnect()}),(u,d)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",Ip,[a.value?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:0},(0,r.renderList)((0,r.unref)(A),(h,g,B,w)=>{const m=[h.id];if(w&&w.key===h.id&&(0,r.isMemoSame)(w,m))return w;const v=((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Fp),{id:h.id,key:h.id,"resize-observer":a.value},null,8,["id","resize-observer"]));return v.memo=m,v},d,0),128)):(0,r.createCommentVNode)("",!0)]))}});function Sp(){const{emits:e}=YA();(0,r.onMounted)(()=>{if(za()){const A=document.querySelector(".vue-flow__pane");A&&window.getComputedStyle(A).zIndex!=="1"&&e.error(new ue(se.MISSING_STYLES))}})}var xp=(0,r.createElementVNode)("div",{class:"vue-flow__edge-labels"},null,-1),Dp=(0,r.defineComponent)({name:"VueFlow",compatConfig:{MODE:3},props:{id:{},modelValue:{},nodes:{},edges:{},edgeTypes:{},nodeTypes:{},connectionMode:{},connectionLineType:{},connectionLineStyle:{default:void 0},connectionLineOptions:{default:void 0},connectionRadius:{},isValidConnection:{type:[Function,null],default:void 0},deleteKeyCode:{default:void 0},selectionKeyCode:{type:[Boolean,null],default:void 0},multiSelectionKeyCode:{default:void 0},zoomActivationKeyCode:{default:void 0},panActivationKeyCode:{default:void 0},snapToGrid:{type:Boolean,default:void 0},snapGrid:{},onlyRenderVisibleElements:{type:Boolean,default:void 0},edgesUpdatable:{type:[Boolean,String],default:void 0},nodesDraggable:{type:Boolean,default:void 0},nodesConnectable:{type:Boolean,default:void 0},nodeDragThreshold:{},elementsSelectable:{type:Boolean,default:void 0},selectNodesOnDrag:{type:Boolean,default:void 0},panOnDrag:{type:[Boolean,Array],default:void 0},minZoom:{},maxZoom:{},defaultViewport:{},translateExtent:{},nodeExtent:{},defaultMarkerColor:{},zoomOnScroll:{type:Boolean,default:void 0},zoomOnPinch:{type:Boolean,default:void 0},panOnScroll:{type:Boolean,default:void 0},panOnScrollSpeed:{},panOnScrollMode:{},paneClickDistance:{},zoomOnDoubleClick:{type:Boolean,default:void 0},preventScrolling:{type:Boolean,default:void 0},selectionMode:{},edgeUpdaterRadius:{},fitViewOnInit:{type:Boolean,default:void 0},connectOnClick:{type:Boolean,default:void 0},applyDefault:{type:Boolean,default:void 0},autoConnect:{type:[Boolean,Function],default:void 0},noDragClassName:{},noWheelClassName:{},noPanClassName:{},defaultEdgeOptions:{},elevateEdgesOnSelect:{type:Boolean,default:void 0},elevateNodesOnSelect:{type:Boolean,default:void 0},disableKeyboardA11y:{type:Boolean,default:void 0},edgesFocusable:{type:Boolean,default:void 0},nodesFocusable:{type:Boolean,default:void 0},autoPanOnConnect:{type:Boolean,default:void 0},autoPanOnNodeDrag:{type:Boolean,default:void 0},autoPanSpeed:{}},emits:["nodesChange","edgesChange","nodesInitialized","paneReady","init","updateNodeInternals","error","connect","connectStart","connectEnd","clickConnectStart","clickConnectEnd","moveStart","move","moveEnd","selectionDragStart","selectionDrag","selectionDragStop","selectionContextMenu","selectionStart","selectionEnd","viewportChangeStart","viewportChange","viewportChangeEnd","paneScroll","paneClick","paneContextMenu","paneMouseEnter","paneMouseMove","paneMouseLeave","edgeUpdate","edgeContextMenu","edgeMouseEnter","edgeMouseMove","edgeMouseLeave","edgeDoubleClick","edgeClick","edgeUpdateStart","edgeUpdateEnd","nodeContextMenu","nodeMouseEnter","nodeMouseMove","nodeMouseLeave","nodeDoubleClick","nodeClick","nodeDragStart","nodeDrag","nodeDragStop","miniMapNodeClick","miniMapNodeDoubleClick","miniMapNodeMouseEnter","miniMapNodeMouseMove","miniMapNodeMouseLeave","update:modelValue","update:nodes","update:edges"],setup(e,{expose:A,emit:t}){const n=e,o=(0,r.useSlots)(),a=Xo(n,"modelValue",t),u=Xo(n,"nodes",t),d=Xo(n,"edges",t),h=YA(n),g=IB({modelValue:a,nodes:u,edges:d},n,h);return SB(t,h.hooks),hp(),Sp(),(0,r.provide)(kr,o),(0,r.onUnmounted)(g),A(h),(B,w)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{ref:(0,r.unref)(h).vueFlowRef,class:"vue-flow"},[(0,r.createVNode)(cp,null,{default:(0,r.withCtx)(()=>[(0,r.createVNode)(Ep),xp,(0,r.createVNode)(_p),(0,r.renderSlot)(B.$slots,"zoom-pane")]),_:3}),(0,r.renderSlot)(B.$slots,"default"),(0,r.createVNode)(gp)],512))}}),Np=(0,r.defineComponent)({name:"Panel",compatConfig:{MODE:3},props:{position:{}},setup(e){const A=e,{userSelectionActive:t}=YA(),n=(0,r.computed)(()=>`${A.position}`.split("-"));return(o,a)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["vue-flow__panel",n.value]),style:(0,r.normalizeStyle)({pointerEvents:(0,r.unref)(t)?"none":"all"})},[(0,r.renderSlot)(o.$slots,"default")],6))}}),rt=(e=>(e.Lines="lines",e.Dots="dots",e))(rt||{}),Lp=function({dimensions:e,size:A,color:t}){return(0,r.h)("path",{stroke:t,"stroke-width":A,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`})},Tp=function({radius:e,color:A}){return(0,r.h)("circle",{cx:e,cy:e,r:e,fill:A})};rt.Lines,rt.Dots;var kp={[rt.Dots]:"#81818a",[rt.Lines]:"#eee"},Mp=["id","x","y","width","height","patternTransform"],Op={key:2,height:"100",width:"100"},Kp=["fill"],Rp=["x","y","fill"],Vp=(0,r.defineComponent)({name:"Background",compatConfig:{MODE:3},props:{id:{},variant:{default:()=>rt.Dots},gap:{default:20},size:{default:1},lineWidth:{default:1},patternColor:{},color:{},bgColor:{},height:{default:100},width:{default:100},x:{default:0},y:{default:0},offset:{default:0}},setup(e){const{id:A,viewport:t}=YA(),n=(0,r.computed)(()=>{const u=t.value.zoom,[d,h]=Array.isArray(e.gap)?e.gap:[e.gap,e.gap],g=[d*u||1,h*u||1],B=e.size*u,[w,m]=Array.isArray(e.offset)?e.offset:[e.offset,e.offset];return{scaledGap:g,offset:[w*u||1+g[0]/2,m*u||1+g[1]/2],size:B}}),o=(0,r.toRef)(()=>`pattern-${A}${e.id?`-${e.id}`:""}`),a=(0,r.toRef)(()=>e.color||e.patternColor||kp[e.variant||rt.Dots]);return(u,d)=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",{class:"vue-flow__background vue-flow__container",style:(0,r.normalizeStyle)({height:`${u.height>100?100:u.height}%`,width:`${u.width>100?100:u.width}%`})},[(0,r.renderSlot)(u.$slots,"pattern-container",{id:o.value},()=>[(0,r.createElementVNode)("pattern",{id:o.value,x:(0,r.unref)(t).x%n.value.scaledGap[0],y:(0,r.unref)(t).y%n.value.scaledGap[1],width:n.value.scaledGap[0],height:n.value.scaledGap[1],patternTransform:`translate(-${n.value.offset[0]},-${n.value.offset[1]})`,patternUnits:"userSpaceOnUse"},[(0,r.renderSlot)(u.$slots,"pattern",{},()=>[u.variant===(0,r.unref)(rt).Lines?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Lp),{key:0,size:u.lineWidth,color:a.value,dimensions:n.value.scaledGap},null,8,["size","color","dimensions"])):u.variant===(0,r.unref)(rt).Dots?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Tp),{key:1,color:a.value,radius:n.value.size/2},null,8,["color","radius"])):(0,r.createCommentVNode)("",!0),u.bgColor?((0,r.openBlock)(),(0,r.createElementBlock)("svg",Op,[(0,r.createElementVNode)("rect",{width:"100%",height:"100%",fill:u.bgColor},null,8,Kp)])):(0,r.createCommentVNode)("",!0)])],8,Mp)]),(0,r.createElementVNode)("rect",{x:u.x,y:u.y,width:"100%",height:"100%",fill:`url(#${o.value})`},null,8,Rp),(0,r.renderSlot)(u.$slots,"default",{id:o.value})],4))}}),Pp={name:"ControlButton",compatConfig:{MODE:3}},Gp=(e,A)=>{const t=e.__vccOpts||e;for(const[n,o]of A)t[n]=o;return t},zp={type:"button",class:"vue-flow__controls-button"};function Xp(e,A,t,n,o,a){return(0,r.openBlock)(),(0,r.createElementBlock)("button",zp,[(0,r.renderSlot)(e.$slots,"default")])}var Gr=Gp(Pp,[["render",Xp]]),$p={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},Yp=[(0,r.createElementVNode)("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"},null,-1)];function Wp(e,A){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",$p,Yp)}var Jp={render:Wp},Zp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5"},jp=[(0,r.createElementVNode)("path",{d:"M0 0h32v4.2H0z"},null,-1)];function qp(e,A){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",Zp,jp)}var Am={render:qp},em={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30"},tm=[(0,r.createElementVNode)("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0 0 27.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94a.919.919 0 0 1-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"},null,-1)];function nm(e,A){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",em,tm)}var rm={render:nm},om={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},im=[(0,r.createElementVNode)("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"},null,-1)];function sm(e,A){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",om,im)}var am={render:sm},lm={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},cm=[(0,r.createElementVNode)("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047z"},null,-1)];function um(e,A){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",lm,cm)}var dm={render:um},fm=(0,r.defineComponent)({name:"Controls",compatConfig:{MODE:3},props:{showZoom:{type:Boolean,default:!0},showFitView:{type:Boolean,default:!0},showInteractive:{type:Boolean,default:!0},fitViewParams:{},position:{default:()=>ga.BottomLeft}},emits:["zoomIn","zoomOut","fitView","interactionChange"],setup(e,{emit:A}){const{nodesDraggable:t,nodesConnectable:n,elementsSelectable:o,setInteractive:a,zoomIn:u,zoomOut:d,fitView:h,viewport:g,minZoom:B,maxZoom:w}=YA(),m=(0,r.toRef)(()=>t.value||n.value||o.value),v=(0,r.toRef)(()=>g.value.zoom<=B.value),y=(0,r.toRef)(()=>g.value.zoom>=w.value);function I(){u(),A("zoomIn")}function N(){d(),A("zoomOut")}function D(){h(e.fitViewParams),A("fitView")}function P(){a(!m.value),A("interactionChange",!m.value)}return(H,O)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Np),{class:"vue-flow__controls",position:H.position},{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(H.$slots,"top"),H.showZoom?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.renderSlot)(H.$slots,"control-zoom-in",{},()=>[(0,r.createVNode)(Gr,{class:"vue-flow__controls-zoomin",disabled:y.value,onClick:I},{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(H.$slots,"icon-zoom-in",{},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(Jp))))])]),_:3},8,["disabled"])]),(0,r.renderSlot)(H.$slots,"control-zoom-out",{},()=>[(0,r.createVNode)(Gr,{class:"vue-flow__controls-zoomout",disabled:v.value,onClick:N},{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(H.$slots,"icon-zoom-out",{},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(Am))))])]),_:3},8,["disabled"])])],64)):(0,r.createCommentVNode)("",!0),H.showFitView?(0,r.renderSlot)(H.$slots,"control-fit-view",{key:1},()=>[(0,r.createVNode)(Gr,{class:"vue-flow__controls-fitview",onClick:D},{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(H.$slots,"icon-fit-view",{},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(rm))))])]),_:3})]):(0,r.createCommentVNode)("",!0),H.showInteractive?(0,r.renderSlot)(H.$slots,"control-interactive",{key:2},()=>[H.showInteractive?((0,r.openBlock)(),(0,r.createBlock)(Gr,{key:0,class:"vue-flow__controls-interactive",onClick:P},{default:(0,r.withCtx)(()=>[m.value?(0,r.renderSlot)(H.$slots,"icon-unlock",{key:0},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(dm))))]):(0,r.createCommentVNode)("",!0),m.value?(0,r.createCommentVNode)("",!0):(0,r.renderSlot)(H.$slots,"icon-lock",{key:1},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(am))))])]),_:3})):(0,r.createCommentVNode)("",!0)]):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(H.$slots,"default")]),_:3},8,["position"]))}}),gm=["onClick"],hm={class:"d-flow-node-menus-item-name"},Bm=(0,r.defineComponent)({name:"DNodeMenus",__name:"nodeMenus",props:{fromNodeId:{},handleId:{}},emits:["addNode"],setup(e,{emit:A}){const t=e,n=A,o=(0,r.inject)("d_flow_design_provide",{}),a=o.getFlowComponents?.()||[],u=d=>{n("addNode",d.type),(0,r.nextTick)(()=>{t.handleId==="line"?o.addNodeByLine?.(d.type,t.fromNodeId||""):o.addNode?.(d.type,t.fromNodeId||"",t.handleId||"")})};return(d,h)=>{const g=(0,r.resolveComponent)("j-icon");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"d-flow-node-menus",onClick:(0,r.withModifiers)(()=>{},["stop"])},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)((0,r.unref)(a),(B,w)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:w,class:"d-flow-node-menus-item",onClick:m=>u(B)},[(0,r.createElementVNode)("div",{class:"d-flow-node-menus-item-icon",style:(0,r.normalizeStyle)({backgroundColor:B.iconColor||"var(--j-color-primary)"})},[(0,r.createVNode)(g,{icon:B.icon||"mdi:source-branch"},null,8,["icon"])],4),(0,r.createElementVNode)("div",hm,(0,r.toDisplayString)(B.name),1)],8,gm))),128))])}}}),bi=Bm,pm={class:"d-flow-step-name"},mm={key:0,style:{color:"var(--j-color-text-2)"}},wm={style:{color:"var(--j-color-text)"}},Cm=(0,r.defineComponent)({name:"DStepNode",__name:"stepNode",props:{id:{},data:{}},setup(e){const A=e,{onNodeClick:t,onEdgeClick:n,onMoveStart:o,onConnectStart:a,onNodeDragStart:u,removeNodes:d,getEdges:h,getNodes:g,onNodesChange:B}=YA(),w=(0,r.inject)("d_flow_design_provide",{}),m=(0,r.computed)(()=>w.getFlowComponentMap?.value?.[A.data.type]||{}),v=()=>{d(A.id),w.onRemoveNode?.(A.id)},y=(0,r.ref)({});B(eA=>{if(A.data.isInit&&eA.findIndex(U=>U.type==="select"&&U.id===A.id&&U.id==="start"&&U.selected)!==-1){const U=g.value.find(K=>K.id==="start");U&&(U.data.isInit=!1),y.value.s1=!0}});const I=(0,r.ref)(!1),N=eA=>{eA.indexOf("t")!==-1&&!D.value||(I.value=!0,y.value[eA]=!0)},D=(0,r.computed)(()=>h.value.findIndex(eA=>eA.target===A.id)===-1),P=(0,r.ref)(!1),H=()=>{P.value=!0},O=(eA,U)=>{if(h.value.find(b=>b.source===U&&b.target===eA))return!0;const K=h.value.filter(b=>b.target===eA);for(let b=0;b<K.length;b++)if(O(K[b].source,U))return!0;return!1},sA=eA=>P.value?(P.value=!1,!1):O(eA.source,eA.target)?!1:eA.source!==eA.target&&eA.sourceHandle!==eA.targetHandle&&eA.sourceHandle.indexOf("s")!==-1&&eA.targetHandle.indexOf("t")!==-1,J=()=>{AA(),Object.keys(y.value).forEach(eA=>{y.value[eA]=!1})},cA=()=>{J()};t(()=>{console.log("onNodeClick"),I.value?I.value=!1:J()}),n(()=>{J()}),o(()=>{J()}),a(()=>{J()}),u(()=>{J()});const aA=(0,r.ref)(),oA=(0,r.ref)({top:0,left:0,bottom:0,right:0}),iA=(0,r.ref)({getBoundingClientRect:()=>oA.value}),AA=()=>{aA.value?.handleClose()},S=eA=>{const{clientX:U,clientY:K}=eA;oA.value=DOMRect.fromRect({x:U,y:K}),eA.preventDefault(),aA.value?.handleOpen()};return(eA,U)=>{const K=(0,r.resolveComponent)("j-icon"),b=(0,r.resolveComponent)("el-popover"),R=(0,r.resolveComponent)("el-tooltip"),k=(0,r.resolveComponent)("el-dropdown-item"),T=(0,r.resolveComponent)("el-dropdown-menu"),M=(0,r.resolveComponent)("el-dropdown");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"d-flow-step",onContextmenu:(0,r.withModifiers)(S,["stop"])},[(0,r.createElementVNode)("div",{class:"d-flow-step-icon",style:(0,r.normalizeStyle)({backgroundColor:m.value.iconColor||"var(--j-color-primary)"})},[(0,r.createVNode)(K,{icon:m.value.icon||"mdi:source-branch"},null,8,["icon"])],4),(0,r.createElementVNode)("div",pm,(0,r.toDisplayString)(m.value.name),1),e.data.type!=="start"?((0,r.openBlock)(),(0,r.createBlock)(R,{key:0,placement:"top","show-arrow":!1,"popper-class":"d-flow-step-tooltip"},{content:(0,r.withCtx)(()=>[D.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",mm,[...U[4]||(U[4]=[(0,r.createElementVNode)("span",{style:{color:"var(--j-color-text)","font-weight":"bold"}},"点击",-1),(0,r.createTextVNode)("添加节点 ",-1)])])):(0,r.createCommentVNode)("",!0),U[5]||(U[5]=(0,r.createElementVNode)("div",{style:{color:"var(--j-color-text-2)"}},[(0,r.createElementVNode)("span",{style:{color:"var(--j-color-text)","font-weight":"bold"}},"拖拽"),(0,r.createTextVNode)("连接节点 ")],-1))]),default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(rn),{onClick:U[1]||(U[1]=Y=>N("t1")),onMousedown:H,id:"t1",class:(0,r.normalizeClass)(["d-flow-step-target-handle",{"d-flow-step-target-handle-notadd":!D.value}]),type:"target",position:(0,r.unref)(HA).Left,"is-valid-connection":sA},{default:(0,r.withCtx)(()=>[D.value?((0,r.openBlock)(),(0,r.createBlock)(b,{key:0,visible:y.value.t1,"onUpdate:visible":U[0]||(U[0]=Y=>y.value.t1=Y),placement:"left","popper-class":"d-flow-step-popper",trigger:"click","show-arrow":!1,"popper-options":{strategy:"fixed"}},{reference:(0,r.withCtx)(()=>[(0,r.createVNode)(K,{class:"d-flow-step-handle-plus",icon:"mdi:plus-circle"})]),default:(0,r.withCtx)(()=>[(0,r.createVNode)(bi,{"handle-id":"t1","from-node-id":e.id,onAddNode:cA},null,8,["from-node-id"])]),_:1},8,["visible"])):(0,r.createCommentVNode)("",!0)]),_:1},8,["class","position"])]),_:1})):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(R,{placement:"top","show-arrow":!1,"popper-class":"d-flow-step-tooltip"},{content:(0,r.withCtx)(()=>[...U[6]||(U[6]=[(0,r.createElementVNode)("div",{style:{color:"var(--j-color-text-2)"}},[(0,r.createElementVNode)("span",{style:{color:"var(--j-color-text)","font-weight":"bold"}},"点击"),(0,r.createTextVNode)("添加节点 ")],-1),(0,r.createElementVNode)("div",{style:{color:"var(--j-color-text-2)"}},[(0,r.createElementVNode)("span",{style:{color:"var(--j-color-text)","font-weight":"bold"}},"拖拽"),(0,r.createTextVNode)("连接节点 ")],-1)])]),default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(rn),{onClick:U[3]||(U[3]=Y=>N("s1")),onMousedown:H,id:"s1",class:"d-flow-step-source-handle",type:"source",position:(0,r.unref)(HA).Right,"is-valid-connection":sA},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(b,{visible:y.value.s1,"onUpdate:visible":U[2]||(U[2]=Y=>y.value.s1=Y),placement:"right",trigger:"click","popper-class":"d-flow-step-popper","show-arrow":!1,"popper-options":{strategy:"fixed"}},{reference:(0,r.withCtx)(()=>[(0,r.createVNode)(K,{class:"d-flow-step-handle-plus",icon:"mdi:plus-circle"})]),default:(0,r.withCtx)(()=>[(0,r.createVNode)(bi,{"handle-id":"s1","from-node-id":e.id,onAddNode:cA},null,8,["from-node-id"])]),_:1},8,["visible"])]),_:1},8,["position"])]),_:1}),(0,r.createVNode)(M,{ref_key:"dropdownRef",ref:aA,"popper-class":"d-flow-step-dropdown","virtual-ref":iA.value,"show-arrow":!1,"popper-options":{modifiers:[{name:"offset",options:{offset:[0,0]}}]},"virtual-triggering":"",trigger:"contextmenu",placement:"bottom-start"},{dropdown:(0,r.withCtx)(()=>[(0,r.createVNode)(T,null,{default:(0,r.withCtx)(()=>[e.data.type!="start"?((0,r.openBlock)(),(0,r.createBlock)(k,{key:0,onClick:v},{default:(0,r.withCtx)(()=>[...U[7]||(U[7]=[(0,r.createTextVNode)("删除",-1)])]),_:1})):(0,r.createCommentVNode)("",!0),m.value.des?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:1,style:(0,r.normalizeStyle)({width:"160px",padding:"4px 16px 0 16px","font-size":"12px","border-top":e.data.type!="start"?"1px solid var(--j-color-border)":void 0,"margin-top":e.data.type!="start"?"4px":void 0})},[U[8]||(U[8]=(0,r.createElementVNode)("div",{style:{"margin-bottom":"4px",color:"var(--j-color-text-2)"}},"关于",-1)),(0,r.createElementVNode)("div",wm,(0,r.toDisplayString)(m.value.des),1)],4)):(0,r.createCommentVNode)("",!0)]),_:1})]),_:1},8,["virtual-ref"])],32)}}}),vm=Cm,ym=(0,r.defineComponent)({name:"DEdgeWithButton",__name:"edgeWithButton",props:{id:{},sourceX:{},sourceY:{},targetX:{},targetY:{},sourcePosition:{},targetPosition:{},markerEnd:{},style:{}},setup(e){const A=e,{onEdgeMouseEnter:t,onEdgeMouseLeave:n,onNodeClick:o,onEdgeClick:a,onMoveStart:u,onConnectStart:d,onNodeDragStart:h}=YA(),g=(0,r.computed)(()=>Ei(A)),B=(0,r.ref)(!1),w=(0,r.ref)(!1);t(({edge:N})=>{N.id===A.id&&(B.value=!0)}),n(()=>{B.value=!1});const m=(0,r.ref)(!1),v=()=>{m.value=!1,(0,r.nextTick)(()=>{w.value=!1})},y=()=>{w.value=!0,m.value=!0},I=()=>{v()};return o(()=>{v()}),a(()=>{v()}),u(()=>{v()}),d(()=>{v()}),h(()=>{v()}),(N,D)=>{const P=(0,r.resolveComponent)("j-icon"),H=(0,r.resolveComponent)("el-popover");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)((0,r.unref)(Pn),{id:e.id,style:(0,r.normalizeStyle)(e.style),path:g.value[0],"marker-end":e.markerEnd},null,8,["id","style","path","marker-end"]),(0,r.createVNode)((0,r.unref)(bp),null,{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({pointerEvents:"all",position:"absolute",transform:`translate(-50%, -50%) translate(${g.value[1]}px,${g.value[2]}px)`}),class:"nodrag nopan"},[(0,r.createVNode)(H,{visible:m.value,"show-arrow":!1,placement:"right","popper-class":"d-flow-step-popper"},{reference:(0,r.withCtx)(()=>[(0,r.withDirectives)((0,r.createElementVNode)("div",{onClick:(0,r.withModifiers)(y,["stop"]),class:"d-flow-edge-button"},[(0,r.createVNode)(P,{icon:"mdi:plus-circle"})],512),[[r.vShow,B.value||w.value]])]),default:(0,r.withCtx)(()=>[(0,r.createVNode)(bi,{"handle-id":"line","from-node-id":e.id,onAddNode:I},null,8,["from-node-id"])]),_:1},8,["visible"])],4)]),_:1})],64)}}}),Qm=ym,Em=(0,r.defineComponent)({name:"DFlow",__name:"flow",props:{nodes:{default:()=>[]},edges:{default:()=>[]}},setup(e){return(A,t)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Dp),{"min-zoom":.2,"max-zoom":4,"default-viewport":{zoom:1},"connection-mode":(0,r.unref)(tt).Strict,nodes:e.nodes,edges:e.edges},{"edge-button":(0,r.withCtx)(n=>[(0,r.createVNode)(Qm,{id:n.id,"source-x":n.sourceX,"source-y":n.sourceY,"target-x":n.targetX,"target-y":n.targetY,"source-position":n.sourcePosition,"target-position":n.targetPosition,"marker-end":n.markerEnd,style:(0,r.normalizeStyle)(n.style)},null,8,["id","source-x","source-y","target-x","target-y","source-position","target-position","marker-end","style"])]),"node-step":(0,r.withCtx)(n=>[(0,r.createVNode)(vm,(0,r.normalizeProps)((0,r.guardReactiveProps)(n)),null,16)]),default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(fm),{position:"bottom-left"}),(0,r.createVNode)((0,r.unref)(Vp))]),_:1},8,["connection-mode","nodes","edges"]))}}),Fm=Em,Um={class:"d-flow-design"},bm={class:"d-flow-design-canvas"},Hm={class:"d-flow-design-right"},Im={class:"d-flow-design-title"},_m={class:"d-flow-design-title-name"},Sm={class:"d-flow-design-panel"},xm=(0,r.defineComponent)({name:"DFlowDesign",__name:"flowDesign",props:{components:{default:()=>[]},inputParams:{default:()=>({})},flowInit:{},flowComponentConfigInit:{},flowComponentConfigs:{default:()=>({})},flowComponentConfigChange:{}},emits:["nodeClick","edgeClick","paneClick","connect"],setup(e,{expose:A,emit:t}){const n=e,o=t,{addNodes:a,addEdges:u,removeEdges:d,addSelectedNodes:h,removeSelectedNodes:g,onConnect:B,onNodeClick:w,onPaneClick:m,onEdgeClick:v,getNodes:y,getEdges:I}=YA(),N=(0,r.computed)(()=>{const T={};return n.components.forEach(M=>{T[M.type]=M}),T.start={name:"开始",type:"start",icon:"ant-design:play-circle-outlined",des:"执行开始节点"},T}),D={id:"start",type:"step",data:{type:"start",isInit:!1},position:{x:80,y:160}},P=(0,r.ref)([D]),H=(0,r.ref)([]),O=(T,M)=>{if(M.indexOf("t")===-1){const Y=I.value.filter(tA=>tA.source===T.id);if(Y.length>0){let tA=-1e6,BA=0;return Y.forEach(UA=>{tA=Math.max(tA,UA.targetNode.position.y+UA.targetNode.dimensions.height+32),BA=UA.targetNode.position.x||0}),{x:BA,y:tA}}return{x:T.position.x+T.dimensions.width+100,y:T.position.y}}return{x:T.position.x-100-T.dimensions.width,y:T.position.y}},sA=(T,M,Y)=>{const tA=y.value.find(UA=>UA.id===M);if(!tA)return;const BA={id:gt(),type:"step",data:{type:T},position:O(tA,Y)};if(n.flowInit){const UA=n.flowInit(BA.data.type);UA&&Object.keys(UA).forEach(nA=>{BA.data[nA]=UA[nA]})}a(BA),Y.indexOf("t")===-1?u({id:`${M}-${BA.id}`,source:M,target:BA.id,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:nt.Arrow}):u({id:`${M}-${BA.id}`,source:BA.id,target:M,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:nt.Arrow}),S(BA.id)},J=T=>{const M=y.value.find(Y=>Y.id===T);M&&(M.position.x+=100+M.dimensions.width,I.value.filter(Y=>Y.source===T).forEach(Y=>{J(Y.target)}))},cA=(T,M)=>{const Y=I.value.find(BA=>BA.id===M);if(!Y)return;const tA={id:gt(),type:"step",data:{type:T},position:{x:Y.targetNode.position.x,y:Y.targetNode.position.y}};if(n.flowInit){const BA=n.flowInit(tA.data.type);BA&&Object.keys(BA).forEach(UA=>{tA.data[UA]=BA[UA]})}a(tA),u({id:`${Y.sourceNode.id}-${tA.id}`,source:Y.sourceNode.id,target:tA.id,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:nt.Arrow}),u({id:`${tA.id}-${Y.targetNode.id}`,source:tA.id,target:Y.targetNode.id,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:nt.Arrow}),d(M),J(Y.target),S(tA.id)};B(T=>{console.log("onConnect",T),T.type="button",T.markerEnd=nt.Arrow,u(T),o("connect",T)});const aA=()=>n.components||[],oA=(0,r.ref)(),iA=(0,r.computed)(()=>oA.value?N.value[oA.value.data.type]:void 0);w(T=>{oA.value?.id!==T.node.id&&(oA.value=T.node,K()),o("nodeClick",T.node)}),m(()=>{oA.value=void 0,o("paneClick")}),v(T=>{oA.value=void 0,o("edgeClick",T.edge)});const AA=T=>{oA.value?.id===T&&(oA.value=void 0)},S=T=>{oA.value&&g([oA.value]),oA.value=y.value.find(M=>M.id===T),oA.value&&(K(),setTimeout(()=>{oA.value&&h([oA.value])},100))},eA=(0,r.ref)(),U={};Object.keys(n.flowComponentConfigs).forEach(T=>{const M={type:"j-collapse",config:{defaultValue:[]},children:[]};n.flowComponentConfigs[T].forEach((Y,tA)=>{const BA=`_collapse${tA}`;M.config?.defaultValue.push(BA),M.children?.push(Y)}),U[T]=[M]});const K=()=>{const T=U[oA.value?.data.type||""];T&&eA.value?(eA.value.init&&eA.value.init(T,oA.value?.data),n.flowComponentConfigInit&&n.flowComponentConfigInit({configRef:eA,inputParams:n.inputParams,components:y.value,configData:oA.value?.data})):eA.value&&eA.value.init&&eA.value.init([])},b=(T,M)=>{oA.value&&n.flowComponentConfigChange&&n.flowComponentConfigChange(oA.value.data.type,{configRef:eA,component:T,configData:oA.value.data,...M,isFlowNode:!0})};return(0,r.provide)("d_flow_design_provide",{getFlowComponents:aA,addNode:sA,addNodeByLine:cA,onRemoveNode:AA,getFlowComponentMap:N}),A({getData:()=>{const T=[];return y.value.forEach(M=>{T.push({config:M.data,id:M.id,position:M.position,type:M.type})}),I.value.forEach(M=>{T.push({id:M.id,source:M.source,target:M.target,sourceHandle:M.sourceHandle,targetHandle:M.targetHandle,type:"line",config:{},position:{x:0,y:0}})}),T},setData:T=>{if(!T||T.length===0)D.data.isInit=!0,P.value=[D],S(D.id);else{D.data.isInit=!1;const M=[],Y=[];T.forEach(tA=>{if(tA.type==="line")tA.type="button",tA.markerEnd=nt.Arrow,Y.push(tA);else{const BA={id:tA.id,type:tA.type,data:tA.config,position:tA.position};M.push(BA)}}),P.value=M,H.value=Y}}}),(T,M)=>{const Y=(0,r.resolveComponent)("j-icon"),tA=(0,r.resolveComponent)("j-form");return(0,r.openBlock)(),(0,r.createElementBlock)("div",Um,[(0,r.createElementVNode)("div",bm,[(0,r.createVNode)(Fm,{nodes:P.value,edges:H.value},null,8,["nodes","edges"])]),(0,r.withDirectives)((0,r.createElementVNode)("div",Hm,[(0,r.createElementVNode)("div",Im,[(0,r.createElementVNode)("div",{class:"d-flow-design-title-icon",style:(0,r.normalizeStyle)({backgroundColor:iA.value?.iconColor||"var(--j-color-primary)"})},[(0,r.createVNode)(Y,{icon:iA.value?.icon||"mdi:source-branch"},null,8,["icon"])],4),(0,r.createElementVNode)("div",_m,(0,r.toDisplayString)(iA.value?.name||""),1)]),(0,r.createElementVNode)("div",Sm,[(0,r.createVNode)(tA,{config:{labelPosition:"top"},style:{padding:"0"},ref_key:"configRef",ref:eA,onChange:b},null,512)])],512),[[r.vShow,oA.value&&U[oA.value.data.type]]])])}}}),Dm=xm,fl=ft(Dm),Nm={class:"d-input-flow j-block"},Lm=(0,r.defineComponent)({name:"DInputFlow",__name:"inputFlow",props:{modelValue:{},type:{},btnText:{default:"事件"},title:{},size:{default:"default"},width:{default:1200},height:{default:800},beforeClose:{},flowComponents:{default:()=>[]},inputParams:{default:()=>({})},flowInit:{},flowComponentConfigInit:{},flowComponentConfigs:{default:()=>({})},flowComponentConfigChange:{}},emits:["update:modelValue","change"],setup(e,{emit:A}){const t=e,n=A,o=(0,r.ref)(),a=(0,r.computed)({get(){return t.modelValue},set(w){n("update:modelValue",w)}}),u=(0,r.computed)(()=>(t.modelValue?.trim(),t.btnText)),d=w=>{const m=typeof w=="string"?w:void 0;try{o.value?.setData(JSON.parse(m||"[]"))}catch{o.value?.setData([])}},h=async()=>{const w=o.value?.getData();return w?JSON.stringify(w):void 0},g=w=>{if(t.beforeClose){const m=typeof w=="string"?w:void 0;return t.beforeClose(m)}return!0},B=w=>{const m=w.value;n("change",{value:typeof m=="string"?m:void 0})};return(w,m)=>{const v=(0,r.resolveComponent)("d-flow-design"),y=(0,r.resolveComponent)("j-input-button");return(0,r.openBlock)(),(0,r.createBlock)(y,(0,r.mergeProps)(w.$attrs,{type:e.type,"btn-text":u.value,title:e.title,size:e.size,width:e.width,height:e.height,"before-close":g,ok:h,open:d,"destroy-on-close":"",modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=I=>a.value=I),onChange:B}),{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",Nm,[(0,r.createVNode)(v,{ref_key:"flowRef",ref:o,components:e.flowComponents,"flow-init":e.flowInit,"flow-component-config-init":e.flowComponentConfigInit,"flow-component-configs":e.flowComponentConfigs,"flow-component-config-change":e.flowComponentConfigChange,"input-params":e.inputParams},null,8,["components","flow-init","flow-component-config-init","flow-component-configs","flow-component-config-change","input-params"])])]),_:1},16,["type","btn-text","title","size","width","height","modelValue"])}}}),Tm=Lm,gl=ft(Tm),q=class Ne{static getElements(A,t=document){if(typeof A=="string"){const n="getElementById"in t?t:void 0;if(n&&!isNaN(+A[0])){const a=n.getElementById(A);return a?[a]:[]}let o=t.querySelectorAll(A);if(!o.length&&A[0]!=="."&&A[0]!=="#"&&(o=t.querySelectorAll("."+A),o.length||(o=t.querySelectorAll("#"+A)),!o.length)){const a=t.querySelector(`[gs-id="${A}"]`);return a?[a]:[]}return Array.from(o)}return[A]}static getElement(A,t=document){if(typeof A=="string"){const n="getElementById"in t?t:void 0;if(!A.length)return null;if(n&&A[0]==="#")return n.getElementById(A.substring(1));if(A[0]==="#"||A[0]==="."||A[0]==="[")return t.querySelector(A);if(n&&!isNaN(+A[0]))return n.getElementById(A);let o=t.querySelector(A);return n&&!o&&(o=n.getElementById(A)),o||(o=t.querySelector("."+A)),o}return A}static lazyLoad(A){return A.lazyLoad||A.grid?.opts?.lazyLoad&&A.lazyLoad!==!1}static createDiv(A,t){const n=document.createElement("div");return A.forEach(o=>{o&&n.classList.add(o)}),t?.appendChild(n),n}static shouldSizeToContent(A,t=!1){return A?.grid&&(t?A.sizeToContent===!0||A.grid.opts.sizeToContent===!0&&A.sizeToContent===void 0:!!A.sizeToContent||A.grid.opts.sizeToContent&&A.sizeToContent!==!1)}static isIntercepted(A,t){return!(A.y>=t.y+t.h||A.y+A.h<=t.y||A.x+A.w<=t.x||A.x>=t.x+t.w)}static isTouching(A,t){return Ne.isIntercepted(A,{x:t.x-.5,y:t.y-.5,w:t.w+1,h:t.h+1})}static areaIntercept(A,t){const n=A.x>t.x?A.x:t.x,o=A.x+A.w<t.x+t.w?A.x+A.w:t.x+t.w;if(o<=n)return 0;const a=A.y>t.y?A.y:t.y,u=A.y+A.h<t.y+t.h?A.y+A.h:t.y+t.h;return u<=a?0:(o-n)*(u-a)}static area(A){return A.w*A.h}static sort(A,t=1){return A.sort((o,a)=>{const u=t*((o.y??1e4)-(a.y??1e4));return u===0?t*((o.x??1e4)-(a.x??1e4)):u})}static find(A,t){return t?A.find(n=>n.id===t):void 0}static toBool(A){return typeof A=="boolean"?A:typeof A=="string"?(A=A.toLowerCase(),!(A===""||A==="no"||A==="false"||A==="0")):!!A}static toNumber(A){return A===null||A.length===0?void 0:Number(A)}static parseHeight(A){let t,n="px";if(typeof A=="string")if(A==="auto"||A==="")t=0;else{const o=A.match(/^(-[0-9]+\.[0-9]+|[0-9]*\.[0-9]+|-[0-9]+|[0-9]+)(px|em|rem|vh|vw|%|cm|mm)?$/);if(!o)throw new Error(`Invalid height val = ${A}`);n=o[2]||"px",t=parseFloat(o[1])}else t=A;return{h:t,unit:n}}static defaults(A,...t){return t.forEach(n=>{for(const o in n){if(!n.hasOwnProperty(o))return;A[o]===null||A[o]===void 0?A[o]=n[o]:typeof n[o]=="object"&&typeof A[o]=="object"&&Ne.defaults(A[o],n[o])}}),A}static same(A,t){if(typeof A!="object")return A==t;if(typeof A!=typeof t||Object.keys(A).length!==Object.keys(t).length)return!1;for(const n in A)if(A[n]!==t[n])return!1;return!0}static copyPos(A,t,n=!1){return t.x!==void 0&&(A.x=t.x),t.y!==void 0&&(A.y=t.y),t.w!==void 0&&(A.w=t.w),t.h!==void 0&&(A.h=t.h),n&&(t.minW&&(A.minW=t.minW),t.minH&&(A.minH=t.minH),t.maxW&&(A.maxW=t.maxW),t.maxH&&(A.maxH=t.maxH)),A}static samePos(A,t){return A&&t&&A.x===t.x&&A.y===t.y&&(A.w||1)===(t.w||1)&&(A.h||1)===(t.h||1)}static sanitizeMinMax(A){A.minW||delete A.minW,A.minH||delete A.minH,A.maxW||delete A.maxW,A.maxH||delete A.maxH}static removeInternalAndSame(A,t){if(!(typeof A!="object"||typeof t!="object")&&!(Array.isArray(A)||Array.isArray(t)))for(let n in A){const o=A[n],a=t[n];n[0]==="_"||o===a?delete A[n]:o&&typeof o=="object"&&a!==void 0&&(Ne.removeInternalAndSame(o,a),Object.keys(o).length||delete A[n])}}static removeInternalForSave(A,t=!0){for(let n in A)(n[0]==="_"||A[n]===null||A[n]===void 0)&&delete A[n];delete A.grid,t&&delete A.el,A.autoPosition||delete A.autoPosition,A.noResize||delete A.noResize,A.noMove||delete A.noMove,A.locked||delete A.locked,(A.w===1||A.w===A.minW)&&delete A.w,(A.h===1||A.h===A.minH)&&delete A.h}static throttle(A,t){let n=!1;return(...o)=>{n||(n=!0,setTimeout(()=>{A(...o),n=!1},t))}}static removePositioningStyles(A){const t=A.style;t.position&&t.removeProperty("position"),t.left&&t.removeProperty("left"),t.top&&t.removeProperty("top"),t.width&&t.removeProperty("width"),t.height&&t.removeProperty("height")}static getScrollElement(A){if(!A)return document.scrollingElement||document.documentElement;const t=getComputedStyle(A);return/(auto|scroll)/.test(t.overflow+t.overflowY)?A:Ne.getScrollElement(A.parentElement)}static updateScrollPosition(A,t,n){const o=Ne.getScrollElement(A);if(!o)return;const a=A.getBoundingClientRect(),u=o.getBoundingClientRect(),d=window.innerHeight||document.documentElement.clientHeight,h=a.bottom-Math.min(u.bottom,d),g=a.top-Math.max(u.top,0),B=o.scrollTop;g<0&&n<0?A.offsetHeight>u.height?o.scrollTop+=n:o.scrollTop+=Math.abs(g)>Math.abs(n)?n:g:h>0&&n>0&&(A.offsetHeight>u.height?o.scrollTop+=n:o.scrollTop+=h>n?n:h),t.top+=o.scrollTop-B}static updateScrollResize(A,t,n){const o=Ne.getScrollElement(t),a=o.clientHeight,u=o===Ne.getScrollElement()?0:o.getBoundingClientRect().top,d=A.clientY-u,h=d<n,g=d>a-n;h?o.scrollBy({behavior:"smooth",top:d-n}):g&&o.scrollBy({behavior:"smooth",top:n-(a-d)})}static clone(A){return A==null||typeof A!="object"?A:A instanceof Array?[...A]:{...A}}static cloneDeep(A){const t=["parentGrid","el","grid","subGrid","engine"],n=Ne.clone(A);for(const o in n)n.hasOwnProperty(o)&&typeof n[o]=="object"&&o.substring(0,2)!=="__"&&!t.find(a=>a===o)&&(n[o]=Ne.cloneDeep(A[o]));return n}static cloneNode(A){const t=A.cloneNode(!0);return t.removeAttribute("id"),t}static appendTo(A,t){let n;typeof t=="string"?n=Ne.getElement(t):n=t,n&&n.appendChild(A)}static addElStyles(A,t){if(t instanceof Object)for(const n in t)t.hasOwnProperty(n)&&(Array.isArray(t[n])?t[n].forEach(o=>{A.style[n]=o}):A.style[n]=t[n])}static initEvent(A,t){const n={type:t.type},o={button:0,which:0,buttons:1,bubbles:!0,cancelable:!0,target:t.target?t.target:A.target};return["altKey","ctrlKey","metaKey","shiftKey"].forEach(a=>n[a]=A[a]),["pageX","pageY","clientX","clientY","screenX","screenY"].forEach(a=>n[a]=A[a]),{...n,...o}}static simulateMouseEvent(A,t,n){const o=A,a=new MouseEvent(t,{bubbles:!0,composed:!0,cancelable:!0,view:window,detail:1,screenX:A.screenX,screenY:A.screenY,clientX:A.clientX,clientY:A.clientY,ctrlKey:o.ctrlKey??!1,altKey:o.altKey??!1,shiftKey:o.shiftKey??!1,metaKey:o.metaKey??!1,button:0,relatedTarget:A.target});(n||A.target).dispatchEvent(a)}static getValuesFromTransformedElement(A){const t=document.createElement("div");Ne.addElStyles(t,{opacity:"0",position:"fixed",top:"0px",left:"0px",width:"1px",height:"1px",zIndex:"-999999"}),A.appendChild(t);const n=t.getBoundingClientRect();return A.removeChild(t),t.remove(),{xScale:1/n.width,yScale:1/n.height,xOffset:n.left,yOffset:n.top}}static swap(A,t,n){if(!A)return;const o=A[t];A[t]=A[n],A[n]=o}static canBeRotated(A){return!(!A||A.w===A.h||A.locked||A.noResize||A.grid?.opts.disableResize||A.minW&&A.minW===A.maxW||A.minH&&A.minH===A.maxH)}},Hi=class yn{constructor(A={}){this.addedNodes=[],this.removedNodes=[],this.defaultColumn=12,this.column=A.column||this.defaultColumn,this.column>this.defaultColumn&&(this.defaultColumn=this.column),this.maxRow=A.maxRow,this._float=A.float,this.nodes=A.nodes||[],this.onChange=A.onChange}batchUpdate(A=!0,t=!0){return!!this.batchMode===A?this:(this.batchMode=A,A?(this._prevFloat=this._float,this._float=!0,this.cleanNodes(),this.saveInitial()):(this._float=this._prevFloat,delete this._prevFloat,t&&this._packNodes(),this._notify()),this)}_useEntireRowArea(A,t){return(!this.float||this.batchMode&&!this._prevFloat)&&!this._hasLocked&&(!A._moving||A._skipDown||t.y<=A.y)}_fixCollisions(A,t=A,n,o={}){if(this.sortNodes(-1),n=n||this.collide(A,t),!n)return!1;if(A._moving&&!o.nested&&!this.float&&this.swap(A,n))return!0;let a=t;!this._loading&&this._useEntireRowArea(A,t)&&(a={x:0,w:this.column,y:t.y,h:t.h},n=this.collide(A,a,o.skip));let u=!1;const d={nested:!0,pack:!1};let h=0;for(;n=n||this.collide(A,a,o.skip);){if(h++>this.nodes.length*2)throw new Error("Infinite collide check");let g;if(n.locked||this._loading||A._moving&&!A._skipDown&&t.y>A.y&&!this.float&&(!this.collide(n,{...n,y:A.y},A)||!this.collide(n,{...n,y:t.y-n.h},A))){A._skipDown=A._skipDown||t.y>A.y;const B={...t,y:n.y+n.h,...d};g=this._loading&&q.samePos(A,B)?!0:this.moveNode(A,B),(n.locked||this._loading)&&g?q.copyPos(t,A):!n.locked&&g&&o.pack&&(this._packNodes(),t.y=n.y+n.h,q.copyPos(A,t)),u=u||g}else g=this.moveNode(n,{...n,y:t.y+t.h,skip:A,...d});if(!g)return u;n=void 0}return u}collide(A,t=A,n){const o=A._id,a=n?._id;return this.nodes.find(u=>u._id!==o&&u._id!==a&&q.isIntercepted(u,t))}collideAll(A,t=A,n){const o=A._id,a=n?._id;return this.nodes.filter(u=>u._id!==o&&u._id!==a&&q.isIntercepted(u,t))}directionCollideCoverage(A,t,n){if(!t.rect||!A._rect)return;const o=A._rect,a={...t.rect};a.y>o.y?(a.h+=a.y-o.y,a.y=o.y):a.h+=o.y-a.y,a.x>o.x?(a.w+=a.x-o.x,a.x=o.x):a.w+=o.x-a.x;let u,d=.5;for(let h of n){if(h.locked||!h._rect)break;const g=h._rect;let B=Number.MAX_VALUE,w=Number.MAX_VALUE;o.y<g.y?B=(a.y+a.h-g.y)/g.h:o.y+o.h>g.y+g.h&&(B=(g.y+g.h-a.y)/g.h),o.x<g.x?w=(a.x+a.w-g.x)/g.w:o.x+o.w>g.x+g.w&&(w=(g.x+g.w-a.x)/g.w);const m=Math.min(w,B);m>d&&(d=m,u=h)}return t.collide=u,u}cacheRects(A,t,n,o,a,u){return this.nodes.forEach(d=>d._rect={y:d.y*t+n,x:d.x*A+u,w:d.w*A-u-o,h:d.h*t-n-a}),this}swap(A,t){if(!t||t.locked||!A||A.locked)return!1;function n(){const a=t.x,u=t.y;return t.x=A.x,t.y=A.y,A.h!=t.h?(A.x=a,A.y=t.y+t.h):A.w!=t.w?(A.x=t.x+t.w,A.y=u):(A.x=a,A.y=u),A._dirty=t._dirty=!0,!0}let o;if(A.w===t.w&&A.h===t.h&&(A.x===t.x||A.y===t.y)&&(o=q.isTouching(A,t)))return n();if(o!==!1){if(A.w===t.w&&A.x===t.x&&(o||(o=q.isTouching(A,t)))){if(t.y<A.y){const a=A;A=t,t=a}return n()}if(o!==!1){if(A.h===t.h&&A.y===t.y&&(o||(o=q.isTouching(A,t)))){if(t.x<A.x){const a=A;A=t,t=a}return n()}return!1}}}isAreaEmpty(A,t,n,o){const a={x:A||0,y:t||0,w:n||1,h:o||1};return!this.collide(a)}compact(A="compact",t=!0){if(this.nodes.length===0)return this;t&&this.sortNodes();const n=this.batchMode;n||this.batchUpdate();const o=this._inColumnResize;o||(this._inColumnResize=!0);const a=this.nodes;return this.nodes=[],a.forEach((u,d,h)=>{let g;u.locked||(u.autoPosition=!0,A==="list"&&d&&(g=h[d-1])),this.addNode(u,!1,g)}),o||delete this._inColumnResize,n||this.batchUpdate(!1),this}set float(A){this._float!==A&&(this._float=A||!1,A||this._packNodes()._notify())}get float(){return this._float||!1}sortNodes(A=1){return this.nodes=q.sort(this.nodes,A),this}_packNodes(){return this.batchMode?this:(this.sortNodes(),this.float?this.nodes.forEach(A=>{if(A._updating||A._orig===void 0||A.y===A._orig.y)return;let t=A.y;for(;t>A._orig.y;)--t,this.collide(A,{x:A.x,y:t,w:A.w,h:A.h})||(A._dirty=!0,A.y=t)}):this.nodes.forEach((A,t)=>{if(!A.locked)for(;A.y>0;){const n=t===0?0:A.y-1;if(!(t===0||!this.collide(A,{x:A.x,y:n,w:A.w,h:A.h})))break;A._dirty=A.y!==n,A.y=n}}),this)}prepareNode(A,t){A._id=A._id??yn._idSeq++;const n=A.id;if(n){let a=1;for(;this.nodes.find(u=>u.id===A.id&&u!==A);)A.id=n+"_"+a++}(A.x===void 0||A.y===void 0||A.x===null||A.y===null)&&(A.autoPosition=!0);const o={x:0,y:0,w:1,h:1};return q.defaults(A,o),A.autoPosition||delete A.autoPosition,A.noResize||delete A.noResize,A.noMove||delete A.noMove,q.sanitizeMinMax(A),typeof A.x=="string"&&(A.x=Number(A.x)),typeof A.y=="string"&&(A.y=Number(A.y)),typeof A.w=="string"&&(A.w=Number(A.w)),typeof A.h=="string"&&(A.h=Number(A.h)),isNaN(A.x)&&(A.x=o.x,A.autoPosition=!0),isNaN(A.y)&&(A.y=o.y,A.autoPosition=!0),isNaN(A.w)&&(A.w=o.w),isNaN(A.h)&&(A.h=o.h),this.nodeBoundFix(A,t),A}nodeBoundFix(A,t){const n=A._orig||q.copyPos({},A);if(A.maxW&&(A.w=Math.min(A.w||1,A.maxW)),A.maxH&&(A.h=Math.min(A.h||1,A.maxH)),A.minW&&(A.w=Math.max(A.w||1,A.minW)),A.minH&&(A.h=Math.max(A.h||1,A.minH)),(A.x||0)+(A.w||1)>this.column&&this.column<this.defaultColumn&&!this._inColumnResize&&!this.skipCacheUpdate&&A._id!=null&&this.findCacheLayout(A,this.defaultColumn)===-1){const o={...A};o.autoPosition||o.x===void 0?(delete o.x,delete o.y):o.x=Math.min(this.defaultColumn-1,o.x),o.w=Math.min(this.defaultColumn,o.w||1),this.cacheOneLayout(o,this.defaultColumn)}return A.w>this.column?A.w=this.column:A.w<1&&(A.w=1),this.maxRow&&A.h>this.maxRow?A.h=this.maxRow:A.h<1&&(A.h=1),A.x<0&&(A.x=0),A.y<0&&(A.y=0),A.x+A.w>this.column&&(t?A.w=this.column-A.x:A.x=this.column-A.w),this.maxRow&&A.y+A.h>this.maxRow&&(t?A.h=this.maxRow-A.y:A.y=this.maxRow-A.h),q.samePos(A,n)||(A._dirty=!0),this}getDirtyNodes(A){return A?this.nodes.filter(t=>t._dirty&&!q.samePos(t,t._orig)):this.nodes.filter(t=>t._dirty)}_notify(A){if(this.batchMode||!this.onChange)return this;const t=(A||[]).concat(this.getDirtyNodes());return this.onChange(t),this}cleanNodes(){return this.batchMode?this:(this.nodes.forEach(A=>{delete A._dirty,delete A._lastTried}),this)}saveInitial(){return this.nodes.forEach(A=>{A._orig=q.copyPos({},A),delete A._dirty}),this._hasLocked=this.nodes.some(A=>A.locked),this}restoreInitial(){return this.nodes.forEach(A=>{!A._orig||q.samePos(A,A._orig)||(q.copyPos(A,A._orig),A._dirty=!0)}),this._notify(),this}findEmptyPosition(A,t=this.nodes,n=this.column,o){const a=o?o.y*n+(o.x+o.w):0;let u=!1;for(let d=a;!u;++d){const h=d%n,g=Math.floor(d/n);if(h+A.w>n)continue;const B={x:h,y:g,w:A.w,h:A.h};t.find(w=>q.isIntercepted(B,w))||((A.x!==h||A.y!==g)&&(A._dirty=!0),A.x=h,A.y=g,delete A.autoPosition,u=!0)}return u}addNode(A,t=!1,n){const o=this.nodes.find(u=>u._id===A._id);if(o)return o;this._inColumnResize?this.nodeBoundFix(A):this.prepareNode(A),delete A._temporaryRemoved,delete A._removeDOM;let a;return A.autoPosition&&this.findEmptyPosition(A,this.nodes,this.column,n)&&(delete A.autoPosition,a=!0),this.nodes.push(A),t&&this.addedNodes.push(A),a||this._fixCollisions(A),this.batchMode||this._packNodes()._notify(),A}removeNode(A,t=!0,n=!1){return this.nodes.find(o=>o._id===A._id)?(n&&this.removedNodes.push(A),t&&(A._removeDOM=!0),this.nodes=this.nodes.filter(o=>o._id!==A._id),A._isAboutToRemove||this._packNodes(),this._notify([A]),this):this}removeAll(A=!0,t=!0){if(delete this._layouts,!this.nodes.length)return this;A&&this.nodes.forEach(o=>o._removeDOM=!0);const n=this.nodes;return this.removedNodes=t?n:[],this.nodes=[],this._notify(n)}moveNodeCheck(A,t){if(!this.changedPosConstrain(A,t))return!1;if(t.pack=!0,!this.maxRow)return this.moveNode(A,t);let n;const o=new yn({column:this.column,float:this.float,nodes:this.nodes.map(u=>u._id===A._id?(n={...u},n):{...u})});if(!n)return!1;const a=o.moveNode(n,t)&&o.getRow()<=Math.max(this.getRow(),this.maxRow);if(!a&&!t.resizing&&t.collide){const u=t.collide.el.gridstackNode;if(this.swap(A,u))return this._notify(),!0}return a?(o.nodes.filter(u=>u._dirty).forEach(u=>{const d=this.nodes.find(h=>h._id===u._id);d&&(q.copyPos(d,u),d._dirty=!0)}),this._notify(),!0):!1}willItFit(A){if(delete A._willFitPos,!this.maxRow)return!0;const t=new yn({column:this.column,float:this.float,nodes:this.nodes.map(o=>({...o}))}),n={...A};return this.cleanupNode(n),delete n.el,delete n._id,delete n.content,delete n.grid,t.addNode(n),t.getRow()<=this.maxRow?(A._willFitPos=q.copyPos({},n),!0):!1}changedPosConstrain(A,t){return t.w=t.w||A.w,t.h=t.h||A.h,A.x!==t.x||A.y!==t.y?!0:(A.maxW&&(t.w=Math.min(t.w,A.maxW)),A.maxH&&(t.h=Math.min(t.h,A.maxH)),A.minW&&(t.w=Math.max(t.w,A.minW)),A.minH&&(t.h=Math.max(t.h,A.minH)),A.w!==t.w||A.h!==t.h)}moveNode(A,t){if(!A||!t)return!1;let n;t.pack===void 0&&!this.batchMode&&(n=t.pack=!0),typeof t.x!="number"&&(t.x=A.x),typeof t.y!="number"&&(t.y=A.y),typeof t.w!="number"&&(t.w=A.w),typeof t.h!="number"&&(t.h=A.h);const o=A.w!==t.w||A.h!==t.h,a=q.copyPos({},A,!0);if(q.copyPos(a,t),this.nodeBoundFix(a,o),q.copyPos(t,a),!t.forceCollide&&q.samePos(A,t))return!1;const u=q.copyPos({},A),d=this.collideAll(A,a,t.skip);let h=!0;if(d.length){const g=A._moving&&!t.nested;let B=g?this.directionCollideCoverage(A,t,d):d[0];if(g&&B&&A.grid?.opts?.subGridDynamic&&!A.grid._isTemp){const w=q.areaIntercept(t.rect,B._rect),m=q.area(t.rect),v=q.area(B._rect);w/(m<v?m:v)>.8&&(B.grid.makeSubGrid(B.el,void 0,A),B=void 0)}B?h=!this._fixCollisions(A,a,B,t):(h=!1,n&&delete t.pack)}return h&&!q.samePos(A,a)&&(A._dirty=!0,q.copyPos(A,a)),t.pack&&this._packNodes()._notify(),!q.samePos(A,u)}getRow(){return this.nodes.reduce((A,t)=>Math.max(A,t.y+t.h),0)}beginUpdate(A){return A._updating||(A._updating=!0,delete A._skipDown,this.batchMode||this.saveInitial()),this}endUpdate(){const A=this.nodes.find(t=>t._updating);return A&&(delete A._updating,delete A._skipDown),this}save(A=!0,t,n){const o=this._layouts?.length||0;let a;o&&(n?n!==this.column&&(a=this._layouts[n]):this.column!==o-1&&(a=this._layouts[o-1]));const u=[];return this.sortNodes(),this.nodes.forEach(d=>{const h=a?.find(B=>B._id===d._id),g={...d,...h||{}};q.removeInternalForSave(g,!A),t&&t(d,g),u.push(g)}),u}layoutsNodesChange(A){return!this._layouts||this._inColumnResize?this:(this._layouts.forEach((t,n)=>{if(!t||n===this.column)return this;if(n<this.column)this._layouts[n]=void 0;else{const o=n/this.column;A.forEach(a=>{if(!a._orig)return;const u=t.find(d=>d._id===a._id);u&&(u.y>=0&&a.y!==a._orig.y&&(u.y+=a.y-a._orig.y,u.y<0&&(u.y=0)),a.x!==a._orig.x&&(u.x=Math.round(a.x*o),u.x<0&&(u.x=0)),a.w!==a._orig.w&&(u.w=Math.round(a.w*o),u.w<1&&(u.w=1)))})}}),this)}columnChanged(A,t,n="moveScale"){if(!this.nodes.length||!t||A===t)return this;const o=n==="compact"||n==="list";o&&this.sortNodes(1),t<A&&this.cacheLayout(this.nodes,A),this.batchUpdate();let a=[],u=o?this.nodes:q.sort(this.nodes,-1);if(t>A&&this._layouts){const d=this._layouts[t]||[],h=this._layouts.length-1;!d.length&&A!==h&&this._layouts[h]?.length&&(A=h,this._layouts[h].forEach(g=>{const B=u.find(w=>w._id===g._id);B&&(!o&&!g.autoPosition&&(B.x=g.x??B.x,B.y=g.y??B.y),B.w=g.w??B.w,(g.x==null||g.y===void 0)&&(B.autoPosition=!0))})),d.forEach(g=>{const B=u.findIndex(w=>w._id===g._id);if(B!==-1){const w=u[B];if(o){w.w=g.w;return}(g.autoPosition||isNaN(g.x)||isNaN(g.y))&&this.findEmptyPosition(g,a),g.autoPosition||(w.x=g.x??w.x,w.y=g.y??w.y,w.w=g.w??w.w,a.push(w)),u.splice(B,1)}})}if(o)this.compact(n,!1);else{if(u.length)if(typeof n=="function")n(t,A,a,u);else{const d=o||n==="none"?1:t/A,h=n==="move"||n==="moveScale",g=n==="scale"||n==="moveScale";u.forEach(B=>{B.x=t===1?0:h?Math.round(B.x*d):Math.min(B.x,t-1),B.w=t===1||A===1?1:g?Math.round(B.w*d)||1:Math.min(B.w,t),a.push(B)}),u=[]}a=q.sort(a,-1),this._inColumnResize=!0,this.nodes=[],a.forEach(d=>{this.addNode(d,!1),delete d._orig})}return this.nodes.forEach(d=>delete d._orig),this.batchUpdate(!1,!o),delete this._inColumnResize,this}cacheLayout(A,t,n=!1){const o=[];return A.forEach((a,u)=>{a._id===void 0&&(a._id=(a.id?this.nodes.find(d=>d.id===a.id):void 0)?._id??yn._idSeq++),o[u]={x:a.x,y:a.y,w:a.w,_id:a._id}}),this._layouts=n?[]:this._layouts||[],this._layouts[t]=o,this}cacheOneLayout(A,t){A._id=A._id??yn._idSeq++;const n={x:A.x,y:A.y,w:A.w,_id:A._id};(A.autoPosition||A.x===void 0)&&(delete n.x,delete n.y,A.autoPosition&&(n.autoPosition=!0)),this._layouts=this._layouts||[],this._layouts[t]=this._layouts[t]||[];const o=this.findCacheLayout(A,t);return o===-1?this._layouts[t].push(n):this._layouts[t][o]=n,this}findCacheLayout(A,t){return this._layouts?.[t]?.findIndex(n=>n._id===A._id)??-1}removeNodeFromLayoutCache(A){if(this._layouts)for(let t=0;t<this._layouts.length;t++){const n=this.findCacheLayout(A,t);n!==-1&&this._layouts[t].splice(n,1)}}cleanupNode(A){for(const t in A)t[0]==="_"&&t!=="_id"&&delete A[t];return this}};Hi._idSeq=0;var Ue={alwaysShowResizeHandle:"mobile",animate:!0,auto:!0,cellHeight:"auto",cellHeightThrottle:100,cellHeightUnit:"px",column:12,draggable:{handle:".grid-stack-item-content",appendTo:"body",scroll:!0},handle:".grid-stack-item-content",itemClass:"grid-stack-item",margin:10,marginUnit:"px",maxRow:0,minRow:0,placeholderClass:"grid-stack-placeholder",placeholderText:"",removableOptions:{accept:"grid-stack-item",decline:"grid-stack-non-removable"},resizable:{handles:"se"},rtl:"auto"},LA=class{},Me=typeof window<"u"&&typeof document<"u"&&("ontouchstart"in document||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),be=class{};function zr(e,A){e.touches.length>1||(e.cancelable&&e.preventDefault(),q.simulateMouseEvent(e.changedTouches[0],A))}function hl(e,A){e.cancelable&&e.preventDefault(),q.simulateMouseEvent(e,A)}function Xr(e){be.touchHandled||(be.touchHandled=!0,zr(e,"mousedown"))}function $r(e){be.touchHandled&&zr(e,"mousemove")}function Yr(e){if(!be.touchHandled)return;be.pointerLeaveTimeout&&(window.clearTimeout(be.pointerLeaveTimeout),delete be.pointerLeaveTimeout);const A=!!LA.dragElement;zr(e,"mouseup"),A||zr(e,"click"),be.touchHandled=!1}function Wr(e){e.pointerType!=="mouse"&&e.target.releasePointerCapture(e.pointerId)}function Bl(e){LA.dragElement&&e.pointerType!=="mouse"&&hl(e,"mouseenter")}function pl(e){LA.dragElement&&e.pointerType!=="mouse"&&(be.pointerLeaveTimeout=window.setTimeout(()=>{delete be.pointerLeaveTimeout,hl(e,"mouseleave")},10))}var ml=class vu{constructor(A,t,n){this.host=A,this.dir=t,this.option=n,this.moving=!1,this._mouseDown=this._mouseDown.bind(this),this._mouseMove=this._mouseMove.bind(this),this._mouseUp=this._mouseUp.bind(this),this._keyEvent=this._keyEvent.bind(this),this._init()}_init(){if(this.option.element)try{this.el=this.option.element instanceof HTMLElement?this.option.element:this.host.querySelector(this.option.element)}catch(A){this.option.element=void 0,console.error("Query for resizeable handle failed, falling back",A)}return this.el||(this.el=document.createElement("div"),this.host.appendChild(this.el)),this.el.classList.add("ui-resizable-handle"),this.el.classList.add(`${vu.prefix}${this.dir}`),this.el.style.zIndex="100",this.el.style.userSelect="none",this.el.addEventListener("mousedown",this._mouseDown),Me&&(this.el.addEventListener("touchstart",Xr),this.el.addEventListener("pointerdown",Wr)),this}destroy(){return this.moving&&this._mouseUp(this.mouseDownEvent),this.el.removeEventListener("mousedown",this._mouseDown),Me&&(this.el.removeEventListener("touchstart",Xr),this.el.removeEventListener("pointerdown",Wr)),this.option.element||this.host.removeChild(this.el),delete this.el,delete this.host,this}_mouseDown(A){this.mouseDownEvent=A,document.addEventListener("mousemove",this._mouseMove,{capture:!0,passive:!0}),document.addEventListener("mouseup",this._mouseUp,!0),Me&&(this.el.addEventListener("touchmove",$r),this.el.addEventListener("touchend",Yr)),A.stopPropagation(),A.preventDefault()}_mouseMove(A){const t=this.mouseDownEvent;this.moving?this._triggerEvent("move",A):Math.abs(A.x-t.x)+Math.abs(A.y-t.y)>2&&(this.moving=!0,this._triggerEvent("start",this.mouseDownEvent),this._triggerEvent("move",A),document.addEventListener("keydown",this._keyEvent)),A.stopPropagation()}_mouseUp(A){this.moving&&(this._triggerEvent("stop",A),document.removeEventListener("keydown",this._keyEvent)),document.removeEventListener("mousemove",this._mouseMove,!0),document.removeEventListener("mouseup",this._mouseUp,!0),Me&&(this.el.removeEventListener("touchmove",$r),this.el.removeEventListener("touchend",Yr)),delete this.moving,delete this.mouseDownEvent,A.stopPropagation(),A.preventDefault()}_keyEvent(A){A.key==="Escape"&&(this.host.gridstackNode?.grid?.engine.restoreInitial(),this._mouseUp(this.mouseDownEvent))}_triggerEvent(A,t){return this.option[A]&&this.option[A](t),this}};ml.prefix="ui-resizable-";var Ii=class{constructor(){this._eventRegister={}}get disabled(){return this._disabled}on(e,A){this._eventRegister[e]=A}off(e){delete this._eventRegister[e]}enable(){this._disabled=!1}disable(){this._disabled=!0}destroy(){delete this._eventRegister}triggerEvent(e,A){if(!this.disabled&&this._eventRegister&&this._eventRegister[e])return this._eventRegister[e](A)}},wl=class ds extends Ii{constructor(A,t={}){super(),this.el=A,this.option=t,this.rectScale={x:1,y:1},this._ui=()=>{const n=this.el.parentElement.getBoundingClientRect(),o={width:this.originalRect.width,height:this.originalRect.height+this.scrolled,left:this.originalRect.left,top:this.originalRect.top-this.scrolled},a=this.temporalRect||o;return{position:{left:(a.left-n.left)*this.rectScale.x,top:(a.top-n.top)*this.rectScale.y},size:{width:a.width*this.rectScale.x,height:a.height*this.rectScale.y}}},this._mouseOver=this._mouseOver.bind(this),this._mouseOut=this._mouseOut.bind(this),this.enable(),this._setupAutoHide(this.option.autoHide),this._setupHandlers()}on(A,t){super.on(A,t)}off(A){super.off(A)}enable(){super.enable(),this.el.classList.remove("ui-resizable-disabled"),this._setupAutoHide(this.option.autoHide)}disable(){super.disable(),this.el.classList.add("ui-resizable-disabled"),this._setupAutoHide(!1)}destroy(){this._removeHandlers(),this._setupAutoHide(!1),delete this.el,super.destroy()}updateOption(A){const t=A.handles&&A.handles!==this.option.handles,n=A.autoHide&&A.autoHide!==this.option.autoHide;return Object.keys(A).forEach(o=>this.option[o]=A[o]),t&&(this._removeHandlers(),this._setupHandlers()),n&&this._setupAutoHide(this.option.autoHide),this}_setupAutoHide(A){return A?(this.el.classList.add("ui-resizable-autohide"),this.el.addEventListener("mouseover",this._mouseOver),this.el.addEventListener("mouseout",this._mouseOut)):(this.el.classList.remove("ui-resizable-autohide"),this.el.removeEventListener("mouseover",this._mouseOver),this.el.removeEventListener("mouseout",this._mouseOut),LA.overResizeElement===this&&delete LA.overResizeElement),this}_mouseOver(A){LA.overResizeElement||LA.dragElement||(LA.overResizeElement=this,this.el.classList.remove("ui-resizable-autohide"))}_mouseOut(A){LA.overResizeElement===this&&(delete LA.overResizeElement,this.el.classList.add("ui-resizable-autohide"))}_setupHandlers(){return this.handlers=this.option.handles.split(",").map(A=>A.trim()).map(A=>new ml(this.el,A,{element:this.option.element,start:t=>this._resizeStart(t),stop:t=>this._resizeStop(t),move:t=>this._resizing(t,A)})),this}_resizeStart(A){this.sizeToContent=q.shouldSizeToContent(this.el.gridstackNode,!0),this.originalRect=this.el.getBoundingClientRect(),this.scrollEl=q.getScrollElement(this.el),this.scrollY=this.scrollEl.scrollTop,this.scrolled=0,this.startEvent=A,this._setupHelper(),this._applyChange();const t=q.initEvent(A,{type:"resizestart",target:this.el});return this.option.start&&this.option.start(t,this._ui()),this.el.classList.add("ui-resizable-resizing"),this.triggerEvent("resizestart",t),this}_resizing(A,t){this.scrolled=this.scrollEl.scrollTop-this.scrollY,this.temporalRect=this._getChange(A,t),this._applyChange();const n=q.initEvent(A,{type:"resize",target:this.el});return this.option.resize&&this.option.resize(n,this._ui()),this.triggerEvent("resize",n),this}_resizeStop(A){const t=q.initEvent(A,{type:"resizestop",target:this.el});return this._cleanHelper(),this.option.stop&&this.option.stop(t),this.el.classList.remove("ui-resizable-resizing"),this.triggerEvent("resizestop",t),delete this.startEvent,delete this.originalRect,delete this.temporalRect,delete this.scrollY,delete this.scrolled,this}_setupHelper(){this.elOriginStyleVal=ds._originStyleProp.map(n=>this.el.style[n]),this.parentOriginStylePosition=this.el.parentElement.style.position;const A=this.el.parentElement,t=q.getValuesFromTransformedElement(A);return this.rectScale={x:t.xScale,y:t.yScale},getComputedStyle(this.el.parentElement).position.match(/static/)&&(this.el.parentElement.style.position="relative"),this.el.style.position="absolute",this.el.style.opacity="0.8",this}_cleanHelper(){return ds._originStyleProp.forEach((A,t)=>{this.el.style[A]=this.elOriginStyleVal[t]||null}),this.el.parentElement.style.position=this.parentOriginStylePosition||null,this}_getChange(A,t){const n=this.startEvent,o={width:this.originalRect.width,height:this.originalRect.height+this.scrolled,left:this.originalRect.left,top:this.originalRect.top-this.scrolled},a=A.clientX-n.clientX,u=this.sizeToContent?0:A.clientY-n.clientY;let d,h;t.indexOf("e")>-1?o.width+=a:t.indexOf("w")>-1&&(o.width-=a,o.left+=a,d=!0),t.indexOf("s")>-1?o.height+=u:t.indexOf("n")>-1&&(o.height-=u,o.top+=u,h=!0);const g=this._constrainSize(o.width,o.height,d,h);return Math.round(o.width)!==Math.round(g.width)&&(t.indexOf("w")>-1&&(o.left+=o.width-g.width),o.width=g.width),Math.round(o.height)!==Math.round(g.height)&&(t.indexOf("n")>-1&&(o.top+=o.height-g.height),o.height=g.height),o}_constrainSize(A,t,n,o){const a=this.option,u=(n?a.maxWidthMoveLeft:a.maxWidth)||Number.MAX_SAFE_INTEGER,d=a.minWidth/this.rectScale.x||A,h=(o?a.maxHeightMoveUp:a.maxHeight)||Number.MAX_SAFE_INTEGER,g=a.minHeight/this.rectScale.y||t;return{width:Math.min(u,Math.max(d,A)),height:Math.min(h,Math.max(g,t))}}_applyChange(){let A={left:0,top:0,width:0,height:0};if(this.el.style.position==="absolute"){const{left:t,top:n}=this.el.parentElement.getBoundingClientRect();A={left:t,top:n,width:0,height:0}}return this.temporalRect?(Object.keys(this.temporalRect).forEach(t=>{const n=this.temporalRect[t],o=t==="width"||t==="left"?this.rectScale.x:t==="height"||t==="top"?this.rectScale.y:1;this.el.style[t]=(n-A[t])*o+"px"}),this):this}_removeHandlers(){return this.handlers.forEach(A=>A.destroy()),delete this.handlers,this}};wl._originStyleProp=["width","height","position","left","top","opacity","zIndex"];var km='input,textarea,button,select,option,[contenteditable="true"],.ui-resizable-handle',Cl=class fs extends Ii{constructor(A,t={}){super(),this.el=A,this.option=t,this.dragTransform={xScale:1,yScale:1,xOffset:0,yOffset:0};const n=t?.handle?.substring(1),o=A.gridstackNode;this.dragEls=!n||A.classList.contains(n)?[A]:o?.subGrid?[A.querySelector(t.handle)||A]:Array.from(A.querySelectorAll(t.handle)),this.dragEls.length===0&&(this.dragEls=[A]),this._mouseDown=this._mouseDown.bind(this),this._mouseMove=this._mouseMove.bind(this),this._mouseUp=this._mouseUp.bind(this),this._keyEvent=this._keyEvent.bind(this),this.enable()}on(A,t){super.on(A,t)}off(A){super.off(A)}enable(){this.disabled!==!1&&(super.enable(),this.dragEls.forEach(A=>{A.addEventListener("mousedown",this._mouseDown),Me&&(A.addEventListener("touchstart",Xr),A.addEventListener("pointerdown",Wr))}),this.el.classList.remove("ui-draggable-disabled"))}disable(A=!1){this.disabled!==!0&&(super.disable(),this.dragEls.forEach(t=>{t.removeEventListener("mousedown",this._mouseDown),Me&&(t.removeEventListener("touchstart",Xr),t.removeEventListener("pointerdown",Wr))}),A||this.el.classList.add("ui-draggable-disabled"))}destroy(){this.dragTimeout&&window.clearTimeout(this.dragTimeout),delete this.dragTimeout,this.mouseDownEvent&&this._mouseUp(this.mouseDownEvent),this.disable(!0),delete this.el,delete this.helper,delete this.option,super.destroy()}updateOption(A){return Object.keys(A).forEach(t=>this.option[t]=A[t]),this}_mouseDown(A){if(be.touchHandled&&A.isTrusted&&(be.touchHandled=!1),!LA.mouseHandled)return A.button!==0||!this.dragEls.find(t=>t===A.target)&&A.target.closest(km)||this.option.cancel&&A.target.closest(this.option.cancel)||(this.mouseDownEvent=A,delete this.dragging,delete LA.dragElement,delete LA.dropElement,document.addEventListener("mousemove",this._mouseMove,{capture:!0,passive:!0}),document.addEventListener("mouseup",this._mouseUp,!0),Me&&(A.currentTarget.addEventListener("touchmove",$r),A.currentTarget.addEventListener("touchend",Yr)),A.preventDefault(),document.activeElement&&document.activeElement.blur(),LA.mouseHandled=!0),!0}_callDrag(A){if(!this.dragging)return;const t=q.initEvent(A,{target:this.el,type:"drag"});this.option.drag&&this.option.drag(t,this.ui()),this.triggerEvent("drag",t)}_mouseMove(A){const t=this.mouseDownEvent;if(this.lastDrag=A,this.dragging)if(this._dragFollow(A),LA.pauseDrag){const n=Number.isInteger(LA.pauseDrag)?LA.pauseDrag:100;this.dragTimeout&&window.clearTimeout(this.dragTimeout),this.dragTimeout=window.setTimeout(()=>this._callDrag(A),n)}else this._callDrag(A);else if(Math.abs(A.x-t.x)+Math.abs(A.y-t.y)>3){this.dragging=!0,LA.dragElement=this;const n=this.el.gridstackNode?.grid;n?LA.dropElement=n.el.ddElement.ddDroppable:delete LA.dropElement,this.helper=this._createHelper(),this._setupHelperContainmentStyle(),this.dragTransform=q.getValuesFromTransformedElement(this.helperContainment),this.dragOffset=this._getDragOffset(A,this.el,this.helperContainment),this._setupHelperStyle(A);const o=q.initEvent(A,{target:this.el,type:"dragstart"});this.option.start&&this.option.start(o,this.ui()),this.triggerEvent("dragstart",o),document.addEventListener("keydown",this._keyEvent)}return!0}_mouseUp(A){if(document.removeEventListener("mousemove",this._mouseMove,!0),document.removeEventListener("mouseup",this._mouseUp,!0),Me&&A.currentTarget&&(A.currentTarget.removeEventListener("touchmove",$r,!0),A.currentTarget.removeEventListener("touchend",Yr,!0)),this.dragging){delete this.dragging,delete this.el.gridstackNode?._origRotate,document.removeEventListener("keydown",this._keyEvent),LA.dropElement?.el===this.el.parentElement&&delete LA.dropElement,this.helperContainment.style.position=this.parentOriginStylePosition||null,this.helper!==this.el&&this.helper.remove(),this._removeHelperStyle();const t=q.initEvent(A,{target:this.el,type:"dragstop"});this.option.stop&&this.option.stop(t),this.triggerEvent("dragstop",t),LA.dropElement&&LA.dropElement.drop(A)}delete this.helper,delete this.mouseDownEvent,delete LA.dragElement,delete LA.dropElement,delete LA.mouseHandled,A.preventDefault()}_keyEvent(A){const t=this.el.gridstackNode,n=t?.grid||LA.dropElement?.el?.gridstack;if(A.key==="Escape")t&&t._origRotate&&(t._orig=t._origRotate,delete t._origRotate),n?.cancelDrag(),this._mouseUp(this.mouseDownEvent);else if(t&&n&&(A.key==="r"||A.key==="R")){if(!q.canBeRotated(t))return;t._origRotate=t._origRotate||{...t._orig},delete t._moving,n.setAnimation(!1).rotate(t.el,{top:-this.dragOffset.offsetTop,left:-this.dragOffset.offsetLeft}).setAnimation(),t._moving=!0,this.dragOffset=this._getDragOffset(this.lastDrag,t.el,this.helperContainment),this.helper.style.width=this.dragOffset.width+"px",this.helper.style.height=this.dragOffset.height+"px",q.swap(t._orig,"w","h"),delete t._rect,this._mouseMove(this.lastDrag)}}_createHelper(){let A=this.el;return typeof this.option.helper=="function"?A=this.option.helper(this.el):this.option.helper==="clone"&&(A=q.cloneNode(this.el)),A.parentElement||q.appendTo(A,this.option.appendTo==="parent"?this.el.parentElement:this.option.appendTo),this.dragElementOriginStyle=fs.originStyleProp.map(t=>this.el.style[t]),A}_setupHelperStyle(A){this.helper.classList.add("ui-draggable-dragging"),this.el.gridstackNode?.grid?.el.classList.add("grid-stack-dragging");const t=this.helper.style;return t.pointerEvents="none",t.width=this.dragOffset.width+"px",t.height=this.dragOffset.height+"px",t.willChange="left, top",t.position="fixed",this._dragFollow(A),t.transition="none",setTimeout(()=>{this.helper&&(t.transition=null)},0),this}_removeHelperStyle(){if(this.helper.classList.remove("ui-draggable-dragging"),this.el.gridstackNode?.grid?.el.classList.remove("grid-stack-dragging"),!this.helper?.gridstackNode?._isAboutToRemove&&this.dragElementOriginStyle){const A=this.helper,t=this.dragElementOriginStyle.transition||null;A.style.transition=this.dragElementOriginStyle.transition="none",fs.originStyleProp.forEach(n=>A.style[n]=this.dragElementOriginStyle[n]||null),setTimeout(()=>A.style.transition=t,50)}return delete this.dragElementOriginStyle,this}_dragFollow(A){const t={left:0,top:0},n=this.helper.style,o=this.dragOffset;n.left=(A.clientX+o.offsetLeft-t.left)*this.dragTransform.xScale+"px",n.top=(A.clientY+o.offsetTop-t.top)*this.dragTransform.yScale+"px"}_setupHelperContainmentStyle(){return this.helperContainment=this.helper.parentElement,this.helper.style.position!=="fixed"&&(this.parentOriginStylePosition=this.helperContainment.style.position,getComputedStyle(this.helperContainment).position.match(/static/)&&(this.helperContainment.style.position="relative")),this}_getDragOffset(A,t,n){let o=0,a=0;n&&(o=this.dragTransform.xOffset,a=this.dragTransform.yOffset);const u=t.getBoundingClientRect();return{left:u.left,top:u.top,offsetLeft:-A.clientX+u.left-o,offsetTop:-A.clientY+u.top-a,width:u.width*this.dragTransform.xScale,height:u.height*this.dragTransform.yScale}}ui(){const A=this.el.parentElement.getBoundingClientRect(),t=this.helper.getBoundingClientRect();return{position:{top:(t.top-A.top)*this.dragTransform.yScale,left:(t.left-A.left)*this.dragTransform.xScale}}}};Cl.originStyleProp=["width","height","transform","transform-origin","transition","pointerEvents","position","left","top","minWidth","willChange"];var Mm=class extends Ii{constructor(e,A={}){super(),this.el=e,this.option=A,this._mouseEnter=this._mouseEnter.bind(this),this._mouseLeave=this._mouseLeave.bind(this),this.enable(),this._setupAccept()}on(e,A){super.on(e,A)}off(e){super.off(e)}enable(){this.disabled!==!1&&(super.enable(),this.el.classList.add("ui-droppable"),this.el.classList.remove("ui-droppable-disabled"),this.el.addEventListener("mouseenter",this._mouseEnter),this.el.addEventListener("mouseleave",this._mouseLeave),Me&&(this.el.addEventListener("pointerenter",Bl),this.el.addEventListener("pointerleave",pl)))}disable(e=!1){this.disabled!==!0&&(super.disable(),this.el.classList.remove("ui-droppable"),e||this.el.classList.add("ui-droppable-disabled"),this.el.removeEventListener("mouseenter",this._mouseEnter),this.el.removeEventListener("mouseleave",this._mouseLeave),Me&&(this.el.removeEventListener("pointerenter",Bl),this.el.removeEventListener("pointerleave",pl)))}destroy(){this.disable(!0),this.el.classList.remove("ui-droppable"),this.el.classList.remove("ui-droppable-disabled"),super.destroy()}updateOption(e){return Object.keys(e).forEach(A=>this.option[A]=e[A]),this._setupAccept(),this}_mouseEnter(e){if(!LA.dragElement||be.touchHandled&&e.isTrusted||!this._canDrop(LA.dragElement.el))return;e.preventDefault(),e.stopPropagation(),LA.dropElement&&LA.dropElement!==this&&LA.dropElement._mouseLeave(e,!0),LA.dropElement=this;const A=q.initEvent(e,{target:this.el,type:"dropover"});this.option.over&&this.option.over(A,this._ui(LA.dragElement)),this.triggerEvent("dropover",A),this.el.classList.add("ui-droppable-over")}_mouseLeave(e,A=!1){if(!LA.dragElement||LA.dropElement!==this)return;e.preventDefault(),e.stopPropagation();const t=q.initEvent(e,{target:this.el,type:"dropout"});if(this.option.out&&this.option.out(t,this._ui(LA.dragElement)),this.triggerEvent("dropout",t),LA.dropElement===this&&(delete LA.dropElement,!A)){let n,o=this.el.parentElement;for(;!n&&o;)n=o.ddElement?.ddDroppable,o=o.parentElement;n&&n._mouseEnter(e)}}drop(e){e.preventDefault();const A=q.initEvent(e,{target:this.el,type:"drop"});this.option.drop&&this.option.drop(A,this._ui(LA.dragElement)),this.triggerEvent("drop",A)}_canDrop(e){return e&&(!this.accept||this.accept(e))}_setupAccept(){return this.option.accept?(typeof this.option.accept=="string"?this.accept=e=>e.classList.contains(this.option.accept)||e.matches(this.option.accept):this.accept=this.option.accept,this):this}_ui(e){return{draggable:e.el,...e.ui()}}},Om=class yu{static init(A){return A.ddElement||(A.ddElement=new yu(A)),A.ddElement}constructor(A){this.el=A}on(A,t){return this.ddDraggable&&["drag","dragstart","dragstop"].indexOf(A)>-1?this.ddDraggable.on(A,t):this.ddDroppable&&["drop","dropover","dropout"].indexOf(A)>-1?this.ddDroppable.on(A,t):this.ddResizable&&["resizestart","resize","resizestop"].indexOf(A)>-1&&this.ddResizable.on(A,t),this}off(A){return this.ddDraggable&&["drag","dragstart","dragstop"].indexOf(A)>-1?this.ddDraggable.off(A):this.ddDroppable&&["drop","dropover","dropout"].indexOf(A)>-1?this.ddDroppable.off(A):this.ddResizable&&["resizestart","resize","resizestop"].indexOf(A)>-1&&this.ddResizable.off(A),this}setupDraggable(A){return this.ddDraggable?this.ddDraggable.updateOption(A):this.ddDraggable=new Cl(this.el,A),this}cleanDraggable(){return this.ddDraggable&&(this.ddDraggable.destroy(),delete this.ddDraggable),this}setupResizable(A){return this.ddResizable?this.ddResizable.updateOption(A):this.ddResizable=new wl(this.el,A),this}cleanResizable(){return this.ddResizable&&(this.ddResizable.destroy(),delete this.ddResizable),this}setupDroppable(A){return this.ddDroppable?this.ddDroppable.updateOption(A):this.ddDroppable=new Mm(this.el,A),this}cleanDroppable(){return this.ddDroppable&&(this.ddDroppable.destroy(),delete this.ddDroppable),this}},Km=class{resizable(e,A,t,n){return this._getDDElements(e,A).forEach(o=>{if(A==="disable"||A==="enable")o.ddResizable&&o.ddResizable[A]();else if(A==="destroy")o.ddResizable&&o.cleanResizable();else if(A==="option")o.setupResizable({[t]:n});else{const a=o.el.gridstackNode.grid;let u=o.el.getAttribute("gs-resize-handles")||a.opts.resizable.handles||"e,s,se";u==="all"&&(u="n,e,s,w,se,sw,ne,nw");const d=!a.opts.alwaysShowResizeHandle;o.setupResizable({...a.opts.resizable,handles:u,autoHide:d,start:A.start,stop:A.stop,resize:A.resize})}}),this}draggable(e,A,t,n){return this._getDDElements(e,A).forEach(o=>{if(A==="disable"||A==="enable")o.ddDraggable&&o.ddDraggable[A]();else if(A==="destroy")o.ddDraggable&&o.cleanDraggable();else if(A==="option")o.setupDraggable({[t]:n});else{const a=o.el.gridstackNode.grid;o.setupDraggable({...a.opts.draggable,start:A.start,stop:A.stop,drag:A.drag})}}),this}dragIn(e,A){return this._getDDElements(e).forEach(t=>t.setupDraggable(A)),this}droppable(e,A,t,n){return typeof A.accept=="function"&&!A._accept&&(A._accept=A.accept,A.accept=o=>A._accept(o)),this._getDDElements(e,A).forEach(o=>{A==="disable"||A==="enable"?o.ddDroppable&&o.ddDroppable[A]():A==="destroy"?o.ddDroppable&&o.cleanDroppable():A==="option"?o.setupDroppable({[t]:n}):o.setupDroppable(A)}),this}isDroppable(e){return!!(e?.ddElement?.ddDroppable&&!e.ddElement.ddDroppable.disabled)}isDraggable(e){return!!(e?.ddElement?.ddDraggable&&!e.ddElement.ddDraggable.disabled)}isResizable(e){return!!(e?.ddElement?.ddResizable&&!e.ddElement.ddResizable.disabled)}on(e,A,t){return this._getDDElements(e).forEach(n=>n.on(A,o=>{t(o,LA.dragElement?LA.dragElement.el:o.target,LA.dragElement?LA.dragElement.helper:null)})),this}off(e,A){return this._getDDElements(e).forEach(t=>t.off(A)),this}_getDDElements(e,A){const t=e.gridstack||A!=="destroy"&&A!=="disable",n=q.getElements(e);return n.length?n.map(o=>o.ddElement||(t?Om.init(o):null)).filter(o=>o):[]}},we=new Km,on=class NA{static init(A={},t=".grid-stack"){if(typeof document>"u")return null;const n=NA.getGridElement(t);return n?(n.gridstack||(n.gridstack=new NA(n,q.cloneDeep(A))),n.gridstack):(console.error(typeof t=="string"?'GridStack.initAll() no grid was found with selector "'+t+`" - element missing or wrong selector ?
|
|
27
|
-
Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.`:"GridStack.init() no grid element was passed."),null)}static initAll(A={},t=".grid-stack"){const n=[];return typeof document>"u"||(
|
|
28
|
-
Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.`)),n}static addGrid(A,t={}){if(!A)return null;let n=A;if(n.gridstack){const o=n.gridstack;return t&&(o.opts={...o.opts,...t}),t.children!==void 0&&o.load(t.children),o}return(!A.classList.contains("grid-stack")||NA.addRemoveCB)&&(NA.addRemoveCB?n=NA.addRemoveCB(A,t,!0,!0):n=q.createDiv(["grid-stack",t.class],A)),NA.init(t,n)}static registerEngine(A){NA.engineClass=A}get placeholder(){if(!this._placeholder){this._placeholder=q.createDiv([this.opts.placeholderClass,Ue.itemClass,this.opts.itemClass]);const A=q.createDiv(["placeholder-content"],this._placeholder);this.opts.placeholderText&&(A.textContent=this.opts.placeholderText)}return this._placeholder}constructor(A,t={}){this.el=A,this.opts=t,this.animationDelay=310,this._gsEventHandler={},this._extraDragRow=0,this.dragTransform={xScale:1,yScale:1,xOffset:0,yOffset:0},A.gridstack=this,this.opts=t=t||{},A.classList.contains("grid-stack")||this.el.classList.add("grid-stack"),t.row&&(t.minRow=t.maxRow=t.row,delete t.row);const n=q.toNumber(A.getAttribute("gs-row"));t.column==="auto"&&delete t.column,t.alwaysShowResizeHandle!==void 0&&(t._alwaysShowResizeHandle=t.alwaysShowResizeHandle);const o=t.columnOpts;if(o){const h=o.breakpoints;!o.columnWidth&&!h?.length?delete t.columnOpts:(o.columnMax=o.columnMax||12,h?.length>1&&h.sort((g,B)=>(B.w||0)-(g.w||0)))}const a={...q.cloneDeep(Ue),column:q.toNumber(A.getAttribute("gs-column"))||Ue.column,minRow:n||q.toNumber(A.getAttribute("gs-min-row"))||Ue.minRow,maxRow:n||q.toNumber(A.getAttribute("gs-max-row"))||Ue.maxRow,staticGrid:q.toBool(A.getAttribute("gs-static"))||Ue.staticGrid,sizeToContent:q.toBool(A.getAttribute("gs-size-to-content"))||void 0,draggable:{handle:(t.handleClass?"."+t.handleClass:t.handle?t.handle:"")||Ue.draggable.handle},removableOptions:{accept:t.itemClass||Ue.removableOptions.accept,decline:Ue.removableOptions.decline}};A.getAttribute("gs-animate")&&(a.animate=q.toBool(A.getAttribute("gs-animate"))),t=q.defaults(t,a),this._initMargin(),this.checkDynamicColumn(),this._updateColumnVar(t),t.rtl==="auto"&&(t.rtl=A.style.direction==="rtl"),t.rtl&&this.el.classList.add("grid-stack-rtl");const u=this.el.closest("."+Ue.itemClass)?.gridstackNode;if(u&&(u.subGrid=this,this.parentGridNode=u,this.el.classList.add("grid-stack-nested"),u.el.classList.add("grid-stack-sub-grid")),this._isAutoCellHeight=t.cellHeight==="auto",this._isAutoCellHeight||t.cellHeight==="initial")this.cellHeight(void 0);else{typeof t.cellHeight=="number"&&t.cellHeightUnit&&t.cellHeightUnit!==Ue.cellHeightUnit&&(t.cellHeight=t.cellHeight+t.cellHeightUnit,delete t.cellHeightUnit);const h=t.cellHeight;delete t.cellHeight,this.cellHeight(h)}t.alwaysShowResizeHandle==="mobile"&&(t.alwaysShowResizeHandle=Me),this._setStaticClass();const d=t.engineClass||NA.engineClass||Hi;if(this.engine=new d({column:this.getColumn(),float:t.float,maxRow:t.maxRow,onChange:h=>{h.forEach(g=>{const B=g.el;B&&(g._removeDOM?(B&&B.remove(),delete g._removeDOM):this._writePosAttr(B,g))}),this._updateContainerHeight()}}),t.auto&&(this.batchUpdate(),this.engine._loading=!0,this.getGridItems().forEach(h=>this._prepareElement(h)),delete this.engine._loading,this.batchUpdate(!1)),t.children){const h=t.children;delete t.children,h.length&&this.load(h)}this.setAnimation(),t.subGridDynamic&&!LA.pauseDrag&&(LA.pauseDrag=!0),t.draggable?.pause!==void 0&&(LA.pauseDrag=t.draggable.pause),this._setupRemoveDrop(),this._setupAcceptWidget(),this._updateResizeEvent()}_updateColumnVar(A=this.opts){this.el.classList.add("gs-"+A.column),typeof A.column=="number"&&this.el.style.setProperty("--gs-column-width",`${100/A.column}%`)}addWidget(A){if(!A)return;if(typeof A=="string"){console.error("V11: GridStack.addWidget() does not support string anymore. see #2736");return}if(A.ELEMENT_NODE)return console.error("V11: GridStack.addWidget() does not support HTMLElement anymore. use makeWidget()"),this.makeWidget(A);let t,n=A;if(n.grid=this,n.el?t=n.el:NA.addRemoveCB?t=NA.addRemoveCB(this.el,A,!0,!1):t=this.createWidgetDivs(n),!t)return;if(n=t.gridstackNode,n&&t.parentElement===this.el&&this.engine.nodes.find(a=>a._id===n._id))return t;const o=this._readAttr(t);return q.defaults(A,o),this.engine.prepareNode(A),this.el.appendChild(t),this.makeWidget(t,A),t}createWidgetDivs(A){const t=q.createDiv(["grid-stack-item",this.opts.itemClass]),n=q.createDiv(["grid-stack-item-content"],t);return q.lazyLoad(A)?A.visibleObservable||(A.visibleObservable=new IntersectionObserver(([o])=>{o.isIntersecting&&(A.visibleObservable?.disconnect(),delete A.visibleObservable,NA.renderCB(n,A),A.grid?.prepareDragDrop(A.el))}),window.setTimeout(()=>A.visibleObservable?.observe(t))):NA.renderCB(n,A),t}makeSubGrid(A,t,n,o=!0){let a=A.gridstackNode;if(a||(a=this.makeWidget(A).gridstackNode),a.subGrid?.el)return a.subGrid;let u,d=this;for(;d&&!u;)u=d.opts?.subGridOpts,d=d.parentGridNode?.grid;t=q.cloneDeep({...this.opts,id:void 0,children:void 0,column:"auto",columnOpts:void 0,layout:"list",subGridOpts:void 0,...u||{},...t||a.subGridOpts||{}}),a.subGridOpts=t;let h;t.column==="auto"&&(h=!0,t.column=Math.max(a.w||1,n?.w||1),delete t.columnOpts);let g=a.el.querySelector(".grid-stack-item-content"),B,w;if(o&&(this._removeDD(a.el),w={...a,x:0,y:0},q.removeInternalForSave(w),delete w.subGridOpts,a.content&&(w.content=a.content,delete a.content),NA.addRemoveCB?B=NA.addRemoveCB(this.el,w,!0,!1):(B=q.createDiv(["grid-stack-item"]),B.appendChild(g),g=q.createDiv(["grid-stack-item-content"],a.el)),this.prepareDragDrop(a.el)),n){const v=h?t.column:a.w,y=a.h+n.h,I=a.el.style;I.transition="none",this.update(a.el,{w:v,h:y}),setTimeout(()=>I.transition=null)}const m=a.subGrid=NA.addGrid(g,t);return n?._moving&&(m._isTemp=!0),h&&(m._autoColumn=!0),o&&m.makeWidget(B,w),n&&(n._moving?window.setTimeout(()=>q.simulateMouseEvent(n._event,"mouseenter",m.el),0):m.makeWidget(a.el,a)),this.resizeToContentCheck(!1,a),m}removeAsSubGrid(A){const t=this.parentGridNode?.grid;t&&(t.batchUpdate(),t.removeWidget(this.parentGridNode.el,!0,!0),this.engine.nodes.forEach(n=>{n.x+=this.parentGridNode.x,n.y+=this.parentGridNode.y,t.makeWidget(n.el,n)}),t.batchUpdate(!1),this.parentGridNode&&delete this.parentGridNode.subGrid,delete this.parentGridNode,A&&window.setTimeout(()=>q.simulateMouseEvent(A._event,"mouseenter",t.el),0))}save(A=!0,t=!1,n=NA.saveCB,o){const a=this.engine.save(A,n,o);if(a.forEach(u=>{if(A&&u.el&&!u.subGrid&&!n)u.content=u.el.querySelector(".grid-stack-item-content")?.innerHTML,u.content||delete u.content;else if(!A&&!n&&delete u.content,u.subGrid?.el){const d=u.w||u.subGrid.getColumn(),h=u.subGrid.save(A,t,n,d);u.subGridOpts=t?h:{children:h},delete u.subGrid}delete u.el}),t){const u=q.cloneDeep(this.opts);u.marginBottom===u.marginTop&&u.marginRight===u.marginLeft&&u.marginTop===u.marginRight&&(u.margin=u.marginTop,delete u.marginTop,delete u.marginRight,delete u.marginBottom,delete u.marginLeft),u.rtl===(this.el.style.direction==="rtl")&&(u.rtl="auto"),this._isAutoCellHeight&&(u.cellHeight="auto"),this._autoColumn&&(u.column="auto");const d=u._alwaysShowResizeHandle;return delete u._alwaysShowResizeHandle,d!==void 0?u.alwaysShowResizeHandle=d:delete u.alwaysShowResizeHandle,q.removeInternalAndSame(u,Ue),u.children=a,u}return a}load(A,t=NA.addRemoveCB||!0){A=q.cloneDeep(A);const n=this.getColumn();A.forEach(B=>{B.w=B.w||B.minW||1,B.h=B.h||B.minH||1}),A=q.sort(A),this.engine.skipCacheUpdate=this._ignoreLayoutsNodeChange=!0;let o=0;A.forEach(B=>{o=Math.max(o,(B.x||0)+B.w)}),o>this.engine.defaultColumn&&(this.engine.defaultColumn=o),o>n&&(this.engine.nodes.length===0&&this.responseLayout?(this.engine.nodes=A,this.engine.columnChanged(o,n,this.responseLayout),A=this.engine.nodes,this.engine.nodes=[],delete this.responseLayout):this.engine.cacheLayout(A,o,!0));const a=NA.addRemoveCB;typeof t=="function"&&(NA.addRemoveCB=t);const u=[];this.batchUpdate();const d=!this.engine.nodes.length,h=d&&this.opts.animate;h&&this.setAnimation(!1),!d&&t&&[...this.engine.nodes].forEach(B=>{B.id&&(q.find(A,B.id)||(NA.addRemoveCB&&NA.addRemoveCB(this.el,B,!1,!1),u.push(B),this.removeWidget(B.el,!0,!1)))}),this.engine._loading=!0;const g=[];return this.engine.nodes=this.engine.nodes.filter(B=>q.find(A,B.id)?(g.push(B),!1):!0),A.forEach(B=>{const w=q.find(g,B.id);if(w){if(q.shouldSizeToContent(w)&&(B.h=w.h),this.engine.nodeBoundFix(B),(B.autoPosition||B.x===void 0||B.y===void 0)&&(B.w=B.w||w.w,B.h=B.h||w.h,this.engine.findEmptyPosition(B)),this.engine.nodes.push(w),q.samePos(w,B)&&this.engine.nodes.length>1&&(this.moveNode(w,{...B,forceCollide:!0}),q.copyPos(B,w)),this.update(w.el,B),B.subGridOpts?.children){const m=w.el.querySelector(".grid-stack");m&&m.gridstack&&m.gridstack.load(B.subGridOpts.children)}}else t&&this.addWidget(B)}),delete this.engine._loading,this.engine.removedNodes=u,this.batchUpdate(!1),delete this._ignoreLayoutsNodeChange,delete this.engine.skipCacheUpdate,a?NA.addRemoveCB=a:delete NA.addRemoveCB,h&&this.setAnimation(!0,!0),this}batchUpdate(A=!0){return this.engine.batchUpdate(A),A||(this._updateContainerHeight(),this._triggerRemoveEvent(),this._triggerAddEvent(),this._triggerChangeEvent()),this}getCellHeight(A=!1){if(this.opts.cellHeight&&this.opts.cellHeight!=="auto"&&(!A||!this.opts.cellHeightUnit||this.opts.cellHeightUnit==="px"))return this.opts.cellHeight;if(this.opts.cellHeightUnit==="rem")return this.opts.cellHeight*parseFloat(getComputedStyle(document.documentElement).fontSize);if(this.opts.cellHeightUnit==="em")return this.opts.cellHeight*parseFloat(getComputedStyle(this.el).fontSize);if(this.opts.cellHeightUnit==="cm")return this.opts.cellHeight*(96/2.54);if(this.opts.cellHeightUnit==="mm")return this.opts.cellHeight*(96/2.54)/10;const t=this.el.querySelector("."+this.opts.itemClass);if(t){const o=q.toNumber(t.getAttribute("gs-h"))||1;return Math.round(t.offsetHeight/o)}const n=parseInt(this.el.getAttribute("gs-current-row"));return n?Math.round(this.el.getBoundingClientRect().height/n):this.opts.cellHeight}cellHeight(A){if(A!==void 0&&this._isAutoCellHeight!==(A==="auto")&&(this._isAutoCellHeight=A==="auto",this._updateResizeEvent()),(A==="initial"||A==="auto")&&(A=void 0),A===void 0){const n=-this.opts.marginRight-this.opts.marginLeft+this.opts.marginTop+this.opts.marginBottom;A=this.cellWidth()+n}const t=q.parseHeight(A);return this.opts.cellHeightUnit===t.unit&&this.opts.cellHeight===t.h?this:(this.opts.cellHeightUnit=t.unit,this.opts.cellHeight=t.h,this.el.style.setProperty("--gs-cell-height",`${this.opts.cellHeight}${this.opts.cellHeightUnit}`),this._updateContainerHeight(),this.resizeToContentCheck(),this)}cellWidth(){return this._widthOrContainer()/this.getColumn()}_widthOrContainer(A=!1){return A&&this.opts.columnOpts?.breakpointForWindow?window.innerWidth:this.el.clientWidth||this.el.parentElement.clientWidth||window.innerWidth}checkDynamicColumn(){const A=this.opts.columnOpts;if(!A||!A.columnWidth&&!A.breakpoints?.length)return!1;const t=this.getColumn();let n=t;const o=this._widthOrContainer(!0);if(A.columnWidth)n=Math.min(Math.round(o/A.columnWidth)||1,A.columnMax);else{n=A.columnMax;let a=0;for(;a<A.breakpoints.length&&o<=A.breakpoints[a].w;)n=A.breakpoints[a++].c||t}if(n!==t){const a=A.breakpoints?.find(u=>u.c===n);return this.column(n,a?.layout||A.layout),!0}return!1}compact(A="compact",t=!0){return this.engine.compact(A,t),this._triggerChangeEvent(),this}column(A,t="moveScale"){if(!A||A<1||this.opts.column===A)return this;const n=this.getColumn();return this.opts.column=A,this.engine?(this.engine.column=A,this.el.classList.remove("gs-"+n),this._updateColumnVar(),this.engine.columnChanged(n,A,t),this._isAutoCellHeight&&this.cellHeight(),this.resizeToContentCheck(!0),this._ignoreLayoutsNodeChange=!0,this._triggerChangeEvent(),delete this._ignoreLayoutsNodeChange,this):(this.responseLayout=t,this)}getColumn(){return this.opts.column}getGridItems(){return Array.from(this.el.children).filter(A=>A.matches("."+this.opts.itemClass)&&!A.matches("."+this.opts.placeholderClass))}isIgnoreChangeCB(){return this._ignoreLayoutsNodeChange}destroy(A=!0){if(this.el)return this.offAll(),this._updateResizeEvent(!0),this.setStatic(!0,!1),this.setAnimation(!1),A?this.el.parentNode.removeChild(this.el):(this.removeAll(A),this.el.removeAttribute("gs-current-row")),this.parentGridNode&&delete this.parentGridNode.subGrid,delete this.parentGridNode,delete this.opts,delete this._placeholder?.gridstackNode,delete this._placeholder,delete this.engine,delete this.el.gridstack,delete this.el,this}float(A){return this.opts.float!==A&&(this.opts.float=this.engine.float=A,this._triggerChangeEvent()),this}getFloat(){return this.engine.float}getCellFromPixel(A,t=!1){const n=this.el.getBoundingClientRect();let o;t?o={top:n.top+document.documentElement.scrollTop,left:n.left}:o={top:this.el.offsetTop,left:this.el.offsetLeft};const a=A.left-o.left,u=A.top-o.top,d=n.width/this.getColumn(),h=n.height/parseInt(this.el.getAttribute("gs-current-row"));return{x:Math.floor(a/d),y:Math.floor(u/h)}}getRow(){return Math.max(this.engine.getRow(),this.opts.minRow||0)}isAreaEmpty(A,t,n,o){return this.engine.isAreaEmpty(A,t,n,o)}makeWidget(A,t){const n=NA.getElement(A);if(!n||n.gridstackNode)return n;n.parentElement||this.el.appendChild(n),this._prepareElement(n,!0,t);const o=n.gridstackNode;this._updateContainerHeight(),o.subGridOpts&&this.makeSubGrid(n,o.subGridOpts,void 0,!1);let a;return this.opts.column===1&&!this._ignoreLayoutsNodeChange&&(a=this._ignoreLayoutsNodeChange=!0),this._triggerAddEvent(),this._triggerChangeEvent(),a&&delete this._ignoreLayoutsNodeChange,n}on(A,t){return A.indexOf(" ")!==-1?(A.split(" ").forEach(n=>this.on(n,t)),this):(A==="change"||A==="added"||A==="removed"||A==="enable"||A==="disable"?(A==="enable"||A==="disable"?this._gsEventHandler[A]=n=>t(n):this._gsEventHandler[A]=n=>{n.detail&&t(n,n.detail)},this.el.addEventListener(A,this._gsEventHandler[A])):A==="drag"||A==="dragstart"||A==="dragstop"||A==="resizestart"||A==="resize"||A==="resizestop"||A==="dropped"||A==="resizecontent"?this._gsEventHandler[A]=t:console.error("GridStack.on("+A+") event not supported"),this)}off(A){return A.indexOf(" ")!==-1?(A.split(" ").forEach(t=>this.off(t)),this):((A==="change"||A==="added"||A==="removed"||A==="enable"||A==="disable")&&this._gsEventHandler[A]&&this.el.removeEventListener(A,this._gsEventHandler[A]),delete this._gsEventHandler[A],this)}offAll(){return Object.keys(this._gsEventHandler).forEach(A=>this.off(A)),this}removeWidget(A,t=!0,n=!0){return A?(NA.getElements(A).forEach(o=>{if(o.parentElement&&o.parentElement!==this.el)return;let a=o.gridstackNode;a||(a=this.engine.nodes.find(u=>o===u.el)),a&&(t&&NA.addRemoveCB&&NA.addRemoveCB(this.el,a,!1,!1),delete o.gridstackNode,this._removeDD(o),this.engine.removeNode(a,t,n),t&&o.parentElement&&o.remove())}),n&&(this._triggerRemoveEvent(),this._triggerChangeEvent()),this):(console.error("Error: GridStack.removeWidget(undefined) called"),this)}removeAll(A=!0,t=!0){return this.engine.nodes.forEach(n=>{A&&NA.addRemoveCB&&NA.addRemoveCB(this.el,n,!1,!1),delete n.el.gridstackNode,this.opts.staticGrid||this._removeDD(n.el)}),this.engine.removeAll(A,t),t&&this._triggerRemoveEvent(),this}setAnimation(A=this.opts.animate,t){return t?setTimeout(()=>{this.opts&&this.setAnimation(A)}):A?this.el.classList.add("grid-stack-animate"):this.el.classList.remove("grid-stack-animate"),this.opts.animate=A,this}hasAnimationCSS(){return this.el.classList.contains("grid-stack-animate")}setStatic(A,t=!0,n=!0){return!!this.opts.staticGrid===A?this:(A?this.opts.staticGrid=!0:delete this.opts.staticGrid,this._setupRemoveDrop(),this._setupAcceptWidget(),this.engine.nodes.forEach(o=>{this.prepareDragDrop(o.el),o.subGrid&&n&&o.subGrid.setStatic(A,t,n)}),t&&this._setStaticClass(),this)}updateOptions(A){const t=this.opts;return A===t?this:(A.acceptWidgets!==void 0&&(t.acceptWidgets=A.acceptWidgets,this._setupAcceptWidget()),A.animate!==void 0&&this.setAnimation(A.animate),A.cellHeight&&this.cellHeight(A.cellHeight),A.class!==void 0&&A.class!==t.class&&(t.class&&this.el.classList.remove(t.class),A.class&&this.el.classList.add(A.class)),A.columnOpts?(this.opts.columnOpts=A.columnOpts,this.checkDynamicColumn()):A.columnOpts===null&&this.opts.columnOpts?(delete this.opts.columnOpts,this._updateResizeEvent()):typeof A.column=="number"&&this.column(A.column),A.margin!==void 0&&this.margin(A.margin),A.staticGrid!==void 0&&this.setStatic(A.staticGrid),A.disableDrag!==void 0&&!A.staticGrid&&this.enableMove(!A.disableDrag),A.disableResize!==void 0&&!A.staticGrid&&this.enableResize(!A.disableResize),A.float!==void 0&&this.float(A.float),A.row!==void 0?(t.minRow=t.maxRow=t.row=A.row,this._updateContainerHeight()):(A.minRow!==void 0&&(t.minRow=A.minRow,this._updateContainerHeight()),A.maxRow!==void 0&&(t.maxRow=A.maxRow)),A.lazyLoad!==void 0&&(t.lazyLoad=A.lazyLoad),A.children?.length&&this.load(A.children),this)}update(A,t){return NA.getElements(A).forEach(n=>{const o=n?.gridstackNode;if(!o)return;const a={...q.copyPos({},o),...q.cloneDeep(t)};this.engine.nodeBoundFix(a),delete a.autoPosition;const u=["x","y","w","h"];let d;if(u.some(B=>a[B]!==void 0&&a[B]!==o[B])&&(d={},u.forEach(B=>{d[B]=a[B]!==void 0?a[B]:o[B],delete a[B]})),!d&&(a.minW||a.minH||a.maxW||a.maxH)&&(d={}),a.content!==void 0){const B=n.querySelector(".grid-stack-item-content");B&&B.textContent!==a.content&&(o.content=a.content,NA.renderCB(B,a),o.subGrid?.el&&(B.appendChild(o.subGrid.el),o.subGrid._updateContainerHeight())),delete a.content}let h=!1,g=!1;for(const B in a)B[0]!=="_"&&o[B]!==a[B]&&(o[B]=a[B],h=!0,g=g||!this.opts.staticGrid&&(B==="noResize"||B==="noMove"||B==="locked"));if(q.sanitizeMinMax(o),d){const B=d.w!==void 0&&d.w!==o.w;this.moveNode(o,d),B&&o.subGrid?o.subGrid.onResize(this.hasAnimationCSS()?o.w:void 0):this.resizeToContentCheck(B,o),delete o._orig}(d||h)&&this._writeAttr(n,o),g&&this.prepareDragDrop(o.el),NA.updateCB&&NA.updateCB(o)}),this}moveNode(A,t){const n=A._updating;n||this.engine.cleanNodes().beginUpdate(A),this.engine.moveNode(A,t),this._updateContainerHeight(),n||(this._triggerChangeEvent(),this.engine.endUpdate())}resizeToContent(A){if(!A||(A.classList.remove("size-to-content-max"),!A.clientHeight))return;const t=A.gridstackNode;if(!t)return;const n=t.grid;if(!n||A.parentElement!==n.el)return;const o=n.getCellHeight(!0);if(!o)return;let a=t.h?t.h*o:A.clientHeight,u;if(t.resizeToContentParent&&(u=A.querySelector(t.resizeToContentParent)),u||(u=A.querySelector(NA.resizeToContentParent)),!u)return;const d=A.clientHeight-u.clientHeight,h=t.h?t.h*o-d:u.clientHeight;let g;if(t.subGrid){g=t.subGrid.getRow()*t.subGrid.getCellHeight(!0);const m=t.subGrid.el.getBoundingClientRect(),v=A.getBoundingClientRect();g+=m.top-v.top}else{if(t.subGridOpts?.children?.length)return;{const m=u.firstElementChild;if(!m){console.error(`Error: GridStack.resizeToContent() widget id:${t.id} '${NA.resizeToContentParent}'.firstElementChild is null, make sure to have a div like container. Skipping sizing.`);return}g=m.getBoundingClientRect().height||h}}if(h===g)return;a+=g-h;let B=Math.ceil(a/o);const w=Number.isInteger(t.sizeToContent)?t.sizeToContent:0;w&&B>w&&(B=w,A.classList.add("size-to-content-max")),t.minH&&B<t.minH?B=t.minH:t.maxH&&B>t.maxH&&(B=t.maxH),B!==t.h&&(n._ignoreLayoutsNodeChange=!0,n.moveNode(t,{h:B}),delete n._ignoreLayoutsNodeChange)}resizeToContentCBCheck(A){NA.resizeToContentCB?NA.resizeToContentCB(A):this.resizeToContent(A)}rotate(A,t){return NA.getElements(A).forEach(n=>{const o=n.gridstackNode;if(!q.canBeRotated(o))return;const a={w:o.h,h:o.w,minH:o.minW,minW:o.minH,maxH:o.maxW,maxW:o.maxH};if(t){const d=t.left>0?Math.floor(t.left/this.cellWidth()):0,h=t.top>0?Math.floor(t.top/this.opts.cellHeight):0;a.x=o.x+d-(o.h-(h+1)),a.y=o.y+h-d}Object.keys(a).forEach(d=>{a[d]===void 0&&delete a[d]});const u=o._orig;this.update(n,a),o._orig=u}),this}margin(A){if(!(typeof A=="string"&&A.split(" ").length>1)){const t=q.parseHeight(A);if(this.opts.marginUnit===t.unit&&this.opts.margin===t.h)return}return this.opts.margin=A,this.opts.marginTop=this.opts.marginBottom=this.opts.marginLeft=this.opts.marginRight=void 0,this._initMargin(),this}getMargin(){return this.opts.margin}willItFit(A){return this.engine.willItFit(A)}_triggerChangeEvent(){if(this.engine.batchMode)return this;const A=this.engine.getDirtyNodes(!0);return A&&A.length&&(this._ignoreLayoutsNodeChange||this.engine.layoutsNodesChange(A),this._triggerEvent("change",A)),this.engine.saveInitial(),this}_triggerAddEvent(){if(this.engine.batchMode)return this;if(this.engine.addedNodes?.length){this._ignoreLayoutsNodeChange||this.engine.layoutsNodesChange(this.engine.addedNodes),this.engine.addedNodes.forEach(t=>{delete t._dirty});const A=[...this.engine.addedNodes];this.engine.addedNodes=[],this._triggerEvent("added",A)}return this}_triggerRemoveEvent(){if(this.engine.batchMode)return this;if(this.engine.removedNodes?.length){const A=[...this.engine.removedNodes];this.engine.removedNodes=[],this._triggerEvent("removed",A)}return this}_triggerEvent(A,t){const n=t?new CustomEvent(A,{bubbles:!1,detail:t}):new Event(A);let o=this;for(;o.parentGridNode;)o=o.parentGridNode.grid;return o.el.dispatchEvent(n),this}_updateContainerHeight(){if(!this.engine||this.engine.batchMode)return this;const A=this.parentGridNode;let t=this.getRow()+this._extraDragRow;const n=this.opts.cellHeight,o=this.opts.cellHeightUnit;if(!n)return this;if(!A&&!this.opts.minRow){const a=q.parseHeight(getComputedStyle(this.el).minHeight);if(a.h>0&&a.unit===o){const u=Math.floor(a.h/n);t<u&&(t=u)}}return this.el.setAttribute("gs-current-row",String(t)),this.el.style.removeProperty("min-height"),this.el.style.removeProperty("height"),t&&(this.el.style[A?"minHeight":"height"]=t*n+o),A&&q.shouldSizeToContent(A)&&A.grid.resizeToContentCBCheck(A.el),this}_prepareElement(A,t=!1,n){n=n||this._readAttr(A),A.gridstackNode=n,n.el=A,n.grid=this,n=this.engine.addNode(n,t),this._writeAttr(A,n),A.classList.add(Ue.itemClass,this.opts.itemClass);const o=q.shouldSizeToContent(n);return o?A.classList.add("size-to-content"):A.classList.remove("size-to-content"),o&&this.resizeToContentCheck(!1,n),q.lazyLoad(n)||this.prepareDragDrop(n.el),this}_writePosAttr(A,t){return(!t._moving&&!t._resizing||this._placeholder===A)&&(A.style.top=t.y?t.y===1?"var(--gs-cell-height)":`calc(${t.y} * var(--gs-cell-height))`:null,A.style.left=t.x?t.x===1?"var(--gs-column-width)":`calc(${t.x} * var(--gs-column-width))`:null,A.style.width=t.w>1?`calc(${t.w} * var(--gs-column-width))`:null,A.style.height=t.h>1?`calc(${t.h} * var(--gs-cell-height))`:null),A.setAttribute("gs-x",String(t.x)),A.setAttribute("gs-y",String(t.y)),t.w>1?A.setAttribute("gs-w",String(t.w)):A.removeAttribute("gs-w"),t.h>1?A.setAttribute("gs-h",String(t.h)):A.removeAttribute("gs-h"),this}_writeAttr(A,t){if(!t)return this;this._writePosAttr(A,t);const n={noResize:"gs-no-resize",noMove:"gs-no-move",locked:"gs-locked",id:"gs-id",sizeToContent:"gs-size-to-content"};for(const o in n)t[o]?A.setAttribute(n[o],String(t[o])):A.removeAttribute(n[o]);return this}_readAttr(A,t=!0){const n={};n.x=q.toNumber(A.getAttribute("gs-x")),n.y=q.toNumber(A.getAttribute("gs-y")),n.w=q.toNumber(A.getAttribute("gs-w")),n.h=q.toNumber(A.getAttribute("gs-h")),n.autoPosition=q.toBool(A.getAttribute("gs-auto-position")),n.noResize=q.toBool(A.getAttribute("gs-no-resize")),n.noMove=q.toBool(A.getAttribute("gs-no-move")),n.locked=q.toBool(A.getAttribute("gs-locked"));const o=A.getAttribute("gs-size-to-content");o&&(o==="true"||o==="false"?n.sizeToContent=q.toBool(o):n.sizeToContent=parseInt(o,10)),n.id=A.getAttribute("gs-id"),n.maxW=q.toNumber(A.getAttribute("gs-max-w")),n.minW=q.toNumber(A.getAttribute("gs-min-w")),n.maxH=q.toNumber(A.getAttribute("gs-max-h")),n.minH=q.toNumber(A.getAttribute("gs-min-h")),t&&(n.w===1&&A.removeAttribute("gs-w"),n.h===1&&A.removeAttribute("gs-h"),n.maxW&&A.removeAttribute("gs-max-w"),n.minW&&A.removeAttribute("gs-min-w"),n.maxH&&A.removeAttribute("gs-max-h"),n.minH&&A.removeAttribute("gs-min-h"));for(const a in n){if(!n.hasOwnProperty(a))return;!n[a]&&n[a]!==0&&a!=="sizeToContent"&&delete n[a]}return n}_setStaticClass(){const A=["grid-stack-static"];return this.opts.staticGrid?(this.el.classList.add(...A),this.el.setAttribute("gs-static","true")):(this.el.classList.remove(...A),this.el.removeAttribute("gs-static")),this}onResize(A=this.el?.clientWidth){if(!A||this.prevWidth===A)return;this.prevWidth=A,this.batchUpdate();let t=!1;return this._autoColumn&&this.parentGridNode?this.opts.column!==this.parentGridNode.w&&(this.column(this.parentGridNode.w,this.opts.layout||"list"),t=!0):t=this.checkDynamicColumn(),this._isAutoCellHeight&&this.cellHeight(),this.engine.nodes.forEach(n=>{n.subGrid&&n.subGrid.onResize()}),this._skipInitialResize||this.resizeToContentCheck(t),delete this._skipInitialResize,this.batchUpdate(!1),this}resizeToContentCheck(A=!1,t=void 0){if(this.engine){if(A&&this.hasAnimationCSS())return setTimeout(()=>this.resizeToContentCheck(!1,t),this.animationDelay);if(t)q.shouldSizeToContent(t)&&this.resizeToContentCBCheck(t.el);else if(this.engine.nodes.some(n=>q.shouldSizeToContent(n))){const n=[...this.engine.nodes];this.batchUpdate(),n.forEach(o=>{q.shouldSizeToContent(o)&&this.resizeToContentCBCheck(o.el)}),this._ignoreLayoutsNodeChange=!0,this.batchUpdate(!1),this._ignoreLayoutsNodeChange=!1}this._gsEventHandler.resizecontent&&this._gsEventHandler.resizecontent(null,t?[t]:this.engine.nodes)}}_updateResizeEvent(A=!1){const t=!this.parentGridNode&&(this._isAutoCellHeight||this.opts.sizeToContent||this.opts.columnOpts||this.engine.nodes.find(n=>n.sizeToContent));return!A&&t&&!this.resizeObserver?(this._sizeThrottle=q.throttle(()=>this.onResize(),this.opts.cellHeightThrottle),this.resizeObserver=new ResizeObserver(()=>this._sizeThrottle()),this.resizeObserver.observe(this.el),this._skipInitialResize=!0):(A||!t)&&this.resizeObserver&&(this.resizeObserver.disconnect(),delete this.resizeObserver,delete this._sizeThrottle),this}static getElement(A=".grid-stack-item"){return q.getElement(A)}static getElements(A=".grid-stack-item"){return q.getElements(A)}static getGridElement(A){return NA.getElement(A)}static getGridElements(A){return q.getElements(A)}_initMargin(){let A,t=0,n=[];typeof this.opts.margin=="string"&&(n=this.opts.margin.split(" ")),n.length===2?(this.opts.marginTop=this.opts.marginBottom=n[0],this.opts.marginLeft=this.opts.marginRight=n[1]):n.length===4?(this.opts.marginTop=n[0],this.opts.marginRight=n[1],this.opts.marginBottom=n[2],this.opts.marginLeft=n[3]):(A=q.parseHeight(this.opts.margin),this.opts.marginUnit=A.unit,t=this.opts.margin=A.h),["marginTop","marginRight","marginBottom","marginLeft"].forEach(a=>{this.opts[a]===void 0?this.opts[a]=t:(A=q.parseHeight(this.opts[a]),this.opts[a]=A.h,delete this.opts.margin)}),this.opts.marginUnit=A.unit,this.opts.marginTop===this.opts.marginBottom&&this.opts.marginLeft===this.opts.marginRight&&this.opts.marginTop===this.opts.marginRight&&(this.opts.margin=this.opts.marginTop);const o=this.el.style;return o.setProperty("--gs-item-margin-top",`${this.opts.marginTop}${this.opts.marginUnit}`),o.setProperty("--gs-item-margin-bottom",`${this.opts.marginBottom}${this.opts.marginUnit}`),o.setProperty("--gs-item-margin-right",`${this.opts.marginRight}${this.opts.marginUnit}`),o.setProperty("--gs-item-margin-left",`${this.opts.marginLeft}${this.opts.marginUnit}`),this}static getDD(){return we}static setupDragIn(A,t,n,o=document){t?.pause!==void 0&&(LA.pauseDrag=t.pause),t={appendTo:"body",helper:"clone",...t||{}},(typeof A=="string"?q.getElements(A,o):A).forEach((a,u)=>{we.isDraggable(a)||we.dragIn(a,t),n?.[u]&&(a.gridstackNode=n[u])})}movable(A,t){return this.opts.staticGrid?this:(NA.getElements(A).forEach(n=>{const o=n.gridstackNode;o&&(t?delete o.noMove:o.noMove=!0,this.prepareDragDrop(o.el))}),this)}resizable(A,t){return this.opts.staticGrid?this:(NA.getElements(A).forEach(n=>{const o=n.gridstackNode;o&&(t?delete o.noResize:o.noResize=!0,this.prepareDragDrop(o.el))}),this)}disable(A=!0){if(!this.opts.staticGrid)return this.enableMove(!1,A),this.enableResize(!1,A),this._triggerEvent("disable"),this}enable(A=!0){if(!this.opts.staticGrid)return this.enableMove(!0,A),this.enableResize(!0,A),this._triggerEvent("enable"),this}enableMove(A,t=!0){return this.opts.staticGrid?this:(A?delete this.opts.disableDrag:this.opts.disableDrag=!0,this.engine.nodes.forEach(n=>{this.prepareDragDrop(n.el),n.subGrid&&t&&n.subGrid.enableMove(A,t)}),this)}enableResize(A,t=!0){return this.opts.staticGrid?this:(A?delete this.opts.disableResize:this.opts.disableResize=!0,this.engine.nodes.forEach(n=>{this.prepareDragDrop(n.el),n.subGrid&&t&&n.subGrid.enableResize(A,t)}),this)}cancelDrag(){const A=this._placeholder?.gridstackNode;A&&(A._isExternal?(A._isAboutToRemove=!0,this.engine.removeNode(A)):A._isAboutToRemove&&NA._itemRemoving(A.el,!1),this.engine.restoreInitial())}_removeDD(A){return we.draggable(A,"destroy").resizable(A,"destroy"),A.gridstackNode&&delete A.gridstackNode._initDD,delete A.ddElement,this}_setupAcceptWidget(){if(this.opts.staticGrid||!this.opts.acceptWidgets&&!this.opts.removable)return we.droppable(this.el,"destroy"),this;let A,t;const n=(o,a,u)=>{u=u||a;const d=u.gridstackNode;if(!d)return;if(!d.grid?.el){u.style.transform=`scale(${1/this.dragTransform.xScale},${1/this.dragTransform.yScale})`;const m=u.getBoundingClientRect();u.style.left=m.x+(this.dragTransform.xScale-1)*(o.clientX-m.x)/this.dragTransform.xScale+"px",u.style.top=m.y+(this.dragTransform.yScale-1)*(o.clientY-m.y)/this.dragTransform.yScale+"px",u.style.transformOrigin="0px 0px"}let{top:h,left:g}=u.getBoundingClientRect();const B=this.el.getBoundingClientRect();g-=B.left,h-=B.top;const w={position:{top:h*this.dragTransform.xScale,left:g*this.dragTransform.yScale}};if(d._temporaryRemoved){if(d.x=Math.max(0,Math.round(g/t)),d.y=Math.max(0,Math.round(h/A)),delete d.autoPosition,this.engine.nodeBoundFix(d),!this.engine.willItFit(d)){if(d.autoPosition=!0,!this.engine.willItFit(d)){we.off(a,"drag");return}d._willFitPos&&(q.copyPos(d,d._willFitPos),delete d._willFitPos)}this._onStartMoving(u,o,w,d,t,A)}else this._dragOrResize(u,o,w,d,t,A)};return we.droppable(this.el,{accept:o=>{const a=o.gridstackNode||this._readAttr(o,!1);if(a?.grid===this)return!0;if(!this.opts.acceptWidgets)return!1;let u=!0;if(typeof this.opts.acceptWidgets=="function")u=this.opts.acceptWidgets(o);else{const d=this.opts.acceptWidgets===!0?".grid-stack-item":this.opts.acceptWidgets;u=o.matches(d)}if(u&&a&&this.opts.maxRow){const d={w:a.w,h:a.h,minW:a.minW,minH:a.minH};u=this.engine.willItFit(d)}return u}}).on(this.el,"dropover",(o,a,u)=>{let d=u?.gridstackNode||a.gridstackNode;if(d?.grid===this&&!d._temporaryRemoved)return!1;if(d?._sidebarOrig&&(d.w=d._sidebarOrig.w,d.h=d._sidebarOrig.h),d?.grid&&d.grid!==this&&!d._temporaryRemoved&&d.grid._leave(a,u),u=u||a,t=this.cellWidth(),A=this.getCellHeight(!0),!d){const B=u.getAttribute("data-gs-widget")||u.getAttribute("gridstacknode");if(B){try{d=JSON.parse(B)}catch{console.error("Gridstack dropover: Bad JSON format: ",B)}u.removeAttribute("data-gs-widget"),u.removeAttribute("gridstacknode")}d||(d=this._readAttr(u)),d._sidebarOrig={w:d.w,h:d.h}}d.grid||(d.el||(d={...d}),d._isExternal=!0,u.gridstackNode=d);const h=d.w||Math.round(u.offsetWidth/t)||1,g=d.h||Math.round(u.offsetHeight/A)||1;return d.grid&&d.grid!==this?(a._gridstackNodeOrig||(a._gridstackNodeOrig=d),a.gridstackNode=d={...d,w:h,h:g,grid:this},delete d.x,delete d.y,this.engine.cleanupNode(d).nodeBoundFix(d),d._initDD=d._isExternal=d._temporaryRemoved=!0):(d.w=h,d.h=g,d._temporaryRemoved=!0),NA._itemRemoving(d.el,!1),we.on(a,"drag",n),n(o,a,u),!1}).on(this.el,"dropout",(o,a,u)=>{const d=u?.gridstackNode||a.gridstackNode;return d&&(!d.grid||d.grid===this)&&(this._leave(a,u),this._isTemp&&this.removeAsSubGrid(d)),!1}).on(this.el,"drop",(o,a,u)=>{const d=u?.gridstackNode||a.gridstackNode;if(d?.grid===this&&!d._isExternal)return!1;const h=!!this.placeholder.parentElement,g=a!==u;this.placeholder.remove(),delete this.placeholder.gridstackNode,h&&this.opts.animate&&(this.setAnimation(!1),this.setAnimation(!0,!0));const B=a._gridstackNodeOrig;if(delete a._gridstackNodeOrig,h&&B?.grid&&B.grid!==this){const m=B.grid;m.engine.removeNodeFromLayoutCache(B),m.engine.removedNodes.push(B),m._triggerRemoveEvent()._triggerChangeEvent(),m.parentGridNode&&!m.engine.nodes.length&&m.opts.subGridDynamic&&m.removeAsSubGrid()}if(!d||(h&&(this.engine.cleanupNode(d),d.grid=this),delete d.grid?._isTemp,we.off(a,"drag"),u!==a?(u.remove(),a=u):a.remove(),this._removeDD(a),!h))return!1;const w=d.subGrid?.el?.gridstack;return q.copyPos(d,this._readAttr(this.placeholder)),q.removePositioningStyles(a),g&&(d.content||d.subGridOpts||NA.addRemoveCB)?(delete d.el,a=this.addWidget(d)):(this._prepareElement(a,!0,d),this.el.appendChild(a),this.resizeToContentCheck(!1,d),w&&(w.parentGridNode=d),this._updateContainerHeight()),this.engine.addedNodes.push(d),this._triggerAddEvent(),this._triggerChangeEvent(),this.engine.endUpdate(),this._gsEventHandler.dropped&&this._gsEventHandler.dropped({...o,type:"dropped"},B&&B.grid?B:void 0,d),!1}),this}static _itemRemoving(A,t){if(!A)return;const n=A?A.gridstackNode:void 0;!n?.grid||A.classList.contains(n.grid.opts.removableOptions.decline)||(t?n._isAboutToRemove=!0:delete n._isAboutToRemove,t?A.classList.add("grid-stack-item-removing"):A.classList.remove("grid-stack-item-removing"))}_setupRemoveDrop(){if(typeof this.opts.removable!="string")return this;const A=document.querySelector(this.opts.removable);return A?(!this.opts.staticGrid&&!we.isDroppable(A)&&we.droppable(A,this.opts.removableOptions).on(A,"dropover",(t,n)=>NA._itemRemoving(n,!0)).on(A,"dropout",(t,n)=>NA._itemRemoving(n,!1)),this):this}prepareDragDrop(A,t=!1){const n=A?.gridstackNode;if(!n)return;const o=n.noMove||this.opts.disableDrag,a=n.noResize||this.opts.disableResize,u=this.opts.staticGrid||o&&a;if((t||u)&&(n._initDD&&(this._removeDD(A),delete n._initDD),u&&A.classList.add("ui-draggable-disabled","ui-resizable-disabled"),!t))return this;if(!n._initDD){let d,h;const g=(m,v)=>{this.triggerEvent(m,m.target),d=this.cellWidth(),h=this.getCellHeight(!0),this._onStartMoving(A,m,v,n,d,h)},B=(m,v)=>{this._dragOrResize(A,m,v,n,d,h)},w=m=>{this.placeholder.remove(),delete this.placeholder.gridstackNode,delete n._moving,delete n._resizing,delete n._event,delete n._lastTried;const v=n.w!==n._orig.w,y=m.target;if(!(!y.gridstackNode||y.gridstackNode.grid!==this)){if(n.el=y,n._isAboutToRemove){const I=A.gridstackNode.grid;I._gsEventHandler[m.type]&&I._gsEventHandler[m.type](m,y),I.engine.nodes.push(n),I.removeWidget(A,!0,!0)}else q.removePositioningStyles(y),n._temporaryRemoved?(this._writePosAttr(y,n),this.engine.addNode(n)):this._writePosAttr(y,n),this.triggerEvent(m,y);this._extraDragRow=0,this._updateContainerHeight(),this._triggerChangeEvent(),this.engine.endUpdate(),m.type==="resizestop"&&(Number.isInteger(n.sizeToContent)&&(n.sizeToContent=n.h),this.resizeToContentCheck(v,n))}};we.draggable(A,{start:g,stop:w,drag:B}).resizable(A,{start:g,stop:w,resize:B}),n._initDD=!0}return we.draggable(A,o?"disable":"enable").resizable(A,a?"disable":"enable"),this}_onStartMoving(A,t,n,o,a,u){if(this.engine.cleanNodes().beginUpdate(o),this._writePosAttr(this.placeholder,o),this.el.appendChild(this.placeholder),this.placeholder.gridstackNode=o,o.grid?.el)this.dragTransform=q.getValuesFromTransformedElement(A);else if(this.placeholder&&this.placeholder.closest(".grid-stack")){const d=this.placeholder.closest(".grid-stack");this.dragTransform=q.getValuesFromTransformedElement(d)}else this.dragTransform={xScale:1,xOffset:0,yScale:1,yOffset:0};if(o.el=this.placeholder,o._lastUiPosition=n.position,o._prevYPix=n.position.top,o._moving=t.type==="dragstart",o._resizing=t.type==="resizestart",delete o._lastTried,t.type==="dropover"&&o._temporaryRemoved&&(this.engine.addNode(o),o._moving=!0),this.engine.cacheRects(a,u,this.opts.marginTop,this.opts.marginRight,this.opts.marginBottom,this.opts.marginLeft),t.type==="resizestart"){const d=this.getColumn()-o.x,h=(this.opts.maxRow||Number.MAX_SAFE_INTEGER)-o.y;we.resizable(A,"option","minWidth",a*Math.min(o.minW||1,d)).resizable(A,"option","minHeight",u*Math.min(o.minH||1,h)).resizable(A,"option","maxWidth",a*Math.min(o.maxW||Number.MAX_SAFE_INTEGER,d)).resizable(A,"option","maxWidthMoveLeft",a*Math.min(o.maxW||Number.MAX_SAFE_INTEGER,o.x+o.w)).resizable(A,"option","maxHeight",u*Math.min(o.maxH||Number.MAX_SAFE_INTEGER,h)).resizable(A,"option","maxHeightMoveUp",u*Math.min(o.maxH||Number.MAX_SAFE_INTEGER,o.y+o.h))}}_dragOrResize(A,t,n,o,a,u){const d={...o._orig};let h,g=this.opts.marginLeft,B=this.opts.marginRight,w=this.opts.marginTop,m=this.opts.marginBottom;const v=Math.round(u*.1),y=Math.round(a*.1);if(g=Math.min(g,y),B=Math.min(B,y),w=Math.min(w,v),m=Math.min(m,v),t.type==="drag"){if(o._temporaryRemoved)return;const N=n.position.top-o._prevYPix;o._prevYPix=n.position.top,this.opts.draggable.scroll!==!1&&q.updateScrollPosition(A,n.position,N);const D=n.position.left+(n.position.left>o._lastUiPosition.left?-B:g),P=n.position.top+(n.position.top>o._lastUiPosition.top?-m:w);d.x=Math.round(D/a),d.y=Math.round(P/u);const H=this._extraDragRow;if(this.engine.collide(o,d)){const O=this.getRow();let sA=Math.max(0,d.y+o.h-O);this.opts.maxRow&&O+sA>this.opts.maxRow&&(sA=Math.max(0,this.opts.maxRow-O)),this._extraDragRow=sA}else this._extraDragRow=0;if(this._extraDragRow!==H&&this._updateContainerHeight(),o.x===d.x&&o.y===d.y)return}else if(t.type==="resize"){if(d.x<0||(q.updateScrollResize(t,A,u),d.w=Math.round((n.size.width-g)/a),d.h=Math.round((n.size.height-w)/u),o.w===d.w&&o.h===d.h)||o._lastTried&&o._lastTried.w===d.w&&o._lastTried.h===d.h)return;const N=n.position.left+g,D=n.position.top+w;d.x=Math.round(N/a),d.y=Math.round(D/u),h=!0}o._event=t,o._lastTried=d;const I={x:n.position.left+g,y:n.position.top+w,w:(n.size?n.size.width:o.w*a)-g-B,h:(n.size?n.size.height:o.h*u)-w-m};if(this.engine.moveNodeCheck(o,{...d,cellWidth:a,cellHeight:u,rect:I,resizing:h})){o._lastUiPosition=n.position,this.engine.cacheRects(a,u,w,B,m,g),delete o._skipDown,h&&o.subGrid&&o.subGrid.onResize(),this._extraDragRow=0,this._updateContainerHeight();const N=t.target;o._sidebarOrig||this._writePosAttr(N,o),this.triggerEvent(t,N)}}triggerEvent(A,t){let n=this;for(;n.parentGridNode;)n=n.parentGridNode.grid;n._gsEventHandler[A.type]&&n._gsEventHandler[A.type](A,t)}_leave(A,t){t=t||A;const n=t.gridstackNode;if(!n||(t.style.transform=t.style.transformOrigin=null,we.off(A,"drag"),n._temporaryRemoved))return;n._temporaryRemoved=!0,this.engine.removeNode(n),n.el=n._isExternal&&t?t:A;const o=n._sidebarOrig;n._isExternal&&this.engine.cleanupNode(n),n._sidebarOrig=o,this.opts.removable===!0&&NA._itemRemoving(A,!0),A._gridstackNodeOrig?(A.gridstackNode=A._gridstackNodeOrig,delete A._gridstackNodeOrig):n._isExternal&&this.engine.restoreInitial()}};on.renderCB=(e,A)=>{e&&A?.content&&(e.textContent=A.content)},on.resizeToContentParent=".grid-stack-item-content",on.Utils=q,on.Engine=Hi,on.GDRev="12.4.2";var Rm={class:"d-layout"},Vm=["gs-id","gs-x","gs-y","gs-w","gs-h","gs-locked","gs-no-resize","gs-no-move","gs-min-w","gs-min-h","gs-max-w","gs-max-h"],Pm=(0,r.defineComponent)({name:"DLayout",__name:"layout",props:{modelValue:{default:()=>[]},column:{default:24},cellHeight:{default:60},draggable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},disable:{type:Boolean,default:!1},animate:{type:Boolean,default:!0},float:{type:Boolean,default:!0},removable:{type:Boolean,default:!1},removableOptions:{}},emits:["update:modelValue","added","removed","changed","dragStart","dragStop","resizeStart","resizeStop"],setup(e,{expose:A,emit:t}){const n=e,o=t,a=(0,r.ref)();let u=null;const d=async()=>{a.value&&(await(0,r.nextTick)(),u&&u.destroy(!1),u=on.init({column:n.column,cellHeight:n.cellHeight,disableDrag:!(n.draggable&&!n.disable),disableResize:!(n.resizable&&!n.disable),animate:n.animate,float:n.float,removable:n.removable,removableOptions:n.removableOptions},a.value),u.on("added",(m,v)=>{const y=v[0];y&&(o("added",h(y)),B())}),u.on("removed",(m,v)=>{const y=v[0];y&&(o("removed",h(y)),B())}),u.on("change",()=>{B(),o("changed",(u?.save()||[]).map(m=>h(m)))}),u.on("dragstart",(m,v)=>{v&&o("dragStart",m,h(v.gridstackNode||v))}),u.on("dragstop",(m,v)=>{v&&o("dragStop",m,h(v.gridstackNode||v))}),u.on("resizestart",(m,v)=>{v&&o("resizeStart",m,h(v.gridstackNode||v))}),u.on("resizestop",(m,v)=>{v&&o("resizeStop",m,h(v.gridstackNode||v))}))},h=m=>({id:m.id||m.el?.getAttribute("gs-id")||"",x:m.x||0,y:m.y||0,w:m.w||1,h:m.h||1,locked:m.locked||!1,noResize:m.noResize||!1,noMove:m.noMove||!1,minW:m.minW,minH:m.minH,maxW:m.maxW,maxH:m.maxH}),g=async()=>{if(!u||!a.value)return;await(0,r.nextTick)();const m=u.engine.nodes;new Set(m.map(y=>y.id));const v=new Set(n.modelValue.map(y=>y.id));m.forEach(y=>{if(!v.has(y.id||"")){const I=y.el;I&&u&&u.removeWidget(I,!1)}}),n.modelValue.forEach(y=>{const I=m.find(N=>N.id===y.id);if(I)I.el&&u&&u.update(I.el,{x:y.x,y:y.y,w:y.w,h:y.h,locked:y.locked,noResize:y.noResize,noMove:y.noMove,minW:y.minW,minH:y.minH,maxW:y.maxW,maxH:y.maxH});else{if(!a.value||!u)return;const N=a.value.querySelector(`[gs-id="${y.id}"]`);N&&u.makeWidget(N)}})},B=()=>{u&&o("update:modelValue",u.save().map(m=>{const v={id:m.id||"",x:m.x||0,y:m.y||0,w:m.w||1,h:m.h||1},y=n.modelValue.find(I=>I.id===v.id);return y&&Object.keys(y).forEach(I=>{["id","x","y","w","h"].includes(I)||(v[I]=y[I])}),v}))},w=(0,r.computed)(()=>n.modelValue);return(0,r.watch)(()=>n.modelValue,async()=>{u&&(await(0,r.nextTick)(),g())},{deep:!0}),(0,r.watch)(()=>[n.column,n.cellHeight,n.draggable,n.resizable,n.disable,n.animate,n.float,n.removable],()=>{d()}),(0,r.onMounted)(()=>{d()}),(0,r.onBeforeUnmount)(()=>{u&&(u.destroy(!1),u=null)}),A({addItem:async m=>{if(u&&a.value){await(0,r.nextTick)();const v=a.value.querySelector(`[gs-id="${m.id}"]`);v&&(u.makeWidget(v),u.update(v,{x:m.x,y:m.y,w:m.w,h:m.h,locked:m.locked,noResize:m.noResize,noMove:m.noMove,minW:m.minW,minH:m.minH,maxW:m.maxW,maxH:m.maxH}))}},removeItem:m=>{if(u&&a.value){const v=a.value.querySelector(`[gs-id="${m}"]`);v&&u.removeWidget(v,!1)}},clear:()=>{u&&u.removeAll(!1)},getGrid:()=>u}),(m,v)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",Rm,[(0,r.createElementVNode)("div",{ref_key:"gridContainerRef",ref:a},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(w.value,y=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:y.id,"gs-id":y.id,"gs-x":y.x,"gs-y":y.y,"gs-w":y.w,"gs-h":y.h,"gs-locked":y.locked,"gs-no-resize":y.noResize,"gs-no-move":y.noMove,"gs-min-w":y.minW,"gs-min-h":y.minH,"gs-max-w":y.maxW,"gs-max-h":y.maxH,class:"d-layout-item"},[(0,r.renderSlot)(m.$slots,"item",{item:y})],8,Vm))),128))],512)]))}}),Gm=Pm,vl=ft(Gm),jA=(e,A="",t=!1)=>t?`${e}pt`:A?`${e}${A}`:`${e}px`,Xe=(e,A=0)=>e==null||isNaN(e)?0:Number(Number(e).toFixed(A)),zm=e=>e*3/4,Xm=e=>e*4/3,$m=["onMousedown"],Ym={key:2,class:"d-draggable__mask"},Wm=(0,r.defineComponent)({name:"DDraggable",__name:"draggable",props:{index:{},mask:{type:Boolean,default:!0},scale:{default:1},readonly:{type:Boolean,default:!1},resize:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},step:{default:1},zIndex:{default:1},isActiveBgTransparent:{type:Boolean,default:!1},left:{default:0},top:{default:0},width:{},height:{},activeFlag:{type:Boolean,default:!1},isPt:{type:Boolean,default:!1}},emits:["focus","blur","over","out"],setup(e,{expose:A,emit:t}){let n=0;const o=e,a=t,u=[{classname:"left"},{classname:"right"},{classname:"top"},{classname:"bottom"},{classname:"top-left"},{classname:"top-right"},{classname:"bottom-left"},{classname:"bottom-right"}],d={right:{resizeX:!0},left:{resizeX:!0,moveLeft:!0,invertX:!0},top:{resizeY:!0,moveTop:!0,invertY:!0},bottom:{resizeY:!0},"bottom-right":{resizeX:!0,resizeY:!0},"bottom-left":{resizeX:!0,resizeY:!0,moveLeft:!0,invertX:!0},"top-right":{resizeX:!0,resizeY:!0,moveTop:!0,invertY:!0},"top-left":{resizeX:!0,resizeY:!0,moveLeft:!0,moveTop:!0,invertX:!0,invertY:!0}},h=(0,r.ref)(),g=(0,r.ref)(),B=()=>g.value?.firstElementChild,w=(0,r.ref)(0),m=(0,r.ref)(0),v=(0,r.ref)(0),y=(0,r.ref)(0),I=(0,r.ref)(!1),N=(0,r.ref)(!1),D=(0,r.ref)(!1);let P=null;const H=(0,r.computed)(()=>o.scale),O=(0,r.computed)(()=>!o.readonly&&!o.disabled),sA=(0,r.computed)(()=>O.value&&(D.value||N.value||I.value)),J=(0,r.computed)(()=>!o.disabled&&o.mask),cA=(0,r.computed)(()=>{const Z=8*H.value;return{width:jA(Z,"",o.isPt),height:jA(Z,"",o.isPt)}}),aA=(0,r.computed)(()=>({fontSize:jA(14*H.value,"",o.isPt),padding:jA(4*H.value,"",o.isPt),"border-radius":jA(2*H.value,"",o.isPt)})),oA=(0,r.computed)(()=>{const Z={zIndex:D.value?9999:o.zIndex,top:jA(y.value,"",o.isPt),width:jA(w.value,"",o.isPt),height:jA(m.value,"",o.isPt),left:jA(v.value,"",o.isPt)};return D.value&&o.isActiveBgTransparent&&O.value&&(Z.backgroundColor="color-mix(in srgb, var(--j-color-primary-bg) 60%, transparent)"),Z});(0,r.watch)(()=>o.width,Z=>S(Z)),(0,r.watch)(()=>o.height,Z=>eA(Z)),(0,r.watch)(()=>o.left,Z=>U(Z)),(0,r.watch)(()=>o.top,Z=>K(Z)),(0,r.watch)(w,Z=>{h.value&&(h.value.style.width=jA(Z,"",o.isPt),o.resize&&B()?.style&&(B().style.width=jA(Z,"",o.isPt)))}),(0,r.watch)(m,Z=>{h.value&&(h.value.style.height=jA(Z,"",o.isPt),o.resize&&B()?.style&&(B().style.height=jA(Z,"",o.isPt)))}),(0,r.watch)(()=>o.activeFlag,Z=>{iA(Z)});const iA=Z=>{D.value=Z},AA=Z=>Z===void 0?0:o.isPt?Xm(Z):Z,S=Z=>{w.value=Xe(AA(Z))||(B()?.offsetWidth??0)},eA=Z=>{m.value=Xe(AA(Z))||(B()?.offsetHeight??0)},U=Z=>{v.value=Xe(AA(Z))},K=Z=>{y.value=Xe(AA(Z))},b=()=>({index:o.index,width:BA(w.value),height:BA(m.value),left:BA(v.value),top:BA(y.value)}),R=Z=>{const _=b();switch(Z){case"focus":a("focus",_);break;case"blur":a("blur",_);break;case"over":a("over",_);break;case"out":a("out",_);break}},k=()=>{S(o.width),eA(o.height),U(o.left),K(o.top),iA(o.activeFlag)},T=Z=>{v.value=Z},M=Z=>{y.value=Z},Y=Z=>{const _=8*H.value/2,F={};return Z.split("-").forEach(x=>{F[x]=jA(-_,"",o.isPt)}),F},tA=Z=>{N.value=Z},BA=Z=>o.isPt?zm(Z):Z,UA=(Z=!0)=>{n+=1,I.value=!0,Z&&R("focus")},nA=()=>{n=Math.max(0,n-1),I.value=!1,R("blur")},W=()=>{P?.(),P=null},$=(Z,_)=>{let F=Z.clientX,x=Z.clientY,z=0,G=0,dA=0,gA=!1;const EA=document.body.style.userSelect;document.body.style.userSelect="none";const wA=()=>{if(dA=0,z===0&&G===0)return;const RA=z,WA=G;z=0,G=0,_(RA,WA)},DA=RA=>{I.value=!0;const WA=RA.clientX-F,te=RA.clientY-x;if(F=RA.clientX,x=RA.clientY,!gA){gA=!0,_(WA,te);return}z+=WA,G+=te,dA||(dA=requestAnimationFrame(wA))},MA=()=>{dA&&(cancelAnimationFrame(dA),wA()),W(),nA()};W(),document.addEventListener("mousemove",DA),document.addEventListener("mouseup",MA),P=()=>{dA&&(cancelAnimationFrame(dA),dA=0),document.body.style.userSelect=EA,document.removeEventListener("mousemove",DA),document.removeEventListener("mouseup",MA)}},uA=(Z,_,F)=>{if(Z.resizeX){let x=_*o.step;Z.invertX&&(x=-x),Z.moveLeft&&(v.value=Xe(v.value-x)),w.value=Xe(w.value+x)}if(Z.resizeY){let x=F*o.step;Z.invertY&&(x=-x),Z.moveTop&&(y.value=Xe(y.value-x)),m.value=Xe(m.value+x)}},mA=(Z,_)=>{if(!O.value)return;const F=d[_];UA(!1),$(Z,(x,z)=>uA(F,x,z))},bA=()=>{n>0||(N.value=!1,R("out"))},_A=()=>{n>0||O.value&&(N.value=!0,R("over"))},fA=Z=>{if(!O.value)return;const _=D.value;D.value=!0,UA(!_),$(Z,(F,x)=>{v.value=Xe(v.value+F*o.step),y.value=Xe(y.value+x*o.step)})};return(0,r.onMounted)(()=>{k()}),(0,r.onBeforeUnmount)(()=>{W()}),A({setActive:iA,setLeft:T,setTop:M,setOverActive:tA}),(Z,_)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["d-draggable",{"d-draggable--active":(D.value||N.value)&&O.value},{"d-draggable--pt":e.isPt&&O.value},{"d-draggable--move":I.value},{"d-draggable--click":e.disabled}]),onMousedown:(0,r.withModifiers)(fA,["stop"]),onMouseenter:(0,r.withModifiers)(_A,["stop"]),onMouseleave:(0,r.withModifiers)(bA,["stop"]),style:(0,r.normalizeStyle)(oA.value)},[(0,r.createElementVNode)("div",{class:"d-draggable__wrapper",ref_key:"wrapper",ref:h},[sA.value?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[e.isPt?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"d-draggable__line d-draggable__line--label",style:(0,r.normalizeStyle)(aA.value)}," X:"+(0,r.toDisplayString)(v.value)+", Y:"+(0,r.toDisplayString)(y.value),5))],64)):(0,r.createCommentVNode)("",!0),O.value?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},(0,r.renderList)(u,F=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:F.classname},[D.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(["d-draggable__range",`d-draggable__range--${F.classname}`]),style:(0,r.normalizeStyle)([cA.value,Y(F.classname)]),onMousedown:(0,r.withModifiers)(x=>mA(x,F.classname),["stop"])},null,46,$m)):(0,r.createCommentVNode)("",!0)],64))),64)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",{class:"d-draggable__item",ref_key:"item",ref:g},[(0,r.renderSlot)(Z.$slots,"default")],512),J.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",Ym)):(0,r.createCommentVNode)("",!0)],512)],38))}}),Jm=Wm,yl=ft(Jm),Ql=e=>{const A=Zm(e.components);return{formConfig:e.form,componentList:A}},El=(e,A)=>{let t={},n=[];const o={},a=e;t=a.form;const u={};return a.components.forEach(d=>{const h=A[d.type];u[d.containerId]=u[d.containerId]||[];const g={id:d.id,name:d.name,type:d.type,dragType:h?.dragType||"component",componentName:h?.componentName||"",runtimeType:h?.runtimeType,groupId:d.groupId,config:d.config,isInput:h?.isInput!==!1,containerId:d.containerId,level:d.level};h?.dragType==="container"&&(g.children=[]),o[g.id]=g,u[d.containerId].push(g)}),Object.keys(u).forEach(d=>{o[d]&&(o[d].children=u[d])}),n=u.form||[],{formConfig:t,componentList:n,componentDic:o}},Jr=(e,A)=>{const t={ver:"j1",form:{...e},components:[],db:{}};return Fl(A||[],t.components),t},Fl=(e,A)=>{e.forEach(t=>{if(t.type==="pkey")return;const n={id:t.id,name:t.name,type:t.type,runtimeType:t.runtimeType||t.componentName||t.type,groupId:t.groupId||"",config:t.config,containerId:t.containerId,level:t.level};t.dragType==="container"&&Fl(t.children||[],A),A.push(n)})},Zm=e=>{const A={},t={};return e.forEach(n=>{A[n.containerId]=A[n.containerId]||[];const o={id:n.id,type:n.runtimeType,slot:n.groupId,config:{rule:[]}};n.config&&Object.keys(n.config).forEach(a=>{if(a==="required"){n.config.required&&o.config?.rule?.push({required:!0,message:n.config.requiredMsg||"请输入"});return}if(a==="patterns"){n.config.patterns.forEach(u=>{u.reg&&u.msg&&o.config?.rule?.push({pattern:new RegExp(u.reg),message:`请输入${u.msg||""}`})});return}o.config[a]=n.config[a]}),n.type==="pkey"&&(o.config.isPkey=!0),A[n.containerId].push(o),t[n.id]=o}),Object.keys(A).forEach(n=>{const o=t[n];if(o){const a=A[n];if(["j-tabs","j-collapse"].includes(o.type||"")&&o.config?.groups){const u={};a.forEach(d=>{if(d.slot!==void 0&&d.slot!==null){const h=d.slot.toString();u[h]||(u[h]=[]),delete d.slot,u[h].push(d)}}),o.children=o.config.groups.map(d=>{const h=u[d._i]||[],g={label:d.label};d.active&&o.type==="j-collapse"&&(g.active=d.active);let B;if(o.type==="j-tabs"&&o.config?.tabKey&&o.config?.options.length>0){const m=o.config.options.find(v=>v.label===d._i);m&&(B=({formData:v})=>({display:m.value.includes(v[o.config?.tabKey||""])?m.display:!m.display}))}const w={config:g,children:h};return B&&(w.getCompConfig=B),w}),delete o.config.groups}else o.children=a}}),A.form},Ul=(e,A,t,n,o,a,u,d)=>{const h=(0,r.ref)(),g=(0,r.reactive)({}),B=(0,r.computed)(()=>{const b=[];return Object.keys(g).forEach(R=>{const k=g[R];k.dragType==="component"&&k.type!=="pkey"&&b.push(k)}),b}),w=(b=[],R)=>{const k=A?.value?.init;typeof k=="function"&&k(b,R)},m=b=>o?o(b,{componentDic:g,components:B.value,configData:h.value.config}):{},v=(b,R)=>{if(h.value?.id===b)return;const k=g[b]||R;if(k?h.value=k:b===t.id?h.value=t:h.value=null,h.value){const T=a[h.value.type];T?(w(T,h.value.config),m(h.value.type)):w([])}else w([]);R&&oe("dragClick",{id:R.id})},y=()=>e.value.$el.getBoundingClientRect(),I=b=>b===t.id?t:g[b]||{},N=b=>{const R=[];if(b===t.id)R.push({id:b,name:t.name});else{const k=g[b];if(k){R.push({id:b,name:k.name});const T=N(k.containerId);R.push(...T)}}return R},D=(b,R)=>{const k=g[R];if(k===void 0)return!1;const T=k.containerId;return b===T?!0:T===t.id?!1:D(b,T)},P=b=>n?n(b)||{}:{},H=(b,R,k,T)=>{if(d){const M=I(b);return d(k.componentType,{container:M,groupId:R,configData:k},T)}return!1},O=({name:b,type:R,dragType:k,isInput:T,componentName:M,runtimeType:Y},tA,BA,UA,nA=!1)=>{const W=P(R);if(W.id=gt(),W.span=24,W.componentType=R,sA(tA,W.componentType))return;H(tA,UA,W,!0);const $={id:W.id,name:b,type:R,runtimeType:Y,componentName:M||"",dragType:k||"component",containerId:tA,isInput:!!T,level:g[tA]?g[tA].level+1:1,config:W,isNewAdd:!nA,groupId:UA};return $.dragType==="container"&&($.children=[]),g[$.id]=$,I(tA).children?.splice(BA,0,$),$},sA=(b,R)=>!!(I(b).config.componentType==="gridtable"&&["divider","label","text","textEditor","viewTable","card","collapse","tabs","qrcode","barcode","tableLayout"].includes(R)),J=(b,R,k=!1)=>{let T=null;const M=I(b).children,Y=M?.findIndex(tA=>tA.id===R)||0;if(k&&M&&M.length>1){let tA=Y+1;Y>0&&(tA=Y-1),T=M[tA]}return M?.splice(Y,1),T?.id},cA=(b,R,k,T)=>{const M=I(R).children,Y=b.containerId!==R;b.containerId=R,b.groupId=T,M?.splice(k,0,b),H(R,T,b.config,Y)&&(eA(),v(b.id))},aA=b=>{let R="";const k=I(b);return k&&(k.children&&k.children.length>0&&k.children.forEach(T=>{aA(T.id)}),R=J(k.containerId,b,!0)||"",delete g[b]),h.value&&h.value.id===b&&(h.value=null,A.value.init([])),R},oA=(b,R=[])=>{const k=I(b);if(k&&k.children&&k.children.length>0){const T=[];k.children.forEach(M=>{M.groupId&&R.includes(M.groupId)&&T.push(M.id)}),T.forEach(M=>{aA(M),delete g[M]})}},iA=(b,R)=>{const k=I(b);k&&(k.children&&k.children.length>0&&k.children.forEach(T=>{T.groupId===R&&aA(T.id)}),delete g[b])},AA=b=>{const R=Qn(I(b));R.id=gt(),R.config.id=R.id,g[R.id]=R;const k=I(R.containerId).children,T=k?.findIndex(M=>M.id===b)||0;k?.splice(T+1,0,R)},S=()=>{t.children=[],Su(g),h.value&&(oe("dragClick",{id:""}),h.value=null,A.value.init([]))},eA=()=>{h.value&&(oe("dragClick",{id:""}),h.value=null,A.value.init([]))},U=b=>{const R=h.value,k=I(R.containerId).children,T=k?.findIndex(M=>M.id===R.id)||0;aA(R.id),(0,r.nextTick)(()=>{const M=u[b],Y=P(b);Y.id=R.id,Y.span=R.config.span,Y.componentType=b,Y.table=R.config.table,Y.field=R.config.field,R.config.isSubTable&&(Y.isSubTable=R.config.isSubTable);const tA={id:Y.id,name:M.name,type:b,runtimeType:M.runtimeType,componentName:M.componentName||"",dragType:R.dragType,groupId:R.groupId,containerId:R.containerId,isInput:R.isInput,level:R.level,config:Y,isNewAdd:!0};g[tA.id]=tA,k?.splice(T,0,tA)})},K=b=>{oe("dragAddByClick",b)};return(0,r.provide)("d-drag-design-provide",{activedComponent:h,getDesignLocals:y,getComponent:I,getParentComponents:N,isMyChildComponent:D,selectComponent:v,addComponent:O,deleteComponent:aA,copyComponent:AA,removeComponentFromContainer:J,addComponentToContainer:cA,top:t,deleteChildren:iA,deleteChildrens:oA}),{activedComponent:h,clearComponents:S,changeComponent:U,schemaComponentDic:g,clearSelect:eA,addComponent:O,addComponentByTable:K,designComponentList:B}},jm=(0,r.defineComponent)({__name:"formDesignItem",props:{componentData:{type:Object,default:()=>({})},globalConfig:{type:Object,default:()=>({})}},setup(e){const A=e,{t}=(0,me.useAppInject)(),n=(0,r.computed)(()=>A.componentData.config?.notShowLabel?"":A.componentData.config?.label||""),o=(0,r.computed)(()=>n.value===""?0:A.componentData.config?.labelWidth===void 0&&A.globalConfig.labelWidth!==void 0?`${A.globalConfig.labelWidth}px`:A.componentData.config?.labelWidth?`${A.componentData.config?.labelWidth}px`:void 0),a=(0,r.computed)(()=>{const u={...A.componentData?.config};return u.size===void 0&&(u.size=A.globalConfig.size),u.display=!0,u});return(u,d)=>{const h=(0,r.resolveComponent)("j-comp"),g=(0,r.resolveComponent)("el-form-item");return e.componentData.isInput?((0,r.openBlock)(),(0,r.createBlock)(g,{key:0,"label-width":o.value,label:(0,r.unref)(t)(n.value),"label-position":A.componentData.config?.labelPosition||e.globalConfig?.labelPosition,rules:e.componentData.config?.required?[{required:!0,message:""}]:[]},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(h,{type:e.componentData?.componentName||e.componentData?.type,config:a.value,modelValue:e.componentData?.config.defaultValue},null,8,["type","config","modelValue"])]),_:1},8,["label-width","label","label-position","rules"])):e.componentData?.children?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.componentData?.componentName),(0,r.mergeProps)({key:1},e.componentData?.config,{"global-config":e.globalConfig,"component-data":e.componentData}),null,16,["global-config","component-data"])):((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.componentData?.componentName),(0,r.normalizeProps)((0,r.mergeProps)({key:2},e.componentData?.config)),null,16))}}}),bl=jm,qm={class:"d-form-design j-block"},Aw={class:"d-form-design-left"},ew={class:"d-form-design-component-list"},tw={class:"j-component-tool"},nw={class:"j-component-tool-name"},rw={class:"d-form-design-center"},ow={class:"d-form-design-container"},iw={key:0,class:"j-block d-form-design-empty"},sw={class:"d-form-design-right"},aw={class:"d-form-design-panel-title"},lw={style:{margin:"0","font-size":"14px"}},cw={class:"d-form-design-panel"},uw=(0,r.defineComponent)({name:"DFormDesign",__name:"formDesign",props:{components:{default:()=>[]},componentConfigs:{default:()=>({})},componentInit:{type:Function,default:void 0},containerAddComponent:{type:Function,default:void 0},componentConfigInit:{type:Function,default:void 0},componentConfigChange:{type:Function,default:void 0},componentConfigValidate:{type:Function,default:void 0},flowComponents:{default:()=>[]},flowInit:{type:Function,default:void 0},flowComponentConfigInit:{type:Function,default:void 0},flowComponentConfigChange:{type:Function,default:void 0},flowComponentConfigs:{default:()=>({})},actions:{}},setup(e,{expose:A}){const t=e,{t:n,error:o}=(0,me.useAppInject)(),a=(0,r.reactive)({name:"表单",id:"form",type:"form",level:0,children:[],dragType:"container",componentName:"",containerId:"",isInput:!1,config:{}}),u=(0,r.ref)([]),d=t.components.length;for(let nA=0;nA<d;nA++)u.value.push(nA);t.componentInit&&(a.config=t.componentInit("form")||{});const h={},g=[];t.components.forEach(({children:nA})=>{nA.forEach(W=>{h[W.type]=W,W.dragType=W.dragType||"component",W.isInput!==!1&&(W.isInput=!0,g.push({label:W.name,value:W.type}))})});const B=nA=>{nA.forEach(W=>{W.type==="d-input-flow"&&(W.config=W.config||{},W.config.flowComponents=t.flowComponents,W.config.flowInit=t.flowInit,W.config.flowComponentConfigInit=$=>{t.flowComponentConfigInit&&($.designComponents=sA.value,$.component=D.value,t.flowComponentConfigInit($))},W.config.flowComponentConfigs=t.flowComponentConfigs,W.config.flowComponentConfigChange=t.flowComponentConfigChange),W.children&&B(W.children)})},w={};Object.keys(t.componentConfigs||{}).forEach(nA=>{const{hasBase:W,isInput:$,hasTwoPlaceholder:uA,hasPlaceholder:mA,hasSpan:bA,hasLabel:_A,bindTable:fA,labelTitle:Z}=h[nA]||{hasBase:!1},_=[{id:"componentType",type:"j-select",config:{label:"类型",allowClear:!1,display:$,options:g}},{id:"label",type:"j-input",config:{label:Z||"标题"},getCompConfig:({formData:x})=>({display:_A!==!1&&!x.notShowLabel})},{id:"notShowLabel",type:"j-switch",config:{label:"不显示"+(Z||"标题"),activeValue:!0,inactiveValue:!1},getCompConfig:({formData:x})=>({display:_A!==!1&&!x.isSubTable})},{id:"labelWidth",type:"j-number",config:{label:"标题宽度"},getCompConfig:({formData:x})=>({display:$&&!x.notShowLabel&&!x.isSubTable})},{id:"labelPosition",type:"j-radio",config:{label:"标题对齐",options:[{value:"right",label:"右"},{value:"left",label:"左"},{value:"top",label:"顶部"}]},getCompConfig:({formData:x})=>({display:$&&!x.notShowLabel&&!x.isSubTable})},{id:"placeholder",type:"j-input",config:{display:$&&!uA&&mA!==!1,label:"占位提示"}},{id:"startPlaceholder",type:"j-input",config:{display:!!uA,label:"开始占位"}},{id:"endPlaceholder",type:"j-input",config:{display:!!uA,label:"结束占位"}},{id:"span",type:"j-slider",config:{label:"表单栅栏",min:6,max:24,showTooltip:!0,step:6,showStops:!0,defautValue:24},getCompConfig:({formData:x})=>({display:bA!==!1&&!x.isSubTable})},{id:"width",type:"j-number",config:{label:"单元格宽度",min:1},getCompConfig:({formData:x})=>({display:!!x.isSubTable})}],F={type:"j-collapse",config:{defaultValue:[]},children:[]};W!==!1&&F.children?.push({config:{label:"基础信息"},children:[..._]}),F.children?.push(...t.componentConfigs[nA]),F.children?.forEach((x,z)=>{F.config?.defaultValue.push(`_collapse${z}`)}),B(F.children||[]),w[nA]=[F]});const m=nA=>{const{value:W}=nA||{};nA.id==="componentType"&&H(W),D.value&&t.componentConfigChange&&t.componentConfigChange(D.value.type,{configRef:N,configData:D.value.config,...nA})},v=(nA,W)=>{t.componentConfigInit&&t.componentConfigInit(nA,{configRef:N,...W})},y=(nA,W,$)=>{let uA=!1;return W.container.type==="gridtable"?(!W.configData.isSubTable||$)&&(W.configData.isSubTable=!0,uA=!0):W.configData.isSubTable&&(uA=!0,W.configData.isSubTable=!1),t.containerAddComponent&&t.containerAddComponent(nA,W),uA},I=(0,r.ref)(),N=(0,r.ref)(),{activedComponent:D,clearComponents:P,changeComponent:H,schemaComponentDic:O,designComponentList:sA}=Ul(I,N,a,t.componentInit,v,w,h,y),J=(0,r.computed)(()=>D.value?.id!="form"?D.value?`${D.value.name}-${D.value.id}`:"":D.value?`${D.value.name}`:"");(0,r.provide)("dui-design-provide",{designItemName:bl});const cA=()=>{P()},aA=()=>{t.componentInit&&(a.config=t.componentInit("form")||{}),P()},oA=()=>Jr(a.config,a.children||[]),iA=nA=>{const W=El(nA,h);a.config=W.formConfig,a.children?.push(...W.componentList),Object.keys(W.componentDic).forEach($=>{O[$]=W.componentDic[$]})},AA=()=>S(Jr(a.config,a.children||[]).components),S=nA=>{for(const W of nA)if(t.componentConfigValidate&&!t.componentConfigValidate(W.type,{configData:W.config,errorTip:o}))return!1;return!0},eA=(0,r.ref)(),U=(0,r.ref)(),K=(0,r.ref)({});let b=0;const R=nA=>{if(U.value)b=0,U.value.init(nA||[]);else{if(b>600){console.warn("表单组件加载超时");return}b++,setTimeout(()=>{R(nA)},100)}},k=()=>{},T=()=>{};return A({getSchema:()=>oA(),setSchema:nA=>iA(nA),reset:()=>aA(),validate:()=>AA(),preview:()=>{const nA=Jr(a.config,a.children||[]);eA.value.open("表单预览",nA.form.layerType);const{formConfig:W,componentList:$}=Ql(nA);K.value=W,(0,r.nextTick)(()=>{R($)})},clear:cA}),(nA,W)=>{const $=(0,r.resolveComponent)("j-icon"),uA=(0,r.resolveComponent)("d-drag-tool"),mA=(0,r.resolveComponent)("el-collapse-item"),bA=(0,r.resolveComponent)("el-collapse"),_A=(0,r.resolveComponent)("el-empty"),fA=(0,r.resolveComponent)("d-drag-form-list"),Z=(0,r.resolveComponent)("el-row"),_=(0,r.resolveComponent)("d-drag-container"),F=(0,r.resolveComponent)("j-form"),x=(0,r.resolveComponent)("j-layer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",qm,[(0,r.createElementVNode)("div",Aw,[(0,r.createElementVNode)("div",ew,[(0,r.createVNode)(bA,{modelValue:u.value,"onUpdate:modelValue":W[0]||(W[0]=z=>u.value=z)},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.components,(z,G)=>((0,r.openBlock)(),(0,r.createBlock)(mA,{key:G,title:z.name,name:G},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(z.children,(dA,gA)=>((0,r.openBlock)(),(0,r.createBlock)(uA,{key:gA,config:dA},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",tw,[(0,r.createVNode)($,{class:"j-component-tool-icon",icon:dA.icon,size:14},null,8,["icon"]),(0,r.createElementVNode)("div",nw,(0,r.toDisplayString)((0,r.unref)(n)(dA.name)),1)])]),_:2},1032,["config"]))),128))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])]),(0,r.createElementVNode)("div",rw,[(0,r.createElementVNode)("div",ow,[(0,r.createVNode)(_,{ref_key:"dragContainer",ref:I,class:"d-form-design-drag-container","is-component-container":!1,"component-data":a},{default:(0,r.withCtx)(()=>[!a.children||a.children.length===0?((0,r.openBlock)(),(0,r.createElementBlock)("div",iw,[(0,r.createVNode)(_A,{description:(0,r.unref)(n)("请从左侧拖拽组件到此处"),"image-size":100},null,8,["description"])])):((0,r.openBlock)(),(0,r.createBlock)(Z,{key:1},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(fA,{"component-list":a.children,"global-config":a.config},null,8,["component-list","global-config"])]),_:1}))]),_:1},8,["component-data"])])]),(0,r.withDirectives)((0,r.createElementVNode)("div",sw,[(0,r.createElementVNode)("div",aw,[(0,r.createElementVNode)("span",lw,(0,r.toDisplayString)(`${J.value}`),1)]),(0,r.createElementVNode)("div",cw,[(0,r.createVNode)(F,{config:{labelPosition:"top",size:"small"},collapseAnimate:!1,style:{padding:"0"},ref_key:"configRef",ref:N,onChange:m},null,512)])],512),[[r.vShow,(0,r.unref)(D)]]),(0,r.createVNode)(x,{ref_key:"previewFormLayerRef",ref:eA,width:1e3,height:800,onOk:k,onClosed:T},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(F,{config:K.value,"is-preview":!0,ref_key:"previewFormRef",ref:U,actions:e.actions},null,8,["config","actions"])]),_:1},512)])}}}),dw=uw,Hl=ft(dw,[bl]),fw=(e,A)=>{const t={ver:"V3",indexPage:{...e},components:[]};return Il(A||[],t.components),t},Il=(e,A)=>{e.forEach(t=>{const n={id:t.id,name:t.name,type:t.type,runtimeType:t.runtimeType||t.componentName||t.type,groupId:t.groupId||"",config:t.config,containerId:t.containerId,level:t.level};t.dragType==="container"&&Il(t.children||[],A),A.push(n)})},gw=(e,A)=>{let t={},n=[];const o={};if(e.ver==="V3"){const a=e;t=a.indexPage;const u={};a.components.forEach(d=>{const h=A[d.type];if(!h)return;u[d.containerId]=u[d.containerId]||[];const g={id:d.id,name:d.name,type:d.type,dragType:h.dragType||"component",componentName:h.componentName||"",runtimeType:h.runtimeType,groupId:d.groupId,config:d.config,isInput:!1,containerId:d.containerId,level:d.level};o[g.id]=g,u[d.containerId].push(g),g.dragType==="container"&&(g.children=[])}),Object.keys(u).forEach(d=>{o[d]&&(o[d].children=u[d])}),n=u.indexPage||[]}return{pageConfig:t,componentList:n,componentDic:o}},hw=(0,r.defineComponent)({name:"DIndexDesignItem",__name:"indexDesignItem",props:{componentData:{type:Object,default:()=>({})},globalConfig:{type:Object,default:()=>({})}},setup(e){return(A,t)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.componentData?.componentName),(0,r.mergeProps)(e.componentData?.config,{"global-config":e.globalConfig,"component-data":e.componentData}),null,16,["global-config","component-data"]))}}),_l=hw,Bw={class:"d-index-design j-block"},pw={class:"d-index-design-left"},mw={class:"j-component-list"},ww={class:"j-component-tool"},Cw={class:"j-component-tool-name"},vw={class:"d-index-design-center"},yw={class:"design-container"},Qw={key:0,class:"j-block design-empty"},Ew={class:"d-index-design-right"},Fw={class:"d-index-design-panel-title"},Uw={style:{margin:"0","font-size":"14px"}},bw={class:"d-index-design-panel"},Hw=(0,r.defineComponent)({name:"DIndexDesign",__name:"indexDesign",props:{components:{type:Array,default:()=>[]},componentConfigs:{type:Object,default:()=>({})},componentInit:Function,containerAddComponent:Function,componentConfigInit:Function,componentConfigChange:Function,flowComponents:{type:Array,default:()=>[]},flowInit:Function,flowComponentConfigInit:Function,flowComponentConfigChange:Function,flowComponentConfigs:{type:Object,default:()=>({})},actions:{type:Object,default:()=>({})}},setup(e,{expose:A}){const{t}=(0,me.useAppInject)(),n=e,o=U=>{U.forEach(K=>{K.type==="d-input-flow"&&(K.config=K.config||{},K.config.flowComponents=n.flowComponents,K.config.flowInit=n.flowInit,K.config.flowComponentConfigInit=b=>{n.flowComponentConfigInit&&(b.designComponents=N.value,b.component=v.value,n.flowComponentConfigInit(b))},K.config.flowComponentConfigs=n.flowComponentConfigs,K.config.flowComponentConfigChange=n.flowComponentConfigChange),K.children&&o(K.children)})},a=(0,r.reactive)({name:"页面",id:"indexPage",type:"indexPage",level:0,children:[],dragType:"container",componentName:"",containerId:"",isInput:!1,config:{}});n.componentInit&&(a.config=n.componentInit("indexPage")||{});const u={},d=[];n.components.forEach(({children:U})=>{U.forEach(K=>{u[K.type]=K,K.dragType=K.dragType||"component",d.push({label:K.name,value:K.type})})});const h={};Object.keys(n.componentConfigs).forEach(U=>{const{hasBase:K}=u[U]||{hasBase:!1},b=[{id:"label",type:"j-input",config:{label:"名称"}}],R={type:"j-collapse",config:{defaultValue:[]},children:[]};K!==!1&&(R.children?.push({config:{label:"基础信息"},children:[...b]}),R.config?.defaultValue.push("_collapse0")),R.children?.push(...n.componentConfigs[U]),o(R.children||[]),h[U]=[R]});const g=U=>{v.value&&n.componentConfigChange&&n.componentConfigChange(v.value.type,{configRef:m,configData:v.value.config,...U})},B=(U,K)=>{n.componentConfigInit&&n.componentConfigInit(U,{configRef:m,...K})},w=(0,r.ref)(),m=(0,r.ref)(),{activedComponent:v,clearComponents:y,schemaComponentDic:I,designComponentList:N}=Ul(w,m,a,n.componentInit,B,h,u,n.containerAddComponent),D=(0,r.computed)(()=>v.value?.id!="form"?v.value?`${v.value.name}-${v.value.id}`:"":v.value?`${v.value.name}`:""),P=(0,r.ref)([]),H=n.components.length;for(let U=0;U<H;U++)P.value.push(U);(0,r.provide)("dui-design-provide",{designItemName:_l});const O=()=>{n.componentInit&&(a.config=n.componentInit("indexPage")||{}),y()},sA=()=>(console.log("pValidate"),!0),J=()=>fw(a.config,a.children||[]),cA=U=>{const K=gw(U,u);a.config=K.pageConfig,a.children?.push(...K.componentList),Object.keys(K.componentDic).forEach(b=>{I[b]=K.componentDic[b]})},aA=(0,r.ref)(),oA=(0,r.ref)();(0,r.ref)(""),(0,r.reactive)({formConfig:{}});let iA=0;const AA=U=>{if(oA.value)iA=0,oA.value.init(U);else{if(iA>600){console.warn("组件加载超时");return}iA++,setTimeout(()=>{AA(U)},100)}},S=()=>{},eA=()=>{};return A({reset:O,validate:sA,getSchema:J,setSchema:cA}),(U,K)=>{const b=(0,r.resolveComponent)("j-icon"),R=(0,r.resolveComponent)("d-drag-tool"),k=(0,r.resolveComponent)("el-collapse-item"),T=(0,r.resolveComponent)("el-collapse"),M=(0,r.resolveComponent)("el-empty"),Y=(0,r.resolveComponent)("d-drag-index-list"),tA=(0,r.resolveComponent)("d-drag-container"),BA=(0,r.resolveComponent)("j-form"),UA=(0,r.resolveComponent)("j-page"),nA=(0,r.resolveComponent)("j-layer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",Bw,[(0,r.createElementVNode)("div",pw,[(0,r.createElementVNode)("div",mw,[(0,r.createVNode)(T,{modelValue:P.value,"onUpdate:modelValue":K[0]||(K[0]=W=>P.value=W)},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.components,(W,$)=>((0,r.openBlock)(),(0,r.createBlock)(k,{key:$,title:W.name,name:$},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(W.children,(uA,mA)=>((0,r.openBlock)(),(0,r.createBlock)(R,{key:mA,config:uA},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",ww,[(0,r.createVNode)(b,{class:"j-component-tool-icon",icon:uA.icon,size:14},null,8,["icon"]),(0,r.createElementVNode)("div",Cw,(0,r.toDisplayString)((0,r.unref)(t)(uA.name)),1)])]),_:2},1032,["config"]))),128))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])]),(0,r.createElementVNode)("div",vw,[(0,r.createElementVNode)("div",yw,[(0,r.createVNode)(tA,{ref_key:"dragContainer",ref:w,class:"design-drag-container","is-component-container":!1,"component-data":a},{default:(0,r.withCtx)(()=>[!a.children||a.children.length===0?((0,r.openBlock)(),(0,r.createElementBlock)("div",Qw,[(0,r.createVNode)(M,{description:(0,r.unref)(t)("请从左侧拖拽组件到此处"),"image-size":100},null,8,["description"])])):((0,r.openBlock)(),(0,r.createBlock)(Y,{key:1,"component-list":a.children,"global-config":a.config},null,8,["component-list","global-config"]))]),_:1},8,["component-data"])])]),(0,r.withDirectives)((0,r.createElementVNode)("div",Ew,[(0,r.createElementVNode)("div",Fw,[(0,r.createElementVNode)("span",Uw,(0,r.toDisplayString)(`${D.value}`),1)]),(0,r.createElementVNode)("div",bw,[(0,r.createVNode)(BA,{config:{labelPosition:"top",size:"small"},collapseAnimate:!1,style:{padding:"0"},ref_key:"configRef",ref:m,onChange:g},null,512)])],512),[[r.vShow,(0,r.unref)(v)&&h[(0,r.unref)(v).type]]]),(0,r.createVNode)(nA,{ref_key:"previewLayerRef",ref:aA,"has-btns":!1,onOk:S,onClosed:eA},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(UA,{ref_key:"previewRef",ref:oA,actions:e.actions},null,8,["actions"])]),_:1},512)])}}}),Iw=Hw,Sl=ft(Iw,[_l]),Ae=Iu({Vue:()=>r,Vue2:()=>{},del:()=>xw,install:()=>_w,isVue2:()=>!1,isVue3:()=>!0,set:()=>Sw});_u(Ae,require("vue"));var uE=!1,dE=!0,fE=void 0;function _w(){}function Sw(e,A,t){return Array.isArray(e)?(e.length=Math.max(e.length,A),e.splice(A,1,t),t):(e[A]=t,t)}function xw(e,A){if(Array.isArray(e)){e.splice(A,1);return}delete e[A]}var Zr=(e,A)=>{const t=e.__vccOpts||e;for(const[n,o]of A)t[n]=o;return t},Dw=(0,Ae.defineComponent)({name:"LineRuler",props:{scale:Number,thick:Number,palette:Object,index:Number,start:Number,vertical:Boolean,value:Number,isShowReferLine:Boolean},emits:["onMouseDown","onRelease","onRemove"],setup(e,{emit:A}){const t=(0,Ae.ref)(0),n=(0,Ae.ref)(!0);(0,Ae.onMounted)(()=>{t.value=e.value});const o=B=>{n.value=B>=0},a=(0,Ae.computed)(()=>{const B=(t.value-e.start)*e.scale;o(B);const w=B+"px";return e.vertical?{top:w}:{left:w}}),u=(0,Ae.computed)(()=>{var B;const w=`1px solid ${(B=e.palette)==null?void 0:B.lineColor}`,m=e.vertical?{borderTop:w}:{borderLeft:w};return{cursor:e.isShowReferLine?e.vertical?"ns-resize":"ew-resize":"none",...m}}),d=(0,Ae.computed)(()=>e.vertical?{left:e.thick+"px"}:{top:e.thick+"px"});return{startValue:t,showLine:n,offset:a,borderCursor:u,actionStyle:d,handleDown:B=>{const w=e.vertical?B.clientY:B.clientX,m=t.value;A("onMouseDown");const v=I=>{const N=e.vertical?I.clientY:I.clientX;t.value=Math.round(m+(N-w)/e.scale)},y=()=>{A("onRelease",t.value,e.index),document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",y)};document.addEventListener("mousemove",v),document.addEventListener("mouseup",y)},handleRemove:()=>{A("onRemove",e.index)}}}}),Nw={class:"value"};function Lw(e,A,t,n,o,a){return(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"line",style:(0,r.normalizeStyle)([e.offset,e.borderCursor]),onMousedown:A[1]||(A[1]=(...u)=>e.handleDown&&e.handleDown(...u))},[(0,r.createElementVNode)("div",{class:"action",style:(0,r.normalizeStyle)(e.actionStyle)},[(0,r.createElementVNode)("span",{class:"del",onClick:A[0]||(A[0]=(...u)=>e.handleRemove&&e.handleRemove(...u))},"×"),(0,r.createElementVNode)("span",Nw,(0,r.toDisplayString)(e.startValue),1)],4)],36)),[[r.vShow,e.showLine]])}var Tw=Zr(Dw,[["render",Lw],["__scopeId","data-v-5dea28d6"]]),kw=e=>e<=.25?40:e<=.5?20:e<=1?10:e<=2?5:e<=4?2:1,xl=.83,Mw=(e,A,t,n,o,a)=>{const{scale:u,width:d,height:h,ratio:g,palette:B}=o,{bgColor:w,fontColor:m,shadowColor:v,longfgColor:y,shortfgColor:I}=B;if(e.scale(g,g),e.clearRect(0,0,d,h),e.fillStyle=w,e.fillRect(0,0,d,h),n){const oA=(t-A)*u,iA=n*u;e.fillStyle=v,a?e.fillRect(oA,0,iA,h*3/8):e.fillRect(0,oA,d*3/8,iA)}const N=kw(u),D=N*u,P=N*10,H=P*u,O=Math.floor(A/N)*N,sA=Math.floor(A/P)*P,J=(O-A)/N*D,cA=(sA-A)/P*H,aA=A+Math.ceil((a?d:h)/u);e.beginPath(),e.fillStyle=m,e.strokeStyle=y;for(let oA=sA,iA=0;oA<aA;oA+=P,iA++){const AA=cA+iA*H+.5;a?e.moveTo(AA,0):e.moveTo(0,AA),e.save(),a?e.translate(AA,h*.4):e.translate(d*.4,AA),a||e.rotate(-Math.PI/2),e.scale(xl/g,xl/g),e.fillText(oA.toString(),4*g,7*g),e.restore(),a?e.lineTo(AA,h*9/16):e.lineTo(d*9/16,AA)}e.stroke(),e.closePath(),e.beginPath(),e.strokeStyle=I;for(let oA=O,iA=0;oA<aA;oA+=N,iA++){const AA=J+iA*D+.5;a?e.moveTo(AA,0):e.moveTo(0,AA),oA%P!==0&&(a?e.lineTo(AA,h*1/4):e.lineTo(d*1/4,AA))}e.stroke(),e.closePath(),e.setTransform(1,0,0,1,0,0)},Ow=(0,Ae.defineComponent)({name:"CanvasRuler",props:{showIndicator:Boolean,valueNum:Number,scale:Number,ratio:Number,palette:Object,vertical:Boolean,start:Number,width:Number,height:Number,selectStart:Number,selectLength:Number},emits:["onAddLine","update:showIndicator","update:valueNum"],setup(e,{emit:A}){const t=(0,Ae.reactive)({canvasContext:null});let n=1;const o=(0,Ae.ref)(null);(0,Ae.onMounted)(()=>{n=e.ratio||window.devicePixelRatio||1,a(),u(n),d(n)});const a=()=>{t.canvasContext=o.value&&o.value.getContext("2d")},u=g=>{if(o.value){o.value.width=e.width*g,o.value.height=e.height*g;const B=t.canvasContext;B&&(B.font=`${12*g}px -apple-system,
|
|
26
|
+
Edge: ${e}`,USEVUEFLOW_OPTIONS:()=>"The options parameter is deprecated and will be removed in the next major version. Please use the id parameter instead"},ce=class extends Error{constructor(e,...A){var t;super((t=Pa[e])==null?void 0:t.call(Pa,...A)),this.name="VueFlowError",this.code=e,this.args=A}};function mi(e){return"clientX"in e}function aB(e){return"sourceEvent"in e}function $e(e,A){const t=mi(e);let n,o;return t?(n=e.clientX,o=e.clientY):"touches"in e&&e.touches.length>0?(n=e.touches[0].clientX,o=e.touches[0].clientY):"changedTouches"in e&&e.changedTouches.length>0?(n=e.changedTouches[0].clientX,o=e.changedTouches[0].clientY):(n=0,o=0),{x:n-(A?.left??0),y:o-(A?.top??0)}}var Lr=()=>{var e;return typeof navigator<"u"&&((e=navigator?.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function lB(e){var A,t;return{width:((A=e.dimensions)==null?void 0:A.width)??e.width??0,height:((t=e.dimensions)==null?void 0:t.height)??e.height??0}}function Tr(e,A=[1,1]){return{x:A[0]*Math.round(e.x/A[0]),y:A[1]*Math.round(e.y/A[1])}}var cB=()=>!0;function wi(e){e?.classList.remove("valid","connecting","vue-flow__handle-valid","vue-flow__handle-connecting")}function uB(e,A,t){const n=[],o={x:e.x-t,y:e.y-t,width:t*2,height:t*2};for(const a of A.values())xr(o,Sr(a))>0&&n.push(a);return n}var dB=250;function fB(e,A,t,n){var o,a;let u=[],d=Number.POSITIVE_INFINITY;const h=uB(e,t,A+dB);for(const g of h){const B=[...((o=g.handleBounds)==null?void 0:o.source)??[],...((a=g.handleBounds)==null?void 0:a.target)??[]];for(const w of B){if(n.nodeId===w.nodeId&&n.type===w.type&&n.id===w.id)continue;const{x:m,y:v}=tn(g,w,w.position,!0),y=Math.sqrt((m-e.x)**2+(v-e.y)**2);y>A||(y<d?(u=[{...w,x:m,y:v}],d=y):y===d&&u.push({...w,x:m,y:v}))}}if(!u.length)return null;if(u.length>1){const g=n.type==="source"?"target":"source";return u.find(B=>B.type===g)??u[0]}return u[0]}function Ga(e,{handle:A,connectionMode:t,fromNodeId:n,fromHandleId:o,fromType:a,doc:u,lib:d,flowId:h,isValidConnection:g=cB},B,w,m,v){const y=a==="target",I=A?u.querySelector(`.${d}-flow__handle[data-id="${h}-${A?.nodeId}-${A?.id}-${A?.type}"]`):null,{x:N,y:D}=$e(e),P=u.elementFromPoint(N,D),H=P?.classList.contains(`${d}-flow__handle`)?P:I,O={handleDomNode:H,isValid:!1,connection:null,toHandle:null};if(H){const sA=za(void 0,H),J=H.getAttribute("data-nodeid"),cA=H.getAttribute("data-handleid"),lA=H.classList.contains("connectable"),oA=H.classList.contains("connectableend");if(!J||!sA)return O;const iA={source:y?J:n,sourceHandle:y?cA:o,target:y?n:J,targetHandle:y?o:cA};O.connection=iA,O.isValid=lA&&oA&&(t===nt.Strict?y&&sA==="source"||!y&&sA==="target":J!==n||cA!==o)&&g(iA,{nodes:w,edges:B,sourceNode:m(iA.source),targetNode:m(iA.target)}),O.toHandle=Xa(J,sA,cA,v,t,!0)}return O}function za(e,A){return e||(A?.classList.contains("target")?"target":A?.classList.contains("source")?"source":null)}function gB(e,A){let t=null;return A?t="valid":e&&!A&&(t="invalid"),t}function hB(e,A){let t=null;return A?t=!0:e&&!A&&(t=!1),t}function Xa(e,A,t,n,o,a=!1){var u,d,h;const g=n.get(e);if(!g)return null;const B=o===nt.Strict?(u=g.handleBounds)==null?void 0:u[A]:[...((d=g.handleBounds)==null?void 0:d.source)??[],...((h=g.handleBounds)==null?void 0:h.target)??[]],w=(t?B?.find(m=>m.id===t):B?.[0])??null;return w&&a?{...w,...tn(g,w,w.position,!0)}:w}var Ci={[IA.Left]:IA.Right,[IA.Right]:IA.Left,[IA.Top]:IA.Bottom,[IA.Bottom]:IA.Top},BB=["production","prod"];function Pn(e,...A){$a()&&console.warn(`[Vue Flow]: ${e}`,...A)}function $a(){return!BB.includes(process.env.NODE_ENV||"")}function Ya(e,A,t,n,o){const a=A.querySelectorAll(`.vue-flow__handle.${e}`);return a?.length?Array.from(a).map(u=>{const d=u.getBoundingClientRect();return{id:u.getAttribute("data-handleid"),type:e,nodeId:o,position:u.getAttribute("data-handlepos"),x:(d.left-t.left)/n,y:(d.top-t.top)/n,...Dr(u)}}):null}function vi(e,A,t,n,o,a=!1,u){o.value=!1,e.selected?(a||e.selected&&A)&&(n([e]),(0,r.nextTick)(()=>{u.blur()})):t([e])}function se(e){return typeof(0,r.unref)(e)<"u"}function pB(e,A,t,n){if(!e||!e.source||!e.target)return t(new ce(ie.EDGE_INVALID,e?.id??"[ID UNKNOWN]")),!1;let o;return ht(e)?o=e:o={...e,id:Fa(e)},o=Qa(o,void 0,n),Jh(o,A)?!1:o}function mB(e,A,t,n,o){if(!A.source||!A.target)return o(new ce(ie.EDGE_INVALID,e.id)),!1;if(!t)return o(new ce(ie.EDGE_NOT_FOUND,e.id)),!1;const{id:a,...u}=e;return{...u,id:n?Fa(A):a,source:A.source,target:A.target,sourceHandle:A.sourceHandle,targetHandle:A.targetHandle}}function Wa(e,A,t){const n={},o=[];for(let a=0;a<e.length;++a){const u=e[a];if(!kt(u)){t(new ce(ie.NODE_INVALID,u?.id));continue}const d=$h(u,A(u.id),u.parentNode);u.parentNode&&(n[u.parentNode]=!0),o[a]=d}for(const a of o){const u=A(a.parentNode)||o.find(d=>d.id===a.parentNode);a.parentNode&&!u&&t(new ce(ie.NODE_MISSING_PARENT,a.id,a.parentNode)),(a.parentNode||n[a.id])&&(n[a.id]&&(a.isParent=!0),u&&(u.isParent=!0))}return o}function Ja(e,A,t,n,o,a){let u=o;const d=n.get(u)||new Map;n.set(u,d.set(t,A)),u=`${o}-${e}`;const h=n.get(u)||new Map;if(n.set(u,h.set(t,A)),a){u=`${o}-${e}-${a}`;const g=n.get(u)||new Map;n.set(u,g.set(t,A))}}function yi(e,A,t){e.clear();for(const n of t){const{source:o,target:a,sourceHandle:u=null,targetHandle:d=null}=n,h={edgeId:n.id,source:o,target:a,sourceHandle:u,targetHandle:d},g=`${o}-${u}--${a}-${d}`;Ja("source",h,`${a}-${d}--${o}-${u}`,e,o,u),Ja("target",h,g,e,a,d)}}function Za(e,A){if(e.size!==A.size)return!1;for(const t of e)if(!A.has(t))return!1;return!0}function Qi(e,A,t,n,o,a,u,d){const h=[];for(const g of e){const B=ht(g)?g:pB(g,d,o,a);if(!B)continue;const w=t(B.source),m=t(B.target);if(!w||!m){o(new ce(ie.EDGE_SOURCE_TARGET_MISSING,B.id,B.source,B.target));continue}if(!w){o(new ce(ie.EDGE_SOURCE_MISSING,B.id,B.source));continue}if(!m){o(new ce(ie.EDGE_TARGET_MISSING,B.id,B.target));continue}if(A&&!A(B,{edges:d,nodes:u,sourceNode:w,targetNode:m})){o(new ce(ie.EDGE_INVALID,B.id));continue}const v=n(B.id);h.push({...Qa(B,v,a),sourceNode:w,targetNode:m})}return h}var ja=Symbol("vueFlow"),qa=Symbol("nodeId"),Al=Symbol("nodeRef"),wB=Symbol("edgeId"),CB=Symbol("edgeRef"),kr=Symbol("slots");function el(e){const{vueFlowRef:A,snapToGrid:t,snapGrid:n,noDragClassName:o,nodeLookup:a,nodeExtent:u,nodeDragThreshold:d,viewport:h,autoPanOnNodeDrag:g,autoPanSpeed:B,nodesDraggable:w,panBy:m,findNode:v,multiSelectionActive:y,nodesSelectionActive:I,selectNodesOnDrag:N,removeSelectedElements:D,addSelectedNodes:P,updateNodePositions:H,emits:O}=XA(),{onStart:sA,onDrag:J,onStop:cA,onClick:lA,el:oA,disabled:iA,id:AA,selectable:S,dragHandle:eA}=e,U=(0,r.shallowRef)(!1);let K=[],b,R=null,k={x:void 0,y:void 0},T={x:0,y:0},M=null,Y=!1,tA=!1,BA=0,bA=!1;const nA=QB(),W=({x:gA,y:Z})=>{k={x:gA,y:Z};let _=!1;if(K=K.map(F=>{const x={x:gA-F.distance.x,y:Z-F.distance.y},{computedPosition:z}=pi(F,t.value?Tr(x,n.value):x,O.error,u.value,F.parentNode?v(F.parentNode):void 0);return _=_||F.position.x!==z.x||F.position.y!==z.y,F.position=z,F}),tA=tA||_,!!_&&(H(K,!0,!0),U.value=!0,M)){const[F,x]=Bi({id:AA,dragItems:K,findNode:v});J({event:M,node:F,nodes:x})}},$=()=>{if(!R)return;const[gA,Z]=Na(T,R,B.value);if(gA!==0||Z!==0){const _={x:(k.x??0)-gA/h.value.zoom,y:(k.y??0)-Z/h.value.zoom};m({x:gA,y:Z})&&W(_)}BA=requestAnimationFrame($)},uA=(gA,Z)=>{Y=!0;const _=v(AA);!N.value&&!y.value&&_&&(_.selected||D()),_&&(0,r.toValue)(S)&&N.value&&vi(_,y.value,P,D,I,!1,Z);const F=nA(gA.sourceEvent);if(k=F,K=tB(a.value,w.value,F,AA),K.length){const[x,z]=Bi({id:AA,dragItems:K,findNode:v});sA({event:gA.sourceEvent,node:x,nodes:z})}},wA=(gA,Z)=>{var _;gA.sourceEvent.type==="touchmove"&&gA.sourceEvent.touches.length>1||(tA=!1,d.value===0&&uA(gA,Z),k=nA(gA.sourceEvent),R=((_=A.value)==null?void 0:_.getBoundingClientRect())||null,T=$e(gA.sourceEvent,R))},HA=(gA,Z)=>{const _=nA(gA.sourceEvent);if(!bA&&Y&&g.value&&(bA=!0,$()),!Y){const F=_.xSnapped-(k.x??0),x=_.ySnapped-(k.y??0);Math.sqrt(F*F+x*x)>d.value&&uA(gA,Z)}(k.x!==_.xSnapped||k.y!==_.ySnapped)&&K.length&&Y&&(M=gA.sourceEvent,T=$e(gA.sourceEvent,R),W(_))},xA=gA=>{let Z=!1;if(!Y&&!U.value&&!y.value){const _=gA.sourceEvent,F=nA(_),x=F.xSnapped-(k.x??0),z=F.ySnapped-(k.y??0),G=Math.sqrt(x*x+z*z);G!==0&&G<=d.value&&(lA?.(_),Z=!0)}if(K.length&&!Z){tA&&(H(K,!1,!1),tA=!1);const[_,F]=Bi({id:AA,dragItems:K,findNode:v});cA({event:gA.sourceEvent,node:_,nodes:F})}K=[],U.value=!1,bA=!1,Y=!1,k={x:void 0,y:void 0},cancelAnimationFrame(BA)};return(0,r.watch)([()=>(0,r.toValue)(iA),oA],([gA,Z],_,F)=>{if(Z){const x=Te(Z);gA||(b=Xf().on("start",z=>wA(z,Z)).on("drag",z=>HA(z,Z)).on("end",z=>xA(z)).filter(z=>{const G=z.target,dA=(0,r.toValue)(eA);return!z.button&&(!o.value||!Ka(G,`.${o.value}`,Z)&&(!dA||Ka(G,dA,Z)))}),x.call(b)),F(()=>{x.on(".drag",null),b&&(b.on("start",null),b.on("drag",null),b.on("end",null))})}}),U}function vB(){return{doubleClick:yA(),click:yA(),mouseEnter:yA(),mouseMove:yA(),mouseLeave:yA(),contextMenu:yA(),updateStart:yA(),update:yA(),updateEnd:yA()}}function yB(e,A){const t=vB();return t.doubleClick.on(n=>{var o,a;A.edgeDoubleClick(n),(a=(o=e.events)==null?void 0:o.doubleClick)==null||a.call(o,n)}),t.click.on(n=>{var o,a;A.edgeClick(n),(a=(o=e.events)==null?void 0:o.click)==null||a.call(o,n)}),t.mouseEnter.on(n=>{var o,a;A.edgeMouseEnter(n),(a=(o=e.events)==null?void 0:o.mouseEnter)==null||a.call(o,n)}),t.mouseMove.on(n=>{var o,a;A.edgeMouseMove(n),(a=(o=e.events)==null?void 0:o.mouseMove)==null||a.call(o,n)}),t.mouseLeave.on(n=>{var o,a;A.edgeMouseLeave(n),(a=(o=e.events)==null?void 0:o.mouseLeave)==null||a.call(o,n)}),t.contextMenu.on(n=>{var o,a;A.edgeContextMenu(n),(a=(o=e.events)==null?void 0:o.contextMenu)==null||a.call(o,n)}),t.updateStart.on(n=>{var o,a;A.edgeUpdateStart(n),(a=(o=e.events)==null?void 0:o.updateStart)==null||a.call(o,n)}),t.update.on(n=>{var o,a;A.edgeUpdate(n),(a=(o=e.events)==null?void 0:o.update)==null||a.call(o,n)}),t.updateEnd.on(n=>{var o,a;A.edgeUpdateEnd(n),(a=(o=e.events)==null?void 0:o.updateEnd)==null||a.call(o,n)}),Object.entries(t).reduce((n,[o,a])=>(n.emit[o]=a.trigger,n.on[o]=a.on,n),{emit:{},on:{}})}function QB(){const{viewport:e,snapGrid:A,snapToGrid:t,vueFlowRef:n}=XA();return o=>{var a;const u=((a=n.value)==null?void 0:a.getBoundingClientRect())??{left:0,top:0},{x:d,y:h}=$e(aB(o)?o.sourceEvent:o,u),g=Rn({x:d,y:h},e.value),{x:B,y:w}=t.value?Tr(g,A.value):g;return{xSnapped:B,ySnapped:w,...g}}}function Mr(){return!0}function tl({handleId:e,nodeId:A,type:t,isValidConnection:n,edgeUpdaterType:o,onEdgeUpdate:a,onEdgeUpdateEnd:u}){const{id:d,vueFlowRef:h,connectionMode:g,connectionRadius:B,connectOnClick:w,connectionClickStartHandle:m,nodesConnectable:v,autoPanOnConnect:y,autoPanSpeed:I,findNode:N,panBy:D,startConnection:P,updateConnection:H,endConnection:O,emits:sA,viewport:J,edges:cA,nodes:lA,isValidConnection:oA,nodeLookup:iA}=XA();let AA=null,S=!1,eA=null;function U(b){var R;const k=(0,r.toValue)(t)==="target",T=mi(b),M=ya(b.target),Y=b.currentTarget;if(Y&&(T&&b.button===0||!T)){let tA=function(QA){_=$e(QA,xA),W=fB(Rn(_,J.value,!1,[1,1]),B.value,iA.value,z),F||(x(),F=!0);const EA=Ga(QA,{handle:W,connectionMode:g.value,fromNodeId:(0,r.toValue)(A),fromHandleId:(0,r.toValue)(e),fromType:k?"target":"source",isValidConnection:nA,doc:M,lib:"vue",flowId:d,nodeLookup:iA.value},cA.value,lA.value,N,iA.value);eA=EA.handleDomNode,AA=EA.connection,S=hB(!!W,EA.isValid);const NA={...fA,isValid:S,to:EA.toHandle&&S?Kn({x:EA.toHandle.x,y:EA.toHandle.y},J.value):_,toHandle:EA.toHandle,toPosition:S&&EA.toHandle?EA.toHandle.position:Ci[z.position],toNode:EA.toHandle?iA.value.get(EA.toHandle.nodeId):null};if(S&&W&&fA?.toHandle&&NA.toHandle&&fA.toHandle.type===NA.toHandle.type&&fA.toHandle.nodeId===NA.toHandle.nodeId&&fA.toHandle.id===NA.toHandle.id&&fA.to.x===NA.to.x&&fA.to.y===NA.to.y)return;const OA=W??EA.toHandle;if(H(OA&&S?Kn({x:OA.x,y:OA.y},J.value):_,OA,gB(!!OA,S)),fA=NA,!W&&!S&&!eA)return wi(Z);AA&&AA.source!==AA.target&&eA&&(wi(Z),Z=eA,eA.classList.add("connecting","vue-flow__handle-connecting"),eA.classList.toggle("valid",!!S),eA.classList.toggle("vue-flow__handle-valid",!!S))},BA=function(QA){"touches"in QA&&QA.touches.length>0||((W||eA)&&AA&&S&&(a?a(QA,AA):sA.connect(AA)),sA.connectEnd(QA),o&&u?.(QA),wi(Z),cancelAnimationFrame($),O(QA),F=!1,S=!1,AA=null,eA=null,M.removeEventListener("mousemove",tA),M.removeEventListener("mouseup",BA),M.removeEventListener("touchmove",tA),M.removeEventListener("touchend",BA))};const bA=N((0,r.toValue)(A));let nA=(0,r.toValue)(n)||oA.value||Mr;!nA&&bA&&(nA=(k?bA.isValidSourcePos:bA.isValidTargetPos)||Mr);let W,$=0;const{x:uA,y:wA}=$e(b),HA=za((0,r.toValue)(o),Y),xA=(R=h.value)==null?void 0:R.getBoundingClientRect();if(!xA||!HA)return;const gA=Xa((0,r.toValue)(A),HA,(0,r.toValue)(e),iA.value,g.value);if(!gA)return;let Z,_=$e(b,xA),F=!1;const x=()=>{if(!y.value)return;const[QA,EA]=Na(_,xA,I.value);D({x:QA,y:EA}),$=requestAnimationFrame(x)},z={...gA,nodeId:(0,r.toValue)(A),type:HA,position:gA.position},G=iA.value.get((0,r.toValue)(A)),dA={inProgress:!0,isValid:null,from:tn(G,z,IA.Left,!0),fromHandle:z,fromPosition:z.position,fromNode:G,to:_,toHandle:null,toPosition:Ci[z.position],toNode:null};P({nodeId:(0,r.toValue)(A),id:(0,r.toValue)(e),type:HA,position:Y?.getAttribute("data-handlepos")||IA.Top,..._},{x:uA-xA.left,y:wA-xA.top}),sA.connectStart({event:b,nodeId:(0,r.toValue)(A),handleId:(0,r.toValue)(e),handleType:HA});let fA=dA;M.addEventListener("mousemove",tA),M.addEventListener("mouseup",BA),M.addEventListener("touchmove",tA),M.addEventListener("touchend",BA)}}function K(b){var R,k;if(!w.value)return;const T=(0,r.toValue)(t)==="target";if(!m.value){sA.clickConnectStart({event:b,nodeId:(0,r.toValue)(A),handleId:(0,r.toValue)(e)}),P({nodeId:(0,r.toValue)(A),type:(0,r.toValue)(t),id:(0,r.toValue)(e),position:IA.Top,...$e(b)},void 0,!0);return}let M=(0,r.toValue)(n)||oA.value||Mr;const Y=N((0,r.toValue)(A));if(!M&&Y&&(M=(T?Y.isValidSourcePos:Y.isValidTargetPos)||Mr),Y&&(typeof Y.connectable>"u"?v.value:Y.connectable)===!1)return;const tA=ya(b.target),BA=Ga(b,{handle:{nodeId:(0,r.toValue)(A),id:(0,r.toValue)(e),type:(0,r.toValue)(t),position:IA.Top,...$e(b)},connectionMode:g.value,fromNodeId:m.value.nodeId,fromHandleId:m.value.id??null,fromType:m.value.type,isValidConnection:M,doc:tA,lib:"vue",flowId:d,nodeLookup:iA.value},cA.value,lA.value,N,iA.value),bA=((R=BA.connection)==null?void 0:R.source)===((k=BA.connection)==null?void 0:k.target);BA.isValid&&BA.connection&&!bA&&sA.connect(BA.connection),sA.clickConnectEnd(b),O(b,!0)}return{handlePointerDown:U,handleClick:K}}function EB(){return(0,r.inject)(qa,"")}function nl(e){const A=e??EB()??"",t=(0,r.inject)(Al,(0,r.ref)(null)),{findNode:n,edges:o,emits:a}=XA(),u=n(A);return u||a.error(new ce(ie.NODE_NOT_FOUND,A)),{id:A,nodeEl:t,node:u,parentNode:(0,r.computed)(()=>n(u.parentNode)),connectedEdges:(0,r.computed)(()=>Ia([u],o.value))}}function FB(){return{doubleClick:yA(),click:yA(),mouseEnter:yA(),mouseMove:yA(),mouseLeave:yA(),contextMenu:yA(),dragStart:yA(),drag:yA(),dragStop:yA()}}function UB(e,A){const t=FB();return t.doubleClick.on(n=>{var o,a;A.nodeDoubleClick(n),(a=(o=e.events)==null?void 0:o.doubleClick)==null||a.call(o,n)}),t.click.on(n=>{var o,a;A.nodeClick(n),(a=(o=e.events)==null?void 0:o.click)==null||a.call(o,n)}),t.mouseEnter.on(n=>{var o,a;A.nodeMouseEnter(n),(a=(o=e.events)==null?void 0:o.mouseEnter)==null||a.call(o,n)}),t.mouseMove.on(n=>{var o,a;A.nodeMouseMove(n),(a=(o=e.events)==null?void 0:o.mouseMove)==null||a.call(o,n)}),t.mouseLeave.on(n=>{var o,a;A.nodeMouseLeave(n),(a=(o=e.events)==null?void 0:o.mouseLeave)==null||a.call(o,n)}),t.contextMenu.on(n=>{var o,a;A.nodeContextMenu(n),(a=(o=e.events)==null?void 0:o.contextMenu)==null||a.call(o,n)}),t.dragStart.on(n=>{var o,a;A.nodeDragStart(n),(a=(o=e.events)==null?void 0:o.dragStart)==null||a.call(o,n)}),t.drag.on(n=>{var o,a;A.nodeDrag(n),(a=(o=e.events)==null?void 0:o.drag)==null||a.call(o,n)}),t.dragStop.on(n=>{var o,a;A.nodeDragStop(n),(a=(o=e.events)==null?void 0:o.dragStop)==null||a.call(o,n)}),Object.entries(t).reduce((n,[o,a])=>(n.emit[o]=a.trigger,n.on[o]=a.on,n),{emit:{},on:{}})}function rl(){const{getSelectedNodes:e,nodeExtent:A,updateNodePositions:t,findNode:n,snapGrid:o,snapToGrid:a,nodesDraggable:u,emits:d}=XA();return(h,g=!1)=>{const B=a.value?o.value[0]:5,w=a.value?o.value[1]:5,m=g?4:1,v=h.x*B*m,y=h.y*w*m,I=[];for(const N of e.value)if(N.draggable||u&&typeof N.draggable>"u"){const{position:D}=pi(N,{x:N.computedPosition.x+v,y:N.computedPosition.y+y},d.error,A.value,N.parentNode?n(N.parentNode):void 0);I.push({id:N.id,position:D,from:N.position,distance:{x:h.x,y:h.y},dimensions:N.dimensions})}t(I,!0,!1)}}var Or=.1,bB=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2;function mt(){return Pn("Viewport not initialized yet."),Promise.resolve(!1)}var HB={zoomIn:mt,zoomOut:mt,zoomTo:mt,fitView:mt,setCenter:mt,fitBounds:mt,project:e=>e,screenToFlowCoordinate:e=>e,flowToScreenCoordinate:e=>e,setViewport:mt,setTransform:mt,getViewport:()=>({x:0,y:0,zoom:1}),getTransform:()=>({x:0,y:0,zoom:1}),viewportInitialized:!1};function IB(e){function A(n,o){return new Promise(a=>{e.d3Selection&&e.d3Zoom?e.d3Zoom.interpolate(o?.interpolate==="linear"?Sn:vr).scaleBy(Ei(e.d3Selection,o?.duration,o?.ease,()=>{a(!0)}),n):a(!1)})}function t(n,o,a,u){return new Promise(d=>{var h;const{x:g,y:B}=va({x:-n,y:-o},e.translateExtent),w=qt.translate(-g,-B).scale(a);e.d3Selection&&e.d3Zoom?(h=e.d3Zoom)==null||h.interpolate(u?.interpolate==="linear"?Sn:vr).transform(Ei(e.d3Selection,u?.duration,u?.ease,()=>{d(!0)}),w):d(!1)})}return(0,r.computed)(()=>e.d3Zoom&&e.d3Selection&&e.dimensions.width&&e.dimensions.height?{viewportInitialized:!0,zoomIn:n=>A(1.2,n),zoomOut:n=>A(1/1.2,n),zoomTo:(n,o)=>new Promise(a=>{e.d3Selection&&e.d3Zoom?e.d3Zoom.interpolate(o?.interpolate==="linear"?Sn:vr).scaleTo(Ei(e.d3Selection,o?.duration,o?.ease,()=>{a(!0)}),n):a(!1)}),setViewport:(n,o)=>t(n.x,n.y,n.zoom,o),setTransform:(n,o)=>t(n.x,n.y,n.zoom,o),getViewport:()=>({x:e.viewport.x,y:e.viewport.y,zoom:e.viewport.zoom}),getTransform:()=>({x:e.viewport.x,y:e.viewport.y,zoom:e.viewport.zoom}),fitView:(n={padding:Or,includeHiddenNodes:!1,duration:0})=>{var o,a;const u=[];for(const B of e.nodes)B.dimensions.width&&B.dimensions.height&&(n?.includeHiddenNodes||!B.hidden)&&(!((o=n.nodes)!=null&&o.length)||(a=n.nodes)!=null&&a.length&&n.nodes.includes(B.id))&&u.push(B);if(!u.length)return Promise.resolve(!1);const{x:d,y:h,zoom:g}=_a(ba(u),e.dimensions.width,e.dimensions.height,n.minZoom??e.minZoom,n.maxZoom??e.maxZoom,n.padding??Or);return t(d,h,g,n)},setCenter:(n,o,a)=>{const u=typeof a?.zoom<"u"?a.zoom:e.maxZoom;return t(e.dimensions.width/2-n*u,e.dimensions.height/2-o*u,u,a)},fitBounds:(n,o={padding:Or})=>{const{x:a,y:u,zoom:d}=_a(n,e.dimensions.width,e.dimensions.height,e.minZoom,e.maxZoom,o.padding??Or);return t(a,u,d,o)},project:n=>Rn(n,e.viewport,e.snapToGrid,e.snapGrid),screenToFlowCoordinate:n=>{if(e.vueFlowRef){const{x:o,y:a}=e.vueFlowRef.getBoundingClientRect();return Rn({x:n.x-o,y:n.y-a},e.viewport,e.snapToGrid,e.snapGrid)}return{x:0,y:0}},flowToScreenCoordinate:n=>{if(e.vueFlowRef){const{x:o,y:a}=e.vueFlowRef.getBoundingClientRect();return Kn({x:n.x+o,y:n.y+a},e.viewport)}return{x:0,y:0}}}:HB)}function Ei(e,A=0,t=bB,n=()=>{}){const o=typeof A=="number"&&A>0;return o||n(),o?e.transition().duration(A).ease(t).on("end",n):e}function _B(e,A,t){const n=(0,r.effectScope)(!0);return n.run(()=>{const o=()=>{n.run(()=>{let I,N,D=!!(t.nodes.value.length||t.edges.value.length);I=Yt([e.modelValue,()=>{var P,H;return(H=(P=e.modelValue)==null?void 0:P.value)==null?void 0:H.length}],([P])=>{P&&Array.isArray(P)&&(N?.pause(),t.setElements(P),!N&&!D&&P.length?D=!0:N?.resume())}),N=Yt([t.nodes,t.edges,()=>t.edges.value.length,()=>t.nodes.value.length],([P,H])=>{var O;(O=e.modelValue)!=null&&O.value&&Array.isArray(e.modelValue.value)&&(I?.pause(),e.modelValue.value=[...P,...H],(0,r.nextTick)(()=>{I?.resume()}))},{immediate:D}),(0,r.onScopeDispose)(()=>{I?.stop(),N?.stop()})})},a=()=>{n.run(()=>{let I,N,D=!!t.nodes.value.length;I=Yt([e.nodes,()=>{var P,H;return(H=(P=e.nodes)==null?void 0:P.value)==null?void 0:H.length}],([P])=>{P&&Array.isArray(P)&&(N?.pause(),t.setNodes(P),!N&&!D&&P.length?D=!0:N?.resume())}),N=Yt([t.nodes,()=>t.nodes.value.length],([P])=>{var H;(H=e.nodes)!=null&&H.value&&Array.isArray(e.nodes.value)&&(I?.pause(),e.nodes.value=[...P],(0,r.nextTick)(()=>{I?.resume()}))},{immediate:D}),(0,r.onScopeDispose)(()=>{I?.stop(),N?.stop()})})},u=()=>{n.run(()=>{let I,N,D=!!t.edges.value.length;I=Yt([e.edges,()=>{var P,H;return(H=(P=e.edges)==null?void 0:P.value)==null?void 0:H.length}],([P])=>{P&&Array.isArray(P)&&(N?.pause(),t.setEdges(P),!N&&!D&&P.length?D=!0:N?.resume())}),N=Yt([t.edges,()=>t.edges.value.length],([P])=>{var H;(H=e.edges)!=null&&H.value&&Array.isArray(e.edges.value)&&(I?.pause(),e.edges.value=[...P],(0,r.nextTick)(()=>{I?.resume()}))},{immediate:D}),(0,r.onScopeDispose)(()=>{I?.stop(),N?.stop()})})},d=()=>{n.run(()=>{(0,r.watch)(()=>A.maxZoom,()=>{A.maxZoom&&se(A.maxZoom)&&t.setMaxZoom(A.maxZoom)},{immediate:!0})})},h=()=>{n.run(()=>{(0,r.watch)(()=>A.minZoom,()=>{A.minZoom&&se(A.minZoom)&&t.setMinZoom(A.minZoom)},{immediate:!0})})},g=()=>{n.run(()=>{(0,r.watch)(()=>A.translateExtent,()=>{A.translateExtent&&se(A.translateExtent)&&t.setTranslateExtent(A.translateExtent)},{immediate:!0})})},B=()=>{n.run(()=>{(0,r.watch)(()=>A.nodeExtent,()=>{A.nodeExtent&&se(A.nodeExtent)&&t.setNodeExtent(A.nodeExtent)},{immediate:!0})})},w=()=>{n.run(()=>{(0,r.watch)(()=>A.applyDefault,()=>{se(A.applyDefault)&&(t.applyDefault.value=A.applyDefault)},{immediate:!0})})},m=()=>{n.run(()=>{const I=async N=>{let D=N;typeof A.autoConnect=="function"&&(D=await A.autoConnect(N)),D!==!1&&t.addEdges([D])};(0,r.watch)(()=>A.autoConnect,()=>{se(A.autoConnect)&&(t.autoConnect.value=A.autoConnect)},{immediate:!0}),(0,r.watch)(t.autoConnect,(N,D,P)=>{N?t.onConnect(I):t.hooks.value.connect.off(I),P(()=>{t.hooks.value.connect.off(I)})},{immediate:!0})})},v=()=>{const I=["id","modelValue","translateExtent","nodeExtent","edges","nodes","maxZoom","minZoom","applyDefault","autoConnect"];for(const N of Object.keys(A)){const D=N;if(!I.includes(D)){const P=(0,r.toRef)(()=>A[D]),H=t[D];(0,r.isRef)(H)&&n.run(()=>{(0,r.watch)(P,O=>{se(O)&&(H.value=O)},{immediate:!0})})}}};o(),a(),u(),h(),d(),g(),B(),w(),m(),v()}),()=>n.stop()}function SB(){return{edgesChange:yA(),nodesChange:yA(),nodeDoubleClick:yA(),nodeClick:yA(),nodeMouseEnter:yA(),nodeMouseMove:yA(),nodeMouseLeave:yA(),nodeContextMenu:yA(),nodeDragStart:yA(),nodeDrag:yA(),nodeDragStop:yA(),nodesInitialized:yA(),miniMapNodeClick:yA(),miniMapNodeDoubleClick:yA(),miniMapNodeMouseEnter:yA(),miniMapNodeMouseMove:yA(),miniMapNodeMouseLeave:yA(),connect:yA(),connectStart:yA(),connectEnd:yA(),clickConnectStart:yA(),clickConnectEnd:yA(),paneReady:yA(),init:yA(),move:yA(),moveStart:yA(),moveEnd:yA(),selectionDragStart:yA(),selectionDrag:yA(),selectionDragStop:yA(),selectionContextMenu:yA(),selectionStart:yA(),selectionEnd:yA(),viewportChangeStart:yA(),viewportChange:yA(),viewportChangeEnd:yA(),paneScroll:yA(),paneClick:yA(),paneContextMenu:yA(),paneMouseEnter:yA(),paneMouseMove:yA(),paneMouseLeave:yA(),edgeContextMenu:yA(),edgeMouseEnter:yA(),edgeMouseMove:yA(),edgeMouseLeave:yA(),edgeDoubleClick:yA(),edgeClick:yA(),edgeUpdateStart:yA(),edgeUpdate:yA(),edgeUpdateEnd:yA(),updateNodeInternals:yA(),error:yA(e=>Pn(e.message))}}function xB(e,A){const t=(0,r.getCurrentInstance)();(0,r.onBeforeMount)(()=>{for(const[o,a]of Object.entries(A.value)){const u=d=>{e(o,d)};a.setEmitter(u),Fn(a.removeEmitter),a.setHasEmitListeners(()=>n(o)),Fn(a.removeHasEmitListeners)}});function n(o){var a;const u=DB(o);return!!((a=t?.vnode.props)!=null&&a[u])}}function DB(e){const[A,...t]=e.split(":");return`on${A.replace(/(?:^|-)(\w)/g,(n,o)=>o.toUpperCase())}${t.length?`:${t.join(":")}`:""}`}function ol(){return{vueFlowRef:null,viewportRef:null,nodes:[],edges:[],connectionLookup:new Map,nodeTypes:{},edgeTypes:{},initialized:!1,dimensions:{width:0,height:0},viewport:{x:0,y:0,zoom:1},d3Zoom:null,d3Selection:null,d3ZoomHandler:null,minZoom:.5,maxZoom:2,translateExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],nodeExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],selectionMode:fi.Full,paneDragging:!1,preventScrolling:!0,zoomOnScroll:!0,zoomOnPinch:!0,zoomOnDoubleClick:!0,panOnScroll:!1,panOnScrollSpeed:.5,panOnScrollMode:kn.Free,paneClickDistance:0,panOnDrag:!0,edgeUpdaterRadius:10,onlyRenderVisibleElements:!1,defaultViewport:{x:0,y:0,zoom:1},nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,defaultMarkerColor:"#b1b1b7",connectionLineStyle:{},connectionLineType:null,connectionLineOptions:{type:Lt.Bezier,style:{}},connectionMode:nt.Loose,connectionStartHandle:null,connectionEndHandle:null,connectionClickStartHandle:null,connectionPosition:{x:NaN,y:NaN},connectionRadius:20,connectOnClick:!0,connectionStatus:null,isValidConnection:null,snapGrid:[15,15],snapToGrid:!1,edgesUpdatable:!1,edgesFocusable:!0,nodesFocusable:!0,nodesConnectable:!0,nodesDraggable:!0,nodeDragThreshold:1,elementsSelectable:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,selectionKeyCode:"Shift",multiSelectionKeyCode:Lr()?"Meta":"Control",zoomActivationKeyCode:Lr()?"Meta":"Control",deleteKeyCode:"Backspace",panActivationKeyCode:"Space",hooks:SB(),applyDefault:!0,autoConnect:!1,fitViewOnInit:!1,fitViewOnInitDone:!1,noDragClassName:"nodrag",noWheelClassName:"nowheel",noPanClassName:"nopan",defaultEdgeOptions:void 0,elevateEdgesOnSelect:!1,elevateNodesOnSelect:!0,autoPanOnNodeDrag:!0,autoPanOnConnect:!0,autoPanSpeed:15,disableKeyboardA11y:!1,ariaLiveMessage:""}}var NB=["id","vueFlowRef","viewportRef","initialized","modelValue","nodes","edges","maxZoom","minZoom","translateExtent","hooks","defaultEdgeOptions"];function LB(e,A,t){const n=IB(e),o=_=>{const F=_??[];e.hooks.updateNodeInternals.trigger(F)},a=_=>Wh(_,e.nodes,e.edges),u=_=>Yh(_,e.nodes,e.edges),d=_=>Ia(_,e.edges),h=({id:_,type:F,nodeId:x})=>{var z;const G=_?`-${F}-${_}`:`-${F}`;return Array.from(((z=e.connectionLookup.get(`${x}${G}`))==null?void 0:z.values())??[])},g=_=>{if(_)return A.value.get(_)},B=_=>{if(_)return t.value.get(_)},w=(_,F,x)=>{var z,G;const dA=[];for(const fA of _){const QA={id:fA.id,type:"position",dragging:x,from:fA.from};if(F&&(QA.position=fA.position,fA.parentNode)){const EA=g(fA.parentNode);QA.position={x:QA.position.x-(((z=EA?.computedPosition)==null?void 0:z.x)??0),y:QA.position.y-(((G=EA?.computedPosition)==null?void 0:G.y)??0)}}dA.push(QA)}dA?.length&&e.hooks.nodesChange.trigger(dA)},m=_=>{if(!e.vueFlowRef)return;const F=e.vueFlowRef.querySelector(".vue-flow__transformationpane");if(!F)return;const x=window.getComputedStyle(F),{m22:z}=new window.DOMMatrixReadOnly(x.transform),G=[];for(const dA of _){const fA=dA,QA=g(fA.id);if(QA){const EA=Dr(fA.nodeElement);if(EA.width&&EA.height&&(QA.dimensions.width!==EA.width||QA.dimensions.height!==EA.height||fA.forceUpdate)){const NA=fA.nodeElement.getBoundingClientRect();QA.dimensions=EA,QA.handleBounds.source=Ya("source",fA.nodeElement,NA,z,QA.id),QA.handleBounds.target=Ya("target",fA.nodeElement,NA,z,QA.id),G.push({id:QA.id,type:"dimensions",dimensions:EA})}}}!e.fitViewOnInitDone&&e.fitViewOnInit&&n.value.fitView().then(()=>{e.fitViewOnInitDone=!0}),G.length&&e.hooks.nodesChange.trigger(G)},v=(_,F)=>{const x=new Set,z=new Set;for(const fA of _)kt(fA)?x.add(fA.id):ht(fA)&&z.add(fA.id);const G=pt(A.value,x,!0),dA=pt(t.value,z);if(e.multiSelectionActive){for(const fA of x)G.push(Bt(fA,F));for(const fA of z)dA.push(Bt(fA,F))}G.length&&e.hooks.nodesChange.trigger(G),dA.length&&e.hooks.edgesChange.trigger(dA)},y=_=>{if(e.multiSelectionActive){const F=_.map(x=>Bt(x.id,!0));e.hooks.nodesChange.trigger(F);return}e.hooks.nodesChange.trigger(pt(A.value,new Set(_.map(F=>F.id)),!0)),e.hooks.edgesChange.trigger(pt(t.value))},I=_=>{if(e.multiSelectionActive){const F=_.map(x=>Bt(x.id,!0));e.hooks.edgesChange.trigger(F);return}e.hooks.edgesChange.trigger(pt(t.value,new Set(_.map(F=>F.id)))),e.hooks.nodesChange.trigger(pt(A.value,new Set,!0))},N=_=>{v(_,!0)},D=_=>{const F=(_||e.nodes).map(x=>(x.selected=!1,Bt(x.id,!1)));e.hooks.nodesChange.trigger(F)},P=_=>{const F=(_||e.edges).map(x=>(x.selected=!1,Bt(x.id,!1)));e.hooks.edgesChange.trigger(F)},H=_=>{if(!_||!_.length)return v([],!1);const F=_.reduce((x,z)=>{const G=Bt(z.id,!1);return kt(z)?x.nodes.push(G):x.edges.push(G),x},{nodes:[],edges:[]});F.nodes.length&&e.hooks.nodesChange.trigger(F.nodes),F.edges.length&&e.hooks.edgesChange.trigger(F.edges)},O=_=>{var F;(F=e.d3Zoom)==null||F.scaleExtent([_,e.maxZoom]),e.minZoom=_},sA=_=>{var F;(F=e.d3Zoom)==null||F.scaleExtent([e.minZoom,_]),e.maxZoom=_},J=_=>{var F;(F=e.d3Zoom)==null||F.translateExtent(_),e.translateExtent=_},cA=_=>{e.nodeExtent=_,o()},lA=_=>{var F;(F=e.d3Zoom)==null||F.clickDistance(_)},oA=_=>{e.nodesDraggable=_,e.nodesConnectable=_,e.elementsSelectable=_},iA=_=>{const F=_ instanceof Function?_(e.nodes):_;!e.initialized&&!F.length||(e.nodes=Wa(F,g,e.hooks.error.trigger))},AA=_=>{const F=_ instanceof Function?_(e.edges):_;if(!e.initialized&&!F.length)return;const x=Qi(F,e.isValidConnection,g,B,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges);yi(e.connectionLookup,t.value,x),e.edges=x},S=_=>{const F=_ instanceof Function?_([...e.nodes,...e.edges]):_;!e.initialized&&!F.length||(iA(F.filter(kt)),AA(F.filter(ht)))},eA=_=>{let F=_ instanceof Function?_(e.nodes):_;F=Array.isArray(F)?F:[F];const x=Wa(F,g,e.hooks.error.trigger),z=[];for(const G of x)z.push(Ta(G));z.length&&e.hooks.nodesChange.trigger(z)},U=_=>{let F=_ instanceof Function?_(e.edges):_;F=Array.isArray(F)?F:[F];const x=Qi(F,e.isValidConnection,g,B,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges),z=[];for(const G of x)z.push(Ta(G));z.length&&e.hooks.edgesChange.trigger(z)},K=(_,F=!0,x=!1)=>{const z=_ instanceof Function?_(e.nodes):_,G=Array.isArray(z)?z:[z],dA=[],fA=[];function QA(NA){const OA=d(NA);for(const KA of OA)(!se(KA.deletable)||KA.deletable)&&fA.push(Ma(KA.id,KA.source,KA.target,KA.sourceHandle,KA.targetHandle))}function EA(NA){const OA=[];for(const KA of e.nodes)KA.parentNode===NA&&OA.push(KA);if(OA.length){for(const KA of OA)dA.push(ka(KA.id));F&&QA(OA);for(const KA of OA)EA(KA.id)}}for(const NA of G){const OA=typeof NA=="string"?g(NA):NA;OA&&(se(OA.deletable)&&!OA.deletable||(dA.push(ka(OA.id)),F&&QA([OA]),x&&EA(OA.id)))}fA.length&&e.hooks.edgesChange.trigger(fA),dA.length&&e.hooks.nodesChange.trigger(dA)},b=_=>{const F=_ instanceof Function?_(e.edges):_,x=Array.isArray(F)?F:[F],z=[];for(const G of x){const dA=typeof G=="string"?B(G):G;dA&&(se(dA.deletable)&&!dA.deletable||z.push(Ma(typeof G=="string"?G:G.id,dA.source,dA.target,dA.sourceHandle,dA.targetHandle)))}e.hooks.edgesChange.trigger(z)},R=(_,F,x=!0)=>{const z=B(_.id);if(!z)return!1;const G=e.edges.indexOf(z),dA=mB(_,F,z,x,e.hooks.error.trigger);if(dA){const[fA]=Qi([dA],e.isValidConnection,g,B,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges);return e.edges=e.edges.map((QA,EA)=>EA===G?fA:QA),yi(e.connectionLookup,t.value,[fA]),fA}return!1},k=(_,F,x={replace:!1})=>{const z=B(_);if(!z)return;const G=typeof F=="function"?F(z):F;z.data=x.replace?G:{...z.data,...G}},T=_=>La(_,e.nodes),M=_=>{const F=La(_,e.edges);return yi(e.connectionLookup,t.value,F),F},Y=(_,F,x={replace:!1})=>{const z=g(_);if(!z)return;const G=typeof F=="function"?F(z):F;x.replace?e.nodes.splice(e.nodes.indexOf(z),1,G):Object.assign(z,G)},tA=(_,F,x={replace:!1})=>{const z=g(_);if(!z)return;const G=typeof F=="function"?F(z):F;z.data=x.replace?G:{...z.data,...G}},BA=(_,F,x=!1)=>{x?e.connectionClickStartHandle=_:e.connectionStartHandle=_,e.connectionEndHandle=null,e.connectionStatus=null,F&&(e.connectionPosition=F)},bA=(_,F=null,x=null)=>{e.connectionStartHandle&&(e.connectionPosition=_,e.connectionEndHandle=F,e.connectionStatus=x)},nA=(_,F)=>{e.connectionPosition={x:NaN,y:NaN},e.connectionEndHandle=null,e.connectionStatus=null,F?e.connectionClickStartHandle=null:e.connectionStartHandle=null},W=_=>{const F=Xh(_),x=F?null:On(_)?_:g(_.id);return!F&&!x?[null,null,F]:[F?_:Sr(x),x,F]},$=(_,F=!0,x=e.nodes)=>{const[z,G,dA]=W(_);if(!z)return[];const fA=[];for(const QA of x||e.nodes){if(!dA&&(QA.id===G.id||!QA.computedPosition))continue;const EA=Sr(QA),NA=xr(EA,z);(F&&NA>0||NA>=EA.width*EA.height||NA>=Number(z.width)*Number(z.height))&&fA.push(QA)}return fA},uA=(_,F,x=!0)=>{const[z]=W(_);if(!z)return!1;const G=xr(z,F);return x&&G>0||G>=Number(z.width)*Number(z.height)},wA=_=>{const{viewport:F,dimensions:x,d3Zoom:z,d3Selection:G,translateExtent:dA}=e;if(!z||!G||!_.x&&!_.y)return!1;const fA=qt.translate(F.x+_.x,F.y+_.y).scale(F.zoom),QA=[[0,0],[x.width,x.height]],EA=z.constrain()(fA,QA,dA),NA=e.viewport.x!==EA.x||e.viewport.y!==EA.y||e.viewport.zoom!==EA.k;return z.transform(G,EA),NA},HA=_=>{const F=_ instanceof Function?_(e):_,x=["d3Zoom","d3Selection","d3ZoomHandler","viewportRef","vueFlowRef","dimensions","hooks"];se(F.defaultEdgeOptions)&&(e.defaultEdgeOptions=F.defaultEdgeOptions);const z=F.modelValue||F.nodes||F.edges?[]:void 0;z&&(F.modelValue&&z.push(...F.modelValue),F.nodes&&z.push(...F.nodes),F.edges&&z.push(...F.edges),S(z));const G=()=>{se(F.maxZoom)&&sA(F.maxZoom),se(F.minZoom)&&O(F.minZoom),se(F.translateExtent)&&J(F.translateExtent)};for(const dA of Object.keys(F)){const fA=dA,QA=F[fA];![...NB,...x].includes(fA)&&se(QA)&&(e[fA]=QA)}Xo(()=>e.d3Zoom).not.toBeNull().then(G),e.initialized||(e.initialized=!0)};return{updateNodePositions:w,updateNodeDimensions:m,setElements:S,setNodes:iA,setEdges:AA,addNodes:eA,addEdges:U,removeNodes:K,removeEdges:b,findNode:g,findEdge:B,updateEdge:R,updateEdgeData:k,updateNode:Y,updateNodeData:tA,applyEdgeChanges:M,applyNodeChanges:T,addSelectedElements:N,addSelectedNodes:y,addSelectedEdges:I,setMinZoom:O,setMaxZoom:sA,setTranslateExtent:J,setNodeExtent:cA,setPaneClickDistance:lA,removeSelectedElements:H,removeSelectedNodes:D,removeSelectedEdges:P,startConnection:BA,updateConnection:bA,endConnection:nA,setInteractive:oA,setState:HA,getIntersectingNodes:$,getIncomers:a,getOutgoers:u,getConnectedEdges:d,getHandleConnections:h,isNodeIntersecting:uA,panBy:wA,fitView:_=>n.value.fitView(_),zoomIn:_=>n.value.zoomIn(_),zoomOut:_=>n.value.zoomOut(_),zoomTo:(_,F)=>n.value.zoomTo(_,F),setViewport:(_,F)=>n.value.setViewport(_,F),setTransform:(_,F)=>n.value.setTransform(_,F),getViewport:()=>n.value.getViewport(),getTransform:()=>n.value.getTransform(),setCenter:(_,F,x)=>n.value.setCenter(_,F,x),fitBounds:(_,F)=>n.value.fitBounds(_,F),project:_=>n.value.project(_),screenToFlowCoordinate:_=>n.value.screenToFlowCoordinate(_),flowToScreenCoordinate:_=>n.value.flowToScreenCoordinate(_),toObject:()=>{const _=[],F=[];for(const x of e.nodes){const{computedPosition:z,handleBounds:G,selected:dA,dimensions:fA,isParent:QA,resizing:EA,dragging:NA,events:OA,...KA}=x;_.push(KA)}for(const x of e.edges){const{selected:z,sourceNode:G,targetNode:dA,events:fA,...QA}=x;F.push(QA)}return JSON.parse(JSON.stringify({nodes:_,edges:F,position:[e.viewport.x,e.viewport.y],zoom:e.viewport.zoom,viewport:e.viewport}))},fromObject:_=>new Promise(F=>{const{nodes:x,edges:z,position:G,zoom:dA,viewport:fA}=_;x&&iA(x),z&&AA(z);const[QA,EA]=fA?.x&&fA?.y?[fA.x,fA.y]:G??[null,null];if(QA&&EA){const NA=fA?.zoom||dA||e.viewport.zoom;return Xo(()=>n.value.viewportInitialized).toBe(!0).then(()=>{n.value.setViewport({x:QA,y:EA,zoom:NA}).then(()=>{F(!0)})})}else F(!0)}),updateNodeInternals:o,viewportHelper:n,$reset:()=>{const _=ol();if(e.edges=[],e.nodes=[],e.d3Zoom&&e.d3Selection){const F=qt.translate(_.defaultViewport.x??0,_.defaultViewport.y??0).scale(Tt(_.defaultViewport.zoom??1,_.minZoom,_.maxZoom)),x=e.viewportRef.getBoundingClientRect(),z=[[0,0],[x.width,x.height]],G=e.d3Zoom.constrain()(F,z,_.translateExtent);e.d3Zoom.transform(e.d3Selection,G)}HA(_)},$destroy:()=>{}}}var TB=["data-id","data-handleid","data-nodeid","data-handlepos"],nn=(0,r.defineComponent)({name:"Handle",compatConfig:{MODE:3},props:{id:{default:null},type:{},position:{default:()=>IA.Top},isValidConnection:{type:Function},connectable:{type:[Boolean,Number,String,Function],default:void 0},connectableStart:{type:Boolean,default:!0},connectableEnd:{type:Boolean,default:!0}},setup(e,{expose:A}){const t=(0,r.createPropsRestProxy)(e,["position","connectable","connectableStart","connectableEnd","id"]),n=(0,r.toRef)(()=>t.type??"source"),o=(0,r.toRef)(()=>t.isValidConnection??null),{id:a,connectionStartHandle:u,connectionClickStartHandle:d,connectionEndHandle:h,vueFlowRef:g,nodesConnectable:B,noDragClassName:w,noPanClassName:m}=XA(),{id:v,node:y,nodeEl:I,connectedEdges:N}=nl(),D=(0,r.ref)(),P=(0,r.toRef)(()=>typeof e.connectableStart<"u"?e.connectableStart:!0),H=(0,r.toRef)(()=>typeof e.connectableEnd<"u"?e.connectableEnd:!0),O=(0,r.toRef)(()=>{var AA,S,eA,U,K,b;return((AA=u.value)==null?void 0:AA.nodeId)===v&&((S=u.value)==null?void 0:S.id)===e.id&&((eA=u.value)==null?void 0:eA.type)===n.value||((U=h.value)==null?void 0:U.nodeId)===v&&((K=h.value)==null?void 0:K.id)===e.id&&((b=h.value)==null?void 0:b.type)===n.value}),sA=(0,r.toRef)(()=>{var AA,S,eA;return((AA=d.value)==null?void 0:AA.nodeId)===v&&((S=d.value)==null?void 0:S.id)===e.id&&((eA=d.value)==null?void 0:eA.type)===n.value}),{handlePointerDown:J,handleClick:cA}=tl({nodeId:v,handleId:e.id,isValidConnection:o,type:n}),lA=(0,r.computed)(()=>typeof e.connectable=="string"&&e.connectable==="single"?!N.value.some(AA=>{const S=AA[`${n.value}Handle`];return AA[n.value]!==v?!1:S?S===e.id:!0}):typeof e.connectable=="number"?N.value.filter(AA=>{const S=AA[`${n.value}Handle`];return AA[n.value]!==v?!1:S?S===e.id:!0}).length<e.connectable:typeof e.connectable=="function"?e.connectable(y,N.value):se(e.connectable)?e.connectable:B.value);(0,r.onMounted)(()=>{var AA;if(!y.dimensions.width||!y.dimensions.height)return;const S=(AA=y.handleBounds[n.value])==null?void 0:AA.find(T=>T.id===e.id);if(!g.value||S)return;const eA=g.value.querySelector(".vue-flow__transformationpane");if(!I.value||!D.value||!eA||!e.id)return;const U=I.value.getBoundingClientRect(),K=D.value.getBoundingClientRect(),b=window.getComputedStyle(eA),{m22:R}=new window.DOMMatrixReadOnly(b.transform),k={id:e.id,position:e.position,x:(K.left-U.left)/R,y:(K.top-U.top)/R,type:n.value,nodeId:v,...Dr(D.value)};y.handleBounds[n.value]=[...y.handleBounds[n.value]??[],k]});function oA(AA){const S=mi(AA);lA.value&&P.value&&(S&&AA.button===0||!S)&&J(AA)}function iA(AA){!v||!d.value&&!P.value||lA.value&&cA(AA)}return A({handleClick:cA,handlePointerDown:J,onClick:iA,onPointerDown:oA}),(AA,S)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{ref_key:"handle",ref:D,"data-id":`${(0,r.unref)(a)}-${(0,r.unref)(v)}-${e.id}-${n.value}`,"data-handleid":e.id,"data-nodeid":(0,r.unref)(v),"data-handlepos":AA.position,class:(0,r.normalizeClass)(["vue-flow__handle",[`vue-flow__handle-${AA.position}`,`vue-flow__handle-${e.id}`,(0,r.unref)(w),(0,r.unref)(m),n.value,{connectable:lA.value,connecting:sA.value,connectablestart:P.value,connectableend:H.value,connectionindicator:lA.value&&(P.value&&!O.value||H.value&&O.value)}]]),onMousedown:oA,onTouchstartPassive:oA,onClick:iA},[(0,r.renderSlot)(AA.$slots,"default",{id:AA.id})],42,TB))}}),Kr=function({sourcePosition:e=IA.Bottom,targetPosition:A=IA.Top,label:t,connectable:n=!0,isValidTargetPos:o,isValidSourcePos:a,data:u}){const d=u.label??t;return[(0,r.h)(nn,{type:"target",position:A,connectable:n,isValidConnection:o}),typeof d!="string"&&d?(0,r.h)(d):(0,r.h)(r.Fragment,[d]),(0,r.h)(nn,{type:"source",position:e,connectable:n,isValidConnection:a})]};Kr.props=["sourcePosition","targetPosition","label","isValidTargetPos","isValidSourcePos","connectable","data"],Kr.inheritAttrs=!1,Kr.compatConfig={MODE:3};var kB=Kr,Rr=function({targetPosition:e=IA.Top,label:A,connectable:t=!0,isValidTargetPos:n,data:o}){const a=o.label??A;return[(0,r.h)(nn,{type:"target",position:e,connectable:t,isValidConnection:n}),typeof a!="string"&&a?(0,r.h)(a):(0,r.h)(r.Fragment,[a])]};Rr.props=["targetPosition","label","isValidTargetPos","connectable","data"],Rr.inheritAttrs=!1,Rr.compatConfig={MODE:3};var MB=Rr,Vr=function({sourcePosition:e=IA.Bottom,label:A,connectable:t=!0,isValidSourcePos:n,data:o}){const a=o.label??A;return[typeof a!="string"&&a?(0,r.h)(a):(0,r.h)(r.Fragment,[a]),(0,r.h)(nn,{type:"source",position:e,connectable:t,isValidConnection:n})]};Vr.props=["sourcePosition","label","isValidSourcePos","connectable","data"],Vr.inheritAttrs=!1,Vr.compatConfig={MODE:3};var OB=Vr,KB=["transform"],RB=["width","height","x","y","rx","ry"],VB=["y"],PB=(0,r.defineComponent)({name:"EdgeText",compatConfig:{MODE:3},props:{x:{},y:{},label:{},labelStyle:{default:()=>({})},labelShowBg:{type:Boolean,default:!0},labelBgStyle:{default:()=>({})},labelBgPadding:{default:()=>[2,4]},labelBgBorderRadius:{default:2}},setup(e){const A=(0,r.ref)({x:0,y:0,width:0,height:0}),t=(0,r.ref)(null),n=(0,r.computed)(()=>`translate(${e.x-A.value.width/2} ${e.y-A.value.height/2})`);(0,r.onMounted)(o),(0,r.watch)([()=>e.x,()=>e.y,t,()=>e.label],o);function o(){if(!t.value)return;const a=t.value.getBBox();(a.width!==A.value.width||a.height!==A.value.height)&&(A.value=a)}return(a,u)=>((0,r.openBlock)(),(0,r.createElementBlock)("g",{transform:n.value,class:"vue-flow__edge-textwrapper"},[a.labelShowBg?((0,r.openBlock)(),(0,r.createElementBlock)("rect",{key:0,class:"vue-flow__edge-textbg",width:`${A.value.width+2*a.labelBgPadding[0]}px`,height:`${A.value.height+2*a.labelBgPadding[1]}px`,x:-a.labelBgPadding[0],y:-a.labelBgPadding[1],style:(0,r.normalizeStyle)(a.labelBgStyle),rx:a.labelBgBorderRadius,ry:a.labelBgBorderRadius},null,12,RB)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("text",(0,r.mergeProps)(a.$attrs,{ref_key:"el",ref:t,class:"vue-flow__edge-text",y:A.value.height/2,dy:"0.3em",style:a.labelStyle}),[(0,r.renderSlot)(a.$slots,"default",{},()=>[typeof a.label!="string"?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(a.label),{key:0})):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createTextVNode)((0,r.toDisplayString)(a.label),1)],64))])],16,VB)],8,KB))}}),GB=["id","d","marker-end","marker-start"],zB=["d","stroke-width"],Gn=(0,r.defineComponent)({name:"BaseEdge",inheritAttrs:!1,compatConfig:{MODE:3},props:{id:{},labelX:{},labelY:{},path:{},label:{},markerStart:{},markerEnd:{},interactionWidth:{default:20},labelStyle:{},labelShowBg:{type:Boolean},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{}},setup(e,{expose:A}){const t=(0,r.ref)(null),n=(0,r.ref)(null),o=(0,r.ref)(null),a=(0,r.useAttrs)();return A({pathEl:t,interactionEl:n,labelEl:o}),(u,d)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createElementVNode)("path",(0,r.mergeProps)((0,r.unref)(a),{id:u.id,ref_key:"pathEl",ref:t,d:u.path,class:"vue-flow__edge-path","marker-end":u.markerEnd,"marker-start":u.markerStart}),null,16,GB),u.interactionWidth?((0,r.openBlock)(),(0,r.createElementBlock)("path",{key:0,ref_key:"interactionEl",ref:n,fill:"none",d:u.path,"stroke-width":u.interactionWidth,"stroke-opacity":0,class:"vue-flow__edge-interaction"},null,8,zB)):(0,r.createCommentVNode)("",!0),u.label&&u.labelX&&u.labelY?((0,r.openBlock)(),(0,r.createBlock)(PB,{key:1,ref_key:"labelEl",ref:o,x:u.labelX,y:u.labelY,label:u.label,"label-show-bg":u.labelShowBg,"label-bg-style":u.labelBgStyle,"label-bg-padding":u.labelBgPadding,"label-bg-border-radius":u.labelBgBorderRadius,"label-style":u.labelStyle},null,8,["x","y","label","label-show-bg","label-bg-style","label-bg-padding","label-bg-border-radius","label-style"])):(0,r.createCommentVNode)("",!0)],64))}});function il({sourceX:e,sourceY:A,targetX:t,targetY:n}){const o=Math.abs(t-e)/2,a=t<e?t+o:t-o,u=Math.abs(n-A)/2;return[a,n<A?n+u:n-u,o,u]}function sl({sourceX:e,sourceY:A,targetX:t,targetY:n,sourceControlX:o,sourceControlY:a,targetControlX:u,targetControlY:d}){const h=e*.125+o*.375+u*.375+t*.125,g=A*.125+a*.375+d*.375+n*.125;return[h,g,Math.abs(h-e),Math.abs(g-A)]}function Pr(e,A){return e>=0?.5*e:A*25*Math.sqrt(-e)}function al({pos:e,x1:A,y1:t,x2:n,y2:o,c:a}){let u,d;switch(e){case IA.Left:u=A-Pr(A-n,a),d=t;break;case IA.Right:u=A+Pr(n-A,a),d=t;break;case IA.Top:u=A,d=t-Pr(t-o,a);break;case IA.Bottom:u=A,d=t+Pr(o-t,a);break}return[u,d]}function Fi(e){const{sourceX:A,sourceY:t,sourcePosition:n=IA.Bottom,targetX:o,targetY:a,targetPosition:u=IA.Top,curvature:d=.25}=e,[h,g]=al({pos:n,x1:A,y1:t,x2:o,y2:a,c:d}),[B,w]=al({pos:u,x1:o,y1:a,x2:A,y2:t,c:d}),[m,v,y,I]=sl({sourceX:A,sourceY:t,targetX:o,targetY:a,sourceControlX:h,sourceControlY:g,targetControlX:B,targetControlY:w});return[`M${A},${t} C${h},${g} ${B},${w} ${o},${a}`,m,v,y,I]}function ll({pos:e,x1:A,y1:t,x2:n,y2:o}){let a,u;switch(e){case IA.Left:case IA.Right:a=.5*(A+n),u=t;break;case IA.Top:case IA.Bottom:a=A,u=.5*(t+o);break}return[a,u]}function cl(e){const{sourceX:A,sourceY:t,sourcePosition:n=IA.Bottom,targetX:o,targetY:a,targetPosition:u=IA.Top}=e,[d,h]=ll({pos:n,x1:A,y1:t,x2:o,y2:a}),[g,B]=ll({pos:u,x1:o,y1:a,x2:A,y2:t}),[w,m,v,y]=sl({sourceX:A,sourceY:t,targetX:o,targetY:a,sourceControlX:d,sourceControlY:h,targetControlX:g,targetControlY:B});return[`M${A},${t} C${d},${h} ${g},${B} ${o},${a}`,w,m,v,y]}var ul={[IA.Left]:{x:-1,y:0},[IA.Right]:{x:1,y:0},[IA.Top]:{x:0,y:-1},[IA.Bottom]:{x:0,y:1}};function XB({source:e,sourcePosition:A=IA.Bottom,target:t}){return A===IA.Left||A===IA.Right?e.x<t.x?{x:1,y:0}:{x:-1,y:0}:e.y<t.y?{x:0,y:1}:{x:0,y:-1}}function dl(e,A){return Math.sqrt((A.x-e.x)**2+(A.y-e.y)**2)}function $B({source:e,sourcePosition:A=IA.Bottom,target:t,targetPosition:n=IA.Top,center:o,offset:a}){const u=ul[A],d=ul[n],h={x:e.x+u.x*a,y:e.y+u.y*a},g={x:t.x+d.x*a,y:t.y+d.y*a},B=XB({source:h,sourcePosition:A,target:g}),w=B.x!==0?"x":"y",m=B[w];let v,y,I;const N={x:0,y:0},D={x:0,y:0},[P,H,O,sA]=il({sourceX:e.x,sourceY:e.y,targetX:t.x,targetY:t.y});if(u[w]*d[w]===-1){y=o.x??P,I=o.y??H;const J=[{x:y,y:h.y},{x:y,y:g.y}],cA=[{x:h.x,y:I},{x:g.x,y:I}];u[w]===m?v=w==="x"?J:cA:v=w==="x"?cA:J}else{const J=[{x:h.x,y:g.y}],cA=[{x:g.x,y:h.y}];if(w==="x"?v=u.x===m?cA:J:v=u.y===m?J:cA,A===n){const iA=Math.abs(e[w]-t[w]);if(iA<=a){const AA=Math.min(a-1,a-iA);u[w]===m?N[w]=(h[w]>e[w]?-1:1)*AA:D[w]=(g[w]>t[w]?-1:1)*AA}}if(A!==n){const iA=w==="x"?"y":"x",AA=u[w]===d[iA],S=h[iA]>g[iA],eA=h[iA]<g[iA];(u[w]===1&&(!AA&&S||AA&&eA)||u[w]!==1&&(!AA&&eA||AA&&S))&&(v=w==="x"?J:cA)}const lA={x:h.x+N.x,y:h.y+N.y},oA={x:g.x+D.x,y:g.y+D.y};Math.max(Math.abs(lA.x-v[0].x),Math.abs(oA.x-v[0].x))>=Math.max(Math.abs(lA.y-v[0].y),Math.abs(oA.y-v[0].y))?(y=(lA.x+oA.x)/2,I=v[0].y):(y=v[0].x,I=(lA.y+oA.y)/2)}return[[e,{x:h.x+N.x,y:h.y+N.y},...v,{x:g.x+D.x,y:g.y+D.y},t],y,I,O,sA]}function YB(e,A,t,n){const o=Math.min(dl(e,A)/2,dl(A,t)/2,n),{x:a,y:u}=A;if(e.x===a&&a===t.x||e.y===u&&u===t.y)return`L${a} ${u}`;if(e.y===u){const h=e.x<t.x?-1:1,g=e.y<t.y?1:-1;return`L ${a+o*h},${u}Q ${a},${u} ${a},${u+o*g}`}const d=e.x<t.x?1:-1;return`L ${a},${u+o*(e.y<t.y?-1:1)}Q ${a},${u} ${a+o*d},${u}`}function Ui(e){const{sourceX:A,sourceY:t,sourcePosition:n=IA.Bottom,targetX:o,targetY:a,targetPosition:u=IA.Top,borderRadius:d=5,centerX:h,centerY:g,offset:B=20}=e,[w,m,v,y,I]=$B({source:{x:A,y:t},sourcePosition:n,target:{x:o,y:a},targetPosition:u,center:{x:h,y:g},offset:B});return[w.reduce((N,D,P)=>{let H;return P>0&&P<w.length-1?H=YB(w[P-1],D,w[P+1],d):H=`${P===0?"M":"L"}${D.x} ${D.y}`,N+=H,N},""),m,v,y,I]}function WB(e){const{sourceX:A,sourceY:t,targetX:n,targetY:o}=e,[a,u,d,h]=il({sourceX:A,sourceY:t,targetX:n,targetY:o});return[`M ${A},${t}L ${n},${o}`,a,u,d,h]}var JB=(0,r.defineComponent)({name:"StraightEdge",props:["label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(e,{attrs:A}){return()=>{const[t,n,o]=WB(e);return(0,r.h)(Gn,{path:t,labelX:n,labelY:o,...A,...e})}}}),fl=(0,r.defineComponent)({name:"SmoothStepEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","borderRadius","markerEnd","markerStart","interactionWidth","offset"],compatConfig:{MODE:3},setup(e,{attrs:A}){return()=>{const[t,n,o]=Ui({...e,sourcePosition:e.sourcePosition??IA.Bottom,targetPosition:e.targetPosition??IA.Top});return(0,r.h)(Gn,{path:t,labelX:n,labelY:o,...A,...e})}}}),ZB=(0,r.defineComponent)({name:"StepEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],setup(e,{attrs:A}){return()=>(0,r.h)(fl,{...e,...A,borderRadius:0})}}),jB=(0,r.defineComponent)({name:"BezierEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","curvature","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(e,{attrs:A}){return()=>{const[t,n,o]=Fi({...e,sourcePosition:e.sourcePosition??IA.Bottom,targetPosition:e.targetPosition??IA.Top});return(0,r.h)(Gn,{path:t,labelX:n,labelY:o,...A,...e})}}}),qB=(0,r.defineComponent)({name:"SimpleBezierEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(e,{attrs:A}){return()=>{const[t,n,o]=cl({...e,sourcePosition:e.sourcePosition??IA.Bottom,targetPosition:e.targetPosition??IA.Top});return(0,r.h)(Gn,{path:t,labelX:n,labelY:o,...A,...e})}}}),Ap={input:OB,default:kB,output:MB},ep={default:jB,straight:JB,step:ZB,smoothstep:fl,simplebezier:qB};function tp(e,A,t){const n=(0,r.computed)(()=>y=>A.value.get(y)),o=(0,r.computed)(()=>y=>t.value.get(y)),a=(0,r.computed)(()=>{const y={...ep,...e.edgeTypes},I=Object.keys(y);for(const N of e.edges)N.type&&!I.includes(N.type)&&(y[N.type]=N.type);return y}),u=(0,r.computed)(()=>{const y={...Ap,...e.nodeTypes},I=Object.keys(y);for(const N of e.nodes)N.type&&!I.includes(N.type)&&(y[N.type]=N.type);return y}),d=(0,r.computed)(()=>e.onlyRenderVisibleElements?Ha(e.nodes,{x:0,y:0,width:e.dimensions.width,height:e.dimensions.height},e.viewport,!0):e.nodes),h=(0,r.computed)(()=>{if(e.onlyRenderVisibleElements){const y=[];for(const I of e.edges){const N=A.value.get(I.source),D=A.value.get(I.target);iB({sourcePos:N.computedPosition||{x:0,y:0},targetPos:D.computedPosition||{x:0,y:0},sourceWidth:N.dimensions.width,sourceHeight:N.dimensions.height,targetWidth:D.dimensions.width,targetHeight:D.dimensions.height,width:e.dimensions.width,height:e.dimensions.height,viewport:e.viewport})&&y.push(I)}return y}return e.edges}),g=(0,r.computed)(()=>[...d.value,...h.value]),B=(0,r.computed)(()=>{const y=[];for(const I of e.nodes)I.selected&&y.push(I);return y}),w=(0,r.computed)(()=>{const y=[];for(const I of e.edges)I.selected&&y.push(I);return y}),m=(0,r.computed)(()=>[...B.value,...w.value]),v=(0,r.computed)(()=>{const y=[];for(const I of e.nodes)I.dimensions.width&&I.dimensions.height&&I.handleBounds!==void 0&&y.push(I);return y});return{getNode:n,getEdge:o,getElements:g,getEdgeTypes:a,getNodeTypes:u,getEdges:h,getNodes:d,getSelectedElements:m,getSelectedNodes:B,getSelectedEdges:w,getNodesInitialized:v,areNodesInitialized:(0,r.computed)(()=>d.value.length>0&&v.value.length===d.value.length)}}var np=class yn{constructor(){this.currentId=0,this.flows=new Map}static getInstance(){var A;const t=(A=(0,r.getCurrentInstance)())==null?void 0:A.appContext.app;return yn.instance=t?.config.globalProperties.$vueFlowStorage??yn.instance??new yn,t&&(t.config.globalProperties.$vueFlowStorage=yn.instance),yn.instance}set(A,t){return this.flows.set(A,t)}get(A){return this.flows.get(A)}remove(A){return this.flows.delete(A)}create(A,t){const n=(0,r.reactive)(ol()),o={};for(const[w,m]of Object.entries(n.hooks)){const v=`on${w.charAt(0).toUpperCase()+w.slice(1)}`;o[v]=m.on}const a={};for(const[w,m]of Object.entries(n.hooks))a[w]=m.trigger;const u=(0,r.computed)(()=>{const w=new Map;for(const m of n.nodes)w.set(m.id,m);return w}),d=(0,r.computed)(()=>{const w=new Map;for(const m of n.edges)w.set(m.id,m);return w}),h=tp(n,u,d),g=LB(n,u,d);g.setState({...n,...t});const B={...o,...h,...g,...Ad(n),nodeLookup:u,edgeLookup:d,emits:a,id:A,vueFlowVersion:"1.48.2",$destroy:()=>{this.remove(A)}};return this.set(A,B),B}getId(){return`vue-flow-${this.currentId++}`}};function XA(e){const A=np.getInstance(),t=(0,r.getCurrentScope)(),n=typeof e=="object",o=n?e:{id:e},a=o.id,u=a??t?.vueFlowId;let d;if(t){const h=(0,r.inject)(ja,null);typeof h<"u"&&h!==null&&(!u||h.id===u)&&(d=h)}if(d||u&&(d=A.get(u)),!d||u&&d.id!==u){const h=a??A.getId(),g=A.create(h,o);d=g,(t??(0,r.effectScope)(!0)).run(()=>{(0,r.watch)(g.applyDefault,(B,w,m)=>{const v=I=>{g.applyNodeChanges(I)},y=I=>{g.applyEdgeChanges(I)};B?(g.onNodesChange(v),g.onEdgesChange(y)):(g.hooks.value.nodesChange.off(v),g.hooks.value.edgesChange.off(y)),m(()=>{g.hooks.value.nodesChange.off(v),g.hooks.value.edgesChange.off(y)})},{immediate:!0}),Fn(()=>{if(d){const B=A.get(d.id);B?B.$destroy():Pn(`No store instance found for id ${d.id} in storage.`)}})})}else n&&d.setState(o);if(t&&((0,r.provide)(ja,d),t.vueFlowId=d.id),n){const h=(0,r.getCurrentInstance)();h?.type.name!=="VueFlow"&&d.emits.error(new ce(ie.USEVUEFLOW_OPTIONS))}return d}function rp(e){const{emits:A,dimensions:t}=XA();let n;(0,r.onMounted)(()=>{const o=()=>{var a,u;if(!e.value||!(((u=(a=e.value).checkVisibility)==null?void 0:u.call(a))??!0))return;const d=Dr(e.value);(d.width===0||d.height===0)&&A.error(new ce(ie.MISSING_VIEWPORT_DIMENSIONS)),t.value={width:d.width||500,height:d.height||500}};o(),window.addEventListener("resize",o),e.value&&(n=new ResizeObserver(()=>o()),n.observe(e.value)),(0,r.onBeforeUnmount)(()=>{window.removeEventListener("resize",o),n&&e.value&&n.unobserve(e.value)})})}var op=(0,r.defineComponent)({name:"UserSelection",compatConfig:{MODE:3},props:{userSelectionRect:{}},setup(e){return(A,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"vue-flow__selection vue-flow__container",style:(0,r.normalizeStyle)({width:`${A.userSelectionRect.width}px`,height:`${A.userSelectionRect.height}px`,transform:`translate(${A.userSelectionRect.x}px, ${A.userSelectionRect.y}px)`})},null,4))}}),ip=["tabIndex"],sp=(0,r.defineComponent)({name:"NodesSelection",compatConfig:{MODE:3},setup(e){const{emits:A,viewport:t,getSelectedNodes:n,noPanClassName:o,disableKeyboardA11y:a,userSelectionActive:u}=XA(),d=rl(),h=(0,r.ref)(null),g=el({el:h,onStart(y){A.selectionDragStart(y),A.nodeDragStart(y)},onDrag(y){A.selectionDrag(y),A.nodeDrag(y)},onStop(y){A.selectionDragStop(y),A.nodeDragStop(y)}});(0,r.onMounted)(()=>{var y;a.value||(y=h.value)==null||y.focus({preventScroll:!0})});const B=(0,r.computed)(()=>ba(n.value)),w=(0,r.computed)(()=>({width:`${B.value.width}px`,height:`${B.value.height}px`,top:`${B.value.y}px`,left:`${B.value.x}px`}));function m(y){A.selectionContextMenu({event:y,nodes:n.value})}function v(y){a.value||An[y.key]&&(y.preventDefault(),d({x:An[y.key].x,y:An[y.key].y},y.shiftKey))}return(y,I)=>!(0,r.unref)(u)&&B.value.width&&B.value.height?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(["vue-flow__nodesselection vue-flow__container",(0,r.unref)(o)]),style:(0,r.normalizeStyle)({transform:`translate(${(0,r.unref)(t).x}px,${(0,r.unref)(t).y}px) scale(${(0,r.unref)(t).zoom})`})},[(0,r.createElementVNode)("div",{ref_key:"el",ref:h,class:(0,r.normalizeClass)([{dragging:(0,r.unref)(g)},"vue-flow__nodesselection-rect"]),style:(0,r.normalizeStyle)(w.value),tabIndex:(0,r.unref)(a)?void 0:-1,onContextmenu:m,onKeydown:v},null,46,ip)],6)):(0,r.createCommentVNode)("",!0)}});function ap(e,A){return{x:e.clientX-A.left,y:e.clientY-A.top}}var lp=(0,r.defineComponent)({name:"Pane",compatConfig:{MODE:3},props:{isSelecting:{type:Boolean},selectionKeyPressed:{type:Boolean}},setup(e){const{vueFlowRef:A,nodes:t,viewport:n,emits:o,userSelectionActive:a,removeSelectedElements:u,userSelectionRect:d,elementsSelectable:h,nodesSelectionActive:g,getSelectedEdges:B,getSelectedNodes:w,removeNodes:m,removeEdges:v,selectionMode:y,deleteKeyCode:I,multiSelectionKeyCode:N,multiSelectionActive:D,edgeLookup:P,nodeLookup:H,connectionLookup:O,defaultEdgeOptions:sA,connectionStartHandle:J,panOnDrag:cA}=XA(),lA=(0,r.shallowRef)(null),oA=(0,r.shallowRef)(new Set),iA=(0,r.shallowRef)(new Set),AA=(0,r.shallowRef)(null),S=(0,r.toRef)(()=>h.value&&(e.isSelecting||a.value)),eA=(0,r.toRef)(()=>J.value!==null);let U=!1,K=!1;const b=Mn(I,{actInsideInputWithModifier:!1}),R=Mn(N);(0,r.watch)(b,nA=>{nA&&(m(w.value),v(B.value),g.value=!1)}),(0,r.watch)(R,nA=>{D.value=nA});function k(nA,W){return $=>{$.target===W&&nA?.($)}}function T(nA){if(U||eA.value){U=!1;return}o.paneClick(nA),u(),g.value=!1}function M(nA){var W;if(Array.isArray(cA.value)&&((W=cA.value)!=null&&W.includes(2))){nA.preventDefault();return}o.paneContextMenu(nA)}function Y(nA){o.paneScroll(nA)}function tA(nA){var W,$,uA;if(AA.value=((W=A.value)==null?void 0:W.getBoundingClientRect())??null,!h.value||!e.isSelecting||nA.button!==0||nA.target!==lA.value||!AA.value)return;(uA=($=nA.target)==null?void 0:$.setPointerCapture)==null||uA.call($,nA.pointerId);const{x:wA,y:HA}=ap(nA,AA.value);K=!0,U=!1,u(),d.value={width:0,height:0,startX:wA,startY:HA,x:wA,y:HA},o.selectionStart(nA)}function BA(nA){var W;if(!AA.value||!d.value)return;U=!0;const{x:$,y:uA}=$e(nA,AA.value),{startX:wA=0,startY:HA=0}=d.value,xA={startX:wA,startY:HA,x:$<wA?$:wA,y:uA<HA?uA:HA,width:Math.abs($-wA),height:Math.abs(uA-HA)},gA=oA.value,Z=iA.value;oA.value=new Set(Ha(t.value,xA,n.value,y.value===fi.Partial,!0).map(F=>F.id)),iA.value=new Set;const _=((W=sA.value)==null?void 0:W.selectable)??!0;for(const F of oA.value){const x=O.value.get(F);if(x)for(const{edgeId:z}of x.values()){const G=P.value.get(z);G&&(G.selectable??_)&&iA.value.add(z)}}if(!Za(gA,oA.value)){const F=pt(H.value,oA.value,!0);o.nodesChange(F)}if(!Za(Z,iA.value)){const F=pt(P.value,iA.value);o.edgesChange(F)}d.value=xA,a.value=!0,g.value=!1}function bA(nA){var W;nA.button!==0||!K||((W=nA.target)==null||W.releasePointerCapture(nA.pointerId),!a.value&&d.value&&nA.target===lA.value&&T(nA),a.value=!1,d.value=null,g.value=oA.value.size>0,o.selectionEnd(nA),e.selectionKeyPressed&&(U=!1),K=!1)}return(nA,W)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{ref_key:"container",ref:lA,class:(0,r.normalizeClass)(["vue-flow__pane vue-flow__container",{selection:nA.isSelecting}]),onClick:W[0]||(W[0]=$=>S.value?void 0:k(T,lA.value)($)),onContextmenu:W[1]||(W[1]=$=>k(M,lA.value)($)),onWheelPassive:W[2]||(W[2]=$=>k(Y,lA.value)($)),onPointerenter:W[3]||(W[3]=$=>S.value?void 0:(0,r.unref)(o).paneMouseEnter($)),onPointerdown:W[4]||(W[4]=$=>S.value?tA($):(0,r.unref)(o).paneMouseMove($)),onPointermove:W[5]||(W[5]=$=>S.value?BA($):(0,r.unref)(o).paneMouseMove($)),onPointerup:W[6]||(W[6]=$=>S.value?bA($):void 0),onPointerleave:W[7]||(W[7]=$=>(0,r.unref)(o).paneMouseLeave($))},[(0,r.renderSlot)(nA.$slots,"default"),(0,r.unref)(a)&&(0,r.unref)(d)?((0,r.openBlock)(),(0,r.createBlock)(op,{key:0,"user-selection-rect":(0,r.unref)(d)},null,8,["user-selection-rect"])):(0,r.createCommentVNode)("",!0),(0,r.unref)(g)&&(0,r.unref)(w).length?((0,r.openBlock)(),(0,r.createBlock)(sp,{key:1})):(0,r.createCommentVNode)("",!0)],34))}}),cp=(0,r.defineComponent)({name:"Transform",compatConfig:{MODE:3},setup(e){const{viewport:A,fitViewOnInit:t,fitViewOnInitDone:n}=XA(),o=(0,r.computed)(()=>t.value?!n.value:!1),a=(0,r.computed)(()=>`translate(${A.value.x}px,${A.value.y}px) scale(${A.value.zoom})`);return(u,d)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"vue-flow__transformationpane vue-flow__container",style:(0,r.normalizeStyle)({transform:a.value,opacity:o.value?0:void 0})},[(0,r.renderSlot)(u.$slots,"default")],4))}}),up=(0,r.defineComponent)({name:"Viewport",compatConfig:{MODE:3},setup(e){const{minZoom:A,maxZoom:t,defaultViewport:n,translateExtent:o,zoomActivationKeyCode:a,selectionKeyCode:u,panActivationKeyCode:d,panOnScroll:h,panOnScrollMode:g,panOnScrollSpeed:B,panOnDrag:w,zoomOnDoubleClick:m,zoomOnPinch:v,zoomOnScroll:y,preventScrolling:I,noWheelClassName:N,noPanClassName:D,emits:P,connectionStartHandle:H,userSelectionActive:O,paneDragging:sA,d3Zoom:J,d3Selection:cA,d3ZoomHandler:lA,viewport:oA,viewportRef:iA,paneClickDistance:AA}=XA();rp(iA);const S=(0,r.shallowRef)(!1),eA=(0,r.shallowRef)(!1);let U=null,K=!1,b=0,R={x:0,y:0,zoom:0};const k=Mn(d),T=Mn(u),M=Mn(a),Y=(0,r.toRef)(()=>(!T.value||T.value&&u.value===!0)&&(k.value||w.value)),tA=(0,r.toRef)(()=>k.value||h.value),BA=(0,r.toRef)(()=>u.value===!0&&Y.value!==!0),bA=(0,r.toRef)(()=>T.value&&u.value!==!0||O.value||BA.value),nA=(0,r.toRef)(()=>H.value!==null);(0,r.onMounted)(()=>{if(!iA.value){Pn("Viewport element is missing");return}const HA=iA.value,xA=HA.getBoundingClientRect(),gA=Oh().clickDistance(AA.value).scaleExtent([A.value,t.value]).translateExtent(o.value),Z=Te(HA).call(gA),_=Z.on("wheel.zoom"),F=qt.translate(n.value.x??0,n.value.y??0).scale(Tt(n.value.zoom??1,A.value,t.value)),x=[[0,0],[xA.width,xA.height]],z=gA.constrain()(F,x,o.value);gA.transform(Z,z),gA.wheelDelta(xa),J.value=gA,cA.value=Z,lA.value=_,oA.value={x:z.x,y:z.y,zoom:z.k},gA.on("start",G=>{var dA;if(!G.sourceEvent)return null;b=G.sourceEvent.button,S.value=!0;const fA=uA(G.transform);((dA=G.sourceEvent)==null?void 0:dA.type)==="mousedown"&&(sA.value=!0),R=fA,P.viewportChangeStart(fA),P.moveStart({event:G,flowTransform:fA})}),gA.on("end",G=>{if(!G.sourceEvent)return null;if(S.value=!1,sA.value=!1,W(Y.value,b??0)&&!K&&P.paneContextMenu(G.sourceEvent),K=!1,$(R,G.transform)){const dA=uA(G.transform);R=dA,P.viewportChangeEnd(dA),P.moveEnd({event:G,flowTransform:dA})}}),gA.filter(G=>{var dA;const fA=M.value||y.value,QA=v.value&&G.ctrlKey,EA=G.button,NA=G.type==="wheel";if(EA===1&&G.type==="mousedown"&&(wA(G,"vue-flow__node")||wA(G,"vue-flow__edge")))return!0;if(!Y.value&&!fA&&!tA.value&&!m.value&&!v.value||O.value||nA.value&&!NA||!m.value&&G.type==="dblclick"||wA(G,N.value)&&NA||wA(G,D.value)&&(!NA||tA.value&&NA&&!M.value)||!v.value&&G.ctrlKey&&NA||!fA&&!tA.value&&!QA&&NA)return!1;if(!v&&G.type==="touchstart"&&((dA=G.touches)==null?void 0:dA.length)>1)return G.preventDefault(),!1;if(!Y.value&&(G.type==="mousedown"||G.type==="touchstart")||BA.value&&Array.isArray(w.value)&&w.value.includes(0)&&EA===0||Array.isArray(w.value)&&!w.value.includes(EA)&&(G.type==="mousedown"||G.type==="touchstart"))return!1;const OA=Array.isArray(w.value)&&w.value.includes(EA)||u.value===!0&&Array.isArray(w.value)&&!w.value.includes(0)||!EA||EA<=1;return(!G.ctrlKey||k.value||NA)&&OA}),(0,r.watch)([O,Y],()=>{O.value&&!S.value?gA.on("zoom",null):O.value||gA.on("zoom",G=>{oA.value={x:G.transform.x,y:G.transform.y,zoom:G.transform.k};const dA=uA(G.transform);K=W(Y.value,b??0),P.viewportChange(dA),P.move({event:G,flowTransform:dA})})},{immediate:!0}),(0,r.watch)([O,tA,g,M,v,I,N],()=>{tA.value&&!M.value&&!O.value?Z.on("wheel.zoom",G=>{if(wA(G,N.value))return!1;const dA=M.value||y.value,fA=v.value&&G.ctrlKey;if(!(!I.value||tA.value||dA||fA))return!1;G.preventDefault(),G.stopImmediatePropagation();const QA=Z.property("__zoom").k||1,EA=Lr();if(!k.value&&G.ctrlKey&&v.value&&EA){const qA=Pe(G),it=QA*2**xa(G);gA.scaleTo(Z,it,qA,G);return}const NA=G.deltaMode===1?20:1;let OA=g.value===kn.Vertical?0:G.deltaX*NA,KA=g.value===kn.Horizontal?0:G.deltaY*NA;!EA&&G.shiftKey&&g.value!==kn.Vertical&&!OA&&KA&&(OA=KA,KA=0),gA.translateBy(Z,-(OA/QA)*B.value,-(KA/QA)*B.value);const ee=uA(Z.property("__zoom"));U&&clearTimeout(U),eA.value?(P.move({event:G,flowTransform:ee}),P.viewportChange(ee),U=setTimeout(()=>{P.moveEnd({event:G,flowTransform:ee}),P.viewportChangeEnd(ee),eA.value=!1},150)):(eA.value=!0,P.moveStart({event:G,flowTransform:ee}),P.viewportChangeStart(ee))},{passive:!1}):typeof _<"u"&&Z.on("wheel.zoom",function(G,dA){const fA=!I.value&&G.type==="wheel"&&!G.ctrlKey,QA=M.value||y.value,EA=v.value&&G.ctrlKey;if(!QA&&!h.value&&!EA&&G.type==="wheel"||fA||wA(G,N.value))return null;G.preventDefault(),_.call(this,G,dA)},{passive:!1})},{immediate:!0})});function W(HA,xA){return xA===2&&Array.isArray(HA)&&HA.includes(2)}function $(HA,xA){return HA.x!==xA.x&&!Number.isNaN(xA.x)||HA.y!==xA.y&&!Number.isNaN(xA.y)||HA.zoom!==xA.k&&!Number.isNaN(xA.k)}function uA(HA){return{x:HA.x,y:HA.y,zoom:HA.k}}function wA(HA,xA){return HA.target.closest(`.${xA}`)}return(HA,xA)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{ref_key:"viewportRef",ref:iA,class:"vue-flow__viewport vue-flow__container"},[(0,r.createVNode)(lp,{"is-selecting":bA.value,"selection-key-pressed":(0,r.unref)(T),class:(0,r.normalizeClass)({connecting:nA.value,dragging:(0,r.unref)(sA),draggable:(0,r.unref)(w)===!0||Array.isArray((0,r.unref)(w))&&(0,r.unref)(w).includes(0)})},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(cp,null,{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(HA.$slots,"default")]),_:3})]),_:3},8,["is-selecting","selection-key-pressed","class"])],512))}}),dp=["id"],fp=["id"],gp=["id"],hp=(0,r.defineComponent)({name:"A11yDescriptions",compatConfig:{MODE:3},setup(e){const{id:A,disableKeyboardA11y:t,ariaLiveMessage:n}=XA();return(o,a)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createElementVNode)("div",{id:`${(0,r.unref)(ma)}-${(0,r.unref)(A)}`,style:{display:"none"}}," Press enter or space to select a node. "+(0,r.toDisplayString)((0,r.unref)(t)?"":"You can then use the arrow keys to move the node around.")+" You can then use the arrow keys to move the node around, press delete to remove it and press escape to cancel. ",9,dp),(0,r.createElementVNode)("div",{id:`${(0,r.unref)(wa)}-${(0,r.unref)(A)}`,style:{display:"none"}}," Press enter or space to select an edge. You can then press delete to remove it or press escape to cancel. ",8,fp),(0,r.unref)(t)?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,id:`${(0,r.unref)(zh)}-${(0,r.unref)(A)}`,"aria-live":"assertive","aria-atomic":"true",style:{position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)","clip-path":"inset(100%)"}},(0,r.toDisplayString)((0,r.unref)(n)),9,gp))],64))}});function Bp(){const e=XA();(0,r.watch)(()=>e.viewportHelper.value.viewportInitialized,A=>{A&&setTimeout(()=>{e.emits.init(e),e.emits.paneReady(e)},1)})}function pp(e,A,t){return t===IA.Left?e-A:t===IA.Right?e+A:e}function mp(e,A,t){return t===IA.Top?e-A:t===IA.Bottom?e+A:e}var bi=function({radius:e=10,centerX:A=0,centerY:t=0,position:n=IA.Top,type:o}){return(0,r.h)("circle",{class:`vue-flow__edgeupdater vue-flow__edgeupdater-${o}`,cx:pp(A,e,n),cy:mp(t,e,n),r:e,stroke:"transparent",fill:"transparent"})};bi.props=["radius","centerX","centerY","position","type"],bi.compatConfig={MODE:3};var gl=bi,wp=(0,r.defineComponent)({name:"Edge",compatConfig:{MODE:3},props:["id"],setup(e){const{id:A,addSelectedEdges:t,connectionMode:n,edgeUpdaterRadius:o,emits:a,nodesSelectionActive:u,noPanClassName:d,getEdgeTypes:h,removeSelectedEdges:g,findEdge:B,findNode:w,isValidConnection:m,multiSelectionActive:v,disableKeyboardA11y:y,elementsSelectable:I,edgesUpdatable:N,edgesFocusable:D,hooks:P}=XA(),H=(0,r.computed)(()=>B(e.id)),{emit:O,on:sA}=yB(H.value,a),J=(0,r.inject)(kr),cA=(0,r.getCurrentInstance)(),lA=(0,r.ref)(!1),oA=(0,r.ref)(!1),iA=(0,r.ref)(""),AA=(0,r.ref)(null),S=(0,r.ref)("source"),eA=(0,r.ref)(null),U=(0,r.toRef)(()=>typeof H.value.selectable>"u"?I.value:H.value.selectable),K=(0,r.toRef)(()=>typeof H.value.updatable>"u"?N.value:H.value.updatable),b=(0,r.toRef)(()=>typeof H.value.focusable>"u"?D.value:H.value.focusable);(0,r.provide)(wB,e.id),(0,r.provide)(CB,eA);const R=(0,r.computed)(()=>H.value.class instanceof Function?H.value.class(H.value):H.value.class),k=(0,r.computed)(()=>H.value.style instanceof Function?H.value.style(H.value):H.value.style),T=(0,r.computed)(()=>{const F=H.value.type||"default",x=J?.[`edge-${F}`];if(x)return x;let z=H.value.template??h.value[F];if(typeof z=="string"&&cA){const G=Object.keys(cA.appContext.components);G&&G.includes(F)&&(z=(0,r.resolveComponent)(F,!1))}return z&&typeof z!="string"?z:(a.error(new ce(ie.EDGE_TYPE_MISSING,z)),!1)}),{handlePointerDown:M}=tl({nodeId:iA,handleId:AA,type:S,isValidConnection:m,edgeUpdaterType:S,onEdgeUpdate:BA,onEdgeUpdateEnd:bA});return()=>{const F=w(H.value.source),x=w(H.value.target),z="pathOptions"in H.value?H.value.pathOptions:{};if(!F&&!x)return a.error(new ce(ie.EDGE_SOURCE_TARGET_MISSING,H.value.id,H.value.source,H.value.target)),null;if(!F)return a.error(new ce(ie.EDGE_SOURCE_MISSING,H.value.id,H.value.source)),null;if(!x)return a.error(new ce(ie.EDGE_TARGET_MISSING,H.value.id,H.value.target)),null;if(!H.value||H.value.hidden||F.hidden||x.hidden)return null;let G;n.value===nt.Strict?G=F.handleBounds.source:G=[...F.handleBounds.source||[],...F.handleBounds.target||[]];const dA=Va(G,H.value.sourceHandle);let fA;n.value===nt.Strict?fA=x.handleBounds.target:fA=[...x.handleBounds.target||[],...x.handleBounds.source||[]];const QA=Va(fA,H.value.targetHandle),EA=dA?.position||IA.Bottom,NA=QA?.position||IA.Top,{x:OA,y:KA}=tn(F,dA,EA),{x:ee,y:qA}=tn(x,QA,NA);return H.value.sourceX=OA,H.value.sourceY=KA,H.value.targetX=ee,H.value.targetY=qA,(0,r.h)("g",{ref:eA,key:e.id,"data-id":e.id,class:["vue-flow__edge",`vue-flow__edge-${T.value===!1?"default":H.value.type||"default"}`,d.value,R.value,{updating:lA.value,selected:H.value.selected,animated:H.value.animated,inactive:!U.value&&!P.value.edgeClick.hasListeners()}],tabIndex:b.value?0:void 0,"aria-label":H.value.ariaLabel===null?void 0:H.value.ariaLabel??`Edge from ${H.value.source} to ${H.value.target}`,"aria-describedby":b.value?`${wa}-${A}`:void 0,"aria-roledescription":"edge",role:b.value?"group":"img",...H.value.domAttributes,onClick:W,onContextmenu:$,onDblclick:uA,onMouseenter:wA,onMousemove:HA,onMouseleave:xA,onKeyDown:b.value?_:void 0},[oA.value?null:(0,r.h)(T.value===!1?h.value.default:T.value,{id:e.id,sourceNode:F,targetNode:x,source:H.value.source,target:H.value.target,type:H.value.type,updatable:K.value,selected:H.value.selected,animated:H.value.animated,label:H.value.label,labelStyle:H.value.labelStyle,labelShowBg:H.value.labelShowBg,labelBgStyle:H.value.labelBgStyle,labelBgPadding:H.value.labelBgPadding,labelBgBorderRadius:H.value.labelBgBorderRadius,data:H.value.data,events:{...H.value.events,...sA},style:k.value,markerStart:`url('#${Vn(H.value.markerStart,A)}')`,markerEnd:`url('#${Vn(H.value.markerEnd,A)}')`,sourcePosition:EA,targetPosition:NA,sourceX:OA,sourceY:KA,targetX:ee,targetY:qA,sourceHandleId:H.value.sourceHandle,targetHandleId:H.value.targetHandle,interactionWidth:H.value.interactionWidth,...z}),[K.value==="source"||K.value===!0?[(0,r.h)("g",{onMousedown:gA,onMouseenter:Y,onMouseout:tA},(0,r.h)(gl,{position:EA,centerX:OA,centerY:KA,radius:o.value,type:"source","data-type":"source"}))]:null,K.value==="target"||K.value===!0?[(0,r.h)("g",{onMousedown:Z,onMouseenter:Y,onMouseout:tA},(0,r.h)(gl,{position:NA,centerX:ee,centerY:qA,radius:o.value,type:"target","data-type":"target"}))]:null]])};function Y(){lA.value=!0}function tA(){lA.value=!1}function BA(F,x){O.update({event:F,edge:H.value,connection:x})}function bA(F){O.updateEnd({event:F,edge:H.value}),oA.value=!1}function nA(F,x){F.button===0&&(oA.value=!0,iA.value=x?H.value.target:H.value.source,AA.value=(x?H.value.targetHandle:H.value.sourceHandle)??null,S.value=x?"target":"source",O.updateStart({event:F,edge:H.value}),M(F))}function W(F){var x;const z={event:F,edge:H.value};U.value&&(u.value=!1,H.value.selected&&v.value?(g([H.value]),(x=eA.value)==null||x.blur()):t([H.value])),O.click(z)}function $(F){O.contextMenu({event:F,edge:H.value})}function uA(F){O.doubleClick({event:F,edge:H.value})}function wA(F){O.mouseEnter({event:F,edge:H.value})}function HA(F){O.mouseMove({event:F,edge:H.value})}function xA(F){O.mouseLeave({event:F,edge:H.value})}function gA(F){nA(F,!0)}function Z(F){nA(F,!1)}function _(F){var x;!y.value&&Ca.includes(F.key)&&U.value&&(F.key==="Escape"?((x=eA.value)==null||x.blur(),g([B(e.id)])):t([B(e.id)]))}}}),Cp=(0,r.defineComponent)({name:"ConnectionLine",compatConfig:{MODE:3},setup(){var e;const{id:A,connectionMode:t,connectionStartHandle:n,connectionEndHandle:o,connectionPosition:a,connectionLineType:u,connectionLineStyle:d,connectionLineOptions:h,connectionStatus:g,viewport:B,findNode:w}=XA(),m=(e=(0,r.inject)(kr))==null?void 0:e["connection-line"],v=(0,r.computed)(()=>{var P;return w((P=n.value)==null?void 0:P.nodeId)}),y=(0,r.computed)(()=>{var P;return w((P=o.value)==null?void 0:P.nodeId)??null}),I=(0,r.computed)(()=>({x:(a.value.x-B.value.x)/B.value.zoom,y:(a.value.y-B.value.y)/B.value.zoom})),N=(0,r.computed)(()=>h.value.markerStart?`url(#${Vn(h.value.markerStart,A)})`:""),D=(0,r.computed)(()=>h.value.markerEnd?`url(#${Vn(h.value.markerEnd,A)})`:"");return()=>{var P,H,O;if(!v.value||!n.value)return null;const sA=n.value.id,J=n.value.type,cA=v.value.handleBounds;let lA=cA?.[J]??[];if(t.value===nt.Loose){const k=cA?.[J==="source"?"target":"source"]??[];lA=[...lA,...k]}if(!lA)return null;const oA=(sA?lA.find(k=>k.id===sA):lA[0])??null,iA=oA?.position??IA.Top,{x:AA,y:S}=tn(v.value,oA,iA);let eA=null;y.value&&(t.value===nt.Strict?eA=((P=y.value.handleBounds[J==="source"?"target":"source"])==null?void 0:P.find(k=>{var T;return k.id===((T=o.value)==null?void 0:T.id)}))||null:eA=((H=[...y.value.handleBounds.source??[],...y.value.handleBounds.target??[]])==null?void 0:H.find(k=>{var T;return k.id===((T=o.value)==null?void 0:T.id)}))||null);const U=((O=o.value)==null?void 0:O.position)??(iA?Ci[iA]:null);if(!iA||!U)return null;const K=u.value??h.value.type??Lt.Bezier;let b="";const R={sourceX:AA,sourceY:S,sourcePosition:iA,targetX:I.value.x,targetY:I.value.y,targetPosition:U};return K===Lt.Bezier?[b]=Fi(R):K===Lt.Step?[b]=Ui({...R,borderRadius:0}):K===Lt.SmoothStep?[b]=Ui(R):K===Lt.SimpleBezier?[b]=cl(R):b=`M${AA},${S} ${I.value.x},${I.value.y}`,(0,r.h)("svg",{class:"vue-flow__edges vue-flow__connectionline vue-flow__container"},(0,r.h)("g",{class:"vue-flow__connection"},m?(0,r.h)(m,{sourceX:AA,sourceY:S,sourcePosition:iA,targetX:I.value.x,targetY:I.value.y,targetPosition:U,sourceNode:v.value,sourceHandle:oA,targetNode:y.value,targetHandle:eA,markerEnd:D.value,markerStart:N.value,connectionStatus:g.value}):(0,r.h)("path",{d:b,class:[h.value.class,g.value,"vue-flow__connection-path"],style:{...d.value,...h.value.style},"marker-end":D.value,"marker-start":N.value})))}}}),vp=["id","markerWidth","markerHeight","markerUnits","orient"],yp=(0,r.defineComponent)({name:"MarkerType",compatConfig:{MODE:3},props:{id:{},type:{},color:{default:"none"},width:{default:12.5},height:{default:12.5},markerUnits:{default:"strokeWidth"},orient:{default:"auto-start-reverse"},strokeWidth:{default:1}},setup(e){return(A,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("marker",{id:A.id,class:"vue-flow__arrowhead",viewBox:"-10 -10 20 20",refX:"0",refY:"0",markerWidth:`${A.width}`,markerHeight:`${A.height}`,markerUnits:A.markerUnits,orient:A.orient},[A.type===(0,r.unref)(rt).ArrowClosed?((0,r.openBlock)(),(0,r.createElementBlock)("polyline",{key:0,style:(0,r.normalizeStyle)({stroke:A.color,fill:A.color,strokeWidth:A.strokeWidth}),"stroke-linecap":"round","stroke-linejoin":"round",points:"-5,-4 0,0 -5,4 -5,-4"},null,4)):(0,r.createCommentVNode)("",!0),A.type===(0,r.unref)(rt).Arrow?((0,r.openBlock)(),(0,r.createElementBlock)("polyline",{key:1,style:(0,r.normalizeStyle)({stroke:A.color,strokeWidth:A.strokeWidth}),"stroke-linecap":"round","stroke-linejoin":"round",fill:"none",points:"-5,-4 0,0 -5,4"},null,4)):(0,r.createCommentVNode)("",!0)],8,vp))}}),Qp={class:"vue-flow__marker vue-flow__container","aria-hidden":"true"},Ep=(0,r.defineComponent)({name:"MarkerDefinitions",compatConfig:{MODE:3},setup(e){const{id:A,edges:t,connectionLineOptions:n,defaultMarkerColor:o}=XA(),a=(0,r.computed)(()=>{const u=new Set,d=[],h=g=>{if(g){const B=Vn(g,A);u.has(B)||(typeof g=="object"?d.push({...g,id:B,color:g.color||o.value}):d.push({id:B,color:o.value,type:g}),u.add(B))}};for(const g of[n.value.markerEnd,n.value.markerStart])h(g);for(const g of t.value)for(const B of[g.markerStart,g.markerEnd])h(B);return d.sort((g,B)=>g.id.localeCompare(B.id))});return(u,d)=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",Qp,[(0,r.createElementVNode)("defs",null,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(a.value,h=>((0,r.openBlock)(),(0,r.createBlock)(yp,{id:h.id,key:h.id,type:h.type,color:h.color,width:h.width,height:h.height,markerUnits:h.markerUnits,"stroke-width":h.strokeWidth,orient:h.orient},null,8,["id","type","color","width","height","markerUnits","stroke-width","orient"]))),128))])]))}}),Fp=(0,r.defineComponent)({name:"Edges",compatConfig:{MODE:3},setup(e){const{findNode:A,getEdges:t,elevateEdgesOnSelect:n}=XA();return(o,a)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(Ep),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)((0,r.unref)(t),u=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",{key:u.id,class:"vue-flow__edges vue-flow__container",style:(0,r.normalizeStyle)({zIndex:(0,r.unref)(sB)(u,(0,r.unref)(A),(0,r.unref)(n))})},[(0,r.createVNode)((0,r.unref)(wp),{id:u.id},null,8,["id"])],4))),128)),(0,r.createVNode)((0,r.unref)(Cp))],64))}}),Up=(0,r.defineComponent)({name:"Node",compatConfig:{MODE:3},props:["id","resizeObserver"],setup(e){const{id:A,noPanClassName:t,selectNodesOnDrag:n,nodesSelectionActive:o,multiSelectionActive:a,emits:u,removeSelectedNodes:d,addSelectedNodes:h,updateNodeDimensions:g,onUpdateNodeInternals:B,getNodeTypes:w,nodeExtent:m,elevateNodesOnSelect:v,disableKeyboardA11y:y,ariaLiveMessage:I,snapToGrid:N,snapGrid:D,nodeDragThreshold:P,nodesDraggable:H,elementsSelectable:O,nodesConnectable:sA,nodesFocusable:J,hooks:cA}=XA(),lA=(0,r.ref)(null);(0,r.provide)(Al,lA),(0,r.provide)(qa,e.id);const oA=(0,r.inject)(kr),iA=(0,r.getCurrentInstance)(),AA=rl(),{node:S,parentNode:eA}=nl(e.id),{emit:U,on:K}=UB(S,u),b=(0,r.toRef)(()=>typeof S.draggable>"u"?H.value:S.draggable),R=(0,r.toRef)(()=>typeof S.selectable>"u"?O.value:S.selectable),k=(0,r.toRef)(()=>typeof S.connectable>"u"?sA.value:S.connectable),T=(0,r.toRef)(()=>typeof S.focusable>"u"?J.value:S.focusable),M=(0,r.computed)(()=>R.value||b.value||cA.value.nodeClick.hasListeners()||cA.value.nodeDoubleClick.hasListeners()||cA.value.nodeMouseEnter.hasListeners()||cA.value.nodeMouseMove.hasListeners()||cA.value.nodeMouseLeave.hasListeners()),Y=(0,r.toRef)(()=>!!S.dimensions.width&&!!S.dimensions.height),tA=(0,r.computed)(()=>{const x=S.type||"default",z=oA?.[`node-${x}`];if(z)return z;let G=S.template||w.value[x];if(typeof G=="string"&&iA){const dA=Object.keys(iA.appContext.components);dA&&dA.includes(x)&&(G=(0,r.resolveComponent)(x,!1))}return G&&typeof G!="string"?G:(u.error(new ce(ie.NODE_TYPE_MISSING,G)),!1)}),BA=el({id:e.id,el:lA,disabled:()=>!b.value,selectable:R,dragHandle:()=>S.dragHandle,onStart(x){U.dragStart(x)},onDrag(x){U.drag(x)},onStop(x){U.dragStop(x)},onClick(x){_(x)}}),bA=(0,r.computed)(()=>S.class instanceof Function?S.class(S):S.class),nA=(0,r.computed)(()=>{const x=(S.style instanceof Function?S.style(S):S.style)||{},z=S.width instanceof Function?S.width(S):S.width,G=S.height instanceof Function?S.height(S):S.height;return!x.width&&z&&(x.width=typeof z=="string"?z:`${z}px`),!x.height&&G&&(x.height=typeof G=="string"?G:`${G}px`),x}),W=(0,r.toRef)(()=>Number(S.zIndex??nA.value.zIndex??0));return B(x=>{(x.includes(e.id)||!x.length)&&uA()}),(0,r.onMounted)(()=>{(0,r.watch)(()=>S.hidden,(x=!1,z,G)=>{!x&&lA.value&&(e.resizeObserver.observe(lA.value),G(()=>{lA.value&&e.resizeObserver.unobserve(lA.value)}))},{immediate:!0,flush:"post"})}),(0,r.watch)([()=>S.type,()=>S.sourcePosition,()=>S.targetPosition],()=>{(0,r.nextTick)(()=>{g([{id:e.id,nodeElement:lA.value,forceUpdate:!0}])})}),(0,r.watch)([()=>S.position.x,()=>S.position.y,()=>{var x;return(x=eA.value)==null?void 0:x.computedPosition.x},()=>{var x;return(x=eA.value)==null?void 0:x.computedPosition.y},()=>{var x;return(x=eA.value)==null?void 0:x.computedPosition.z},W,()=>S.selected,()=>S.dimensions.height,()=>S.dimensions.width,()=>{var x;return(x=eA.value)==null?void 0:x.dimensions.height},()=>{var x;return(x=eA.value)==null?void 0:x.dimensions.width}],([x,z,G,dA,fA,QA])=>{const EA={x,y:z,z:QA+(v.value&&S.selected?1e3:0)};typeof G<"u"&&typeof dA<"u"?S.computedPosition=eB({x:G,y:dA,z:fA},EA):S.computedPosition=EA},{flush:"post",immediate:!0}),(0,r.watch)([()=>S.extent,m],([x,z],[G,dA])=>{(x!==G||z!==dA)&&$()}),S.extent==="parent"||typeof S.extent=="object"&&"range"in S.extent&&S.extent.range==="parent"?Xo(()=>Y).toBe(!0).then($):$(),()=>S.hidden?null:(0,r.h)("div",{ref:lA,"data-id":S.id,class:["vue-flow__node",`vue-flow__node-${tA.value===!1?"default":S.type||"default"}`,{[t.value]:b.value,dragging:BA?.value,draggable:b.value,selected:S.selected,selectable:R.value,parent:S.isParent},bA.value],style:{visibility:Y.value?"visible":"hidden",zIndex:S.computedPosition.z??W.value,transform:`translate(${S.computedPosition.x}px,${S.computedPosition.y}px)`,pointerEvents:M.value?"all":"none",...nA.value},tabIndex:T.value?0:void 0,role:T.value?"group":void 0,"aria-describedby":y.value?void 0:`${ma}-${A}`,"aria-label":S.ariaLabel,"aria-roledescription":"node",...S.domAttributes,onMouseenter:wA,onMousemove:HA,onMouseleave:xA,onContextmenu:gA,onClick:_,onDblclick:Z,onKeydown:F},[(0,r.h)(tA.value===!1?w.value.default:tA.value,{id:S.id,type:S.type,data:S.data,events:{...S.events,...K},selected:S.selected,resizing:S.resizing,dragging:BA.value,connectable:k.value,position:S.computedPosition,dimensions:S.dimensions,isValidTargetPos:S.isValidTargetPos,isValidSourcePos:S.isValidSourcePos,parent:S.parentNode,parentNodeId:S.parentNode,zIndex:S.computedPosition.z??W.value,targetPosition:S.targetPosition,sourcePosition:S.sourcePosition,label:S.label,dragHandle:S.dragHandle,onUpdateNodeInternals:uA})]);function $(){const x=S.computedPosition,{computedPosition:z,position:G}=pi(S,N.value?Tr(x,D.value):x,u.error,m.value,eA.value);(S.computedPosition.x!==z.x||S.computedPosition.y!==z.y)&&(S.computedPosition={...S.computedPosition,...z}),(S.position.x!==G.x||S.position.y!==G.y)&&(S.position=G)}function uA(){lA.value&&g([{id:e.id,nodeElement:lA.value,forceUpdate:!0}])}function wA(x){BA?.value||U.mouseEnter({event:x,node:S})}function HA(x){BA?.value||U.mouseMove({event:x,node:S})}function xA(x){BA?.value||U.mouseLeave({event:x,node:S})}function gA(x){return U.contextMenu({event:x,node:S})}function Z(x){return U.doubleClick({event:x,node:S})}function _(x){R.value&&(!n.value||!b.value||P.value>0)&&vi(S,a.value,h,d,o,!1,lA.value),U.click({event:x,node:S})}function F(x){if(!(gi(x)||y.value))if(Ca.includes(x.key)&&R.value){const z=x.key==="Escape";vi(S,a.value,h,d,o,z,lA.value)}else b.value&&S.selected&&An[x.key]&&(x.preventDefault(),I.value=`Moved selected node ${x.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~S.position.x}, y: ${~~S.position.y}`,AA({x:An[x.key].x,y:An[x.key].y},x.shiftKey))}}}),bp={height:"0",width:"0"},Hp=(0,r.defineComponent)({name:"EdgeLabelRenderer",compatConfig:{MODE:3},setup(e){const{viewportRef:A}=XA(),t=(0,r.toRef)(()=>{var n;return(n=A.value)==null?void 0:n.getElementsByClassName("vue-flow__edge-labels")[0]});return(n,o)=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",null,[((0,r.openBlock)(),(0,r.createElementBlock)("foreignObject",bp,[((0,r.openBlock)(),(0,r.createBlock)(r.Teleport,{to:t.value,disabled:!t.value},[(0,r.renderSlot)(n.$slots,"default")],8,["to","disabled"]))]))]))}});function Ip(e={includeHiddenNodes:!1}){const{nodes:A}=XA();return(0,r.computed)(()=>{if(A.value.length===0)return!1;for(const t of A.value)if((e.includeHiddenNodes||!t.hidden)&&(t?.handleBounds===void 0||t.dimensions.width===0||t.dimensions.height===0))return!1;return!0})}var _p={class:"vue-flow__nodes vue-flow__container"},Sp=(0,r.defineComponent)({name:"Nodes",compatConfig:{MODE:3},setup(e){const{getNodes:A,updateNodeDimensions:t,emits:n}=XA(),o=Ip(),a=(0,r.ref)();return(0,r.watch)(o,u=>{u&&(0,r.nextTick)(()=>{n.nodesInitialized(A.value)})},{immediate:!0}),(0,r.onMounted)(()=>{a.value=new ResizeObserver(u=>{const d=u.map(h=>({id:h.target.getAttribute("data-id"),nodeElement:h.target,forceUpdate:!0}));(0,r.nextTick)(()=>t(d))})}),(0,r.onBeforeUnmount)(()=>{var u;return(u=a.value)==null?void 0:u.disconnect()}),(u,d)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",_p,[a.value?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:0},(0,r.renderList)((0,r.unref)(A),(h,g,B,w)=>{const m=[h.id];if(w&&w.key===h.id&&(0,r.isMemoSame)(w,m))return w;const v=((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Up),{id:h.id,key:h.id,"resize-observer":a.value},null,8,["id","resize-observer"]));return v.memo=m,v},d,0),128)):(0,r.createCommentVNode)("",!0)]))}});function xp(){const{emits:e}=XA();(0,r.onMounted)(()=>{if($a()){const A=document.querySelector(".vue-flow__pane");A&&window.getComputedStyle(A).zIndex!=="1"&&e.error(new ce(ie.MISSING_STYLES))}})}var Dp=(0,r.createElementVNode)("div",{class:"vue-flow__edge-labels"},null,-1),Np=(0,r.defineComponent)({name:"VueFlow",compatConfig:{MODE:3},props:{id:{},modelValue:{},nodes:{},edges:{},edgeTypes:{},nodeTypes:{},connectionMode:{},connectionLineType:{},connectionLineStyle:{default:void 0},connectionLineOptions:{default:void 0},connectionRadius:{},isValidConnection:{type:[Function,null],default:void 0},deleteKeyCode:{default:void 0},selectionKeyCode:{type:[Boolean,null],default:void 0},multiSelectionKeyCode:{default:void 0},zoomActivationKeyCode:{default:void 0},panActivationKeyCode:{default:void 0},snapToGrid:{type:Boolean,default:void 0},snapGrid:{},onlyRenderVisibleElements:{type:Boolean,default:void 0},edgesUpdatable:{type:[Boolean,String],default:void 0},nodesDraggable:{type:Boolean,default:void 0},nodesConnectable:{type:Boolean,default:void 0},nodeDragThreshold:{},elementsSelectable:{type:Boolean,default:void 0},selectNodesOnDrag:{type:Boolean,default:void 0},panOnDrag:{type:[Boolean,Array],default:void 0},minZoom:{},maxZoom:{},defaultViewport:{},translateExtent:{},nodeExtent:{},defaultMarkerColor:{},zoomOnScroll:{type:Boolean,default:void 0},zoomOnPinch:{type:Boolean,default:void 0},panOnScroll:{type:Boolean,default:void 0},panOnScrollSpeed:{},panOnScrollMode:{},paneClickDistance:{},zoomOnDoubleClick:{type:Boolean,default:void 0},preventScrolling:{type:Boolean,default:void 0},selectionMode:{},edgeUpdaterRadius:{},fitViewOnInit:{type:Boolean,default:void 0},connectOnClick:{type:Boolean,default:void 0},applyDefault:{type:Boolean,default:void 0},autoConnect:{type:[Boolean,Function],default:void 0},noDragClassName:{},noWheelClassName:{},noPanClassName:{},defaultEdgeOptions:{},elevateEdgesOnSelect:{type:Boolean,default:void 0},elevateNodesOnSelect:{type:Boolean,default:void 0},disableKeyboardA11y:{type:Boolean,default:void 0},edgesFocusable:{type:Boolean,default:void 0},nodesFocusable:{type:Boolean,default:void 0},autoPanOnConnect:{type:Boolean,default:void 0},autoPanOnNodeDrag:{type:Boolean,default:void 0},autoPanSpeed:{}},emits:["nodesChange","edgesChange","nodesInitialized","paneReady","init","updateNodeInternals","error","connect","connectStart","connectEnd","clickConnectStart","clickConnectEnd","moveStart","move","moveEnd","selectionDragStart","selectionDrag","selectionDragStop","selectionContextMenu","selectionStart","selectionEnd","viewportChangeStart","viewportChange","viewportChangeEnd","paneScroll","paneClick","paneContextMenu","paneMouseEnter","paneMouseMove","paneMouseLeave","edgeUpdate","edgeContextMenu","edgeMouseEnter","edgeMouseMove","edgeMouseLeave","edgeDoubleClick","edgeClick","edgeUpdateStart","edgeUpdateEnd","nodeContextMenu","nodeMouseEnter","nodeMouseMove","nodeMouseLeave","nodeDoubleClick","nodeClick","nodeDragStart","nodeDrag","nodeDragStop","miniMapNodeClick","miniMapNodeDoubleClick","miniMapNodeMouseEnter","miniMapNodeMouseMove","miniMapNodeMouseLeave","update:modelValue","update:nodes","update:edges"],setup(e,{expose:A,emit:t}){const n=e,o=(0,r.useSlots)(),a=$o(n,"modelValue",t),u=$o(n,"nodes",t),d=$o(n,"edges",t),h=XA(n),g=_B({modelValue:a,nodes:u,edges:d},n,h);return xB(t,h.hooks),Bp(),xp(),(0,r.provide)(kr,o),(0,r.onUnmounted)(g),A(h),(B,w)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{ref:(0,r.unref)(h).vueFlowRef,class:"vue-flow"},[(0,r.createVNode)(up,null,{default:(0,r.withCtx)(()=>[(0,r.createVNode)(Fp),Dp,(0,r.createVNode)(Sp),(0,r.renderSlot)(B.$slots,"zoom-pane")]),_:3}),(0,r.renderSlot)(B.$slots,"default"),(0,r.createVNode)(hp)],512))}}),Lp=(0,r.defineComponent)({name:"Panel",compatConfig:{MODE:3},props:{position:{}},setup(e){const A=e,{userSelectionActive:t}=XA(),n=(0,r.computed)(()=>`${A.position}`.split("-"));return(o,a)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["vue-flow__panel",n.value]),style:(0,r.normalizeStyle)({pointerEvents:(0,r.unref)(t)?"none":"all"})},[(0,r.renderSlot)(o.$slots,"default")],6))}}),ot=(e=>(e.Lines="lines",e.Dots="dots",e))(ot||{}),Tp=function({dimensions:e,size:A,color:t}){return(0,r.h)("path",{stroke:t,"stroke-width":A,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`})},kp=function({radius:e,color:A}){return(0,r.h)("circle",{cx:e,cy:e,r:e,fill:A})};ot.Lines,ot.Dots;var Mp={[ot.Dots]:"#81818a",[ot.Lines]:"#eee"},Op=["id","x","y","width","height","patternTransform"],Kp={key:2,height:"100",width:"100"},Rp=["fill"],Vp=["x","y","fill"],Pp=(0,r.defineComponent)({name:"Background",compatConfig:{MODE:3},props:{id:{},variant:{default:()=>ot.Dots},gap:{default:20},size:{default:1},lineWidth:{default:1},patternColor:{},color:{},bgColor:{},height:{default:100},width:{default:100},x:{default:0},y:{default:0},offset:{default:0}},setup(e){const{id:A,viewport:t}=XA(),n=(0,r.computed)(()=>{const u=t.value.zoom,[d,h]=Array.isArray(e.gap)?e.gap:[e.gap,e.gap],g=[d*u||1,h*u||1],B=e.size*u,[w,m]=Array.isArray(e.offset)?e.offset:[e.offset,e.offset];return{scaledGap:g,offset:[w*u||1+g[0]/2,m*u||1+g[1]/2],size:B}}),o=(0,r.toRef)(()=>`pattern-${A}${e.id?`-${e.id}`:""}`),a=(0,r.toRef)(()=>e.color||e.patternColor||Mp[e.variant||ot.Dots]);return(u,d)=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",{class:"vue-flow__background vue-flow__container",style:(0,r.normalizeStyle)({height:`${u.height>100?100:u.height}%`,width:`${u.width>100?100:u.width}%`})},[(0,r.renderSlot)(u.$slots,"pattern-container",{id:o.value},()=>[(0,r.createElementVNode)("pattern",{id:o.value,x:(0,r.unref)(t).x%n.value.scaledGap[0],y:(0,r.unref)(t).y%n.value.scaledGap[1],width:n.value.scaledGap[0],height:n.value.scaledGap[1],patternTransform:`translate(-${n.value.offset[0]},-${n.value.offset[1]})`,patternUnits:"userSpaceOnUse"},[(0,r.renderSlot)(u.$slots,"pattern",{},()=>[u.variant===(0,r.unref)(ot).Lines?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Tp),{key:0,size:u.lineWidth,color:a.value,dimensions:n.value.scaledGap},null,8,["size","color","dimensions"])):u.variant===(0,r.unref)(ot).Dots?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(kp),{key:1,color:a.value,radius:n.value.size/2},null,8,["color","radius"])):(0,r.createCommentVNode)("",!0),u.bgColor?((0,r.openBlock)(),(0,r.createElementBlock)("svg",Kp,[(0,r.createElementVNode)("rect",{width:"100%",height:"100%",fill:u.bgColor},null,8,Rp)])):(0,r.createCommentVNode)("",!0)])],8,Op)]),(0,r.createElementVNode)("rect",{x:u.x,y:u.y,width:"100%",height:"100%",fill:`url(#${o.value})`},null,8,Vp),(0,r.renderSlot)(u.$slots,"default",{id:o.value})],4))}}),Gp={name:"ControlButton",compatConfig:{MODE:3}},zp=(e,A)=>{const t=e.__vccOpts||e;for(const[n,o]of A)t[n]=o;return t},Xp={type:"button",class:"vue-flow__controls-button"};function $p(e,A,t,n,o,a){return(0,r.openBlock)(),(0,r.createElementBlock)("button",Xp,[(0,r.renderSlot)(e.$slots,"default")])}var Gr=zp(Gp,[["render",$p]]),Yp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},Wp=[(0,r.createElementVNode)("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"},null,-1)];function Jp(e,A){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",Yp,Wp)}var Zp={render:Jp},jp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5"},qp=[(0,r.createElementVNode)("path",{d:"M0 0h32v4.2H0z"},null,-1)];function Am(e,A){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",jp,qp)}var em={render:Am},tm={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30"},nm=[(0,r.createElementVNode)("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0 0 27.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94a.919.919 0 0 1-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"},null,-1)];function rm(e,A){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",tm,nm)}var om={render:rm},im={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},sm=[(0,r.createElementVNode)("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"},null,-1)];function am(e,A){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",im,sm)}var lm={render:am},cm={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},um=[(0,r.createElementVNode)("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047z"},null,-1)];function dm(e,A){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",cm,um)}var fm={render:dm},gm=(0,r.defineComponent)({name:"Controls",compatConfig:{MODE:3},props:{showZoom:{type:Boolean,default:!0},showFitView:{type:Boolean,default:!0},showInteractive:{type:Boolean,default:!0},fitViewParams:{},position:{default:()=>Ba.BottomLeft}},emits:["zoomIn","zoomOut","fitView","interactionChange"],setup(e,{emit:A}){const{nodesDraggable:t,nodesConnectable:n,elementsSelectable:o,setInteractive:a,zoomIn:u,zoomOut:d,fitView:h,viewport:g,minZoom:B,maxZoom:w}=XA(),m=(0,r.toRef)(()=>t.value||n.value||o.value),v=(0,r.toRef)(()=>g.value.zoom<=B.value),y=(0,r.toRef)(()=>g.value.zoom>=w.value);function I(){u(),A("zoomIn")}function N(){d(),A("zoomOut")}function D(){h(e.fitViewParams),A("fitView")}function P(){a(!m.value),A("interactionChange",!m.value)}return(H,O)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Lp),{class:"vue-flow__controls",position:H.position},{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(H.$slots,"top"),H.showZoom?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.renderSlot)(H.$slots,"control-zoom-in",{},()=>[(0,r.createVNode)(Gr,{class:"vue-flow__controls-zoomin",disabled:y.value,onClick:I},{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(H.$slots,"icon-zoom-in",{},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(Zp))))])]),_:3},8,["disabled"])]),(0,r.renderSlot)(H.$slots,"control-zoom-out",{},()=>[(0,r.createVNode)(Gr,{class:"vue-flow__controls-zoomout",disabled:v.value,onClick:N},{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(H.$slots,"icon-zoom-out",{},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(em))))])]),_:3},8,["disabled"])])],64)):(0,r.createCommentVNode)("",!0),H.showFitView?(0,r.renderSlot)(H.$slots,"control-fit-view",{key:1},()=>[(0,r.createVNode)(Gr,{class:"vue-flow__controls-fitview",onClick:D},{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(H.$slots,"icon-fit-view",{},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(om))))])]),_:3})]):(0,r.createCommentVNode)("",!0),H.showInteractive?(0,r.renderSlot)(H.$slots,"control-interactive",{key:2},()=>[H.showInteractive?((0,r.openBlock)(),(0,r.createBlock)(Gr,{key:0,class:"vue-flow__controls-interactive",onClick:P},{default:(0,r.withCtx)(()=>[m.value?(0,r.renderSlot)(H.$slots,"icon-unlock",{key:0},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(fm))))]):(0,r.createCommentVNode)("",!0),m.value?(0,r.createCommentVNode)("",!0):(0,r.renderSlot)(H.$slots,"icon-lock",{key:1},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(lm))))])]),_:3})):(0,r.createCommentVNode)("",!0)]):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(H.$slots,"default")]),_:3},8,["position"]))}}),hm=["onClick"],Bm={class:"d-flow-node-menus-item-name"},pm=(0,r.defineComponent)({name:"DNodeMenus",__name:"nodeMenus",props:{fromNodeId:{},handleId:{}},emits:["addNode"],setup(e,{emit:A}){const t=e,n=A,o=(0,r.inject)("d_flow_design_provide",{}),a=o.getFlowComponents?.()||[],u=d=>{n("addNode",d.type),(0,r.nextTick)(()=>{t.handleId==="line"?o.addNodeByLine?.(d.type,t.fromNodeId||""):o.addNode?.(d.type,t.fromNodeId||"",t.handleId||"")})};return(d,h)=>{const g=(0,r.resolveComponent)("j-icon");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"d-flow-node-menus",onClick:(0,r.withModifiers)(()=>{},["stop"])},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)((0,r.unref)(a),(B,w)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:w,class:"d-flow-node-menus-item",onClick:m=>u(B)},[(0,r.createElementVNode)("div",{class:"d-flow-node-menus-item-icon",style:(0,r.normalizeStyle)({backgroundColor:B.iconColor||"var(--j-color-primary)"})},[(0,r.createVNode)(g,{icon:B.icon||"mdi:source-branch"},null,8,["icon"])],4),(0,r.createElementVNode)("div",Bm,(0,r.toDisplayString)(B.name),1)],8,hm))),128))])}}}),Hi=pm,mm={class:"d-flow-step-name"},wm={key:0,style:{color:"var(--j-color-text-2)"}},Cm={style:{color:"var(--j-color-text)"}},vm=(0,r.defineComponent)({name:"DStepNode",__name:"stepNode",props:{id:{},data:{}},setup(e){const A=e,{onNodeClick:t,onEdgeClick:n,onMoveStart:o,onConnectStart:a,onNodeDragStart:u,removeNodes:d,getEdges:h,getNodes:g,onNodesChange:B}=XA(),w=(0,r.inject)("d_flow_design_provide",{}),m=(0,r.computed)(()=>w.getFlowComponentMap?.value?.[A.data.type]||{}),v=()=>{d(A.id),w.onRemoveNode?.(A.id)},y=(0,r.ref)({});B(eA=>{if(A.data.isInit&&eA.findIndex(U=>U.type==="select"&&U.id===A.id&&U.id==="start"&&U.selected)!==-1){const U=g.value.find(K=>K.id==="start");U&&(U.data.isInit=!1),y.value.s1=!0}});const I=(0,r.ref)(!1),N=eA=>{eA.indexOf("t")!==-1&&!D.value||(I.value=!0,y.value[eA]=!0)},D=(0,r.computed)(()=>h.value.findIndex(eA=>eA.target===A.id)===-1),P=(0,r.ref)(!1),H=()=>{P.value=!0},O=(eA,U)=>{if(h.value.find(b=>b.source===U&&b.target===eA))return!0;const K=h.value.filter(b=>b.target===eA);for(let b=0;b<K.length;b++)if(O(K[b].source,U))return!0;return!1},sA=eA=>P.value?(P.value=!1,!1):O(eA.source,eA.target)?!1:eA.source!==eA.target&&eA.sourceHandle!==eA.targetHandle&&eA.sourceHandle.indexOf("s")!==-1&&eA.targetHandle.indexOf("t")!==-1,J=()=>{AA(),Object.keys(y.value).forEach(eA=>{y.value[eA]=!1})},cA=()=>{J()};t(()=>{console.log("onNodeClick"),I.value?I.value=!1:J()}),n(()=>{J()}),o(()=>{J()}),a(()=>{J()}),u(()=>{J()});const lA=(0,r.ref)(),oA=(0,r.ref)({top:0,left:0,bottom:0,right:0}),iA=(0,r.ref)({getBoundingClientRect:()=>oA.value}),AA=()=>{lA.value?.handleClose()},S=eA=>{const{clientX:U,clientY:K}=eA;oA.value=DOMRect.fromRect({x:U,y:K}),eA.preventDefault(),lA.value?.handleOpen()};return(eA,U)=>{const K=(0,r.resolveComponent)("j-icon"),b=(0,r.resolveComponent)("el-popover"),R=(0,r.resolveComponent)("el-tooltip"),k=(0,r.resolveComponent)("el-dropdown-item"),T=(0,r.resolveComponent)("el-dropdown-menu"),M=(0,r.resolveComponent)("el-dropdown");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"d-flow-step",onContextmenu:(0,r.withModifiers)(S,["stop"])},[(0,r.createElementVNode)("div",{class:"d-flow-step-icon",style:(0,r.normalizeStyle)({backgroundColor:m.value.iconColor||"var(--j-color-primary)"})},[(0,r.createVNode)(K,{icon:m.value.icon||"mdi:source-branch"},null,8,["icon"])],4),(0,r.createElementVNode)("div",mm,(0,r.toDisplayString)(m.value.name),1),e.data.type!=="start"?((0,r.openBlock)(),(0,r.createBlock)(R,{key:0,placement:"top","show-arrow":!1,"popper-class":"d-flow-step-tooltip"},{content:(0,r.withCtx)(()=>[D.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",wm,[...U[4]||(U[4]=[(0,r.createElementVNode)("span",{style:{color:"var(--j-color-text)","font-weight":"bold"}},"点击",-1),(0,r.createTextVNode)("添加节点 ",-1)])])):(0,r.createCommentVNode)("",!0),U[5]||(U[5]=(0,r.createElementVNode)("div",{style:{color:"var(--j-color-text-2)"}},[(0,r.createElementVNode)("span",{style:{color:"var(--j-color-text)","font-weight":"bold"}},"拖拽"),(0,r.createTextVNode)("连接节点 ")],-1))]),default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(nn),{onClick:U[1]||(U[1]=Y=>N("t1")),onMousedown:H,id:"t1",class:(0,r.normalizeClass)(["d-flow-step-target-handle",{"d-flow-step-target-handle-notadd":!D.value}]),type:"target",position:(0,r.unref)(IA).Left,"is-valid-connection":sA},{default:(0,r.withCtx)(()=>[D.value?((0,r.openBlock)(),(0,r.createBlock)(b,{key:0,visible:y.value.t1,"onUpdate:visible":U[0]||(U[0]=Y=>y.value.t1=Y),placement:"left","popper-class":"d-flow-step-popper",trigger:"click","show-arrow":!1,"popper-options":{strategy:"fixed"}},{reference:(0,r.withCtx)(()=>[(0,r.createVNode)(K,{class:"d-flow-step-handle-plus",icon:"mdi:plus-circle"})]),default:(0,r.withCtx)(()=>[(0,r.createVNode)(Hi,{"handle-id":"t1","from-node-id":e.id,onAddNode:cA},null,8,["from-node-id"])]),_:1},8,["visible"])):(0,r.createCommentVNode)("",!0)]),_:1},8,["class","position"])]),_:1})):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(R,{placement:"top","show-arrow":!1,"popper-class":"d-flow-step-tooltip"},{content:(0,r.withCtx)(()=>[...U[6]||(U[6]=[(0,r.createElementVNode)("div",{style:{color:"var(--j-color-text-2)"}},[(0,r.createElementVNode)("span",{style:{color:"var(--j-color-text)","font-weight":"bold"}},"点击"),(0,r.createTextVNode)("添加节点 ")],-1),(0,r.createElementVNode)("div",{style:{color:"var(--j-color-text-2)"}},[(0,r.createElementVNode)("span",{style:{color:"var(--j-color-text)","font-weight":"bold"}},"拖拽"),(0,r.createTextVNode)("连接节点 ")],-1)])]),default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(nn),{onClick:U[3]||(U[3]=Y=>N("s1")),onMousedown:H,id:"s1",class:"d-flow-step-source-handle",type:"source",position:(0,r.unref)(IA).Right,"is-valid-connection":sA},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(b,{visible:y.value.s1,"onUpdate:visible":U[2]||(U[2]=Y=>y.value.s1=Y),placement:"right",trigger:"click","popper-class":"d-flow-step-popper","show-arrow":!1,"popper-options":{strategy:"fixed"}},{reference:(0,r.withCtx)(()=>[(0,r.createVNode)(K,{class:"d-flow-step-handle-plus",icon:"mdi:plus-circle"})]),default:(0,r.withCtx)(()=>[(0,r.createVNode)(Hi,{"handle-id":"s1","from-node-id":e.id,onAddNode:cA},null,8,["from-node-id"])]),_:1},8,["visible"])]),_:1},8,["position"])]),_:1}),(0,r.createVNode)(M,{ref_key:"dropdownRef",ref:lA,"popper-class":"d-flow-step-dropdown","virtual-ref":iA.value,"show-arrow":!1,"popper-options":{modifiers:[{name:"offset",options:{offset:[0,0]}}]},"virtual-triggering":"",trigger:"contextmenu",placement:"bottom-start"},{dropdown:(0,r.withCtx)(()=>[(0,r.createVNode)(T,null,{default:(0,r.withCtx)(()=>[e.data.type!="start"?((0,r.openBlock)(),(0,r.createBlock)(k,{key:0,onClick:v},{default:(0,r.withCtx)(()=>[...U[7]||(U[7]=[(0,r.createTextVNode)("删除",-1)])]),_:1})):(0,r.createCommentVNode)("",!0),m.value.des?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:1,style:(0,r.normalizeStyle)({width:"160px",padding:"4px 16px 0 16px","font-size":"12px","border-top":e.data.type!="start"?"1px solid var(--j-color-border)":void 0,"margin-top":e.data.type!="start"?"4px":void 0})},[U[8]||(U[8]=(0,r.createElementVNode)("div",{style:{"margin-bottom":"4px",color:"var(--j-color-text-2)"}},"关于",-1)),(0,r.createElementVNode)("div",Cm,(0,r.toDisplayString)(m.value.des),1)],4)):(0,r.createCommentVNode)("",!0)]),_:1})]),_:1},8,["virtual-ref"])],32)}}}),ym=vm,Qm=(0,r.defineComponent)({name:"DEdgeWithButton",__name:"edgeWithButton",props:{id:{},sourceX:{},sourceY:{},targetX:{},targetY:{},sourcePosition:{},targetPosition:{},markerEnd:{},style:{}},setup(e){const A=e,{onEdgeMouseEnter:t,onEdgeMouseLeave:n,onNodeClick:o,onEdgeClick:a,onMoveStart:u,onConnectStart:d,onNodeDragStart:h}=XA(),g=(0,r.computed)(()=>Fi(A)),B=(0,r.ref)(!1),w=(0,r.ref)(!1);t(({edge:N})=>{N.id===A.id&&(B.value=!0)}),n(()=>{B.value=!1});const m=(0,r.ref)(!1),v=()=>{m.value=!1,(0,r.nextTick)(()=>{w.value=!1})},y=()=>{w.value=!0,m.value=!0},I=()=>{v()};return o(()=>{v()}),a(()=>{v()}),u(()=>{v()}),d(()=>{v()}),h(()=>{v()}),(N,D)=>{const P=(0,r.resolveComponent)("j-icon"),H=(0,r.resolveComponent)("el-popover");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)((0,r.unref)(Gn),{id:e.id,style:(0,r.normalizeStyle)(e.style),path:g.value[0],"marker-end":e.markerEnd},null,8,["id","style","path","marker-end"]),(0,r.createVNode)((0,r.unref)(Hp),null,{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({pointerEvents:"all",position:"absolute",transform:`translate(-50%, -50%) translate(${g.value[1]}px,${g.value[2]}px)`}),class:"nodrag nopan"},[(0,r.createVNode)(H,{visible:m.value,"show-arrow":!1,placement:"right","popper-class":"d-flow-step-popper"},{reference:(0,r.withCtx)(()=>[(0,r.withDirectives)((0,r.createElementVNode)("div",{onClick:(0,r.withModifiers)(y,["stop"]),class:"d-flow-edge-button"},[(0,r.createVNode)(P,{icon:"mdi:plus-circle"})],512),[[r.vShow,B.value||w.value]])]),default:(0,r.withCtx)(()=>[(0,r.createVNode)(Hi,{"handle-id":"line","from-node-id":e.id,onAddNode:I},null,8,["from-node-id"])]),_:1},8,["visible"])],4)]),_:1})],64)}}}),Em=Qm,Fm=(0,r.defineComponent)({name:"DFlow",__name:"flow",props:{nodes:{default:()=>[]},edges:{default:()=>[]}},setup(e){return(A,t)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Np),{"min-zoom":.2,"max-zoom":4,"default-viewport":{zoom:1},"connection-mode":(0,r.unref)(nt).Strict,nodes:e.nodes,edges:e.edges},{"edge-button":(0,r.withCtx)(n=>[(0,r.createVNode)(Em,{id:n.id,"source-x":n.sourceX,"source-y":n.sourceY,"target-x":n.targetX,"target-y":n.targetY,"source-position":n.sourcePosition,"target-position":n.targetPosition,"marker-end":n.markerEnd,style:(0,r.normalizeStyle)(n.style)},null,8,["id","source-x","source-y","target-x","target-y","source-position","target-position","marker-end","style"])]),"node-step":(0,r.withCtx)(n=>[(0,r.createVNode)(ym,(0,r.normalizeProps)((0,r.guardReactiveProps)(n)),null,16)]),default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(gm),{position:"bottom-left"}),(0,r.createVNode)((0,r.unref)(Pp))]),_:1},8,["connection-mode","nodes","edges"]))}}),Um=Fm,bm={class:"d-flow-design"},Hm={class:"d-flow-design-canvas"},Im={class:"d-flow-design-right"},_m={class:"d-flow-design-title"},Sm={class:"d-flow-design-title-name"},xm={class:"d-flow-design-panel"},Dm=(0,r.defineComponent)({name:"DFlowDesign",__name:"flowDesign",props:{components:{default:()=>[]},inputParams:{default:()=>({})},flowInit:{},flowComponentConfigInit:{},flowComponentConfigs:{default:()=>({})},flowComponentConfigChange:{}},emits:["nodeClick","edgeClick","paneClick","connect"],setup(e,{expose:A,emit:t}){const n=e,o=t,{addNodes:a,addEdges:u,removeEdges:d,addSelectedNodes:h,removeSelectedNodes:g,onConnect:B,onNodeClick:w,onPaneClick:m,onEdgeClick:v,getNodes:y,getEdges:I}=XA(),N=(0,r.computed)(()=>{const T={};return n.components.forEach(M=>{T[M.type]=M}),T.start={name:"开始",type:"start",icon:"ant-design:play-circle-outlined",des:"执行开始节点"},T}),D={id:"start",type:"step",data:{type:"start",isInit:!1},position:{x:80,y:160}},P=(0,r.ref)([D]),H=(0,r.ref)([]),O=(T,M)=>{if(M.indexOf("t")===-1){const Y=I.value.filter(tA=>tA.source===T.id);if(Y.length>0){let tA=-1e6,BA=0;return Y.forEach(bA=>{tA=Math.max(tA,bA.targetNode.position.y+bA.targetNode.dimensions.height+32),BA=bA.targetNode.position.x||0}),{x:BA,y:tA}}return{x:T.position.x+T.dimensions.width+100,y:T.position.y}}return{x:T.position.x-100-T.dimensions.width,y:T.position.y}},sA=(T,M,Y)=>{const tA=y.value.find(bA=>bA.id===M);if(!tA)return;const BA={id:gt(),type:"step",data:{type:T},position:O(tA,Y)};if(n.flowInit){const bA=n.flowInit(BA.data.type);bA&&Object.keys(bA).forEach(nA=>{BA.data[nA]=bA[nA]})}a(BA),Y.indexOf("t")===-1?u({id:`${M}-${BA.id}`,source:M,target:BA.id,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:rt.Arrow}):u({id:`${M}-${BA.id}`,source:BA.id,target:M,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:rt.Arrow}),S(BA.id)},J=T=>{const M=y.value.find(Y=>Y.id===T);M&&(M.position.x+=100+M.dimensions.width,I.value.filter(Y=>Y.source===T).forEach(Y=>{J(Y.target)}))},cA=(T,M)=>{const Y=I.value.find(BA=>BA.id===M);if(!Y)return;const tA={id:gt(),type:"step",data:{type:T},position:{x:Y.targetNode.position.x,y:Y.targetNode.position.y}};if(n.flowInit){const BA=n.flowInit(tA.data.type);BA&&Object.keys(BA).forEach(bA=>{tA.data[bA]=BA[bA]})}a(tA),u({id:`${Y.sourceNode.id}-${tA.id}`,source:Y.sourceNode.id,target:tA.id,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:rt.Arrow}),u({id:`${tA.id}-${Y.targetNode.id}`,source:tA.id,target:Y.targetNode.id,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:rt.Arrow}),d(M),J(Y.target),S(tA.id)};B(T=>{console.log("onConnect",T),T.type="button",T.markerEnd=rt.Arrow,u(T),o("connect",T)});const lA=()=>n.components||[],oA=(0,r.ref)(),iA=(0,r.computed)(()=>oA.value?N.value[oA.value.data.type]:void 0);w(T=>{oA.value?.id!==T.node.id&&(oA.value=T.node,K()),o("nodeClick",T.node)}),m(()=>{oA.value=void 0,o("paneClick")}),v(T=>{oA.value=void 0,o("edgeClick",T.edge)});const AA=T=>{oA.value?.id===T&&(oA.value=void 0)},S=T=>{oA.value&&g([oA.value]),oA.value=y.value.find(M=>M.id===T),oA.value&&(K(),setTimeout(()=>{oA.value&&h([oA.value])},100))},eA=(0,r.ref)(),U={};Object.keys(n.flowComponentConfigs).forEach(T=>{const M={type:"j-collapse",config:{defaultValue:[]},children:[]};n.flowComponentConfigs[T].forEach((Y,tA)=>{const BA=`_collapse${tA}`;M.config?.defaultValue.push(BA),M.children?.push(Y)}),U[T]=[M]});const K=()=>{const T=U[oA.value?.data.type||""];T&&eA.value?(eA.value.init&&eA.value.init(T,oA.value?.data),n.flowComponentConfigInit&&n.flowComponentConfigInit({configRef:eA,inputParams:n.inputParams,components:y.value,configData:oA.value?.data})):eA.value&&eA.value.init&&eA.value.init([])},b=(T,M)=>{oA.value&&n.flowComponentConfigChange&&n.flowComponentConfigChange(oA.value.data.type,{configRef:eA,component:T,configData:oA.value.data,...M,isFlowNode:!0})};return(0,r.provide)("d_flow_design_provide",{getFlowComponents:lA,addNode:sA,addNodeByLine:cA,onRemoveNode:AA,getFlowComponentMap:N}),A({getData:()=>{const T=[];return y.value.forEach(M=>{T.push({config:M.data,id:M.id,position:M.position,type:M.type})}),I.value.forEach(M=>{T.push({id:M.id,source:M.source,target:M.target,sourceHandle:M.sourceHandle,targetHandle:M.targetHandle,type:"line",config:{},position:{x:0,y:0}})}),T},setData:T=>{if(!T||T.length===0)D.data.isInit=!0,P.value=[D],S(D.id);else{D.data.isInit=!1;const M=[],Y=[];T.forEach(tA=>{if(tA.type==="line")tA.type="button",tA.markerEnd=rt.Arrow,Y.push(tA);else{const BA={id:tA.id,type:tA.type,data:tA.config,position:tA.position};M.push(BA)}}),P.value=M,H.value=Y}}}),(T,M)=>{const Y=(0,r.resolveComponent)("j-icon"),tA=(0,r.resolveComponent)("j-form");return(0,r.openBlock)(),(0,r.createElementBlock)("div",bm,[(0,r.createElementVNode)("div",Hm,[(0,r.createVNode)(Um,{nodes:P.value,edges:H.value},null,8,["nodes","edges"])]),(0,r.withDirectives)((0,r.createElementVNode)("div",Im,[(0,r.createElementVNode)("div",_m,[(0,r.createElementVNode)("div",{class:"d-flow-design-title-icon",style:(0,r.normalizeStyle)({backgroundColor:iA.value?.iconColor||"var(--j-color-primary)"})},[(0,r.createVNode)(Y,{icon:iA.value?.icon||"mdi:source-branch"},null,8,["icon"])],4),(0,r.createElementVNode)("div",Sm,(0,r.toDisplayString)(iA.value?.name||""),1)]),(0,r.createElementVNode)("div",xm,[(0,r.createVNode)(tA,{config:{labelPosition:"top"},style:{padding:"0"},ref_key:"configRef",ref:eA,onChange:b},null,512)])],512),[[r.vShow,oA.value&&U[oA.value.data.type]]])])}}}),Nm=Dm,hl=ft(Nm),Lm={class:"d-input-flow j-block"},Tm=(0,r.defineComponent)({name:"DInputFlow",__name:"inputFlow",props:{modelValue:{},type:{},btnText:{default:"事件"},title:{},size:{default:"default"},width:{default:1200},height:{default:800},beforeClose:{},flowComponents:{default:()=>[]},inputParams:{default:()=>({})},flowInit:{},flowComponentConfigInit:{},flowComponentConfigs:{default:()=>({})},flowComponentConfigChange:{}},emits:["update:modelValue","change"],setup(e,{emit:A}){const t=e,n=A,o=(0,r.ref)(),a=(0,r.computed)({get(){return t.modelValue},set(w){n("update:modelValue",w)}}),u=(0,r.computed)(()=>(t.modelValue?.trim(),t.btnText)),d=w=>{const m=typeof w=="string"?w:void 0;try{o.value?.setData(JSON.parse(m||"[]"))}catch{o.value?.setData([])}},h=async()=>{const w=o.value?.getData();return w?JSON.stringify(w):void 0},g=w=>{if(t.beforeClose){const m=typeof w=="string"?w:void 0;return t.beforeClose(m)}return!0},B=w=>{const m=w.value;n("change",{value:typeof m=="string"?m:void 0})};return(w,m)=>{const v=(0,r.resolveComponent)("d-flow-design"),y=(0,r.resolveComponent)("j-input-button");return(0,r.openBlock)(),(0,r.createBlock)(y,(0,r.mergeProps)(w.$attrs,{type:e.type,"btn-text":u.value,title:e.title,size:e.size,width:e.width,height:e.height,"before-close":g,ok:h,open:d,"destroy-on-close":"",modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=I=>a.value=I),onChange:B}),{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",Lm,[(0,r.createVNode)(v,{ref_key:"flowRef",ref:o,components:e.flowComponents,"flow-init":e.flowInit,"flow-component-config-init":e.flowComponentConfigInit,"flow-component-configs":e.flowComponentConfigs,"flow-component-config-change":e.flowComponentConfigChange,"input-params":e.inputParams},null,8,["components","flow-init","flow-component-config-init","flow-component-configs","flow-component-config-change","input-params"])])]),_:1},16,["type","btn-text","title","size","width","height","modelValue"])}}}),km=Tm,Bl=ft(km),q=class Le{static getElements(A,t=document){if(typeof A=="string"){const n="getElementById"in t?t:void 0;if(n&&!isNaN(+A[0])){const a=n.getElementById(A);return a?[a]:[]}let o=t.querySelectorAll(A);if(!o.length&&A[0]!=="."&&A[0]!=="#"&&(o=t.querySelectorAll("."+A),o.length||(o=t.querySelectorAll("#"+A)),!o.length)){const a=t.querySelector(`[gs-id="${A}"]`);return a?[a]:[]}return Array.from(o)}return[A]}static getElement(A,t=document){if(typeof A=="string"){const n="getElementById"in t?t:void 0;if(!A.length)return null;if(n&&A[0]==="#")return n.getElementById(A.substring(1));if(A[0]==="#"||A[0]==="."||A[0]==="[")return t.querySelector(A);if(n&&!isNaN(+A[0]))return n.getElementById(A);let o=t.querySelector(A);return n&&!o&&(o=n.getElementById(A)),o||(o=t.querySelector("."+A)),o}return A}static lazyLoad(A){return A.lazyLoad||A.grid?.opts?.lazyLoad&&A.lazyLoad!==!1}static createDiv(A,t){const n=document.createElement("div");return A.forEach(o=>{o&&n.classList.add(o)}),t?.appendChild(n),n}static shouldSizeToContent(A,t=!1){return A?.grid&&(t?A.sizeToContent===!0||A.grid.opts.sizeToContent===!0&&A.sizeToContent===void 0:!!A.sizeToContent||A.grid.opts.sizeToContent&&A.sizeToContent!==!1)}static isIntercepted(A,t){return!(A.y>=t.y+t.h||A.y+A.h<=t.y||A.x+A.w<=t.x||A.x>=t.x+t.w)}static isTouching(A,t){return Le.isIntercepted(A,{x:t.x-.5,y:t.y-.5,w:t.w+1,h:t.h+1})}static areaIntercept(A,t){const n=A.x>t.x?A.x:t.x,o=A.x+A.w<t.x+t.w?A.x+A.w:t.x+t.w;if(o<=n)return 0;const a=A.y>t.y?A.y:t.y,u=A.y+A.h<t.y+t.h?A.y+A.h:t.y+t.h;return u<=a?0:(o-n)*(u-a)}static area(A){return A.w*A.h}static sort(A,t=1){return A.sort((o,a)=>{const u=t*((o.y??1e4)-(a.y??1e4));return u===0?t*((o.x??1e4)-(a.x??1e4)):u})}static find(A,t){return t?A.find(n=>n.id===t):void 0}static toBool(A){return typeof A=="boolean"?A:typeof A=="string"?(A=A.toLowerCase(),!(A===""||A==="no"||A==="false"||A==="0")):!!A}static toNumber(A){return A===null||A.length===0?void 0:Number(A)}static parseHeight(A){let t,n="px";if(typeof A=="string")if(A==="auto"||A==="")t=0;else{const o=A.match(/^(-[0-9]+\.[0-9]+|[0-9]*\.[0-9]+|-[0-9]+|[0-9]+)(px|em|rem|vh|vw|%|cm|mm)?$/);if(!o)throw new Error(`Invalid height val = ${A}`);n=o[2]||"px",t=parseFloat(o[1])}else t=A;return{h:t,unit:n}}static defaults(A,...t){return t.forEach(n=>{for(const o in n){if(!n.hasOwnProperty(o))return;A[o]===null||A[o]===void 0?A[o]=n[o]:typeof n[o]=="object"&&typeof A[o]=="object"&&Le.defaults(A[o],n[o])}}),A}static same(A,t){if(typeof A!="object")return A==t;if(typeof A!=typeof t||Object.keys(A).length!==Object.keys(t).length)return!1;for(const n in A)if(A[n]!==t[n])return!1;return!0}static copyPos(A,t,n=!1){return t.x!==void 0&&(A.x=t.x),t.y!==void 0&&(A.y=t.y),t.w!==void 0&&(A.w=t.w),t.h!==void 0&&(A.h=t.h),n&&(t.minW&&(A.minW=t.minW),t.minH&&(A.minH=t.minH),t.maxW&&(A.maxW=t.maxW),t.maxH&&(A.maxH=t.maxH)),A}static samePos(A,t){return A&&t&&A.x===t.x&&A.y===t.y&&(A.w||1)===(t.w||1)&&(A.h||1)===(t.h||1)}static sanitizeMinMax(A){A.minW||delete A.minW,A.minH||delete A.minH,A.maxW||delete A.maxW,A.maxH||delete A.maxH}static removeInternalAndSame(A,t){if(!(typeof A!="object"||typeof t!="object")&&!(Array.isArray(A)||Array.isArray(t)))for(let n in A){const o=A[n],a=t[n];n[0]==="_"||o===a?delete A[n]:o&&typeof o=="object"&&a!==void 0&&(Le.removeInternalAndSame(o,a),Object.keys(o).length||delete A[n])}}static removeInternalForSave(A,t=!0){for(let n in A)(n[0]==="_"||A[n]===null||A[n]===void 0)&&delete A[n];delete A.grid,t&&delete A.el,A.autoPosition||delete A.autoPosition,A.noResize||delete A.noResize,A.noMove||delete A.noMove,A.locked||delete A.locked,(A.w===1||A.w===A.minW)&&delete A.w,(A.h===1||A.h===A.minH)&&delete A.h}static throttle(A,t){let n=!1;return(...o)=>{n||(n=!0,setTimeout(()=>{A(...o),n=!1},t))}}static removePositioningStyles(A){const t=A.style;t.position&&t.removeProperty("position"),t.left&&t.removeProperty("left"),t.top&&t.removeProperty("top"),t.width&&t.removeProperty("width"),t.height&&t.removeProperty("height")}static getScrollElement(A){if(!A)return document.scrollingElement||document.documentElement;const t=getComputedStyle(A);return/(auto|scroll)/.test(t.overflow+t.overflowY)?A:Le.getScrollElement(A.parentElement)}static updateScrollPosition(A,t,n){const o=Le.getScrollElement(A);if(!o)return;const a=A.getBoundingClientRect(),u=o.getBoundingClientRect(),d=window.innerHeight||document.documentElement.clientHeight,h=a.bottom-Math.min(u.bottom,d),g=a.top-Math.max(u.top,0),B=o.scrollTop;g<0&&n<0?A.offsetHeight>u.height?o.scrollTop+=n:o.scrollTop+=Math.abs(g)>Math.abs(n)?n:g:h>0&&n>0&&(A.offsetHeight>u.height?o.scrollTop+=n:o.scrollTop+=h>n?n:h),t.top+=o.scrollTop-B}static updateScrollResize(A,t,n){const o=Le.getScrollElement(t),a=o.clientHeight,u=o===Le.getScrollElement()?0:o.getBoundingClientRect().top,d=A.clientY-u,h=d<n,g=d>a-n;h?o.scrollBy({behavior:"smooth",top:d-n}):g&&o.scrollBy({behavior:"smooth",top:n-(a-d)})}static clone(A){return A==null||typeof A!="object"?A:A instanceof Array?[...A]:{...A}}static cloneDeep(A){const t=["parentGrid","el","grid","subGrid","engine"],n=Le.clone(A);for(const o in n)n.hasOwnProperty(o)&&typeof n[o]=="object"&&o.substring(0,2)!=="__"&&!t.find(a=>a===o)&&(n[o]=Le.cloneDeep(A[o]));return n}static cloneNode(A){const t=A.cloneNode(!0);return t.removeAttribute("id"),t}static appendTo(A,t){let n;typeof t=="string"?n=Le.getElement(t):n=t,n&&n.appendChild(A)}static addElStyles(A,t){if(t instanceof Object)for(const n in t)t.hasOwnProperty(n)&&(Array.isArray(t[n])?t[n].forEach(o=>{A.style[n]=o}):A.style[n]=t[n])}static initEvent(A,t){const n={type:t.type},o={button:0,which:0,buttons:1,bubbles:!0,cancelable:!0,target:t.target?t.target:A.target};return["altKey","ctrlKey","metaKey","shiftKey"].forEach(a=>n[a]=A[a]),["pageX","pageY","clientX","clientY","screenX","screenY"].forEach(a=>n[a]=A[a]),{...n,...o}}static simulateMouseEvent(A,t,n){const o=A,a=new MouseEvent(t,{bubbles:!0,composed:!0,cancelable:!0,view:window,detail:1,screenX:A.screenX,screenY:A.screenY,clientX:A.clientX,clientY:A.clientY,ctrlKey:o.ctrlKey??!1,altKey:o.altKey??!1,shiftKey:o.shiftKey??!1,metaKey:o.metaKey??!1,button:0,relatedTarget:A.target});(n||A.target).dispatchEvent(a)}static getValuesFromTransformedElement(A){const t=document.createElement("div");Le.addElStyles(t,{opacity:"0",position:"fixed",top:"0px",left:"0px",width:"1px",height:"1px",zIndex:"-999999"}),A.appendChild(t);const n=t.getBoundingClientRect();return A.removeChild(t),t.remove(),{xScale:1/n.width,yScale:1/n.height,xOffset:n.left,yOffset:n.top}}static swap(A,t,n){if(!A)return;const o=A[t];A[t]=A[n],A[n]=o}static canBeRotated(A){return!(!A||A.w===A.h||A.locked||A.noResize||A.grid?.opts.disableResize||A.minW&&A.minW===A.maxW||A.minH&&A.minH===A.maxH)}},Ii=class Qn{constructor(A={}){this.addedNodes=[],this.removedNodes=[],this.defaultColumn=12,this.column=A.column||this.defaultColumn,this.column>this.defaultColumn&&(this.defaultColumn=this.column),this.maxRow=A.maxRow,this._float=A.float,this.nodes=A.nodes||[],this.onChange=A.onChange}batchUpdate(A=!0,t=!0){return!!this.batchMode===A?this:(this.batchMode=A,A?(this._prevFloat=this._float,this._float=!0,this.cleanNodes(),this.saveInitial()):(this._float=this._prevFloat,delete this._prevFloat,t&&this._packNodes(),this._notify()),this)}_useEntireRowArea(A,t){return(!this.float||this.batchMode&&!this._prevFloat)&&!this._hasLocked&&(!A._moving||A._skipDown||t.y<=A.y)}_fixCollisions(A,t=A,n,o={}){if(this.sortNodes(-1),n=n||this.collide(A,t),!n)return!1;if(A._moving&&!o.nested&&!this.float&&this.swap(A,n))return!0;let a=t;!this._loading&&this._useEntireRowArea(A,t)&&(a={x:0,w:this.column,y:t.y,h:t.h},n=this.collide(A,a,o.skip));let u=!1;const d={nested:!0,pack:!1};let h=0;for(;n=n||this.collide(A,a,o.skip);){if(h++>this.nodes.length*2)throw new Error("Infinite collide check");let g;if(n.locked||this._loading||A._moving&&!A._skipDown&&t.y>A.y&&!this.float&&(!this.collide(n,{...n,y:A.y},A)||!this.collide(n,{...n,y:t.y-n.h},A))){A._skipDown=A._skipDown||t.y>A.y;const B={...t,y:n.y+n.h,...d};g=this._loading&&q.samePos(A,B)?!0:this.moveNode(A,B),(n.locked||this._loading)&&g?q.copyPos(t,A):!n.locked&&g&&o.pack&&(this._packNodes(),t.y=n.y+n.h,q.copyPos(A,t)),u=u||g}else g=this.moveNode(n,{...n,y:t.y+t.h,skip:A,...d});if(!g)return u;n=void 0}return u}collide(A,t=A,n){const o=A._id,a=n?._id;return this.nodes.find(u=>u._id!==o&&u._id!==a&&q.isIntercepted(u,t))}collideAll(A,t=A,n){const o=A._id,a=n?._id;return this.nodes.filter(u=>u._id!==o&&u._id!==a&&q.isIntercepted(u,t))}directionCollideCoverage(A,t,n){if(!t.rect||!A._rect)return;const o=A._rect,a={...t.rect};a.y>o.y?(a.h+=a.y-o.y,a.y=o.y):a.h+=o.y-a.y,a.x>o.x?(a.w+=a.x-o.x,a.x=o.x):a.w+=o.x-a.x;let u,d=.5;for(let h of n){if(h.locked||!h._rect)break;const g=h._rect;let B=Number.MAX_VALUE,w=Number.MAX_VALUE;o.y<g.y?B=(a.y+a.h-g.y)/g.h:o.y+o.h>g.y+g.h&&(B=(g.y+g.h-a.y)/g.h),o.x<g.x?w=(a.x+a.w-g.x)/g.w:o.x+o.w>g.x+g.w&&(w=(g.x+g.w-a.x)/g.w);const m=Math.min(w,B);m>d&&(d=m,u=h)}return t.collide=u,u}cacheRects(A,t,n,o,a,u){return this.nodes.forEach(d=>d._rect={y:d.y*t+n,x:d.x*A+u,w:d.w*A-u-o,h:d.h*t-n-a}),this}swap(A,t){if(!t||t.locked||!A||A.locked)return!1;function n(){const a=t.x,u=t.y;return t.x=A.x,t.y=A.y,A.h!=t.h?(A.x=a,A.y=t.y+t.h):A.w!=t.w?(A.x=t.x+t.w,A.y=u):(A.x=a,A.y=u),A._dirty=t._dirty=!0,!0}let o;if(A.w===t.w&&A.h===t.h&&(A.x===t.x||A.y===t.y)&&(o=q.isTouching(A,t)))return n();if(o!==!1){if(A.w===t.w&&A.x===t.x&&(o||(o=q.isTouching(A,t)))){if(t.y<A.y){const a=A;A=t,t=a}return n()}if(o!==!1){if(A.h===t.h&&A.y===t.y&&(o||(o=q.isTouching(A,t)))){if(t.x<A.x){const a=A;A=t,t=a}return n()}return!1}}}isAreaEmpty(A,t,n,o){const a={x:A||0,y:t||0,w:n||1,h:o||1};return!this.collide(a)}compact(A="compact",t=!0){if(this.nodes.length===0)return this;t&&this.sortNodes();const n=this.batchMode;n||this.batchUpdate();const o=this._inColumnResize;o||(this._inColumnResize=!0);const a=this.nodes;return this.nodes=[],a.forEach((u,d,h)=>{let g;u.locked||(u.autoPosition=!0,A==="list"&&d&&(g=h[d-1])),this.addNode(u,!1,g)}),o||delete this._inColumnResize,n||this.batchUpdate(!1),this}set float(A){this._float!==A&&(this._float=A||!1,A||this._packNodes()._notify())}get float(){return this._float||!1}sortNodes(A=1){return this.nodes=q.sort(this.nodes,A),this}_packNodes(){return this.batchMode?this:(this.sortNodes(),this.float?this.nodes.forEach(A=>{if(A._updating||A._orig===void 0||A.y===A._orig.y)return;let t=A.y;for(;t>A._orig.y;)--t,this.collide(A,{x:A.x,y:t,w:A.w,h:A.h})||(A._dirty=!0,A.y=t)}):this.nodes.forEach((A,t)=>{if(!A.locked)for(;A.y>0;){const n=t===0?0:A.y-1;if(!(t===0||!this.collide(A,{x:A.x,y:n,w:A.w,h:A.h})))break;A._dirty=A.y!==n,A.y=n}}),this)}prepareNode(A,t){A._id=A._id??Qn._idSeq++;const n=A.id;if(n){let a=1;for(;this.nodes.find(u=>u.id===A.id&&u!==A);)A.id=n+"_"+a++}(A.x===void 0||A.y===void 0||A.x===null||A.y===null)&&(A.autoPosition=!0);const o={x:0,y:0,w:1,h:1};return q.defaults(A,o),A.autoPosition||delete A.autoPosition,A.noResize||delete A.noResize,A.noMove||delete A.noMove,q.sanitizeMinMax(A),typeof A.x=="string"&&(A.x=Number(A.x)),typeof A.y=="string"&&(A.y=Number(A.y)),typeof A.w=="string"&&(A.w=Number(A.w)),typeof A.h=="string"&&(A.h=Number(A.h)),isNaN(A.x)&&(A.x=o.x,A.autoPosition=!0),isNaN(A.y)&&(A.y=o.y,A.autoPosition=!0),isNaN(A.w)&&(A.w=o.w),isNaN(A.h)&&(A.h=o.h),this.nodeBoundFix(A,t),A}nodeBoundFix(A,t){const n=A._orig||q.copyPos({},A);if(A.maxW&&(A.w=Math.min(A.w||1,A.maxW)),A.maxH&&(A.h=Math.min(A.h||1,A.maxH)),A.minW&&(A.w=Math.max(A.w||1,A.minW)),A.minH&&(A.h=Math.max(A.h||1,A.minH)),(A.x||0)+(A.w||1)>this.column&&this.column<this.defaultColumn&&!this._inColumnResize&&!this.skipCacheUpdate&&A._id!=null&&this.findCacheLayout(A,this.defaultColumn)===-1){const o={...A};o.autoPosition||o.x===void 0?(delete o.x,delete o.y):o.x=Math.min(this.defaultColumn-1,o.x),o.w=Math.min(this.defaultColumn,o.w||1),this.cacheOneLayout(o,this.defaultColumn)}return A.w>this.column?A.w=this.column:A.w<1&&(A.w=1),this.maxRow&&A.h>this.maxRow?A.h=this.maxRow:A.h<1&&(A.h=1),A.x<0&&(A.x=0),A.y<0&&(A.y=0),A.x+A.w>this.column&&(t?A.w=this.column-A.x:A.x=this.column-A.w),this.maxRow&&A.y+A.h>this.maxRow&&(t?A.h=this.maxRow-A.y:A.y=this.maxRow-A.h),q.samePos(A,n)||(A._dirty=!0),this}getDirtyNodes(A){return A?this.nodes.filter(t=>t._dirty&&!q.samePos(t,t._orig)):this.nodes.filter(t=>t._dirty)}_notify(A){if(this.batchMode||!this.onChange)return this;const t=(A||[]).concat(this.getDirtyNodes());return this.onChange(t),this}cleanNodes(){return this.batchMode?this:(this.nodes.forEach(A=>{delete A._dirty,delete A._lastTried}),this)}saveInitial(){return this.nodes.forEach(A=>{A._orig=q.copyPos({},A),delete A._dirty}),this._hasLocked=this.nodes.some(A=>A.locked),this}restoreInitial(){return this.nodes.forEach(A=>{!A._orig||q.samePos(A,A._orig)||(q.copyPos(A,A._orig),A._dirty=!0)}),this._notify(),this}findEmptyPosition(A,t=this.nodes,n=this.column,o){const a=o?o.y*n+(o.x+o.w):0;let u=!1;for(let d=a;!u;++d){const h=d%n,g=Math.floor(d/n);if(h+A.w>n)continue;const B={x:h,y:g,w:A.w,h:A.h};t.find(w=>q.isIntercepted(B,w))||((A.x!==h||A.y!==g)&&(A._dirty=!0),A.x=h,A.y=g,delete A.autoPosition,u=!0)}return u}addNode(A,t=!1,n){const o=this.nodes.find(u=>u._id===A._id);if(o)return o;this._inColumnResize?this.nodeBoundFix(A):this.prepareNode(A),delete A._temporaryRemoved,delete A._removeDOM;let a;return A.autoPosition&&this.findEmptyPosition(A,this.nodes,this.column,n)&&(delete A.autoPosition,a=!0),this.nodes.push(A),t&&this.addedNodes.push(A),a||this._fixCollisions(A),this.batchMode||this._packNodes()._notify(),A}removeNode(A,t=!0,n=!1){return this.nodes.find(o=>o._id===A._id)?(n&&this.removedNodes.push(A),t&&(A._removeDOM=!0),this.nodes=this.nodes.filter(o=>o._id!==A._id),A._isAboutToRemove||this._packNodes(),this._notify([A]),this):this}removeAll(A=!0,t=!0){if(delete this._layouts,!this.nodes.length)return this;A&&this.nodes.forEach(o=>o._removeDOM=!0);const n=this.nodes;return this.removedNodes=t?n:[],this.nodes=[],this._notify(n)}moveNodeCheck(A,t){if(!this.changedPosConstrain(A,t))return!1;if(t.pack=!0,!this.maxRow)return this.moveNode(A,t);let n;const o=new Qn({column:this.column,float:this.float,nodes:this.nodes.map(u=>u._id===A._id?(n={...u},n):{...u})});if(!n)return!1;const a=o.moveNode(n,t)&&o.getRow()<=Math.max(this.getRow(),this.maxRow);if(!a&&!t.resizing&&t.collide){const u=t.collide.el.gridstackNode;if(this.swap(A,u))return this._notify(),!0}return a?(o.nodes.filter(u=>u._dirty).forEach(u=>{const d=this.nodes.find(h=>h._id===u._id);d&&(q.copyPos(d,u),d._dirty=!0)}),this._notify(),!0):!1}willItFit(A){if(delete A._willFitPos,!this.maxRow)return!0;const t=new Qn({column:this.column,float:this.float,nodes:this.nodes.map(o=>({...o}))}),n={...A};return this.cleanupNode(n),delete n.el,delete n._id,delete n.content,delete n.grid,t.addNode(n),t.getRow()<=this.maxRow?(A._willFitPos=q.copyPos({},n),!0):!1}changedPosConstrain(A,t){return t.w=t.w||A.w,t.h=t.h||A.h,A.x!==t.x||A.y!==t.y?!0:(A.maxW&&(t.w=Math.min(t.w,A.maxW)),A.maxH&&(t.h=Math.min(t.h,A.maxH)),A.minW&&(t.w=Math.max(t.w,A.minW)),A.minH&&(t.h=Math.max(t.h,A.minH)),A.w!==t.w||A.h!==t.h)}moveNode(A,t){if(!A||!t)return!1;let n;t.pack===void 0&&!this.batchMode&&(n=t.pack=!0),typeof t.x!="number"&&(t.x=A.x),typeof t.y!="number"&&(t.y=A.y),typeof t.w!="number"&&(t.w=A.w),typeof t.h!="number"&&(t.h=A.h);const o=A.w!==t.w||A.h!==t.h,a=q.copyPos({},A,!0);if(q.copyPos(a,t),this.nodeBoundFix(a,o),q.copyPos(t,a),!t.forceCollide&&q.samePos(A,t))return!1;const u=q.copyPos({},A),d=this.collideAll(A,a,t.skip);let h=!0;if(d.length){const g=A._moving&&!t.nested;let B=g?this.directionCollideCoverage(A,t,d):d[0];if(g&&B&&A.grid?.opts?.subGridDynamic&&!A.grid._isTemp){const w=q.areaIntercept(t.rect,B._rect),m=q.area(t.rect),v=q.area(B._rect);w/(m<v?m:v)>.8&&(B.grid.makeSubGrid(B.el,void 0,A),B=void 0)}B?h=!this._fixCollisions(A,a,B,t):(h=!1,n&&delete t.pack)}return h&&!q.samePos(A,a)&&(A._dirty=!0,q.copyPos(A,a)),t.pack&&this._packNodes()._notify(),!q.samePos(A,u)}getRow(){return this.nodes.reduce((A,t)=>Math.max(A,t.y+t.h),0)}beginUpdate(A){return A._updating||(A._updating=!0,delete A._skipDown,this.batchMode||this.saveInitial()),this}endUpdate(){const A=this.nodes.find(t=>t._updating);return A&&(delete A._updating,delete A._skipDown),this}save(A=!0,t,n){const o=this._layouts?.length||0;let a;o&&(n?n!==this.column&&(a=this._layouts[n]):this.column!==o-1&&(a=this._layouts[o-1]));const u=[];return this.sortNodes(),this.nodes.forEach(d=>{const h=a?.find(B=>B._id===d._id),g={...d,...h||{}};q.removeInternalForSave(g,!A),t&&t(d,g),u.push(g)}),u}layoutsNodesChange(A){return!this._layouts||this._inColumnResize?this:(this._layouts.forEach((t,n)=>{if(!t||n===this.column)return this;if(n<this.column)this._layouts[n]=void 0;else{const o=n/this.column;A.forEach(a=>{if(!a._orig)return;const u=t.find(d=>d._id===a._id);u&&(u.y>=0&&a.y!==a._orig.y&&(u.y+=a.y-a._orig.y,u.y<0&&(u.y=0)),a.x!==a._orig.x&&(u.x=Math.round(a.x*o),u.x<0&&(u.x=0)),a.w!==a._orig.w&&(u.w=Math.round(a.w*o),u.w<1&&(u.w=1)))})}}),this)}columnChanged(A,t,n="moveScale"){if(!this.nodes.length||!t||A===t)return this;const o=n==="compact"||n==="list";o&&this.sortNodes(1),t<A&&this.cacheLayout(this.nodes,A),this.batchUpdate();let a=[],u=o?this.nodes:q.sort(this.nodes,-1);if(t>A&&this._layouts){const d=this._layouts[t]||[],h=this._layouts.length-1;!d.length&&A!==h&&this._layouts[h]?.length&&(A=h,this._layouts[h].forEach(g=>{const B=u.find(w=>w._id===g._id);B&&(!o&&!g.autoPosition&&(B.x=g.x??B.x,B.y=g.y??B.y),B.w=g.w??B.w,(g.x==null||g.y===void 0)&&(B.autoPosition=!0))})),d.forEach(g=>{const B=u.findIndex(w=>w._id===g._id);if(B!==-1){const w=u[B];if(o){w.w=g.w;return}(g.autoPosition||isNaN(g.x)||isNaN(g.y))&&this.findEmptyPosition(g,a),g.autoPosition||(w.x=g.x??w.x,w.y=g.y??w.y,w.w=g.w??w.w,a.push(w)),u.splice(B,1)}})}if(o)this.compact(n,!1);else{if(u.length)if(typeof n=="function")n(t,A,a,u);else{const d=o||n==="none"?1:t/A,h=n==="move"||n==="moveScale",g=n==="scale"||n==="moveScale";u.forEach(B=>{B.x=t===1?0:h?Math.round(B.x*d):Math.min(B.x,t-1),B.w=t===1||A===1?1:g?Math.round(B.w*d)||1:Math.min(B.w,t),a.push(B)}),u=[]}a=q.sort(a,-1),this._inColumnResize=!0,this.nodes=[],a.forEach(d=>{this.addNode(d,!1),delete d._orig})}return this.nodes.forEach(d=>delete d._orig),this.batchUpdate(!1,!o),delete this._inColumnResize,this}cacheLayout(A,t,n=!1){const o=[];return A.forEach((a,u)=>{a._id===void 0&&(a._id=(a.id?this.nodes.find(d=>d.id===a.id):void 0)?._id??Qn._idSeq++),o[u]={x:a.x,y:a.y,w:a.w,_id:a._id}}),this._layouts=n?[]:this._layouts||[],this._layouts[t]=o,this}cacheOneLayout(A,t){A._id=A._id??Qn._idSeq++;const n={x:A.x,y:A.y,w:A.w,_id:A._id};(A.autoPosition||A.x===void 0)&&(delete n.x,delete n.y,A.autoPosition&&(n.autoPosition=!0)),this._layouts=this._layouts||[],this._layouts[t]=this._layouts[t]||[];const o=this.findCacheLayout(A,t);return o===-1?this._layouts[t].push(n):this._layouts[t][o]=n,this}findCacheLayout(A,t){return this._layouts?.[t]?.findIndex(n=>n._id===A._id)??-1}removeNodeFromLayoutCache(A){if(this._layouts)for(let t=0;t<this._layouts.length;t++){const n=this.findCacheLayout(A,t);n!==-1&&this._layouts[t].splice(n,1)}}cleanupNode(A){for(const t in A)t[0]==="_"&&t!=="_id"&&delete A[t];return this}};Ii._idSeq=0;var Ue={alwaysShowResizeHandle:"mobile",animate:!0,auto:!0,cellHeight:"auto",cellHeightThrottle:100,cellHeightUnit:"px",column:12,draggable:{handle:".grid-stack-item-content",appendTo:"body",scroll:!0},handle:".grid-stack-item-content",itemClass:"grid-stack-item",margin:10,marginUnit:"px",maxRow:0,minRow:0,placeholderClass:"grid-stack-placeholder",placeholderText:"",removableOptions:{accept:"grid-stack-item",decline:"grid-stack-non-removable"},resizable:{handles:"se"},rtl:"auto"},TA=class{},Oe=typeof window<"u"&&typeof document<"u"&&("ontouchstart"in document||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),be=class{};function zr(e,A){e.touches.length>1||(e.cancelable&&e.preventDefault(),q.simulateMouseEvent(e.changedTouches[0],A))}function pl(e,A){e.cancelable&&e.preventDefault(),q.simulateMouseEvent(e,A)}function Xr(e){be.touchHandled||(be.touchHandled=!0,zr(e,"mousedown"))}function $r(e){be.touchHandled&&zr(e,"mousemove")}function Yr(e){if(!be.touchHandled)return;be.pointerLeaveTimeout&&(window.clearTimeout(be.pointerLeaveTimeout),delete be.pointerLeaveTimeout);const A=!!TA.dragElement;zr(e,"mouseup"),A||zr(e,"click"),be.touchHandled=!1}function Wr(e){e.pointerType!=="mouse"&&e.target.releasePointerCapture(e.pointerId)}function ml(e){TA.dragElement&&e.pointerType!=="mouse"&&pl(e,"mouseenter")}function wl(e){TA.dragElement&&e.pointerType!=="mouse"&&(be.pointerLeaveTimeout=window.setTimeout(()=>{delete be.pointerLeaveTimeout,pl(e,"mouseleave")},10))}var Cl=class yu{constructor(A,t,n){this.host=A,this.dir=t,this.option=n,this.moving=!1,this._mouseDown=this._mouseDown.bind(this),this._mouseMove=this._mouseMove.bind(this),this._mouseUp=this._mouseUp.bind(this),this._keyEvent=this._keyEvent.bind(this),this._init()}_init(){if(this.option.element)try{this.el=this.option.element instanceof HTMLElement?this.option.element:this.host.querySelector(this.option.element)}catch(A){this.option.element=void 0,console.error("Query for resizeable handle failed, falling back",A)}return this.el||(this.el=document.createElement("div"),this.host.appendChild(this.el)),this.el.classList.add("ui-resizable-handle"),this.el.classList.add(`${yu.prefix}${this.dir}`),this.el.style.zIndex="100",this.el.style.userSelect="none",this.el.addEventListener("mousedown",this._mouseDown),Oe&&(this.el.addEventListener("touchstart",Xr),this.el.addEventListener("pointerdown",Wr)),this}destroy(){return this.moving&&this._mouseUp(this.mouseDownEvent),this.el.removeEventListener("mousedown",this._mouseDown),Oe&&(this.el.removeEventListener("touchstart",Xr),this.el.removeEventListener("pointerdown",Wr)),this.option.element||this.host.removeChild(this.el),delete this.el,delete this.host,this}_mouseDown(A){this.mouseDownEvent=A,document.addEventListener("mousemove",this._mouseMove,{capture:!0,passive:!0}),document.addEventListener("mouseup",this._mouseUp,!0),Oe&&(this.el.addEventListener("touchmove",$r),this.el.addEventListener("touchend",Yr)),A.stopPropagation(),A.preventDefault()}_mouseMove(A){const t=this.mouseDownEvent;this.moving?this._triggerEvent("move",A):Math.abs(A.x-t.x)+Math.abs(A.y-t.y)>2&&(this.moving=!0,this._triggerEvent("start",this.mouseDownEvent),this._triggerEvent("move",A),document.addEventListener("keydown",this._keyEvent)),A.stopPropagation()}_mouseUp(A){this.moving&&(this._triggerEvent("stop",A),document.removeEventListener("keydown",this._keyEvent)),document.removeEventListener("mousemove",this._mouseMove,!0),document.removeEventListener("mouseup",this._mouseUp,!0),Oe&&(this.el.removeEventListener("touchmove",$r),this.el.removeEventListener("touchend",Yr)),delete this.moving,delete this.mouseDownEvent,A.stopPropagation(),A.preventDefault()}_keyEvent(A){A.key==="Escape"&&(this.host.gridstackNode?.grid?.engine.restoreInitial(),this._mouseUp(this.mouseDownEvent))}_triggerEvent(A,t){return this.option[A]&&this.option[A](t),this}};Cl.prefix="ui-resizable-";var _i=class{constructor(){this._eventRegister={}}get disabled(){return this._disabled}on(e,A){this._eventRegister[e]=A}off(e){delete this._eventRegister[e]}enable(){this._disabled=!1}disable(){this._disabled=!0}destroy(){delete this._eventRegister}triggerEvent(e,A){if(!this.disabled&&this._eventRegister&&this._eventRegister[e])return this._eventRegister[e](A)}},vl=class gs extends _i{constructor(A,t={}){super(),this.el=A,this.option=t,this.rectScale={x:1,y:1},this._ui=()=>{const n=this.el.parentElement.getBoundingClientRect(),o={width:this.originalRect.width,height:this.originalRect.height+this.scrolled,left:this.originalRect.left,top:this.originalRect.top-this.scrolled},a=this.temporalRect||o;return{position:{left:(a.left-n.left)*this.rectScale.x,top:(a.top-n.top)*this.rectScale.y},size:{width:a.width*this.rectScale.x,height:a.height*this.rectScale.y}}},this._mouseOver=this._mouseOver.bind(this),this._mouseOut=this._mouseOut.bind(this),this.enable(),this._setupAutoHide(this.option.autoHide),this._setupHandlers()}on(A,t){super.on(A,t)}off(A){super.off(A)}enable(){super.enable(),this.el.classList.remove("ui-resizable-disabled"),this._setupAutoHide(this.option.autoHide)}disable(){super.disable(),this.el.classList.add("ui-resizable-disabled"),this._setupAutoHide(!1)}destroy(){this._removeHandlers(),this._setupAutoHide(!1),delete this.el,super.destroy()}updateOption(A){const t=A.handles&&A.handles!==this.option.handles,n=A.autoHide&&A.autoHide!==this.option.autoHide;return Object.keys(A).forEach(o=>this.option[o]=A[o]),t&&(this._removeHandlers(),this._setupHandlers()),n&&this._setupAutoHide(this.option.autoHide),this}_setupAutoHide(A){return A?(this.el.classList.add("ui-resizable-autohide"),this.el.addEventListener("mouseover",this._mouseOver),this.el.addEventListener("mouseout",this._mouseOut)):(this.el.classList.remove("ui-resizable-autohide"),this.el.removeEventListener("mouseover",this._mouseOver),this.el.removeEventListener("mouseout",this._mouseOut),TA.overResizeElement===this&&delete TA.overResizeElement),this}_mouseOver(A){TA.overResizeElement||TA.dragElement||(TA.overResizeElement=this,this.el.classList.remove("ui-resizable-autohide"))}_mouseOut(A){TA.overResizeElement===this&&(delete TA.overResizeElement,this.el.classList.add("ui-resizable-autohide"))}_setupHandlers(){return this.handlers=this.option.handles.split(",").map(A=>A.trim()).map(A=>new Cl(this.el,A,{element:this.option.element,start:t=>this._resizeStart(t),stop:t=>this._resizeStop(t),move:t=>this._resizing(t,A)})),this}_resizeStart(A){this.sizeToContent=q.shouldSizeToContent(this.el.gridstackNode,!0),this.originalRect=this.el.getBoundingClientRect(),this.scrollEl=q.getScrollElement(this.el),this.scrollY=this.scrollEl.scrollTop,this.scrolled=0,this.startEvent=A,this._setupHelper(),this._applyChange();const t=q.initEvent(A,{type:"resizestart",target:this.el});return this.option.start&&this.option.start(t,this._ui()),this.el.classList.add("ui-resizable-resizing"),this.triggerEvent("resizestart",t),this}_resizing(A,t){this.scrolled=this.scrollEl.scrollTop-this.scrollY,this.temporalRect=this._getChange(A,t),this._applyChange();const n=q.initEvent(A,{type:"resize",target:this.el});return this.option.resize&&this.option.resize(n,this._ui()),this.triggerEvent("resize",n),this}_resizeStop(A){const t=q.initEvent(A,{type:"resizestop",target:this.el});return this._cleanHelper(),this.option.stop&&this.option.stop(t),this.el.classList.remove("ui-resizable-resizing"),this.triggerEvent("resizestop",t),delete this.startEvent,delete this.originalRect,delete this.temporalRect,delete this.scrollY,delete this.scrolled,this}_setupHelper(){this.elOriginStyleVal=gs._originStyleProp.map(n=>this.el.style[n]),this.parentOriginStylePosition=this.el.parentElement.style.position;const A=this.el.parentElement,t=q.getValuesFromTransformedElement(A);return this.rectScale={x:t.xScale,y:t.yScale},getComputedStyle(this.el.parentElement).position.match(/static/)&&(this.el.parentElement.style.position="relative"),this.el.style.position="absolute",this.el.style.opacity="0.8",this}_cleanHelper(){return gs._originStyleProp.forEach((A,t)=>{this.el.style[A]=this.elOriginStyleVal[t]||null}),this.el.parentElement.style.position=this.parentOriginStylePosition||null,this}_getChange(A,t){const n=this.startEvent,o={width:this.originalRect.width,height:this.originalRect.height+this.scrolled,left:this.originalRect.left,top:this.originalRect.top-this.scrolled},a=A.clientX-n.clientX,u=this.sizeToContent?0:A.clientY-n.clientY;let d,h;t.indexOf("e")>-1?o.width+=a:t.indexOf("w")>-1&&(o.width-=a,o.left+=a,d=!0),t.indexOf("s")>-1?o.height+=u:t.indexOf("n")>-1&&(o.height-=u,o.top+=u,h=!0);const g=this._constrainSize(o.width,o.height,d,h);return Math.round(o.width)!==Math.round(g.width)&&(t.indexOf("w")>-1&&(o.left+=o.width-g.width),o.width=g.width),Math.round(o.height)!==Math.round(g.height)&&(t.indexOf("n")>-1&&(o.top+=o.height-g.height),o.height=g.height),o}_constrainSize(A,t,n,o){const a=this.option,u=(n?a.maxWidthMoveLeft:a.maxWidth)||Number.MAX_SAFE_INTEGER,d=a.minWidth/this.rectScale.x||A,h=(o?a.maxHeightMoveUp:a.maxHeight)||Number.MAX_SAFE_INTEGER,g=a.minHeight/this.rectScale.y||t;return{width:Math.min(u,Math.max(d,A)),height:Math.min(h,Math.max(g,t))}}_applyChange(){let A={left:0,top:0,width:0,height:0};if(this.el.style.position==="absolute"){const{left:t,top:n}=this.el.parentElement.getBoundingClientRect();A={left:t,top:n,width:0,height:0}}return this.temporalRect?(Object.keys(this.temporalRect).forEach(t=>{const n=this.temporalRect[t],o=t==="width"||t==="left"?this.rectScale.x:t==="height"||t==="top"?this.rectScale.y:1;this.el.style[t]=(n-A[t])*o+"px"}),this):this}_removeHandlers(){return this.handlers.forEach(A=>A.destroy()),delete this.handlers,this}};vl._originStyleProp=["width","height","position","left","top","opacity","zIndex"];var Mm='input,textarea,button,select,option,[contenteditable="true"],.ui-resizable-handle',yl=class hs extends _i{constructor(A,t={}){super(),this.el=A,this.option=t,this.dragTransform={xScale:1,yScale:1,xOffset:0,yOffset:0};const n=t?.handle?.substring(1),o=A.gridstackNode;this.dragEls=!n||A.classList.contains(n)?[A]:o?.subGrid?[A.querySelector(t.handle)||A]:Array.from(A.querySelectorAll(t.handle)),this.dragEls.length===0&&(this.dragEls=[A]),this._mouseDown=this._mouseDown.bind(this),this._mouseMove=this._mouseMove.bind(this),this._mouseUp=this._mouseUp.bind(this),this._keyEvent=this._keyEvent.bind(this),this.enable()}on(A,t){super.on(A,t)}off(A){super.off(A)}enable(){this.disabled!==!1&&(super.enable(),this.dragEls.forEach(A=>{A.addEventListener("mousedown",this._mouseDown),Oe&&(A.addEventListener("touchstart",Xr),A.addEventListener("pointerdown",Wr))}),this.el.classList.remove("ui-draggable-disabled"))}disable(A=!1){this.disabled!==!0&&(super.disable(),this.dragEls.forEach(t=>{t.removeEventListener("mousedown",this._mouseDown),Oe&&(t.removeEventListener("touchstart",Xr),t.removeEventListener("pointerdown",Wr))}),A||this.el.classList.add("ui-draggable-disabled"))}destroy(){this.dragTimeout&&window.clearTimeout(this.dragTimeout),delete this.dragTimeout,this.mouseDownEvent&&this._mouseUp(this.mouseDownEvent),this.disable(!0),delete this.el,delete this.helper,delete this.option,super.destroy()}updateOption(A){return Object.keys(A).forEach(t=>this.option[t]=A[t]),this}_mouseDown(A){if(be.touchHandled&&A.isTrusted&&(be.touchHandled=!1),!TA.mouseHandled)return A.button!==0||!this.dragEls.find(t=>t===A.target)&&A.target.closest(Mm)||this.option.cancel&&A.target.closest(this.option.cancel)||(this.mouseDownEvent=A,delete this.dragging,delete TA.dragElement,delete TA.dropElement,document.addEventListener("mousemove",this._mouseMove,{capture:!0,passive:!0}),document.addEventListener("mouseup",this._mouseUp,!0),Oe&&(A.currentTarget.addEventListener("touchmove",$r),A.currentTarget.addEventListener("touchend",Yr)),A.preventDefault(),document.activeElement&&document.activeElement.blur(),TA.mouseHandled=!0),!0}_callDrag(A){if(!this.dragging)return;const t=q.initEvent(A,{target:this.el,type:"drag"});this.option.drag&&this.option.drag(t,this.ui()),this.triggerEvent("drag",t)}_mouseMove(A){const t=this.mouseDownEvent;if(this.lastDrag=A,this.dragging)if(this._dragFollow(A),TA.pauseDrag){const n=Number.isInteger(TA.pauseDrag)?TA.pauseDrag:100;this.dragTimeout&&window.clearTimeout(this.dragTimeout),this.dragTimeout=window.setTimeout(()=>this._callDrag(A),n)}else this._callDrag(A);else if(Math.abs(A.x-t.x)+Math.abs(A.y-t.y)>3){this.dragging=!0,TA.dragElement=this;const n=this.el.gridstackNode?.grid;n?TA.dropElement=n.el.ddElement.ddDroppable:delete TA.dropElement,this.helper=this._createHelper(),this._setupHelperContainmentStyle(),this.dragTransform=q.getValuesFromTransformedElement(this.helperContainment),this.dragOffset=this._getDragOffset(A,this.el,this.helperContainment),this._setupHelperStyle(A);const o=q.initEvent(A,{target:this.el,type:"dragstart"});this.option.start&&this.option.start(o,this.ui()),this.triggerEvent("dragstart",o),document.addEventListener("keydown",this._keyEvent)}return!0}_mouseUp(A){if(document.removeEventListener("mousemove",this._mouseMove,!0),document.removeEventListener("mouseup",this._mouseUp,!0),Oe&&A.currentTarget&&(A.currentTarget.removeEventListener("touchmove",$r,!0),A.currentTarget.removeEventListener("touchend",Yr,!0)),this.dragging){delete this.dragging,delete this.el.gridstackNode?._origRotate,document.removeEventListener("keydown",this._keyEvent),TA.dropElement?.el===this.el.parentElement&&delete TA.dropElement,this.helperContainment.style.position=this.parentOriginStylePosition||null,this.helper!==this.el&&this.helper.remove(),this._removeHelperStyle();const t=q.initEvent(A,{target:this.el,type:"dragstop"});this.option.stop&&this.option.stop(t),this.triggerEvent("dragstop",t),TA.dropElement&&TA.dropElement.drop(A)}delete this.helper,delete this.mouseDownEvent,delete TA.dragElement,delete TA.dropElement,delete TA.mouseHandled,A.preventDefault()}_keyEvent(A){const t=this.el.gridstackNode,n=t?.grid||TA.dropElement?.el?.gridstack;if(A.key==="Escape")t&&t._origRotate&&(t._orig=t._origRotate,delete t._origRotate),n?.cancelDrag(),this._mouseUp(this.mouseDownEvent);else if(t&&n&&(A.key==="r"||A.key==="R")){if(!q.canBeRotated(t))return;t._origRotate=t._origRotate||{...t._orig},delete t._moving,n.setAnimation(!1).rotate(t.el,{top:-this.dragOffset.offsetTop,left:-this.dragOffset.offsetLeft}).setAnimation(),t._moving=!0,this.dragOffset=this._getDragOffset(this.lastDrag,t.el,this.helperContainment),this.helper.style.width=this.dragOffset.width+"px",this.helper.style.height=this.dragOffset.height+"px",q.swap(t._orig,"w","h"),delete t._rect,this._mouseMove(this.lastDrag)}}_createHelper(){let A=this.el;return typeof this.option.helper=="function"?A=this.option.helper(this.el):this.option.helper==="clone"&&(A=q.cloneNode(this.el)),A.parentElement||q.appendTo(A,this.option.appendTo==="parent"?this.el.parentElement:this.option.appendTo),this.dragElementOriginStyle=hs.originStyleProp.map(t=>this.el.style[t]),A}_setupHelperStyle(A){this.helper.classList.add("ui-draggable-dragging"),this.el.gridstackNode?.grid?.el.classList.add("grid-stack-dragging");const t=this.helper.style;return t.pointerEvents="none",t.width=this.dragOffset.width+"px",t.height=this.dragOffset.height+"px",t.willChange="left, top",t.position="fixed",this._dragFollow(A),t.transition="none",setTimeout(()=>{this.helper&&(t.transition=null)},0),this}_removeHelperStyle(){if(this.helper.classList.remove("ui-draggable-dragging"),this.el.gridstackNode?.grid?.el.classList.remove("grid-stack-dragging"),!this.helper?.gridstackNode?._isAboutToRemove&&this.dragElementOriginStyle){const A=this.helper,t=this.dragElementOriginStyle.transition||null;A.style.transition=this.dragElementOriginStyle.transition="none",hs.originStyleProp.forEach(n=>A.style[n]=this.dragElementOriginStyle[n]||null),setTimeout(()=>A.style.transition=t,50)}return delete this.dragElementOriginStyle,this}_dragFollow(A){const t={left:0,top:0},n=this.helper.style,o=this.dragOffset;n.left=(A.clientX+o.offsetLeft-t.left)*this.dragTransform.xScale+"px",n.top=(A.clientY+o.offsetTop-t.top)*this.dragTransform.yScale+"px"}_setupHelperContainmentStyle(){return this.helperContainment=this.helper.parentElement,this.helper.style.position!=="fixed"&&(this.parentOriginStylePosition=this.helperContainment.style.position,getComputedStyle(this.helperContainment).position.match(/static/)&&(this.helperContainment.style.position="relative")),this}_getDragOffset(A,t,n){let o=0,a=0;n&&(o=this.dragTransform.xOffset,a=this.dragTransform.yOffset);const u=t.getBoundingClientRect();return{left:u.left,top:u.top,offsetLeft:-A.clientX+u.left-o,offsetTop:-A.clientY+u.top-a,width:u.width*this.dragTransform.xScale,height:u.height*this.dragTransform.yScale}}ui(){const A=this.el.parentElement.getBoundingClientRect(),t=this.helper.getBoundingClientRect();return{position:{top:(t.top-A.top)*this.dragTransform.yScale,left:(t.left-A.left)*this.dragTransform.xScale}}}};yl.originStyleProp=["width","height","transform","transform-origin","transition","pointerEvents","position","left","top","minWidth","willChange"];var Om=class extends _i{constructor(e,A={}){super(),this.el=e,this.option=A,this._mouseEnter=this._mouseEnter.bind(this),this._mouseLeave=this._mouseLeave.bind(this),this.enable(),this._setupAccept()}on(e,A){super.on(e,A)}off(e){super.off(e)}enable(){this.disabled!==!1&&(super.enable(),this.el.classList.add("ui-droppable"),this.el.classList.remove("ui-droppable-disabled"),this.el.addEventListener("mouseenter",this._mouseEnter),this.el.addEventListener("mouseleave",this._mouseLeave),Oe&&(this.el.addEventListener("pointerenter",ml),this.el.addEventListener("pointerleave",wl)))}disable(e=!1){this.disabled!==!0&&(super.disable(),this.el.classList.remove("ui-droppable"),e||this.el.classList.add("ui-droppable-disabled"),this.el.removeEventListener("mouseenter",this._mouseEnter),this.el.removeEventListener("mouseleave",this._mouseLeave),Oe&&(this.el.removeEventListener("pointerenter",ml),this.el.removeEventListener("pointerleave",wl)))}destroy(){this.disable(!0),this.el.classList.remove("ui-droppable"),this.el.classList.remove("ui-droppable-disabled"),super.destroy()}updateOption(e){return Object.keys(e).forEach(A=>this.option[A]=e[A]),this._setupAccept(),this}_mouseEnter(e){if(!TA.dragElement||be.touchHandled&&e.isTrusted||!this._canDrop(TA.dragElement.el))return;e.preventDefault(),e.stopPropagation(),TA.dropElement&&TA.dropElement!==this&&TA.dropElement._mouseLeave(e,!0),TA.dropElement=this;const A=q.initEvent(e,{target:this.el,type:"dropover"});this.option.over&&this.option.over(A,this._ui(TA.dragElement)),this.triggerEvent("dropover",A),this.el.classList.add("ui-droppable-over")}_mouseLeave(e,A=!1){if(!TA.dragElement||TA.dropElement!==this)return;e.preventDefault(),e.stopPropagation();const t=q.initEvent(e,{target:this.el,type:"dropout"});if(this.option.out&&this.option.out(t,this._ui(TA.dragElement)),this.triggerEvent("dropout",t),TA.dropElement===this&&(delete TA.dropElement,!A)){let n,o=this.el.parentElement;for(;!n&&o;)n=o.ddElement?.ddDroppable,o=o.parentElement;n&&n._mouseEnter(e)}}drop(e){e.preventDefault();const A=q.initEvent(e,{target:this.el,type:"drop"});this.option.drop&&this.option.drop(A,this._ui(TA.dragElement)),this.triggerEvent("drop",A)}_canDrop(e){return e&&(!this.accept||this.accept(e))}_setupAccept(){return this.option.accept?(typeof this.option.accept=="string"?this.accept=e=>e.classList.contains(this.option.accept)||e.matches(this.option.accept):this.accept=this.option.accept,this):this}_ui(e){return{draggable:e.el,...e.ui()}}},Km=class Qu{static init(A){return A.ddElement||(A.ddElement=new Qu(A)),A.ddElement}constructor(A){this.el=A}on(A,t){return this.ddDraggable&&["drag","dragstart","dragstop"].indexOf(A)>-1?this.ddDraggable.on(A,t):this.ddDroppable&&["drop","dropover","dropout"].indexOf(A)>-1?this.ddDroppable.on(A,t):this.ddResizable&&["resizestart","resize","resizestop"].indexOf(A)>-1&&this.ddResizable.on(A,t),this}off(A){return this.ddDraggable&&["drag","dragstart","dragstop"].indexOf(A)>-1?this.ddDraggable.off(A):this.ddDroppable&&["drop","dropover","dropout"].indexOf(A)>-1?this.ddDroppable.off(A):this.ddResizable&&["resizestart","resize","resizestop"].indexOf(A)>-1&&this.ddResizable.off(A),this}setupDraggable(A){return this.ddDraggable?this.ddDraggable.updateOption(A):this.ddDraggable=new yl(this.el,A),this}cleanDraggable(){return this.ddDraggable&&(this.ddDraggable.destroy(),delete this.ddDraggable),this}setupResizable(A){return this.ddResizable?this.ddResizable.updateOption(A):this.ddResizable=new vl(this.el,A),this}cleanResizable(){return this.ddResizable&&(this.ddResizable.destroy(),delete this.ddResizable),this}setupDroppable(A){return this.ddDroppable?this.ddDroppable.updateOption(A):this.ddDroppable=new Om(this.el,A),this}cleanDroppable(){return this.ddDroppable&&(this.ddDroppable.destroy(),delete this.ddDroppable),this}},Rm=class{resizable(e,A,t,n){return this._getDDElements(e,A).forEach(o=>{if(A==="disable"||A==="enable")o.ddResizable&&o.ddResizable[A]();else if(A==="destroy")o.ddResizable&&o.cleanResizable();else if(A==="option")o.setupResizable({[t]:n});else{const a=o.el.gridstackNode.grid;let u=o.el.getAttribute("gs-resize-handles")||a.opts.resizable.handles||"e,s,se";u==="all"&&(u="n,e,s,w,se,sw,ne,nw");const d=!a.opts.alwaysShowResizeHandle;o.setupResizable({...a.opts.resizable,handles:u,autoHide:d,start:A.start,stop:A.stop,resize:A.resize})}}),this}draggable(e,A,t,n){return this._getDDElements(e,A).forEach(o=>{if(A==="disable"||A==="enable")o.ddDraggable&&o.ddDraggable[A]();else if(A==="destroy")o.ddDraggable&&o.cleanDraggable();else if(A==="option")o.setupDraggable({[t]:n});else{const a=o.el.gridstackNode.grid;o.setupDraggable({...a.opts.draggable,start:A.start,stop:A.stop,drag:A.drag})}}),this}dragIn(e,A){return this._getDDElements(e).forEach(t=>t.setupDraggable(A)),this}droppable(e,A,t,n){return typeof A.accept=="function"&&!A._accept&&(A._accept=A.accept,A.accept=o=>A._accept(o)),this._getDDElements(e,A).forEach(o=>{A==="disable"||A==="enable"?o.ddDroppable&&o.ddDroppable[A]():A==="destroy"?o.ddDroppable&&o.cleanDroppable():A==="option"?o.setupDroppable({[t]:n}):o.setupDroppable(A)}),this}isDroppable(e){return!!(e?.ddElement?.ddDroppable&&!e.ddElement.ddDroppable.disabled)}isDraggable(e){return!!(e?.ddElement?.ddDraggable&&!e.ddElement.ddDraggable.disabled)}isResizable(e){return!!(e?.ddElement?.ddResizable&&!e.ddElement.ddResizable.disabled)}on(e,A,t){return this._getDDElements(e).forEach(n=>n.on(A,o=>{t(o,TA.dragElement?TA.dragElement.el:o.target,TA.dragElement?TA.dragElement.helper:null)})),this}off(e,A){return this._getDDElements(e).forEach(t=>t.off(A)),this}_getDDElements(e,A){const t=e.gridstack||A!=="destroy"&&A!=="disable",n=q.getElements(e);return n.length?n.map(o=>o.ddElement||(t?Km.init(o):null)).filter(o=>o):[]}},me=new Rm,rn=class LA{static init(A={},t=".grid-stack"){if(typeof document>"u")return null;const n=LA.getGridElement(t);return n?(n.gridstack||(n.gridstack=new LA(n,q.cloneDeep(A))),n.gridstack):(console.error(typeof t=="string"?'GridStack.initAll() no grid was found with selector "'+t+`" - element missing or wrong selector ?
|
|
27
|
+
Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.`:"GridStack.init() no grid element was passed."),null)}static initAll(A={},t=".grid-stack"){const n=[];return typeof document>"u"||(LA.getGridElements(t).forEach(o=>{o.gridstack||(o.gridstack=new LA(o,q.cloneDeep(A))),n.push(o.gridstack)}),n.length===0&&console.error('GridStack.initAll() no grid was found with selector "'+t+`" - element missing or wrong selector ?
|
|
28
|
+
Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.`)),n}static addGrid(A,t={}){if(!A)return null;let n=A;if(n.gridstack){const o=n.gridstack;return t&&(o.opts={...o.opts,...t}),t.children!==void 0&&o.load(t.children),o}return(!A.classList.contains("grid-stack")||LA.addRemoveCB)&&(LA.addRemoveCB?n=LA.addRemoveCB(A,t,!0,!0):n=q.createDiv(["grid-stack",t.class],A)),LA.init(t,n)}static registerEngine(A){LA.engineClass=A}get placeholder(){if(!this._placeholder){this._placeholder=q.createDiv([this.opts.placeholderClass,Ue.itemClass,this.opts.itemClass]);const A=q.createDiv(["placeholder-content"],this._placeholder);this.opts.placeholderText&&(A.textContent=this.opts.placeholderText)}return this._placeholder}constructor(A,t={}){this.el=A,this.opts=t,this.animationDelay=310,this._gsEventHandler={},this._extraDragRow=0,this.dragTransform={xScale:1,yScale:1,xOffset:0,yOffset:0},A.gridstack=this,this.opts=t=t||{},A.classList.contains("grid-stack")||this.el.classList.add("grid-stack"),t.row&&(t.minRow=t.maxRow=t.row,delete t.row);const n=q.toNumber(A.getAttribute("gs-row"));t.column==="auto"&&delete t.column,t.alwaysShowResizeHandle!==void 0&&(t._alwaysShowResizeHandle=t.alwaysShowResizeHandle);const o=t.columnOpts;if(o){const h=o.breakpoints;!o.columnWidth&&!h?.length?delete t.columnOpts:(o.columnMax=o.columnMax||12,h?.length>1&&h.sort((g,B)=>(B.w||0)-(g.w||0)))}const a={...q.cloneDeep(Ue),column:q.toNumber(A.getAttribute("gs-column"))||Ue.column,minRow:n||q.toNumber(A.getAttribute("gs-min-row"))||Ue.minRow,maxRow:n||q.toNumber(A.getAttribute("gs-max-row"))||Ue.maxRow,staticGrid:q.toBool(A.getAttribute("gs-static"))||Ue.staticGrid,sizeToContent:q.toBool(A.getAttribute("gs-size-to-content"))||void 0,draggable:{handle:(t.handleClass?"."+t.handleClass:t.handle?t.handle:"")||Ue.draggable.handle},removableOptions:{accept:t.itemClass||Ue.removableOptions.accept,decline:Ue.removableOptions.decline}};A.getAttribute("gs-animate")&&(a.animate=q.toBool(A.getAttribute("gs-animate"))),t=q.defaults(t,a),this._initMargin(),this.checkDynamicColumn(),this._updateColumnVar(t),t.rtl==="auto"&&(t.rtl=A.style.direction==="rtl"),t.rtl&&this.el.classList.add("grid-stack-rtl");const u=this.el.closest("."+Ue.itemClass)?.gridstackNode;if(u&&(u.subGrid=this,this.parentGridNode=u,this.el.classList.add("grid-stack-nested"),u.el.classList.add("grid-stack-sub-grid")),this._isAutoCellHeight=t.cellHeight==="auto",this._isAutoCellHeight||t.cellHeight==="initial")this.cellHeight(void 0);else{typeof t.cellHeight=="number"&&t.cellHeightUnit&&t.cellHeightUnit!==Ue.cellHeightUnit&&(t.cellHeight=t.cellHeight+t.cellHeightUnit,delete t.cellHeightUnit);const h=t.cellHeight;delete t.cellHeight,this.cellHeight(h)}t.alwaysShowResizeHandle==="mobile"&&(t.alwaysShowResizeHandle=Oe),this._setStaticClass();const d=t.engineClass||LA.engineClass||Ii;if(this.engine=new d({column:this.getColumn(),float:t.float,maxRow:t.maxRow,onChange:h=>{h.forEach(g=>{const B=g.el;B&&(g._removeDOM?(B&&B.remove(),delete g._removeDOM):this._writePosAttr(B,g))}),this._updateContainerHeight()}}),t.auto&&(this.batchUpdate(),this.engine._loading=!0,this.getGridItems().forEach(h=>this._prepareElement(h)),delete this.engine._loading,this.batchUpdate(!1)),t.children){const h=t.children;delete t.children,h.length&&this.load(h)}this.setAnimation(),t.subGridDynamic&&!TA.pauseDrag&&(TA.pauseDrag=!0),t.draggable?.pause!==void 0&&(TA.pauseDrag=t.draggable.pause),this._setupRemoveDrop(),this._setupAcceptWidget(),this._updateResizeEvent()}_updateColumnVar(A=this.opts){this.el.classList.add("gs-"+A.column),typeof A.column=="number"&&this.el.style.setProperty("--gs-column-width",`${100/A.column}%`)}addWidget(A){if(!A)return;if(typeof A=="string"){console.error("V11: GridStack.addWidget() does not support string anymore. see #2736");return}if(A.ELEMENT_NODE)return console.error("V11: GridStack.addWidget() does not support HTMLElement anymore. use makeWidget()"),this.makeWidget(A);let t,n=A;if(n.grid=this,n.el?t=n.el:LA.addRemoveCB?t=LA.addRemoveCB(this.el,A,!0,!1):t=this.createWidgetDivs(n),!t)return;if(n=t.gridstackNode,n&&t.parentElement===this.el&&this.engine.nodes.find(a=>a._id===n._id))return t;const o=this._readAttr(t);return q.defaults(A,o),this.engine.prepareNode(A),this.el.appendChild(t),this.makeWidget(t,A),t}createWidgetDivs(A){const t=q.createDiv(["grid-stack-item",this.opts.itemClass]),n=q.createDiv(["grid-stack-item-content"],t);return q.lazyLoad(A)?A.visibleObservable||(A.visibleObservable=new IntersectionObserver(([o])=>{o.isIntersecting&&(A.visibleObservable?.disconnect(),delete A.visibleObservable,LA.renderCB(n,A),A.grid?.prepareDragDrop(A.el))}),window.setTimeout(()=>A.visibleObservable?.observe(t))):LA.renderCB(n,A),t}makeSubGrid(A,t,n,o=!0){let a=A.gridstackNode;if(a||(a=this.makeWidget(A).gridstackNode),a.subGrid?.el)return a.subGrid;let u,d=this;for(;d&&!u;)u=d.opts?.subGridOpts,d=d.parentGridNode?.grid;t=q.cloneDeep({...this.opts,id:void 0,children:void 0,column:"auto",columnOpts:void 0,layout:"list",subGridOpts:void 0,...u||{},...t||a.subGridOpts||{}}),a.subGridOpts=t;let h;t.column==="auto"&&(h=!0,t.column=Math.max(a.w||1,n?.w||1),delete t.columnOpts);let g=a.el.querySelector(".grid-stack-item-content"),B,w;if(o&&(this._removeDD(a.el),w={...a,x:0,y:0},q.removeInternalForSave(w),delete w.subGridOpts,a.content&&(w.content=a.content,delete a.content),LA.addRemoveCB?B=LA.addRemoveCB(this.el,w,!0,!1):(B=q.createDiv(["grid-stack-item"]),B.appendChild(g),g=q.createDiv(["grid-stack-item-content"],a.el)),this.prepareDragDrop(a.el)),n){const v=h?t.column:a.w,y=a.h+n.h,I=a.el.style;I.transition="none",this.update(a.el,{w:v,h:y}),setTimeout(()=>I.transition=null)}const m=a.subGrid=LA.addGrid(g,t);return n?._moving&&(m._isTemp=!0),h&&(m._autoColumn=!0),o&&m.makeWidget(B,w),n&&(n._moving?window.setTimeout(()=>q.simulateMouseEvent(n._event,"mouseenter",m.el),0):m.makeWidget(a.el,a)),this.resizeToContentCheck(!1,a),m}removeAsSubGrid(A){const t=this.parentGridNode?.grid;t&&(t.batchUpdate(),t.removeWidget(this.parentGridNode.el,!0,!0),this.engine.nodes.forEach(n=>{n.x+=this.parentGridNode.x,n.y+=this.parentGridNode.y,t.makeWidget(n.el,n)}),t.batchUpdate(!1),this.parentGridNode&&delete this.parentGridNode.subGrid,delete this.parentGridNode,A&&window.setTimeout(()=>q.simulateMouseEvent(A._event,"mouseenter",t.el),0))}save(A=!0,t=!1,n=LA.saveCB,o){const a=this.engine.save(A,n,o);if(a.forEach(u=>{if(A&&u.el&&!u.subGrid&&!n)u.content=u.el.querySelector(".grid-stack-item-content")?.innerHTML,u.content||delete u.content;else if(!A&&!n&&delete u.content,u.subGrid?.el){const d=u.w||u.subGrid.getColumn(),h=u.subGrid.save(A,t,n,d);u.subGridOpts=t?h:{children:h},delete u.subGrid}delete u.el}),t){const u=q.cloneDeep(this.opts);u.marginBottom===u.marginTop&&u.marginRight===u.marginLeft&&u.marginTop===u.marginRight&&(u.margin=u.marginTop,delete u.marginTop,delete u.marginRight,delete u.marginBottom,delete u.marginLeft),u.rtl===(this.el.style.direction==="rtl")&&(u.rtl="auto"),this._isAutoCellHeight&&(u.cellHeight="auto"),this._autoColumn&&(u.column="auto");const d=u._alwaysShowResizeHandle;return delete u._alwaysShowResizeHandle,d!==void 0?u.alwaysShowResizeHandle=d:delete u.alwaysShowResizeHandle,q.removeInternalAndSame(u,Ue),u.children=a,u}return a}load(A,t=LA.addRemoveCB||!0){A=q.cloneDeep(A);const n=this.getColumn();A.forEach(B=>{B.w=B.w||B.minW||1,B.h=B.h||B.minH||1}),A=q.sort(A),this.engine.skipCacheUpdate=this._ignoreLayoutsNodeChange=!0;let o=0;A.forEach(B=>{o=Math.max(o,(B.x||0)+B.w)}),o>this.engine.defaultColumn&&(this.engine.defaultColumn=o),o>n&&(this.engine.nodes.length===0&&this.responseLayout?(this.engine.nodes=A,this.engine.columnChanged(o,n,this.responseLayout),A=this.engine.nodes,this.engine.nodes=[],delete this.responseLayout):this.engine.cacheLayout(A,o,!0));const a=LA.addRemoveCB;typeof t=="function"&&(LA.addRemoveCB=t);const u=[];this.batchUpdate();const d=!this.engine.nodes.length,h=d&&this.opts.animate;h&&this.setAnimation(!1),!d&&t&&[...this.engine.nodes].forEach(B=>{B.id&&(q.find(A,B.id)||(LA.addRemoveCB&&LA.addRemoveCB(this.el,B,!1,!1),u.push(B),this.removeWidget(B.el,!0,!1)))}),this.engine._loading=!0;const g=[];return this.engine.nodes=this.engine.nodes.filter(B=>q.find(A,B.id)?(g.push(B),!1):!0),A.forEach(B=>{const w=q.find(g,B.id);if(w){if(q.shouldSizeToContent(w)&&(B.h=w.h),this.engine.nodeBoundFix(B),(B.autoPosition||B.x===void 0||B.y===void 0)&&(B.w=B.w||w.w,B.h=B.h||w.h,this.engine.findEmptyPosition(B)),this.engine.nodes.push(w),q.samePos(w,B)&&this.engine.nodes.length>1&&(this.moveNode(w,{...B,forceCollide:!0}),q.copyPos(B,w)),this.update(w.el,B),B.subGridOpts?.children){const m=w.el.querySelector(".grid-stack");m&&m.gridstack&&m.gridstack.load(B.subGridOpts.children)}}else t&&this.addWidget(B)}),delete this.engine._loading,this.engine.removedNodes=u,this.batchUpdate(!1),delete this._ignoreLayoutsNodeChange,delete this.engine.skipCacheUpdate,a?LA.addRemoveCB=a:delete LA.addRemoveCB,h&&this.setAnimation(!0,!0),this}batchUpdate(A=!0){return this.engine.batchUpdate(A),A||(this._updateContainerHeight(),this._triggerRemoveEvent(),this._triggerAddEvent(),this._triggerChangeEvent()),this}getCellHeight(A=!1){if(this.opts.cellHeight&&this.opts.cellHeight!=="auto"&&(!A||!this.opts.cellHeightUnit||this.opts.cellHeightUnit==="px"))return this.opts.cellHeight;if(this.opts.cellHeightUnit==="rem")return this.opts.cellHeight*parseFloat(getComputedStyle(document.documentElement).fontSize);if(this.opts.cellHeightUnit==="em")return this.opts.cellHeight*parseFloat(getComputedStyle(this.el).fontSize);if(this.opts.cellHeightUnit==="cm")return this.opts.cellHeight*(96/2.54);if(this.opts.cellHeightUnit==="mm")return this.opts.cellHeight*(96/2.54)/10;const t=this.el.querySelector("."+this.opts.itemClass);if(t){const o=q.toNumber(t.getAttribute("gs-h"))||1;return Math.round(t.offsetHeight/o)}const n=parseInt(this.el.getAttribute("gs-current-row"));return n?Math.round(this.el.getBoundingClientRect().height/n):this.opts.cellHeight}cellHeight(A){if(A!==void 0&&this._isAutoCellHeight!==(A==="auto")&&(this._isAutoCellHeight=A==="auto",this._updateResizeEvent()),(A==="initial"||A==="auto")&&(A=void 0),A===void 0){const n=-this.opts.marginRight-this.opts.marginLeft+this.opts.marginTop+this.opts.marginBottom;A=this.cellWidth()+n}const t=q.parseHeight(A);return this.opts.cellHeightUnit===t.unit&&this.opts.cellHeight===t.h?this:(this.opts.cellHeightUnit=t.unit,this.opts.cellHeight=t.h,this.el.style.setProperty("--gs-cell-height",`${this.opts.cellHeight}${this.opts.cellHeightUnit}`),this._updateContainerHeight(),this.resizeToContentCheck(),this)}cellWidth(){return this._widthOrContainer()/this.getColumn()}_widthOrContainer(A=!1){return A&&this.opts.columnOpts?.breakpointForWindow?window.innerWidth:this.el.clientWidth||this.el.parentElement.clientWidth||window.innerWidth}checkDynamicColumn(){const A=this.opts.columnOpts;if(!A||!A.columnWidth&&!A.breakpoints?.length)return!1;const t=this.getColumn();let n=t;const o=this._widthOrContainer(!0);if(A.columnWidth)n=Math.min(Math.round(o/A.columnWidth)||1,A.columnMax);else{n=A.columnMax;let a=0;for(;a<A.breakpoints.length&&o<=A.breakpoints[a].w;)n=A.breakpoints[a++].c||t}if(n!==t){const a=A.breakpoints?.find(u=>u.c===n);return this.column(n,a?.layout||A.layout),!0}return!1}compact(A="compact",t=!0){return this.engine.compact(A,t),this._triggerChangeEvent(),this}column(A,t="moveScale"){if(!A||A<1||this.opts.column===A)return this;const n=this.getColumn();return this.opts.column=A,this.engine?(this.engine.column=A,this.el.classList.remove("gs-"+n),this._updateColumnVar(),this.engine.columnChanged(n,A,t),this._isAutoCellHeight&&this.cellHeight(),this.resizeToContentCheck(!0),this._ignoreLayoutsNodeChange=!0,this._triggerChangeEvent(),delete this._ignoreLayoutsNodeChange,this):(this.responseLayout=t,this)}getColumn(){return this.opts.column}getGridItems(){return Array.from(this.el.children).filter(A=>A.matches("."+this.opts.itemClass)&&!A.matches("."+this.opts.placeholderClass))}isIgnoreChangeCB(){return this._ignoreLayoutsNodeChange}destroy(A=!0){if(this.el)return this.offAll(),this._updateResizeEvent(!0),this.setStatic(!0,!1),this.setAnimation(!1),A?this.el.parentNode.removeChild(this.el):(this.removeAll(A),this.el.removeAttribute("gs-current-row")),this.parentGridNode&&delete this.parentGridNode.subGrid,delete this.parentGridNode,delete this.opts,delete this._placeholder?.gridstackNode,delete this._placeholder,delete this.engine,delete this.el.gridstack,delete this.el,this}float(A){return this.opts.float!==A&&(this.opts.float=this.engine.float=A,this._triggerChangeEvent()),this}getFloat(){return this.engine.float}getCellFromPixel(A,t=!1){const n=this.el.getBoundingClientRect();let o;t?o={top:n.top+document.documentElement.scrollTop,left:n.left}:o={top:this.el.offsetTop,left:this.el.offsetLeft};const a=A.left-o.left,u=A.top-o.top,d=n.width/this.getColumn(),h=n.height/parseInt(this.el.getAttribute("gs-current-row"));return{x:Math.floor(a/d),y:Math.floor(u/h)}}getRow(){return Math.max(this.engine.getRow(),this.opts.minRow||0)}isAreaEmpty(A,t,n,o){return this.engine.isAreaEmpty(A,t,n,o)}makeWidget(A,t){const n=LA.getElement(A);if(!n||n.gridstackNode)return n;n.parentElement||this.el.appendChild(n),this._prepareElement(n,!0,t);const o=n.gridstackNode;this._updateContainerHeight(),o.subGridOpts&&this.makeSubGrid(n,o.subGridOpts,void 0,!1);let a;return this.opts.column===1&&!this._ignoreLayoutsNodeChange&&(a=this._ignoreLayoutsNodeChange=!0),this._triggerAddEvent(),this._triggerChangeEvent(),a&&delete this._ignoreLayoutsNodeChange,n}on(A,t){return A.indexOf(" ")!==-1?(A.split(" ").forEach(n=>this.on(n,t)),this):(A==="change"||A==="added"||A==="removed"||A==="enable"||A==="disable"?(A==="enable"||A==="disable"?this._gsEventHandler[A]=n=>t(n):this._gsEventHandler[A]=n=>{n.detail&&t(n,n.detail)},this.el.addEventListener(A,this._gsEventHandler[A])):A==="drag"||A==="dragstart"||A==="dragstop"||A==="resizestart"||A==="resize"||A==="resizestop"||A==="dropped"||A==="resizecontent"?this._gsEventHandler[A]=t:console.error("GridStack.on("+A+") event not supported"),this)}off(A){return A.indexOf(" ")!==-1?(A.split(" ").forEach(t=>this.off(t)),this):((A==="change"||A==="added"||A==="removed"||A==="enable"||A==="disable")&&this._gsEventHandler[A]&&this.el.removeEventListener(A,this._gsEventHandler[A]),delete this._gsEventHandler[A],this)}offAll(){return Object.keys(this._gsEventHandler).forEach(A=>this.off(A)),this}removeWidget(A,t=!0,n=!0){return A?(LA.getElements(A).forEach(o=>{if(o.parentElement&&o.parentElement!==this.el)return;let a=o.gridstackNode;a||(a=this.engine.nodes.find(u=>o===u.el)),a&&(t&&LA.addRemoveCB&&LA.addRemoveCB(this.el,a,!1,!1),delete o.gridstackNode,this._removeDD(o),this.engine.removeNode(a,t,n),t&&o.parentElement&&o.remove())}),n&&(this._triggerRemoveEvent(),this._triggerChangeEvent()),this):(console.error("Error: GridStack.removeWidget(undefined) called"),this)}removeAll(A=!0,t=!0){return this.engine.nodes.forEach(n=>{A&&LA.addRemoveCB&&LA.addRemoveCB(this.el,n,!1,!1),delete n.el.gridstackNode,this.opts.staticGrid||this._removeDD(n.el)}),this.engine.removeAll(A,t),t&&this._triggerRemoveEvent(),this}setAnimation(A=this.opts.animate,t){return t?setTimeout(()=>{this.opts&&this.setAnimation(A)}):A?this.el.classList.add("grid-stack-animate"):this.el.classList.remove("grid-stack-animate"),this.opts.animate=A,this}hasAnimationCSS(){return this.el.classList.contains("grid-stack-animate")}setStatic(A,t=!0,n=!0){return!!this.opts.staticGrid===A?this:(A?this.opts.staticGrid=!0:delete this.opts.staticGrid,this._setupRemoveDrop(),this._setupAcceptWidget(),this.engine.nodes.forEach(o=>{this.prepareDragDrop(o.el),o.subGrid&&n&&o.subGrid.setStatic(A,t,n)}),t&&this._setStaticClass(),this)}updateOptions(A){const t=this.opts;return A===t?this:(A.acceptWidgets!==void 0&&(t.acceptWidgets=A.acceptWidgets,this._setupAcceptWidget()),A.animate!==void 0&&this.setAnimation(A.animate),A.cellHeight&&this.cellHeight(A.cellHeight),A.class!==void 0&&A.class!==t.class&&(t.class&&this.el.classList.remove(t.class),A.class&&this.el.classList.add(A.class)),A.columnOpts?(this.opts.columnOpts=A.columnOpts,this.checkDynamicColumn()):A.columnOpts===null&&this.opts.columnOpts?(delete this.opts.columnOpts,this._updateResizeEvent()):typeof A.column=="number"&&this.column(A.column),A.margin!==void 0&&this.margin(A.margin),A.staticGrid!==void 0&&this.setStatic(A.staticGrid),A.disableDrag!==void 0&&!A.staticGrid&&this.enableMove(!A.disableDrag),A.disableResize!==void 0&&!A.staticGrid&&this.enableResize(!A.disableResize),A.float!==void 0&&this.float(A.float),A.row!==void 0?(t.minRow=t.maxRow=t.row=A.row,this._updateContainerHeight()):(A.minRow!==void 0&&(t.minRow=A.minRow,this._updateContainerHeight()),A.maxRow!==void 0&&(t.maxRow=A.maxRow)),A.lazyLoad!==void 0&&(t.lazyLoad=A.lazyLoad),A.children?.length&&this.load(A.children),this)}update(A,t){return LA.getElements(A).forEach(n=>{const o=n?.gridstackNode;if(!o)return;const a={...q.copyPos({},o),...q.cloneDeep(t)};this.engine.nodeBoundFix(a),delete a.autoPosition;const u=["x","y","w","h"];let d;if(u.some(B=>a[B]!==void 0&&a[B]!==o[B])&&(d={},u.forEach(B=>{d[B]=a[B]!==void 0?a[B]:o[B],delete a[B]})),!d&&(a.minW||a.minH||a.maxW||a.maxH)&&(d={}),a.content!==void 0){const B=n.querySelector(".grid-stack-item-content");B&&B.textContent!==a.content&&(o.content=a.content,LA.renderCB(B,a),o.subGrid?.el&&(B.appendChild(o.subGrid.el),o.subGrid._updateContainerHeight())),delete a.content}let h=!1,g=!1;for(const B in a)B[0]!=="_"&&o[B]!==a[B]&&(o[B]=a[B],h=!0,g=g||!this.opts.staticGrid&&(B==="noResize"||B==="noMove"||B==="locked"));if(q.sanitizeMinMax(o),d){const B=d.w!==void 0&&d.w!==o.w;this.moveNode(o,d),B&&o.subGrid?o.subGrid.onResize(this.hasAnimationCSS()?o.w:void 0):this.resizeToContentCheck(B,o),delete o._orig}(d||h)&&this._writeAttr(n,o),g&&this.prepareDragDrop(o.el),LA.updateCB&&LA.updateCB(o)}),this}moveNode(A,t){const n=A._updating;n||this.engine.cleanNodes().beginUpdate(A),this.engine.moveNode(A,t),this._updateContainerHeight(),n||(this._triggerChangeEvent(),this.engine.endUpdate())}resizeToContent(A){if(!A||(A.classList.remove("size-to-content-max"),!A.clientHeight))return;const t=A.gridstackNode;if(!t)return;const n=t.grid;if(!n||A.parentElement!==n.el)return;const o=n.getCellHeight(!0);if(!o)return;let a=t.h?t.h*o:A.clientHeight,u;if(t.resizeToContentParent&&(u=A.querySelector(t.resizeToContentParent)),u||(u=A.querySelector(LA.resizeToContentParent)),!u)return;const d=A.clientHeight-u.clientHeight,h=t.h?t.h*o-d:u.clientHeight;let g;if(t.subGrid){g=t.subGrid.getRow()*t.subGrid.getCellHeight(!0);const m=t.subGrid.el.getBoundingClientRect(),v=A.getBoundingClientRect();g+=m.top-v.top}else{if(t.subGridOpts?.children?.length)return;{const m=u.firstElementChild;if(!m){console.error(`Error: GridStack.resizeToContent() widget id:${t.id} '${LA.resizeToContentParent}'.firstElementChild is null, make sure to have a div like container. Skipping sizing.`);return}g=m.getBoundingClientRect().height||h}}if(h===g)return;a+=g-h;let B=Math.ceil(a/o);const w=Number.isInteger(t.sizeToContent)?t.sizeToContent:0;w&&B>w&&(B=w,A.classList.add("size-to-content-max")),t.minH&&B<t.minH?B=t.minH:t.maxH&&B>t.maxH&&(B=t.maxH),B!==t.h&&(n._ignoreLayoutsNodeChange=!0,n.moveNode(t,{h:B}),delete n._ignoreLayoutsNodeChange)}resizeToContentCBCheck(A){LA.resizeToContentCB?LA.resizeToContentCB(A):this.resizeToContent(A)}rotate(A,t){return LA.getElements(A).forEach(n=>{const o=n.gridstackNode;if(!q.canBeRotated(o))return;const a={w:o.h,h:o.w,minH:o.minW,minW:o.minH,maxH:o.maxW,maxW:o.maxH};if(t){const d=t.left>0?Math.floor(t.left/this.cellWidth()):0,h=t.top>0?Math.floor(t.top/this.opts.cellHeight):0;a.x=o.x+d-(o.h-(h+1)),a.y=o.y+h-d}Object.keys(a).forEach(d=>{a[d]===void 0&&delete a[d]});const u=o._orig;this.update(n,a),o._orig=u}),this}margin(A){if(!(typeof A=="string"&&A.split(" ").length>1)){const t=q.parseHeight(A);if(this.opts.marginUnit===t.unit&&this.opts.margin===t.h)return}return this.opts.margin=A,this.opts.marginTop=this.opts.marginBottom=this.opts.marginLeft=this.opts.marginRight=void 0,this._initMargin(),this}getMargin(){return this.opts.margin}willItFit(A){return this.engine.willItFit(A)}_triggerChangeEvent(){if(this.engine.batchMode)return this;const A=this.engine.getDirtyNodes(!0);return A&&A.length&&(this._ignoreLayoutsNodeChange||this.engine.layoutsNodesChange(A),this._triggerEvent("change",A)),this.engine.saveInitial(),this}_triggerAddEvent(){if(this.engine.batchMode)return this;if(this.engine.addedNodes?.length){this._ignoreLayoutsNodeChange||this.engine.layoutsNodesChange(this.engine.addedNodes),this.engine.addedNodes.forEach(t=>{delete t._dirty});const A=[...this.engine.addedNodes];this.engine.addedNodes=[],this._triggerEvent("added",A)}return this}_triggerRemoveEvent(){if(this.engine.batchMode)return this;if(this.engine.removedNodes?.length){const A=[...this.engine.removedNodes];this.engine.removedNodes=[],this._triggerEvent("removed",A)}return this}_triggerEvent(A,t){const n=t?new CustomEvent(A,{bubbles:!1,detail:t}):new Event(A);let o=this;for(;o.parentGridNode;)o=o.parentGridNode.grid;return o.el.dispatchEvent(n),this}_updateContainerHeight(){if(!this.engine||this.engine.batchMode)return this;const A=this.parentGridNode;let t=this.getRow()+this._extraDragRow;const n=this.opts.cellHeight,o=this.opts.cellHeightUnit;if(!n)return this;if(!A&&!this.opts.minRow){const a=q.parseHeight(getComputedStyle(this.el).minHeight);if(a.h>0&&a.unit===o){const u=Math.floor(a.h/n);t<u&&(t=u)}}return this.el.setAttribute("gs-current-row",String(t)),this.el.style.removeProperty("min-height"),this.el.style.removeProperty("height"),t&&(this.el.style[A?"minHeight":"height"]=t*n+o),A&&q.shouldSizeToContent(A)&&A.grid.resizeToContentCBCheck(A.el),this}_prepareElement(A,t=!1,n){n=n||this._readAttr(A),A.gridstackNode=n,n.el=A,n.grid=this,n=this.engine.addNode(n,t),this._writeAttr(A,n),A.classList.add(Ue.itemClass,this.opts.itemClass);const o=q.shouldSizeToContent(n);return o?A.classList.add("size-to-content"):A.classList.remove("size-to-content"),o&&this.resizeToContentCheck(!1,n),q.lazyLoad(n)||this.prepareDragDrop(n.el),this}_writePosAttr(A,t){return(!t._moving&&!t._resizing||this._placeholder===A)&&(A.style.top=t.y?t.y===1?"var(--gs-cell-height)":`calc(${t.y} * var(--gs-cell-height))`:null,A.style.left=t.x?t.x===1?"var(--gs-column-width)":`calc(${t.x} * var(--gs-column-width))`:null,A.style.width=t.w>1?`calc(${t.w} * var(--gs-column-width))`:null,A.style.height=t.h>1?`calc(${t.h} * var(--gs-cell-height))`:null),A.setAttribute("gs-x",String(t.x)),A.setAttribute("gs-y",String(t.y)),t.w>1?A.setAttribute("gs-w",String(t.w)):A.removeAttribute("gs-w"),t.h>1?A.setAttribute("gs-h",String(t.h)):A.removeAttribute("gs-h"),this}_writeAttr(A,t){if(!t)return this;this._writePosAttr(A,t);const n={noResize:"gs-no-resize",noMove:"gs-no-move",locked:"gs-locked",id:"gs-id",sizeToContent:"gs-size-to-content"};for(const o in n)t[o]?A.setAttribute(n[o],String(t[o])):A.removeAttribute(n[o]);return this}_readAttr(A,t=!0){const n={};n.x=q.toNumber(A.getAttribute("gs-x")),n.y=q.toNumber(A.getAttribute("gs-y")),n.w=q.toNumber(A.getAttribute("gs-w")),n.h=q.toNumber(A.getAttribute("gs-h")),n.autoPosition=q.toBool(A.getAttribute("gs-auto-position")),n.noResize=q.toBool(A.getAttribute("gs-no-resize")),n.noMove=q.toBool(A.getAttribute("gs-no-move")),n.locked=q.toBool(A.getAttribute("gs-locked"));const o=A.getAttribute("gs-size-to-content");o&&(o==="true"||o==="false"?n.sizeToContent=q.toBool(o):n.sizeToContent=parseInt(o,10)),n.id=A.getAttribute("gs-id"),n.maxW=q.toNumber(A.getAttribute("gs-max-w")),n.minW=q.toNumber(A.getAttribute("gs-min-w")),n.maxH=q.toNumber(A.getAttribute("gs-max-h")),n.minH=q.toNumber(A.getAttribute("gs-min-h")),t&&(n.w===1&&A.removeAttribute("gs-w"),n.h===1&&A.removeAttribute("gs-h"),n.maxW&&A.removeAttribute("gs-max-w"),n.minW&&A.removeAttribute("gs-min-w"),n.maxH&&A.removeAttribute("gs-max-h"),n.minH&&A.removeAttribute("gs-min-h"));for(const a in n){if(!n.hasOwnProperty(a))return;!n[a]&&n[a]!==0&&a!=="sizeToContent"&&delete n[a]}return n}_setStaticClass(){const A=["grid-stack-static"];return this.opts.staticGrid?(this.el.classList.add(...A),this.el.setAttribute("gs-static","true")):(this.el.classList.remove(...A),this.el.removeAttribute("gs-static")),this}onResize(A=this.el?.clientWidth){if(!A||this.prevWidth===A)return;this.prevWidth=A,this.batchUpdate();let t=!1;return this._autoColumn&&this.parentGridNode?this.opts.column!==this.parentGridNode.w&&(this.column(this.parentGridNode.w,this.opts.layout||"list"),t=!0):t=this.checkDynamicColumn(),this._isAutoCellHeight&&this.cellHeight(),this.engine.nodes.forEach(n=>{n.subGrid&&n.subGrid.onResize()}),this._skipInitialResize||this.resizeToContentCheck(t),delete this._skipInitialResize,this.batchUpdate(!1),this}resizeToContentCheck(A=!1,t=void 0){if(this.engine){if(A&&this.hasAnimationCSS())return setTimeout(()=>this.resizeToContentCheck(!1,t),this.animationDelay);if(t)q.shouldSizeToContent(t)&&this.resizeToContentCBCheck(t.el);else if(this.engine.nodes.some(n=>q.shouldSizeToContent(n))){const n=[...this.engine.nodes];this.batchUpdate(),n.forEach(o=>{q.shouldSizeToContent(o)&&this.resizeToContentCBCheck(o.el)}),this._ignoreLayoutsNodeChange=!0,this.batchUpdate(!1),this._ignoreLayoutsNodeChange=!1}this._gsEventHandler.resizecontent&&this._gsEventHandler.resizecontent(null,t?[t]:this.engine.nodes)}}_updateResizeEvent(A=!1){const t=!this.parentGridNode&&(this._isAutoCellHeight||this.opts.sizeToContent||this.opts.columnOpts||this.engine.nodes.find(n=>n.sizeToContent));return!A&&t&&!this.resizeObserver?(this._sizeThrottle=q.throttle(()=>this.onResize(),this.opts.cellHeightThrottle),this.resizeObserver=new ResizeObserver(()=>this._sizeThrottle()),this.resizeObserver.observe(this.el),this._skipInitialResize=!0):(A||!t)&&this.resizeObserver&&(this.resizeObserver.disconnect(),delete this.resizeObserver,delete this._sizeThrottle),this}static getElement(A=".grid-stack-item"){return q.getElement(A)}static getElements(A=".grid-stack-item"){return q.getElements(A)}static getGridElement(A){return LA.getElement(A)}static getGridElements(A){return q.getElements(A)}_initMargin(){let A,t=0,n=[];typeof this.opts.margin=="string"&&(n=this.opts.margin.split(" ")),n.length===2?(this.opts.marginTop=this.opts.marginBottom=n[0],this.opts.marginLeft=this.opts.marginRight=n[1]):n.length===4?(this.opts.marginTop=n[0],this.opts.marginRight=n[1],this.opts.marginBottom=n[2],this.opts.marginLeft=n[3]):(A=q.parseHeight(this.opts.margin),this.opts.marginUnit=A.unit,t=this.opts.margin=A.h),["marginTop","marginRight","marginBottom","marginLeft"].forEach(a=>{this.opts[a]===void 0?this.opts[a]=t:(A=q.parseHeight(this.opts[a]),this.opts[a]=A.h,delete this.opts.margin)}),this.opts.marginUnit=A.unit,this.opts.marginTop===this.opts.marginBottom&&this.opts.marginLeft===this.opts.marginRight&&this.opts.marginTop===this.opts.marginRight&&(this.opts.margin=this.opts.marginTop);const o=this.el.style;return o.setProperty("--gs-item-margin-top",`${this.opts.marginTop}${this.opts.marginUnit}`),o.setProperty("--gs-item-margin-bottom",`${this.opts.marginBottom}${this.opts.marginUnit}`),o.setProperty("--gs-item-margin-right",`${this.opts.marginRight}${this.opts.marginUnit}`),o.setProperty("--gs-item-margin-left",`${this.opts.marginLeft}${this.opts.marginUnit}`),this}static getDD(){return me}static setupDragIn(A,t,n,o=document){t?.pause!==void 0&&(TA.pauseDrag=t.pause),t={appendTo:"body",helper:"clone",...t||{}},(typeof A=="string"?q.getElements(A,o):A).forEach((a,u)=>{me.isDraggable(a)||me.dragIn(a,t),n?.[u]&&(a.gridstackNode=n[u])})}movable(A,t){return this.opts.staticGrid?this:(LA.getElements(A).forEach(n=>{const o=n.gridstackNode;o&&(t?delete o.noMove:o.noMove=!0,this.prepareDragDrop(o.el))}),this)}resizable(A,t){return this.opts.staticGrid?this:(LA.getElements(A).forEach(n=>{const o=n.gridstackNode;o&&(t?delete o.noResize:o.noResize=!0,this.prepareDragDrop(o.el))}),this)}disable(A=!0){if(!this.opts.staticGrid)return this.enableMove(!1,A),this.enableResize(!1,A),this._triggerEvent("disable"),this}enable(A=!0){if(!this.opts.staticGrid)return this.enableMove(!0,A),this.enableResize(!0,A),this._triggerEvent("enable"),this}enableMove(A,t=!0){return this.opts.staticGrid?this:(A?delete this.opts.disableDrag:this.opts.disableDrag=!0,this.engine.nodes.forEach(n=>{this.prepareDragDrop(n.el),n.subGrid&&t&&n.subGrid.enableMove(A,t)}),this)}enableResize(A,t=!0){return this.opts.staticGrid?this:(A?delete this.opts.disableResize:this.opts.disableResize=!0,this.engine.nodes.forEach(n=>{this.prepareDragDrop(n.el),n.subGrid&&t&&n.subGrid.enableResize(A,t)}),this)}cancelDrag(){const A=this._placeholder?.gridstackNode;A&&(A._isExternal?(A._isAboutToRemove=!0,this.engine.removeNode(A)):A._isAboutToRemove&&LA._itemRemoving(A.el,!1),this.engine.restoreInitial())}_removeDD(A){return me.draggable(A,"destroy").resizable(A,"destroy"),A.gridstackNode&&delete A.gridstackNode._initDD,delete A.ddElement,this}_setupAcceptWidget(){if(this.opts.staticGrid||!this.opts.acceptWidgets&&!this.opts.removable)return me.droppable(this.el,"destroy"),this;let A,t;const n=(o,a,u)=>{u=u||a;const d=u.gridstackNode;if(!d)return;if(!d.grid?.el){u.style.transform=`scale(${1/this.dragTransform.xScale},${1/this.dragTransform.yScale})`;const m=u.getBoundingClientRect();u.style.left=m.x+(this.dragTransform.xScale-1)*(o.clientX-m.x)/this.dragTransform.xScale+"px",u.style.top=m.y+(this.dragTransform.yScale-1)*(o.clientY-m.y)/this.dragTransform.yScale+"px",u.style.transformOrigin="0px 0px"}let{top:h,left:g}=u.getBoundingClientRect();const B=this.el.getBoundingClientRect();g-=B.left,h-=B.top;const w={position:{top:h*this.dragTransform.xScale,left:g*this.dragTransform.yScale}};if(d._temporaryRemoved){if(d.x=Math.max(0,Math.round(g/t)),d.y=Math.max(0,Math.round(h/A)),delete d.autoPosition,this.engine.nodeBoundFix(d),!this.engine.willItFit(d)){if(d.autoPosition=!0,!this.engine.willItFit(d)){me.off(a,"drag");return}d._willFitPos&&(q.copyPos(d,d._willFitPos),delete d._willFitPos)}this._onStartMoving(u,o,w,d,t,A)}else this._dragOrResize(u,o,w,d,t,A)};return me.droppable(this.el,{accept:o=>{const a=o.gridstackNode||this._readAttr(o,!1);if(a?.grid===this)return!0;if(!this.opts.acceptWidgets)return!1;let u=!0;if(typeof this.opts.acceptWidgets=="function")u=this.opts.acceptWidgets(o);else{const d=this.opts.acceptWidgets===!0?".grid-stack-item":this.opts.acceptWidgets;u=o.matches(d)}if(u&&a&&this.opts.maxRow){const d={w:a.w,h:a.h,minW:a.minW,minH:a.minH};u=this.engine.willItFit(d)}return u}}).on(this.el,"dropover",(o,a,u)=>{let d=u?.gridstackNode||a.gridstackNode;if(d?.grid===this&&!d._temporaryRemoved)return!1;if(d?._sidebarOrig&&(d.w=d._sidebarOrig.w,d.h=d._sidebarOrig.h),d?.grid&&d.grid!==this&&!d._temporaryRemoved&&d.grid._leave(a,u),u=u||a,t=this.cellWidth(),A=this.getCellHeight(!0),!d){const B=u.getAttribute("data-gs-widget")||u.getAttribute("gridstacknode");if(B){try{d=JSON.parse(B)}catch{console.error("Gridstack dropover: Bad JSON format: ",B)}u.removeAttribute("data-gs-widget"),u.removeAttribute("gridstacknode")}d||(d=this._readAttr(u)),d._sidebarOrig={w:d.w,h:d.h}}d.grid||(d.el||(d={...d}),d._isExternal=!0,u.gridstackNode=d);const h=d.w||Math.round(u.offsetWidth/t)||1,g=d.h||Math.round(u.offsetHeight/A)||1;return d.grid&&d.grid!==this?(a._gridstackNodeOrig||(a._gridstackNodeOrig=d),a.gridstackNode=d={...d,w:h,h:g,grid:this},delete d.x,delete d.y,this.engine.cleanupNode(d).nodeBoundFix(d),d._initDD=d._isExternal=d._temporaryRemoved=!0):(d.w=h,d.h=g,d._temporaryRemoved=!0),LA._itemRemoving(d.el,!1),me.on(a,"drag",n),n(o,a,u),!1}).on(this.el,"dropout",(o,a,u)=>{const d=u?.gridstackNode||a.gridstackNode;return d&&(!d.grid||d.grid===this)&&(this._leave(a,u),this._isTemp&&this.removeAsSubGrid(d)),!1}).on(this.el,"drop",(o,a,u)=>{const d=u?.gridstackNode||a.gridstackNode;if(d?.grid===this&&!d._isExternal)return!1;const h=!!this.placeholder.parentElement,g=a!==u;this.placeholder.remove(),delete this.placeholder.gridstackNode,h&&this.opts.animate&&(this.setAnimation(!1),this.setAnimation(!0,!0));const B=a._gridstackNodeOrig;if(delete a._gridstackNodeOrig,h&&B?.grid&&B.grid!==this){const m=B.grid;m.engine.removeNodeFromLayoutCache(B),m.engine.removedNodes.push(B),m._triggerRemoveEvent()._triggerChangeEvent(),m.parentGridNode&&!m.engine.nodes.length&&m.opts.subGridDynamic&&m.removeAsSubGrid()}if(!d||(h&&(this.engine.cleanupNode(d),d.grid=this),delete d.grid?._isTemp,me.off(a,"drag"),u!==a?(u.remove(),a=u):a.remove(),this._removeDD(a),!h))return!1;const w=d.subGrid?.el?.gridstack;return q.copyPos(d,this._readAttr(this.placeholder)),q.removePositioningStyles(a),g&&(d.content||d.subGridOpts||LA.addRemoveCB)?(delete d.el,a=this.addWidget(d)):(this._prepareElement(a,!0,d),this.el.appendChild(a),this.resizeToContentCheck(!1,d),w&&(w.parentGridNode=d),this._updateContainerHeight()),this.engine.addedNodes.push(d),this._triggerAddEvent(),this._triggerChangeEvent(),this.engine.endUpdate(),this._gsEventHandler.dropped&&this._gsEventHandler.dropped({...o,type:"dropped"},B&&B.grid?B:void 0,d),!1}),this}static _itemRemoving(A,t){if(!A)return;const n=A?A.gridstackNode:void 0;!n?.grid||A.classList.contains(n.grid.opts.removableOptions.decline)||(t?n._isAboutToRemove=!0:delete n._isAboutToRemove,t?A.classList.add("grid-stack-item-removing"):A.classList.remove("grid-stack-item-removing"))}_setupRemoveDrop(){if(typeof this.opts.removable!="string")return this;const A=document.querySelector(this.opts.removable);return A?(!this.opts.staticGrid&&!me.isDroppable(A)&&me.droppable(A,this.opts.removableOptions).on(A,"dropover",(t,n)=>LA._itemRemoving(n,!0)).on(A,"dropout",(t,n)=>LA._itemRemoving(n,!1)),this):this}prepareDragDrop(A,t=!1){const n=A?.gridstackNode;if(!n)return;const o=n.noMove||this.opts.disableDrag,a=n.noResize||this.opts.disableResize,u=this.opts.staticGrid||o&&a;if((t||u)&&(n._initDD&&(this._removeDD(A),delete n._initDD),u&&A.classList.add("ui-draggable-disabled","ui-resizable-disabled"),!t))return this;if(!n._initDD){let d,h;const g=(m,v)=>{this.triggerEvent(m,m.target),d=this.cellWidth(),h=this.getCellHeight(!0),this._onStartMoving(A,m,v,n,d,h)},B=(m,v)=>{this._dragOrResize(A,m,v,n,d,h)},w=m=>{this.placeholder.remove(),delete this.placeholder.gridstackNode,delete n._moving,delete n._resizing,delete n._event,delete n._lastTried;const v=n.w!==n._orig.w,y=m.target;if(!(!y.gridstackNode||y.gridstackNode.grid!==this)){if(n.el=y,n._isAboutToRemove){const I=A.gridstackNode.grid;I._gsEventHandler[m.type]&&I._gsEventHandler[m.type](m,y),I.engine.nodes.push(n),I.removeWidget(A,!0,!0)}else q.removePositioningStyles(y),n._temporaryRemoved?(this._writePosAttr(y,n),this.engine.addNode(n)):this._writePosAttr(y,n),this.triggerEvent(m,y);this._extraDragRow=0,this._updateContainerHeight(),this._triggerChangeEvent(),this.engine.endUpdate(),m.type==="resizestop"&&(Number.isInteger(n.sizeToContent)&&(n.sizeToContent=n.h),this.resizeToContentCheck(v,n))}};me.draggable(A,{start:g,stop:w,drag:B}).resizable(A,{start:g,stop:w,resize:B}),n._initDD=!0}return me.draggable(A,o?"disable":"enable").resizable(A,a?"disable":"enable"),this}_onStartMoving(A,t,n,o,a,u){if(this.engine.cleanNodes().beginUpdate(o),this._writePosAttr(this.placeholder,o),this.el.appendChild(this.placeholder),this.placeholder.gridstackNode=o,o.grid?.el)this.dragTransform=q.getValuesFromTransformedElement(A);else if(this.placeholder&&this.placeholder.closest(".grid-stack")){const d=this.placeholder.closest(".grid-stack");this.dragTransform=q.getValuesFromTransformedElement(d)}else this.dragTransform={xScale:1,xOffset:0,yScale:1,yOffset:0};if(o.el=this.placeholder,o._lastUiPosition=n.position,o._prevYPix=n.position.top,o._moving=t.type==="dragstart",o._resizing=t.type==="resizestart",delete o._lastTried,t.type==="dropover"&&o._temporaryRemoved&&(this.engine.addNode(o),o._moving=!0),this.engine.cacheRects(a,u,this.opts.marginTop,this.opts.marginRight,this.opts.marginBottom,this.opts.marginLeft),t.type==="resizestart"){const d=this.getColumn()-o.x,h=(this.opts.maxRow||Number.MAX_SAFE_INTEGER)-o.y;me.resizable(A,"option","minWidth",a*Math.min(o.minW||1,d)).resizable(A,"option","minHeight",u*Math.min(o.minH||1,h)).resizable(A,"option","maxWidth",a*Math.min(o.maxW||Number.MAX_SAFE_INTEGER,d)).resizable(A,"option","maxWidthMoveLeft",a*Math.min(o.maxW||Number.MAX_SAFE_INTEGER,o.x+o.w)).resizable(A,"option","maxHeight",u*Math.min(o.maxH||Number.MAX_SAFE_INTEGER,h)).resizable(A,"option","maxHeightMoveUp",u*Math.min(o.maxH||Number.MAX_SAFE_INTEGER,o.y+o.h))}}_dragOrResize(A,t,n,o,a,u){const d={...o._orig};let h,g=this.opts.marginLeft,B=this.opts.marginRight,w=this.opts.marginTop,m=this.opts.marginBottom;const v=Math.round(u*.1),y=Math.round(a*.1);if(g=Math.min(g,y),B=Math.min(B,y),w=Math.min(w,v),m=Math.min(m,v),t.type==="drag"){if(o._temporaryRemoved)return;const N=n.position.top-o._prevYPix;o._prevYPix=n.position.top,this.opts.draggable.scroll!==!1&&q.updateScrollPosition(A,n.position,N);const D=n.position.left+(n.position.left>o._lastUiPosition.left?-B:g),P=n.position.top+(n.position.top>o._lastUiPosition.top?-m:w);d.x=Math.round(D/a),d.y=Math.round(P/u);const H=this._extraDragRow;if(this.engine.collide(o,d)){const O=this.getRow();let sA=Math.max(0,d.y+o.h-O);this.opts.maxRow&&O+sA>this.opts.maxRow&&(sA=Math.max(0,this.opts.maxRow-O)),this._extraDragRow=sA}else this._extraDragRow=0;if(this._extraDragRow!==H&&this._updateContainerHeight(),o.x===d.x&&o.y===d.y)return}else if(t.type==="resize"){if(d.x<0||(q.updateScrollResize(t,A,u),d.w=Math.round((n.size.width-g)/a),d.h=Math.round((n.size.height-w)/u),o.w===d.w&&o.h===d.h)||o._lastTried&&o._lastTried.w===d.w&&o._lastTried.h===d.h)return;const N=n.position.left+g,D=n.position.top+w;d.x=Math.round(N/a),d.y=Math.round(D/u),h=!0}o._event=t,o._lastTried=d;const I={x:n.position.left+g,y:n.position.top+w,w:(n.size?n.size.width:o.w*a)-g-B,h:(n.size?n.size.height:o.h*u)-w-m};if(this.engine.moveNodeCheck(o,{...d,cellWidth:a,cellHeight:u,rect:I,resizing:h})){o._lastUiPosition=n.position,this.engine.cacheRects(a,u,w,B,m,g),delete o._skipDown,h&&o.subGrid&&o.subGrid.onResize(),this._extraDragRow=0,this._updateContainerHeight();const N=t.target;o._sidebarOrig||this._writePosAttr(N,o),this.triggerEvent(t,N)}}triggerEvent(A,t){let n=this;for(;n.parentGridNode;)n=n.parentGridNode.grid;n._gsEventHandler[A.type]&&n._gsEventHandler[A.type](A,t)}_leave(A,t){t=t||A;const n=t.gridstackNode;if(!n||(t.style.transform=t.style.transformOrigin=null,me.off(A,"drag"),n._temporaryRemoved))return;n._temporaryRemoved=!0,this.engine.removeNode(n),n.el=n._isExternal&&t?t:A;const o=n._sidebarOrig;n._isExternal&&this.engine.cleanupNode(n),n._sidebarOrig=o,this.opts.removable===!0&&LA._itemRemoving(A,!0),A._gridstackNodeOrig?(A.gridstackNode=A._gridstackNodeOrig,delete A._gridstackNodeOrig):n._isExternal&&this.engine.restoreInitial()}};rn.renderCB=(e,A)=>{e&&A?.content&&(e.textContent=A.content)},rn.resizeToContentParent=".grid-stack-item-content",rn.Utils=q,rn.Engine=Ii,rn.GDRev="12.4.2";var Vm={class:"d-layout"},Pm=["gs-id","gs-x","gs-y","gs-w","gs-h","gs-locked","gs-no-resize","gs-no-move","gs-min-w","gs-min-h","gs-max-w","gs-max-h"],Gm=(0,r.defineComponent)({name:"DLayout",__name:"layout",props:{modelValue:{default:()=>[]},column:{default:24},cellHeight:{default:60},draggable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},disable:{type:Boolean,default:!1},animate:{type:Boolean,default:!0},float:{type:Boolean,default:!0},removable:{type:Boolean,default:!1},removableOptions:{}},emits:["update:modelValue","added","removed","changed","dragStart","dragStop","resizeStart","resizeStop"],setup(e,{expose:A,emit:t}){const n=e,o=t,a=(0,r.ref)();let u=null;const d=async()=>{a.value&&(await(0,r.nextTick)(),u&&u.destroy(!1),u=rn.init({column:n.column,cellHeight:n.cellHeight,disableDrag:!(n.draggable&&!n.disable),disableResize:!(n.resizable&&!n.disable),animate:n.animate,float:n.float,removable:n.removable,removableOptions:n.removableOptions},a.value),u.on("added",(m,v)=>{const y=v[0];y&&(o("added",h(y)),B())}),u.on("removed",(m,v)=>{const y=v[0];y&&(o("removed",h(y)),B())}),u.on("change",()=>{B(),o("changed",(u?.save()||[]).map(m=>h(m)))}),u.on("dragstart",(m,v)=>{v&&o("dragStart",m,h(v.gridstackNode||v))}),u.on("dragstop",(m,v)=>{v&&o("dragStop",m,h(v.gridstackNode||v))}),u.on("resizestart",(m,v)=>{v&&o("resizeStart",m,h(v.gridstackNode||v))}),u.on("resizestop",(m,v)=>{v&&o("resizeStop",m,h(v.gridstackNode||v))}))},h=m=>({id:m.id||m.el?.getAttribute("gs-id")||"",x:m.x||0,y:m.y||0,w:m.w||1,h:m.h||1,locked:m.locked||!1,noResize:m.noResize||!1,noMove:m.noMove||!1,minW:m.minW,minH:m.minH,maxW:m.maxW,maxH:m.maxH}),g=async()=>{if(!u||!a.value)return;await(0,r.nextTick)();const m=u.engine.nodes;new Set(m.map(y=>y.id));const v=new Set(n.modelValue.map(y=>y.id));m.forEach(y=>{if(!v.has(y.id||"")){const I=y.el;I&&u&&u.removeWidget(I,!1)}}),n.modelValue.forEach(y=>{const I=m.find(N=>N.id===y.id);if(I)I.el&&u&&u.update(I.el,{x:y.x,y:y.y,w:y.w,h:y.h,locked:y.locked,noResize:y.noResize,noMove:y.noMove,minW:y.minW,minH:y.minH,maxW:y.maxW,maxH:y.maxH});else{if(!a.value||!u)return;const N=a.value.querySelector(`[gs-id="${y.id}"]`);N&&u.makeWidget(N)}})},B=()=>{u&&o("update:modelValue",u.save().map(m=>{const v={id:m.id||"",x:m.x||0,y:m.y||0,w:m.w||1,h:m.h||1},y=n.modelValue.find(I=>I.id===v.id);return y&&Object.keys(y).forEach(I=>{["id","x","y","w","h"].includes(I)||(v[I]=y[I])}),v}))},w=(0,r.computed)(()=>n.modelValue);return(0,r.watch)(()=>n.modelValue,async()=>{u&&(await(0,r.nextTick)(),g())},{deep:!0}),(0,r.watch)(()=>[n.column,n.cellHeight,n.draggable,n.resizable,n.disable,n.animate,n.float,n.removable],()=>{d()}),(0,r.onMounted)(()=>{d()}),(0,r.onBeforeUnmount)(()=>{u&&(u.destroy(!1),u=null)}),A({addItem:async m=>{if(u&&a.value){await(0,r.nextTick)();const v=a.value.querySelector(`[gs-id="${m.id}"]`);v&&(u.makeWidget(v),u.update(v,{x:m.x,y:m.y,w:m.w,h:m.h,locked:m.locked,noResize:m.noResize,noMove:m.noMove,minW:m.minW,minH:m.minH,maxW:m.maxW,maxH:m.maxH}))}},removeItem:m=>{if(u&&a.value){const v=a.value.querySelector(`[gs-id="${m}"]`);v&&u.removeWidget(v,!1)}},clear:()=>{u&&u.removeAll(!1)},getGrid:()=>u}),(m,v)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",Vm,[(0,r.createElementVNode)("div",{ref_key:"gridContainerRef",ref:a},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(w.value,y=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:y.id,"gs-id":y.id,"gs-x":y.x,"gs-y":y.y,"gs-w":y.w,"gs-h":y.h,"gs-locked":y.locked,"gs-no-resize":y.noResize,"gs-no-move":y.noMove,"gs-min-w":y.minW,"gs-min-h":y.minH,"gs-max-w":y.maxW,"gs-max-h":y.maxH,class:"d-layout-item"},[(0,r.renderSlot)(m.$slots,"item",{item:y})],8,Pm))),128))],512)]))}}),zm=Gm,Ql=ft(zm),JA=(e,A="",t=!1)=>t?`${e}pt`:A?`${e}${A}`:`${e}px`,Ye=(e,A=0)=>e==null||isNaN(e)?0:Number(Number(e).toFixed(A)),Xm=e=>e*3/4,$m=e=>e*4/3,Ym=["onMousedown"],Wm={key:2,class:"d-draggable__mask"},Jm=(0,r.defineComponent)({name:"DDraggable",__name:"draggable",props:{index:{},mask:{type:Boolean,default:!0},scale:{default:1},readonly:{type:Boolean,default:!1},resize:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},step:{default:1},zIndex:{default:1},isActiveBgTransparent:{type:Boolean,default:!1},left:{default:0},top:{default:0},width:{},height:{},activeFlag:{type:Boolean,default:!1},isPt:{type:Boolean,default:!1}},emits:["focus","blur","over","out"],setup(e,{expose:A,emit:t}){let n=0;const o=e,a=t,u=[{classname:"left"},{classname:"right"},{classname:"top"},{classname:"bottom"},{classname:"top-left"},{classname:"top-right"},{classname:"bottom-left"},{classname:"bottom-right"}],d={right:{resizeX:!0},left:{resizeX:!0,moveLeft:!0,invertX:!0},top:{resizeY:!0,moveTop:!0,invertY:!0},bottom:{resizeY:!0},"bottom-right":{resizeX:!0,resizeY:!0},"bottom-left":{resizeX:!0,resizeY:!0,moveLeft:!0,invertX:!0},"top-right":{resizeX:!0,resizeY:!0,moveTop:!0,invertY:!0},"top-left":{resizeX:!0,resizeY:!0,moveLeft:!0,moveTop:!0,invertX:!0,invertY:!0}},h=(0,r.ref)(),g=(0,r.ref)(),B=()=>g.value?.firstElementChild,w=(0,r.ref)(0),m=(0,r.ref)(0),v=(0,r.ref)(0),y=(0,r.ref)(0),I=(0,r.ref)(!1),N=(0,r.ref)(!1),D=(0,r.ref)(!1);let P=null;const H=(0,r.computed)(()=>o.scale),O=(0,r.computed)(()=>!o.readonly&&!o.disabled),sA=(0,r.computed)(()=>O.value&&(D.value||N.value||I.value)),J=(0,r.computed)(()=>!o.disabled&&o.mask),cA=(0,r.computed)(()=>{const Z=8*H.value;return{width:JA(Z,"",o.isPt),height:JA(Z,"",o.isPt)}}),lA=(0,r.computed)(()=>({fontSize:JA(14*H.value,"",o.isPt),padding:JA(4*H.value,"",o.isPt),"border-radius":JA(2*H.value,"",o.isPt)})),oA=(0,r.computed)(()=>{const Z={zIndex:D.value?9999:o.zIndex,top:JA(y.value,"",o.isPt),width:JA(w.value,"",o.isPt),height:JA(m.value,"",o.isPt),left:JA(v.value,"",o.isPt)};return D.value&&o.isActiveBgTransparent&&O.value&&(Z.backgroundColor="color-mix(in srgb, var(--j-color-primary-bg) 60%, transparent)"),Z});(0,r.watch)(()=>o.width,Z=>S(Z)),(0,r.watch)(()=>o.height,Z=>eA(Z)),(0,r.watch)(()=>o.left,Z=>U(Z)),(0,r.watch)(()=>o.top,Z=>K(Z)),(0,r.watch)(w,Z=>{h.value&&(h.value.style.width=JA(Z,"",o.isPt),o.resize&&B()?.style&&(B().style.width=JA(Z,"",o.isPt)))}),(0,r.watch)(m,Z=>{h.value&&(h.value.style.height=JA(Z,"",o.isPt),o.resize&&B()?.style&&(B().style.height=JA(Z,"",o.isPt)))}),(0,r.watch)(()=>o.activeFlag,Z=>{iA(Z)});const iA=Z=>{D.value=Z},AA=Z=>Z===void 0?0:o.isPt?$m(Z):Z,S=Z=>{w.value=Ye(AA(Z))||(B()?.offsetWidth??0)},eA=Z=>{m.value=Ye(AA(Z))||(B()?.offsetHeight??0)},U=Z=>{v.value=Ye(AA(Z))},K=Z=>{y.value=Ye(AA(Z))},b=()=>({index:o.index,width:BA(w.value),height:BA(m.value),left:BA(v.value),top:BA(y.value)}),R=Z=>{const _=b();switch(Z){case"focus":a("focus",_);break;case"blur":a("blur",_);break;case"over":a("over",_);break;case"out":a("out",_);break}},k=()=>{S(o.width),eA(o.height),U(o.left),K(o.top),iA(o.activeFlag)},T=Z=>{v.value=Z},M=Z=>{y.value=Z},Y=Z=>{const _=8*H.value/2,F={};return Z.split("-").forEach(x=>{F[x]=JA(-_,"",o.isPt)}),F},tA=Z=>{N.value=Z},BA=Z=>o.isPt?Xm(Z):Z,bA=(Z=!0)=>{n+=1,I.value=!0,Z&&R("focus")},nA=()=>{n=Math.max(0,n-1),I.value=!1,R("blur")},W=()=>{P?.(),P=null},$=(Z,_)=>{let F=Z.clientX,x=Z.clientY,z=0,G=0,dA=0,fA=!1;const QA=document.body.style.userSelect;document.body.style.userSelect="none";const EA=()=>{if(dA=0,z===0&&G===0)return;const KA=z,ee=G;z=0,G=0,_(KA,ee)},NA=KA=>{I.value=!0;const ee=KA.clientX-F,qA=KA.clientY-x;if(F=KA.clientX,x=KA.clientY,!fA){fA=!0,_(ee,qA);return}z+=ee,G+=qA,dA||(dA=requestAnimationFrame(EA))},OA=()=>{dA&&(cancelAnimationFrame(dA),EA()),W(),nA()};W(),document.addEventListener("mousemove",NA),document.addEventListener("mouseup",OA),P=()=>{dA&&(cancelAnimationFrame(dA),dA=0),document.body.style.userSelect=QA,document.removeEventListener("mousemove",NA),document.removeEventListener("mouseup",OA)}},uA=(Z,_,F)=>{if(Z.resizeX){let x=_*o.step;Z.invertX&&(x=-x),Z.moveLeft&&(v.value=Ye(v.value-x)),w.value=Ye(w.value+x)}if(Z.resizeY){let x=F*o.step;Z.invertY&&(x=-x),Z.moveTop&&(y.value=Ye(y.value-x)),m.value=Ye(m.value+x)}},wA=(Z,_)=>{if(!O.value)return;const F=d[_];bA(!1),$(Z,(x,z)=>uA(F,x,z))},HA=()=>{n>0||(N.value=!1,R("out"))},xA=()=>{n>0||O.value&&(N.value=!0,R("over"))},gA=Z=>{if(!O.value)return;const _=D.value;D.value=!0,bA(!_),$(Z,(F,x)=>{v.value=Ye(v.value+F*o.step),y.value=Ye(y.value+x*o.step)})};return(0,r.onMounted)(()=>{k()}),(0,r.onBeforeUnmount)(()=>{W()}),A({setActive:iA,setLeft:T,setTop:M,setOverActive:tA}),(Z,_)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["d-draggable",{"d-draggable--active":(D.value||N.value)&&O.value},{"d-draggable--pt":e.isPt&&O.value},{"d-draggable--move":I.value},{"d-draggable--click":e.disabled}]),onMousedown:(0,r.withModifiers)(gA,["stop"]),onMouseenter:(0,r.withModifiers)(xA,["stop"]),onMouseleave:(0,r.withModifiers)(HA,["stop"]),style:(0,r.normalizeStyle)(oA.value)},[(0,r.createElementVNode)("div",{class:"d-draggable__wrapper",ref_key:"wrapper",ref:h},[sA.value?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[e.isPt?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"d-draggable__line d-draggable__line--label",style:(0,r.normalizeStyle)(lA.value)}," X:"+(0,r.toDisplayString)(v.value)+", Y:"+(0,r.toDisplayString)(y.value),5))],64)):(0,r.createCommentVNode)("",!0),O.value?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},(0,r.renderList)(u,F=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:F.classname},[D.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(["d-draggable__range",`d-draggable__range--${F.classname}`]),style:(0,r.normalizeStyle)([cA.value,Y(F.classname)]),onMousedown:(0,r.withModifiers)(x=>wA(x,F.classname),["stop"])},null,46,Ym)):(0,r.createCommentVNode)("",!0)],64))),64)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",{class:"d-draggable__item",ref_key:"item",ref:g},[(0,r.renderSlot)(Z.$slots,"default")],512),J.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",Wm)):(0,r.createCommentVNode)("",!0)],512)],38))}}),Zm=Jm,El=ft(Zm),Fl=e=>{const A=jm(e.components);return{formConfig:e.form,componentList:A}},Ul=(e,A)=>{let t={},n=[];const o={},a=e;t=a.form;const u={};return a.components.forEach(d=>{const h=A[d.type];u[d.containerId]=u[d.containerId]||[];const g={id:d.id,name:d.name,type:d.type,dragType:h?.dragType||"component",componentName:h?.componentName||"",runtimeType:h?.runtimeType,groupId:d.groupId,config:d.config,isInput:h?.isInput!==!1,containerId:d.containerId,level:d.level};h?.dragType==="container"&&(g.children=[]),o[g.id]=g,u[d.containerId].push(g)}),Object.keys(u).forEach(d=>{o[d]&&(o[d].children=u[d])}),n=u.form||[],{formConfig:t,componentList:n,componentDic:o}},Jr=(e,A)=>{const t={ver:"j1",form:{...e},components:[],db:{}};return bl(A||[],t.components),t},bl=(e,A)=>{e.forEach(t=>{if(t.type==="pkey")return;const n={id:t.id,name:t.name,type:t.type,runtimeType:t.runtimeType||t.componentName||t.type,groupId:t.groupId||"",config:t.config,containerId:t.containerId,level:t.level};t.dragType==="container"&&bl(t.children||[],A),A.push(n)})},jm=e=>{const A={},t={};return e.forEach(n=>{A[n.containerId]=A[n.containerId]||[];const o={id:n.id,type:n.runtimeType,slot:n.groupId,config:{rule:[]}};n.config&&Object.keys(n.config).forEach(a=>{if(a==="required"){n.config.required&&o.config?.rule?.push({required:!0,message:n.config.requiredMsg||"请输入"});return}if(a==="patterns"){n.config.patterns.forEach(u=>{u.reg&&u.msg&&o.config?.rule?.push({pattern:new RegExp(u.reg),message:`请输入${u.msg||""}`})});return}o.config[a]=n.config[a]}),n.type==="pkey"&&(o.config.isPkey=!0),A[n.containerId].push(o),t[n.id]=o}),Object.keys(A).forEach(n=>{const o=t[n];if(o){const a=A[n];if(["j-tabs","j-collapse"].includes(o.type||"")&&o.config?.groups){const u={};a.forEach(d=>{if(d.slot!==void 0&&d.slot!==null){const h=d.slot.toString();u[h]||(u[h]=[]),delete d.slot,u[h].push(d)}}),o.children=o.config.groups.map(d=>{const h=u[d._i]||[],g={label:d.label};d.active&&o.type==="j-collapse"&&(g.active=d.active);let B;if(o.type==="j-tabs"&&o.config?.tabKey&&o.config?.options.length>0){const m=o.config.options.find(v=>v.label===d._i);m&&(B=({formData:v})=>({display:m.value.includes(v[o.config?.tabKey||""])?m.display:!m.display}))}const w={config:g,children:h};return B&&(w.getCompConfig=B),w}),delete o.config.groups}else o.children=a}}),A.form},Hl=(e,A,t,n,o,a,u,d)=>{const h=(0,r.ref)(),g=(0,r.reactive)({}),B=(0,r.computed)(()=>{const b=[];return Object.keys(g).forEach(R=>{const k=g[R];k.dragType==="component"&&k.type!=="pkey"&&b.push(k)}),b}),w=(b=[],R)=>{const k=A?.value?.init;typeof k=="function"&&k(b,R)},m=b=>o?o(b,{componentDic:g,components:B.value,configData:h.value.config}):{},v=(b,R)=>{if(h.value?.id===b)return;const k=g[b]||R;if(k?h.value=k:b===t.id?h.value=t:h.value=null,h.value){const T=a[h.value.type];T?(w(T,h.value.config),m(h.value.type)):w([])}else w([]);R&&re("dragClick",{id:R.id})},y=()=>e.value.$el.getBoundingClientRect(),I=b=>b===t.id?t:g[b]||{},N=b=>{const R=[];if(b===t.id)R.push({id:b,name:t.name});else{const k=g[b];if(k){R.push({id:b,name:k.name});const T=N(k.containerId);R.push(...T)}}return R},D=(b,R)=>{const k=g[R];if(k===void 0)return!1;const T=k.containerId;return b===T?!0:T===t.id?!1:D(b,T)},P=b=>n?n(b)||{}:{},H=(b,R,k,T)=>{if(d){const M=I(b);return d(k.componentType,{container:M,groupId:R,configData:k},T)}return!1},O=({name:b,type:R,dragType:k,isInput:T,componentName:M,runtimeType:Y},tA,BA,bA,nA=!1)=>{const W=P(R);if(W.id=gt(),W.span=24,W.componentType=R,sA(tA,W.componentType))return;H(tA,bA,W,!0);const $={id:W.id,name:b,type:R,runtimeType:Y,componentName:M||"",dragType:k||"component",containerId:tA,isInput:!!T,level:g[tA]?g[tA].level+1:1,config:W,isNewAdd:!nA,groupId:bA};return $.dragType==="container"&&($.children=[]),g[$.id]=$,I(tA).children?.splice(BA,0,$),$},sA=(b,R)=>!!(I(b).config.componentType==="gridtable"&&["divider","label","text","textEditor","viewTable","card","collapse","tabs","qrcode","barcode","tableLayout"].includes(R)),J=(b,R,k=!1)=>{let T=null;const M=I(b).children,Y=M?.findIndex(tA=>tA.id===R)||0;if(k&&M&&M.length>1){let tA=Y+1;Y>0&&(tA=Y-1),T=M[tA]}return M?.splice(Y,1),T?.id},cA=(b,R,k,T)=>{const M=I(R).children,Y=b.containerId!==R;b.containerId=R,b.groupId=T,M?.splice(k,0,b),H(R,T,b.config,Y)&&(eA(),v(b.id))},lA=b=>{let R="";const k=I(b);return k&&(k.children&&k.children.length>0&&k.children.forEach(T=>{lA(T.id)}),R=J(k.containerId,b,!0)||"",delete g[b]),h.value&&h.value.id===b&&(h.value=null,A.value.init([])),R},oA=(b,R=[])=>{const k=I(b);if(k&&k.children&&k.children.length>0){const T=[];k.children.forEach(M=>{M.groupId&&R.includes(M.groupId)&&T.push(M.id)}),T.forEach(M=>{lA(M),delete g[M]})}},iA=(b,R)=>{const k=I(b);k&&(k.children&&k.children.length>0&&k.children.forEach(T=>{T.groupId===R&&lA(T.id)}),delete g[b])},AA=b=>{const R=En(I(b));R.id=gt(),R.config.id=R.id,g[R.id]=R;const k=I(R.containerId).children,T=k?.findIndex(M=>M.id===b)||0;k?.splice(T+1,0,R)},S=()=>{t.children=[],xu(g),h.value&&(re("dragClick",{id:""}),h.value=null,A.value.init([]))},eA=()=>{h.value&&(re("dragClick",{id:""}),h.value=null,A.value.init([]))},U=b=>{const R=h.value,k=I(R.containerId).children,T=k?.findIndex(M=>M.id===R.id)||0;lA(R.id),(0,r.nextTick)(()=>{const M=u[b],Y=P(b);Y.id=R.id,Y.span=R.config.span,Y.componentType=b,Y.table=R.config.table,Y.field=R.config.field,R.config.isSubTable&&(Y.isSubTable=R.config.isSubTable);const tA={id:Y.id,name:M.name,type:b,runtimeType:M.runtimeType,componentName:M.componentName||"",dragType:R.dragType,groupId:R.groupId,containerId:R.containerId,isInput:R.isInput,level:R.level,config:Y,isNewAdd:!0};g[tA.id]=tA,k?.splice(T,0,tA)})},K=b=>{re("dragAddByClick",b)};return(0,r.provide)("d-drag-design-provide",{activedComponent:h,getDesignLocals:y,getComponent:I,getParentComponents:N,isMyChildComponent:D,selectComponent:v,addComponent:O,deleteComponent:lA,copyComponent:AA,removeComponentFromContainer:J,addComponentToContainer:cA,top:t,deleteChildren:iA,deleteChildrens:oA}),{activedComponent:h,clearComponents:S,changeComponent:U,schemaComponentDic:g,clearSelect:eA,addComponent:O,addComponentByTable:K,designComponentList:B}},qm=(0,r.defineComponent)({__name:"formDesignItem",props:{componentData:{type:Object,default:()=>({})},globalConfig:{type:Object,default:()=>({})}},setup(e){const A=e,{t}=(0,pe.useAppInject)(),n=(0,r.computed)(()=>A.componentData.config?.notShowLabel?"":A.componentData.config?.label||""),o=(0,r.computed)(()=>n.value===""?0:A.componentData.config?.labelWidth===void 0&&A.globalConfig.labelWidth!==void 0?`${A.globalConfig.labelWidth}px`:A.componentData.config?.labelWidth?`${A.componentData.config?.labelWidth}px`:void 0),a=(0,r.computed)(()=>{const u={...A.componentData?.config};return u.size===void 0&&(u.size=A.globalConfig.size),u.display=!0,u});return(u,d)=>{const h=(0,r.resolveComponent)("j-comp"),g=(0,r.resolveComponent)("el-form-item");return e.componentData.isInput?((0,r.openBlock)(),(0,r.createBlock)(g,{key:0,"label-width":o.value,label:(0,r.unref)(t)(n.value),"label-position":A.componentData.config?.labelPosition||e.globalConfig?.labelPosition,rules:e.componentData.config?.required?[{required:!0,message:""}]:[]},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(h,{type:e.componentData?.componentName||e.componentData?.type,config:a.value,modelValue:e.componentData?.config.defaultValue},null,8,["type","config","modelValue"])]),_:1},8,["label-width","label","label-position","rules"])):e.componentData?.children?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.componentData?.componentName),(0,r.mergeProps)({key:1},e.componentData?.config,{"global-config":e.globalConfig,"component-data":e.componentData}),null,16,["global-config","component-data"])):((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.componentData?.componentName),(0,r.normalizeProps)((0,r.mergeProps)({key:2},e.componentData?.config)),null,16))}}}),Il=qm,Aw={class:"d-form-design j-block"},ew={class:"d-form-design-left"},tw={class:"d-form-design-component-list"},nw={class:"j-component-tool"},rw={class:"j-component-tool-name"},ow={class:"d-form-design-center"},iw={class:"d-form-design-container"},sw={key:0,class:"j-block d-form-design-empty"},aw={class:"d-form-design-right"},lw={class:"d-form-design-panel-title"},cw={style:{margin:"0","font-size":"14px"}},uw={class:"d-form-design-panel"},dw=(0,r.defineComponent)({name:"DFormDesign",__name:"formDesign",props:{components:{default:()=>[]},componentConfigs:{default:()=>({})},componentInit:{type:Function,default:void 0},containerAddComponent:{type:Function,default:void 0},componentConfigInit:{type:Function,default:void 0},componentConfigChange:{type:Function,default:void 0},componentConfigValidate:{type:Function,default:void 0},flowComponents:{default:()=>[]},flowInit:{type:Function,default:void 0},flowComponentConfigInit:{type:Function,default:void 0},flowComponentConfigChange:{type:Function,default:void 0},flowComponentConfigs:{default:()=>({})},actions:{}},setup(e,{expose:A}){const t=e,{t:n,error:o}=(0,pe.useAppInject)(),a=(0,r.reactive)({name:"表单",id:"form",type:"form",level:0,children:[],dragType:"container",componentName:"",containerId:"",isInput:!1,config:{}}),u=(0,r.ref)([]),d=t.components.length;for(let nA=0;nA<d;nA++)u.value.push(nA);t.componentInit&&(a.config=t.componentInit("form")||{});const h={},g=[];t.components.forEach(({children:nA})=>{nA.forEach(W=>{h[W.type]=W,W.dragType=W.dragType||"component",W.isInput!==!1&&(W.isInput=!0,g.push({label:W.name,value:W.type}))})});const B=nA=>{nA.forEach(W=>{W.type==="d-input-flow"&&(W.config=W.config||{},W.config.flowComponents=t.flowComponents,W.config.flowInit=t.flowInit,W.config.flowComponentConfigInit=$=>{t.flowComponentConfigInit&&($.designComponents=sA.value,$.component=D.value,t.flowComponentConfigInit($))},W.config.flowComponentConfigs=t.flowComponentConfigs,W.config.flowComponentConfigChange=t.flowComponentConfigChange),W.children&&B(W.children)})},w={};Object.keys(t.componentConfigs||{}).forEach(nA=>{const{hasBase:W,isInput:$,hasTwoPlaceholder:uA,hasPlaceholder:wA,hasSpan:HA,hasLabel:xA,bindTable:gA,labelTitle:Z}=h[nA]||{hasBase:!1},_=[{id:"componentType",type:"j-select",config:{label:"类型",allowClear:!1,display:$,options:g}},{id:"label",type:"j-input",config:{label:Z||"标题"},getCompConfig:({formData:x})=>({display:xA!==!1&&!x.notShowLabel})},{id:"notShowLabel",type:"j-switch",config:{label:"不显示"+(Z||"标题"),activeValue:!0,inactiveValue:!1},getCompConfig:({formData:x})=>({display:xA!==!1&&!x.isSubTable})},{id:"labelWidth",type:"j-number",config:{label:"标题宽度"},getCompConfig:({formData:x})=>({display:$&&!x.notShowLabel&&!x.isSubTable})},{id:"labelPosition",type:"j-radio",config:{label:"标题对齐",options:[{value:"right",label:"右"},{value:"left",label:"左"},{value:"top",label:"顶部"}]},getCompConfig:({formData:x})=>({display:$&&!x.notShowLabel&&!x.isSubTable})},{id:"placeholder",type:"j-input",config:{display:$&&!uA&&wA!==!1,label:"占位提示"}},{id:"startPlaceholder",type:"j-input",config:{display:!!uA,label:"开始占位"}},{id:"endPlaceholder",type:"j-input",config:{display:!!uA,label:"结束占位"}},{id:"span",type:"j-slider",config:{label:"表单栅栏",min:6,max:24,showTooltip:!0,step:6,showStops:!0,defautValue:24},getCompConfig:({formData:x})=>({display:HA!==!1&&!x.isSubTable})},{id:"width",type:"j-number",config:{label:"单元格宽度",min:1},getCompConfig:({formData:x})=>({display:!!x.isSubTable})}],F={type:"j-collapse",config:{defaultValue:[]},children:[]};W!==!1&&F.children?.push({config:{label:"基础信息"},children:[..._]}),F.children?.push(...t.componentConfigs[nA]),F.children?.forEach((x,z)=>{F.config?.defaultValue.push(`_collapse${z}`)}),B(F.children||[]),w[nA]=[F]});const m=nA=>{const{value:W}=nA||{};nA.id==="componentType"&&H(W),D.value&&t.componentConfigChange&&t.componentConfigChange(D.value.type,{configRef:N,configData:D.value.config,...nA})},v=(nA,W)=>{t.componentConfigInit&&t.componentConfigInit(nA,{configRef:N,...W})},y=(nA,W,$)=>{let uA=!1;return W.container.type==="gridtable"?(!W.configData.isSubTable||$)&&(W.configData.isSubTable=!0,uA=!0):W.configData.isSubTable&&(uA=!0,W.configData.isSubTable=!1),t.containerAddComponent&&t.containerAddComponent(nA,W),uA},I=(0,r.ref)(),N=(0,r.ref)(),{activedComponent:D,clearComponents:P,changeComponent:H,schemaComponentDic:O,designComponentList:sA}=Hl(I,N,a,t.componentInit,v,w,h,y),J=(0,r.computed)(()=>D.value?.id!="form"?D.value?`${D.value.name}-${D.value.id}`:"":D.value?`${D.value.name}`:"");(0,r.provide)("dui-design-provide",{designItemName:Il});const cA=()=>{P()},lA=()=>{t.componentInit&&(a.config=t.componentInit("form")||{}),P()},oA=()=>Jr(a.config,a.children||[]),iA=nA=>{const W=Ul(nA,h);a.config=W.formConfig,a.children?.push(...W.componentList),Object.keys(W.componentDic).forEach($=>{O[$]=W.componentDic[$]})},AA=()=>S(Jr(a.config,a.children||[]).components),S=nA=>{for(const W of nA)if(t.componentConfigValidate&&!t.componentConfigValidate(W.type,{configData:W.config,errorTip:o}))return!1;return!0},eA=(0,r.ref)(),U=(0,r.ref)(),K=(0,r.ref)({});let b=0;const R=nA=>{if(U.value)b=0,U.value.init(nA||[]);else{if(b>600){console.warn("表单组件加载超时");return}b++,setTimeout(()=>{R(nA)},100)}},k=()=>{},T=()=>{};return A({getSchema:()=>oA(),setSchema:nA=>iA(nA),reset:()=>lA(),validate:()=>AA(),preview:()=>{const nA=Jr(a.config,a.children||[]);eA.value.open("表单预览",nA.form.layerType);const{formConfig:W,componentList:$}=Fl(nA);K.value=W,(0,r.nextTick)(()=>{R($)})},clear:cA}),(nA,W)=>{const $=(0,r.resolveComponent)("j-icon"),uA=(0,r.resolveComponent)("d-drag-tool"),wA=(0,r.resolveComponent)("el-collapse-item"),HA=(0,r.resolveComponent)("el-collapse"),xA=(0,r.resolveComponent)("el-empty"),gA=(0,r.resolveComponent)("d-drag-form-list"),Z=(0,r.resolveComponent)("el-row"),_=(0,r.resolveComponent)("d-drag-container"),F=(0,r.resolveComponent)("j-form"),x=(0,r.resolveComponent)("j-layer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",Aw,[(0,r.createElementVNode)("div",ew,[(0,r.createElementVNode)("div",tw,[(0,r.createVNode)(HA,{modelValue:u.value,"onUpdate:modelValue":W[0]||(W[0]=z=>u.value=z)},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.components,(z,G)=>((0,r.openBlock)(),(0,r.createBlock)(wA,{key:G,title:z.name,name:G},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(z.children,(dA,fA)=>((0,r.openBlock)(),(0,r.createBlock)(uA,{key:fA,config:dA},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",nw,[(0,r.createVNode)($,{class:"j-component-tool-icon",icon:dA.icon,size:14},null,8,["icon"]),(0,r.createElementVNode)("div",rw,(0,r.toDisplayString)((0,r.unref)(n)(dA.name)),1)])]),_:2},1032,["config"]))),128))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])]),(0,r.createElementVNode)("div",ow,[(0,r.createElementVNode)("div",iw,[(0,r.createVNode)(_,{ref_key:"dragContainer",ref:I,class:"d-form-design-drag-container","is-component-container":!1,"component-data":a},{default:(0,r.withCtx)(()=>[!a.children||a.children.length===0?((0,r.openBlock)(),(0,r.createElementBlock)("div",sw,[(0,r.createVNode)(xA,{description:(0,r.unref)(n)("请从左侧拖拽组件到此处"),"image-size":100},null,8,["description"])])):((0,r.openBlock)(),(0,r.createBlock)(Z,{key:1},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(gA,{"component-list":a.children,"global-config":a.config},null,8,["component-list","global-config"])]),_:1}))]),_:1},8,["component-data"])])]),(0,r.withDirectives)((0,r.createElementVNode)("div",aw,[(0,r.createElementVNode)("div",lw,[(0,r.createElementVNode)("span",cw,(0,r.toDisplayString)(`${J.value}`),1)]),(0,r.createElementVNode)("div",uw,[(0,r.createVNode)(F,{config:{labelPosition:"top",size:"small"},collapseAnimate:!1,style:{padding:"0"},ref_key:"configRef",ref:N,onChange:m},null,512)])],512),[[r.vShow,(0,r.unref)(D)]]),(0,r.createVNode)(x,{ref_key:"previewFormLayerRef",ref:eA,width:1e3,height:800,onOk:k,onClosed:T},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(F,{config:K.value,"is-preview":!0,ref_key:"previewFormRef",ref:U,actions:e.actions},null,8,["config","actions"])]),_:1},512)])}}}),fw=dw,_l=ft(fw,[Il]),gw=(e,A)=>{const t={ver:"V3",indexPage:{...e},components:[]};return Sl(A||[],t.components),t},Sl=(e,A)=>{e.forEach(t=>{const n={id:t.id,name:t.name,type:t.type,runtimeType:t.runtimeType||t.componentName||t.type,groupId:t.groupId||"",config:t.config,containerId:t.containerId,level:t.level};t.dragType==="container"&&Sl(t.children||[],A),A.push(n)})},hw=(e,A)=>{let t={},n=[];const o={};if(e.ver==="V3"){const a=e;t=a.indexPage;const u={};a.components.forEach(d=>{const h=A[d.type];if(!h)return;u[d.containerId]=u[d.containerId]||[];const g={id:d.id,name:d.name,type:d.type,dragType:h.dragType||"component",componentName:h.componentName||"",runtimeType:h.runtimeType,groupId:d.groupId,config:d.config,isInput:!1,containerId:d.containerId,level:d.level};o[g.id]=g,u[d.containerId].push(g),g.dragType==="container"&&(g.children=[])}),Object.keys(u).forEach(d=>{o[d]&&(o[d].children=u[d])}),n=u.indexPage||[]}return{pageConfig:t,componentList:n,componentDic:o}},Bw=(0,r.defineComponent)({name:"DIndexDesignItem",__name:"indexDesignItem",props:{componentData:{type:Object,default:()=>({})},globalConfig:{type:Object,default:()=>({})}},setup(e){return(A,t)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.componentData?.componentName),(0,r.mergeProps)(e.componentData?.config,{"global-config":e.globalConfig,"component-data":e.componentData}),null,16,["global-config","component-data"]))}}),xl=Bw,pw={class:"d-index-design j-block"},mw={class:"d-index-design-left"},ww={class:"j-component-list"},Cw={class:"j-component-tool"},vw={class:"j-component-tool-name"},yw={class:"d-index-design-center"},Qw={class:"design-container"},Ew={key:0,class:"j-block design-empty"},Fw={class:"d-index-design-right"},Uw={class:"d-index-design-panel-title"},bw={style:{margin:"0","font-size":"14px"}},Hw={class:"d-index-design-panel"},Iw=(0,r.defineComponent)({name:"DIndexDesign",__name:"indexDesign",props:{components:{type:Array,default:()=>[]},componentConfigs:{type:Object,default:()=>({})},componentInit:Function,containerAddComponent:Function,componentConfigInit:Function,componentConfigChange:Function,flowComponents:{type:Array,default:()=>[]},flowInit:Function,flowComponentConfigInit:Function,flowComponentConfigChange:Function,flowComponentConfigs:{type:Object,default:()=>({})},actions:{type:Object,default:()=>({})}},setup(e,{expose:A}){const{t}=(0,pe.useAppInject)(),n=e,o=U=>{U.forEach(K=>{K.type==="d-input-flow"&&(K.config=K.config||{},K.config.flowComponents=n.flowComponents,K.config.flowInit=n.flowInit,K.config.flowComponentConfigInit=b=>{n.flowComponentConfigInit&&(b.designComponents=N.value,b.component=v.value,n.flowComponentConfigInit(b))},K.config.flowComponentConfigs=n.flowComponentConfigs,K.config.flowComponentConfigChange=n.flowComponentConfigChange),K.children&&o(K.children)})},a=(0,r.reactive)({name:"页面",id:"indexPage",type:"indexPage",level:0,children:[],dragType:"container",componentName:"",containerId:"",isInput:!1,config:{}});n.componentInit&&(a.config=n.componentInit("indexPage")||{});const u={},d=[];n.components.forEach(({children:U})=>{U.forEach(K=>{u[K.type]=K,K.dragType=K.dragType||"component",d.push({label:K.name,value:K.type})})});const h={};Object.keys(n.componentConfigs).forEach(U=>{const{hasBase:K}=u[U]||{hasBase:!1},b=[{id:"label",type:"j-input",config:{label:"名称"}}],R={type:"j-collapse",config:{defaultValue:[]},children:[]};K!==!1&&(R.children?.push({config:{label:"基础信息"},children:[...b]}),R.config?.defaultValue.push("_collapse0")),R.children?.push(...n.componentConfigs[U]),o(R.children||[]),h[U]=[R]});const g=U=>{v.value&&n.componentConfigChange&&n.componentConfigChange(v.value.type,{configRef:m,configData:v.value.config,...U})},B=(U,K)=>{n.componentConfigInit&&n.componentConfigInit(U,{configRef:m,...K})},w=(0,r.ref)(),m=(0,r.ref)(),{activedComponent:v,clearComponents:y,schemaComponentDic:I,designComponentList:N}=Hl(w,m,a,n.componentInit,B,h,u,n.containerAddComponent),D=(0,r.computed)(()=>v.value?.id!="form"?v.value?`${v.value.name}-${v.value.id}`:"":v.value?`${v.value.name}`:""),P=(0,r.ref)([]),H=n.components.length;for(let U=0;U<H;U++)P.value.push(U);(0,r.provide)("dui-design-provide",{designItemName:xl});const O=()=>{n.componentInit&&(a.config=n.componentInit("indexPage")||{}),y()},sA=()=>(console.log("pValidate"),!0),J=()=>gw(a.config,a.children||[]),cA=U=>{const K=hw(U,u);a.config=K.pageConfig,a.children?.push(...K.componentList),Object.keys(K.componentDic).forEach(b=>{I[b]=K.componentDic[b]})},lA=(0,r.ref)(),oA=(0,r.ref)();(0,r.ref)(""),(0,r.reactive)({formConfig:{}});let iA=0;const AA=U=>{if(oA.value)iA=0,oA.value.init(U);else{if(iA>600){console.warn("组件加载超时");return}iA++,setTimeout(()=>{AA(U)},100)}},S=()=>{},eA=()=>{};return A({reset:O,validate:sA,getSchema:J,setSchema:cA}),(U,K)=>{const b=(0,r.resolveComponent)("j-icon"),R=(0,r.resolveComponent)("d-drag-tool"),k=(0,r.resolveComponent)("el-collapse-item"),T=(0,r.resolveComponent)("el-collapse"),M=(0,r.resolveComponent)("el-empty"),Y=(0,r.resolveComponent)("d-drag-index-list"),tA=(0,r.resolveComponent)("d-drag-container"),BA=(0,r.resolveComponent)("j-form"),bA=(0,r.resolveComponent)("j-page"),nA=(0,r.resolveComponent)("j-layer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",pw,[(0,r.createElementVNode)("div",mw,[(0,r.createElementVNode)("div",ww,[(0,r.createVNode)(T,{modelValue:P.value,"onUpdate:modelValue":K[0]||(K[0]=W=>P.value=W)},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.components,(W,$)=>((0,r.openBlock)(),(0,r.createBlock)(k,{key:$,title:W.name,name:$},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(W.children,(uA,wA)=>((0,r.openBlock)(),(0,r.createBlock)(R,{key:wA,config:uA},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",Cw,[(0,r.createVNode)(b,{class:"j-component-tool-icon",icon:uA.icon,size:14},null,8,["icon"]),(0,r.createElementVNode)("div",vw,(0,r.toDisplayString)((0,r.unref)(t)(uA.name)),1)])]),_:2},1032,["config"]))),128))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])]),(0,r.createElementVNode)("div",yw,[(0,r.createElementVNode)("div",Qw,[(0,r.createVNode)(tA,{ref_key:"dragContainer",ref:w,class:"design-drag-container","is-component-container":!1,"component-data":a},{default:(0,r.withCtx)(()=>[!a.children||a.children.length===0?((0,r.openBlock)(),(0,r.createElementBlock)("div",Ew,[(0,r.createVNode)(M,{description:(0,r.unref)(t)("请从左侧拖拽组件到此处"),"image-size":100},null,8,["description"])])):((0,r.openBlock)(),(0,r.createBlock)(Y,{key:1,"component-list":a.children,"global-config":a.config},null,8,["component-list","global-config"]))]),_:1},8,["component-data"])])]),(0,r.withDirectives)((0,r.createElementVNode)("div",Fw,[(0,r.createElementVNode)("div",Uw,[(0,r.createElementVNode)("span",bw,(0,r.toDisplayString)(`${D.value}`),1)]),(0,r.createElementVNode)("div",Hw,[(0,r.createVNode)(BA,{config:{labelPosition:"top",size:"small"},collapseAnimate:!1,style:{padding:"0"},ref_key:"configRef",ref:m,onChange:g},null,512)])],512),[[r.vShow,(0,r.unref)(v)&&h[(0,r.unref)(v).type]]]),(0,r.createVNode)(nA,{ref_key:"previewLayerRef",ref:lA,"has-btns":!1,onOk:S,onClosed:eA},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(bA,{ref_key:"previewRef",ref:oA,actions:e.actions},null,8,["actions"])]),_:1},512)])}}}),_w=Iw,Dl=ft(_w,[xl]),jA=_u({Vue:()=>r,Vue2:()=>{},del:()=>Dw,install:()=>Sw,isVue2:()=>!1,isVue3:()=>!0,set:()=>xw});Su(jA,require("vue"));var uE=!1,dE=!0,fE=void 0;function Sw(){}function xw(e,A,t){return Array.isArray(e)?(e.length=Math.max(e.length,A),e.splice(A,1,t),t):(e[A]=t,t)}function Dw(e,A){if(Array.isArray(e)){e.splice(A,1);return}delete e[A]}var Zr=(e,A)=>{const t=e.__vccOpts||e;for(const[n,o]of A)t[n]=o;return t},Nw=(0,jA.defineComponent)({name:"LineRuler",props:{scale:Number,thick:Number,palette:Object,index:Number,start:Number,vertical:Boolean,value:Number,isShowReferLine:Boolean},emits:["onMouseDown","onRelease","onRemove"],setup(e,{emit:A}){const t=(0,jA.ref)(0),n=(0,jA.ref)(!0);(0,jA.onMounted)(()=>{t.value=e.value});const o=B=>{n.value=B>=0},a=(0,jA.computed)(()=>{const B=(t.value-e.start)*e.scale;o(B);const w=B+"px";return e.vertical?{top:w}:{left:w}}),u=(0,jA.computed)(()=>{var B;const w=`1px solid ${(B=e.palette)==null?void 0:B.lineColor}`,m=e.vertical?{borderTop:w}:{borderLeft:w};return{cursor:e.isShowReferLine?e.vertical?"ns-resize":"ew-resize":"none",...m}}),d=(0,jA.computed)(()=>e.vertical?{left:e.thick+"px"}:{top:e.thick+"px"});return{startValue:t,showLine:n,offset:a,borderCursor:u,actionStyle:d,handleDown:B=>{const w=e.vertical?B.clientY:B.clientX,m=t.value;A("onMouseDown");const v=I=>{const N=e.vertical?I.clientY:I.clientX;t.value=Math.round(m+(N-w)/e.scale)},y=()=>{A("onRelease",t.value,e.index),document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",y)};document.addEventListener("mousemove",v),document.addEventListener("mouseup",y)},handleRemove:()=>{A("onRemove",e.index)}}}}),Lw={class:"value"};function Tw(e,A,t,n,o,a){return(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"line",style:(0,r.normalizeStyle)([e.offset,e.borderCursor]),onMousedown:A[1]||(A[1]=(...u)=>e.handleDown&&e.handleDown(...u))},[(0,r.createElementVNode)("div",{class:"action",style:(0,r.normalizeStyle)(e.actionStyle)},[(0,r.createElementVNode)("span",{class:"del",onClick:A[0]||(A[0]=(...u)=>e.handleRemove&&e.handleRemove(...u))},"×"),(0,r.createElementVNode)("span",Lw,(0,r.toDisplayString)(e.startValue),1)],4)],36)),[[r.vShow,e.showLine]])}var kw=Zr(Nw,[["render",Tw],["__scopeId","data-v-5dea28d6"]]),Mw=e=>e<=.25?40:e<=.5?20:e<=1?10:e<=2?5:e<=4?2:1,Nl=.83,Ow=(e,A,t,n,o,a)=>{const{scale:u,width:d,height:h,ratio:g,palette:B}=o,{bgColor:w,fontColor:m,shadowColor:v,longfgColor:y,shortfgColor:I}=B;if(e.scale(g,g),e.clearRect(0,0,d,h),e.fillStyle=w,e.fillRect(0,0,d,h),n){const oA=(t-A)*u,iA=n*u;e.fillStyle=v,a?e.fillRect(oA,0,iA,h*3/8):e.fillRect(0,oA,d*3/8,iA)}const N=Mw(u),D=N*u,P=N*10,H=P*u,O=Math.floor(A/N)*N,sA=Math.floor(A/P)*P,J=(O-A)/N*D,cA=(sA-A)/P*H,lA=A+Math.ceil((a?d:h)/u);e.beginPath(),e.fillStyle=m,e.strokeStyle=y;for(let oA=sA,iA=0;oA<lA;oA+=P,iA++){const AA=cA+iA*H+.5;a?e.moveTo(AA,0):e.moveTo(0,AA),e.save(),a?e.translate(AA,h*.4):e.translate(d*.4,AA),a||e.rotate(-Math.PI/2),e.scale(Nl/g,Nl/g),e.fillText(oA.toString(),4*g,7*g),e.restore(),a?e.lineTo(AA,h*9/16):e.lineTo(d*9/16,AA)}e.stroke(),e.closePath(),e.beginPath(),e.strokeStyle=I;for(let oA=O,iA=0;oA<lA;oA+=N,iA++){const AA=J+iA*D+.5;a?e.moveTo(AA,0):e.moveTo(0,AA),oA%P!==0&&(a?e.lineTo(AA,h*1/4):e.lineTo(d*1/4,AA))}e.stroke(),e.closePath(),e.setTransform(1,0,0,1,0,0)},Kw=(0,jA.defineComponent)({name:"CanvasRuler",props:{showIndicator:Boolean,valueNum:Number,scale:Number,ratio:Number,palette:Object,vertical:Boolean,start:Number,width:Number,height:Number,selectStart:Number,selectLength:Number},emits:["onAddLine","update:showIndicator","update:valueNum"],setup(e,{emit:A}){const t=(0,jA.reactive)({canvasContext:null});let n=1;const o=(0,jA.ref)(null);(0,jA.onMounted)(()=>{n=e.ratio||window.devicePixelRatio||1,a(),u(n),d(n)});const a=()=>{t.canvasContext=o.value&&o.value.getContext("2d")},u=g=>{if(o.value){o.value.width=e.width*g,o.value.height=e.height*g;const B=t.canvasContext;B&&(B.font=`${12*g}px -apple-system,
|
|
29
29
|
"Helvetica Neue", ".SFNSText-Regular",
|
|
30
30
|
"SF UI Text", Arial, "PingFang SC", "Hiragino Sans GB",
|
|
31
|
-
"Microsoft YaHei", "WenQuanYi Zen Hei", sans-serif`,B.lineWidth=1,B.textBaseline="middle")}},d=g=>{const B={scale:e.scale,width:e.width,height:e.height,palette:e.palette,ratio:g};t.canvasContext&&Mw(t.canvasContext,e.start,e.selectStart,e.selectLength,B,!e.vertical)};return(0,Ae.watch)(()=>e.start,()=>d(n)),(0,Ae.watch)([()=>e.width,()=>e.height],()=>{u(n),d(n)}),{handle:(g,B)=>{const m=((v,y,I)=>Math.round(y+v/I))(e.vertical?g.offsetY:g.offsetX,e.start,e.scale);switch(B){case"click":A("onAddLine",m);break;case"enter":A("update:valueNum",m),A("update:showIndicator",!0);break;default:A("update:valueNum",m);break}},canvas:o}}});function Kw(e,A,t,n,o,a){return(0,r.openBlock)(),(0,r.createElementBlock)("canvas",{ref:"canvas",class:"ruler",onClick:A[0]||(A[0]=u=>e.handle(u,"click")),onMouseenter:A[1]||(A[1]=u=>e.handle(u,"enter")),onMousemove:A[2]||(A[2]=u=>e.handle(u,"move")),onMouseleave:A[3]||(A[3]=u=>e.$emit("update:showIndicator",!1))},null,544)}var Rw=(0,Ae.defineComponent)({name:"RulerWrapper",components:{CanvasRuler:Zr(Ow,[["render",Kw]]),RulerLine:Tw},props:{scale:Number,ratio:Number,thick:Number,palette:Object,vertical:{type:Boolean,default:!0},width:{type:Number,default:200},height:{type:Number,default:200},start:{type:Number,default:0},lines:{type:Array,default:()=>[]},selectStart:{type:Number},selectLength:{type:Number},isShowReferLine:{type:Boolean}},setup(e){const A=(0,Ae.ref)(!1),t=(0,Ae.ref)(0),n=(0,Ae.computed)(()=>e.vertical?"v-container":"h-container"),o=(0,Ae.computed)(()=>{const g={width:`calc(100% - ${e.thick}px)`,height:`${e.thick+1}px`,left:`${e.thick}px`},B={width:`${e.thick&&e.thick+1}px`,height:`calc(100% - ${e.thick}px)`,top:`${e.thick}px`};return e.vertical?B:g}),a=(0,Ae.computed)(()=>{var g;const B=(t.value-e.start)*e.scale;let w="top",m="borderLeft";return w=e.vertical?"top":"left",m=e.vertical?"borderBottom":"borderLeft",{[w]:B+"px",[m]:`1px solid ${(g=e.palette)==null?void 0:g.lineColor}`}}),u=g=>{e.lines.push(g)},d=(g,B)=>{const w=g-e.start,m=(e.vertical?e.height:e.width)/e.scale;w<0||w>m?h(B):e.lines[B]=g},h=g=>{e.lines.splice(g,1)};return{showIndicator:A,valueNum:t,rwClassName:n,rwStyle:o,indicatorStyle:a,handleNewLine:u,handleLineRelease:d,handleLineRemove:h}}}),Vw={class:"lines"},Pw={class:"value"};function Gw(e,A,t,n,o,a){const u=(0,r.resolveComponent)("CanvasRuler"),d=(0,r.resolveComponent)("RulerLine");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(e.rwClassName),style:(0,r.normalizeStyle)(e.rwStyle)},[(0,r.createVNode)(u,{vertical:e.vertical,scale:e.scale,width:e.width,height:e.height,start:e.start,ratio:e.ratio,"select-start":e.selectStart,"select-length":e.selectLength,palette:e.palette,valueNum:e.valueNum,"onUpdate:valueNum":A[0]||(A[0]=h=>e.valueNum=h),showIndicator:e.showIndicator,"onUpdate:showIndicator":A[1]||(A[1]=h=>e.showIndicator=h),onOnAddLine:e.handleNewLine},null,8,["vertical","scale","width","height","start","ratio","select-start","select-length","palette","valueNum","showIndicator","onOnAddLine"]),(0,r.withDirectives)((0,r.createElementVNode)("div",Vw,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.lines,(h,g)=>((0,r.openBlock)(),(0,r.createBlock)(d,{key:h+g,index:g,value:h>>0,scale:e.scale,start:e.start,thick:e.thick,palette:e.palette,vertical:e.vertical,"is-show-refer-line":e.isShowReferLine,onOnRemove:e.handleLineRemove,onOnRelease:e.handleLineRelease},null,8,["index","value","scale","start","thick","palette","vertical","is-show-refer-line","onOnRemove","onOnRelease"]))),128))],512),[[r.vShow,e.isShowReferLine]]),(0,r.withDirectives)((0,r.createElementVNode)("div",{class:"indicator",style:(0,r.normalizeStyle)(e.indicatorStyle)},[(0,r.createElementVNode)("div",Pw,(0,r.toDisplayString)(e.valueNum),1)],4),[[r.vShow,e.showIndicator]])],6)}var zw=Zr(Rw,[["render",Gw],["__scopeId","data-v-b6c23352"]]),Xw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAAXNSR0IArs4c6QAAAopJREFUOE/FlE9IVEEcx7+/N9ouds1Mu0QUSFZYdIgoUqQoKPBQHsKozpXE7jbTO/U8xLJvn6usBHWQ6hBFXupSkQeVbh0KJEPp0sH+eLGTsKs77xcj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QJ8xZk+pVBpuNBqXUoUiEvi+P56fzTpo6+SbwHNg1lo7WzTITGEKXFlZeeB53tVCpa3CK8AFa+1cBgvD8LKIXAQOJkkyICJDeYVBEJS6u7s/qeoLa+1o+l9TqXNuBLhmjDlbqVQ+5ICjInIfOBPH8W9jzGCR5YmJiRNxHM+papgqzqDvgSlr7VTernPuO3An3c9bBt74vv+yrdaKyLDv+/1Sq9UGPc97nY9EVuycU2AQOA7cAm4Dr4D5TvVxHB9rKo2iaEFVp621Ln96FEUngaOqGmSxabVqsh3a2h+x1h5qQjNrae/yE4+iaCwDJkky73neTuBZe129Xk+H+BS4l7ZqLVIZ2BhzuFKpvMsDVXXWGPMxFdAedOfcKeCRqj7MYrUhpz09PfXl5eXrectFWXXODQHpOq2qd/95o/JXr6ura3J1dXU6SZIfwKKIHAD2tVYMPBGRx77vN10UXtO85fTkmZmZHUtLSzUR2QXsBhaAL6r6DXhbrVYXi1yss59GqOgub/bN3Z7v6X/tb9Zmp/q/kN8s+lJb8oEAAAAASUVORK5CYII=",Yw=(0,Ae.defineComponent)({name:"SketchRule",components:{RulerWrapper:zw},props:{eyeIcon:{type:String},closeEyeIcon:{type:String},scale:{type:Number,default:1},ratio:{type:Number},thick:{type:Number,default:16},palette:Object,startX:{type:Number},startY:{type:Number,default:0},width:{type:Number,default:200},height:{type:Number,default:200},shadow:{type:Object,default:()=>({x:0,y:0,width:0,height:0})},lines:{type:Object,default:()=>({h:[],v:[]})},isShowReferLine:{type:Boolean,default:!0}},emits:["onCornerClick"],setup(e,{emit:A}){let t=(0,Ae.ref)(!0);t.value=e.isShowReferLine;const n=(0,Ae.computed)(()=>{function u(d,h){return Object.keys(d).forEach(g=>{g&&d.hasOwnProperty(g)&&(typeof h.key=="object"?d[g]=u(d[g],h[g]):h.hasOwnProperty(g)&&(d[g]=h[g]))}),d}return u({bgColor:"rgba(225,225,225, 0)",longfgColor:"#BABBBC",shortfgColor:"#C8CDD0",fontColor:"#7D8694",shadowColor:"#E8E8E8",lineColor:"#EB5648",borderColor:"#DADADC",cornerActiveColor:"rgb(235, 86, 72, 0.6)",menu:{bgColor:"#fff",dividerColor:"#DBDBDB",listItem:{textColor:"#415058",hoverTextColor:"#298DF8",disabledTextColor:"rgba(65, 80, 88, 0.4)",bgColor:"#fff",hoverBgColor:"#F2F2F2"}}},e.palette||{})}),o=(0,Ae.computed)(()=>({backgroundImage:t.value?`url(${e.eyeIcon||Xw})`:`url(${e.closeEyeIcon||$w})`,width:e.thick+"px",height:e.thick+"px",borderRight:`1px solid ${n.value.borderColor}`,borderBottom:`1px solid ${n.value.borderColor}`})),a=u=>{t.value=!t.value,A("onCornerClick",t.value)};return(0,Ae.watch)([()=>e.isShowReferLine],()=>{t.value=e.isShowReferLine}),{showReferLine:t,paletteCpu:n,cornerStyle:o,onCornerClick:a}}}),Ww={id:"mb-ruler",class:"style-ruler mb-ruler"};function Jw(e,A,t,n,o,a){const u=(0,r.resolveComponent)("RulerWrapper");return(0,r.openBlock)(),(0,r.createElementBlock)("div",Ww,[(0,r.createVNode)(u,{vertical:!1,width:e.width,height:e.thick,"is-show-refer-line":e.showReferLine,thick:e.thick,ratio:e.ratio,start:e.startX,lines:e.lines.h,"select-start":e.shadow.x,"select-length":e.shadow.width,scale:e.scale,palette:e.paletteCpu},null,8,["width","height","is-show-refer-line","thick","ratio","start","lines","select-start","select-length","scale","palette"]),(0,r.createVNode)(u,{vertical:!0,width:e.thick,height:e.height,"is-show-refer-line":e.showReferLine,thick:e.thick,ratio:e.ratio,start:e.startY,lines:e.lines.v,"select-start":e.shadow.y,"select-length":e.shadow.height,scale:e.scale,palette:e.paletteCpu},null,8,["width","height","is-show-refer-line","thick","ratio","start","lines","select-start","select-length","scale","palette"]),(0,r.createElementVNode)("a",{class:"corner",style:(0,r.normalizeStyle)(e.cornerStyle),onClick:A[0]||(A[0]=(...d)=>e.onCornerClick&&e.onCornerClick(...d))},null,4)])}var Zw=Zr(Yw,[["render",Jw]]),jw=Hu(((e,A)=>{(function(t,n){typeof e=="object"&&typeof A<"u"?A.exports=n():typeof define=="function"&&define.amd?define(n):(t=typeof globalThis<"u"?globalThis:t||self,t.html2canvas=n())})(e,(function(){"use strict";var t=function(s,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,l){c.__proto__=l}||function(c,l){for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(c[f]=l[f])},t(s,i)};function n(s,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(s,i);function c(){this.constructor=s}s.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}var o=function(){return o=Object.assign||function(i){for(var c,l=1,f=arguments.length;l<f;l++){c=arguments[l];for(var p in c)Object.prototype.hasOwnProperty.call(c,p)&&(i[p]=c[p])}return i},o.apply(this,arguments)};function a(s,i,c,l){function f(p){return p instanceof c?p:new c(function(C){C(p)})}return new(c||(c=Promise))(function(p,C){function Q(V){try{L(l.next(V))}catch(X){C(X)}}function E(V){try{L(l.throw(V))}catch(X){C(X)}}function L(V){V.done?p(V.value):f(V.value).then(Q,E)}L((l=l.apply(s,i||[])).next())})}function u(s,i){var c={label:0,sent:function(){if(p[0]&1)throw p[1];return p[1]},trys:[],ops:[]},l,f,p,C;return C={next:Q(0),throw:Q(1),return:Q(2)},typeof Symbol=="function"&&(C[Symbol.iterator]=function(){return this}),C;function Q(L){return function(V){return E([L,V])}}function E(L){if(l)throw new TypeError("Generator is already executing.");for(;c;)try{if(l=1,f&&(p=L[0]&2?f.return:L[0]?f.throw||((p=f.return)&&p.call(f),0):f.next)&&!(p=p.call(f,L[1])).done)return p;switch(f=0,p&&(L=[L[0]&2,p.value]),L[0]){case 0:case 1:p=L;break;case 4:return c.label++,{value:L[1],done:!1};case 5:c.label++,f=L[1],L=[0];continue;case 7:L=c.ops.pop(),c.trys.pop();continue;default:if(p=c.trys,!(p=p.length>0&&p[p.length-1])&&(L[0]===6||L[0]===2)){c=0;continue}if(L[0]===3&&(!p||L[1]>p[0]&&L[1]<p[3])){c.label=L[1];break}if(L[0]===6&&c.label<p[1]){c.label=p[1],p=L;break}if(p&&c.label<p[2]){c.label=p[2],c.ops.push(L);break}p[2]&&c.ops.pop(),c.trys.pop();continue}L=i.call(s,c)}catch(V){L=[6,V],f=0}finally{l=p=0}if(L[0]&5)throw L[1];return{value:L[0]?L[1]:void 0,done:!0}}}function d(s,i,c){if(c||arguments.length===2)for(var l=0,f=i.length,p;l<f;l++)(p||!(l in i))&&(p||(p=Array.prototype.slice.call(i,0,l)),p[l]=i[l]);return s.concat(p||i)}for(var h=(function(){function s(i,c,l,f){this.left=i,this.top=c,this.width=l,this.height=f}return s.prototype.add=function(i,c,l,f){return new s(this.left+i,this.top+c,this.width+l,this.height+f)},s.fromClientRect=function(i,c){return new s(c.left+i.windowBounds.left,c.top+i.windowBounds.top,c.width,c.height)},s.fromDOMRectList=function(i,c){var l=Array.from(c).find(function(f){return f.width!==0});return l?new s(l.left+i.windowBounds.left,l.top+i.windowBounds.top,l.width,l.height):s.EMPTY},s.EMPTY=new s(0,0,0,0),s})(),g=function(s,i){return h.fromClientRect(s,i.getBoundingClientRect())},B=function(s){var i=s.body,c=s.documentElement;if(!i||!c)throw new Error("Unable to get document size");return new h(0,0,Math.max(Math.max(i.scrollWidth,c.scrollWidth),Math.max(i.offsetWidth,c.offsetWidth),Math.max(i.clientWidth,c.clientWidth)),Math.max(Math.max(i.scrollHeight,c.scrollHeight),Math.max(i.offsetHeight,c.offsetHeight),Math.max(i.clientHeight,c.clientHeight)))},w=function(s){for(var i=[],c=0,l=s.length;c<l;){var f=s.charCodeAt(c++);if(f>=55296&&f<=56319&&c<l){var p=s.charCodeAt(c++);(p&64512)===56320?i.push(((f&1023)<<10)+(p&1023)+65536):(i.push(f),c--)}else i.push(f)}return i},m=function(){for(var s=[],i=0;i<arguments.length;i++)s[i]=arguments[i];if(String.fromCodePoint)return String.fromCodePoint.apply(String,s);var c=s.length;if(!c)return"";for(var l=[],f=-1,p="";++f<c;){var C=s[f];C<=65535?l.push(C):(C-=65536,l.push((C>>10)+55296,C%1024+56320)),(f+1===c||l.length>16384)&&(p+=String.fromCharCode.apply(String,l),l.length=0)}return p},v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=typeof Uint8Array>"u"?[]:new Uint8Array(256),I=0;I<v.length;I++)y[v.charCodeAt(I)]=I;for(var N="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",D=typeof Uint8Array>"u"?[]:new Uint8Array(256),P=0;P<N.length;P++)D[N.charCodeAt(P)]=P;for(var H=function(s){var i=s.length*.75,c=s.length,l,f=0,p,C,Q,E;s[s.length-1]==="="&&(i--,s[s.length-2]==="="&&i--);var L=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(i):new Array(i),V=Array.isArray(L)?L:new Uint8Array(L);for(l=0;l<c;l+=4)p=D[s.charCodeAt(l)],C=D[s.charCodeAt(l+1)],Q=D[s.charCodeAt(l+2)],E=D[s.charCodeAt(l+3)],V[f++]=p<<2|C>>4,V[f++]=(C&15)<<4|Q>>2,V[f++]=(Q&3)<<6|E&63;return L},O=function(s){for(var i=s.length,c=[],l=0;l<i;l+=2)c.push(s[l+1]<<8|s[l]);return c},sA=function(s){for(var i=s.length,c=[],l=0;l<i;l+=4)c.push(s[l+3]<<24|s[l+2]<<16|s[l+1]<<8|s[l]);return c},J=5,cA=11,aA=2,oA=cA-J,iA=65536>>J,AA=(1<<J)-1,S=iA+(1024>>J)+32,eA=65536>>cA,U=(1<<oA)-1,K=function(s,i,c){return s.slice?s.slice(i,c):new Uint16Array(Array.prototype.slice.call(s,i,c))},b=function(s,i,c){return s.slice?s.slice(i,c):new Uint32Array(Array.prototype.slice.call(s,i,c))},R=function(s,i){var c=H(s),l=Array.isArray(c)?sA(c):new Uint32Array(c),f=Array.isArray(c)?O(c):new Uint16Array(c),p=24,C=K(f,p/2,l[4]/2),Q=l[5]===2?K(f,(p+l[4])/2):b(l,Math.ceil((p+l[4])/4));return new k(l[0],l[1],l[2],l[3],C,Q)},k=(function(){function s(i,c,l,f,p,C){this.initialValue=i,this.errorValue=c,this.highStart=l,this.highValueIndex=f,this.index=p,this.data=C}return s.prototype.get=function(i){var c;if(i>=0){if(i<55296||i>56319&&i<=65535)return c=this.index[i>>J],c=(c<<aA)+(i&AA),this.data[c];if(i<=65535)return c=this.index[iA+(i-55296>>J)],c=(c<<aA)+(i&AA),this.data[c];if(i<this.highStart)return c=S-eA+(i>>cA),c=this.index[c],c+=i>>J&U,c=this.index[c],c=(c<<aA)+(i&AA),this.data[c];if(i<=1114111)return this.data[this.highValueIndex]}return this.errorValue},s})(),T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",M=typeof Uint8Array>"u"?[]:new Uint8Array(256),Y=0;Y<T.length;Y++)M[T.charCodeAt(Y)]=Y;var tA="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1A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LAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLA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AwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAd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AcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAB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EAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB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HgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXA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AAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAB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AUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",BA=50,UA=1,nA=2,W=3,$=4,uA=5,mA=7,bA=8,_A=9,fA=10,Z=11,_=12,F=13,x=14,z=15,G=16,dA=17,gA=18,EA=19,wA=20,DA=21,MA=22,RA=23,WA=24,te=25,ot=26,Ot=27,wt=28,it=29,st=30,_i=31,Kt=32,sn=33,Gn=34,zn=35,an=36,at=37,jr=38,Xn=39,rA=40,lA=41,SA=42,OA=43,Oe=[9001,65288],Ct="!",KA="×",vt="÷",Rt=R(tA),He=[st,an],$n=[UA,nA,W,uA],qr=[fA,bA],XA=[Ot,ot],ln=$n.concat(qr),$e=[jr,Xn,rA,Gn,zn],Si=[z,F],Ao=function(s,i){i===void 0&&(i="strict");var c=[],l=[],f=[];return s.forEach(function(p,C){var Q=Rt.get(p);if(Q>BA?(f.push(!0),Q-=BA):f.push(!1),["normal","auto","loose"].indexOf(i)!==-1&&[8208,8211,12316,12448].indexOf(p)!==-1)return l.push(C),c.push(G);if(Q===$||Q===Z){if(C===0)return l.push(C),c.push(st);var E=c[C-1];return ln.indexOf(E)===-1?(l.push(l[C-1]),c.push(E)):(l.push(C),c.push(st))}if(l.push(C),Q===_i)return c.push(i==="strict"?DA:at);if(Q===SA||Q===it)return c.push(st);if(Q===OA)return p>=131072&&p<=196605||p>=196608&&p<=262141?c.push(at):c.push(st);c.push(Q)}),[l,c,f]},xi=function(s,i,c,l){var f=l[c];if(Array.isArray(s)?s.indexOf(f)!==-1:s===f)for(var p=c;p<=l.length;){p++;var C=l[p];if(C===i)return!0;if(C!==fA)break}if(f===fA)for(var p=c;p>0;){p--;var Q=l[p];if(Array.isArray(s)?s.indexOf(Q)!==-1:s===Q)for(var E=c;E<=l.length;){E++;var C=l[E];if(C===i)return!0;if(C!==fA)break}if(Q!==fA)break}return!1},kl=function(s,i){for(var c=s;c>=0;){var l=i[c];if(l===fA)c--;else return l}return 0},E0=function(s,i,c,l,f){if(c[l]===0)return KA;var p=l-1;if(Array.isArray(f)&&f[p]===!0)return KA;var C=p-1,Q=p+1,E=i[p],L=C>=0?i[C]:0,V=i[Q];if(E===nA&&V===W)return KA;if($n.indexOf(E)!==-1)return Ct;if($n.indexOf(V)!==-1||qr.indexOf(V)!==-1)return KA;if(kl(p,i)===bA)return vt;if(Rt.get(s[p])===Z||(E===Kt||E===sn)&&Rt.get(s[Q])===Z||E===mA||V===mA||E===_A||[fA,F,z].indexOf(E)===-1&&V===_A||[dA,gA,EA,WA,wt].indexOf(V)!==-1||kl(p,i)===MA||xi(RA,MA,p,i)||xi([dA,gA],DA,p,i)||xi(_,_,p,i))return KA;if(E===fA)return vt;if(E===RA||V===RA)return KA;if(V===G||E===G)return vt;if([F,z,DA].indexOf(V)!==-1||E===x||L===an&&Si.indexOf(E)!==-1||E===wt&&V===an||V===wA||He.indexOf(V)!==-1&&E===te||He.indexOf(E)!==-1&&V===te||E===Ot&&[at,Kt,sn].indexOf(V)!==-1||[at,Kt,sn].indexOf(E)!==-1&&V===ot||He.indexOf(E)!==-1&&XA.indexOf(V)!==-1||XA.indexOf(E)!==-1&&He.indexOf(V)!==-1||[Ot,ot].indexOf(E)!==-1&&(V===te||[MA,z].indexOf(V)!==-1&&i[Q+1]===te)||[MA,z].indexOf(E)!==-1&&V===te||E===te&&[te,wt,WA].indexOf(V)!==-1)return KA;if([te,wt,WA,dA,gA].indexOf(V)!==-1)for(var X=p;X>=0;){var j=i[X];if(j===te)return KA;if([wt,WA].indexOf(j)!==-1)X--;else break}if([Ot,ot].indexOf(V)!==-1)for(var X=[dA,gA].indexOf(E)!==-1?C:p;X>=0;){var j=i[X];if(j===te)return KA;if([wt,WA].indexOf(j)!==-1)X--;else break}if(jr===E&&[jr,Xn,Gn,zn].indexOf(V)!==-1||[Xn,Gn].indexOf(E)!==-1&&[Xn,rA].indexOf(V)!==-1||[rA,zn].indexOf(E)!==-1&&V===rA||$e.indexOf(E)!==-1&&[wA,ot].indexOf(V)!==-1||$e.indexOf(V)!==-1&&E===Ot||He.indexOf(E)!==-1&&He.indexOf(V)!==-1||E===WA&&He.indexOf(V)!==-1||He.concat(te).indexOf(E)!==-1&&V===MA&&Oe.indexOf(s[Q])===-1||He.concat(te).indexOf(V)!==-1&&E===gA)return KA;if(E===lA&&V===lA){for(var CA=c[p],hA=1;CA>0&&(CA--,i[CA]===lA);)hA++;if(hA%2!==0)return KA}return E===Kt&&V===sn?KA:vt},F0=function(s,i){i||(i={lineBreak:"normal",wordBreak:"normal"});var c=Ao(s,i.lineBreak),l=c[0],f=c[1],p=c[2];(i.wordBreak==="break-all"||i.wordBreak==="break-word")&&(f=f.map(function(Q){return[te,st,SA].indexOf(Q)!==-1?at:Q}));var C=i.wordBreak==="keep-all"?p.map(function(Q,E){return Q&&s[E]>=19968&&s[E]<=40959}):void 0;return[l,f,C]},U0=(function(){function s(i,c,l,f){this.codePoints=i,this.required=c===Ct,this.start=l,this.end=f}return s.prototype.slice=function(){return m.apply(void 0,this.codePoints.slice(this.start,this.end))},s})(),b0=function(s,i){var c=w(s),l=F0(c,i),f=l[0],p=l[1],C=l[2],Q=c.length,E=0,L=0;return{next:function(){if(L>=Q)return{done:!0,value:null};for(var V=KA;L<Q&&(V=E0(c,p,f,++L,C))===KA;);if(V!==KA||L===Q){var X=new U0(c,V,E,L);return E=L,{value:X,done:!1}}return{done:!0,value:null}}}},H0=1,I0=2,Yn=4,Ml=8,eo=10,Ol=47,Wn=92,_0=9,S0=32,to=34,Jn=61,x0=35,D0=36,N0=37,no=39,ro=40,Zn=41,L0=95,ve=45,T0=33,k0=60,M0=62,O0=64,K0=91,R0=93,V0=61,P0=123,oo=63,G0=125,Kl=124,z0=126,X0=128,Rl=65533,Di=42,Vt=43,$0=44,Y0=58,W0=59,jn=46,J0=0,Z0=8,j0=11,q0=14,AC=31,eC=127,Ye=-1,Vl=48,Pl=97,Gl=101,tC=102,nC=117,rC=122,zl=65,Xl=69,$l=70,oC=85,iC=90,pe=function(s){return s>=Vl&&s<=57},sC=function(s){return s>=55296&&s<=57343},cn=function(s){return pe(s)||s>=zl&&s<=$l||s>=Pl&&s<=tC},aC=function(s){return s>=Pl&&s<=rC},lC=function(s){return s>=zl&&s<=iC},cC=function(s){return aC(s)||lC(s)},uC=function(s){return s>=X0},io=function(s){return s===eo||s===_0||s===S0},so=function(s){return cC(s)||uC(s)||s===L0},Yl=function(s){return so(s)||pe(s)||s===ve},dC=function(s){return s>=J0&&s<=Z0||s===j0||s>=q0&&s<=AC||s===eC},yt=function(s,i){return s!==Wn?!1:i!==eo},ao=function(s,i,c){return s===ve?so(i)||yt(i,c):so(s)?!0:!!(s===Wn&&yt(s,i))},Ni=function(s,i,c){return s===Vt||s===ve?pe(i)?!0:i===jn&&pe(c):pe(s===jn?i:s)},fC=function(s){var i=0,c=1;(s[i]===Vt||s[i]===ve)&&(s[i]===ve&&(c=-1),i++);for(var l=[];pe(s[i]);)l.push(s[i++]);var f=l.length?parseInt(m.apply(void 0,l),10):0;s[i]===jn&&i++;for(var p=[];pe(s[i]);)p.push(s[i++]);var C=p.length,Q=C?parseInt(m.apply(void 0,p),10):0;(s[i]===Xl||s[i]===Gl)&&i++;var E=1;(s[i]===Vt||s[i]===ve)&&(s[i]===ve&&(E=-1),i++);for(var L=[];pe(s[i]);)L.push(s[i++]);var V=L.length?parseInt(m.apply(void 0,L),10):0;return c*(f+Q*Math.pow(10,-C))*Math.pow(10,E*V)},gC={type:2},hC={type:3},BC={type:4},pC={type:13},mC={type:8},wC={type:21},CC={type:9},vC={type:10},yC={type:11},QC={type:12},EC={type:14},lo={type:23},FC={type:1},UC={type:25},bC={type:24},HC={type:26},IC={type:27},_C={type:28},SC={type:29},xC={type:31},Li={type:32},Wl=(function(){function s(){this._value=[]}return s.prototype.write=function(i){this._value=this._value.concat(w(i))},s.prototype.read=function(){for(var i=[],c=this.consumeToken();c!==Li;)i.push(c),c=this.consumeToken();return i},s.prototype.consumeToken=function(){var i=this.consumeCodePoint();switch(i){case to:return this.consumeStringToken(to);case x0:var c=this.peekCodePoint(0),l=this.peekCodePoint(1),f=this.peekCodePoint(2);if(Yl(c)||yt(l,f)){var p=ao(c,l,f)?I0:H0,C=this.consumeName();return{type:5,value:C,flags:p}}break;case D0:if(this.peekCodePoint(0)===Jn)return this.consumeCodePoint(),pC;break;case no:return this.consumeStringToken(no);case ro:return gC;case Zn:return hC;case Di:if(this.peekCodePoint(0)===Jn)return this.consumeCodePoint(),EC;break;case Vt:if(Ni(i,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(i),this.consumeNumericToken();break;case $0:return BC;case ve:var Q=i,E=this.peekCodePoint(0),L=this.peekCodePoint(1);if(Ni(Q,E,L))return this.reconsumeCodePoint(i),this.consumeNumericToken();if(ao(Q,E,L))return this.reconsumeCodePoint(i),this.consumeIdentLikeToken();if(E===ve&&L===M0)return this.consumeCodePoint(),this.consumeCodePoint(),bC;break;case jn:if(Ni(i,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(i),this.consumeNumericToken();break;case Ol:if(this.peekCodePoint(0)===Di)for(this.consumeCodePoint();;){var V=this.consumeCodePoint();if(V===Di&&(V=this.consumeCodePoint(),V===Ol))return this.consumeToken();if(V===Ye)return this.consumeToken()}break;case Y0:return HC;case W0:return IC;case k0:if(this.peekCodePoint(0)===T0&&this.peekCodePoint(1)===ve&&this.peekCodePoint(2)===ve)return this.consumeCodePoint(),this.consumeCodePoint(),UC;break;case O0:if(ao(this.peekCodePoint(0),this.peekCodePoint(1),this.peekCodePoint(2))){var C=this.consumeName();return{type:7,value:C}}break;case K0:return _C;case Wn:if(yt(i,this.peekCodePoint(0)))return this.reconsumeCodePoint(i),this.consumeIdentLikeToken();break;case R0:return SC;case V0:if(this.peekCodePoint(0)===Jn)return this.consumeCodePoint(),mC;break;case P0:return yC;case G0:return QC;case nC:case oC:var X=this.peekCodePoint(0),j=this.peekCodePoint(1);return X===Vt&&(cn(j)||j===oo)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(i),this.consumeIdentLikeToken();case Kl:if(this.peekCodePoint(0)===Jn)return this.consumeCodePoint(),CC;if(this.peekCodePoint(0)===Kl)return this.consumeCodePoint(),wC;break;case z0:if(this.peekCodePoint(0)===Jn)return this.consumeCodePoint(),vC;break;case Ye:return Li}return io(i)?(this.consumeWhiteSpace(),xC):pe(i)?(this.reconsumeCodePoint(i),this.consumeNumericToken()):so(i)?(this.reconsumeCodePoint(i),this.consumeIdentLikeToken()):{type:6,value:m(i)}},s.prototype.consumeCodePoint=function(){var i=this._value.shift();return typeof i>"u"?-1:i},s.prototype.reconsumeCodePoint=function(i){this._value.unshift(i)},s.prototype.peekCodePoint=function(i){return i>=this._value.length?-1:this._value[i]},s.prototype.consumeUnicodeRangeToken=function(){for(var i=[],c=this.consumeCodePoint();cn(c)&&i.length<6;)i.push(c),c=this.consumeCodePoint();for(var l=!1;c===oo&&i.length<6;)i.push(c),c=this.consumeCodePoint(),l=!0;if(l){var f=parseInt(m.apply(void 0,i.map(function(E){return E===oo?Vl:E})),16),p=parseInt(m.apply(void 0,i.map(function(E){return E===oo?$l:E})),16);return{type:30,start:f,end:p}}var C=parseInt(m.apply(void 0,i),16);if(this.peekCodePoint(0)===ve&&cn(this.peekCodePoint(1))){this.consumeCodePoint(),c=this.consumeCodePoint();for(var Q=[];cn(c)&&Q.length<6;)Q.push(c),c=this.consumeCodePoint();var p=parseInt(m.apply(void 0,Q),16);return{type:30,start:C,end:p}}else return{type:30,start:C,end:C}},s.prototype.consumeIdentLikeToken=function(){var i=this.consumeName();return i.toLowerCase()==="url"&&this.peekCodePoint(0)===ro?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===ro?(this.consumeCodePoint(),{type:19,value:i}):{type:20,value:i}},s.prototype.consumeUrlToken=function(){var i=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ye)return{type:22,value:""};var c=this.peekCodePoint(0);if(c===no||c===to){var l=this.consumeStringToken(this.consumeCodePoint());return l.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ye||this.peekCodePoint(0)===Zn)?(this.consumeCodePoint(),{type:22,value:l.value}):(this.consumeBadUrlRemnants(),lo)}for(;;){var f=this.consumeCodePoint();if(f===Ye||f===Zn)return{type:22,value:m.apply(void 0,i)};if(io(f))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ye||this.peekCodePoint(0)===Zn?(this.consumeCodePoint(),{type:22,value:m.apply(void 0,i)}):(this.consumeBadUrlRemnants(),lo);if(f===to||f===no||f===ro||dC(f))return this.consumeBadUrlRemnants(),lo;if(f===Wn)if(yt(f,this.peekCodePoint(0)))i.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),lo;else i.push(f)}},s.prototype.consumeWhiteSpace=function(){for(;io(this.peekCodePoint(0));)this.consumeCodePoint()},s.prototype.consumeBadUrlRemnants=function(){for(;;){var i=this.consumeCodePoint();if(i===Zn||i===Ye)return;yt(i,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},s.prototype.consumeStringSlice=function(i){for(var c=5e4,l="";i>0;){var f=Math.min(c,i);l+=m.apply(void 0,this._value.splice(0,f)),i-=f}return this._value.shift(),l},s.prototype.consumeStringToken=function(i){var c="",l=0;do{var f=this._value[l];if(f===Ye||f===void 0||f===i)return c+=this.consumeStringSlice(l),{type:0,value:c};if(f===eo)return this._value.splice(0,l),FC;if(f===Wn){var p=this._value[l+1];p!==Ye&&p!==void 0&&(p===eo?(c+=this.consumeStringSlice(l),l=-1,this._value.shift()):yt(f,p)&&(c+=this.consumeStringSlice(l),c+=m(this.consumeEscapedCodePoint()),l=-1))}l++}while(!0)},s.prototype.consumeNumber=function(){var i=[],c=Yn,l=this.peekCodePoint(0);for((l===Vt||l===ve)&&i.push(this.consumeCodePoint());pe(this.peekCodePoint(0));)i.push(this.consumeCodePoint());l=this.peekCodePoint(0);var f=this.peekCodePoint(1);if(l===jn&&pe(f))for(i.push(this.consumeCodePoint(),this.consumeCodePoint()),c=Ml;pe(this.peekCodePoint(0));)i.push(this.consumeCodePoint());l=this.peekCodePoint(0),f=this.peekCodePoint(1);var p=this.peekCodePoint(2);if((l===Xl||l===Gl)&&((f===Vt||f===ve)&&pe(p)||pe(f)))for(i.push(this.consumeCodePoint(),this.consumeCodePoint()),c=Ml;pe(this.peekCodePoint(0));)i.push(this.consumeCodePoint());return[fC(i),c]},s.prototype.consumeNumericToken=function(){var i=this.consumeNumber(),c=i[0],l=i[1],f=this.peekCodePoint(0);return ao(f,this.peekCodePoint(1),this.peekCodePoint(2))?{type:15,number:c,flags:l,unit:this.consumeName()}:f===N0?(this.consumeCodePoint(),{type:16,number:c,flags:l}):{type:17,number:c,flags:l}},s.prototype.consumeEscapedCodePoint=function(){var i=this.consumeCodePoint();if(cn(i)){for(var c=m(i);cn(this.peekCodePoint(0))&&c.length<6;)c+=m(this.consumeCodePoint());io(this.peekCodePoint(0))&&this.consumeCodePoint();var l=parseInt(c,16);return l===0||sC(l)||l>1114111?Rl:l}return i===Ye?Rl:i},s.prototype.consumeName=function(){for(var i="";;){var c=this.consumeCodePoint();if(Yl(c))i+=m(c);else if(yt(c,this.peekCodePoint(0)))i+=m(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(c),i}},s})(),Jl=(function(){function s(i){this._tokens=i}return s.create=function(i){var c=new Wl;return c.write(i),new s(c.read())},s.parseValue=function(i){return s.create(i).parseComponentValue()},s.parseValues=function(i){return s.create(i).parseComponentValues()},s.prototype.parseComponentValue=function(){for(var i=this.consumeToken();i.type===31;)i=this.consumeToken();if(i.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(i);var c=this.consumeComponentValue();do i=this.consumeToken();while(i.type===31);if(i.type===32)return c;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},s.prototype.parseComponentValues=function(){for(var i=[];;){var c=this.consumeComponentValue();if(c.type===32)return i;i.push(c),i.push()}},s.prototype.consumeComponentValue=function(){var i=this.consumeToken();switch(i.type){case 11:case 28:case 2:return this.consumeSimpleBlock(i.type);case 19:return this.consumeFunction(i)}return i},s.prototype.consumeSimpleBlock=function(i){for(var c={type:i,values:[]},l=this.consumeToken();;){if(l.type===32||NC(l,i))return c;this.reconsumeToken(l),c.values.push(this.consumeComponentValue()),l=this.consumeToken()}},s.prototype.consumeFunction=function(i){for(var c={name:i.value,values:[],type:18};;){var l=this.consumeToken();if(l.type===32||l.type===3)return c;this.reconsumeToken(l),c.values.push(this.consumeComponentValue())}},s.prototype.consumeToken=function(){var i=this._tokens.shift();return typeof i>"u"?Li:i},s.prototype.reconsumeToken=function(i){this._tokens.unshift(i)},s})(),qn=function(s){return s.type===15},un=function(s){return s.type===17},JA=function(s){return s.type===20},DC=function(s){return s.type===0},Ti=function(s,i){return JA(s)&&s.value===i},Zl=function(s){return s.type!==31},dn=function(s){return s.type!==31&&s.type!==4},We=function(s){var i=[],c=[];return s.forEach(function(l){if(l.type===4){if(c.length===0)throw new Error("Error parsing function args, zero tokens for arg");i.push(c),c=[];return}l.type!==31&&c.push(l)}),c.length&&i.push(c),i},NC=function(s,i){return i===11&&s.type===12||i===28&&s.type===29?!0:i===2&&s.type===3},Qt=function(s){return s.type===17||s.type===15},le=function(s){return s.type===16||Qt(s)},jl=function(s){return s.length>1?[s[0],s[1]]:[s[0]]},ge={type:17,number:0,flags:Yn},ki={type:16,number:50,flags:Yn},Et={type:16,number:100,flags:Yn},Ar=function(s,i,c){var l=s[0],f=s[1];return[qA(l,i),qA(typeof f<"u"?f:l,c)]},qA=function(s,i){if(s.type===16)return s.number/100*i;if(qn(s))switch(s.unit){case"rem":case"em":return 16*s.number;default:return s.number}return s.number},ql="deg",Ac="grad",ec="rad",tc="turn",co={name:"angle",parse:function(s,i){if(i.type===15)switch(i.unit){case ql:return Math.PI*i.number/180;case Ac:return Math.PI/200*i.number;case ec:return i.number;case tc:return Math.PI*2*i.number}throw new Error("Unsupported angle type")}},nc=function(s){return s.type===15&&(s.unit===ql||s.unit===Ac||s.unit===ec||s.unit===tc)},rc=function(s){switch(s.filter(JA).map(function(i){return i.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ge,ge];case"to top":case"bottom":return _e(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ge,Et];case"to right":case"left":return _e(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Et,Et];case"to bottom":case"top":return _e(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Et,ge];case"to left":case"right":return _e(270)}return 0},_e=function(s){return Math.PI*s/180},Ft={name:"color",parse:function(s,i){if(i.type===18){var c=LC[i.name];if(typeof c>"u")throw new Error('Attempting to parse an unsupported color function "'+i.name+'"');return c(s,i.values)}if(i.type===5){if(i.value.length===3){var l=i.value.substring(0,1),f=i.value.substring(1,2),p=i.value.substring(2,3);return bt(parseInt(l+l,16),parseInt(f+f,16),parseInt(p+p,16),1)}if(i.value.length===4){var l=i.value.substring(0,1),f=i.value.substring(1,2),p=i.value.substring(2,3),C=i.value.substring(3,4);return bt(parseInt(l+l,16),parseInt(f+f,16),parseInt(p+p,16),parseInt(C+C,16)/255)}if(i.value.length===6){var l=i.value.substring(0,2),f=i.value.substring(2,4),p=i.value.substring(4,6);return bt(parseInt(l,16),parseInt(f,16),parseInt(p,16),1)}if(i.value.length===8){var l=i.value.substring(0,2),f=i.value.substring(2,4),p=i.value.substring(4,6),C=i.value.substring(6,8);return bt(parseInt(l,16),parseInt(f,16),parseInt(p,16),parseInt(C,16)/255)}}if(i.type===20){var Q=lt[i.value.toUpperCase()];if(typeof Q<"u")return Q}return lt.TRANSPARENT}},Ut=function(s){return(255&s)===0},fe=function(s){var i=255&s,c=255&s>>8,l=255&s>>16,f=255&s>>24;return i<255?"rgba("+f+","+l+","+c+","+i/255+")":"rgb("+f+","+l+","+c+")"},bt=function(s,i,c,l){return(s<<24|i<<16|c<<8|Math.round(l*255)<<0)>>>0},oc=function(s,i){if(s.type===17)return s.number;if(s.type===16){var c=i===3?1:255;return i===3?s.number/100*c:Math.round(s.number/100*c)}return 0},ic=function(s,i){var c=i.filter(dn);if(c.length===3){var l=c.map(oc),f=l[0],p=l[1],C=l[2];return bt(f,p,C,1)}if(c.length===4){var Q=c.map(oc),f=Q[0],p=Q[1],C=Q[2],E=Q[3];return bt(f,p,C,E)}return 0};function Mi(s,i,c){return c<0&&(c+=1),c>=1&&(c-=1),c<1/6?(i-s)*c*6+s:c<1/2?i:c<2/3?(i-s)*6*(2/3-c)+s:s}var sc=function(s,i){var c=i.filter(dn),l=c[0],f=c[1],p=c[2],C=c[3],Q=(l.type===17?_e(l.number):co.parse(s,l))/(Math.PI*2),E=le(f)?f.number/100:0,L=le(p)?p.number/100:0,V=typeof C<"u"&&le(C)?qA(C,1):1;if(E===0)return bt(L*255,L*255,L*255,1);var X=L<=.5?L*(E+1):L+E-L*E,j=L*2-X,CA=Mi(j,X,Q+1/3),hA=Mi(j,X,Q),pA=Mi(j,X,Q-1/3);return bt(CA*255,hA*255,pA*255,V)},LC={hsl:sc,hsla:sc,rgb:ic,rgba:ic},er=function(s,i){return Ft.parse(s,Jl.create(i).parseComponentValue())},lt={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},TC={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(s,i){return i.map(function(c){if(JA(c))switch(c.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},kC={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},uo=function(s,i){var c=Ft.parse(s,i[0]),l=i[1];return l&&le(l)?{color:c,stop:l}:{color:c,stop:null}},ac=function(s,i){var c=s[0],l=s[s.length-1];c.stop===null&&(c.stop=ge),l.stop===null&&(l.stop=Et);for(var f=[],p=0,C=0;C<s.length;C++){var Q=s[C].stop;if(Q!==null){var E=qA(Q,i);E>p?f.push(E):f.push(p),p=E}else f.push(null)}for(var L=null,C=0;C<f.length;C++){var V=f[C];if(V===null)L===null&&(L=C);else if(L!==null){for(var X=C-L,j=(V-f[L-1])/(X+1),CA=1;CA<=X;CA++)f[L+CA-1]=j*CA;L=null}}return s.map(function(hA,pA){return{color:hA.color,stop:Math.max(Math.min(1,f[pA]/i),0)}})},MC=function(s,i,c){var l=i/2,f=c/2,p=qA(s[0],i)-l,C=f-qA(s[1],c);return(Math.atan2(C,p)+Math.PI*2)%(Math.PI*2)},OC=function(s,i,c){var l=typeof s=="number"?s:MC(s,i,c),f=Math.abs(i*Math.sin(l))+Math.abs(c*Math.cos(l)),p=i/2,C=c/2,Q=f/2,E=Math.sin(l-Math.PI/2)*Q,L=Math.cos(l-Math.PI/2)*Q;return[f,p-L,p+L,C-E,C+E]},Ke=function(s,i){return Math.sqrt(s*s+i*i)},lc=function(s,i,c,l,f){return[[0,0],[0,i],[s,0],[s,i]].reduce(function(p,C){var Q=C[0],E=C[1],L=Ke(c-Q,l-E);return(f?L<p.optimumDistance:L>p.optimumDistance)?{optimumCorner:C,optimumDistance:L}:p},{optimumDistance:f?1/0:-1/0,optimumCorner:null}).optimumCorner},KC=function(s,i,c,l,f){var p=0,C=0;switch(s.size){case 0:s.shape===0?p=C=Math.min(Math.abs(i),Math.abs(i-l),Math.abs(c),Math.abs(c-f)):s.shape===1&&(p=Math.min(Math.abs(i),Math.abs(i-l)),C=Math.min(Math.abs(c),Math.abs(c-f)));break;case 2:if(s.shape===0)p=C=Math.min(Ke(i,c),Ke(i,c-f),Ke(i-l,c),Ke(i-l,c-f));else if(s.shape===1){var Q=Math.min(Math.abs(c),Math.abs(c-f))/Math.min(Math.abs(i),Math.abs(i-l)),E=lc(l,f,i,c,!0),L=E[0],V=E[1];p=Ke(L-i,(V-c)/Q),C=Q*p}break;case 1:s.shape===0?p=C=Math.max(Math.abs(i),Math.abs(i-l),Math.abs(c),Math.abs(c-f)):s.shape===1&&(p=Math.max(Math.abs(i),Math.abs(i-l)),C=Math.max(Math.abs(c),Math.abs(c-f)));break;case 3:if(s.shape===0)p=C=Math.max(Ke(i,c),Ke(i,c-f),Ke(i-l,c),Ke(i-l,c-f));else if(s.shape===1){var Q=Math.max(Math.abs(c),Math.abs(c-f))/Math.max(Math.abs(i),Math.abs(i-l)),X=lc(l,f,i,c,!1),L=X[0],V=X[1];p=Ke(L-i,(V-c)/Q),C=Q*p}break}return Array.isArray(s.size)&&(p=qA(s.size[0],l),C=s.size.length===2?qA(s.size[1],f):p),[p,C]},RC=function(s,i){var c=_e(180),l=[];return We(i).forEach(function(f,p){if(p===0){var C=f[0];if(C.type===20&&C.value==="to"){c=rc(f);return}else if(nc(C)){c=co.parse(s,C);return}}var Q=uo(s,f);l.push(Q)}),{angle:c,stops:l,type:1}},fo=function(s,i){var c=_e(180),l=[];return We(i).forEach(function(f,p){if(p===0){var C=f[0];if(C.type===20&&["top","left","right","bottom"].indexOf(C.value)!==-1){c=rc(f);return}else if(nc(C)){c=(co.parse(s,C)+_e(270))%_e(360);return}}var Q=uo(s,f);l.push(Q)}),{angle:c,stops:l,type:1}},VC=function(s,i){var c=_e(180),l=[],f=1,p=0,C=3,Q=[];return We(i).forEach(function(E,L){var V=E[0];if(L===0){if(JA(V)&&V.value==="linear"){f=1;return}else if(JA(V)&&V.value==="radial"){f=2;return}}if(V.type===18){if(V.name==="from"){var X=Ft.parse(s,V.values[0]);l.push({stop:ge,color:X})}else if(V.name==="to"){var X=Ft.parse(s,V.values[0]);l.push({stop:Et,color:X})}else if(V.name==="color-stop"){var j=V.values.filter(dn);if(j.length===2){var X=Ft.parse(s,j[1]),CA=j[0];un(CA)&&l.push({stop:{type:16,number:CA.number*100,flags:CA.flags},color:X})}}}}),f===1?{angle:(c+_e(180))%_e(360),stops:l,type:f}:{size:C,shape:p,stops:l,position:Q,type:f}},cc="closest-side",uc="farthest-side",dc="closest-corner",fc="farthest-corner",gc="circle",hc="ellipse",Bc="cover",pc="contain",PC=function(s,i){var c=0,l=3,f=[],p=[];return We(i).forEach(function(C,Q){var E=!0;if(Q===0){var L=!1;E=C.reduce(function(X,j){if(L)if(JA(j))switch(j.value){case"center":return p.push(ki),X;case"top":case"left":return p.push(ge),X;case"right":case"bottom":return p.push(Et),X}else(le(j)||Qt(j))&&p.push(j);else if(JA(j))switch(j.value){case gc:return c=0,!1;case hc:return c=1,!1;case"at":return L=!0,!1;case cc:return l=0,!1;case Bc:case uc:return l=1,!1;case pc:case dc:return l=2,!1;case fc:return l=3,!1}else if(Qt(j)||le(j))return Array.isArray(l)||(l=[]),l.push(j),!1;return X},E)}if(E){var V=uo(s,C);f.push(V)}}),{size:l,shape:c,stops:f,position:p,type:2}},go=function(s,i){var c=0,l=3,f=[],p=[];return We(i).forEach(function(C,Q){var E=!0;if(Q===0?E=C.reduce(function(V,X){if(JA(X))switch(X.value){case"center":return p.push(ki),!1;case"top":case"left":return p.push(ge),!1;case"right":case"bottom":return p.push(Et),!1}else if(le(X)||Qt(X))return p.push(X),!1;return V},E):Q===1&&(E=C.reduce(function(V,X){if(JA(X))switch(X.value){case gc:return c=0,!1;case hc:return c=1,!1;case pc:case cc:return l=0,!1;case uc:return l=1,!1;case dc:return l=2,!1;case Bc:case fc:return l=3,!1}else if(Qt(X)||le(X))return Array.isArray(l)||(l=[]),l.push(X),!1;return V},E)),E){var L=uo(s,C);f.push(L)}}),{size:l,shape:c,stops:f,position:p,type:2}},GC=function(s){return s.type===1},zC=function(s){return s.type===2},Oi={name:"image",parse:function(s,i){if(i.type===22){var c={url:i.value,type:0};return s.cache.addImage(i.value),c}if(i.type===18){var l=mc[i.name];if(typeof l>"u")throw new Error('Attempting to parse an unsupported image function "'+i.name+'"');return l(s,i.values)}throw new Error("Unsupported image type "+i.type)}};function XC(s){return!(s.type===20&&s.value==="none")&&(s.type!==18||!!mc[s.name])}var mc={"linear-gradient":RC,"-moz-linear-gradient":fo,"-ms-linear-gradient":fo,"-o-linear-gradient":fo,"-webkit-linear-gradient":fo,"radial-gradient":PC,"-moz-radial-gradient":go,"-ms-radial-gradient":go,"-o-radial-gradient":go,"-webkit-radial-gradient":go,"-webkit-gradient":VC},$C={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(s,i){if(i.length===0)return[];var c=i[0];return c.type===20&&c.value==="none"?[]:i.filter(function(l){return dn(l)&&XC(l)}).map(function(l){return Oi.parse(s,l)})}},YC={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(s,i){return i.map(function(c){if(JA(c))switch(c.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},WC={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(s,i){return We(i).map(function(c){return c.filter(le)}).map(jl)}},JC={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(s,i){return We(i).map(function(c){return c.filter(JA).map(function(l){return l.value}).join(" ")}).map(ZC)}},ZC=function(s){switch(s){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},fn;(function(s){s.AUTO="auto",s.CONTAIN="contain",s.COVER="cover"})(fn||(fn={}));var jC={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(s,i){return We(i).map(function(c){return c.filter(qC)})}},qC=function(s){return JA(s)||le(s)},ho=function(s){return{name:"border-"+s+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Av=ho("top"),ev=ho("right"),tv=ho("bottom"),nv=ho("left"),Bo=function(s){return{name:"border-radius-"+s,initialValue:"0 0",prefix:!1,type:1,parse:function(i,c){return jl(c.filter(le))}}},rv=Bo("top-left"),ov=Bo("top-right"),iv=Bo("bottom-right"),sv=Bo("bottom-left"),po=function(s){return{name:"border-"+s+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(i,c){switch(c){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},av=po("top"),lv=po("right"),cv=po("bottom"),uv=po("left"),mo=function(s){return{name:"border-"+s+"-width",initialValue:"0",type:0,prefix:!1,parse:function(i,c){return qn(c)?c.number:0}}},dv=mo("top"),fv=mo("right"),gv=mo("bottom"),hv=mo("left"),Bv={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},pv={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(s,i){return i==="rtl"?1:0}},mv={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(s,i){return i.filter(JA).reduce(function(c,l){return c|wv(l.value)},0)}},wv=function(s){switch(s){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Cv={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(s,i){switch(i){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},vv={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(s,i){return i.type===20&&i.value==="normal"?0:i.type===17||i.type===15?i.number:0}},wo;(function(s){s.NORMAL="normal",s.STRICT="strict"})(wo||(wo={}));var yv={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){return i==="strict"?wo.STRICT:wo.NORMAL}},Qv={name:"line-height",initialValue:"normal",prefix:!1,type:4},wc=function(s,i){return JA(s)&&s.value==="normal"?1.2*i:s.type===17?i*s.number:le(s)?qA(s,i):i},Ev={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(s,i){return i.type===20&&i.value==="none"?null:Oi.parse(s,i)}},Fv={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(s,i){return i==="inside"?0:1}},Ki={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(s,i){switch(i){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},Co=function(s){return{name:"margin-"+s,initialValue:"0",prefix:!1,type:4}},Uv=Co("top"),bv=Co("right"),Hv=Co("bottom"),Iv=Co("left"),_v={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(s,i){return i.filter(JA).map(function(c){switch(c.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},Sv={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){return i==="break-word"?"break-word":"normal"}},vo=function(s){return{name:"padding-"+s,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},xv=vo("top"),Dv=vo("right"),Nv=vo("bottom"),Lv=vo("left"),Tv={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(s,i){switch(i){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},kv={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(s,i){switch(i){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Mv={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(s,i){return i.length===1&&Ti(i[0],"none")?[]:We(i).map(function(c){for(var l={color:lt.TRANSPARENT,offsetX:ge,offsetY:ge,blur:ge},f=0,p=0;p<c.length;p++){var C=c[p];Qt(C)?(f===0?l.offsetX=C:f===1?l.offsetY=C:l.blur=C,f++):l.color=Ft.parse(s,C)}return l})}},Ov={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(s,i){switch(i){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Kv={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(s,i){if(i.type===20&&i.value==="none")return null;if(i.type===18){var c=Pv[i.name];if(typeof c>"u")throw new Error('Attempting to parse an unsupported transform function "'+i.name+'"');return c(i.values)}return null}},Rv=function(s){var i=s.filter(function(c){return c.type===17}).map(function(c){return c.number});return i.length===6?i:null},Vv=function(s){var i=s.filter(function(E){return E.type===17}).map(function(E){return E.number}),c=i[0],l=i[1];i[2],i[3];var f=i[4],p=i[5];i[6],i[7],i[8],i[9],i[10],i[11];var C=i[12],Q=i[13];return i[14],i[15],i.length===16?[c,l,f,p,C,Q]:null},Pv={matrix:Rv,matrix3d:Vv},Cc={type:16,number:50,flags:Yn},Gv=[Cc,Cc],zv={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(s,i){var c=i.filter(le);return c.length!==2?Gv:[c[0],c[1]]}},Xv={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(s,i){switch(i){case"hidden":return 1;case"collapse":return 2;default:return 0}}},tr;(function(s){s.NORMAL="normal",s.BREAK_ALL="break-all",s.KEEP_ALL="keep-all"})(tr||(tr={}));for(var $v={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){switch(i){case"break-all":return tr.BREAK_ALL;case"keep-all":return tr.KEEP_ALL;default:return tr.NORMAL}}},Yv={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(s,i){if(i.type===20)return{auto:!0,order:0};if(un(i))return{auto:!1,order:i.number};throw new Error("Invalid z-index number parsed")}},vc={name:"time",parse:function(s,i){if(i.type===15)switch(i.unit.toLowerCase()){case"s":return 1e3*i.number;case"ms":return i.number}throw new Error("Unsupported time type")}},Wv={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(s,i){return un(i)?i.number:1}},Jv={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Zv={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(s,i){return i.filter(JA).map(function(c){switch(c.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(c){return c!==0})}},jv={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(s,i){var c=[],l=[];return i.forEach(function(f){switch(f.type){case 20:case 0:c.push(f.value);break;case 17:c.push(f.number.toString());break;case 4:l.push(c.join(" ")),c.length=0;break}}),c.length&&l.push(c.join(" ")),l.map(function(f){return f.indexOf(" ")===-1?f:"'"+f+"'"})}},qv={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Ay={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(s,i){return un(i)?i.number:JA(i)&&i.value==="bold"?700:400}},ey={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(s,i){return i.filter(JA).map(function(c){return c.value})}},ty={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){switch(i){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},de=function(s,i){return(s&i)!==0},ny={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(s,i){if(i.length===0)return[];var c=i[0];return c.type===20&&c.value==="none"?[]:i}},ry={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(s,i){if(i.length===0)return null;var c=i[0];if(c.type===20&&c.value==="none")return null;for(var l=[],f=i.filter(Zl),p=0;p<f.length;p++){var C=f[p],Q=f[p+1];if(C.type===20){var E=Q&&un(Q)?Q.number:1;l.push({counter:C.value,increment:E})}}return l}},oy={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(s,i){if(i.length===0)return[];for(var c=[],l=i.filter(Zl),f=0;f<l.length;f++){var p=l[f],C=l[f+1];if(JA(p)&&p.value!=="none"){var Q=C&&un(C)?C.number:0;c.push({counter:p.value,reset:Q})}}return c}},iy={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(s,i){return i.filter(qn).map(function(c){return vc.parse(s,c)})}},sy={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(s,i){if(i.length===0)return null;var c=i[0];if(c.type===20&&c.value==="none")return null;var l=[],f=i.filter(DC);if(f.length%2!==0)return null;for(var p=0;p<f.length;p+=2){var C=f[p].value,Q=f[p+1].value;l.push({open:C,close:Q})}return l}},yc=function(s,i,c){if(!s)return"";var l=s[Math.min(i,s.length-1)];return l?c?l.open:l.close:""},ay={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(s,i){return i.length===1&&Ti(i[0],"none")?[]:We(i).map(function(c){for(var l={color:255,offsetX:ge,offsetY:ge,blur:ge,spread:ge,inset:!1},f=0,p=0;p<c.length;p++){var C=c[p];Ti(C,"inset")?l.inset=!0:Qt(C)?(f===0?l.offsetX=C:f===1?l.offsetY=C:f===2?l.blur=C:l.spread=C,f++):l.color=Ft.parse(s,C)}return l})}},ly={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(s,i){var c=[0,1,2],l=[];return i.filter(JA).forEach(function(f){switch(f.value){case"stroke":l.push(1);break;case"fill":l.push(0);break;case"markers":l.push(2);break}}),c.forEach(function(f){l.indexOf(f)===-1&&l.push(f)}),l}},cy={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},uy={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(s,i){return qn(i)?i.number:0}},dy=(function(){function s(i,c){var l,f;this.animationDuration=FA(i,iy,c.animationDuration),this.backgroundClip=FA(i,TC,c.backgroundClip),this.backgroundColor=FA(i,kC,c.backgroundColor),this.backgroundImage=FA(i,$C,c.backgroundImage),this.backgroundOrigin=FA(i,YC,c.backgroundOrigin),this.backgroundPosition=FA(i,WC,c.backgroundPosition),this.backgroundRepeat=FA(i,JC,c.backgroundRepeat),this.backgroundSize=FA(i,jC,c.backgroundSize),this.borderTopColor=FA(i,Av,c.borderTopColor),this.borderRightColor=FA(i,ev,c.borderRightColor),this.borderBottomColor=FA(i,tv,c.borderBottomColor),this.borderLeftColor=FA(i,nv,c.borderLeftColor),this.borderTopLeftRadius=FA(i,rv,c.borderTopLeftRadius),this.borderTopRightRadius=FA(i,ov,c.borderTopRightRadius),this.borderBottomRightRadius=FA(i,iv,c.borderBottomRightRadius),this.borderBottomLeftRadius=FA(i,sv,c.borderBottomLeftRadius),this.borderTopStyle=FA(i,av,c.borderTopStyle),this.borderRightStyle=FA(i,lv,c.borderRightStyle),this.borderBottomStyle=FA(i,cv,c.borderBottomStyle),this.borderLeftStyle=FA(i,uv,c.borderLeftStyle),this.borderTopWidth=FA(i,dv,c.borderTopWidth),this.borderRightWidth=FA(i,fv,c.borderRightWidth),this.borderBottomWidth=FA(i,gv,c.borderBottomWidth),this.borderLeftWidth=FA(i,hv,c.borderLeftWidth),this.boxShadow=FA(i,ay,c.boxShadow),this.color=FA(i,Bv,c.color),this.direction=FA(i,pv,c.direction),this.display=FA(i,mv,c.display),this.float=FA(i,Cv,c.cssFloat),this.fontFamily=FA(i,jv,c.fontFamily),this.fontSize=FA(i,qv,c.fontSize),this.fontStyle=FA(i,ty,c.fontStyle),this.fontVariant=FA(i,ey,c.fontVariant),this.fontWeight=FA(i,Ay,c.fontWeight),this.letterSpacing=FA(i,vv,c.letterSpacing),this.lineBreak=FA(i,yv,c.lineBreak),this.lineHeight=FA(i,Qv,c.lineHeight),this.listStyleImage=FA(i,Ev,c.listStyleImage),this.listStylePosition=FA(i,Fv,c.listStylePosition),this.listStyleType=FA(i,Ki,c.listStyleType),this.marginTop=FA(i,Uv,c.marginTop),this.marginRight=FA(i,bv,c.marginRight),this.marginBottom=FA(i,Hv,c.marginBottom),this.marginLeft=FA(i,Iv,c.marginLeft),this.opacity=FA(i,Wv,c.opacity);var p=FA(i,_v,c.overflow);this.overflowX=p[0],this.overflowY=p[p.length>1?1:0],this.overflowWrap=FA(i,Sv,c.overflowWrap),this.paddingTop=FA(i,xv,c.paddingTop),this.paddingRight=FA(i,Dv,c.paddingRight),this.paddingBottom=FA(i,Nv,c.paddingBottom),this.paddingLeft=FA(i,Lv,c.paddingLeft),this.paintOrder=FA(i,ly,c.paintOrder),this.position=FA(i,kv,c.position),this.textAlign=FA(i,Tv,c.textAlign),this.textDecorationColor=FA(i,Jv,(l=c.textDecorationColor)!==null&&l!==void 0?l:c.color),this.textDecorationLine=FA(i,Zv,(f=c.textDecorationLine)!==null&&f!==void 0?f:c.textDecoration),this.textShadow=FA(i,Mv,c.textShadow),this.textTransform=FA(i,Ov,c.textTransform),this.transform=FA(i,Kv,c.transform),this.transformOrigin=FA(i,zv,c.transformOrigin),this.visibility=FA(i,Xv,c.visibility),this.webkitTextStrokeColor=FA(i,cy,c.webkitTextStrokeColor),this.webkitTextStrokeWidth=FA(i,uy,c.webkitTextStrokeWidth),this.wordBreak=FA(i,$v,c.wordBreak),this.zIndex=FA(i,Yv,c.zIndex)}return s.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},s.prototype.isTransparent=function(){return Ut(this.backgroundColor)},s.prototype.isTransformed=function(){return this.transform!==null},s.prototype.isPositioned=function(){return this.position!==0},s.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},s.prototype.isFloating=function(){return this.float!==0},s.prototype.isInlineLevel=function(){return de(this.display,4)||de(this.display,33554432)||de(this.display,268435456)||de(this.display,536870912)||de(this.display,67108864)||de(this.display,134217728)},s})(),fy=(function(){function s(i,c){this.content=FA(i,ny,c.content),this.quotes=FA(i,sy,c.quotes)}return s})(),Qc=(function(){function s(i,c){this.counterIncrement=FA(i,ry,c.counterIncrement),this.counterReset=FA(i,oy,c.counterReset)}return s})(),FA=function(s,i,c){var l=new Wl,f=c!==null&&typeof c<"u"?c.toString():i.initialValue;l.write(f);var p=new Jl(l.read());switch(i.type){case 2:var C=p.parseComponentValue();return i.parse(s,JA(C)?C.value:i.initialValue);case 0:return i.parse(s,p.parseComponentValue());case 1:return i.parse(s,p.parseComponentValues());case 4:return p.parseComponentValue();case 3:switch(i.format){case"angle":return co.parse(s,p.parseComponentValue());case"color":return Ft.parse(s,p.parseComponentValue());case"image":return Oi.parse(s,p.parseComponentValue());case"length":var Q=p.parseComponentValue();return Qt(Q)?Q:ge;case"length-percentage":var E=p.parseComponentValue();return le(E)?E:ge;case"time":return vc.parse(s,p.parseComponentValue())}break}},gy="data-html2canvas-debug",hy=function(s){switch(s.getAttribute(gy)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Ri=function(s,i){var c=hy(s);return c===1||i===c},Je=(function(){function s(i,c){if(this.context=i,this.textNodes=[],this.elements=[],this.flags=0,Ri(c,3))debugger;this.styles=new dy(i,window.getComputedStyle(c,null)),es(c)&&(this.styles.animationDuration.some(function(l){return l>0})&&(c.style.animationDuration="0s"),this.styles.transform!==null&&(c.style.transform="none")),this.bounds=g(this.context,c),Ri(c,4)&&(this.flags|=16)}return s})(),By="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAI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AMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBY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AAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Ec="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nr=typeof Uint8Array>"u"?[]:new Uint8Array(256),yo=0;yo<Ec.length;yo++)nr[Ec.charCodeAt(yo)]=yo;for(var py=function(s){var i=s.length*.75,c=s.length,l,f=0,p,C,Q,E;s[s.length-1]==="="&&(i--,s[s.length-2]==="="&&i--);var L=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(i):new Array(i),V=Array.isArray(L)?L:new Uint8Array(L);for(l=0;l<c;l+=4)p=nr[s.charCodeAt(l)],C=nr[s.charCodeAt(l+1)],Q=nr[s.charCodeAt(l+2)],E=nr[s.charCodeAt(l+3)],V[f++]=p<<2|C>>4,V[f++]=(C&15)<<4|Q>>2,V[f++]=(Q&3)<<6|E&63;return L},my=function(s){for(var i=s.length,c=[],l=0;l<i;l+=2)c.push(s[l+1]<<8|s[l]);return c},wy=function(s){for(var i=s.length,c=[],l=0;l<i;l+=4)c.push(s[l+3]<<24|s[l+2]<<16|s[l+1]<<8|s[l]);return c},Pt=5,Vi=11,Pi=2,Cy=Vi-Pt,Fc=65536>>Pt,Gi=(1<<Pt)-1,vy=Fc+(1024>>Pt)+32,yy=65536>>Vi,Qy=(1<<Cy)-1,Uc=function(s,i,c){return s.slice?s.slice(i,c):new Uint16Array(Array.prototype.slice.call(s,i,c))},Ey=function(s,i,c){return s.slice?s.slice(i,c):new Uint32Array(Array.prototype.slice.call(s,i,c))},Fy=function(s,i){var c=py(s),l=Array.isArray(c)?wy(c):new Uint32Array(c),f=Array.isArray(c)?my(c):new Uint16Array(c),p=24,C=Uc(f,p/2,l[4]/2),Q=l[5]===2?Uc(f,(p+l[4])/2):Ey(l,Math.ceil((p+l[4])/4));return new Uy(l[0],l[1],l[2],l[3],C,Q)},Uy=(function(){function s(i,c,l,f,p,C){this.initialValue=i,this.errorValue=c,this.highStart=l,this.highValueIndex=f,this.index=p,this.data=C}return s.prototype.get=function(i){var c;if(i>=0){if(i<55296||i>56319&&i<=65535)return c=this.index[i>>Pt],c=(c<<Pi)+(i&Gi),this.data[c];if(i<=65535)return c=this.index[Fc+(i-55296>>Pt)],c=(c<<Pi)+(i&Gi),this.data[c];if(i<this.highStart)return c=vy-yy+(i>>Vi),c=this.index[c],c+=i>>Pt&Qy,c=this.index[c],c=(c<<Pi)+(i&Gi),this.data[c];if(i<=1114111)return this.data[this.highValueIndex]}return this.errorValue},s})(),bc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",by=typeof Uint8Array>"u"?[]:new Uint8Array(256),Qo=0;Qo<bc.length;Qo++)by[bc.charCodeAt(Qo)]=Qo;var Hy=1,zi=2,Xi=3,Hc=4,Ic=5,Iy=7,_c=8,$i=9,Yi=10,Sc=11,xc=12,Dc=13,Nc=14,Wi=15,_y=function(s){for(var i=[],c=0,l=s.length;c<l;){var f=s.charCodeAt(c++);if(f>=55296&&f<=56319&&c<l){var p=s.charCodeAt(c++);(p&64512)===56320?i.push(((f&1023)<<10)+(p&1023)+65536):(i.push(f),c--)}else i.push(f)}return i},Sy=function(){for(var s=[],i=0;i<arguments.length;i++)s[i]=arguments[i];if(String.fromCodePoint)return String.fromCodePoint.apply(String,s);var c=s.length;if(!c)return"";for(var l=[],f=-1,p="";++f<c;){var C=s[f];C<=65535?l.push(C):(C-=65536,l.push((C>>10)+55296,C%1024+56320)),(f+1===c||l.length>16384)&&(p+=String.fromCharCode.apply(String,l),l.length=0)}return p},xy=Fy(By),Se="×",Ji="÷",Dy=function(s){return xy.get(s)},Ny=function(s,i,c){var l=c-2,f=i[l],p=i[c-1],C=i[c];if(p===zi&&C===Xi)return Se;if(p===zi||p===Xi||p===Hc||C===zi||C===Xi||C===Hc)return Ji;if(p===_c&&[_c,$i,Sc,xc].indexOf(C)!==-1||(p===Sc||p===$i)&&(C===$i||C===Yi)||(p===xc||p===Yi)&&C===Yi||C===Dc||C===Ic||C===Iy||p===Hy)return Se;if(p===Dc&&C===Nc){for(;f===Ic;)f=i[--l];if(f===Nc)return Se}if(p===Wi&&C===Wi){for(var Q=0;f===Wi;)Q++,f=i[--l];if(Q%2===0)return Se}return Ji},Ly=function(s){var i=_y(s),c=i.length,l=0,f=0,p=i.map(Dy);return{next:function(){if(l>=c)return{done:!0,value:null};for(var C=Se;l<c&&(C=Ny(i,p,++l))===Se;);if(C!==Se||l===c){var Q=Sy.apply(null,i.slice(f,l));return f=l,{value:Q,done:!1}}return{done:!0,value:null}}}},Ty=function(s){for(var i=Ly(s),c=[],l;!(l=i.next()).done;)l.value&&c.push(l.value.slice());return c},ky=function(s){var i=123;if(s.createRange){var c=s.createRange();if(c.getBoundingClientRect){var l=s.createElement("boundtest");l.style.height=i+"px",l.style.display="block",s.body.appendChild(l),c.selectNode(l);var f=c.getBoundingClientRect(),p=Math.round(f.height);if(s.body.removeChild(l),p===i)return!0}}return!1},My=function(s){var i=s.createElement("boundtest");i.style.width="50px",i.style.display="block",i.style.fontSize="12px",i.style.letterSpacing="0px",i.style.wordSpacing="0px",s.body.appendChild(i);var c=s.createRange();i.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var l=i.firstChild,f=w(l.data).map(function(E){return m(E)}),p=0,C={},Q=f.every(function(E,L){c.setStart(l,p),c.setEnd(l,p+E.length);var V=c.getBoundingClientRect();p+=E.length;var X=V.x>C.x||V.y>C.y;return C=V,L===0?!0:X});return s.body.removeChild(i),Q},Oy=function(){return typeof new Image().crossOrigin<"u"},Ky=function(){return typeof new XMLHttpRequest().responseType=="string"},Ry=function(s){var i=new Image,c=s.createElement("canvas"),l=c.getContext("2d");if(!l)return!1;i.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{l.drawImage(i,0,0),c.toDataURL()}catch{return!1}return!0},Lc=function(s){return s[0]===0&&s[1]===255&&s[2]===0&&s[3]===255},Vy=function(s){var i=s.createElement("canvas"),c=100;i.width=c,i.height=c;var l=i.getContext("2d");if(!l)return Promise.reject(!1);l.fillStyle="rgb(0, 255, 0)",l.fillRect(0,0,c,c);var f=new Image,p=i.toDataURL();f.src=p;var C=Zi(c,c,0,0,f);return l.fillStyle="red",l.fillRect(0,0,c,c),Tc(C).then(function(Q){l.drawImage(Q,0,0);var E=l.getImageData(0,0,c,c).data;l.fillStyle="red",l.fillRect(0,0,c,c);var L=s.createElement("div");return L.style.backgroundImage="url("+p+")",L.style.height=c+"px",Lc(E)?Tc(Zi(c,c,0,0,L)):Promise.reject(!1)}).then(function(Q){return l.drawImage(Q,0,0),Lc(l.getImageData(0,0,c,c).data)}).catch(function(){return!1})},Zi=function(s,i,c,l,f){var p="http://www.w3.org/2000/svg",C=document.createElementNS(p,"svg"),Q=document.createElementNS(p,"foreignObject");return C.setAttributeNS(null,"width",s.toString()),C.setAttributeNS(null,"height",i.toString()),Q.setAttributeNS(null,"width","100%"),Q.setAttributeNS(null,"height","100%"),Q.setAttributeNS(null,"x",c.toString()),Q.setAttributeNS(null,"y",l.toString()),Q.setAttributeNS(null,"externalResourcesRequired","true"),C.appendChild(Q),Q.appendChild(f),C},Tc=function(s){return new Promise(function(i,c){var l=new Image;l.onload=function(){return i(l)},l.onerror=c,l.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(s))})},he={get SUPPORT_RANGE_BOUNDS(){var s=ky(document);return Object.defineProperty(he,"SUPPORT_RANGE_BOUNDS",{value:s}),s},get SUPPORT_WORD_BREAKING(){var s=he.SUPPORT_RANGE_BOUNDS&&My(document);return Object.defineProperty(he,"SUPPORT_WORD_BREAKING",{value:s}),s},get SUPPORT_SVG_DRAWING(){var s=Ry(document);return Object.defineProperty(he,"SUPPORT_SVG_DRAWING",{value:s}),s},get SUPPORT_FOREIGNOBJECT_DRAWING(){var s=typeof Array.from=="function"&&typeof window.fetch=="function"?Vy(document):Promise.resolve(!1);return Object.defineProperty(he,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:s}),s},get SUPPORT_CORS_IMAGES(){var s=Oy();return Object.defineProperty(he,"SUPPORT_CORS_IMAGES",{value:s}),s},get SUPPORT_RESPONSE_TYPE(){var s=Ky();return Object.defineProperty(he,"SUPPORT_RESPONSE_TYPE",{value:s}),s},get SUPPORT_CORS_XHR(){var s="withCredentials"in new XMLHttpRequest;return Object.defineProperty(he,"SUPPORT_CORS_XHR",{value:s}),s},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var s=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(he,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:s}),s}},rr=(function(){function s(i,c){this.text=i,this.bounds=c}return s})(),Py=function(s,i,c,l){var f=Xy(i,c),p=[],C=0;return f.forEach(function(Q){if(c.textDecorationLine.length||Q.trim().length>0)if(he.SUPPORT_RANGE_BOUNDS){var E=kc(l,C,Q.length).getClientRects();if(E.length>1){var L=ji(Q),V=0;L.forEach(function(j){p.push(new rr(j,h.fromDOMRectList(s,kc(l,V+C,j.length).getClientRects()))),V+=j.length})}else p.push(new rr(Q,h.fromDOMRectList(s,E)))}else{var X=l.splitText(Q.length);p.push(new rr(Q,Gy(s,l))),l=X}else he.SUPPORT_RANGE_BOUNDS||(l=l.splitText(Q.length));C+=Q.length}),p},Gy=function(s,i){var c=i.ownerDocument;if(c){var l=c.createElement("html2canvaswrapper");l.appendChild(i.cloneNode(!0));var f=i.parentNode;if(f){f.replaceChild(l,i);var p=g(s,l);return l.firstChild&&f.replaceChild(l.firstChild,l),p}}return h.EMPTY},kc=function(s,i,c){var l=s.ownerDocument;if(!l)throw new Error("Node has no owner document");var f=l.createRange();return f.setStart(s,i),f.setEnd(s,i+c),f},ji=function(s){if(he.SUPPORT_NATIVE_TEXT_SEGMENTATION){var i=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(i.segment(s)).map(function(c){return c.segment})}return Ty(s)},zy=function(s,i){if(he.SUPPORT_NATIVE_TEXT_SEGMENTATION){var c=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(c.segment(s)).map(function(l){return l.segment})}return Yy(s,i)},Xy=function(s,i){return i.letterSpacing!==0?ji(s):zy(s,i)},$y=[32,160,4961,65792,65793,4153,4241],Yy=function(s,i){for(var c=b0(s,{lineBreak:i.lineBreak,wordBreak:i.overflowWrap==="break-word"?"break-word":i.wordBreak}),l=[],f,p=function(){if(f.value){var C=w(f.value.slice()),Q="";C.forEach(function(E){$y.indexOf(E)===-1?Q+=m(E):(Q.length&&l.push(Q),l.push(m(E)),Q="")}),Q.length&&l.push(Q)}};!(f=c.next()).done;)p();return l},Wy=(function(){function s(i,c,l){this.text=Jy(c.data,l.textTransform),this.textBounds=Py(i,this.text,l,c)}return s})(),Jy=function(s,i){switch(i){case 1:return s.toLowerCase();case 3:return s.replace(Zy,jy);case 2:return s.toUpperCase();default:return s}},Zy=/(^|\s|:|-|\(|\))([a-z])/g,jy=function(s,i,c){return s.length>0?i+c.toUpperCase():s},Mc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f.src=l.currentSrc||l.src,f.intrinsicWidth=l.naturalWidth,f.intrinsicHeight=l.naturalHeight,f.context.cache.addImage(f.src),f}return i})(Je),Oc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f.canvas=l,f.intrinsicWidth=l.width,f.intrinsicHeight=l.height,f}return i})(Je),Kc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this,p=new XMLSerializer,C=g(c,l);return l.setAttribute("width",C.width+"px"),l.setAttribute("height",C.height+"px"),f.svg="data:image/svg+xml,"+encodeURIComponent(p.serializeToString(l)),f.intrinsicWidth=l.width.baseVal.value,f.intrinsicHeight=l.height.baseVal.value,f.context.cache.addImage(f.svg),f}return i})(Je),Rc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f.value=l.value,f}return i})(Je),qi=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f.start=l.start,f.reversed=typeof l.reversed=="boolean"&&l.reversed===!0,f}return i})(Je),qy=[{type:15,flags:0,unit:"px",number:3}],AQ=[{type:16,flags:0,number:50}],eQ=function(s){return s.width>s.height?new h(s.left+(s.width-s.height)/2,s.top,s.height,s.height):s.width<s.height?new h(s.left,s.top+(s.height-s.width)/2,s.width,s.width):s},tQ=function(s){var i=s.type===nQ?new Array(s.value.length+1).join("•"):s.value;return i.length===0?s.placeholder||"":i},Eo="checkbox",Fo="radio",nQ="password",Vc=707406591,As=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;switch(f.type=l.type.toLowerCase(),f.checked=l.checked,f.value=tQ(l),(f.type===Eo||f.type===Fo)&&(f.styles.backgroundColor=3739148031,f.styles.borderTopColor=f.styles.borderRightColor=f.styles.borderBottomColor=f.styles.borderLeftColor=2779096575,f.styles.borderTopWidth=f.styles.borderRightWidth=f.styles.borderBottomWidth=f.styles.borderLeftWidth=1,f.styles.borderTopStyle=f.styles.borderRightStyle=f.styles.borderBottomStyle=f.styles.borderLeftStyle=1,f.styles.backgroundClip=[0],f.styles.backgroundOrigin=[0],f.bounds=eQ(f.bounds)),f.type){case Eo:f.styles.borderTopRightRadius=f.styles.borderTopLeftRadius=f.styles.borderBottomRightRadius=f.styles.borderBottomLeftRadius=qy;break;case Fo:f.styles.borderTopRightRadius=f.styles.borderTopLeftRadius=f.styles.borderBottomRightRadius=f.styles.borderBottomLeftRadius=AQ;break}return f}return i})(Je),Pc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this,p=l.options[l.selectedIndex||0];return f.value=p&&p.text||"",f}return i})(Je),Gc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f.value=l.value,f}return i})(Je),zc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;f.src=l.src,f.width=parseInt(l.width,10)||0,f.height=parseInt(l.height,10)||0,f.backgroundColor=f.styles.backgroundColor;try{if(l.contentWindow&&l.contentWindow.document&&l.contentWindow.document.documentElement){f.tree=$c(c,l.contentWindow.document.documentElement);var p=l.contentWindow.document.documentElement?er(c,getComputedStyle(l.contentWindow.document.documentElement).backgroundColor):lt.TRANSPARENT,C=l.contentWindow.document.body?er(c,getComputedStyle(l.contentWindow.document.body).backgroundColor):lt.TRANSPARENT;f.backgroundColor=Ut(p)?Ut(C)?f.styles.backgroundColor:C:p}}catch{}return f}return i})(Je),rQ=["OL","UL","MENU"],Uo=function(s,i,c,l){for(var f=i.firstChild,p=void 0;f;f=p)if(p=f.nextSibling,Yc(f)&&f.data.trim().length>0)c.textNodes.push(new Wy(s,f,c.styles));else if(gn(f))if(Au(f)&&f.assignedNodes)f.assignedNodes().forEach(function(Q){return Uo(s,Q,c,l)});else{var C=Xc(s,f);C.styles.isVisible()&&(oQ(f,C,l)?C.flags|=4:iQ(C.styles)&&(C.flags|=2),rQ.indexOf(f.tagName)!==-1&&(C.flags|=8),c.elements.push(C),f.slot,f.shadowRoot?Uo(s,f.shadowRoot,C,l):!Ho(f)&&!Wc(f)&&!Io(f)&&Uo(s,f,C,l))}},Xc=function(s,i){return ns(i)?new Mc(s,i):Jc(i)?new Oc(s,i):Wc(i)?new Kc(s,i):sQ(i)?new Rc(s,i):aQ(i)?new qi(s,i):lQ(i)?new As(s,i):Io(i)?new Pc(s,i):Ho(i)?new Gc(s,i):jc(i)?new zc(s,i):new Je(s,i)},$c=function(s,i){var c=Xc(s,i);return c.flags|=4,Uo(s,i,c,c),c},oQ=function(s,i,c){return i.styles.isPositionedWithZIndex()||i.styles.opacity<1||i.styles.isTransformed()||ts(s)&&c.styles.isTransparent()},iQ=function(s){return s.isPositioned()||s.isFloating()},Yc=function(s){return s.nodeType===Node.TEXT_NODE},gn=function(s){return s.nodeType===Node.ELEMENT_NODE},es=function(s){return gn(s)&&typeof s.style<"u"&&!bo(s)},bo=function(s){return typeof s.className=="object"},sQ=function(s){return s.tagName==="LI"},aQ=function(s){return s.tagName==="OL"},lQ=function(s){return s.tagName==="INPUT"},cQ=function(s){return s.tagName==="HTML"},Wc=function(s){return s.tagName==="svg"},ts=function(s){return s.tagName==="BODY"},Jc=function(s){return s.tagName==="CANVAS"},Zc=function(s){return s.tagName==="VIDEO"},ns=function(s){return s.tagName==="IMG"},jc=function(s){return s.tagName==="IFRAME"},qc=function(s){return s.tagName==="STYLE"},uQ=function(s){return s.tagName==="SCRIPT"},Ho=function(s){return s.tagName==="TEXTAREA"},Io=function(s){return s.tagName==="SELECT"},Au=function(s){return s.tagName==="SLOT"},eu=function(s){return s.tagName.indexOf("-")>0},dQ=(function(){function s(){this.counters={}}return s.prototype.getCounterValue=function(i){var c=this.counters[i];return c&&c.length?c[c.length-1]:1},s.prototype.getCounterValues=function(i){var c=this.counters[i];return c||[]},s.prototype.pop=function(i){var c=this;i.forEach(function(l){return c.counters[l].pop()})},s.prototype.parse=function(i){var c=this,l=i.counterIncrement,f=i.counterReset,p=!0;l!==null&&l.forEach(function(Q){var E=c.counters[Q.counter];E&&Q.increment!==0&&(p=!1,E.length||E.push(1),E[Math.max(0,E.length-1)]+=Q.increment)});var C=[];return p&&f.forEach(function(Q){var E=c.counters[Q.counter];C.push(Q.counter),E||(E=c.counters[Q.counter]=[]),E.push(Q.reset)}),C},s})(),tu={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},nu={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},fQ={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},gQ={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},hn=function(s,i,c,l,f,p){return s<i||s>c?ir(s,f,p.length>0):l.integers.reduce(function(C,Q,E){for(;s>=Q;)s-=Q,C+=l.values[E];return C},"")+p},ru=function(s,i,c,l){var f="";do c||s--,f=l(s)+f,s/=i;while(s*i>=i);return f},ie=function(s,i,c,l,f){var p=c-i+1;return(s<0?"-":"")+(ru(Math.abs(s),p,l,function(C){return m(Math.floor(C%p)+i)})+f)},Gt=function(s,i,c){c===void 0&&(c=". ");var l=i.length;return ru(Math.abs(s),l,!1,function(f){return i[Math.floor(f%l)]})+c},Bn=1,Ht=2,It=4,or=8,ct=function(s,i,c,l,f,p){if(s<-9999||s>9999)return ir(s,4,f.length>0);var C=Math.abs(s),Q=f;if(C===0)return i[0]+Q;for(var E=0;C>0&&E<=4;E++){var L=C%10;L===0&&de(p,Bn)&&Q!==""?Q=i[L]+Q:L>1||L===1&&E===0||L===1&&E===1&&de(p,Ht)||L===1&&E===1&&de(p,It)&&s>100||L===1&&E>1&&de(p,or)?Q=i[L]+(E>0?c[E-1]:"")+Q:L===1&&E>0&&(Q=c[E-1]+Q),C=Math.floor(C/10)}return(s<0?l:"")+Q},ou="十百千萬",iu="拾佰仟萬",su="マイナス",rs="마이너스",ir=function(s,i,c){var l=c?". ":"",f=c?"、":"",p=c?", ":"",C=c?" ":"";switch(i){case 0:return"•"+C;case 1:return"◦"+C;case 2:return"◾"+C;case 5:var Q=ie(s,48,57,!0,l);return Q.length<4?"0"+Q:Q;case 4:return Gt(s,"〇一二三四五六七八九",f);case 6:return hn(s,1,3999,tu,3,l).toLowerCase();case 7:return hn(s,1,3999,tu,3,l);case 8:return ie(s,945,969,!1,l);case 9:return ie(s,97,122,!1,l);case 10:return ie(s,65,90,!1,l);case 11:return ie(s,1632,1641,!0,l);case 12:case 49:return hn(s,1,9999,nu,3,l);case 35:return hn(s,1,9999,nu,3,l).toLowerCase();case 13:return ie(s,2534,2543,!0,l);case 14:case 30:return ie(s,6112,6121,!0,l);case 15:return Gt(s,"子丑寅卯辰巳午未申酉戌亥",f);case 16:return Gt(s,"甲乙丙丁戊己庚辛壬癸",f);case 17:case 48:return ct(s,"零一二三四五六七八九",ou,"負",f,Ht|It|or);case 47:return ct(s,"零壹貳參肆伍陸柒捌玖",iu,"負",f,Bn|Ht|It|or);case 42:return ct(s,"零一二三四五六七八九",ou,"负",f,Ht|It|or);case 41:return ct(s,"零壹贰叁肆伍陆柒捌玖",iu,"负",f,Bn|Ht|It|or);case 26:return ct(s,"〇一二三四五六七八九","十百千万",su,f,0);case 25:return ct(s,"零壱弐参四伍六七八九","拾百千万",su,f,Bn|Ht|It);case 31:return ct(s,"영일이삼사오육칠팔구","십백천만",rs,p,Bn|Ht|It);case 33:return ct(s,"零一二三四五六七八九","十百千萬",rs,p,0);case 32:return ct(s,"零壹貳參四五六七八九","拾百千",rs,p,Bn|Ht|It);case 18:return ie(s,2406,2415,!0,l);case 20:return hn(s,1,19999,gQ,3,l);case 21:return ie(s,2790,2799,!0,l);case 22:return ie(s,2662,2671,!0,l);case 22:return hn(s,1,10999,fQ,3,l);case 23:return Gt(s,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Gt(s,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return ie(s,3302,3311,!0,l);case 28:return Gt(s,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",f);case 29:return Gt(s,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",f);case 34:return ie(s,3792,3801,!0,l);case 37:return ie(s,6160,6169,!0,l);case 38:return ie(s,4160,4169,!0,l);case 39:return ie(s,2918,2927,!0,l);case 40:return ie(s,1776,1785,!0,l);case 43:return ie(s,3046,3055,!0,l);case 44:return ie(s,3174,3183,!0,l);case 45:return ie(s,3664,3673,!0,l);case 46:return ie(s,3872,3881,!0,l);default:return ie(s,48,57,!0,l)}},au="data-html2canvas-ignore",lu=(function(){function s(i,c,l){if(this.context=i,this.options=l,this.scrolledElements=[],this.referenceElement=c,this.counters=new dQ,this.quoteDepth=0,!c.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(c.ownerDocument.documentElement,!1)}return s.prototype.toIFrame=function(i,c){var l=this,f=hQ(i,c);if(!f.contentWindow)return Promise.reject("Unable to find iframe window");var p=i.defaultView.pageXOffset,C=i.defaultView.pageYOffset,Q=f.contentWindow,E=Q.document,L=mQ(f).then(function(){return a(l,void 0,void 0,function(){var V,X;return u(this,function(j){switch(j.label){case 0:return this.scrolledElements.forEach(yQ),Q&&(Q.scrollTo(c.left,c.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(Q.scrollY!==c.top||Q.scrollX!==c.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(Q.scrollX-c.left,Q.scrollY-c.top,0,0))),V=this.options.onclone,X=this.clonedReferenceElement,typeof X>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:E.fonts&&E.fonts.ready?[4,E.fonts.ready]:[3,2];case 1:j.sent(),j.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,pQ(E)]:[3,4];case 3:j.sent(),j.label=4;case 4:return typeof V=="function"?[2,Promise.resolve().then(function(){return V(E,X)}).then(function(){return f})]:[2,f]}})})});return E.open(),E.write(CQ(document.doctype)+"<html></html>"),vQ(this.referenceElement.ownerDocument,p,C),E.replaceChild(E.adoptNode(this.documentElement),E.documentElement),E.close(),L},s.prototype.createElementClone=function(i){if(Ri(i,2))debugger;if(Jc(i))return this.createCanvasClone(i);if(Zc(i))return this.createVideoClone(i);if(qc(i))return this.createStyleClone(i);var c=i.cloneNode(!1);return ns(c)&&(ns(i)&&i.currentSrc&&i.currentSrc!==i.src&&(c.src=i.currentSrc,c.srcset=""),c.loading==="lazy"&&(c.loading="eager")),eu(c)?this.createCustomElementClone(c):c},s.prototype.createCustomElementClone=function(i){var c=document.createElement("html2canvascustomelement");return os(i.style,c),c},s.prototype.createStyleClone=function(i){try{var c=i.sheet;if(c&&c.cssRules){var l=[].slice.call(c.cssRules,0).reduce(function(p,C){return C&&typeof C.cssText=="string"?p+C.cssText:p},""),f=i.cloneNode(!1);return f.textContent=l,f}}catch(p){if(this.context.logger.error("Unable to access cssRules property",p),p.name!=="SecurityError")throw p}return i.cloneNode(!1)},s.prototype.createCanvasClone=function(i){var c;if(this.options.inlineImages&&i.ownerDocument){var l=i.ownerDocument.createElement("img");try{return l.src=i.toDataURL(),l}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",i)}}var f=i.cloneNode(!1);try{f.width=i.width,f.height=i.height;var p=i.getContext("2d"),C=f.getContext("2d");if(C)if(!this.options.allowTaint&&p)C.putImageData(p.getImageData(0,0,i.width,i.height),0,0);else{var Q=(c=i.getContext("webgl2"))!==null&&c!==void 0?c:i.getContext("webgl");if(Q){var E=Q.getContextAttributes();E?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",i)}C.drawImage(i,0,0)}return f}catch{this.context.logger.info("Unable to clone canvas as it is tainted",i)}return f},s.prototype.createVideoClone=function(i){var c=i.ownerDocument.createElement("canvas");c.width=i.offsetWidth,c.height=i.offsetHeight;var l=c.getContext("2d");try{return l&&(l.drawImage(i,0,0,c.width,c.height),this.options.allowTaint||l.getImageData(0,0,c.width,c.height)),c}catch{this.context.logger.info("Unable to clone video as it is tainted",i)}var f=i.ownerDocument.createElement("canvas");return f.width=i.offsetWidth,f.height=i.offsetHeight,f},s.prototype.appendChildNode=function(i,c,l){(!gn(c)||!uQ(c)&&!c.hasAttribute(au)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(c)))&&(!this.options.copyStyles||!gn(c)||!qc(c))&&i.appendChild(this.cloneNode(c,l))},s.prototype.cloneChildNodes=function(i,c,l){for(var f=this,p=i.shadowRoot?i.shadowRoot.firstChild:i.firstChild;p;p=p.nextSibling)if(gn(p)&&Au(p)&&typeof p.assignedNodes=="function"){var C=p.assignedNodes();C.length&&C.forEach(function(Q){return f.appendChildNode(c,Q,l)})}else this.appendChildNode(c,p,l)},s.prototype.cloneNode=function(i,c){if(Yc(i))return document.createTextNode(i.data);if(!i.ownerDocument)return i.cloneNode(!1);var l=i.ownerDocument.defaultView;if(l&&gn(i)&&(es(i)||bo(i))){var f=this.createElementClone(i);f.style.transitionProperty="none";var p=l.getComputedStyle(i),C=l.getComputedStyle(i,":before"),Q=l.getComputedStyle(i,":after");this.referenceElement===i&&es(f)&&(this.clonedReferenceElement=f),ts(f)&&FQ(f);var E=this.counters.parse(new Qc(this.context,p)),L=this.resolvePseudoContent(i,f,C,sr.BEFORE);eu(i)&&(c=!0),Zc(i)||this.cloneChildNodes(i,f,c),L&&f.insertBefore(L,f.firstChild);var V=this.resolvePseudoContent(i,f,Q,sr.AFTER);return V&&f.appendChild(V),this.counters.pop(E),(p&&(this.options.copyStyles||bo(i))&&!jc(i)||c)&&os(p,f),(i.scrollTop!==0||i.scrollLeft!==0)&&this.scrolledElements.push([f,i.scrollLeft,i.scrollTop]),(Ho(i)||Io(i))&&(Ho(f)||Io(f))&&(f.value=i.value),f}return i.cloneNode(!1)},s.prototype.resolvePseudoContent=function(i,c,l,f){var p=this;if(l){var C=l.content,Q=c.ownerDocument;if(!(!Q||!C||C==="none"||C==="-moz-alt-content"||l.display==="none")){this.counters.parse(new Qc(this.context,l));var E=new fy(this.context,l),L=Q.createElement("html2canvaspseudoelement");os(l,L),E.content.forEach(function(X){if(X.type===0)L.appendChild(Q.createTextNode(X.value));else if(X.type===22){var j=Q.createElement("img");j.src=X.value,j.style.opacity="1",L.appendChild(j)}else if(X.type===18){if(X.name==="attr"){var CA=X.values.filter(JA);CA.length&&L.appendChild(Q.createTextNode(i.getAttribute(CA[0].value)||""))}else if(X.name==="counter"){var hA=X.values.filter(dn),pA=hA[0],VA=hA[1];if(pA&&JA(pA)){var xA=p.counters.getCounterValue(pA.value),IA=VA&&JA(VA)?Ki.parse(p.context,VA.value):3;L.appendChild(Q.createTextNode(ir(xA,IA,!1)))}}else if(X.name==="counters"){var ee=X.values.filter(dn),pA=ee[0],zA=ee[1],VA=ee[2];if(pA&&JA(pA)){var TA=p.counters.getCounterValues(pA.value),QA=VA&&JA(VA)?Ki.parse(p.context,VA.value):3,PA=zA&&zA.type===0?zA.value:"",GA=TA.map(function(ye){return ir(ye,QA,!1)}).join(PA);L.appendChild(Q.createTextNode(GA))}}}else if(X.type===20)switch(X.value){case"open-quote":L.appendChild(Q.createTextNode(yc(E.quotes,p.quoteDepth++,!0)));break;case"close-quote":L.appendChild(Q.createTextNode(yc(E.quotes,--p.quoteDepth,!1)));break;default:L.appendChild(Q.createTextNode(X.value))}}),L.className=is+" "+ss;var V=f===sr.BEFORE?" "+is:" "+ss;return bo(c)?c.className.baseValue+=V:c.className+=V,L}}},s.destroy=function(i){return i.parentNode?(i.parentNode.removeChild(i),!0):!1},s})(),sr;(function(s){s[s.BEFORE=0]="BEFORE",s[s.AFTER=1]="AFTER"})(sr||(sr={}));var hQ=function(s,i){var c=s.createElement("iframe");return c.className="html2canvas-container",c.style.visibility="hidden",c.style.position="fixed",c.style.left="-10000px",c.style.top="0px",c.style.border="0",c.width=i.width.toString(),c.height=i.height.toString(),c.scrolling="no",c.setAttribute(au,"true"),s.body.appendChild(c),c},BQ=function(s){return new Promise(function(i){if(s.complete){i();return}if(!s.src){i();return}s.onload=i,s.onerror=i})},pQ=function(s){return Promise.all([].slice.call(s.images,0).map(BQ))},mQ=function(s){return new Promise(function(i,c){var l=s.contentWindow;if(!l)return c("No window assigned for iframe");var f=l.document;l.onload=s.onload=function(){l.onload=s.onload=null;var p=setInterval(function(){f.body.childNodes.length>0&&f.readyState==="complete"&&(clearInterval(p),i(s))},50)}})},wQ=["all","d","content"],os=function(s,i){for(var c=s.length-1;c>=0;c--){var l=s.item(c);wQ.indexOf(l)===-1&&i.style.setProperty(l,s.getPropertyValue(l))}return i},CQ=function(s){var i="";return s&&(i+="<!DOCTYPE ",s.name&&(i+=s.name),s.internalSubset&&(i+=s.internalSubset),s.publicId&&(i+='"'+s.publicId+'"'),s.systemId&&(i+='"'+s.systemId+'"'),i+=">"),i},vQ=function(s,i,c){s&&s.defaultView&&(i!==s.defaultView.pageXOffset||c!==s.defaultView.pageYOffset)&&s.defaultView.scrollTo(i,c)},yQ=function(s){var i=s[0],c=s[1],l=s[2];i.scrollLeft=c,i.scrollTop=l},QQ=":before",EQ=":after",is="___html2canvas___pseudoelement_before",ss="___html2canvas___pseudoelement_after",cu=`{
|
|
31
|
+
"Microsoft YaHei", "WenQuanYi Zen Hei", sans-serif`,B.lineWidth=1,B.textBaseline="middle")}},d=g=>{const B={scale:e.scale,width:e.width,height:e.height,palette:e.palette,ratio:g};t.canvasContext&&Ow(t.canvasContext,e.start,e.selectStart,e.selectLength,B,!e.vertical)};return(0,jA.watch)(()=>e.start,()=>d(n)),(0,jA.watch)([()=>e.width,()=>e.height],()=>{u(n),d(n)}),{handle:(g,B)=>{const m=((v,y,I)=>Math.round(y+v/I))(e.vertical?g.offsetY:g.offsetX,e.start,e.scale);switch(B){case"click":A("onAddLine",m);break;case"enter":A("update:valueNum",m),A("update:showIndicator",!0);break;default:A("update:valueNum",m);break}},canvas:o}}});function Rw(e,A,t,n,o,a){return(0,r.openBlock)(),(0,r.createElementBlock)("canvas",{ref:"canvas",class:"ruler",onClick:A[0]||(A[0]=u=>e.handle(u,"click")),onMouseenter:A[1]||(A[1]=u=>e.handle(u,"enter")),onMousemove:A[2]||(A[2]=u=>e.handle(u,"move")),onMouseleave:A[3]||(A[3]=u=>e.$emit("update:showIndicator",!1))},null,544)}var Vw=(0,jA.defineComponent)({name:"RulerWrapper",components:{CanvasRuler:Zr(Kw,[["render",Rw]]),RulerLine:kw},props:{scale:Number,ratio:Number,thick:Number,palette:Object,vertical:{type:Boolean,default:!0},width:{type:Number,default:200},height:{type:Number,default:200},start:{type:Number,default:0},lines:{type:Array,default:()=>[]},selectStart:{type:Number},selectLength:{type:Number},isShowReferLine:{type:Boolean}},setup(e){const A=(0,jA.ref)(!1),t=(0,jA.ref)(0),n=(0,jA.computed)(()=>e.vertical?"v-container":"h-container"),o=(0,jA.computed)(()=>{const g={width:`calc(100% - ${e.thick}px)`,height:`${e.thick+1}px`,left:`${e.thick}px`},B={width:`${e.thick&&e.thick+1}px`,height:`calc(100% - ${e.thick}px)`,top:`${e.thick}px`};return e.vertical?B:g}),a=(0,jA.computed)(()=>{var g;const B=(t.value-e.start)*e.scale;let w="top",m="borderLeft";return w=e.vertical?"top":"left",m=e.vertical?"borderBottom":"borderLeft",{[w]:B+"px",[m]:`1px solid ${(g=e.palette)==null?void 0:g.lineColor}`}}),u=g=>{e.lines.push(g)},d=(g,B)=>{const w=g-e.start,m=(e.vertical?e.height:e.width)/e.scale;w<0||w>m?h(B):e.lines[B]=g},h=g=>{e.lines.splice(g,1)};return{showIndicator:A,valueNum:t,rwClassName:n,rwStyle:o,indicatorStyle:a,handleNewLine:u,handleLineRelease:d,handleLineRemove:h}}}),Pw={class:"lines"},Gw={class:"value"};function zw(e,A,t,n,o,a){const u=(0,r.resolveComponent)("CanvasRuler"),d=(0,r.resolveComponent)("RulerLine");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(e.rwClassName),style:(0,r.normalizeStyle)(e.rwStyle)},[(0,r.createVNode)(u,{vertical:e.vertical,scale:e.scale,width:e.width,height:e.height,start:e.start,ratio:e.ratio,"select-start":e.selectStart,"select-length":e.selectLength,palette:e.palette,valueNum:e.valueNum,"onUpdate:valueNum":A[0]||(A[0]=h=>e.valueNum=h),showIndicator:e.showIndicator,"onUpdate:showIndicator":A[1]||(A[1]=h=>e.showIndicator=h),onOnAddLine:e.handleNewLine},null,8,["vertical","scale","width","height","start","ratio","select-start","select-length","palette","valueNum","showIndicator","onOnAddLine"]),(0,r.withDirectives)((0,r.createElementVNode)("div",Pw,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.lines,(h,g)=>((0,r.openBlock)(),(0,r.createBlock)(d,{key:h+g,index:g,value:h>>0,scale:e.scale,start:e.start,thick:e.thick,palette:e.palette,vertical:e.vertical,"is-show-refer-line":e.isShowReferLine,onOnRemove:e.handleLineRemove,onOnRelease:e.handleLineRelease},null,8,["index","value","scale","start","thick","palette","vertical","is-show-refer-line","onOnRemove","onOnRelease"]))),128))],512),[[r.vShow,e.isShowReferLine]]),(0,r.withDirectives)((0,r.createElementVNode)("div",{class:"indicator",style:(0,r.normalizeStyle)(e.indicatorStyle)},[(0,r.createElementVNode)("div",Gw,(0,r.toDisplayString)(e.valueNum),1)],4),[[r.vShow,e.showIndicator]])],6)}var Xw=Zr(Vw,[["render",zw],["__scopeId","data-v-b6c23352"]]),$w="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAAXNSR0IArs4c6QAAAopJREFUOE/FlE9IVEEcx7+/N9ouds1Mu0QUSFZYdIgoUqQoKPBQHsKozpXE7jbTO/U8xLJvn6usBHWQ6hBFXupSkQeVbh0KJEPp0sH+eLGTsKs77xcj78m0ax0E8cHjzZv5zef3/c33xxA24KENYGJzoEEQbNNaN4Zh2OQ4znwYhr9c1/39vwrXVDo0NNS0tLR0GYB5D64BmAMwzMyvlFKz1es10Hw+f4mZ7wHYBeA9gNdENFepVOaEEM3M3OI4Thczn41gt6WUgQ3+C+r7/h0AWQD3mXnYqPA8L9nQ0HCemduIaFpKOWoAhUJhT6VSuQXgOjP3K6W8GLwKzeVyp4jonR0QBEErM48w8zFLyayUsjX+z+VyHhHdZebTSqkxM78CHRgYOKS1/ghgVErZY214RkQ7ADyRUj72ff8qgCtmXUrZGcf5vv8CwEUhxOF0Ov1pBRpla5dSdseBhUJhpznH6tIsZb1KqacW+BGArUaUXX63UuplHJTNZjuEEONSyhozfd/n6mQ1RkXZL2itz7mu+80EDA4ONi8vL/8AcM2UbikyR2BU9cSmmTU70YqKIAj2hWFo2uenlHK/BRg3Y2aeNO5GyU8S0ZbFxcUuz/NKEXAGQKPjOCcymcyX1dIi8DSAiWQyeaavr68cbSgCuBknYubnQoj+TCYzUywWE6VS6S2ADsdx2gxw1X3L7SNENMbMnwE8qK+vf5NKpRaMaeVyeW8ikfiaSqW+R7BuZr5BRMe11p2u607U9Gk8kc/ntzPzQwCmExYATDLzVBiGE0KIowAOADDf3QA+aK2VDaxRajto3K+rq+tl5nYAzQBamHmeiOYBTGmtR6ph/1Rqg9c73pz7dD1qN0TpHyNQRCUDJXrAAAAAAElFTkSuQmCC",Yw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAAXNSR0IArs4c6QAAAjtJREFUOE/NlD9oFEEUxn9v9ghC0hpRUogIAUmniGAT/5Q2FrETPSNRJILg7RwimI0ox85eQFCEBGIUO1PYpFM0jSConQoBEZGgGPsgl+w+2eM2bC57SopAFqYZ3v7m+977ZoQt+GQLmGxPaBiGgYiMWWvXBHZUGoZhH3BERPYC+4F+4Keq/urt7b1RLpf/ZEBVHa9Wq0HWyg3QKIoGVPU8cA7wgK/pUtXPQJ8xZk+pVBpuNBqXUoUiEvi+P56fzTpo6+SbwHNg1lo7WzTITGEKXFlZeeB53tVCpa3CK8AFa+1cBgvD8LKIXAQOJkkyICJDeYVBEJS6u7s/qeoLa+1o+l9TqXNuBLhmjDlbqVQ+5ICjInIfOBPH8W9jzGCR5YmJiRNxHM+papgqzqDvgSlr7VTernPuO3An3c9bBt74vv+yrdaKyLDv+/1Sq9UGPc97nY9EVuycU2AQOA7cAm4Dr4D5TvVxHB9rKo2iaEFVp621Ln96FEUngaOqGmSxabVqsh3a2h+x1h5qQjNrae/yE4+iaCwDJkky73neTuBZe129Xk+H+BS4l7ZqLVIZ2BhzuFKpvMsDVXXWGPMxFdAedOfcKeCRqj7MYrUhpz09PfXl5eXrectFWXXODQHpOq2qd/95o/JXr6ura3J1dXU6SZIfwKKIHAD2tVYMPBGRx77vN10UXtO85fTkmZmZHUtLSzUR2QXsBhaAL6r6DXhbrVYXi1yss59GqOgub/bN3Z7v6X/tb9Zmp/q/kN8s+lJb8oEAAAAASUVORK5CYII=",Ww=(0,jA.defineComponent)({name:"SketchRule",components:{RulerWrapper:Xw},props:{eyeIcon:{type:String},closeEyeIcon:{type:String},scale:{type:Number,default:1},ratio:{type:Number},thick:{type:Number,default:16},palette:Object,startX:{type:Number},startY:{type:Number,default:0},width:{type:Number,default:200},height:{type:Number,default:200},shadow:{type:Object,default:()=>({x:0,y:0,width:0,height:0})},lines:{type:Object,default:()=>({h:[],v:[]})},isShowReferLine:{type:Boolean,default:!0}},emits:["onCornerClick"],setup(e,{emit:A}){let t=(0,jA.ref)(!0);t.value=e.isShowReferLine;const n=(0,jA.computed)(()=>{function u(d,h){return Object.keys(d).forEach(g=>{g&&d.hasOwnProperty(g)&&(typeof h.key=="object"?d[g]=u(d[g],h[g]):h.hasOwnProperty(g)&&(d[g]=h[g]))}),d}return u({bgColor:"rgba(225,225,225, 0)",longfgColor:"#BABBBC",shortfgColor:"#C8CDD0",fontColor:"#7D8694",shadowColor:"#E8E8E8",lineColor:"#EB5648",borderColor:"#DADADC",cornerActiveColor:"rgb(235, 86, 72, 0.6)",menu:{bgColor:"#fff",dividerColor:"#DBDBDB",listItem:{textColor:"#415058",hoverTextColor:"#298DF8",disabledTextColor:"rgba(65, 80, 88, 0.4)",bgColor:"#fff",hoverBgColor:"#F2F2F2"}}},e.palette||{})}),o=(0,jA.computed)(()=>({backgroundImage:t.value?`url(${e.eyeIcon||$w})`:`url(${e.closeEyeIcon||Yw})`,width:e.thick+"px",height:e.thick+"px",borderRight:`1px solid ${n.value.borderColor}`,borderBottom:`1px solid ${n.value.borderColor}`})),a=u=>{t.value=!t.value,A("onCornerClick",t.value)};return(0,jA.watch)([()=>e.isShowReferLine],()=>{t.value=e.isShowReferLine}),{showReferLine:t,paletteCpu:n,cornerStyle:o,onCornerClick:a}}}),Jw={id:"mb-ruler",class:"style-ruler mb-ruler"};function Zw(e,A,t,n,o,a){const u=(0,r.resolveComponent)("RulerWrapper");return(0,r.openBlock)(),(0,r.createElementBlock)("div",Jw,[(0,r.createVNode)(u,{vertical:!1,width:e.width,height:e.thick,"is-show-refer-line":e.showReferLine,thick:e.thick,ratio:e.ratio,start:e.startX,lines:e.lines.h,"select-start":e.shadow.x,"select-length":e.shadow.width,scale:e.scale,palette:e.paletteCpu},null,8,["width","height","is-show-refer-line","thick","ratio","start","lines","select-start","select-length","scale","palette"]),(0,r.createVNode)(u,{vertical:!0,width:e.thick,height:e.height,"is-show-refer-line":e.showReferLine,thick:e.thick,ratio:e.ratio,start:e.startY,lines:e.lines.v,"select-start":e.shadow.y,"select-length":e.shadow.height,scale:e.scale,palette:e.paletteCpu},null,8,["width","height","is-show-refer-line","thick","ratio","start","lines","select-start","select-length","scale","palette"]),(0,r.createElementVNode)("a",{class:"corner",style:(0,r.normalizeStyle)(e.cornerStyle),onClick:A[0]||(A[0]=(...d)=>e.onCornerClick&&e.onCornerClick(...d))},null,4)])}var jw=Zr(Ww,[["render",Zw]]),qw=Iu(((e,A)=>{(function(t,n){typeof e=="object"&&typeof A<"u"?A.exports=n():typeof define=="function"&&define.amd?define(n):(t=typeof globalThis<"u"?globalThis:t||self,t.html2canvas=n())})(e,(function(){"use strict";var t=function(s,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,l){c.__proto__=l}||function(c,l){for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(c[f]=l[f])},t(s,i)};function n(s,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(s,i);function c(){this.constructor=s}s.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}var o=function(){return o=Object.assign||function(i){for(var c,l=1,f=arguments.length;l<f;l++){c=arguments[l];for(var p in c)Object.prototype.hasOwnProperty.call(c,p)&&(i[p]=c[p])}return i},o.apply(this,arguments)};function a(s,i,c,l){function f(p){return p instanceof c?p:new c(function(C){C(p)})}return new(c||(c=Promise))(function(p,C){function Q(V){try{L(l.next(V))}catch(X){C(X)}}function E(V){try{L(l.throw(V))}catch(X){C(X)}}function L(V){V.done?p(V.value):f(V.value).then(Q,E)}L((l=l.apply(s,i||[])).next())})}function u(s,i){var c={label:0,sent:function(){if(p[0]&1)throw p[1];return p[1]},trys:[],ops:[]},l,f,p,C;return C={next:Q(0),throw:Q(1),return:Q(2)},typeof Symbol=="function"&&(C[Symbol.iterator]=function(){return this}),C;function Q(L){return function(V){return E([L,V])}}function E(L){if(l)throw new TypeError("Generator is already executing.");for(;c;)try{if(l=1,f&&(p=L[0]&2?f.return:L[0]?f.throw||((p=f.return)&&p.call(f),0):f.next)&&!(p=p.call(f,L[1])).done)return p;switch(f=0,p&&(L=[L[0]&2,p.value]),L[0]){case 0:case 1:p=L;break;case 4:return c.label++,{value:L[1],done:!1};case 5:c.label++,f=L[1],L=[0];continue;case 7:L=c.ops.pop(),c.trys.pop();continue;default:if(p=c.trys,!(p=p.length>0&&p[p.length-1])&&(L[0]===6||L[0]===2)){c=0;continue}if(L[0]===3&&(!p||L[1]>p[0]&&L[1]<p[3])){c.label=L[1];break}if(L[0]===6&&c.label<p[1]){c.label=p[1],p=L;break}if(p&&c.label<p[2]){c.label=p[2],c.ops.push(L);break}p[2]&&c.ops.pop(),c.trys.pop();continue}L=i.call(s,c)}catch(V){L=[6,V],f=0}finally{l=p=0}if(L[0]&5)throw L[1];return{value:L[0]?L[1]:void 0,done:!0}}}function d(s,i,c){if(c||arguments.length===2)for(var l=0,f=i.length,p;l<f;l++)(p||!(l in i))&&(p||(p=Array.prototype.slice.call(i,0,l)),p[l]=i[l]);return s.concat(p||i)}for(var h=(function(){function s(i,c,l,f){this.left=i,this.top=c,this.width=l,this.height=f}return s.prototype.add=function(i,c,l,f){return new s(this.left+i,this.top+c,this.width+l,this.height+f)},s.fromClientRect=function(i,c){return new s(c.left+i.windowBounds.left,c.top+i.windowBounds.top,c.width,c.height)},s.fromDOMRectList=function(i,c){var l=Array.from(c).find(function(f){return f.width!==0});return l?new s(l.left+i.windowBounds.left,l.top+i.windowBounds.top,l.width,l.height):s.EMPTY},s.EMPTY=new s(0,0,0,0),s})(),g=function(s,i){return h.fromClientRect(s,i.getBoundingClientRect())},B=function(s){var i=s.body,c=s.documentElement;if(!i||!c)throw new Error("Unable to get document size");return new h(0,0,Math.max(Math.max(i.scrollWidth,c.scrollWidth),Math.max(i.offsetWidth,c.offsetWidth),Math.max(i.clientWidth,c.clientWidth)),Math.max(Math.max(i.scrollHeight,c.scrollHeight),Math.max(i.offsetHeight,c.offsetHeight),Math.max(i.clientHeight,c.clientHeight)))},w=function(s){for(var i=[],c=0,l=s.length;c<l;){var f=s.charCodeAt(c++);if(f>=55296&&f<=56319&&c<l){var p=s.charCodeAt(c++);(p&64512)===56320?i.push(((f&1023)<<10)+(p&1023)+65536):(i.push(f),c--)}else i.push(f)}return i},m=function(){for(var s=[],i=0;i<arguments.length;i++)s[i]=arguments[i];if(String.fromCodePoint)return String.fromCodePoint.apply(String,s);var c=s.length;if(!c)return"";for(var l=[],f=-1,p="";++f<c;){var C=s[f];C<=65535?l.push(C):(C-=65536,l.push((C>>10)+55296,C%1024+56320)),(f+1===c||l.length>16384)&&(p+=String.fromCharCode.apply(String,l),l.length=0)}return p},v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=typeof Uint8Array>"u"?[]:new Uint8Array(256),I=0;I<v.length;I++)y[v.charCodeAt(I)]=I;for(var N="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",D=typeof Uint8Array>"u"?[]:new Uint8Array(256),P=0;P<N.length;P++)D[N.charCodeAt(P)]=P;for(var H=function(s){var i=s.length*.75,c=s.length,l,f=0,p,C,Q,E;s[s.length-1]==="="&&(i--,s[s.length-2]==="="&&i--);var L=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(i):new Array(i),V=Array.isArray(L)?L:new Uint8Array(L);for(l=0;l<c;l+=4)p=D[s.charCodeAt(l)],C=D[s.charCodeAt(l+1)],Q=D[s.charCodeAt(l+2)],E=D[s.charCodeAt(l+3)],V[f++]=p<<2|C>>4,V[f++]=(C&15)<<4|Q>>2,V[f++]=(Q&3)<<6|E&63;return L},O=function(s){for(var i=s.length,c=[],l=0;l<i;l+=2)c.push(s[l+1]<<8|s[l]);return c},sA=function(s){for(var i=s.length,c=[],l=0;l<i;l+=4)c.push(s[l+3]<<24|s[l+2]<<16|s[l+1]<<8|s[l]);return c},J=5,cA=11,lA=2,oA=cA-J,iA=65536>>J,AA=(1<<J)-1,S=iA+(1024>>J)+32,eA=65536>>cA,U=(1<<oA)-1,K=function(s,i,c){return s.slice?s.slice(i,c):new Uint16Array(Array.prototype.slice.call(s,i,c))},b=function(s,i,c){return s.slice?s.slice(i,c):new Uint32Array(Array.prototype.slice.call(s,i,c))},R=function(s,i){var c=H(s),l=Array.isArray(c)?sA(c):new Uint32Array(c),f=Array.isArray(c)?O(c):new Uint16Array(c),p=24,C=K(f,p/2,l[4]/2),Q=l[5]===2?K(f,(p+l[4])/2):b(l,Math.ceil((p+l[4])/4));return new k(l[0],l[1],l[2],l[3],C,Q)},k=(function(){function s(i,c,l,f,p,C){this.initialValue=i,this.errorValue=c,this.highStart=l,this.highValueIndex=f,this.index=p,this.data=C}return s.prototype.get=function(i){var c;if(i>=0){if(i<55296||i>56319&&i<=65535)return c=this.index[i>>J],c=(c<<lA)+(i&AA),this.data[c];if(i<=65535)return c=this.index[iA+(i-55296>>J)],c=(c<<lA)+(i&AA),this.data[c];if(i<this.highStart)return c=S-eA+(i>>cA),c=this.index[c],c+=i>>J&U,c=this.index[c],c=(c<<lA)+(i&AA),this.data[c];if(i<=1114111)return this.data[this.highValueIndex]}return this.errorValue},s})(),T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",M=typeof Uint8Array>"u"?[]:new Uint8Array(256),Y=0;Y<T.length;Y++)M[T.charCodeAt(Y)]=Y;var tA="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxA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LAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAd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YIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwAD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MAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA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AQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABA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HgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4A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JQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",BA=50,bA=1,nA=2,W=3,$=4,uA=5,wA=7,HA=8,xA=9,gA=10,Z=11,_=12,F=13,x=14,z=15,G=16,dA=17,fA=18,QA=19,EA=20,NA=21,OA=22,KA=23,ee=24,qA=25,it=26,Ke=27,wt=28,Si=29,st=30,xi=31,_e=32,on=33,zn=34,sn=35,Xn=36,Mt=37,$n=38,Ot=39,Ct=40,jr=41,Di=42,rA=43,aA=[9001,65288],_A="!",pA="×",Ce="÷",at=R(tA),He=[st,Xn],Kt=[bA,nA,W,uA],an=[gA,HA],ln=[Ke,it],Ni=Kt.concat(an),qr=[$n,Ot,Ct,zn,sn],$A=[z,F],cn=function(s,i){i===void 0&&(i="strict");var c=[],l=[],f=[];return s.forEach(function(p,C){var Q=at.get(p);if(Q>BA?(f.push(!0),Q-=BA):f.push(!1),["normal","auto","loose"].indexOf(i)!==-1&&[8208,8211,12316,12448].indexOf(p)!==-1)return l.push(C),c.push(G);if(Q===$||Q===Z){if(C===0)return l.push(C),c.push(st);var E=c[C-1];return Ni.indexOf(E)===-1?(l.push(l[C-1]),c.push(E)):(l.push(C),c.push(st))}if(l.push(C),Q===xi)return c.push(i==="strict"?NA:Mt);if(Q===Di||Q===Si)return c.push(st);if(Q===rA)return p>=131072&&p<=196605||p>=196608&&p<=262141?c.push(Mt):c.push(st);c.push(Q)}),[l,c,f]},Re=function(s,i,c,l){var f=l[c];if(Array.isArray(s)?s.indexOf(f)!==-1:s===f)for(var p=c;p<=l.length;){p++;var C=l[p];if(C===i)return!0;if(C!==gA)break}if(f===gA)for(var p=c;p>0;){p--;var Q=l[p];if(Array.isArray(s)?s.indexOf(Q)!==-1:s===Q)for(var E=c;E<=l.length;){E++;var C=l[E];if(C===i)return!0;if(C!==gA)break}if(Q!==gA)break}return!1},Ao=function(s,i){for(var c=s;c>=0;){var l=i[c];if(l===gA)c--;else return l}return 0},eo=function(s,i,c,l,f){if(c[l]===0)return pA;var p=l-1;if(Array.isArray(f)&&f[p]===!0)return pA;var C=p-1,Q=p+1,E=i[p],L=C>=0?i[C]:0,V=i[Q];if(E===nA&&V===W)return pA;if(Kt.indexOf(E)!==-1)return _A;if(Kt.indexOf(V)!==-1||an.indexOf(V)!==-1)return pA;if(Ao(p,i)===HA)return Ce;if(at.get(s[p])===Z||(E===_e||E===on)&&at.get(s[Q])===Z||E===wA||V===wA||E===xA||[gA,F,z].indexOf(E)===-1&&V===xA||[dA,fA,QA,ee,wt].indexOf(V)!==-1||Ao(p,i)===OA||Re(KA,OA,p,i)||Re([dA,fA],NA,p,i)||Re(_,_,p,i))return pA;if(E===gA)return Ce;if(E===KA||V===KA)return pA;if(V===G||E===G)return Ce;if([F,z,NA].indexOf(V)!==-1||E===x||L===Xn&&$A.indexOf(E)!==-1||E===wt&&V===Xn||V===EA||He.indexOf(V)!==-1&&E===qA||He.indexOf(E)!==-1&&V===qA||E===Ke&&[Mt,_e,on].indexOf(V)!==-1||[Mt,_e,on].indexOf(E)!==-1&&V===it||He.indexOf(E)!==-1&&ln.indexOf(V)!==-1||ln.indexOf(E)!==-1&&He.indexOf(V)!==-1||[Ke,it].indexOf(E)!==-1&&(V===qA||[OA,z].indexOf(V)!==-1&&i[Q+1]===qA)||[OA,z].indexOf(E)!==-1&&V===qA||E===qA&&[qA,wt,ee].indexOf(V)!==-1)return pA;if([qA,wt,ee,dA,fA].indexOf(V)!==-1)for(var X=p;X>=0;){var j=i[X];if(j===qA)return pA;if([wt,ee].indexOf(j)!==-1)X--;else break}if([Ke,it].indexOf(V)!==-1)for(var X=[dA,fA].indexOf(E)!==-1?C:p;X>=0;){var j=i[X];if(j===qA)return pA;if([wt,ee].indexOf(j)!==-1)X--;else break}if($n===E&&[$n,Ot,zn,sn].indexOf(V)!==-1||[Ot,zn].indexOf(E)!==-1&&[Ot,Ct].indexOf(V)!==-1||[Ct,sn].indexOf(E)!==-1&&V===Ct||qr.indexOf(E)!==-1&&[EA,it].indexOf(V)!==-1||qr.indexOf(V)!==-1&&E===Ke||He.indexOf(E)!==-1&&He.indexOf(V)!==-1||E===ee&&He.indexOf(V)!==-1||He.concat(qA).indexOf(E)!==-1&&V===OA&&aA.indexOf(s[Q])===-1||He.concat(qA).indexOf(V)!==-1&&E===fA)return pA;if(E===jr&&V===jr){for(var CA=c[p],hA=1;CA>0&&(CA--,i[CA]===jr);)hA++;if(hA%2!==0)return pA}return E===_e&&V===on?pA:Ce},F0=function(s,i){i||(i={lineBreak:"normal",wordBreak:"normal"});var c=cn(s,i.lineBreak),l=c[0],f=c[1],p=c[2];(i.wordBreak==="break-all"||i.wordBreak==="break-word")&&(f=f.map(function(Q){return[qA,st,Di].indexOf(Q)!==-1?Mt:Q}));var C=i.wordBreak==="keep-all"?p.map(function(Q,E){return Q&&s[E]>=19968&&s[E]<=40959}):void 0;return[l,f,C]},U0=(function(){function s(i,c,l,f){this.codePoints=i,this.required=c===_A,this.start=l,this.end=f}return s.prototype.slice=function(){return m.apply(void 0,this.codePoints.slice(this.start,this.end))},s})(),b0=function(s,i){var c=w(s),l=F0(c,i),f=l[0],p=l[1],C=l[2],Q=c.length,E=0,L=0;return{next:function(){if(L>=Q)return{done:!0,value:null};for(var V=pA;L<Q&&(V=eo(c,p,f,++L,C))===pA;);if(V!==pA||L===Q){var X=new U0(c,V,E,L);return E=L,{value:X,done:!1}}return{done:!0,value:null}}}},H0=1,I0=2,Yn=4,Ol=8,to=10,Kl=47,Wn=92,_0=9,S0=32,no=34,Jn=61,x0=35,D0=36,N0=37,ro=39,oo=40,Zn=41,L0=95,ve=45,T0=33,k0=60,M0=62,O0=64,K0=91,R0=93,V0=61,P0=123,io=63,G0=125,Rl=124,z0=126,X0=128,Vl=65533,Li=42,Rt=43,$0=44,Y0=58,W0=59,jn=46,J0=0,Z0=8,j0=11,q0=14,AC=31,eC=127,We=-1,Pl=48,Gl=97,zl=101,tC=102,nC=117,rC=122,Xl=65,$l=69,Yl=70,oC=85,iC=90,Be=function(s){return s>=Pl&&s<=57},sC=function(s){return s>=55296&&s<=57343},un=function(s){return Be(s)||s>=Xl&&s<=Yl||s>=Gl&&s<=tC},aC=function(s){return s>=Gl&&s<=rC},lC=function(s){return s>=Xl&&s<=iC},cC=function(s){return aC(s)||lC(s)},uC=function(s){return s>=X0},so=function(s){return s===to||s===_0||s===S0},ao=function(s){return cC(s)||uC(s)||s===L0},Wl=function(s){return ao(s)||Be(s)||s===ve},dC=function(s){return s>=J0&&s<=Z0||s===j0||s>=q0&&s<=AC||s===eC},vt=function(s,i){return s!==Wn?!1:i!==to},lo=function(s,i,c){return s===ve?ao(i)||vt(i,c):ao(s)?!0:!!(s===Wn&&vt(s,i))},Ti=function(s,i,c){return s===Rt||s===ve?Be(i)?!0:i===jn&&Be(c):Be(s===jn?i:s)},fC=function(s){var i=0,c=1;(s[i]===Rt||s[i]===ve)&&(s[i]===ve&&(c=-1),i++);for(var l=[];Be(s[i]);)l.push(s[i++]);var f=l.length?parseInt(m.apply(void 0,l),10):0;s[i]===jn&&i++;for(var p=[];Be(s[i]);)p.push(s[i++]);var C=p.length,Q=C?parseInt(m.apply(void 0,p),10):0;(s[i]===$l||s[i]===zl)&&i++;var E=1;(s[i]===Rt||s[i]===ve)&&(s[i]===ve&&(E=-1),i++);for(var L=[];Be(s[i]);)L.push(s[i++]);var V=L.length?parseInt(m.apply(void 0,L),10):0;return c*(f+Q*Math.pow(10,-C))*Math.pow(10,E*V)},gC={type:2},hC={type:3},BC={type:4},pC={type:13},mC={type:8},wC={type:21},CC={type:9},vC={type:10},yC={type:11},QC={type:12},EC={type:14},co={type:23},FC={type:1},UC={type:25},bC={type:24},HC={type:26},IC={type:27},_C={type:28},SC={type:29},xC={type:31},ki={type:32},Jl=(function(){function s(){this._value=[]}return s.prototype.write=function(i){this._value=this._value.concat(w(i))},s.prototype.read=function(){for(var i=[],c=this.consumeToken();c!==ki;)i.push(c),c=this.consumeToken();return i},s.prototype.consumeToken=function(){var i=this.consumeCodePoint();switch(i){case no:return this.consumeStringToken(no);case x0:var c=this.peekCodePoint(0),l=this.peekCodePoint(1),f=this.peekCodePoint(2);if(Wl(c)||vt(l,f)){var p=lo(c,l,f)?I0:H0,C=this.consumeName();return{type:5,value:C,flags:p}}break;case D0:if(this.peekCodePoint(0)===Jn)return this.consumeCodePoint(),pC;break;case ro:return this.consumeStringToken(ro);case oo:return gC;case Zn:return hC;case Li:if(this.peekCodePoint(0)===Jn)return this.consumeCodePoint(),EC;break;case Rt:if(Ti(i,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(i),this.consumeNumericToken();break;case $0:return BC;case ve:var Q=i,E=this.peekCodePoint(0),L=this.peekCodePoint(1);if(Ti(Q,E,L))return this.reconsumeCodePoint(i),this.consumeNumericToken();if(lo(Q,E,L))return this.reconsumeCodePoint(i),this.consumeIdentLikeToken();if(E===ve&&L===M0)return this.consumeCodePoint(),this.consumeCodePoint(),bC;break;case jn:if(Ti(i,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(i),this.consumeNumericToken();break;case Kl:if(this.peekCodePoint(0)===Li)for(this.consumeCodePoint();;){var V=this.consumeCodePoint();if(V===Li&&(V=this.consumeCodePoint(),V===Kl))return this.consumeToken();if(V===We)return this.consumeToken()}break;case Y0:return HC;case W0:return IC;case k0:if(this.peekCodePoint(0)===T0&&this.peekCodePoint(1)===ve&&this.peekCodePoint(2)===ve)return this.consumeCodePoint(),this.consumeCodePoint(),UC;break;case O0:if(lo(this.peekCodePoint(0),this.peekCodePoint(1),this.peekCodePoint(2))){var C=this.consumeName();return{type:7,value:C}}break;case K0:return _C;case Wn:if(vt(i,this.peekCodePoint(0)))return this.reconsumeCodePoint(i),this.consumeIdentLikeToken();break;case R0:return SC;case V0:if(this.peekCodePoint(0)===Jn)return this.consumeCodePoint(),mC;break;case P0:return yC;case G0:return QC;case nC:case oC:var X=this.peekCodePoint(0),j=this.peekCodePoint(1);return X===Rt&&(un(j)||j===io)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(i),this.consumeIdentLikeToken();case Rl:if(this.peekCodePoint(0)===Jn)return this.consumeCodePoint(),CC;if(this.peekCodePoint(0)===Rl)return this.consumeCodePoint(),wC;break;case z0:if(this.peekCodePoint(0)===Jn)return this.consumeCodePoint(),vC;break;case We:return ki}return so(i)?(this.consumeWhiteSpace(),xC):Be(i)?(this.reconsumeCodePoint(i),this.consumeNumericToken()):ao(i)?(this.reconsumeCodePoint(i),this.consumeIdentLikeToken()):{type:6,value:m(i)}},s.prototype.consumeCodePoint=function(){var i=this._value.shift();return typeof i>"u"?-1:i},s.prototype.reconsumeCodePoint=function(i){this._value.unshift(i)},s.prototype.peekCodePoint=function(i){return i>=this._value.length?-1:this._value[i]},s.prototype.consumeUnicodeRangeToken=function(){for(var i=[],c=this.consumeCodePoint();un(c)&&i.length<6;)i.push(c),c=this.consumeCodePoint();for(var l=!1;c===io&&i.length<6;)i.push(c),c=this.consumeCodePoint(),l=!0;if(l){var f=parseInt(m.apply(void 0,i.map(function(E){return E===io?Pl:E})),16),p=parseInt(m.apply(void 0,i.map(function(E){return E===io?Yl:E})),16);return{type:30,start:f,end:p}}var C=parseInt(m.apply(void 0,i),16);if(this.peekCodePoint(0)===ve&&un(this.peekCodePoint(1))){this.consumeCodePoint(),c=this.consumeCodePoint();for(var Q=[];un(c)&&Q.length<6;)Q.push(c),c=this.consumeCodePoint();var p=parseInt(m.apply(void 0,Q),16);return{type:30,start:C,end:p}}else return{type:30,start:C,end:C}},s.prototype.consumeIdentLikeToken=function(){var i=this.consumeName();return i.toLowerCase()==="url"&&this.peekCodePoint(0)===oo?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===oo?(this.consumeCodePoint(),{type:19,value:i}):{type:20,value:i}},s.prototype.consumeUrlToken=function(){var i=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===We)return{type:22,value:""};var c=this.peekCodePoint(0);if(c===ro||c===no){var l=this.consumeStringToken(this.consumeCodePoint());return l.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===We||this.peekCodePoint(0)===Zn)?(this.consumeCodePoint(),{type:22,value:l.value}):(this.consumeBadUrlRemnants(),co)}for(;;){var f=this.consumeCodePoint();if(f===We||f===Zn)return{type:22,value:m.apply(void 0,i)};if(so(f))return this.consumeWhiteSpace(),this.peekCodePoint(0)===We||this.peekCodePoint(0)===Zn?(this.consumeCodePoint(),{type:22,value:m.apply(void 0,i)}):(this.consumeBadUrlRemnants(),co);if(f===no||f===ro||f===oo||dC(f))return this.consumeBadUrlRemnants(),co;if(f===Wn)if(vt(f,this.peekCodePoint(0)))i.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),co;else i.push(f)}},s.prototype.consumeWhiteSpace=function(){for(;so(this.peekCodePoint(0));)this.consumeCodePoint()},s.prototype.consumeBadUrlRemnants=function(){for(;;){var i=this.consumeCodePoint();if(i===Zn||i===We)return;vt(i,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},s.prototype.consumeStringSlice=function(i){for(var c=5e4,l="";i>0;){var f=Math.min(c,i);l+=m.apply(void 0,this._value.splice(0,f)),i-=f}return this._value.shift(),l},s.prototype.consumeStringToken=function(i){var c="",l=0;do{var f=this._value[l];if(f===We||f===void 0||f===i)return c+=this.consumeStringSlice(l),{type:0,value:c};if(f===to)return this._value.splice(0,l),FC;if(f===Wn){var p=this._value[l+1];p!==We&&p!==void 0&&(p===to?(c+=this.consumeStringSlice(l),l=-1,this._value.shift()):vt(f,p)&&(c+=this.consumeStringSlice(l),c+=m(this.consumeEscapedCodePoint()),l=-1))}l++}while(!0)},s.prototype.consumeNumber=function(){var i=[],c=Yn,l=this.peekCodePoint(0);for((l===Rt||l===ve)&&i.push(this.consumeCodePoint());Be(this.peekCodePoint(0));)i.push(this.consumeCodePoint());l=this.peekCodePoint(0);var f=this.peekCodePoint(1);if(l===jn&&Be(f))for(i.push(this.consumeCodePoint(),this.consumeCodePoint()),c=Ol;Be(this.peekCodePoint(0));)i.push(this.consumeCodePoint());l=this.peekCodePoint(0),f=this.peekCodePoint(1);var p=this.peekCodePoint(2);if((l===$l||l===zl)&&((f===Rt||f===ve)&&Be(p)||Be(f)))for(i.push(this.consumeCodePoint(),this.consumeCodePoint()),c=Ol;Be(this.peekCodePoint(0));)i.push(this.consumeCodePoint());return[fC(i),c]},s.prototype.consumeNumericToken=function(){var i=this.consumeNumber(),c=i[0],l=i[1],f=this.peekCodePoint(0);return lo(f,this.peekCodePoint(1),this.peekCodePoint(2))?{type:15,number:c,flags:l,unit:this.consumeName()}:f===N0?(this.consumeCodePoint(),{type:16,number:c,flags:l}):{type:17,number:c,flags:l}},s.prototype.consumeEscapedCodePoint=function(){var i=this.consumeCodePoint();if(un(i)){for(var c=m(i);un(this.peekCodePoint(0))&&c.length<6;)c+=m(this.consumeCodePoint());so(this.peekCodePoint(0))&&this.consumeCodePoint();var l=parseInt(c,16);return l===0||sC(l)||l>1114111?Vl:l}return i===We?Vl:i},s.prototype.consumeName=function(){for(var i="";;){var c=this.consumeCodePoint();if(Wl(c))i+=m(c);else if(vt(c,this.peekCodePoint(0)))i+=m(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(c),i}},s})(),Zl=(function(){function s(i){this._tokens=i}return s.create=function(i){var c=new Jl;return c.write(i),new s(c.read())},s.parseValue=function(i){return s.create(i).parseComponentValue()},s.parseValues=function(i){return s.create(i).parseComponentValues()},s.prototype.parseComponentValue=function(){for(var i=this.consumeToken();i.type===31;)i=this.consumeToken();if(i.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(i);var c=this.consumeComponentValue();do i=this.consumeToken();while(i.type===31);if(i.type===32)return c;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},s.prototype.parseComponentValues=function(){for(var i=[];;){var c=this.consumeComponentValue();if(c.type===32)return i;i.push(c),i.push()}},s.prototype.consumeComponentValue=function(){var i=this.consumeToken();switch(i.type){case 11:case 28:case 2:return this.consumeSimpleBlock(i.type);case 19:return this.consumeFunction(i)}return i},s.prototype.consumeSimpleBlock=function(i){for(var c={type:i,values:[]},l=this.consumeToken();;){if(l.type===32||NC(l,i))return c;this.reconsumeToken(l),c.values.push(this.consumeComponentValue()),l=this.consumeToken()}},s.prototype.consumeFunction=function(i){for(var c={name:i.value,values:[],type:18};;){var l=this.consumeToken();if(l.type===32||l.type===3)return c;this.reconsumeToken(l),c.values.push(this.consumeComponentValue())}},s.prototype.consumeToken=function(){var i=this._tokens.shift();return typeof i>"u"?ki:i},s.prototype.reconsumeToken=function(i){this._tokens.unshift(i)},s})(),qn=function(s){return s.type===15},dn=function(s){return s.type===17},YA=function(s){return s.type===20},DC=function(s){return s.type===0},Mi=function(s,i){return YA(s)&&s.value===i},jl=function(s){return s.type!==31},fn=function(s){return s.type!==31&&s.type!==4},Je=function(s){var i=[],c=[];return s.forEach(function(l){if(l.type===4){if(c.length===0)throw new Error("Error parsing function args, zero tokens for arg");i.push(c),c=[];return}l.type!==31&&c.push(l)}),c.length&&i.push(c),i},NC=function(s,i){return i===11&&s.type===12||i===28&&s.type===29?!0:i===2&&s.type===3},yt=function(s){return s.type===17||s.type===15},ae=function(s){return s.type===16||yt(s)},ql=function(s){return s.length>1?[s[0],s[1]]:[s[0]]},fe={type:17,number:0,flags:Yn},Oi={type:16,number:50,flags:Yn},Qt={type:16,number:100,flags:Yn},Ar=function(s,i,c){var l=s[0],f=s[1];return[ZA(l,i),ZA(typeof f<"u"?f:l,c)]},ZA=function(s,i){if(s.type===16)return s.number/100*i;if(qn(s))switch(s.unit){case"rem":case"em":return 16*s.number;default:return s.number}return s.number},Ac="deg",ec="grad",tc="rad",nc="turn",uo={name:"angle",parse:function(s,i){if(i.type===15)switch(i.unit){case Ac:return Math.PI*i.number/180;case ec:return Math.PI/200*i.number;case tc:return i.number;case nc:return Math.PI*2*i.number}throw new Error("Unsupported angle type")}},rc=function(s){return s.type===15&&(s.unit===Ac||s.unit===ec||s.unit===tc||s.unit===nc)},oc=function(s){switch(s.filter(YA).map(function(i){return i.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[fe,fe];case"to top":case"bottom":return Se(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[fe,Qt];case"to right":case"left":return Se(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Qt,Qt];case"to bottom":case"top":return Se(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Qt,fe];case"to left":case"right":return Se(270)}return 0},Se=function(s){return Math.PI*s/180},Et={name:"color",parse:function(s,i){if(i.type===18){var c=LC[i.name];if(typeof c>"u")throw new Error('Attempting to parse an unsupported color function "'+i.name+'"');return c(s,i.values)}if(i.type===5){if(i.value.length===3){var l=i.value.substring(0,1),f=i.value.substring(1,2),p=i.value.substring(2,3);return Ut(parseInt(l+l,16),parseInt(f+f,16),parseInt(p+p,16),1)}if(i.value.length===4){var l=i.value.substring(0,1),f=i.value.substring(1,2),p=i.value.substring(2,3),C=i.value.substring(3,4);return Ut(parseInt(l+l,16),parseInt(f+f,16),parseInt(p+p,16),parseInt(C+C,16)/255)}if(i.value.length===6){var l=i.value.substring(0,2),f=i.value.substring(2,4),p=i.value.substring(4,6);return Ut(parseInt(l,16),parseInt(f,16),parseInt(p,16),1)}if(i.value.length===8){var l=i.value.substring(0,2),f=i.value.substring(2,4),p=i.value.substring(4,6),C=i.value.substring(6,8);return Ut(parseInt(l,16),parseInt(f,16),parseInt(p,16),parseInt(C,16)/255)}}if(i.type===20){var Q=lt[i.value.toUpperCase()];if(typeof Q<"u")return Q}return lt.TRANSPARENT}},Ft=function(s){return(255&s)===0},de=function(s){var i=255&s,c=255&s>>8,l=255&s>>16,f=255&s>>24;return i<255?"rgba("+f+","+l+","+c+","+i/255+")":"rgb("+f+","+l+","+c+")"},Ut=function(s,i,c,l){return(s<<24|i<<16|c<<8|Math.round(l*255)<<0)>>>0},ic=function(s,i){if(s.type===17)return s.number;if(s.type===16){var c=i===3?1:255;return i===3?s.number/100*c:Math.round(s.number/100*c)}return 0},sc=function(s,i){var c=i.filter(fn);if(c.length===3){var l=c.map(ic),f=l[0],p=l[1],C=l[2];return Ut(f,p,C,1)}if(c.length===4){var Q=c.map(ic),f=Q[0],p=Q[1],C=Q[2],E=Q[3];return Ut(f,p,C,E)}return 0};function Ki(s,i,c){return c<0&&(c+=1),c>=1&&(c-=1),c<1/6?(i-s)*c*6+s:c<1/2?i:c<2/3?(i-s)*6*(2/3-c)+s:s}var ac=function(s,i){var c=i.filter(fn),l=c[0],f=c[1],p=c[2],C=c[3],Q=(l.type===17?Se(l.number):uo.parse(s,l))/(Math.PI*2),E=ae(f)?f.number/100:0,L=ae(p)?p.number/100:0,V=typeof C<"u"&&ae(C)?ZA(C,1):1;if(E===0)return Ut(L*255,L*255,L*255,1);var X=L<=.5?L*(E+1):L+E-L*E,j=L*2-X,CA=Ki(j,X,Q+1/3),hA=Ki(j,X,Q),mA=Ki(j,X,Q-1/3);return Ut(CA*255,hA*255,mA*255,V)},LC={hsl:ac,hsla:ac,rgb:sc,rgba:sc},er=function(s,i){return Et.parse(s,Zl.create(i).parseComponentValue())},lt={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},TC={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(s,i){return i.map(function(c){if(YA(c))switch(c.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},kC={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},fo=function(s,i){var c=Et.parse(s,i[0]),l=i[1];return l&&ae(l)?{color:c,stop:l}:{color:c,stop:null}},lc=function(s,i){var c=s[0],l=s[s.length-1];c.stop===null&&(c.stop=fe),l.stop===null&&(l.stop=Qt);for(var f=[],p=0,C=0;C<s.length;C++){var Q=s[C].stop;if(Q!==null){var E=ZA(Q,i);E>p?f.push(E):f.push(p),p=E}else f.push(null)}for(var L=null,C=0;C<f.length;C++){var V=f[C];if(V===null)L===null&&(L=C);else if(L!==null){for(var X=C-L,j=(V-f[L-1])/(X+1),CA=1;CA<=X;CA++)f[L+CA-1]=j*CA;L=null}}return s.map(function(hA,mA){return{color:hA.color,stop:Math.max(Math.min(1,f[mA]/i),0)}})},MC=function(s,i,c){var l=i/2,f=c/2,p=ZA(s[0],i)-l,C=f-ZA(s[1],c);return(Math.atan2(C,p)+Math.PI*2)%(Math.PI*2)},OC=function(s,i,c){var l=typeof s=="number"?s:MC(s,i,c),f=Math.abs(i*Math.sin(l))+Math.abs(c*Math.cos(l)),p=i/2,C=c/2,Q=f/2,E=Math.sin(l-Math.PI/2)*Q,L=Math.cos(l-Math.PI/2)*Q;return[f,p-L,p+L,C-E,C+E]},Ve=function(s,i){return Math.sqrt(s*s+i*i)},cc=function(s,i,c,l,f){return[[0,0],[0,i],[s,0],[s,i]].reduce(function(p,C){var Q=C[0],E=C[1],L=Ve(c-Q,l-E);return(f?L<p.optimumDistance:L>p.optimumDistance)?{optimumCorner:C,optimumDistance:L}:p},{optimumDistance:f?1/0:-1/0,optimumCorner:null}).optimumCorner},KC=function(s,i,c,l,f){var p=0,C=0;switch(s.size){case 0:s.shape===0?p=C=Math.min(Math.abs(i),Math.abs(i-l),Math.abs(c),Math.abs(c-f)):s.shape===1&&(p=Math.min(Math.abs(i),Math.abs(i-l)),C=Math.min(Math.abs(c),Math.abs(c-f)));break;case 2:if(s.shape===0)p=C=Math.min(Ve(i,c),Ve(i,c-f),Ve(i-l,c),Ve(i-l,c-f));else if(s.shape===1){var Q=Math.min(Math.abs(c),Math.abs(c-f))/Math.min(Math.abs(i),Math.abs(i-l)),E=cc(l,f,i,c,!0),L=E[0],V=E[1];p=Ve(L-i,(V-c)/Q),C=Q*p}break;case 1:s.shape===0?p=C=Math.max(Math.abs(i),Math.abs(i-l),Math.abs(c),Math.abs(c-f)):s.shape===1&&(p=Math.max(Math.abs(i),Math.abs(i-l)),C=Math.max(Math.abs(c),Math.abs(c-f)));break;case 3:if(s.shape===0)p=C=Math.max(Ve(i,c),Ve(i,c-f),Ve(i-l,c),Ve(i-l,c-f));else if(s.shape===1){var Q=Math.max(Math.abs(c),Math.abs(c-f))/Math.max(Math.abs(i),Math.abs(i-l)),X=cc(l,f,i,c,!1),L=X[0],V=X[1];p=Ve(L-i,(V-c)/Q),C=Q*p}break}return Array.isArray(s.size)&&(p=ZA(s.size[0],l),C=s.size.length===2?ZA(s.size[1],f):p),[p,C]},RC=function(s,i){var c=Se(180),l=[];return Je(i).forEach(function(f,p){if(p===0){var C=f[0];if(C.type===20&&C.value==="to"){c=oc(f);return}else if(rc(C)){c=uo.parse(s,C);return}}var Q=fo(s,f);l.push(Q)}),{angle:c,stops:l,type:1}},go=function(s,i){var c=Se(180),l=[];return Je(i).forEach(function(f,p){if(p===0){var C=f[0];if(C.type===20&&["top","left","right","bottom"].indexOf(C.value)!==-1){c=oc(f);return}else if(rc(C)){c=(uo.parse(s,C)+Se(270))%Se(360);return}}var Q=fo(s,f);l.push(Q)}),{angle:c,stops:l,type:1}},VC=function(s,i){var c=Se(180),l=[],f=1,p=0,C=3,Q=[];return Je(i).forEach(function(E,L){var V=E[0];if(L===0){if(YA(V)&&V.value==="linear"){f=1;return}else if(YA(V)&&V.value==="radial"){f=2;return}}if(V.type===18){if(V.name==="from"){var X=Et.parse(s,V.values[0]);l.push({stop:fe,color:X})}else if(V.name==="to"){var X=Et.parse(s,V.values[0]);l.push({stop:Qt,color:X})}else if(V.name==="color-stop"){var j=V.values.filter(fn);if(j.length===2){var X=Et.parse(s,j[1]),CA=j[0];dn(CA)&&l.push({stop:{type:16,number:CA.number*100,flags:CA.flags},color:X})}}}}),f===1?{angle:(c+Se(180))%Se(360),stops:l,type:f}:{size:C,shape:p,stops:l,position:Q,type:f}},uc="closest-side",dc="farthest-side",fc="closest-corner",gc="farthest-corner",hc="circle",Bc="ellipse",pc="cover",mc="contain",PC=function(s,i){var c=0,l=3,f=[],p=[];return Je(i).forEach(function(C,Q){var E=!0;if(Q===0){var L=!1;E=C.reduce(function(X,j){if(L)if(YA(j))switch(j.value){case"center":return p.push(Oi),X;case"top":case"left":return p.push(fe),X;case"right":case"bottom":return p.push(Qt),X}else(ae(j)||yt(j))&&p.push(j);else if(YA(j))switch(j.value){case hc:return c=0,!1;case Bc:return c=1,!1;case"at":return L=!0,!1;case uc:return l=0,!1;case pc:case dc:return l=1,!1;case mc:case fc:return l=2,!1;case gc:return l=3,!1}else if(yt(j)||ae(j))return Array.isArray(l)||(l=[]),l.push(j),!1;return X},E)}if(E){var V=fo(s,C);f.push(V)}}),{size:l,shape:c,stops:f,position:p,type:2}},ho=function(s,i){var c=0,l=3,f=[],p=[];return Je(i).forEach(function(C,Q){var E=!0;if(Q===0?E=C.reduce(function(V,X){if(YA(X))switch(X.value){case"center":return p.push(Oi),!1;case"top":case"left":return p.push(fe),!1;case"right":case"bottom":return p.push(Qt),!1}else if(ae(X)||yt(X))return p.push(X),!1;return V},E):Q===1&&(E=C.reduce(function(V,X){if(YA(X))switch(X.value){case hc:return c=0,!1;case Bc:return c=1,!1;case mc:case uc:return l=0,!1;case dc:return l=1,!1;case fc:return l=2,!1;case pc:case gc:return l=3,!1}else if(yt(X)||ae(X))return Array.isArray(l)||(l=[]),l.push(X),!1;return V},E)),E){var L=fo(s,C);f.push(L)}}),{size:l,shape:c,stops:f,position:p,type:2}},GC=function(s){return s.type===1},zC=function(s){return s.type===2},Ri={name:"image",parse:function(s,i){if(i.type===22){var c={url:i.value,type:0};return s.cache.addImage(i.value),c}if(i.type===18){var l=wc[i.name];if(typeof l>"u")throw new Error('Attempting to parse an unsupported image function "'+i.name+'"');return l(s,i.values)}throw new Error("Unsupported image type "+i.type)}};function XC(s){return!(s.type===20&&s.value==="none")&&(s.type!==18||!!wc[s.name])}var wc={"linear-gradient":RC,"-moz-linear-gradient":go,"-ms-linear-gradient":go,"-o-linear-gradient":go,"-webkit-linear-gradient":go,"radial-gradient":PC,"-moz-radial-gradient":ho,"-ms-radial-gradient":ho,"-o-radial-gradient":ho,"-webkit-radial-gradient":ho,"-webkit-gradient":VC},$C={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(s,i){if(i.length===0)return[];var c=i[0];return c.type===20&&c.value==="none"?[]:i.filter(function(l){return fn(l)&&XC(l)}).map(function(l){return Ri.parse(s,l)})}},YC={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(s,i){return i.map(function(c){if(YA(c))switch(c.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},WC={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(s,i){return Je(i).map(function(c){return c.filter(ae)}).map(ql)}},JC={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(s,i){return Je(i).map(function(c){return c.filter(YA).map(function(l){return l.value}).join(" ")}).map(ZC)}},ZC=function(s){switch(s){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},gn;(function(s){s.AUTO="auto",s.CONTAIN="contain",s.COVER="cover"})(gn||(gn={}));var jC={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(s,i){return Je(i).map(function(c){return c.filter(qC)})}},qC=function(s){return YA(s)||ae(s)},Bo=function(s){return{name:"border-"+s+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Av=Bo("top"),ev=Bo("right"),tv=Bo("bottom"),nv=Bo("left"),po=function(s){return{name:"border-radius-"+s,initialValue:"0 0",prefix:!1,type:1,parse:function(i,c){return ql(c.filter(ae))}}},rv=po("top-left"),ov=po("top-right"),iv=po("bottom-right"),sv=po("bottom-left"),mo=function(s){return{name:"border-"+s+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(i,c){switch(c){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},av=mo("top"),lv=mo("right"),cv=mo("bottom"),uv=mo("left"),wo=function(s){return{name:"border-"+s+"-width",initialValue:"0",type:0,prefix:!1,parse:function(i,c){return qn(c)?c.number:0}}},dv=wo("top"),fv=wo("right"),gv=wo("bottom"),hv=wo("left"),Bv={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},pv={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(s,i){return i==="rtl"?1:0}},mv={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(s,i){return i.filter(YA).reduce(function(c,l){return c|wv(l.value)},0)}},wv=function(s){switch(s){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Cv={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(s,i){switch(i){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},vv={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(s,i){return i.type===20&&i.value==="normal"?0:i.type===17||i.type===15?i.number:0}},Co;(function(s){s.NORMAL="normal",s.STRICT="strict"})(Co||(Co={}));var yv={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){return i==="strict"?Co.STRICT:Co.NORMAL}},Qv={name:"line-height",initialValue:"normal",prefix:!1,type:4},Cc=function(s,i){return YA(s)&&s.value==="normal"?1.2*i:s.type===17?i*s.number:ae(s)?ZA(s,i):i},Ev={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(s,i){return i.type===20&&i.value==="none"?null:Ri.parse(s,i)}},Fv={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(s,i){return i==="inside"?0:1}},Vi={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(s,i){switch(i){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},vo=function(s){return{name:"margin-"+s,initialValue:"0",prefix:!1,type:4}},Uv=vo("top"),bv=vo("right"),Hv=vo("bottom"),Iv=vo("left"),_v={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(s,i){return i.filter(YA).map(function(c){switch(c.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},Sv={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){return i==="break-word"?"break-word":"normal"}},yo=function(s){return{name:"padding-"+s,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},xv=yo("top"),Dv=yo("right"),Nv=yo("bottom"),Lv=yo("left"),Tv={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(s,i){switch(i){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},kv={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(s,i){switch(i){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Mv={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(s,i){return i.length===1&&Mi(i[0],"none")?[]:Je(i).map(function(c){for(var l={color:lt.TRANSPARENT,offsetX:fe,offsetY:fe,blur:fe},f=0,p=0;p<c.length;p++){var C=c[p];yt(C)?(f===0?l.offsetX=C:f===1?l.offsetY=C:l.blur=C,f++):l.color=Et.parse(s,C)}return l})}},Ov={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(s,i){switch(i){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Kv={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(s,i){if(i.type===20&&i.value==="none")return null;if(i.type===18){var c=Pv[i.name];if(typeof c>"u")throw new Error('Attempting to parse an unsupported transform function "'+i.name+'"');return c(i.values)}return null}},Rv=function(s){var i=s.filter(function(c){return c.type===17}).map(function(c){return c.number});return i.length===6?i:null},Vv=function(s){var i=s.filter(function(E){return E.type===17}).map(function(E){return E.number}),c=i[0],l=i[1];i[2],i[3];var f=i[4],p=i[5];i[6],i[7],i[8],i[9],i[10],i[11];var C=i[12],Q=i[13];return i[14],i[15],i.length===16?[c,l,f,p,C,Q]:null},Pv={matrix:Rv,matrix3d:Vv},vc={type:16,number:50,flags:Yn},Gv=[vc,vc],zv={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(s,i){var c=i.filter(ae);return c.length!==2?Gv:[c[0],c[1]]}},Xv={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(s,i){switch(i){case"hidden":return 1;case"collapse":return 2;default:return 0}}},tr;(function(s){s.NORMAL="normal",s.BREAK_ALL="break-all",s.KEEP_ALL="keep-all"})(tr||(tr={}));for(var $v={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){switch(i){case"break-all":return tr.BREAK_ALL;case"keep-all":return tr.KEEP_ALL;default:return tr.NORMAL}}},Yv={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(s,i){if(i.type===20)return{auto:!0,order:0};if(dn(i))return{auto:!1,order:i.number};throw new Error("Invalid z-index number parsed")}},yc={name:"time",parse:function(s,i){if(i.type===15)switch(i.unit.toLowerCase()){case"s":return 1e3*i.number;case"ms":return i.number}throw new Error("Unsupported time type")}},Wv={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(s,i){return dn(i)?i.number:1}},Jv={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Zv={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(s,i){return i.filter(YA).map(function(c){switch(c.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(c){return c!==0})}},jv={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(s,i){var c=[],l=[];return i.forEach(function(f){switch(f.type){case 20:case 0:c.push(f.value);break;case 17:c.push(f.number.toString());break;case 4:l.push(c.join(" ")),c.length=0;break}}),c.length&&l.push(c.join(" ")),l.map(function(f){return f.indexOf(" ")===-1?f:"'"+f+"'"})}},qv={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Ay={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(s,i){return dn(i)?i.number:YA(i)&&i.value==="bold"?700:400}},ey={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(s,i){return i.filter(YA).map(function(c){return c.value})}},ty={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){switch(i){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},ue=function(s,i){return(s&i)!==0},ny={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(s,i){if(i.length===0)return[];var c=i[0];return c.type===20&&c.value==="none"?[]:i}},ry={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(s,i){if(i.length===0)return null;var c=i[0];if(c.type===20&&c.value==="none")return null;for(var l=[],f=i.filter(jl),p=0;p<f.length;p++){var C=f[p],Q=f[p+1];if(C.type===20){var E=Q&&dn(Q)?Q.number:1;l.push({counter:C.value,increment:E})}}return l}},oy={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(s,i){if(i.length===0)return[];for(var c=[],l=i.filter(jl),f=0;f<l.length;f++){var p=l[f],C=l[f+1];if(YA(p)&&p.value!=="none"){var Q=C&&dn(C)?C.number:0;c.push({counter:p.value,reset:Q})}}return c}},iy={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(s,i){return i.filter(qn).map(function(c){return yc.parse(s,c)})}},sy={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(s,i){if(i.length===0)return null;var c=i[0];if(c.type===20&&c.value==="none")return null;var l=[],f=i.filter(DC);if(f.length%2!==0)return null;for(var p=0;p<f.length;p+=2){var C=f[p].value,Q=f[p+1].value;l.push({open:C,close:Q})}return l}},Qc=function(s,i,c){if(!s)return"";var l=s[Math.min(i,s.length-1)];return l?c?l.open:l.close:""},ay={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(s,i){return i.length===1&&Mi(i[0],"none")?[]:Je(i).map(function(c){for(var l={color:255,offsetX:fe,offsetY:fe,blur:fe,spread:fe,inset:!1},f=0,p=0;p<c.length;p++){var C=c[p];Mi(C,"inset")?l.inset=!0:yt(C)?(f===0?l.offsetX=C:f===1?l.offsetY=C:f===2?l.blur=C:l.spread=C,f++):l.color=Et.parse(s,C)}return l})}},ly={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(s,i){var c=[0,1,2],l=[];return i.filter(YA).forEach(function(f){switch(f.value){case"stroke":l.push(1);break;case"fill":l.push(0);break;case"markers":l.push(2);break}}),c.forEach(function(f){l.indexOf(f)===-1&&l.push(f)}),l}},cy={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},uy={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(s,i){return qn(i)?i.number:0}},dy=(function(){function s(i,c){var l,f;this.animationDuration=UA(i,iy,c.animationDuration),this.backgroundClip=UA(i,TC,c.backgroundClip),this.backgroundColor=UA(i,kC,c.backgroundColor),this.backgroundImage=UA(i,$C,c.backgroundImage),this.backgroundOrigin=UA(i,YC,c.backgroundOrigin),this.backgroundPosition=UA(i,WC,c.backgroundPosition),this.backgroundRepeat=UA(i,JC,c.backgroundRepeat),this.backgroundSize=UA(i,jC,c.backgroundSize),this.borderTopColor=UA(i,Av,c.borderTopColor),this.borderRightColor=UA(i,ev,c.borderRightColor),this.borderBottomColor=UA(i,tv,c.borderBottomColor),this.borderLeftColor=UA(i,nv,c.borderLeftColor),this.borderTopLeftRadius=UA(i,rv,c.borderTopLeftRadius),this.borderTopRightRadius=UA(i,ov,c.borderTopRightRadius),this.borderBottomRightRadius=UA(i,iv,c.borderBottomRightRadius),this.borderBottomLeftRadius=UA(i,sv,c.borderBottomLeftRadius),this.borderTopStyle=UA(i,av,c.borderTopStyle),this.borderRightStyle=UA(i,lv,c.borderRightStyle),this.borderBottomStyle=UA(i,cv,c.borderBottomStyle),this.borderLeftStyle=UA(i,uv,c.borderLeftStyle),this.borderTopWidth=UA(i,dv,c.borderTopWidth),this.borderRightWidth=UA(i,fv,c.borderRightWidth),this.borderBottomWidth=UA(i,gv,c.borderBottomWidth),this.borderLeftWidth=UA(i,hv,c.borderLeftWidth),this.boxShadow=UA(i,ay,c.boxShadow),this.color=UA(i,Bv,c.color),this.direction=UA(i,pv,c.direction),this.display=UA(i,mv,c.display),this.float=UA(i,Cv,c.cssFloat),this.fontFamily=UA(i,jv,c.fontFamily),this.fontSize=UA(i,qv,c.fontSize),this.fontStyle=UA(i,ty,c.fontStyle),this.fontVariant=UA(i,ey,c.fontVariant),this.fontWeight=UA(i,Ay,c.fontWeight),this.letterSpacing=UA(i,vv,c.letterSpacing),this.lineBreak=UA(i,yv,c.lineBreak),this.lineHeight=UA(i,Qv,c.lineHeight),this.listStyleImage=UA(i,Ev,c.listStyleImage),this.listStylePosition=UA(i,Fv,c.listStylePosition),this.listStyleType=UA(i,Vi,c.listStyleType),this.marginTop=UA(i,Uv,c.marginTop),this.marginRight=UA(i,bv,c.marginRight),this.marginBottom=UA(i,Hv,c.marginBottom),this.marginLeft=UA(i,Iv,c.marginLeft),this.opacity=UA(i,Wv,c.opacity);var p=UA(i,_v,c.overflow);this.overflowX=p[0],this.overflowY=p[p.length>1?1:0],this.overflowWrap=UA(i,Sv,c.overflowWrap),this.paddingTop=UA(i,xv,c.paddingTop),this.paddingRight=UA(i,Dv,c.paddingRight),this.paddingBottom=UA(i,Nv,c.paddingBottom),this.paddingLeft=UA(i,Lv,c.paddingLeft),this.paintOrder=UA(i,ly,c.paintOrder),this.position=UA(i,kv,c.position),this.textAlign=UA(i,Tv,c.textAlign),this.textDecorationColor=UA(i,Jv,(l=c.textDecorationColor)!==null&&l!==void 0?l:c.color),this.textDecorationLine=UA(i,Zv,(f=c.textDecorationLine)!==null&&f!==void 0?f:c.textDecoration),this.textShadow=UA(i,Mv,c.textShadow),this.textTransform=UA(i,Ov,c.textTransform),this.transform=UA(i,Kv,c.transform),this.transformOrigin=UA(i,zv,c.transformOrigin),this.visibility=UA(i,Xv,c.visibility),this.webkitTextStrokeColor=UA(i,cy,c.webkitTextStrokeColor),this.webkitTextStrokeWidth=UA(i,uy,c.webkitTextStrokeWidth),this.wordBreak=UA(i,$v,c.wordBreak),this.zIndex=UA(i,Yv,c.zIndex)}return s.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},s.prototype.isTransparent=function(){return Ft(this.backgroundColor)},s.prototype.isTransformed=function(){return this.transform!==null},s.prototype.isPositioned=function(){return this.position!==0},s.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},s.prototype.isFloating=function(){return this.float!==0},s.prototype.isInlineLevel=function(){return ue(this.display,4)||ue(this.display,33554432)||ue(this.display,268435456)||ue(this.display,536870912)||ue(this.display,67108864)||ue(this.display,134217728)},s})(),fy=(function(){function s(i,c){this.content=UA(i,ny,c.content),this.quotes=UA(i,sy,c.quotes)}return s})(),Ec=(function(){function s(i,c){this.counterIncrement=UA(i,ry,c.counterIncrement),this.counterReset=UA(i,oy,c.counterReset)}return s})(),UA=function(s,i,c){var l=new Jl,f=c!==null&&typeof c<"u"?c.toString():i.initialValue;l.write(f);var p=new Zl(l.read());switch(i.type){case 2:var C=p.parseComponentValue();return i.parse(s,YA(C)?C.value:i.initialValue);case 0:return i.parse(s,p.parseComponentValue());case 1:return i.parse(s,p.parseComponentValues());case 4:return p.parseComponentValue();case 3:switch(i.format){case"angle":return uo.parse(s,p.parseComponentValue());case"color":return Et.parse(s,p.parseComponentValue());case"image":return Ri.parse(s,p.parseComponentValue());case"length":var Q=p.parseComponentValue();return yt(Q)?Q:fe;case"length-percentage":var E=p.parseComponentValue();return ae(E)?E:fe;case"time":return yc.parse(s,p.parseComponentValue())}break}},gy="data-html2canvas-debug",hy=function(s){switch(s.getAttribute(gy)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Pi=function(s,i){var c=hy(s);return c===1||i===c},Ze=(function(){function s(i,c){if(this.context=i,this.textNodes=[],this.elements=[],this.flags=0,Pi(c,3))debugger;this.styles=new dy(i,window.getComputedStyle(c,null)),ns(c)&&(this.styles.animationDuration.some(function(l){return l>0})&&(c.style.animationDuration="0s"),this.styles.transform!==null&&(c.style.transform="none")),this.bounds=g(this.context,c),Pi(c,4)&&(this.flags|=16)}return s})(),By="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BT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IAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAg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AAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Fc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nr=typeof Uint8Array>"u"?[]:new Uint8Array(256),Qo=0;Qo<Fc.length;Qo++)nr[Fc.charCodeAt(Qo)]=Qo;for(var py=function(s){var i=s.length*.75,c=s.length,l,f=0,p,C,Q,E;s[s.length-1]==="="&&(i--,s[s.length-2]==="="&&i--);var L=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(i):new Array(i),V=Array.isArray(L)?L:new Uint8Array(L);for(l=0;l<c;l+=4)p=nr[s.charCodeAt(l)],C=nr[s.charCodeAt(l+1)],Q=nr[s.charCodeAt(l+2)],E=nr[s.charCodeAt(l+3)],V[f++]=p<<2|C>>4,V[f++]=(C&15)<<4|Q>>2,V[f++]=(Q&3)<<6|E&63;return L},my=function(s){for(var i=s.length,c=[],l=0;l<i;l+=2)c.push(s[l+1]<<8|s[l]);return c},wy=function(s){for(var i=s.length,c=[],l=0;l<i;l+=4)c.push(s[l+3]<<24|s[l+2]<<16|s[l+1]<<8|s[l]);return c},Vt=5,Gi=11,zi=2,Cy=Gi-Vt,Uc=65536>>Vt,Xi=(1<<Vt)-1,vy=Uc+(1024>>Vt)+32,yy=65536>>Gi,Qy=(1<<Cy)-1,bc=function(s,i,c){return s.slice?s.slice(i,c):new Uint16Array(Array.prototype.slice.call(s,i,c))},Ey=function(s,i,c){return s.slice?s.slice(i,c):new Uint32Array(Array.prototype.slice.call(s,i,c))},Fy=function(s,i){var c=py(s),l=Array.isArray(c)?wy(c):new Uint32Array(c),f=Array.isArray(c)?my(c):new Uint16Array(c),p=24,C=bc(f,p/2,l[4]/2),Q=l[5]===2?bc(f,(p+l[4])/2):Ey(l,Math.ceil((p+l[4])/4));return new Uy(l[0],l[1],l[2],l[3],C,Q)},Uy=(function(){function s(i,c,l,f,p,C){this.initialValue=i,this.errorValue=c,this.highStart=l,this.highValueIndex=f,this.index=p,this.data=C}return s.prototype.get=function(i){var c;if(i>=0){if(i<55296||i>56319&&i<=65535)return c=this.index[i>>Vt],c=(c<<zi)+(i&Xi),this.data[c];if(i<=65535)return c=this.index[Uc+(i-55296>>Vt)],c=(c<<zi)+(i&Xi),this.data[c];if(i<this.highStart)return c=vy-yy+(i>>Gi),c=this.index[c],c+=i>>Vt&Qy,c=this.index[c],c=(c<<zi)+(i&Xi),this.data[c];if(i<=1114111)return this.data[this.highValueIndex]}return this.errorValue},s})(),Hc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",by=typeof Uint8Array>"u"?[]:new Uint8Array(256),Eo=0;Eo<Hc.length;Eo++)by[Hc.charCodeAt(Eo)]=Eo;var Hy=1,$i=2,Yi=3,Ic=4,_c=5,Iy=7,Sc=8,Wi=9,Ji=10,xc=11,Dc=12,Nc=13,Lc=14,Zi=15,_y=function(s){for(var i=[],c=0,l=s.length;c<l;){var f=s.charCodeAt(c++);if(f>=55296&&f<=56319&&c<l){var p=s.charCodeAt(c++);(p&64512)===56320?i.push(((f&1023)<<10)+(p&1023)+65536):(i.push(f),c--)}else i.push(f)}return i},Sy=function(){for(var s=[],i=0;i<arguments.length;i++)s[i]=arguments[i];if(String.fromCodePoint)return String.fromCodePoint.apply(String,s);var c=s.length;if(!c)return"";for(var l=[],f=-1,p="";++f<c;){var C=s[f];C<=65535?l.push(C):(C-=65536,l.push((C>>10)+55296,C%1024+56320)),(f+1===c||l.length>16384)&&(p+=String.fromCharCode.apply(String,l),l.length=0)}return p},xy=Fy(By),xe="×",ji="÷",Dy=function(s){return xy.get(s)},Ny=function(s,i,c){var l=c-2,f=i[l],p=i[c-1],C=i[c];if(p===$i&&C===Yi)return xe;if(p===$i||p===Yi||p===Ic||C===$i||C===Yi||C===Ic)return ji;if(p===Sc&&[Sc,Wi,xc,Dc].indexOf(C)!==-1||(p===xc||p===Wi)&&(C===Wi||C===Ji)||(p===Dc||p===Ji)&&C===Ji||C===Nc||C===_c||C===Iy||p===Hy)return xe;if(p===Nc&&C===Lc){for(;f===_c;)f=i[--l];if(f===Lc)return xe}if(p===Zi&&C===Zi){for(var Q=0;f===Zi;)Q++,f=i[--l];if(Q%2===0)return xe}return ji},Ly=function(s){var i=_y(s),c=i.length,l=0,f=0,p=i.map(Dy);return{next:function(){if(l>=c)return{done:!0,value:null};for(var C=xe;l<c&&(C=Ny(i,p,++l))===xe;);if(C!==xe||l===c){var Q=Sy.apply(null,i.slice(f,l));return f=l,{value:Q,done:!1}}return{done:!0,value:null}}}},Ty=function(s){for(var i=Ly(s),c=[],l;!(l=i.next()).done;)l.value&&c.push(l.value.slice());return c},ky=function(s){var i=123;if(s.createRange){var c=s.createRange();if(c.getBoundingClientRect){var l=s.createElement("boundtest");l.style.height=i+"px",l.style.display="block",s.body.appendChild(l),c.selectNode(l);var f=c.getBoundingClientRect(),p=Math.round(f.height);if(s.body.removeChild(l),p===i)return!0}}return!1},My=function(s){var i=s.createElement("boundtest");i.style.width="50px",i.style.display="block",i.style.fontSize="12px",i.style.letterSpacing="0px",i.style.wordSpacing="0px",s.body.appendChild(i);var c=s.createRange();i.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var l=i.firstChild,f=w(l.data).map(function(E){return m(E)}),p=0,C={},Q=f.every(function(E,L){c.setStart(l,p),c.setEnd(l,p+E.length);var V=c.getBoundingClientRect();p+=E.length;var X=V.x>C.x||V.y>C.y;return C=V,L===0?!0:X});return s.body.removeChild(i),Q},Oy=function(){return typeof new Image().crossOrigin<"u"},Ky=function(){return typeof new XMLHttpRequest().responseType=="string"},Ry=function(s){var i=new Image,c=s.createElement("canvas"),l=c.getContext("2d");if(!l)return!1;i.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{l.drawImage(i,0,0),c.toDataURL()}catch{return!1}return!0},Tc=function(s){return s[0]===0&&s[1]===255&&s[2]===0&&s[3]===255},Vy=function(s){var i=s.createElement("canvas"),c=100;i.width=c,i.height=c;var l=i.getContext("2d");if(!l)return Promise.reject(!1);l.fillStyle="rgb(0, 255, 0)",l.fillRect(0,0,c,c);var f=new Image,p=i.toDataURL();f.src=p;var C=qi(c,c,0,0,f);return l.fillStyle="red",l.fillRect(0,0,c,c),kc(C).then(function(Q){l.drawImage(Q,0,0);var E=l.getImageData(0,0,c,c).data;l.fillStyle="red",l.fillRect(0,0,c,c);var L=s.createElement("div");return L.style.backgroundImage="url("+p+")",L.style.height=c+"px",Tc(E)?kc(qi(c,c,0,0,L)):Promise.reject(!1)}).then(function(Q){return l.drawImage(Q,0,0),Tc(l.getImageData(0,0,c,c).data)}).catch(function(){return!1})},qi=function(s,i,c,l,f){var p="http://www.w3.org/2000/svg",C=document.createElementNS(p,"svg"),Q=document.createElementNS(p,"foreignObject");return C.setAttributeNS(null,"width",s.toString()),C.setAttributeNS(null,"height",i.toString()),Q.setAttributeNS(null,"width","100%"),Q.setAttributeNS(null,"height","100%"),Q.setAttributeNS(null,"x",c.toString()),Q.setAttributeNS(null,"y",l.toString()),Q.setAttributeNS(null,"externalResourcesRequired","true"),C.appendChild(Q),Q.appendChild(f),C},kc=function(s){return new Promise(function(i,c){var l=new Image;l.onload=function(){return i(l)},l.onerror=c,l.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(s))})},ge={get SUPPORT_RANGE_BOUNDS(){var s=ky(document);return Object.defineProperty(ge,"SUPPORT_RANGE_BOUNDS",{value:s}),s},get SUPPORT_WORD_BREAKING(){var s=ge.SUPPORT_RANGE_BOUNDS&&My(document);return Object.defineProperty(ge,"SUPPORT_WORD_BREAKING",{value:s}),s},get SUPPORT_SVG_DRAWING(){var s=Ry(document);return Object.defineProperty(ge,"SUPPORT_SVG_DRAWING",{value:s}),s},get SUPPORT_FOREIGNOBJECT_DRAWING(){var s=typeof Array.from=="function"&&typeof window.fetch=="function"?Vy(document):Promise.resolve(!1);return Object.defineProperty(ge,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:s}),s},get SUPPORT_CORS_IMAGES(){var s=Oy();return Object.defineProperty(ge,"SUPPORT_CORS_IMAGES",{value:s}),s},get SUPPORT_RESPONSE_TYPE(){var s=Ky();return Object.defineProperty(ge,"SUPPORT_RESPONSE_TYPE",{value:s}),s},get SUPPORT_CORS_XHR(){var s="withCredentials"in new XMLHttpRequest;return Object.defineProperty(ge,"SUPPORT_CORS_XHR",{value:s}),s},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var s=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(ge,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:s}),s}},rr=(function(){function s(i,c){this.text=i,this.bounds=c}return s})(),Py=function(s,i,c,l){var f=Xy(i,c),p=[],C=0;return f.forEach(function(Q){if(c.textDecorationLine.length||Q.trim().length>0)if(ge.SUPPORT_RANGE_BOUNDS){var E=Mc(l,C,Q.length).getClientRects();if(E.length>1){var L=As(Q),V=0;L.forEach(function(j){p.push(new rr(j,h.fromDOMRectList(s,Mc(l,V+C,j.length).getClientRects()))),V+=j.length})}else p.push(new rr(Q,h.fromDOMRectList(s,E)))}else{var X=l.splitText(Q.length);p.push(new rr(Q,Gy(s,l))),l=X}else ge.SUPPORT_RANGE_BOUNDS||(l=l.splitText(Q.length));C+=Q.length}),p},Gy=function(s,i){var c=i.ownerDocument;if(c){var l=c.createElement("html2canvaswrapper");l.appendChild(i.cloneNode(!0));var f=i.parentNode;if(f){f.replaceChild(l,i);var p=g(s,l);return l.firstChild&&f.replaceChild(l.firstChild,l),p}}return h.EMPTY},Mc=function(s,i,c){var l=s.ownerDocument;if(!l)throw new Error("Node has no owner document");var f=l.createRange();return f.setStart(s,i),f.setEnd(s,i+c),f},As=function(s){if(ge.SUPPORT_NATIVE_TEXT_SEGMENTATION){var i=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(i.segment(s)).map(function(c){return c.segment})}return Ty(s)},zy=function(s,i){if(ge.SUPPORT_NATIVE_TEXT_SEGMENTATION){var c=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(c.segment(s)).map(function(l){return l.segment})}return Yy(s,i)},Xy=function(s,i){return i.letterSpacing!==0?As(s):zy(s,i)},$y=[32,160,4961,65792,65793,4153,4241],Yy=function(s,i){for(var c=b0(s,{lineBreak:i.lineBreak,wordBreak:i.overflowWrap==="break-word"?"break-word":i.wordBreak}),l=[],f,p=function(){if(f.value){var C=w(f.value.slice()),Q="";C.forEach(function(E){$y.indexOf(E)===-1?Q+=m(E):(Q.length&&l.push(Q),l.push(m(E)),Q="")}),Q.length&&l.push(Q)}};!(f=c.next()).done;)p();return l},Wy=(function(){function s(i,c,l){this.text=Jy(c.data,l.textTransform),this.textBounds=Py(i,this.text,l,c)}return s})(),Jy=function(s,i){switch(i){case 1:return s.toLowerCase();case 3:return s.replace(Zy,jy);case 2:return s.toUpperCase();default:return s}},Zy=/(^|\s|:|-|\(|\))([a-z])/g,jy=function(s,i,c){return s.length>0?i+c.toUpperCase():s},Oc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f.src=l.currentSrc||l.src,f.intrinsicWidth=l.naturalWidth,f.intrinsicHeight=l.naturalHeight,f.context.cache.addImage(f.src),f}return i})(Ze),Kc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f.canvas=l,f.intrinsicWidth=l.width,f.intrinsicHeight=l.height,f}return i})(Ze),Rc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this,p=new XMLSerializer,C=g(c,l);return l.setAttribute("width",C.width+"px"),l.setAttribute("height",C.height+"px"),f.svg="data:image/svg+xml,"+encodeURIComponent(p.serializeToString(l)),f.intrinsicWidth=l.width.baseVal.value,f.intrinsicHeight=l.height.baseVal.value,f.context.cache.addImage(f.svg),f}return i})(Ze),Vc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f.value=l.value,f}return i})(Ze),es=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f.start=l.start,f.reversed=typeof l.reversed=="boolean"&&l.reversed===!0,f}return i})(Ze),qy=[{type:15,flags:0,unit:"px",number:3}],AQ=[{type:16,flags:0,number:50}],eQ=function(s){return s.width>s.height?new h(s.left+(s.width-s.height)/2,s.top,s.height,s.height):s.width<s.height?new h(s.left,s.top+(s.height-s.width)/2,s.width,s.width):s},tQ=function(s){var i=s.type===nQ?new Array(s.value.length+1).join("•"):s.value;return i.length===0?s.placeholder||"":i},Fo="checkbox",Uo="radio",nQ="password",Pc=707406591,ts=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;switch(f.type=l.type.toLowerCase(),f.checked=l.checked,f.value=tQ(l),(f.type===Fo||f.type===Uo)&&(f.styles.backgroundColor=3739148031,f.styles.borderTopColor=f.styles.borderRightColor=f.styles.borderBottomColor=f.styles.borderLeftColor=2779096575,f.styles.borderTopWidth=f.styles.borderRightWidth=f.styles.borderBottomWidth=f.styles.borderLeftWidth=1,f.styles.borderTopStyle=f.styles.borderRightStyle=f.styles.borderBottomStyle=f.styles.borderLeftStyle=1,f.styles.backgroundClip=[0],f.styles.backgroundOrigin=[0],f.bounds=eQ(f.bounds)),f.type){case Fo:f.styles.borderTopRightRadius=f.styles.borderTopLeftRadius=f.styles.borderBottomRightRadius=f.styles.borderBottomLeftRadius=qy;break;case Uo:f.styles.borderTopRightRadius=f.styles.borderTopLeftRadius=f.styles.borderBottomRightRadius=f.styles.borderBottomLeftRadius=AQ;break}return f}return i})(Ze),Gc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this,p=l.options[l.selectedIndex||0];return f.value=p&&p.text||"",f}return i})(Ze),zc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f.value=l.value,f}return i})(Ze),Xc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;f.src=l.src,f.width=parseInt(l.width,10)||0,f.height=parseInt(l.height,10)||0,f.backgroundColor=f.styles.backgroundColor;try{if(l.contentWindow&&l.contentWindow.document&&l.contentWindow.document.documentElement){f.tree=Yc(c,l.contentWindow.document.documentElement);var p=l.contentWindow.document.documentElement?er(c,getComputedStyle(l.contentWindow.document.documentElement).backgroundColor):lt.TRANSPARENT,C=l.contentWindow.document.body?er(c,getComputedStyle(l.contentWindow.document.body).backgroundColor):lt.TRANSPARENT;f.backgroundColor=Ft(p)?Ft(C)?f.styles.backgroundColor:C:p}}catch{}return f}return i})(Ze),rQ=["OL","UL","MENU"],bo=function(s,i,c,l){for(var f=i.firstChild,p=void 0;f;f=p)if(p=f.nextSibling,Wc(f)&&f.data.trim().length>0)c.textNodes.push(new Wy(s,f,c.styles));else if(hn(f))if(eu(f)&&f.assignedNodes)f.assignedNodes().forEach(function(Q){return bo(s,Q,c,l)});else{var C=$c(s,f);C.styles.isVisible()&&(oQ(f,C,l)?C.flags|=4:iQ(C.styles)&&(C.flags|=2),rQ.indexOf(f.tagName)!==-1&&(C.flags|=8),c.elements.push(C),f.slot,f.shadowRoot?bo(s,f.shadowRoot,C,l):!Io(f)&&!Jc(f)&&!_o(f)&&bo(s,f,C,l))}},$c=function(s,i){return os(i)?new Oc(s,i):Zc(i)?new Kc(s,i):Jc(i)?new Rc(s,i):sQ(i)?new Vc(s,i):aQ(i)?new es(s,i):lQ(i)?new ts(s,i):_o(i)?new Gc(s,i):Io(i)?new zc(s,i):qc(i)?new Xc(s,i):new Ze(s,i)},Yc=function(s,i){var c=$c(s,i);return c.flags|=4,bo(s,i,c,c),c},oQ=function(s,i,c){return i.styles.isPositionedWithZIndex()||i.styles.opacity<1||i.styles.isTransformed()||rs(s)&&c.styles.isTransparent()},iQ=function(s){return s.isPositioned()||s.isFloating()},Wc=function(s){return s.nodeType===Node.TEXT_NODE},hn=function(s){return s.nodeType===Node.ELEMENT_NODE},ns=function(s){return hn(s)&&typeof s.style<"u"&&!Ho(s)},Ho=function(s){return typeof s.className=="object"},sQ=function(s){return s.tagName==="LI"},aQ=function(s){return s.tagName==="OL"},lQ=function(s){return s.tagName==="INPUT"},cQ=function(s){return s.tagName==="HTML"},Jc=function(s){return s.tagName==="svg"},rs=function(s){return s.tagName==="BODY"},Zc=function(s){return s.tagName==="CANVAS"},jc=function(s){return s.tagName==="VIDEO"},os=function(s){return s.tagName==="IMG"},qc=function(s){return s.tagName==="IFRAME"},Au=function(s){return s.tagName==="STYLE"},uQ=function(s){return s.tagName==="SCRIPT"},Io=function(s){return s.tagName==="TEXTAREA"},_o=function(s){return s.tagName==="SELECT"},eu=function(s){return s.tagName==="SLOT"},tu=function(s){return s.tagName.indexOf("-")>0},dQ=(function(){function s(){this.counters={}}return s.prototype.getCounterValue=function(i){var c=this.counters[i];return c&&c.length?c[c.length-1]:1},s.prototype.getCounterValues=function(i){var c=this.counters[i];return c||[]},s.prototype.pop=function(i){var c=this;i.forEach(function(l){return c.counters[l].pop()})},s.prototype.parse=function(i){var c=this,l=i.counterIncrement,f=i.counterReset,p=!0;l!==null&&l.forEach(function(Q){var E=c.counters[Q.counter];E&&Q.increment!==0&&(p=!1,E.length||E.push(1),E[Math.max(0,E.length-1)]+=Q.increment)});var C=[];return p&&f.forEach(function(Q){var E=c.counters[Q.counter];C.push(Q.counter),E||(E=c.counters[Q.counter]=[]),E.push(Q.reset)}),C},s})(),nu={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},ru={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},fQ={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},gQ={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Bn=function(s,i,c,l,f,p){return s<i||s>c?ir(s,f,p.length>0):l.integers.reduce(function(C,Q,E){for(;s>=Q;)s-=Q,C+=l.values[E];return C},"")+p},ou=function(s,i,c,l){var f="";do c||s--,f=l(s)+f,s/=i;while(s*i>=i);return f},oe=function(s,i,c,l,f){var p=c-i+1;return(s<0?"-":"")+(ou(Math.abs(s),p,l,function(C){return m(Math.floor(C%p)+i)})+f)},Pt=function(s,i,c){c===void 0&&(c=". ");var l=i.length;return ou(Math.abs(s),l,!1,function(f){return i[Math.floor(f%l)]})+c},pn=1,bt=2,Ht=4,or=8,ct=function(s,i,c,l,f,p){if(s<-9999||s>9999)return ir(s,4,f.length>0);var C=Math.abs(s),Q=f;if(C===0)return i[0]+Q;for(var E=0;C>0&&E<=4;E++){var L=C%10;L===0&&ue(p,pn)&&Q!==""?Q=i[L]+Q:L>1||L===1&&E===0||L===1&&E===1&&ue(p,bt)||L===1&&E===1&&ue(p,Ht)&&s>100||L===1&&E>1&&ue(p,or)?Q=i[L]+(E>0?c[E-1]:"")+Q:L===1&&E>0&&(Q=c[E-1]+Q),C=Math.floor(C/10)}return(s<0?l:"")+Q},iu="十百千萬",su="拾佰仟萬",au="マイナス",is="마이너스",ir=function(s,i,c){var l=c?". ":"",f=c?"、":"",p=c?", ":"",C=c?" ":"";switch(i){case 0:return"•"+C;case 1:return"◦"+C;case 2:return"◾"+C;case 5:var Q=oe(s,48,57,!0,l);return Q.length<4?"0"+Q:Q;case 4:return Pt(s,"〇一二三四五六七八九",f);case 6:return Bn(s,1,3999,nu,3,l).toLowerCase();case 7:return Bn(s,1,3999,nu,3,l);case 8:return oe(s,945,969,!1,l);case 9:return oe(s,97,122,!1,l);case 10:return oe(s,65,90,!1,l);case 11:return oe(s,1632,1641,!0,l);case 12:case 49:return Bn(s,1,9999,ru,3,l);case 35:return Bn(s,1,9999,ru,3,l).toLowerCase();case 13:return oe(s,2534,2543,!0,l);case 14:case 30:return oe(s,6112,6121,!0,l);case 15:return Pt(s,"子丑寅卯辰巳午未申酉戌亥",f);case 16:return Pt(s,"甲乙丙丁戊己庚辛壬癸",f);case 17:case 48:return ct(s,"零一二三四五六七八九",iu,"負",f,bt|Ht|or);case 47:return ct(s,"零壹貳參肆伍陸柒捌玖",su,"負",f,pn|bt|Ht|or);case 42:return ct(s,"零一二三四五六七八九",iu,"负",f,bt|Ht|or);case 41:return ct(s,"零壹贰叁肆伍陆柒捌玖",su,"负",f,pn|bt|Ht|or);case 26:return ct(s,"〇一二三四五六七八九","十百千万",au,f,0);case 25:return ct(s,"零壱弐参四伍六七八九","拾百千万",au,f,pn|bt|Ht);case 31:return ct(s,"영일이삼사오육칠팔구","십백천만",is,p,pn|bt|Ht);case 33:return ct(s,"零一二三四五六七八九","十百千萬",is,p,0);case 32:return ct(s,"零壹貳參四五六七八九","拾百千",is,p,pn|bt|Ht);case 18:return oe(s,2406,2415,!0,l);case 20:return Bn(s,1,19999,gQ,3,l);case 21:return oe(s,2790,2799,!0,l);case 22:return oe(s,2662,2671,!0,l);case 22:return Bn(s,1,10999,fQ,3,l);case 23:return Pt(s,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Pt(s,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return oe(s,3302,3311,!0,l);case 28:return Pt(s,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",f);case 29:return Pt(s,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",f);case 34:return oe(s,3792,3801,!0,l);case 37:return oe(s,6160,6169,!0,l);case 38:return oe(s,4160,4169,!0,l);case 39:return oe(s,2918,2927,!0,l);case 40:return oe(s,1776,1785,!0,l);case 43:return oe(s,3046,3055,!0,l);case 44:return oe(s,3174,3183,!0,l);case 45:return oe(s,3664,3673,!0,l);case 46:return oe(s,3872,3881,!0,l);default:return oe(s,48,57,!0,l)}},lu="data-html2canvas-ignore",cu=(function(){function s(i,c,l){if(this.context=i,this.options=l,this.scrolledElements=[],this.referenceElement=c,this.counters=new dQ,this.quoteDepth=0,!c.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(c.ownerDocument.documentElement,!1)}return s.prototype.toIFrame=function(i,c){var l=this,f=hQ(i,c);if(!f.contentWindow)return Promise.reject("Unable to find iframe window");var p=i.defaultView.pageXOffset,C=i.defaultView.pageYOffset,Q=f.contentWindow,E=Q.document,L=mQ(f).then(function(){return a(l,void 0,void 0,function(){var V,X;return u(this,function(j){switch(j.label){case 0:return this.scrolledElements.forEach(yQ),Q&&(Q.scrollTo(c.left,c.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(Q.scrollY!==c.top||Q.scrollX!==c.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(Q.scrollX-c.left,Q.scrollY-c.top,0,0))),V=this.options.onclone,X=this.clonedReferenceElement,typeof X>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:E.fonts&&E.fonts.ready?[4,E.fonts.ready]:[3,2];case 1:j.sent(),j.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,pQ(E)]:[3,4];case 3:j.sent(),j.label=4;case 4:return typeof V=="function"?[2,Promise.resolve().then(function(){return V(E,X)}).then(function(){return f})]:[2,f]}})})});return E.open(),E.write(CQ(document.doctype)+"<html></html>"),vQ(this.referenceElement.ownerDocument,p,C),E.replaceChild(E.adoptNode(this.documentElement),E.documentElement),E.close(),L},s.prototype.createElementClone=function(i){if(Pi(i,2))debugger;if(Zc(i))return this.createCanvasClone(i);if(jc(i))return this.createVideoClone(i);if(Au(i))return this.createStyleClone(i);var c=i.cloneNode(!1);return os(c)&&(os(i)&&i.currentSrc&&i.currentSrc!==i.src&&(c.src=i.currentSrc,c.srcset=""),c.loading==="lazy"&&(c.loading="eager")),tu(c)?this.createCustomElementClone(c):c},s.prototype.createCustomElementClone=function(i){var c=document.createElement("html2canvascustomelement");return ss(i.style,c),c},s.prototype.createStyleClone=function(i){try{var c=i.sheet;if(c&&c.cssRules){var l=[].slice.call(c.cssRules,0).reduce(function(p,C){return C&&typeof C.cssText=="string"?p+C.cssText:p},""),f=i.cloneNode(!1);return f.textContent=l,f}}catch(p){if(this.context.logger.error("Unable to access cssRules property",p),p.name!=="SecurityError")throw p}return i.cloneNode(!1)},s.prototype.createCanvasClone=function(i){var c;if(this.options.inlineImages&&i.ownerDocument){var l=i.ownerDocument.createElement("img");try{return l.src=i.toDataURL(),l}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",i)}}var f=i.cloneNode(!1);try{f.width=i.width,f.height=i.height;var p=i.getContext("2d"),C=f.getContext("2d");if(C)if(!this.options.allowTaint&&p)C.putImageData(p.getImageData(0,0,i.width,i.height),0,0);else{var Q=(c=i.getContext("webgl2"))!==null&&c!==void 0?c:i.getContext("webgl");if(Q){var E=Q.getContextAttributes();E?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",i)}C.drawImage(i,0,0)}return f}catch{this.context.logger.info("Unable to clone canvas as it is tainted",i)}return f},s.prototype.createVideoClone=function(i){var c=i.ownerDocument.createElement("canvas");c.width=i.offsetWidth,c.height=i.offsetHeight;var l=c.getContext("2d");try{return l&&(l.drawImage(i,0,0,c.width,c.height),this.options.allowTaint||l.getImageData(0,0,c.width,c.height)),c}catch{this.context.logger.info("Unable to clone video as it is tainted",i)}var f=i.ownerDocument.createElement("canvas");return f.width=i.offsetWidth,f.height=i.offsetHeight,f},s.prototype.appendChildNode=function(i,c,l){(!hn(c)||!uQ(c)&&!c.hasAttribute(lu)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(c)))&&(!this.options.copyStyles||!hn(c)||!Au(c))&&i.appendChild(this.cloneNode(c,l))},s.prototype.cloneChildNodes=function(i,c,l){for(var f=this,p=i.shadowRoot?i.shadowRoot.firstChild:i.firstChild;p;p=p.nextSibling)if(hn(p)&&eu(p)&&typeof p.assignedNodes=="function"){var C=p.assignedNodes();C.length&&C.forEach(function(Q){return f.appendChildNode(c,Q,l)})}else this.appendChildNode(c,p,l)},s.prototype.cloneNode=function(i,c){if(Wc(i))return document.createTextNode(i.data);if(!i.ownerDocument)return i.cloneNode(!1);var l=i.ownerDocument.defaultView;if(l&&hn(i)&&(ns(i)||Ho(i))){var f=this.createElementClone(i);f.style.transitionProperty="none";var p=l.getComputedStyle(i),C=l.getComputedStyle(i,":before"),Q=l.getComputedStyle(i,":after");this.referenceElement===i&&ns(f)&&(this.clonedReferenceElement=f),rs(f)&&FQ(f);var E=this.counters.parse(new Ec(this.context,p)),L=this.resolvePseudoContent(i,f,C,sr.BEFORE);tu(i)&&(c=!0),jc(i)||this.cloneChildNodes(i,f,c),L&&f.insertBefore(L,f.firstChild);var V=this.resolvePseudoContent(i,f,Q,sr.AFTER);return V&&f.appendChild(V),this.counters.pop(E),(p&&(this.options.copyStyles||Ho(i))&&!qc(i)||c)&&ss(p,f),(i.scrollTop!==0||i.scrollLeft!==0)&&this.scrolledElements.push([f,i.scrollLeft,i.scrollTop]),(Io(i)||_o(i))&&(Io(f)||_o(f))&&(f.value=i.value),f}return i.cloneNode(!1)},s.prototype.resolvePseudoContent=function(i,c,l,f){var p=this;if(l){var C=l.content,Q=c.ownerDocument;if(!(!Q||!C||C==="none"||C==="-moz-alt-content"||l.display==="none")){this.counters.parse(new Ec(this.context,l));var E=new fy(this.context,l),L=Q.createElement("html2canvaspseudoelement");ss(l,L),E.content.forEach(function(X){if(X.type===0)L.appendChild(Q.createTextNode(X.value));else if(X.type===22){var j=Q.createElement("img");j.src=X.value,j.style.opacity="1",L.appendChild(j)}else if(X.type===18){if(X.name==="attr"){var CA=X.values.filter(YA);CA.length&&L.appendChild(Q.createTextNode(i.getAttribute(CA[0].value)||""))}else if(X.name==="counter"){var hA=X.values.filter(fn),mA=hA[0],RA=hA[1];if(mA&&YA(mA)){var DA=p.counters.getCounterValue(mA.value),SA=RA&&YA(RA)?Vi.parse(p.context,RA.value):3;L.appendChild(Q.createTextNode(ir(DA,SA,!1)))}}else if(X.name==="counters"){var Ae=X.values.filter(fn),mA=Ae[0],GA=Ae[1],RA=Ae[2];if(mA&&YA(mA)){var kA=p.counters.getCounterValues(mA.value),FA=RA&&YA(RA)?Vi.parse(p.context,RA.value):3,VA=GA&&GA.type===0?GA.value:"",PA=kA.map(function(ye){return ir(ye,FA,!1)}).join(VA);L.appendChild(Q.createTextNode(PA))}}}else if(X.type===20)switch(X.value){case"open-quote":L.appendChild(Q.createTextNode(Qc(E.quotes,p.quoteDepth++,!0)));break;case"close-quote":L.appendChild(Q.createTextNode(Qc(E.quotes,--p.quoteDepth,!1)));break;default:L.appendChild(Q.createTextNode(X.value))}}),L.className=as+" "+ls;var V=f===sr.BEFORE?" "+as:" "+ls;return Ho(c)?c.className.baseValue+=V:c.className+=V,L}}},s.destroy=function(i){return i.parentNode?(i.parentNode.removeChild(i),!0):!1},s})(),sr;(function(s){s[s.BEFORE=0]="BEFORE",s[s.AFTER=1]="AFTER"})(sr||(sr={}));var hQ=function(s,i){var c=s.createElement("iframe");return c.className="html2canvas-container",c.style.visibility="hidden",c.style.position="fixed",c.style.left="-10000px",c.style.top="0px",c.style.border="0",c.width=i.width.toString(),c.height=i.height.toString(),c.scrolling="no",c.setAttribute(lu,"true"),s.body.appendChild(c),c},BQ=function(s){return new Promise(function(i){if(s.complete){i();return}if(!s.src){i();return}s.onload=i,s.onerror=i})},pQ=function(s){return Promise.all([].slice.call(s.images,0).map(BQ))},mQ=function(s){return new Promise(function(i,c){var l=s.contentWindow;if(!l)return c("No window assigned for iframe");var f=l.document;l.onload=s.onload=function(){l.onload=s.onload=null;var p=setInterval(function(){f.body.childNodes.length>0&&f.readyState==="complete"&&(clearInterval(p),i(s))},50)}})},wQ=["all","d","content"],ss=function(s,i){for(var c=s.length-1;c>=0;c--){var l=s.item(c);wQ.indexOf(l)===-1&&i.style.setProperty(l,s.getPropertyValue(l))}return i},CQ=function(s){var i="";return s&&(i+="<!DOCTYPE ",s.name&&(i+=s.name),s.internalSubset&&(i+=s.internalSubset),s.publicId&&(i+='"'+s.publicId+'"'),s.systemId&&(i+='"'+s.systemId+'"'),i+=">"),i},vQ=function(s,i,c){s&&s.defaultView&&(i!==s.defaultView.pageXOffset||c!==s.defaultView.pageYOffset)&&s.defaultView.scrollTo(i,c)},yQ=function(s){var i=s[0],c=s[1],l=s[2];i.scrollLeft=c,i.scrollTop=l},QQ=":before",EQ=":after",as="___html2canvas___pseudoelement_before",ls="___html2canvas___pseudoelement_after",uu=`{
|
|
32
32
|
content: "" !important;
|
|
33
33
|
display: none !important;
|
|
34
|
-
}`,FQ=function(s){UQ(s,"."+
|
|
35
|
-
.`+ss+EQ+cu)},UQ=function(s,i){var c=s.ownerDocument;if(c){var l=c.createElement("style");l.textContent=i,s.appendChild(l)}},uu=(function(){function s(){}return s.getOrigin=function(i){var c=s._link;return c?(c.href=i,c.href=c.href,c.protocol+c.hostname+c.port):"about:blank"},s.isSameOrigin=function(i){return s.getOrigin(i)===s._origin},s.setContext=function(i){s._link=i.document.createElement("a"),s._origin=s.getOrigin(i.location.href)},s._origin="about:blank",s})(),bQ=(function(){function s(i,c){this.context=i,this._options=c,this._cache={}}return s.prototype.addImage=function(i){var c=Promise.resolve();return this.has(i)||(ls(i)||SQ(i))&&(this._cache[i]=this.loadImage(i)).catch(function(){}),c},s.prototype.match=function(i){return this._cache[i]},s.prototype.loadImage=function(i){return a(this,void 0,void 0,function(){var c,l,f,p,C=this;return u(this,function(Q){switch(Q.label){case 0:return c=uu.isSameOrigin(i),l=!as(i)&&this._options.useCORS===!0&&he.SUPPORT_CORS_IMAGES&&!c,f=!as(i)&&!c&&!ls(i)&&typeof this._options.proxy=="string"&&he.SUPPORT_CORS_XHR&&!l,!c&&this._options.allowTaint===!1&&!as(i)&&!ls(i)&&!f&&!l?[2]:(p=i,f?[4,this.proxy(p)]:[3,2]);case 1:p=Q.sent(),Q.label=2;case 2:return this.context.logger.debug("Added image "+i.substring(0,256)),[4,new Promise(function(E,L){var V=new Image;V.onload=function(){return E(V)},V.onerror=L,(xQ(p)||l)&&(V.crossOrigin="anonymous"),V.src=p,V.complete===!0&&setTimeout(function(){return E(V)},500),C._options.imageTimeout>0&&setTimeout(function(){return L("Timed out ("+C._options.imageTimeout+"ms) loading image")},C._options.imageTimeout)})];case 3:return[2,Q.sent()]}})})},s.prototype.has=function(i){return typeof this._cache[i]<"u"},s.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},s.prototype.proxy=function(i){var c=this,l=this._options.proxy;if(!l)throw new Error("No proxy defined");var f=i.substring(0,256);return new Promise(function(p,C){var Q=he.SUPPORT_RESPONSE_TYPE?"blob":"text",E=new XMLHttpRequest;E.onload=function(){if(E.status===200)if(Q==="text")p(E.response);else{var X=new FileReader;X.addEventListener("load",function(){return p(X.result)},!1),X.addEventListener("error",function(j){return C(j)},!1),X.readAsDataURL(E.response)}else C("Failed to proxy resource "+f+" with status code "+E.status)},E.onerror=C;var L=l.indexOf("?")>-1?"&":"?";if(E.open("GET",""+l+L+"url="+encodeURIComponent(i)+"&responseType="+Q),Q!=="text"&&E instanceof XMLHttpRequest&&(E.responseType=Q),c._options.imageTimeout){var V=c._options.imageTimeout;E.timeout=V,E.ontimeout=function(){return C("Timed out ("+V+"ms) proxying "+f)}}E.send()})},s})(),HQ=/^data:image\/svg\+xml/i,IQ=/^data:image\/.*;base64,/i,_Q=/^data:image\/.*/i,SQ=function(s){return he.SUPPORT_SVG_DRAWING||!DQ(s)},as=function(s){return _Q.test(s)},xQ=function(s){return IQ.test(s)},ls=function(s){return s.substr(0,4)==="blob"},DQ=function(s){return s.substr(-3).toLowerCase()==="svg"||HQ.test(s)},vA=(function(){function s(i,c){this.type=0,this.x=i,this.y=c}return s.prototype.add=function(i,c){return new s(this.x+i,this.y+c)},s})(),pn=function(s,i,c){return new vA(s.x+(i.x-s.x)*c,s.y+(i.y-s.y)*c)},_o=(function(){function s(i,c,l,f){this.type=1,this.start=i,this.startControl=c,this.endControl=l,this.end=f}return s.prototype.subdivide=function(i,c){var l=pn(this.start,this.startControl,i),f=pn(this.startControl,this.endControl,i),p=pn(this.endControl,this.end,i),C=pn(l,f,i),Q=pn(f,p,i),E=pn(C,Q,i);return c?new s(this.start,l,C,E):new s(E,Q,p,this.end)},s.prototype.add=function(i,c){return new s(this.start.add(i,c),this.startControl.add(i,c),this.endControl.add(i,c),this.end.add(i,c))},s.prototype.reverse=function(){return new s(this.end,this.endControl,this.startControl,this.start)},s})(),xe=function(s){return s.type===1},NQ=(function(){function s(i){var c=i.styles,l=i.bounds,f=Ar(c.borderTopLeftRadius,l.width,l.height),p=f[0],C=f[1],Q=Ar(c.borderTopRightRadius,l.width,l.height),E=Q[0],L=Q[1],V=Ar(c.borderBottomRightRadius,l.width,l.height),X=V[0],j=V[1],CA=Ar(c.borderBottomLeftRadius,l.width,l.height),hA=CA[0],pA=CA[1],VA=[];VA.push((p+E)/l.width),VA.push((hA+X)/l.width),VA.push((C+pA)/l.height),VA.push((L+j)/l.height);var xA=Math.max.apply(Math,VA);xA>1&&(p/=xA,C/=xA,E/=xA,L/=xA,X/=xA,j/=xA,hA/=xA,pA/=xA);var IA=l.width-E,ee=l.height-j,zA=l.width-X,TA=l.height-pA,QA=c.borderTopWidth,PA=c.borderRightWidth,GA=c.borderBottomWidth,kA=c.borderLeftWidth,ce=qA(c.paddingTop,i.bounds.width),ye=qA(c.paddingRight,i.bounds.width),Ie=qA(c.paddingBottom,i.bounds.width),ZA=qA(c.paddingLeft,i.bounds.width);this.topLeftBorderDoubleOuterBox=p>0||C>0?ne(l.left+kA/3,l.top+QA/3,p-kA/3,C-QA/3,$A.TOP_LEFT):new vA(l.left+kA/3,l.top+QA/3),this.topRightBorderDoubleOuterBox=p>0||C>0?ne(l.left+IA,l.top+QA/3,E-PA/3,L-QA/3,$A.TOP_RIGHT):new vA(l.left+l.width-PA/3,l.top+QA/3),this.bottomRightBorderDoubleOuterBox=X>0||j>0?ne(l.left+zA,l.top+ee,X-PA/3,j-GA/3,$A.BOTTOM_RIGHT):new vA(l.left+l.width-PA/3,l.top+l.height-GA/3),this.bottomLeftBorderDoubleOuterBox=hA>0||pA>0?ne(l.left+kA/3,l.top+TA,hA-kA/3,pA-GA/3,$A.BOTTOM_LEFT):new vA(l.left+kA/3,l.top+l.height-GA/3),this.topLeftBorderDoubleInnerBox=p>0||C>0?ne(l.left+kA*2/3,l.top+QA*2/3,p-kA*2/3,C-QA*2/3,$A.TOP_LEFT):new vA(l.left+kA*2/3,l.top+QA*2/3),this.topRightBorderDoubleInnerBox=p>0||C>0?ne(l.left+IA,l.top+QA*2/3,E-PA*2/3,L-QA*2/3,$A.TOP_RIGHT):new vA(l.left+l.width-PA*2/3,l.top+QA*2/3),this.bottomRightBorderDoubleInnerBox=X>0||j>0?ne(l.left+zA,l.top+ee,X-PA*2/3,j-GA*2/3,$A.BOTTOM_RIGHT):new vA(l.left+l.width-PA*2/3,l.top+l.height-GA*2/3),this.bottomLeftBorderDoubleInnerBox=hA>0||pA>0?ne(l.left+kA*2/3,l.top+TA,hA-kA*2/3,pA-GA*2/3,$A.BOTTOM_LEFT):new vA(l.left+kA*2/3,l.top+l.height-GA*2/3),this.topLeftBorderStroke=p>0||C>0?ne(l.left+kA/2,l.top+QA/2,p-kA/2,C-QA/2,$A.TOP_LEFT):new vA(l.left+kA/2,l.top+QA/2),this.topRightBorderStroke=p>0||C>0?ne(l.left+IA,l.top+QA/2,E-PA/2,L-QA/2,$A.TOP_RIGHT):new vA(l.left+l.width-PA/2,l.top+QA/2),this.bottomRightBorderStroke=X>0||j>0?ne(l.left+zA,l.top+ee,X-PA/2,j-GA/2,$A.BOTTOM_RIGHT):new vA(l.left+l.width-PA/2,l.top+l.height-GA/2),this.bottomLeftBorderStroke=hA>0||pA>0?ne(l.left+kA/2,l.top+TA,hA-kA/2,pA-GA/2,$A.BOTTOM_LEFT):new vA(l.left+kA/2,l.top+l.height-GA/2),this.topLeftBorderBox=p>0||C>0?ne(l.left,l.top,p,C,$A.TOP_LEFT):new vA(l.left,l.top),this.topRightBorderBox=E>0||L>0?ne(l.left+IA,l.top,E,L,$A.TOP_RIGHT):new vA(l.left+l.width,l.top),this.bottomRightBorderBox=X>0||j>0?ne(l.left+zA,l.top+ee,X,j,$A.BOTTOM_RIGHT):new vA(l.left+l.width,l.top+l.height),this.bottomLeftBorderBox=hA>0||pA>0?ne(l.left,l.top+TA,hA,pA,$A.BOTTOM_LEFT):new vA(l.left,l.top+l.height),this.topLeftPaddingBox=p>0||C>0?ne(l.left+kA,l.top+QA,Math.max(0,p-kA),Math.max(0,C-QA),$A.TOP_LEFT):new vA(l.left+kA,l.top+QA),this.topRightPaddingBox=E>0||L>0?ne(l.left+Math.min(IA,l.width-PA),l.top+QA,IA>l.width+PA?0:Math.max(0,E-PA),Math.max(0,L-QA),$A.TOP_RIGHT):new vA(l.left+l.width-PA,l.top+QA),this.bottomRightPaddingBox=X>0||j>0?ne(l.left+Math.min(zA,l.width-kA),l.top+Math.min(ee,l.height-GA),Math.max(0,X-PA),Math.max(0,j-GA),$A.BOTTOM_RIGHT):new vA(l.left+l.width-PA,l.top+l.height-GA),this.bottomLeftPaddingBox=hA>0||pA>0?ne(l.left+kA,l.top+Math.min(TA,l.height-GA),Math.max(0,hA-kA),Math.max(0,pA-GA),$A.BOTTOM_LEFT):new vA(l.left+kA,l.top+l.height-GA),this.topLeftContentBox=p>0||C>0?ne(l.left+kA+ZA,l.top+QA+ce,Math.max(0,p-(kA+ZA)),Math.max(0,C-(QA+ce)),$A.TOP_LEFT):new vA(l.left+kA+ZA,l.top+QA+ce),this.topRightContentBox=E>0||L>0?ne(l.left+Math.min(IA,l.width+kA+ZA),l.top+QA+ce,IA>l.width+kA+ZA?0:E-kA+ZA,L-(QA+ce),$A.TOP_RIGHT):new vA(l.left+l.width-(PA+ye),l.top+QA+ce),this.bottomRightContentBox=X>0||j>0?ne(l.left+Math.min(zA,l.width-(kA+ZA)),l.top+Math.min(ee,l.height+QA+ce),Math.max(0,X-(PA+ye)),j-(GA+Ie),$A.BOTTOM_RIGHT):new vA(l.left+l.width-(PA+ye),l.top+l.height-(GA+Ie)),this.bottomLeftContentBox=hA>0||pA>0?ne(l.left+kA+ZA,l.top+TA,Math.max(0,hA-(kA+ZA)),pA-(GA+Ie),$A.BOTTOM_LEFT):new vA(l.left+kA+ZA,l.top+l.height-(GA+Ie))}return s})(),$A;(function(s){s[s.TOP_LEFT=0]="TOP_LEFT",s[s.TOP_RIGHT=1]="TOP_RIGHT",s[s.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",s[s.BOTTOM_LEFT=3]="BOTTOM_LEFT"})($A||($A={}));var ne=function(s,i,c,l,f){var p=4*((Math.sqrt(2)-1)/3),C=c*p,Q=l*p,E=s+c,L=i+l;switch(f){case $A.TOP_LEFT:return new _o(new vA(s,L),new vA(s,L-Q),new vA(E-C,i),new vA(E,i));case $A.TOP_RIGHT:return new _o(new vA(s,i),new vA(s+C,i),new vA(E,L-Q),new vA(E,L));case $A.BOTTOM_RIGHT:return new _o(new vA(E,i),new vA(E,i+Q),new vA(s+C,L),new vA(s,L));case $A.BOTTOM_LEFT:default:return new _o(new vA(E,L),new vA(E-C,L),new vA(s,i+Q),new vA(s,i))}},So=function(s){return[s.topLeftBorderBox,s.topRightBorderBox,s.bottomRightBorderBox,s.bottomLeftBorderBox]},LQ=function(s){return[s.topLeftContentBox,s.topRightContentBox,s.bottomRightContentBox,s.bottomLeftContentBox]},xo=function(s){return[s.topLeftPaddingBox,s.topRightPaddingBox,s.bottomRightPaddingBox,s.bottomLeftPaddingBox]},TQ=(function(){function s(i,c,l){this.offsetX=i,this.offsetY=c,this.matrix=l,this.type=0,this.target=6}return s})(),Do=(function(){function s(i,c){this.path=i,this.target=c,this.type=1}return s})(),kQ=(function(){function s(i){this.opacity=i,this.type=2,this.target=6}return s})(),MQ=function(s){return s.type===0},du=function(s){return s.type===1},OQ=function(s){return s.type===2},fu=function(s,i){return s.length===i.length?s.some(function(c,l){return c===i[l]}):!1},KQ=function(s,i,c,l,f){return s.map(function(p,C){switch(C){case 0:return p.add(i,c);case 1:return p.add(i+l,c);case 2:return p.add(i+l,c+f);case 3:return p.add(i,c+f)}return p})},gu=(function(){function s(i){this.element=i,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return s})(),hu=(function(){function s(i,c){if(this.container=i,this.parent=c,this.effects=[],this.curves=new NQ(this.container),this.container.styles.opacity<1&&this.effects.push(new kQ(this.container.styles.opacity)),this.container.styles.transform!==null){var l=this.container.bounds.left+this.container.styles.transformOrigin[0].number,f=this.container.bounds.top+this.container.styles.transformOrigin[1].number,p=this.container.styles.transform;this.effects.push(new TQ(l,f,p))}if(this.container.styles.overflowX!==0){var C=So(this.curves),Q=xo(this.curves);fu(C,Q)?this.effects.push(new Do(C,6)):(this.effects.push(new Do(C,2)),this.effects.push(new Do(Q,4)))}}return s.prototype.getEffects=function(i){for(var c=[2,3].indexOf(this.container.styles.position)===-1,l=this.parent,f=this.effects.slice(0);l;){var p=l.effects.filter(function(E){return!du(E)});if(c||l.container.styles.position!==0||!l.parent){if(f.unshift.apply(f,p),c=[2,3].indexOf(l.container.styles.position)===-1,l.container.styles.overflowX!==0){var C=So(l.curves),Q=xo(l.curves);fu(C,Q)||f.unshift(new Do(Q,6))}}else f.unshift.apply(f,p);l=l.parent}return f.filter(function(E){return de(E.target,i)})},s})(),cs=function(s,i,c,l){s.container.elements.forEach(function(f){var p=de(f.flags,4),C=de(f.flags,2),Q=new hu(f,s);de(f.styles.display,2048)&&l.push(Q);var E=de(f.flags,8)?[]:l;if(p||C){var L=p||f.styles.isPositioned()?c:i,V=new gu(Q);if(f.styles.isPositioned()||f.styles.opacity<1||f.styles.isTransformed()){var X=f.styles.zIndex.order;if(X<0){var j=0;L.negativeZIndex.some(function(hA,pA){return X>hA.element.container.styles.zIndex.order?(j=pA,!1):j>0}),L.negativeZIndex.splice(j,0,V)}else if(X>0){var CA=0;L.positiveZIndex.some(function(hA,pA){return X>=hA.element.container.styles.zIndex.order?(CA=pA+1,!1):CA>0}),L.positiveZIndex.splice(CA,0,V)}else L.zeroOrAutoZIndexOrTransformedOrOpacity.push(V)}else f.styles.isFloating()?L.nonPositionedFloats.push(V):L.nonPositionedInlineLevel.push(V);cs(Q,V,p?V:c,E)}else f.styles.isInlineLevel()?i.inlineLevel.push(Q):i.nonInlineLevel.push(Q),cs(Q,i,c,E);de(f.flags,8)&&Bu(f,E)})},Bu=function(s,i){for(var c=s instanceof qi?s.start:1,l=s instanceof qi?s.reversed:!1,f=0;f<i.length;f++){var p=i[f];p.container instanceof Rc&&typeof p.container.value=="number"&&p.container.value!==0&&(c=p.container.value),p.listValue=ir(c,p.container.styles.listStyleType,!0),c+=l?-1:1}},RQ=function(s){var i=new hu(s,null),c=new gu(i),l=[];return cs(i,c,c,l),Bu(i.container,l),c},pu=function(s,i){switch(i){case 0:return De(s.topLeftBorderBox,s.topLeftPaddingBox,s.topRightBorderBox,s.topRightPaddingBox);case 1:return De(s.topRightBorderBox,s.topRightPaddingBox,s.bottomRightBorderBox,s.bottomRightPaddingBox);case 2:return De(s.bottomRightBorderBox,s.bottomRightPaddingBox,s.bottomLeftBorderBox,s.bottomLeftPaddingBox);default:return De(s.bottomLeftBorderBox,s.bottomLeftPaddingBox,s.topLeftBorderBox,s.topLeftPaddingBox)}},VQ=function(s,i){switch(i){case 0:return De(s.topLeftBorderBox,s.topLeftBorderDoubleOuterBox,s.topRightBorderBox,s.topRightBorderDoubleOuterBox);case 1:return De(s.topRightBorderBox,s.topRightBorderDoubleOuterBox,s.bottomRightBorderBox,s.bottomRightBorderDoubleOuterBox);case 2:return De(s.bottomRightBorderBox,s.bottomRightBorderDoubleOuterBox,s.bottomLeftBorderBox,s.bottomLeftBorderDoubleOuterBox);default:return De(s.bottomLeftBorderBox,s.bottomLeftBorderDoubleOuterBox,s.topLeftBorderBox,s.topLeftBorderDoubleOuterBox)}},PQ=function(s,i){switch(i){case 0:return De(s.topLeftBorderDoubleInnerBox,s.topLeftPaddingBox,s.topRightBorderDoubleInnerBox,s.topRightPaddingBox);case 1:return De(s.topRightBorderDoubleInnerBox,s.topRightPaddingBox,s.bottomRightBorderDoubleInnerBox,s.bottomRightPaddingBox);case 2:return De(s.bottomRightBorderDoubleInnerBox,s.bottomRightPaddingBox,s.bottomLeftBorderDoubleInnerBox,s.bottomLeftPaddingBox);default:return De(s.bottomLeftBorderDoubleInnerBox,s.bottomLeftPaddingBox,s.topLeftBorderDoubleInnerBox,s.topLeftPaddingBox)}},GQ=function(s,i){switch(i){case 0:return No(s.topLeftBorderStroke,s.topRightBorderStroke);case 1:return No(s.topRightBorderStroke,s.bottomRightBorderStroke);case 2:return No(s.bottomRightBorderStroke,s.bottomLeftBorderStroke);default:return No(s.bottomLeftBorderStroke,s.topLeftBorderStroke)}},No=function(s,i){var c=[];return xe(s)?c.push(s.subdivide(.5,!1)):c.push(s),xe(i)?c.push(i.subdivide(.5,!0)):c.push(i),c},De=function(s,i,c,l){var f=[];return xe(s)?f.push(s.subdivide(.5,!1)):f.push(s),xe(c)?f.push(c.subdivide(.5,!0)):f.push(c),xe(l)?f.push(l.subdivide(.5,!0).reverse()):f.push(l),xe(i)?f.push(i.subdivide(.5,!1).reverse()):f.push(i),f},mu=function(s){var i=s.bounds,c=s.styles;return i.add(c.borderLeftWidth,c.borderTopWidth,-(c.borderRightWidth+c.borderLeftWidth),-(c.borderTopWidth+c.borderBottomWidth))},Lo=function(s){var i=s.styles,c=s.bounds,l=qA(i.paddingLeft,c.width),f=qA(i.paddingRight,c.width),p=qA(i.paddingTop,c.width),C=qA(i.paddingBottom,c.width);return c.add(l+i.borderLeftWidth,p+i.borderTopWidth,-(i.borderRightWidth+i.borderLeftWidth+l+f),-(i.borderTopWidth+i.borderBottomWidth+p+C))},zQ=function(s,i){return s===0?i.bounds:s===2?Lo(i):mu(i)},XQ=function(s,i){return s===0?i.bounds:s===2?Lo(i):mu(i)},us=function(s,i,c){var l=zQ(wn(s.styles.backgroundOrigin,i),s),f=XQ(wn(s.styles.backgroundClip,i),s),p=$Q(wn(s.styles.backgroundSize,i),c,l),C=p[0],Q=p[1],E=Ar(wn(s.styles.backgroundPosition,i),l.width-C,l.height-Q);return[YQ(wn(s.styles.backgroundRepeat,i),E,p,l,f),Math.round(l.left+E[0]),Math.round(l.top+E[1]),C,Q]},mn=function(s){return JA(s)&&s.value===fn.AUTO},To=function(s){return typeof s=="number"},$Q=function(s,i,c){var l=i[0],f=i[1],p=i[2],C=s[0],Q=s[1];if(!C)return[0,0];if(le(C)&&Q&&le(Q))return[qA(C,c.width),qA(Q,c.height)];var E=To(p);if(JA(C)&&(C.value===fn.CONTAIN||C.value===fn.COVER))return To(p)?c.width/c.height<p!=(C.value===fn.COVER)?[c.width,c.width/p]:[c.height*p,c.height]:[c.width,c.height];var L=To(l),V=To(f),X=L||V;if(mn(C)&&(!Q||mn(Q)))return L&&V?[l,f]:!E&&!X?[c.width,c.height]:X&&E?[L?l:f*p,V?f:l/p]:[L?l:c.width,V?f:c.height];if(E){var j=0,CA=0;return le(C)?j=qA(C,c.width):le(Q)&&(CA=qA(Q,c.height)),mn(C)?j=CA*p:(!Q||mn(Q))&&(CA=j/p),[j,CA]}var hA=null,pA=null;if(le(C)?hA=qA(C,c.width):Q&&le(Q)&&(pA=qA(Q,c.height)),hA!==null&&(!Q||mn(Q))&&(pA=L&&V?hA/l*f:c.height),pA!==null&&mn(C)&&(hA=L&&V?pA/f*l:c.width),hA!==null&&pA!==null)return[hA,pA];throw new Error("Unable to calculate background-size for element")},wn=function(s,i){var c=s[i];return typeof c>"u"?s[0]:c},YQ=function(s,i,c,l,f){var p=i[0],C=i[1],Q=c[0],E=c[1];switch(s){case 2:return[new vA(Math.round(l.left),Math.round(l.top+C)),new vA(Math.round(l.left+l.width),Math.round(l.top+C)),new vA(Math.round(l.left+l.width),Math.round(E+l.top+C)),new vA(Math.round(l.left),Math.round(E+l.top+C))];case 3:return[new vA(Math.round(l.left+p),Math.round(l.top)),new vA(Math.round(l.left+p+Q),Math.round(l.top)),new vA(Math.round(l.left+p+Q),Math.round(l.height+l.top)),new vA(Math.round(l.left+p),Math.round(l.height+l.top))];case 1:return[new vA(Math.round(l.left+p),Math.round(l.top+C)),new vA(Math.round(l.left+p+Q),Math.round(l.top+C)),new vA(Math.round(l.left+p+Q),Math.round(l.top+C+E)),new vA(Math.round(l.left+p),Math.round(l.top+C+E))];default:return[new vA(Math.round(f.left),Math.round(f.top)),new vA(Math.round(f.left+f.width),Math.round(f.top)),new vA(Math.round(f.left+f.width),Math.round(f.height+f.top)),new vA(Math.round(f.left),Math.round(f.height+f.top))]}},WQ="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",wu="Hidden Text",JQ=(function(){function s(i){this._data={},this._document=i}return s.prototype.parseMetrics=function(i,c){var l=this._document.createElement("div"),f=this._document.createElement("img"),p=this._document.createElement("span"),C=this._document.body;l.style.visibility="hidden",l.style.fontFamily=i,l.style.fontSize=c,l.style.margin="0",l.style.padding="0",l.style.whiteSpace="nowrap",C.appendChild(l),f.src=WQ,f.width=1,f.height=1,f.style.margin="0",f.style.padding="0",f.style.verticalAlign="baseline",p.style.fontFamily=i,p.style.fontSize=c,p.style.margin="0",p.style.padding="0",p.appendChild(this._document.createTextNode(wu)),l.appendChild(p),l.appendChild(f);var Q=f.offsetTop-p.offsetTop+2;l.removeChild(p),l.appendChild(this._document.createTextNode(wu)),l.style.lineHeight="normal",f.style.verticalAlign="super";var E=f.offsetTop-l.offsetTop+2;return C.removeChild(l),{baseline:Q,middle:E}},s.prototype.getMetrics=function(i,c){var l=i+" "+c;return typeof this._data[l]>"u"&&(this._data[l]=this.parseMetrics(i,c)),this._data[l]},s})(),Cu=(function(){function s(i,c){this.context=i,this.options=c}return s})(),ZQ=1e4,jQ=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f._activeEffects=[],f.canvas=l.canvas?l.canvas:document.createElement("canvas"),f.ctx=f.canvas.getContext("2d"),l.canvas||(f.canvas.width=Math.floor(l.width*l.scale),f.canvas.height=Math.floor(l.height*l.scale),f.canvas.style.width=l.width+"px",f.canvas.style.height=l.height+"px"),f.fontMetrics=new JQ(document),f.ctx.scale(f.options.scale,f.options.scale),f.ctx.translate(-l.x,-l.y),f.ctx.textBaseline="bottom",f._activeEffects=[],f.context.logger.debug("Canvas renderer initialized ("+l.width+"x"+l.height+") with scale "+l.scale),f}return i.prototype.applyEffects=function(c){for(var l=this;this._activeEffects.length;)this.popEffect();c.forEach(function(f){return l.applyEffect(f)})},i.prototype.applyEffect=function(c){this.ctx.save(),OQ(c)&&(this.ctx.globalAlpha=c.opacity),MQ(c)&&(this.ctx.translate(c.offsetX,c.offsetY),this.ctx.transform(c.matrix[0],c.matrix[1],c.matrix[2],c.matrix[3],c.matrix[4],c.matrix[5]),this.ctx.translate(-c.offsetX,-c.offsetY)),du(c)&&(this.path(c.path),this.ctx.clip()),this._activeEffects.push(c)},i.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},i.prototype.renderStack=function(c){return a(this,void 0,void 0,function(){var l;return u(this,function(f){switch(f.label){case 0:return l=c.element.container.styles,l.isVisible()?[4,this.renderStackContent(c)]:[3,2];case 1:f.sent(),f.label=2;case 2:return[2]}})})},i.prototype.renderNode=function(c){return a(this,void 0,void 0,function(){return u(this,function(l){switch(l.label){case 0:if(de(c.container.flags,16))debugger;return c.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(c)]:[3,3];case 1:return l.sent(),[4,this.renderNodeContent(c)];case 2:l.sent(),l.label=3;case 3:return[2]}})})},i.prototype.renderTextWithLetterSpacing=function(c,l,f){var p=this;l===0?this.ctx.fillText(c.text,c.bounds.left,c.bounds.top+f):ji(c.text).reduce(function(C,Q){return p.ctx.fillText(Q,C,c.bounds.top+f),C+p.ctx.measureText(Q).width},c.bounds.left)},i.prototype.createFontStyle=function(c){var l=c.fontVariant.filter(function(C){return C==="normal"||C==="small-caps"}).join(""),f=nE(c.fontFamily).join(", "),p=qn(c.fontSize)?""+c.fontSize.number+c.fontSize.unit:c.fontSize.number+"px";return[[c.fontStyle,l,c.fontWeight,p,f].join(" "),f,p]},i.prototype.renderTextNode=function(c,l){return a(this,void 0,void 0,function(){var f,p,C,Q,E,L,V,X,j=this;return u(this,function(CA){return f=this.createFontStyle(l),p=f[0],C=f[1],Q=f[2],this.ctx.font=p,this.ctx.direction=l.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",E=this.fontMetrics.getMetrics(C,Q),L=E.baseline,V=E.middle,X=l.paintOrder,c.textBounds.forEach(function(hA){X.forEach(function(pA){switch(pA){case 0:j.ctx.fillStyle=fe(l.color),j.renderTextWithLetterSpacing(hA,l.letterSpacing,L);var VA=l.textShadow;VA.length&&hA.text.trim().length&&(VA.slice(0).reverse().forEach(function(xA){j.ctx.shadowColor=fe(xA.color),j.ctx.shadowOffsetX=xA.offsetX.number*j.options.scale,j.ctx.shadowOffsetY=xA.offsetY.number*j.options.scale,j.ctx.shadowBlur=xA.blur.number,j.renderTextWithLetterSpacing(hA,l.letterSpacing,L)}),j.ctx.shadowColor="",j.ctx.shadowOffsetX=0,j.ctx.shadowOffsetY=0,j.ctx.shadowBlur=0),l.textDecorationLine.length&&(j.ctx.fillStyle=fe(l.textDecorationColor||l.color),l.textDecorationLine.forEach(function(xA){switch(xA){case 1:j.ctx.fillRect(hA.bounds.left,Math.round(hA.bounds.top+L),hA.bounds.width,1);break;case 2:j.ctx.fillRect(hA.bounds.left,Math.round(hA.bounds.top),hA.bounds.width,1);break;case 3:j.ctx.fillRect(hA.bounds.left,Math.ceil(hA.bounds.top+V),hA.bounds.width,1);break}}));break;case 1:l.webkitTextStrokeWidth&&hA.text.trim().length&&(j.ctx.strokeStyle=fe(l.webkitTextStrokeColor),j.ctx.lineWidth=l.webkitTextStrokeWidth,j.ctx.lineJoin=window.chrome?"miter":"round",j.ctx.strokeText(hA.text,hA.bounds.left,hA.bounds.top+L)),j.ctx.strokeStyle="",j.ctx.lineWidth=0,j.ctx.lineJoin="miter";break}})}),[2]})})},i.prototype.renderReplacedElement=function(c,l,f){if(f&&c.intrinsicWidth>0&&c.intrinsicHeight>0){var p=Lo(c),C=xo(l);this.path(C),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(f,0,0,c.intrinsicWidth,c.intrinsicHeight,p.left,p.top,p.width,p.height),this.ctx.restore()}},i.prototype.renderNodeContent=function(c){return a(this,void 0,void 0,function(){var l,f,p,C,Q,E,IA,IA,L,V,X,j,zA,CA,hA,TA,pA,VA,xA,IA,ee,zA,TA;return u(this,function(QA){switch(QA.label){case 0:this.applyEffects(c.getEffects(4)),l=c.container,f=c.curves,p=l.styles,C=0,Q=l.textNodes,QA.label=1;case 1:return C<Q.length?(E=Q[C],[4,this.renderTextNode(E,p)]):[3,4];case 2:QA.sent(),QA.label=3;case 3:return C++,[3,1];case 4:if(!(l instanceof Mc))return[3,8];QA.label=5;case 5:return QA.trys.push([5,7,,8]),[4,this.context.cache.match(l.src)];case 6:return IA=QA.sent(),this.renderReplacedElement(l,f,IA),[3,8];case 7:return QA.sent(),this.context.logger.error("Error loading image "+l.src),[3,8];case 8:if(l instanceof Oc&&this.renderReplacedElement(l,f,l.canvas),!(l instanceof Kc))return[3,12];QA.label=9;case 9:return QA.trys.push([9,11,,12]),[4,this.context.cache.match(l.svg)];case 10:return IA=QA.sent(),this.renderReplacedElement(l,f,IA),[3,12];case 11:return QA.sent(),this.context.logger.error("Error loading svg "+l.svg.substring(0,255)),[3,12];case 12:return l instanceof zc&&l.tree?(L=new i(this.context,{scale:this.options.scale,backgroundColor:l.backgroundColor,x:0,y:0,width:l.width,height:l.height}),[4,L.render(l.tree)]):[3,14];case 13:V=QA.sent(),l.width&&l.height&&this.ctx.drawImage(V,0,0,l.width,l.height,l.bounds.left,l.bounds.top,l.bounds.width,l.bounds.height),QA.label=14;case 14:if(l instanceof As&&(X=Math.min(l.bounds.width,l.bounds.height),l.type===Eo?l.checked&&(this.ctx.save(),this.path([new vA(l.bounds.left+X*.39363,l.bounds.top+X*.79),new vA(l.bounds.left+X*.16,l.bounds.top+X*.5549),new vA(l.bounds.left+X*.27347,l.bounds.top+X*.44071),new vA(l.bounds.left+X*.39694,l.bounds.top+X*.5649),new vA(l.bounds.left+X*.72983,l.bounds.top+X*.23),new vA(l.bounds.left+X*.84,l.bounds.top+X*.34085),new vA(l.bounds.left+X*.39363,l.bounds.top+X*.79)]),this.ctx.fillStyle=fe(Vc),this.ctx.fill(),this.ctx.restore()):l.type===Fo&&l.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(l.bounds.left+X/2,l.bounds.top+X/2,X/4,0,Math.PI*2,!0),this.ctx.fillStyle=fe(Vc),this.ctx.fill(),this.ctx.restore())),qQ(l)&&l.value.length){switch(j=this.createFontStyle(p),zA=j[0],CA=j[1],hA=this.fontMetrics.getMetrics(zA,CA).baseline,this.ctx.font=zA,this.ctx.fillStyle=fe(p.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=eE(l.styles.textAlign),TA=Lo(l),pA=0,l.styles.textAlign){case 1:pA+=TA.width/2;break;case 2:pA+=TA.width;break}VA=TA.add(pA,0,0,-TA.height/2+1),this.ctx.save(),this.path([new vA(TA.left,TA.top),new vA(TA.left+TA.width,TA.top),new vA(TA.left+TA.width,TA.top+TA.height),new vA(TA.left,TA.top+TA.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new rr(l.value,VA),p.letterSpacing,hA),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!de(l.styles.display,2048))return[3,20];if(l.styles.listStyleImage===null)return[3,19];if(xA=l.styles.listStyleImage,xA.type!==0)return[3,18];IA=void 0,ee=xA.url,QA.label=15;case 15:return QA.trys.push([15,17,,18]),[4,this.context.cache.match(ee)];case 16:return IA=QA.sent(),this.ctx.drawImage(IA,l.bounds.left-(IA.width+10),l.bounds.top),[3,18];case 17:return QA.sent(),this.context.logger.error("Error loading list-style-image "+ee),[3,18];case 18:return[3,20];case 19:c.listValue&&l.styles.listStyleType!==-1&&(zA=this.createFontStyle(p)[0],this.ctx.font=zA,this.ctx.fillStyle=fe(p.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",TA=new h(l.bounds.left,l.bounds.top+qA(l.styles.paddingTop,l.bounds.width),l.bounds.width,wc(p.lineHeight,p.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new rr(c.listValue,TA),p.letterSpacing,wc(p.lineHeight,p.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),QA.label=20;case 20:return[2]}})})},i.prototype.renderStackContent=function(c){return a(this,void 0,void 0,function(){var l,f,xA,p,C,xA,Q,E,xA,L,V,xA,X,j,xA,CA,hA,xA,pA,VA,xA;return u(this,function(IA){switch(IA.label){case 0:if(de(c.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(c.element)];case 1:IA.sent(),l=0,f=c.negativeZIndex,IA.label=2;case 2:return l<f.length?(xA=f[l],[4,this.renderStack(xA)]):[3,5];case 3:IA.sent(),IA.label=4;case 4:return l++,[3,2];case 5:return[4,this.renderNodeContent(c.element)];case 6:IA.sent(),p=0,C=c.nonInlineLevel,IA.label=7;case 7:return p<C.length?(xA=C[p],[4,this.renderNode(xA)]):[3,10];case 8:IA.sent(),IA.label=9;case 9:return p++,[3,7];case 10:Q=0,E=c.nonPositionedFloats,IA.label=11;case 11:return Q<E.length?(xA=E[Q],[4,this.renderStack(xA)]):[3,14];case 12:IA.sent(),IA.label=13;case 13:return Q++,[3,11];case 14:L=0,V=c.nonPositionedInlineLevel,IA.label=15;case 15:return L<V.length?(xA=V[L],[4,this.renderStack(xA)]):[3,18];case 16:IA.sent(),IA.label=17;case 17:return L++,[3,15];case 18:X=0,j=c.inlineLevel,IA.label=19;case 19:return X<j.length?(xA=j[X],[4,this.renderNode(xA)]):[3,22];case 20:IA.sent(),IA.label=21;case 21:return X++,[3,19];case 22:CA=0,hA=c.zeroOrAutoZIndexOrTransformedOrOpacity,IA.label=23;case 23:return CA<hA.length?(xA=hA[CA],[4,this.renderStack(xA)]):[3,26];case 24:IA.sent(),IA.label=25;case 25:return CA++,[3,23];case 26:pA=0,VA=c.positiveZIndex,IA.label=27;case 27:return pA<VA.length?(xA=VA[pA],[4,this.renderStack(xA)]):[3,30];case 28:IA.sent(),IA.label=29;case 29:return pA++,[3,27];case 30:return[2]}})})},i.prototype.mask=function(c){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(c.slice(0).reverse()),this.ctx.closePath()},i.prototype.path=function(c){this.ctx.beginPath(),this.formatPath(c),this.ctx.closePath()},i.prototype.formatPath=function(c){var l=this;c.forEach(function(f,p){var C=xe(f)?f.start:f;p===0?l.ctx.moveTo(C.x,C.y):l.ctx.lineTo(C.x,C.y),xe(f)&&l.ctx.bezierCurveTo(f.startControl.x,f.startControl.y,f.endControl.x,f.endControl.y,f.end.x,f.end.y)})},i.prototype.renderRepeat=function(c,l,f,p){this.path(c),this.ctx.fillStyle=l,this.ctx.translate(f,p),this.ctx.fill(),this.ctx.translate(-f,-p)},i.prototype.resizeImage=function(c,l,f){var p;if(c.width===l&&c.height===f)return c;var C=((p=this.canvas.ownerDocument)!==null&&p!==void 0?p:document).createElement("canvas");return C.width=Math.max(1,l),C.height=Math.max(1,f),C.getContext("2d").drawImage(c,0,0,c.width,c.height,0,0,l,f),C},i.prototype.renderBackgroundImage=function(c){return a(this,void 0,void 0,function(){var l,f,p,C,Q,E;return u(this,function(L){switch(L.label){case 0:l=c.styles.backgroundImage.length-1,f=function(V){var X,j,CA,ce,Qe,Ee,ZA,Be,GA,hA,ce,Qe,Ee,ZA,Be,pA,VA,xA,IA,ee,zA,TA,QA,PA,GA,kA,ce,ye,Ie,ZA,Be,_t,Qe,Ee,zt,Ze,St,Xt,$t,ut,Yt,dt;return u(this,function(Cn){switch(Cn.label){case 0:if(V.type!==0)return[3,5];X=void 0,j=V.url,Cn.label=1;case 1:return Cn.trys.push([1,3,,4]),[4,p.context.cache.match(j)];case 2:return X=Cn.sent(),[3,4];case 3:return Cn.sent(),p.context.logger.error("Error loading background-image "+j),[3,4];case 4:return X&&(CA=us(c,l,[X.width,X.height,X.width/X.height]),ce=CA[0],Qe=CA[1],Ee=CA[2],ZA=CA[3],Be=CA[4],GA=p.ctx.createPattern(p.resizeImage(X,ZA,Be),"repeat"),p.renderRepeat(ce,GA,Qe,Ee)),[3,6];case 5:GC(V)?(hA=us(c,l,[null,null,null]),ce=hA[0],Qe=hA[1],Ee=hA[2],ZA=hA[3],Be=hA[4],pA=OC(V.angle,ZA,Be),VA=pA[0],xA=pA[1],IA=pA[2],ee=pA[3],zA=pA[4],TA=document.createElement("canvas"),TA.width=ZA,TA.height=Be,QA=TA.getContext("2d"),PA=QA.createLinearGradient(xA,ee,IA,zA),ac(V.stops,VA).forEach(function(ar){return PA.addColorStop(ar.stop,fe(ar.color))}),QA.fillStyle=PA,QA.fillRect(0,0,ZA,Be),ZA>0&&Be>0&&(GA=p.ctx.createPattern(TA,"repeat"),p.renderRepeat(ce,GA,Qe,Ee))):zC(V)&&(kA=us(c,l,[null,null,null]),ce=kA[0],ye=kA[1],Ie=kA[2],ZA=kA[3],Be=kA[4],_t=V.position.length===0?[ki]:V.position,Qe=qA(_t[0],ZA),Ee=qA(_t[_t.length-1],Be),zt=KC(V,Qe,Ee,ZA,Be),Ze=zt[0],St=zt[1],Ze>0&&St>0&&(Xt=p.ctx.createRadialGradient(ye+Qe,Ie+Ee,0,ye+Qe,Ie+Ee,Ze),ac(V.stops,Ze*2).forEach(function(ar){return Xt.addColorStop(ar.stop,fe(ar.color))}),p.path(ce),p.ctx.fillStyle=Xt,Ze!==St?($t=c.bounds.left+.5*c.bounds.width,ut=c.bounds.top+.5*c.bounds.height,Yt=St/Ze,dt=1/Yt,p.ctx.save(),p.ctx.translate($t,ut),p.ctx.transform(1,0,0,Yt,0,0),p.ctx.translate(-$t,-ut),p.ctx.fillRect(ye,dt*(Ie-ut)+ut,ZA,Be*dt),p.ctx.restore()):p.ctx.fill())),Cn.label=6;case 6:return l--,[2]}})},p=this,C=0,Q=c.styles.backgroundImage.slice(0).reverse(),L.label=1;case 1:return C<Q.length?(E=Q[C],[5,f(E)]):[3,4];case 2:L.sent(),L.label=3;case 3:return C++,[3,1];case 4:return[2]}})})},i.prototype.renderSolidBorder=function(c,l,f){return a(this,void 0,void 0,function(){return u(this,function(p){return this.path(pu(f,l)),this.ctx.fillStyle=fe(c),this.ctx.fill(),[2]})})},i.prototype.renderDoubleBorder=function(c,l,f,p){return a(this,void 0,void 0,function(){var C,Q;return u(this,function(E){switch(E.label){case 0:return l<3?[4,this.renderSolidBorder(c,f,p)]:[3,2];case 1:return E.sent(),[2];case 2:return C=VQ(p,f),this.path(C),this.ctx.fillStyle=fe(c),this.ctx.fill(),Q=PQ(p,f),this.path(Q),this.ctx.fill(),[2]}})})},i.prototype.renderNodeBackgroundAndBorders=function(c){return a(this,void 0,void 0,function(){var l,f,p,C,Q,E,L,V,X=this;return u(this,function(j){switch(j.label){case 0:return this.applyEffects(c.getEffects(2)),l=c.container.styles,f=!Ut(l.backgroundColor)||l.backgroundImage.length,p=[{style:l.borderTopStyle,color:l.borderTopColor,width:l.borderTopWidth},{style:l.borderRightStyle,color:l.borderRightColor,width:l.borderRightWidth},{style:l.borderBottomStyle,color:l.borderBottomColor,width:l.borderBottomWidth},{style:l.borderLeftStyle,color:l.borderLeftColor,width:l.borderLeftWidth}],C=AE(wn(l.backgroundClip,0),c.curves),f||l.boxShadow.length?(this.ctx.save(),this.path(C),this.ctx.clip(),Ut(l.backgroundColor)||(this.ctx.fillStyle=fe(l.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(c.container)]):[3,2];case 1:j.sent(),this.ctx.restore(),l.boxShadow.slice(0).reverse().forEach(function(CA){X.ctx.save();var hA=So(c.curves),pA=CA.inset?0:ZQ,VA=KQ(hA,-pA+(CA.inset?1:-1)*CA.spread.number,(CA.inset?1:-1)*CA.spread.number,CA.spread.number*(CA.inset?-2:2),CA.spread.number*(CA.inset?-2:2));CA.inset?(X.path(hA),X.ctx.clip(),X.mask(VA)):(X.mask(hA),X.ctx.clip(),X.path(VA)),X.ctx.shadowOffsetX=CA.offsetX.number+pA,X.ctx.shadowOffsetY=CA.offsetY.number,X.ctx.shadowColor=fe(CA.color),X.ctx.shadowBlur=CA.blur.number,X.ctx.fillStyle=CA.inset?fe(CA.color):"rgba(0,0,0,1)",X.ctx.fill(),X.ctx.restore()}),j.label=2;case 2:Q=0,E=0,L=p,j.label=3;case 3:return E<L.length?(V=L[E],V.style!==0&&!Ut(V.color)&&V.width>0?V.style!==2?[3,5]:[4,this.renderDashedDottedBorder(V.color,V.width,Q,c.curves,2)]:[3,11]):[3,13];case 4:return j.sent(),[3,11];case 5:return V.style!==3?[3,7]:[4,this.renderDashedDottedBorder(V.color,V.width,Q,c.curves,3)];case 6:return j.sent(),[3,11];case 7:return V.style!==4?[3,9]:[4,this.renderDoubleBorder(V.color,V.width,Q,c.curves)];case 8:return j.sent(),[3,11];case 9:return[4,this.renderSolidBorder(V.color,Q,c.curves)];case 10:j.sent(),j.label=11;case 11:Q++,j.label=12;case 12:return E++,[3,3];case 13:return[2]}})})},i.prototype.renderDashedDottedBorder=function(c,l,f,p,C){return a(this,void 0,void 0,function(){var Q,E,L,V,X,j,CA,hA,pA,VA,xA,IA,ee,zA,TA,QA,TA,QA;return u(this,function(PA){return this.ctx.save(),Q=GQ(p,f),E=pu(p,f),C===2&&(this.path(E),this.ctx.clip()),xe(E[0])?(L=E[0].start.x,V=E[0].start.y):(L=E[0].x,V=E[0].y),xe(E[1])?(X=E[1].end.x,j=E[1].end.y):(X=E[1].x,j=E[1].y),f===0||f===2?CA=Math.abs(L-X):CA=Math.abs(V-j),this.ctx.beginPath(),C===3?this.formatPath(Q):this.formatPath(E.slice(0,2)),hA=l<3?l*3:l*2,pA=l<3?l*2:l,C===3&&(hA=l,pA=l),VA=!0,CA<=hA*2?VA=!1:CA<=hA*2+pA?(xA=CA/(2*hA+pA),hA*=xA,pA*=xA):(IA=Math.floor((CA+pA)/(hA+pA)),ee=(CA-IA*hA)/(IA-1),zA=(CA-(IA+1)*hA)/IA,pA=zA<=0||Math.abs(pA-ee)<Math.abs(pA-zA)?ee:zA),VA&&(C===3?this.ctx.setLineDash([0,hA+pA]):this.ctx.setLineDash([hA,pA])),C===3?(this.ctx.lineCap="round",this.ctx.lineWidth=l):this.ctx.lineWidth=l*2+1.1,this.ctx.strokeStyle=fe(c),this.ctx.stroke(),this.ctx.setLineDash([]),C===2&&(xe(E[0])&&(TA=E[3],QA=E[0],this.ctx.beginPath(),this.formatPath([new vA(TA.end.x,TA.end.y),new vA(QA.start.x,QA.start.y)]),this.ctx.stroke()),xe(E[1])&&(TA=E[1],QA=E[2],this.ctx.beginPath(),this.formatPath([new vA(TA.end.x,TA.end.y),new vA(QA.start.x,QA.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},i.prototype.render=function(c){return a(this,void 0,void 0,function(){var l;return u(this,function(f){switch(f.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=fe(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),l=RQ(c),[4,this.renderStack(l)];case 1:return f.sent(),this.applyEffects([]),[2,this.canvas]}})})},i})(Cu),qQ=function(s){return s instanceof Gc||s instanceof Pc?!0:s instanceof As&&s.type!==Fo&&s.type!==Eo},AE=function(s,i){switch(s){case 0:return So(i);case 2:return LQ(i);default:return xo(i)}},eE=function(s){switch(s){case 1:return"center";case 2:return"right";default:return"left"}},tE=["-apple-system","system-ui"],nE=function(s){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?s.filter(function(i){return tE.indexOf(i)===-1}):s},rE=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f.canvas=l.canvas?l.canvas:document.createElement("canvas"),f.ctx=f.canvas.getContext("2d"),f.options=l,f.canvas.width=Math.floor(l.width*l.scale),f.canvas.height=Math.floor(l.height*l.scale),f.canvas.style.width=l.width+"px",f.canvas.style.height=l.height+"px",f.ctx.scale(f.options.scale,f.options.scale),f.ctx.translate(-l.x,-l.y),f.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+l.width+"x"+l.height+" at "+l.x+","+l.y+") with scale "+l.scale),f}return i.prototype.render=function(c){return a(this,void 0,void 0,function(){var l,f;return u(this,function(p){switch(p.label){case 0:return l=Zi(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,c),[4,oE(l)];case 1:return f=p.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=fe(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(f,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},i})(Cu),oE=function(s){return new Promise(function(i,c){var l=new Image;l.onload=function(){i(l)},l.onerror=c,l.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(s))})},iE=(function(){function s(i){var c=i.id,l=i.enabled;this.id=c,this.enabled=l,this.start=Date.now()}return s.prototype.debug=function(){for(var i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,d([this.id,this.getTime()+"ms"],i)):this.info.apply(this,i))},s.prototype.getTime=function(){return Date.now()-this.start},s.prototype.info=function(){for(var i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,d([this.id,this.getTime()+"ms"],i))},s.prototype.warn=function(){for(var i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,d([this.id,this.getTime()+"ms"],i)):this.info.apply(this,i))},s.prototype.error=function(){for(var i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,d([this.id,this.getTime()+"ms"],i)):this.info.apply(this,i))},s.instances={},s})(),sE=(function(){function s(i,c){var l;this.windowBounds=c,this.instanceName="#"+s.instanceCount++,this.logger=new iE({id:this.instanceName,enabled:i.logging}),this.cache=(l=i.cache)!==null&&l!==void 0?l:new bQ(this,i)}return s.instanceCount=1,s})(),aE=function(s,i){return i===void 0&&(i={}),lE(s,i)};typeof window<"u"&&uu.setContext(window);var lE=function(s,i){return a(void 0,void 0,void 0,function(){var c,l,f,p,C,Q,E,L,V,X,j,CA,hA,pA,VA,xA,IA,ee,zA,TA,PA,QA,PA,GA,kA,ce,ye,Ie,ZA,Be,_t,Qe,Ee,zt,Ze,St,Xt,$t,ut,Yt;return u(this,function(dt){switch(dt.label){case 0:if(!s||typeof s!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(c=s.ownerDocument,!c)throw new Error("Element is not attached to a Document");if(l=c.defaultView,!l)throw new Error("Document is not attached to a Window");return f={allowTaint:(GA=i.allowTaint)!==null&&GA!==void 0?GA:!1,imageTimeout:(kA=i.imageTimeout)!==null&&kA!==void 0?kA:15e3,proxy:i.proxy,useCORS:(ce=i.useCORS)!==null&&ce!==void 0?ce:!1},p=o({logging:(ye=i.logging)!==null&&ye!==void 0?ye:!0,cache:i.cache},f),C={windowWidth:(Ie=i.windowWidth)!==null&&Ie!==void 0?Ie:l.innerWidth,windowHeight:(ZA=i.windowHeight)!==null&&ZA!==void 0?ZA:l.innerHeight,scrollX:(Be=i.scrollX)!==null&&Be!==void 0?Be:l.pageXOffset,scrollY:(_t=i.scrollY)!==null&&_t!==void 0?_t:l.pageYOffset},Q=new h(C.scrollX,C.scrollY,C.windowWidth,C.windowHeight),E=new sE(p,Q),L=(Qe=i.foreignObjectRendering)!==null&&Qe!==void 0?Qe:!1,V={allowTaint:(Ee=i.allowTaint)!==null&&Ee!==void 0?Ee:!1,onclone:i.onclone,ignoreElements:i.ignoreElements,inlineImages:L,copyStyles:L},E.logger.debug("Starting document clone with size "+Q.width+"x"+Q.height+" scrolled to "+-Q.left+","+-Q.top),X=new lu(E,s,V),j=X.clonedReferenceElement,j?[4,X.toIFrame(c,Q)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return CA=dt.sent(),hA=ts(j)||cQ(j)?B(j.ownerDocument):g(E,j),pA=hA.width,VA=hA.height,xA=hA.left,IA=hA.top,ee=cE(E,j,i.backgroundColor),zA={canvas:i.canvas,backgroundColor:ee,scale:(Ze=(zt=i.scale)!==null&&zt!==void 0?zt:l.devicePixelRatio)!==null&&Ze!==void 0?Ze:1,x:((St=i.x)!==null&&St!==void 0?St:0)+xA,y:((Xt=i.y)!==null&&Xt!==void 0?Xt:0)+IA,width:($t=i.width)!==null&&$t!==void 0?$t:Math.ceil(pA),height:(ut=i.height)!==null&&ut!==void 0?ut:Math.ceil(VA)},L?(E.logger.debug("Document cloned, using foreign object rendering"),PA=new rE(E,zA),[4,PA.render(j)]):[3,3];case 2:return TA=dt.sent(),[3,5];case 3:return E.logger.debug("Document cloned, element located at "+xA+","+IA+" with size "+pA+"x"+VA+" using computed rendering"),E.logger.debug("Starting DOM parsing"),QA=$c(E,j),ee===QA.styles.backgroundColor&&(QA.styles.backgroundColor=lt.TRANSPARENT),E.logger.debug("Starting renderer for element at "+zA.x+","+zA.y+" with size "+zA.width+"x"+zA.height),PA=new jQ(E,zA),[4,PA.render(QA)];case 4:TA=dt.sent(),dt.label=5;case 5:return(!((Yt=i.removeContainer)!==null&&Yt!==void 0)||Yt)&&(lu.destroy(CA)||E.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),E.logger.debug("Finished rendering"),[2,TA]}})})},cE=function(s,i,c){var l=i.ownerDocument,f=l.documentElement?er(s,getComputedStyle(l.documentElement).backgroundColor):lt.TRANSPARENT,p=l.body?er(s,getComputedStyle(l.body).backgroundColor):lt.TRANSPARENT,C=typeof c=="string"?er(s,c):c===null?lt.TRANSPARENT:4294967295;return i===l.documentElement?Ut(f)?Ut(p)?C:p:f:C};return aE}))})),qw=gs(jw(),1),A0=(0,r.defineComponent)({name:"DBiDesignContainer",__name:"biDesignContainer",props:{layout:{type:Array,default:()=>[]},indexPage:{type:Object,default:()=>({})},activedComponent:{type:Object,default:()=>({})},scale:{type:Number,default:1}},emits:["select","move"],setup(e,{emit:A}){const t=e,n=A,{apiUrl:o,token:a,httpGet:u,httpPost:d,httpPut:h,httpDelete:g,success:B,warning:w,error:m,info:v,useData:y}=(0,me.useAppInject)(),{loadData:I,getData:N}=y(),D=(0,r.computed)(()=>{const S={transform:`scale(${t.scale}, ${t.scale})`,transformOrigin:"left top",position:"relative",width:jA(t.indexPage.config.w||1920),height:jA(t.indexPage.config.h||1080),backgroundColor:t.indexPage.config.backgroundColor||"var(--j-color-bg-container)"};return t.indexPage.config.backgroundImage&&(S.background=`url(${o}/system/annexesfile/${t.indexPage.config.backgroundImage}?token=${a?.value}) 0% 0% / 100% 100% ${t.indexPage.config.backgroundColor||"var(--j-color-bg-container)"}`),S}),P=S=>{n("select",S)},H=S=>{n("move",S)},O=S=>{S?.target?.getAttribute("id")==="j-bi-design-container"&&n("select",t.indexPage)},sA={},J=(S,eA)=>{S&&(sA[eA]=S)},cA=(0,r.computed)(()=>t.layout.map(S=>({...S,$refs:sA[S.id]}))),aA=async(S,eA)=>{if(S&&S.trim()){S=`async (jcode) => {${S}}`;const{res:U,msg:K,fn:b}=(0,me.getFunction)(S);if(U)return b(AA(eA));m&&m(K)}},oA=S=>sA[S]?.getValue?.()||[],iA=S=>cA.value.find(({id:eA})=>eA===S)?.config||{},AA=S=>(S.get=oA,S.getProps=iA,S.getSourceData=async(eA,U)=>(await I("dbsource",eA,JSON.stringify(U),!1),N("dbsource",eA,{params:U})),S.getDateNow=eA=>(0,me.formatToDateTime)(new Date,eA||"YYYY-MM-DD HH:mm:ss"),S.httpGet=u,S.httpPost=d,S.httpPut=h,S.httpDelete=g,S.loading=()=>{(0,me.fullScreenLoading)(!0)},S.hideLoading=()=>{(0,me.fullScreenLoading)(!1)},S.message=(eA,U)=>{switch(U){case"success":B&&B(eA);break;case"warning":w&&w(eA);break;case"error":m&&m(eA);break;case"info":v&&v(eA);break;default:v&&v(eA);break}},S);return(0,r.provide)("dui_bi_container",{executeEvent:aA}),(S,eA)=>{const U=(0,r.resolveComponent)("d-draggable");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{onClick:(0,r.withModifiers)(O,["stop"]),id:"j-bi-design-container",style:(0,r.normalizeStyle)(D.value)},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.layout,(K,b)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:K.id},[K.display?((0,r.openBlock)(),(0,r.createBlock)(U,{key:0,id:K.id,left:K.config.x,top:K.config.y,width:K.config.w,height:K.config.h,scale:1/e.scale,step:1/e.scale,"active-flag":K.id==e.activedComponent.id,readonly:K.lock,"data-id":K.id,onFocus:R=>P(K),onBlur:H,"z-index":e.layout.length-b,"is-active-bg-transparent":!0},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(K.componentName),(0,r.mergeProps)({style:{width:(0,r.unref)(jA)(K.config.w),height:(0,r.unref)(jA)(K.config.h)}},{ref_for:!0},K.config,{"is-design":!0,ref_for:!0,ref:R=>J(R,K.id)}),null,16,["style"]))]),_:2},1032,["id","left","top","width","height","scale","step","active-flag","readonly","data-id","onFocus","z-index"])):(0,r.createCommentVNode)("",!0)],64))),128))],4)}}}),Dl=A0,e0=({data:e,actions:A,utils:t,inputParams:n,notRunActions:o})=>{const a=d=>e.filter(h=>h.source===d).map(h=>h.target),u=async d=>{d=d||"start";const h=e.find(g=>g.id===d);if(h.config.type==="start"){const g=a(d);for(let B=0;B<g.length;B++)await u(g[B])}else{const g=A[h.config.type];g&&await g(h.config,t,async B=>{if(B=B||{},B.nodeId=d,B.next!==!1){const w=a(B.nodeId);for(let m=0;m<w.length;m++)await u(w[m])}},n,B=>{o[B]={data:e,inputParams:n}})}};return{run:u}},t0=(0,r.defineComponent)({name:"DBiViewer",__name:"biViewer",props:{layout:{type:Array,default:()=>[]},indexPage:{type:Object,default:()=>({})},actions:{type:Object,default:()=>({})}},setup(e){const A=e,{apiUrl:t,token:n,httpGet:o,httpPost:a,httpPut:u,httpDelete:d,success:h,warning:g,error:B,info:w,useData:m}=(0,me.useAppInject)(),{loadData:v,getData:y}=m(),I=(0,r.computed)(()=>A.layout),N=(0,r.ref)(),D=(0,r.ref)(1),P=(0,r.ref)(1),H=()=>{N.value&&O(N.value.offsetWidth,N.value.offsetHeight)},O=(k,T)=>{const M=A.indexPage.config?.w||1920,Y=A.indexPage.config?.h||1080,tA=A.indexPage.config?.screenFit||"1";tA==="1"?(P.value=k/M,D.value=P.value):tA==="2"?(D.value=T/Y,P.value=D.value):tA==="3"&&(P.value=k/M,D.value=T/Y)},sA=(0,r.computed)(()=>{const k={transform:`scale(${P.value}, ${D.value})`,transformOrigin:"left top",position:"relative",overflow:"hidden",width:jA(A.indexPage.config?.w||1920),height:jA(A.indexPage.config?.h||1080),backgroundColor:A.indexPage.config?.backgroundColor||"var(--j-color-bg-container)"};return A.indexPage.config?.backgroundImage&&(k.background=`url(${t}/system/annexesfile/${A.indexPage.config?.backgroundImage}?token=${n?.value}) 0% 0% / 100% 100% ${A.indexPage.config?.backgroundColor||"var(--j-color-bg-container)"}`),k}),J=(0,r.computed)(()=>({width:jA((A.indexPage.config?.w||1920)*P.value),height:jA((A.indexPage.config?.h||1080)*D.value)})),cA={},aA=(k,T)=>{k&&(cA[T]=k)},oA=new ResizeObserver(H);(0,r.onMounted)(()=>{I.value.forEach(k=>{k.$refs=cA[k.id]}),oA.observe(N.value)});const iA=async(k,T)=>{T.config.clickevent&&await S(JSON.parse(T.config?.clickevent),{param:{params:k}})},AA=async(k,T)=>{if(k&&k.trim()){k=`async (jcode) => {${k}}`;const{res:M,msg:Y,fn:tA}=(0,me.getFunction)(k);if(M)return tA(R(T));B&&B(Y)}},S=async(k,T)=>{const{run:M}=e0({data:k,actions:A.actions,utils:{showLoading:me.fullScreenLoading,executeEvent:AA},inputParams:T});await M()},eA=k=>cA[k]?.getValue()||[],U=(k,T=!0)=>{const M=I.value.find(({id:Y})=>Y===k);M&&(M.display=!T)},K=k=>I.value.find(({id:T})=>T===k)?.config||{},b=k=>{const T=I.value.find(({id:M})=>M===k);T?.$refs?.updateData&&T.$refs.updateData()},R=k=>(k.get=eA,k.setHide=U,k.getProps=K,k.refresh=b,k.getSourceData=async(T,M)=>(await v("dbsource",T,JSON.stringify(M),!1),y("dbsource",T,{params:M})),k.getDateNow=T=>(0,me.formatToDateTime)(new Date,T||"YYYY-MM-DD HH:mm:ss"),k.httpGet=o,k.httpPost=a,k.httpPut=u,k.httpDelete=d,k.loading=()=>{(0,me.fullScreenLoading)(!0)},k.hideLoading=()=>{(0,me.fullScreenLoading)(!1)},k.message=(T,M)=>{switch(M){case"success":h&&h(T);break;case"warning":g&&g(T);break;case"error":B&&B(T);break;case"info":w&&w(T);break;default:w&&w(T);break}},k);return(0,r.provide)("dui_bi_viewer",{executeEvent:AA}),(k,T)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"j-block",style:(0,r.normalizeStyle)({"overflow-y":!e.indexPage.config?.screenFit||e.indexPage.config?.screenFit=="1"?"auto":"hidden","overflow-x":e.indexPage.config?.screenFit=="2"?"auto":"hidden"}),ref_key:"biViewer",ref:N},[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)(J.value)},[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)(sA.value)},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(I.value,(M,Y)=>(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(M.componentName),(0,r.mergeProps)({key:M.id,ref_for:!0,ref:tA=>aA(tA,M.id),style:{position:"absolute",width:(0,r.unref)(jA)(M.config.w),height:(0,r.unref)(jA)(M.config.h),top:(0,r.unref)(jA)(M.config.y),left:(0,r.unref)(jA)(M.config.x),zIndex:e.layout.length-Y}},{ref_for:!0},M.config,{"run-flow":S,onClick:tA=>iA(tA,M)}),null,16,["style","onClick"])),[[r.vShow,M.display!==!1]])),128))],4)],4)],4))}}),Nl=t0,n0={class:"j-bi-design"},r0={class:"j-bi-design-left"},o0={class:"j-block j-bi-design-layer-list"},i0=["onClick","data-id"],s0={class:"j-bi-design-layer-item-img"},a0=["src"],l0={class:"j-bi-design-layer-item-btns"},c0=["onClick"],u0=["onClick"],d0={class:"j-bi-design-component-list"},f0=["onClick","onDragstart"],g0={class:"j-component-tool-name"},h0={class:"j-bi-design-right"},B0={class:"j-bi-design-title"},p0={style:{margin:"0","font-size":"14px"}},m0={class:"j-bi-design-panel"},w0=(0,r.defineComponent)({name:"DBiDesign",__name:"biDesign",props:{components:{type:Array,default:()=>[]},componentConfigs:{type:Object,default:()=>({})},componentInit:Function,componentConfigInit:Function,componentConfigChange:Function,flowComponents:{type:Array,default:()=>[]},flowInit:Function,flowComponentConfigInit:Function,flowComponentConfigChange:Function,flowComponentConfigs:{type:Object,default:()=>({})},actions:{type:Object,default:()=>({})},imgUrlPrefix:{type:String,default:"/"},scale:{type:Number,default:-1}},emits:["update:scale"],setup(e,{expose:A,emit:t}){const{t:n}=(0,me.useAppInject)(),o=e,a=t,u=(0,r.ref)(!1),d=(0,r.ref)({name:"页面",id:"indexPage",type:"indexPage",layerId:"0",config:{},display:!0,lock:!1,componentName:""});o.componentInit&&(d.value.config=o.componentInit("indexPage")||{},d.value.config.id="indexPage");const h=(0,r.computed)(()=>{const rA={};return o.components.forEach(lA=>{lA.children.forEach(SA=>{rA[SA.type]=SA})}),rA}),g=(0,r.ref)(["layers"]),B=o.components.length;for(let rA=0;rA<B;rA++)g.value.push(rA);const w=(0,r.ref)(),m=(0,r.ref)([]),v=(0,r.ref)(!1),y=(0,r.ref)(0),I=(0,r.ref)(0),N=(0,r.ref)(""),D=(0,r.computed)(()=>N.value===""?{}:m.value.find(rA=>rA.id===N.value)),P=()=>{v.value=!1,N.value=""},H=rA=>{rA.target.className.indexOf("j-bi-design-contentmenu__btn")===-1&&P(),window.removeEventListener("mousedown",H)},O=rA=>{let{target:lA}=rA,SA=!1;lA.className.indexOf&&lA.className.indexOf("d-draggable__mask")>-1?(lA=lA.parentNode.parentNode,SA=!0):lA.className.indexOf&&lA.className.indexOf("j-bi-design-layer-item")>-1?SA=!0:lA.parentNode.className.indexOf&&lA.parentNode.className.indexOf("j-bi-design-layer-item")>-1?(lA=lA.parentNode,SA=!0):lA.parentNode.parentNode.className.indexOf("j-bi-design-layer-item")>-1&&(lA=lA.parentNode.parentNode,SA=!0),SA&&(rA.preventDefault(),rA.stopPropagation(),y.value=rA.clientX,I.value=rA.clientY-8,I.value+260>document.body.clientHeight&&(I.value=document.body.clientHeight-260),N.value=lA.getAttribute("data-id"),v.value=!0,window.addEventListener("mousedown",H))},sA=(0,r.ref)(""),J=(0,r.computed)(()=>sA.value?m.value.filter(rA=>rA.config.label.indexOf(sA.value)>-1):m.value),cA=rA=>{rA.display=!rA.display,P()},aA=rA=>{rA.lock=!rA.lock,P(),rA.lock&&rA.id===w.value?.id&&it(d.value)},oA=(rA,lA)=>{if(!lA||m.value.length<1){P();return}const SA=m.value.findIndex(OA=>OA.id===lA.id);switch(rA){case"up":if(SA===-1||SA===0)break;m.value=iA(m.value,SA,SA-1);break;case"down":if(SA===-1||SA===m.value.length-1)break;m.value=iA(m.value,SA,SA+1);break;case"top":if(SA!==-1){const[OA]=m.value.splice(SA,1);m.value.unshift(OA)}break;case"bottom":if(SA!==-1){const[OA]=m.value.splice(SA,1);m.value.push(OA)}break}P()},iA=(rA,lA,SA)=>{const OA=rA[lA];return rA[lA]=rA[SA],rA[SA]=OA,rA},AA=(0,r.ref)(),S=(0,r.ref)(20),eA=(0,r.ref)(document.body.clientWidth),U=(0,r.ref)(document.body.clientHeight),K=(0,r.ref)(0),b=(0,r.ref)(0),R=(0,r.ref)({bgColor:"rgba(225,225,225, 0)",longfgColor:"rgba(0, 0, 0, 0.45)",shortfgColor:"rgba(0, 0, 0, 0.45)",fontColor:"rgba(0, 0, 0, 0.65)",shadowColor:"rgba(225,225,225, 0)",lineColor:"var(--j-color-primary)",borderColor:"#d9d9d9",cornerActiveColor:"var(--j-color-primary)"}),k=(0,r.computed)(()=>({x:0,y:0,width:eA.value,height:U.value})),T=(0,r.ref)({h:[],v:[]}),M=(0,r.ref)(),Y=(0,r.ref)(),tA=(0,r.ref)(!1),BA=(0,r.ref)({}),UA=(0,r.ref)(100),nA=(0,r.computed)({set(rA){UA.value=rA,a("update:scale",rA)},get(){let{scale:rA}=o;return rA===-1&&(rA=UA.value),rA/100}}),W=(0,r.computed)(()=>(d.value.config.h||1080)*2),$=(0,r.computed)(()=>(d.value.config.w||1920)*2),uA=()=>{AA.value&&(eA.value=AA.value.offsetWidth-S.value,U.value=AA.value.offsetHeight-S.value,M.value.scrollLeft=$.value/2-S.value,M.value.scrollTop=W.value/2-S.value,mA())},mA=()=>{const rA=d.value.config.w||1920;eA.value<rA&&(nA.value=eA.value*100/rA)},bA=()=>{document.onkeydown=rA=>{if(rA.target?.nodeName==="TEXTAREA"||rA.target?.nodeName==="INPUT")return;const lA=rA.keyCode||rA.which;lA===32&&(rA.preventDefault(),BA.value.space=!0),lA===17&&(rA.preventDefault(),BA.value.ctrl=!0)},document.onkeyup=()=>{BA.value={}}},_A=rA=>{BA.value.space&&(tA.value=!0,window.stardragEvent=rA,window.startSlideX=M.value.scrollLeft,window.startSlideY=M.value.scrollTop,document.onmousemove=lA=>{if(tA.value){const SA=lA.clientX-window.stardragEvent.clientX,OA=lA.clientY-window.stardragEvent.clientY;M.value.scrollLeft=window.startSlideX-SA,M.value.scrollTop=window.startSlideY-OA}},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,tA.value=!1})},fA=()=>{const rA=M.value.getBoundingClientRect(),lA=Y.value.getBoundingClientRect(),SA=nA.value,OA=(rA.left+S.value-lA.left)/SA,Oe=(rA.top+S.value-lA.top)/SA;K.value=OA>>0,b.value=Oe>>0},Z=rA=>{if(rA.preventDefault(),rA.ctrlKey||rA.metaKey){const lA=nA.value;nA.value=parseFloat(Math.max(.2,lA-rA.deltaY/500).toFixed(2))*100,lA!==nA.value&&(0,r.nextTick)(()=>{fA()})}},_=rA=>{rA.forEach(lA=>{lA.type==="d-input-flow"&&(lA.config=lA.config||{},lA.config.flowComponents=o.flowComponents,lA.config.flowInit=o.flowInit,lA.config.flowComponentConfigInit=SA=>{o.flowComponentConfigInit&&(SA.designComponents=m.value,SA.component=w.value,o.flowComponentConfigInit(SA))},lA.config.flowComponentConfigs=o.flowComponentConfigs,lA.config.flowComponentConfigChange=o.flowComponentConfigChange),lA.children&&_(lA.children)})},F=(0,r.ref)(),x=(0,r.computed)(()=>w.value?.id!="indexPage"?w.value?`${w.value.name}-${w.value.id}`:"":w.value?`${w.value.name}`:""),z={};Object.keys(o.componentConfigs).forEach(rA=>{const lA=[{id:"label",type:"j-input",config:{label:"名称"}},{id:"w",type:"j-number",config:{span:12,label:"宽度",min:0}},{id:"h",type:"j-number",config:{span:12,label:"高度",min:0}},{id:"x",type:"j-number",config:{span:12,label:"x轴",min:0}},{id:"y",type:"j-number",config:{span:12,label:"y轴",min:0}}],SA={type:"j-collapse",config:{defaultValue:[]},children:[]};rA!=="indexPage"&&SA.children?.push({config:{label:"基础信息"},children:[...lA]}),SA.children?.push(...o.componentConfigs[rA]),SA.children?.forEach((OA,Oe)=>{SA.config?.defaultValue.push(`_collapse${Oe}`)}),_(SA.children||[]),z[rA]=[SA]});const G=()=>{if(w.value){const rA=z[w.value.type];rA?F.value.init(rA,w.value.config):F.value.init([]),o.componentConfigInit&&o.componentConfigInit(w.value.type,{configRef:F,components:m.value,configData:w.value.config})}else F.value.init([])},dA=rA=>{w.value&&o.componentConfigChange&&(w.value.id==="indexPage"&&(rA.id==="w"||rA.id==="h")&&(0,r.nextTick)(()=>{uA()}),o.componentConfigChange(w.value.type,{configRef:F,configData:w.value.config,...rA}))},gA=rA=>o.componentInit?o.componentInit(rA)||{}:{},EA=(0,r.ref)(!1),wA=(0,r.ref)(null),DA=(rA,lA)=>{EA.value=!0,wA.value=lA,rA.dataTransfer&&(rA.dataTransfer.effectAllowed="copy",rA.dataTransfer.dropEffect="copy",rA.dataTransfer.setData("text/plain",lA.type||""))},MA=(rA,lA,SA)=>{const OA={name:rA.name,id:gt(),type:rA.type,layerId:"0",config:gA(rA.type),display:!0,lock:!1,componentName:rA.componentName};OA.config.id=OA.id,OA.config.label=rA.name,OA.config.h=rA.h||100,OA.config.w=rA.w||100,OA.config.x=lA,OA.config.y=SA,m.value.unshift(OA),w.value=OA,requestAnimationFrame(()=>{G()})},RA=rA=>{EA.value||MA(rA,0,0)},WA=()=>{wA.value=null,setTimeout(()=>{EA.value=!1},0)},te=rA=>{const lA=wA.value;if(!lA){WA();return}const SA=document.getElementById("j-bi-design-container");if(!SA){WA();return}const OA=SA.getBoundingClientRect(),Oe=rA.clientX,Ct=rA.clientY;if(!(Oe>=OA.left&&Oe<=OA.right&&Ct>=OA.top&&Ct<=OA.bottom)){WA();return}const KA=Oe-OA.left,vt=Ct-OA.top,Rt=lA?.w||100,He=lA?.h||100;MA(lA,KA/nA.value-Rt/2,vt/nA.value-He/2),WA()},ot=()=>{wA.value&&WA()},Ot=rA=>{m.value=m.value.filter(lA=>lA.id!==rA),w.value.id===rA&&(w.value=d.value,G()),P()},wt=rA=>{const lA=Qn(rA),SA=gt();lA.id=SA,lA.config.id=SA,m.value.push(lA),w.value=lA,G(),P()},it=rA=>{w.value?.id!==rA.id&&(w.value=rA,G())},st=({left:rA,top:lA,width:SA,height:OA})=>{w.value&&(w.value.config.x=rA,w.value.config.y=lA,w.value.config.w=SA,w.value.config.h=OA,F.value.setFormData({main:{x:rA,y:lA,w:SA,h:OA}}))},_i=new ResizeObserver(uA);(0,r.onMounted)(()=>{_i.observe(AA.value),bA(),it(d.value)});const Kt=()=>({ver:"1.0.0",components:Qn(m.value),page:d.value}),sn=rA=>{rA.components?.forEach(lA=>{lA.componentName=h.value[lA.type].componentName}),m.value=rA.components||[],d.value=rA.page||d.value,it(d.value)},Gn=()=>{m.value=[],it(d.value)},zn=()=>new Promise(rA=>{(0,qw.default)(Y.value,{useCORS:!0,backgroundColor:null,allowTaint:!0}).then(lA=>{if(lA.width!==0&&lA.height!==0){rA(lA.toDataURL("image/png"));return}rA("")})}),an=(0,r.ref)(),at=(0,r.ref)({});return A({clear:Gn,setData:sn,getData:Kt,getImg:zn,preview:()=>{at.value=Kt(),an.value.open("大屏预览","full")},setShowLayer:rA=>{u.value=rA,rA||P()}}),(rA,lA)=>{const SA=(0,r.resolveComponent)("el-divider"),OA=(0,r.resolveComponent)("j-icon"),Oe=(0,r.resolveComponent)("el-button"),Ct=(0,r.resolveComponent)("el-input"),KA=(0,r.resolveComponent)("el-text"),vt=(0,r.resolveComponent)("el-space"),Rt=(0,r.resolveComponent)("el-collapse-item"),He=(0,r.resolveComponent)("el-collapse"),$n=(0,r.resolveComponent)("j-form"),qr=(0,r.resolveComponent)("j-layer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",n0,[v.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"j-bi-design-contentmenu",style:(0,r.normalizeStyle)({left:y.value+"px",top:I.value+"px"})},[(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:lA[0]||(lA[0]=XA=>wt(D.value))},(0,r.toDisplayString)((0,r.unref)(n)("复制")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:lA[1]||(lA[1]=XA=>cA(D.value))},(0,r.toDisplayString)(D.value&&D.value.display?"隐藏":"显示"),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:lA[2]||(lA[2]=XA=>aA(D.value))},(0,r.toDisplayString)(D.value&&D.value.lock?"解锁":"锁定"),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:lA[3]||(lA[3]=XA=>oA("top",D.value))},(0,r.toDisplayString)((0,r.unref)(n)("置顶图层")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:lA[4]||(lA[4]=XA=>oA("bottom",D.value))},(0,r.toDisplayString)((0,r.unref)(n)("置底图层")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:lA[5]||(lA[5]=XA=>oA("up",D.value))},(0,r.toDisplayString)((0,r.unref)(n)("上移一层")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:lA[6]||(lA[6]=XA=>oA("down",D.value))},(0,r.toDisplayString)((0,r.unref)(n)("下移一层")),1),(0,r.createVNode)(SA,{style:{margin:"4px 0"}}),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",style:{color:"var(--j-color-danger)"},onClick:lA[7]||(lA[7]=XA=>Ot(D.value?.id))},(0,r.toDisplayString)((0,r.unref)(n)("删除")),1)],4)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",r0,[u.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"j-bi-design-layer-panel",onContextmenu:(0,r.withModifiers)(O,["prevent"])},[(0,r.createVNode)(Ct,{modelValue:sA.value,"onUpdate:modelValue":lA[8]||(lA[8]=XA=>sA.value=XA),class:"search-input",placeholder:"搜索图层"},{append:(0,r.withCtx)(()=>[(0,r.createVNode)(Oe,null,{icon:(0,r.withCtx)(()=>[(0,r.createVNode)(OA,{icon:"ep:search"})]),_:1})]),_:1},8,["modelValue"]),(0,r.createElementVNode)("div",o0,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(J.value,(XA,ln)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:ln},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["j-bi-design-layer-item",{active:w.value.id==XA.id}]),onClick:(0,r.withModifiers)($e=>it(XA),["stop"]),"data-id":XA.id},[(0,r.createElementVNode)("div",s0,[h.value[XA.type]?.icon?((0,r.openBlock)(),(0,r.createBlock)(OA,{key:0,icon:h.value[XA.type].icon,size:16},null,8,["icon"])):((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:1,style:{height:"100%"},src:`${e.imgUrlPrefix}${h.value[XA.type]?.img}`},null,8,a0))]),(0,r.createVNode)(KA,{truncated:""},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)((0,r.unref)(n)(XA.config.label)),1)]),_:2},1024),(0,r.createElementVNode)("div",l0,[(0,r.createVNode)(vt,{size:2},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["j-bi-design-layer-item-btn",{active:!XA.display}]),onClick:(0,r.withModifiers)($e=>cA(XA),["stop"])},[(0,r.createVNode)(OA,{icon:"mdi:eye-off-outline"})],10,c0),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["j-bi-design-layer-item-btn",{active:XA.lock}]),onClick:(0,r.withModifiers)($e=>aA(XA),["stop"])},[(0,r.createVNode)(OA,{icon:"mdi:lock-outline"})],10,u0)]),_:2},1024)])],10,i0)]))),128))])],32)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",d0,[(0,r.createVNode)(He,{modelValue:g.value,"onUpdate:modelValue":lA[9]||(lA[9]=XA=>g.value=XA)},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.components,(XA,ln)=>((0,r.openBlock)(),(0,r.createBlock)(Rt,{key:ln,title:(0,r.unref)(n)(XA.name),name:ln},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(XA.children,($e,Si)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:Si,class:"j-component-tool",onClick:(0,r.withModifiers)(Ao=>RA($e),["stop"]),onDragstart:Ao=>DA(Ao,$e),onDragend:ot,draggable:"true"},[(0,r.createVNode)(OA,{class:"j-component-tool-icon",icon:$e.icon,size:14},null,8,["icon"]),(0,r.createElementVNode)("div",g0,(0,r.toDisplayString)((0,r.unref)(n)($e.name)),1)],40,f0))),128))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])]),(0,r.createElementVNode)("div",{class:"j-bi-design-mid",ref_key:"contentRef",ref:AA},[((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Zw),{key:nA.value,thick:S.value,scale:nA.value,width:eA.value,height:U.value,"start-x":K.value,"start-y":b.value,palette:R.value,shadow:k.value,"hor-line-arr":T.value.h,"ver-line-arr":T.value.v},null,8,["thick","scale","width","height","start-x","start-y","palette","shadow","hor-line-arr","ver-line-arr"])),(0,r.createElementVNode)("div",{ref_key:"screensRef",ref:M,class:"j-bi-design-main",style:(0,r.normalizeStyle)({cursor:tA.value?"pointer":""}),onMousedown:(0,r.withModifiers)(_A,["stop"]),onWheel:Z,onScroll:fA},[(0,r.createElementVNode)("div",{class:"screen-container",style:(0,r.normalizeStyle)({height:W.value+"px",width:$.value+"px"}),onClick:lA[11]||(lA[11]=(0,r.withModifiers)(XA=>it(d.value),["stop"]))},[(0,r.createElementVNode)("div",{ref_key:"canvasRef",ref:Y,class:"canvas",onContextmenu:(0,r.withModifiers)(O,["prevent"])},[(0,r.createVNode)(Dl,{layout:m.value,"index-page":d.value,"actived-component":w.value,scale:nA.value,onDragover:lA[10]||(lA[10]=(0,r.withModifiers)(()=>{},["prevent"])),onDrop:(0,r.withModifiers)(te,["stop","prevent"]),onSelect:it,onMove:st},null,8,["layout","index-page","actived-component","scale"])],544)],4)],36)],512),(0,r.createElementVNode)("div",h0,[(0,r.createElementVNode)("div",B0,[(0,r.createElementVNode)("span",p0,(0,r.toDisplayString)(`${x.value}`),1)]),(0,r.createElementVNode)("div",m0,[(0,r.createVNode)($n,{config:{labelPosition:"top",size:"small"},style:{padding:"0"},ref_key:"configRef",ref:F,onChange:dA},null,512)])]),(0,r.createVNode)(qr,{ref_key:"previewFormLayerRef",ref:an,destroyOnClose:!0,hasHeader:!1},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(Nl,{indexPage:at.value.page,layout:at.value.components,actions:e.actions},null,8,["indexPage","layout","actions"])]),_:1},512)])}}}),C0=w0,Ll=ft(C0,[Dl,Nl]),v0=[ms,Ko,Ro,Vo,Po,fl,gl,vl,yl,Hl,Sl,Ll],Tl=new WeakSet,y0=e=>{Tl.has(e)||(Tl.add(e),v0.forEach(A=>{const t=A.name;t&&e.component(t,A)}))},Q0={install:y0};re.DBiDesign=Ll,re.DDrag=ms,re.DDraggable=yl,re.DFlowDesign=fl,re.DFormDesign=Hl,re.DIndexDesign=Sl,re.DInputFlow=gl,re.DLayout=vl,re.default=Q0,re.dragContainer=Ro,re.dragFormList=Vo,re.dragIndexList=Po,re.dragTool=Ko,re.toFormDesignSchema=El,re.toFormSaveSchema=Jr,re.toFormSchema=Ql});
|
|
34
|
+
}`,FQ=function(s){UQ(s,"."+as+QQ+uu+`
|
|
35
|
+
.`+ls+EQ+uu)},UQ=function(s,i){var c=s.ownerDocument;if(c){var l=c.createElement("style");l.textContent=i,s.appendChild(l)}},du=(function(){function s(){}return s.getOrigin=function(i){var c=s._link;return c?(c.href=i,c.href=c.href,c.protocol+c.hostname+c.port):"about:blank"},s.isSameOrigin=function(i){return s.getOrigin(i)===s._origin},s.setContext=function(i){s._link=i.document.createElement("a"),s._origin=s.getOrigin(i.location.href)},s._origin="about:blank",s})(),bQ=(function(){function s(i,c){this.context=i,this._options=c,this._cache={}}return s.prototype.addImage=function(i){var c=Promise.resolve();return this.has(i)||(us(i)||SQ(i))&&(this._cache[i]=this.loadImage(i)).catch(function(){}),c},s.prototype.match=function(i){return this._cache[i]},s.prototype.loadImage=function(i){return a(this,void 0,void 0,function(){var c,l,f,p,C=this;return u(this,function(Q){switch(Q.label){case 0:return c=du.isSameOrigin(i),l=!cs(i)&&this._options.useCORS===!0&&ge.SUPPORT_CORS_IMAGES&&!c,f=!cs(i)&&!c&&!us(i)&&typeof this._options.proxy=="string"&&ge.SUPPORT_CORS_XHR&&!l,!c&&this._options.allowTaint===!1&&!cs(i)&&!us(i)&&!f&&!l?[2]:(p=i,f?[4,this.proxy(p)]:[3,2]);case 1:p=Q.sent(),Q.label=2;case 2:return this.context.logger.debug("Added image "+i.substring(0,256)),[4,new Promise(function(E,L){var V=new Image;V.onload=function(){return E(V)},V.onerror=L,(xQ(p)||l)&&(V.crossOrigin="anonymous"),V.src=p,V.complete===!0&&setTimeout(function(){return E(V)},500),C._options.imageTimeout>0&&setTimeout(function(){return L("Timed out ("+C._options.imageTimeout+"ms) loading image")},C._options.imageTimeout)})];case 3:return[2,Q.sent()]}})})},s.prototype.has=function(i){return typeof this._cache[i]<"u"},s.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},s.prototype.proxy=function(i){var c=this,l=this._options.proxy;if(!l)throw new Error("No proxy defined");var f=i.substring(0,256);return new Promise(function(p,C){var Q=ge.SUPPORT_RESPONSE_TYPE?"blob":"text",E=new XMLHttpRequest;E.onload=function(){if(E.status===200)if(Q==="text")p(E.response);else{var X=new FileReader;X.addEventListener("load",function(){return p(X.result)},!1),X.addEventListener("error",function(j){return C(j)},!1),X.readAsDataURL(E.response)}else C("Failed to proxy resource "+f+" with status code "+E.status)},E.onerror=C;var L=l.indexOf("?")>-1?"&":"?";if(E.open("GET",""+l+L+"url="+encodeURIComponent(i)+"&responseType="+Q),Q!=="text"&&E instanceof XMLHttpRequest&&(E.responseType=Q),c._options.imageTimeout){var V=c._options.imageTimeout;E.timeout=V,E.ontimeout=function(){return C("Timed out ("+V+"ms) proxying "+f)}}E.send()})},s})(),HQ=/^data:image\/svg\+xml/i,IQ=/^data:image\/.*;base64,/i,_Q=/^data:image\/.*/i,SQ=function(s){return ge.SUPPORT_SVG_DRAWING||!DQ(s)},cs=function(s){return _Q.test(s)},xQ=function(s){return IQ.test(s)},us=function(s){return s.substr(0,4)==="blob"},DQ=function(s){return s.substr(-3).toLowerCase()==="svg"||HQ.test(s)},vA=(function(){function s(i,c){this.type=0,this.x=i,this.y=c}return s.prototype.add=function(i,c){return new s(this.x+i,this.y+c)},s})(),mn=function(s,i,c){return new vA(s.x+(i.x-s.x)*c,s.y+(i.y-s.y)*c)},So=(function(){function s(i,c,l,f){this.type=1,this.start=i,this.startControl=c,this.endControl=l,this.end=f}return s.prototype.subdivide=function(i,c){var l=mn(this.start,this.startControl,i),f=mn(this.startControl,this.endControl,i),p=mn(this.endControl,this.end,i),C=mn(l,f,i),Q=mn(f,p,i),E=mn(C,Q,i);return c?new s(this.start,l,C,E):new s(E,Q,p,this.end)},s.prototype.add=function(i,c){return new s(this.start.add(i,c),this.startControl.add(i,c),this.endControl.add(i,c),this.end.add(i,c))},s.prototype.reverse=function(){return new s(this.end,this.endControl,this.startControl,this.start)},s})(),De=function(s){return s.type===1},NQ=(function(){function s(i){var c=i.styles,l=i.bounds,f=Ar(c.borderTopLeftRadius,l.width,l.height),p=f[0],C=f[1],Q=Ar(c.borderTopRightRadius,l.width,l.height),E=Q[0],L=Q[1],V=Ar(c.borderBottomRightRadius,l.width,l.height),X=V[0],j=V[1],CA=Ar(c.borderBottomLeftRadius,l.width,l.height),hA=CA[0],mA=CA[1],RA=[];RA.push((p+E)/l.width),RA.push((hA+X)/l.width),RA.push((C+mA)/l.height),RA.push((L+j)/l.height);var DA=Math.max.apply(Math,RA);DA>1&&(p/=DA,C/=DA,E/=DA,L/=DA,X/=DA,j/=DA,hA/=DA,mA/=DA);var SA=l.width-E,Ae=l.height-j,GA=l.width-X,kA=l.height-mA,FA=c.borderTopWidth,VA=c.borderRightWidth,PA=c.borderBottomWidth,MA=c.borderLeftWidth,le=ZA(c.paddingTop,i.bounds.width),ye=ZA(c.paddingRight,i.bounds.width),Ie=ZA(c.paddingBottom,i.bounds.width),WA=ZA(c.paddingLeft,i.bounds.width);this.topLeftBorderDoubleOuterBox=p>0||C>0?te(l.left+MA/3,l.top+FA/3,p-MA/3,C-FA/3,zA.TOP_LEFT):new vA(l.left+MA/3,l.top+FA/3),this.topRightBorderDoubleOuterBox=p>0||C>0?te(l.left+SA,l.top+FA/3,E-VA/3,L-FA/3,zA.TOP_RIGHT):new vA(l.left+l.width-VA/3,l.top+FA/3),this.bottomRightBorderDoubleOuterBox=X>0||j>0?te(l.left+GA,l.top+Ae,X-VA/3,j-PA/3,zA.BOTTOM_RIGHT):new vA(l.left+l.width-VA/3,l.top+l.height-PA/3),this.bottomLeftBorderDoubleOuterBox=hA>0||mA>0?te(l.left+MA/3,l.top+kA,hA-MA/3,mA-PA/3,zA.BOTTOM_LEFT):new vA(l.left+MA/3,l.top+l.height-PA/3),this.topLeftBorderDoubleInnerBox=p>0||C>0?te(l.left+MA*2/3,l.top+FA*2/3,p-MA*2/3,C-FA*2/3,zA.TOP_LEFT):new vA(l.left+MA*2/3,l.top+FA*2/3),this.topRightBorderDoubleInnerBox=p>0||C>0?te(l.left+SA,l.top+FA*2/3,E-VA*2/3,L-FA*2/3,zA.TOP_RIGHT):new vA(l.left+l.width-VA*2/3,l.top+FA*2/3),this.bottomRightBorderDoubleInnerBox=X>0||j>0?te(l.left+GA,l.top+Ae,X-VA*2/3,j-PA*2/3,zA.BOTTOM_RIGHT):new vA(l.left+l.width-VA*2/3,l.top+l.height-PA*2/3),this.bottomLeftBorderDoubleInnerBox=hA>0||mA>0?te(l.left+MA*2/3,l.top+kA,hA-MA*2/3,mA-PA*2/3,zA.BOTTOM_LEFT):new vA(l.left+MA*2/3,l.top+l.height-PA*2/3),this.topLeftBorderStroke=p>0||C>0?te(l.left+MA/2,l.top+FA/2,p-MA/2,C-FA/2,zA.TOP_LEFT):new vA(l.left+MA/2,l.top+FA/2),this.topRightBorderStroke=p>0||C>0?te(l.left+SA,l.top+FA/2,E-VA/2,L-FA/2,zA.TOP_RIGHT):new vA(l.left+l.width-VA/2,l.top+FA/2),this.bottomRightBorderStroke=X>0||j>0?te(l.left+GA,l.top+Ae,X-VA/2,j-PA/2,zA.BOTTOM_RIGHT):new vA(l.left+l.width-VA/2,l.top+l.height-PA/2),this.bottomLeftBorderStroke=hA>0||mA>0?te(l.left+MA/2,l.top+kA,hA-MA/2,mA-PA/2,zA.BOTTOM_LEFT):new vA(l.left+MA/2,l.top+l.height-PA/2),this.topLeftBorderBox=p>0||C>0?te(l.left,l.top,p,C,zA.TOP_LEFT):new vA(l.left,l.top),this.topRightBorderBox=E>0||L>0?te(l.left+SA,l.top,E,L,zA.TOP_RIGHT):new vA(l.left+l.width,l.top),this.bottomRightBorderBox=X>0||j>0?te(l.left+GA,l.top+Ae,X,j,zA.BOTTOM_RIGHT):new vA(l.left+l.width,l.top+l.height),this.bottomLeftBorderBox=hA>0||mA>0?te(l.left,l.top+kA,hA,mA,zA.BOTTOM_LEFT):new vA(l.left,l.top+l.height),this.topLeftPaddingBox=p>0||C>0?te(l.left+MA,l.top+FA,Math.max(0,p-MA),Math.max(0,C-FA),zA.TOP_LEFT):new vA(l.left+MA,l.top+FA),this.topRightPaddingBox=E>0||L>0?te(l.left+Math.min(SA,l.width-VA),l.top+FA,SA>l.width+VA?0:Math.max(0,E-VA),Math.max(0,L-FA),zA.TOP_RIGHT):new vA(l.left+l.width-VA,l.top+FA),this.bottomRightPaddingBox=X>0||j>0?te(l.left+Math.min(GA,l.width-MA),l.top+Math.min(Ae,l.height-PA),Math.max(0,X-VA),Math.max(0,j-PA),zA.BOTTOM_RIGHT):new vA(l.left+l.width-VA,l.top+l.height-PA),this.bottomLeftPaddingBox=hA>0||mA>0?te(l.left+MA,l.top+Math.min(kA,l.height-PA),Math.max(0,hA-MA),Math.max(0,mA-PA),zA.BOTTOM_LEFT):new vA(l.left+MA,l.top+l.height-PA),this.topLeftContentBox=p>0||C>0?te(l.left+MA+WA,l.top+FA+le,Math.max(0,p-(MA+WA)),Math.max(0,C-(FA+le)),zA.TOP_LEFT):new vA(l.left+MA+WA,l.top+FA+le),this.topRightContentBox=E>0||L>0?te(l.left+Math.min(SA,l.width+MA+WA),l.top+FA+le,SA>l.width+MA+WA?0:E-MA+WA,L-(FA+le),zA.TOP_RIGHT):new vA(l.left+l.width-(VA+ye),l.top+FA+le),this.bottomRightContentBox=X>0||j>0?te(l.left+Math.min(GA,l.width-(MA+WA)),l.top+Math.min(Ae,l.height+FA+le),Math.max(0,X-(VA+ye)),j-(PA+Ie),zA.BOTTOM_RIGHT):new vA(l.left+l.width-(VA+ye),l.top+l.height-(PA+Ie)),this.bottomLeftContentBox=hA>0||mA>0?te(l.left+MA+WA,l.top+kA,Math.max(0,hA-(MA+WA)),mA-(PA+Ie),zA.BOTTOM_LEFT):new vA(l.left+MA+WA,l.top+l.height-(PA+Ie))}return s})(),zA;(function(s){s[s.TOP_LEFT=0]="TOP_LEFT",s[s.TOP_RIGHT=1]="TOP_RIGHT",s[s.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",s[s.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(zA||(zA={}));var te=function(s,i,c,l,f){var p=4*((Math.sqrt(2)-1)/3),C=c*p,Q=l*p,E=s+c,L=i+l;switch(f){case zA.TOP_LEFT:return new So(new vA(s,L),new vA(s,L-Q),new vA(E-C,i),new vA(E,i));case zA.TOP_RIGHT:return new So(new vA(s,i),new vA(s+C,i),new vA(E,L-Q),new vA(E,L));case zA.BOTTOM_RIGHT:return new So(new vA(E,i),new vA(E,i+Q),new vA(s+C,L),new vA(s,L));case zA.BOTTOM_LEFT:default:return new So(new vA(E,L),new vA(E-C,L),new vA(s,i+Q),new vA(s,i))}},xo=function(s){return[s.topLeftBorderBox,s.topRightBorderBox,s.bottomRightBorderBox,s.bottomLeftBorderBox]},LQ=function(s){return[s.topLeftContentBox,s.topRightContentBox,s.bottomRightContentBox,s.bottomLeftContentBox]},Do=function(s){return[s.topLeftPaddingBox,s.topRightPaddingBox,s.bottomRightPaddingBox,s.bottomLeftPaddingBox]},TQ=(function(){function s(i,c,l){this.offsetX=i,this.offsetY=c,this.matrix=l,this.type=0,this.target=6}return s})(),No=(function(){function s(i,c){this.path=i,this.target=c,this.type=1}return s})(),kQ=(function(){function s(i){this.opacity=i,this.type=2,this.target=6}return s})(),MQ=function(s){return s.type===0},fu=function(s){return s.type===1},OQ=function(s){return s.type===2},gu=function(s,i){return s.length===i.length?s.some(function(c,l){return c===i[l]}):!1},KQ=function(s,i,c,l,f){return s.map(function(p,C){switch(C){case 0:return p.add(i,c);case 1:return p.add(i+l,c);case 2:return p.add(i+l,c+f);case 3:return p.add(i,c+f)}return p})},hu=(function(){function s(i){this.element=i,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return s})(),Bu=(function(){function s(i,c){if(this.container=i,this.parent=c,this.effects=[],this.curves=new NQ(this.container),this.container.styles.opacity<1&&this.effects.push(new kQ(this.container.styles.opacity)),this.container.styles.transform!==null){var l=this.container.bounds.left+this.container.styles.transformOrigin[0].number,f=this.container.bounds.top+this.container.styles.transformOrigin[1].number,p=this.container.styles.transform;this.effects.push(new TQ(l,f,p))}if(this.container.styles.overflowX!==0){var C=xo(this.curves),Q=Do(this.curves);gu(C,Q)?this.effects.push(new No(C,6)):(this.effects.push(new No(C,2)),this.effects.push(new No(Q,4)))}}return s.prototype.getEffects=function(i){for(var c=[2,3].indexOf(this.container.styles.position)===-1,l=this.parent,f=this.effects.slice(0);l;){var p=l.effects.filter(function(E){return!fu(E)});if(c||l.container.styles.position!==0||!l.parent){if(f.unshift.apply(f,p),c=[2,3].indexOf(l.container.styles.position)===-1,l.container.styles.overflowX!==0){var C=xo(l.curves),Q=Do(l.curves);gu(C,Q)||f.unshift(new No(Q,6))}}else f.unshift.apply(f,p);l=l.parent}return f.filter(function(E){return ue(E.target,i)})},s})(),ds=function(s,i,c,l){s.container.elements.forEach(function(f){var p=ue(f.flags,4),C=ue(f.flags,2),Q=new Bu(f,s);ue(f.styles.display,2048)&&l.push(Q);var E=ue(f.flags,8)?[]:l;if(p||C){var L=p||f.styles.isPositioned()?c:i,V=new hu(Q);if(f.styles.isPositioned()||f.styles.opacity<1||f.styles.isTransformed()){var X=f.styles.zIndex.order;if(X<0){var j=0;L.negativeZIndex.some(function(hA,mA){return X>hA.element.container.styles.zIndex.order?(j=mA,!1):j>0}),L.negativeZIndex.splice(j,0,V)}else if(X>0){var CA=0;L.positiveZIndex.some(function(hA,mA){return X>=hA.element.container.styles.zIndex.order?(CA=mA+1,!1):CA>0}),L.positiveZIndex.splice(CA,0,V)}else L.zeroOrAutoZIndexOrTransformedOrOpacity.push(V)}else f.styles.isFloating()?L.nonPositionedFloats.push(V):L.nonPositionedInlineLevel.push(V);ds(Q,V,p?V:c,E)}else f.styles.isInlineLevel()?i.inlineLevel.push(Q):i.nonInlineLevel.push(Q),ds(Q,i,c,E);ue(f.flags,8)&&pu(f,E)})},pu=function(s,i){for(var c=s instanceof es?s.start:1,l=s instanceof es?s.reversed:!1,f=0;f<i.length;f++){var p=i[f];p.container instanceof Vc&&typeof p.container.value=="number"&&p.container.value!==0&&(c=p.container.value),p.listValue=ir(c,p.container.styles.listStyleType,!0),c+=l?-1:1}},RQ=function(s){var i=new Bu(s,null),c=new hu(i),l=[];return ds(i,c,c,l),pu(i.container,l),c},mu=function(s,i){switch(i){case 0:return Ne(s.topLeftBorderBox,s.topLeftPaddingBox,s.topRightBorderBox,s.topRightPaddingBox);case 1:return Ne(s.topRightBorderBox,s.topRightPaddingBox,s.bottomRightBorderBox,s.bottomRightPaddingBox);case 2:return Ne(s.bottomRightBorderBox,s.bottomRightPaddingBox,s.bottomLeftBorderBox,s.bottomLeftPaddingBox);default:return Ne(s.bottomLeftBorderBox,s.bottomLeftPaddingBox,s.topLeftBorderBox,s.topLeftPaddingBox)}},VQ=function(s,i){switch(i){case 0:return Ne(s.topLeftBorderBox,s.topLeftBorderDoubleOuterBox,s.topRightBorderBox,s.topRightBorderDoubleOuterBox);case 1:return Ne(s.topRightBorderBox,s.topRightBorderDoubleOuterBox,s.bottomRightBorderBox,s.bottomRightBorderDoubleOuterBox);case 2:return Ne(s.bottomRightBorderBox,s.bottomRightBorderDoubleOuterBox,s.bottomLeftBorderBox,s.bottomLeftBorderDoubleOuterBox);default:return Ne(s.bottomLeftBorderBox,s.bottomLeftBorderDoubleOuterBox,s.topLeftBorderBox,s.topLeftBorderDoubleOuterBox)}},PQ=function(s,i){switch(i){case 0:return Ne(s.topLeftBorderDoubleInnerBox,s.topLeftPaddingBox,s.topRightBorderDoubleInnerBox,s.topRightPaddingBox);case 1:return Ne(s.topRightBorderDoubleInnerBox,s.topRightPaddingBox,s.bottomRightBorderDoubleInnerBox,s.bottomRightPaddingBox);case 2:return Ne(s.bottomRightBorderDoubleInnerBox,s.bottomRightPaddingBox,s.bottomLeftBorderDoubleInnerBox,s.bottomLeftPaddingBox);default:return Ne(s.bottomLeftBorderDoubleInnerBox,s.bottomLeftPaddingBox,s.topLeftBorderDoubleInnerBox,s.topLeftPaddingBox)}},GQ=function(s,i){switch(i){case 0:return Lo(s.topLeftBorderStroke,s.topRightBorderStroke);case 1:return Lo(s.topRightBorderStroke,s.bottomRightBorderStroke);case 2:return Lo(s.bottomRightBorderStroke,s.bottomLeftBorderStroke);default:return Lo(s.bottomLeftBorderStroke,s.topLeftBorderStroke)}},Lo=function(s,i){var c=[];return De(s)?c.push(s.subdivide(.5,!1)):c.push(s),De(i)?c.push(i.subdivide(.5,!0)):c.push(i),c},Ne=function(s,i,c,l){var f=[];return De(s)?f.push(s.subdivide(.5,!1)):f.push(s),De(c)?f.push(c.subdivide(.5,!0)):f.push(c),De(l)?f.push(l.subdivide(.5,!0).reverse()):f.push(l),De(i)?f.push(i.subdivide(.5,!1).reverse()):f.push(i),f},wu=function(s){var i=s.bounds,c=s.styles;return i.add(c.borderLeftWidth,c.borderTopWidth,-(c.borderRightWidth+c.borderLeftWidth),-(c.borderTopWidth+c.borderBottomWidth))},To=function(s){var i=s.styles,c=s.bounds,l=ZA(i.paddingLeft,c.width),f=ZA(i.paddingRight,c.width),p=ZA(i.paddingTop,c.width),C=ZA(i.paddingBottom,c.width);return c.add(l+i.borderLeftWidth,p+i.borderTopWidth,-(i.borderRightWidth+i.borderLeftWidth+l+f),-(i.borderTopWidth+i.borderBottomWidth+p+C))},zQ=function(s,i){return s===0?i.bounds:s===2?To(i):wu(i)},XQ=function(s,i){return s===0?i.bounds:s===2?To(i):wu(i)},fs=function(s,i,c){var l=zQ(Cn(s.styles.backgroundOrigin,i),s),f=XQ(Cn(s.styles.backgroundClip,i),s),p=$Q(Cn(s.styles.backgroundSize,i),c,l),C=p[0],Q=p[1],E=Ar(Cn(s.styles.backgroundPosition,i),l.width-C,l.height-Q);return[YQ(Cn(s.styles.backgroundRepeat,i),E,p,l,f),Math.round(l.left+E[0]),Math.round(l.top+E[1]),C,Q]},wn=function(s){return YA(s)&&s.value===gn.AUTO},ko=function(s){return typeof s=="number"},$Q=function(s,i,c){var l=i[0],f=i[1],p=i[2],C=s[0],Q=s[1];if(!C)return[0,0];if(ae(C)&&Q&&ae(Q))return[ZA(C,c.width),ZA(Q,c.height)];var E=ko(p);if(YA(C)&&(C.value===gn.CONTAIN||C.value===gn.COVER))return ko(p)?c.width/c.height<p!=(C.value===gn.COVER)?[c.width,c.width/p]:[c.height*p,c.height]:[c.width,c.height];var L=ko(l),V=ko(f),X=L||V;if(wn(C)&&(!Q||wn(Q)))return L&&V?[l,f]:!E&&!X?[c.width,c.height]:X&&E?[L?l:f*p,V?f:l/p]:[L?l:c.width,V?f:c.height];if(E){var j=0,CA=0;return ae(C)?j=ZA(C,c.width):ae(Q)&&(CA=ZA(Q,c.height)),wn(C)?j=CA*p:(!Q||wn(Q))&&(CA=j/p),[j,CA]}var hA=null,mA=null;if(ae(C)?hA=ZA(C,c.width):Q&&ae(Q)&&(mA=ZA(Q,c.height)),hA!==null&&(!Q||wn(Q))&&(mA=L&&V?hA/l*f:c.height),mA!==null&&wn(C)&&(hA=L&&V?mA/f*l:c.width),hA!==null&&mA!==null)return[hA,mA];throw new Error("Unable to calculate background-size for element")},Cn=function(s,i){var c=s[i];return typeof c>"u"?s[0]:c},YQ=function(s,i,c,l,f){var p=i[0],C=i[1],Q=c[0],E=c[1];switch(s){case 2:return[new vA(Math.round(l.left),Math.round(l.top+C)),new vA(Math.round(l.left+l.width),Math.round(l.top+C)),new vA(Math.round(l.left+l.width),Math.round(E+l.top+C)),new vA(Math.round(l.left),Math.round(E+l.top+C))];case 3:return[new vA(Math.round(l.left+p),Math.round(l.top)),new vA(Math.round(l.left+p+Q),Math.round(l.top)),new vA(Math.round(l.left+p+Q),Math.round(l.height+l.top)),new vA(Math.round(l.left+p),Math.round(l.height+l.top))];case 1:return[new vA(Math.round(l.left+p),Math.round(l.top+C)),new vA(Math.round(l.left+p+Q),Math.round(l.top+C)),new vA(Math.round(l.left+p+Q),Math.round(l.top+C+E)),new vA(Math.round(l.left+p),Math.round(l.top+C+E))];default:return[new vA(Math.round(f.left),Math.round(f.top)),new vA(Math.round(f.left+f.width),Math.round(f.top)),new vA(Math.round(f.left+f.width),Math.round(f.height+f.top)),new vA(Math.round(f.left),Math.round(f.height+f.top))]}},WQ="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Cu="Hidden Text",JQ=(function(){function s(i){this._data={},this._document=i}return s.prototype.parseMetrics=function(i,c){var l=this._document.createElement("div"),f=this._document.createElement("img"),p=this._document.createElement("span"),C=this._document.body;l.style.visibility="hidden",l.style.fontFamily=i,l.style.fontSize=c,l.style.margin="0",l.style.padding="0",l.style.whiteSpace="nowrap",C.appendChild(l),f.src=WQ,f.width=1,f.height=1,f.style.margin="0",f.style.padding="0",f.style.verticalAlign="baseline",p.style.fontFamily=i,p.style.fontSize=c,p.style.margin="0",p.style.padding="0",p.appendChild(this._document.createTextNode(Cu)),l.appendChild(p),l.appendChild(f);var Q=f.offsetTop-p.offsetTop+2;l.removeChild(p),l.appendChild(this._document.createTextNode(Cu)),l.style.lineHeight="normal",f.style.verticalAlign="super";var E=f.offsetTop-l.offsetTop+2;return C.removeChild(l),{baseline:Q,middle:E}},s.prototype.getMetrics=function(i,c){var l=i+" "+c;return typeof this._data[l]>"u"&&(this._data[l]=this.parseMetrics(i,c)),this._data[l]},s})(),vu=(function(){function s(i,c){this.context=i,this.options=c}return s})(),ZQ=1e4,jQ=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f._activeEffects=[],f.canvas=l.canvas?l.canvas:document.createElement("canvas"),f.ctx=f.canvas.getContext("2d"),l.canvas||(f.canvas.width=Math.floor(l.width*l.scale),f.canvas.height=Math.floor(l.height*l.scale),f.canvas.style.width=l.width+"px",f.canvas.style.height=l.height+"px"),f.fontMetrics=new JQ(document),f.ctx.scale(f.options.scale,f.options.scale),f.ctx.translate(-l.x,-l.y),f.ctx.textBaseline="bottom",f._activeEffects=[],f.context.logger.debug("Canvas renderer initialized ("+l.width+"x"+l.height+") with scale "+l.scale),f}return i.prototype.applyEffects=function(c){for(var l=this;this._activeEffects.length;)this.popEffect();c.forEach(function(f){return l.applyEffect(f)})},i.prototype.applyEffect=function(c){this.ctx.save(),OQ(c)&&(this.ctx.globalAlpha=c.opacity),MQ(c)&&(this.ctx.translate(c.offsetX,c.offsetY),this.ctx.transform(c.matrix[0],c.matrix[1],c.matrix[2],c.matrix[3],c.matrix[4],c.matrix[5]),this.ctx.translate(-c.offsetX,-c.offsetY)),fu(c)&&(this.path(c.path),this.ctx.clip()),this._activeEffects.push(c)},i.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},i.prototype.renderStack=function(c){return a(this,void 0,void 0,function(){var l;return u(this,function(f){switch(f.label){case 0:return l=c.element.container.styles,l.isVisible()?[4,this.renderStackContent(c)]:[3,2];case 1:f.sent(),f.label=2;case 2:return[2]}})})},i.prototype.renderNode=function(c){return a(this,void 0,void 0,function(){return u(this,function(l){switch(l.label){case 0:if(ue(c.container.flags,16))debugger;return c.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(c)]:[3,3];case 1:return l.sent(),[4,this.renderNodeContent(c)];case 2:l.sent(),l.label=3;case 3:return[2]}})})},i.prototype.renderTextWithLetterSpacing=function(c,l,f){var p=this;l===0?this.ctx.fillText(c.text,c.bounds.left,c.bounds.top+f):As(c.text).reduce(function(C,Q){return p.ctx.fillText(Q,C,c.bounds.top+f),C+p.ctx.measureText(Q).width},c.bounds.left)},i.prototype.createFontStyle=function(c){var l=c.fontVariant.filter(function(C){return C==="normal"||C==="small-caps"}).join(""),f=nE(c.fontFamily).join(", "),p=qn(c.fontSize)?""+c.fontSize.number+c.fontSize.unit:c.fontSize.number+"px";return[[c.fontStyle,l,c.fontWeight,p,f].join(" "),f,p]},i.prototype.renderTextNode=function(c,l){return a(this,void 0,void 0,function(){var f,p,C,Q,E,L,V,X,j=this;return u(this,function(CA){return f=this.createFontStyle(l),p=f[0],C=f[1],Q=f[2],this.ctx.font=p,this.ctx.direction=l.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",E=this.fontMetrics.getMetrics(C,Q),L=E.baseline,V=E.middle,X=l.paintOrder,c.textBounds.forEach(function(hA){X.forEach(function(mA){switch(mA){case 0:j.ctx.fillStyle=de(l.color),j.renderTextWithLetterSpacing(hA,l.letterSpacing,L);var RA=l.textShadow;RA.length&&hA.text.trim().length&&(RA.slice(0).reverse().forEach(function(DA){j.ctx.shadowColor=de(DA.color),j.ctx.shadowOffsetX=DA.offsetX.number*j.options.scale,j.ctx.shadowOffsetY=DA.offsetY.number*j.options.scale,j.ctx.shadowBlur=DA.blur.number,j.renderTextWithLetterSpacing(hA,l.letterSpacing,L)}),j.ctx.shadowColor="",j.ctx.shadowOffsetX=0,j.ctx.shadowOffsetY=0,j.ctx.shadowBlur=0),l.textDecorationLine.length&&(j.ctx.fillStyle=de(l.textDecorationColor||l.color),l.textDecorationLine.forEach(function(DA){switch(DA){case 1:j.ctx.fillRect(hA.bounds.left,Math.round(hA.bounds.top+L),hA.bounds.width,1);break;case 2:j.ctx.fillRect(hA.bounds.left,Math.round(hA.bounds.top),hA.bounds.width,1);break;case 3:j.ctx.fillRect(hA.bounds.left,Math.ceil(hA.bounds.top+V),hA.bounds.width,1);break}}));break;case 1:l.webkitTextStrokeWidth&&hA.text.trim().length&&(j.ctx.strokeStyle=de(l.webkitTextStrokeColor),j.ctx.lineWidth=l.webkitTextStrokeWidth,j.ctx.lineJoin=window.chrome?"miter":"round",j.ctx.strokeText(hA.text,hA.bounds.left,hA.bounds.top+L)),j.ctx.strokeStyle="",j.ctx.lineWidth=0,j.ctx.lineJoin="miter";break}})}),[2]})})},i.prototype.renderReplacedElement=function(c,l,f){if(f&&c.intrinsicWidth>0&&c.intrinsicHeight>0){var p=To(c),C=Do(l);this.path(C),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(f,0,0,c.intrinsicWidth,c.intrinsicHeight,p.left,p.top,p.width,p.height),this.ctx.restore()}},i.prototype.renderNodeContent=function(c){return a(this,void 0,void 0,function(){var l,f,p,C,Q,E,SA,SA,L,V,X,j,GA,CA,hA,kA,mA,RA,DA,SA,Ae,GA,kA;return u(this,function(FA){switch(FA.label){case 0:this.applyEffects(c.getEffects(4)),l=c.container,f=c.curves,p=l.styles,C=0,Q=l.textNodes,FA.label=1;case 1:return C<Q.length?(E=Q[C],[4,this.renderTextNode(E,p)]):[3,4];case 2:FA.sent(),FA.label=3;case 3:return C++,[3,1];case 4:if(!(l instanceof Oc))return[3,8];FA.label=5;case 5:return FA.trys.push([5,7,,8]),[4,this.context.cache.match(l.src)];case 6:return SA=FA.sent(),this.renderReplacedElement(l,f,SA),[3,8];case 7:return FA.sent(),this.context.logger.error("Error loading image "+l.src),[3,8];case 8:if(l instanceof Kc&&this.renderReplacedElement(l,f,l.canvas),!(l instanceof Rc))return[3,12];FA.label=9;case 9:return FA.trys.push([9,11,,12]),[4,this.context.cache.match(l.svg)];case 10:return SA=FA.sent(),this.renderReplacedElement(l,f,SA),[3,12];case 11:return FA.sent(),this.context.logger.error("Error loading svg "+l.svg.substring(0,255)),[3,12];case 12:return l instanceof Xc&&l.tree?(L=new i(this.context,{scale:this.options.scale,backgroundColor:l.backgroundColor,x:0,y:0,width:l.width,height:l.height}),[4,L.render(l.tree)]):[3,14];case 13:V=FA.sent(),l.width&&l.height&&this.ctx.drawImage(V,0,0,l.width,l.height,l.bounds.left,l.bounds.top,l.bounds.width,l.bounds.height),FA.label=14;case 14:if(l instanceof ts&&(X=Math.min(l.bounds.width,l.bounds.height),l.type===Fo?l.checked&&(this.ctx.save(),this.path([new vA(l.bounds.left+X*.39363,l.bounds.top+X*.79),new vA(l.bounds.left+X*.16,l.bounds.top+X*.5549),new vA(l.bounds.left+X*.27347,l.bounds.top+X*.44071),new vA(l.bounds.left+X*.39694,l.bounds.top+X*.5649),new vA(l.bounds.left+X*.72983,l.bounds.top+X*.23),new vA(l.bounds.left+X*.84,l.bounds.top+X*.34085),new vA(l.bounds.left+X*.39363,l.bounds.top+X*.79)]),this.ctx.fillStyle=de(Pc),this.ctx.fill(),this.ctx.restore()):l.type===Uo&&l.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(l.bounds.left+X/2,l.bounds.top+X/2,X/4,0,Math.PI*2,!0),this.ctx.fillStyle=de(Pc),this.ctx.fill(),this.ctx.restore())),qQ(l)&&l.value.length){switch(j=this.createFontStyle(p),GA=j[0],CA=j[1],hA=this.fontMetrics.getMetrics(GA,CA).baseline,this.ctx.font=GA,this.ctx.fillStyle=de(p.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=eE(l.styles.textAlign),kA=To(l),mA=0,l.styles.textAlign){case 1:mA+=kA.width/2;break;case 2:mA+=kA.width;break}RA=kA.add(mA,0,0,-kA.height/2+1),this.ctx.save(),this.path([new vA(kA.left,kA.top),new vA(kA.left+kA.width,kA.top),new vA(kA.left+kA.width,kA.top+kA.height),new vA(kA.left,kA.top+kA.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new rr(l.value,RA),p.letterSpacing,hA),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!ue(l.styles.display,2048))return[3,20];if(l.styles.listStyleImage===null)return[3,19];if(DA=l.styles.listStyleImage,DA.type!==0)return[3,18];SA=void 0,Ae=DA.url,FA.label=15;case 15:return FA.trys.push([15,17,,18]),[4,this.context.cache.match(Ae)];case 16:return SA=FA.sent(),this.ctx.drawImage(SA,l.bounds.left-(SA.width+10),l.bounds.top),[3,18];case 17:return FA.sent(),this.context.logger.error("Error loading list-style-image "+Ae),[3,18];case 18:return[3,20];case 19:c.listValue&&l.styles.listStyleType!==-1&&(GA=this.createFontStyle(p)[0],this.ctx.font=GA,this.ctx.fillStyle=de(p.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",kA=new h(l.bounds.left,l.bounds.top+ZA(l.styles.paddingTop,l.bounds.width),l.bounds.width,Cc(p.lineHeight,p.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new rr(c.listValue,kA),p.letterSpacing,Cc(p.lineHeight,p.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),FA.label=20;case 20:return[2]}})})},i.prototype.renderStackContent=function(c){return a(this,void 0,void 0,function(){var l,f,DA,p,C,DA,Q,E,DA,L,V,DA,X,j,DA,CA,hA,DA,mA,RA,DA;return u(this,function(SA){switch(SA.label){case 0:if(ue(c.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(c.element)];case 1:SA.sent(),l=0,f=c.negativeZIndex,SA.label=2;case 2:return l<f.length?(DA=f[l],[4,this.renderStack(DA)]):[3,5];case 3:SA.sent(),SA.label=4;case 4:return l++,[3,2];case 5:return[4,this.renderNodeContent(c.element)];case 6:SA.sent(),p=0,C=c.nonInlineLevel,SA.label=7;case 7:return p<C.length?(DA=C[p],[4,this.renderNode(DA)]):[3,10];case 8:SA.sent(),SA.label=9;case 9:return p++,[3,7];case 10:Q=0,E=c.nonPositionedFloats,SA.label=11;case 11:return Q<E.length?(DA=E[Q],[4,this.renderStack(DA)]):[3,14];case 12:SA.sent(),SA.label=13;case 13:return Q++,[3,11];case 14:L=0,V=c.nonPositionedInlineLevel,SA.label=15;case 15:return L<V.length?(DA=V[L],[4,this.renderStack(DA)]):[3,18];case 16:SA.sent(),SA.label=17;case 17:return L++,[3,15];case 18:X=0,j=c.inlineLevel,SA.label=19;case 19:return X<j.length?(DA=j[X],[4,this.renderNode(DA)]):[3,22];case 20:SA.sent(),SA.label=21;case 21:return X++,[3,19];case 22:CA=0,hA=c.zeroOrAutoZIndexOrTransformedOrOpacity,SA.label=23;case 23:return CA<hA.length?(DA=hA[CA],[4,this.renderStack(DA)]):[3,26];case 24:SA.sent(),SA.label=25;case 25:return CA++,[3,23];case 26:mA=0,RA=c.positiveZIndex,SA.label=27;case 27:return mA<RA.length?(DA=RA[mA],[4,this.renderStack(DA)]):[3,30];case 28:SA.sent(),SA.label=29;case 29:return mA++,[3,27];case 30:return[2]}})})},i.prototype.mask=function(c){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(c.slice(0).reverse()),this.ctx.closePath()},i.prototype.path=function(c){this.ctx.beginPath(),this.formatPath(c),this.ctx.closePath()},i.prototype.formatPath=function(c){var l=this;c.forEach(function(f,p){var C=De(f)?f.start:f;p===0?l.ctx.moveTo(C.x,C.y):l.ctx.lineTo(C.x,C.y),De(f)&&l.ctx.bezierCurveTo(f.startControl.x,f.startControl.y,f.endControl.x,f.endControl.y,f.end.x,f.end.y)})},i.prototype.renderRepeat=function(c,l,f,p){this.path(c),this.ctx.fillStyle=l,this.ctx.translate(f,p),this.ctx.fill(),this.ctx.translate(-f,-p)},i.prototype.resizeImage=function(c,l,f){var p;if(c.width===l&&c.height===f)return c;var C=((p=this.canvas.ownerDocument)!==null&&p!==void 0?p:document).createElement("canvas");return C.width=Math.max(1,l),C.height=Math.max(1,f),C.getContext("2d").drawImage(c,0,0,c.width,c.height,0,0,l,f),C},i.prototype.renderBackgroundImage=function(c){return a(this,void 0,void 0,function(){var l,f,p,C,Q,E;return u(this,function(L){switch(L.label){case 0:l=c.styles.backgroundImage.length-1,f=function(V){var X,j,CA,le,Qe,Ee,WA,he,PA,hA,le,Qe,Ee,WA,he,mA,RA,DA,SA,Ae,GA,kA,FA,VA,PA,MA,le,ye,Ie,WA,he,It,Qe,Ee,Gt,je,_t,zt,Xt,ut,$t,dt;return u(this,function(vn){switch(vn.label){case 0:if(V.type!==0)return[3,5];X=void 0,j=V.url,vn.label=1;case 1:return vn.trys.push([1,3,,4]),[4,p.context.cache.match(j)];case 2:return X=vn.sent(),[3,4];case 3:return vn.sent(),p.context.logger.error("Error loading background-image "+j),[3,4];case 4:return X&&(CA=fs(c,l,[X.width,X.height,X.width/X.height]),le=CA[0],Qe=CA[1],Ee=CA[2],WA=CA[3],he=CA[4],PA=p.ctx.createPattern(p.resizeImage(X,WA,he),"repeat"),p.renderRepeat(le,PA,Qe,Ee)),[3,6];case 5:GC(V)?(hA=fs(c,l,[null,null,null]),le=hA[0],Qe=hA[1],Ee=hA[2],WA=hA[3],he=hA[4],mA=OC(V.angle,WA,he),RA=mA[0],DA=mA[1],SA=mA[2],Ae=mA[3],GA=mA[4],kA=document.createElement("canvas"),kA.width=WA,kA.height=he,FA=kA.getContext("2d"),VA=FA.createLinearGradient(DA,Ae,SA,GA),lc(V.stops,RA).forEach(function(ar){return VA.addColorStop(ar.stop,de(ar.color))}),FA.fillStyle=VA,FA.fillRect(0,0,WA,he),WA>0&&he>0&&(PA=p.ctx.createPattern(kA,"repeat"),p.renderRepeat(le,PA,Qe,Ee))):zC(V)&&(MA=fs(c,l,[null,null,null]),le=MA[0],ye=MA[1],Ie=MA[2],WA=MA[3],he=MA[4],It=V.position.length===0?[Oi]:V.position,Qe=ZA(It[0],WA),Ee=ZA(It[It.length-1],he),Gt=KC(V,Qe,Ee,WA,he),je=Gt[0],_t=Gt[1],je>0&&_t>0&&(zt=p.ctx.createRadialGradient(ye+Qe,Ie+Ee,0,ye+Qe,Ie+Ee,je),lc(V.stops,je*2).forEach(function(ar){return zt.addColorStop(ar.stop,de(ar.color))}),p.path(le),p.ctx.fillStyle=zt,je!==_t?(Xt=c.bounds.left+.5*c.bounds.width,ut=c.bounds.top+.5*c.bounds.height,$t=_t/je,dt=1/$t,p.ctx.save(),p.ctx.translate(Xt,ut),p.ctx.transform(1,0,0,$t,0,0),p.ctx.translate(-Xt,-ut),p.ctx.fillRect(ye,dt*(Ie-ut)+ut,WA,he*dt),p.ctx.restore()):p.ctx.fill())),vn.label=6;case 6:return l--,[2]}})},p=this,C=0,Q=c.styles.backgroundImage.slice(0).reverse(),L.label=1;case 1:return C<Q.length?(E=Q[C],[5,f(E)]):[3,4];case 2:L.sent(),L.label=3;case 3:return C++,[3,1];case 4:return[2]}})})},i.prototype.renderSolidBorder=function(c,l,f){return a(this,void 0,void 0,function(){return u(this,function(p){return this.path(mu(f,l)),this.ctx.fillStyle=de(c),this.ctx.fill(),[2]})})},i.prototype.renderDoubleBorder=function(c,l,f,p){return a(this,void 0,void 0,function(){var C,Q;return u(this,function(E){switch(E.label){case 0:return l<3?[4,this.renderSolidBorder(c,f,p)]:[3,2];case 1:return E.sent(),[2];case 2:return C=VQ(p,f),this.path(C),this.ctx.fillStyle=de(c),this.ctx.fill(),Q=PQ(p,f),this.path(Q),this.ctx.fill(),[2]}})})},i.prototype.renderNodeBackgroundAndBorders=function(c){return a(this,void 0,void 0,function(){var l,f,p,C,Q,E,L,V,X=this;return u(this,function(j){switch(j.label){case 0:return this.applyEffects(c.getEffects(2)),l=c.container.styles,f=!Ft(l.backgroundColor)||l.backgroundImage.length,p=[{style:l.borderTopStyle,color:l.borderTopColor,width:l.borderTopWidth},{style:l.borderRightStyle,color:l.borderRightColor,width:l.borderRightWidth},{style:l.borderBottomStyle,color:l.borderBottomColor,width:l.borderBottomWidth},{style:l.borderLeftStyle,color:l.borderLeftColor,width:l.borderLeftWidth}],C=AE(Cn(l.backgroundClip,0),c.curves),f||l.boxShadow.length?(this.ctx.save(),this.path(C),this.ctx.clip(),Ft(l.backgroundColor)||(this.ctx.fillStyle=de(l.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(c.container)]):[3,2];case 1:j.sent(),this.ctx.restore(),l.boxShadow.slice(0).reverse().forEach(function(CA){X.ctx.save();var hA=xo(c.curves),mA=CA.inset?0:ZQ,RA=KQ(hA,-mA+(CA.inset?1:-1)*CA.spread.number,(CA.inset?1:-1)*CA.spread.number,CA.spread.number*(CA.inset?-2:2),CA.spread.number*(CA.inset?-2:2));CA.inset?(X.path(hA),X.ctx.clip(),X.mask(RA)):(X.mask(hA),X.ctx.clip(),X.path(RA)),X.ctx.shadowOffsetX=CA.offsetX.number+mA,X.ctx.shadowOffsetY=CA.offsetY.number,X.ctx.shadowColor=de(CA.color),X.ctx.shadowBlur=CA.blur.number,X.ctx.fillStyle=CA.inset?de(CA.color):"rgba(0,0,0,1)",X.ctx.fill(),X.ctx.restore()}),j.label=2;case 2:Q=0,E=0,L=p,j.label=3;case 3:return E<L.length?(V=L[E],V.style!==0&&!Ft(V.color)&&V.width>0?V.style!==2?[3,5]:[4,this.renderDashedDottedBorder(V.color,V.width,Q,c.curves,2)]:[3,11]):[3,13];case 4:return j.sent(),[3,11];case 5:return V.style!==3?[3,7]:[4,this.renderDashedDottedBorder(V.color,V.width,Q,c.curves,3)];case 6:return j.sent(),[3,11];case 7:return V.style!==4?[3,9]:[4,this.renderDoubleBorder(V.color,V.width,Q,c.curves)];case 8:return j.sent(),[3,11];case 9:return[4,this.renderSolidBorder(V.color,Q,c.curves)];case 10:j.sent(),j.label=11;case 11:Q++,j.label=12;case 12:return E++,[3,3];case 13:return[2]}})})},i.prototype.renderDashedDottedBorder=function(c,l,f,p,C){return a(this,void 0,void 0,function(){var Q,E,L,V,X,j,CA,hA,mA,RA,DA,SA,Ae,GA,kA,FA,kA,FA;return u(this,function(VA){return this.ctx.save(),Q=GQ(p,f),E=mu(p,f),C===2&&(this.path(E),this.ctx.clip()),De(E[0])?(L=E[0].start.x,V=E[0].start.y):(L=E[0].x,V=E[0].y),De(E[1])?(X=E[1].end.x,j=E[1].end.y):(X=E[1].x,j=E[1].y),f===0||f===2?CA=Math.abs(L-X):CA=Math.abs(V-j),this.ctx.beginPath(),C===3?this.formatPath(Q):this.formatPath(E.slice(0,2)),hA=l<3?l*3:l*2,mA=l<3?l*2:l,C===3&&(hA=l,mA=l),RA=!0,CA<=hA*2?RA=!1:CA<=hA*2+mA?(DA=CA/(2*hA+mA),hA*=DA,mA*=DA):(SA=Math.floor((CA+mA)/(hA+mA)),Ae=(CA-SA*hA)/(SA-1),GA=(CA-(SA+1)*hA)/SA,mA=GA<=0||Math.abs(mA-Ae)<Math.abs(mA-GA)?Ae:GA),RA&&(C===3?this.ctx.setLineDash([0,hA+mA]):this.ctx.setLineDash([hA,mA])),C===3?(this.ctx.lineCap="round",this.ctx.lineWidth=l):this.ctx.lineWidth=l*2+1.1,this.ctx.strokeStyle=de(c),this.ctx.stroke(),this.ctx.setLineDash([]),C===2&&(De(E[0])&&(kA=E[3],FA=E[0],this.ctx.beginPath(),this.formatPath([new vA(kA.end.x,kA.end.y),new vA(FA.start.x,FA.start.y)]),this.ctx.stroke()),De(E[1])&&(kA=E[1],FA=E[2],this.ctx.beginPath(),this.formatPath([new vA(kA.end.x,kA.end.y),new vA(FA.start.x,FA.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},i.prototype.render=function(c){return a(this,void 0,void 0,function(){var l;return u(this,function(f){switch(f.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=de(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),l=RQ(c),[4,this.renderStack(l)];case 1:return f.sent(),this.applyEffects([]),[2,this.canvas]}})})},i})(vu),qQ=function(s){return s instanceof zc||s instanceof Gc?!0:s instanceof ts&&s.type!==Uo&&s.type!==Fo},AE=function(s,i){switch(s){case 0:return xo(i);case 2:return LQ(i);default:return Do(i)}},eE=function(s){switch(s){case 1:return"center";case 2:return"right";default:return"left"}},tE=["-apple-system","system-ui"],nE=function(s){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?s.filter(function(i){return tE.indexOf(i)===-1}):s},rE=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f.canvas=l.canvas?l.canvas:document.createElement("canvas"),f.ctx=f.canvas.getContext("2d"),f.options=l,f.canvas.width=Math.floor(l.width*l.scale),f.canvas.height=Math.floor(l.height*l.scale),f.canvas.style.width=l.width+"px",f.canvas.style.height=l.height+"px",f.ctx.scale(f.options.scale,f.options.scale),f.ctx.translate(-l.x,-l.y),f.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+l.width+"x"+l.height+" at "+l.x+","+l.y+") with scale "+l.scale),f}return i.prototype.render=function(c){return a(this,void 0,void 0,function(){var l,f;return u(this,function(p){switch(p.label){case 0:return l=qi(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,c),[4,oE(l)];case 1:return f=p.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=de(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(f,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},i})(vu),oE=function(s){return new Promise(function(i,c){var l=new Image;l.onload=function(){i(l)},l.onerror=c,l.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(s))})},iE=(function(){function s(i){var c=i.id,l=i.enabled;this.id=c,this.enabled=l,this.start=Date.now()}return s.prototype.debug=function(){for(var i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,d([this.id,this.getTime()+"ms"],i)):this.info.apply(this,i))},s.prototype.getTime=function(){return Date.now()-this.start},s.prototype.info=function(){for(var i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,d([this.id,this.getTime()+"ms"],i))},s.prototype.warn=function(){for(var i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,d([this.id,this.getTime()+"ms"],i)):this.info.apply(this,i))},s.prototype.error=function(){for(var i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,d([this.id,this.getTime()+"ms"],i)):this.info.apply(this,i))},s.instances={},s})(),sE=(function(){function s(i,c){var l;this.windowBounds=c,this.instanceName="#"+s.instanceCount++,this.logger=new iE({id:this.instanceName,enabled:i.logging}),this.cache=(l=i.cache)!==null&&l!==void 0?l:new bQ(this,i)}return s.instanceCount=1,s})(),aE=function(s,i){return i===void 0&&(i={}),lE(s,i)};typeof window<"u"&&du.setContext(window);var lE=function(s,i){return a(void 0,void 0,void 0,function(){var c,l,f,p,C,Q,E,L,V,X,j,CA,hA,mA,RA,DA,SA,Ae,GA,kA,VA,FA,VA,PA,MA,le,ye,Ie,WA,he,It,Qe,Ee,Gt,je,_t,zt,Xt,ut,$t;return u(this,function(dt){switch(dt.label){case 0:if(!s||typeof s!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(c=s.ownerDocument,!c)throw new Error("Element is not attached to a Document");if(l=c.defaultView,!l)throw new Error("Document is not attached to a Window");return f={allowTaint:(PA=i.allowTaint)!==null&&PA!==void 0?PA:!1,imageTimeout:(MA=i.imageTimeout)!==null&&MA!==void 0?MA:15e3,proxy:i.proxy,useCORS:(le=i.useCORS)!==null&&le!==void 0?le:!1},p=o({logging:(ye=i.logging)!==null&&ye!==void 0?ye:!0,cache:i.cache},f),C={windowWidth:(Ie=i.windowWidth)!==null&&Ie!==void 0?Ie:l.innerWidth,windowHeight:(WA=i.windowHeight)!==null&&WA!==void 0?WA:l.innerHeight,scrollX:(he=i.scrollX)!==null&&he!==void 0?he:l.pageXOffset,scrollY:(It=i.scrollY)!==null&&It!==void 0?It:l.pageYOffset},Q=new h(C.scrollX,C.scrollY,C.windowWidth,C.windowHeight),E=new sE(p,Q),L=(Qe=i.foreignObjectRendering)!==null&&Qe!==void 0?Qe:!1,V={allowTaint:(Ee=i.allowTaint)!==null&&Ee!==void 0?Ee:!1,onclone:i.onclone,ignoreElements:i.ignoreElements,inlineImages:L,copyStyles:L},E.logger.debug("Starting document clone with size "+Q.width+"x"+Q.height+" scrolled to "+-Q.left+","+-Q.top),X=new cu(E,s,V),j=X.clonedReferenceElement,j?[4,X.toIFrame(c,Q)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return CA=dt.sent(),hA=rs(j)||cQ(j)?B(j.ownerDocument):g(E,j),mA=hA.width,RA=hA.height,DA=hA.left,SA=hA.top,Ae=cE(E,j,i.backgroundColor),GA={canvas:i.canvas,backgroundColor:Ae,scale:(je=(Gt=i.scale)!==null&&Gt!==void 0?Gt:l.devicePixelRatio)!==null&&je!==void 0?je:1,x:((_t=i.x)!==null&&_t!==void 0?_t:0)+DA,y:((zt=i.y)!==null&&zt!==void 0?zt:0)+SA,width:(Xt=i.width)!==null&&Xt!==void 0?Xt:Math.ceil(mA),height:(ut=i.height)!==null&&ut!==void 0?ut:Math.ceil(RA)},L?(E.logger.debug("Document cloned, using foreign object rendering"),VA=new rE(E,GA),[4,VA.render(j)]):[3,3];case 2:return kA=dt.sent(),[3,5];case 3:return E.logger.debug("Document cloned, element located at "+DA+","+SA+" with size "+mA+"x"+RA+" using computed rendering"),E.logger.debug("Starting DOM parsing"),FA=Yc(E,j),Ae===FA.styles.backgroundColor&&(FA.styles.backgroundColor=lt.TRANSPARENT),E.logger.debug("Starting renderer for element at "+GA.x+","+GA.y+" with size "+GA.width+"x"+GA.height),VA=new jQ(E,GA),[4,VA.render(FA)];case 4:kA=dt.sent(),dt.label=5;case 5:return(!(($t=i.removeContainer)!==null&&$t!==void 0)||$t)&&(cu.destroy(CA)||E.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),E.logger.debug("Finished rendering"),[2,kA]}})})},cE=function(s,i,c){var l=i.ownerDocument,f=l.documentElement?er(s,getComputedStyle(l.documentElement).backgroundColor):lt.TRANSPARENT,p=l.body?er(s,getComputedStyle(l.body).backgroundColor):lt.TRANSPARENT,C=typeof c=="string"?er(s,c):c===null?lt.TRANSPARENT:4294967295;return i===l.documentElement?Ft(f)?Ft(p)?C:p:f:C};return aE}))})),A0=Bs(qw(),1),e0=(0,r.defineComponent)({name:"DBiDesignContainer",__name:"biDesignContainer",props:{layout:{type:Array,default:()=>[]},indexPage:{type:Object,default:()=>({})},activedComponent:{type:Object,default:()=>({})},scale:{type:Number,default:1}},emits:["select","move"],setup(e,{emit:A}){const t=e,n=A,{apiUrl:o,token:a,httpGet:u,httpPost:d,httpPut:h,httpDelete:g,success:B,warning:w,error:m,info:v,useData:y}=(0,pe.useAppInject)(),{loadData:I,getData:N}=y(),D=(0,r.computed)(()=>{const S={transform:`scale(${t.scale}, ${t.scale})`,transformOrigin:"left top",position:"relative",width:JA(t.indexPage.config.w||1920),height:JA(t.indexPage.config.h||1080),backgroundColor:t.indexPage.config.backgroundColor||"var(--j-color-bg-container)"};return t.indexPage.config.backgroundImage&&(S.background=`url(${o}/system/annexesfile/${t.indexPage.config.backgroundImage}?token=${a?.value}) 0% 0% / 100% 100% ${t.indexPage.config.backgroundColor||"var(--j-color-bg-container)"}`),S}),P=S=>{n("select",S)},H=S=>{n("move",S)},O=S=>{S?.target?.getAttribute("id")==="j-bi-design-container"&&n("select",t.indexPage)},sA={},J=(S,eA)=>{S&&(sA[eA]=S)},cA=(0,r.computed)(()=>t.layout.map(S=>({...S,$refs:sA[S.id]}))),lA=async(S,eA)=>{if(S&&S.trim()){S=`async (jcode) => {${S}}`;const{res:U,msg:K,fn:b}=(0,pe.getFunction)(S);if(U)return b(AA(eA));m&&m(K)}},oA=S=>sA[S]?.getValue?.()||[],iA=S=>cA.value.find(({id:eA})=>eA===S)?.config||{},AA=S=>(S.get=oA,S.getProps=iA,S.getSourceData=async(eA,U)=>(await I("dbsource",eA,JSON.stringify(U),!1),N("dbsource",eA,{params:U})),S.getDateNow=eA=>(0,pe.formatToDateTime)(new Date,eA||"YYYY-MM-DD HH:mm:ss"),S.httpGet=u,S.httpPost=d,S.httpPut=h,S.httpDelete=g,S.loading=()=>{(0,pe.fullScreenLoading)(!0)},S.hideLoading=()=>{(0,pe.fullScreenLoading)(!1)},S.message=(eA,U)=>{switch(U){case"success":B&&B(eA);break;case"warning":w&&w(eA);break;case"error":m&&m(eA);break;case"info":v&&v(eA);break;default:v&&v(eA);break}},S);return(0,r.provide)("dui_bi_container",{executeEvent:lA}),(S,eA)=>{const U=(0,r.resolveComponent)("d-draggable");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{onClick:(0,r.withModifiers)(O,["stop"]),id:"j-bi-design-container",style:(0,r.normalizeStyle)(D.value)},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.layout,(K,b)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:K.id},[K.display?((0,r.openBlock)(),(0,r.createBlock)(U,{key:0,id:K.id,left:K.config.x,top:K.config.y,width:K.config.w,height:K.config.h,scale:1/e.scale,step:1/e.scale,"active-flag":K.id==e.activedComponent.id,readonly:K.lock,"data-id":K.id,onFocus:R=>P(K),onBlur:H,"z-index":e.layout.length-b,"is-active-bg-transparent":!0},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(K.componentName),(0,r.mergeProps)({style:{width:(0,r.unref)(JA)(K.config.w),height:(0,r.unref)(JA)(K.config.h)}},{ref_for:!0},K.config,{"is-design":!0,ref_for:!0,ref:R=>J(R,K.id)}),null,16,["style"]))]),_:2},1032,["id","left","top","width","height","scale","step","active-flag","readonly","data-id","onFocus","z-index"])):(0,r.createCommentVNode)("",!0)],64))),128))],4)}}}),Ll=e0,t0=({data:e,actions:A,utils:t,inputParams:n,notRunActions:o})=>{const a=d=>e.filter(h=>h.source===d).map(h=>h.target),u=async d=>{d=d||"start";const h=e.find(g=>g.id===d);if(h.config.type==="start"){const g=a(d);for(let B=0;B<g.length;B++)await u(g[B])}else{const g=A[h.config.type];g&&await g(h.config,t,async B=>{if(B=B||{},B.nodeId=d,B.next!==!1){const w=a(B.nodeId);for(let m=0;m<w.length;m++)await u(w[m])}},n,B=>{o[B]={data:e,inputParams:n}})}};return{run:u}},n0=(0,r.defineComponent)({name:"DBiViewer",__name:"biViewer",props:{layout:{type:Array,default:()=>[]},indexPage:{type:Object,default:()=>({})},actions:{type:Object,default:()=>({})}},setup(e){const A=e,{apiUrl:t,token:n,httpGet:o,httpPost:a,httpPut:u,httpDelete:d,success:h,warning:g,error:B,info:w,useData:m}=(0,pe.useAppInject)(),{loadData:v,getData:y}=m(),I=(0,r.computed)(()=>A.layout),N=(0,r.ref)(),D=(0,r.ref)(1),P=(0,r.ref)(1),H=()=>{N.value&&O(N.value.offsetWidth,N.value.offsetHeight)},O=(k,T)=>{const M=A.indexPage.config?.w||1920,Y=A.indexPage.config?.h||1080,tA=A.indexPage.config?.screenFit||"1";tA==="1"?(P.value=k/M,D.value=P.value):tA==="2"?(D.value=T/Y,P.value=D.value):tA==="3"&&(P.value=k/M,D.value=T/Y)},sA=(0,r.computed)(()=>{const k={transform:`scale(${P.value}, ${D.value})`,transformOrigin:"left top",position:"relative",overflow:"hidden",width:JA(A.indexPage.config?.w||1920),height:JA(A.indexPage.config?.h||1080),backgroundColor:A.indexPage.config?.backgroundColor||"var(--j-color-bg-container)"};return A.indexPage.config?.backgroundImage&&(k.background=`url(${t}/system/annexesfile/${A.indexPage.config?.backgroundImage}?token=${n?.value}) 0% 0% / 100% 100% ${A.indexPage.config?.backgroundColor||"var(--j-color-bg-container)"}`),k}),J=(0,r.computed)(()=>({width:JA((A.indexPage.config?.w||1920)*P.value),height:JA((A.indexPage.config?.h||1080)*D.value)})),cA={},lA=(k,T)=>{k&&(cA[T]=k)},oA=new ResizeObserver(H);(0,r.onMounted)(()=>{I.value.forEach(k=>{k.$refs=cA[k.id]}),oA.observe(N.value)});const iA=async(k,T)=>{T.config.clickevent&&await S(JSON.parse(T.config?.clickevent),{param:{params:k}})},AA=async(k,T)=>{if(k&&k.trim()){k=`async (jcode) => {${k}}`;const{res:M,msg:Y,fn:tA}=(0,pe.getFunction)(k);if(M)return tA(R(T));B&&B(Y)}},S=async(k,T)=>{const{run:M}=t0({data:k,actions:A.actions,utils:{showLoading:pe.fullScreenLoading,executeEvent:AA},inputParams:T});await M()},eA=k=>cA[k]?.getValue()||[],U=(k,T=!0)=>{const M=I.value.find(({id:Y})=>Y===k);M&&(M.display=!T)},K=k=>I.value.find(({id:T})=>T===k)?.config||{},b=k=>{const T=I.value.find(({id:M})=>M===k);T?.$refs?.updateData&&T.$refs.updateData()},R=k=>(k.get=eA,k.setHide=U,k.getProps=K,k.refresh=b,k.getSourceData=async(T,M)=>(await v("dbsource",T,JSON.stringify(M),!1),y("dbsource",T,{params:M})),k.getDateNow=T=>(0,pe.formatToDateTime)(new Date,T||"YYYY-MM-DD HH:mm:ss"),k.httpGet=o,k.httpPost=a,k.httpPut=u,k.httpDelete=d,k.loading=()=>{(0,pe.fullScreenLoading)(!0)},k.hideLoading=()=>{(0,pe.fullScreenLoading)(!1)},k.message=(T,M)=>{switch(M){case"success":h&&h(T);break;case"warning":g&&g(T);break;case"error":B&&B(T);break;case"info":w&&w(T);break;default:w&&w(T);break}},k);return(0,r.provide)("dui_bi_viewer",{executeEvent:AA}),(k,T)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"j-block",style:(0,r.normalizeStyle)({"overflow-y":!e.indexPage.config?.screenFit||e.indexPage.config?.screenFit=="1"?"auto":"hidden","overflow-x":e.indexPage.config?.screenFit=="2"?"auto":"hidden"}),ref_key:"biViewer",ref:N},[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)(J.value)},[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)(sA.value)},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(I.value,(M,Y)=>(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(M.componentName),(0,r.mergeProps)({key:M.id,ref_for:!0,ref:tA=>lA(tA,M.id),style:{position:"absolute",width:(0,r.unref)(JA)(M.config.w),height:(0,r.unref)(JA)(M.config.h),top:(0,r.unref)(JA)(M.config.y),left:(0,r.unref)(JA)(M.config.x),zIndex:e.layout.length-Y}},{ref_for:!0},M.config,{"run-flow":S,onClick:tA=>iA(tA,M)}),null,16,["style","onClick"])),[[r.vShow,M.display!==!1]])),128))],4)],4)],4))}}),Tl=n0,r0={class:"j-bi-design"},o0={class:"j-bi-design-left"},i0={class:"j-block j-bi-design-layer-list"},s0=["onClick","data-id"],a0={class:"j-bi-design-layer-item-img"},l0=["src"],c0={class:"j-bi-design-layer-item-btns"},u0=["onClick"],d0=["onClick"],f0={class:"j-bi-design-component-list"},g0=["onClick","onDragstart"],h0={class:"j-component-tool-name"},B0={class:"j-bi-design-right"},p0={class:"j-bi-design-title"},m0={style:{margin:"0","font-size":"14px"}},w0={class:"j-bi-design-panel"},C0=(0,r.defineComponent)({name:"DBiDesign",__name:"biDesign",props:{components:{type:Array,default:()=>[]},componentConfigs:{type:Object,default:()=>({})},componentInit:Function,componentConfigInit:Function,componentConfigChange:Function,flowComponents:{type:Array,default:()=>[]},flowInit:Function,flowComponentConfigInit:Function,flowComponentConfigChange:Function,flowComponentConfigs:{type:Object,default:()=>({})},actions:{type:Object,default:()=>({})},imgUrlPrefix:{type:String,default:"/"},scale:{type:Number,default:-1}},emits:["update:scale"],setup(e,{expose:A,emit:t}){const{t:n}=(0,pe.useAppInject)(),o=e,a=t,u=(0,r.ref)(!1),d=(0,r.ref)({name:"页面",id:"indexPage",type:"indexPage",layerId:"0",config:{},display:!0,lock:!1,componentName:""});o.componentInit&&(d.value.config=o.componentInit("indexPage")||{},d.value.config.id="indexPage");const h=(0,r.computed)(()=>{const rA={};return o.components.forEach(aA=>{aA.children.forEach(_A=>{rA[_A.type]=_A})}),rA}),g=(0,r.ref)(["layers"]),B=o.components.length;for(let rA=0;rA<B;rA++)g.value.push(rA);const w=(0,r.ref)(),m=(0,r.ref)([]),v=(0,r.ref)(!1),y=(0,r.ref)(0),I=(0,r.ref)(0),N=(0,r.ref)(""),D=(0,r.computed)(()=>N.value===""?{}:m.value.find(rA=>rA.id===N.value)),P=()=>{v.value=!1,N.value=""},H=rA=>{rA.target.className.indexOf("j-bi-design-contentmenu__btn")===-1&&P(),window.removeEventListener("mousedown",H)},O=rA=>{let{target:aA}=rA,_A=!1;aA.className.indexOf&&aA.className.indexOf("d-draggable__mask")>-1?(aA=aA.parentNode.parentNode,_A=!0):aA.className.indexOf&&aA.className.indexOf("j-bi-design-layer-item")>-1?_A=!0:aA.parentNode.className.indexOf&&aA.parentNode.className.indexOf("j-bi-design-layer-item")>-1?(aA=aA.parentNode,_A=!0):aA.parentNode.parentNode.className.indexOf("j-bi-design-layer-item")>-1&&(aA=aA.parentNode.parentNode,_A=!0),_A&&(rA.preventDefault(),rA.stopPropagation(),y.value=rA.clientX,I.value=rA.clientY-8,I.value+260>document.body.clientHeight&&(I.value=document.body.clientHeight-260),N.value=aA.getAttribute("data-id"),v.value=!0,window.addEventListener("mousedown",H))},sA=(0,r.ref)(""),J=(0,r.computed)(()=>sA.value?m.value.filter(rA=>rA.config.label.indexOf(sA.value)>-1):m.value),cA=rA=>{rA.display=!rA.display,P()},lA=rA=>{rA.lock=!rA.lock,P(),rA.lock&&rA.id===w.value?.id&&_e(d.value)},oA=(rA,aA)=>{if(!aA||m.value.length<1){P();return}const _A=m.value.findIndex(pA=>pA.id===aA.id);switch(rA){case"up":if(_A===-1||_A===0)break;m.value=iA(m.value,_A,_A-1);break;case"down":if(_A===-1||_A===m.value.length-1)break;m.value=iA(m.value,_A,_A+1);break;case"top":if(_A!==-1){const[pA]=m.value.splice(_A,1);m.value.unshift(pA)}break;case"bottom":if(_A!==-1){const[pA]=m.value.splice(_A,1);m.value.push(pA)}break}P()},iA=(rA,aA,_A)=>{const pA=rA[aA];return rA[aA]=rA[_A],rA[_A]=pA,rA},AA=(0,r.ref)(),S=(0,r.ref)(20),eA=(0,r.ref)(document.body.clientWidth),U=(0,r.ref)(document.body.clientHeight),K=(0,r.ref)(0),b=(0,r.ref)(0),R=(0,r.ref)({bgColor:"rgba(225,225,225, 0)",longfgColor:"rgba(0, 0, 0, 0.45)",shortfgColor:"rgba(0, 0, 0, 0.45)",fontColor:"rgba(0, 0, 0, 0.65)",shadowColor:"rgba(225,225,225, 0)",lineColor:"var(--j-color-primary)",borderColor:"#d9d9d9",cornerActiveColor:"var(--j-color-primary)"}),k=(0,r.computed)(()=>({x:0,y:0,width:eA.value,height:U.value})),T=(0,r.ref)({h:[],v:[]}),M=(0,r.ref)(),Y=(0,r.ref)(),tA=(0,r.ref)(!1),BA=(0,r.ref)({}),bA=(0,r.ref)(100),nA=(0,r.computed)({set(rA){bA.value=rA,a("update:scale",rA)},get(){let{scale:rA}=o;return rA===-1&&(rA=bA.value),rA/100}}),W=(0,r.computed)(()=>(d.value.config.h||1080)*2),$=(0,r.computed)(()=>(d.value.config.w||1920)*2),uA=()=>{AA.value&&(eA.value=AA.value.offsetWidth-S.value,U.value=AA.value.offsetHeight-S.value,M.value.scrollLeft=$.value/2-S.value,M.value.scrollTop=W.value/2-S.value,wA())},wA=()=>{const rA=d.value.config.w||1920;eA.value<rA&&(nA.value=eA.value*100/rA)},HA=()=>{document.onkeydown=rA=>{if(rA.target?.nodeName==="TEXTAREA"||rA.target?.nodeName==="INPUT")return;const aA=rA.keyCode||rA.which;aA===32&&(rA.preventDefault(),BA.value.space=!0),aA===17&&(rA.preventDefault(),BA.value.ctrl=!0)},document.onkeyup=()=>{BA.value={}}},xA=rA=>{BA.value.space&&(tA.value=!0,window.stardragEvent=rA,window.startSlideX=M.value.scrollLeft,window.startSlideY=M.value.scrollTop,document.onmousemove=aA=>{if(tA.value){const _A=aA.clientX-window.stardragEvent.clientX,pA=aA.clientY-window.stardragEvent.clientY;M.value.scrollLeft=window.startSlideX-_A,M.value.scrollTop=window.startSlideY-pA}},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,tA.value=!1})},gA=()=>{const rA=M.value.getBoundingClientRect(),aA=Y.value.getBoundingClientRect(),_A=nA.value,pA=(rA.left+S.value-aA.left)/_A,Ce=(rA.top+S.value-aA.top)/_A;K.value=pA>>0,b.value=Ce>>0},Z=rA=>{if(rA.preventDefault(),rA.ctrlKey||rA.metaKey){const aA=nA.value;nA.value=parseFloat(Math.max(.2,aA-rA.deltaY/500).toFixed(2))*100,aA!==nA.value&&(0,r.nextTick)(()=>{gA()})}},_=rA=>{rA.forEach(aA=>{aA.type==="d-input-flow"&&(aA.config=aA.config||{},aA.config.flowComponents=o.flowComponents,aA.config.flowInit=o.flowInit,aA.config.flowComponentConfigInit=_A=>{o.flowComponentConfigInit&&(_A.designComponents=m.value,_A.component=w.value,o.flowComponentConfigInit(_A))},aA.config.flowComponentConfigs=o.flowComponentConfigs,aA.config.flowComponentConfigChange=o.flowComponentConfigChange),aA.children&&_(aA.children)})},F=(0,r.ref)(),x=(0,r.computed)(()=>w.value?.id!="indexPage"?w.value?`${w.value.name}-${w.value.id}`:"":w.value?`${w.value.name}`:""),z={};Object.keys(o.componentConfigs).forEach(rA=>{const aA=[{id:"label",type:"j-input",config:{label:"名称"}},{id:"w",type:"j-number",config:{span:12,label:"宽度",min:0}},{id:"h",type:"j-number",config:{span:12,label:"高度",min:0}},{id:"x",type:"j-number",config:{span:12,label:"x轴",min:0}},{id:"y",type:"j-number",config:{span:12,label:"y轴",min:0}}],_A={type:"j-collapse",config:{defaultValue:[]},children:[]};rA!=="indexPage"&&_A.children?.push({config:{label:"基础信息"},children:[...aA]}),_A.children?.push(...o.componentConfigs[rA]),_A.children?.forEach((pA,Ce)=>{_A.config?.defaultValue.push(`_collapse${Ce}`)}),_(_A.children||[]),z[rA]=[_A]});let G,dA=0;const fA=async rA=>{if(rA!==dA)return;const aA=F.value;if(!aA||typeof aA.init!="function")return;const _A=w.value;if(!_A){try{await aA.init([])}catch{return}return}const pA=z[_A.type];try{await aA.init(pA||[],_A.config)}catch{return}rA===dA&&o.componentConfigInit&&o.componentConfigInit(_A.type,{configRef:F,components:m.value,configData:_A.config})},QA=()=>{const rA=++dA;G!==void 0&&(cancelAnimationFrame(G),G=void 0);const aA=globalThis.requestAnimationFrame;typeof aA=="function"?G=aA(()=>{G=void 0,fA(rA)}):setTimeout(()=>fA(rA),0)},EA=rA=>{w.value&&o.componentConfigChange&&(w.value.id==="indexPage"&&(rA.id==="w"||rA.id==="h")&&(0,r.nextTick)(()=>{uA()}),o.componentConfigChange(w.value.type,{configRef:F,configData:w.value.config,...rA}))},NA=rA=>o.componentInit?o.componentInit(rA)||{}:{},OA=(0,r.ref)(!1),KA=(0,r.ref)(null),ee=(rA,aA)=>{OA.value=!0,KA.value=aA,rA.dataTransfer&&(rA.dataTransfer.effectAllowed="copy",rA.dataTransfer.dropEffect="copy",rA.dataTransfer.setData("text/plain",aA.type||""))},qA=(rA,aA,_A)=>{const pA={name:rA.name,id:gt(),type:rA.type,layerId:"0",config:NA(rA.type),display:!0,lock:!1,componentName:rA.componentName};pA.config.id=pA.id,pA.config.label=rA.name,pA.config.h=rA.h||100,pA.config.w=rA.w||100,pA.config.x=aA,pA.config.y=_A,m.value.unshift(pA),w.value=pA,QA()},it=rA=>{OA.value||qA(rA,0,0)},Ke=()=>{KA.value=null,setTimeout(()=>{OA.value=!1},0)},wt=rA=>{const aA=KA.value;if(!aA){Ke();return}const _A=document.getElementById("j-bi-design-container");if(!_A){Ke();return}const pA=_A.getBoundingClientRect(),Ce=rA.clientX,at=rA.clientY;if(!(Ce>=pA.left&&Ce<=pA.right&&at>=pA.top&&at<=pA.bottom)){Ke();return}const He=Ce-pA.left,Kt=at-pA.top,an=aA?.w||100,ln=aA?.h||100;qA(aA,He/nA.value-an/2,Kt/nA.value-ln/2),Ke()},Si=()=>{KA.value&&Ke()},st=rA=>{m.value=m.value.filter(aA=>aA.id!==rA),w.value.id===rA&&(w.value=d.value,QA()),P()},xi=rA=>{const aA=En(rA),_A=gt();aA.id=_A,aA.config.id=_A,m.value.push(aA),w.value=aA,QA(),P()},_e=rA=>{w.value?.id!==rA.id&&(w.value=rA,QA())},on=({left:rA,top:aA,width:_A,height:pA})=>{w.value&&(w.value.config.x=rA,w.value.config.y=aA,w.value.config.w=_A,w.value.config.h=pA,F.value.setFormData({main:{x:rA,y:aA,w:_A,h:pA}}))},zn=new ResizeObserver(uA);(0,r.onMounted)(()=>{zn.observe(AA.value),HA(),_e(d.value)});const sn=()=>({ver:"1.0.0",components:En(m.value),page:d.value}),Xn=rA=>{rA.components?.forEach(aA=>{aA.componentName=h.value[aA.type].componentName}),m.value=rA.components||[],d.value=rA.page||d.value,_e(d.value)},Mt=()=>{m.value=[],_e(d.value)},$n=()=>new Promise(rA=>{(0,A0.default)(Y.value,{useCORS:!0,backgroundColor:null,allowTaint:!0}).then(aA=>{if(aA.width!==0&&aA.height!==0){rA(aA.toDataURL("image/png"));return}rA("")})}),Ot=(0,r.ref)(),Ct=(0,r.ref)({});return A({clear:Mt,setData:Xn,getData:sn,getImg:$n,preview:()=>{Ct.value=sn(),Ot.value.open("大屏预览","full")},setShowLayer:rA=>{u.value=rA,rA||P()}}),(rA,aA)=>{const _A=(0,r.resolveComponent)("el-divider"),pA=(0,r.resolveComponent)("j-icon"),Ce=(0,r.resolveComponent)("el-button"),at=(0,r.resolveComponent)("el-input"),He=(0,r.resolveComponent)("el-text"),Kt=(0,r.resolveComponent)("el-space"),an=(0,r.resolveComponent)("el-collapse-item"),ln=(0,r.resolveComponent)("el-collapse"),Ni=(0,r.resolveComponent)("j-form"),qr=(0,r.resolveComponent)("j-layer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",r0,[v.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"j-bi-design-contentmenu",style:(0,r.normalizeStyle)({left:y.value+"px",top:I.value+"px"})},[(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:aA[0]||(aA[0]=$A=>xi(D.value))},(0,r.toDisplayString)((0,r.unref)(n)("复制")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:aA[1]||(aA[1]=$A=>cA(D.value))},(0,r.toDisplayString)(D.value&&D.value.display?"隐藏":"显示"),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:aA[2]||(aA[2]=$A=>lA(D.value))},(0,r.toDisplayString)(D.value&&D.value.lock?"解锁":"锁定"),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:aA[3]||(aA[3]=$A=>oA("top",D.value))},(0,r.toDisplayString)((0,r.unref)(n)("置顶图层")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:aA[4]||(aA[4]=$A=>oA("bottom",D.value))},(0,r.toDisplayString)((0,r.unref)(n)("置底图层")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:aA[5]||(aA[5]=$A=>oA("up",D.value))},(0,r.toDisplayString)((0,r.unref)(n)("上移一层")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:aA[6]||(aA[6]=$A=>oA("down",D.value))},(0,r.toDisplayString)((0,r.unref)(n)("下移一层")),1),(0,r.createVNode)(_A,{style:{margin:"4px 0"}}),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",style:{color:"var(--j-color-danger)"},onClick:aA[7]||(aA[7]=$A=>st(D.value?.id))},(0,r.toDisplayString)((0,r.unref)(n)("删除")),1)],4)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",o0,[u.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"j-bi-design-layer-panel",onContextmenu:(0,r.withModifiers)(O,["prevent"])},[(0,r.createVNode)(at,{modelValue:sA.value,"onUpdate:modelValue":aA[8]||(aA[8]=$A=>sA.value=$A),class:"search-input",placeholder:"搜索图层"},{append:(0,r.withCtx)(()=>[(0,r.createVNode)(Ce,null,{icon:(0,r.withCtx)(()=>[(0,r.createVNode)(pA,{icon:"ep:search"})]),_:1})]),_:1},8,["modelValue"]),(0,r.createElementVNode)("div",i0,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(J.value,($A,cn)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:cn},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["j-bi-design-layer-item",{active:w.value.id==$A.id}]),onClick:(0,r.withModifiers)(Re=>_e($A),["stop"]),"data-id":$A.id},[(0,r.createElementVNode)("div",a0,[h.value[$A.type]?.icon?((0,r.openBlock)(),(0,r.createBlock)(pA,{key:0,icon:h.value[$A.type].icon,size:16},null,8,["icon"])):((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:1,style:{height:"100%"},src:`${e.imgUrlPrefix}${h.value[$A.type]?.img}`},null,8,l0))]),(0,r.createVNode)(He,{truncated:""},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)((0,r.unref)(n)($A.config.label)),1)]),_:2},1024),(0,r.createElementVNode)("div",c0,[(0,r.createVNode)(Kt,{size:2},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["j-bi-design-layer-item-btn",{active:!$A.display}]),onClick:(0,r.withModifiers)(Re=>cA($A),["stop"])},[(0,r.createVNode)(pA,{icon:"mdi:eye-off-outline"})],10,u0),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["j-bi-design-layer-item-btn",{active:$A.lock}]),onClick:(0,r.withModifiers)(Re=>lA($A),["stop"])},[(0,r.createVNode)(pA,{icon:"mdi:lock-outline"})],10,d0)]),_:2},1024)])],10,s0)]))),128))])],32)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",f0,[(0,r.createVNode)(ln,{modelValue:g.value,"onUpdate:modelValue":aA[9]||(aA[9]=$A=>g.value=$A)},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.components,($A,cn)=>((0,r.openBlock)(),(0,r.createBlock)(an,{key:cn,title:(0,r.unref)(n)($A.name),name:cn},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)($A.children,(Re,Ao)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:Ao,class:"j-component-tool",onClick:(0,r.withModifiers)(eo=>it(Re),["stop"]),onDragstart:eo=>ee(eo,Re),onDragend:Si,draggable:"true"},[(0,r.createVNode)(pA,{class:"j-component-tool-icon",icon:Re.icon,size:14},null,8,["icon"]),(0,r.createElementVNode)("div",h0,(0,r.toDisplayString)((0,r.unref)(n)(Re.name)),1)],40,g0))),128))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])]),(0,r.createElementVNode)("div",{class:"j-bi-design-mid",ref_key:"contentRef",ref:AA},[((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(jw),{key:nA.value,thick:S.value,scale:nA.value,width:eA.value,height:U.value,"start-x":K.value,"start-y":b.value,palette:R.value,shadow:k.value,"hor-line-arr":T.value.h,"ver-line-arr":T.value.v},null,8,["thick","scale","width","height","start-x","start-y","palette","shadow","hor-line-arr","ver-line-arr"])),(0,r.createElementVNode)("div",{ref_key:"screensRef",ref:M,class:"j-bi-design-main",style:(0,r.normalizeStyle)({cursor:tA.value?"pointer":""}),onMousedown:(0,r.withModifiers)(xA,["stop"]),onWheel:Z,onScroll:gA},[(0,r.createElementVNode)("div",{class:"screen-container",style:(0,r.normalizeStyle)({height:W.value+"px",width:$.value+"px"}),onClick:aA[11]||(aA[11]=(0,r.withModifiers)($A=>_e(d.value),["stop"]))},[(0,r.createElementVNode)("div",{ref_key:"canvasRef",ref:Y,class:"canvas",onContextmenu:(0,r.withModifiers)(O,["prevent"])},[(0,r.createVNode)(Ll,{layout:m.value,"index-page":d.value,"actived-component":w.value,scale:nA.value,onDragover:aA[10]||(aA[10]=(0,r.withModifiers)(()=>{},["prevent"])),onDrop:(0,r.withModifiers)(wt,["stop","prevent"]),onSelect:_e,onMove:on},null,8,["layout","index-page","actived-component","scale"])],544)],4)],36)],512),(0,r.createElementVNode)("div",B0,[(0,r.createElementVNode)("div",p0,[(0,r.createElementVNode)("span",m0,(0,r.toDisplayString)(`${x.value}`),1)]),(0,r.createElementVNode)("div",w0,[(0,r.createVNode)(Ni,{config:{labelPosition:"top",size:"small"},style:{padding:"0"},ref_key:"configRef",ref:F,onChange:EA},null,512)])]),(0,r.createVNode)(qr,{ref_key:"previewFormLayerRef",ref:Ot,destroyOnClose:!0,hasHeader:!1},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(Tl,{indexPage:Ct.value.page,layout:Ct.value.components,actions:e.actions},null,8,["indexPage","layout","actions"])]),_:1},512)])}}}),v0=C0,kl=ft(v0,[Ll,Tl]),y0=[Cs,Ro,Vo,Po,Go,hl,Bl,Ql,El,_l,Dl,kl],Ml=new WeakSet,Q0=e=>{Ml.has(e)||(Ml.add(e),y0.forEach(A=>{const t=A.name;t&&e.component(t,A)}))},E0={install:Q0};ne.DBiDesign=kl,ne.DDrag=Cs,ne.DDraggable=El,ne.DFlowDesign=hl,ne.DFormDesign=_l,ne.DIndexDesign=Dl,ne.DInputFlow=Bl,ne.DLayout=Ql,ne.default=E0,ne.dragContainer=Vo,ne.dragFormList=Po,ne.dragIndexList=Go,ne.dragTool=Ro,ne.toFormDesignSchema=Ul,ne.toFormSaveSchema=Jr,ne.toFormSchema=Fl});
|