@a2simcode/dui 0.0.45 → 0.0.47
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/components-dui/biDesign/index.d.ts +3 -0
- package/dist/components-dui/biDesign/src/biDesign.vue.d.ts +5 -4
- package/dist/components-dui/draggable/index.d.ts +20 -140
- package/dist/components-dui/draggable/src/draggable.vue.d.ts +15 -56
- package/dist/dui.css +1 -1
- package/dist/dui.es.js +5736 -5785
- package/dist/dui.umd.js +8 -8
- package/package.json +2 -2
package/dist/dui.umd.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(te,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):(te=typeof globalThis<"u"?globalThis:te||self,r(te.DuiUI={},te.Vue,te.SimCodeUI))})(this,function(te,r,me){Object.defineProperties(te,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var Cu=Object.create,nr=Object.defineProperty,yu=Object.getOwnPropertyDescriptor,vu=Object.getOwnPropertyNames,Qu=Object.getPrototypeOf,Eu=Object.prototype.hasOwnProperty,Fu=(e,A)=>()=>(A||(e((A={exports:{}}).exports,A),e=null),A.exports),Uu=(e,A)=>{let t={};for(var n in e)nr(t,n,{get:e[n],enumerable:!0});return A||nr(t,Symbol.toStringTag,{value:"Module"}),t},Io=(e,A,t,n)=>{if(A&&typeof A=="object"||typeof A=="function")for(var o=vu(A),a=0,u=o.length,d;a<u;a++)d=o[a],!Eu.call(e,d)&&d!==t&&nr(e,d,{get:(h=>A[h]).bind(null,d),enumerable:!(n=yu(A,d))||n.enumerable});return e},bu=(e,A,t)=>(Io(e,A,"default"),t&&Io(t,A,"default")),is=(e,A,t)=>(t=e!=null?Cu(Qu(e)):{},Io(A||!e||!e.__esModule?nr(t,"default",{value:e,enumerable:!0}):t,e));r=is(r,1);var dt=(e,A)=>(e.install=t=>{t.component(e.name,e),A&&A.forEach(n=>{t.component(n.name,n)})},e),ft=(e="")=>{const A=Date.now(),t=Math.floor(Math.random()*1e9);return e===""?String(t)+String(A):e+"_"+t+String(A)},mn=e=>{if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(mn);const A={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=mn(e[t]));return A},Hu=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]},_o={},Iu=(e,A,t)=>{t[e]=t[e]||{};const n=ft();return t[e][n]=A,n},_u=(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},Su=(e,A,t)=>{if(A){const n=t[e];n&&delete n[A]}else delete t[e]},ss=(e,A)=>Iu(e,A,_o),ne=(e,A)=>_u(e,A,_o),xu=(e,A)=>{Su(e,A,_o)},as=(e,A,t,n,o,a)=>{const u=A.id,d=A.level,{getDesignLocals:h,selectComponent:g,getComponent:B,isMyChildComponent:w,addComponent:m,deleteComponent:y,getParentComponents:Q,removeComponentFromContainer:U,addComponentToContainer:T,copyComponent:M,activedComponent:R,top:H}=(0,r.inject)("d-drag-design-provide",{}),P=[],iA=(0,r.ref)(!1),Z=(0,r.ref)(!1),aA=(0,r.ref)(!1),lA=(0,r.ref)(!1),rA=(0,r.ref)(!1),nA={id:"",type:""},j=(0,r.ref)(!1),S=(0,r.ref)(!1);let eA="",I=null;const X=$=>{if(eA===$)return I;eA=$;const{top:oA,left:BA,width:wA,height:bA}=e.value.getBoundingClientRect();return I=[{x:BA,y:oA},{x:BA+wA,y:oA},{x:BA+wA,y:oA+bA},{x:BA,y:oA+bA}],I},F=($,oA,BA)=>{let wA=oA-BA[0].y;wA<0&&(wA=-wA);let bA=oA-BA[3].y;bA<0&&(bA=-bA);let uA=$-BA[0].x;uA<0&&(uA=-uA);let hA=$-BA[1].x;return hA<0&&(hA=-hA),{ly:wA>bA?bA:wA,typey:wA>bA?"bottom":"top",lx:uA>hA?hA:uA,lallx:uA+hA}},x=($,oA,BA)=>$>=BA[0].x&&$<=BA[1].x&&oA>=BA[0].y&&oA<=BA[3].y,N=()=>{if(o){ne("dragClick",{id:u});return}if(!Z.value){if(g(u),d!==0){const $=e.value.getBoundingClientRect(),oA=h();$.top-oA.top<22?lA.value=!0:lA.value=!1}Z.value=!0,ne("dragClick",{id:u})}},L=$=>{const oA=y($);oA&&(0,r.nextTick)(()=>{ne("dragClick",{id:oA})})},O=()=>{nA.id="",nA.type="",d===0&&(rA.value=!1)},J=()=>{ne("mouseEnterOrLeave",{id:u,type:"enter"})},tA=()=>{ne("mouseEnterOrLeave",{id:u,type:"leave"})},dA=$=>{ne("dragClick",{id:$})},UA={mouseEnterOrLeave:({id:$,type:oA})=>{oA==="enter"?P.push($):P.length>0&&P.splice(P.length-1,1);const BA=P.length;BA>0&&u===P[BA-1]?iA.value=!0:iA.value=!1},dragAciveChild:({type:$,id:oA})=>{oA===u?$==="top"?(j.value=!0,S.value=!1):(S.value=!0,j.value=!1):(S.value=!1,j.value=!1)},dragClick({id:$,isAgain:oA}){$!==u?Z.value=!1:(oA&&(Z.value=!1),N())}};UA[`dragGetChildDistance_${u}`]=({dragX:$,dragY:oA,moveId:BA})=>F($,oA,X(BA));const G={isInContainer({x:$,y:oA,id:BA,moveId:wA}){if(u===BA||w(BA,u))return aA.value=!1,{isIn:!1,level:d,id:u,groupId:a};const bA=X(wA);if(x($,oA,bA))return d===0&&(rA.value=!0),{isIn:!0,level:d,id:u,groupId:a};if(d===0){const{ly:uA,lx:hA}=F($,oA,bA);if(uA<20&&hA<20)return rA.value=!0,{isIn:!0,level:d,id:u,groupId:a};rA.value=!1}return aA.value=!1,{isIn:!1,level:d,id:u,groupId:a}},dragActiveContainer:({containerId:$,containerGroupId:oA,dragX:BA,dragY:wA,moveId:bA})=>{if($===u&&oA===a)if(aA.value=!0,n&&n.value.length>0){let uA={ly:9999999,lx:0,lallx:0,id:"",typey:""};n?.value.forEach(hA=>{if(a&&hA.groupId!==a)return;const _=ne(`dragGetChildDistance_${hA.id}`,{dragX:BA,dragY:wA,moveId:bA})[0];_&&(uA.ly>_.ly||uA.ly===_.ly&&(uA.lx>_.lx||uA.lx===_.lx&&uA.lallx>_.lallx))&&(uA=_,uA.id=hA.id)}),nA.id=uA.id,nA.type=uA.typey,ne("dragAciveChild",{id:uA.id,type:uA.typey})}else ne("dragAciveChild",{id:""});else aA.value=!1},dragAdd:$=>{if(aA.value){let oA=n?.value.length||0;nA.id!==""&&nA.id!==void 0&&(oA=n?.value.findIndex(BA=>BA.id===nA.id)||0,nA.type==="bottom"&&(oA+=1)),m($,u,oA,a),aA.value=!1}O()},dragAddByClick:$=>{if(!R.value&&u===H.id||R.value?.id===u||R.value?.containerId===u&&R.value?.dragType!=="container"){const oA=m($,u,n?.value.length||0,a,!0);oA&&$.config&&Object.keys($.config).forEach(BA=>{oA.config[BA]=$.config[BA]})}},dragUpdate($){if(aA.value){const oA=B($);if(oA.level=d+1,nA.id!==oA.id){U(oA.containerId,$);let BA=n?.value.findIndex(wA=>wA.id===nA.id)||0;nA.type==="bottom"&&(BA+=1),T(oA,u,BA,a)}aA.value=!1,(0,r.nextTick)(()=>{ne("dragClick",{id:oA.id,isAgain:!0})})}O()}},Y={};return(0,r.onMounted)(()=>{(!o||t!=="container")&&Object.keys(UA).forEach($=>{Y[$]=ss($,UA[$])}),t==="container"&&Object.keys(G).forEach($=>{Y[$]=ss($,G[$])}),A.isNewAdd&&(0,r.nextTick)(()=>{N(),delete A.isNewAdd})}),(0,r.onUnmounted)(()=>{Object.keys(Y).forEach($=>{xu($,Y[$])})}),{onMouseenter:J,onMouseleave:tA,activeComponent:N,handleComponentClick:dA,deleteComponentByClick:L,copyComponent:M,getParentComponents:Q,isBottomToolBar:lA,isHover:iA,isSelect:Z,isToContainer:aA,isMoveingInTopLevel:rA,isTopActive:j,isBottomActive:S}},ls=(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=(y,Q)=>{n!==!0&&(n=!0,setTimeout(()=>{y(),n=!1},Q))},a=(0,r.ref)(!1),u=(y,Q,U)=>{const T=document.createElement("div");return T.id=t.dragElementId,T.innerText=y,T.className="d-drag-move",T.style.top=`${Q}px`,T.style.left=`${U}px`,document.body.appendChild(T),T},d=()=>{document.onmousemove=null,document.onmouseup=null,a.value=!1,ne("dragAciveChild",{id:""})},h=()=>{d(),t.dragElement&&(t.dragElement.remove(),t.dragElement=null,A?ne("dragAdd",e):ne("dragUpdate",e.id))},g=y=>{const{clientY:Q,clientX:U}=y;if(!t.dragElement){const T=Math.abs(t.x-U),M=Math.abs(t.y-Q);if(T<=1&&M<=1)return;a.value=!0,t.dragElement=u(e.name,Q-11,U-32)}t.dragElement.style.top=`${Q-11}px`,t.dragElement.style.left=`${U-32}px`,t.clientX=U,t.clientY=Q,o(()=>{if(!a.value)return;const T=ne("isInContainer",{x:U,y:Q,id:e.id,moveId:t.id});t.toContainerLevel=-1,t.toContainerId="",t.groupId="",T.forEach(({level:M,id:R,isIn:H,groupId:P})=>{H&&t.toContainerLevel<M&&(t.toContainerLevel=M,t.toContainerId=R,t.groupId=P)}),t.toContainerId!==""?ne("dragActiveContainer",{containerId:t.toContainerId,containerGroupId:t.groupId,dragX:U,dragY:Q,moveId:t.id}):ne("dragAciveChild",{id:""})},100)};return{onContextmenu:()=>{d()},onMousedown:y=>{t.x=y.clientX,t.y=y.clientY,t.id=ft(),document.onmouseup=h,document.onmousemove=g},onClick:()=>{ne("dragAddByClick",e)},moveActive:a}},Du={class:"d-drag-btns-pname"},Nu={key:0,class:"d-drag-mask"},Lu=(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:y,isBottomToolBar:Q}=as(t,A.componentData,"component"),{onContextmenu:U,onMousedown:T,moveActive:M}=ls(A.componentData,!1);return(R,H)=>{const P=(0,r.resolveComponent)("j-button"),iA=(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)(Q),active:(0,r.unref)(M),isTopActive:(0,r.unref)(m),isBottomActive:(0,r.unref)(y)}])},[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]=(...Z)=>(0,r.unref)(n)&&(0,r.unref)(n)(...Z)),onMouseleave:H[5]||(H[5]=(...Z)=>(0,r.unref)(o)&&(0,r.unref)(o)(...Z))},[(0,r.createVNode)(iA,{size:4},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",{class:"d-drag-btns-names",onClick:(0,r.withModifiers)(()=>{},["stop"])},[(0,r.createVNode)(P,{class:"d-drag-btn",type:"primary",size:"small",label:e.componentData.name},null,8,["label"]),(0,r.createElementVNode)("div",Du,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)((0,r.unref)(g)(e.componentData.containerId),Z=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:Z.id},[(0,r.createVNode)(P,{class:"d-drag-btn",type:"primary",size:"small",label:Z.name,onClick:aA=>(0,r.unref)(u)(Z.id)},null,8,["label","onClick"])]))),128))])]),(0,r.createVNode)(P,{class:"d-drag-btn",type:"primary",size:"small",icon:"mdi:content-copy",onClick:H[0]||(H[0]=(0,r.withModifiers)(Z=>(0,r.unref)(h)(e.componentData.id),["stop"]))}),(0,r.createElementVNode)("div",{onContextmenu:H[1]||(H[1]=(0,r.withModifiers)((...Z)=>(0,r.unref)(U)&&(0,r.unref)(U)(...Z),["stop"])),onMousedown:H[2]||(H[2]=(0,r.withModifiers)((...Z)=>(0,r.unref)(T)&&(0,r.unref)(T)(...Z),["stop"])),style:{display:"flex"}},[(0,r.createVNode)(P,{class:"d-drag-btn",type:"primary",size:"small",icon:"mdi:drag"})],32),(0,r.createVNode)(P,{class:"d-drag-btn",danger:"",type:"primary",size:"small",icon:"mdi:delete",onClick:H[3]||(H[3]=(0,r.withModifiers)(Z=>(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)((...Z)=>(0,r.unref)(a)&&(0,r.unref)(a)(...Z),["stop"])),onContextmenu:H[7]||(H[7]=(0,r.withModifiers)((...Z)=>(0,r.unref)(U)&&(0,r.unref)(U)(...Z),["stop"])),onMousedown:H[8]||(H[8]=(0,r.withModifiers)((...Z)=>(0,r.unref)(T)&&(0,r.unref)(T)(...Z),["stop"])),onMouseenter:H[9]||(H[9]=(...Z)=>(0,r.unref)(n)&&(0,r.unref)(n)(...Z)),onMouseleave:H[10]||(H[10]=(...Z)=>(0,r.unref)(o)&&(0,r.unref)(o)(...Z))},[(0,r.renderSlot)(R.$slots,"default"),e.isContainer?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",Nu))],544)],2)}}}),So=Lu,ku=(0,r.defineComponent)({name:"DDragTool",__name:"tool",props:{config:{}},setup(e){const{onContextmenu:A,onMousedown:t,onClick:n}=ls(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))}}),xo=ku,Tu={key:0,class:"d-drag-line"},Mu={key:1,class:"d-drag-btns"},Ou=(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}=as(t,A.componentData,"container",n,A.isComponentContainer,A.groupId),y=(0,r.computed)(()=>!!(n.value.findIndex(Q=>Q.groupId===A.groupId)===-1&&g.value));return(Q,U)=>{const T=(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:y.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",Tu)),e.isComponentContainer?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",Mu,[(0,r.createElementVNode)("div",{class:"d-drag-btns-names",onClick:(0,r.withModifiers)(()=>{},["stop"])},[(0,r.createVNode)(T,{class:"d-drag-btn",type:"primary",size:"small",label:e.componentData.name},null,8,["label"])])])),(0,r.createElementVNode)("div",{class:"d-drag-body",onClick:U[0]||(U[0]=(0,r.withModifiers)((...M)=>(0,r.unref)(u)&&(0,r.unref)(u)(...M),["stop"])),onMouseenter:U[1]||(U[1]=(...M)=>(0,r.unref)(o)&&(0,r.unref)(o)(...M)),onMouseleave:U[2]||(U[2]=(...M)=>(0,r.unref)(a)&&(0,r.unref)(a)(...M))},[(0,r.renderSlot)(Q.$slots,"default")],32)],2)}}}),Do=Ou,Ku=(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)(So,{"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)}}}),No=Ku,Ru=(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)(So,{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))}}),Lo=Ru,cs=dt(So,[xo,Do,No,Lo]);function wn(e){return(0,r.getCurrentScope)()?((0,r.onScopeDispose)(e),!0):!1}function Je(e){return typeof e=="function"?e():(0,r.unref)(e)}var Vu=typeof window<"u"&&typeof document<"u",Pu=e=>typeof e<"u",Gu=Object.prototype.toString,zu=e=>Gu.call(e)==="[object Object]",Xu=()=>{};function $u(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 us=e=>e();function Wu(e=us){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 ds(e,A=!1,t="Timeout"){return new Promise((n,o)=>{setTimeout(A?()=>o(t):n,e)})}function Yu(e,A,t={}){const{eventFilter:n=us,...o}=t;return(0,r.watch)(e,$u(n,A),o)}function zt(e,A,t={}){const{eventFilter:n,...o}=t,{eventFilter:a,pause:u,resume:d,isActive:h}=Wu(n);return{stop:Yu(e,A,{...o,eventFilter:a}),pause:u,resume:d,isActive:h}}function Ju(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 ko(e,A=!1){function t(w,{flush:m="sync",deep:y=!1,timeout:Q,throwOnTimeout:U}={}){let T=null;const M=[new Promise(R=>{T=(0,r.watch)(e,H=>{w(H)!==A&&(T?.(),R(H))},{flush:m,deep:y,immediate:!0})})];return Q!=null&&M.push(ds(Q,U).then(()=>Je(e)).finally(()=>T?.())),Promise.race(M)}function n(w,m){if(!(0,r.isRef)(w))return t(H=>H===w,m);const{flush:y="sync",deep:Q=!1,timeout:U,throwOnTimeout:T}=m??{};let M=null;const R=[new Promise(H=>{M=(0,r.watch)([e,w],([P,iA])=>{A!==(P===iA)&&(M?.(),H(P))},{flush:y,deep:Q,immediate:!0})})];return U!=null&&R.push(ds(U,T).then(()=>Je(e)).finally(()=>(M?.(),Je(e)))),Promise.race(R)}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(y=>{const Q=Array.from(y);return Q.includes(w)||Q.includes(Je(w))},m)}function g(w){return B(1,w)}function B(w=1,m){let y=-1;return t(()=>(y+=1,y>=w),m)}return Array.isArray(Je(e))?{toMatch:t,toContains:h,changed:g,changedTimes:B,get not(){return ko(e,!A)}}:{toMatch:t,toBe:n,toBeTruthy:o,toBeNull:a,toBeNaN:d,toBeUndefined:u,changed:g,changedTimes:B,get not(){return ko(e,!A)}}}function To(e){return ko(e)}function Zu(e){var A;const t=Je(e);return(A=t?.$el)!=null?A:t}var fs=Vu?window:void 0;function gs(...e){let A,t,n,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,n,o]=e,A=fs):[A,t,n,o]=e,!A)return Xu;Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);const a=[],u=()=>{a.forEach(B=>B()),a.length=0},d=(B,w,m,y)=>(B.addEventListener(w,m,y),()=>B.removeEventListener(w,m,y)),h=(0,r.watch)(()=>[Zu(A),Je(o)],([B,w])=>{if(u(),!B)return;const m=zu(w)?{...w}:w;a.push(...t.flatMap(y=>n.map(Q=>d(B,y,Q,m))))},{immediate:!0,flush:"post"}),g=()=>{h(),u()};return wn(g),g}function ju(e){return typeof e=="function"?e:typeof e=="string"?A=>A.key===e:Array.isArray(e)?A=>e.includes(A.key):()=>!0}function hs(...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=fs,eventName:a="keydown",passive:u=!1,dedupe:d=!1}=n,h=ju(A);return gs(o,a,B=>{B.repeat&&Je(d)||h(B)&&t(B)},u)}function qu(e){return JSON.parse(JSON.stringify(e))}function Mo(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,y=(0,r.getCurrentInstance)(),Q=t||y?.emit||((o=y?.$emit)==null?void 0:o.bind(y))||((u=(a=y?.proxy)==null?void 0:a.$emit)==null?void 0:u.bind(y?.proxy));let U=g;A||(A="modelValue"),U=U||`update:${A.toString()}`;const T=H=>d?typeof d=="function"?d(H):qu(H):H,M=()=>Pu(e[A])?T(e[A]):w,R=H=>{m?m(H)&&Q(U,H):Q(U,H)};if(h){const H=(0,r.ref)(M());let P=!1;return(0,r.watch)(()=>e[A],iA=>{P||(P=!0,H.value=T(iA),(0,r.nextTick)(()=>P=!1))}),(0,r.watch)(H,iA=>{!P&&(iA!==e[A]||B)&&R(iA)},{deep:B}),H}else return(0,r.computed)({get(){return M()},set(H){R(H)}})}var Ad={value:()=>{}};function rr(){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 or(t)}function or(e){this._=e}function ed(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}})}or.prototype=rr.prototype={constructor:or,on:function(e,A){var t=this._,n=ed(e+"",t),o,a=-1,u=n.length;if(arguments.length<2){for(;++a<u;)if((o=(e=n[a]).type)&&(o=td(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]=Bs(t[o],e.name,A);else if(A==null)for(o in t)t[o]=Bs(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 or(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 td(e,A){for(var t=0,n=e.length,o;t<n;++t)if((o=e[t]).name===A)return o.value}function Bs(e,A,t){for(var n=0,o=e.length;n<o;++n)if(e[n].name===A){e[n]=Ad,e=e.slice(0,n).concat(e.slice(n+1));break}return t!=null&&e.push({name:A,value:t}),e}var Oo="http://www.w3.org/1999/xhtml",ps={svg:"http://www.w3.org/2000/svg",xhtml:Oo,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ir(e){var A=e+="",t=A.indexOf(":");return t>=0&&(A=e.slice(0,t))!=="xmlns"&&(e=e.slice(t+1)),ps.hasOwnProperty(A)?{space:ps[A],local:e}:e}function nd(e){return function(){var A=this.ownerDocument,t=this.namespaceURI;return t===Oo&&A.documentElement.namespaceURI===Oo?A.createElement(e):A.createElementNS(t,e)}}function rd(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function ms(e){var A=ir(e);return(A.local?rd:nd)(A)}function od(){}function Ko(e){return e==null?od:function(){return this.querySelector(e)}}function id(e){typeof e!="function"&&(e=Ko(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 Ue(n,this._parents)}function sd(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function ad(){return[]}function ws(e){return e==null?ad:function(){return this.querySelectorAll(e)}}function ld(e){return function(){return sd(e.apply(this,arguments))}}function cd(e){typeof e=="function"?e=ld(e):e=ws(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 Ue(n,o)}function Cs(e){return function(){return this.matches(e)}}function ys(e){return function(A){return A.matches(e)}}var ud=Array.prototype.find;function dd(e){return function(){return ud.call(this.children,e)}}function fd(){return this.firstElementChild}function gd(e){return this.select(e==null?fd:dd(typeof e=="function"?e:ys(e)))}var hd=Array.prototype.filter;function Bd(){return Array.from(this.children)}function pd(e){return function(){return hd.call(this.children,e)}}function md(e){return this.selectAll(e==null?Bd:pd(typeof e=="function"?e:ys(e)))}function wd(e){typeof e!="function"&&(e=Cs(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 Ue(n,this._parents)}function vs(e){return new Array(e.length)}function Cd(){return new Ue(this._enter||this._groups.map(vs),this._parents)}function sr(e,A){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=A}sr.prototype={constructor:sr,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 yd(e){return function(){return e}}function vd(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 sr(e,a[u]);for(;u<h;++u)(d=A[u])&&(o[u]=d)}function Qd(e,A,t,n,o,a,u){var d,h,g=new Map,B=A.length,w=a.length,m=new Array(B),y;for(d=0;d<B;++d)(h=A[d])&&(m[d]=y=u.call(h,h.__data__,d,A)+"",g.has(y)?o[d]=h:g.set(y,h));for(d=0;d<w;++d)y=u.call(e,a[d],d,a)+"",(h=g.get(y))?(n[d]=h,h.__data__=a[d],g.delete(y)):t[d]=new sr(e,a[d]);for(d=0;d<B;++d)(h=A[d])&&g.get(m[d])===h&&(o[d]=h)}function Ed(e){return e.__data__}function Fd(e,A){if(!arguments.length)return Array.from(this,Ed);var t=A?Qd:vd,n=this._parents,o=this._groups;typeof e!="function"&&(e=yd(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,y=Ud(e.call(B,B&&B.__data__,g,n)),Q=y.length,U=d[g]=new Array(Q),T=u[g]=new Array(Q);t(B,w,U,T,h[g]=new Array(m),y,A);for(var M=0,R=0,H,P;M<Q;++M)if(H=U[M]){for(M>=R&&(R=M+1);!(P=T[R])&&++R<Q;);H._next=P||null}}return u=new Ue(u,n),u._enter=d,u._exit=h,u}function Ud(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function bd(){return new Ue(this._exit||this._groups.map(vs),this._parents)}function Hd(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 Id(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),y,Q=0;Q<w;++Q)(y=g[Q]||B[Q])&&(m[Q]=y);for(;h<o;++h)d[h]=t[h];return new Ue(d,this._parents)}function _d(){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 Sd(e){e||(e=xd);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 Ue(o,this._parents).order()}function xd(e,A){return e<A?-1:e>A?1:e>=A?0:NaN}function Dd(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Nd(){return Array.from(this)}function Ld(){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 Td(){return!this.node()}function Md(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 Od(e){return function(){this.removeAttribute(e)}}function Kd(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Rd(e,A){return function(){this.setAttribute(e,A)}}function Vd(e,A){return function(){this.setAttributeNS(e.space,e.local,A)}}function Pd(e,A){return function(){var t=A.apply(this,arguments);t==null?this.removeAttribute(e):this.setAttribute(e,t)}}function Gd(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 zd(e,A){var t=ir(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?Kd:Od:typeof A=="function"?t.local?Gd:Pd:t.local?Vd:Rd)(t,A))}function Qs(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Xd(e){return function(){this.style.removeProperty(e)}}function $d(e,A,t){return function(){this.style.setProperty(e,A,t)}}function Wd(e,A,t){return function(){var n=A.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,t)}}function Yd(e,A,t){return arguments.length>1?this.each((A==null?Xd:typeof A=="function"?Wd:$d)(e,A,t??"")):Xt(this.node(),e)}function Xt(e,A){return e.style.getPropertyValue(A)||Qs(e).getComputedStyle(e,null).getPropertyValue(A)}function Jd(e){return function(){delete this[e]}}function Zd(e,A){return function(){this[e]=A}}function jd(e,A){return function(){var t=A.apply(this,arguments);t==null?delete this[e]:this[e]=t}}function qd(e,A){return arguments.length>1?this.each((A==null?Jd:typeof A=="function"?jd:Zd)(e,A)):this.node()[e]}function Es(e){return e.trim().split(/^|\s+/)}function Ro(e){return e.classList||new Fs(e)}function Fs(e){this._node=e,this._names=Es(e.getAttribute("class")||"")}Fs.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 Us(e,A){for(var t=Ro(e),n=-1,o=A.length;++n<o;)t.add(A[n])}function bs(e,A){for(var t=Ro(e),n=-1,o=A.length;++n<o;)t.remove(A[n])}function Af(e){return function(){Us(this,e)}}function ef(e){return function(){bs(this,e)}}function tf(e,A){return function(){(A.apply(this,arguments)?Us:bs)(this,e)}}function nf(e,A){var t=Es(e+"");if(arguments.length<2){for(var n=Ro(this.node()),o=-1,a=t.length;++o<a;)if(!n.contains(t[o]))return!1;return!0}return this.each((typeof A=="function"?tf:A?Af:ef)(t,A))}function rf(){this.textContent=""}function of(e){return function(){this.textContent=e}}function sf(e){return function(){var A=e.apply(this,arguments);this.textContent=A??""}}function af(e){return arguments.length?this.each(e==null?rf:(typeof e=="function"?sf:of)(e)):this.node().textContent}function lf(){this.innerHTML=""}function cf(e){return function(){this.innerHTML=e}}function uf(e){return function(){var A=e.apply(this,arguments);this.innerHTML=A??""}}function df(e){return arguments.length?this.each(e==null?lf:(typeof e=="function"?uf:cf)(e)):this.node().innerHTML}function ff(){this.nextSibling&&this.parentNode.appendChild(this)}function gf(){return this.each(ff)}function hf(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Bf(){return this.each(hf)}function pf(e){var A=typeof e=="function"?e:ms(e);return this.select(function(){return this.appendChild(A.apply(this,arguments))})}function mf(){return null}function wf(e,A){var t=typeof e=="function"?e:ms(e),n=A==null?mf:typeof A=="function"?A:Ko(A);return this.select(function(){return this.insertBefore(t.apply(this,arguments),n.apply(this,arguments)||null)})}function Cf(){var e=this.parentNode;e&&e.removeChild(this)}function yf(){return this.each(Cf)}function vf(){var e=this.cloneNode(!1),A=this.parentNode;return A?A.insertBefore(e,this.nextSibling):e}function Qf(){var e=this.cloneNode(!0),A=this.parentNode;return A?A.insertBefore(e,this.nextSibling):e}function Ef(e){return this.select(e?Qf:vf)}function Ff(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Uf(e){return function(A){e.call(this,A,this.__data__)}}function bf(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 Hf(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 If(e,A,t){return function(){var n=this.__on,o,a=Uf(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 _f(e,A,t){var n=bf(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?If:Hf,o=0;o<a;++o)this.each(d(n[o],A,t));return this}function Hs(e,A,t){var n=Qs(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 Sf(e,A){return function(){return Hs(this,e,A)}}function xf(e,A){return function(){return Hs(this,e,A.apply(this,arguments))}}function Df(e,A){return this.each((typeof A=="function"?xf:Sf)(e,A))}function*Nf(){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 Is=[null];function Ue(e,A){this._groups=e,this._parents=A}function Cn(){return new Ue([[document.documentElement]],Is)}function Lf(){return this}Ue.prototype=Cn.prototype={constructor:Ue,select:id,selectAll:cd,selectChild:gd,selectChildren:md,filter:wd,data:Fd,enter:Cd,exit:bd,join:Hd,merge:Id,selection:Lf,order:_d,sort:Sd,call:Dd,nodes:Nd,node:Ld,size:kd,empty:Td,each:Md,attr:zd,style:Yd,property:qd,classed:nf,text:af,html:df,raise:gf,lower:Bf,append:pf,insert:wf,remove:yf,clone:Ef,datum:Ff,on:_f,dispatch:Df,[Symbol.iterator]:Nf};function Le(e){return typeof e=="string"?new Ue([[document.querySelector(e)]],[document.documentElement]):new Ue([[e]],Is)}function kf(e){let A;for(;A=e.sourceEvent;)e=A;return e}function Ke(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 Tf={passive:!1},yn={capture:!0,passive:!1};function Vo(e){e.stopImmediatePropagation()}function $t(e){e.preventDefault(),e.stopImmediatePropagation()}function _s(e){var A=e.document.documentElement,t=Le(e).on("dragstart.drag",$t,yn);"onselectstart"in A?t.on("selectstart.drag",$t,yn):(A.__noselect=A.style.MozUserSelect,A.style.MozUserSelect="none")}function Ss(e,A){var t=e.document.documentElement,n=Le(e).on("dragstart.drag",null);A&&(n.on("click.drag",$t,yn),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 ar=e=>()=>e;function Po(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}})}Po.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Mf(e){return!e.ctrlKey&&!e.button}function Of(){return this.parentNode}function Kf(e,A){return A??{x:e.x,y:e.y}}function Rf(){return navigator.maxTouchPoints||"ontouchstart"in this}function Vf(){var e=Mf,A=Of,t=Kf,n=Rf,o={},a=rr("start","drag","end"),u=0,d,h,g,B,w=0;function m(P){P.on("mousedown.drag",y).filter(n).on("touchstart.drag",T).on("touchmove.drag",M,Tf).on("touchend.drag touchcancel.drag",R).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(P,iA){if(!(B||!e.call(this,P,iA))){var Z=H(this,A.call(this,P,iA),P,iA,"mouse");Z&&(Le(P.view).on("mousemove.drag",Q,yn).on("mouseup.drag",U,yn),_s(P.view),Vo(P),g=!1,d=P.clientX,h=P.clientY,Z("start",P))}}function Q(P){if($t(P),!g){var iA=P.clientX-d,Z=P.clientY-h;g=iA*iA+Z*Z>w}o.mouse("drag",P)}function U(P){Le(P.view).on("mousemove.drag mouseup.drag",null),Ss(P.view,g),$t(P),o.mouse("end",P)}function T(P,iA){if(e.call(this,P,iA)){var Z=P.changedTouches,aA=A.call(this,P,iA),lA=Z.length,rA,nA;for(rA=0;rA<lA;++rA)(nA=H(this,aA,P,iA,Z[rA].identifier,Z[rA]))&&(Vo(P),nA("start",P,Z[rA]))}}function M(P){var iA=P.changedTouches,Z=iA.length,aA,lA;for(aA=0;aA<Z;++aA)(lA=o[iA[aA].identifier])&&($t(P),lA("drag",P,iA[aA]))}function R(P){var iA=P.changedTouches,Z=iA.length,aA,lA;for(B&&clearTimeout(B),B=setTimeout(function(){B=null},500),aA=0;aA<Z;++aA)(lA=o[iA[aA].identifier])&&(Vo(P),lA("end",P,iA[aA]))}function H(P,iA,Z,aA,lA,rA){var nA=a.copy(),j=Ke(rA||Z,iA),S,eA,I;if((I=t.call(P,new Po("beforestart",{sourceEvent:Z,target:m,identifier:lA,active:u,x:j[0],y:j[1],dx:0,dy:0,dispatch:nA}),aA))!=null)return S=I.x-j[0]||0,eA=I.y-j[1]||0,function X(F,x,N){var L=j,O;switch(F){case"start":o[lA]=X,O=u++;break;case"end":delete o[lA],--u;case"drag":j=Ke(N||x,iA),O=u;break}nA.call(F,P,new Po(F,{sourceEvent:x,subject:I,target:m,identifier:lA,active:O,x:j[0]+S,y:j[1]+eA,dx:j[0]-L[0],dy:j[1]-L[1],dispatch:nA}),aA)}}return m.filter=function(P){return arguments.length?(e=typeof P=="function"?P:ar(!!P),m):e},m.container=function(P){return arguments.length?(A=typeof P=="function"?P:ar(P),m):A},m.subject=function(P){return arguments.length?(t=typeof P=="function"?P:ar(P),m):t},m.touchable=function(P){return arguments.length?(n=typeof P=="function"?P:ar(!!P),m):n},m.on=function(){var P=a.on.apply(a,arguments);return P===a?m:P},m.clickDistance=function(P){return arguments.length?(w=(P=+P)*P,m):Math.sqrt(w)},m}function Go(e,A,t){e.prototype=A.prototype=t,t.constructor=e}function xs(e,A){var t=Object.create(e.prototype);for(var n in A)t[n]=A[n];return t}function vn(){}var Qn=.7,lr=1/Qn,Wt="\\s*([+-]?\\d+)\\s*",En="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Re="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Pf=/^#([0-9a-f]{3,8})$/,Gf=new RegExp(`^rgb\\(${Wt},${Wt},${Wt}\\)$`),zf=new RegExp(`^rgb\\(${Re},${Re},${Re}\\)$`),Xf=new RegExp(`^rgba\\(${Wt},${Wt},${Wt},${En}\\)$`),$f=new RegExp(`^rgba\\(${Re},${Re},${Re},${En}\\)$`),Wf=new RegExp(`^hsl\\(${En},${Re},${Re}\\)$`),Yf=new RegExp(`^hsla\\(${En},${Re},${Re},${En}\\)$`),Ds={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};Go(vn,_t,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ns,formatHex:Ns,formatHex8:Jf,formatHsl:Zf,formatRgb:Ls,toString:Ls});function Ns(){return this.rgb().formatHex()}function Jf(){return this.rgb().formatHex8()}function Zf(){return Ks(this).formatHsl()}function Ls(){return this.rgb().formatRgb()}function _t(e){var A,t;return e=(e+"").trim().toLowerCase(),(A=Pf.exec(e))?(t=A[1].length,A=parseInt(A[1],16),t===6?ks(A):t===3?new Ce(A>>8&15|A>>4&240,A>>4&15|A&240,(A&15)<<4|A&15,1):t===8?cr(A>>24&255,A>>16&255,A>>8&255,(A&255)/255):t===4?cr(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=Gf.exec(e))?new Ce(A[1],A[2],A[3],1):(A=zf.exec(e))?new Ce(A[1]*255/100,A[2]*255/100,A[3]*255/100,1):(A=Xf.exec(e))?cr(A[1],A[2],A[3],A[4]):(A=$f.exec(e))?cr(A[1]*255/100,A[2]*255/100,A[3]*255/100,A[4]):(A=Wf.exec(e))?Os(A[1],A[2]/100,A[3]/100,1):(A=Yf.exec(e))?Os(A[1],A[2]/100,A[3]/100,A[4]):Ds.hasOwnProperty(e)?ks(Ds[e]):e==="transparent"?new Ce(NaN,NaN,NaN,0):null}function ks(e){return new Ce(e>>16&255,e>>8&255,e&255,1)}function cr(e,A,t,n){return n<=0&&(e=A=t=NaN),new Ce(e,A,t,n)}function jf(e){return e instanceof vn||(e=_t(e)),e?(e=e.rgb(),new Ce(e.r,e.g,e.b,e.opacity)):new Ce}function zo(e,A,t,n){return arguments.length===1?jf(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}Go(Ce,zo,xs(vn,{brighter(e){return e=e==null?lr:Math.pow(lr,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Qn:Math.pow(Qn,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ce(St(this.r),St(this.g),St(this.b),ur(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:Ts,formatHex:Ts,formatHex8:qf,formatRgb:Ms,toString:Ms}));function Ts(){return`#${xt(this.r)}${xt(this.g)}${xt(this.b)}`}function qf(){return`#${xt(this.r)}${xt(this.g)}${xt(this.b)}${xt((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ms(){const e=ur(this.opacity);return`${e===1?"rgb(":"rgba("}${St(this.r)}, ${St(this.g)}, ${St(this.b)}${e===1?")":`, ${e})`}`}function ur(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function St(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function xt(e){return e=St(e),(e<16?"0":"")+e.toString(16)}function Os(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 Ks(e){if(e instanceof ke)return new ke(e.h,e.s,e.l,e.opacity);if(e instanceof vn||(e=_t(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 Ag(e,A,t,n){return arguments.length===1?Ks(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}Go(ke,Ag,xs(vn,{brighter(e){return e=e==null?lr:Math.pow(lr,e),new ke(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Qn:Math.pow(Qn,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 Ce(Xo(e>=240?e-240:e+120,o,n),Xo(e,o,n),Xo(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new ke(Rs(this.h),dr(this.s),dr(this.l),ur(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=ur(this.opacity);return`${e===1?"hsl(":"hsla("}${Rs(this.h)}, ${dr(this.s)*100}%, ${dr(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Rs(e){return e=(e||0)%360,e<0?e+360:e}function dr(e){return Math.max(0,Math.min(1,e||0))}function Xo(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 $o=e=>()=>e;function eg(e,A){return function(t){return e+t*A}}function tg(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 ng(e){return(e=+e)==1?Vs:function(A,t){return t-A?tg(A,t,e):$o(isNaN(A)?t:A)}}function Vs(e,A){var t=A-e;return t?eg(e,t):$o(isNaN(e)?A:e)}var fr=(function e(A){var t=ng(A);function n(o,a){var u=t((o=zo(o)).r,(a=zo(a)).r),d=t(o.g,a.g),h=t(o.b,a.b),g=Vs(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 rg(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 og(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function ig(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]=Fn(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 sg(e,A){var t=new Date;return e=+e,A=+A,function(n){return t.setTime(e*(1-n)+A*n),t}}function Ve(e,A){return e=+e,A=+A,function(t){return e*(1-t)+A*t}}function ag(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]=Fn(e[o],A[o]):n[o]=A[o];return function(a){for(o in t)n[o]=t[o](a);return n}}var Wo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Yo=new RegExp(Wo.source,"g");function lg(e){return function(){return e}}function cg(e){return function(A){return e(A)+""}}function Ps(e,A){var t=Wo.lastIndex=Yo.lastIndex=0,n,o,a,u=-1,d=[],h=[];for(e=e+"",A=A+"";(n=Wo.exec(e))&&(o=Yo.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:Ve(n,o)})),t=Yo.lastIndex;return t<A.length&&(a=A.slice(t),d[u]?d[u]+=a:d[++u]=a),d.length<2?h[0]?cg(h[0].x):lg(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 Fn(e,A){var t=typeof A,n;return A==null||t==="boolean"?$o(A):(t==="number"?Ve:t==="string"?(n=_t(A))?(A=n,fr):Ps:A instanceof _t?fr:A instanceof Date?sg:og(A)?rg:Array.isArray(A)?ig:typeof A.valueOf!="function"&&typeof A.toString!="function"||isNaN(A)?ag:Ve)(e,A)}var Gs=180/Math.PI,Jo={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function zs(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)*Gs,skewX:Math.atan(h)*Gs,scaleX:u,scaleY:d}}var gr;function ug(e){const A=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return A.isIdentity?Jo:zs(A.a,A.b,A.c,A.d,A.e,A.f)}function dg(e){return e==null||(gr||(gr=document.createElementNS("http://www.w3.org/2000/svg","g")),gr.setAttribute("transform",e),!(e=gr.transform.baseVal.consolidate()))?Jo:(e=e.matrix,zs(e.a,e.b,e.c,e.d,e.e,e.f))}function Xs(e,A,t,n){function o(g){return g.length?g.pop()+" ":""}function a(g,B,w,m,y,Q){if(g!==w||B!==m){var U=y.push("translate(",null,A,null,t);Q.push({i:U-4,x:Ve(g,w)},{i:U-2,x:Ve(B,m)})}else(w||m)&&y.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:Ve(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:Ve(g,B)}):B&&w.push(o(w)+"skewX("+B+n)}function h(g,B,w,m,y,Q){if(g!==w||B!==m){var U=y.push(o(y)+"scale(",null,",",null,")");Q.push({i:U-4,x:Ve(g,w)},{i:U-2,x:Ve(B,m)})}else(w!==1||m!==1)&&y.push(o(y)+"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(y){for(var Q=-1,U=m.length,T;++Q<U;)w[(T=m[Q]).i]=T.x(y);return w.join("")}}}var fg=Xs(ug,"px, ","px)","deg)"),gg=Xs(dg,", ",")",")"),hg=1e-12;function $s(e){return((e=Math.exp(e))+1/e)/2}function Bg(e){return((e=Math.exp(e))-1/e)/2}function pg(e){return((e=Math.exp(2*e))-1)/(e+1)}var hr=(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],y=B-d,Q=w-h,U=y*y+Q*Q,T,M;if(U<hg)M=Math.log(m/g)/A,T=function(Z){return[d+Z*y,h+Z*Q,g*Math.exp(A*Z*M)]};else{var R=Math.sqrt(U),H=(m*m-g*g+n*U)/(2*g*t*R),P=(m*m-g*g-n*U)/(2*m*t*R),iA=Math.log(Math.sqrt(H*H+1)-H);M=(Math.log(Math.sqrt(P*P+1)-P)-iA)/A,T=function(Z){var aA=Z*M,lA=$s(iA),rA=g/(t*R)*(lA*pg(A*aA+iA)-Bg(iA));return[d+rA*y,h+rA*Q,g*lA/$s(A*aA+iA)]}}return T.duration=M*1e3*A/Math.SQRT2,T}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),Yt=0,Un=0,bn=0,Ws=1e3,Br,Hn,pr=0,Dt=0,mr=0,In=typeof performance=="object"&&performance.now?performance:Date,Ys=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Zo(){return Dt||(Ys(mg),Dt=In.now()+mr)}function mg(){Dt=0}function wr(){this._call=this._time=this._next=null}wr.prototype=Js.prototype={constructor:wr,restart:function(e,A,t){if(typeof e!="function")throw new TypeError("callback is not a function");t=(t==null?Zo():+t)+(A==null?0:+A),!this._next&&Hn!==this&&(Hn?Hn._next=this:Br=this,Hn=this),this._call=e,this._time=t,jo()},stop:function(){this._call&&(this._call=null,this._time=1/0,jo())}};function Js(e,A,t){var n=new wr;return n.restart(e,A,t),n}function wg(){Zo(),++Yt;for(var e=Br,A;e;)(A=Dt-e._time)>=0&&e._call.call(void 0,A),e=e._next;--Yt}function Zs(){Dt=(pr=In.now())+mr,Yt=Un=0;try{wg()}finally{Yt=0,yg(),Dt=0}}function Cg(){var e=In.now(),A=e-pr;A>Ws&&(mr-=A,pr=e)}function yg(){for(var e,A=Br,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:Br=t);Hn=e,jo(n)}function jo(e){Yt||(Un&&(Un=clearTimeout(Un)),e-Dt>24?(e<1/0&&(Un=setTimeout(Zs,e-In.now()-mr)),bn&&(bn=clearInterval(bn))):(bn||(pr=In.now(),bn=setInterval(Cg,Ws)),Yt=1,Ys(Zs)))}function js(e,A,t){var n=new wr;return A=A==null?0:+A,n.restart(o=>{n.stop(),e(o+A)},A,t),n}var vg=rr("start","end","cancel","interrupt"),Qg=[],qs=0,Aa=1,qo=2,Cr=3,ea=4,Ai=5,yr=6;function vr(e,A,t,n,o,a){var u=e.__transition;if(!u)e.__transition={};else if(t in u)return;Eg(e,t,{name:A,index:n,group:o,on:vg,tween:Qg,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:qs})}function ei(e,A){var t=Te(e,A);if(t.state>qs)throw new Error("too late; already scheduled");return t}function Pe(e,A){var t=Te(e,A);if(t.state>Cr)throw new Error("too late; already running");return t}function Te(e,A){var t=e.__transition;if(!t||!(t=t[A]))throw new Error("transition not found");return t}function Eg(e,A,t){var n=e.__transition,o;n[A]=t,t.timer=Js(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,y;if(t.state!==Aa)return h();for(B in n)if(y=n[B],y.name===t.name){if(y.state===Cr)return js(u);y.state===ea?(y.state=yr,y.timer.stop(),y.on.call("interrupt",e,e.__data__,y.index,y.group),delete n[B]):+B<A&&(y.state=yr,y.timer.stop(),y.on.call("cancel",e,e.__data__,y.index,y.group),delete n[B])}if(js(function(){t.state===Cr&&(t.state=ea,t.timer.restart(d,t.delay,t.time),d(g))}),t.state=qo,t.on.call("start",e,e.__data__,t.index,t.group),t.state===qo){for(t.state=Cr,o=new Array(m=t.tween.length),B=0,w=-1;B<m;++B)(y=t.tween[B].value.call(e,e.__data__,t.index,t.group))&&(o[++w]=y);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=yr,t.timer.stop(),delete n[A];for(var g in n)return;delete e.__transition}}function Qr(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>qo&&n.state<Ai,n.state=yr,n.timer.stop(),n.on.call(o?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete t[u]}a&&delete e.__transition}}function Fg(e){return this.each(function(){Qr(this,e)})}function Ug(e,A){var t,n;return function(){var o=Pe(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 bg(e,A,t){var n,o;if(typeof t!="function")throw new Error;return function(){var a=Pe(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 Hg(e,A){var t=this._id;if(e+="",arguments.length<2){for(var n=Te(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?Ug:bg)(t,e,A))}function ti(e,A,t){var n=e._id;return e.each(function(){var o=Pe(this,n);(o.value||(o.value={}))[A]=t.apply(this,arguments)}),function(o){return Te(o,n).value[A]}}function ta(e,A){var t;return(typeof A=="number"?Ve:A instanceof _t?fr:(t=_t(A))?(A=t,fr):Ps)(e,A)}function Ig(e){return function(){this.removeAttribute(e)}}function _g(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Sg(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 xg(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 Dg(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 Ng(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 Lg(e,A){var t=ir(e),n=t==="transform"?gg:ta;return this.attrTween(e,typeof A=="function"?(t.local?Ng:Dg)(t,n,ti(this,"attr."+e,A)):A==null?(t.local?_g:Ig)(t):(t.local?xg:Sg)(t,n,A))}function kg(e,A){return function(t){this.setAttribute(e,A.call(this,t))}}function Tg(e,A){return function(t){this.setAttributeNS(e.space,e.local,A.call(this,t))}}function Mg(e,A){var t,n;function o(){var a=A.apply(this,arguments);return a!==n&&(t=(n=a)&&Tg(e,a)),t}return o._value=A,o}function Og(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 Kg(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=ir(e);return this.tween(t,(n.local?Mg:Og)(n,A))}function Rg(e,A){return function(){ei(this,e).delay=+A.apply(this,arguments)}}function Vg(e,A){return A=+A,function(){ei(this,e).delay=A}}function Pg(e){var A=this._id;return arguments.length?this.each((typeof e=="function"?Rg:Vg)(A,e)):Te(this.node(),A).delay}function Gg(e,A){return function(){Pe(this,e).duration=+A.apply(this,arguments)}}function zg(e,A){return A=+A,function(){Pe(this,e).duration=A}}function Xg(e){var A=this._id;return arguments.length?this.each((typeof e=="function"?Gg:zg)(A,e)):Te(this.node(),A).duration}function $g(e,A){if(typeof A!="function")throw new Error;return function(){Pe(this,e).ease=A}}function Wg(e){var A=this._id;return arguments.length?this.each($g(A,e)):Te(this.node(),A).ease}function Yg(e,A){return function(){var t=A.apply(this,arguments);if(typeof t!="function")throw new Error;Pe(this,e).ease=t}}function Jg(e){if(typeof e!="function")throw new Error;return this.each(Yg(this._id,e))}function Zg(e){typeof e!="function"&&(e=Cs(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 Ze(n,this._parents,this._name,this._id)}function jg(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,y=0;y<B;++y)(m=h[y]||g[y])&&(w[y]=m);for(;d<n;++d)u[d]=A[d];return new Ze(u,this._parents,this._name,this._id)}function qg(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 Ah(e,A,t){var n,o,a=qg(A)?ei:Pe;return function(){var u=a(this,e),d=u.on;d!==n&&(o=(n=d).copy()).on(A,t),u.on=o}}function eh(e,A){var t=this._id;return arguments.length<2?Te(this.node(),t).on.on(e):this.each(Ah(t,e,A))}function th(e){return function(){var A=this.parentNode;for(var t in this.__transition)if(+t!==e)return;A&&A.removeChild(this)}}function nh(){return this.on("end.remove",th(this._id))}function rh(e){var A=this._name,t=this._id;typeof e!="function"&&(e=Ko(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,vr(g[m],A,t,m,g,Te(B,t)));return new Ze(a,this._parents,A,t)}function oh(e){var A=this._name,t=this._id;typeof e!="function"&&(e=ws(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),y,Q=Te(B,t),U=0,T=m.length;U<T;++U)(y=m[U])&&vr(y,A,t,U,m,Q);a.push(m),u.push(B)}return new Ze(a,u,A,t)}var ih=Cn.prototype.constructor;function sh(){return new ih(this._groups,this._parents)}function ah(e,A){var t,n,o;return function(){var a=Xt(this,e),u=(this.style.removeProperty(e),Xt(this,e));return a===u?null:a===t&&u===n?o:o=A(t=a,n=u)}}function na(e){return function(){this.style.removeProperty(e)}}function lh(e,A,t){var n,o=t+"",a;return function(){var u=Xt(this,e);return u===o?null:u===n?a:a=A(n=u,t)}}function ch(e,A,t){var n,o,a;return function(){var u=Xt(this,e),d=t(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),Xt(this,e))),u===h?null:u===n&&h===o?a:(o=h,a=A(n=u,d))}}function uh(e,A){var t,n,o,a="style."+A,u="end."+a,d;return function(){var h=Pe(this,e),g=h.on,B=h.value[a]==null?d||(d=na(A)):void 0;(g!==t||o!==B)&&(n=(t=g).copy()).on(u,o=B),h.on=n}}function dh(e,A,t){var n=(e+="")=="transform"?fg:ta;return A==null?this.styleTween(e,ah(e,n)).on("end.style."+e,na(e)):typeof A=="function"?this.styleTween(e,ch(e,n,ti(this,"style."+e,A))).each(uh(this._id,e)):this.styleTween(e,lh(e,n,A),t).on("end.style."+e,null)}function fh(e,A,t){return function(n){this.style.setProperty(e,A.call(this,n),t)}}function gh(e,A,t){var n,o;function a(){var u=A.apply(this,arguments);return u!==o&&(n=(o=u)&&fh(e,u,t)),n}return a._value=A,a}function hh(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,gh(e,A,t??""))}function Bh(e){return function(){this.textContent=e}}function ph(e){return function(){var A=e(this);this.textContent=A??""}}function mh(e){return this.tween("text",typeof e=="function"?ph(ti(this,"text",e)):Bh(e==null?"":e+""))}function wh(e){return function(A){this.textContent=e.call(this,A)}}function Ch(e){var A,t;function n(){var o=e.apply(this,arguments);return o!==t&&(A=(t=o)&&wh(o)),A}return n._value=e,n}function yh(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,Ch(e))}function vh(){for(var e=this._name,A=this._id,t=ra(),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=Te(h,A);vr(h,e,t,g,u,{time:B.time+B.delay+B.duration,delay:0,duration:B.duration,ease:B.ease})}return new Ze(n,this._parents,e,t)}function Qh(){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=Pe(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 Eh=0;function Ze(e,A,t,n){this._groups=e,this._parents=A,this._name=t,this._id=n}function ra(){return++Eh}var je=Cn.prototype;Ze.prototype={constructor:Ze,select:rh,selectAll:oh,selectChild:je.selectChild,selectChildren:je.selectChildren,filter:Zg,merge:jg,selection:sh,transition:vh,call:je.call,nodes:je.nodes,node:je.node,size:je.size,empty:je.empty,each:je.each,on:eh,attr:Lg,attrTween:Kg,style:dh,styleTween:hh,text:mh,textTween:yh,remove:nh,tween:Hg,delay:Pg,duration:Xg,ease:Wg,easeVarying:Jg,end:Qh,[Symbol.iterator]:je[Symbol.iterator]};function Fh(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Uh={time:null,delay:0,duration:250,ease:Fh};function bh(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 Hh(e){var A,t;e instanceof Ze?(A=e._id,e=e._name):(A=ra(),(t=Uh).time=Zo(),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])&&vr(h,e,A,g,u,t||bh(h,A));return new Ze(n,this._parents,e,A)}Cn.prototype.interrupt=Fg,Cn.prototype.transition=Hh;var Er=e=>()=>e;function Ih(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 qe(e,A,t){this.k=e,this.x=A,this.y=t}qe.prototype={constructor:qe,scale:function(e){return e===1?this:new qe(this.k*e,this.x,this.y)},translate:function(e,A){return e===0&A===0?this:new qe(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 Jt=new qe(1,0,0);qe.prototype;function ni(e){e.stopImmediatePropagation()}function _n(e){e.preventDefault(),e.stopImmediatePropagation()}function _h(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Sh(){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 oa(){return this.__zoom||Jt}function xh(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Dh(){return navigator.maxTouchPoints||"ontouchstart"in this}function Nh(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 Lh(){var e=_h,A=Sh,t=Nh,n=xh,o=Dh,a=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],d=250,h=hr,g=rr("start","zoom","end"),B,w,m,y=500,Q=150,U=0,T=10;function M(I){I.property("__zoom",oa).on("wheel.zoom",lA,{passive:!1}).on("mousedown.zoom",rA).on("dblclick.zoom",nA).filter(o).on("touchstart.zoom",j).on("touchmove.zoom",S).on("touchend.zoom touchcancel.zoom",eA).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}M.transform=function(I,X,F,x){var N=I.selection?I.selection():I;N.property("__zoom",oa),I!==N?iA(I,X,F,x):N.interrupt().each(function(){Z(this,arguments).event(x).start().zoom(null,typeof X=="function"?X.apply(this,arguments):X).end()})},M.scaleBy=function(I,X,F,x){M.scaleTo(I,function(){return this.__zoom.k*(typeof X=="function"?X.apply(this,arguments):X)},F,x)},M.scaleTo=function(I,X,F,x){M.transform(I,function(){var N=A.apply(this,arguments),L=this.__zoom,O=F==null?P(N):typeof F=="function"?F.apply(this,arguments):F,J=L.invert(O),tA=typeof X=="function"?X.apply(this,arguments):X;return t(H(R(L,tA),O,J),N,u)},F,x)},M.translateBy=function(I,X,F,x){M.transform(I,function(){return t(this.__zoom.translate(typeof X=="function"?X.apply(this,arguments):X,typeof F=="function"?F.apply(this,arguments):F),A.apply(this,arguments),u)},null,x)},M.translateTo=function(I,X,F,x,N){M.transform(I,function(){var L=A.apply(this,arguments),O=this.__zoom,J=x==null?P(L):typeof x=="function"?x.apply(this,arguments):x;return t(Jt.translate(J[0],J[1]).scale(O.k).translate(typeof X=="function"?-X.apply(this,arguments):-X,typeof F=="function"?-F.apply(this,arguments):-F),L,u)},x,N)};function R(I,X){return X=Math.max(a[0],Math.min(a[1],X)),X===I.k?I:new qe(X,I.x,I.y)}function H(I,X,F){var x=X[0]-F[0]*I.k,N=X[1]-F[1]*I.k;return x===I.x&&N===I.y?I:new qe(I.k,x,N)}function P(I){return[(+I[0][0]+ +I[1][0])/2,(+I[0][1]+ +I[1][1])/2]}function iA(I,X,F,x){I.on("start.zoom",function(){Z(this,arguments).event(x).start()}).on("interrupt.zoom end.zoom",function(){Z(this,arguments).event(x).end()}).tween("zoom",function(){var N=this,L=arguments,O=Z(N,L).event(x),J=A.apply(N,L),tA=F==null?P(J):typeof F=="function"?F.apply(N,L):F,dA=Math.max(J[1][0]-J[0][0],J[1][1]-J[0][1]),UA=N.__zoom,G=typeof X=="function"?X.apply(N,L):X,Y=h(UA.invert(tA).concat(dA/UA.k),G.invert(tA).concat(dA/G.k));return function($){if($===1)$=G;else{var oA=Y($),BA=dA/oA[2];$=new qe(BA,tA[0]-oA[0]*BA,tA[1]-oA[1]*BA)}O.zoom(null,$)}})}function Z(I,X,F){return!F&&I.__zooming||new aA(I,X)}function aA(I,X){this.that=I,this.args=X,this.active=0,this.sourceEvent=null,this.extent=A.apply(I,X),this.taps=0}aA.prototype={event:function(I){return I&&(this.sourceEvent=I),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(I,X){return this.mouse&&I!=="mouse"&&(this.mouse[1]=X.invert(this.mouse[0])),this.touch0&&I!=="touch"&&(this.touch0[1]=X.invert(this.touch0[0])),this.touch1&&I!=="touch"&&(this.touch1[1]=X.invert(this.touch1[0])),this.that.__zoom=X,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(I){var X=Le(this.that).datum();g.call(I,this.that,new Ih(I,{sourceEvent:this.sourceEvent,target:M,type:I,transform:this.that.__zoom,dispatch:g}),X)}};function lA(I,...X){if(!e.apply(this,arguments))return;var F=Z(this,X).event(I),x=this.__zoom,N=Math.max(a[0],Math.min(a[1],x.k*Math.pow(2,n.apply(this,arguments)))),L=Ke(I);if(F.wheel)(F.mouse[0][0]!==L[0]||F.mouse[0][1]!==L[1])&&(F.mouse[1]=x.invert(F.mouse[0]=L)),clearTimeout(F.wheel);else{if(x.k===N)return;F.mouse=[L,x.invert(L)],Qr(this),F.start()}_n(I),F.wheel=setTimeout(O,Q),F.zoom("mouse",t(H(R(x,N),F.mouse[0],F.mouse[1]),F.extent,u));function O(){F.wheel=null,F.end()}}function rA(I,...X){if(m||!e.apply(this,arguments))return;var F=I.currentTarget,x=Z(this,X,!0).event(I),N=Le(I.view).on("mousemove.zoom",tA,!0).on("mouseup.zoom",dA,!0),L=Ke(I,F),O=I.clientX,J=I.clientY;_s(I.view),ni(I),x.mouse=[L,this.__zoom.invert(L)],Qr(this),x.start();function tA(UA){if(_n(UA),!x.moved){var G=UA.clientX-O,Y=UA.clientY-J;x.moved=G*G+Y*Y>U}x.event(UA).zoom("mouse",t(H(x.that.__zoom,x.mouse[0]=Ke(UA,F),x.mouse[1]),x.extent,u))}function dA(UA){N.on("mousemove.zoom mouseup.zoom",null),Ss(UA.view,x.moved),_n(UA),x.event(UA).end()}}function nA(I,...X){if(e.apply(this,arguments)){var F=this.__zoom,x=Ke(I.changedTouches?I.changedTouches[0]:I,this),N=F.invert(x),L=F.k*(I.shiftKey?.5:2),O=t(H(R(F,L),x,N),A.apply(this,X),u);_n(I),d>0?Le(this).transition().duration(d).call(iA,O,x,I):Le(this).call(M.transform,O,x,I)}}function j(I,...X){if(e.apply(this,arguments)){var F=I.touches,x=F.length,N=Z(this,X,I.changedTouches.length===x).event(I),L,O,J,tA;for(ni(I),O=0;O<x;++O)J=F[O],tA=Ke(J,this),tA=[tA,this.__zoom.invert(tA),J.identifier],N.touch0?!N.touch1&&N.touch0[2]!==tA[2]&&(N.touch1=tA,N.taps=0):(N.touch0=tA,L=!0,N.taps=1+!!B);B&&(B=clearTimeout(B)),L&&(N.taps<2&&(w=tA[0],B=setTimeout(function(){B=null},y)),Qr(this),N.start())}}function S(I,...X){if(this.__zooming){var F=Z(this,X).event(I),x=I.changedTouches,N=x.length,L,O,J,tA;for(_n(I),L=0;L<N;++L)O=x[L],J=Ke(O,this),F.touch0&&F.touch0[2]===O.identifier?F.touch0[0]=J:F.touch1&&F.touch1[2]===O.identifier&&(F.touch1[0]=J);if(O=F.that.__zoom,F.touch1){var dA=F.touch0[0],UA=F.touch0[1],G=F.touch1[0],Y=F.touch1[1],$=($=G[0]-dA[0])*$+($=G[1]-dA[1])*$,oA=(oA=Y[0]-UA[0])*oA+(oA=Y[1]-UA[1])*oA;O=R(O,Math.sqrt($/oA)),J=[(dA[0]+G[0])/2,(dA[1]+G[1])/2],tA=[(UA[0]+Y[0])/2,(UA[1]+Y[1])/2]}else if(F.touch0)J=F.touch0[0],tA=F.touch0[1];else return;F.zoom("touch",t(H(O,J,tA),F.extent,u))}}function eA(I,...X){if(this.__zooming){var F=Z(this,X).event(I),x=I.changedTouches,N=x.length,L,O;for(ni(I),m&&clearTimeout(m),m=setTimeout(function(){m=null},y),L=0;L<N;++L)O=x[L],F.touch0&&F.touch0[2]===O.identifier?delete F.touch0:F.touch1&&F.touch1[2]===O.identifier&&delete F.touch1;if(F.touch1&&!F.touch0&&(F.touch0=F.touch1,delete F.touch1),F.touch0)F.touch0[1]=this.__zoom.invert(F.touch0[0]);else if(F.end(),F.taps===2&&(O=Ke(O,this),Math.hypot(w[0]-O[0],w[1]-O[1])<T)){var J=Le(this).on("dblclick.zoom");J&&J.apply(this,arguments)}}}return M.wheelDelta=function(I){return arguments.length?(n=typeof I=="function"?I:Er(+I),M):n},M.filter=function(I){return arguments.length?(e=typeof I=="function"?I:Er(!!I),M):e},M.touchable=function(I){return arguments.length?(o=typeof I=="function"?I:Er(!!I),M):o},M.extent=function(I){return arguments.length?(A=typeof I=="function"?I:Er([[+I[0][0],+I[0][1]],[+I[1][0],+I[1][1]]]),M):A},M.scaleExtent=function(I){return arguments.length?(a[0]=+I[0],a[1]=+I[1],M):[a[0],a[1]]},M.translateExtent=function(I){return arguments.length?(u[0][0]=+I[0][0],u[1][0]=+I[1][0],u[0][1]=+I[0][1],u[1][1]=+I[1][1],M):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},M.constrain=function(I){return arguments.length?(t=I,M):t},M.duration=function(I){return arguments.length?(d=+I,M):d},M.interpolate=function(I){return arguments.length?(h=I,M):h},M.on=function(){var I=g.on.apply(g,arguments);return I===g?M:I},M.clickDistance=function(I){return arguments.length?(U=(I=+I)*I,M):Math.sqrt(U)},M.tapDistance=function(I){return arguments.length?(T=+I,M):T},M}var IA=(e=>(e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom",e))(IA||{}),ri=(e=>(e.Partial="partial",e.Full="full",e))(ri||{}),Nt=(e=>(e.Bezier="default",e.SimpleBezier="simple-bezier",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e))(Nt||{}),At=(e=>(e.Strict="strict",e.Loose="loose",e))(At||{}),et=(e=>(e.Arrow="arrow",e.ArrowClosed="arrowclosed",e))(et||{}),Sn=(e=>(e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal",e))(Sn||{}),ia=(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))(ia||{}),kh=["INPUT","SELECT","TEXTAREA"],Th=typeof document<"u"?document:null;function oi(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 Mh(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey}function sa(e,A,t,n){const o=A.replace("+",`
|
|
1
|
+
(function(ee,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):(ee=typeof globalThis<"u"?globalThis:ee||self,r(ee.DuiUI={},ee.Vue,ee.SimCodeUI))})(this,function(ee,r,pe){Object.defineProperties(ee,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var Cu=Object.create,nr=Object.defineProperty,vu=Object.getOwnPropertyDescriptor,yu=Object.getOwnPropertyNames,Qu=Object.getPrototypeOf,Eu=Object.prototype.hasOwnProperty,Fu=(e,A)=>()=>(A||(e((A={exports:{}}).exports,A),e=null),A.exports),Uu=(e,A)=>{let t={};for(var n in e)nr(t,n,{get:e[n],enumerable:!0});return A||nr(t,Symbol.toStringTag,{value:"Module"}),t},_o=(e,A,t,n)=>{if(A&&typeof A=="object"||typeof A=="function")for(var o=yu(A),a=0,u=o.length,d;a<u;a++)d=o[a],!Eu.call(e,d)&&d!==t&&nr(e,d,{get:(h=>A[h]).bind(null,d),enumerable:!(n=vu(A,d))||n.enumerable});return e},bu=(e,A,t)=>(_o(e,A,"default"),t&&_o(t,A,"default")),as=(e,A,t)=>(t=e!=null?Cu(Qu(e)):{},_o(A||!e||!e.__esModule?nr(t,"default",{value:e,enumerable:!0}):t,e));r=as(r,1);var ut=(e,A)=>(e.install=t=>{t.component(e.name,e),A&&A.forEach(n=>{t.component(n.name,n)})},e),dt=(e="")=>{const A=Date.now(),t=Math.floor(Math.random()*1e9);return e===""?String(t)+String(A):e+"_"+t+String(A)},pn=e=>{if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(pn);const A={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=pn(e[t]));return A},Hu=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]},So={},Iu=(e,A,t)=>{t[e]=t[e]||{};const n=dt();return t[e][n]=A,n},_u=(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},Su=(e,A,t)=>{if(A){const n=t[e];n&&delete n[A]}else delete t[e]},ls=(e,A)=>Iu(e,A,So),te=(e,A)=>_u(e,A,So),xu=(e,A)=>{Su(e,A,So)},cs=(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:Q,removeComponentFromContainer:I,addComponentToContainer:L,copyComponent:N,activedComponent:V,top:U}=(0,r.inject)("d-drag-design-provide",{}),z=[],iA=(0,r.ref)(!1),W=(0,r.ref)(!1),lA=(0,r.ref)(!1),sA=(0,r.ref)(!1),nA=(0,r.ref)(!1),oA={id:"",type:""},AA=(0,r.ref)(!1),_=(0,r.ref)(!1);let q="",F=null;const R=$=>{if(q===$)return F;q=$;const{top:uA,left:pA,width:FA,height:_A}=e.value.getBoundingClientRect();return F=[{x:pA,y:uA},{x:pA+FA,y:uA},{x:pA+FA,y:uA+_A},{x:pA,y:uA+_A}],F},b=($,uA,pA)=>{let FA=uA-pA[0].y;FA<0&&(FA=-FA);let _A=uA-pA[3].y;_A<0&&(_A=-_A);let fA=$-pA[0].x;fA<0&&(fA=-fA);let yA=$-pA[1].x;return yA<0&&(yA=-yA),{ly:FA>_A?_A:FA,typey:FA>_A?"bottom":"top",lx:fA>yA?yA:fA,lallx:fA+yA}},P=($,uA,pA)=>$>=pA[0].x&&$<=pA[1].x&&uA>=pA[0].y&&uA<=pA[3].y,M=()=>{if(o){te("dragClick",{id:u});return}if(!W.value){if(g(u),d!==0){const $=e.value.getBoundingClientRect(),uA=h();$.top-uA.top<22?sA.value=!0:sA.value=!1}W.value=!0,te("dragClick",{id:u})}},k=$=>{const uA=v($);uA&&(0,r.nextTick)(()=>{te("dragClick",{id:uA})})},O=()=>{oA.id="",oA.type="",d===0&&(nA.value=!1)},Y=()=>{te("mouseEnterOrLeave",{id:u,type:"enter"})},eA=()=>{te("mouseEnterOrLeave",{id:u,type:"leave"})},hA=$=>{te("dragClick",{id:$})},bA={mouseEnterOrLeave:({id:$,type:uA})=>{uA==="enter"?z.push($):z.length>0&&z.splice(z.length-1,1);const pA=z.length;pA>0&&u===z[pA-1]?iA.value=!0:iA.value=!1},dragAciveChild:({type:$,id:uA})=>{uA===u?$==="top"?(AA.value=!0,_.value=!1):(_.value=!0,AA.value=!1):(_.value=!1,AA.value=!1)},dragClick({id:$,isAgain:uA}){$!==u?W.value=!1:(uA&&(W.value=!1),M())}};bA[`dragGetChildDistance_${u}`]=({dragX:$,dragY:uA,moveId:pA})=>b($,uA,R(pA));const tA={isInContainer({x:$,y:uA,id:pA,moveId:FA}){if(u===pA||w(pA,u))return lA.value=!1,{isIn:!1,level:d,id:u,groupId:a};const _A=R(FA);if(P($,uA,_A))return d===0&&(nA.value=!0),{isIn:!0,level:d,id:u,groupId:a};if(d===0){const{ly:fA,lx:yA}=b($,uA,_A);if(fA<20&&yA<20)return nA.value=!0,{isIn:!0,level:d,id:u,groupId:a};nA.value=!1}return lA.value=!1,{isIn:!1,level:d,id:u,groupId:a}},dragActiveContainer:({containerId:$,containerGroupId:uA,dragX:pA,dragY:FA,moveId:_A})=>{if($===u&&uA===a)if(lA.value=!0,n&&n.value.length>0){let fA={ly:9999999,lx:0,lallx:0,id:"",typey:""};n?.value.forEach(yA=>{if(a&&yA.groupId!==a)return;const S=te(`dragGetChildDistance_${yA.id}`,{dragX:pA,dragY:FA,moveId:_A})[0];S&&(fA.ly>S.ly||fA.ly===S.ly&&(fA.lx>S.lx||fA.lx===S.lx&&fA.lallx>S.lallx))&&(fA=S,fA.id=yA.id)}),oA.id=fA.id,oA.type=fA.typey,te("dragAciveChild",{id:fA.id,type:fA.typey})}else te("dragAciveChild",{id:""});else lA.value=!1},dragAdd:$=>{if(lA.value){let uA=n?.value.length||0;oA.id!==""&&oA.id!==void 0&&(uA=n?.value.findIndex(pA=>pA.id===oA.id)||0,oA.type==="bottom"&&(uA+=1)),m($,u,uA,a),lA.value=!1}O()},dragAddByClick:$=>{if(!V.value&&u===U.id||V.value?.id===u||V.value?.containerId===u&&V.value?.dragType!=="container"){const uA=m($,u,n?.value.length||0,a,!0);uA&&$.config&&Object.keys($.config).forEach(pA=>{uA.config[pA]=$.config[pA]})}},dragUpdate($){if(lA.value){const uA=B($);if(uA.level=d+1,oA.id!==uA.id){I(uA.containerId,$);let pA=n?.value.findIndex(FA=>FA.id===oA.id)||0;oA.type==="bottom"&&(pA+=1),L(uA,u,pA,a)}lA.value=!1,(0,r.nextTick)(()=>{te("dragClick",{id:uA.id,isAgain:!0})})}O()}},J={};return(0,r.onMounted)(()=>{(!o||t!=="container")&&Object.keys(bA).forEach($=>{J[$]=ls($,bA[$])}),t==="container"&&Object.keys(tA).forEach($=>{J[$]=ls($,tA[$])}),A.isNewAdd&&(0,r.nextTick)(()=>{M(),delete A.isNewAdd})}),(0,r.onUnmounted)(()=>{Object.keys(J).forEach($=>{xu($,J[$])})}),{onMouseenter:Y,onMouseleave:eA,activeComponent:M,handleComponentClick:hA,deleteComponentByClick:k,copyComponent:N,getParentComponents:Q,isBottomToolBar:sA,isHover:iA,isSelect:W,isToContainer:lA,isMoveingInTopLevel:nA,isTopActive:AA,isBottomActive:_}},us=(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,Q)=>{n!==!0&&(n=!0,setTimeout(()=>{v(),n=!1},Q))},a=(0,r.ref)(!1),u=(v,Q,I)=>{const L=document.createElement("div");return L.id=t.dragElementId,L.innerText=v,L.className="d-drag-move",L.style.top=`${Q}px`,L.style.left=`${I}px`,document.body.appendChild(L),L},d=()=>{document.onmousemove=null,document.onmouseup=null,a.value=!1,te("dragAciveChild",{id:""})},h=()=>{d(),t.dragElement&&(t.dragElement.remove(),t.dragElement=null,A?te("dragAdd",e):te("dragUpdate",e.id))},g=v=>{const{clientY:Q,clientX:I}=v;if(!t.dragElement){const L=Math.abs(t.x-I),N=Math.abs(t.y-Q);if(L<=1&&N<=1)return;a.value=!0,t.dragElement=u(e.name,Q-11,I-32)}t.dragElement.style.top=`${Q-11}px`,t.dragElement.style.left=`${I-32}px`,t.clientX=I,t.clientY=Q,o(()=>{if(!a.value)return;const L=te("isInContainer",{x:I,y:Q,id:e.id,moveId:t.id});t.toContainerLevel=-1,t.toContainerId="",t.groupId="",L.forEach(({level:N,id:V,isIn:U,groupId:z})=>{U&&t.toContainerLevel<N&&(t.toContainerLevel=N,t.toContainerId=V,t.groupId=z)}),t.toContainerId!==""?te("dragActiveContainer",{containerId:t.toContainerId,containerGroupId:t.groupId,dragX:I,dragY:Q,moveId:t.id}):te("dragAciveChild",{id:""})},100)};return{onContextmenu:()=>{d()},onMousedown:v=>{t.x=v.clientX,t.y=v.clientY,t.id=dt(),document.onmouseup=h,document.onmousemove=g},onClick:()=>{te("dragAddByClick",e)},moveActive:a}},Du={class:"d-drag-btns-pname"},Nu={key:0,class:"d-drag-mask"},Lu=(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:Q}=cs(t,A.componentData,"component"),{onContextmenu:I,onMousedown:L,moveActive:N}=us(A.componentData,!1);return(V,U)=>{const z=(0,r.resolveComponent)("j-button"),iA=(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)(Q),active:(0,r.unref)(N),isTopActive:(0,r.unref)(m),isBottomActive:(0,r.unref)(v)}])},[U[11]||(U[11]=(0,r.createElementVNode)("div",{class:"d-drag-line"},null,-1)),(0,r.createElementVNode)("div",{class:"d-drag-btns",onMouseenter:U[4]||(U[4]=(...W)=>(0,r.unref)(n)&&(0,r.unref)(n)(...W)),onMouseleave:U[5]||(U[5]=(...W)=>(0,r.unref)(o)&&(0,r.unref)(o)(...W))},[(0,r.createVNode)(iA,{size:4},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",{class:"d-drag-btns-names",onClick:(0,r.withModifiers)(()=>{},["stop"])},[(0,r.createVNode)(z,{class:"d-drag-btn",type:"primary",size:"small",label:e.componentData.name},null,8,["label"]),(0,r.createElementVNode)("div",Du,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)((0,r.unref)(g)(e.componentData.containerId),W=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:W.id},[(0,r.createVNode)(z,{class:"d-drag-btn",type:"primary",size:"small",label:W.name,onClick:lA=>(0,r.unref)(u)(W.id)},null,8,["label","onClick"])]))),128))])]),(0,r.createVNode)(z,{class:"d-drag-btn",type:"primary",size:"small",icon:"mdi:content-copy",onClick:U[0]||(U[0]=(0,r.withModifiers)(W=>(0,r.unref)(h)(e.componentData.id),["stop"]))}),(0,r.createElementVNode)("div",{onContextmenu:U[1]||(U[1]=(0,r.withModifiers)((...W)=>(0,r.unref)(I)&&(0,r.unref)(I)(...W),["stop"])),onMousedown:U[2]||(U[2]=(0,r.withModifiers)((...W)=>(0,r.unref)(L)&&(0,r.unref)(L)(...W),["stop"])),style:{display:"flex"}},[(0,r.createVNode)(z,{class:"d-drag-btn",type:"primary",size:"small",icon:"mdi:drag"})],32),(0,r.createVNode)(z,{class:"d-drag-btn",danger:"",type:"primary",size:"small",icon:"mdi:delete",onClick:U[3]||(U[3]=(0,r.withModifiers)(W=>(0,r.unref)(d)(e.componentData.id),["stop"]))})]),_:1})],32),(0,r.createElementVNode)("div",{ref_key:"refDrag",ref:t,class:"d-drag-body",onClick:U[6]||(U[6]=(0,r.withModifiers)((...W)=>(0,r.unref)(a)&&(0,r.unref)(a)(...W),["stop"])),onContextmenu:U[7]||(U[7]=(0,r.withModifiers)((...W)=>(0,r.unref)(I)&&(0,r.unref)(I)(...W),["stop"])),onMousedown:U[8]||(U[8]=(0,r.withModifiers)((...W)=>(0,r.unref)(L)&&(0,r.unref)(L)(...W),["stop"])),onMouseenter:U[9]||(U[9]=(...W)=>(0,r.unref)(n)&&(0,r.unref)(n)(...W)),onMouseleave:U[10]||(U[10]=(...W)=>(0,r.unref)(o)&&(0,r.unref)(o)(...W))},[(0,r.renderSlot)(V.$slots,"default"),e.isContainer?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",Nu))],544)],2)}}}),xo=Lu,Tu=(0,r.defineComponent)({name:"DDragTool",__name:"tool",props:{config:{}},setup(e){const{onContextmenu:A,onMousedown:t,onClick:n}=us(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))}}),Do=Tu,ku={key:0,class:"d-drag-line"},Mu={key:1,class:"d-drag-btns"},Ou=(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}=cs(t,A.componentData,"container",n,A.isComponentContainer,A.groupId),v=(0,r.computed)(()=>!!(n.value.findIndex(Q=>Q.groupId===A.groupId)===-1&&g.value));return(Q,I)=>{const L=(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",Mu,[(0,r.createElementVNode)("div",{class:"d-drag-btns-names",onClick:(0,r.withModifiers)(()=>{},["stop"])},[(0,r.createVNode)(L,{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)((...N)=>(0,r.unref)(u)&&(0,r.unref)(u)(...N),["stop"])),onMouseenter:I[1]||(I[1]=(...N)=>(0,r.unref)(o)&&(0,r.unref)(o)(...N)),onMouseleave:I[2]||(I[2]=(...N)=>(0,r.unref)(a)&&(0,r.unref)(a)(...N))},[(0,r.renderSlot)(Q.$slots,"default")],32)],2)}}}),No=Ou,Ku=(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)(xo,{"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)}}}),Lo=Ku,Ru=(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)(xo,{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))}}),To=Ru,ds=ut(xo,[Do,No,Lo,To]);function mn(e){return(0,r.getCurrentScope)()?((0,r.onScopeDispose)(e),!0):!1}function qe(e){return typeof e=="function"?e():(0,r.unref)(e)}var Vu=typeof window<"u"&&typeof document<"u",Pu=e=>typeof e<"u",Gu=Object.prototype.toString,zu=e=>Gu.call(e)==="[object Object]",Xu=()=>{};function $u(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 fs=e=>e();function Yu(e=fs){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 gs(e,A=!1,t="Timeout"){return new Promise((n,o)=>{setTimeout(A?()=>o(t):n,e)})}function Wu(e,A,t={}){const{eventFilter:n=fs,...o}=t;return(0,r.watch)(e,$u(n,A),o)}function Pt(e,A,t={}){const{eventFilter:n,...o}=t,{eventFilter:a,pause:u,resume:d,isActive:h}=Yu(n);return{stop:Wu(e,A,{...o,eventFilter:a}),pause:u,resume:d,isActive:h}}function Ju(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 ko(e,A=!1){function t(w,{flush:m="sync",deep:v=!1,timeout:Q,throwOnTimeout:I}={}){let L=null;const N=[new Promise(V=>{L=(0,r.watch)(e,U=>{w(U)!==A&&(L?.(),V(U))},{flush:m,deep:v,immediate:!0})})];return Q!=null&&N.push(gs(Q,I).then(()=>qe(e)).finally(()=>L?.())),Promise.race(N)}function n(w,m){if(!(0,r.isRef)(w))return t(U=>U===w,m);const{flush:v="sync",deep:Q=!1,timeout:I,throwOnTimeout:L}=m??{};let N=null;const V=[new Promise(U=>{N=(0,r.watch)([e,w],([z,iA])=>{A!==(z===iA)&&(N?.(),U(z))},{flush:v,deep:Q,immediate:!0})})];return I!=null&&V.push(gs(I,L).then(()=>qe(e)).finally(()=>(N?.(),qe(e)))),Promise.race(V)}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 Q=Array.from(v);return Q.includes(w)||Q.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 ko(e,!A)}}:{toMatch:t,toBe:n,toBeTruthy:o,toBeNull:a,toBeNaN:d,toBeUndefined:u,changed:g,changedTimes:B,get not(){return ko(e,!A)}}}function Mo(e){return ko(e)}function Zu(e){var A;const t=qe(e);return(A=t?.$el)!=null?A:t}var hs=Vu?window:void 0;function Bs(...e){let A,t,n,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,n,o]=e,A=hs):[A,t,n,o]=e,!A)return Xu;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)(()=>[Zu(A),qe(o)],([B,w])=>{if(u(),!B)return;const m=zu(w)?{...w}:w;a.push(...t.flatMap(v=>n.map(Q=>d(B,v,Q,m))))},{immediate:!0,flush:"post"}),g=()=>{h(),u()};return mn(g),g}function ju(e){return typeof e=="function"?e:typeof e=="string"?A=>A.key===e:Array.isArray(e)?A=>e.includes(A.key):()=>!0}function ps(...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=hs,eventName:a="keydown",passive:u=!1,dedupe:d=!1}=n,h=ju(A);return Bs(o,a,B=>{B.repeat&&qe(d)||h(B)&&t(B)},u)}function qu(e){return JSON.parse(JSON.stringify(e))}function Oo(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)(),Q=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 L=U=>d?typeof d=="function"?d(U):qu(U):U,N=()=>Pu(e[A])?L(e[A]):w,V=U=>{m?m(U)&&Q(I,U):Q(I,U)};if(h){const U=(0,r.ref)(N());let z=!1;return(0,r.watch)(()=>e[A],iA=>{z||(z=!0,U.value=L(iA),(0,r.nextTick)(()=>z=!1))}),(0,r.watch)(U,iA=>{!z&&(iA!==e[A]||B)&&V(iA)},{deep:B}),U}else return(0,r.computed)({get(){return N()},set(U){V(U)}})}var Ad={value:()=>{}};function rr(){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 or(t)}function or(e){this._=e}function ed(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}})}or.prototype=rr.prototype={constructor:or,on:function(e,A){var t=this._,n=ed(e+"",t),o,a=-1,u=n.length;if(arguments.length<2){for(;++a<u;)if((o=(e=n[a]).type)&&(o=td(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]=ms(t[o],e.name,A);else if(A==null)for(o in t)t[o]=ms(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 or(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 td(e,A){for(var t=0,n=e.length,o;t<n;++t)if((o=e[t]).name===A)return o.value}function ms(e,A,t){for(var n=0,o=e.length;n<o;++n)if(e[n].name===A){e[n]=Ad,e=e.slice(0,n).concat(e.slice(n+1));break}return t!=null&&e.push({name:A,value:t}),e}var Ko="http://www.w3.org/1999/xhtml",ws={svg:"http://www.w3.org/2000/svg",xhtml:Ko,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ir(e){var A=e+="",t=A.indexOf(":");return t>=0&&(A=e.slice(0,t))!=="xmlns"&&(e=e.slice(t+1)),ws.hasOwnProperty(A)?{space:ws[A],local:e}:e}function nd(e){return function(){var A=this.ownerDocument,t=this.namespaceURI;return t===Ko&&A.documentElement.namespaceURI===Ko?A.createElement(e):A.createElementNS(t,e)}}function rd(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Cs(e){var A=ir(e);return(A.local?rd:nd)(A)}function od(){}function Ro(e){return e==null?od:function(){return this.querySelector(e)}}function id(e){typeof e!="function"&&(e=Ro(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 Ee(n,this._parents)}function sd(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function ad(){return[]}function vs(e){return e==null?ad:function(){return this.querySelectorAll(e)}}function ld(e){return function(){return sd(e.apply(this,arguments))}}function cd(e){typeof e=="function"?e=ld(e):e=vs(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 Ee(n,o)}function ys(e){return function(){return this.matches(e)}}function Qs(e){return function(A){return A.matches(e)}}var ud=Array.prototype.find;function dd(e){return function(){return ud.call(this.children,e)}}function fd(){return this.firstElementChild}function gd(e){return this.select(e==null?fd:dd(typeof e=="function"?e:Qs(e)))}var hd=Array.prototype.filter;function Bd(){return Array.from(this.children)}function pd(e){return function(){return hd.call(this.children,e)}}function md(e){return this.selectAll(e==null?Bd:pd(typeof e=="function"?e:Qs(e)))}function wd(e){typeof e!="function"&&(e=ys(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 Ee(n,this._parents)}function Es(e){return new Array(e.length)}function Cd(){return new Ee(this._enter||this._groups.map(Es),this._parents)}function sr(e,A){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=A}sr.prototype={constructor:sr,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 vd(e){return function(){return e}}function yd(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 sr(e,a[u]);for(;u<h;++u)(d=A[u])&&(o[u]=d)}function Qd(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 sr(e,a[d]);for(d=0;d<B;++d)(h=A[d])&&g.get(m[d])===h&&(o[d]=h)}function Ed(e){return e.__data__}function Fd(e,A){if(!arguments.length)return Array.from(this,Ed);var t=A?Qd:yd,n=this._parents,o=this._groups;typeof e!="function"&&(e=vd(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=Ud(e.call(B,B&&B.__data__,g,n)),Q=v.length,I=d[g]=new Array(Q),L=u[g]=new Array(Q);t(B,w,I,L,h[g]=new Array(m),v,A);for(var N=0,V=0,U,z;N<Q;++N)if(U=I[N]){for(N>=V&&(V=N+1);!(z=L[V])&&++V<Q;);U._next=z||null}}return u=new Ee(u,n),u._enter=d,u._exit=h,u}function Ud(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function bd(){return new Ee(this._exit||this._groups.map(Es),this._parents)}function Hd(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 Id(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,Q=0;Q<w;++Q)(v=g[Q]||B[Q])&&(m[Q]=v);for(;h<o;++h)d[h]=t[h];return new Ee(d,this._parents)}function _d(){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 Sd(e){e||(e=xd);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 Ee(o,this._parents).order()}function xd(e,A){return e<A?-1:e>A?1:e>=A?0:NaN}function Dd(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Nd(){return Array.from(this)}function Ld(){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 Td(){let e=0;for(const A of this)++e;return e}function kd(){return!this.node()}function Md(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 Od(e){return function(){this.removeAttribute(e)}}function Kd(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Rd(e,A){return function(){this.setAttribute(e,A)}}function Vd(e,A){return function(){this.setAttributeNS(e.space,e.local,A)}}function Pd(e,A){return function(){var t=A.apply(this,arguments);t==null?this.removeAttribute(e):this.setAttribute(e,t)}}function Gd(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 zd(e,A){var t=ir(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?Kd:Od:typeof A=="function"?t.local?Gd:Pd:t.local?Vd:Rd)(t,A))}function Fs(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Xd(e){return function(){this.style.removeProperty(e)}}function $d(e,A,t){return function(){this.style.setProperty(e,A,t)}}function Yd(e,A,t){return function(){var n=A.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,t)}}function Wd(e,A,t){return arguments.length>1?this.each((A==null?Xd:typeof A=="function"?Yd:$d)(e,A,t??"")):Gt(this.node(),e)}function Gt(e,A){return e.style.getPropertyValue(A)||Fs(e).getComputedStyle(e,null).getPropertyValue(A)}function Jd(e){return function(){delete this[e]}}function Zd(e,A){return function(){this[e]=A}}function jd(e,A){return function(){var t=A.apply(this,arguments);t==null?delete this[e]:this[e]=t}}function qd(e,A){return arguments.length>1?this.each((A==null?Jd:typeof A=="function"?jd:Zd)(e,A)):this.node()[e]}function Us(e){return e.trim().split(/^|\s+/)}function Vo(e){return e.classList||new bs(e)}function bs(e){this._node=e,this._names=Us(e.getAttribute("class")||"")}bs.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 Hs(e,A){for(var t=Vo(e),n=-1,o=A.length;++n<o;)t.add(A[n])}function Is(e,A){for(var t=Vo(e),n=-1,o=A.length;++n<o;)t.remove(A[n])}function Af(e){return function(){Hs(this,e)}}function ef(e){return function(){Is(this,e)}}function tf(e,A){return function(){(A.apply(this,arguments)?Hs:Is)(this,e)}}function nf(e,A){var t=Us(e+"");if(arguments.length<2){for(var n=Vo(this.node()),o=-1,a=t.length;++o<a;)if(!n.contains(t[o]))return!1;return!0}return this.each((typeof A=="function"?tf:A?Af:ef)(t,A))}function rf(){this.textContent=""}function of(e){return function(){this.textContent=e}}function sf(e){return function(){var A=e.apply(this,arguments);this.textContent=A??""}}function af(e){return arguments.length?this.each(e==null?rf:(typeof e=="function"?sf:of)(e)):this.node().textContent}function lf(){this.innerHTML=""}function cf(e){return function(){this.innerHTML=e}}function uf(e){return function(){var A=e.apply(this,arguments);this.innerHTML=A??""}}function df(e){return arguments.length?this.each(e==null?lf:(typeof e=="function"?uf:cf)(e)):this.node().innerHTML}function ff(){this.nextSibling&&this.parentNode.appendChild(this)}function gf(){return this.each(ff)}function hf(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Bf(){return this.each(hf)}function pf(e){var A=typeof e=="function"?e:Cs(e);return this.select(function(){return this.appendChild(A.apply(this,arguments))})}function mf(){return null}function wf(e,A){var t=typeof e=="function"?e:Cs(e),n=A==null?mf:typeof A=="function"?A:Ro(A);return this.select(function(){return this.insertBefore(t.apply(this,arguments),n.apply(this,arguments)||null)})}function Cf(){var e=this.parentNode;e&&e.removeChild(this)}function vf(){return this.each(Cf)}function yf(){var e=this.cloneNode(!1),A=this.parentNode;return A?A.insertBefore(e,this.nextSibling):e}function Qf(){var e=this.cloneNode(!0),A=this.parentNode;return A?A.insertBefore(e,this.nextSibling):e}function Ef(e){return this.select(e?Qf:yf)}function Ff(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Uf(e){return function(A){e.call(this,A,this.__data__)}}function bf(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 Hf(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 If(e,A,t){return function(){var n=this.__on,o,a=Uf(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 _f(e,A,t){var n=bf(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?If:Hf,o=0;o<a;++o)this.each(d(n[o],A,t));return this}function _s(e,A,t){var n=Fs(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 Sf(e,A){return function(){return _s(this,e,A)}}function xf(e,A){return function(){return _s(this,e,A.apply(this,arguments))}}function Df(e,A){return this.each((typeof A=="function"?xf:Sf)(e,A))}function*Nf(){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 Ss=[null];function Ee(e,A){this._groups=e,this._parents=A}function wn(){return new Ee([[document.documentElement]],Ss)}function Lf(){return this}Ee.prototype=wn.prototype={constructor:Ee,select:id,selectAll:cd,selectChild:gd,selectChildren:md,filter:wd,data:Fd,enter:Cd,exit:bd,join:Hd,merge:Id,selection:Lf,order:_d,sort:Sd,call:Dd,nodes:Nd,node:Ld,size:Td,empty:kd,each:Md,attr:zd,style:Wd,property:qd,classed:nf,text:af,html:df,raise:gf,lower:Bf,append:pf,insert:wf,remove:vf,clone:Ef,datum:Ff,on:_f,dispatch:Df,[Symbol.iterator]:Nf};function De(e){return typeof e=="string"?new Ee([[document.querySelector(e)]],[document.documentElement]):new Ee([[e]],Ss)}function Tf(e){let A;for(;A=e.sourceEvent;)e=A;return e}function Re(e,A){if(e=Tf(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},Cn={capture:!0,passive:!1};function Po(e){e.stopImmediatePropagation()}function zt(e){e.preventDefault(),e.stopImmediatePropagation()}function xs(e){var A=e.document.documentElement,t=De(e).on("dragstart.drag",zt,Cn);"onselectstart"in A?t.on("selectstart.drag",zt,Cn):(A.__noselect=A.style.MozUserSelect,A.style.MozUserSelect="none")}function Ds(e,A){var t=e.document.documentElement,n=De(e).on("dragstart.drag",null);A&&(n.on("click.drag",zt,Cn),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 ar=e=>()=>e;function Go(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}})}Go.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Mf(e){return!e.ctrlKey&&!e.button}function Of(){return this.parentNode}function Kf(e,A){return A??{x:e.x,y:e.y}}function Rf(){return navigator.maxTouchPoints||"ontouchstart"in this}function Vf(){var e=Mf,A=Of,t=Kf,n=Rf,o={},a=rr("start","drag","end"),u=0,d,h,g,B,w=0;function m(z){z.on("mousedown.drag",v).filter(n).on("touchstart.drag",L).on("touchmove.drag",N,kf).on("touchend.drag touchcancel.drag",V).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(z,iA){if(!(B||!e.call(this,z,iA))){var W=U(this,A.call(this,z,iA),z,iA,"mouse");W&&(De(z.view).on("mousemove.drag",Q,Cn).on("mouseup.drag",I,Cn),xs(z.view),Po(z),g=!1,d=z.clientX,h=z.clientY,W("start",z))}}function Q(z){if(zt(z),!g){var iA=z.clientX-d,W=z.clientY-h;g=iA*iA+W*W>w}o.mouse("drag",z)}function I(z){De(z.view).on("mousemove.drag mouseup.drag",null),Ds(z.view,g),zt(z),o.mouse("end",z)}function L(z,iA){if(e.call(this,z,iA)){var W=z.changedTouches,lA=A.call(this,z,iA),sA=W.length,nA,oA;for(nA=0;nA<sA;++nA)(oA=U(this,lA,z,iA,W[nA].identifier,W[nA]))&&(Po(z),oA("start",z,W[nA]))}}function N(z){var iA=z.changedTouches,W=iA.length,lA,sA;for(lA=0;lA<W;++lA)(sA=o[iA[lA].identifier])&&(zt(z),sA("drag",z,iA[lA]))}function V(z){var iA=z.changedTouches,W=iA.length,lA,sA;for(B&&clearTimeout(B),B=setTimeout(function(){B=null},500),lA=0;lA<W;++lA)(sA=o[iA[lA].identifier])&&(Po(z),sA("end",z,iA[lA]))}function U(z,iA,W,lA,sA,nA){var oA=a.copy(),AA=Re(nA||W,iA),_,q,F;if((F=t.call(z,new Go("beforestart",{sourceEvent:W,target:m,identifier:sA,active:u,x:AA[0],y:AA[1],dx:0,dy:0,dispatch:oA}),lA))!=null)return _=F.x-AA[0]||0,q=F.y-AA[1]||0,function R(b,P,M){var k=AA,O;switch(b){case"start":o[sA]=R,O=u++;break;case"end":delete o[sA],--u;case"drag":AA=Re(M||P,iA),O=u;break}oA.call(b,z,new Go(b,{sourceEvent:P,subject:F,target:m,identifier:sA,active:O,x:AA[0]+_,y:AA[1]+q,dx:AA[0]-k[0],dy:AA[1]-k[1],dispatch:oA}),lA)}}return m.filter=function(z){return arguments.length?(e=typeof z=="function"?z:ar(!!z),m):e},m.container=function(z){return arguments.length?(A=typeof z=="function"?z:ar(z),m):A},m.subject=function(z){return arguments.length?(t=typeof z=="function"?z:ar(z),m):t},m.touchable=function(z){return arguments.length?(n=typeof z=="function"?z:ar(!!z),m):n},m.on=function(){var z=a.on.apply(a,arguments);return z===a?m:z},m.clickDistance=function(z){return arguments.length?(w=(z=+z)*z,m):Math.sqrt(w)},m}function zo(e,A,t){e.prototype=A.prototype=t,t.constructor=e}function Ns(e,A){var t=Object.create(e.prototype);for(var n in A)t[n]=A[n];return t}function vn(){}var yn=.7,lr=1/yn,Xt="\\s*([+-]?\\d+)\\s*",Qn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ve="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Pf=/^#([0-9a-f]{3,8})$/,Gf=new RegExp(`^rgb\\(${Xt},${Xt},${Xt}\\)$`),zf=new RegExp(`^rgb\\(${Ve},${Ve},${Ve}\\)$`),Xf=new RegExp(`^rgba\\(${Xt},${Xt},${Xt},${Qn}\\)$`),$f=new RegExp(`^rgba\\(${Ve},${Ve},${Ve},${Qn}\\)$`),Yf=new RegExp(`^hsl\\(${Qn},${Ve},${Ve}\\)$`),Wf=new RegExp(`^hsla\\(${Qn},${Ve},${Ve},${Qn}\\)$`),Ls={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};zo(vn,Ht,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ts,formatHex:Ts,formatHex8:Jf,formatHsl:Zf,formatRgb:ks,toString:ks});function Ts(){return this.rgb().formatHex()}function Jf(){return this.rgb().formatHex8()}function Zf(){return Vs(this).formatHsl()}function ks(){return this.rgb().formatRgb()}function Ht(e){var A,t;return e=(e+"").trim().toLowerCase(),(A=Pf.exec(e))?(t=A[1].length,A=parseInt(A[1],16),t===6?Ms(A):t===3?new we(A>>8&15|A>>4&240,A>>4&15|A&240,(A&15)<<4|A&15,1):t===8?cr(A>>24&255,A>>16&255,A>>8&255,(A&255)/255):t===4?cr(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=Gf.exec(e))?new we(A[1],A[2],A[3],1):(A=zf.exec(e))?new we(A[1]*255/100,A[2]*255/100,A[3]*255/100,1):(A=Xf.exec(e))?cr(A[1],A[2],A[3],A[4]):(A=$f.exec(e))?cr(A[1]*255/100,A[2]*255/100,A[3]*255/100,A[4]):(A=Yf.exec(e))?Rs(A[1],A[2]/100,A[3]/100,1):(A=Wf.exec(e))?Rs(A[1],A[2]/100,A[3]/100,A[4]):Ls.hasOwnProperty(e)?Ms(Ls[e]):e==="transparent"?new we(NaN,NaN,NaN,0):null}function Ms(e){return new we(e>>16&255,e>>8&255,e&255,1)}function cr(e,A,t,n){return n<=0&&(e=A=t=NaN),new we(e,A,t,n)}function jf(e){return e instanceof vn||(e=Ht(e)),e?(e=e.rgb(),new we(e.r,e.g,e.b,e.opacity)):new we}function Xo(e,A,t,n){return arguments.length===1?jf(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}zo(we,Xo,Ns(vn,{brighter(e){return e=e==null?lr:Math.pow(lr,e),new we(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?yn:Math.pow(yn,e),new we(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new we(It(this.r),It(this.g),It(this.b),ur(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:Os,formatHex:Os,formatHex8:qf,formatRgb:Ks,toString:Ks}));function Os(){return`#${_t(this.r)}${_t(this.g)}${_t(this.b)}`}function qf(){return`#${_t(this.r)}${_t(this.g)}${_t(this.b)}${_t((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ks(){const e=ur(this.opacity);return`${e===1?"rgb(":"rgba("}${It(this.r)}, ${It(this.g)}, ${It(this.b)}${e===1?")":`, ${e})`}`}function ur(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function It(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function _t(e){return e=It(e),(e<16?"0":"")+e.toString(16)}function Rs(e,A,t,n){return n<=0?e=A=t=NaN:t<=0||t>=1?e=A=NaN:A<=0&&(e=NaN),new Ne(e,A,t,n)}function Vs(e){if(e instanceof Ne)return new Ne(e.h,e.s,e.l,e.opacity);if(e instanceof vn||(e=Ht(e)),!e)return new Ne;if(e instanceof Ne)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 Ne(u,d,h,e.opacity)}function Ag(e,A,t,n){return arguments.length===1?Vs(e):new Ne(e,A,t,n??1)}function Ne(e,A,t,n){this.h=+e,this.s=+A,this.l=+t,this.opacity=+n}zo(Ne,Ag,Ns(vn,{brighter(e){return e=e==null?lr:Math.pow(lr,e),new Ne(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?yn:Math.pow(yn,e),new Ne(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($o(e>=240?e-240:e+120,o,n),$o(e,o,n),$o(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Ne(Ps(this.h),dr(this.s),dr(this.l),ur(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=ur(this.opacity);return`${e===1?"hsl(":"hsla("}${Ps(this.h)}, ${dr(this.s)*100}%, ${dr(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Ps(e){return e=(e||0)%360,e<0?e+360:e}function dr(e){return Math.max(0,Math.min(1,e||0))}function $o(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 Yo=e=>()=>e;function eg(e,A){return function(t){return e+t*A}}function tg(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 ng(e){return(e=+e)==1?Gs:function(A,t){return t-A?tg(A,t,e):Yo(isNaN(A)?t:A)}}function Gs(e,A){var t=A-e;return t?eg(e,t):Yo(isNaN(e)?A:e)}var fr=(function e(A){var t=ng(A);function n(o,a){var u=t((o=Xo(o)).r,(a=Xo(a)).r),d=t(o.g,a.g),h=t(o.b,a.b),g=Gs(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 rg(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 og(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function ig(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]=En(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 sg(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 ag(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]=En(e[o],A[o]):n[o]=A[o];return function(a){for(o in t)n[o]=t[o](a);return n}}var Wo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Jo=new RegExp(Wo.source,"g");function lg(e){return function(){return e}}function cg(e){return function(A){return e(A)+""}}function zs(e,A){var t=Wo.lastIndex=Jo.lastIndex=0,n,o,a,u=-1,d=[],h=[];for(e=e+"",A=A+"";(n=Wo.exec(e))&&(o=Jo.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=Jo.lastIndex;return t<A.length&&(a=A.slice(t),d[u]?d[u]+=a:d[++u]=a),d.length<2?h[0]?cg(h[0].x):lg(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 En(e,A){var t=typeof A,n;return A==null||t==="boolean"?Yo(A):(t==="number"?Pe:t==="string"?(n=Ht(A))?(A=n,fr):zs:A instanceof Ht?fr:A instanceof Date?sg:og(A)?rg:Array.isArray(A)?ig:typeof A.valueOf!="function"&&typeof A.toString!="function"||isNaN(A)?ag:Pe)(e,A)}var Xs=180/Math.PI,Zo={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function $s(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)*Xs,skewX:Math.atan(h)*Xs,scaleX:u,scaleY:d}}var gr;function ug(e){const A=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return A.isIdentity?Zo:$s(A.a,A.b,A.c,A.d,A.e,A.f)}function dg(e){return e==null||(gr||(gr=document.createElementNS("http://www.w3.org/2000/svg","g")),gr.setAttribute("transform",e),!(e=gr.transform.baseVal.consolidate()))?Zo:(e=e.matrix,$s(e.a,e.b,e.c,e.d,e.e,e.f))}function Ys(e,A,t,n){function o(g){return g.length?g.pop()+" ":""}function a(g,B,w,m,v,Q){if(g!==w||B!==m){var I=v.push("translate(",null,A,null,t);Q.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,Q){if(g!==w||B!==m){var I=v.push(o(v)+"scale(",null,",",null,")");Q.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 Q=-1,I=m.length,L;++Q<I;)w[(L=m[Q]).i]=L.x(v);return w.join("")}}}var fg=Ys(ug,"px, ","px)","deg)"),gg=Ys(dg,", ",")",")"),hg=1e-12;function Ws(e){return((e=Math.exp(e))+1/e)/2}function Bg(e){return((e=Math.exp(e))-1/e)/2}function pg(e){return((e=Math.exp(2*e))-1)/(e+1)}var hr=(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,Q=w-h,I=v*v+Q*Q,L,N;if(I<hg)N=Math.log(m/g)/A,L=function(W){return[d+W*v,h+W*Q,g*Math.exp(A*W*N)]};else{var V=Math.sqrt(I),U=(m*m-g*g+n*I)/(2*g*t*V),z=(m*m-g*g-n*I)/(2*m*t*V),iA=Math.log(Math.sqrt(U*U+1)-U);N=(Math.log(Math.sqrt(z*z+1)-z)-iA)/A,L=function(W){var lA=W*N,sA=Ws(iA),nA=g/(t*V)*(sA*pg(A*lA+iA)-Bg(iA));return[d+nA*v,h+nA*Q,g*sA/Ws(A*lA+iA)]}}return L.duration=N*1e3*A/Math.SQRT2,L}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),$t=0,Fn=0,Un=0,Js=1e3,Br,bn,pr=0,St=0,mr=0,Hn=typeof performance=="object"&&performance.now?performance:Date,Zs=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function jo(){return St||(Zs(mg),St=Hn.now()+mr)}function mg(){St=0}function wr(){this._call=this._time=this._next=null}wr.prototype=js.prototype={constructor:wr,restart:function(e,A,t){if(typeof e!="function")throw new TypeError("callback is not a function");t=(t==null?jo():+t)+(A==null?0:+A),!this._next&&bn!==this&&(bn?bn._next=this:Br=this,bn=this),this._call=e,this._time=t,qo()},stop:function(){this._call&&(this._call=null,this._time=1/0,qo())}};function js(e,A,t){var n=new wr;return n.restart(e,A,t),n}function wg(){jo(),++$t;for(var e=Br,A;e;)(A=St-e._time)>=0&&e._call.call(void 0,A),e=e._next;--$t}function qs(){St=(pr=Hn.now())+mr,$t=Fn=0;try{wg()}finally{$t=0,vg(),St=0}}function Cg(){var e=Hn.now(),A=e-pr;A>Js&&(mr-=A,pr=e)}function vg(){for(var e,A=Br,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:Br=t);bn=e,qo(n)}function qo(e){$t||(Fn&&(Fn=clearTimeout(Fn)),e-St>24?(e<1/0&&(Fn=setTimeout(qs,e-Hn.now()-mr)),Un&&(Un=clearInterval(Un))):(Un||(pr=Hn.now(),Un=setInterval(Cg,Js)),$t=1,Zs(qs)))}function Aa(e,A,t){var n=new wr;return A=A==null?0:+A,n.restart(o=>{n.stop(),e(o+A)},A,t),n}var yg=rr("start","end","cancel","interrupt"),Qg=[],ea=0,ta=1,Ai=2,Cr=3,na=4,ei=5,vr=6;function yr(e,A,t,n,o,a){var u=e.__transition;if(!u)e.__transition={};else if(t in u)return;Eg(e,t,{name:A,index:n,group:o,on:yg,tween:Qg,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:ea})}function ti(e,A){var t=Le(e,A);if(t.state>ea)throw new Error("too late; already scheduled");return t}function Ge(e,A){var t=Le(e,A);if(t.state>Cr)throw new Error("too late; already running");return t}function Le(e,A){var t=e.__transition;if(!t||!(t=t[A]))throw new Error("transition not found");return t}function Eg(e,A,t){var n=e.__transition,o;n[A]=t,t.timer=js(a,0,t.time);function a(g){t.state=ta,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!==ta)return h();for(B in n)if(v=n[B],v.name===t.name){if(v.state===Cr)return Aa(u);v.state===na?(v.state=vr,v.timer.stop(),v.on.call("interrupt",e,e.__data__,v.index,v.group),delete n[B]):+B<A&&(v.state=vr,v.timer.stop(),v.on.call("cancel",e,e.__data__,v.index,v.group),delete n[B])}if(Aa(function(){t.state===Cr&&(t.state=na,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=Cr,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=ei,1),w=-1,m=o.length;++w<m;)o[w].call(e,B);t.state===ei&&(t.on.call("end",e,e.__data__,t.index,t.group),h())}function h(){t.state=vr,t.timer.stop(),delete n[A];for(var g in n)return;delete e.__transition}}function Qr(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<ei,n.state=vr,n.timer.stop(),n.on.call(o?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete t[u]}a&&delete e.__transition}}function Fg(e){return this.each(function(){Qr(this,e)})}function Ug(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 bg(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 Hg(e,A){var t=this._id;if(e+="",arguments.length<2){for(var n=Le(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?Ug:bg)(t,e,A))}function ni(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 Le(o,n).value[A]}}function ra(e,A){var t;return(typeof A=="number"?Pe:A instanceof Ht?fr:(t=Ht(A))?(A=t,fr):zs)(e,A)}function Ig(e){return function(){this.removeAttribute(e)}}function _g(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Sg(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 xg(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 Dg(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 Ng(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 Lg(e,A){var t=ir(e),n=t==="transform"?gg:ra;return this.attrTween(e,typeof A=="function"?(t.local?Ng:Dg)(t,n,ni(this,"attr."+e,A)):A==null?(t.local?_g:Ig)(t):(t.local?xg:Sg)(t,n,A))}function Tg(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 Mg(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 Og(e,A){var t,n;function o(){var a=A.apply(this,arguments);return a!==n&&(t=(n=a)&&Tg(e,a)),t}return o._value=A,o}function Kg(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=ir(e);return this.tween(t,(n.local?Mg:Og)(n,A))}function Rg(e,A){return function(){ti(this,e).delay=+A.apply(this,arguments)}}function Vg(e,A){return A=+A,function(){ti(this,e).delay=A}}function Pg(e){var A=this._id;return arguments.length?this.each((typeof e=="function"?Rg:Vg)(A,e)):Le(this.node(),A).delay}function Gg(e,A){return function(){Ge(this,e).duration=+A.apply(this,arguments)}}function zg(e,A){return A=+A,function(){Ge(this,e).duration=A}}function Xg(e){var A=this._id;return arguments.length?this.each((typeof e=="function"?Gg:zg)(A,e)):Le(this.node(),A).duration}function $g(e,A){if(typeof A!="function")throw new Error;return function(){Ge(this,e).ease=A}}function Yg(e){var A=this._id;return arguments.length?this.each($g(A,e)):Le(this.node(),A).ease}function Wg(e,A){return function(){var t=A.apply(this,arguments);if(typeof t!="function")throw new Error;Ge(this,e).ease=t}}function Jg(e){if(typeof e!="function")throw new Error;return this.each(Wg(this._id,e))}function Zg(e){typeof e!="function"&&(e=ys(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 jg(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 qg(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 Ah(e,A,t){var n,o,a=qg(A)?ti:Ge;return function(){var u=a(this,e),d=u.on;d!==n&&(o=(n=d).copy()).on(A,t),u.on=o}}function eh(e,A){var t=this._id;return arguments.length<2?Le(this.node(),t).on.on(e):this.each(Ah(t,e,A))}function th(e){return function(){var A=this.parentNode;for(var t in this.__transition)if(+t!==e)return;A&&A.removeChild(this)}}function nh(){return this.on("end.remove",th(this._id))}function rh(e){var A=this._name,t=this._id;typeof e!="function"&&(e=Ro(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,yr(g[m],A,t,m,g,Le(B,t)));return new At(a,this._parents,A,t)}function oh(e){var A=this._name,t=this._id;typeof e!="function"&&(e=vs(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,Q=Le(B,t),I=0,L=m.length;I<L;++I)(v=m[I])&&yr(v,A,t,I,m,Q);a.push(m),u.push(B)}return new At(a,u,A,t)}var ih=wn.prototype.constructor;function sh(){return new ih(this._groups,this._parents)}function ah(e,A){var t,n,o;return function(){var a=Gt(this,e),u=(this.style.removeProperty(e),Gt(this,e));return a===u?null:a===t&&u===n?o:o=A(t=a,n=u)}}function oa(e){return function(){this.style.removeProperty(e)}}function lh(e,A,t){var n,o=t+"",a;return function(){var u=Gt(this,e);return u===o?null:u===n?a:a=A(n=u,t)}}function ch(e,A,t){var n,o,a;return function(){var u=Gt(this,e),d=t(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),Gt(this,e))),u===h?null:u===n&&h===o?a:(o=h,a=A(n=u,d))}}function uh(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=oa(A)):void 0;(g!==t||o!==B)&&(n=(t=g).copy()).on(u,o=B),h.on=n}}function dh(e,A,t){var n=(e+="")=="transform"?fg:ra;return A==null?this.styleTween(e,ah(e,n)).on("end.style."+e,oa(e)):typeof A=="function"?this.styleTween(e,ch(e,n,ni(this,"style."+e,A))).each(uh(this._id,e)):this.styleTween(e,lh(e,n,A),t).on("end.style."+e,null)}function fh(e,A,t){return function(n){this.style.setProperty(e,A.call(this,n),t)}}function gh(e,A,t){var n,o;function a(){var u=A.apply(this,arguments);return u!==o&&(n=(o=u)&&fh(e,u,t)),n}return a._value=A,a}function hh(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,gh(e,A,t??""))}function Bh(e){return function(){this.textContent=e}}function ph(e){return function(){var A=e(this);this.textContent=A??""}}function mh(e){return this.tween("text",typeof e=="function"?ph(ni(this,"text",e)):Bh(e==null?"":e+""))}function wh(e){return function(A){this.textContent=e.call(this,A)}}function Ch(e){var A,t;function n(){var o=e.apply(this,arguments);return o!==t&&(A=(t=o)&&wh(o)),A}return n._value=e,n}function vh(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,Ch(e))}function yh(){for(var e=this._name,A=this._id,t=ia(),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=Le(h,A);yr(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 Qh(){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 Eh=0;function At(e,A,t,n){this._groups=e,this._parents=A,this._name=t,this._id=n}function ia(){return++Eh}var et=wn.prototype;At.prototype={constructor:At,select:rh,selectAll:oh,selectChild:et.selectChild,selectChildren:et.selectChildren,filter:Zg,merge:jg,selection:sh,transition:yh,call:et.call,nodes:et.nodes,node:et.node,size:et.size,empty:et.empty,each:et.each,on:eh,attr:Lg,attrTween:Kg,style:dh,styleTween:hh,text:mh,textTween:vh,remove:nh,tween:Hg,delay:Pg,duration:Xg,ease:Yg,easeVarying:Jg,end:Qh,[Symbol.iterator]:et[Symbol.iterator]};function Fh(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Uh={time:null,delay:0,duration:250,ease:Fh};function bh(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 Hh(e){var A,t;e instanceof At?(A=e._id,e=e._name):(A=ia(),(t=Uh).time=jo(),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])&&yr(h,e,A,g,u,t||bh(h,A));return new At(n,this._parents,e,A)}wn.prototype.interrupt=Fg,wn.prototype.transition=Hh;var Er=e=>()=>e;function Ih(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 Yt=new tt(1,0,0);tt.prototype;function ri(e){e.stopImmediatePropagation()}function In(e){e.preventDefault(),e.stopImmediatePropagation()}function _h(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Sh(){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 sa(){return this.__zoom||Yt}function xh(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Dh(){return navigator.maxTouchPoints||"ontouchstart"in this}function Nh(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 Lh(){var e=_h,A=Sh,t=Nh,n=xh,o=Dh,a=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],d=250,h=hr,g=rr("start","zoom","end"),B,w,m,v=500,Q=150,I=0,L=10;function N(F){F.property("__zoom",sa).on("wheel.zoom",sA,{passive:!1}).on("mousedown.zoom",nA).on("dblclick.zoom",oA).filter(o).on("touchstart.zoom",AA).on("touchmove.zoom",_).on("touchend.zoom touchcancel.zoom",q).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}N.transform=function(F,R,b,P){var M=F.selection?F.selection():F;M.property("__zoom",sa),F!==M?iA(F,R,b,P):M.interrupt().each(function(){W(this,arguments).event(P).start().zoom(null,typeof R=="function"?R.apply(this,arguments):R).end()})},N.scaleBy=function(F,R,b,P){N.scaleTo(F,function(){return this.__zoom.k*(typeof R=="function"?R.apply(this,arguments):R)},b,P)},N.scaleTo=function(F,R,b,P){N.transform(F,function(){var M=A.apply(this,arguments),k=this.__zoom,O=b==null?z(M):typeof b=="function"?b.apply(this,arguments):b,Y=k.invert(O),eA=typeof R=="function"?R.apply(this,arguments):R;return t(U(V(k,eA),O,Y),M,u)},b,P)},N.translateBy=function(F,R,b,P){N.transform(F,function(){return t(this.__zoom.translate(typeof R=="function"?R.apply(this,arguments):R,typeof b=="function"?b.apply(this,arguments):b),A.apply(this,arguments),u)},null,P)},N.translateTo=function(F,R,b,P,M){N.transform(F,function(){var k=A.apply(this,arguments),O=this.__zoom,Y=P==null?z(k):typeof P=="function"?P.apply(this,arguments):P;return t(Yt.translate(Y[0],Y[1]).scale(O.k).translate(typeof R=="function"?-R.apply(this,arguments):-R,typeof b=="function"?-b.apply(this,arguments):-b),k,u)},P,M)};function V(F,R){return R=Math.max(a[0],Math.min(a[1],R)),R===F.k?F:new tt(R,F.x,F.y)}function U(F,R,b){var P=R[0]-b[0]*F.k,M=R[1]-b[1]*F.k;return P===F.x&&M===F.y?F:new tt(F.k,P,M)}function z(F){return[(+F[0][0]+ +F[1][0])/2,(+F[0][1]+ +F[1][1])/2]}function iA(F,R,b,P){F.on("start.zoom",function(){W(this,arguments).event(P).start()}).on("interrupt.zoom end.zoom",function(){W(this,arguments).event(P).end()}).tween("zoom",function(){var M=this,k=arguments,O=W(M,k).event(P),Y=A.apply(M,k),eA=b==null?z(Y):typeof b=="function"?b.apply(M,k):b,hA=Math.max(Y[1][0]-Y[0][0],Y[1][1]-Y[0][1]),bA=M.__zoom,tA=typeof R=="function"?R.apply(M,k):R,J=h(bA.invert(eA).concat(hA/bA.k),tA.invert(eA).concat(hA/tA.k));return function($){if($===1)$=tA;else{var uA=J($),pA=hA/uA[2];$=new tt(pA,eA[0]-uA[0]*pA,eA[1]-uA[1]*pA)}O.zoom(null,$)}})}function W(F,R,b){return!b&&F.__zooming||new lA(F,R)}function lA(F,R){this.that=F,this.args=R,this.active=0,this.sourceEvent=null,this.extent=A.apply(F,R),this.taps=0}lA.prototype={event:function(F){return F&&(this.sourceEvent=F),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(F,R){return this.mouse&&F!=="mouse"&&(this.mouse[1]=R.invert(this.mouse[0])),this.touch0&&F!=="touch"&&(this.touch0[1]=R.invert(this.touch0[0])),this.touch1&&F!=="touch"&&(this.touch1[1]=R.invert(this.touch1[0])),this.that.__zoom=R,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(F){var R=De(this.that).datum();g.call(F,this.that,new Ih(F,{sourceEvent:this.sourceEvent,target:N,type:F,transform:this.that.__zoom,dispatch:g}),R)}};function sA(F,...R){if(!e.apply(this,arguments))return;var b=W(this,R).event(F),P=this.__zoom,M=Math.max(a[0],Math.min(a[1],P.k*Math.pow(2,n.apply(this,arguments)))),k=Re(F);if(b.wheel)(b.mouse[0][0]!==k[0]||b.mouse[0][1]!==k[1])&&(b.mouse[1]=P.invert(b.mouse[0]=k)),clearTimeout(b.wheel);else{if(P.k===M)return;b.mouse=[k,P.invert(k)],Qr(this),b.start()}In(F),b.wheel=setTimeout(O,Q),b.zoom("mouse",t(U(V(P,M),b.mouse[0],b.mouse[1]),b.extent,u));function O(){b.wheel=null,b.end()}}function nA(F,...R){if(m||!e.apply(this,arguments))return;var b=F.currentTarget,P=W(this,R,!0).event(F),M=De(F.view).on("mousemove.zoom",eA,!0).on("mouseup.zoom",hA,!0),k=Re(F,b),O=F.clientX,Y=F.clientY;xs(F.view),ri(F),P.mouse=[k,this.__zoom.invert(k)],Qr(this),P.start();function eA(bA){if(In(bA),!P.moved){var tA=bA.clientX-O,J=bA.clientY-Y;P.moved=tA*tA+J*J>I}P.event(bA).zoom("mouse",t(U(P.that.__zoom,P.mouse[0]=Re(bA,b),P.mouse[1]),P.extent,u))}function hA(bA){M.on("mousemove.zoom mouseup.zoom",null),Ds(bA.view,P.moved),In(bA),P.event(bA).end()}}function oA(F,...R){if(e.apply(this,arguments)){var b=this.__zoom,P=Re(F.changedTouches?F.changedTouches[0]:F,this),M=b.invert(P),k=b.k*(F.shiftKey?.5:2),O=t(U(V(b,k),P,M),A.apply(this,R),u);In(F),d>0?De(this).transition().duration(d).call(iA,O,P,F):De(this).call(N.transform,O,P,F)}}function AA(F,...R){if(e.apply(this,arguments)){var b=F.touches,P=b.length,M=W(this,R,F.changedTouches.length===P).event(F),k,O,Y,eA;for(ri(F),O=0;O<P;++O)Y=b[O],eA=Re(Y,this),eA=[eA,this.__zoom.invert(eA),Y.identifier],M.touch0?!M.touch1&&M.touch0[2]!==eA[2]&&(M.touch1=eA,M.taps=0):(M.touch0=eA,k=!0,M.taps=1+!!B);B&&(B=clearTimeout(B)),k&&(M.taps<2&&(w=eA[0],B=setTimeout(function(){B=null},v)),Qr(this),M.start())}}function _(F,...R){if(this.__zooming){var b=W(this,R).event(F),P=F.changedTouches,M=P.length,k,O,Y,eA;for(In(F),k=0;k<M;++k)O=P[k],Y=Re(O,this),b.touch0&&b.touch0[2]===O.identifier?b.touch0[0]=Y:b.touch1&&b.touch1[2]===O.identifier&&(b.touch1[0]=Y);if(O=b.that.__zoom,b.touch1){var hA=b.touch0[0],bA=b.touch0[1],tA=b.touch1[0],J=b.touch1[1],$=($=tA[0]-hA[0])*$+($=tA[1]-hA[1])*$,uA=(uA=J[0]-bA[0])*uA+(uA=J[1]-bA[1])*uA;O=V(O,Math.sqrt($/uA)),Y=[(hA[0]+tA[0])/2,(hA[1]+tA[1])/2],eA=[(bA[0]+J[0])/2,(bA[1]+J[1])/2]}else if(b.touch0)Y=b.touch0[0],eA=b.touch0[1];else return;b.zoom("touch",t(U(O,Y,eA),b.extent,u))}}function q(F,...R){if(this.__zooming){var b=W(this,R).event(F),P=F.changedTouches,M=P.length,k,O;for(ri(F),m&&clearTimeout(m),m=setTimeout(function(){m=null},v),k=0;k<M;++k)O=P[k],b.touch0&&b.touch0[2]===O.identifier?delete b.touch0:b.touch1&&b.touch1[2]===O.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&&(O=Re(O,this),Math.hypot(w[0]-O[0],w[1]-O[1])<L)){var Y=De(this).on("dblclick.zoom");Y&&Y.apply(this,arguments)}}}return N.wheelDelta=function(F){return arguments.length?(n=typeof F=="function"?F:Er(+F),N):n},N.filter=function(F){return arguments.length?(e=typeof F=="function"?F:Er(!!F),N):e},N.touchable=function(F){return arguments.length?(o=typeof F=="function"?F:Er(!!F),N):o},N.extent=function(F){return arguments.length?(A=typeof F=="function"?F:Er([[+F[0][0],+F[0][1]],[+F[1][0],+F[1][1]]]),N):A},N.scaleExtent=function(F){return arguments.length?(a[0]=+F[0],a[1]=+F[1],N):[a[0],a[1]]},N.translateExtent=function(F){return arguments.length?(u[0][0]=+F[0][0],u[1][0]=+F[1][0],u[0][1]=+F[0][1],u[1][1]=+F[1][1],N):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},N.constrain=function(F){return arguments.length?(t=F,N):t},N.duration=function(F){return arguments.length?(d=+F,N):d},N.interpolate=function(F){return arguments.length?(h=F,N):h},N.on=function(){var F=g.on.apply(g,arguments);return F===g?N:F},N.clickDistance=function(F){return arguments.length?(I=(F=+F)*F,N):Math.sqrt(I)},N.tapDistance=function(F){return arguments.length?(L=+F,N):L},N}var IA=(e=>(e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom",e))(IA||{}),oi=(e=>(e.Partial="partial",e.Full="full",e))(oi||{}),xt=(e=>(e.Bezier="default",e.SimpleBezier="simple-bezier",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e))(xt||{}),nt=(e=>(e.Strict="strict",e.Loose="loose",e))(nt||{}),rt=(e=>(e.Arrow="arrow",e.ArrowClosed="arrowclosed",e))(rt||{}),_n=(e=>(e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal",e))(_n||{}),aa=(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))(aa||{}),Th=["INPUT","SELECT","TEXTAREA"],kh=typeof document<"u"?document:null;function ii(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 Th.includes(n?.nodeName)||o||!!a}function Mh(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey}function la(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 Oh(e,A){return t=>{if(!t.code&&!t.key)return!1;const n=Kh(t.code,e);return Array.isArray(e)?e.some(o=>sa(t[n],o,A,t.type==="keyup")):sa(t[n],e,A,t.type==="keyup")}}function Kh(e,A){return A.includes(e)?"code":"key"}function xn(e,A){const t=(0,r.computed)(()=>(0,r.toValue)(A?.target)??Th),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}),gs(["blur","contextmenu"],d),hs((...g)=>u(...g),g=>{var B,w;const m=(0,r.toValue)(A?.actInsideInputWithModifier)??!0,y=(0,r.toValue)(A?.preventDefault)??!1;if(o=Mh(g),(!o||o&&!m)&&oi(g))return;const Q=((w=(B=g.composedPath)==null?void 0:B.call(g))==null?void 0:w[0])||g.target,U=Q?.nodeName==="BUTTON"||Q?.nodeName==="A";!y&&(o||!U)&&g.preventDefault(),n.value=!0},{eventName:"keydown",target:t}),hs((...g)=>u(...g),g=>{const B=(0,r.toValue)(A?.actInsideInputWithModifier)??!0;if(n.value){if((!o||o&&!B)&&oi(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"?Oh(g,a):g}return n}var aa="vue-flow__node-desc",la="vue-flow__edge-desc",Rh="vue-flow__aria-live",ca=["Enter"," ","Escape"],Zt={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};function Fr(e){return{...e.computedPosition||{x:0,y:0},width:e.dimensions.width||0,height:e.dimensions.height||0}}function Ur(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 br(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Lt(e,A=0,t=1){return Math.min(Math.max(e,A),t)}function ua(e,A){return{x:Lt(e.x,A[0][0],A[1][0]),y:Lt(e.y,A[0][1],A[1][1])}}function da(e){const A=e.getRootNode();return"elementFromPoint"in A?A:window.document}function gt(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&&!gt(e)}function Dn(e){return kt(e)&&"computedPosition"in e}function Hr(e){return!Number.isNaN(e)&&Number.isFinite(e)}function Vh(e){return Hr(e.width)&&Hr(e.height)&&Hr(e.x)&&Hr(e.y)}function Ph(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 fa(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 ga(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 Gh(...e){if(e.length===3){const[o,a,u]=e;return ga(o,a,u,"target")}const[A,t]=e,n=typeof A=="string"?A:A.id;return t.filter(o=>gt(o)&&o.source===n).map(o=>t.find(a=>kt(a)&&a.id===o.target))}function zh(...e){if(e.length===3){const[o,a,u]=e;return ga(o,a,u,"source")}const[A,t]=e,n=typeof A=="string"?A:A.id;return t.filter(o=>gt(o)&&o.target===n).map(o=>t.find(a=>kt(a)&&a.id===o.source))}function ha({source:e,sourceHandle:A,target:t,targetHandle:n}){return`vueflow__edge-${e}${A??""}-${t}${n??""}`}function Xh(e,A){return A.some(t=>gt(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 Nn({x:e,y:A},{x:t,y:n,zoom:o}){return{x:e*o+t,y:A*o+n}}function Ln({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?_r(d,u):d}function $h(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 Ba({x:e,y:A,width:t,height:n}){return{x:e,y:A,x2:e+t,y2:A+n}}function Wh({x:e,y:A,x2:t,y2:n}){return{x:e,y:A,width:t-e,height:n-A}}function pa(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=$h(A,Ba({...n.computedPosition,...n.dimensions}))}return Wh(A)}function ma(e,A,t={x:0,y:0,zoom:1},n=!1,o=!1){const a={...Ln(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 y=Ur(a,Fr(d)),Q=w===null||m===null,U=n&&y>0,T=(w??0)*(m??0);(Q||U||y>=T||d.dragging)&&u.push(d)}return u}function wa(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 jt(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 Tn(`The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function Yh(e,A,t){if(typeof e=="string"||typeof e=="number"){const n=jt(e,t),o=jt(e,A);return{top:n,right:o,bottom:n,left:o,x:o*2,y:n*2}}if(typeof e=="object"){const n=jt(e.top??e.y??0,t),o=jt(e.bottom??e.y??0,t),a=jt(e.left??e.x??0,A),u=jt(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 Jh(e,A,t,n,o,a){const{x:u,y:d}=Nn(e,{x:A,y:t,zoom:n}),{x:h,y:g}=Nn({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 Ca(e,A,t,n,o,a=.1){const u=Yh(a,A,t),d=(A-u.x)/e.width,h=(t-u.y)/e.height,g=Lt(Math.min(d,h),n,o),B=e.x+e.width/2,w=e.y+e.height/2,m=A/2-B*g,y=t/2-w*g,Q=Jh(e,m,y,g,A,t),U={left:Math.min(Q.left-u.left,0),top:Math.min(Q.top-u.top,0),right:Math.min(Q.right-u.right,0),bottom:Math.min(Q.bottom-u.bottom,0)};return{x:m-U.left+U.right,y:y-U.top+U.bottom,zoom:g}}function Zh(e,A){return{x:A.x+e.x,y:A.y+e.y,z:(e.z>A.z?e.z:A.z)+1}}function ya(e,A){if(!e.parentNode)return!1;const t=A.get(e.parentNode);return t?t.selected?!0:ya(t,A):!1}function kn(e,A){return typeof e>"u"?"":typeof e=="string"?e:`${A?`${A}__`:""}${Object.keys(e).sort().map(t=>`${t}=${e[t]}`).join("&")}`}function va(e){const A=e.ctrlKey&&Ir()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*A}function Qa(e,A,t){return e<A?Lt(Math.abs(e-A),1,A)/A:e>t?-Lt(Math.abs(e-t),1,A)/A:0}function Ea(e,A,t=15,n=40){return[Qa(e.x,n,A.width-n)*t,Qa(e.y,n,A.height-n)*t]}function ii(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 Fa(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(Dn(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&&Dn(h)&&ii(u,h)}break;case"dimensions":if(Dn(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&&Dn(h)&&(h.dimensions.width&&h.dimensions.height?ii(u,h):(0,r.nextTick)(()=>{ii(u,h)}))}break}return A}function ht(e,A){return{id:e,type:"select",selected:A}}function Ua(e){return{item:e,type:"add"}}function ba(e){return{id:e,type:"remove"}}function Ha(e,A,t,n,o){return{id:e,source:A,target:t,sourceHandle:n||null,targetHandle:o||null,type:"remove"}}function Bt(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(ht(a.id,u)))}return n}var Ia=()=>{};function vA(e){const A=new Set;let t=Ia,n=()=>!1;const o=()=>A.size>0||n(),a=m=>{t=m},u=()=>{t=Ia},d=m=>{n=m},h=()=>{n=()=>!1},g=m=>{A.delete(m)};return{on:m=>{A.add(m);const y=()=>g(m);return wn(y),{off:y}},off:g,trigger:m=>{const y=[t];return o()?y.push(...A):e&&y.push(e),Promise.allSettled(y.map(Q=>Q(m)))},hasListeners:o,listeners:A,setEmitter:a,removeEmitter:u,setHasEmitListeners:d,removeHasEmitListeners:h}}function _a(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 jh(e,A,t,n){var o,a;const u=new Map;for(const[d,h]of e)(h.selected||h.id===n)&&(!h.parentNode||!ya(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 si({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 Sa(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 qh(e,A,t){const[n,o,a,u]=typeof e!="string"?Sa(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 AB(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=qh(o,e,n);a&&(o=a)}else A(new ue(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]=Sa(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 eB({width:e,height:A},t){return[t[0],[t[1][0]-(e||0),t[1][1]-(A||0)]]}function ai(e,A,t,n,o){const a=ua(A,eB(e.dimensions,AB(e,t,n,o)));return{position:{x:a.x-(o?.computedPosition.x||0),y:a.y-(o?.computedPosition.y||0)},computedPosition:a}}function qt(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??oB(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 xa(e,A){return e&&(A?e.find(t=>t.id===A):e[0])||null}function tB({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=Ba({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 nB(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||{}),Da={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 Oh(e,A){return t=>{if(!t.code&&!t.key)return!1;const n=Kh(t.code,e);return Array.isArray(e)?e.some(o=>la(t[n],o,A,t.type==="keyup")):la(t[n],e,A,t.type==="keyup")}}function Kh(e,A){return A.includes(e)?"code":"key"}function Sn(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}),Bs(["blur","contextmenu"],d),ps((...g)=>u(...g),g=>{var B,w;const m=(0,r.toValue)(A?.actInsideInputWithModifier)??!0,v=(0,r.toValue)(A?.preventDefault)??!1;if(o=Mh(g),(!o||o&&!m)&&ii(g))return;const Q=((w=(B=g.composedPath)==null?void 0:B.call(g))==null?void 0:w[0])||g.target,I=Q?.nodeName==="BUTTON"||Q?.nodeName==="A";!v&&(o||!I)&&g.preventDefault(),n.value=!0},{eventName:"keydown",target:t}),ps((...g)=>u(...g),g=>{const B=(0,r.toValue)(A?.actInsideInputWithModifier)??!0;if(n.value){if((!o||o&&!B)&&ii(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"?Oh(g,a):g}return n}var ca="vue-flow__node-desc",ua="vue-flow__edge-desc",Rh="vue-flow__aria-live",da=["Enter"," ","Escape"],Wt={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};function Fr(e){return{...e.computedPosition||{x:0,y:0},width:e.dimensions.width||0,height:e.dimensions.height||0}}function Ur(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 br(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Dt(e,A=0,t=1){return Math.min(Math.max(e,A),t)}function fa(e,A){return{x:Dt(e.x,A[0][0],A[1][0]),y:Dt(e.y,A[0][1],A[1][1])}}function ga(e){const A=e.getRootNode();return"elementFromPoint"in A?A:window.document}function ft(e){return e&&typeof e=="object"&&"id"in e&&"source"in e&&"target"in e}function Nt(e){return e&&typeof e=="object"&&"id"in e&&"position"in e&&!ft(e)}function xn(e){return Nt(e)&&"computedPosition"in e}function Hr(e){return!Number.isNaN(e)&&Number.isFinite(e)}function Vh(e){return Hr(e.width)&&Hr(e.height)&&Hr(e.x)&&Hr(e.y)}function Ph(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:ie(e.data)?e.data:{},events:(0,r.markRaw)(ie(e.events)?e.events:{})};return Object.assign(A??n,e,{id:e.id.toString(),parentNode:t})}function ha(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:ie(e.data)?e.data:{},events:(0,r.markRaw)(ie(e.events)?e.events:{}),label:e.label??"",interactionWidth:e.interactionWidth??t?.interactionWidth,...t??{}};return Object.assign(A??a,e,{id:e.id.toString()})}function Ba(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 Gh(...e){if(e.length===3){const[o,a,u]=e;return Ba(o,a,u,"target")}const[A,t]=e,n=typeof A=="string"?A:A.id;return t.filter(o=>ft(o)&&o.source===n).map(o=>t.find(a=>Nt(a)&&a.id===o.target))}function zh(...e){if(e.length===3){const[o,a,u]=e;return Ba(o,a,u,"source")}const[A,t]=e,n=typeof A=="string"?A:A.id;return t.filter(o=>ft(o)&&o.target===n).map(o=>t.find(a=>Nt(a)&&a.id===o.source))}function pa({source:e,sourceHandle:A,target:t,targetHandle:n}){return`vueflow__edge-${e}${A??""}-${t}${n??""}`}function Xh(e,A){return A.some(t=>ft(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 Dn({x:e,y:A},{x:t,y:n,zoom:o}){return{x:e*o+t,y:A*o+n}}function Nn({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?_r(d,u):d}function $h(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 ma({x:e,y:A,width:t,height:n}){return{x:e,y:A,x2:e+t,y2:A+n}}function Yh({x:e,y:A,x2:t,y2:n}){return{x:e,y:A,width:t-e,height:n-A}}function wa(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=$h(A,ma({...n.computedPosition,...n.dimensions}))}return Yh(A)}function Ca(e,A,t={x:0,y:0,zoom:1},n=!1,o=!1){const a={...Nn(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=Ur(a,Fr(d)),Q=w===null||m===null,I=n&&v>0,L=(w??0)*(m??0);(Q||I||v>=L||d.dragging)&&u.push(d)}return u}function va(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 Jt(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 Tn(`The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function Wh(e,A,t){if(typeof e=="string"||typeof e=="number"){const n=Jt(e,t),o=Jt(e,A);return{top:n,right:o,bottom:n,left:o,x:o*2,y:n*2}}if(typeof e=="object"){const n=Jt(e.top??e.y??0,t),o=Jt(e.bottom??e.y??0,t),a=Jt(e.left??e.x??0,A),u=Jt(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 Jh(e,A,t,n,o,a){const{x:u,y:d}=Dn(e,{x:A,y:t,zoom:n}),{x:h,y:g}=Dn({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 ya(e,A,t,n,o,a=.1){const u=Wh(a,A,t),d=(A-u.x)/e.width,h=(t-u.y)/e.height,g=Dt(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,Q=Jh(e,m,v,g,A,t),I={left:Math.min(Q.left-u.left,0),top:Math.min(Q.top-u.top,0),right:Math.min(Q.right-u.right,0),bottom:Math.min(Q.bottom-u.bottom,0)};return{x:m-I.left+I.right,y:v-I.top+I.bottom,zoom:g}}function Zh(e,A){return{x:A.x+e.x,y:A.y+e.y,z:(e.z>A.z?e.z:A.z)+1}}function Qa(e,A){if(!e.parentNode)return!1;const t=A.get(e.parentNode);return t?t.selected?!0:Qa(t,A):!1}function Ln(e,A){return typeof e>"u"?"":typeof e=="string"?e:`${A?`${A}__`:""}${Object.keys(e).sort().map(t=>`${t}=${e[t]}`).join("&")}`}function Ea(e){const A=e.ctrlKey&&Ir()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*A}function Fa(e,A,t){return e<A?Dt(Math.abs(e-A),1,A)/A:e>t?-Dt(Math.abs(e-t),1,A)/A:0}function Ua(e,A,t=15,n=40){return[Fa(e.x,n,A.width-n)*t,Fa(e.y,n,A.height-n)*t]}function si(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 ba(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(xn(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&&xn(h)&&si(u,h)}break;case"dimensions":if(xn(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&&xn(h)&&(h.dimensions.width&&h.dimensions.height?si(u,h):(0,r.nextTick)(()=>{si(u,h)}))}break}return A}function gt(e,A){return{id:e,type:"select",selected:A}}function Ha(e){return{item:e,type:"add"}}function Ia(e){return{id:e,type:"remove"}}function _a(e,A,t,n,o){return{id:e,source:A,target:t,sourceHandle:n||null,targetHandle:o||null,type:"remove"}}function ht(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(gt(a.id,u)))}return n}var Sa=()=>{};function vA(e){const A=new Set;let t=Sa,n=()=>!1;const o=()=>A.size>0||n(),a=m=>{t=m},u=()=>{t=Sa},d=m=>{n=m},h=()=>{n=()=>!1},g=m=>{A.delete(m)};return{on:m=>{A.add(m);const v=()=>g(m);return mn(v),{off:v}},off:g,trigger:m=>{const v=[t];return o()?v.push(...A):e&&v.push(e),Promise.allSettled(v.map(Q=>Q(m)))},hasListeners:o,listeners:A,setEmitter:a,removeEmitter:u,setHasEmitListeners:d,removeHasEmitListeners:h}}function xa(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 jh(e,A,t,n){var o,a;const u=new Map;for(const[d,h]of e)(h.selected||h.id===n)&&(!h.parentNode||!Qa(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 ai({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 Da(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 qh(e,A,t){const[n,o,a,u]=typeof e!="string"?Da(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 AB(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=qh(o,e,n);a&&(o=a)}else A(new le(oe.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]=Da(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 eB({width:e,height:A},t){return[t[0],[t[1][0]-(e||0),t[1][1]-(A||0)]]}function li(e,A,t,n,o){const a=fa(A,eB(e.dimensions,AB(e,t,n,o)));return{position:{x:a.x-(o?.computedPosition.x||0),y:a.y-(o?.computedPosition.y||0)},computedPosition:a}}function Zt(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??oB(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 Na(e,A){return e&&(A?e.find(t=>t.id===A):e[0])||null}function tB({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=ma({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 nB(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 oe=(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))(oe||{}),La={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=Da[e])==null?void 0:t.call(Da,...A)),this.name="VueFlowError",this.code=e,this.args=A}};function li(e){return"clientX"in e}function rB(e){return"sourceEvent"in e}function Ge(e,A){const t=li(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 Ir=()=>{var e;return typeof navigator<"u"&&((e=navigator?.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function oB(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 _r(e,A=[1,1]){return{x:A[0]*Math.round(e.x/A[0]),y:A[1]*Math.round(e.y/A[1])}}var iB=()=>!0;function ci(e){e?.classList.remove("valid","connecting","vue-flow__handle-valid","vue-flow__handle-connecting")}function sB(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())Ur(o,Fr(a))>0&&n.push(a);return n}var aB=250;function lB(e,A,t,n){var o,a;let u=[],d=Number.POSITIVE_INFINITY;const h=sB(e,t,A+aB);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}=qt(g,w,w.position,!0),Q=Math.sqrt((m-e.x)**2+(y-e.y)**2);Q>A||(Q<d?(u=[{...w,x:m,y}],d=Q):Q===d&&u.push({...w,x:m,y}))}}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 Na(e,{handle:A,connectionMode:t,fromNodeId:n,fromHandleId:o,fromType:a,doc:u,lib:d,flowId:h,isValidConnection:g=iB},B,w,m,y){const Q=a==="target",U=A?u.querySelector(`.${d}-flow__handle[data-id="${h}-${A?.nodeId}-${A?.id}-${A?.type}"]`):null,{x:T,y:M}=Ge(e),R=u.elementFromPoint(T,M),H=R?.classList.contains(`${d}-flow__handle`)?R:U,P={handleDomNode:H,isValid:!1,connection:null,toHandle:null};if(H){const iA=La(void 0,H),Z=H.getAttribute("data-nodeid"),aA=H.getAttribute("data-handleid"),lA=H.classList.contains("connectable"),rA=H.classList.contains("connectableend");if(!Z||!iA)return P;const nA={source:Q?Z:n,sourceHandle:Q?aA:o,target:Q?n:Z,targetHandle:Q?o:aA};P.connection=nA,P.isValid=lA&&rA&&(t===At.Strict?Q&&iA==="source"||!Q&&iA==="target":Z!==n||aA!==o)&&g(nA,{nodes:w,edges:B,sourceNode:m(nA.source),targetNode:m(nA.target)}),P.toHandle=ka(Z,iA,aA,y,t,!0)}return P}function La(e,A){return e||(A?.classList.contains("target")?"target":A?.classList.contains("source")?"source":null)}function cB(e,A){let t=null;return A?t="valid":e&&!A&&(t="invalid"),t}function uB(e,A){let t=null;return A?t=!0:e&&!A&&(t=!1),t}function ka(e,A,t,n,o,a=!1){var u,d,h;const g=n.get(e);if(!g)return null;const B=o===At.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,...qt(g,w,w.position,!0)}:w}var ui={[IA.Left]:IA.Right,[IA.Right]:IA.Left,[IA.Top]:IA.Bottom,[IA.Bottom]:IA.Top},dB=["production","prod"];function Tn(e,...A){Ta()&&console.warn(`[Vue Flow]: ${e}`,...A)}function Ta(){return!dB.includes(process.env.NODE_ENV||"")}function Ma(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,...br(u)}}):null}function di(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 fB(e,A,t,n){if(!e||!e.source||!e.target)return t(new ue(ie.EDGE_INVALID,e?.id??"[ID UNKNOWN]")),!1;let o;return gt(e)?o=e:o={...e,id:ha(e)},o=fa(o,void 0,n),Xh(o,A)?!1:o}function gB(e,A,t,n,o){if(!A.source||!A.target)return o(new ue(ie.EDGE_INVALID,e.id)),!1;if(!t)return o(new ue(ie.EDGE_NOT_FOUND,e.id)),!1;const{id:a,...u}=e;return{...u,id:n?ha(A):a,source:A.source,target:A.target,sourceHandle:A.sourceHandle,targetHandle:A.targetHandle}}function Oa(e,A,t){const n={},o=[];for(let a=0;a<e.length;++a){const u=e[a];if(!kt(u)){t(new ue(ie.NODE_INVALID,u?.id));continue}const d=Ph(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(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 Ka(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 fi(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}`;Ka("source",h,`${a}-${d}--${o}-${u}`,e,o,u),Ka("target",h,g,e,a,d)}}function Ra(e,A){if(e.size!==A.size)return!1;for(const t of e)if(!A.has(t))return!1;return!0}function gi(e,A,t,n,o,a,u,d){const h=[];for(const g of e){const B=gt(g)?g:fB(g,d,o,a);if(!B)continue;const w=t(B.source),m=t(B.target);if(!w||!m){o(new ue(ie.EDGE_SOURCE_TARGET_MISSING,B.id,B.source,B.target));continue}if(!w){o(new ue(ie.EDGE_SOURCE_MISSING,B.id,B.source));continue}if(!m){o(new ue(ie.EDGE_TARGET_MISSING,B.id,B.target));continue}if(A&&!A(B,{edges:d,nodes:u,sourceNode:w,targetNode:m})){o(new ue(ie.EDGE_INVALID,B.id));continue}const y=n(B.id);h.push({...fa(B,y,a),sourceNode:w,targetNode:m})}return h}var Va=Symbol("vueFlow"),Pa=Symbol("nodeId"),Ga=Symbol("nodeRef"),hB=Symbol("edgeId"),BB=Symbol("edgeRef"),Sr=Symbol("slots");function za(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:y,multiSelectionActive:Q,nodesSelectionActive:U,selectNodesOnDrag:T,removeSelectedElements:M,addSelectedNodes:R,updateNodePositions:H,emits:P}=YA(),{onStart:iA,onDrag:Z,onStop:aA,onClick:lA,el:rA,disabled:nA,id:j,selectable:S,dragHandle:eA}=e,I=(0,r.shallowRef)(!1);let X=[],F,x=null,N={x:void 0,y:void 0},L={x:0,y:0},O=null,J=!1,tA=!1,dA=0,UA=!1;const G=wB(),Y=({x:uA,y:hA})=>{N={x:uA,y:hA};let _=!1;if(X=X.map(b=>{const D={x:uA-b.distance.x,y:hA-b.distance.y},{computedPosition:W}=ai(b,t.value?_r(D,n.value):D,P.error,u.value,b.parentNode?y(b.parentNode):void 0);return _=_||b.position.x!==W.x||b.position.y!==W.y,b.position=W,b}),tA=tA||_,!!_&&(H(X,!0,!0),I.value=!0,O)){const[b,D]=si({id:j,dragItems:X,findNode:y});Z({event:O,node:b,nodes:D})}},$=()=>{if(!x)return;const[uA,hA]=Ea(L,x,B.value);if(uA!==0||hA!==0){const _={x:(N.x??0)-uA/h.value.zoom,y:(N.y??0)-hA/h.value.zoom};m({x:uA,y:hA})&&Y(_)}dA=requestAnimationFrame($)},oA=(uA,hA)=>{J=!0;const _=y(j);!T.value&&!Q.value&&_&&(_.selected||M()),_&&(0,r.toValue)(S)&&T.value&&di(_,Q.value,R,M,U,!1,hA);const b=G(uA.sourceEvent);if(N=b,X=jh(a.value,w.value,b,j),X.length){const[D,W]=si({id:j,dragItems:X,findNode:y});iA({event:uA.sourceEvent,node:D,nodes:W})}},BA=(uA,hA)=>{var _;uA.sourceEvent.type==="touchmove"&&uA.sourceEvent.touches.length>1||(tA=!1,d.value===0&&oA(uA,hA),N=G(uA.sourceEvent),x=((_=A.value)==null?void 0:_.getBoundingClientRect())||null,L=Ge(uA.sourceEvent,x))},wA=(uA,hA)=>{const _=G(uA.sourceEvent);if(!UA&&J&&g.value&&(UA=!0,$()),!J){const b=_.xSnapped-(N.x??0),D=_.ySnapped-(N.y??0);Math.sqrt(b*b+D*D)>d.value&&oA(uA,hA)}(N.x!==_.xSnapped||N.y!==_.ySnapped)&&X.length&&J&&(O=uA.sourceEvent,L=Ge(uA.sourceEvent,x),Y(_))},bA=uA=>{let hA=!1;if(!J&&!I.value&&!Q.value){const _=uA.sourceEvent,b=G(_),D=b.xSnapped-(N.x??0),W=b.ySnapped-(N.y??0),V=Math.sqrt(D*D+W*W);V!==0&&V<=d.value&&(lA?.(_),hA=!0)}if(X.length&&!hA){tA&&(H(X,!1,!1),tA=!1);const[_,b]=si({id:j,dragItems:X,findNode:y});aA({event:uA.sourceEvent,node:_,nodes:b})}X=[],I.value=!1,UA=!1,J=!1,N={x:void 0,y:void 0},cancelAnimationFrame(dA)};return(0,r.watch)([()=>(0,r.toValue)(nA),rA],([uA,hA],_,b)=>{if(hA){const D=Le(hA);uA||(F=Vf().on("start",W=>BA(W,hA)).on("drag",W=>wA(W,hA)).on("end",W=>bA(W)).filter(W=>{const V=W.target,pA=(0,r.toValue)(eA);return!W.button&&(!o.value||!_a(V,`.${o.value}`,hA)&&(!pA||_a(V,pA,hA)))}),D.call(F)),b(()=>{D.on(".drag",null),F&&(F.on("start",null),F.on("drag",null),F.on("end",null))})}}),I}function pB(){return{doubleClick:vA(),click:vA(),mouseEnter:vA(),mouseMove:vA(),mouseLeave:vA(),contextMenu:vA(),updateStart:vA(),update:vA(),updateEnd:vA()}}function mB(e,A){const t=pB();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 wB(){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}=Ge(rB(o)?o.sourceEvent:o,u),g=Ln({x:d,y:h},e.value),{x:B,y:w}=t.value?_r(g,A.value):g;return{xSnapped:B,ySnapped:w,...g}}}function xr(){return!0}function Xa({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:y,autoPanOnConnect:Q,autoPanSpeed:U,findNode:T,panBy:M,startConnection:R,updateConnection:H,endConnection:P,emits:iA,viewport:Z,edges:aA,nodes:lA,isValidConnection:rA,nodeLookup:nA}=YA();let j=null,S=!1,eA=null;function I(F){var x;const N=(0,r.toValue)(t)==="target",L=li(F),O=da(F.target),J=F.currentTarget;if(J&&(L&&F.button===0||!L)){let tA=function(HA){_=Ge(HA,bA),Y=lB(Ln(_,Z.value,!1,[1,1]),B.value,nA.value,W),b||(D(),b=!0);const FA=Na(HA,{handle:Y,connectionMode:g.value,fromNodeId:(0,r.toValue)(A),fromHandleId:(0,r.toValue)(e),fromType:N?"target":"source",isValidConnection:G,doc:O,lib:"vue",flowId:d,nodeLookup:nA.value},aA.value,lA.value,T,nA.value);eA=FA.handleDomNode,j=FA.connection,S=uB(!!Y,FA.isValid);const SA={...gA,isValid:S,to:FA.toHandle&&S?Nn({x:FA.toHandle.x,y:FA.toHandle.y},Z.value):_,toHandle:FA.toHandle,toPosition:S&&FA.toHandle?FA.toHandle.position:ui[W.position],toNode:FA.toHandle?nA.value.get(FA.toHandle.nodeId):null};if(S&&Y&&gA?.toHandle&&SA.toHandle&&gA.toHandle.type===SA.toHandle.type&&gA.toHandle.nodeId===SA.toHandle.nodeId&&gA.toHandle.id===SA.toHandle.id&&gA.to.x===SA.to.x&&gA.to.y===SA.to.y)return;const OA=Y??FA.toHandle;if(H(OA&&S?Nn({x:OA.x,y:OA.y},Z.value):_,OA,cB(!!OA,S)),gA=SA,!Y&&!S&&!eA)return ci(hA);j&&j.source!==j.target&&eA&&(ci(hA),hA=eA,eA.classList.add("connecting","vue-flow__handle-connecting"),eA.classList.toggle("valid",!!S),eA.classList.toggle("vue-flow__handle-valid",!!S))},dA=function(HA){"touches"in HA&&HA.touches.length>0||((Y||eA)&&j&&S&&(a?a(HA,j):iA.connect(j)),iA.connectEnd(HA),o&&u?.(HA),ci(hA),cancelAnimationFrame($),P(HA),b=!1,S=!1,j=null,eA=null,O.removeEventListener("mousemove",tA),O.removeEventListener("mouseup",dA),O.removeEventListener("touchmove",tA),O.removeEventListener("touchend",dA))};const UA=T((0,r.toValue)(A));let G=(0,r.toValue)(n)||rA.value||xr;!G&&UA&&(G=(N?UA.isValidSourcePos:UA.isValidTargetPos)||xr);let Y,$=0;const{x:oA,y:BA}=Ge(F),wA=La((0,r.toValue)(o),J),bA=(x=h.value)==null?void 0:x.getBoundingClientRect();if(!bA||!wA)return;const uA=ka((0,r.toValue)(A),wA,(0,r.toValue)(e),nA.value,g.value);if(!uA)return;let hA,_=Ge(F,bA),b=!1;const D=()=>{if(!Q.value)return;const[HA,FA]=Ea(_,bA,U.value);M({x:HA,y:FA}),$=requestAnimationFrame(D)},W={...uA,nodeId:(0,r.toValue)(A),type:wA,position:uA.position},V=nA.value.get((0,r.toValue)(A)),pA={inProgress:!0,isValid:null,from:qt(V,W,IA.Left,!0),fromHandle:W,fromPosition:W.position,fromNode:V,to:_,toHandle:null,toPosition:ui[W.position],toNode:null};R({nodeId:(0,r.toValue)(A),id:(0,r.toValue)(e),type:wA,position:J?.getAttribute("data-handlepos")||IA.Top,..._},{x:oA-bA.left,y:BA-bA.top}),iA.connectStart({event:F,nodeId:(0,r.toValue)(A),handleId:(0,r.toValue)(e),handleType:wA});let gA=pA;O.addEventListener("mousemove",tA),O.addEventListener("mouseup",dA),O.addEventListener("touchmove",tA),O.addEventListener("touchend",dA)}}function X(F){var x,N;if(!w.value)return;const L=(0,r.toValue)(t)==="target";if(!m.value){iA.clickConnectStart({event:F,nodeId:(0,r.toValue)(A),handleId:(0,r.toValue)(e)}),R({nodeId:(0,r.toValue)(A),type:(0,r.toValue)(t),id:(0,r.toValue)(e),position:IA.Top,...Ge(F)},void 0,!0);return}let O=(0,r.toValue)(n)||rA.value||xr;const J=T((0,r.toValue)(A));if(!O&&J&&(O=(L?J.isValidSourcePos:J.isValidTargetPos)||xr),J&&(typeof J.connectable>"u"?y.value:J.connectable)===!1)return;const tA=da(F.target),dA=Na(F,{handle:{nodeId:(0,r.toValue)(A),id:(0,r.toValue)(e),type:(0,r.toValue)(t),position:IA.Top,...Ge(F)},connectionMode:g.value,fromNodeId:m.value.nodeId,fromHandleId:m.value.id??null,fromType:m.value.type,isValidConnection:O,doc:tA,lib:"vue",flowId:d,nodeLookup:nA.value},aA.value,lA.value,T,nA.value),UA=((x=dA.connection)==null?void 0:x.source)===((N=dA.connection)==null?void 0:N.target);dA.isValid&&dA.connection&&!UA&&iA.connect(dA.connection),iA.clickConnectEnd(F),P(F,!0)}return{handlePointerDown:I,handleClick:X}}function CB(){return(0,r.inject)(Pa,"")}function $a(e){const A=e??CB()??"",t=(0,r.inject)(Ga,(0,r.ref)(null)),{findNode:n,edges:o,emits:a}=YA(),u=n(A);return u||a.error(new ue(ie.NODE_NOT_FOUND,A)),{id:A,nodeEl:t,node:u,parentNode:(0,r.computed)(()=>n(u.parentNode)),connectedEdges:(0,r.computed)(()=>wa([u],o.value))}}function yB(){return{doubleClick:vA(),click:vA(),mouseEnter:vA(),mouseMove:vA(),mouseLeave:vA(),contextMenu:vA(),dragStart:vA(),drag:vA(),dragStop:vA()}}function vB(e,A){const t=yB();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 Wa(){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,y=h.x*B*m,Q=h.y*w*m,U=[];for(const T of e.value)if(T.draggable||u&&typeof T.draggable>"u"){const{position:M}=ai(T,{x:T.computedPosition.x+y,y:T.computedPosition.y+Q},d.error,A.value,T.parentNode?n(T.parentNode):void 0);U.push({id:T.id,position:M,from:T.position,distance:{x:h.x,y:h.y},dimensions:T.dimensions})}t(U,!0,!1)}}var Dr=.1,QB=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2;function pt(){return Tn("Viewport not initialized yet."),Promise.resolve(!1)}var EB={zoomIn:pt,zoomOut:pt,zoomTo:pt,fitView:pt,setCenter:pt,fitBounds:pt,project:e=>e,screenToFlowCoordinate:e=>e,flowToScreenCoordinate:e=>e,setViewport:pt,setTransform:pt,getViewport:()=>({x:0,y:0,zoom:1}),getTransform:()=>({x:0,y:0,zoom:1}),viewportInitialized:!1};function FB(e){function A(n,o){return new Promise(a=>{e.d3Selection&&e.d3Zoom?e.d3Zoom.interpolate(o?.interpolate==="linear"?Fn:hr).scaleBy(hi(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}=ua({x:-n,y:-o},e.translateExtent),w=Jt.translate(-g,-B).scale(a);e.d3Selection&&e.d3Zoom?(h=e.d3Zoom)==null||h.interpolate(u?.interpolate==="linear"?Fn:hr).transform(hi(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"?Fn:hr).scaleTo(hi(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:Dr,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}=Ca(pa(u),e.dimensions.width,e.dimensions.height,n.minZoom??e.minZoom,n.maxZoom??e.maxZoom,n.padding??Dr);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:Dr})=>{const{x:a,y:u,zoom:d}=Ca(n,e.dimensions.width,e.dimensions.height,e.minZoom,e.maxZoom,o.padding??Dr);return t(a,u,d,o)},project:n=>Ln(n,e.viewport,e.snapToGrid,e.snapGrid),screenToFlowCoordinate:n=>{if(e.vueFlowRef){const{x:o,y:a}=e.vueFlowRef.getBoundingClientRect();return Ln({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 Nn({x:n.x+o,y:n.y+a},e.viewport)}return{x:0,y:0}}}:EB)}function hi(e,A=0,t=QB,n=()=>{}){const o=typeof A=="number"&&A>0;return o||n(),o?e.transition().duration(A).ease(t).on("end",n):e}function UB(e,A,t){const n=(0,r.effectScope)(!0);return n.run(()=>{const o=()=>{n.run(()=>{let U,T,M=!!(t.nodes.value.length||t.edges.value.length);U=zt([e.modelValue,()=>{var R,H;return(H=(R=e.modelValue)==null?void 0:R.value)==null?void 0:H.length}],([R])=>{R&&Array.isArray(R)&&(T?.pause(),t.setElements(R),!T&&!M&&R.length?M=!0:T?.resume())}),T=zt([t.nodes,t.edges,()=>t.edges.value.length,()=>t.nodes.value.length],([R,H])=>{var P;(P=e.modelValue)!=null&&P.value&&Array.isArray(e.modelValue.value)&&(U?.pause(),e.modelValue.value=[...R,...H],(0,r.nextTick)(()=>{U?.resume()}))},{immediate:M}),(0,r.onScopeDispose)(()=>{U?.stop(),T?.stop()})})},a=()=>{n.run(()=>{let U,T,M=!!t.nodes.value.length;U=zt([e.nodes,()=>{var R,H;return(H=(R=e.nodes)==null?void 0:R.value)==null?void 0:H.length}],([R])=>{R&&Array.isArray(R)&&(T?.pause(),t.setNodes(R),!T&&!M&&R.length?M=!0:T?.resume())}),T=zt([t.nodes,()=>t.nodes.value.length],([R])=>{var H;(H=e.nodes)!=null&&H.value&&Array.isArray(e.nodes.value)&&(U?.pause(),e.nodes.value=[...R],(0,r.nextTick)(()=>{U?.resume()}))},{immediate:M}),(0,r.onScopeDispose)(()=>{U?.stop(),T?.stop()})})},u=()=>{n.run(()=>{let U,T,M=!!t.edges.value.length;U=zt([e.edges,()=>{var R,H;return(H=(R=e.edges)==null?void 0:R.value)==null?void 0:H.length}],([R])=>{R&&Array.isArray(R)&&(T?.pause(),t.setEdges(R),!T&&!M&&R.length?M=!0:T?.resume())}),T=zt([t.edges,()=>t.edges.value.length],([R])=>{var H;(H=e.edges)!=null&&H.value&&Array.isArray(e.edges.value)&&(U?.pause(),e.edges.value=[...R],(0,r.nextTick)(()=>{U?.resume()}))},{immediate:M}),(0,r.onScopeDispose)(()=>{U?.stop(),T?.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 U=async T=>{let M=T;typeof A.autoConnect=="function"&&(M=await A.autoConnect(T)),M!==!1&&t.addEdges([M])};(0,r.watch)(()=>A.autoConnect,()=>{se(A.autoConnect)&&(t.autoConnect.value=A.autoConnect)},{immediate:!0}),(0,r.watch)(t.autoConnect,(T,M,R)=>{T?t.onConnect(U):t.hooks.value.connect.off(U),R(()=>{t.hooks.value.connect.off(U)})},{immediate:!0})})},y=()=>{const U=["id","modelValue","translateExtent","nodeExtent","edges","nodes","maxZoom","minZoom","applyDefault","autoConnect"];for(const T of Object.keys(A)){const M=T;if(!U.includes(M)){const R=(0,r.toRef)(()=>A[M]),H=t[M];(0,r.isRef)(H)&&n.run(()=>{(0,r.watch)(R,P=>{se(P)&&(H.value=P)},{immediate:!0})})}}};o(),a(),u(),h(),d(),g(),B(),w(),m(),y()}),()=>n.stop()}function bB(){return{edgesChange:vA(),nodesChange:vA(),nodeDoubleClick:vA(),nodeClick:vA(),nodeMouseEnter:vA(),nodeMouseMove:vA(),nodeMouseLeave:vA(),nodeContextMenu:vA(),nodeDragStart:vA(),nodeDrag:vA(),nodeDragStop:vA(),nodesInitialized:vA(),miniMapNodeClick:vA(),miniMapNodeDoubleClick:vA(),miniMapNodeMouseEnter:vA(),miniMapNodeMouseMove:vA(),miniMapNodeMouseLeave:vA(),connect:vA(),connectStart:vA(),connectEnd:vA(),clickConnectStart:vA(),clickConnectEnd:vA(),paneReady:vA(),init:vA(),move:vA(),moveStart:vA(),moveEnd:vA(),selectionDragStart:vA(),selectionDrag:vA(),selectionDragStop:vA(),selectionContextMenu:vA(),selectionStart:vA(),selectionEnd:vA(),viewportChangeStart:vA(),viewportChange:vA(),viewportChangeEnd:vA(),paneScroll:vA(),paneClick:vA(),paneContextMenu:vA(),paneMouseEnter:vA(),paneMouseMove:vA(),paneMouseLeave:vA(),edgeContextMenu:vA(),edgeMouseEnter:vA(),edgeMouseMove:vA(),edgeMouseLeave:vA(),edgeDoubleClick:vA(),edgeClick:vA(),edgeUpdateStart:vA(),edgeUpdate:vA(),edgeUpdateEnd:vA(),updateNodeInternals:vA(),error:vA(e=>Tn(e.message))}}function HB(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),wn(a.removeEmitter),a.setHasEmitListeners(()=>n(o)),wn(a.removeHasEmitListeners)}});function n(o){var a;const u=IB(o);return!!((a=t?.vnode.props)!=null&&a[u])}}function IB(e){const[A,...t]=e.split(":");return`on${A.replace(/(?:^|-)(\w)/g,(n,o)=>o.toUpperCase())}${t.length?`:${t.join(":")}`:""}`}function Ya(){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:ri.Full,paneDragging:!1,preventScrolling:!0,zoomOnScroll:!0,zoomOnPinch:!0,zoomOnDoubleClick:!0,panOnScroll:!1,panOnScrollSpeed:.5,panOnScrollMode:Sn.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:Nt.Bezier,style:{}},connectionMode:At.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:Ir()?"Meta":"Control",zoomActivationKeyCode:Ir()?"Meta":"Control",deleteKeyCode:"Backspace",panActivationKeyCode:"Space",hooks:bB(),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 _B=["id","vueFlowRef","viewportRef","initialized","modelValue","nodes","edges","maxZoom","minZoom","translateExtent","hooks","defaultEdgeOptions"];function SB(e,A,t){const n=FB(e),o=_=>{const b=_??[];e.hooks.updateNodeInternals.trigger(b)},a=_=>zh(_,e.nodes,e.edges),u=_=>Gh(_,e.nodes,e.edges),d=_=>wa(_,e.edges),h=({id:_,type:b,nodeId:D})=>{var W;const V=_?`-${b}-${_}`:`-${b}`;return Array.from(((W=e.connectionLookup.get(`${D}${V}`))==null?void 0:W.values())??[])},g=_=>{if(_)return A.value.get(_)},B=_=>{if(_)return t.value.get(_)},w=(_,b,D)=>{var W,V;const pA=[];for(const gA of _){const HA={id:gA.id,type:"position",dragging:D,from:gA.from};if(b&&(HA.position=gA.position,gA.parentNode)){const FA=g(gA.parentNode);HA.position={x:HA.position.x-(((W=FA?.computedPosition)==null?void 0:W.x)??0),y:HA.position.y-(((V=FA?.computedPosition)==null?void 0:V.y)??0)}}pA.push(HA)}pA?.length&&e.hooks.nodesChange.trigger(pA)},m=_=>{if(!e.vueFlowRef)return;const b=e.vueFlowRef.querySelector(".vue-flow__transformationpane");if(!b)return;const D=window.getComputedStyle(b),{m22:W}=new window.DOMMatrixReadOnly(D.transform),V=[];for(const pA of _){const gA=pA,HA=g(gA.id);if(HA){const FA=br(gA.nodeElement);if(FA.width&&FA.height&&(HA.dimensions.width!==FA.width||HA.dimensions.height!==FA.height||gA.forceUpdate)){const SA=gA.nodeElement.getBoundingClientRect();HA.dimensions=FA,HA.handleBounds.source=Ma("source",gA.nodeElement,SA,W,HA.id),HA.handleBounds.target=Ma("target",gA.nodeElement,SA,W,HA.id),V.push({id:HA.id,type:"dimensions",dimensions:FA})}}}!e.fitViewOnInitDone&&e.fitViewOnInit&&n.value.fitView().then(()=>{e.fitViewOnInitDone=!0}),V.length&&e.hooks.nodesChange.trigger(V)},y=(_,b)=>{const D=new Set,W=new Set;for(const gA of _)kt(gA)?D.add(gA.id):gt(gA)&&W.add(gA.id);const V=Bt(A.value,D,!0),pA=Bt(t.value,W);if(e.multiSelectionActive){for(const gA of D)V.push(ht(gA,b));for(const gA of W)pA.push(ht(gA,b))}V.length&&e.hooks.nodesChange.trigger(V),pA.length&&e.hooks.edgesChange.trigger(pA)},Q=_=>{if(e.multiSelectionActive){const b=_.map(D=>ht(D.id,!0));e.hooks.nodesChange.trigger(b);return}e.hooks.nodesChange.trigger(Bt(A.value,new Set(_.map(b=>b.id)),!0)),e.hooks.edgesChange.trigger(Bt(t.value))},U=_=>{if(e.multiSelectionActive){const b=_.map(D=>ht(D.id,!0));e.hooks.edgesChange.trigger(b);return}e.hooks.edgesChange.trigger(Bt(t.value,new Set(_.map(b=>b.id)))),e.hooks.nodesChange.trigger(Bt(A.value,new Set,!0))},T=_=>{y(_,!0)},M=_=>{const b=(_||e.nodes).map(D=>(D.selected=!1,ht(D.id,!1)));e.hooks.nodesChange.trigger(b)},R=_=>{const b=(_||e.edges).map(D=>(D.selected=!1,ht(D.id,!1)));e.hooks.edgesChange.trigger(b)},H=_=>{if(!_||!_.length)return y([],!1);const b=_.reduce((D,W)=>{const V=ht(W.id,!1);return kt(W)?D.nodes.push(V):D.edges.push(V),D},{nodes:[],edges:[]});b.nodes.length&&e.hooks.nodesChange.trigger(b.nodes),b.edges.length&&e.hooks.edgesChange.trigger(b.edges)},P=_=>{var b;(b=e.d3Zoom)==null||b.scaleExtent([_,e.maxZoom]),e.minZoom=_},iA=_=>{var b;(b=e.d3Zoom)==null||b.scaleExtent([e.minZoom,_]),e.maxZoom=_},Z=_=>{var b;(b=e.d3Zoom)==null||b.translateExtent(_),e.translateExtent=_},aA=_=>{e.nodeExtent=_,o()},lA=_=>{var b;(b=e.d3Zoom)==null||b.clickDistance(_)},rA=_=>{e.nodesDraggable=_,e.nodesConnectable=_,e.elementsSelectable=_},nA=_=>{const b=_ instanceof Function?_(e.nodes):_;!e.initialized&&!b.length||(e.nodes=Oa(b,g,e.hooks.error.trigger))},j=_=>{const b=_ instanceof Function?_(e.edges):_;if(!e.initialized&&!b.length)return;const D=gi(b,e.isValidConnection,g,B,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges);fi(e.connectionLookup,t.value,D),e.edges=D},S=_=>{const b=_ instanceof Function?_([...e.nodes,...e.edges]):_;!e.initialized&&!b.length||(nA(b.filter(kt)),j(b.filter(gt)))},eA=_=>{let b=_ instanceof Function?_(e.nodes):_;b=Array.isArray(b)?b:[b];const D=Oa(b,g,e.hooks.error.trigger),W=[];for(const V of D)W.push(Ua(V));W.length&&e.hooks.nodesChange.trigger(W)},I=_=>{let b=_ instanceof Function?_(e.edges):_;b=Array.isArray(b)?b:[b];const D=gi(b,e.isValidConnection,g,B,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges),W=[];for(const V of D)W.push(Ua(V));W.length&&e.hooks.edgesChange.trigger(W)},X=(_,b=!0,D=!1)=>{const W=_ instanceof Function?_(e.nodes):_,V=Array.isArray(W)?W:[W],pA=[],gA=[];function HA(SA){const OA=d(SA);for(const XA of OA)(!se(XA.deletable)||XA.deletable)&&gA.push(Ha(XA.id,XA.source,XA.target,XA.sourceHandle,XA.targetHandle))}function FA(SA){const OA=[];for(const XA of e.nodes)XA.parentNode===SA&&OA.push(XA);if(OA.length){for(const XA of OA)pA.push(ba(XA.id));b&&HA(OA);for(const XA of OA)FA(XA.id)}}for(const SA of V){const OA=typeof SA=="string"?g(SA):SA;OA&&(se(OA.deletable)&&!OA.deletable||(pA.push(ba(OA.id)),b&&HA([OA]),D&&FA(OA.id)))}gA.length&&e.hooks.edgesChange.trigger(gA),pA.length&&e.hooks.nodesChange.trigger(pA)},F=_=>{const b=_ instanceof Function?_(e.edges):_,D=Array.isArray(b)?b:[b],W=[];for(const V of D){const pA=typeof V=="string"?B(V):V;pA&&(se(pA.deletable)&&!pA.deletable||W.push(Ha(typeof V=="string"?V:V.id,pA.source,pA.target,pA.sourceHandle,pA.targetHandle)))}e.hooks.edgesChange.trigger(W)},x=(_,b,D=!0)=>{const W=B(_.id);if(!W)return!1;const V=e.edges.indexOf(W),pA=gB(_,b,W,D,e.hooks.error.trigger);if(pA){const[gA]=gi([pA],e.isValidConnection,g,B,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges);return e.edges=e.edges.map((HA,FA)=>FA===V?gA:HA),fi(e.connectionLookup,t.value,[gA]),gA}return!1},N=(_,b,D={replace:!1})=>{const W=B(_);if(!W)return;const V=typeof b=="function"?b(W):b;W.data=D.replace?V:{...W.data,...V}},L=_=>Fa(_,e.nodes),O=_=>{const b=Fa(_,e.edges);return fi(e.connectionLookup,t.value,b),b},J=(_,b,D={replace:!1})=>{const W=g(_);if(!W)return;const V=typeof b=="function"?b(W):b;D.replace?e.nodes.splice(e.nodes.indexOf(W),1,V):Object.assign(W,V)},tA=(_,b,D={replace:!1})=>{const W=g(_);if(!W)return;const V=typeof b=="function"?b(W):b;W.data=D.replace?V:{...W.data,...V}},dA=(_,b,D=!1)=>{D?e.connectionClickStartHandle=_:e.connectionStartHandle=_,e.connectionEndHandle=null,e.connectionStatus=null,b&&(e.connectionPosition=b)},UA=(_,b=null,D=null)=>{e.connectionStartHandle&&(e.connectionPosition=_,e.connectionEndHandle=b,e.connectionStatus=D)},G=(_,b)=>{e.connectionPosition={x:NaN,y:NaN},e.connectionEndHandle=null,e.connectionStatus=null,b?e.connectionClickStartHandle=null:e.connectionStartHandle=null},Y=_=>{const b=Vh(_),D=b?null:Dn(_)?_:g(_.id);return!b&&!D?[null,null,b]:[b?_:Fr(D),D,b]},$=(_,b=!0,D=e.nodes)=>{const[W,V,pA]=Y(_);if(!W)return[];const gA=[];for(const HA of D||e.nodes){if(!pA&&(HA.id===V.id||!HA.computedPosition))continue;const FA=Fr(HA),SA=Ur(FA,W);(b&&SA>0||SA>=FA.width*FA.height||SA>=Number(W.width)*Number(W.height))&&gA.push(HA)}return gA},oA=(_,b,D=!0)=>{const[W]=Y(_);if(!W)return!1;const V=Ur(W,b);return D&&V>0||V>=Number(W.width)*Number(W.height)},BA=_=>{const{viewport:b,dimensions:D,d3Zoom:W,d3Selection:V,translateExtent:pA}=e;if(!W||!V||!_.x&&!_.y)return!1;const gA=Jt.translate(b.x+_.x,b.y+_.y).scale(b.zoom),HA=[[0,0],[D.width,D.height]],FA=W.constrain()(gA,HA,pA),SA=e.viewport.x!==FA.x||e.viewport.y!==FA.y||e.viewport.zoom!==FA.k;return W.transform(V,FA),SA},wA=_=>{const b=_ instanceof Function?_(e):_,D=["d3Zoom","d3Selection","d3ZoomHandler","viewportRef","vueFlowRef","dimensions","hooks"];se(b.defaultEdgeOptions)&&(e.defaultEdgeOptions=b.defaultEdgeOptions);const W=b.modelValue||b.nodes||b.edges?[]:void 0;W&&(b.modelValue&&W.push(...b.modelValue),b.nodes&&W.push(...b.nodes),b.edges&&W.push(...b.edges),S(W));const V=()=>{se(b.maxZoom)&&iA(b.maxZoom),se(b.minZoom)&&P(b.minZoom),se(b.translateExtent)&&Z(b.translateExtent)};for(const pA of Object.keys(b)){const gA=pA,HA=b[gA];![..._B,...D].includes(gA)&&se(HA)&&(e[gA]=HA)}To(()=>e.d3Zoom).not.toBeNull().then(V),e.initialized||(e.initialized=!0)};return{updateNodePositions:w,updateNodeDimensions:m,setElements:S,setNodes:nA,setEdges:j,addNodes:eA,addEdges:I,removeNodes:X,removeEdges:F,findNode:g,findEdge:B,updateEdge:x,updateEdgeData:N,updateNode:J,updateNodeData:tA,applyEdgeChanges:O,applyNodeChanges:L,addSelectedElements:T,addSelectedNodes:Q,addSelectedEdges:U,setMinZoom:P,setMaxZoom:iA,setTranslateExtent:Z,setNodeExtent:aA,setPaneClickDistance:lA,removeSelectedElements:H,removeSelectedNodes:M,removeSelectedEdges:R,startConnection:dA,updateConnection:UA,endConnection:G,setInteractive:rA,setState:wA,getIntersectingNodes:$,getIncomers:a,getOutgoers:u,getConnectedEdges:d,getHandleConnections:h,isNodeIntersecting:oA,panBy:BA,fitView:_=>n.value.fitView(_),zoomIn:_=>n.value.zoomIn(_),zoomOut:_=>n.value.zoomOut(_),zoomTo:(_,b)=>n.value.zoomTo(_,b),setViewport:(_,b)=>n.value.setViewport(_,b),setTransform:(_,b)=>n.value.setTransform(_,b),getViewport:()=>n.value.getViewport(),getTransform:()=>n.value.getTransform(),setCenter:(_,b,D)=>n.value.setCenter(_,b,D),fitBounds:(_,b)=>n.value.fitBounds(_,b),project:_=>n.value.project(_),screenToFlowCoordinate:_=>n.value.screenToFlowCoordinate(_),flowToScreenCoordinate:_=>n.value.flowToScreenCoordinate(_),toObject:()=>{const _=[],b=[];for(const D of e.nodes){const{computedPosition:W,handleBounds:V,selected:pA,dimensions:gA,isParent:HA,resizing:FA,dragging:SA,events:OA,...XA}=D;_.push(XA)}for(const D of e.edges){const{selected:W,sourceNode:V,targetNode:pA,events:gA,...HA}=D;b.push(HA)}return JSON.parse(JSON.stringify({nodes:_,edges:b,position:[e.viewport.x,e.viewport.y],zoom:e.viewport.zoom,viewport:e.viewport}))},fromObject:_=>new Promise(b=>{const{nodes:D,edges:W,position:V,zoom:pA,viewport:gA}=_;D&&nA(D),W&&j(W);const[HA,FA]=gA?.x&&gA?.y?[gA.x,gA.y]:V??[null,null];if(HA&&FA){const SA=gA?.zoom||pA||e.viewport.zoom;return To(()=>n.value.viewportInitialized).toBe(!0).then(()=>{n.value.setViewport({x:HA,y:FA,zoom:SA}).then(()=>{b(!0)})})}else b(!0)}),updateNodeInternals:o,viewportHelper:n,$reset:()=>{const _=Ya();if(e.edges=[],e.nodes=[],e.d3Zoom&&e.d3Selection){const b=Jt.translate(_.defaultViewport.x??0,_.defaultViewport.y??0).scale(Lt(_.defaultViewport.zoom??1,_.minZoom,_.maxZoom)),D=e.viewportRef.getBoundingClientRect(),W=[[0,0],[D.width,D.height]],V=e.d3Zoom.constrain()(b,W,_.translateExtent);e.d3Zoom.transform(e.d3Selection,V)}wA(_)},$destroy:()=>{}}}var xB=["data-id","data-handleid","data-nodeid","data-handlepos"],An=(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}=YA(),{id:y,node:Q,nodeEl:U,connectedEdges:T}=$a(),M=(0,r.ref)(),R=(0,r.toRef)(()=>typeof e.connectableStart<"u"?e.connectableStart:!0),H=(0,r.toRef)(()=>typeof e.connectableEnd<"u"?e.connectableEnd:!0),P=(0,r.toRef)(()=>{var j,S,eA,I,X,F;return((j=u.value)==null?void 0:j.nodeId)===y&&((S=u.value)==null?void 0:S.id)===e.id&&((eA=u.value)==null?void 0:eA.type)===n.value||((I=h.value)==null?void 0:I.nodeId)===y&&((X=h.value)==null?void 0:X.id)===e.id&&((F=h.value)==null?void 0:F.type)===n.value}),iA=(0,r.toRef)(()=>{var j,S,eA;return((j=d.value)==null?void 0:j.nodeId)===y&&((S=d.value)==null?void 0:S.id)===e.id&&((eA=d.value)==null?void 0:eA.type)===n.value}),{handlePointerDown:Z,handleClick:aA}=Xa({nodeId:y,handleId:e.id,isValidConnection:o,type:n}),lA=(0,r.computed)(()=>typeof e.connectable=="string"&&e.connectable==="single"?!T.value.some(j=>{const S=j[`${n.value}Handle`];return j[n.value]!==y?!1:S?S===e.id:!0}):typeof e.connectable=="number"?T.value.filter(j=>{const S=j[`${n.value}Handle`];return j[n.value]!==y?!1:S?S===e.id:!0}).length<e.connectable:typeof e.connectable=="function"?e.connectable(Q,T.value):se(e.connectable)?e.connectable:B.value);(0,r.onMounted)(()=>{var j;if(!Q.dimensions.width||!Q.dimensions.height)return;const S=(j=Q.handleBounds[n.value])==null?void 0:j.find(L=>L.id===e.id);if(!g.value||S)return;const eA=g.value.querySelector(".vue-flow__transformationpane");if(!U.value||!M.value||!eA||!e.id)return;const I=U.value.getBoundingClientRect(),X=M.value.getBoundingClientRect(),F=window.getComputedStyle(eA),{m22:x}=new window.DOMMatrixReadOnly(F.transform),N={id:e.id,position:e.position,x:(X.left-I.left)/x,y:(X.top-I.top)/x,type:n.value,nodeId:y,...br(M.value)};Q.handleBounds[n.value]=[...Q.handleBounds[n.value]??[],N]});function rA(j){const S=li(j);lA.value&&R.value&&(S&&j.button===0||!S)&&Z(j)}function nA(j){!y||!d.value&&!R.value||lA.value&&aA(j)}return A({handleClick:aA,handlePointerDown:Z,onClick:nA,onPointerDown:rA}),(j,S)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{ref_key:"handle",ref:M,"data-id":`${(0,r.unref)(a)}-${(0,r.unref)(y)}-${e.id}-${n.value}`,"data-handleid":e.id,"data-nodeid":(0,r.unref)(y),"data-handlepos":j.position,class:(0,r.normalizeClass)(["vue-flow__handle",[`vue-flow__handle-${j.position}`,`vue-flow__handle-${e.id}`,(0,r.unref)(w),(0,r.unref)(m),n.value,{connectable:lA.value,connecting:iA.value,connectablestart:R.value,connectableend:H.value,connectionindicator:lA.value&&(R.value&&!P.value||H.value&&P.value)}]]),onMousedown:rA,onTouchstartPassive:rA,onClick:nA},[(0,r.renderSlot)(j.$slots,"default",{id:j.id})],42,xB))}}),Nr=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)(An,{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)(An,{type:"source",position:e,connectable:n,isValidConnection:a})]};Nr.props=["sourcePosition","targetPosition","label","isValidTargetPos","isValidSourcePos","connectable","data"],Nr.inheritAttrs=!1,Nr.compatConfig={MODE:3};var DB=Nr,Lr=function({targetPosition:e=IA.Top,label:A,connectable:t=!0,isValidTargetPos:n,data:o}){const a=o.label??A;return[(0,r.h)(An,{type:"target",position:e,connectable:t,isValidConnection:n}),typeof a!="string"&&a?(0,r.h)(a):(0,r.h)(r.Fragment,[a])]};Lr.props=["targetPosition","label","isValidTargetPos","connectable","data"],Lr.inheritAttrs=!1,Lr.compatConfig={MODE:3};var NB=Lr,kr=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)(An,{type:"source",position:e,connectable:t,isValidConnection:n})]};kr.props=["sourcePosition","label","isValidSourcePos","connectable","data"],kr.inheritAttrs=!1,kr.compatConfig={MODE:3};var LB=kr,kB=["transform"],TB=["width","height","x","y","rx","ry"],MB=["y"],OB=(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,TB)):(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,MB)],8,kB))}}),KB=["id","d","marker-end","marker-start"],RB=["d","stroke-width"],Mn=(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,KB),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,RB)):(0,r.createCommentVNode)("",!0),u.label&&u.labelX&&u.labelY?((0,r.openBlock)(),(0,r.createBlock)(OB,{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 Ja({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 Za({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 Tr(e,A){return e>=0?.5*e:A*25*Math.sqrt(-e)}function ja({pos:e,x1:A,y1:t,x2:n,y2:o,c:a}){let u,d;switch(e){case IA.Left:u=A-Tr(A-n,a),d=t;break;case IA.Right:u=A+Tr(n-A,a),d=t;break;case IA.Top:u=A,d=t-Tr(t-o,a);break;case IA.Bottom:u=A,d=t+Tr(o-t,a);break}return[u,d]}function Bi(e){const{sourceX:A,sourceY:t,sourcePosition:n=IA.Bottom,targetX:o,targetY:a,targetPosition:u=IA.Top,curvature:d=.25}=e,[h,g]=ja({pos:n,x1:A,y1:t,x2:o,y2:a,c:d}),[B,w]=ja({pos:u,x1:o,y1:a,x2:A,y2:t,c:d}),[m,y,Q,U]=Za({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,y,Q,U]}function qa({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 Al(e){const{sourceX:A,sourceY:t,sourcePosition:n=IA.Bottom,targetX:o,targetY:a,targetPosition:u=IA.Top}=e,[d,h]=qa({pos:n,x1:A,y1:t,x2:o,y2:a}),[g,B]=qa({pos:u,x1:o,y1:a,x2:A,y2:t}),[w,m,y,Q]=Za({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,y,Q]}var el={[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 VB({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 tl(e,A){return Math.sqrt((A.x-e.x)**2+(A.y-e.y)**2)}function PB({source:e,sourcePosition:A=IA.Bottom,target:t,targetPosition:n=IA.Top,center:o,offset:a}){const u=el[A],d=el[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=VB({source:h,sourcePosition:A,target:g}),w=B.x!==0?"x":"y",m=B[w];let y,Q,U;const T={x:0,y:0},M={x:0,y:0},[R,H,P,iA]=Ja({sourceX:e.x,sourceY:e.y,targetX:t.x,targetY:t.y});if(u[w]*d[w]===-1){Q=o.x??R,U=o.y??H;const Z=[{x:Q,y:h.y},{x:Q,y:g.y}],aA=[{x:h.x,y:U},{x:g.x,y:U}];u[w]===m?y=w==="x"?Z:aA:y=w==="x"?aA:Z}else{const Z=[{x:h.x,y:g.y}],aA=[{x:g.x,y:h.y}];if(w==="x"?y=u.x===m?aA:Z:y=u.y===m?Z:aA,A===n){const nA=Math.abs(e[w]-t[w]);if(nA<=a){const j=Math.min(a-1,a-nA);u[w]===m?T[w]=(h[w]>e[w]?-1:1)*j:M[w]=(g[w]>t[w]?-1:1)*j}}if(A!==n){const nA=w==="x"?"y":"x",j=u[w]===d[nA],S=h[nA]>g[nA],eA=h[nA]<g[nA];(u[w]===1&&(!j&&S||j&&eA)||u[w]!==1&&(!j&&eA||j&&S))&&(y=w==="x"?Z:aA)}const lA={x:h.x+T.x,y:h.y+T.y},rA={x:g.x+M.x,y:g.y+M.y};Math.max(Math.abs(lA.x-y[0].x),Math.abs(rA.x-y[0].x))>=Math.max(Math.abs(lA.y-y[0].y),Math.abs(rA.y-y[0].y))?(Q=(lA.x+rA.x)/2,U=y[0].y):(Q=y[0].x,U=(lA.y+rA.y)/2)}return[[e,{x:h.x+T.x,y:h.y+T.y},...y,{x:g.x+M.x,y:g.y+M.y},t],Q,U,P,iA]}function GB(e,A,t,n){const o=Math.min(tl(e,A)/2,tl(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 pi(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,y,Q,U]=PB({source:{x:A,y:t},sourcePosition:n,target:{x:o,y:a},targetPosition:u,center:{x:h,y:g},offset:B});return[w.reduce((T,M,R)=>{let H;return R>0&&R<w.length-1?H=GB(w[R-1],M,w[R+1],d):H=`${R===0?"M":"L"}${M.x} ${M.y}`,T+=H,T},""),m,y,Q,U]}function zB(e){const{sourceX:A,sourceY:t,targetX:n,targetY:o}=e,[a,u,d,h]=Ja({sourceX:A,sourceY:t,targetX:n,targetY:o});return[`M ${A},${t}L ${n},${o}`,a,u,d,h]}var XB=(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]=zB(e);return(0,r.h)(Mn,{path:t,labelX:n,labelY:o,...A,...e})}}}),nl=(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]=pi({...e,sourcePosition:e.sourcePosition??IA.Bottom,targetPosition:e.targetPosition??IA.Top});return(0,r.h)(Mn,{path:t,labelX:n,labelY:o,...A,...e})}}}),$B=(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)(nl,{...e,...A,borderRadius:0})}}),WB=(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]=Bi({...e,sourcePosition:e.sourcePosition??IA.Bottom,targetPosition:e.targetPosition??IA.Top});return(0,r.h)(Mn,{path:t,labelX:n,labelY:o,...A,...e})}}}),YB=(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??IA.Bottom,targetPosition:e.targetPosition??IA.Top});return(0,r.h)(Mn,{path:t,labelX:n,labelY:o,...A,...e})}}}),JB={input:LB,default:DB,output:NB},ZB={default:WB,straight:XB,step:$B,smoothstep:nl,simplebezier:YB};function jB(e,A,t){const n=(0,r.computed)(()=>Q=>A.value.get(Q)),o=(0,r.computed)(()=>Q=>t.value.get(Q)),a=(0,r.computed)(()=>{const Q={...ZB,...e.edgeTypes},U=Object.keys(Q);for(const T of e.edges)T.type&&!U.includes(T.type)&&(Q[T.type]=T.type);return Q}),u=(0,r.computed)(()=>{const Q={...JB,...e.nodeTypes},U=Object.keys(Q);for(const T of e.nodes)T.type&&!U.includes(T.type)&&(Q[T.type]=T.type);return Q}),d=(0,r.computed)(()=>e.onlyRenderVisibleElements?ma(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 Q=[];for(const U of e.edges){const T=A.value.get(U.source),M=A.value.get(U.target);tB({sourcePos:T.computedPosition||{x:0,y:0},targetPos:M.computedPosition||{x:0,y:0},sourceWidth:T.dimensions.width,sourceHeight:T.dimensions.height,targetWidth:M.dimensions.width,targetHeight:M.dimensions.height,width:e.dimensions.width,height:e.dimensions.height,viewport:e.viewport})&&Q.push(U)}return Q}return e.edges}),g=(0,r.computed)(()=>[...d.value,...h.value]),B=(0,r.computed)(()=>{const Q=[];for(const U of e.nodes)U.selected&&Q.push(U);return Q}),w=(0,r.computed)(()=>{const Q=[];for(const U of e.edges)U.selected&&Q.push(U);return Q}),m=(0,r.computed)(()=>[...B.value,...w.value]),y=(0,r.computed)(()=>{const Q=[];for(const U of e.nodes)U.dimensions.width&&U.dimensions.height&&U.handleBounds!==void 0&&Q.push(U);return Q});return{getNode:n,getEdge:o,getElements:g,getEdgeTypes:a,getNodeTypes:u,getEdges:h,getNodes:d,getSelectedElements:m,getSelectedNodes:B,getSelectedEdges:w,getNodesInitialized:y,areNodesInitialized:(0,r.computed)(()=>d.value.length>0&&y.value.length===d.value.length)}}var qB=class Bn{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 Bn.instance=t?.config.globalProperties.$vueFlowStorage??Bn.instance??new Bn,t&&(t.config.globalProperties.$vueFlowStorage=Bn.instance),Bn.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)(Ya()),o={};for(const[w,m]of Object.entries(n.hooks)){const y=`on${w.charAt(0).toUpperCase()+w.slice(1)}`;o[y]=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=jB(n,u,d),g=SB(n,u,d);g.setState({...n,...t});const B={...o,...h,...g,...Ju(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=qB.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)(Va,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 y=U=>{g.applyNodeChanges(U)},Q=U=>{g.applyEdgeChanges(U)};B?(g.onNodesChange(y),g.onEdgesChange(Q)):(g.hooks.value.nodesChange.off(y),g.hooks.value.edgesChange.off(Q)),m(()=>{g.hooks.value.nodesChange.off(y),g.hooks.value.edgesChange.off(Q)})},{immediate:!0}),wn(()=>{if(d){const B=A.get(d.id);B?B.$destroy():Tn(`No store instance found for id ${d.id} in storage.`)}})})}else n&&d.setState(o);if(t&&((0,r.provide)(Va,d),t.vueFlowId=d.id),n){const h=(0,r.getCurrentInstance)();h?.type.name!=="VueFlow"&&d.emits.error(new ue(ie.USEVUEFLOW_OPTIONS))}return d}function Ap(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=br(e.value);(d.width===0||d.height===0)&&A.error(new ue(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 ep=(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))}}),tp=["tabIndex"],np=(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=Wa(),h=(0,r.ref)(null),g=za({el:h,onStart(Q){A.selectionDragStart(Q),A.nodeDragStart(Q)},onDrag(Q){A.selectionDrag(Q),A.nodeDrag(Q)},onStop(Q){A.selectionDragStop(Q),A.nodeDragStop(Q)}});(0,r.onMounted)(()=>{var Q;a.value||(Q=h.value)==null||Q.focus({preventScroll:!0})});const B=(0,r.computed)(()=>pa(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(Q){A.selectionContextMenu({event:Q,nodes:n.value})}function y(Q){a.value||Zt[Q.key]&&(Q.preventDefault(),d({x:Zt[Q.key].x,y:Zt[Q.key].y},Q.shiftKey))}return(Q,U)=>!(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:y},null,46,tp)],6)):(0,r.createCommentVNode)("",!0)}});function rp(e,A){return{x:e.clientX-A.left,y:e.clientY-A.top}}var op=(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:y,selectionMode:Q,deleteKeyCode:U,multiSelectionKeyCode:T,multiSelectionActive:M,edgeLookup:R,nodeLookup:H,connectionLookup:P,defaultEdgeOptions:iA,connectionStartHandle:Z,panOnDrag:aA}=YA(),lA=(0,r.shallowRef)(null),rA=(0,r.shallowRef)(new Set),nA=(0,r.shallowRef)(new Set),j=(0,r.shallowRef)(null),S=(0,r.toRef)(()=>h.value&&(e.isSelecting||a.value)),eA=(0,r.toRef)(()=>Z.value!==null);let I=!1,X=!1;const F=xn(U,{actInsideInputWithModifier:!1}),x=xn(T);(0,r.watch)(F,G=>{G&&(m(w.value),y(B.value),g.value=!1)}),(0,r.watch)(x,G=>{M.value=G});function N(G,Y){return $=>{$.target===Y&&G?.($)}}function L(G){if(I||eA.value){I=!1;return}o.paneClick(G),u(),g.value=!1}function O(G){var Y;if(Array.isArray(aA.value)&&((Y=aA.value)!=null&&Y.includes(2))){G.preventDefault();return}o.paneContextMenu(G)}function J(G){o.paneScroll(G)}function tA(G){var Y,$,oA;if(j.value=((Y=A.value)==null?void 0:Y.getBoundingClientRect())??null,!h.value||!e.isSelecting||G.button!==0||G.target!==lA.value||!j.value)return;(oA=($=G.target)==null?void 0:$.setPointerCapture)==null||oA.call($,G.pointerId);const{x:BA,y:wA}=rp(G,j.value);X=!0,I=!1,u(),d.value={width:0,height:0,startX:BA,startY:wA,x:BA,y:wA},o.selectionStart(G)}function dA(G){var Y;if(!j.value||!d.value)return;I=!0;const{x:$,y:oA}=Ge(G,j.value),{startX:BA=0,startY:wA=0}=d.value,bA={startX:BA,startY:wA,x:$<BA?$:BA,y:oA<wA?oA:wA,width:Math.abs($-BA),height:Math.abs(oA-wA)},uA=rA.value,hA=nA.value;rA.value=new Set(ma(t.value,bA,n.value,Q.value===ri.Partial,!0).map(b=>b.id)),nA.value=new Set;const _=((Y=iA.value)==null?void 0:Y.selectable)??!0;for(const b of rA.value){const D=P.value.get(b);if(D)for(const{edgeId:W}of D.values()){const V=R.value.get(W);V&&(V.selectable??_)&&nA.value.add(W)}}if(!Ra(uA,rA.value)){const b=Bt(H.value,rA.value,!0);o.nodesChange(b)}if(!Ra(hA,nA.value)){const b=Bt(R.value,nA.value);o.edgesChange(b)}d.value=bA,a.value=!0,g.value=!1}function UA(G){var Y;G.button!==0||!X||((Y=G.target)==null||Y.releasePointerCapture(G.pointerId),!a.value&&d.value&&G.target===lA.value&&L(G),a.value=!1,d.value=null,g.value=rA.value.size>0,o.selectionEnd(G),e.selectionKeyPressed&&(I=!1),X=!1)}return(G,Y)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{ref_key:"container",ref:lA,class:(0,r.normalizeClass)(["vue-flow__pane vue-flow__container",{selection:G.isSelecting}]),onClick:Y[0]||(Y[0]=$=>S.value?void 0:N(L,lA.value)($)),onContextmenu:Y[1]||(Y[1]=$=>N(O,lA.value)($)),onWheelPassive:Y[2]||(Y[2]=$=>N(J,lA.value)($)),onPointerenter:Y[3]||(Y[3]=$=>S.value?void 0:(0,r.unref)(o).paneMouseEnter($)),onPointerdown:Y[4]||(Y[4]=$=>S.value?tA($):(0,r.unref)(o).paneMouseMove($)),onPointermove:Y[5]||(Y[5]=$=>S.value?dA($):(0,r.unref)(o).paneMouseMove($)),onPointerup:Y[6]||(Y[6]=$=>S.value?UA($):void 0),onPointerleave:Y[7]||(Y[7]=$=>(0,r.unref)(o).paneMouseLeave($))},[(0,r.renderSlot)(G.$slots,"default"),(0,r.unref)(a)&&(0,r.unref)(d)?((0,r.openBlock)(),(0,r.createBlock)(ep,{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)(np,{key:1})):(0,r.createCommentVNode)("",!0)],34))}}),ip=(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))}}),sp=(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:y,zoomOnScroll:Q,preventScrolling:U,noWheelClassName:T,noPanClassName:M,emits:R,connectionStartHandle:H,userSelectionActive:P,paneDragging:iA,d3Zoom:Z,d3Selection:aA,d3ZoomHandler:lA,viewport:rA,viewportRef:nA,paneClickDistance:j}=YA();Ap(nA);const S=(0,r.shallowRef)(!1),eA=(0,r.shallowRef)(!1);let I=null,X=!1,F=0,x={x:0,y:0,zoom:0};const N=xn(d),L=xn(u),O=xn(a),J=(0,r.toRef)(()=>(!L.value||L.value&&u.value===!0)&&(N.value||w.value)),tA=(0,r.toRef)(()=>N.value||h.value),dA=(0,r.toRef)(()=>u.value===!0&&J.value!==!0),UA=(0,r.toRef)(()=>L.value&&u.value!==!0||P.value||dA.value),G=(0,r.toRef)(()=>H.value!==null);(0,r.onMounted)(()=>{if(!nA.value){Tn("Viewport element is missing");return}const wA=nA.value,bA=wA.getBoundingClientRect(),uA=Lh().clickDistance(j.value).scaleExtent([A.value,t.value]).translateExtent(o.value),hA=Le(wA).call(uA),_=hA.on("wheel.zoom"),b=Jt.translate(n.value.x??0,n.value.y??0).scale(Lt(n.value.zoom??1,A.value,t.value)),D=[[0,0],[bA.width,bA.height]],W=uA.constrain()(b,D,o.value);uA.transform(hA,W),uA.wheelDelta(va),Z.value=uA,aA.value=hA,lA.value=_,rA.value={x:W.x,y:W.y,zoom:W.k},uA.on("start",V=>{var pA;if(!V.sourceEvent)return null;F=V.sourceEvent.button,S.value=!0;const gA=oA(V.transform);((pA=V.sourceEvent)==null?void 0:pA.type)==="mousedown"&&(iA.value=!0),x=gA,R.viewportChangeStart(gA),R.moveStart({event:V,flowTransform:gA})}),uA.on("end",V=>{if(!V.sourceEvent)return null;if(S.value=!1,iA.value=!1,Y(J.value,F??0)&&!X&&R.paneContextMenu(V.sourceEvent),X=!1,$(x,V.transform)){const pA=oA(V.transform);x=pA,R.viewportChangeEnd(pA),R.moveEnd({event:V,flowTransform:pA})}}),uA.filter(V=>{var pA;const gA=O.value||Q.value,HA=y.value&&V.ctrlKey,FA=V.button,SA=V.type==="wheel";if(FA===1&&V.type==="mousedown"&&(BA(V,"vue-flow__node")||BA(V,"vue-flow__edge")))return!0;if(!J.value&&!gA&&!tA.value&&!m.value&&!y.value||P.value||G.value&&!SA||!m.value&&V.type==="dblclick"||BA(V,T.value)&&SA||BA(V,M.value)&&(!SA||tA.value&&SA&&!O.value)||!y.value&&V.ctrlKey&&SA||!gA&&!tA.value&&!HA&&SA)return!1;if(!y&&V.type==="touchstart"&&((pA=V.touches)==null?void 0:pA.length)>1)return V.preventDefault(),!1;if(!J.value&&(V.type==="mousedown"||V.type==="touchstart")||dA.value&&Array.isArray(w.value)&&w.value.includes(0)&&FA===0||Array.isArray(w.value)&&!w.value.includes(FA)&&(V.type==="mousedown"||V.type==="touchstart"))return!1;const OA=Array.isArray(w.value)&&w.value.includes(FA)||u.value===!0&&Array.isArray(w.value)&&!w.value.includes(0)||!FA||FA<=1;return(!V.ctrlKey||N.value||SA)&&OA}),(0,r.watch)([P,J],()=>{P.value&&!S.value?uA.on("zoom",null):P.value||uA.on("zoom",V=>{rA.value={x:V.transform.x,y:V.transform.y,zoom:V.transform.k};const pA=oA(V.transform);X=Y(J.value,F??0),R.viewportChange(pA),R.move({event:V,flowTransform:pA})})},{immediate:!0}),(0,r.watch)([P,tA,g,O,y,U,T],()=>{tA.value&&!O.value&&!P.value?hA.on("wheel.zoom",V=>{if(BA(V,T.value))return!1;const pA=O.value||Q.value,gA=y.value&&V.ctrlKey;if(!(!U.value||tA.value||pA||gA))return!1;V.preventDefault(),V.stopImmediatePropagation();const HA=hA.property("__zoom").k||1,FA=Ir();if(!N.value&&V.ctrlKey&&y.value&&FA){const re=Ke(V),nt=HA*2**va(V);uA.scaleTo(hA,nt,re,V);return}const SA=V.deltaMode===1?20:1;let OA=g.value===Sn.Vertical?0:V.deltaX*SA,XA=g.value===Sn.Horizontal?0:V.deltaY*SA;!FA&&V.shiftKey&&g.value!==Sn.Vertical&&!OA&&XA&&(OA=XA,XA=0),uA.translateBy(hA,-(OA/HA)*B.value,-(XA/HA)*B.value);const ae=oA(hA.property("__zoom"));I&&clearTimeout(I),eA.value?(R.move({event:V,flowTransform:ae}),R.viewportChange(ae),I=setTimeout(()=>{R.moveEnd({event:V,flowTransform:ae}),R.viewportChangeEnd(ae),eA.value=!1},150)):(eA.value=!0,R.moveStart({event:V,flowTransform:ae}),R.viewportChangeStart(ae))},{passive:!1}):typeof _<"u"&&hA.on("wheel.zoom",function(V,pA){const gA=!U.value&&V.type==="wheel"&&!V.ctrlKey,HA=O.value||Q.value,FA=y.value&&V.ctrlKey;if(!HA&&!h.value&&!FA&&V.type==="wheel"||gA||BA(V,T.value))return null;V.preventDefault(),_.call(this,V,pA)},{passive:!1})},{immediate:!0})});function Y(wA,bA){return bA===2&&Array.isArray(wA)&&wA.includes(2)}function $(wA,bA){return wA.x!==bA.x&&!Number.isNaN(bA.x)||wA.y!==bA.y&&!Number.isNaN(bA.y)||wA.zoom!==bA.k&&!Number.isNaN(bA.k)}function oA(wA){return{x:wA.x,y:wA.y,zoom:wA.k}}function BA(wA,bA){return wA.target.closest(`.${bA}`)}return(wA,bA)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{ref_key:"viewportRef",ref:nA,class:"vue-flow__viewport vue-flow__container"},[(0,r.createVNode)(op,{"is-selecting":UA.value,"selection-key-pressed":(0,r.unref)(L),class:(0,r.normalizeClass)({connecting:G.value,dragging:(0,r.unref)(iA),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)(ip,null,{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(wA.$slots,"default")]),_:3})]),_:3},8,["is-selecting","selection-key-pressed","class"])],512))}}),ap=["id"],lp=["id"],cp=["id"],up=(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)(aa)}-${(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,ap),(0,r.createElementVNode)("div",{id:`${(0,r.unref)(la)}-${(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,lp),(0,r.unref)(t)?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,id:`${(0,r.unref)(Rh)}-${(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,cp))],64))}});function dp(){const e=YA();(0,r.watch)(()=>e.viewportHelper.value.viewportInitialized,A=>{A&&setTimeout(()=>{e.emits.init(e),e.emits.paneReady(e)},1)})}function fp(e,A,t){return t===IA.Left?e-A:t===IA.Right?e+A:e}function gp(e,A,t){return t===IA.Top?e-A:t===IA.Bottom?e+A:e}var mi=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:fp(A,e,n),cy:gp(t,e,n),r:e,stroke:"transparent",fill:"transparent"})};mi.props=["radius","centerX","centerY","position","type"],mi.compatConfig={MODE:3};var rl=mi,hp=(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:y,disableKeyboardA11y:Q,elementsSelectable:U,edgesUpdatable:T,edgesFocusable:M,hooks:R}=YA(),H=(0,r.computed)(()=>B(e.id)),{emit:P,on:iA}=mB(H.value,a),Z=(0,r.inject)(Sr),aA=(0,r.getCurrentInstance)(),lA=(0,r.ref)(!1),rA=(0,r.ref)(!1),nA=(0,r.ref)(""),j=(0,r.ref)(null),S=(0,r.ref)("source"),eA=(0,r.ref)(null),I=(0,r.toRef)(()=>typeof H.value.selectable>"u"?U.value:H.value.selectable),X=(0,r.toRef)(()=>typeof H.value.updatable>"u"?T.value:H.value.updatable),F=(0,r.toRef)(()=>typeof H.value.focusable>"u"?M.value:H.value.focusable);(0,r.provide)(hB,e.id),(0,r.provide)(BB,eA);const x=(0,r.computed)(()=>H.value.class instanceof Function?H.value.class(H.value):H.value.class),N=(0,r.computed)(()=>H.value.style instanceof Function?H.value.style(H.value):H.value.style),L=(0,r.computed)(()=>{const b=H.value.type||"default",D=Z?.[`edge-${b}`];if(D)return D;let W=H.value.template??h.value[b];if(typeof W=="string"&&aA){const V=Object.keys(aA.appContext.components);V&&V.includes(b)&&(W=(0,r.resolveComponent)(b,!1))}return W&&typeof W!="string"?W:(a.error(new ue(ie.EDGE_TYPE_MISSING,W)),!1)}),{handlePointerDown:O}=Xa({nodeId:nA,handleId:j,type:S,isValidConnection:m,edgeUpdaterType:S,onEdgeUpdate:dA,onEdgeUpdateEnd:UA});return()=>{const b=w(H.value.source),D=w(H.value.target),W="pathOptions"in H.value?H.value.pathOptions:{};if(!b&&!D)return a.error(new ue(ie.EDGE_SOURCE_TARGET_MISSING,H.value.id,H.value.source,H.value.target)),null;if(!b)return a.error(new ue(ie.EDGE_SOURCE_MISSING,H.value.id,H.value.source)),null;if(!D)return a.error(new ue(ie.EDGE_TARGET_MISSING,H.value.id,H.value.target)),null;if(!H.value||H.value.hidden||b.hidden||D.hidden)return null;let V;n.value===At.Strict?V=b.handleBounds.source:V=[...b.handleBounds.source||[],...b.handleBounds.target||[]];const pA=xa(V,H.value.sourceHandle);let gA;n.value===At.Strict?gA=D.handleBounds.target:gA=[...D.handleBounds.target||[],...D.handleBounds.source||[]];const HA=xa(gA,H.value.targetHandle),FA=pA?.position||IA.Bottom,SA=HA?.position||IA.Top,{x:OA,y:XA}=qt(b,pA,FA),{x:ae,y:re}=qt(D,HA,SA);return H.value.sourceX=OA,H.value.sourceY=XA,H.value.targetX=ae,H.value.targetY=re,(0,r.h)("g",{ref:eA,key:e.id,"data-id":e.id,class:["vue-flow__edge",`vue-flow__edge-${L.value===!1?"default":H.value.type||"default"}`,d.value,x.value,{updating:lA.value,selected:H.value.selected,animated:H.value.animated,inactive:!I.value&&!R.value.edgeClick.hasListeners()}],tabIndex:F.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":F.value?`${la}-${A}`:void 0,"aria-roledescription":"edge",role:F.value?"group":"img",...H.value.domAttributes,onClick:Y,onContextmenu:$,onDblclick:oA,onMouseenter:BA,onMousemove:wA,onMouseleave:bA,onKeyDown:F.value?_:void 0},[rA.value?null:(0,r.h)(L.value===!1?h.value.default:L.value,{id:e.id,sourceNode:b,targetNode:D,source:H.value.source,target:H.value.target,type:H.value.type,updatable:X.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,...iA},style:N.value,markerStart:`url('#${kn(H.value.markerStart,A)}')`,markerEnd:`url('#${kn(H.value.markerEnd,A)}')`,sourcePosition:FA,targetPosition:SA,sourceX:OA,sourceY:XA,targetX:ae,targetY:re,sourceHandleId:H.value.sourceHandle,targetHandleId:H.value.targetHandle,interactionWidth:H.value.interactionWidth,...W}),[X.value==="source"||X.value===!0?[(0,r.h)("g",{onMousedown:uA,onMouseenter:J,onMouseout:tA},(0,r.h)(rl,{position:FA,centerX:OA,centerY:XA,radius:o.value,type:"source","data-type":"source"}))]:null,X.value==="target"||X.value===!0?[(0,r.h)("g",{onMousedown:hA,onMouseenter:J,onMouseout:tA},(0,r.h)(rl,{position:SA,centerX:ae,centerY:re,radius:o.value,type:"target","data-type":"target"}))]:null]])};function J(){lA.value=!0}function tA(){lA.value=!1}function dA(b,D){P.update({event:b,edge:H.value,connection:D})}function UA(b){P.updateEnd({event:b,edge:H.value}),rA.value=!1}function G(b,D){b.button===0&&(rA.value=!0,nA.value=D?H.value.target:H.value.source,j.value=(D?H.value.targetHandle:H.value.sourceHandle)??null,S.value=D?"target":"source",P.updateStart({event:b,edge:H.value}),O(b))}function Y(b){var D;const W={event:b,edge:H.value};I.value&&(u.value=!1,H.value.selected&&y.value?(g([H.value]),(D=eA.value)==null||D.blur()):t([H.value])),P.click(W)}function $(b){P.contextMenu({event:b,edge:H.value})}function oA(b){P.doubleClick({event:b,edge:H.value})}function BA(b){P.mouseEnter({event:b,edge:H.value})}function wA(b){P.mouseMove({event:b,edge:H.value})}function bA(b){P.mouseLeave({event:b,edge:H.value})}function uA(b){G(b,!0)}function hA(b){G(b,!1)}function _(b){var D;!Q.value&&ca.includes(b.key)&&I.value&&(b.key==="Escape"?((D=eA.value)==null||D.blur(),g([B(e.id)])):t([B(e.id)]))}}}),Bp=(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)(Sr))==null?void 0:e["connection-line"],y=(0,r.computed)(()=>{var R;return w((R=n.value)==null?void 0:R.nodeId)}),Q=(0,r.computed)(()=>{var R;return w((R=o.value)==null?void 0:R.nodeId)??null}),U=(0,r.computed)(()=>({x:(a.value.x-B.value.x)/B.value.zoom,y:(a.value.y-B.value.y)/B.value.zoom})),T=(0,r.computed)(()=>h.value.markerStart?`url(#${kn(h.value.markerStart,A)})`:""),M=(0,r.computed)(()=>h.value.markerEnd?`url(#${kn(h.value.markerEnd,A)})`:"");return()=>{var R,H,P;if(!y.value||!n.value)return null;const iA=n.value.id,Z=n.value.type,aA=y.value.handleBounds;let lA=aA?.[Z]??[];if(t.value===At.Loose){const N=aA?.[Z==="source"?"target":"source"]??[];lA=[...lA,...N]}if(!lA)return null;const rA=(iA?lA.find(N=>N.id===iA):lA[0])??null,nA=rA?.position??IA.Top,{x:j,y:S}=qt(y.value,rA,nA);let eA=null;Q.value&&(t.value===At.Strict?eA=((R=Q.value.handleBounds[Z==="source"?"target":"source"])==null?void 0:R.find(N=>{var L;return N.id===((L=o.value)==null?void 0:L.id)}))||null:eA=((H=[...Q.value.handleBounds.source??[],...Q.value.handleBounds.target??[]])==null?void 0:H.find(N=>{var L;return N.id===((L=o.value)==null?void 0:L.id)}))||null);const I=((P=o.value)==null?void 0:P.position)??(nA?ui[nA]:null);if(!nA||!I)return null;const X=u.value??h.value.type??Nt.Bezier;let F="";const x={sourceX:j,sourceY:S,sourcePosition:nA,targetX:U.value.x,targetY:U.value.y,targetPosition:I};return X===Nt.Bezier?[F]=Bi(x):X===Nt.Step?[F]=pi({...x,borderRadius:0}):X===Nt.SmoothStep?[F]=pi(x):X===Nt.SimpleBezier?[F]=Al(x):F=`M${j},${S} ${U.value.x},${U.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:j,sourceY:S,sourcePosition:nA,targetX:U.value.x,targetY:U.value.y,targetPosition:I,sourceNode:y.value,sourceHandle:rA,targetNode:Q.value,targetHandle:eA,markerEnd:M.value,markerStart:T.value,connectionStatus:g.value}):(0,r.h)("path",{d:F,class:[h.value.class,g.value,"vue-flow__connection-path"],style:{...d.value,...h.value.style},"marker-end":M.value,"marker-start":T.value})))}}}),pp=["id","markerWidth","markerHeight","markerUnits","orient"],mp=(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)(et).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)(et).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,pp))}}),wp={class:"vue-flow__marker vue-flow__container","aria-hidden":"true"},Cp=(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=kn(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",wp,[(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)(mp,{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))])]))}}),yp=(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)(Cp),((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)(nB)(u,(0,r.unref)(A),(0,r.unref)(n))})},[(0,r.createVNode)((0,r.unref)(hp),{id:u.id},null,8,["id"])],4))),128)),(0,r.createVNode)((0,r.unref)(Bp))],64))}}),vp=(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:y,disableKeyboardA11y:Q,ariaLiveMessage:U,snapToGrid:T,snapGrid:M,nodeDragThreshold:R,nodesDraggable:H,elementsSelectable:P,nodesConnectable:iA,nodesFocusable:Z,hooks:aA}=YA(),lA=(0,r.ref)(null);(0,r.provide)(Ga,lA),(0,r.provide)(Pa,e.id);const rA=(0,r.inject)(Sr),nA=(0,r.getCurrentInstance)(),j=Wa(),{node:S,parentNode:eA}=$a(e.id),{emit:I,on:X}=vB(S,u),F=(0,r.toRef)(()=>typeof S.draggable>"u"?H.value:S.draggable),x=(0,r.toRef)(()=>typeof S.selectable>"u"?P.value:S.selectable),N=(0,r.toRef)(()=>typeof S.connectable>"u"?iA.value:S.connectable),L=(0,r.toRef)(()=>typeof S.focusable>"u"?Z.value:S.focusable),O=(0,r.computed)(()=>x.value||F.value||aA.value.nodeClick.hasListeners()||aA.value.nodeDoubleClick.hasListeners()||aA.value.nodeMouseEnter.hasListeners()||aA.value.nodeMouseMove.hasListeners()||aA.value.nodeMouseLeave.hasListeners()),J=(0,r.toRef)(()=>!!S.dimensions.width&&!!S.dimensions.height),tA=(0,r.computed)(()=>{const D=S.type||"default",W=rA?.[`node-${D}`];if(W)return W;let V=S.template||w.value[D];if(typeof V=="string"&&nA){const pA=Object.keys(nA.appContext.components);pA&&pA.includes(D)&&(V=(0,r.resolveComponent)(D,!1))}return V&&typeof V!="string"?V:(u.error(new ue(ie.NODE_TYPE_MISSING,V)),!1)}),dA=za({id:e.id,el:lA,disabled:()=>!F.value,selectable:x,dragHandle:()=>S.dragHandle,onStart(D){I.dragStart(D)},onDrag(D){I.drag(D)},onStop(D){I.dragStop(D)},onClick(D){_(D)}}),UA=(0,r.computed)(()=>S.class instanceof Function?S.class(S):S.class),G=(0,r.computed)(()=>{const D=(S.style instanceof Function?S.style(S):S.style)||{},W=S.width instanceof Function?S.width(S):S.width,V=S.height instanceof Function?S.height(S):S.height;return!D.width&&W&&(D.width=typeof W=="string"?W:`${W}px`),!D.height&&V&&(D.height=typeof V=="string"?V:`${V}px`),D}),Y=(0,r.toRef)(()=>Number(S.zIndex??G.value.zIndex??0));return B(D=>{(D.includes(e.id)||!D.length)&&oA()}),(0,r.onMounted)(()=>{(0,r.watch)(()=>S.hidden,(D=!1,W,V)=>{!D&&lA.value&&(e.resizeObserver.observe(lA.value),V(()=>{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 D;return(D=eA.value)==null?void 0:D.computedPosition.x},()=>{var D;return(D=eA.value)==null?void 0:D.computedPosition.y},()=>{var D;return(D=eA.value)==null?void 0:D.computedPosition.z},Y,()=>S.selected,()=>S.dimensions.height,()=>S.dimensions.width,()=>{var D;return(D=eA.value)==null?void 0:D.dimensions.height},()=>{var D;return(D=eA.value)==null?void 0:D.dimensions.width}],([D,W,V,pA,gA,HA])=>{const FA={x:D,y:W,z:HA+(y.value&&S.selected?1e3:0)};typeof V<"u"&&typeof pA<"u"?S.computedPosition=Zh({x:V,y:pA,z:gA},FA):S.computedPosition=FA},{flush:"post",immediate:!0}),(0,r.watch)([()=>S.extent,m],([D,W],[V,pA])=>{(D!==V||W!==pA)&&$()}),S.extent==="parent"||typeof S.extent=="object"&&"range"in S.extent&&S.extent.range==="parent"?To(()=>J).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]:F.value,dragging:dA?.value,draggable:F.value,selected:S.selected,selectable:x.value,parent:S.isParent},UA.value],style:{visibility:J.value?"visible":"hidden",zIndex:S.computedPosition.z??Y.value,transform:`translate(${S.computedPosition.x}px,${S.computedPosition.y}px)`,pointerEvents:O.value?"all":"none",...G.value},tabIndex:L.value?0:void 0,role:L.value?"group":void 0,"aria-describedby":Q.value?void 0:`${aa}-${A}`,"aria-label":S.ariaLabel,"aria-roledescription":"node",...S.domAttributes,onMouseenter:BA,onMousemove:wA,onMouseleave:bA,onContextmenu:uA,onClick:_,onDblclick:hA,onKeydown:b},[(0,r.h)(tA.value===!1?w.value.default:tA.value,{id:S.id,type:S.type,data:S.data,events:{...S.events,...X},selected:S.selected,resizing:S.resizing,dragging:dA.value,connectable:N.value,position:S.computedPosition,dimensions:S.dimensions,isValidTargetPos:S.isValidTargetPos,isValidSourcePos:S.isValidSourcePos,parent:S.parentNode,parentNodeId:S.parentNode,zIndex:S.computedPosition.z??Y.value,targetPosition:S.targetPosition,sourcePosition:S.sourcePosition,label:S.label,dragHandle:S.dragHandle,onUpdateNodeInternals:oA})]);function $(){const D=S.computedPosition,{computedPosition:W,position:V}=ai(S,T.value?_r(D,M.value):D,u.error,m.value,eA.value);(S.computedPosition.x!==W.x||S.computedPosition.y!==W.y)&&(S.computedPosition={...S.computedPosition,...W}),(S.position.x!==V.x||S.position.y!==V.y)&&(S.position=V)}function oA(){lA.value&&g([{id:e.id,nodeElement:lA.value,forceUpdate:!0}])}function BA(D){dA?.value||I.mouseEnter({event:D,node:S})}function wA(D){dA?.value||I.mouseMove({event:D,node:S})}function bA(D){dA?.value||I.mouseLeave({event:D,node:S})}function uA(D){return I.contextMenu({event:D,node:S})}function hA(D){return I.doubleClick({event:D,node:S})}function _(D){x.value&&(!n.value||!F.value||R.value>0)&&di(S,a.value,h,d,o,!1,lA.value),I.click({event:D,node:S})}function b(D){if(!(oi(D)||Q.value))if(ca.includes(D.key)&&x.value){const W=D.key==="Escape";di(S,a.value,h,d,o,W,lA.value)}else F.value&&S.selected&&Zt[D.key]&&(D.preventDefault(),U.value=`Moved selected node ${D.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~S.position.x}, y: ${~~S.position.y}`,j({x:Zt[D.key].x,y:Zt[D.key].y},D.shiftKey))}}}),Qp={height:"0",width:"0"},Ep=(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",Qp,[((0,r.openBlock)(),(0,r.createBlock)(r.Teleport,{to:t.value,disabled:!t.value},[(0,r.renderSlot)(n.$slots,"default")],8,["to","disabled"]))]))]))}});function Fp(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 Up={class:"vue-flow__nodes vue-flow__container"},bp=(0,r.defineComponent)({name:"Nodes",compatConfig:{MODE:3},setup(e){const{getNodes:A,updateNodeDimensions:t,emits:n}=YA(),o=Fp(),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",Up,[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 y=((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(vp),{id:h.id,key:h.id,"resize-observer":a.value},null,8,["id","resize-observer"]));return y.memo=m,y},d,0),128)):(0,r.createCommentVNode)("",!0)]))}});function Hp(){const{emits:e}=YA();(0,r.onMounted)(()=>{if(Ta()){const A=document.querySelector(".vue-flow__pane");A&&window.getComputedStyle(A).zIndex!=="1"&&e.error(new ue(ie.MISSING_STYLES))}})}var Ip=(0,r.createElementVNode)("div",{class:"vue-flow__edge-labels"},null,-1),_p=(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=Mo(n,"modelValue",t),u=Mo(n,"nodes",t),d=Mo(n,"edges",t),h=YA(n),g=UB({modelValue:a,nodes:u,edges:d},n,h);return HB(t,h.hooks),dp(),Hp(),(0,r.provide)(Sr,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)(sp,null,{default:(0,r.withCtx)(()=>[(0,r.createVNode)(yp),Ip,(0,r.createVNode)(bp),(0,r.renderSlot)(B.$slots,"zoom-pane")]),_:3}),(0,r.renderSlot)(B.$slots,"default"),(0,r.createVNode)(up)],512))}}),Sp=(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))}}),tt=(e=>(e.Lines="lines",e.Dots="dots",e))(tt||{}),xp=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]}`})},Dp=function({radius:e,color:A}){return(0,r.h)("circle",{cx:e,cy:e,r:e,fill:A})};tt.Lines,tt.Dots;var Np={[tt.Dots]:"#81818a",[tt.Lines]:"#eee"},Lp=["id","x","y","width","height","patternTransform"],kp={key:2,height:"100",width:"100"},Tp=["fill"],Mp=["x","y","fill"],Op=(0,r.defineComponent)({name:"Background",compatConfig:{MODE:3},props:{id:{},variant:{default:()=>tt.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||Np[e.variant||tt.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)(tt).Lines?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(xp),{key:0,size:u.lineWidth,color:a.value,dimensions:n.value.scaledGap},null,8,["size","color","dimensions"])):u.variant===(0,r.unref)(tt).Dots?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Dp),{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,Tp)])):(0,r.createCommentVNode)("",!0)])],8,Lp)]),(0,r.createElementVNode)("rect",{x:u.x,y:u.y,width:"100%",height:"100%",fill:`url(#${o.value})`},null,8,Mp),(0,r.renderSlot)(u.$slots,"default",{id:o.value})],4))}}),Kp={name:"ControlButton",compatConfig:{MODE:3}},Rp=(e,A)=>{const t=e.__vccOpts||e;for(const[n,o]of A)t[n]=o;return t},Vp={type:"button",class:"vue-flow__controls-button"};function Pp(e,A,t,n,o,a){return(0,r.openBlock)(),(0,r.createElementBlock)("button",Vp,[(0,r.renderSlot)(e.$slots,"default")])}var Mr=Rp(Kp,[["render",Pp]]),Gp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},zp=[(0,r.createElementVNode)("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"},null,-1)];function Xp(e,A){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",Gp,zp)}var $p={render:Xp},Wp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5"},Yp=[(0,r.createElementVNode)("path",{d:"M0 0h32v4.2H0z"},null,-1)];function Jp(e,A){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",Wp,Yp)}var Zp={render:Jp},jp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30"},qp=[(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 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 25 32"},nm=[(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 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 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 am(e,A){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",im,sm)}var lm={render:am},cm=(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:()=>ia.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),y=(0,r.toRef)(()=>g.value.zoom<=B.value),Q=(0,r.toRef)(()=>g.value.zoom>=w.value);function U(){u(),A("zoomIn")}function T(){d(),A("zoomOut")}function M(){h(e.fitViewParams),A("fitView")}function R(){a(!m.value),A("interactionChange",!m.value)}return(H,P)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Sp),{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)(Mr,{class:"vue-flow__controls-zoomin",disabled:Q.value,onClick:U},{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(H.$slots,"icon-zoom-in",{},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)($p))))])]),_:3},8,["disabled"])]),(0,r.renderSlot)(H.$slots,"control-zoom-out",{},()=>[(0,r.createVNode)(Mr,{class:"vue-flow__controls-zoomout",disabled:y.value,onClick:T},{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(H.$slots,"icon-zoom-out",{},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(Zp))))])]),_:3},8,["disabled"])])],64)):(0,r.createCommentVNode)("",!0),H.showFitView?(0,r.renderSlot)(H.$slots,"control-fit-view",{key:1},()=>[(0,r.createVNode)(Mr,{class:"vue-flow__controls-fitview",onClick:M},{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(H.$slots,"icon-fit-view",{},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(em))))])]),_:3})]):(0,r.createCommentVNode)("",!0),H.showInteractive?(0,r.renderSlot)(H.$slots,"control-interactive",{key:2},()=>[H.showInteractive?((0,r.openBlock)(),(0,r.createBlock)(Mr,{key:0,class:"vue-flow__controls-interactive",onClick:R},{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)(lm))))]):(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)(om))))])]),_:3})):(0,r.createCommentVNode)("",!0)]):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(H.$slots,"default")]),_:3},8,["position"]))}}),um=["onClick"],dm={class:"d-flow-node-menus-item-name"},fm=(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",dm,(0,r.toDisplayString)(B.name),1)],8,um))),128))])}}}),wi=fm,gm={class:"d-flow-step-name"},hm={key:0,style:{color:"var(--j-color-text-2)"}},Bm={style:{color:"var(--j-color-text)"}},pm=(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]||{}),y=()=>{d(A.id),w.onRemoveNode?.(A.id)},Q=(0,r.ref)({});B(eA=>{if(A.data.isInit&&eA.findIndex(I=>I.type==="select"&&I.id===A.id&&I.id==="start"&&I.selected)!==-1){const I=g.value.find(X=>X.id==="start");I&&(I.data.isInit=!1),Q.value.s1=!0}});const U=(0,r.ref)(!1),T=eA=>{eA.indexOf("t")!==-1&&!M.value||(U.value=!0,Q.value[eA]=!0)},M=(0,r.computed)(()=>h.value.findIndex(eA=>eA.target===A.id)===-1),R=(0,r.ref)(!1),H=()=>{R.value=!0},P=(eA,I)=>{if(h.value.find(F=>F.source===I&&F.target===eA))return!0;const X=h.value.filter(F=>F.target===eA);for(let F=0;F<X.length;F++)if(P(X[F].source,I))return!0;return!1},iA=eA=>R.value?(R.value=!1,!1):P(eA.source,eA.target)?!1:eA.source!==eA.target&&eA.sourceHandle!==eA.targetHandle&&eA.sourceHandle.indexOf("s")!==-1&&eA.targetHandle.indexOf("t")!==-1,Z=()=>{j(),Object.keys(Q.value).forEach(eA=>{Q.value[eA]=!1})},aA=()=>{Z()};t(()=>{console.log("onNodeClick"),U.value?U.value=!1:Z()}),n(()=>{Z()}),o(()=>{Z()}),a(()=>{Z()}),u(()=>{Z()});const lA=(0,r.ref)(),rA=(0,r.ref)({top:0,left:0,bottom:0,right:0}),nA=(0,r.ref)({getBoundingClientRect:()=>rA.value}),j=()=>{lA.value?.handleClose()},S=eA=>{const{clientX:I,clientY:X}=eA;rA.value=DOMRect.fromRect({x:I,y:X}),eA.preventDefault(),lA.value?.handleOpen()};return(eA,I)=>{const X=(0,r.resolveComponent)("j-icon"),F=(0,r.resolveComponent)("el-popover"),x=(0,r.resolveComponent)("el-tooltip"),N=(0,r.resolveComponent)("el-dropdown-item"),L=(0,r.resolveComponent)("el-dropdown-menu"),O=(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)(X,{icon:m.value.icon||"mdi:source-branch"},null,8,["icon"])],4),(0,r.createElementVNode)("div",gm,(0,r.toDisplayString)(m.value.name),1),e.data.type!=="start"?((0,r.openBlock)(),(0,r.createBlock)(x,{key:0,placement:"top","show-arrow":!1,"popper-class":"d-flow-step-tooltip"},{content:(0,r.withCtx)(()=>[M.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",hm,[...I[4]||(I[4]=[(0,r.createElementVNode)("span",{style:{color:"var(--j-color-text)","font-weight":"bold"}},"点击",-1),(0,r.createTextVNode)("添加节点 ",-1)])])):(0,r.createCommentVNode)("",!0),I[5]||(I[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)(An),{onClick:I[1]||(I[1]=J=>T("t1")),onMousedown:H,id:"t1",class:(0,r.normalizeClass)(["d-flow-step-target-handle",{"d-flow-step-target-handle-notadd":!M.value}]),type:"target",position:(0,r.unref)(IA).Left,"is-valid-connection":iA},{default:(0,r.withCtx)(()=>[M.value?((0,r.openBlock)(),(0,r.createBlock)(F,{key:0,visible:Q.value.t1,"onUpdate:visible":I[0]||(I[0]=J=>Q.value.t1=J),placement:"left","popper-class":"d-flow-step-popper",trigger:"click","show-arrow":!1,"popper-options":{strategy:"fixed"}},{reference:(0,r.withCtx)(()=>[(0,r.createVNode)(X,{class:"d-flow-step-handle-plus",icon:"mdi:plus-circle"})]),default:(0,r.withCtx)(()=>[(0,r.createVNode)(wi,{"handle-id":"t1","from-node-id":e.id,onAddNode:aA},null,8,["from-node-id"])]),_:1},8,["visible"])):(0,r.createCommentVNode)("",!0)]),_:1},8,["class","position"])]),_:1})):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(x,{placement:"top","show-arrow":!1,"popper-class":"d-flow-step-tooltip"},{content:(0,r.withCtx)(()=>[...I[6]||(I[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)(An),{onClick:I[3]||(I[3]=J=>T("s1")),onMousedown:H,id:"s1",class:"d-flow-step-source-handle",type:"source",position:(0,r.unref)(IA).Right,"is-valid-connection":iA},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(F,{visible:Q.value.s1,"onUpdate:visible":I[2]||(I[2]=J=>Q.value.s1=J),placement:"right",trigger:"click","popper-class":"d-flow-step-popper","show-arrow":!1,"popper-options":{strategy:"fixed"}},{reference:(0,r.withCtx)(()=>[(0,r.createVNode)(X,{class:"d-flow-step-handle-plus",icon:"mdi:plus-circle"})]),default:(0,r.withCtx)(()=>[(0,r.createVNode)(wi,{"handle-id":"s1","from-node-id":e.id,onAddNode:aA},null,8,["from-node-id"])]),_:1},8,["visible"])]),_:1},8,["position"])]),_:1}),(0,r.createVNode)(O,{ref_key:"dropdownRef",ref:lA,"popper-class":"d-flow-step-dropdown","virtual-ref":nA.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)(L,null,{default:(0,r.withCtx)(()=>[e.data.type!="start"?((0,r.openBlock)(),(0,r.createBlock)(N,{key:0,onClick:y},{default:(0,r.withCtx)(()=>[...I[7]||(I[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})},[I[8]||(I[8]=(0,r.createElementVNode)("div",{style:{"margin-bottom":"4px",color:"var(--j-color-text-2)"}},"关于",-1)),(0,r.createElementVNode)("div",Bm,(0,r.toDisplayString)(m.value.des),1)],4)):(0,r.createCommentVNode)("",!0)]),_:1})]),_:1},8,["virtual-ref"])],32)}}}),mm=pm,wm=(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)(()=>Bi(A)),B=(0,r.ref)(!1),w=(0,r.ref)(!1);t(({edge:T})=>{T.id===A.id&&(B.value=!0)}),n(()=>{B.value=!1});const m=(0,r.ref)(!1),y=()=>{m.value=!1,(0,r.nextTick)(()=>{w.value=!1})},Q=()=>{w.value=!0,m.value=!0},U=()=>{y()};return o(()=>{y()}),a(()=>{y()}),u(()=>{y()}),d(()=>{y()}),h(()=>{y()}),(T,M)=>{const R=(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)(Mn),{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)(Ep),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)(Q,["stop"]),class:"d-flow-edge-button"},[(0,r.createVNode)(R,{icon:"mdi:plus-circle"})],512),[[r.vShow,B.value||w.value]])]),default:(0,r.withCtx)(()=>[(0,r.createVNode)(wi,{"handle-id":"line","from-node-id":e.id,onAddNode:U},null,8,["from-node-id"])]),_:1},8,["visible"])],4)]),_:1})],64)}}}),Cm=wm,ym=(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)(_p),{"min-zoom":.2,"max-zoom":4,"default-viewport":{zoom:1},"connection-mode":(0,r.unref)(At).Strict,nodes:e.nodes,edges:e.edges},{"edge-button":(0,r.withCtx)(n=>[(0,r.createVNode)(Cm,{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)(mm,(0,r.normalizeProps)((0,r.guardReactiveProps)(n)),null,16)]),default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(cm),{position:"bottom-left"}),(0,r.createVNode)((0,r.unref)(Op))]),_:1},8,["connection-mode","nodes","edges"]))}}),vm=ym,Qm={class:"d-flow-design"},Em={class:"d-flow-design-canvas"},Fm={class:"d-flow-design-right"},Um={class:"d-flow-design-title"},bm={class:"d-flow-design-title-name"},Hm={class:"d-flow-design-panel"},Im=(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:y,getNodes:Q,getEdges:U}=YA(),T=(0,r.computed)(()=>{const L={};return n.components.forEach(O=>{L[O.type]=O}),L.start={name:"开始",type:"start",icon:"ant-design:play-circle-outlined",des:"执行开始节点"},L}),M={id:"start",type:"step",data:{type:"start",isInit:!1},position:{x:80,y:160}},R=(0,r.ref)([M]),H=(0,r.ref)([]),P=(L,O)=>{if(O.indexOf("t")===-1){const J=U.value.filter(tA=>tA.source===L.id);if(J.length>0){let tA=-1e6,dA=0;return J.forEach(UA=>{tA=Math.max(tA,UA.targetNode.position.y+UA.targetNode.dimensions.height+32),dA=UA.targetNode.position.x||0}),{x:dA,y:tA}}return{x:L.position.x+L.dimensions.width+100,y:L.position.y}}return{x:L.position.x-100-L.dimensions.width,y:L.position.y}},iA=(L,O,J)=>{const tA=Q.value.find(UA=>UA.id===O);if(!tA)return;const dA={id:ft(),type:"step",data:{type:L},position:P(tA,J)};if(n.flowInit){const UA=n.flowInit(dA.data.type);UA&&Object.keys(UA).forEach(G=>{dA.data[G]=UA[G]})}a(dA),J.indexOf("t")===-1?u({id:`${O}-${dA.id}`,source:O,target:dA.id,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:et.Arrow}):u({id:`${O}-${dA.id}`,source:dA.id,target:O,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:et.Arrow}),S(dA.id)},Z=L=>{const O=Q.value.find(J=>J.id===L);O&&(O.position.x+=100+O.dimensions.width,U.value.filter(J=>J.source===L).forEach(J=>{Z(J.target)}))},aA=(L,O)=>{const J=U.value.find(dA=>dA.id===O);if(!J)return;const tA={id:ft(),type:"step",data:{type:L},position:{x:J.targetNode.position.x,y:J.targetNode.position.y}};if(n.flowInit){const dA=n.flowInit(tA.data.type);dA&&Object.keys(dA).forEach(UA=>{tA.data[UA]=dA[UA]})}a(tA),u({id:`${J.sourceNode.id}-${tA.id}`,source:J.sourceNode.id,target:tA.id,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:et.Arrow}),u({id:`${tA.id}-${J.targetNode.id}`,source:tA.id,target:J.targetNode.id,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:et.Arrow}),d(O),Z(J.target),S(tA.id)};B(L=>{console.log("onConnect",L),L.type="button",L.markerEnd=et.Arrow,u(L),o("connect",L)});const lA=()=>n.components||[],rA=(0,r.ref)(),nA=(0,r.computed)(()=>rA.value?T.value[rA.value.data.type]:void 0);w(L=>{rA.value?.id!==L.node.id&&(rA.value=L.node,X()),o("nodeClick",L.node)}),m(()=>{rA.value=void 0,o("paneClick")}),y(L=>{rA.value=void 0,o("edgeClick",L.edge)});const j=L=>{rA.value?.id===L&&(rA.value=void 0)},S=L=>{rA.value&&g([rA.value]),rA.value=Q.value.find(O=>O.id===L),rA.value&&(X(),setTimeout(()=>{rA.value&&h([rA.value])},100))},eA=(0,r.ref)(),I={};Object.keys(n.flowComponentConfigs).forEach(L=>{const O={type:"j-collapse",config:{defaultValue:[]},children:[]};n.flowComponentConfigs[L].forEach((J,tA)=>{const dA=`_collapse${tA}`;O.config?.defaultValue.push(dA),O.children?.push(J)}),I[L]=[O]});const X=()=>{const L=I[rA.value?.data.type||""];L&&eA.value?(eA.value.init&&eA.value.init(L,rA.value?.data),n.flowComponentConfigInit&&n.flowComponentConfigInit({configRef:eA,inputParams:n.inputParams,components:Q.value,configData:rA.value?.data})):eA.value&&eA.value.init&&eA.value.init([])},F=(L,O)=>{rA.value&&n.flowComponentConfigChange&&n.flowComponentConfigChange(rA.value.data.type,{configRef:eA,component:L,configData:rA.value.data,...O,isFlowNode:!0})};return(0,r.provide)("d_flow_design_provide",{getFlowComponents:lA,addNode:iA,addNodeByLine:aA,onRemoveNode:j,getFlowComponentMap:T}),A({getData:()=>{const L=[];return Q.value.forEach(O=>{L.push({config:O.data,id:O.id,position:O.position,type:O.type})}),U.value.forEach(O=>{L.push({id:O.id,source:O.source,target:O.target,sourceHandle:O.sourceHandle,targetHandle:O.targetHandle,type:"line",config:{},position:{x:0,y:0}})}),L},setData:L=>{if(!L||L.length===0)M.data.isInit=!0,R.value=[M],S(M.id);else{M.data.isInit=!1;const O=[],J=[];L.forEach(tA=>{if(tA.type==="line")tA.type="button",tA.markerEnd=et.Arrow,J.push(tA);else{const dA={id:tA.id,type:tA.type,data:tA.config,position:tA.position};O.push(dA)}}),R.value=O,H.value=J}}}),(L,O)=>{const J=(0,r.resolveComponent)("j-icon"),tA=(0,r.resolveComponent)("j-form");return(0,r.openBlock)(),(0,r.createElementBlock)("div",Qm,[(0,r.createElementVNode)("div",Em,[(0,r.createVNode)(vm,{nodes:R.value,edges:H.value},null,8,["nodes","edges"])]),(0,r.withDirectives)((0,r.createElementVNode)("div",Fm,[(0,r.createElementVNode)("div",Um,[(0,r.createElementVNode)("div",{class:"d-flow-design-title-icon",style:(0,r.normalizeStyle)({backgroundColor:nA.value?.iconColor||"var(--j-color-primary)"})},[(0,r.createVNode)(J,{icon:nA.value?.icon||"mdi:source-branch"},null,8,["icon"])],4),(0,r.createElementVNode)("div",bm,(0,r.toDisplayString)(nA.value?.name||""),1)]),(0,r.createElementVNode)("div",Hm,[(0,r.createVNode)(tA,{config:{labelPosition:"top"},style:{padding:"0"},ref_key:"configRef",ref:eA,onChange:F},null,512)])],512),[[r.vShow,rA.value&&I[rA.value.data.type]]])])}}}),_m=Im,ol=dt(_m),Sm={class:"d-input-flow j-block"},xm=(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 y=(0,r.resolveComponent)("d-flow-design"),Q=(0,r.resolveComponent)("j-input-button");return(0,r.openBlock)(),(0,r.createBlock)(Q,(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]=U=>a.value=U),onChange:B}),{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",Sm,[(0,r.createVNode)(y,{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"])}}}),Dm=xm,il=dt(Dm),AA=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)}},Ci=class pn{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&&AA.samePos(A,B)?!0:this.moveNode(A,B),(n.locked||this._loading)&&g?AA.copyPos(t,A):!n.locked&&g&&o.pack&&(this._packNodes(),t.y=n.y+n.h,AA.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&&AA.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&&AA.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=AA.isTouching(A,t)))return n();if(o!==!1){if(A.w===t.w&&A.x===t.x&&(o||(o=AA.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=AA.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=AA.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??pn._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 AA.defaults(A,o),A.autoPosition||delete A.autoPosition,A.noResize||delete A.noResize,A.noMove||delete A.noMove,AA.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||AA.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),AA.samePos(A,n)||(A._dirty=!0),this}getDirtyNodes(A){return A?this.nodes.filter(t=>t._dirty&&!AA.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=AA.copyPos({},A),delete A._dirty}),this._hasLocked=this.nodes.some(A=>A.locked),this}restoreInitial(){return this.nodes.forEach(A=>{!A._orig||AA.samePos(A,A._orig)||(AA.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=>AA.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 pn({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&&(AA.copyPos(d,u),d._dirty=!0)}),this._notify(),!0):!1}willItFit(A){if(delete A._willFitPos,!this.maxRow)return!0;const t=new pn({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=AA.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=AA.copyPos({},A,!0);if(AA.copyPos(a,t),this.nodeBoundFix(a,o),AA.copyPos(t,a),!t.forceCollide&&AA.samePos(A,t))return!1;const u=AA.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=AA.areaIntercept(t.rect,B._rect),m=AA.area(t.rect),y=AA.area(B._rect);w/(m<y?m:y)>.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&&!AA.samePos(A,a)&&(A._dirty=!0,AA.copyPos(A,a)),t.pack&&this._packNodes()._notify(),!AA.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||{}};AA.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:AA.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=AA.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??pn._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??pn._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}};Ci._idSeq=0;var be={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),He=class{};function Or(e,A){e.touches.length>1||(e.cancelable&&e.preventDefault(),AA.simulateMouseEvent(e.changedTouches[0],A))}function sl(e,A){e.cancelable&&e.preventDefault(),AA.simulateMouseEvent(e,A)}function Kr(e){He.touchHandled||(He.touchHandled=!0,Or(e,"mousedown"))}function Rr(e){He.touchHandled&&Or(e,"mousemove")}function Vr(e){if(!He.touchHandled)return;He.pointerLeaveTimeout&&(window.clearTimeout(He.pointerLeaveTimeout),delete He.pointerLeaveTimeout);const A=!!LA.dragElement;Or(e,"mouseup"),A||Or(e,"click"),He.touchHandled=!1}function Pr(e){e.pointerType!=="mouse"&&e.target.releasePointerCapture(e.pointerId)}function al(e){LA.dragElement&&e.pointerType!=="mouse"&&sl(e,"mouseenter")}function ll(e){LA.dragElement&&e.pointerType!=="mouse"&&(He.pointerLeaveTimeout=window.setTimeout(()=>{delete He.pointerLeaveTimeout,sl(e,"mouseleave")},10))}var cl=class mu{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(`${mu.prefix}${this.dir}`),this.el.style.zIndex="100",this.el.style.userSelect="none",this.el.addEventListener("mousedown",this._mouseDown),Me&&(this.el.addEventListener("touchstart",Kr),this.el.addEventListener("pointerdown",Pr)),this}destroy(){return this.moving&&this._mouseUp(this.mouseDownEvent),this.el.removeEventListener("mousedown",this._mouseDown),Me&&(this.el.removeEventListener("touchstart",Kr),this.el.removeEventListener("pointerdown",Pr)),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",Rr),this.el.addEventListener("touchend",Vr)),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",Rr),this.el.removeEventListener("touchend",Vr)),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 yi=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)}},ul=class rs extends yi{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 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=AA.shouldSizeToContent(this.el.gridstackNode,!0),this.originalRect=this.el.getBoundingClientRect(),this.scrollEl=AA.getScrollElement(this.el),this.scrollY=this.scrollEl.scrollTop,this.scrolled=0,this.startEvent=A,this._setupHelper(),this._applyChange();const t=AA.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=AA.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=AA.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=rs._originStyleProp.map(n=>this.el.style[n]),this.parentOriginStylePosition=this.el.parentElement.style.position;const A=this.el.parentElement,t=AA.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 rs._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}};ul._originStyleProp=["width","height","position","left","top","opacity","zIndex"];var Nm='input,textarea,button,select,option,[contenteditable="true"],.ui-resizable-handle',dl=class os extends yi{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",Kr),A.addEventListener("pointerdown",Pr))}),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",Kr),t.removeEventListener("pointerdown",Pr))}),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(He.touchHandled&&A.isTrusted&&(He.touchHandled=!1),!LA.mouseHandled)return A.button!==0||!this.dragEls.find(t=>t===A.target)&&A.target.closest(Nm)||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",Rr),A.currentTarget.addEventListener("touchend",Vr)),A.preventDefault(),document.activeElement&&document.activeElement.blur(),LA.mouseHandled=!0),!0}_callDrag(A){if(!this.dragging)return;const t=AA.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=AA.getValuesFromTransformedElement(this.helperContainment),this.dragOffset=this._getDragOffset(A,this.el,this.helperContainment),this._setupHelperStyle(A);const o=AA.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",Rr,!0),A.currentTarget.removeEventListener("touchend",Vr,!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=AA.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(!AA.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",AA.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=AA.cloneNode(this.el)),A.parentElement||AA.appendTo(A,this.option.appendTo==="parent"?this.el.parentElement:this.option.appendTo),this.dragElementOriginStyle=os.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",os.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}}}};dl.originStyleProp=["width","height","transform","transform-origin","transition","pointerEvents","position","left","top","minWidth","willChange"];var Lm=class extends yi{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",al),this.el.addEventListener("pointerleave",ll)))}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",al),this.el.removeEventListener("pointerleave",ll)))}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||He.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=AA.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=AA.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=AA.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()}}},km=class wu{static init(A){return A.ddElement||(A.ddElement=new wu(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 dl(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 ul(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 Lm(this.el,A),this}cleanDroppable(){return this.ddDroppable&&(this.ddDroppable.destroy(),delete this.ddDroppable),this}},Tm=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=AA.getElements(e);return n.length?n.map(o=>o.ddElement||(t?km.init(o):null)).filter(o=>o):[]}},we=new Tm,en=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,AA.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=AA.createDiv(["grid-stack",t.class],A)),NA.init(t,n)}static registerEngine(A){NA.engineClass=A}get placeholder(){if(!this._placeholder){this._placeholder=AA.createDiv([this.opts.placeholderClass,be.itemClass,this.opts.itemClass]);const A=AA.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=AA.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={...AA.cloneDeep(be),column:AA.toNumber(A.getAttribute("gs-column"))||be.column,minRow:n||AA.toNumber(A.getAttribute("gs-min-row"))||be.minRow,maxRow:n||AA.toNumber(A.getAttribute("gs-max-row"))||be.maxRow,staticGrid:AA.toBool(A.getAttribute("gs-static"))||be.staticGrid,sizeToContent:AA.toBool(A.getAttribute("gs-size-to-content"))||void 0,draggable:{handle:(t.handleClass?"."+t.handleClass:t.handle?t.handle:"")||be.draggable.handle},removableOptions:{accept:t.itemClass||be.removableOptions.accept,decline:be.removableOptions.decline}};A.getAttribute("gs-animate")&&(a.animate=AA.toBool(A.getAttribute("gs-animate"))),t=AA.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("."+be.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!==be.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||Ci;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 AA.defaults(A,o),this.engine.prepareNode(A),this.el.appendChild(t),this.makeWidget(t,A),t}createWidgetDivs(A){const t=AA.createDiv(["grid-stack-item",this.opts.itemClass]),n=AA.createDiv(["grid-stack-item-content"],t);return AA.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=AA.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},AA.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=AA.createDiv(["grid-stack-item"]),B.appendChild(g),g=AA.createDiv(["grid-stack-item-content"],a.el)),this.prepareDragDrop(a.el)),n){const y=h?t.column:a.w,Q=a.h+n.h,U=a.el.style;U.transition="none",this.update(a.el,{w:y,h:Q}),setTimeout(()=>U.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(()=>AA.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(()=>AA.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=AA.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,AA.removeInternalAndSame(u,be),u.children=a,u}return a}load(A,t=NA.addRemoveCB||!0){A=AA.cloneDeep(A);const n=this.getColumn();A.forEach(B=>{B.w=B.w||B.minW||1,B.h=B.h||B.minH||1}),A=AA.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&&(AA.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=>AA.find(A,B.id)?(g.push(B),!1):!0),A.forEach(B=>{const w=AA.find(g,B.id);if(w){if(AA.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),AA.samePos(w,B)&&this.engine.nodes.length>1&&(this.moveNode(w,{...B,forceCollide:!0}),AA.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=AA.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=AA.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={...AA.copyPos({},o),...AA.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(AA.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(),y=A.getBoundingClientRect();g+=m.top-y.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(!AA.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=AA.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=AA.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&&AA.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(be.itemClass,this.opts.itemClass);const o=AA.shouldSizeToContent(n);return o?A.classList.add("size-to-content"):A.classList.remove("size-to-content"),o&&this.resizeToContentCheck(!1,n),AA.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=AA.toNumber(A.getAttribute("gs-x")),n.y=AA.toNumber(A.getAttribute("gs-y")),n.w=AA.toNumber(A.getAttribute("gs-w")),n.h=AA.toNumber(A.getAttribute("gs-h")),n.autoPosition=AA.toBool(A.getAttribute("gs-auto-position")),n.noResize=AA.toBool(A.getAttribute("gs-no-resize")),n.noMove=AA.toBool(A.getAttribute("gs-no-move")),n.locked=AA.toBool(A.getAttribute("gs-locked"));const o=A.getAttribute("gs-size-to-content");o&&(o==="true"||o==="false"?n.sizeToContent=AA.toBool(o):n.sizeToContent=parseInt(o,10)),n.id=A.getAttribute("gs-id"),n.maxW=AA.toNumber(A.getAttribute("gs-max-w")),n.minW=AA.toNumber(A.getAttribute("gs-min-w")),n.maxH=AA.toNumber(A.getAttribute("gs-max-h")),n.minH=AA.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)AA.shouldSizeToContent(t)&&this.resizeToContentCBCheck(t.el);else if(this.engine.nodes.some(n=>AA.shouldSizeToContent(n))){const n=[...this.engine.nodes];this.batchUpdate(),n.forEach(o=>{AA.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=AA.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 AA.getElement(A)}static getElements(A=".grid-stack-item"){return AA.getElements(A)}static getGridElement(A){return NA.getElement(A)}static getGridElements(A){return AA.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=AA.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=AA.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"?AA.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&&(AA.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 AA.copyPos(d,this._readAttr(this.placeholder)),AA.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,y)=>{this.triggerEvent(m,m.target),d=this.cellWidth(),h=this.getCellHeight(!0),this._onStartMoving(A,m,y,n,d,h)},B=(m,y)=>{this._dragOrResize(A,m,y,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 y=n.w!==n._orig.w,Q=m.target;if(!(!Q.gridstackNode||Q.gridstackNode.grid!==this)){if(n.el=Q,n._isAboutToRemove){const U=A.gridstackNode.grid;U._gsEventHandler[m.type]&&U._gsEventHandler[m.type](m,Q),U.engine.nodes.push(n),U.removeWidget(A,!0,!0)}else AA.removePositioningStyles(Q),n._temporaryRemoved?(this._writePosAttr(Q,n),this.engine.addNode(n)):this._writePosAttr(Q,n),this.triggerEvent(m,Q);this._extraDragRow=0,this._updateContainerHeight(),this._triggerChangeEvent(),this.engine.endUpdate(),m.type==="resizestop"&&(Number.isInteger(n.sizeToContent)&&(n.sizeToContent=n.h),this.resizeToContentCheck(y,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=AA.getValuesFromTransformedElement(A);else if(this.placeholder&&this.placeholder.closest(".grid-stack")){const d=this.placeholder.closest(".grid-stack");this.dragTransform=AA.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 y=Math.round(u*.1),Q=Math.round(a*.1);if(g=Math.min(g,Q),B=Math.min(B,Q),w=Math.min(w,y),m=Math.min(m,y),t.type==="drag"){if(o._temporaryRemoved)return;const T=n.position.top-o._prevYPix;o._prevYPix=n.position.top,this.opts.draggable.scroll!==!1&&AA.updateScrollPosition(A,n.position,T);const M=n.position.left+(n.position.left>o._lastUiPosition.left?-B:g),R=n.position.top+(n.position.top>o._lastUiPosition.top?-m:w);d.x=Math.round(M/a),d.y=Math.round(R/u);const H=this._extraDragRow;if(this.engine.collide(o,d)){const P=this.getRow();let iA=Math.max(0,d.y+o.h-P);this.opts.maxRow&&P+iA>this.opts.maxRow&&(iA=Math.max(0,this.opts.maxRow-P)),this._extraDragRow=iA}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||(AA.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 T=n.position.left+g,M=n.position.top+w;d.x=Math.round(T/a),d.y=Math.round(M/u),h=!0}o._event=t,o._lastTried=d;const U={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:U,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 T=t.target;o._sidebarOrig||this._writePosAttr(T,o),this.triggerEvent(t,T)}}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()}};en.renderCB=(e,A)=>{e&&A?.content&&(e.textContent=A.content)},en.resizeToContentParent=".grid-stack-item-content",en.Utils=AA,en.Engine=Ci,en.GDRev="12.4.2";var Mm={class:"d-layout"},Om=["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"],Km=(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=en.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,y)=>{const Q=y[0];Q&&(o("added",h(Q)),B())}),u.on("removed",(m,y)=>{const Q=y[0];Q&&(o("removed",h(Q)),B())}),u.on("change",()=>{B(),o("changed",(u?.save()||[]).map(m=>h(m)))}),u.on("dragstart",(m,y)=>{y&&o("dragStart",m,h(y.gridstackNode||y))}),u.on("dragstop",(m,y)=>{y&&o("dragStop",m,h(y.gridstackNode||y))}),u.on("resizestart",(m,y)=>{y&&o("resizeStart",m,h(y.gridstackNode||y))}),u.on("resizestop",(m,y)=>{y&&o("resizeStop",m,h(y.gridstackNode||y))}))},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(Q=>Q.id));const y=new Set(n.modelValue.map(Q=>Q.id));m.forEach(Q=>{if(!y.has(Q.id||"")){const U=Q.el;U&&u&&u.removeWidget(U,!1)}}),n.modelValue.forEach(Q=>{const U=m.find(T=>T.id===Q.id);if(U)U.el&&u&&u.update(U.el,{x:Q.x,y:Q.y,w:Q.w,h:Q.h,locked:Q.locked,noResize:Q.noResize,noMove:Q.noMove,minW:Q.minW,minH:Q.minH,maxW:Q.maxW,maxH:Q.maxH});else{if(!a.value||!u)return;const T=a.value.querySelector(`[gs-id="${Q.id}"]`);T&&u.makeWidget(T)}})},B=()=>{u&&o("update:modelValue",u.save().map(m=>{const y={id:m.id||"",x:m.x||0,y:m.y||0,w:m.w||1,h:m.h||1},Q=n.modelValue.find(U=>U.id===y.id);return Q&&Object.keys(Q).forEach(U=>{["id","x","y","w","h"].includes(U)||(y[U]=Q[U])}),y}))},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 y=a.value.querySelector(`[gs-id="${m.id}"]`);y&&(u.makeWidget(y),u.update(y,{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 y=a.value.querySelector(`[gs-id="${m}"]`);y&&u.removeWidget(y,!1)}},clear:()=>{u&&u.removeAll(!1)},getGrid:()=>u}),(m,y)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",Mm,[(0,r.createElementVNode)("div",{ref_key:"gridContainerRef",ref:a},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(w.value,Q=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:Q.id,"gs-id":Q.id,"gs-x":Q.x,"gs-y":Q.y,"gs-w":Q.w,"gs-h":Q.h,"gs-locked":Q.locked,"gs-no-resize":Q.noResize,"gs-no-move":Q.noMove,"gs-min-w":Q.minW,"gs-min-h":Q.minH,"gs-max-w":Q.maxW,"gs-max-h":Q.maxH,class:"d-layout-item"},[(0,r.renderSlot)(m.$slots,"item",{item:Q})],8,Om))),128))],512)]))}}),Rm=Km,fl=dt(Rm),$A=(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)),Vm=e=>e*3/4,Pm=e=>e*4/3,Gm=["onMousedown"],zm={key:2,class:"d-draggable__mask"},Xm=(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}){const n=e,o=t,a=(0,r.ref)(),u=(0,r.ref)(),d=(0,r.ref)(0),h=(0,r.ref)(0),g=(0,r.ref)(0),B=(0,r.ref)(0),w=(0,r.ref)(null),m=(0,r.ref)(!1),y=(0,r.ref)(!1),Q=(0,r.ref)(!1),U=(0,r.ref)(!1),T=(0,r.ref)([{classname:"left"},{classname:"right"},{classname:"top"},{classname:"bottom"},{classname:"top-left"},{classname:"top-right"},{classname:"bottom-left"},{classname:"bottom-right"}]),M=(0,r.computed)(()=>n.scale),R=(0,r.computed)(()=>({left:$A(M.value,"",n.isPt)})),H=(0,r.computed)(()=>({left:$A(-M.value,"",n.isPt)})),P=(0,r.computed)(()=>({left:"auto",right:$A(-M.value,"",n.isPt)})),iA=(0,r.computed)(()=>({top:$A(-M.value,"",n.isPt)})),Z=(0,r.computed)(()=>({top:"auto",bottom:$A(-M.value,"",n.isPt)})),aA=(0,r.computed)(()=>{const G=8*M.value;return{width:$A(G,"",n.isPt),height:$A(G,"",n.isPt)}}),lA=(0,r.computed)(()=>({fontSize:$A(16*M.value,"",n.isPt)})),rA=(0,r.computed)(()=>Object.assign((()=>{if(U.value){const G={zIndex:9999,...R.value};return n.isActiveBgTransparent&&(U.value||y.value)&&!n.readonly&&!n.disabled&&(G.backgroundColor="color-mix(in srgb, var(--j-color-primary-bg) 60%, transparent)"),G}return{zIndex:n.zIndex}})(),{top:$A(B.value,"",n.isPt),width:$A(d.value,"",n.isPt),height:$A(h.value,"",n.isPt),padding:$A(8*M.value,"",n.isPt),...R.value,left:$A(g.value,"",n.isPt)}));(0,r.watch)(()=>n.width,G=>{d.value=ye(j(G))||(w.value?.offsetWidth??0)}),(0,r.watch)(()=>n.height,G=>{h.value=ye(j(G))||(w.value?.offsetHeight??0)},{deep:!0}),(0,r.watch)(()=>n.left,G=>{g.value=ye(j(G))}),(0,r.watch)(()=>n.top,G=>{B.value=ye(j(G))}),(0,r.watch)(d,G=>{a.value&&(a.value.style.width=$A(G,"",n.isPt),n.resize&&w.value?.style&&(w.value.style.width=$A(G,"",n.isPt)))}),(0,r.watch)(h,G=>{a.value&&(a.value.style.height=$A(G,"",n.isPt),n.resize&&w.value?.style&&(w.value.style.height=$A(G,"",n.isPt)))}),(0,r.watch)(()=>n.activeFlag,G=>{nA(G)});const nA=G=>{U.value=G},j=G=>G===void 0?0:n.isPt?Pm(G):G,S=()=>{u.value&&u.value.firstChild&&(w.value=u.value.firstChild,d.value=ye(j(n.width))||(w.value?.offsetWidth??0),h.value=ye(j(n.height))||(w.value?.offsetHeight??0),g.value=ye(j(n.left)),B.value=ye(j(n.top)),nA(n.activeFlag))},eA=G=>{g.value=G},I=G=>{B.value=G},X=G=>{const Y=8*M.value/2,$={};return G.split("-").forEach(oA=>{$[oA]=$A(-Y,"",n.isPt)}),$},F=G=>{y.value=G},x=G=>n.isPt?Vm(G):G,N=()=>{m.value=!0,o("focus",{index:n.index,width:x(d.value),height:x(h.value),left:x(g.value),top:x(B.value)})},L=()=>{m.value=!1,Q.value=!1,o("blur",{index:n.index,width:x(d.value),height:x(h.value),left:x(g.value),top:x(B.value)})},O=()=>{document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,L()}},J=(G,Y)=>{if(n.disabled||n.readonly)return;let $,oA,BA,wA,bA,uA;Q.value=!0,N();let hA=G.clientX,_=G.clientY;document.onmousemove=b=>{m.value=!0,Y==="right"?($=!0,oA=!1):Y==="left"?($=!0,BA=!0,bA=!0,oA=!1):Y==="top"?($=!1,oA=!0,wA=!0,uA=!0):Y==="bottom"?($=!1,oA=!0):Y==="bottom-right"?($=!0,oA=!0):Y==="bottom-left"?($=!0,oA=!0,BA=!0,bA=!0):Y==="top-right"?($=!0,oA=!0,wA=!0,uA=!0):Y==="top-left"&&($=!0,oA=!0,BA=!0,bA=!0,wA=!0,uA=!0);const D=b.clientX-hA,W=b.clientY-_;if(hA=b.clientX,_=b.clientY,$){let V=D*n.step;bA&&(V=-V),BA&&(g.value=ye(g.value-V)),d.value=ye(d.value+V)}if(oA){let V=W*n.step;uA&&(V=-V),wA&&(B.value=ye(B.value-V)),h.value=ye(h.value+V)}},O()},tA=()=>{y.value=!1,o("out",{index:n.index,width:x(d.value),height:x(h.value),left:x(g.value),top:x(B.value)})},dA=()=>{n.disabled||n.readonly||(y.value=!0,o("over",{index:n.index,width:x(d.value),height:x(h.value),left:x(g.value),top:x(B.value)}))},UA=G=>{if(n.disabled||n.readonly)return;U.value=!0,N();let Y=G.clientX,$=G.clientY;document.onmousemove=oA=>{const BA=oA.clientX-Y,wA=oA.clientY-$;Y=oA.clientX,$=oA.clientY,g.value=ye(g.value+BA*n.step),B.value=ye(B.value+wA*n.step)},O()};return(0,r.onMounted)(()=>{S()}),A({setActive:nA,setLeft:eA,setTop:I,setOverActive:F}),(G,Y)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["d-draggable",{"d-draggable--active":(U.value||y.value)&&!e.readonly&&!e.disabled},{"d-draggable--pt":e.isPt&&!e.readonly&&!e.disabled},{"d-draggable--move":m.value},{"d-draggable--click":e.disabled}]),onMousedown:(0,r.withModifiers)(UA,["stop"]),onMouseover:(0,r.withModifiers)(dA,["stop"]),onMouseout:(0,r.withModifiers)(tA,["stop"]),style:(0,r.normalizeStyle)(rA.value)},[(0,r.createElementVNode)("div",{class:"d-draggable__wrapper",ref_key:"wrapper",ref:a},[(U.value||y.value||m.value)&&!e.readonly&&!e.disabled?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...R.value,...iA.value}),class:"d-draggable__line d-draggable__line--left"},null,4),(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...R.value,...H.value}),class:"d-draggable__line d-draggable__line--top"},null,4),e.isPt?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...R.value,...iA.value,transform:"none"}),class:"d-draggable__line d-draggable__line--left"},null,4),(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...R.value,...H.value,transform:"none"}),class:"d-draggable__line d-draggable__line--top"},null,4),(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...R.value,...Z.value}),class:"d-draggable__line d-draggable__line--left"},null,4),(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...R.value,...P.value}),class:"d-draggable__line d-draggable__line--top"},null,4),(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...R.value,...Z.value,transform:"none"}),class:"d-draggable__line d-draggable__line--left"},null,4),(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...R.value,...P.value,transform:"none"}),class:"d-draggable__line d-draggable__line--top"},null,4)],64)):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"d-draggable__line d-draggable__line--label",style:(0,r.normalizeStyle)(lA.value)},(0,r.toDisplayString)(g.value)+","+(0,r.toDisplayString)(B.value),5))],64)):(0,r.createCommentVNode)("",!0),!e.readonly&&!e.disabled?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:1},(0,r.renderList)(T.value,($,oA)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:oA},[U.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(["d-draggable__range",`d-draggable__range--${$.classname}`]),style:(0,r.normalizeStyle)([aA.value,X($.classname)]),onMousedown:(0,r.withModifiers)(BA=>J(BA,$.classname),["stop"])},null,46,Gm)):(0,r.createCommentVNode)("",!0)],64))),128)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",{class:"d-draggable__item",ref_key:"item",ref:u},[(0,r.renderSlot)(G.$slots,"default")],512),!e.disabled&&e.mask?((0,r.openBlock)(),(0,r.createElementBlock)("div",zm)):(0,r.createCommentVNode)("",!0)],512)],38))}}),$m=Xm,gl=dt($m),hl=e=>{const A=Wm(e.components);return{formConfig:e.form,componentList:A}},Bl=(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}},Gr=(e,A)=>{const t={ver:"j1",form:{...e},components:[],db:{}};return pl(A||[],t.components),t},pl=(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"&&pl(t.children||[],A),A.push(n)})},Wm=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(y=>y.label===d._i);m&&(B=({formData:y})=>({display:m.value.includes(y[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},ml=(e,A,t,n,o,a,u,d)=>{const h=(0,r.ref)(),g=(0,r.reactive)({}),B=(0,r.computed)(()=>{const F=[];return Object.keys(g).forEach(x=>{const N=g[x];N.dragType==="component"&&N.type!=="pkey"&&F.push(N)}),F}),w=(F=[],x)=>{const N=A?.value?.init;typeof N=="function"&&N(F,x)},m=F=>o?o(F,{componentDic:g,components:B.value,configData:h.value.config}):{},y=(F,x)=>{if(h.value?.id===F)return;const N=g[F]||x;if(N?h.value=N:F===t.id?h.value=t:h.value=null,h.value){const L=a[h.value.type];L?(w(L,h.value.config),m(h.value.type)):w([])}else w([]);x&&ne("dragClick",{id:x.id})},Q=()=>e.value.$el.getBoundingClientRect(),U=F=>F===t.id?t:g[F]||{},T=F=>{const x=[];if(F===t.id)x.push({id:F,name:t.name});else{const N=g[F];if(N){x.push({id:F,name:N.name});const L=T(N.containerId);x.push(...L)}}return x},M=(F,x)=>{const N=g[x];if(N===void 0)return!1;const L=N.containerId;return F===L?!0:L===t.id?!1:M(F,L)},R=F=>n?n(F)||{}:{},H=(F,x,N,L)=>{if(d){const O=U(F);return d(N.componentType,{container:O,groupId:x,configData:N},L)}return!1},P=({name:F,type:x,dragType:N,isInput:L,componentName:O,runtimeType:J},tA,dA,UA,G=!1)=>{const Y=R(x);if(Y.id=ft(),Y.span=24,Y.componentType=x,iA(tA,Y.componentType))return;H(tA,UA,Y,!0);const $={id:Y.id,name:F,type:x,runtimeType:J,componentName:O||"",dragType:N||"component",containerId:tA,isInput:!!L,level:g[tA]?g[tA].level+1:1,config:Y,isNewAdd:!G,groupId:UA};return $.dragType==="container"&&($.children=[]),g[$.id]=$,U(tA).children?.splice(dA,0,$),$},iA=(F,x)=>!!(U(F).config.componentType==="gridtable"&&["divider","label","text","textEditor","viewTable","card","collapse","tabs","qrcode","barcode","tableLayout"].includes(x)),Z=(F,x,N=!1)=>{let L=null;const O=U(F).children,J=O?.findIndex(tA=>tA.id===x)||0;if(N&&O&&O.length>1){let tA=J+1;J>0&&(tA=J-1),L=O[tA]}return O?.splice(J,1),L?.id},aA=(F,x,N,L)=>{const O=U(x).children,J=F.containerId!==x;F.containerId=x,F.groupId=L,O?.splice(N,0,F),H(x,L,F.config,J)&&(eA(),y(F.id))},lA=F=>{let x="";const N=U(F);return N&&(N.children&&N.children.length>0&&N.children.forEach(L=>{lA(L.id)}),x=Z(N.containerId,F,!0)||"",delete g[F]),h.value&&h.value.id===F&&(h.value=null,A.value.init([])),x},rA=(F,x=[])=>{const N=U(F);if(N&&N.children&&N.children.length>0){const L=[];N.children.forEach(O=>{O.groupId&&x.includes(O.groupId)&&L.push(O.id)}),L.forEach(O=>{lA(O),delete g[O]})}},nA=(F,x)=>{const N=U(F);N&&(N.children&&N.children.length>0&&N.children.forEach(L=>{L.groupId===x&&lA(L.id)}),delete g[F])},j=F=>{const x=mn(U(F));x.id=ft(),x.config.id=x.id,g[x.id]=x;const N=U(x.containerId).children,L=N?.findIndex(O=>O.id===F)||0;N?.splice(L+1,0,x)},S=()=>{t.children=[],Hu(g),h.value&&(ne("dragClick",{id:""}),h.value=null,A.value.init([]))},eA=()=>{h.value&&(ne("dragClick",{id:""}),h.value=null,A.value.init([]))},I=F=>{const x=h.value,N=U(x.containerId).children,L=N?.findIndex(O=>O.id===x.id)||0;lA(x.id),(0,r.nextTick)(()=>{const O=u[F],J=R(F);J.id=x.id,J.span=x.config.span,J.componentType=F,J.table=x.config.table,J.field=x.config.field,x.config.isSubTable&&(J.isSubTable=x.config.isSubTable);const tA={id:J.id,name:O.name,type:F,runtimeType:O.runtimeType,componentName:O.componentName||"",dragType:x.dragType,groupId:x.groupId,containerId:x.containerId,isInput:x.isInput,level:x.level,config:J,isNewAdd:!0};g[tA.id]=tA,N?.splice(L,0,tA)})},X=F=>{ne("dragAddByClick",F)};return(0,r.provide)("d-drag-design-provide",{activedComponent:h,getDesignLocals:Q,getComponent:U,getParentComponents:T,isMyChildComponent:M,selectComponent:y,addComponent:P,deleteComponent:lA,copyComponent:j,removeComponentFromContainer:Z,addComponentToContainer:aA,top:t,deleteChildren:nA,deleteChildrens:rA}),{activedComponent:h,clearComponents:S,changeComponent:I,schemaComponentDic:g,clearSelect:eA,addComponent:P,addComponentByTable:X,designComponentList:B}},Ym=(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))}}}),wl=Ym,Jm={class:"d-form-design j-block"},Zm={class:"d-form-design-left"},jm={class:"d-form-design-component-list"},qm={class:"j-component-tool"},Aw={class:"j-component-tool-name"},ew={class:"d-form-design-center"},tw={class:"d-form-design-container"},nw={key:0,class:"d-form-design-empty"},rw={class:"d-form-design-right"},ow={class:"d-form-design-panel-title"},iw={style:{margin:"0","font-size":"14px"}},sw={class:"d-form-design-panel"},aw=(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 G=0;G<d;G++)u.value.push(G);t.componentInit&&(a.config=t.componentInit("form")||{});const h={},g=[];t.components.forEach(({children:G})=>{G.forEach(Y=>{h[Y.type]=Y,Y.dragType=Y.dragType||"component",Y.isInput!==!1&&(Y.isInput=!0,g.push({label:Y.name,value:Y.type}))})});const B=G=>{G.forEach(Y=>{Y.type==="d-input-flow"&&(Y.config=Y.config||{},Y.config.flowComponents=t.flowComponents,Y.config.flowInit=t.flowInit,Y.config.flowComponentConfigInit=$=>{t.flowComponentConfigInit&&($.designComponents=iA.value,$.component=M.value,t.flowComponentConfigInit($))},Y.config.flowComponentConfigs=t.flowComponentConfigs,Y.config.flowComponentConfigChange=t.flowComponentConfigChange),Y.children&&B(Y.children)})},w={};Object.keys(t.componentConfigs||{}).forEach(G=>{const{hasBase:Y,isInput:$,hasTwoPlaceholder:oA,hasPlaceholder:BA,hasSpan:wA,hasLabel:bA,bindTable:uA,labelTitle:hA}=h[G]||{hasBase:!1},_=[{id:"componentType",type:"j-select",config:{label:"类型",allowClear:!1,display:$,options:g}},{id:"label",type:"j-input",config:{label:hA||"标题"},getCompConfig:({formData:D})=>({display:bA!==!1&&!D.notShowLabel})},{id:"notShowLabel",type:"j-switch",config:{label:"不显示"+(hA||"标题"),activeValue:!0,inactiveValue:!1},getCompConfig:({formData:D})=>({display:bA!==!1&&!D.isSubTable})},{id:"labelWidth",type:"j-number",config:{label:"标题宽度"},getCompConfig:({formData:D})=>({display:$&&!D.notShowLabel&&!D.isSubTable})},{id:"labelPosition",type:"j-radio",config:{label:"标题对齐",options:[{value:"right",label:"右"},{value:"left",label:"左"},{value:"top",label:"顶部"}]}},{id:"placeholder",type:"j-input",config:{display:$&&!oA&&BA!==!1,label:"占位提示"}},{id:"startPlaceholder",type:"j-input",config:{display:!!oA,label:"开始占位"}},{id:"endPlaceholder",type:"j-input",config:{display:!!oA,label:"结束占位"}},{id:"span",type:"j-slider",config:{label:"表单栅栏",min:6,max:24,showTooltip:!0,step:6,showStops:!0,defautValue:24},getCompConfig:({formData:D})=>({display:wA!==!1&&!D.isSubTable})},{id:"width",type:"j-number",config:{label:"单元格宽度",min:1},getCompConfig:({formData:D})=>({display:!!D.isSubTable})}],b={type:"j-collapse",config:{defaultValue:[]},children:[]};Y!==!1&&b.children?.push({config:{label:"基础信息"},children:[..._]}),b.children?.push(...t.componentConfigs[G]),b.children?.forEach((D,W)=>{b.config?.defaultValue.push(`_collapse${W}`)}),B(b.children||[]),w[G]=[b]});const m=G=>{const{value:Y}=G||{};G.id==="componentType"&&H(Y),M.value&&t.componentConfigChange&&t.componentConfigChange(M.value.type,{configRef:T,configData:M.value.config,...G})},y=(G,Y)=>{t.componentConfigInit&&t.componentConfigInit(G,{configRef:T,...Y})},Q=(G,Y,$)=>{let oA=!1;return Y.container.type==="gridtable"?(!Y.configData.isSubTable||$)&&(Y.configData.isSubTable=!0,oA=!0):Y.configData.isSubTable&&(oA=!0,Y.configData.isSubTable=!1),t.containerAddComponent&&t.containerAddComponent(G,Y),oA},U=(0,r.ref)(),T=(0,r.ref)(),{activedComponent:M,clearComponents:R,changeComponent:H,schemaComponentDic:P,designComponentList:iA}=ml(U,T,a,t.componentInit,y,w,h,Q),Z=(0,r.computed)(()=>M.value?.id!="form"?M.value?`${M.value.name}-${M.value.id}`:"":M.value?`${M.value.name}`:"");(0,r.provide)("dui-design-provide",{designItemName:wl});const aA=()=>{R()},lA=()=>{t.componentInit&&(a.config=t.componentInit("form")||{}),R()},rA=()=>Gr(a.config,a.children||[]),nA=G=>{const Y=Bl(G,h);a.config=Y.formConfig,a.children?.push(...Y.componentList),Object.keys(Y.componentDic).forEach($=>{P[$]=Y.componentDic[$]})},j=()=>S(Gr(a.config,a.children||[]).components),S=G=>{for(const Y of G)if(t.componentConfigValidate&&!t.componentConfigValidate(Y.type,{configData:Y.config,errorTip:o}))return!1;return!0},eA=(0,r.ref)(),I=(0,r.ref)(),X=(0,r.reactive)({width:0,height:0,formConfig:{}});let F=0;const x=G=>{if(I.value)F=0,I.value.init(G||[]);else{if(F>600){console.warn("表单组件加载超时");return}F++,setTimeout(()=>{x(G)},100)}},N=()=>{},L=()=>{};return A({getSchema:()=>rA(),setSchema:G=>nA(G),reset:()=>lA(),validate:()=>j(),preview:()=>{const G=Gr(a.config,a.children||[]);X.width=G.form.width||800,X.height=G.form.height||600,eA.value.open("表单预览",G.form.layerType),(0,r.nextTick)(()=>{const{formConfig:Y,componentList:$}=hl(G);X.formConfig=Y,x($)})},clear:aA}),(G,Y)=>{const $=(0,r.resolveComponent)("j-icon"),oA=(0,r.resolveComponent)("d-drag-tool"),BA=(0,r.resolveComponent)("el-collapse-item"),wA=(0,r.resolveComponent)("el-collapse"),bA=(0,r.resolveComponent)("d-drag-form-list"),uA=(0,r.resolveComponent)("el-row"),hA=(0,r.resolveComponent)("d-drag-container"),_=(0,r.resolveComponent)("j-form"),b=(0,r.resolveComponent)("j-layer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",Jm,[(0,r.createElementVNode)("div",Zm,[(0,r.createElementVNode)("div",jm,[(0,r.createVNode)(wA,{modelValue:u.value,"onUpdate:modelValue":Y[0]||(Y[0]=D=>u.value=D)},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.components,(D,W)=>((0,r.openBlock)(),(0,r.createBlock)(BA,{key:W,title:D.name,name:W},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(D.children,(V,pA)=>((0,r.openBlock)(),(0,r.createBlock)(oA,{key:pA,config:V},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",qm,[(0,r.createVNode)($,{class:"j-component-tool-icon",icon:V.icon,size:14},null,8,["icon"]),(0,r.createElementVNode)("div",Aw,(0,r.toDisplayString)((0,r.unref)(n)(V.name)),1)])]),_:2},1032,["config"]))),128))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])]),(0,r.createElementVNode)("div",ew,[(0,r.createElementVNode)("div",tw,[(0,r.createVNode)(hA,{ref_key:"dragContainer",ref:U,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",nw,[(0,r.createElementVNode)("div",null,(0,r.toDisplayString)((0,r.unref)(n)("请从左侧拖拽组件到此处")),1)])):((0,r.openBlock)(),(0,r.createBlock)(uA,{key:1},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(bA,{"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",rw,[(0,r.createElementVNode)("div",ow,[(0,r.createElementVNode)("span",iw,(0,r.toDisplayString)(`${Z.value}`),1)]),(0,r.createElementVNode)("div",sw,[(0,r.createVNode)(_,{config:{labelPosition:"top",size:"small"},collapseAnimate:!1,style:{padding:"0"},ref_key:"configRef",ref:T,onChange:m},null,512)])],512),[[r.vShow,(0,r.unref)(M)]]),(0,r.createVNode)(b,{ref_key:"previewFormLayerRef",ref:eA,width:X.width,height:X.height,onOk:N,onClosed:L},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(_,{config:X.formConfig,"is-preview":!0,ref_key:"previewFormRef",ref:I,actions:e.actions},null,8,["config","actions"])]),_:1},8,["width","height"])])}}}),lw=aw,Cl=dt(lw,[wl]),yl=(e,A)=>{const t={ver:"V3",indexPage:{...e},components:[]};return vl(A||[],t.components),t},vl=(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"&&vl(t.children||[],A),A.push(n)})},cw=e=>{const A=uw(e.components);return{pageConfig:e.indexPage,componentList:A}},uw=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:{}};n.config&&Object.keys(n.config).forEach(a=>{o.config[a]=n.config[a]}),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]||[];return{config:{label:d.label},children:h}}),delete o.config.groups}else o.children=a}}),A.indexPage||[]},dw=(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}},fw=(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"]))}}),Ql=fw,gw={class:"d-index-design j-block"},hw={class:"d-index-design-left"},Bw={class:"j-component-list"},pw={class:"j-component-tool"},mw={class:"j-component-tool-name"},ww={class:"d-index-design-center"},Cw={class:"design-toolbar"},yw={class:"design-container"},vw={key:0,class:"j-block design-empty"},Qw={class:"d-index-design-right"},Ew={class:"d-index-design-panel-title"},Fw={style:{margin:"0","font-size":"14px"}},Uw={class:"d-index-design-panel"},bw=(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=F=>{F.forEach(x=>{x.type==="d-input-flow"&&(x.config=x.config||{},x.config.flowComponents=n.flowComponents,x.config.flowInit=n.flowInit,x.config.flowComponentConfigInit=N=>{n.flowComponentConfigInit&&(N.designComponents=T.value,N.component=y.value,n.flowComponentConfigInit(N))},x.config.flowComponentConfigs=n.flowComponentConfigs,x.config.flowComponentConfigChange=n.flowComponentConfigChange),x.children&&o(x.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:F})=>{F.forEach(x=>{u[x.type]=x,x.dragType=x.dragType||"component",d.push({label:x.name,value:x.type})})});const h={};Object.keys(n.componentConfigs).forEach(F=>{const{hasBase:x}=u[F]||{hasBase:!1},N=[{id:"id",type:"j-input",config:{label:"ID",readonly:!0}},{id:"label",type:"j-input",config:{label:"名称"}}],L={type:"j-collapse",config:{defaultValue:[]},children:[]};x!==!1&&(L.children?.push({config:{label:"基础信息"},children:[...N]}),L.config?.defaultValue.push("_collapse0")),L.children?.push(...n.componentConfigs[F]),o(L.children||[]),h[F]=[L]});const g=F=>{y.value&&n.componentConfigChange&&n.componentConfigChange(y.value.type,{configRef:m,configData:y.value.config,...F})},B=(F,x)=>{n.componentConfigInit&&n.componentConfigInit(F,{configRef:m,...x})},w=(0,r.ref)(),m=(0,r.ref)(),{activedComponent:y,clearComponents:Q,schemaComponentDic:U,designComponentList:T}=ml(w,m,a,n.componentInit,B,h,u,n.containerAddComponent),M=(0,r.computed)(()=>y.value?`【${y.value.name}】`:""),R=(0,r.ref)([]),H=n.components.length;for(let F=0;F<H;F++)R.value.push(F);(0,r.provide)("dui-design-provide",{designItemName:Ql});const P=()=>{Q()},iA=()=>{n.componentInit&&(a.config=n.componentInit("indexPage")||{}),Q()},Z=()=>(console.log("pValidate"),!0),aA=()=>yl(a.config,a.children||[]),lA=F=>{const x=dw(F,u);a.config=x.pageConfig,a.children?.push(...x.componentList),Object.keys(x.componentDic).forEach(N=>{U[N]=x.componentDic[N]})},rA=(0,r.ref)(),nA=(0,r.ref)();(0,r.ref)(""),(0,r.reactive)({formConfig:{}});let j=0;const S=F=>{if(nA.value)j=0,nA.value.init(F);else{if(j>600){console.warn("组件加载超时");return}j++,setTimeout(()=>{S(F)},100)}},eA=()=>{},I=()=>{},X=()=>{const{componentList:F}=cw(yl(a.config,a.children||[]));rA.value.open("页面预览","full"),(0,r.nextTick)(()=>{S(F)})};return A({reset:iA,validate:Z,getSchema:aA,setSchema:lA}),(F,x)=>{const N=(0,r.resolveComponent)("j-icon"),L=(0,r.resolveComponent)("d-drag-tool"),O=(0,r.resolveComponent)("el-collapse-item"),J=(0,r.resolveComponent)("el-collapse"),tA=(0,r.resolveComponent)("j-button"),dA=(0,r.resolveComponent)("el-tooltip"),UA=(0,r.resolveComponent)("el-divider"),G=(0,r.resolveComponent)("el-empty"),Y=(0,r.resolveComponent)("d-drag-index-list"),$=(0,r.resolveComponent)("d-drag-container"),oA=(0,r.resolveComponent)("j-form"),BA=(0,r.resolveComponent)("j-page"),wA=(0,r.resolveComponent)("j-layer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",gw,[(0,r.createElementVNode)("div",hw,[x[1]||(x[1]=(0,r.createElementVNode)("div",{class:"d-index-design-panel-title"},"组件库",-1)),(0,r.createElementVNode)("div",Bw,[(0,r.createVNode)(J,{modelValue:R.value,"onUpdate:modelValue":x[0]||(x[0]=bA=>R.value=bA)},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.components,(bA,uA)=>((0,r.openBlock)(),(0,r.createBlock)(O,{key:uA,title:bA.name,name:uA},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(bA.children,(hA,_)=>((0,r.openBlock)(),(0,r.createBlock)(L,{key:_,config:hA},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",pw,[(0,r.createVNode)(N,{class:"j-component-tool-icon",icon:hA.icon,size:14},null,8,["icon"]),(0,r.createElementVNode)("div",mw,(0,r.toDisplayString)((0,r.unref)(t)(hA.name)),1)])]),_:2},1032,["config"]))),128))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])]),(0,r.createElementVNode)("div",ww,[(0,r.createElementVNode)("div",Cw,[x[2]||(x[2]=(0,r.createElementVNode)("div",null,null,-1)),(0,r.createElementVNode)("div",null,[(0,r.createVNode)(dA,{content:(0,r.unref)(t)("清空")},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(tA,{danger:"",type:"text",onClick:P,icon:"mdi:delete-outline"})]),_:1},8,["content"]),(0,r.createVNode)(UA,{direction:"vertical"}),(0,r.createVNode)(dA,{content:(0,r.unref)(t)("预览")},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(tA,{type:"text",onClick:X,icon:"mdi:play-circle-outline"})]),_:1},8,["content"])])]),(0,r.createElementVNode)("div",yw,[(0,r.createVNode)($,{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",vw,[(0,r.createVNode)(G,{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",Qw,[(0,r.createElementVNode)("div",Ew,[(0,r.createElementVNode)("span",Fw,(0,r.toDisplayString)(`${(0,r.unref)(t)("属性配置")}${M.value}`),1)]),(0,r.createElementVNode)("div",Uw,[(0,r.createVNode)(oA,{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)(y)&&h[(0,r.unref)(y).type]]]),(0,r.createVNode)(wA,{ref_key:"previewLayerRef",ref:rA,"has-btns":!1,onOk:eA,onClosed:I},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(BA,{ref_key:"previewRef",ref:nA,actions:e.actions},null,8,["actions"])]),_:1},512)])}}}),Hw=bw,El=dt(Hw,[Ql]),qA=Uu({Vue:()=>r,Vue2:()=>{},del:()=>Sw,install:()=>Iw,isVue2:()=>!1,isVue3:()=>!0,set:()=>_w});bu(qA,require("vue"));var mE=!1,wE=!0,CE=void 0;function Iw(){}function _w(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 Sw(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},xw=(0,qA.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,qA.ref)(0),n=(0,qA.ref)(!0);(0,qA.onMounted)(()=>{t.value=e.value});const o=B=>{n.value=B>=0},a=(0,qA.computed)(()=>{const B=(t.value-e.start)*e.scale;o(B);const w=B+"px";return e.vertical?{top:w}:{left:w}}),u=(0,qA.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,qA.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 y=U=>{const T=e.vertical?U.clientY:U.clientX;t.value=Math.round(m+(T-w)/e.scale)},Q=()=>{A("onRelease",t.value,e.index),document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",Q)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",Q)},handleRemove:()=>{A("onRemove",e.index)}}}}),Dw={class:"value"};function Nw(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",Dw,(0,r.toDisplayString)(e.startValue),1)],4)],36)),[[r.vShow,e.showLine]])}var Lw=zr(xw,[["render",Nw],["__scopeId","data-v-074b3d94"]]),kw=e=>e<=.25?40:e<=.5?20:e<=1?10:e<=2?5:e<=4?2:1,Fl=.83,Tw=(e,A,t,n,o,a)=>{const{scale:u,width:d,height:h,ratio:g,palette:B}=o,{bgColor:w,fontColor:m,shadowColor:y,longfgColor:Q,shortfgColor:U}=B;if(e.scale(g,g),e.clearRect(0,0,d,h),e.fillStyle=w,e.fillRect(0,0,d,h),n){const rA=(t-A)*u,nA=n*u;e.fillStyle=y,a?e.fillRect(rA,0,nA,h*3/8):e.fillRect(0,rA,d*3/8,nA)}const T=kw(u),M=T*u,R=T*10,H=R*u,P=Math.floor(A/T)*T,iA=Math.floor(A/R)*R,Z=(P-A)/T*M,aA=(iA-A)/R*H,lA=A+Math.ceil((a?d:h)/u);e.beginPath(),e.fillStyle=m,e.strokeStyle=Q;for(let rA=iA,nA=0;rA<lA;rA+=R,nA++){const j=aA+nA*H+.5;a?e.moveTo(j,0):e.moveTo(0,j),e.save(),a?e.translate(j,h*.4):e.translate(d*.4,j),a||e.rotate(-Math.PI/2),e.scale(Fl/g,Fl/g),e.fillText(rA.toString(),4*g,7*g),e.restore(),a?e.lineTo(j,h*9/16):e.lineTo(d*9/16,j)}e.stroke(),e.closePath(),e.beginPath(),e.strokeStyle=U;for(let rA=P,nA=0;rA<lA;rA+=T,nA++){const j=Z+nA*M+.5;a?e.moveTo(j,0):e.moveTo(0,j),rA%R!==0&&(a?e.lineTo(j,h*1/4):e.lineTo(d*1/4,j))}e.stroke(),e.closePath(),e.setTransform(1,0,0,1,0,0)},Mw=(0,qA.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,qA.reactive)({canvasContext:null});let n=1;const o=(0,qA.ref)(null);(0,qA.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"},le=class extends Error{constructor(e,...A){var t;super((t=La[e])==null?void 0:t.call(La,...A)),this.name="VueFlowError",this.code=e,this.args=A}};function ci(e){return"clientX"in e}function rB(e){return"sourceEvent"in e}function ze(e,A){const t=ci(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 Ir=()=>{var e;return typeof navigator<"u"&&((e=navigator?.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function oB(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 _r(e,A=[1,1]){return{x:A[0]*Math.round(e.x/A[0]),y:A[1]*Math.round(e.y/A[1])}}var iB=()=>!0;function ui(e){e?.classList.remove("valid","connecting","vue-flow__handle-valid","vue-flow__handle-connecting")}function sB(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())Ur(o,Fr(a))>0&&n.push(a);return n}var aB=250;function lB(e,A,t,n){var o,a;let u=[],d=Number.POSITIVE_INFINITY;const h=sB(e,t,A+aB);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}=Zt(g,w,w.position,!0),Q=Math.sqrt((m-e.x)**2+(v-e.y)**2);Q>A||(Q<d?(u=[{...w,x:m,y:v}],d=Q):Q===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 Ta(e,{handle:A,connectionMode:t,fromNodeId:n,fromHandleId:o,fromType:a,doc:u,lib:d,flowId:h,isValidConnection:g=iB},B,w,m,v){const Q=a==="target",I=A?u.querySelector(`.${d}-flow__handle[data-id="${h}-${A?.nodeId}-${A?.id}-${A?.type}"]`):null,{x:L,y:N}=ze(e),V=u.elementFromPoint(L,N),U=V?.classList.contains(`${d}-flow__handle`)?V:I,z={handleDomNode:U,isValid:!1,connection:null,toHandle:null};if(U){const iA=ka(void 0,U),W=U.getAttribute("data-nodeid"),lA=U.getAttribute("data-handleid"),sA=U.classList.contains("connectable"),nA=U.classList.contains("connectableend");if(!W||!iA)return z;const oA={source:Q?W:n,sourceHandle:Q?lA:o,target:Q?n:W,targetHandle:Q?o:lA};z.connection=oA,z.isValid=sA&&nA&&(t===nt.Strict?Q&&iA==="source"||!Q&&iA==="target":W!==n||lA!==o)&&g(oA,{nodes:w,edges:B,sourceNode:m(oA.source),targetNode:m(oA.target)}),z.toHandle=Ma(W,iA,lA,v,t,!0)}return z}function ka(e,A){return e||(A?.classList.contains("target")?"target":A?.classList.contains("source")?"source":null)}function cB(e,A){let t=null;return A?t="valid":e&&!A&&(t="invalid"),t}function uB(e,A){let t=null;return A?t=!0:e&&!A&&(t=!1),t}function Ma(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,...Zt(g,w,w.position,!0)}:w}var di={[IA.Left]:IA.Right,[IA.Right]:IA.Left,[IA.Top]:IA.Bottom,[IA.Bottom]:IA.Top},dB=["production","prod"];function Tn(e,...A){Oa()&&console.warn(`[Vue Flow]: ${e}`,...A)}function Oa(){return!dB.includes(process.env.NODE_ENV||"")}function Ka(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,...br(u)}}):null}function fi(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 ie(e){return typeof(0,r.unref)(e)<"u"}function fB(e,A,t,n){if(!e||!e.source||!e.target)return t(new le(oe.EDGE_INVALID,e?.id??"[ID UNKNOWN]")),!1;let o;return ft(e)?o=e:o={...e,id:pa(e)},o=ha(o,void 0,n),Xh(o,A)?!1:o}function gB(e,A,t,n,o){if(!A.source||!A.target)return o(new le(oe.EDGE_INVALID,e.id)),!1;if(!t)return o(new le(oe.EDGE_NOT_FOUND,e.id)),!1;const{id:a,...u}=e;return{...u,id:n?pa(A):a,source:A.source,target:A.target,sourceHandle:A.sourceHandle,targetHandle:A.targetHandle}}function Ra(e,A,t){const n={},o=[];for(let a=0;a<e.length;++a){const u=e[a];if(!Nt(u)){t(new le(oe.NODE_INVALID,u?.id));continue}const d=Ph(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 le(oe.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 Va(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 gi(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}`;Va("source",h,`${a}-${d}--${o}-${u}`,e,o,u),Va("target",h,g,e,a,d)}}function Pa(e,A){if(e.size!==A.size)return!1;for(const t of e)if(!A.has(t))return!1;return!0}function hi(e,A,t,n,o,a,u,d){const h=[];for(const g of e){const B=ft(g)?g:fB(g,d,o,a);if(!B)continue;const w=t(B.source),m=t(B.target);if(!w||!m){o(new le(oe.EDGE_SOURCE_TARGET_MISSING,B.id,B.source,B.target));continue}if(!w){o(new le(oe.EDGE_SOURCE_MISSING,B.id,B.source));continue}if(!m){o(new le(oe.EDGE_TARGET_MISSING,B.id,B.target));continue}if(A&&!A(B,{edges:d,nodes:u,sourceNode:w,targetNode:m})){o(new le(oe.EDGE_INVALID,B.id));continue}const v=n(B.id);h.push({...ha(B,v,a),sourceNode:w,targetNode:m})}return h}var Ga=Symbol("vueFlow"),za=Symbol("nodeId"),Xa=Symbol("nodeRef"),hB=Symbol("edgeId"),BB=Symbol("edgeRef"),Sr=Symbol("slots");function $a(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:Q,nodesSelectionActive:I,selectNodesOnDrag:L,removeSelectedElements:N,addSelectedNodes:V,updateNodePositions:U,emits:z}=YA(),{onStart:iA,onDrag:W,onStop:lA,onClick:sA,el:nA,disabled:oA,id:AA,selectable:_,dragHandle:q}=e,F=(0,r.shallowRef)(!1);let R=[],b,P=null,M={x:void 0,y:void 0},k={x:0,y:0},O=null,Y=!1,eA=!1,hA=0,bA=!1;const tA=wB(),J=({x:fA,y:yA})=>{M={x:fA,y:yA};let S=!1;if(R=R.map(H=>{const D={x:fA-H.distance.x,y:yA-H.distance.y},{computedPosition:x}=li(H,t.value?_r(D,n.value):D,z.error,u.value,H.parentNode?v(H.parentNode):void 0);return S=S||H.position.x!==x.x||H.position.y!==x.y,H.position=x,H}),eA=eA||S,!!S&&(U(R,!0,!0),F.value=!0,O)){const[H,D]=ai({id:AA,dragItems:R,findNode:v});W({event:O,node:H,nodes:D})}},$=()=>{if(!P)return;const[fA,yA]=Ua(k,P,B.value);if(fA!==0||yA!==0){const S={x:(M.x??0)-fA/h.value.zoom,y:(M.y??0)-yA/h.value.zoom};m({x:fA,y:yA})&&J(S)}hA=requestAnimationFrame($)},uA=(fA,yA)=>{Y=!0;const S=v(AA);!L.value&&!Q.value&&S&&(S.selected||N()),S&&(0,r.toValue)(_)&&L.value&&fi(S,Q.value,V,N,I,!1,yA);const H=tA(fA.sourceEvent);if(M=H,R=jh(a.value,w.value,H,AA),R.length){const[D,x]=ai({id:AA,dragItems:R,findNode:v});iA({event:fA.sourceEvent,node:D,nodes:x})}},pA=(fA,yA)=>{var S;fA.sourceEvent.type==="touchmove"&&fA.sourceEvent.touches.length>1||(eA=!1,d.value===0&&uA(fA,yA),M=tA(fA.sourceEvent),P=((S=A.value)==null?void 0:S.getBoundingClientRect())||null,k=ze(fA.sourceEvent,P))},FA=(fA,yA)=>{const S=tA(fA.sourceEvent);if(!bA&&Y&&g.value&&(bA=!0,$()),!Y){const H=S.xSnapped-(M.x??0),D=S.ySnapped-(M.y??0);Math.sqrt(H*H+D*D)>d.value&&uA(fA,yA)}(M.x!==S.xSnapped||M.y!==S.ySnapped)&&R.length&&Y&&(O=fA.sourceEvent,k=ze(fA.sourceEvent,P),J(S))},_A=fA=>{let yA=!1;if(!Y&&!F.value&&!Q.value){const S=fA.sourceEvent,H=tA(S),D=H.xSnapped-(M.x??0),x=H.ySnapped-(M.y??0),K=Math.sqrt(D*D+x*x);K!==0&&K<=d.value&&(sA?.(S),yA=!0)}if(R.length&&!yA){eA&&(U(R,!1,!1),eA=!1);const[S,H]=ai({id:AA,dragItems:R,findNode:v});lA({event:fA.sourceEvent,node:S,nodes:H})}R=[],F.value=!1,bA=!1,Y=!1,M={x:void 0,y:void 0},cancelAnimationFrame(hA)};return(0,r.watch)([()=>(0,r.toValue)(oA),nA],([fA,yA],S,H)=>{if(yA){const D=De(yA);fA||(b=Vf().on("start",x=>pA(x,yA)).on("drag",x=>FA(x,yA)).on("end",x=>_A(x)).filter(x=>{const K=x.target,cA=(0,r.toValue)(q);return!x.button&&(!o.value||!xa(K,`.${o.value}`,yA)&&(!cA||xa(K,cA,yA)))}),D.call(b)),H(()=>{D.on(".drag",null),b&&(b.on("start",null),b.on("drag",null),b.on("end",null))})}}),F}function pB(){return{doubleClick:vA(),click:vA(),mouseEnter:vA(),mouseMove:vA(),mouseLeave:vA(),contextMenu:vA(),updateStart:vA(),update:vA(),updateEnd:vA()}}function mB(e,A){const t=pB();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 wB(){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(rB(o)?o.sourceEvent:o,u),g=Nn({x:d,y:h},e.value),{x:B,y:w}=t.value?_r(g,A.value):g;return{xSnapped:B,ySnapped:w,...g}}}function xr(){return!0}function Ya({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:Q,autoPanSpeed:I,findNode:L,panBy:N,startConnection:V,updateConnection:U,endConnection:z,emits:iA,viewport:W,edges:lA,nodes:sA,isValidConnection:nA,nodeLookup:oA}=YA();let AA=null,_=!1,q=null;function F(b){var P;const M=(0,r.toValue)(t)==="target",k=ci(b),O=ga(b.target),Y=b.currentTarget;if(Y&&(k&&b.button===0||!k)){let eA=function(wA){S=ze(wA,_A),J=lB(Nn(S,W.value,!1,[1,1]),B.value,oA.value,x),H||(D(),H=!0);const QA=Ta(wA,{handle:J,connectionMode:g.value,fromNodeId:(0,r.toValue)(A),fromHandleId:(0,r.toValue)(e),fromType:M?"target":"source",isValidConnection:tA,doc:O,lib:"vue",flowId:d,nodeLookup:oA.value},lA.value,sA.value,L,oA.value);q=QA.handleDomNode,AA=QA.connection,_=uB(!!J,QA.isValid);const NA={...aA,isValid:_,to:QA.toHandle&&_?Dn({x:QA.toHandle.x,y:QA.toHandle.y},W.value):S,toHandle:QA.toHandle,toPosition:_&&QA.toHandle?QA.toHandle.position:di[x.position],toNode:QA.toHandle?oA.value.get(QA.toHandle.nodeId):null};if(_&&J&&aA?.toHandle&&NA.toHandle&&aA.toHandle.type===NA.toHandle.type&&aA.toHandle.nodeId===NA.toHandle.nodeId&&aA.toHandle.id===NA.toHandle.id&&aA.to.x===NA.to.x&&aA.to.y===NA.to.y)return;const OA=J??QA.toHandle;if(U(OA&&_?Dn({x:OA.x,y:OA.y},W.value):S,OA,cB(!!OA,_)),aA=NA,!J&&!_&&!q)return ui(yA);AA&&AA.source!==AA.target&&q&&(ui(yA),yA=q,q.classList.add("connecting","vue-flow__handle-connecting"),q.classList.toggle("valid",!!_),q.classList.toggle("vue-flow__handle-valid",!!_))},hA=function(wA){"touches"in wA&&wA.touches.length>0||((J||q)&&AA&&_&&(a?a(wA,AA):iA.connect(AA)),iA.connectEnd(wA),o&&u?.(wA),ui(yA),cancelAnimationFrame($),z(wA),H=!1,_=!1,AA=null,q=null,O.removeEventListener("mousemove",eA),O.removeEventListener("mouseup",hA),O.removeEventListener("touchmove",eA),O.removeEventListener("touchend",hA))};const bA=L((0,r.toValue)(A));let tA=(0,r.toValue)(n)||nA.value||xr;!tA&&bA&&(tA=(M?bA.isValidSourcePos:bA.isValidTargetPos)||xr);let J,$=0;const{x:uA,y:pA}=ze(b),FA=ka((0,r.toValue)(o),Y),_A=(P=h.value)==null?void 0:P.getBoundingClientRect();if(!_A||!FA)return;const fA=Ma((0,r.toValue)(A),FA,(0,r.toValue)(e),oA.value,g.value);if(!fA)return;let yA,S=ze(b,_A),H=!1;const D=()=>{if(!Q.value)return;const[wA,QA]=Ua(S,_A,I.value);N({x:wA,y:QA}),$=requestAnimationFrame(D)},x={...fA,nodeId:(0,r.toValue)(A),type:FA,position:fA.position},K=oA.value.get((0,r.toValue)(A)),cA={inProgress:!0,isValid:null,from:Zt(K,x,IA.Left,!0),fromHandle:x,fromPosition:x.position,fromNode:K,to:S,toHandle:null,toPosition:di[x.position],toNode:null};V({nodeId:(0,r.toValue)(A),id:(0,r.toValue)(e),type:FA,position:Y?.getAttribute("data-handlepos")||IA.Top,...S},{x:uA-_A.left,y:pA-_A.top}),iA.connectStart({event:b,nodeId:(0,r.toValue)(A),handleId:(0,r.toValue)(e),handleType:FA});let aA=cA;O.addEventListener("mousemove",eA),O.addEventListener("mouseup",hA),O.addEventListener("touchmove",eA),O.addEventListener("touchend",hA)}}function R(b){var P,M;if(!w.value)return;const k=(0,r.toValue)(t)==="target";if(!m.value){iA.clickConnectStart({event:b,nodeId:(0,r.toValue)(A),handleId:(0,r.toValue)(e)}),V({nodeId:(0,r.toValue)(A),type:(0,r.toValue)(t),id:(0,r.toValue)(e),position:IA.Top,...ze(b)},void 0,!0);return}let O=(0,r.toValue)(n)||nA.value||xr;const Y=L((0,r.toValue)(A));if(!O&&Y&&(O=(k?Y.isValidSourcePos:Y.isValidTargetPos)||xr),Y&&(typeof Y.connectable>"u"?v.value:Y.connectable)===!1)return;const eA=ga(b.target),hA=Ta(b,{handle:{nodeId:(0,r.toValue)(A),id:(0,r.toValue)(e),type:(0,r.toValue)(t),position:IA.Top,...ze(b)},connectionMode:g.value,fromNodeId:m.value.nodeId,fromHandleId:m.value.id??null,fromType:m.value.type,isValidConnection:O,doc:eA,lib:"vue",flowId:d,nodeLookup:oA.value},lA.value,sA.value,L,oA.value),bA=((P=hA.connection)==null?void 0:P.source)===((M=hA.connection)==null?void 0:M.target);hA.isValid&&hA.connection&&!bA&&iA.connect(hA.connection),iA.clickConnectEnd(b),z(b,!0)}return{handlePointerDown:F,handleClick:R}}function CB(){return(0,r.inject)(za,"")}function Wa(e){const A=e??CB()??"",t=(0,r.inject)(Xa,(0,r.ref)(null)),{findNode:n,edges:o,emits:a}=YA(),u=n(A);return u||a.error(new le(oe.NODE_NOT_FOUND,A)),{id:A,nodeEl:t,node:u,parentNode:(0,r.computed)(()=>n(u.parentNode)),connectedEdges:(0,r.computed)(()=>va([u],o.value))}}function vB(){return{doubleClick:vA(),click:vA(),mouseEnter:vA(),mouseMove:vA(),mouseLeave:vA(),contextMenu:vA(),dragStart:vA(),drag:vA(),dragStop:vA()}}function yB(e,A){const t=vB();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 Ja(){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,Q=h.y*w*m,I=[];for(const L of e.value)if(L.draggable||u&&typeof L.draggable>"u"){const{position:N}=li(L,{x:L.computedPosition.x+v,y:L.computedPosition.y+Q},d.error,A.value,L.parentNode?n(L.parentNode):void 0);I.push({id:L.id,position:N,from:L.position,distance:{x:h.x,y:h.y},dimensions:L.dimensions})}t(I,!0,!1)}}var Dr=.1,QB=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2;function Bt(){return Tn("Viewport not initialized yet."),Promise.resolve(!1)}var EB={zoomIn:Bt,zoomOut:Bt,zoomTo:Bt,fitView:Bt,setCenter:Bt,fitBounds:Bt,project:e=>e,screenToFlowCoordinate:e=>e,flowToScreenCoordinate:e=>e,setViewport:Bt,setTransform:Bt,getViewport:()=>({x:0,y:0,zoom:1}),getTransform:()=>({x:0,y:0,zoom:1}),viewportInitialized:!1};function FB(e){function A(n,o){return new Promise(a=>{e.d3Selection&&e.d3Zoom?e.d3Zoom.interpolate(o?.interpolate==="linear"?En:hr).scaleBy(Bi(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}=fa({x:-n,y:-o},e.translateExtent),w=Yt.translate(-g,-B).scale(a);e.d3Selection&&e.d3Zoom?(h=e.d3Zoom)==null||h.interpolate(u?.interpolate==="linear"?En:hr).transform(Bi(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"?En:hr).scaleTo(Bi(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:Dr,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}=ya(wa(u),e.dimensions.width,e.dimensions.height,n.minZoom??e.minZoom,n.maxZoom??e.maxZoom,n.padding??Dr);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:Dr})=>{const{x:a,y:u,zoom:d}=ya(n,e.dimensions.width,e.dimensions.height,e.minZoom,e.maxZoom,o.padding??Dr);return t(a,u,d,o)},project:n=>Nn(n,e.viewport,e.snapToGrid,e.snapGrid),screenToFlowCoordinate:n=>{if(e.vueFlowRef){const{x:o,y:a}=e.vueFlowRef.getBoundingClientRect();return Nn({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 Dn({x:n.x+o,y:n.y+a},e.viewport)}return{x:0,y:0}}}:EB)}function Bi(e,A=0,t=QB,n=()=>{}){const o=typeof A=="number"&&A>0;return o||n(),o?e.transition().duration(A).ease(t).on("end",n):e}function UB(e,A,t){const n=(0,r.effectScope)(!0);return n.run(()=>{const o=()=>{n.run(()=>{let I,L,N=!!(t.nodes.value.length||t.edges.value.length);I=Pt([e.modelValue,()=>{var V,U;return(U=(V=e.modelValue)==null?void 0:V.value)==null?void 0:U.length}],([V])=>{V&&Array.isArray(V)&&(L?.pause(),t.setElements(V),!L&&!N&&V.length?N=!0:L?.resume())}),L=Pt([t.nodes,t.edges,()=>t.edges.value.length,()=>t.nodes.value.length],([V,U])=>{var z;(z=e.modelValue)!=null&&z.value&&Array.isArray(e.modelValue.value)&&(I?.pause(),e.modelValue.value=[...V,...U],(0,r.nextTick)(()=>{I?.resume()}))},{immediate:N}),(0,r.onScopeDispose)(()=>{I?.stop(),L?.stop()})})},a=()=>{n.run(()=>{let I,L,N=!!t.nodes.value.length;I=Pt([e.nodes,()=>{var V,U;return(U=(V=e.nodes)==null?void 0:V.value)==null?void 0:U.length}],([V])=>{V&&Array.isArray(V)&&(L?.pause(),t.setNodes(V),!L&&!N&&V.length?N=!0:L?.resume())}),L=Pt([t.nodes,()=>t.nodes.value.length],([V])=>{var U;(U=e.nodes)!=null&&U.value&&Array.isArray(e.nodes.value)&&(I?.pause(),e.nodes.value=[...V],(0,r.nextTick)(()=>{I?.resume()}))},{immediate:N}),(0,r.onScopeDispose)(()=>{I?.stop(),L?.stop()})})},u=()=>{n.run(()=>{let I,L,N=!!t.edges.value.length;I=Pt([e.edges,()=>{var V,U;return(U=(V=e.edges)==null?void 0:V.value)==null?void 0:U.length}],([V])=>{V&&Array.isArray(V)&&(L?.pause(),t.setEdges(V),!L&&!N&&V.length?N=!0:L?.resume())}),L=Pt([t.edges,()=>t.edges.value.length],([V])=>{var U;(U=e.edges)!=null&&U.value&&Array.isArray(e.edges.value)&&(I?.pause(),e.edges.value=[...V],(0,r.nextTick)(()=>{I?.resume()}))},{immediate:N}),(0,r.onScopeDispose)(()=>{I?.stop(),L?.stop()})})},d=()=>{n.run(()=>{(0,r.watch)(()=>A.maxZoom,()=>{A.maxZoom&&ie(A.maxZoom)&&t.setMaxZoom(A.maxZoom)},{immediate:!0})})},h=()=>{n.run(()=>{(0,r.watch)(()=>A.minZoom,()=>{A.minZoom&&ie(A.minZoom)&&t.setMinZoom(A.minZoom)},{immediate:!0})})},g=()=>{n.run(()=>{(0,r.watch)(()=>A.translateExtent,()=>{A.translateExtent&&ie(A.translateExtent)&&t.setTranslateExtent(A.translateExtent)},{immediate:!0})})},B=()=>{n.run(()=>{(0,r.watch)(()=>A.nodeExtent,()=>{A.nodeExtent&&ie(A.nodeExtent)&&t.setNodeExtent(A.nodeExtent)},{immediate:!0})})},w=()=>{n.run(()=>{(0,r.watch)(()=>A.applyDefault,()=>{ie(A.applyDefault)&&(t.applyDefault.value=A.applyDefault)},{immediate:!0})})},m=()=>{n.run(()=>{const I=async L=>{let N=L;typeof A.autoConnect=="function"&&(N=await A.autoConnect(L)),N!==!1&&t.addEdges([N])};(0,r.watch)(()=>A.autoConnect,()=>{ie(A.autoConnect)&&(t.autoConnect.value=A.autoConnect)},{immediate:!0}),(0,r.watch)(t.autoConnect,(L,N,V)=>{L?t.onConnect(I):t.hooks.value.connect.off(I),V(()=>{t.hooks.value.connect.off(I)})},{immediate:!0})})},v=()=>{const I=["id","modelValue","translateExtent","nodeExtent","edges","nodes","maxZoom","minZoom","applyDefault","autoConnect"];for(const L of Object.keys(A)){const N=L;if(!I.includes(N)){const V=(0,r.toRef)(()=>A[N]),U=t[N];(0,r.isRef)(U)&&n.run(()=>{(0,r.watch)(V,z=>{ie(z)&&(U.value=z)},{immediate:!0})})}}};o(),a(),u(),h(),d(),g(),B(),w(),m(),v()}),()=>n.stop()}function bB(){return{edgesChange:vA(),nodesChange:vA(),nodeDoubleClick:vA(),nodeClick:vA(),nodeMouseEnter:vA(),nodeMouseMove:vA(),nodeMouseLeave:vA(),nodeContextMenu:vA(),nodeDragStart:vA(),nodeDrag:vA(),nodeDragStop:vA(),nodesInitialized:vA(),miniMapNodeClick:vA(),miniMapNodeDoubleClick:vA(),miniMapNodeMouseEnter:vA(),miniMapNodeMouseMove:vA(),miniMapNodeMouseLeave:vA(),connect:vA(),connectStart:vA(),connectEnd:vA(),clickConnectStart:vA(),clickConnectEnd:vA(),paneReady:vA(),init:vA(),move:vA(),moveStart:vA(),moveEnd:vA(),selectionDragStart:vA(),selectionDrag:vA(),selectionDragStop:vA(),selectionContextMenu:vA(),selectionStart:vA(),selectionEnd:vA(),viewportChangeStart:vA(),viewportChange:vA(),viewportChangeEnd:vA(),paneScroll:vA(),paneClick:vA(),paneContextMenu:vA(),paneMouseEnter:vA(),paneMouseMove:vA(),paneMouseLeave:vA(),edgeContextMenu:vA(),edgeMouseEnter:vA(),edgeMouseMove:vA(),edgeMouseLeave:vA(),edgeDoubleClick:vA(),edgeClick:vA(),edgeUpdateStart:vA(),edgeUpdate:vA(),edgeUpdateEnd:vA(),updateNodeInternals:vA(),error:vA(e=>Tn(e.message))}}function HB(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),mn(a.removeEmitter),a.setHasEmitListeners(()=>n(o)),mn(a.removeHasEmitListeners)}});function n(o){var a;const u=IB(o);return!!((a=t?.vnode.props)!=null&&a[u])}}function IB(e){const[A,...t]=e.split(":");return`on${A.replace(/(?:^|-)(\w)/g,(n,o)=>o.toUpperCase())}${t.length?`:${t.join(":")}`:""}`}function Za(){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:oi.Full,paneDragging:!1,preventScrolling:!0,zoomOnScroll:!0,zoomOnPinch:!0,zoomOnDoubleClick:!0,panOnScroll:!1,panOnScrollSpeed:.5,panOnScrollMode:_n.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:xt.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:Ir()?"Meta":"Control",zoomActivationKeyCode:Ir()?"Meta":"Control",deleteKeyCode:"Backspace",panActivationKeyCode:"Space",hooks:bB(),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 _B=["id","vueFlowRef","viewportRef","initialized","modelValue","nodes","edges","maxZoom","minZoom","translateExtent","hooks","defaultEdgeOptions"];function SB(e,A,t){const n=FB(e),o=S=>{const H=S??[];e.hooks.updateNodeInternals.trigger(H)},a=S=>zh(S,e.nodes,e.edges),u=S=>Gh(S,e.nodes,e.edges),d=S=>va(S,e.edges),h=({id:S,type:H,nodeId:D})=>{var x;const K=S?`-${H}-${S}`:`-${H}`;return Array.from(((x=e.connectionLookup.get(`${D}${K}`))==null?void 0:x.values())??[])},g=S=>{if(S)return A.value.get(S)},B=S=>{if(S)return t.value.get(S)},w=(S,H,D)=>{var x,K;const cA=[];for(const aA of S){const wA={id:aA.id,type:"position",dragging:D,from:aA.from};if(H&&(wA.position=aA.position,aA.parentNode)){const QA=g(aA.parentNode);wA.position={x:wA.position.x-(((x=QA?.computedPosition)==null?void 0:x.x)??0),y:wA.position.y-(((K=QA?.computedPosition)==null?void 0:K.y)??0)}}cA.push(wA)}cA?.length&&e.hooks.nodesChange.trigger(cA)},m=S=>{if(!e.vueFlowRef)return;const H=e.vueFlowRef.querySelector(".vue-flow__transformationpane");if(!H)return;const D=window.getComputedStyle(H),{m22:x}=new window.DOMMatrixReadOnly(D.transform),K=[];for(const cA of S){const aA=cA,wA=g(aA.id);if(wA){const QA=br(aA.nodeElement);if(QA.width&&QA.height&&(wA.dimensions.width!==QA.width||wA.dimensions.height!==QA.height||aA.forceUpdate)){const NA=aA.nodeElement.getBoundingClientRect();wA.dimensions=QA,wA.handleBounds.source=Ka("source",aA.nodeElement,NA,x,wA.id),wA.handleBounds.target=Ka("target",aA.nodeElement,NA,x,wA.id),K.push({id:wA.id,type:"dimensions",dimensions:QA})}}}!e.fitViewOnInitDone&&e.fitViewOnInit&&n.value.fitView().then(()=>{e.fitViewOnInitDone=!0}),K.length&&e.hooks.nodesChange.trigger(K)},v=(S,H)=>{const D=new Set,x=new Set;for(const aA of S)Nt(aA)?D.add(aA.id):ft(aA)&&x.add(aA.id);const K=ht(A.value,D,!0),cA=ht(t.value,x);if(e.multiSelectionActive){for(const aA of D)K.push(gt(aA,H));for(const aA of x)cA.push(gt(aA,H))}K.length&&e.hooks.nodesChange.trigger(K),cA.length&&e.hooks.edgesChange.trigger(cA)},Q=S=>{if(e.multiSelectionActive){const H=S.map(D=>gt(D.id,!0));e.hooks.nodesChange.trigger(H);return}e.hooks.nodesChange.trigger(ht(A.value,new Set(S.map(H=>H.id)),!0)),e.hooks.edgesChange.trigger(ht(t.value))},I=S=>{if(e.multiSelectionActive){const H=S.map(D=>gt(D.id,!0));e.hooks.edgesChange.trigger(H);return}e.hooks.edgesChange.trigger(ht(t.value,new Set(S.map(H=>H.id)))),e.hooks.nodesChange.trigger(ht(A.value,new Set,!0))},L=S=>{v(S,!0)},N=S=>{const H=(S||e.nodes).map(D=>(D.selected=!1,gt(D.id,!1)));e.hooks.nodesChange.trigger(H)},V=S=>{const H=(S||e.edges).map(D=>(D.selected=!1,gt(D.id,!1)));e.hooks.edgesChange.trigger(H)},U=S=>{if(!S||!S.length)return v([],!1);const H=S.reduce((D,x)=>{const K=gt(x.id,!1);return Nt(x)?D.nodes.push(K):D.edges.push(K),D},{nodes:[],edges:[]});H.nodes.length&&e.hooks.nodesChange.trigger(H.nodes),H.edges.length&&e.hooks.edgesChange.trigger(H.edges)},z=S=>{var H;(H=e.d3Zoom)==null||H.scaleExtent([S,e.maxZoom]),e.minZoom=S},iA=S=>{var H;(H=e.d3Zoom)==null||H.scaleExtent([e.minZoom,S]),e.maxZoom=S},W=S=>{var H;(H=e.d3Zoom)==null||H.translateExtent(S),e.translateExtent=S},lA=S=>{e.nodeExtent=S,o()},sA=S=>{var H;(H=e.d3Zoom)==null||H.clickDistance(S)},nA=S=>{e.nodesDraggable=S,e.nodesConnectable=S,e.elementsSelectable=S},oA=S=>{const H=S instanceof Function?S(e.nodes):S;!e.initialized&&!H.length||(e.nodes=Ra(H,g,e.hooks.error.trigger))},AA=S=>{const H=S instanceof Function?S(e.edges):S;if(!e.initialized&&!H.length)return;const D=hi(H,e.isValidConnection,g,B,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges);gi(e.connectionLookup,t.value,D),e.edges=D},_=S=>{const H=S instanceof Function?S([...e.nodes,...e.edges]):S;!e.initialized&&!H.length||(oA(H.filter(Nt)),AA(H.filter(ft)))},q=S=>{let H=S instanceof Function?S(e.nodes):S;H=Array.isArray(H)?H:[H];const D=Ra(H,g,e.hooks.error.trigger),x=[];for(const K of D)x.push(Ha(K));x.length&&e.hooks.nodesChange.trigger(x)},F=S=>{let H=S instanceof Function?S(e.edges):S;H=Array.isArray(H)?H:[H];const D=hi(H,e.isValidConnection,g,B,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges),x=[];for(const K of D)x.push(Ha(K));x.length&&e.hooks.edgesChange.trigger(x)},R=(S,H=!0,D=!1)=>{const x=S instanceof Function?S(e.nodes):S,K=Array.isArray(x)?x:[x],cA=[],aA=[];function wA(NA){const OA=d(NA);for(const KA of OA)(!ie(KA.deletable)||KA.deletable)&&aA.push(_a(KA.id,KA.source,KA.target,KA.sourceHandle,KA.targetHandle))}function QA(NA){const OA=[];for(const KA of e.nodes)KA.parentNode===NA&&OA.push(KA);if(OA.length){for(const KA of OA)cA.push(Ia(KA.id));H&&wA(OA);for(const KA of OA)QA(KA.id)}}for(const NA of K){const OA=typeof NA=="string"?g(NA):NA;OA&&(ie(OA.deletable)&&!OA.deletable||(cA.push(Ia(OA.id)),H&&wA([OA]),D&&QA(OA.id)))}aA.length&&e.hooks.edgesChange.trigger(aA),cA.length&&e.hooks.nodesChange.trigger(cA)},b=S=>{const H=S instanceof Function?S(e.edges):S,D=Array.isArray(H)?H:[H],x=[];for(const K of D){const cA=typeof K=="string"?B(K):K;cA&&(ie(cA.deletable)&&!cA.deletable||x.push(_a(typeof K=="string"?K:K.id,cA.source,cA.target,cA.sourceHandle,cA.targetHandle)))}e.hooks.edgesChange.trigger(x)},P=(S,H,D=!0)=>{const x=B(S.id);if(!x)return!1;const K=e.edges.indexOf(x),cA=gB(S,H,x,D,e.hooks.error.trigger);if(cA){const[aA]=hi([cA],e.isValidConnection,g,B,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges);return e.edges=e.edges.map((wA,QA)=>QA===K?aA:wA),gi(e.connectionLookup,t.value,[aA]),aA}return!1},M=(S,H,D={replace:!1})=>{const x=B(S);if(!x)return;const K=typeof H=="function"?H(x):H;x.data=D.replace?K:{...x.data,...K}},k=S=>ba(S,e.nodes),O=S=>{const H=ba(S,e.edges);return gi(e.connectionLookup,t.value,H),H},Y=(S,H,D={replace:!1})=>{const x=g(S);if(!x)return;const K=typeof H=="function"?H(x):H;D.replace?e.nodes.splice(e.nodes.indexOf(x),1,K):Object.assign(x,K)},eA=(S,H,D={replace:!1})=>{const x=g(S);if(!x)return;const K=typeof H=="function"?H(x):H;x.data=D.replace?K:{...x.data,...K}},hA=(S,H,D=!1)=>{D?e.connectionClickStartHandle=S:e.connectionStartHandle=S,e.connectionEndHandle=null,e.connectionStatus=null,H&&(e.connectionPosition=H)},bA=(S,H=null,D=null)=>{e.connectionStartHandle&&(e.connectionPosition=S,e.connectionEndHandle=H,e.connectionStatus=D)},tA=(S,H)=>{e.connectionPosition={x:NaN,y:NaN},e.connectionEndHandle=null,e.connectionStatus=null,H?e.connectionClickStartHandle=null:e.connectionStartHandle=null},J=S=>{const H=Vh(S),D=H?null:xn(S)?S:g(S.id);return!H&&!D?[null,null,H]:[H?S:Fr(D),D,H]},$=(S,H=!0,D=e.nodes)=>{const[x,K,cA]=J(S);if(!x)return[];const aA=[];for(const wA of D||e.nodes){if(!cA&&(wA.id===K.id||!wA.computedPosition))continue;const QA=Fr(wA),NA=Ur(QA,x);(H&&NA>0||NA>=QA.width*QA.height||NA>=Number(x.width)*Number(x.height))&&aA.push(wA)}return aA},uA=(S,H,D=!0)=>{const[x]=J(S);if(!x)return!1;const K=Ur(x,H);return D&&K>0||K>=Number(x.width)*Number(x.height)},pA=S=>{const{viewport:H,dimensions:D,d3Zoom:x,d3Selection:K,translateExtent:cA}=e;if(!x||!K||!S.x&&!S.y)return!1;const aA=Yt.translate(H.x+S.x,H.y+S.y).scale(H.zoom),wA=[[0,0],[D.width,D.height]],QA=x.constrain()(aA,wA,cA),NA=e.viewport.x!==QA.x||e.viewport.y!==QA.y||e.viewport.zoom!==QA.k;return x.transform(K,QA),NA},FA=S=>{const H=S instanceof Function?S(e):S,D=["d3Zoom","d3Selection","d3ZoomHandler","viewportRef","vueFlowRef","dimensions","hooks"];ie(H.defaultEdgeOptions)&&(e.defaultEdgeOptions=H.defaultEdgeOptions);const x=H.modelValue||H.nodes||H.edges?[]:void 0;x&&(H.modelValue&&x.push(...H.modelValue),H.nodes&&x.push(...H.nodes),H.edges&&x.push(...H.edges),_(x));const K=()=>{ie(H.maxZoom)&&iA(H.maxZoom),ie(H.minZoom)&&z(H.minZoom),ie(H.translateExtent)&&W(H.translateExtent)};for(const cA of Object.keys(H)){const aA=cA,wA=H[aA];![..._B,...D].includes(aA)&&ie(wA)&&(e[aA]=wA)}Mo(()=>e.d3Zoom).not.toBeNull().then(K),e.initialized||(e.initialized=!0)};return{updateNodePositions:w,updateNodeDimensions:m,setElements:_,setNodes:oA,setEdges:AA,addNodes:q,addEdges:F,removeNodes:R,removeEdges:b,findNode:g,findEdge:B,updateEdge:P,updateEdgeData:M,updateNode:Y,updateNodeData:eA,applyEdgeChanges:O,applyNodeChanges:k,addSelectedElements:L,addSelectedNodes:Q,addSelectedEdges:I,setMinZoom:z,setMaxZoom:iA,setTranslateExtent:W,setNodeExtent:lA,setPaneClickDistance:sA,removeSelectedElements:U,removeSelectedNodes:N,removeSelectedEdges:V,startConnection:hA,updateConnection:bA,endConnection:tA,setInteractive:nA,setState:FA,getIntersectingNodes:$,getIncomers:a,getOutgoers:u,getConnectedEdges:d,getHandleConnections:h,isNodeIntersecting:uA,panBy:pA,fitView:S=>n.value.fitView(S),zoomIn:S=>n.value.zoomIn(S),zoomOut:S=>n.value.zoomOut(S),zoomTo:(S,H)=>n.value.zoomTo(S,H),setViewport:(S,H)=>n.value.setViewport(S,H),setTransform:(S,H)=>n.value.setTransform(S,H),getViewport:()=>n.value.getViewport(),getTransform:()=>n.value.getTransform(),setCenter:(S,H,D)=>n.value.setCenter(S,H,D),fitBounds:(S,H)=>n.value.fitBounds(S,H),project:S=>n.value.project(S),screenToFlowCoordinate:S=>n.value.screenToFlowCoordinate(S),flowToScreenCoordinate:S=>n.value.flowToScreenCoordinate(S),toObject:()=>{const S=[],H=[];for(const D of e.nodes){const{computedPosition:x,handleBounds:K,selected:cA,dimensions:aA,isParent:wA,resizing:QA,dragging:NA,events:OA,...KA}=D;S.push(KA)}for(const D of e.edges){const{selected:x,sourceNode:K,targetNode:cA,events:aA,...wA}=D;H.push(wA)}return JSON.parse(JSON.stringify({nodes:S,edges:H,position:[e.viewport.x,e.viewport.y],zoom:e.viewport.zoom,viewport:e.viewport}))},fromObject:S=>new Promise(H=>{const{nodes:D,edges:x,position:K,zoom:cA,viewport:aA}=S;D&&oA(D),x&&AA(x);const[wA,QA]=aA?.x&&aA?.y?[aA.x,aA.y]:K??[null,null];if(wA&&QA){const NA=aA?.zoom||cA||e.viewport.zoom;return Mo(()=>n.value.viewportInitialized).toBe(!0).then(()=>{n.value.setViewport({x:wA,y:QA,zoom:NA}).then(()=>{H(!0)})})}else H(!0)}),updateNodeInternals:o,viewportHelper:n,$reset:()=>{const S=Za();if(e.edges=[],e.nodes=[],e.d3Zoom&&e.d3Selection){const H=Yt.translate(S.defaultViewport.x??0,S.defaultViewport.y??0).scale(Dt(S.defaultViewport.zoom??1,S.minZoom,S.maxZoom)),D=e.viewportRef.getBoundingClientRect(),x=[[0,0],[D.width,D.height]],K=e.d3Zoom.constrain()(H,x,S.translateExtent);e.d3Zoom.transform(e.d3Selection,K)}FA(S)},$destroy:()=>{}}}var xB=["data-id","data-handleid","data-nodeid","data-handlepos"],jt=(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}=YA(),{id:v,node:Q,nodeEl:I,connectedEdges:L}=Wa(),N=(0,r.ref)(),V=(0,r.toRef)(()=>typeof e.connectableStart<"u"?e.connectableStart:!0),U=(0,r.toRef)(()=>typeof e.connectableEnd<"u"?e.connectableEnd:!0),z=(0,r.toRef)(()=>{var AA,_,q,F,R,b;return((AA=u.value)==null?void 0:AA.nodeId)===v&&((_=u.value)==null?void 0:_.id)===e.id&&((q=u.value)==null?void 0:q.type)===n.value||((F=h.value)==null?void 0:F.nodeId)===v&&((R=h.value)==null?void 0:R.id)===e.id&&((b=h.value)==null?void 0:b.type)===n.value}),iA=(0,r.toRef)(()=>{var AA,_,q;return((AA=d.value)==null?void 0:AA.nodeId)===v&&((_=d.value)==null?void 0:_.id)===e.id&&((q=d.value)==null?void 0:q.type)===n.value}),{handlePointerDown:W,handleClick:lA}=Ya({nodeId:v,handleId:e.id,isValidConnection:o,type:n}),sA=(0,r.computed)(()=>typeof e.connectable=="string"&&e.connectable==="single"?!L.value.some(AA=>{const _=AA[`${n.value}Handle`];return AA[n.value]!==v?!1:_?_===e.id:!0}):typeof e.connectable=="number"?L.value.filter(AA=>{const _=AA[`${n.value}Handle`];return AA[n.value]!==v?!1:_?_===e.id:!0}).length<e.connectable:typeof e.connectable=="function"?e.connectable(Q,L.value):ie(e.connectable)?e.connectable:B.value);(0,r.onMounted)(()=>{var AA;if(!Q.dimensions.width||!Q.dimensions.height)return;const _=(AA=Q.handleBounds[n.value])==null?void 0:AA.find(k=>k.id===e.id);if(!g.value||_)return;const q=g.value.querySelector(".vue-flow__transformationpane");if(!I.value||!N.value||!q||!e.id)return;const F=I.value.getBoundingClientRect(),R=N.value.getBoundingClientRect(),b=window.getComputedStyle(q),{m22:P}=new window.DOMMatrixReadOnly(b.transform),M={id:e.id,position:e.position,x:(R.left-F.left)/P,y:(R.top-F.top)/P,type:n.value,nodeId:v,...br(N.value)};Q.handleBounds[n.value]=[...Q.handleBounds[n.value]??[],M]});function nA(AA){const _=ci(AA);sA.value&&V.value&&(_&&AA.button===0||!_)&&W(AA)}function oA(AA){!v||!d.value&&!V.value||sA.value&&lA(AA)}return A({handleClick:lA,handlePointerDown:W,onClick:oA,onPointerDown:nA}),(AA,_)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{ref_key:"handle",ref:N,"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:sA.value,connecting:iA.value,connectablestart:V.value,connectableend:U.value,connectionindicator:sA.value&&(V.value&&!z.value||U.value&&z.value)}]]),onMousedown:nA,onTouchstartPassive:nA,onClick:oA},[(0,r.renderSlot)(AA.$slots,"default",{id:AA.id})],42,xB))}}),Nr=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)(jt,{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)(jt,{type:"source",position:e,connectable:n,isValidConnection:a})]};Nr.props=["sourcePosition","targetPosition","label","isValidTargetPos","isValidSourcePos","connectable","data"],Nr.inheritAttrs=!1,Nr.compatConfig={MODE:3};var DB=Nr,Lr=function({targetPosition:e=IA.Top,label:A,connectable:t=!0,isValidTargetPos:n,data:o}){const a=o.label??A;return[(0,r.h)(jt,{type:"target",position:e,connectable:t,isValidConnection:n}),typeof a!="string"&&a?(0,r.h)(a):(0,r.h)(r.Fragment,[a])]};Lr.props=["targetPosition","label","isValidTargetPos","connectable","data"],Lr.inheritAttrs=!1,Lr.compatConfig={MODE:3};var NB=Lr,Tr=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)(jt,{type:"source",position:e,connectable:t,isValidConnection:n})]};Tr.props=["sourcePosition","label","isValidSourcePos","connectable","data"],Tr.inheritAttrs=!1,Tr.compatConfig={MODE:3};var LB=Tr,TB=["transform"],kB=["width","height","x","y","rx","ry"],MB=["y"],OB=(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,MB)],8,TB))}}),KB=["id","d","marker-end","marker-start"],RB=["d","stroke-width"],kn=(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,KB),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,RB)):(0,r.createCommentVNode)("",!0),u.label&&u.labelX&&u.labelY?((0,r.openBlock)(),(0,r.createBlock)(OB,{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 ja({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 qa({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 kr(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-kr(A-n,a),d=t;break;case IA.Right:u=A+kr(n-A,a),d=t;break;case IA.Top:u=A,d=t-kr(t-o,a);break;case IA.Bottom:u=A,d=t+kr(o-t,a);break}return[u,d]}function pi(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,Q,I]=qa({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,Q,I]}function el({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 tl(e){const{sourceX:A,sourceY:t,sourcePosition:n=IA.Bottom,targetX:o,targetY:a,targetPosition:u=IA.Top}=e,[d,h]=el({pos:n,x1:A,y1:t,x2:o,y2:a}),[g,B]=el({pos:u,x1:o,y1:a,x2:A,y2:t}),[w,m,v,Q]=qa({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,Q]}var nl={[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 VB({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 rl(e,A){return Math.sqrt((A.x-e.x)**2+(A.y-e.y)**2)}function PB({source:e,sourcePosition:A=IA.Bottom,target:t,targetPosition:n=IA.Top,center:o,offset:a}){const u=nl[A],d=nl[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=VB({source:h,sourcePosition:A,target:g}),w=B.x!==0?"x":"y",m=B[w];let v,Q,I;const L={x:0,y:0},N={x:0,y:0},[V,U,z,iA]=ja({sourceX:e.x,sourceY:e.y,targetX:t.x,targetY:t.y});if(u[w]*d[w]===-1){Q=o.x??V,I=o.y??U;const W=[{x:Q,y:h.y},{x:Q,y:g.y}],lA=[{x:h.x,y:I},{x:g.x,y:I}];u[w]===m?v=w==="x"?W:lA:v=w==="x"?lA:W}else{const W=[{x:h.x,y:g.y}],lA=[{x:g.x,y:h.y}];if(w==="x"?v=u.x===m?lA:W:v=u.y===m?W:lA,A===n){const oA=Math.abs(e[w]-t[w]);if(oA<=a){const AA=Math.min(a-1,a-oA);u[w]===m?L[w]=(h[w]>e[w]?-1:1)*AA:N[w]=(g[w]>t[w]?-1:1)*AA}}if(A!==n){const oA=w==="x"?"y":"x",AA=u[w]===d[oA],_=h[oA]>g[oA],q=h[oA]<g[oA];(u[w]===1&&(!AA&&_||AA&&q)||u[w]!==1&&(!AA&&q||AA&&_))&&(v=w==="x"?W:lA)}const sA={x:h.x+L.x,y:h.y+L.y},nA={x:g.x+N.x,y:g.y+N.y};Math.max(Math.abs(sA.x-v[0].x),Math.abs(nA.x-v[0].x))>=Math.max(Math.abs(sA.y-v[0].y),Math.abs(nA.y-v[0].y))?(Q=(sA.x+nA.x)/2,I=v[0].y):(Q=v[0].x,I=(sA.y+nA.y)/2)}return[[e,{x:h.x+L.x,y:h.y+L.y},...v,{x:g.x+N.x,y:g.y+N.y},t],Q,I,z,iA]}function GB(e,A,t,n){const o=Math.min(rl(e,A)/2,rl(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 mi(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,Q,I]=PB({source:{x:A,y:t},sourcePosition:n,target:{x:o,y:a},targetPosition:u,center:{x:h,y:g},offset:B});return[w.reduce((L,N,V)=>{let U;return V>0&&V<w.length-1?U=GB(w[V-1],N,w[V+1],d):U=`${V===0?"M":"L"}${N.x} ${N.y}`,L+=U,L},""),m,v,Q,I]}function zB(e){const{sourceX:A,sourceY:t,targetX:n,targetY:o}=e,[a,u,d,h]=ja({sourceX:A,sourceY:t,targetX:n,targetY:o});return[`M ${A},${t}L ${n},${o}`,a,u,d,h]}var XB=(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]=zB(e);return(0,r.h)(kn,{path:t,labelX:n,labelY:o,...A,...e})}}}),ol=(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]=mi({...e,sourcePosition:e.sourcePosition??IA.Bottom,targetPosition:e.targetPosition??IA.Top});return(0,r.h)(kn,{path:t,labelX:n,labelY:o,...A,...e})}}}),$B=(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)(ol,{...e,...A,borderRadius:0})}}),YB=(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]=pi({...e,sourcePosition:e.sourcePosition??IA.Bottom,targetPosition:e.targetPosition??IA.Top});return(0,r.h)(kn,{path:t,labelX:n,labelY:o,...A,...e})}}}),WB=(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]=tl({...e,sourcePosition:e.sourcePosition??IA.Bottom,targetPosition:e.targetPosition??IA.Top});return(0,r.h)(kn,{path:t,labelX:n,labelY:o,...A,...e})}}}),JB={input:LB,default:DB,output:NB},ZB={default:YB,straight:XB,step:$B,smoothstep:ol,simplebezier:WB};function jB(e,A,t){const n=(0,r.computed)(()=>Q=>A.value.get(Q)),o=(0,r.computed)(()=>Q=>t.value.get(Q)),a=(0,r.computed)(()=>{const Q={...ZB,...e.edgeTypes},I=Object.keys(Q);for(const L of e.edges)L.type&&!I.includes(L.type)&&(Q[L.type]=L.type);return Q}),u=(0,r.computed)(()=>{const Q={...JB,...e.nodeTypes},I=Object.keys(Q);for(const L of e.nodes)L.type&&!I.includes(L.type)&&(Q[L.type]=L.type);return Q}),d=(0,r.computed)(()=>e.onlyRenderVisibleElements?Ca(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 Q=[];for(const I of e.edges){const L=A.value.get(I.source),N=A.value.get(I.target);tB({sourcePos:L.computedPosition||{x:0,y:0},targetPos:N.computedPosition||{x:0,y:0},sourceWidth:L.dimensions.width,sourceHeight:L.dimensions.height,targetWidth:N.dimensions.width,targetHeight:N.dimensions.height,width:e.dimensions.width,height:e.dimensions.height,viewport:e.viewport})&&Q.push(I)}return Q}return e.edges}),g=(0,r.computed)(()=>[...d.value,...h.value]),B=(0,r.computed)(()=>{const Q=[];for(const I of e.nodes)I.selected&&Q.push(I);return Q}),w=(0,r.computed)(()=>{const Q=[];for(const I of e.edges)I.selected&&Q.push(I);return Q}),m=(0,r.computed)(()=>[...B.value,...w.value]),v=(0,r.computed)(()=>{const Q=[];for(const I of e.nodes)I.dimensions.width&&I.dimensions.height&&I.handleBounds!==void 0&&Q.push(I);return Q});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 qB=class hn{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 hn.instance=t?.config.globalProperties.$vueFlowStorage??hn.instance??new hn,t&&(t.config.globalProperties.$vueFlowStorage=hn.instance),hn.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)(Za()),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=jB(n,u,d),g=SB(n,u,d);g.setState({...n,...t});const B={...o,...h,...g,...Ju(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=qB.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)(Ga,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)},Q=I=>{g.applyEdgeChanges(I)};B?(g.onNodesChange(v),g.onEdgesChange(Q)):(g.hooks.value.nodesChange.off(v),g.hooks.value.edgesChange.off(Q)),m(()=>{g.hooks.value.nodesChange.off(v),g.hooks.value.edgesChange.off(Q)})},{immediate:!0}),mn(()=>{if(d){const B=A.get(d.id);B?B.$destroy():Tn(`No store instance found for id ${d.id} in storage.`)}})})}else n&&d.setState(o);if(t&&((0,r.provide)(Ga,d),t.vueFlowId=d.id),n){const h=(0,r.getCurrentInstance)();h?.type.name!=="VueFlow"&&d.emits.error(new le(oe.USEVUEFLOW_OPTIONS))}return d}function Ap(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=br(e.value);(d.width===0||d.height===0)&&A.error(new le(oe.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 ep=(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))}}),tp=["tabIndex"],np=(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=Ja(),h=(0,r.ref)(null),g=$a({el:h,onStart(Q){A.selectionDragStart(Q),A.nodeDragStart(Q)},onDrag(Q){A.selectionDrag(Q),A.nodeDrag(Q)},onStop(Q){A.selectionDragStop(Q),A.nodeDragStop(Q)}});(0,r.onMounted)(()=>{var Q;a.value||(Q=h.value)==null||Q.focus({preventScroll:!0})});const B=(0,r.computed)(()=>wa(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(Q){A.selectionContextMenu({event:Q,nodes:n.value})}function v(Q){a.value||Wt[Q.key]&&(Q.preventDefault(),d({x:Wt[Q.key].x,y:Wt[Q.key].y},Q.shiftKey))}return(Q,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,tp)],6)):(0,r.createCommentVNode)("",!0)}});function rp(e,A){return{x:e.clientX-A.left,y:e.clientY-A.top}}var op=(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:Q,deleteKeyCode:I,multiSelectionKeyCode:L,multiSelectionActive:N,edgeLookup:V,nodeLookup:U,connectionLookup:z,defaultEdgeOptions:iA,connectionStartHandle:W,panOnDrag:lA}=YA(),sA=(0,r.shallowRef)(null),nA=(0,r.shallowRef)(new Set),oA=(0,r.shallowRef)(new Set),AA=(0,r.shallowRef)(null),_=(0,r.toRef)(()=>h.value&&(e.isSelecting||a.value)),q=(0,r.toRef)(()=>W.value!==null);let F=!1,R=!1;const b=Sn(I,{actInsideInputWithModifier:!1}),P=Sn(L);(0,r.watch)(b,tA=>{tA&&(m(w.value),v(B.value),g.value=!1)}),(0,r.watch)(P,tA=>{N.value=tA});function M(tA,J){return $=>{$.target===J&&tA?.($)}}function k(tA){if(F||q.value){F=!1;return}o.paneClick(tA),u(),g.value=!1}function O(tA){var J;if(Array.isArray(lA.value)&&((J=lA.value)!=null&&J.includes(2))){tA.preventDefault();return}o.paneContextMenu(tA)}function Y(tA){o.paneScroll(tA)}function eA(tA){var J,$,uA;if(AA.value=((J=A.value)==null?void 0:J.getBoundingClientRect())??null,!h.value||!e.isSelecting||tA.button!==0||tA.target!==sA.value||!AA.value)return;(uA=($=tA.target)==null?void 0:$.setPointerCapture)==null||uA.call($,tA.pointerId);const{x:pA,y:FA}=rp(tA,AA.value);R=!0,F=!1,u(),d.value={width:0,height:0,startX:pA,startY:FA,x:pA,y:FA},o.selectionStart(tA)}function hA(tA){var J;if(!AA.value||!d.value)return;F=!0;const{x:$,y:uA}=ze(tA,AA.value),{startX:pA=0,startY:FA=0}=d.value,_A={startX:pA,startY:FA,x:$<pA?$:pA,y:uA<FA?uA:FA,width:Math.abs($-pA),height:Math.abs(uA-FA)},fA=nA.value,yA=oA.value;nA.value=new Set(Ca(t.value,_A,n.value,Q.value===oi.Partial,!0).map(H=>H.id)),oA.value=new Set;const S=((J=iA.value)==null?void 0:J.selectable)??!0;for(const H of nA.value){const D=z.value.get(H);if(D)for(const{edgeId:x}of D.values()){const K=V.value.get(x);K&&(K.selectable??S)&&oA.value.add(x)}}if(!Pa(fA,nA.value)){const H=ht(U.value,nA.value,!0);o.nodesChange(H)}if(!Pa(yA,oA.value)){const H=ht(V.value,oA.value);o.edgesChange(H)}d.value=_A,a.value=!0,g.value=!1}function bA(tA){var J;tA.button!==0||!R||((J=tA.target)==null||J.releasePointerCapture(tA.pointerId),!a.value&&d.value&&tA.target===sA.value&&k(tA),a.value=!1,d.value=null,g.value=nA.value.size>0,o.selectionEnd(tA),e.selectionKeyPressed&&(F=!1),R=!1)}return(tA,J)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{ref_key:"container",ref:sA,class:(0,r.normalizeClass)(["vue-flow__pane vue-flow__container",{selection:tA.isSelecting}]),onClick:J[0]||(J[0]=$=>_.value?void 0:M(k,sA.value)($)),onContextmenu:J[1]||(J[1]=$=>M(O,sA.value)($)),onWheelPassive:J[2]||(J[2]=$=>M(Y,sA.value)($)),onPointerenter:J[3]||(J[3]=$=>_.value?void 0:(0,r.unref)(o).paneMouseEnter($)),onPointerdown:J[4]||(J[4]=$=>_.value?eA($):(0,r.unref)(o).paneMouseMove($)),onPointermove:J[5]||(J[5]=$=>_.value?hA($):(0,r.unref)(o).paneMouseMove($)),onPointerup:J[6]||(J[6]=$=>_.value?bA($):void 0),onPointerleave:J[7]||(J[7]=$=>(0,r.unref)(o).paneMouseLeave($))},[(0,r.renderSlot)(tA.$slots,"default"),(0,r.unref)(a)&&(0,r.unref)(d)?((0,r.openBlock)(),(0,r.createBlock)(ep,{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)(np,{key:1})):(0,r.createCommentVNode)("",!0)],34))}}),ip=(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))}}),sp=(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:Q,preventScrolling:I,noWheelClassName:L,noPanClassName:N,emits:V,connectionStartHandle:U,userSelectionActive:z,paneDragging:iA,d3Zoom:W,d3Selection:lA,d3ZoomHandler:sA,viewport:nA,viewportRef:oA,paneClickDistance:AA}=YA();Ap(oA);const _=(0,r.shallowRef)(!1),q=(0,r.shallowRef)(!1);let F=null,R=!1,b=0,P={x:0,y:0,zoom:0};const M=Sn(d),k=Sn(u),O=Sn(a),Y=(0,r.toRef)(()=>(!k.value||k.value&&u.value===!0)&&(M.value||w.value)),eA=(0,r.toRef)(()=>M.value||h.value),hA=(0,r.toRef)(()=>u.value===!0&&Y.value!==!0),bA=(0,r.toRef)(()=>k.value&&u.value!==!0||z.value||hA.value),tA=(0,r.toRef)(()=>U.value!==null);(0,r.onMounted)(()=>{if(!oA.value){Tn("Viewport element is missing");return}const FA=oA.value,_A=FA.getBoundingClientRect(),fA=Lh().clickDistance(AA.value).scaleExtent([A.value,t.value]).translateExtent(o.value),yA=De(FA).call(fA),S=yA.on("wheel.zoom"),H=Yt.translate(n.value.x??0,n.value.y??0).scale(Dt(n.value.zoom??1,A.value,t.value)),D=[[0,0],[_A.width,_A.height]],x=fA.constrain()(H,D,o.value);fA.transform(yA,x),fA.wheelDelta(Ea),W.value=fA,lA.value=yA,sA.value=S,nA.value={x:x.x,y:x.y,zoom:x.k},fA.on("start",K=>{var cA;if(!K.sourceEvent)return null;b=K.sourceEvent.button,_.value=!0;const aA=uA(K.transform);((cA=K.sourceEvent)==null?void 0:cA.type)==="mousedown"&&(iA.value=!0),P=aA,V.viewportChangeStart(aA),V.moveStart({event:K,flowTransform:aA})}),fA.on("end",K=>{if(!K.sourceEvent)return null;if(_.value=!1,iA.value=!1,J(Y.value,b??0)&&!R&&V.paneContextMenu(K.sourceEvent),R=!1,$(P,K.transform)){const cA=uA(K.transform);P=cA,V.viewportChangeEnd(cA),V.moveEnd({event:K,flowTransform:cA})}}),fA.filter(K=>{var cA;const aA=O.value||Q.value,wA=v.value&&K.ctrlKey,QA=K.button,NA=K.type==="wheel";if(QA===1&&K.type==="mousedown"&&(pA(K,"vue-flow__node")||pA(K,"vue-flow__edge")))return!0;if(!Y.value&&!aA&&!eA.value&&!m.value&&!v.value||z.value||tA.value&&!NA||!m.value&&K.type==="dblclick"||pA(K,L.value)&&NA||pA(K,N.value)&&(!NA||eA.value&&NA&&!O.value)||!v.value&&K.ctrlKey&&NA||!aA&&!eA.value&&!wA&&NA)return!1;if(!v&&K.type==="touchstart"&&((cA=K.touches)==null?void 0:cA.length)>1)return K.preventDefault(),!1;if(!Y.value&&(K.type==="mousedown"||K.type==="touchstart")||hA.value&&Array.isArray(w.value)&&w.value.includes(0)&&QA===0||Array.isArray(w.value)&&!w.value.includes(QA)&&(K.type==="mousedown"||K.type==="touchstart"))return!1;const OA=Array.isArray(w.value)&&w.value.includes(QA)||u.value===!0&&Array.isArray(w.value)&&!w.value.includes(0)||!QA||QA<=1;return(!K.ctrlKey||M.value||NA)&&OA}),(0,r.watch)([z,Y],()=>{z.value&&!_.value?fA.on("zoom",null):z.value||fA.on("zoom",K=>{nA.value={x:K.transform.x,y:K.transform.y,zoom:K.transform.k};const cA=uA(K.transform);R=J(Y.value,b??0),V.viewportChange(cA),V.move({event:K,flowTransform:cA})})},{immediate:!0}),(0,r.watch)([z,eA,g,O,v,I,L],()=>{eA.value&&!O.value&&!z.value?yA.on("wheel.zoom",K=>{if(pA(K,L.value))return!1;const cA=O.value||Q.value,aA=v.value&&K.ctrlKey;if(!(!I.value||eA.value||cA||aA))return!1;K.preventDefault(),K.stopImmediatePropagation();const wA=yA.property("__zoom").k||1,QA=Ir();if(!M.value&&K.ctrlKey&&v.value&&QA){const ne=Re(K),$e=wA*2**Ea(K);fA.scaleTo(yA,$e,ne,K);return}const NA=K.deltaMode===1?20:1;let OA=g.value===_n.Vertical?0:K.deltaX*NA,KA=g.value===_n.Horizontal?0:K.deltaY*NA;!QA&&K.shiftKey&&g.value!==_n.Vertical&&!OA&&KA&&(OA=KA,KA=0),fA.translateBy(yA,-(OA/wA)*B.value,-(KA/wA)*B.value);const ce=uA(yA.property("__zoom"));F&&clearTimeout(F),q.value?(V.move({event:K,flowTransform:ce}),V.viewportChange(ce),F=setTimeout(()=>{V.moveEnd({event:K,flowTransform:ce}),V.viewportChangeEnd(ce),q.value=!1},150)):(q.value=!0,V.moveStart({event:K,flowTransform:ce}),V.viewportChangeStart(ce))},{passive:!1}):typeof S<"u"&&yA.on("wheel.zoom",function(K,cA){const aA=!I.value&&K.type==="wheel"&&!K.ctrlKey,wA=O.value||Q.value,QA=v.value&&K.ctrlKey;if(!wA&&!h.value&&!QA&&K.type==="wheel"||aA||pA(K,L.value))return null;K.preventDefault(),S.call(this,K,cA)},{passive:!1})},{immediate:!0})});function J(FA,_A){return _A===2&&Array.isArray(FA)&&FA.includes(2)}function $(FA,_A){return FA.x!==_A.x&&!Number.isNaN(_A.x)||FA.y!==_A.y&&!Number.isNaN(_A.y)||FA.zoom!==_A.k&&!Number.isNaN(_A.k)}function uA(FA){return{x:FA.x,y:FA.y,zoom:FA.k}}function pA(FA,_A){return FA.target.closest(`.${_A}`)}return(FA,_A)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{ref_key:"viewportRef",ref:oA,class:"vue-flow__viewport vue-flow__container"},[(0,r.createVNode)(op,{"is-selecting":bA.value,"selection-key-pressed":(0,r.unref)(k),class:(0,r.normalizeClass)({connecting:tA.value,dragging:(0,r.unref)(iA),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)(ip,null,{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(FA.$slots,"default")]),_:3})]),_:3},8,["is-selecting","selection-key-pressed","class"])],512))}}),ap=["id"],lp=["id"],cp=["id"],up=(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)(ca)}-${(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,ap),(0,r.createElementVNode)("div",{id:`${(0,r.unref)(ua)}-${(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,lp),(0,r.unref)(t)?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,id:`${(0,r.unref)(Rh)}-${(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,cp))],64))}});function dp(){const e=YA();(0,r.watch)(()=>e.viewportHelper.value.viewportInitialized,A=>{A&&setTimeout(()=>{e.emits.init(e),e.emits.paneReady(e)},1)})}function fp(e,A,t){return t===IA.Left?e-A:t===IA.Right?e+A:e}function gp(e,A,t){return t===IA.Top?e-A:t===IA.Bottom?e+A:e}var wi=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:fp(A,e,n),cy:gp(t,e,n),r:e,stroke:"transparent",fill:"transparent"})};wi.props=["radius","centerX","centerY","position","type"],wi.compatConfig={MODE:3};var il=wi,hp=(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:Q,elementsSelectable:I,edgesUpdatable:L,edgesFocusable:N,hooks:V}=YA(),U=(0,r.computed)(()=>B(e.id)),{emit:z,on:iA}=mB(U.value,a),W=(0,r.inject)(Sr),lA=(0,r.getCurrentInstance)(),sA=(0,r.ref)(!1),nA=(0,r.ref)(!1),oA=(0,r.ref)(""),AA=(0,r.ref)(null),_=(0,r.ref)("source"),q=(0,r.ref)(null),F=(0,r.toRef)(()=>typeof U.value.selectable>"u"?I.value:U.value.selectable),R=(0,r.toRef)(()=>typeof U.value.updatable>"u"?L.value:U.value.updatable),b=(0,r.toRef)(()=>typeof U.value.focusable>"u"?N.value:U.value.focusable);(0,r.provide)(hB,e.id),(0,r.provide)(BB,q);const P=(0,r.computed)(()=>U.value.class instanceof Function?U.value.class(U.value):U.value.class),M=(0,r.computed)(()=>U.value.style instanceof Function?U.value.style(U.value):U.value.style),k=(0,r.computed)(()=>{const H=U.value.type||"default",D=W?.[`edge-${H}`];if(D)return D;let x=U.value.template??h.value[H];if(typeof x=="string"&&lA){const K=Object.keys(lA.appContext.components);K&&K.includes(H)&&(x=(0,r.resolveComponent)(H,!1))}return x&&typeof x!="string"?x:(a.error(new le(oe.EDGE_TYPE_MISSING,x)),!1)}),{handlePointerDown:O}=Ya({nodeId:oA,handleId:AA,type:_,isValidConnection:m,edgeUpdaterType:_,onEdgeUpdate:hA,onEdgeUpdateEnd:bA});return()=>{const H=w(U.value.source),D=w(U.value.target),x="pathOptions"in U.value?U.value.pathOptions:{};if(!H&&!D)return a.error(new le(oe.EDGE_SOURCE_TARGET_MISSING,U.value.id,U.value.source,U.value.target)),null;if(!H)return a.error(new le(oe.EDGE_SOURCE_MISSING,U.value.id,U.value.source)),null;if(!D)return a.error(new le(oe.EDGE_TARGET_MISSING,U.value.id,U.value.target)),null;if(!U.value||U.value.hidden||H.hidden||D.hidden)return null;let K;n.value===nt.Strict?K=H.handleBounds.source:K=[...H.handleBounds.source||[],...H.handleBounds.target||[]];const cA=Na(K,U.value.sourceHandle);let aA;n.value===nt.Strict?aA=D.handleBounds.target:aA=[...D.handleBounds.target||[],...D.handleBounds.source||[]];const wA=Na(aA,U.value.targetHandle),QA=cA?.position||IA.Bottom,NA=wA?.position||IA.Top,{x:OA,y:KA}=Zt(H,cA,QA),{x:ce,y:ne}=Zt(D,wA,NA);return U.value.sourceX=OA,U.value.sourceY=KA,U.value.targetX=ce,U.value.targetY=ne,(0,r.h)("g",{ref:q,key:e.id,"data-id":e.id,class:["vue-flow__edge",`vue-flow__edge-${k.value===!1?"default":U.value.type||"default"}`,d.value,P.value,{updating:sA.value,selected:U.value.selected,animated:U.value.animated,inactive:!F.value&&!V.value.edgeClick.hasListeners()}],tabIndex:b.value?0:void 0,"aria-label":U.value.ariaLabel===null?void 0:U.value.ariaLabel??`Edge from ${U.value.source} to ${U.value.target}`,"aria-describedby":b.value?`${ua}-${A}`:void 0,"aria-roledescription":"edge",role:b.value?"group":"img",...U.value.domAttributes,onClick:J,onContextmenu:$,onDblclick:uA,onMouseenter:pA,onMousemove:FA,onMouseleave:_A,onKeyDown:b.value?S:void 0},[nA.value?null:(0,r.h)(k.value===!1?h.value.default:k.value,{id:e.id,sourceNode:H,targetNode:D,source:U.value.source,target:U.value.target,type:U.value.type,updatable:R.value,selected:U.value.selected,animated:U.value.animated,label:U.value.label,labelStyle:U.value.labelStyle,labelShowBg:U.value.labelShowBg,labelBgStyle:U.value.labelBgStyle,labelBgPadding:U.value.labelBgPadding,labelBgBorderRadius:U.value.labelBgBorderRadius,data:U.value.data,events:{...U.value.events,...iA},style:M.value,markerStart:`url('#${Ln(U.value.markerStart,A)}')`,markerEnd:`url('#${Ln(U.value.markerEnd,A)}')`,sourcePosition:QA,targetPosition:NA,sourceX:OA,sourceY:KA,targetX:ce,targetY:ne,sourceHandleId:U.value.sourceHandle,targetHandleId:U.value.targetHandle,interactionWidth:U.value.interactionWidth,...x}),[R.value==="source"||R.value===!0?[(0,r.h)("g",{onMousedown:fA,onMouseenter:Y,onMouseout:eA},(0,r.h)(il,{position:QA,centerX:OA,centerY:KA,radius:o.value,type:"source","data-type":"source"}))]:null,R.value==="target"||R.value===!0?[(0,r.h)("g",{onMousedown:yA,onMouseenter:Y,onMouseout:eA},(0,r.h)(il,{position:NA,centerX:ce,centerY:ne,radius:o.value,type:"target","data-type":"target"}))]:null]])};function Y(){sA.value=!0}function eA(){sA.value=!1}function hA(H,D){z.update({event:H,edge:U.value,connection:D})}function bA(H){z.updateEnd({event:H,edge:U.value}),nA.value=!1}function tA(H,D){H.button===0&&(nA.value=!0,oA.value=D?U.value.target:U.value.source,AA.value=(D?U.value.targetHandle:U.value.sourceHandle)??null,_.value=D?"target":"source",z.updateStart({event:H,edge:U.value}),O(H))}function J(H){var D;const x={event:H,edge:U.value};F.value&&(u.value=!1,U.value.selected&&v.value?(g([U.value]),(D=q.value)==null||D.blur()):t([U.value])),z.click(x)}function $(H){z.contextMenu({event:H,edge:U.value})}function uA(H){z.doubleClick({event:H,edge:U.value})}function pA(H){z.mouseEnter({event:H,edge:U.value})}function FA(H){z.mouseMove({event:H,edge:U.value})}function _A(H){z.mouseLeave({event:H,edge:U.value})}function fA(H){tA(H,!0)}function yA(H){tA(H,!1)}function S(H){var D;!Q.value&&da.includes(H.key)&&F.value&&(H.key==="Escape"?((D=q.value)==null||D.blur(),g([B(e.id)])):t([B(e.id)]))}}}),Bp=(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)(Sr))==null?void 0:e["connection-line"],v=(0,r.computed)(()=>{var V;return w((V=n.value)==null?void 0:V.nodeId)}),Q=(0,r.computed)(()=>{var V;return w((V=o.value)==null?void 0:V.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})),L=(0,r.computed)(()=>h.value.markerStart?`url(#${Ln(h.value.markerStart,A)})`:""),N=(0,r.computed)(()=>h.value.markerEnd?`url(#${Ln(h.value.markerEnd,A)})`:"");return()=>{var V,U,z;if(!v.value||!n.value)return null;const iA=n.value.id,W=n.value.type,lA=v.value.handleBounds;let sA=lA?.[W]??[];if(t.value===nt.Loose){const M=lA?.[W==="source"?"target":"source"]??[];sA=[...sA,...M]}if(!sA)return null;const nA=(iA?sA.find(M=>M.id===iA):sA[0])??null,oA=nA?.position??IA.Top,{x:AA,y:_}=Zt(v.value,nA,oA);let q=null;Q.value&&(t.value===nt.Strict?q=((V=Q.value.handleBounds[W==="source"?"target":"source"])==null?void 0:V.find(M=>{var k;return M.id===((k=o.value)==null?void 0:k.id)}))||null:q=((U=[...Q.value.handleBounds.source??[],...Q.value.handleBounds.target??[]])==null?void 0:U.find(M=>{var k;return M.id===((k=o.value)==null?void 0:k.id)}))||null);const F=((z=o.value)==null?void 0:z.position)??(oA?di[oA]:null);if(!oA||!F)return null;const R=u.value??h.value.type??xt.Bezier;let b="";const P={sourceX:AA,sourceY:_,sourcePosition:oA,targetX:I.value.x,targetY:I.value.y,targetPosition:F};return R===xt.Bezier?[b]=pi(P):R===xt.Step?[b]=mi({...P,borderRadius:0}):R===xt.SmoothStep?[b]=mi(P):R===xt.SimpleBezier?[b]=tl(P):b=`M${AA},${_} ${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:_,sourcePosition:oA,targetX:I.value.x,targetY:I.value.y,targetPosition:F,sourceNode:v.value,sourceHandle:nA,targetNode:Q.value,targetHandle:q,markerEnd:N.value,markerStart:L.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":N.value,"marker-start":L.value})))}}}),pp=["id","markerWidth","markerHeight","markerUnits","orient"],mp=(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,pp))}}),wp={class:"vue-flow__marker vue-flow__container","aria-hidden":"true"},Cp=(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=Ln(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",wp,[(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)(mp,{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))])]))}}),vp=(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)(Cp),((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)(nB)(u,(0,r.unref)(A),(0,r.unref)(n))})},[(0,r.createVNode)((0,r.unref)(hp),{id:u.id},null,8,["id"])],4))),128)),(0,r.createVNode)((0,r.unref)(Bp))],64))}}),yp=(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:Q,ariaLiveMessage:I,snapToGrid:L,snapGrid:N,nodeDragThreshold:V,nodesDraggable:U,elementsSelectable:z,nodesConnectable:iA,nodesFocusable:W,hooks:lA}=YA(),sA=(0,r.ref)(null);(0,r.provide)(Xa,sA),(0,r.provide)(za,e.id);const nA=(0,r.inject)(Sr),oA=(0,r.getCurrentInstance)(),AA=Ja(),{node:_,parentNode:q}=Wa(e.id),{emit:F,on:R}=yB(_,u),b=(0,r.toRef)(()=>typeof _.draggable>"u"?U.value:_.draggable),P=(0,r.toRef)(()=>typeof _.selectable>"u"?z.value:_.selectable),M=(0,r.toRef)(()=>typeof _.connectable>"u"?iA.value:_.connectable),k=(0,r.toRef)(()=>typeof _.focusable>"u"?W.value:_.focusable),O=(0,r.computed)(()=>P.value||b.value||lA.value.nodeClick.hasListeners()||lA.value.nodeDoubleClick.hasListeners()||lA.value.nodeMouseEnter.hasListeners()||lA.value.nodeMouseMove.hasListeners()||lA.value.nodeMouseLeave.hasListeners()),Y=(0,r.toRef)(()=>!!_.dimensions.width&&!!_.dimensions.height),eA=(0,r.computed)(()=>{const D=_.type||"default",x=nA?.[`node-${D}`];if(x)return x;let K=_.template||w.value[D];if(typeof K=="string"&&oA){const cA=Object.keys(oA.appContext.components);cA&&cA.includes(D)&&(K=(0,r.resolveComponent)(D,!1))}return K&&typeof K!="string"?K:(u.error(new le(oe.NODE_TYPE_MISSING,K)),!1)}),hA=$a({id:e.id,el:sA,disabled:()=>!b.value,selectable:P,dragHandle:()=>_.dragHandle,onStart(D){F.dragStart(D)},onDrag(D){F.drag(D)},onStop(D){F.dragStop(D)},onClick(D){S(D)}}),bA=(0,r.computed)(()=>_.class instanceof Function?_.class(_):_.class),tA=(0,r.computed)(()=>{const D=(_.style instanceof Function?_.style(_):_.style)||{},x=_.width instanceof Function?_.width(_):_.width,K=_.height instanceof Function?_.height(_):_.height;return!D.width&&x&&(D.width=typeof x=="string"?x:`${x}px`),!D.height&&K&&(D.height=typeof K=="string"?K:`${K}px`),D}),J=(0,r.toRef)(()=>Number(_.zIndex??tA.value.zIndex??0));return B(D=>{(D.includes(e.id)||!D.length)&&uA()}),(0,r.onMounted)(()=>{(0,r.watch)(()=>_.hidden,(D=!1,x,K)=>{!D&&sA.value&&(e.resizeObserver.observe(sA.value),K(()=>{sA.value&&e.resizeObserver.unobserve(sA.value)}))},{immediate:!0,flush:"post"})}),(0,r.watch)([()=>_.type,()=>_.sourcePosition,()=>_.targetPosition],()=>{(0,r.nextTick)(()=>{g([{id:e.id,nodeElement:sA.value,forceUpdate:!0}])})}),(0,r.watch)([()=>_.position.x,()=>_.position.y,()=>{var D;return(D=q.value)==null?void 0:D.computedPosition.x},()=>{var D;return(D=q.value)==null?void 0:D.computedPosition.y},()=>{var D;return(D=q.value)==null?void 0:D.computedPosition.z},J,()=>_.selected,()=>_.dimensions.height,()=>_.dimensions.width,()=>{var D;return(D=q.value)==null?void 0:D.dimensions.height},()=>{var D;return(D=q.value)==null?void 0:D.dimensions.width}],([D,x,K,cA,aA,wA])=>{const QA={x:D,y:x,z:wA+(v.value&&_.selected?1e3:0)};typeof K<"u"&&typeof cA<"u"?_.computedPosition=Zh({x:K,y:cA,z:aA},QA):_.computedPosition=QA},{flush:"post",immediate:!0}),(0,r.watch)([()=>_.extent,m],([D,x],[K,cA])=>{(D!==K||x!==cA)&&$()}),_.extent==="parent"||typeof _.extent=="object"&&"range"in _.extent&&_.extent.range==="parent"?Mo(()=>Y).toBe(!0).then($):$(),()=>_.hidden?null:(0,r.h)("div",{ref:sA,"data-id":_.id,class:["vue-flow__node",`vue-flow__node-${eA.value===!1?"default":_.type||"default"}`,{[t.value]:b.value,dragging:hA?.value,draggable:b.value,selected:_.selected,selectable:P.value,parent:_.isParent},bA.value],style:{visibility:Y.value?"visible":"hidden",zIndex:_.computedPosition.z??J.value,transform:`translate(${_.computedPosition.x}px,${_.computedPosition.y}px)`,pointerEvents:O.value?"all":"none",...tA.value},tabIndex:k.value?0:void 0,role:k.value?"group":void 0,"aria-describedby":Q.value?void 0:`${ca}-${A}`,"aria-label":_.ariaLabel,"aria-roledescription":"node",..._.domAttributes,onMouseenter:pA,onMousemove:FA,onMouseleave:_A,onContextmenu:fA,onClick:S,onDblclick:yA,onKeydown:H},[(0,r.h)(eA.value===!1?w.value.default:eA.value,{id:_.id,type:_.type,data:_.data,events:{..._.events,...R},selected:_.selected,resizing:_.resizing,dragging:hA.value,connectable:M.value,position:_.computedPosition,dimensions:_.dimensions,isValidTargetPos:_.isValidTargetPos,isValidSourcePos:_.isValidSourcePos,parent:_.parentNode,parentNodeId:_.parentNode,zIndex:_.computedPosition.z??J.value,targetPosition:_.targetPosition,sourcePosition:_.sourcePosition,label:_.label,dragHandle:_.dragHandle,onUpdateNodeInternals:uA})]);function $(){const D=_.computedPosition,{computedPosition:x,position:K}=li(_,L.value?_r(D,N.value):D,u.error,m.value,q.value);(_.computedPosition.x!==x.x||_.computedPosition.y!==x.y)&&(_.computedPosition={..._.computedPosition,...x}),(_.position.x!==K.x||_.position.y!==K.y)&&(_.position=K)}function uA(){sA.value&&g([{id:e.id,nodeElement:sA.value,forceUpdate:!0}])}function pA(D){hA?.value||F.mouseEnter({event:D,node:_})}function FA(D){hA?.value||F.mouseMove({event:D,node:_})}function _A(D){hA?.value||F.mouseLeave({event:D,node:_})}function fA(D){return F.contextMenu({event:D,node:_})}function yA(D){return F.doubleClick({event:D,node:_})}function S(D){P.value&&(!n.value||!b.value||V.value>0)&&fi(_,a.value,h,d,o,!1,sA.value),F.click({event:D,node:_})}function H(D){if(!(ii(D)||Q.value))if(da.includes(D.key)&&P.value){const x=D.key==="Escape";fi(_,a.value,h,d,o,x,sA.value)}else b.value&&_.selected&&Wt[D.key]&&(D.preventDefault(),I.value=`Moved selected node ${D.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~_.position.x}, y: ${~~_.position.y}`,AA({x:Wt[D.key].x,y:Wt[D.key].y},D.shiftKey))}}}),Qp={height:"0",width:"0"},Ep=(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",Qp,[((0,r.openBlock)(),(0,r.createBlock)(r.Teleport,{to:t.value,disabled:!t.value},[(0,r.renderSlot)(n.$slots,"default")],8,["to","disabled"]))]))]))}});function Fp(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 Up={class:"vue-flow__nodes vue-flow__container"},bp=(0,r.defineComponent)({name:"Nodes",compatConfig:{MODE:3},setup(e){const{getNodes:A,updateNodeDimensions:t,emits:n}=YA(),o=Fp(),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",Up,[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)(yp),{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 Hp(){const{emits:e}=YA();(0,r.onMounted)(()=>{if(Oa()){const A=document.querySelector(".vue-flow__pane");A&&window.getComputedStyle(A).zIndex!=="1"&&e.error(new le(oe.MISSING_STYLES))}})}var Ip=(0,r.createElementVNode)("div",{class:"vue-flow__edge-labels"},null,-1),_p=(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=Oo(n,"modelValue",t),u=Oo(n,"nodes",t),d=Oo(n,"edges",t),h=YA(n),g=UB({modelValue:a,nodes:u,edges:d},n,h);return HB(t,h.hooks),dp(),Hp(),(0,r.provide)(Sr,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)(sp,null,{default:(0,r.withCtx)(()=>[(0,r.createVNode)(vp),Ip,(0,r.createVNode)(bp),(0,r.renderSlot)(B.$slots,"zoom-pane")]),_:3}),(0,r.renderSlot)(B.$slots,"default"),(0,r.createVNode)(up)],512))}}),Sp=(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))}}),ot=(e=>(e.Lines="lines",e.Dots="dots",e))(ot||{}),xp=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]}`})},Dp=function({radius:e,color:A}){return(0,r.h)("circle",{cx:e,cy:e,r:e,fill:A})};ot.Lines,ot.Dots;var Np={[ot.Dots]:"#81818a",[ot.Lines]:"#eee"},Lp=["id","x","y","width","height","patternTransform"],Tp={key:2,height:"100",width:"100"},kp=["fill"],Mp=["x","y","fill"],Op=(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}=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||Np[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)(xp),{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)(Dp),{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",Tp,[(0,r.createElementVNode)("rect",{width:"100%",height:"100%",fill:u.bgColor},null,8,kp)])):(0,r.createCommentVNode)("",!0)])],8,Lp)]),(0,r.createElementVNode)("rect",{x:u.x,y:u.y,width:"100%",height:"100%",fill:`url(#${o.value})`},null,8,Mp),(0,r.renderSlot)(u.$slots,"default",{id:o.value})],4))}}),Kp={name:"ControlButton",compatConfig:{MODE:3}},Rp=(e,A)=>{const t=e.__vccOpts||e;for(const[n,o]of A)t[n]=o;return t},Vp={type:"button",class:"vue-flow__controls-button"};function Pp(e,A,t,n,o,a){return(0,r.openBlock)(),(0,r.createElementBlock)("button",Vp,[(0,r.renderSlot)(e.$slots,"default")])}var Mr=Rp(Kp,[["render",Pp]]),Gp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},zp=[(0,r.createElementVNode)("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"},null,-1)];function Xp(e,A){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",Gp,zp)}var $p={render:Xp},Yp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5"},Wp=[(0,r.createElementVNode)("path",{d:"M0 0h32v4.2H0z"},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 30"},qp=[(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 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 25 32"},nm=[(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 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 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 am(e,A){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",im,sm)}var lm={render:am},cm=(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:()=>aa.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),Q=(0,r.toRef)(()=>g.value.zoom>=w.value);function I(){u(),A("zoomIn")}function L(){d(),A("zoomOut")}function N(){h(e.fitViewParams),A("fitView")}function V(){a(!m.value),A("interactionChange",!m.value)}return(U,z)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Sp),{class:"vue-flow__controls",position:U.position},{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(U.$slots,"top"),U.showZoom?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.renderSlot)(U.$slots,"control-zoom-in",{},()=>[(0,r.createVNode)(Mr,{class:"vue-flow__controls-zoomin",disabled:Q.value,onClick:I},{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(U.$slots,"icon-zoom-in",{},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)($p))))])]),_:3},8,["disabled"])]),(0,r.renderSlot)(U.$slots,"control-zoom-out",{},()=>[(0,r.createVNode)(Mr,{class:"vue-flow__controls-zoomout",disabled:v.value,onClick:L},{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(U.$slots,"icon-zoom-out",{},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(Zp))))])]),_:3},8,["disabled"])])],64)):(0,r.createCommentVNode)("",!0),U.showFitView?(0,r.renderSlot)(U.$slots,"control-fit-view",{key:1},()=>[(0,r.createVNode)(Mr,{class:"vue-flow__controls-fitview",onClick:N},{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(U.$slots,"icon-fit-view",{},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(em))))])]),_:3})]):(0,r.createCommentVNode)("",!0),U.showInteractive?(0,r.renderSlot)(U.$slots,"control-interactive",{key:2},()=>[U.showInteractive?((0,r.openBlock)(),(0,r.createBlock)(Mr,{key:0,class:"vue-flow__controls-interactive",onClick:V},{default:(0,r.withCtx)(()=>[m.value?(0,r.renderSlot)(U.$slots,"icon-unlock",{key:0},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(lm))))]):(0,r.createCommentVNode)("",!0),m.value?(0,r.createCommentVNode)("",!0):(0,r.renderSlot)(U.$slots,"icon-lock",{key:1},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(om))))])]),_:3})):(0,r.createCommentVNode)("",!0)]):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(U.$slots,"default")]),_:3},8,["position"]))}}),um=["onClick"],dm={class:"d-flow-node-menus-item-name"},fm=(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",dm,(0,r.toDisplayString)(B.name),1)],8,um))),128))])}}}),Ci=fm,gm={class:"d-flow-step-name"},hm={key:0,style:{color:"var(--j-color-text-2)"}},Bm={style:{color:"var(--j-color-text)"}},pm=(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)},Q=(0,r.ref)({});B(q=>{if(A.data.isInit&&q.findIndex(F=>F.type==="select"&&F.id===A.id&&F.id==="start"&&F.selected)!==-1){const F=g.value.find(R=>R.id==="start");F&&(F.data.isInit=!1),Q.value.s1=!0}});const I=(0,r.ref)(!1),L=q=>{q.indexOf("t")!==-1&&!N.value||(I.value=!0,Q.value[q]=!0)},N=(0,r.computed)(()=>h.value.findIndex(q=>q.target===A.id)===-1),V=(0,r.ref)(!1),U=()=>{V.value=!0},z=(q,F)=>{if(h.value.find(b=>b.source===F&&b.target===q))return!0;const R=h.value.filter(b=>b.target===q);for(let b=0;b<R.length;b++)if(z(R[b].source,F))return!0;return!1},iA=q=>V.value?(V.value=!1,!1):z(q.source,q.target)?!1:q.source!==q.target&&q.sourceHandle!==q.targetHandle&&q.sourceHandle.indexOf("s")!==-1&&q.targetHandle.indexOf("t")!==-1,W=()=>{AA(),Object.keys(Q.value).forEach(q=>{Q.value[q]=!1})},lA=()=>{W()};t(()=>{console.log("onNodeClick"),I.value?I.value=!1:W()}),n(()=>{W()}),o(()=>{W()}),a(()=>{W()}),u(()=>{W()});const sA=(0,r.ref)(),nA=(0,r.ref)({top:0,left:0,bottom:0,right:0}),oA=(0,r.ref)({getBoundingClientRect:()=>nA.value}),AA=()=>{sA.value?.handleClose()},_=q=>{const{clientX:F,clientY:R}=q;nA.value=DOMRect.fromRect({x:F,y:R}),q.preventDefault(),sA.value?.handleOpen()};return(q,F)=>{const R=(0,r.resolveComponent)("j-icon"),b=(0,r.resolveComponent)("el-popover"),P=(0,r.resolveComponent)("el-tooltip"),M=(0,r.resolveComponent)("el-dropdown-item"),k=(0,r.resolveComponent)("el-dropdown-menu"),O=(0,r.resolveComponent)("el-dropdown");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"d-flow-step",onContextmenu:(0,r.withModifiers)(_,["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)(R,{icon:m.value.icon||"mdi:source-branch"},null,8,["icon"])],4),(0,r.createElementVNode)("div",gm,(0,r.toDisplayString)(m.value.name),1),e.data.type!=="start"?((0,r.openBlock)(),(0,r.createBlock)(P,{key:0,placement:"top","show-arrow":!1,"popper-class":"d-flow-step-tooltip"},{content:(0,r.withCtx)(()=>[N.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",hm,[...F[4]||(F[4]=[(0,r.createElementVNode)("span",{style:{color:"var(--j-color-text)","font-weight":"bold"}},"点击",-1),(0,r.createTextVNode)("添加节点 ",-1)])])):(0,r.createCommentVNode)("",!0),F[5]||(F[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)(jt),{onClick:F[1]||(F[1]=Y=>L("t1")),onMousedown:U,id:"t1",class:(0,r.normalizeClass)(["d-flow-step-target-handle",{"d-flow-step-target-handle-notadd":!N.value}]),type:"target",position:(0,r.unref)(IA).Left,"is-valid-connection":iA},{default:(0,r.withCtx)(()=>[N.value?((0,r.openBlock)(),(0,r.createBlock)(b,{key:0,visible:Q.value.t1,"onUpdate:visible":F[0]||(F[0]=Y=>Q.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)(R,{class:"d-flow-step-handle-plus",icon:"mdi:plus-circle"})]),default:(0,r.withCtx)(()=>[(0,r.createVNode)(Ci,{"handle-id":"t1","from-node-id":e.id,onAddNode:lA},null,8,["from-node-id"])]),_:1},8,["visible"])):(0,r.createCommentVNode)("",!0)]),_:1},8,["class","position"])]),_:1})):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(P,{placement:"top","show-arrow":!1,"popper-class":"d-flow-step-tooltip"},{content:(0,r.withCtx)(()=>[...F[6]||(F[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)(jt),{onClick:F[3]||(F[3]=Y=>L("s1")),onMousedown:U,id:"s1",class:"d-flow-step-source-handle",type:"source",position:(0,r.unref)(IA).Right,"is-valid-connection":iA},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(b,{visible:Q.value.s1,"onUpdate:visible":F[2]||(F[2]=Y=>Q.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)(R,{class:"d-flow-step-handle-plus",icon:"mdi:plus-circle"})]),default:(0,r.withCtx)(()=>[(0,r.createVNode)(Ci,{"handle-id":"s1","from-node-id":e.id,onAddNode:lA},null,8,["from-node-id"])]),_:1},8,["visible"])]),_:1},8,["position"])]),_:1}),(0,r.createVNode)(O,{ref_key:"dropdownRef",ref:sA,"popper-class":"d-flow-step-dropdown","virtual-ref":oA.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)(k,null,{default:(0,r.withCtx)(()=>[e.data.type!="start"?((0,r.openBlock)(),(0,r.createBlock)(M,{key:0,onClick:v},{default:(0,r.withCtx)(()=>[...F[7]||(F[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})},[F[8]||(F[8]=(0,r.createElementVNode)("div",{style:{"margin-bottom":"4px",color:"var(--j-color-text-2)"}},"关于",-1)),(0,r.createElementVNode)("div",Bm,(0,r.toDisplayString)(m.value.des),1)],4)):(0,r.createCommentVNode)("",!0)]),_:1})]),_:1},8,["virtual-ref"])],32)}}}),mm=pm,wm=(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)(()=>pi(A)),B=(0,r.ref)(!1),w=(0,r.ref)(!1);t(({edge:L})=>{L.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})},Q=()=>{w.value=!0,m.value=!0},I=()=>{v()};return o(()=>{v()}),a(()=>{v()}),u(()=>{v()}),d(()=>{v()}),h(()=>{v()}),(L,N)=>{const V=(0,r.resolveComponent)("j-icon"),U=(0,r.resolveComponent)("el-popover");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)((0,r.unref)(kn),{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)(Ep),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)(U,{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)(Q,["stop"]),class:"d-flow-edge-button"},[(0,r.createVNode)(V,{icon:"mdi:plus-circle"})],512),[[r.vShow,B.value||w.value]])]),default:(0,r.withCtx)(()=>[(0,r.createVNode)(Ci,{"handle-id":"line","from-node-id":e.id,onAddNode:I},null,8,["from-node-id"])]),_:1},8,["visible"])],4)]),_:1})],64)}}}),Cm=wm,vm=(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)(_p),{"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)(Cm,{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)(mm,(0,r.normalizeProps)((0,r.guardReactiveProps)(n)),null,16)]),default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(cm),{position:"bottom-left"}),(0,r.createVNode)((0,r.unref)(Op))]),_:1},8,["connection-mode","nodes","edges"]))}}),ym=vm,Qm={class:"d-flow-design"},Em={class:"d-flow-design-canvas"},Fm={class:"d-flow-design-right"},Um={class:"d-flow-design-title"},bm={class:"d-flow-design-title-name"},Hm={class:"d-flow-design-panel"},Im=(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:Q,getEdges:I}=YA(),L=(0,r.computed)(()=>{const k={};return n.components.forEach(O=>{k[O.type]=O}),k.start={name:"开始",type:"start",icon:"ant-design:play-circle-outlined",des:"执行开始节点"},k}),N={id:"start",type:"step",data:{type:"start",isInit:!1},position:{x:80,y:160}},V=(0,r.ref)([N]),U=(0,r.ref)([]),z=(k,O)=>{if(O.indexOf("t")===-1){const Y=I.value.filter(eA=>eA.source===k.id);if(Y.length>0){let eA=-1e6,hA=0;return Y.forEach(bA=>{eA=Math.max(eA,bA.targetNode.position.y+bA.targetNode.dimensions.height+32),hA=bA.targetNode.position.x||0}),{x:hA,y:eA}}return{x:k.position.x+k.dimensions.width+100,y:k.position.y}}return{x:k.position.x-100-k.dimensions.width,y:k.position.y}},iA=(k,O,Y)=>{const eA=Q.value.find(bA=>bA.id===O);if(!eA)return;const hA={id:dt(),type:"step",data:{type:k},position:z(eA,Y)};if(n.flowInit){const bA=n.flowInit(hA.data.type);bA&&Object.keys(bA).forEach(tA=>{hA.data[tA]=bA[tA]})}a(hA),Y.indexOf("t")===-1?u({id:`${O}-${hA.id}`,source:O,target:hA.id,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:rt.Arrow}):u({id:`${O}-${hA.id}`,source:hA.id,target:O,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:rt.Arrow}),_(hA.id)},W=k=>{const O=Q.value.find(Y=>Y.id===k);O&&(O.position.x+=100+O.dimensions.width,I.value.filter(Y=>Y.source===k).forEach(Y=>{W(Y.target)}))},lA=(k,O)=>{const Y=I.value.find(hA=>hA.id===O);if(!Y)return;const eA={id:dt(),type:"step",data:{type:k},position:{x:Y.targetNode.position.x,y:Y.targetNode.position.y}};if(n.flowInit){const hA=n.flowInit(eA.data.type);hA&&Object.keys(hA).forEach(bA=>{eA.data[bA]=hA[bA]})}a(eA),u({id:`${Y.sourceNode.id}-${eA.id}`,source:Y.sourceNode.id,target:eA.id,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:rt.Arrow}),u({id:`${eA.id}-${Y.targetNode.id}`,source:eA.id,target:Y.targetNode.id,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:rt.Arrow}),d(O),W(Y.target),_(eA.id)};B(k=>{console.log("onConnect",k),k.type="button",k.markerEnd=rt.Arrow,u(k),o("connect",k)});const sA=()=>n.components||[],nA=(0,r.ref)(),oA=(0,r.computed)(()=>nA.value?L.value[nA.value.data.type]:void 0);w(k=>{nA.value?.id!==k.node.id&&(nA.value=k.node,R()),o("nodeClick",k.node)}),m(()=>{nA.value=void 0,o("paneClick")}),v(k=>{nA.value=void 0,o("edgeClick",k.edge)});const AA=k=>{nA.value?.id===k&&(nA.value=void 0)},_=k=>{nA.value&&g([nA.value]),nA.value=Q.value.find(O=>O.id===k),nA.value&&(R(),setTimeout(()=>{nA.value&&h([nA.value])},100))},q=(0,r.ref)(),F={};Object.keys(n.flowComponentConfigs).forEach(k=>{const O={type:"j-collapse",config:{defaultValue:[]},children:[]};n.flowComponentConfigs[k].forEach((Y,eA)=>{const hA=`_collapse${eA}`;O.config?.defaultValue.push(hA),O.children?.push(Y)}),F[k]=[O]});const R=()=>{const k=F[nA.value?.data.type||""];k&&q.value?(q.value.init&&q.value.init(k,nA.value?.data),n.flowComponentConfigInit&&n.flowComponentConfigInit({configRef:q,inputParams:n.inputParams,components:Q.value,configData:nA.value?.data})):q.value&&q.value.init&&q.value.init([])},b=(k,O)=>{nA.value&&n.flowComponentConfigChange&&n.flowComponentConfigChange(nA.value.data.type,{configRef:q,component:k,configData:nA.value.data,...O,isFlowNode:!0})};return(0,r.provide)("d_flow_design_provide",{getFlowComponents:sA,addNode:iA,addNodeByLine:lA,onRemoveNode:AA,getFlowComponentMap:L}),A({getData:()=>{const k=[];return Q.value.forEach(O=>{k.push({config:O.data,id:O.id,position:O.position,type:O.type})}),I.value.forEach(O=>{k.push({id:O.id,source:O.source,target:O.target,sourceHandle:O.sourceHandle,targetHandle:O.targetHandle,type:"line",config:{},position:{x:0,y:0}})}),k},setData:k=>{if(!k||k.length===0)N.data.isInit=!0,V.value=[N],_(N.id);else{N.data.isInit=!1;const O=[],Y=[];k.forEach(eA=>{if(eA.type==="line")eA.type="button",eA.markerEnd=rt.Arrow,Y.push(eA);else{const hA={id:eA.id,type:eA.type,data:eA.config,position:eA.position};O.push(hA)}}),V.value=O,U.value=Y}}}),(k,O)=>{const Y=(0,r.resolveComponent)("j-icon"),eA=(0,r.resolveComponent)("j-form");return(0,r.openBlock)(),(0,r.createElementBlock)("div",Qm,[(0,r.createElementVNode)("div",Em,[(0,r.createVNode)(ym,{nodes:V.value,edges:U.value},null,8,["nodes","edges"])]),(0,r.withDirectives)((0,r.createElementVNode)("div",Fm,[(0,r.createElementVNode)("div",Um,[(0,r.createElementVNode)("div",{class:"d-flow-design-title-icon",style:(0,r.normalizeStyle)({backgroundColor:oA.value?.iconColor||"var(--j-color-primary)"})},[(0,r.createVNode)(Y,{icon:oA.value?.icon||"mdi:source-branch"},null,8,["icon"])],4),(0,r.createElementVNode)("div",bm,(0,r.toDisplayString)(oA.value?.name||""),1)]),(0,r.createElementVNode)("div",Hm,[(0,r.createVNode)(eA,{config:{labelPosition:"top"},style:{padding:"0"},ref_key:"configRef",ref:q,onChange:b},null,512)])],512),[[r.vShow,nA.value&&F[nA.value.data.type]]])])}}}),_m=Im,sl=ut(_m),Sm={class:"d-input-flow j-block"},xm=(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"),Q=(0,r.resolveComponent)("j-input-button");return(0,r.openBlock)(),(0,r.createBlock)(Q,(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",Sm,[(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"])}}}),Dm=xm,al=ut(Dm),j=class xe{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 xe.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"&&xe.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&&(xe.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:xe.getScrollElement(A.parentElement)}static updateScrollPosition(A,t,n){const o=xe.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=xe.getScrollElement(t),a=o.clientHeight,u=o===xe.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=xe.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]=xe.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=xe.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");xe.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)}},vi=class Bn{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&&j.samePos(A,B)?!0:this.moveNode(A,B),(n.locked||this._loading)&&g?j.copyPos(t,A):!n.locked&&g&&o.pack&&(this._packNodes(),t.y=n.y+n.h,j.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&&j.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&&j.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=j.isTouching(A,t)))return n();if(o!==!1){if(A.w===t.w&&A.x===t.x&&(o||(o=j.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=j.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=j.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??Bn._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 j.defaults(A,o),A.autoPosition||delete A.autoPosition,A.noResize||delete A.noResize,A.noMove||delete A.noMove,j.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||j.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),j.samePos(A,n)||(A._dirty=!0),this}getDirtyNodes(A){return A?this.nodes.filter(t=>t._dirty&&!j.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=j.copyPos({},A),delete A._dirty}),this._hasLocked=this.nodes.some(A=>A.locked),this}restoreInitial(){return this.nodes.forEach(A=>{!A._orig||j.samePos(A,A._orig)||(j.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=>j.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 Bn({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&&(j.copyPos(d,u),d._dirty=!0)}),this._notify(),!0):!1}willItFit(A){if(delete A._willFitPos,!this.maxRow)return!0;const t=new Bn({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=j.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=j.copyPos({},A,!0);if(j.copyPos(a,t),this.nodeBoundFix(a,o),j.copyPos(t,a),!t.forceCollide&&j.samePos(A,t))return!1;const u=j.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=j.areaIntercept(t.rect,B._rect),m=j.area(t.rect),v=j.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&&!j.samePos(A,a)&&(A._dirty=!0,j.copyPos(A,a)),t.pack&&this._packNodes()._notify(),!j.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||{}};j.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:j.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=j.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??Bn._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??Bn._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}};vi._idSeq=0;var Fe={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{},Te=typeof window<"u"&&typeof document<"u"&&("ontouchstart"in document||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),Ue=class{};function Or(e,A){e.touches.length>1||(e.cancelable&&e.preventDefault(),j.simulateMouseEvent(e.changedTouches[0],A))}function ll(e,A){e.cancelable&&e.preventDefault(),j.simulateMouseEvent(e,A)}function Kr(e){Ue.touchHandled||(Ue.touchHandled=!0,Or(e,"mousedown"))}function Rr(e){Ue.touchHandled&&Or(e,"mousemove")}function Vr(e){if(!Ue.touchHandled)return;Ue.pointerLeaveTimeout&&(window.clearTimeout(Ue.pointerLeaveTimeout),delete Ue.pointerLeaveTimeout);const A=!!TA.dragElement;Or(e,"mouseup"),A||Or(e,"click"),Ue.touchHandled=!1}function Pr(e){e.pointerType!=="mouse"&&e.target.releasePointerCapture(e.pointerId)}function cl(e){TA.dragElement&&e.pointerType!=="mouse"&&ll(e,"mouseenter")}function ul(e){TA.dragElement&&e.pointerType!=="mouse"&&(Ue.pointerLeaveTimeout=window.setTimeout(()=>{delete Ue.pointerLeaveTimeout,ll(e,"mouseleave")},10))}var dl=class mu{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(`${mu.prefix}${this.dir}`),this.el.style.zIndex="100",this.el.style.userSelect="none",this.el.addEventListener("mousedown",this._mouseDown),Te&&(this.el.addEventListener("touchstart",Kr),this.el.addEventListener("pointerdown",Pr)),this}destroy(){return this.moving&&this._mouseUp(this.mouseDownEvent),this.el.removeEventListener("mousedown",this._mouseDown),Te&&(this.el.removeEventListener("touchstart",Kr),this.el.removeEventListener("pointerdown",Pr)),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),Te&&(this.el.addEventListener("touchmove",Rr),this.el.addEventListener("touchend",Vr)),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),Te&&(this.el.removeEventListener("touchmove",Rr),this.el.removeEventListener("touchend",Vr)),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}};dl.prefix="ui-resizable-";var yi=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)}},fl=class is extends yi{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 dl(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=j.shouldSizeToContent(this.el.gridstackNode,!0),this.originalRect=this.el.getBoundingClientRect(),this.scrollEl=j.getScrollElement(this.el),this.scrollY=this.scrollEl.scrollTop,this.scrolled=0,this.startEvent=A,this._setupHelper(),this._applyChange();const t=j.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=j.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=j.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=is._originStyleProp.map(n=>this.el.style[n]),this.parentOriginStylePosition=this.el.parentElement.style.position;const A=this.el.parentElement,t=j.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 is._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}};fl._originStyleProp=["width","height","position","left","top","opacity","zIndex"];var Nm='input,textarea,button,select,option,[contenteditable="true"],.ui-resizable-handle',gl=class ss extends yi{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),Te&&(A.addEventListener("touchstart",Kr),A.addEventListener("pointerdown",Pr))}),this.el.classList.remove("ui-draggable-disabled"))}disable(A=!1){this.disabled!==!0&&(super.disable(),this.dragEls.forEach(t=>{t.removeEventListener("mousedown",this._mouseDown),Te&&(t.removeEventListener("touchstart",Kr),t.removeEventListener("pointerdown",Pr))}),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(Ue.touchHandled&&A.isTrusted&&(Ue.touchHandled=!1),!TA.mouseHandled)return A.button!==0||!this.dragEls.find(t=>t===A.target)&&A.target.closest(Nm)||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),Te&&(A.currentTarget.addEventListener("touchmove",Rr),A.currentTarget.addEventListener("touchend",Vr)),A.preventDefault(),document.activeElement&&document.activeElement.blur(),TA.mouseHandled=!0),!0}_callDrag(A){if(!this.dragging)return;const t=j.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=j.getValuesFromTransformedElement(this.helperContainment),this.dragOffset=this._getDragOffset(A,this.el,this.helperContainment),this._setupHelperStyle(A);const o=j.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),Te&&A.currentTarget&&(A.currentTarget.removeEventListener("touchmove",Rr,!0),A.currentTarget.removeEventListener("touchend",Vr,!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=j.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(!j.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",j.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=j.cloneNode(this.el)),A.parentElement||j.appendTo(A,this.option.appendTo==="parent"?this.el.parentElement:this.option.appendTo),this.dragElementOriginStyle=ss.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",ss.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}}}};gl.originStyleProp=["width","height","transform","transform-origin","transition","pointerEvents","position","left","top","minWidth","willChange"];var Lm=class extends yi{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),Te&&(this.el.addEventListener("pointerenter",cl),this.el.addEventListener("pointerleave",ul)))}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),Te&&(this.el.removeEventListener("pointerenter",cl),this.el.removeEventListener("pointerleave",ul)))}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||Ue.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=j.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=j.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=j.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()}}},Tm=class wu{static init(A){return A.ddElement||(A.ddElement=new wu(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 gl(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 fl(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 Lm(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,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=j.getElements(e);return n.length?n.map(o=>o.ddElement||(t?Tm.init(o):null)).filter(o=>o):[]}},me=new km,qt=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,j.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,j.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=j.createDiv(["grid-stack",t.class],A)),LA.init(t,n)}static registerEngine(A){LA.engineClass=A}get placeholder(){if(!this._placeholder){this._placeholder=j.createDiv([this.opts.placeholderClass,Fe.itemClass,this.opts.itemClass]);const A=j.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=j.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={...j.cloneDeep(Fe),column:j.toNumber(A.getAttribute("gs-column"))||Fe.column,minRow:n||j.toNumber(A.getAttribute("gs-min-row"))||Fe.minRow,maxRow:n||j.toNumber(A.getAttribute("gs-max-row"))||Fe.maxRow,staticGrid:j.toBool(A.getAttribute("gs-static"))||Fe.staticGrid,sizeToContent:j.toBool(A.getAttribute("gs-size-to-content"))||void 0,draggable:{handle:(t.handleClass?"."+t.handleClass:t.handle?t.handle:"")||Fe.draggable.handle},removableOptions:{accept:t.itemClass||Fe.removableOptions.accept,decline:Fe.removableOptions.decline}};A.getAttribute("gs-animate")&&(a.animate=j.toBool(A.getAttribute("gs-animate"))),t=j.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("."+Fe.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!==Fe.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=Te),this._setStaticClass();const d=t.engineClass||LA.engineClass||vi;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 j.defaults(A,o),this.engine.prepareNode(A),this.el.appendChild(t),this.makeWidget(t,A),t}createWidgetDivs(A){const t=j.createDiv(["grid-stack-item",this.opts.itemClass]),n=j.createDiv(["grid-stack-item-content"],t);return j.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=j.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},j.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=j.createDiv(["grid-stack-item"]),B.appendChild(g),g=j.createDiv(["grid-stack-item-content"],a.el)),this.prepareDragDrop(a.el)),n){const v=h?t.column:a.w,Q=a.h+n.h,I=a.el.style;I.transition="none",this.update(a.el,{w:v,h:Q}),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(()=>j.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(()=>j.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=j.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,j.removeInternalAndSame(u,Fe),u.children=a,u}return a}load(A,t=LA.addRemoveCB||!0){A=j.cloneDeep(A);const n=this.getColumn();A.forEach(B=>{B.w=B.w||B.minW||1,B.h=B.h||B.minH||1}),A=j.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&&(j.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=>j.find(A,B.id)?(g.push(B),!1):!0),A.forEach(B=>{const w=j.find(g,B.id);if(w){if(j.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),j.samePos(w,B)&&this.engine.nodes.length>1&&(this.moveNode(w,{...B,forceCollide:!0}),j.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=j.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=j.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={...j.copyPos({},o),...j.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(j.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(!j.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=j.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=j.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&&j.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(Fe.itemClass,this.opts.itemClass);const o=j.shouldSizeToContent(n);return o?A.classList.add("size-to-content"):A.classList.remove("size-to-content"),o&&this.resizeToContentCheck(!1,n),j.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=j.toNumber(A.getAttribute("gs-x")),n.y=j.toNumber(A.getAttribute("gs-y")),n.w=j.toNumber(A.getAttribute("gs-w")),n.h=j.toNumber(A.getAttribute("gs-h")),n.autoPosition=j.toBool(A.getAttribute("gs-auto-position")),n.noResize=j.toBool(A.getAttribute("gs-no-resize")),n.noMove=j.toBool(A.getAttribute("gs-no-move")),n.locked=j.toBool(A.getAttribute("gs-locked"));const o=A.getAttribute("gs-size-to-content");o&&(o==="true"||o==="false"?n.sizeToContent=j.toBool(o):n.sizeToContent=parseInt(o,10)),n.id=A.getAttribute("gs-id"),n.maxW=j.toNumber(A.getAttribute("gs-max-w")),n.minW=j.toNumber(A.getAttribute("gs-min-w")),n.maxH=j.toNumber(A.getAttribute("gs-max-h")),n.minH=j.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)j.shouldSizeToContent(t)&&this.resizeToContentCBCheck(t.el);else if(this.engine.nodes.some(n=>j.shouldSizeToContent(n))){const n=[...this.engine.nodes];this.batchUpdate(),n.forEach(o=>{j.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=j.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 j.getElement(A)}static getElements(A=".grid-stack-item"){return j.getElements(A)}static getGridElement(A){return LA.getElement(A)}static getGridElements(A){return j.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=j.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=j.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"?j.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&&(j.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 j.copyPos(d,this._readAttr(this.placeholder)),j.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,Q=m.target;if(!(!Q.gridstackNode||Q.gridstackNode.grid!==this)){if(n.el=Q,n._isAboutToRemove){const I=A.gridstackNode.grid;I._gsEventHandler[m.type]&&I._gsEventHandler[m.type](m,Q),I.engine.nodes.push(n),I.removeWidget(A,!0,!0)}else j.removePositioningStyles(Q),n._temporaryRemoved?(this._writePosAttr(Q,n),this.engine.addNode(n)):this._writePosAttr(Q,n),this.triggerEvent(m,Q);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=j.getValuesFromTransformedElement(A);else if(this.placeholder&&this.placeholder.closest(".grid-stack")){const d=this.placeholder.closest(".grid-stack");this.dragTransform=j.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),Q=Math.round(a*.1);if(g=Math.min(g,Q),B=Math.min(B,Q),w=Math.min(w,v),m=Math.min(m,v),t.type==="drag"){if(o._temporaryRemoved)return;const L=n.position.top-o._prevYPix;o._prevYPix=n.position.top,this.opts.draggable.scroll!==!1&&j.updateScrollPosition(A,n.position,L);const N=n.position.left+(n.position.left>o._lastUiPosition.left?-B:g),V=n.position.top+(n.position.top>o._lastUiPosition.top?-m:w);d.x=Math.round(N/a),d.y=Math.round(V/u);const U=this._extraDragRow;if(this.engine.collide(o,d)){const z=this.getRow();let iA=Math.max(0,d.y+o.h-z);this.opts.maxRow&&z+iA>this.opts.maxRow&&(iA=Math.max(0,this.opts.maxRow-z)),this._extraDragRow=iA}else this._extraDragRow=0;if(this._extraDragRow!==U&&this._updateContainerHeight(),o.x===d.x&&o.y===d.y)return}else if(t.type==="resize"){if(d.x<0||(j.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 L=n.position.left+g,N=n.position.top+w;d.x=Math.round(L/a),d.y=Math.round(N/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 L=t.target;o._sidebarOrig||this._writePosAttr(L,o),this.triggerEvent(t,L)}}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()}};qt.renderCB=(e,A)=>{e&&A?.content&&(e.textContent=A.content)},qt.resizeToContentParent=".grid-stack-item-content",qt.Utils=j,qt.Engine=vi,qt.GDRev="12.4.2";var Mm={class:"d-layout"},Om=["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"],Km=(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=qt.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 Q=v[0];Q&&(o("added",h(Q)),B())}),u.on("removed",(m,v)=>{const Q=v[0];Q&&(o("removed",h(Q)),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(Q=>Q.id));const v=new Set(n.modelValue.map(Q=>Q.id));m.forEach(Q=>{if(!v.has(Q.id||"")){const I=Q.el;I&&u&&u.removeWidget(I,!1)}}),n.modelValue.forEach(Q=>{const I=m.find(L=>L.id===Q.id);if(I)I.el&&u&&u.update(I.el,{x:Q.x,y:Q.y,w:Q.w,h:Q.h,locked:Q.locked,noResize:Q.noResize,noMove:Q.noMove,minW:Q.minW,minH:Q.minH,maxW:Q.maxW,maxH:Q.maxH});else{if(!a.value||!u)return;const L=a.value.querySelector(`[gs-id="${Q.id}"]`);L&&u.makeWidget(L)}})},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},Q=n.modelValue.find(I=>I.id===v.id);return Q&&Object.keys(Q).forEach(I=>{["id","x","y","w","h"].includes(I)||(v[I]=Q[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",Mm,[(0,r.createElementVNode)("div",{ref_key:"gridContainerRef",ref:a},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(w.value,Q=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:Q.id,"gs-id":Q.id,"gs-x":Q.x,"gs-y":Q.y,"gs-w":Q.w,"gs-h":Q.h,"gs-locked":Q.locked,"gs-no-resize":Q.noResize,"gs-no-move":Q.noMove,"gs-min-w":Q.minW,"gs-min-h":Q.minH,"gs-max-w":Q.maxW,"gs-max-h":Q.maxH,class:"d-layout-item"},[(0,r.renderSlot)(m.$slots,"item",{item:Q})],8,Om))),128))],512)]))}}),Rm=Km,hl=ut(Rm),XA=(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)),Vm=e=>e*3/4,Pm=e=>e*4/3,Gm=["onMousedown"],zm={key:2,class:"d-draggable__mask"},Xm=(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}){const n=e,o=t,a=[{classname:"left"},{classname:"right"},{classname:"top"},{classname:"bottom"},{classname:"top-left"},{classname:"top-right"},{classname:"bottom-left"},{classname:"bottom-right"}],u={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}},d=(0,r.ref)(),h=(0,r.ref)(),g=(0,r.ref)(0),B=(0,r.ref)(0),w=(0,r.ref)(0),m=(0,r.ref)(0),v=(0,r.ref)(null),Q=(0,r.ref)(!1),I=(0,r.ref)(!1),L=(0,r.ref)(!1);let N=null;const V=(0,r.computed)(()=>n.scale),U=(0,r.computed)(()=>!n.readonly&&!n.disabled),z=(0,r.computed)(()=>U.value&&(L.value||I.value||Q.value)),iA=(0,r.computed)(()=>!n.disabled&&n.mask),W=(0,r.computed)(()=>({left:XA(V.value,"",n.isPt)})),lA=(0,r.computed)(()=>({left:XA(-V.value,"",n.isPt)})),sA=(0,r.computed)(()=>({left:"auto",right:XA(-V.value,"",n.isPt)})),nA=(0,r.computed)(()=>({top:XA(-V.value,"",n.isPt)})),oA=(0,r.computed)(()=>({top:"auto",bottom:XA(-V.value,"",n.isPt)})),AA=(0,r.computed)(()=>{const x=8*V.value;return{width:XA(x,"",n.isPt),height:XA(x,"",n.isPt)}}),_=(0,r.computed)(()=>({fontSize:XA(14*V.value,"",n.isPt),padding:XA(4*V.value,"",n.isPt),"border-radius":XA(2*V.value,"",n.isPt)}));(0,r.computed)(()=>{const x={...W.value,...nA.value},K={...W.value,...lA.value};return n.isPt?[{classname:"left",style:{...x,transform:"none"}},{classname:"top",style:{...K,transform:"none"}},{classname:"left",style:{...W.value,...oA.value}},{classname:"top",style:{...W.value,...sA.value}},{classname:"left",style:{...W.value,...oA.value,transform:"none"}},{classname:"top",style:{...W.value,...sA.value,transform:"none"}}]:[{classname:"left",style:x},{classname:"top",style:K}]});const q=(0,r.computed)(()=>{const x={zIndex:L.value?9999:n.zIndex,top:XA(m.value,"",n.isPt),width:XA(g.value,"",n.isPt),height:XA(B.value,"",n.isPt),left:XA(w.value,"",n.isPt)};return L.value&&n.isActiveBgTransparent&&U.value&&(x.backgroundColor="color-mix(in srgb, var(--j-color-primary-bg) 60%, transparent)"),x});(0,r.watch)(()=>n.width,x=>b(x)),(0,r.watch)(()=>n.height,x=>P(x),{deep:!0}),(0,r.watch)(()=>n.left,x=>M(x)),(0,r.watch)(()=>n.top,x=>k(x)),(0,r.watch)(g,x=>{d.value&&(d.value.style.width=XA(x,"",n.isPt),n.resize&&v.value?.style&&(v.value.style.width=XA(x,"",n.isPt)))}),(0,r.watch)(B,x=>{d.value&&(d.value.style.height=XA(x,"",n.isPt),n.resize&&v.value?.style&&(v.value.style.height=XA(x,"",n.isPt)))}),(0,r.watch)(()=>n.activeFlag,x=>{F(x)});const F=x=>{L.value=x},R=x=>x===void 0?0:n.isPt?Pm(x):x,b=x=>{g.value=Xe(R(x))||(v.value?.offsetWidth??0)},P=x=>{B.value=Xe(R(x))||(v.value?.offsetHeight??0)},M=x=>{w.value=Xe(R(x))},k=x=>{m.value=Xe(R(x))},O=()=>({index:n.index,width:$(g.value),height:$(B.value),left:$(w.value),top:$(m.value)}),Y=x=>{const K=O();switch(x){case"focus":o("focus",K);break;case"blur":o("blur",K);break;case"over":o("over",K);break;case"out":o("out",K);break}},eA=()=>{h.value?.firstElementChild&&(v.value=h.value.firstElementChild,b(n.width),P(n.height),M(n.left),k(n.top),F(n.activeFlag))},hA=x=>{w.value=x},bA=x=>{m.value=x},tA=x=>{const K=8*V.value/2,cA={};return x.split("-").forEach(aA=>{cA[aA]=XA(-K,"",n.isPt)}),cA},J=x=>{I.value=x},$=x=>n.isPt?Vm(x):x,uA=()=>{Q.value=!0,Y("focus")},pA=()=>{Q.value=!1,Y("blur")},FA=()=>{N?.(),N=null},_A=(x,K)=>{let cA=x.clientX,aA=x.clientY;const wA=NA=>{Q.value=!0;const OA=NA.clientX-cA,KA=NA.clientY-aA;cA=NA.clientX,aA=NA.clientY,K(OA,KA)},QA=()=>{FA(),pA()};FA(),document.addEventListener("mousemove",wA),document.addEventListener("mouseup",QA),N=()=>{document.removeEventListener("mousemove",wA),document.removeEventListener("mouseup",QA)}},fA=(x,K,cA)=>{if(x.resizeX){let aA=K*n.step;x.invertX&&(aA=-aA),x.moveLeft&&(w.value=Xe(w.value-aA)),g.value=Xe(g.value+aA)}if(x.resizeY){let aA=cA*n.step;x.invertY&&(aA=-aA),x.moveTop&&(m.value=Xe(m.value-aA)),B.value=Xe(B.value+aA)}},yA=(x,K)=>{if(!U.value)return;const cA=u[K];uA(),_A(x,(aA,wA)=>fA(cA,aA,wA))},S=()=>{I.value=!1,Y("out")},H=()=>{U.value&&(I.value=!0,Y("over"))},D=x=>{U.value&&(L.value=!0,uA(),_A(x,(K,cA)=>{w.value=Xe(w.value+K*n.step),m.value=Xe(m.value+cA*n.step)}))};return(0,r.onMounted)(()=>{eA()}),(0,r.onBeforeUnmount)(()=>{FA()}),A({setActive:F,setLeft:hA,setTop:bA,setOverActive:J}),(x,K)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["d-draggable",{"d-draggable--active":(L.value||I.value)&&U.value},{"d-draggable--pt":e.isPt&&U.value},{"d-draggable--move":Q.value},{"d-draggable--click":e.disabled}]),onMousedown:(0,r.withModifiers)(D,["stop"]),onMouseover:(0,r.withModifiers)(H,["stop"]),onMouseout:(0,r.withModifiers)(S,["stop"]),style:(0,r.normalizeStyle)(q.value)},[(0,r.createElementVNode)("div",{class:"d-draggable__wrapper",ref_key:"wrapper",ref:d},[z.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)(_.value)}," X:"+(0,r.toDisplayString)(w.value)+", Y:"+(0,r.toDisplayString)(m.value),5))],64)):(0,r.createCommentVNode)("",!0),U.value?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},(0,r.renderList)(a,cA=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:cA.classname},[L.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(["d-draggable__range",`d-draggable__range--${cA.classname}`]),style:(0,r.normalizeStyle)([AA.value,tA(cA.classname)]),onMousedown:(0,r.withModifiers)(aA=>yA(aA,cA.classname),["stop"])},null,46,Gm)):(0,r.createCommentVNode)("",!0)],64))),64)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",{class:"d-draggable__item",ref_key:"item",ref:h},[(0,r.renderSlot)(x.$slots,"default")],512),iA.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",zm)):(0,r.createCommentVNode)("",!0)],512)],38))}}),$m=Xm,Bl=ut($m),pl=e=>{const A=Ym(e.components);return{formConfig:e.form,componentList:A}},ml=(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}},Gr=(e,A)=>{const t={ver:"j1",form:{...e},components:[],db:{}};return wl(A||[],t.components),t},wl=(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"&&wl(t.children||[],A),A.push(n)})},Ym=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},Cl=(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(P=>{const M=g[P];M.dragType==="component"&&M.type!=="pkey"&&b.push(M)}),b}),w=(b=[],P)=>{const M=A?.value?.init;typeof M=="function"&&M(b,P)},m=b=>o?o(b,{componentDic:g,components:B.value,configData:h.value.config}):{},v=(b,P)=>{if(h.value?.id===b)return;const M=g[b]||P;if(M?h.value=M:b===t.id?h.value=t:h.value=null,h.value){const k=a[h.value.type];k?(w(k,h.value.config),m(h.value.type)):w([])}else w([]);P&&te("dragClick",{id:P.id})},Q=()=>e.value.$el.getBoundingClientRect(),I=b=>b===t.id?t:g[b]||{},L=b=>{const P=[];if(b===t.id)P.push({id:b,name:t.name});else{const M=g[b];if(M){P.push({id:b,name:M.name});const k=L(M.containerId);P.push(...k)}}return P},N=(b,P)=>{const M=g[P];if(M===void 0)return!1;const k=M.containerId;return b===k?!0:k===t.id?!1:N(b,k)},V=b=>n?n(b)||{}:{},U=(b,P,M,k)=>{if(d){const O=I(b);return d(M.componentType,{container:O,groupId:P,configData:M},k)}return!1},z=({name:b,type:P,dragType:M,isInput:k,componentName:O,runtimeType:Y},eA,hA,bA,tA=!1)=>{const J=V(P);if(J.id=dt(),J.span=24,J.componentType=P,iA(eA,J.componentType))return;U(eA,bA,J,!0);const $={id:J.id,name:b,type:P,runtimeType:Y,componentName:O||"",dragType:M||"component",containerId:eA,isInput:!!k,level:g[eA]?g[eA].level+1:1,config:J,isNewAdd:!tA,groupId:bA};return $.dragType==="container"&&($.children=[]),g[$.id]=$,I(eA).children?.splice(hA,0,$),$},iA=(b,P)=>!!(I(b).config.componentType==="gridtable"&&["divider","label","text","textEditor","viewTable","card","collapse","tabs","qrcode","barcode","tableLayout"].includes(P)),W=(b,P,M=!1)=>{let k=null;const O=I(b).children,Y=O?.findIndex(eA=>eA.id===P)||0;if(M&&O&&O.length>1){let eA=Y+1;Y>0&&(eA=Y-1),k=O[eA]}return O?.splice(Y,1),k?.id},lA=(b,P,M,k)=>{const O=I(P).children,Y=b.containerId!==P;b.containerId=P,b.groupId=k,O?.splice(M,0,b),U(P,k,b.config,Y)&&(q(),v(b.id))},sA=b=>{let P="";const M=I(b);return M&&(M.children&&M.children.length>0&&M.children.forEach(k=>{sA(k.id)}),P=W(M.containerId,b,!0)||"",delete g[b]),h.value&&h.value.id===b&&(h.value=null,A.value.init([])),P},nA=(b,P=[])=>{const M=I(b);if(M&&M.children&&M.children.length>0){const k=[];M.children.forEach(O=>{O.groupId&&P.includes(O.groupId)&&k.push(O.id)}),k.forEach(O=>{sA(O),delete g[O]})}},oA=(b,P)=>{const M=I(b);M&&(M.children&&M.children.length>0&&M.children.forEach(k=>{k.groupId===P&&sA(k.id)}),delete g[b])},AA=b=>{const P=pn(I(b));P.id=dt(),P.config.id=P.id,g[P.id]=P;const M=I(P.containerId).children,k=M?.findIndex(O=>O.id===b)||0;M?.splice(k+1,0,P)},_=()=>{t.children=[],Hu(g),h.value&&(te("dragClick",{id:""}),h.value=null,A.value.init([]))},q=()=>{h.value&&(te("dragClick",{id:""}),h.value=null,A.value.init([]))},F=b=>{const P=h.value,M=I(P.containerId).children,k=M?.findIndex(O=>O.id===P.id)||0;sA(P.id),(0,r.nextTick)(()=>{const O=u[b],Y=V(b);Y.id=P.id,Y.span=P.config.span,Y.componentType=b,Y.table=P.config.table,Y.field=P.config.field,P.config.isSubTable&&(Y.isSubTable=P.config.isSubTable);const eA={id:Y.id,name:O.name,type:b,runtimeType:O.runtimeType,componentName:O.componentName||"",dragType:P.dragType,groupId:P.groupId,containerId:P.containerId,isInput:P.isInput,level:P.level,config:Y,isNewAdd:!0};g[eA.id]=eA,M?.splice(k,0,eA)})},R=b=>{te("dragAddByClick",b)};return(0,r.provide)("d-drag-design-provide",{activedComponent:h,getDesignLocals:Q,getComponent:I,getParentComponents:L,isMyChildComponent:N,selectComponent:v,addComponent:z,deleteComponent:sA,copyComponent:AA,removeComponentFromContainer:W,addComponentToContainer:lA,top:t,deleteChildren:oA,deleteChildrens:nA}),{activedComponent:h,clearComponents:_,changeComponent:F,schemaComponentDic:g,clearSelect:q,addComponent:z,addComponentByTable:R,designComponentList:B}},Wm=(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))}}}),vl=Wm,Jm={class:"d-form-design j-block"},Zm={class:"d-form-design-left"},jm={class:"d-form-design-component-list"},qm={class:"j-component-tool"},Aw={class:"j-component-tool-name"},ew={class:"d-form-design-center"},tw={class:"d-form-design-container"},nw={key:0,class:"j-block d-form-design-empty"},rw={class:"d-form-design-right"},ow={class:"d-form-design-panel-title"},iw={style:{margin:"0","font-size":"14px"}},sw={class:"d-form-design-panel"},aw=(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 tA=0;tA<d;tA++)u.value.push(tA);t.componentInit&&(a.config=t.componentInit("form")||{});const h={},g=[];t.components.forEach(({children:tA})=>{tA.forEach(J=>{h[J.type]=J,J.dragType=J.dragType||"component",J.isInput!==!1&&(J.isInput=!0,g.push({label:J.name,value:J.type}))})});const B=tA=>{tA.forEach(J=>{J.type==="d-input-flow"&&(J.config=J.config||{},J.config.flowComponents=t.flowComponents,J.config.flowInit=t.flowInit,J.config.flowComponentConfigInit=$=>{t.flowComponentConfigInit&&($.designComponents=iA.value,$.component=N.value,t.flowComponentConfigInit($))},J.config.flowComponentConfigs=t.flowComponentConfigs,J.config.flowComponentConfigChange=t.flowComponentConfigChange),J.children&&B(J.children)})},w={};Object.keys(t.componentConfigs||{}).forEach(tA=>{const{hasBase:J,isInput:$,hasTwoPlaceholder:uA,hasPlaceholder:pA,hasSpan:FA,hasLabel:_A,bindTable:fA,labelTitle:yA}=h[tA]||{hasBase:!1},S=[{id:"componentType",type:"j-select",config:{label:"类型",allowClear:!1,display:$,options:g}},{id:"label",type:"j-input",config:{label:yA||"标题"},getCompConfig:({formData:D})=>({display:_A!==!1&&!D.notShowLabel})},{id:"notShowLabel",type:"j-switch",config:{label:"不显示"+(yA||"标题"),activeValue:!0,inactiveValue:!1},getCompConfig:({formData:D})=>({display:_A!==!1&&!D.isSubTable})},{id:"labelWidth",type:"j-number",config:{label:"标题宽度"},getCompConfig:({formData:D})=>({display:$&&!D.notShowLabel&&!D.isSubTable})},{id:"labelPosition",type:"j-radio",config:{label:"标题对齐",options:[{value:"right",label:"右"},{value:"left",label:"左"},{value:"top",label:"顶部"}]},getCompConfig:({formData:D})=>({display:$&&!D.notShowLabel&&!D.isSubTable})},{id:"placeholder",type:"j-input",config:{display:$&&!uA&&pA!==!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:D})=>({display:FA!==!1&&!D.isSubTable})},{id:"width",type:"j-number",config:{label:"单元格宽度",min:1},getCompConfig:({formData:D})=>({display:!!D.isSubTable})}],H={type:"j-collapse",config:{defaultValue:[]},children:[]};J!==!1&&H.children?.push({config:{label:"基础信息"},children:[...S]}),H.children?.push(...t.componentConfigs[tA]),H.children?.forEach((D,x)=>{H.config?.defaultValue.push(`_collapse${x}`)}),B(H.children||[]),w[tA]=[H]});const m=tA=>{const{value:J}=tA||{};tA.id==="componentType"&&U(J),N.value&&t.componentConfigChange&&t.componentConfigChange(N.value.type,{configRef:L,configData:N.value.config,...tA})},v=(tA,J)=>{t.componentConfigInit&&t.componentConfigInit(tA,{configRef:L,...J})},Q=(tA,J,$)=>{let uA=!1;return J.container.type==="gridtable"?(!J.configData.isSubTable||$)&&(J.configData.isSubTable=!0,uA=!0):J.configData.isSubTable&&(uA=!0,J.configData.isSubTable=!1),t.containerAddComponent&&t.containerAddComponent(tA,J),uA},I=(0,r.ref)(),L=(0,r.ref)(),{activedComponent:N,clearComponents:V,changeComponent:U,schemaComponentDic:z,designComponentList:iA}=Cl(I,L,a,t.componentInit,v,w,h,Q),W=(0,r.computed)(()=>N.value?.id!="form"?N.value?`${N.value.name}-${N.value.id}`:"":N.value?`${N.value.name}`:"");(0,r.provide)("dui-design-provide",{designItemName:vl});const lA=()=>{V()},sA=()=>{t.componentInit&&(a.config=t.componentInit("form")||{}),V()},nA=()=>Gr(a.config,a.children||[]),oA=tA=>{const J=ml(tA,h);a.config=J.formConfig,a.children?.push(...J.componentList),Object.keys(J.componentDic).forEach($=>{z[$]=J.componentDic[$]})},AA=()=>_(Gr(a.config,a.children||[]).components),_=tA=>{for(const J of tA)if(t.componentConfigValidate&&!t.componentConfigValidate(J.type,{configData:J.config,errorTip:o}))return!1;return!0},q=(0,r.ref)(),F=(0,r.ref)(),R=(0,r.ref)({});let b=0;const P=tA=>{if(F.value)b=0,F.value.init(tA||[]);else{if(b>600){console.warn("表单组件加载超时");return}b++,setTimeout(()=>{P(tA)},100)}},M=()=>{},k=()=>{};return A({getSchema:()=>nA(),setSchema:tA=>oA(tA),reset:()=>sA(),validate:()=>AA(),preview:()=>{const tA=Gr(a.config,a.children||[]);q.value.open("表单预览",tA.form.layerType);const{formConfig:J,componentList:$}=pl(tA);R.value=J,(0,r.nextTick)(()=>{P($)})},clear:lA}),(tA,J)=>{const $=(0,r.resolveComponent)("j-icon"),uA=(0,r.resolveComponent)("d-drag-tool"),pA=(0,r.resolveComponent)("el-collapse-item"),FA=(0,r.resolveComponent)("el-collapse"),_A=(0,r.resolveComponent)("el-empty"),fA=(0,r.resolveComponent)("d-drag-form-list"),yA=(0,r.resolveComponent)("el-row"),S=(0,r.resolveComponent)("d-drag-container"),H=(0,r.resolveComponent)("j-form"),D=(0,r.resolveComponent)("j-layer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",Jm,[(0,r.createElementVNode)("div",Zm,[(0,r.createElementVNode)("div",jm,[(0,r.createVNode)(FA,{modelValue:u.value,"onUpdate:modelValue":J[0]||(J[0]=x=>u.value=x)},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.components,(x,K)=>((0,r.openBlock)(),(0,r.createBlock)(pA,{key:K,title:x.name,name:K},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(x.children,(cA,aA)=>((0,r.openBlock)(),(0,r.createBlock)(uA,{key:aA,config:cA},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",qm,[(0,r.createVNode)($,{class:"j-component-tool-icon",icon:cA.icon,size:14},null,8,["icon"]),(0,r.createElementVNode)("div",Aw,(0,r.toDisplayString)((0,r.unref)(n)(cA.name)),1)])]),_:2},1032,["config"]))),128))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])]),(0,r.createElementVNode)("div",ew,[(0,r.createElementVNode)("div",tw,[(0,r.createVNode)(S,{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",nw,[(0,r.createVNode)(_A,{description:(0,r.unref)(n)("请从左侧拖拽组件到此处"),"image-size":100},null,8,["description"])])):((0,r.openBlock)(),(0,r.createBlock)(yA,{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",rw,[(0,r.createElementVNode)("div",ow,[(0,r.createElementVNode)("span",iw,(0,r.toDisplayString)(`${W.value}`),1)]),(0,r.createElementVNode)("div",sw,[(0,r.createVNode)(H,{config:{labelPosition:"top",size:"small"},collapseAnimate:!1,style:{padding:"0"},ref_key:"configRef",ref:L,onChange:m},null,512)])],512),[[r.vShow,(0,r.unref)(N)]]),(0,r.createVNode)(D,{ref_key:"previewFormLayerRef",ref:q,width:1e3,height:800,onOk:M,onClosed:k},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(H,{config:R.value,"is-preview":!0,ref_key:"previewFormRef",ref:F,actions:e.actions},null,8,["config","actions"])]),_:1},512)])}}}),lw=aw,yl=ut(lw,[vl]),cw=(e,A)=>{const t={ver:"V3",indexPage:{...e},components:[]};return Ql(A||[],t.components),t},Ql=(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"&&Ql(t.children||[],A),A.push(n)})},uw=(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}},dw=(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"]))}}),El=dw,fw={class:"d-index-design j-block"},gw={class:"d-index-design-left"},hw={class:"j-component-list"},Bw={class:"j-component-tool"},pw={class:"j-component-tool-name"},mw={class:"d-index-design-center"},ww={class:"design-container"},Cw={key:0,class:"j-block design-empty"},vw={class:"d-index-design-right"},yw={class:"d-index-design-panel-title"},Qw={style:{margin:"0","font-size":"14px"}},Ew={class:"d-index-design-panel"},Fw=(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=F=>{F.forEach(R=>{R.type==="d-input-flow"&&(R.config=R.config||{},R.config.flowComponents=n.flowComponents,R.config.flowInit=n.flowInit,R.config.flowComponentConfigInit=b=>{n.flowComponentConfigInit&&(b.designComponents=L.value,b.component=v.value,n.flowComponentConfigInit(b))},R.config.flowComponentConfigs=n.flowComponentConfigs,R.config.flowComponentConfigChange=n.flowComponentConfigChange),R.children&&o(R.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:F})=>{F.forEach(R=>{u[R.type]=R,R.dragType=R.dragType||"component",d.push({label:R.name,value:R.type})})});const h={};Object.keys(n.componentConfigs).forEach(F=>{const{hasBase:R}=u[F]||{hasBase:!1},b=[{id:"label",type:"j-input",config:{label:"名称"}}],P={type:"j-collapse",config:{defaultValue:[]},children:[]};R!==!1&&(P.children?.push({config:{label:"基础信息"},children:[...b]}),P.config?.defaultValue.push("_collapse0")),P.children?.push(...n.componentConfigs[F]),o(P.children||[]),h[F]=[P]});const g=F=>{v.value&&n.componentConfigChange&&n.componentConfigChange(v.value.type,{configRef:m,configData:v.value.config,...F})},B=(F,R)=>{n.componentConfigInit&&n.componentConfigInit(F,{configRef:m,...R})},w=(0,r.ref)(),m=(0,r.ref)(),{activedComponent:v,clearComponents:Q,schemaComponentDic:I,designComponentList:L}=Cl(w,m,a,n.componentInit,B,h,u,n.containerAddComponent),N=(0,r.computed)(()=>v.value?.id!="form"?v.value?`${v.value.name}-${v.value.id}`:"":v.value?`${v.value.name}`:""),V=(0,r.ref)([]),U=n.components.length;for(let F=0;F<U;F++)V.value.push(F);(0,r.provide)("dui-design-provide",{designItemName:El});const z=()=>{n.componentInit&&(a.config=n.componentInit("indexPage")||{}),Q()},iA=()=>(console.log("pValidate"),!0),W=()=>cw(a.config,a.children||[]),lA=F=>{const R=uw(F,u);a.config=R.pageConfig,a.children?.push(...R.componentList),Object.keys(R.componentDic).forEach(b=>{I[b]=R.componentDic[b]})},sA=(0,r.ref)(),nA=(0,r.ref)();(0,r.ref)(""),(0,r.reactive)({formConfig:{}});let oA=0;const AA=F=>{if(nA.value)oA=0,nA.value.init(F);else{if(oA>600){console.warn("组件加载超时");return}oA++,setTimeout(()=>{AA(F)},100)}},_=()=>{},q=()=>{};return A({reset:z,validate:iA,getSchema:W,setSchema:lA}),(F,R)=>{const b=(0,r.resolveComponent)("j-icon"),P=(0,r.resolveComponent)("d-drag-tool"),M=(0,r.resolveComponent)("el-collapse-item"),k=(0,r.resolveComponent)("el-collapse"),O=(0,r.resolveComponent)("el-empty"),Y=(0,r.resolveComponent)("d-drag-index-list"),eA=(0,r.resolveComponent)("d-drag-container"),hA=(0,r.resolveComponent)("j-form"),bA=(0,r.resolveComponent)("j-page"),tA=(0,r.resolveComponent)("j-layer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",fw,[(0,r.createElementVNode)("div",gw,[(0,r.createElementVNode)("div",hw,[(0,r.createVNode)(k,{modelValue:V.value,"onUpdate:modelValue":R[0]||(R[0]=J=>V.value=J)},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.components,(J,$)=>((0,r.openBlock)(),(0,r.createBlock)(M,{key:$,title:J.name,name:$},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(J.children,(uA,pA)=>((0,r.openBlock)(),(0,r.createBlock)(P,{key:pA,config:uA},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",Bw,[(0,r.createVNode)(b,{class:"j-component-tool-icon",icon:uA.icon,size:14},null,8,["icon"]),(0,r.createElementVNode)("div",pw,(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",mw,[(0,r.createElementVNode)("div",ww,[(0,r.createVNode)(eA,{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",Cw,[(0,r.createVNode)(O,{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",vw,[(0,r.createElementVNode)("div",yw,[(0,r.createElementVNode)("span",Qw,(0,r.toDisplayString)(`${N.value}`),1)]),(0,r.createElementVNode)("div",Ew,[(0,r.createVNode)(hA,{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)(tA,{ref_key:"previewLayerRef",ref:sA,"has-btns":!1,onOk:_,onClosed:q},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(bA,{ref_key:"previewRef",ref:nA,actions:e.actions},null,8,["actions"])]),_:1},512)])}}}),Uw=Fw,Fl=ut(Uw,[El]),jA=Uu({Vue:()=>r,Vue2:()=>{},del:()=>Iw,install:()=>bw,isVue2:()=>!1,isVue3:()=>!0,set:()=>Hw});bu(jA,require("vue"));var uE=!1,dE=!0,fE=void 0;function bw(){}function Hw(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 Iw(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},_w=(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 L=e.vertical?I.clientY:I.clientX;t.value=Math.round(m+(L-w)/e.scale)},Q=()=>{A("onRelease",t.value,e.index),document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",Q)};document.addEventListener("mousemove",v),document.addEventListener("mouseup",Q)},handleRemove:()=>{A("onRemove",e.index)}}}}),Sw={class:"value"};function xw(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",Sw,(0,r.toDisplayString)(e.startValue),1)],4)],36)),[[r.vShow,e.showLine]])}var Dw=zr(_w,[["render",xw],["__scopeId","data-v-5dea28d6"]]),Nw=e=>e<=.25?40:e<=.5?20:e<=1?10:e<=2?5:e<=4?2:1,Ul=.83,Lw=(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:Q,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 nA=(t-A)*u,oA=n*u;e.fillStyle=v,a?e.fillRect(nA,0,oA,h*3/8):e.fillRect(0,nA,d*3/8,oA)}const L=Nw(u),N=L*u,V=L*10,U=V*u,z=Math.floor(A/L)*L,iA=Math.floor(A/V)*V,W=(z-A)/L*N,lA=(iA-A)/V*U,sA=A+Math.ceil((a?d:h)/u);e.beginPath(),e.fillStyle=m,e.strokeStyle=Q;for(let nA=iA,oA=0;nA<sA;nA+=V,oA++){const AA=lA+oA*U+.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(Ul/g,Ul/g),e.fillText(nA.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 nA=z,oA=0;nA<sA;nA+=L,oA++){const AA=W+oA*N+.5;a?e.moveTo(AA,0):e.moveTo(0,AA),nA%V!==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)},Tw=(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&&Tw(t.canvasContext,e.start,e.selectStart,e.selectLength,B,!e.vertical)};return(0,qA.watch)(()=>e.start,()=>d(n)),(0,qA.watch)([()=>e.width,()=>e.height],()=>{u(n),d(n)}),{handle:(g,B)=>{const m=((y,Q,U)=>Math.round(Q+y/U))(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 Ow(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 Kw=(0,qA.defineComponent)({name:"RulerWrapper",components:{CanvasRuler:zr(Mw,[["render",Ow]]),RulerLine:Lw},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,qA.ref)(!1),t=(0,qA.ref)(0),n=(0,qA.computed)(()=>e.vertical?"v-container":"h-container"),o=(0,qA.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,qA.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}}}),Rw={class:"lines"},Vw={class:"value"};function Pw(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",Rw,[((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",Vw,(0,r.toDisplayString)(e.valueNum),1)],4),[[r.vShow,e.showIndicator]])],6)}var Gw=zr(Kw,[["render",Pw],["__scopeId","data-v-5cc064d4"]]),zw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAAXNSR0IArs4c6QAAAopJREFUOE/FlE9IVEEcx7+/N9ouds1Mu0QUSFZYdIgoUqQoKPBQHsKozpXE7jbTO/U8xLJvn6usBHWQ6hBFXupSkQeVbh0KJEPp0sH+e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A7wgK/pUtXPQJ8xZk+pVBpuNBqXUoUiEvi+P56fzTpo6+SbwHNg1lo7WzTITGEKXFlZeeB53tVCpa3CK8AFa+1cBgvD8LKIXAQOJkkyICJDeYVBEJS6u7s/qeoLa+1o+l9TqXNuBLhmjDlbqVQ+5ICjInIfOBPH8W9jzGCR5YmJiRNxHM+papgqzqDvgSlr7VTernPuO3An3c9bBt74vv+yrdaKyLDv+/1Sq9UGPc97nY9EVuycU2AQOA7cAm4Dr4D5TvVxHB9rKo2iaEFVp621Ln96FEUngaOqGmSxabVqsh3a2h+x1h5qQjNrae/yE4+iaCwDJkky73neTuBZe129Xk+H+BS4l7ZqLVIZ2BhzuFKpvMsDVXXWGPMxFdAedOfcKeCRqj7MYrUhpz09PfXl5eXrectFWXXODQHpOq2qd/95o/JXr6ura3J1dXU6SZIfwKKIHAD2tVYMPBGRx77vN10UXtO85fTkmZmZHUtLSzUR2QXsBhaAL6r6DXhbrVYXi1yss59GqOgub/bN3Z7v6X/tb9Zmp/q/kN8s+lJb8oEAAAAASUVORK5CYII=",$w=(0,qA.defineComponent)({name:"SketchRule",components:{RulerWrapper:Gw},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","handleLine"],setup(e,{emit:A}){let t=(0,qA.ref)(!0);t.value=e.isShowReferLine;const n=(0,qA.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,qA.computed)(()=>({backgroundImage:t.value?`url(${e.eyeIcon||zw})`:`url(${e.closeEyeIcon||Xw})`,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("handleCornerClick",t.value)};return(0,qA.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 Yw(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 Jw=zr($w,[["render",Yw]]),Zw=Fu(((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 v(K){try{k(l.next(K))}catch(z){C(z)}}function E(K){try{k(l.throw(K))}catch(z){C(z)}}function k(K){K.done?p(K.value):f(K.value).then(v,E)}k((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:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(C[Symbol.iterator]=function(){return this}),C;function v(k){return function(K){return E([k,K])}}function E(k){if(l)throw new TypeError("Generator is already executing.");for(;c;)try{if(l=1,f&&(p=k[0]&2?f.return:k[0]?f.throw||((p=f.return)&&p.call(f),0):f.next)&&!(p=p.call(f,k[1])).done)return p;switch(f=0,p&&(k=[k[0]&2,p.value]),k[0]){case 0:case 1:p=k;break;case 4:return c.label++,{value:k[1],done:!1};case 5:c.label++,f=k[1],k=[0];continue;case 7:k=c.ops.pop(),c.trys.pop();continue;default:if(p=c.trys,!(p=p.length>0&&p[p.length-1])&&(k[0]===6||k[0]===2)){c=0;continue}if(k[0]===3&&(!p||k[1]>p[0]&&k[1]<p[3])){c.label=k[1];break}if(k[0]===6&&c.label<p[1]){c.label=p[1],p=k;break}if(p&&c.label<p[2]){c.label=p[2],c.ops.push(k);break}p[2]&&c.ops.pop(),c.trys.pop();continue}k=i.call(s,c)}catch(K){k=[6,K],f=0}finally{l=p=0}if(k[0]&5)throw k[1];return{value:k[0]?k[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},y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Q=typeof Uint8Array>"u"?[]:new Uint8Array(256),U=0;U<y.length;U++)Q[y.charCodeAt(U)]=U;for(var T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",M=typeof Uint8Array>"u"?[]:new Uint8Array(256),R=0;R<T.length;R++)M[T.charCodeAt(R)]=R;for(var H=function(s){var i=s.length*.75,c=s.length,l,f=0,p,C,v,E;s[s.length-1]==="="&&(i--,s[s.length-2]==="="&&i--);var k=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(i):new Array(i),K=Array.isArray(k)?k:new Uint8Array(k);for(l=0;l<c;l+=4)p=M[s.charCodeAt(l)],C=M[s.charCodeAt(l+1)],v=M[s.charCodeAt(l+2)],E=M[s.charCodeAt(l+3)],K[f++]=p<<2|C>>4,K[f++]=(C&15)<<4|v>>2,K[f++]=(v&3)<<6|E&63;return k},P=function(s){for(var i=s.length,c=[],l=0;l<i;l+=2)c.push(s[l+1]<<8|s[l]);return c},iA=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},Z=5,aA=11,lA=2,rA=aA-Z,nA=65536>>Z,j=(1<<Z)-1,S=nA+(1024>>Z)+32,eA=65536>>aA,I=(1<<rA)-1,X=function(s,i,c){return s.slice?s.slice(i,c):new Uint16Array(Array.prototype.slice.call(s,i,c))},F=function(s,i,c){return s.slice?s.slice(i,c):new Uint32Array(Array.prototype.slice.call(s,i,c))},x=function(s,i){var c=H(s),l=Array.isArray(c)?iA(c):new Uint32Array(c),f=Array.isArray(c)?P(c):new Uint16Array(c),p=24,C=X(f,p/2,l[4]/2),v=l[5]===2?X(f,(p+l[4])/2):F(l,Math.ceil((p+l[4])/4));return new N(l[0],l[1],l[2],l[3],C,v)},N=(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>>Z],c=(c<<lA)+(i&j),this.data[c];if(i<=65535)return c=this.index[nA+(i-55296>>Z)],c=(c<<lA)+(i&j),this.data[c];if(i<this.highStart)return c=S-eA+(i>>aA),c=this.index[c],c+=i>>Z&I,c=this.index[c],c=(c<<lA)+(i&j),this.data[c];if(i<=1114111)return this.data[this.highValueIndex]}return this.errorValue},s})(),L="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",O=typeof Uint8Array>"u"?[]:new Uint8Array(256),J=0;J<L.length;J++)O[L.charCodeAt(J)]=J;var tA="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AH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AcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc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wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQ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csBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABA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AAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4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gAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAF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AUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABA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UABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",dA=50,UA=1,G=2,Y=3,$=4,oA=5,BA=7,wA=8,bA=9,uA=10,hA=11,_=12,b=13,D=14,W=15,V=16,pA=17,gA=18,HA=19,FA=20,SA=21,OA=22,XA=23,ae=24,re=25,nt=26,Tt=27,rt=28,On=29,mt=30,sA=31,cA=32,xA=33,TA=34,ot=35,Kn=36,it=37,Rn=38,tn=39,nn=40,GA=41,ze=42,wt=43,b0=[9001,65288],_l="!",RA="×",Xr="÷",vi=x(tA),st=[mt,Kn],Qi=[UA,G,Y,oA],Sl=[uA,wA],xl=[Tt,nt],H0=Qi.concat(Sl),Dl=[Rn,tn,nn,TA,ot],I0=[W,b],_0=function(s,i){i===void 0&&(i="strict");var c=[],l=[],f=[];return s.forEach(function(p,C){var v=vi.get(p);if(v>dA?(f.push(!0),v-=dA):f.push(!1),["normal","auto","loose"].indexOf(i)!==-1&&[8208,8211,12316,12448].indexOf(p)!==-1)return l.push(C),c.push(V);if(v===$||v===hA){if(C===0)return l.push(C),c.push(mt);var E=c[C-1];return H0.indexOf(E)===-1?(l.push(l[C-1]),c.push(E)):(l.push(C),c.push(mt))}if(l.push(C),v===sA)return c.push(i==="strict"?SA:it);if(v===ze||v===On)return c.push(mt);if(v===wt)return p>=131072&&p<=196605||p>=196608&&p<=262141?c.push(it):c.push(mt);c.push(v)}),[l,c,f]},Ei=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!==uA)break}if(f===uA)for(var p=c;p>0;){p--;var v=l[p];if(Array.isArray(s)?s.indexOf(v)!==-1:s===v)for(var E=c;E<=l.length;){E++;var C=l[E];if(C===i)return!0;if(C!==uA)break}if(v!==uA)break}return!1},Nl=function(s,i){for(var c=s;c>=0;){var l=i[c];if(l===uA)c--;else return l}return 0},S0=function(s,i,c,l,f){if(c[l]===0)return RA;var p=l-1;if(Array.isArray(f)&&f[p]===!0)return RA;var C=p-1,v=p+1,E=i[p],k=C>=0?i[C]:0,K=i[v];if(E===G&&K===Y)return RA;if(Qi.indexOf(E)!==-1)return _l;if(Qi.indexOf(K)!==-1||Sl.indexOf(K)!==-1)return RA;if(Nl(p,i)===wA)return Xr;if(vi.get(s[p])===hA||(E===cA||E===xA)&&vi.get(s[v])===hA||E===BA||K===BA||E===bA||[uA,b,W].indexOf(E)===-1&&K===bA||[pA,gA,HA,ae,rt].indexOf(K)!==-1||Nl(p,i)===OA||Ei(XA,OA,p,i)||Ei([pA,gA],SA,p,i)||Ei(_,_,p,i))return RA;if(E===uA)return Xr;if(E===XA||K===XA)return RA;if(K===V||E===V)return Xr;if([b,W,SA].indexOf(K)!==-1||E===D||k===Kn&&I0.indexOf(E)!==-1||E===rt&&K===Kn||K===FA||st.indexOf(K)!==-1&&E===re||st.indexOf(E)!==-1&&K===re||E===Tt&&[it,cA,xA].indexOf(K)!==-1||[it,cA,xA].indexOf(E)!==-1&&K===nt||st.indexOf(E)!==-1&&xl.indexOf(K)!==-1||xl.indexOf(E)!==-1&&st.indexOf(K)!==-1||[Tt,nt].indexOf(E)!==-1&&(K===re||[OA,W].indexOf(K)!==-1&&i[v+1]===re)||[OA,W].indexOf(E)!==-1&&K===re||E===re&&[re,rt,ae].indexOf(K)!==-1)return RA;if([re,rt,ae,pA,gA].indexOf(K)!==-1)for(var z=p;z>=0;){var q=i[z];if(q===re)return RA;if([rt,ae].indexOf(q)!==-1)z--;else break}if([Tt,nt].indexOf(K)!==-1)for(var z=[pA,gA].indexOf(E)!==-1?C:p;z>=0;){var q=i[z];if(q===re)return RA;if([rt,ae].indexOf(q)!==-1)z--;else break}if(Rn===E&&[Rn,tn,TA,ot].indexOf(K)!==-1||[tn,TA].indexOf(E)!==-1&&[tn,nn].indexOf(K)!==-1||[nn,ot].indexOf(E)!==-1&&K===nn||Dl.indexOf(E)!==-1&&[FA,nt].indexOf(K)!==-1||Dl.indexOf(K)!==-1&&E===Tt||st.indexOf(E)!==-1&&st.indexOf(K)!==-1||E===ae&&st.indexOf(K)!==-1||st.concat(re).indexOf(E)!==-1&&K===OA&&b0.indexOf(s[v])===-1||st.concat(re).indexOf(K)!==-1&&E===gA)return RA;if(E===GA&&K===GA){for(var CA=c[p],fA=1;CA>0&&(CA--,i[CA]===GA);)fA++;if(fA%2!==0)return RA}return E===cA&&K===xA?RA:Xr},x0=function(s,i){i||(i={lineBreak:"normal",wordBreak:"normal"});var c=_0(s,i.lineBreak),l=c[0],f=c[1],p=c[2];(i.wordBreak==="break-all"||i.wordBreak==="break-word")&&(f=f.map(function(v){return[re,mt,ze].indexOf(v)!==-1?it:v}));var C=i.wordBreak==="keep-all"?p.map(function(v,E){return v&&s[E]>=19968&&s[E]<=40959}):void 0;return[l,f,C]},D0=(function(){function s(i,c,l,f){this.codePoints=i,this.required=c===_l,this.start=l,this.end=f}return s.prototype.slice=function(){return m.apply(void 0,this.codePoints.slice(this.start,this.end))},s})(),N0=function(s,i){var c=w(s),l=x0(c,i),f=l[0],p=l[1],C=l[2],v=c.length,E=0,k=0;return{next:function(){if(k>=v)return{done:!0,value:null};for(var K=RA;k<v&&(K=S0(c,p,f,++k,C))===RA;);if(K!==RA||k===v){var z=new D0(c,K,E,k);return E=k,{value:z,done:!1}}return{done:!0,value:null}}}},L0=1,k0=2,Vn=4,Ll=8,$r=10,kl=47,Pn=92,T0=9,M0=32,Wr=34,Gn=61,O0=35,K0=36,R0=37,Yr=39,Jr=40,zn=41,V0=95,ve=45,P0=33,G0=60,z0=62,X0=64,$0=91,W0=93,Y0=61,J0=123,Zr=63,Z0=125,Tl=124,j0=126,q0=128,Ml=65533,Fi=42,Mt=43,AC=44,eC=58,tC=59,Xn=46,nC=0,rC=8,oC=11,iC=14,sC=31,aC=127,Xe=-1,Ol=48,Kl=97,Rl=101,lC=102,cC=117,uC=122,Vl=65,Pl=69,Gl=70,dC=85,fC=90,pe=function(s){return s>=Ol&&s<=57},gC=function(s){return s>=55296&&s<=57343},rn=function(s){return pe(s)||s>=Vl&&s<=Gl||s>=Kl&&s<=lC},hC=function(s){return s>=Kl&&s<=uC},BC=function(s){return s>=Vl&&s<=fC},pC=function(s){return hC(s)||BC(s)},mC=function(s){return s>=q0},jr=function(s){return s===$r||s===T0||s===M0},qr=function(s){return pC(s)||mC(s)||s===V0},zl=function(s){return qr(s)||pe(s)||s===ve},wC=function(s){return s>=nC&&s<=rC||s===oC||s>=iC&&s<=sC||s===aC},Ct=function(s,i){return s!==Pn?!1:i!==$r},Ao=function(s,i,c){return s===ve?qr(i)||Ct(i,c):qr(s)?!0:!!(s===Pn&&Ct(s,i))},Ui=function(s,i,c){return s===Mt||s===ve?pe(i)?!0:i===Xn&&pe(c):pe(s===Xn?i:s)},CC=function(s){var i=0,c=1;(s[i]===Mt||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]===Xn&&i++;for(var p=[];pe(s[i]);)p.push(s[i++]);var C=p.length,v=C?parseInt(m.apply(void 0,p),10):0;(s[i]===Pl||s[i]===Rl)&&i++;var E=1;(s[i]===Mt||s[i]===ve)&&(s[i]===ve&&(E=-1),i++);for(var k=[];pe(s[i]);)k.push(s[i++]);var K=k.length?parseInt(m.apply(void 0,k),10):0;return c*(f+v*Math.pow(10,-C))*Math.pow(10,E*K)},yC={type:2},vC={type:3},QC={type:4},EC={type:13},FC={type:8},UC={type:21},bC={type:9},HC={type:10},IC={type:11},_C={type:12},SC={type:14},eo={type:23},xC={type:1},DC={type:25},NC={type:24},LC={type:26},kC={type:27},TC={type:28},MC={type:29},OC={type:31},bi={type:32},Xl=(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!==bi;)i.push(c),c=this.consumeToken();return i},s.prototype.consumeToken=function(){var i=this.consumeCodePoint();switch(i){case Wr:return this.consumeStringToken(Wr);case O0:var c=this.peekCodePoint(0),l=this.peekCodePoint(1),f=this.peekCodePoint(2);if(zl(c)||Ct(l,f)){var p=Ao(c,l,f)?k0:L0,C=this.consumeName();return{type:5,value:C,flags:p}}break;case K0:if(this.peekCodePoint(0)===Gn)return this.consumeCodePoint(),EC;break;case Yr:return this.consumeStringToken(Yr);case Jr:return yC;case zn:return vC;case Fi:if(this.peekCodePoint(0)===Gn)return this.consumeCodePoint(),SC;break;case Mt:if(Ui(i,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(i),this.consumeNumericToken();break;case AC:return QC;case ve:var v=i,E=this.peekCodePoint(0),k=this.peekCodePoint(1);if(Ui(v,E,k))return this.reconsumeCodePoint(i),this.consumeNumericToken();if(Ao(v,E,k))return this.reconsumeCodePoint(i),this.consumeIdentLikeToken();if(E===ve&&k===z0)return this.consumeCodePoint(),this.consumeCodePoint(),NC;break;case Xn:if(Ui(i,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(i),this.consumeNumericToken();break;case kl:if(this.peekCodePoint(0)===Fi)for(this.consumeCodePoint();;){var K=this.consumeCodePoint();if(K===Fi&&(K=this.consumeCodePoint(),K===kl))return this.consumeToken();if(K===Xe)return this.consumeToken()}break;case eC:return LC;case tC:return kC;case G0:if(this.peekCodePoint(0)===P0&&this.peekCodePoint(1)===ve&&this.peekCodePoint(2)===ve)return this.consumeCodePoint(),this.consumeCodePoint(),DC;break;case X0:if(Ao(this.peekCodePoint(0),this.peekCodePoint(1),this.peekCodePoint(2))){var C=this.consumeName();return{type:7,value:C}}break;case $0:return TC;case Pn:if(Ct(i,this.peekCodePoint(0)))return this.reconsumeCodePoint(i),this.consumeIdentLikeToken();break;case W0:return MC;case Y0:if(this.peekCodePoint(0)===Gn)return this.consumeCodePoint(),FC;break;case J0:return IC;case Z0:return _C;case cC:case dC:var z=this.peekCodePoint(0),q=this.peekCodePoint(1);return z===Mt&&(rn(q)||q===Zr)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(i),this.consumeIdentLikeToken();case Tl:if(this.peekCodePoint(0)===Gn)return this.consumeCodePoint(),bC;if(this.peekCodePoint(0)===Tl)return this.consumeCodePoint(),UC;break;case j0:if(this.peekCodePoint(0)===Gn)return this.consumeCodePoint(),HC;break;case Xe:return bi}return jr(i)?(this.consumeWhiteSpace(),OC):pe(i)?(this.reconsumeCodePoint(i),this.consumeNumericToken()):qr(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();rn(c)&&i.length<6;)i.push(c),c=this.consumeCodePoint();for(var l=!1;c===Zr&&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===Zr?Ol:E})),16),p=parseInt(m.apply(void 0,i.map(function(E){return E===Zr?Gl:E})),16);return{type:30,start:f,end:p}}var C=parseInt(m.apply(void 0,i),16);if(this.peekCodePoint(0)===ve&&rn(this.peekCodePoint(1))){this.consumeCodePoint(),c=this.consumeCodePoint();for(var v=[];rn(c)&&v.length<6;)v.push(c),c=this.consumeCodePoint();var p=parseInt(m.apply(void 0,v),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)===Jr?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Jr?(this.consumeCodePoint(),{type:19,value:i}):{type:20,value:i}},s.prototype.consumeUrlToken=function(){var i=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Xe)return{type:22,value:""};var c=this.peekCodePoint(0);if(c===Yr||c===Wr){var l=this.consumeStringToken(this.consumeCodePoint());return l.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Xe||this.peekCodePoint(0)===zn)?(this.consumeCodePoint(),{type:22,value:l.value}):(this.consumeBadUrlRemnants(),eo)}for(;;){var f=this.consumeCodePoint();if(f===Xe||f===zn)return{type:22,value:m.apply(void 0,i)};if(jr(f))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Xe||this.peekCodePoint(0)===zn?(this.consumeCodePoint(),{type:22,value:m.apply(void 0,i)}):(this.consumeBadUrlRemnants(),eo);if(f===Wr||f===Yr||f===Jr||wC(f))return this.consumeBadUrlRemnants(),eo;if(f===Pn)if(Ct(f,this.peekCodePoint(0)))i.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),eo;else i.push(f)}},s.prototype.consumeWhiteSpace=function(){for(;jr(this.peekCodePoint(0));)this.consumeCodePoint()},s.prototype.consumeBadUrlRemnants=function(){for(;;){var i=this.consumeCodePoint();if(i===zn||i===Xe)return;Ct(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===Xe||f===void 0||f===i)return c+=this.consumeStringSlice(l),{type:0,value:c};if(f===$r)return this._value.splice(0,l),xC;if(f===Pn){var p=this._value[l+1];p!==Xe&&p!==void 0&&(p===$r?(c+=this.consumeStringSlice(l),l=-1,this._value.shift()):Ct(f,p)&&(c+=this.consumeStringSlice(l),c+=m(this.consumeEscapedCodePoint()),l=-1))}l++}while(!0)},s.prototype.consumeNumber=function(){var i=[],c=Vn,l=this.peekCodePoint(0);for((l===Mt||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===Xn&&pe(f))for(i.push(this.consumeCodePoint(),this.consumeCodePoint()),c=Ll;pe(this.peekCodePoint(0));)i.push(this.consumeCodePoint());l=this.peekCodePoint(0),f=this.peekCodePoint(1);var p=this.peekCodePoint(2);if((l===Pl||l===Rl)&&((f===Mt||f===ve)&&pe(p)||pe(f)))for(i.push(this.consumeCodePoint(),this.consumeCodePoint()),c=Ll;pe(this.peekCodePoint(0));)i.push(this.consumeCodePoint());return[CC(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===R0?(this.consumeCodePoint(),{type:16,number:c,flags:l}):{type:17,number:c,flags:l}},s.prototype.consumeEscapedCodePoint=function(){var i=this.consumeCodePoint();if(rn(i)){for(var c=m(i);rn(this.peekCodePoint(0))&&c.length<6;)c+=m(this.consumeCodePoint());jr(this.peekCodePoint(0))&&this.consumeCodePoint();var l=parseInt(c,16);return l===0||gC(l)||l>1114111?Ml:l}return i===Xe?Ml:i},s.prototype.consumeName=function(){for(var i="";;){var c=this.consumeCodePoint();if(zl(c))i+=m(c);else if(Ct(c,this.peekCodePoint(0)))i+=m(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(c),i}},s})(),$l=(function(){function s(i){this._tokens=i}return s.create=function(i){var c=new Xl;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||RC(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"?bi:i},s.prototype.reconsumeToken=function(i){this._tokens.unshift(i)},s})(),$n=function(s){return s.type===15},on=function(s){return s.type===17},JA=function(s){return s.type===20},KC=function(s){return s.type===0},Hi=function(s,i){return JA(s)&&s.value===i},Wl=function(s){return s.type!==31},sn=function(s){return s.type!==31&&s.type!==4},$e=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},RC=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},le=function(s){return s.type===16||yt(s)},Yl=function(s){return s.length>1?[s[0],s[1]]:[s[0]]},ge={type:17,number:0,flags:Vn},Ii={type:16,number:50,flags:Vn},vt={type:16,number:100,flags:Vn},Wn=function(s,i,c){var l=s[0],f=s[1];return[jA(l,i),jA(typeof f<"u"?f:l,c)]},jA=function(s,i){if(s.type===16)return s.number/100*i;if($n(s))switch(s.unit){case"rem":case"em":return 16*s.number;default:return s.number}return s.number},Jl="deg",Zl="grad",jl="rad",ql="turn",to={name:"angle",parse:function(s,i){if(i.type===15)switch(i.unit){case Jl:return Math.PI*i.number/180;case Zl:return Math.PI/200*i.number;case jl:return i.number;case ql:return Math.PI*2*i.number}throw new Error("Unsupported angle type")}},Ac=function(s){return s.type===15&&(s.unit===Jl||s.unit===Zl||s.unit===jl||s.unit===ql)},ec=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,vt];case"to right":case"left":return _e(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[vt,vt];case"to bottom":case"top":return _e(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[vt,ge];case"to left":case"right":return _e(270)}return 0},_e=function(s){return Math.PI*s/180},Qt={name:"color",parse:function(s,i){if(i.type===18){var c=VC[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 Ft(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 Ft(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 Ft(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 Ft(parseInt(l,16),parseInt(f,16),parseInt(p,16),parseInt(C,16)/255)}}if(i.type===20){var v=at[i.value.toUpperCase()];if(typeof v<"u")return v}return at.TRANSPARENT}},Et=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+")"},Ft=function(s,i,c,l){return(s<<24|i<<16|c<<8|Math.round(l*255)<<0)>>>0},tc=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},nc=function(s,i){var c=i.filter(sn);if(c.length===3){var l=c.map(tc),f=l[0],p=l[1],C=l[2];return Ft(f,p,C,1)}if(c.length===4){var v=c.map(tc),f=v[0],p=v[1],C=v[2],E=v[3];return Ft(f,p,C,E)}return 0};function _i(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 rc=function(s,i){var c=i.filter(sn),l=c[0],f=c[1],p=c[2],C=c[3],v=(l.type===17?_e(l.number):to.parse(s,l))/(Math.PI*2),E=le(f)?f.number/100:0,k=le(p)?p.number/100:0,K=typeof C<"u"&&le(C)?jA(C,1):1;if(E===0)return Ft(k*255,k*255,k*255,1);var z=k<=.5?k*(E+1):k+E-k*E,q=k*2-z,CA=_i(q,z,v+1/3),fA=_i(q,z,v),mA=_i(q,z,v-1/3);return Ft(CA*255,fA*255,mA*255,K)},VC={hsl:rc,hsla:rc,rgb:nc,rgba:nc},Yn=function(s,i){return Qt.parse(s,$l.create(i).parseComponentValue())},at={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},PC={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})}},GC={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},no=function(s,i){var c=Qt.parse(s,i[0]),l=i[1];return l&&le(l)?{color:c,stop:l}:{color:c,stop:null}},oc=function(s,i){var c=s[0],l=s[s.length-1];c.stop===null&&(c.stop=ge),l.stop===null&&(l.stop=vt);for(var f=[],p=0,C=0;C<s.length;C++){var v=s[C].stop;if(v!==null){var E=jA(v,i);E>p?f.push(E):f.push(p),p=E}else f.push(null)}for(var k=null,C=0;C<f.length;C++){var K=f[C];if(K===null)k===null&&(k=C);else if(k!==null){for(var z=C-k,q=(K-f[k-1])/(z+1),CA=1;CA<=z;CA++)f[k+CA-1]=q*CA;k=null}}return s.map(function(fA,mA){return{color:fA.color,stop:Math.max(Math.min(1,f[mA]/i),0)}})},zC=function(s,i,c){var l=i/2,f=c/2,p=jA(s[0],i)-l,C=f-jA(s[1],c);return(Math.atan2(C,p)+Math.PI*2)%(Math.PI*2)},XC=function(s,i,c){var l=typeof s=="number"?s:zC(s,i,c),f=Math.abs(i*Math.sin(l))+Math.abs(c*Math.cos(l)),p=i/2,C=c/2,v=f/2,E=Math.sin(l-Math.PI/2)*v,k=Math.cos(l-Math.PI/2)*v;return[f,p-k,p+k,C-E,C+E]},Oe=function(s,i){return Math.sqrt(s*s+i*i)},ic=function(s,i,c,l,f){return[[0,0],[0,i],[s,0],[s,i]].reduce(function(p,C){var v=C[0],E=C[1],k=Oe(c-v,l-E);return(f?k<p.optimumDistance:k>p.optimumDistance)?{optimumCorner:C,optimumDistance:k}:p},{optimumDistance:f?1/0:-1/0,optimumCorner:null}).optimumCorner},$C=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(Oe(i,c),Oe(i,c-f),Oe(i-l,c),Oe(i-l,c-f));else if(s.shape===1){var v=Math.min(Math.abs(c),Math.abs(c-f))/Math.min(Math.abs(i),Math.abs(i-l)),E=ic(l,f,i,c,!0),k=E[0],K=E[1];p=Oe(k-i,(K-c)/v),C=v*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(Oe(i,c),Oe(i,c-f),Oe(i-l,c),Oe(i-l,c-f));else if(s.shape===1){var v=Math.max(Math.abs(c),Math.abs(c-f))/Math.max(Math.abs(i),Math.abs(i-l)),z=ic(l,f,i,c,!1),k=z[0],K=z[1];p=Oe(k-i,(K-c)/v),C=v*p}break}return Array.isArray(s.size)&&(p=jA(s.size[0],l),C=s.size.length===2?jA(s.size[1],f):p),[p,C]},WC=function(s,i){var c=_e(180),l=[];return $e(i).forEach(function(f,p){if(p===0){var C=f[0];if(C.type===20&&C.value==="to"){c=ec(f);return}else if(Ac(C)){c=to.parse(s,C);return}}var v=no(s,f);l.push(v)}),{angle:c,stops:l,type:1}},ro=function(s,i){var c=_e(180),l=[];return $e(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=ec(f);return}else if(Ac(C)){c=(to.parse(s,C)+_e(270))%_e(360);return}}var v=no(s,f);l.push(v)}),{angle:c,stops:l,type:1}},YC=function(s,i){var c=_e(180),l=[],f=1,p=0,C=3,v=[];return $e(i).forEach(function(E,k){var K=E[0];if(k===0){if(JA(K)&&K.value==="linear"){f=1;return}else if(JA(K)&&K.value==="radial"){f=2;return}}if(K.type===18){if(K.name==="from"){var z=Qt.parse(s,K.values[0]);l.push({stop:ge,color:z})}else if(K.name==="to"){var z=Qt.parse(s,K.values[0]);l.push({stop:vt,color:z})}else if(K.name==="color-stop"){var q=K.values.filter(sn);if(q.length===2){var z=Qt.parse(s,q[1]),CA=q[0];on(CA)&&l.push({stop:{type:16,number:CA.number*100,flags:CA.flags},color:z})}}}}),f===1?{angle:(c+_e(180))%_e(360),stops:l,type:f}:{size:C,shape:p,stops:l,position:v,type:f}},sc="closest-side",ac="farthest-side",lc="closest-corner",cc="farthest-corner",uc="circle",dc="ellipse",fc="cover",gc="contain",JC=function(s,i){var c=0,l=3,f=[],p=[];return $e(i).forEach(function(C,v){var E=!0;if(v===0){var k=!1;E=C.reduce(function(z,q){if(k)if(JA(q))switch(q.value){case"center":return p.push(Ii),z;case"top":case"left":return p.push(ge),z;case"right":case"bottom":return p.push(vt),z}else(le(q)||yt(q))&&p.push(q);else if(JA(q))switch(q.value){case uc:return c=0,!1;case dc:return c=1,!1;case"at":return k=!0,!1;case sc:return l=0,!1;case fc:case ac:return l=1,!1;case gc:case lc:return l=2,!1;case cc:return l=3,!1}else if(yt(q)||le(q))return Array.isArray(l)||(l=[]),l.push(q),!1;return z},E)}if(E){var K=no(s,C);f.push(K)}}),{size:l,shape:c,stops:f,position:p,type:2}},oo=function(s,i){var c=0,l=3,f=[],p=[];return $e(i).forEach(function(C,v){var E=!0;if(v===0?E=C.reduce(function(K,z){if(JA(z))switch(z.value){case"center":return p.push(Ii),!1;case"top":case"left":return p.push(ge),!1;case"right":case"bottom":return p.push(vt),!1}else if(le(z)||yt(z))return p.push(z),!1;return K},E):v===1&&(E=C.reduce(function(K,z){if(JA(z))switch(z.value){case uc:return c=0,!1;case dc:return c=1,!1;case gc:case sc:return l=0,!1;case ac:return l=1,!1;case lc:return l=2,!1;case fc:case cc:return l=3,!1}else if(yt(z)||le(z))return Array.isArray(l)||(l=[]),l.push(z),!1;return K},E)),E){var k=no(s,C);f.push(k)}}),{size:l,shape:c,stops:f,position:p,type:2}},ZC=function(s){return s.type===1},jC=function(s){return s.type===2},Si={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=hc[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 qC(s){return!(s.type===20&&s.value==="none")&&(s.type!==18||!!hc[s.name])}var hc={"linear-gradient":WC,"-moz-linear-gradient":ro,"-ms-linear-gradient":ro,"-o-linear-gradient":ro,"-webkit-linear-gradient":ro,"radial-gradient":JC,"-moz-radial-gradient":oo,"-ms-radial-gradient":oo,"-o-radial-gradient":oo,"-webkit-radial-gradient":oo,"-webkit-gradient":YC},Ay={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 sn(l)&&qC(l)}).map(function(l){return Si.parse(s,l)})}},ey={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})}},ty={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(s,i){return $e(i).map(function(c){return c.filter(le)}).map(Yl)}},ny={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(s,i){return $e(i).map(function(c){return c.filter(JA).map(function(l){return l.value}).join(" ")}).map(ry)}},ry=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}},an;(function(s){s.AUTO="auto",s.CONTAIN="contain",s.COVER="cover"})(an||(an={}));var oy={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(s,i){return $e(i).map(function(c){return c.filter(iy)})}},iy=function(s){return JA(s)||le(s)},io=function(s){return{name:"border-"+s+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},sy=io("top"),ay=io("right"),ly=io("bottom"),cy=io("left"),so=function(s){return{name:"border-radius-"+s,initialValue:"0 0",prefix:!1,type:1,parse:function(i,c){return Yl(c.filter(le))}}},uy=so("top-left"),dy=so("top-right"),fy=so("bottom-right"),gy=so("bottom-left"),ao=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}}},hy=ao("top"),By=ao("right"),py=ao("bottom"),my=ao("left"),lo=function(s){return{name:"border-"+s+"-width",initialValue:"0",type:0,prefix:!1,parse:function(i,c){return $n(c)?c.number:0}}},wy=lo("top"),Cy=lo("right"),yy=lo("bottom"),vy=lo("left"),Qy={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ey={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(s,i){return i==="rtl"?1:0}},Fy={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(s,i){return i.filter(JA).reduce(function(c,l){return c|Uy(l.value)},0)}},Uy=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},by={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}},Hy={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 Iy={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){return i==="strict"?co.STRICT:co.NORMAL}},_y={name:"line-height",initialValue:"normal",prefix:!1,type:4},Bc=function(s,i){return JA(s)&&s.value==="normal"?1.2*i:s.type===17?i*s.number:le(s)?jA(s,i):i},Sy={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(s,i){return i.type===20&&i.value==="none"?null:Si.parse(s,i)}},xy={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(s,i){return i==="inside"?0:1}},xi={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}}},uo=function(s){return{name:"margin-"+s,initialValue:"0",prefix:!1,type:4}},Dy=uo("top"),Ny=uo("right"),Ly=uo("bottom"),ky=uo("left"),Ty={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}})}},My={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){return i==="break-word"?"break-word":"normal"}},fo=function(s){return{name:"padding-"+s,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Oy=fo("top"),Ky=fo("right"),Ry=fo("bottom"),Vy=fo("left"),Py={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}}},Gy={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}},zy={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(s,i){return i.length===1&&Hi(i[0],"none")?[]:$e(i).map(function(c){for(var l={color:at.TRANSPARENT,offsetX:ge,offsetY:ge,blur:ge},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=Qt.parse(s,C)}return l})}},Xy={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}},$y={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=Jy[i.name];if(typeof c>"u")throw new Error('Attempting to parse an unsupported transform function "'+i.name+'"');return c(i.values)}return null}},Wy=function(s){var i=s.filter(function(c){return c.type===17}).map(function(c){return c.number});return i.length===6?i:null},Yy=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],v=i[13];return i[14],i[15],i.length===16?[c,l,f,p,C,v]:null},Jy={matrix:Wy,matrix3d:Yy},pc={type:16,number:50,flags:Vn},Zy=[pc,pc],jy={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(s,i){var c=i.filter(le);return c.length!==2?Zy:[c[0],c[1]]}},qy={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}}},Jn;(function(s){s.NORMAL="normal",s.BREAK_ALL="break-all",s.KEEP_ALL="keep-all"})(Jn||(Jn={}));for(var Av={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){switch(i){case"break-all":return Jn.BREAK_ALL;case"keep-all":return Jn.KEEP_ALL;default:return Jn.NORMAL}}},ev={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(s,i){if(i.type===20)return{auto:!0,order:0};if(on(i))return{auto:!1,order:i.number};throw new Error("Invalid z-index number parsed")}},mc={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")}},tv={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(s,i){return on(i)?i.number:1}},nv={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},rv={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})}},ov={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+"'"})}},iv={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},sv={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(s,i){return on(i)?i.number:JA(i)&&i.value==="bold"?700:400}},av={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(s,i){return i.filter(JA).map(function(c){return c.value})}},lv={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},cv={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}},uv={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(Wl),p=0;p<f.length;p++){var C=f[p],v=f[p+1];if(C.type===20){var E=v&&on(v)?v.number:1;l.push({counter:C.value,increment:E})}}return l}},dv={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(s,i){if(i.length===0)return[];for(var c=[],l=i.filter(Wl),f=0;f<l.length;f++){var p=l[f],C=l[f+1];if(JA(p)&&p.value!=="none"){var v=C&&on(C)?C.number:0;c.push({counter:p.value,reset:v})}}return c}},fv={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(s,i){return i.filter($n).map(function(c){return mc.parse(s,c)})}},gv={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(KC);if(f.length%2!==0)return null;for(var p=0;p<f.length;p+=2){var C=f[p].value,v=f[p+1].value;l.push({open:C,close:v})}return l}},wc=function(s,i,c){if(!s)return"";var l=s[Math.min(i,s.length-1)];return l?c?l.open:l.close:""},hv={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(s,i){return i.length===1&&Hi(i[0],"none")?[]:$e(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];Hi(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=Qt.parse(s,C)}return l})}},Bv={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}},pv={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},mv={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(s,i){return $n(i)?i.number:0}},wv=(function(){function s(i,c){var l,f;this.animationDuration=EA(i,fv,c.animationDuration),this.backgroundClip=EA(i,PC,c.backgroundClip),this.backgroundColor=EA(i,GC,c.backgroundColor),this.backgroundImage=EA(i,Ay,c.backgroundImage),this.backgroundOrigin=EA(i,ey,c.backgroundOrigin),this.backgroundPosition=EA(i,ty,c.backgroundPosition),this.backgroundRepeat=EA(i,ny,c.backgroundRepeat),this.backgroundSize=EA(i,oy,c.backgroundSize),this.borderTopColor=EA(i,sy,c.borderTopColor),this.borderRightColor=EA(i,ay,c.borderRightColor),this.borderBottomColor=EA(i,ly,c.borderBottomColor),this.borderLeftColor=EA(i,cy,c.borderLeftColor),this.borderTopLeftRadius=EA(i,uy,c.borderTopLeftRadius),this.borderTopRightRadius=EA(i,dy,c.borderTopRightRadius),this.borderBottomRightRadius=EA(i,fy,c.borderBottomRightRadius),this.borderBottomLeftRadius=EA(i,gy,c.borderBottomLeftRadius),this.borderTopStyle=EA(i,hy,c.borderTopStyle),this.borderRightStyle=EA(i,By,c.borderRightStyle),this.borderBottomStyle=EA(i,py,c.borderBottomStyle),this.borderLeftStyle=EA(i,my,c.borderLeftStyle),this.borderTopWidth=EA(i,wy,c.borderTopWidth),this.borderRightWidth=EA(i,Cy,c.borderRightWidth),this.borderBottomWidth=EA(i,yy,c.borderBottomWidth),this.borderLeftWidth=EA(i,vy,c.borderLeftWidth),this.boxShadow=EA(i,hv,c.boxShadow),this.color=EA(i,Qy,c.color),this.direction=EA(i,Ey,c.direction),this.display=EA(i,Fy,c.display),this.float=EA(i,by,c.cssFloat),this.fontFamily=EA(i,ov,c.fontFamily),this.fontSize=EA(i,iv,c.fontSize),this.fontStyle=EA(i,lv,c.fontStyle),this.fontVariant=EA(i,av,c.fontVariant),this.fontWeight=EA(i,sv,c.fontWeight),this.letterSpacing=EA(i,Hy,c.letterSpacing),this.lineBreak=EA(i,Iy,c.lineBreak),this.lineHeight=EA(i,_y,c.lineHeight),this.listStyleImage=EA(i,Sy,c.listStyleImage),this.listStylePosition=EA(i,xy,c.listStylePosition),this.listStyleType=EA(i,xi,c.listStyleType),this.marginTop=EA(i,Dy,c.marginTop),this.marginRight=EA(i,Ny,c.marginRight),this.marginBottom=EA(i,Ly,c.marginBottom),this.marginLeft=EA(i,ky,c.marginLeft),this.opacity=EA(i,tv,c.opacity);var p=EA(i,Ty,c.overflow);this.overflowX=p[0],this.overflowY=p[p.length>1?1:0],this.overflowWrap=EA(i,My,c.overflowWrap),this.paddingTop=EA(i,Oy,c.paddingTop),this.paddingRight=EA(i,Ky,c.paddingRight),this.paddingBottom=EA(i,Ry,c.paddingBottom),this.paddingLeft=EA(i,Vy,c.paddingLeft),this.paintOrder=EA(i,Bv,c.paintOrder),this.position=EA(i,Gy,c.position),this.textAlign=EA(i,Py,c.textAlign),this.textDecorationColor=EA(i,nv,(l=c.textDecorationColor)!==null&&l!==void 0?l:c.color),this.textDecorationLine=EA(i,rv,(f=c.textDecorationLine)!==null&&f!==void 0?f:c.textDecoration),this.textShadow=EA(i,zy,c.textShadow),this.textTransform=EA(i,Xy,c.textTransform),this.transform=EA(i,$y,c.transform),this.transformOrigin=EA(i,jy,c.transformOrigin),this.visibility=EA(i,qy,c.visibility),this.webkitTextStrokeColor=EA(i,pv,c.webkitTextStrokeColor),this.webkitTextStrokeWidth=EA(i,mv,c.webkitTextStrokeWidth),this.wordBreak=EA(i,Av,c.wordBreak),this.zIndex=EA(i,ev,c.zIndex)}return s.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},s.prototype.isTransparent=function(){return Et(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})(),Cv=(function(){function s(i,c){this.content=EA(i,cv,c.content),this.quotes=EA(i,gv,c.quotes)}return s})(),Cc=(function(){function s(i,c){this.counterIncrement=EA(i,uv,c.counterIncrement),this.counterReset=EA(i,dv,c.counterReset)}return s})(),EA=function(s,i,c){var l=new Xl,f=c!==null&&typeof c<"u"?c.toString():i.initialValue;l.write(f);var p=new $l(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 to.parse(s,p.parseComponentValue());case"color":return Qt.parse(s,p.parseComponentValue());case"image":return Si.parse(s,p.parseComponentValue());case"length":var v=p.parseComponentValue();return yt(v)?v:ge;case"length-percentage":var E=p.parseComponentValue();return le(E)?E:ge;case"time":return mc.parse(s,p.parseComponentValue())}break}},yv="data-html2canvas-debug",vv=function(s){switch(s.getAttribute(yv)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Di=function(s,i){var c=vv(s);return c===1||i===c},We=(function(){function s(i,c){if(this.context=i,this.textNodes=[],this.elements=[],this.flags=0,Di(c,3))debugger;this.styles=new wv(i,window.getComputedStyle(c,null)),$i(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),Di(c,4)&&(this.flags|=16)}return s})(),Qv="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACA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U0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAA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ADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWK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AAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",yc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zn=typeof Uint8Array>"u"?[]:new Uint8Array(256),go=0;go<yc.length;go++)Zn[yc.charCodeAt(go)]=go;for(var Ev=function(s){var i=s.length*.75,c=s.length,l,f=0,p,C,v,E;s[s.length-1]==="="&&(i--,s[s.length-2]==="="&&i--);var k=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(i):new Array(i),K=Array.isArray(k)?k:new Uint8Array(k);for(l=0;l<c;l+=4)p=Zn[s.charCodeAt(l)],C=Zn[s.charCodeAt(l+1)],v=Zn[s.charCodeAt(l+2)],E=Zn[s.charCodeAt(l+3)],K[f++]=p<<2|C>>4,K[f++]=(C&15)<<4|v>>2,K[f++]=(v&3)<<6|E&63;return k},Fv=function(s){for(var i=s.length,c=[],l=0;l<i;l+=2)c.push(s[l+1]<<8|s[l]);return c},Uv=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},Ot=5,Ni=11,Li=2,bv=Ni-Ot,vc=65536>>Ot,ki=(1<<Ot)-1,Hv=vc+(1024>>Ot)+32,Iv=65536>>Ni,_v=(1<<bv)-1,Qc=function(s,i,c){return s.slice?s.slice(i,c):new Uint16Array(Array.prototype.slice.call(s,i,c))},Sv=function(s,i,c){return s.slice?s.slice(i,c):new Uint32Array(Array.prototype.slice.call(s,i,c))},xv=function(s,i){var c=Ev(s),l=Array.isArray(c)?Uv(c):new Uint32Array(c),f=Array.isArray(c)?Fv(c):new Uint16Array(c),p=24,C=Qc(f,p/2,l[4]/2),v=l[5]===2?Qc(f,(p+l[4])/2):Sv(l,Math.ceil((p+l[4])/4));return new Dv(l[0],l[1],l[2],l[3],C,v)},Dv=(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>>Ot],c=(c<<Li)+(i&ki),this.data[c];if(i<=65535)return c=this.index[vc+(i-55296>>Ot)],c=(c<<Li)+(i&ki),this.data[c];if(i<this.highStart)return c=Hv-Iv+(i>>Ni),c=this.index[c],c+=i>>Ot&_v,c=this.index[c],c=(c<<Li)+(i&ki),this.data[c];if(i<=1114111)return this.data[this.highValueIndex]}return this.errorValue},s})(),Ec="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Nv=typeof Uint8Array>"u"?[]:new Uint8Array(256),ho=0;ho<Ec.length;ho++)Nv[Ec.charCodeAt(ho)]=ho;var Lv=1,Ti=2,Mi=3,Fc=4,Uc=5,kv=7,bc=8,Oi=9,Ki=10,Hc=11,Ic=12,_c=13,Sc=14,Ri=15,Tv=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},Mv=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},Ov=xv(Qv),Se="×",Vi="÷",Kv=function(s){return Ov.get(s)},Rv=function(s,i,c){var l=c-2,f=i[l],p=i[c-1],C=i[c];if(p===Ti&&C===Mi)return Se;if(p===Ti||p===Mi||p===Fc||C===Ti||C===Mi||C===Fc)return Vi;if(p===bc&&[bc,Oi,Hc,Ic].indexOf(C)!==-1||(p===Hc||p===Oi)&&(C===Oi||C===Ki)||(p===Ic||p===Ki)&&C===Ki||C===_c||C===Uc||C===kv||p===Lv)return Se;if(p===_c&&C===Sc){for(;f===Uc;)f=i[--l];if(f===Sc)return Se}if(p===Ri&&C===Ri){for(var v=0;f===Ri;)v++,f=i[--l];if(v%2===0)return Se}return Vi},Vv=function(s){var i=Tv(s),c=i.length,l=0,f=0,p=i.map(Kv);return{next:function(){if(l>=c)return{done:!0,value:null};for(var C=Se;l<c&&(C=Rv(i,p,++l))===Se;);if(C!==Se||l===c){var v=Mv.apply(null,i.slice(f,l));return f=l,{value:v,done:!1}}return{done:!0,value:null}}}},Pv=function(s){for(var i=Vv(s),c=[],l;!(l=i.next()).done;)l.value&&c.push(l.value.slice());return c},Gv=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},zv=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={},v=f.every(function(E,k){c.setStart(l,p),c.setEnd(l,p+E.length);var K=c.getBoundingClientRect();p+=E.length;var z=K.x>C.x||K.y>C.y;return C=K,k===0?!0:z});return s.body.removeChild(i),v},Xv=function(){return typeof new Image().crossOrigin<"u"},$v=function(){return typeof new XMLHttpRequest().responseType=="string"},Wv=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},xc=function(s){return s[0]===0&&s[1]===255&&s[2]===0&&s[3]===255},Yv=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=Pi(c,c,0,0,f);return l.fillStyle="red",l.fillRect(0,0,c,c),Dc(C).then(function(v){l.drawImage(v,0,0);var E=l.getImageData(0,0,c,c).data;l.fillStyle="red",l.fillRect(0,0,c,c);var k=s.createElement("div");return k.style.backgroundImage="url("+p+")",k.style.height=c+"px",xc(E)?Dc(Pi(c,c,0,0,k)):Promise.reject(!1)}).then(function(v){return l.drawImage(v,0,0),xc(l.getImageData(0,0,c,c).data)}).catch(function(){return!1})},Pi=function(s,i,c,l,f){var p="http://www.w3.org/2000/svg",C=document.createElementNS(p,"svg"),v=document.createElementNS(p,"foreignObject");return C.setAttributeNS(null,"width",s.toString()),C.setAttributeNS(null,"height",i.toString()),v.setAttributeNS(null,"width","100%"),v.setAttributeNS(null,"height","100%"),v.setAttributeNS(null,"x",c.toString()),v.setAttributeNS(null,"y",l.toString()),v.setAttributeNS(null,"externalResourcesRequired","true"),C.appendChild(v),v.appendChild(f),C},Dc=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=Gv(document);return Object.defineProperty(he,"SUPPORT_RANGE_BOUNDS",{value:s}),s},get SUPPORT_WORD_BREAKING(){var s=he.SUPPORT_RANGE_BOUNDS&&zv(document);return Object.defineProperty(he,"SUPPORT_WORD_BREAKING",{value:s}),s},get SUPPORT_SVG_DRAWING(){var s=Wv(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"?Yv(document):Promise.resolve(!1);return Object.defineProperty(he,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:s}),s},get SUPPORT_CORS_IMAGES(){var s=Xv();return Object.defineProperty(he,"SUPPORT_CORS_IMAGES",{value:s}),s},get SUPPORT_RESPONSE_TYPE(){var s=$v();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}},jn=(function(){function s(i,c){this.text=i,this.bounds=c}return s})(),Jv=function(s,i,c,l){var f=qv(i,c),p=[],C=0;return f.forEach(function(v){if(c.textDecorationLine.length||v.trim().length>0)if(he.SUPPORT_RANGE_BOUNDS){var E=Nc(l,C,v.length).getClientRects();if(E.length>1){var k=Gi(v),K=0;k.forEach(function(q){p.push(new jn(q,h.fromDOMRectList(s,Nc(l,K+C,q.length).getClientRects()))),K+=q.length})}else p.push(new jn(v,h.fromDOMRectList(s,E)))}else{var z=l.splitText(v.length);p.push(new jn(v,Zv(s,l))),l=z}else he.SUPPORT_RANGE_BOUNDS||(l=l.splitText(v.length));C+=v.length}),p},Zv=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},Nc=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},Gi=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 Pv(s)},jv=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 eQ(s,i)},qv=function(s,i){return i.letterSpacing!==0?Gi(s):jv(s,i)},AQ=[32,160,4961,65792,65793,4153,4241],eQ=function(s,i){for(var c=N0(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()),v="";C.forEach(function(E){AQ.indexOf(E)===-1?v+=m(E):(v.length&&l.push(v),l.push(m(E)),v="")}),v.length&&l.push(v)}};!(f=c.next()).done;)p();return l},tQ=(function(){function s(i,c,l){this.text=nQ(c.data,l.textTransform),this.textBounds=Jv(i,this.text,l,c)}return s})(),nQ=function(s,i){switch(i){case 1:return s.toLowerCase();case 3:return s.replace(rQ,oQ);case 2:return s.toUpperCase();default:return s}},rQ=/(^|\s|:|-|\(|\))([a-z])/g,oQ=function(s,i,c){return s.length>0?i+c.toUpperCase():s},Lc=(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})(We),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})(We),Tc=(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})(We),Mc=(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})(We),zi=(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})(We),iQ=[{type:15,flags:0,unit:"px",number:3}],sQ=[{type:16,flags:0,number:50}],aQ=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},lQ=function(s){var i=s.type===cQ?new Array(s.value.length+1).join("•"):s.value;return i.length===0?s.placeholder||"":i},Bo="checkbox",po="radio",cQ="password",Oc=707406591,Xi=(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=lQ(l),(f.type===Bo||f.type===po)&&(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=aQ(f.bounds)),f.type){case Bo:f.styles.borderTopRightRadius=f.styles.borderTopLeftRadius=f.styles.borderBottomRightRadius=f.styles.borderBottomLeftRadius=iQ;break;case po:f.styles.borderTopRightRadius=f.styles.borderTopLeftRadius=f.styles.borderBottomRightRadius=f.styles.borderBottomLeftRadius=sQ;break}return f}return i})(We),Kc=(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})(We),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})(We),Vc=(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=Gc(c,l.contentWindow.document.documentElement);var p=l.contentWindow.document.documentElement?Yn(c,getComputedStyle(l.contentWindow.document.documentElement).backgroundColor):at.TRANSPARENT,C=l.contentWindow.document.body?Yn(c,getComputedStyle(l.contentWindow.document.body).backgroundColor):at.TRANSPARENT;f.backgroundColor=Et(p)?Et(C)?f.styles.backgroundColor:C:p}}catch{}return f}return i})(We),uQ=["OL","UL","MENU"],mo=function(s,i,c,l){for(var f=i.firstChild,p=void 0;f;f=p)if(p=f.nextSibling,zc(f)&&f.data.trim().length>0)c.textNodes.push(new tQ(s,f,c.styles));else if(ln(f))if(Zc(f)&&f.assignedNodes)f.assignedNodes().forEach(function(v){return mo(s,v,c,l)});else{var C=Pc(s,f);C.styles.isVisible()&&(dQ(f,C,l)?C.flags|=4:fQ(C.styles)&&(C.flags|=2),uQ.indexOf(f.tagName)!==-1&&(C.flags|=8),c.elements.push(C),f.slot,f.shadowRoot?mo(s,f.shadowRoot,C,l):!Co(f)&&!Xc(f)&&!yo(f)&&mo(s,f,C,l))}},Pc=function(s,i){return Yi(i)?new Lc(s,i):$c(i)?new kc(s,i):Xc(i)?new Tc(s,i):gQ(i)?new Mc(s,i):hQ(i)?new zi(s,i):BQ(i)?new Xi(s,i):yo(i)?new Kc(s,i):Co(i)?new Rc(s,i):Yc(i)?new Vc(s,i):new We(s,i)},Gc=function(s,i){var c=Pc(s,i);return c.flags|=4,mo(s,i,c,c),c},dQ=function(s,i,c){return i.styles.isPositionedWithZIndex()||i.styles.opacity<1||i.styles.isTransformed()||Wi(s)&&c.styles.isTransparent()},fQ=function(s){return s.isPositioned()||s.isFloating()},zc=function(s){return s.nodeType===Node.TEXT_NODE},ln=function(s){return s.nodeType===Node.ELEMENT_NODE},$i=function(s){return ln(s)&&typeof s.style<"u"&&!wo(s)},wo=function(s){return typeof s.className=="object"},gQ=function(s){return s.tagName==="LI"},hQ=function(s){return s.tagName==="OL"},BQ=function(s){return s.tagName==="INPUT"},pQ=function(s){return s.tagName==="HTML"},Xc=function(s){return s.tagName==="svg"},Wi=function(s){return s.tagName==="BODY"},$c=function(s){return s.tagName==="CANVAS"},Wc=function(s){return s.tagName==="VIDEO"},Yi=function(s){return s.tagName==="IMG"},Yc=function(s){return s.tagName==="IFRAME"},Jc=function(s){return s.tagName==="STYLE"},mQ=function(s){return s.tagName==="SCRIPT"},Co=function(s){return s.tagName==="TEXTAREA"},yo=function(s){return s.tagName==="SELECT"},Zc=function(s){return s.tagName==="SLOT"},jc=function(s){return s.tagName.indexOf("-")>0},wQ=(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(v){var E=c.counters[v.counter];E&&v.increment!==0&&(p=!1,E.length||E.push(1),E[Math.max(0,E.length-1)]+=v.increment)});var C=[];return p&&f.forEach(function(v){var E=c.counters[v.counter];C.push(v.counter),E||(E=c.counters[v.counter]=[]),E.push(v.reset)}),C},s})(),qc={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"]},Au={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},CQ={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},yQ={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},cn=function(s,i,c,l,f,p){return s<i||s>c?Ar(s,f,p.length>0):l.integers.reduce(function(C,v,E){for(;s>=v;)s-=v,C+=l.values[E];return C},"")+p},eu=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?"-":"")+(eu(Math.abs(s),p,l,function(C){return m(Math.floor(C%p)+i)})+f)},Kt=function(s,i,c){c===void 0&&(c=". ");var l=i.length;return eu(Math.abs(s),l,!1,function(f){return i[Math.floor(f%l)]})+c},un=1,Ut=2,bt=4,qn=8,lt=function(s,i,c,l,f,p){if(s<-9999||s>9999)return Ar(s,4,f.length>0);var C=Math.abs(s),v=f;if(C===0)return i[0]+v;for(var E=0;C>0&&E<=4;E++){var k=C%10;k===0&&de(p,un)&&v!==""?v=i[k]+v:k>1||k===1&&E===0||k===1&&E===1&&de(p,Ut)||k===1&&E===1&&de(p,bt)&&s>100||k===1&&E>1&&de(p,qn)?v=i[k]+(E>0?c[E-1]:"")+v:k===1&&E>0&&(v=c[E-1]+v),C=Math.floor(C/10)}return(s<0?l:"")+v},tu="十百千萬",nu="拾佰仟萬",ru="マイナス",Ji="마이너스",Ar=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 v=oe(s,48,57,!0,l);return v.length<4?"0"+v:v;case 4:return Kt(s,"〇一二三四五六七八九",f);case 6:return cn(s,1,3999,qc,3,l).toLowerCase();case 7:return cn(s,1,3999,qc,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 cn(s,1,9999,Au,3,l);case 35:return cn(s,1,9999,Au,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 Kt(s,"子丑寅卯辰巳午未申酉戌亥",f);case 16:return Kt(s,"甲乙丙丁戊己庚辛壬癸",f);case 17:case 48:return lt(s,"零一二三四五六七八九",tu,"負",f,Ut|bt|qn);case 47:return lt(s,"零壹貳參肆伍陸柒捌玖",nu,"負",f,un|Ut|bt|qn);case 42:return lt(s,"零一二三四五六七八九",tu,"负",f,Ut|bt|qn);case 41:return lt(s,"零壹贰叁肆伍陆柒捌玖",nu,"负",f,un|Ut|bt|qn);case 26:return lt(s,"〇一二三四五六七八九","十百千万",ru,f,0);case 25:return lt(s,"零壱弐参四伍六七八九","拾百千万",ru,f,un|Ut|bt);case 31:return lt(s,"영일이삼사오육칠팔구","십백천만",Ji,p,un|Ut|bt);case 33:return lt(s,"零一二三四五六七八九","十百千萬",Ji,p,0);case 32:return lt(s,"零壹貳參四五六七八九","拾百千",Ji,p,un|Ut|bt);case 18:return oe(s,2406,2415,!0,l);case 20:return cn(s,1,19999,yQ,3,l);case 21:return oe(s,2790,2799,!0,l);case 22:return oe(s,2662,2671,!0,l);case 22:return cn(s,1,10999,CQ,3,l);case 23:return Kt(s,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Kt(s,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return oe(s,3302,3311,!0,l);case 28:return Kt(s,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",f);case 29:return Kt(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)}},ou="data-html2canvas-ignore",iu=(function(){function s(i,c,l){if(this.context=i,this.options=l,this.scrolledElements=[],this.referenceElement=c,this.counters=new wQ,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=vQ(i,c);if(!f.contentWindow)return Promise.reject("Unable to find iframe window");var p=i.defaultView.pageXOffset,C=i.defaultView.pageYOffset,v=f.contentWindow,E=v.document,k=FQ(f).then(function(){return a(l,void 0,void 0,function(){var K,z;return u(this,function(q){switch(q.label){case 0:return this.scrolledElements.forEach(IQ),v&&(v.scrollTo(c.left,c.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(v.scrollY!==c.top||v.scrollX!==c.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(v.scrollX-c.left,v.scrollY-c.top,0,0))),K=this.options.onclone,z=this.clonedReferenceElement,typeof z>"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:q.sent(),q.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,EQ(E)]:[3,4];case 3:q.sent(),q.label=4;case 4:return typeof K=="function"?[2,Promise.resolve().then(function(){return K(E,z)}).then(function(){return f})]:[2,f]}})})});return E.open(),E.write(bQ(document.doctype)+"<html></html>"),HQ(this.referenceElement.ownerDocument,p,C),E.replaceChild(E.adoptNode(this.documentElement),E.documentElement),E.close(),k},s.prototype.createElementClone=function(i){if(Di(i,2))debugger;if($c(i))return this.createCanvasClone(i);if(Wc(i))return this.createVideoClone(i);if(Jc(i))return this.createStyleClone(i);var c=i.cloneNode(!1);return Yi(c)&&(Yi(i)&&i.currentSrc&&i.currentSrc!==i.src&&(c.src=i.currentSrc,c.srcset=""),c.loading==="lazy"&&(c.loading="eager")),jc(c)?this.createCustomElementClone(c):c},s.prototype.createCustomElementClone=function(i){var c=document.createElement("html2canvascustomelement");return Zi(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 v=(c=i.getContext("webgl2"))!==null&&c!==void 0?c:i.getContext("webgl");if(v){var E=v.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){(!ln(c)||!mQ(c)&&!c.hasAttribute(ou)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(c)))&&(!this.options.copyStyles||!ln(c)||!Jc(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(ln(p)&&Zc(p)&&typeof p.assignedNodes=="function"){var C=p.assignedNodes();C.length&&C.forEach(function(v){return f.appendChildNode(c,v,l)})}else this.appendChildNode(c,p,l)},s.prototype.cloneNode=function(i,c){if(zc(i))return document.createTextNode(i.data);if(!i.ownerDocument)return i.cloneNode(!1);var l=i.ownerDocument.defaultView;if(l&&ln(i)&&($i(i)||wo(i))){var f=this.createElementClone(i);f.style.transitionProperty="none";var p=l.getComputedStyle(i),C=l.getComputedStyle(i,":before"),v=l.getComputedStyle(i,":after");this.referenceElement===i&&$i(f)&&(this.clonedReferenceElement=f),Wi(f)&&xQ(f);var E=this.counters.parse(new Cc(this.context,p)),k=this.resolvePseudoContent(i,f,C,er.BEFORE);jc(i)&&(c=!0),Wc(i)||this.cloneChildNodes(i,f,c),k&&f.insertBefore(k,f.firstChild);var K=this.resolvePseudoContent(i,f,v,er.AFTER);return K&&f.appendChild(K),this.counters.pop(E),(p&&(this.options.copyStyles||wo(i))&&!Yc(i)||c)&&Zi(p,f),(i.scrollTop!==0||i.scrollLeft!==0)&&this.scrolledElements.push([f,i.scrollLeft,i.scrollTop]),(Co(i)||yo(i))&&(Co(f)||yo(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,v=c.ownerDocument;if(!(!v||!C||C==="none"||C==="-moz-alt-content"||l.display==="none")){this.counters.parse(new Cc(this.context,l));var E=new Cv(this.context,l),k=v.createElement("html2canvaspseudoelement");Zi(l,k),E.content.forEach(function(z){if(z.type===0)k.appendChild(v.createTextNode(z.value));else if(z.type===22){var q=v.createElement("img");q.src=z.value,q.style.opacity="1",k.appendChild(q)}else if(z.type===18){if(z.name==="attr"){var CA=z.values.filter(JA);CA.length&&k.appendChild(v.createTextNode(i.getAttribute(CA[0].value)||""))}else if(z.name==="counter"){var fA=z.values.filter(sn),mA=fA[0],KA=fA[1];if(mA&&JA(mA)){var DA=p.counters.getCounterValue(mA.value),_A=KA&&JA(KA)?xi.parse(p.context,KA.value):3;k.appendChild(v.createTextNode(Ar(DA,_A,!1)))}}else if(z.name==="counters"){var Ae=z.values.filter(sn),mA=Ae[0],zA=Ae[1],KA=Ae[2];if(mA&&JA(mA)){var kA=p.counters.getCounterValues(mA.value),QA=KA&&JA(KA)?xi.parse(p.context,KA.value):3,VA=zA&&zA.type===0?zA.value:"",PA=kA.map(function(Qe){return Ar(Qe,QA,!1)}).join(VA);k.appendChild(v.createTextNode(PA))}}}else if(z.type===20)switch(z.value){case"open-quote":k.appendChild(v.createTextNode(wc(E.quotes,p.quoteDepth++,!0)));break;case"close-quote":k.appendChild(v.createTextNode(wc(E.quotes,--p.quoteDepth,!1)));break;default:k.appendChild(v.createTextNode(z.value))}}),k.className=ji+" "+qi;var K=f===er.BEFORE?" "+ji:" "+qi;return wo(c)?c.className.baseValue+=K:c.className+=K,k}}},s.destroy=function(i){return i.parentNode?(i.parentNode.removeChild(i),!0):!1},s})(),er;(function(s){s[s.BEFORE=0]="BEFORE",s[s.AFTER=1]="AFTER"})(er||(er={}));var vQ=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(ou,"true"),s.body.appendChild(c),c},QQ=function(s){return new Promise(function(i){if(s.complete){i();return}if(!s.src){i();return}s.onload=i,s.onerror=i})},EQ=function(s){return Promise.all([].slice.call(s.images,0).map(QQ))},FQ=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)}})},UQ=["all","d","content"],Zi=function(s,i){for(var c=s.length-1;c>=0;c--){var l=s.item(c);UQ.indexOf(l)===-1&&i.style.setProperty(l,s.getPropertyValue(l))}return i},bQ=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},HQ=function(s,i,c){s&&s.defaultView&&(i!==s.defaultView.pageXOffset||c!==s.defaultView.pageYOffset)&&s.defaultView.scrollTo(i,c)},IQ=function(s){var i=s[0],c=s[1],l=s[2];i.scrollLeft=c,i.scrollTop=l},_Q=":before",SQ=":after",ji="___html2canvas___pseudoelement_before",qi="___html2canvas___pseudoelement_after",su=`{
|
|
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&&Lw(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,Q,I)=>Math.round(Q+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 Mw=(0,jA.defineComponent)({name:"RulerWrapper",components:{CanvasRuler:zr(Tw,[["render",kw]]),RulerLine:Dw},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}}}),Ow={class:"lines"},Kw={class:"value"};function Rw(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",Ow,[((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",Kw,(0,r.toDisplayString)(e.valueNum),1)],4),[[r.vShow,e.showIndicator]])],6)}var Vw=zr(Mw,[["render",Rw],["__scopeId","data-v-b6c23352"]]),Pw="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",Gw="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=",zw=(0,jA.defineComponent)({name:"SketchRule",components:{RulerWrapper:Vw},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||Pw})`:`url(${e.closeEyeIcon||Gw})`,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}}}),Xw={id:"mb-ruler",class:"style-ruler mb-ruler"};function $w(e,A,t,n,o,a){const u=(0,r.resolveComponent)("RulerWrapper");return(0,r.openBlock)(),(0,r.createElementBlock)("div",Xw,[(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 Yw=zr(zw,[["render",$w]]),Ww=Fu(((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 y(G){try{T(l.next(G))}catch(X){C(X)}}function E(G){try{T(l.throw(G))}catch(X){C(X)}}function T(G){G.done?p(G.value):f(G.value).then(y,E)}T((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:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(C[Symbol.iterator]=function(){return this}),C;function y(T){return function(G){return E([T,G])}}function E(T){if(l)throw new TypeError("Generator is already executing.");for(;c;)try{if(l=1,f&&(p=T[0]&2?f.return:T[0]?f.throw||((p=f.return)&&p.call(f),0):f.next)&&!(p=p.call(f,T[1])).done)return p;switch(f=0,p&&(T=[T[0]&2,p.value]),T[0]){case 0:case 1:p=T;break;case 4:return c.label++,{value:T[1],done:!1};case 5:c.label++,f=T[1],T=[0];continue;case 7:T=c.ops.pop(),c.trys.pop();continue;default:if(p=c.trys,!(p=p.length>0&&p[p.length-1])&&(T[0]===6||T[0]===2)){c=0;continue}if(T[0]===3&&(!p||T[1]>p[0]&&T[1]<p[3])){c.label=T[1];break}if(T[0]===6&&c.label<p[1]){c.label=p[1],p=T;break}if(p&&c.label<p[2]){c.label=p[2],c.ops.push(T);break}p[2]&&c.ops.pop(),c.trys.pop();continue}T=i.call(s,c)}catch(G){T=[6,G],f=0}finally{l=p=0}if(T[0]&5)throw T[1];return{value:T[0]?T[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+/",Q=typeof Uint8Array>"u"?[]:new Uint8Array(256),I=0;I<v.length;I++)Q[v.charCodeAt(I)]=I;for(var L="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N=typeof Uint8Array>"u"?[]:new Uint8Array(256),V=0;V<L.length;V++)N[L.charCodeAt(V)]=V;for(var U=function(s){var i=s.length*.75,c=s.length,l,f=0,p,C,y,E;s[s.length-1]==="="&&(i--,s[s.length-2]==="="&&i--);var T=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(i):new Array(i),G=Array.isArray(T)?T:new Uint8Array(T);for(l=0;l<c;l+=4)p=N[s.charCodeAt(l)],C=N[s.charCodeAt(l+1)],y=N[s.charCodeAt(l+2)],E=N[s.charCodeAt(l+3)],G[f++]=p<<2|C>>4,G[f++]=(C&15)<<4|y>>2,G[f++]=(y&3)<<6|E&63;return T},z=function(s){for(var i=s.length,c=[],l=0;l<i;l+=2)c.push(s[l+1]<<8|s[l]);return c},iA=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},W=5,lA=11,sA=2,nA=lA-W,oA=65536>>W,AA=(1<<W)-1,_=oA+(1024>>W)+32,q=65536>>lA,F=(1<<nA)-1,R=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))},P=function(s,i){var c=U(s),l=Array.isArray(c)?iA(c):new Uint32Array(c),f=Array.isArray(c)?z(c):new Uint16Array(c),p=24,C=R(f,p/2,l[4]/2),y=l[5]===2?R(f,(p+l[4])/2):b(l,Math.ceil((p+l[4])/4));return new M(l[0],l[1],l[2],l[3],C,y)},M=(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>>W],c=(c<<sA)+(i&AA),this.data[c];if(i<=65535)return c=this.index[oA+(i-55296>>W)],c=(c<<sA)+(i&AA),this.data[c];if(i<this.highStart)return c=_-q+(i>>lA),c=this.index[c],c+=i>>W&F,c=this.index[c],c=(c<<sA)+(i&AA),this.data[c];if(i<=1114111)return this.data[this.highValueIndex]}return this.errorValue},s})(),k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",O=typeof Uint8Array>"u"?[]:new Uint8Array(256),Y=0;Y<k.length;Y++)O[k.charCodeAt(Y)]=Y;var eA="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJ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LAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD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iCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqA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ywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAw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YAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAK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HgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArAC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eAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAr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AUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQA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JQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",hA=50,bA=1,tA=2,J=3,$=4,uA=5,pA=7,FA=8,_A=9,fA=10,yA=11,S=12,H=13,D=14,x=15,K=16,cA=17,aA=18,wA=19,QA=20,NA=21,OA=22,KA=23,ce=24,ne=25,$e=26,Lt=27,pt=28,Qi=29,Ye=30,Mn=31,On=32,Kn=33,rA=34,dA=35,xA=36,RA=37,ke=38,An=39,en=40,Rn=41,Xr=42,Ei=43,Fi=[9001,65288],$r="!",HA="×",it="÷",Me=P(eA),Oe=[Ye,xA],tn=[bA,tA,J,uA],Sl=[fA,FA],xl=[Lt,$e],v0=tn.concat(Sl),Dl=[ke,An,en,rA,dA],y0=[x,H],Q0=function(s,i){i===void 0&&(i="strict");var c=[],l=[],f=[];return s.forEach(function(p,C){var y=Me.get(p);if(y>hA?(f.push(!0),y-=hA):f.push(!1),["normal","auto","loose"].indexOf(i)!==-1&&[8208,8211,12316,12448].indexOf(p)!==-1)return l.push(C),c.push(K);if(y===$||y===yA){if(C===0)return l.push(C),c.push(Ye);var E=c[C-1];return v0.indexOf(E)===-1?(l.push(l[C-1]),c.push(E)):(l.push(C),c.push(Ye))}if(l.push(C),y===Mn)return c.push(i==="strict"?NA:RA);if(y===Xr||y===Qi)return c.push(Ye);if(y===Ei)return p>=131072&&p<=196605||p>=196608&&p<=262141?c.push(RA):c.push(Ye);c.push(y)}),[l,c,f]},Ui=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 y=l[p];if(Array.isArray(s)?s.indexOf(y)!==-1:s===y)for(var E=c;E<=l.length;){E++;var C=l[E];if(C===i)return!0;if(C!==fA)break}if(y!==fA)break}return!1},Nl=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 HA;var p=l-1;if(Array.isArray(f)&&f[p]===!0)return HA;var C=p-1,y=p+1,E=i[p],T=C>=0?i[C]:0,G=i[y];if(E===tA&&G===J)return HA;if(tn.indexOf(E)!==-1)return $r;if(tn.indexOf(G)!==-1||Sl.indexOf(G)!==-1)return HA;if(Nl(p,i)===FA)return it;if(Me.get(s[p])===yA||(E===On||E===Kn)&&Me.get(s[y])===yA||E===pA||G===pA||E===_A||[fA,H,x].indexOf(E)===-1&&G===_A||[cA,aA,wA,ce,pt].indexOf(G)!==-1||Nl(p,i)===OA||Ui(KA,OA,p,i)||Ui([cA,aA],NA,p,i)||Ui(S,S,p,i))return HA;if(E===fA)return it;if(E===KA||G===KA)return HA;if(G===K||E===K)return it;if([H,x,NA].indexOf(G)!==-1||E===D||T===xA&&y0.indexOf(E)!==-1||E===pt&&G===xA||G===QA||Oe.indexOf(G)!==-1&&E===ne||Oe.indexOf(E)!==-1&&G===ne||E===Lt&&[RA,On,Kn].indexOf(G)!==-1||[RA,On,Kn].indexOf(E)!==-1&&G===$e||Oe.indexOf(E)!==-1&&xl.indexOf(G)!==-1||xl.indexOf(E)!==-1&&Oe.indexOf(G)!==-1||[Lt,$e].indexOf(E)!==-1&&(G===ne||[OA,x].indexOf(G)!==-1&&i[y+1]===ne)||[OA,x].indexOf(E)!==-1&&G===ne||E===ne&&[ne,pt,ce].indexOf(G)!==-1)return HA;if([ne,pt,ce,cA,aA].indexOf(G)!==-1)for(var X=p;X>=0;){var Z=i[X];if(Z===ne)return HA;if([pt,ce].indexOf(Z)!==-1)X--;else break}if([Lt,$e].indexOf(G)!==-1)for(var X=[cA,aA].indexOf(E)!==-1?C:p;X>=0;){var Z=i[X];if(Z===ne)return HA;if([pt,ce].indexOf(Z)!==-1)X--;else break}if(ke===E&&[ke,An,rA,dA].indexOf(G)!==-1||[An,rA].indexOf(E)!==-1&&[An,en].indexOf(G)!==-1||[en,dA].indexOf(E)!==-1&&G===en||Dl.indexOf(E)!==-1&&[QA,$e].indexOf(G)!==-1||Dl.indexOf(G)!==-1&&E===Lt||Oe.indexOf(E)!==-1&&Oe.indexOf(G)!==-1||E===ce&&Oe.indexOf(G)!==-1||Oe.concat(ne).indexOf(E)!==-1&&G===OA&&Fi.indexOf(s[y])===-1||Oe.concat(ne).indexOf(G)!==-1&&E===aA)return HA;if(E===Rn&&G===Rn){for(var mA=c[p],gA=1;mA>0&&(mA--,i[mA]===Rn);)gA++;if(gA%2!==0)return HA}return E===On&&G===Kn?HA:it},F0=function(s,i){i||(i={lineBreak:"normal",wordBreak:"normal"});var c=Q0(s,i.lineBreak),l=c[0],f=c[1],p=c[2];(i.wordBreak==="break-all"||i.wordBreak==="break-word")&&(f=f.map(function(y){return[ne,Ye,Xr].indexOf(y)!==-1?RA:y}));var C=i.wordBreak==="keep-all"?p.map(function(y,E){return y&&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===$r,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],y=c.length,E=0,T=0;return{next:function(){if(T>=y)return{done:!0,value:null};for(var G=HA;T<y&&(G=E0(c,p,f,++T,C))===HA;);if(G!==HA||T===y){var X=new U0(c,G,E,T);return E=T,{value:X,done:!1}}return{done:!0,value:null}}}},H0=1,I0=2,Vn=4,Ll=8,Yr=10,Tl=47,Pn=92,_0=9,S0=32,Wr=34,Gn=61,x0=35,D0=36,N0=37,Jr=39,Zr=40,zn=41,L0=95,Ce=45,T0=33,k0=60,M0=62,O0=64,K0=91,R0=93,V0=61,P0=123,jr=63,G0=125,kl=124,z0=126,X0=128,Ml=65533,bi=42,Tt=43,$0=44,Y0=58,W0=59,Xn=46,J0=0,Z0=8,j0=11,q0=14,AC=31,eC=127,We=-1,Ol=48,Kl=97,Rl=101,tC=102,nC=117,rC=122,Vl=65,Pl=69,Gl=70,oC=85,iC=90,Be=function(s){return s>=Ol&&s<=57},sC=function(s){return s>=55296&&s<=57343},nn=function(s){return Be(s)||s>=Vl&&s<=Gl||s>=Kl&&s<=tC},aC=function(s){return s>=Kl&&s<=rC},lC=function(s){return s>=Vl&&s<=iC},cC=function(s){return aC(s)||lC(s)},uC=function(s){return s>=X0},qr=function(s){return s===Yr||s===_0||s===S0},Ao=function(s){return cC(s)||uC(s)||s===L0},zl=function(s){return Ao(s)||Be(s)||s===Ce},dC=function(s){return s>=J0&&s<=Z0||s===j0||s>=q0&&s<=AC||s===eC},mt=function(s,i){return s!==Pn?!1:i!==Yr},eo=function(s,i,c){return s===Ce?Ao(i)||mt(i,c):Ao(s)?!0:!!(s===Pn&&mt(s,i))},Hi=function(s,i,c){return s===Tt||s===Ce?Be(i)?!0:i===Xn&&Be(c):Be(s===Xn?i:s)},fC=function(s){var i=0,c=1;(s[i]===Tt||s[i]===Ce)&&(s[i]===Ce&&(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]===Xn&&i++;for(var p=[];Be(s[i]);)p.push(s[i++]);var C=p.length,y=C?parseInt(m.apply(void 0,p),10):0;(s[i]===Pl||s[i]===Rl)&&i++;var E=1;(s[i]===Tt||s[i]===Ce)&&(s[i]===Ce&&(E=-1),i++);for(var T=[];Be(s[i]);)T.push(s[i++]);var G=T.length?parseInt(m.apply(void 0,T),10):0;return c*(f+y*Math.pow(10,-C))*Math.pow(10,E*G)},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},to={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},Ii={type:32},Xl=(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!==Ii;)i.push(c),c=this.consumeToken();return i},s.prototype.consumeToken=function(){var i=this.consumeCodePoint();switch(i){case Wr:return this.consumeStringToken(Wr);case x0:var c=this.peekCodePoint(0),l=this.peekCodePoint(1),f=this.peekCodePoint(2);if(zl(c)||mt(l,f)){var p=eo(c,l,f)?I0:H0,C=this.consumeName();return{type:5,value:C,flags:p}}break;case D0:if(this.peekCodePoint(0)===Gn)return this.consumeCodePoint(),pC;break;case Jr:return this.consumeStringToken(Jr);case Zr:return gC;case zn:return hC;case bi:if(this.peekCodePoint(0)===Gn)return this.consumeCodePoint(),EC;break;case Tt:if(Hi(i,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(i),this.consumeNumericToken();break;case $0:return BC;case Ce:var y=i,E=this.peekCodePoint(0),T=this.peekCodePoint(1);if(Hi(y,E,T))return this.reconsumeCodePoint(i),this.consumeNumericToken();if(eo(y,E,T))return this.reconsumeCodePoint(i),this.consumeIdentLikeToken();if(E===Ce&&T===M0)return this.consumeCodePoint(),this.consumeCodePoint(),bC;break;case Xn:if(Hi(i,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(i),this.consumeNumericToken();break;case Tl:if(this.peekCodePoint(0)===bi)for(this.consumeCodePoint();;){var G=this.consumeCodePoint();if(G===bi&&(G=this.consumeCodePoint(),G===Tl))return this.consumeToken();if(G===We)return this.consumeToken()}break;case Y0:return HC;case W0:return IC;case k0:if(this.peekCodePoint(0)===T0&&this.peekCodePoint(1)===Ce&&this.peekCodePoint(2)===Ce)return this.consumeCodePoint(),this.consumeCodePoint(),UC;break;case O0:if(eo(this.peekCodePoint(0),this.peekCodePoint(1),this.peekCodePoint(2))){var C=this.consumeName();return{type:7,value:C}}break;case K0:return _C;case Pn:if(mt(i,this.peekCodePoint(0)))return this.reconsumeCodePoint(i),this.consumeIdentLikeToken();break;case R0:return SC;case V0:if(this.peekCodePoint(0)===Gn)return this.consumeCodePoint(),mC;break;case P0:return yC;case G0:return QC;case nC:case oC:var X=this.peekCodePoint(0),Z=this.peekCodePoint(1);return X===Tt&&(nn(Z)||Z===jr)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(i),this.consumeIdentLikeToken();case kl:if(this.peekCodePoint(0)===Gn)return this.consumeCodePoint(),CC;if(this.peekCodePoint(0)===kl)return this.consumeCodePoint(),wC;break;case z0:if(this.peekCodePoint(0)===Gn)return this.consumeCodePoint(),vC;break;case We:return Ii}return qr(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();nn(c)&&i.length<6;)i.push(c),c=this.consumeCodePoint();for(var l=!1;c===jr&&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===jr?Ol:E})),16),p=parseInt(m.apply(void 0,i.map(function(E){return E===jr?Gl:E})),16);return{type:30,start:f,end:p}}var C=parseInt(m.apply(void 0,i),16);if(this.peekCodePoint(0)===Ce&&nn(this.peekCodePoint(1))){this.consumeCodePoint(),c=this.consumeCodePoint();for(var y=[];nn(c)&&y.length<6;)y.push(c),c=this.consumeCodePoint();var p=parseInt(m.apply(void 0,y),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)===Zr?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Zr?(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===Jr||c===Wr){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(),to)}for(;;){var f=this.consumeCodePoint();if(f===We||f===zn)return{type:22,value:m.apply(void 0,i)};if(qr(f))return this.consumeWhiteSpace(),this.peekCodePoint(0)===We||this.peekCodePoint(0)===zn?(this.consumeCodePoint(),{type:22,value:m.apply(void 0,i)}):(this.consumeBadUrlRemnants(),to);if(f===Wr||f===Jr||f===Zr||dC(f))return this.consumeBadUrlRemnants(),to;if(f===Pn)if(mt(f,this.peekCodePoint(0)))i.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),to;else i.push(f)}},s.prototype.consumeWhiteSpace=function(){for(;qr(this.peekCodePoint(0));)this.consumeCodePoint()},s.prototype.consumeBadUrlRemnants=function(){for(;;){var i=this.consumeCodePoint();if(i===zn||i===We)return;mt(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===Yr)return this._value.splice(0,l),FC;if(f===Pn){var p=this._value[l+1];p!==We&&p!==void 0&&(p===Yr?(c+=this.consumeStringSlice(l),l=-1,this._value.shift()):mt(f,p)&&(c+=this.consumeStringSlice(l),c+=m(this.consumeEscapedCodePoint()),l=-1))}l++}while(!0)},s.prototype.consumeNumber=function(){var i=[],c=Vn,l=this.peekCodePoint(0);for((l===Tt||l===Ce)&&i.push(this.consumeCodePoint());Be(this.peekCodePoint(0));)i.push(this.consumeCodePoint());l=this.peekCodePoint(0);var f=this.peekCodePoint(1);if(l===Xn&&Be(f))for(i.push(this.consumeCodePoint(),this.consumeCodePoint()),c=Ll;Be(this.peekCodePoint(0));)i.push(this.consumeCodePoint());l=this.peekCodePoint(0),f=this.peekCodePoint(1);var p=this.peekCodePoint(2);if((l===Pl||l===Rl)&&((f===Tt||f===Ce)&&Be(p)||Be(f)))for(i.push(this.consumeCodePoint(),this.consumeCodePoint()),c=Ll;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 eo(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(nn(i)){for(var c=m(i);nn(this.peekCodePoint(0))&&c.length<6;)c+=m(this.consumeCodePoint());qr(this.peekCodePoint(0))&&this.consumeCodePoint();var l=parseInt(c,16);return l===0||sC(l)||l>1114111?Ml:l}return i===We?Ml:i},s.prototype.consumeName=function(){for(var i="";;){var c=this.consumeCodePoint();if(zl(c))i+=m(c);else if(mt(c,this.peekCodePoint(0)))i+=m(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(c),i}},s})(),$l=(function(){function s(i){this._tokens=i}return s.create=function(i){var c=new Xl;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"?Ii:i},s.prototype.reconsumeToken=function(i){this._tokens.unshift(i)},s})(),$n=function(s){return s.type===15},rn=function(s){return s.type===17},WA=function(s){return s.type===20},DC=function(s){return s.type===0},_i=function(s,i){return WA(s)&&s.value===i},Yl=function(s){return s.type!==31},on=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},wt=function(s){return s.type===17||s.type===15},se=function(s){return s.type===16||wt(s)},Wl=function(s){return s.length>1?[s[0],s[1]]:[s[0]]},fe={type:17,number:0,flags:Vn},Si={type:16,number:50,flags:Vn},Ct={type:16,number:100,flags:Vn},Yn=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($n(s))switch(s.unit){case"rem":case"em":return 16*s.number;default:return s.number}return s.number},Jl="deg",Zl="grad",jl="rad",ql="turn",no={name:"angle",parse:function(s,i){if(i.type===15)switch(i.unit){case Jl:return Math.PI*i.number/180;case Zl:return Math.PI/200*i.number;case jl:return i.number;case ql:return Math.PI*2*i.number}throw new Error("Unsupported angle type")}},Ac=function(s){return s.type===15&&(s.unit===Jl||s.unit===Zl||s.unit===jl||s.unit===ql)},ec=function(s){switch(s.filter(WA).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 He(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[fe,Ct];case"to right":case"left":return He(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ct,Ct];case"to bottom":case"top":return He(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ct,fe];case"to left":case"right":return He(270)}return 0},He=function(s){return Math.PI*s/180},vt={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 Qt(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 Qt(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 Qt(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 Qt(parseInt(l,16),parseInt(f,16),parseInt(p,16),parseInt(C,16)/255)}}if(i.type===20){var y=st[i.value.toUpperCase()];if(typeof y<"u")return y}return st.TRANSPARENT}},yt=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+")"},Qt=function(s,i,c,l){return(s<<24|i<<16|c<<8|Math.round(l*255)<<0)>>>0},tc=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},nc=function(s,i){var c=i.filter(on);if(c.length===3){var l=c.map(tc),f=l[0],p=l[1],C=l[2];return Qt(f,p,C,1)}if(c.length===4){var y=c.map(tc),f=y[0],p=y[1],C=y[2],E=y[3];return Qt(f,p,C,E)}return 0};function xi(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 rc=function(s,i){var c=i.filter(on),l=c[0],f=c[1],p=c[2],C=c[3],y=(l.type===17?He(l.number):no.parse(s,l))/(Math.PI*2),E=se(f)?f.number/100:0,T=se(p)?p.number/100:0,G=typeof C<"u"&&se(C)?ZA(C,1):1;if(E===0)return Qt(T*255,T*255,T*255,1);var X=T<=.5?T*(E+1):T+E-T*E,Z=T*2-X,mA=xi(Z,X,y+1/3),gA=xi(Z,X,y),BA=xi(Z,X,y-1/3);return Qt(mA*255,gA*255,BA*255,G)},LC={hsl:rc,hsla:rc,rgb:nc,rgba:nc},Wn=function(s,i){return vt.parse(s,$l.create(i).parseComponentValue())},st={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(WA(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"},ro=function(s,i){var c=vt.parse(s,i[0]),l=i[1];return l&&se(l)?{color:c,stop:l}:{color:c,stop:null}},oc=function(s,i){var c=s[0],l=s[s.length-1];c.stop===null&&(c.stop=fe),l.stop===null&&(l.stop=Ct);for(var f=[],p=0,C=0;C<s.length;C++){var y=s[C].stop;if(y!==null){var E=ZA(y,i);E>p?f.push(E):f.push(p),p=E}else f.push(null)}for(var T=null,C=0;C<f.length;C++){var G=f[C];if(G===null)T===null&&(T=C);else if(T!==null){for(var X=C-T,Z=(G-f[T-1])/(X+1),mA=1;mA<=X;mA++)f[T+mA-1]=Z*mA;T=null}}return s.map(function(gA,BA){return{color:gA.color,stop:Math.max(Math.min(1,f[BA]/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,y=f/2,E=Math.sin(l-Math.PI/2)*y,T=Math.cos(l-Math.PI/2)*y;return[f,p-T,p+T,C-E,C+E]},Ke=function(s,i){return Math.sqrt(s*s+i*i)},ic=function(s,i,c,l,f){return[[0,0],[0,i],[s,0],[s,i]].reduce(function(p,C){var y=C[0],E=C[1],T=Ke(c-y,l-E);return(f?T<p.optimumDistance:T>p.optimumDistance)?{optimumCorner:C,optimumDistance:T}: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 y=Math.min(Math.abs(c),Math.abs(c-f))/Math.min(Math.abs(i),Math.abs(i-l)),E=ic(l,f,i,c,!0),T=E[0],G=E[1];p=Ke(T-i,(G-c)/y),C=y*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 y=Math.max(Math.abs(c),Math.abs(c-f))/Math.max(Math.abs(i),Math.abs(i-l)),X=ic(l,f,i,c,!1),T=X[0],G=X[1];p=Ke(T-i,(G-c)/y),C=y*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=He(180),l=[];return Je(i).forEach(function(f,p){if(p===0){var C=f[0];if(C.type===20&&C.value==="to"){c=ec(f);return}else if(Ac(C)){c=no.parse(s,C);return}}var y=ro(s,f);l.push(y)}),{angle:c,stops:l,type:1}},oo=function(s,i){var c=He(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=ec(f);return}else if(Ac(C)){c=(no.parse(s,C)+He(270))%He(360);return}}var y=ro(s,f);l.push(y)}),{angle:c,stops:l,type:1}},VC=function(s,i){var c=He(180),l=[],f=1,p=0,C=3,y=[];return Je(i).forEach(function(E,T){var G=E[0];if(T===0){if(WA(G)&&G.value==="linear"){f=1;return}else if(WA(G)&&G.value==="radial"){f=2;return}}if(G.type===18){if(G.name==="from"){var X=vt.parse(s,G.values[0]);l.push({stop:fe,color:X})}else if(G.name==="to"){var X=vt.parse(s,G.values[0]);l.push({stop:Ct,color:X})}else if(G.name==="color-stop"){var Z=G.values.filter(on);if(Z.length===2){var X=vt.parse(s,Z[1]),mA=Z[0];rn(mA)&&l.push({stop:{type:16,number:mA.number*100,flags:mA.flags},color:X})}}}}),f===1?{angle:(c+He(180))%He(360),stops:l,type:f}:{size:C,shape:p,stops:l,position:y,type:f}},sc="closest-side",ac="farthest-side",lc="closest-corner",cc="farthest-corner",uc="circle",dc="ellipse",fc="cover",gc="contain",PC=function(s,i){var c=0,l=3,f=[],p=[];return Je(i).forEach(function(C,y){var E=!0;if(y===0){var T=!1;E=C.reduce(function(X,Z){if(T)if(WA(Z))switch(Z.value){case"center":return p.push(Si),X;case"top":case"left":return p.push(fe),X;case"right":case"bottom":return p.push(Ct),X}else(se(Z)||wt(Z))&&p.push(Z);else if(WA(Z))switch(Z.value){case uc:return c=0,!1;case dc:return c=1,!1;case"at":return T=!0,!1;case sc:return l=0,!1;case fc:case ac:return l=1,!1;case gc:case lc:return l=2,!1;case cc:return l=3,!1}else if(wt(Z)||se(Z))return Array.isArray(l)||(l=[]),l.push(Z),!1;return X},E)}if(E){var G=ro(s,C);f.push(G)}}),{size:l,shape:c,stops:f,position:p,type:2}},io=function(s,i){var c=0,l=3,f=[],p=[];return Je(i).forEach(function(C,y){var E=!0;if(y===0?E=C.reduce(function(G,X){if(WA(X))switch(X.value){case"center":return p.push(Si),!1;case"top":case"left":return p.push(fe),!1;case"right":case"bottom":return p.push(Ct),!1}else if(se(X)||wt(X))return p.push(X),!1;return G},E):y===1&&(E=C.reduce(function(G,X){if(WA(X))switch(X.value){case uc:return c=0,!1;case dc:return c=1,!1;case gc:case sc:return l=0,!1;case ac:return l=1,!1;case lc:return l=2,!1;case fc:case cc:return l=3,!1}else if(wt(X)||se(X))return Array.isArray(l)||(l=[]),l.push(X),!1;return G},E)),E){var T=ro(s,C);f.push(T)}}),{size:l,shape:c,stops:f,position:p,type:2}},GC=function(s){return s.type===1},zC=function(s){return s.type===2},Di={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=hc[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||!!hc[s.name])}var hc={"linear-gradient":RC,"-moz-linear-gradient":oo,"-ms-linear-gradient":oo,"-o-linear-gradient":oo,"-webkit-linear-gradient":oo,"radial-gradient":PC,"-moz-radial-gradient":io,"-ms-radial-gradient":io,"-o-radial-gradient":io,"-webkit-radial-gradient":io,"-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 on(l)&&XC(l)}).map(function(l){return Di.parse(s,l)})}},YC={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(s,i){return i.map(function(c){if(WA(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(se)}).map(Wl)}},JC={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(s,i){return Je(i).map(function(c){return c.filter(WA).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}},sn;(function(s){s.AUTO="auto",s.CONTAIN="contain",s.COVER="cover"})(sn||(sn={}));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 WA(s)||se(s)},so=function(s){return{name:"border-"+s+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Av=so("top"),ev=so("right"),tv=so("bottom"),nv=so("left"),ao=function(s){return{name:"border-radius-"+s,initialValue:"0 0",prefix:!1,type:1,parse:function(i,c){return Wl(c.filter(se))}}},rv=ao("top-left"),ov=ao("top-right"),iv=ao("bottom-right"),sv=ao("bottom-left"),lo=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=lo("top"),lv=lo("right"),cv=lo("bottom"),uv=lo("left"),co=function(s){return{name:"border-"+s+"-width",initialValue:"0",type:0,prefix:!1,parse:function(i,c){return $n(c)?c.number:0}}},dv=co("top"),fv=co("right"),gv=co("bottom"),hv=co("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(WA).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}},uo;(function(s){s.NORMAL="normal",s.STRICT="strict"})(uo||(uo={}));var yv={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){return i==="strict"?uo.STRICT:uo.NORMAL}},Qv={name:"line-height",initialValue:"normal",prefix:!1,type:4},Bc=function(s,i){return WA(s)&&s.value==="normal"?1.2*i:s.type===17?i*s.number:se(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:Di.parse(s,i)}},Fv={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(s,i){return i==="inside"?0:1}},Ni={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}}},fo=function(s){return{name:"margin-"+s,initialValue:"0",prefix:!1,type:4}},Uv=fo("top"),bv=fo("right"),Hv=fo("bottom"),Iv=fo("left"),_v={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(s,i){return i.filter(WA).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"}},go=function(s){return{name:"padding-"+s,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},xv=go("top"),Dv=go("right"),Nv=go("bottom"),Lv=go("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&&_i(i[0],"none")?[]:Je(i).map(function(c){for(var l={color:st.TRANSPARENT,offsetX:fe,offsetY:fe,blur:fe},f=0,p=0;p<c.length;p++){var C=c[p];wt(C)?(f===0?l.offsetX=C:f===1?l.offsetY=C:l.blur=C,f++):l.color=vt.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],y=i[13];return i[14],i[15],i.length===16?[c,l,f,p,C,y]:null},Pv={matrix:Rv,matrix3d:Vv},pc={type:16,number:50,flags:Vn},Gv=[pc,pc],zv={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(s,i){var c=i.filter(se);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}}},Jn;(function(s){s.NORMAL="normal",s.BREAK_ALL="break-all",s.KEEP_ALL="keep-all"})(Jn||(Jn={}));for(var $v={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){switch(i){case"break-all":return Jn.BREAK_ALL;case"keep-all":return Jn.KEEP_ALL;default:return Jn.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(rn(i))return{auto:!1,order:i.number};throw new Error("Invalid z-index number parsed")}},mc={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 rn(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(WA).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 rn(i)?i.number:WA(i)&&i.value==="bold"?700:400}},ey={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(s,i){return i.filter(WA).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(Yl),p=0;p<f.length;p++){var C=f[p],y=f[p+1];if(C.type===20){var E=y&&rn(y)?y.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(Yl),f=0;f<l.length;f++){var p=l[f],C=l[f+1];if(WA(p)&&p.value!=="none"){var y=C&&rn(C)?C.number:0;c.push({counter:p.value,reset:y})}}return c}},iy={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(s,i){return i.filter($n).map(function(c){return mc.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,y=f[p+1].value;l.push({open:C,close:y})}return l}},wc=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&&_i(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];_i(C,"inset")?l.inset=!0:wt(C)?(f===0?l.offsetX=C:f===1?l.offsetY=C:f===2?l.blur=C:l.spread=C,f++):l.color=vt.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(WA).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 $n(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,Ni,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 yt(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})(),Cc=(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 Xl,f=c!==null&&typeof c<"u"?c.toString():i.initialValue;l.write(f);var p=new $l(l.read());switch(i.type){case 2:var C=p.parseComponentValue();return i.parse(s,WA(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 no.parse(s,p.parseComponentValue());case"color":return vt.parse(s,p.parseComponentValue());case"image":return Di.parse(s,p.parseComponentValue());case"length":var y=p.parseComponentValue();return wt(y)?y:fe;case"length-percentage":var E=p.parseComponentValue();return se(E)?E:fe;case"time":return mc.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}},Li=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,Li(c,3))debugger;this.styles=new dy(i,window.getComputedStyle(c,null)),Wi(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),Li(c,4)&&(this.flags|=16)}return s})(),By="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAA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AgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAA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ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",vc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zn=typeof Uint8Array>"u"?[]:new Uint8Array(256),ho=0;ho<vc.length;ho++)Zn[vc.charCodeAt(ho)]=ho;for(var py=function(s){var i=s.length*.75,c=s.length,l,f=0,p,C,y,E;s[s.length-1]==="="&&(i--,s[s.length-2]==="="&&i--);var T=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(i):new Array(i),G=Array.isArray(T)?T:new Uint8Array(T);for(l=0;l<c;l+=4)p=Zn[s.charCodeAt(l)],C=Zn[s.charCodeAt(l+1)],y=Zn[s.charCodeAt(l+2)],E=Zn[s.charCodeAt(l+3)],G[f++]=p<<2|C>>4,G[f++]=(C&15)<<4|y>>2,G[f++]=(y&3)<<6|E&63;return T},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},kt=5,Ti=11,ki=2,Cy=Ti-kt,yc=65536>>kt,Mi=(1<<kt)-1,vy=yc+(1024>>kt)+32,yy=65536>>Ti,Qy=(1<<Cy)-1,Qc=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=Qc(f,p/2,l[4]/2),y=l[5]===2?Qc(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,y)},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>>kt],c=(c<<ki)+(i&Mi),this.data[c];if(i<=65535)return c=this.index[yc+(i-55296>>kt)],c=(c<<ki)+(i&Mi),this.data[c];if(i<this.highStart)return c=vy-yy+(i>>Ti),c=this.index[c],c+=i>>kt&Qy,c=this.index[c],c=(c<<ki)+(i&Mi),this.data[c];if(i<=1114111)return this.data[this.highValueIndex]}return this.errorValue},s})(),Ec="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",by=typeof Uint8Array>"u"?[]:new Uint8Array(256),Bo=0;Bo<Ec.length;Bo++)by[Ec.charCodeAt(Bo)]=Bo;var Hy=1,Oi=2,Ki=3,Fc=4,Uc=5,Iy=7,bc=8,Ri=9,Vi=10,Hc=11,Ic=12,_c=13,Sc=14,Pi=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),Ie="×",Gi="÷",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===Oi&&C===Ki)return Ie;if(p===Oi||p===Ki||p===Fc||C===Oi||C===Ki||C===Fc)return Gi;if(p===bc&&[bc,Ri,Hc,Ic].indexOf(C)!==-1||(p===Hc||p===Ri)&&(C===Ri||C===Vi)||(p===Ic||p===Vi)&&C===Vi||C===_c||C===Uc||C===Iy||p===Hy)return Ie;if(p===_c&&C===Sc){for(;f===Uc;)f=i[--l];if(f===Sc)return Ie}if(p===Pi&&C===Pi){for(var y=0;f===Pi;)y++,f=i[--l];if(y%2===0)return Ie}return Gi},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=Ie;l<c&&(C=Ny(i,p,++l))===Ie;);if(C!==Ie||l===c){var y=Sy.apply(null,i.slice(f,l));return f=l,{value:y,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={},y=f.every(function(E,T){c.setStart(l,p),c.setEnd(l,p+E.length);var G=c.getBoundingClientRect();p+=E.length;var X=G.x>C.x||G.y>C.y;return C=G,T===0?!0:X});return s.body.removeChild(i),y},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},xc=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),Dc(C).then(function(y){l.drawImage(y,0,0);var E=l.getImageData(0,0,c,c).data;l.fillStyle="red",l.fillRect(0,0,c,c);var T=s.createElement("div");return T.style.backgroundImage="url("+p+")",T.style.height=c+"px",xc(E)?Dc(zi(c,c,0,0,T)):Promise.reject(!1)}).then(function(y){return l.drawImage(y,0,0),xc(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"),y=document.createElementNS(p,"foreignObject");return C.setAttributeNS(null,"width",s.toString()),C.setAttributeNS(null,"height",i.toString()),y.setAttributeNS(null,"width","100%"),y.setAttributeNS(null,"height","100%"),y.setAttributeNS(null,"x",c.toString()),y.setAttributeNS(null,"y",l.toString()),y.setAttributeNS(null,"externalResourcesRequired","true"),C.appendChild(y),y.appendChild(f),C},Dc=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}},jn=(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(y){if(c.textDecorationLine.length||y.trim().length>0)if(ge.SUPPORT_RANGE_BOUNDS){var E=Nc(l,C,y.length).getClientRects();if(E.length>1){var T=Xi(y),G=0;T.forEach(function(Z){p.push(new jn(Z,h.fromDOMRectList(s,Nc(l,G+C,Z.length).getClientRects()))),G+=Z.length})}else p.push(new jn(y,h.fromDOMRectList(s,E)))}else{var X=l.splitText(y.length);p.push(new jn(y,Gy(s,l))),l=X}else ge.SUPPORT_RANGE_BOUNDS||(l=l.splitText(y.length));C+=y.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},Nc=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},Xi=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?Xi(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()),y="";C.forEach(function(E){$y.indexOf(E)===-1?y+=m(E):(y.length&&l.push(y),l.push(m(E)),y="")}),y.length&&l.push(y)}};!(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},Lc=(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),Tc=(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),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})(Ze),Mc=(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),$i=(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},po="checkbox",mo="radio",nQ="password",Oc=707406591,Yi=(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===po||f.type===mo)&&(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 po:f.styles.borderTopRightRadius=f.styles.borderTopLeftRadius=f.styles.borderBottomRightRadius=f.styles.borderBottomLeftRadius=qy;break;case mo:f.styles.borderTopRightRadius=f.styles.borderTopLeftRadius=f.styles.borderBottomRightRadius=f.styles.borderBottomLeftRadius=AQ;break}return f}return i})(Ze),Kc=(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),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})(Ze),Vc=(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=Gc(c,l.contentWindow.document.documentElement);var p=l.contentWindow.document.documentElement?Wn(c,getComputedStyle(l.contentWindow.document.documentElement).backgroundColor):st.TRANSPARENT,C=l.contentWindow.document.body?Wn(c,getComputedStyle(l.contentWindow.document.body).backgroundColor):st.TRANSPARENT;f.backgroundColor=yt(p)?yt(C)?f.styles.backgroundColor:C:p}}catch{}return f}return i})(Ze),rQ=["OL","UL","MENU"],wo=function(s,i,c,l){for(var f=i.firstChild,p=void 0;f;f=p)if(p=f.nextSibling,zc(f)&&f.data.trim().length>0)c.textNodes.push(new Wy(s,f,c.styles));else if(an(f))if(Zc(f)&&f.assignedNodes)f.assignedNodes().forEach(function(y){return wo(s,y,c,l)});else{var C=Pc(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?wo(s,f.shadowRoot,C,l):!vo(f)&&!Xc(f)&&!yo(f)&&wo(s,f,C,l))}},Pc=function(s,i){return Zi(i)?new Lc(s,i):$c(i)?new Tc(s,i):Xc(i)?new kc(s,i):sQ(i)?new Mc(s,i):aQ(i)?new $i(s,i):lQ(i)?new Yi(s,i):yo(i)?new Kc(s,i):vo(i)?new Rc(s,i):Wc(i)?new Vc(s,i):new Ze(s,i)},Gc=function(s,i){var c=Pc(s,i);return c.flags|=4,wo(s,i,c,c),c},oQ=function(s,i,c){return i.styles.isPositionedWithZIndex()||i.styles.opacity<1||i.styles.isTransformed()||Ji(s)&&c.styles.isTransparent()},iQ=function(s){return s.isPositioned()||s.isFloating()},zc=function(s){return s.nodeType===Node.TEXT_NODE},an=function(s){return s.nodeType===Node.ELEMENT_NODE},Wi=function(s){return an(s)&&typeof s.style<"u"&&!Co(s)},Co=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"},Xc=function(s){return s.tagName==="svg"},Ji=function(s){return s.tagName==="BODY"},$c=function(s){return s.tagName==="CANVAS"},Yc=function(s){return s.tagName==="VIDEO"},Zi=function(s){return s.tagName==="IMG"},Wc=function(s){return s.tagName==="IFRAME"},Jc=function(s){return s.tagName==="STYLE"},uQ=function(s){return s.tagName==="SCRIPT"},vo=function(s){return s.tagName==="TEXTAREA"},yo=function(s){return s.tagName==="SELECT"},Zc=function(s){return s.tagName==="SLOT"},jc=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(y){var E=c.counters[y.counter];E&&y.increment!==0&&(p=!1,E.length||E.push(1),E[Math.max(0,E.length-1)]+=y.increment)});var C=[];return p&&f.forEach(function(y){var E=c.counters[y.counter];C.push(y.counter),E||(E=c.counters[y.counter]=[]),E.push(y.reset)}),C},s})(),qc={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"]},Au={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},ln=function(s,i,c,l,f,p){return s<i||s>c?Ar(s,f,p.length>0):l.integers.reduce(function(C,y,E){for(;s>=y;)s-=y,C+=l.values[E];return C},"")+p},eu=function(s,i,c,l){var f="";do c||s--,f=l(s)+f,s/=i;while(s*i>=i);return f},re=function(s,i,c,l,f){var p=c-i+1;return(s<0?"-":"")+(eu(Math.abs(s),p,l,function(C){return m(Math.floor(C%p)+i)})+f)},Mt=function(s,i,c){c===void 0&&(c=". ");var l=i.length;return eu(Math.abs(s),l,!1,function(f){return i[Math.floor(f%l)]})+c},cn=1,Et=2,Ft=4,qn=8,at=function(s,i,c,l,f,p){if(s<-9999||s>9999)return Ar(s,4,f.length>0);var C=Math.abs(s),y=f;if(C===0)return i[0]+y;for(var E=0;C>0&&E<=4;E++){var T=C%10;T===0&&ue(p,cn)&&y!==""?y=i[T]+y:T>1||T===1&&E===0||T===1&&E===1&&ue(p,Et)||T===1&&E===1&&ue(p,Ft)&&s>100||T===1&&E>1&&ue(p,qn)?y=i[T]+(E>0?c[E-1]:"")+y:T===1&&E>0&&(y=c[E-1]+y),C=Math.floor(C/10)}return(s<0?l:"")+y},tu="十百千萬",nu="拾佰仟萬",ru="マイナス",ji="마이너스",Ar=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 y=re(s,48,57,!0,l);return y.length<4?"0"+y:y;case 4:return Mt(s,"〇一二三四五六七八九",f);case 6:return ln(s,1,3999,qc,3,l).toLowerCase();case 7:return ln(s,1,3999,qc,3,l);case 8:return re(s,945,969,!1,l);case 9:return re(s,97,122,!1,l);case 10:return re(s,65,90,!1,l);case 11:return re(s,1632,1641,!0,l);case 12:case 49:return ln(s,1,9999,Au,3,l);case 35:return ln(s,1,9999,Au,3,l).toLowerCase();case 13:return re(s,2534,2543,!0,l);case 14:case 30:return re(s,6112,6121,!0,l);case 15:return Mt(s,"子丑寅卯辰巳午未申酉戌亥",f);case 16:return Mt(s,"甲乙丙丁戊己庚辛壬癸",f);case 17:case 48:return at(s,"零一二三四五六七八九",tu,"負",f,Et|Ft|qn);case 47:return at(s,"零壹貳參肆伍陸柒捌玖",nu,"負",f,cn|Et|Ft|qn);case 42:return at(s,"零一二三四五六七八九",tu,"负",f,Et|Ft|qn);case 41:return at(s,"零壹贰叁肆伍陆柒捌玖",nu,"负",f,cn|Et|Ft|qn);case 26:return at(s,"〇一二三四五六七八九","十百千万",ru,f,0);case 25:return at(s,"零壱弐参四伍六七八九","拾百千万",ru,f,cn|Et|Ft);case 31:return at(s,"영일이삼사오육칠팔구","십백천만",ji,p,cn|Et|Ft);case 33:return at(s,"零一二三四五六七八九","十百千萬",ji,p,0);case 32:return at(s,"零壹貳參四五六七八九","拾百千",ji,p,cn|Et|Ft);case 18:return re(s,2406,2415,!0,l);case 20:return ln(s,1,19999,gQ,3,l);case 21:return re(s,2790,2799,!0,l);case 22:return re(s,2662,2671,!0,l);case 22:return ln(s,1,10999,fQ,3,l);case 23:return Mt(s,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Mt(s,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return re(s,3302,3311,!0,l);case 28:return Mt(s,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",f);case 29:return Mt(s,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",f);case 34:return re(s,3792,3801,!0,l);case 37:return re(s,6160,6169,!0,l);case 38:return re(s,4160,4169,!0,l);case 39:return re(s,2918,2927,!0,l);case 40:return re(s,1776,1785,!0,l);case 43:return re(s,3046,3055,!0,l);case 44:return re(s,3174,3183,!0,l);case 45:return re(s,3664,3673,!0,l);case 46:return re(s,3872,3881,!0,l);default:return re(s,48,57,!0,l)}},ou="data-html2canvas-ignore",iu=(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,y=f.contentWindow,E=y.document,T=mQ(f).then(function(){return a(l,void 0,void 0,function(){var G,X;return u(this,function(Z){switch(Z.label){case 0:return this.scrolledElements.forEach(yQ),y&&(y.scrollTo(c.left,c.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(y.scrollY!==c.top||y.scrollX!==c.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(y.scrollX-c.left,y.scrollY-c.top,0,0))),G=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:Z.sent(),Z.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,pQ(E)]:[3,4];case 3:Z.sent(),Z.label=4;case 4:return typeof G=="function"?[2,Promise.resolve().then(function(){return G(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(),T},s.prototype.createElementClone=function(i){if(Li(i,2))debugger;if($c(i))return this.createCanvasClone(i);if(Yc(i))return this.createVideoClone(i);if(Jc(i))return this.createStyleClone(i);var c=i.cloneNode(!1);return Zi(c)&&(Zi(i)&&i.currentSrc&&i.currentSrc!==i.src&&(c.src=i.currentSrc,c.srcset=""),c.loading==="lazy"&&(c.loading="eager")),jc(c)?this.createCustomElementClone(c):c},s.prototype.createCustomElementClone=function(i){var c=document.createElement("html2canvascustomelement");return qi(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 y=(c=i.getContext("webgl2"))!==null&&c!==void 0?c:i.getContext("webgl");if(y){var E=y.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){(!an(c)||!uQ(c)&&!c.hasAttribute(ou)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(c)))&&(!this.options.copyStyles||!an(c)||!Jc(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(an(p)&&Zc(p)&&typeof p.assignedNodes=="function"){var C=p.assignedNodes();C.length&&C.forEach(function(y){return f.appendChildNode(c,y,l)})}else this.appendChildNode(c,p,l)},s.prototype.cloneNode=function(i,c){if(zc(i))return document.createTextNode(i.data);if(!i.ownerDocument)return i.cloneNode(!1);var l=i.ownerDocument.defaultView;if(l&&an(i)&&(Wi(i)||Co(i))){var f=this.createElementClone(i);f.style.transitionProperty="none";var p=l.getComputedStyle(i),C=l.getComputedStyle(i,":before"),y=l.getComputedStyle(i,":after");this.referenceElement===i&&Wi(f)&&(this.clonedReferenceElement=f),Ji(f)&&FQ(f);var E=this.counters.parse(new Cc(this.context,p)),T=this.resolvePseudoContent(i,f,C,er.BEFORE);jc(i)&&(c=!0),Yc(i)||this.cloneChildNodes(i,f,c),T&&f.insertBefore(T,f.firstChild);var G=this.resolvePseudoContent(i,f,y,er.AFTER);return G&&f.appendChild(G),this.counters.pop(E),(p&&(this.options.copyStyles||Co(i))&&!Wc(i)||c)&&qi(p,f),(i.scrollTop!==0||i.scrollLeft!==0)&&this.scrolledElements.push([f,i.scrollLeft,i.scrollTop]),(vo(i)||yo(i))&&(vo(f)||yo(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,y=c.ownerDocument;if(!(!y||!C||C==="none"||C==="-moz-alt-content"||l.display==="none")){this.counters.parse(new Cc(this.context,l));var E=new fy(this.context,l),T=y.createElement("html2canvaspseudoelement");qi(l,T),E.content.forEach(function(X){if(X.type===0)T.appendChild(y.createTextNode(X.value));else if(X.type===22){var Z=y.createElement("img");Z.src=X.value,Z.style.opacity="1",T.appendChild(Z)}else if(X.type===18){if(X.name==="attr"){var mA=X.values.filter(WA);mA.length&&T.appendChild(y.createTextNode(i.getAttribute(mA[0].value)||""))}else if(X.name==="counter"){var gA=X.values.filter(on),BA=gA[0],VA=gA[1];if(BA&&WA(BA)){var DA=p.counters.getCounterValue(BA.value),SA=VA&&WA(VA)?Ni.parse(p.context,VA.value):3;T.appendChild(y.createTextNode(Ar(DA,SA,!1)))}}else if(X.name==="counters"){var qA=X.values.filter(on),BA=qA[0],zA=qA[1],VA=qA[2];if(BA&&WA(BA)){var kA=p.counters.getCounterValues(BA.value),EA=VA&&WA(VA)?Ni.parse(p.context,VA.value):3,PA=zA&&zA.type===0?zA.value:"",GA=kA.map(function(ve){return Ar(ve,EA,!1)}).join(PA);T.appendChild(y.createTextNode(GA))}}}else if(X.type===20)switch(X.value){case"open-quote":T.appendChild(y.createTextNode(wc(E.quotes,p.quoteDepth++,!0)));break;case"close-quote":T.appendChild(y.createTextNode(wc(E.quotes,--p.quoteDepth,!1)));break;default:T.appendChild(y.createTextNode(X.value))}}),T.className=As+" "+es;var G=f===er.BEFORE?" "+As:" "+es;return Co(c)?c.className.baseValue+=G:c.className+=G,T}}},s.destroy=function(i){return i.parentNode?(i.parentNode.removeChild(i),!0):!1},s})(),er;(function(s){s[s.BEFORE=0]="BEFORE",s[s.AFTER=1]="AFTER"})(er||(er={}));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(ou,"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"],qi=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",es="___html2canvas___pseudoelement_after",su=`{
|
|
32
32
|
content: "" !important;
|
|
33
33
|
display: none !important;
|
|
34
|
-
}`,
|
|
35
|
-
.`+qi+SQ+su)},DQ=function(s,i){var c=s.ownerDocument;if(c){var l=c.createElement("style");l.textContent=i,s.appendChild(l)}},au=(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})(),NQ=(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)||(es(i)||MQ(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(v){switch(v.label){case 0:return c=au.isSameOrigin(i),l=!As(i)&&this._options.useCORS===!0&&he.SUPPORT_CORS_IMAGES&&!c,f=!As(i)&&!c&&!es(i)&&typeof this._options.proxy=="string"&&he.SUPPORT_CORS_XHR&&!l,!c&&this._options.allowTaint===!1&&!As(i)&&!es(i)&&!f&&!l?[2]:(p=i,f?[4,this.proxy(p)]:[3,2]);case 1:p=v.sent(),v.label=2;case 2:return this.context.logger.debug("Added image "+i.substring(0,256)),[4,new Promise(function(E,k){var K=new Image;K.onload=function(){return E(K)},K.onerror=k,(OQ(p)||l)&&(K.crossOrigin="anonymous"),K.src=p,K.complete===!0&&setTimeout(function(){return E(K)},500),C._options.imageTimeout>0&&setTimeout(function(){return k("Timed out ("+C._options.imageTimeout+"ms) loading image")},C._options.imageTimeout)})];case 3:return[2,v.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 v=he.SUPPORT_RESPONSE_TYPE?"blob":"text",E=new XMLHttpRequest;E.onload=function(){if(E.status===200)if(v==="text")p(E.response);else{var z=new FileReader;z.addEventListener("load",function(){return p(z.result)},!1),z.addEventListener("error",function(q){return C(q)},!1),z.readAsDataURL(E.response)}else C("Failed to proxy resource "+f+" with status code "+E.status)},E.onerror=C;var k=l.indexOf("?")>-1?"&":"?";if(E.open("GET",""+l+k+"url="+encodeURIComponent(i)+"&responseType="+v),v!=="text"&&E instanceof XMLHttpRequest&&(E.responseType=v),c._options.imageTimeout){var K=c._options.imageTimeout;E.timeout=K,E.ontimeout=function(){return C("Timed out ("+K+"ms) proxying "+f)}}E.send()})},s})(),LQ=/^data:image\/svg\+xml/i,kQ=/^data:image\/.*;base64,/i,TQ=/^data:image\/.*/i,MQ=function(s){return he.SUPPORT_SVG_DRAWING||!KQ(s)},As=function(s){return TQ.test(s)},OQ=function(s){return kQ.test(s)},es=function(s){return s.substr(0,4)==="blob"},KQ=function(s){return s.substr(-3).toLowerCase()==="svg"||LQ.test(s)},yA=(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})(),dn=function(s,i,c){return new yA(s.x+(i.x-s.x)*c,s.y+(i.y-s.y)*c)},vo=(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=dn(this.start,this.startControl,i),f=dn(this.startControl,this.endControl,i),p=dn(this.endControl,this.end,i),C=dn(l,f,i),v=dn(f,p,i),E=dn(C,v,i);return c?new s(this.start,l,C,E):new s(E,v,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},RQ=(function(){function s(i){var c=i.styles,l=i.bounds,f=Wn(c.borderTopLeftRadius,l.width,l.height),p=f[0],C=f[1],v=Wn(c.borderTopRightRadius,l.width,l.height),E=v[0],k=v[1],K=Wn(c.borderBottomRightRadius,l.width,l.height),z=K[0],q=K[1],CA=Wn(c.borderBottomLeftRadius,l.width,l.height),fA=CA[0],mA=CA[1],KA=[];KA.push((p+E)/l.width),KA.push((fA+z)/l.width),KA.push((C+mA)/l.height),KA.push((k+q)/l.height);var DA=Math.max.apply(Math,KA);DA>1&&(p/=DA,C/=DA,E/=DA,k/=DA,z/=DA,q/=DA,fA/=DA,mA/=DA);var _A=l.width-E,Ae=l.height-q,zA=l.width-z,kA=l.height-mA,QA=c.borderTopWidth,VA=c.borderRightWidth,PA=c.borderBottomWidth,MA=c.borderLeftWidth,ce=jA(c.paddingTop,i.bounds.width),Qe=jA(c.paddingRight,i.bounds.width),Ie=jA(c.paddingBottom,i.bounds.width),ZA=jA(c.paddingLeft,i.bounds.width);this.topLeftBorderDoubleOuterBox=p>0||C>0?ee(l.left+MA/3,l.top+QA/3,p-MA/3,C-QA/3,WA.TOP_LEFT):new yA(l.left+MA/3,l.top+QA/3),this.topRightBorderDoubleOuterBox=p>0||C>0?ee(l.left+_A,l.top+QA/3,E-VA/3,k-QA/3,WA.TOP_RIGHT):new yA(l.left+l.width-VA/3,l.top+QA/3),this.bottomRightBorderDoubleOuterBox=z>0||q>0?ee(l.left+zA,l.top+Ae,z-VA/3,q-PA/3,WA.BOTTOM_RIGHT):new yA(l.left+l.width-VA/3,l.top+l.height-PA/3),this.bottomLeftBorderDoubleOuterBox=fA>0||mA>0?ee(l.left+MA/3,l.top+kA,fA-MA/3,mA-PA/3,WA.BOTTOM_LEFT):new yA(l.left+MA/3,l.top+l.height-PA/3),this.topLeftBorderDoubleInnerBox=p>0||C>0?ee(l.left+MA*2/3,l.top+QA*2/3,p-MA*2/3,C-QA*2/3,WA.TOP_LEFT):new yA(l.left+MA*2/3,l.top+QA*2/3),this.topRightBorderDoubleInnerBox=p>0||C>0?ee(l.left+_A,l.top+QA*2/3,E-VA*2/3,k-QA*2/3,WA.TOP_RIGHT):new yA(l.left+l.width-VA*2/3,l.top+QA*2/3),this.bottomRightBorderDoubleInnerBox=z>0||q>0?ee(l.left+zA,l.top+Ae,z-VA*2/3,q-PA*2/3,WA.BOTTOM_RIGHT):new yA(l.left+l.width-VA*2/3,l.top+l.height-PA*2/3),this.bottomLeftBorderDoubleInnerBox=fA>0||mA>0?ee(l.left+MA*2/3,l.top+kA,fA-MA*2/3,mA-PA*2/3,WA.BOTTOM_LEFT):new yA(l.left+MA*2/3,l.top+l.height-PA*2/3),this.topLeftBorderStroke=p>0||C>0?ee(l.left+MA/2,l.top+QA/2,p-MA/2,C-QA/2,WA.TOP_LEFT):new yA(l.left+MA/2,l.top+QA/2),this.topRightBorderStroke=p>0||C>0?ee(l.left+_A,l.top+QA/2,E-VA/2,k-QA/2,WA.TOP_RIGHT):new yA(l.left+l.width-VA/2,l.top+QA/2),this.bottomRightBorderStroke=z>0||q>0?ee(l.left+zA,l.top+Ae,z-VA/2,q-PA/2,WA.BOTTOM_RIGHT):new yA(l.left+l.width-VA/2,l.top+l.height-PA/2),this.bottomLeftBorderStroke=fA>0||mA>0?ee(l.left+MA/2,l.top+kA,fA-MA/2,mA-PA/2,WA.BOTTOM_LEFT):new yA(l.left+MA/2,l.top+l.height-PA/2),this.topLeftBorderBox=p>0||C>0?ee(l.left,l.top,p,C,WA.TOP_LEFT):new yA(l.left,l.top),this.topRightBorderBox=E>0||k>0?ee(l.left+_A,l.top,E,k,WA.TOP_RIGHT):new yA(l.left+l.width,l.top),this.bottomRightBorderBox=z>0||q>0?ee(l.left+zA,l.top+Ae,z,q,WA.BOTTOM_RIGHT):new yA(l.left+l.width,l.top+l.height),this.bottomLeftBorderBox=fA>0||mA>0?ee(l.left,l.top+kA,fA,mA,WA.BOTTOM_LEFT):new yA(l.left,l.top+l.height),this.topLeftPaddingBox=p>0||C>0?ee(l.left+MA,l.top+QA,Math.max(0,p-MA),Math.max(0,C-QA),WA.TOP_LEFT):new yA(l.left+MA,l.top+QA),this.topRightPaddingBox=E>0||k>0?ee(l.left+Math.min(_A,l.width-VA),l.top+QA,_A>l.width+VA?0:Math.max(0,E-VA),Math.max(0,k-QA),WA.TOP_RIGHT):new yA(l.left+l.width-VA,l.top+QA),this.bottomRightPaddingBox=z>0||q>0?ee(l.left+Math.min(zA,l.width-MA),l.top+Math.min(Ae,l.height-PA),Math.max(0,z-VA),Math.max(0,q-PA),WA.BOTTOM_RIGHT):new yA(l.left+l.width-VA,l.top+l.height-PA),this.bottomLeftPaddingBox=fA>0||mA>0?ee(l.left+MA,l.top+Math.min(kA,l.height-PA),Math.max(0,fA-MA),Math.max(0,mA-PA),WA.BOTTOM_LEFT):new yA(l.left+MA,l.top+l.height-PA),this.topLeftContentBox=p>0||C>0?ee(l.left+MA+ZA,l.top+QA+ce,Math.max(0,p-(MA+ZA)),Math.max(0,C-(QA+ce)),WA.TOP_LEFT):new yA(l.left+MA+ZA,l.top+QA+ce),this.topRightContentBox=E>0||k>0?ee(l.left+Math.min(_A,l.width+MA+ZA),l.top+QA+ce,_A>l.width+MA+ZA?0:E-MA+ZA,k-(QA+ce),WA.TOP_RIGHT):new yA(l.left+l.width-(VA+Qe),l.top+QA+ce),this.bottomRightContentBox=z>0||q>0?ee(l.left+Math.min(zA,l.width-(MA+ZA)),l.top+Math.min(Ae,l.height+QA+ce),Math.max(0,z-(VA+Qe)),q-(PA+Ie),WA.BOTTOM_RIGHT):new yA(l.left+l.width-(VA+Qe),l.top+l.height-(PA+Ie)),this.bottomLeftContentBox=fA>0||mA>0?ee(l.left+MA+ZA,l.top+kA,Math.max(0,fA-(MA+ZA)),mA-(PA+Ie),WA.BOTTOM_LEFT):new yA(l.left+MA+ZA,l.top+l.height-(PA+Ie))}return s})(),WA;(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"})(WA||(WA={}));var ee=function(s,i,c,l,f){var p=4*((Math.sqrt(2)-1)/3),C=c*p,v=l*p,E=s+c,k=i+l;switch(f){case WA.TOP_LEFT:return new vo(new yA(s,k),new yA(s,k-v),new yA(E-C,i),new yA(E,i));case WA.TOP_RIGHT:return new vo(new yA(s,i),new yA(s+C,i),new yA(E,k-v),new yA(E,k));case WA.BOTTOM_RIGHT:return new vo(new yA(E,i),new yA(E,i+v),new yA(s+C,k),new yA(s,k));case WA.BOTTOM_LEFT:default:return new vo(new yA(E,k),new yA(E-C,k),new yA(s,i+v),new yA(s,i))}},Qo=function(s){return[s.topLeftBorderBox,s.topRightBorderBox,s.bottomRightBorderBox,s.bottomLeftBorderBox]},VQ=function(s){return[s.topLeftContentBox,s.topRightContentBox,s.bottomRightContentBox,s.bottomLeftContentBox]},Eo=function(s){return[s.topLeftPaddingBox,s.topRightPaddingBox,s.bottomRightPaddingBox,s.bottomLeftPaddingBox]},PQ=(function(){function s(i,c,l){this.offsetX=i,this.offsetY=c,this.matrix=l,this.type=0,this.target=6}return s})(),Fo=(function(){function s(i,c){this.path=i,this.target=c,this.type=1}return s})(),GQ=(function(){function s(i){this.opacity=i,this.type=2,this.target=6}return s})(),zQ=function(s){return s.type===0},lu=function(s){return s.type===1},XQ=function(s){return s.type===2},cu=function(s,i){return s.length===i.length?s.some(function(c,l){return c===i[l]}):!1},$Q=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})},uu=(function(){function s(i){this.element=i,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return s})(),du=(function(){function s(i,c){if(this.container=i,this.parent=c,this.effects=[],this.curves=new RQ(this.container),this.container.styles.opacity<1&&this.effects.push(new GQ(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 PQ(l,f,p))}if(this.container.styles.overflowX!==0){var C=Qo(this.curves),v=Eo(this.curves);cu(C,v)?this.effects.push(new Fo(C,6)):(this.effects.push(new Fo(C,2)),this.effects.push(new Fo(v,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!lu(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=Qo(l.curves),v=Eo(l.curves);cu(C,v)||f.unshift(new Fo(v,6))}}else f.unshift.apply(f,p);l=l.parent}return f.filter(function(E){return de(E.target,i)})},s})(),ts=function(s,i,c,l){s.container.elements.forEach(function(f){var p=de(f.flags,4),C=de(f.flags,2),v=new du(f,s);de(f.styles.display,2048)&&l.push(v);var E=de(f.flags,8)?[]:l;if(p||C){var k=p||f.styles.isPositioned()?c:i,K=new uu(v);if(f.styles.isPositioned()||f.styles.opacity<1||f.styles.isTransformed()){var z=f.styles.zIndex.order;if(z<0){var q=0;k.negativeZIndex.some(function(fA,mA){return z>fA.element.container.styles.zIndex.order?(q=mA,!1):q>0}),k.negativeZIndex.splice(q,0,K)}else if(z>0){var CA=0;k.positiveZIndex.some(function(fA,mA){return z>=fA.element.container.styles.zIndex.order?(CA=mA+1,!1):CA>0}),k.positiveZIndex.splice(CA,0,K)}else k.zeroOrAutoZIndexOrTransformedOrOpacity.push(K)}else f.styles.isFloating()?k.nonPositionedFloats.push(K):k.nonPositionedInlineLevel.push(K);ts(v,K,p?K:c,E)}else f.styles.isInlineLevel()?i.inlineLevel.push(v):i.nonInlineLevel.push(v),ts(v,i,c,E);de(f.flags,8)&&fu(f,E)})},fu=function(s,i){for(var c=s instanceof zi?s.start:1,l=s instanceof zi?s.reversed:!1,f=0;f<i.length;f++){var p=i[f];p.container instanceof Mc&&typeof p.container.value=="number"&&p.container.value!==0&&(c=p.container.value),p.listValue=Ar(c,p.container.styles.listStyleType,!0),c+=l?-1:1}},WQ=function(s){var i=new du(s,null),c=new uu(i),l=[];return ts(i,c,c,l),fu(i.container,l),c},gu=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)}},YQ=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)}},JQ=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)}},ZQ=function(s,i){switch(i){case 0:return Uo(s.topLeftBorderStroke,s.topRightBorderStroke);case 1:return Uo(s.topRightBorderStroke,s.bottomRightBorderStroke);case 2:return Uo(s.bottomRightBorderStroke,s.bottomLeftBorderStroke);default:return Uo(s.bottomLeftBorderStroke,s.topLeftBorderStroke)}},Uo=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},hu=function(s){var i=s.bounds,c=s.styles;return i.add(c.borderLeftWidth,c.borderTopWidth,-(c.borderRightWidth+c.borderLeftWidth),-(c.borderTopWidth+c.borderBottomWidth))},bo=function(s){var i=s.styles,c=s.bounds,l=jA(i.paddingLeft,c.width),f=jA(i.paddingRight,c.width),p=jA(i.paddingTop,c.width),C=jA(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))},jQ=function(s,i){return s===0?i.bounds:s===2?bo(i):hu(i)},qQ=function(s,i){return s===0?i.bounds:s===2?bo(i):hu(i)},ns=function(s,i,c){var l=jQ(gn(s.styles.backgroundOrigin,i),s),f=qQ(gn(s.styles.backgroundClip,i),s),p=AE(gn(s.styles.backgroundSize,i),c,l),C=p[0],v=p[1],E=Wn(gn(s.styles.backgroundPosition,i),l.width-C,l.height-v);return[eE(gn(s.styles.backgroundRepeat,i),E,p,l,f),Math.round(l.left+E[0]),Math.round(l.top+E[1]),C,v]},fn=function(s){return JA(s)&&s.value===an.AUTO},Ho=function(s){return typeof s=="number"},AE=function(s,i,c){var l=i[0],f=i[1],p=i[2],C=s[0],v=s[1];if(!C)return[0,0];if(le(C)&&v&&le(v))return[jA(C,c.width),jA(v,c.height)];var E=Ho(p);if(JA(C)&&(C.value===an.CONTAIN||C.value===an.COVER))return Ho(p)?c.width/c.height<p!=(C.value===an.COVER)?[c.width,c.width/p]:[c.height*p,c.height]:[c.width,c.height];var k=Ho(l),K=Ho(f),z=k||K;if(fn(C)&&(!v||fn(v)))return k&&K?[l,f]:!E&&!z?[c.width,c.height]:z&&E?[k?l:f*p,K?f:l/p]:[k?l:c.width,K?f:c.height];if(E){var q=0,CA=0;return le(C)?q=jA(C,c.width):le(v)&&(CA=jA(v,c.height)),fn(C)?q=CA*p:(!v||fn(v))&&(CA=q/p),[q,CA]}var fA=null,mA=null;if(le(C)?fA=jA(C,c.width):v&&le(v)&&(mA=jA(v,c.height)),fA!==null&&(!v||fn(v))&&(mA=k&&K?fA/l*f:c.height),mA!==null&&fn(C)&&(fA=k&&K?mA/f*l:c.width),fA!==null&&mA!==null)return[fA,mA];throw new Error("Unable to calculate background-size for element")},gn=function(s,i){var c=s[i];return typeof c>"u"?s[0]:c},eE=function(s,i,c,l,f){var p=i[0],C=i[1],v=c[0],E=c[1];switch(s){case 2:return[new yA(Math.round(l.left),Math.round(l.top+C)),new yA(Math.round(l.left+l.width),Math.round(l.top+C)),new yA(Math.round(l.left+l.width),Math.round(E+l.top+C)),new yA(Math.round(l.left),Math.round(E+l.top+C))];case 3:return[new yA(Math.round(l.left+p),Math.round(l.top)),new yA(Math.round(l.left+p+v),Math.round(l.top)),new yA(Math.round(l.left+p+v),Math.round(l.height+l.top)),new yA(Math.round(l.left+p),Math.round(l.height+l.top))];case 1:return[new yA(Math.round(l.left+p),Math.round(l.top+C)),new yA(Math.round(l.left+p+v),Math.round(l.top+C)),new yA(Math.round(l.left+p+v),Math.round(l.top+C+E)),new yA(Math.round(l.left+p),Math.round(l.top+C+E))];default:return[new yA(Math.round(f.left),Math.round(f.top)),new yA(Math.round(f.left+f.width),Math.round(f.top)),new yA(Math.round(f.left+f.width),Math.round(f.height+f.top)),new yA(Math.round(f.left),Math.round(f.height+f.top))]}},tE="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Bu="Hidden Text",nE=(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=tE,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(Bu)),l.appendChild(p),l.appendChild(f);var v=f.offsetTop-p.offsetTop+2;l.removeChild(p),l.appendChild(this._document.createTextNode(Bu)),l.style.lineHeight="normal",f.style.verticalAlign="super";var E=f.offsetTop-l.offsetTop+2;return C.removeChild(l),{baseline:v,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})(),pu=(function(){function s(i,c){this.context=i,this.options=c}return s})(),rE=1e4,oE=(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 nE(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(),XQ(c)&&(this.ctx.globalAlpha=c.opacity),zQ(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)),lu(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):Gi(c.text).reduce(function(C,v){return p.ctx.fillText(v,C,c.bounds.top+f),C+p.ctx.measureText(v).width},c.bounds.left)},i.prototype.createFontStyle=function(c){var l=c.fontVariant.filter(function(C){return C==="normal"||C==="small-caps"}).join(""),f=cE(c.fontFamily).join(", "),p=$n(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,v,E,k,K,z,q=this;return u(this,function(CA){return f=this.createFontStyle(l),p=f[0],C=f[1],v=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,v),k=E.baseline,K=E.middle,z=l.paintOrder,c.textBounds.forEach(function(fA){z.forEach(function(mA){switch(mA){case 0:q.ctx.fillStyle=fe(l.color),q.renderTextWithLetterSpacing(fA,l.letterSpacing,k);var KA=l.textShadow;KA.length&&fA.text.trim().length&&(KA.slice(0).reverse().forEach(function(DA){q.ctx.shadowColor=fe(DA.color),q.ctx.shadowOffsetX=DA.offsetX.number*q.options.scale,q.ctx.shadowOffsetY=DA.offsetY.number*q.options.scale,q.ctx.shadowBlur=DA.blur.number,q.renderTextWithLetterSpacing(fA,l.letterSpacing,k)}),q.ctx.shadowColor="",q.ctx.shadowOffsetX=0,q.ctx.shadowOffsetY=0,q.ctx.shadowBlur=0),l.textDecorationLine.length&&(q.ctx.fillStyle=fe(l.textDecorationColor||l.color),l.textDecorationLine.forEach(function(DA){switch(DA){case 1:q.ctx.fillRect(fA.bounds.left,Math.round(fA.bounds.top+k),fA.bounds.width,1);break;case 2:q.ctx.fillRect(fA.bounds.left,Math.round(fA.bounds.top),fA.bounds.width,1);break;case 3:q.ctx.fillRect(fA.bounds.left,Math.ceil(fA.bounds.top+K),fA.bounds.width,1);break}}));break;case 1:l.webkitTextStrokeWidth&&fA.text.trim().length&&(q.ctx.strokeStyle=fe(l.webkitTextStrokeColor),q.ctx.lineWidth=l.webkitTextStrokeWidth,q.ctx.lineJoin=window.chrome?"miter":"round",q.ctx.strokeText(fA.text,fA.bounds.left,fA.bounds.top+k)),q.ctx.strokeStyle="",q.ctx.lineWidth=0,q.ctx.lineJoin="miter";break}})}),[2]})})},i.prototype.renderReplacedElement=function(c,l,f){if(f&&c.intrinsicWidth>0&&c.intrinsicHeight>0){var p=bo(c),C=Eo(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,v,E,_A,_A,k,K,z,q,zA,CA,fA,kA,mA,KA,DA,_A,Ae,zA,kA;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,v=l.textNodes,QA.label=1;case 1:return C<v.length?(E=v[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 Lc))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 _A=QA.sent(),this.renderReplacedElement(l,f,_A),[3,8];case 7:return QA.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 Tc))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 _A=QA.sent(),this.renderReplacedElement(l,f,_A),[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 Vc&&l.tree?(k=new i(this.context,{scale:this.options.scale,backgroundColor:l.backgroundColor,x:0,y:0,width:l.width,height:l.height}),[4,k.render(l.tree)]):[3,14];case 13:K=QA.sent(),l.width&&l.height&&this.ctx.drawImage(K,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 Xi&&(z=Math.min(l.bounds.width,l.bounds.height),l.type===Bo?l.checked&&(this.ctx.save(),this.path([new yA(l.bounds.left+z*.39363,l.bounds.top+z*.79),new yA(l.bounds.left+z*.16,l.bounds.top+z*.5549),new yA(l.bounds.left+z*.27347,l.bounds.top+z*.44071),new yA(l.bounds.left+z*.39694,l.bounds.top+z*.5649),new yA(l.bounds.left+z*.72983,l.bounds.top+z*.23),new yA(l.bounds.left+z*.84,l.bounds.top+z*.34085),new yA(l.bounds.left+z*.39363,l.bounds.top+z*.79)]),this.ctx.fillStyle=fe(Oc),this.ctx.fill(),this.ctx.restore()):l.type===po&&l.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(l.bounds.left+z/2,l.bounds.top+z/2,z/4,0,Math.PI*2,!0),this.ctx.fillStyle=fe(Oc),this.ctx.fill(),this.ctx.restore())),iE(l)&&l.value.length){switch(q=this.createFontStyle(p),zA=q[0],CA=q[1],fA=this.fontMetrics.getMetrics(zA,CA).baseline,this.ctx.font=zA,this.ctx.fillStyle=fe(p.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=aE(l.styles.textAlign),kA=bo(l),mA=0,l.styles.textAlign){case 1:mA+=kA.width/2;break;case 2:mA+=kA.width;break}KA=kA.add(mA,0,0,-kA.height/2+1),this.ctx.save(),this.path([new yA(kA.left,kA.top),new yA(kA.left+kA.width,kA.top),new yA(kA.left+kA.width,kA.top+kA.height),new yA(kA.left,kA.top+kA.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new jn(l.value,KA),p.letterSpacing,fA),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(DA=l.styles.listStyleImage,DA.type!==0)return[3,18];_A=void 0,Ae=DA.url,QA.label=15;case 15:return QA.trys.push([15,17,,18]),[4,this.context.cache.match(Ae)];case 16:return _A=QA.sent(),this.ctx.drawImage(_A,l.bounds.left-(_A.width+10),l.bounds.top),[3,18];case 17:return QA.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&&(zA=this.createFontStyle(p)[0],this.ctx.font=zA,this.ctx.fillStyle=fe(p.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",kA=new h(l.bounds.left,l.bounds.top+jA(l.styles.paddingTop,l.bounds.width),l.bounds.width,Bc(p.lineHeight,p.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new jn(c.listValue,kA),p.letterSpacing,Bc(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,DA,p,C,DA,v,E,DA,k,K,DA,z,q,DA,CA,fA,DA,mA,KA,DA;return u(this,function(_A){switch(_A.label){case 0:if(de(c.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(c.element)];case 1:_A.sent(),l=0,f=c.negativeZIndex,_A.label=2;case 2:return l<f.length?(DA=f[l],[4,this.renderStack(DA)]):[3,5];case 3:_A.sent(),_A.label=4;case 4:return l++,[3,2];case 5:return[4,this.renderNodeContent(c.element)];case 6:_A.sent(),p=0,C=c.nonInlineLevel,_A.label=7;case 7:return p<C.length?(DA=C[p],[4,this.renderNode(DA)]):[3,10];case 8:_A.sent(),_A.label=9;case 9:return p++,[3,7];case 10:v=0,E=c.nonPositionedFloats,_A.label=11;case 11:return v<E.length?(DA=E[v],[4,this.renderStack(DA)]):[3,14];case 12:_A.sent(),_A.label=13;case 13:return v++,[3,11];case 14:k=0,K=c.nonPositionedInlineLevel,_A.label=15;case 15:return k<K.length?(DA=K[k],[4,this.renderStack(DA)]):[3,18];case 16:_A.sent(),_A.label=17;case 17:return k++,[3,15];case 18:z=0,q=c.inlineLevel,_A.label=19;case 19:return z<q.length?(DA=q[z],[4,this.renderNode(DA)]):[3,22];case 20:_A.sent(),_A.label=21;case 21:return z++,[3,19];case 22:CA=0,fA=c.zeroOrAutoZIndexOrTransformedOrOpacity,_A.label=23;case 23:return CA<fA.length?(DA=fA[CA],[4,this.renderStack(DA)]):[3,26];case 24:_A.sent(),_A.label=25;case 25:return CA++,[3,23];case 26:mA=0,KA=c.positiveZIndex,_A.label=27;case 27:return mA<KA.length?(DA=KA[mA],[4,this.renderStack(DA)]):[3,30];case 28:_A.sent(),_A.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=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,v,E;return u(this,function(k){switch(k.label){case 0:l=c.styles.backgroundImage.length-1,f=function(K){var z,q,CA,ce,Ee,Fe,ZA,Be,PA,fA,ce,Ee,Fe,ZA,Be,mA,KA,DA,_A,Ae,zA,kA,QA,VA,PA,MA,ce,Qe,Ie,ZA,Be,Ht,Ee,Fe,Rt,Ye,It,Vt,Pt,ct,Gt,ut;return u(this,function(hn){switch(hn.label){case 0:if(K.type!==0)return[3,5];z=void 0,q=K.url,hn.label=1;case 1:return hn.trys.push([1,3,,4]),[4,p.context.cache.match(q)];case 2:return z=hn.sent(),[3,4];case 3:return hn.sent(),p.context.logger.error("Error loading background-image "+q),[3,4];case 4:return z&&(CA=ns(c,l,[z.width,z.height,z.width/z.height]),ce=CA[0],Ee=CA[1],Fe=CA[2],ZA=CA[3],Be=CA[4],PA=p.ctx.createPattern(p.resizeImage(z,ZA,Be),"repeat"),p.renderRepeat(ce,PA,Ee,Fe)),[3,6];case 5:ZC(K)?(fA=ns(c,l,[null,null,null]),ce=fA[0],Ee=fA[1],Fe=fA[2],ZA=fA[3],Be=fA[4],mA=XC(K.angle,ZA,Be),KA=mA[0],DA=mA[1],_A=mA[2],Ae=mA[3],zA=mA[4],kA=document.createElement("canvas"),kA.width=ZA,kA.height=Be,QA=kA.getContext("2d"),VA=QA.createLinearGradient(DA,Ae,_A,zA),oc(K.stops,KA).forEach(function(tr){return VA.addColorStop(tr.stop,fe(tr.color))}),QA.fillStyle=VA,QA.fillRect(0,0,ZA,Be),ZA>0&&Be>0&&(PA=p.ctx.createPattern(kA,"repeat"),p.renderRepeat(ce,PA,Ee,Fe))):jC(K)&&(MA=ns(c,l,[null,null,null]),ce=MA[0],Qe=MA[1],Ie=MA[2],ZA=MA[3],Be=MA[4],Ht=K.position.length===0?[Ii]:K.position,Ee=jA(Ht[0],ZA),Fe=jA(Ht[Ht.length-1],Be),Rt=$C(K,Ee,Fe,ZA,Be),Ye=Rt[0],It=Rt[1],Ye>0&&It>0&&(Vt=p.ctx.createRadialGradient(Qe+Ee,Ie+Fe,0,Qe+Ee,Ie+Fe,Ye),oc(K.stops,Ye*2).forEach(function(tr){return Vt.addColorStop(tr.stop,fe(tr.color))}),p.path(ce),p.ctx.fillStyle=Vt,Ye!==It?(Pt=c.bounds.left+.5*c.bounds.width,ct=c.bounds.top+.5*c.bounds.height,Gt=It/Ye,ut=1/Gt,p.ctx.save(),p.ctx.translate(Pt,ct),p.ctx.transform(1,0,0,Gt,0,0),p.ctx.translate(-Pt,-ct),p.ctx.fillRect(Qe,ut*(Ie-ct)+ct,ZA,Be*ut),p.ctx.restore()):p.ctx.fill())),hn.label=6;case 6:return l--,[2]}})},p=this,C=0,v=c.styles.backgroundImage.slice(0).reverse(),k.label=1;case 1:return C<v.length?(E=v[C],[5,f(E)]):[3,4];case 2:k.sent(),k.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(gu(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,v;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=YQ(p,f),this.path(C),this.ctx.fillStyle=fe(c),this.ctx.fill(),v=JQ(p,f),this.path(v),this.ctx.fill(),[2]}})})},i.prototype.renderNodeBackgroundAndBorders=function(c){return a(this,void 0,void 0,function(){var l,f,p,C,v,E,k,K,z=this;return u(this,function(q){switch(q.label){case 0:return this.applyEffects(c.getEffects(2)),l=c.container.styles,f=!Et(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=sE(gn(l.backgroundClip,0),c.curves),f||l.boxShadow.length?(this.ctx.save(),this.path(C),this.ctx.clip(),Et(l.backgroundColor)||(this.ctx.fillStyle=fe(l.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(c.container)]):[3,2];case 1:q.sent(),this.ctx.restore(),l.boxShadow.slice(0).reverse().forEach(function(CA){z.ctx.save();var fA=Qo(c.curves),mA=CA.inset?0:rE,KA=$Q(fA,-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?(z.path(fA),z.ctx.clip(),z.mask(KA)):(z.mask(fA),z.ctx.clip(),z.path(KA)),z.ctx.shadowOffsetX=CA.offsetX.number+mA,z.ctx.shadowOffsetY=CA.offsetY.number,z.ctx.shadowColor=fe(CA.color),z.ctx.shadowBlur=CA.blur.number,z.ctx.fillStyle=CA.inset?fe(CA.color):"rgba(0,0,0,1)",z.ctx.fill(),z.ctx.restore()}),q.label=2;case 2:v=0,E=0,k=p,q.label=3;case 3:return E<k.length?(K=k[E],K.style!==0&&!Et(K.color)&&K.width>0?K.style!==2?[3,5]:[4,this.renderDashedDottedBorder(K.color,K.width,v,c.curves,2)]:[3,11]):[3,13];case 4:return q.sent(),[3,11];case 5:return K.style!==3?[3,7]:[4,this.renderDashedDottedBorder(K.color,K.width,v,c.curves,3)];case 6:return q.sent(),[3,11];case 7:return K.style!==4?[3,9]:[4,this.renderDoubleBorder(K.color,K.width,v,c.curves)];case 8:return q.sent(),[3,11];case 9:return[4,this.renderSolidBorder(K.color,v,c.curves)];case 10:q.sent(),q.label=11;case 11:v++,q.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 v,E,k,K,z,q,CA,fA,mA,KA,DA,_A,Ae,zA,kA,QA,kA,QA;return u(this,function(VA){return this.ctx.save(),v=ZQ(p,f),E=gu(p,f),C===2&&(this.path(E),this.ctx.clip()),xe(E[0])?(k=E[0].start.x,K=E[0].start.y):(k=E[0].x,K=E[0].y),xe(E[1])?(z=E[1].end.x,q=E[1].end.y):(z=E[1].x,q=E[1].y),f===0||f===2?CA=Math.abs(k-z):CA=Math.abs(K-q),this.ctx.beginPath(),C===3?this.formatPath(v):this.formatPath(E.slice(0,2)),fA=l<3?l*3:l*2,mA=l<3?l*2:l,C===3&&(fA=l,mA=l),KA=!0,CA<=fA*2?KA=!1:CA<=fA*2+mA?(DA=CA/(2*fA+mA),fA*=DA,mA*=DA):(_A=Math.floor((CA+mA)/(fA+mA)),Ae=(CA-_A*fA)/(_A-1),zA=(CA-(_A+1)*fA)/_A,mA=zA<=0||Math.abs(mA-Ae)<Math.abs(mA-zA)?Ae:zA),KA&&(C===3?this.ctx.setLineDash([0,fA+mA]):this.ctx.setLineDash([fA,mA])),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])&&(kA=E[3],QA=E[0],this.ctx.beginPath(),this.formatPath([new yA(kA.end.x,kA.end.y),new yA(QA.start.x,QA.start.y)]),this.ctx.stroke()),xe(E[1])&&(kA=E[1],QA=E[2],this.ctx.beginPath(),this.formatPath([new yA(kA.end.x,kA.end.y),new yA(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=WQ(c),[4,this.renderStack(l)];case 1:return f.sent(),this.applyEffects([]),[2,this.canvas]}})})},i})(pu),iE=function(s){return s instanceof Rc||s instanceof Kc?!0:s instanceof Xi&&s.type!==po&&s.type!==Bo},sE=function(s,i){switch(s){case 0:return Qo(i);case 2:return VQ(i);default:return Eo(i)}},aE=function(s){switch(s){case 1:return"center";case 2:return"right";default:return"left"}},lE=["-apple-system","system-ui"],cE=function(s){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?s.filter(function(i){return lE.indexOf(i)===-1}):s},uE=(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=Pi(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,c),[4,dE(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})(pu),dE=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))})},fE=(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})(),gE=(function(){function s(i,c){var l;this.windowBounds=c,this.instanceName="#"+s.instanceCount++,this.logger=new fE({id:this.instanceName,enabled:i.logging}),this.cache=(l=i.cache)!==null&&l!==void 0?l:new NQ(this,i)}return s.instanceCount=1,s})(),hE=function(s,i){return i===void 0&&(i={}),BE(s,i)};typeof window<"u"&&au.setContext(window);var BE=function(s,i){return a(void 0,void 0,void 0,function(){var c,l,f,p,C,v,E,k,K,z,q,CA,fA,mA,KA,DA,_A,Ae,zA,kA,VA,QA,VA,PA,MA,ce,Qe,Ie,ZA,Be,Ht,Ee,Fe,Rt,Ye,It,Vt,Pt,ct,Gt;return u(this,function(ut){switch(ut.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:(ce=i.useCORS)!==null&&ce!==void 0?ce:!1},p=o({logging:(Qe=i.logging)!==null&&Qe!==void 0?Qe:!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:(Ht=i.scrollY)!==null&&Ht!==void 0?Ht:l.pageYOffset},v=new h(C.scrollX,C.scrollY,C.windowWidth,C.windowHeight),E=new gE(p,v),k=(Ee=i.foreignObjectRendering)!==null&&Ee!==void 0?Ee:!1,K={allowTaint:(Fe=i.allowTaint)!==null&&Fe!==void 0?Fe:!1,onclone:i.onclone,ignoreElements:i.ignoreElements,inlineImages:k,copyStyles:k},E.logger.debug("Starting document clone with size "+v.width+"x"+v.height+" scrolled to "+-v.left+","+-v.top),z=new iu(E,s,K),q=z.clonedReferenceElement,q?[4,z.toIFrame(c,v)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return CA=ut.sent(),fA=Wi(q)||pQ(q)?B(q.ownerDocument):g(E,q),mA=fA.width,KA=fA.height,DA=fA.left,_A=fA.top,Ae=pE(E,q,i.backgroundColor),zA={canvas:i.canvas,backgroundColor:Ae,scale:(Ye=(Rt=i.scale)!==null&&Rt!==void 0?Rt:l.devicePixelRatio)!==null&&Ye!==void 0?Ye:1,x:((It=i.x)!==null&&It!==void 0?It:0)+DA,y:((Vt=i.y)!==null&&Vt!==void 0?Vt:0)+_A,width:(Pt=i.width)!==null&&Pt!==void 0?Pt:Math.ceil(mA),height:(ct=i.height)!==null&&ct!==void 0?ct:Math.ceil(KA)},k?(E.logger.debug("Document cloned, using foreign object rendering"),VA=new uE(E,zA),[4,VA.render(q)]):[3,3];case 2:return kA=ut.sent(),[3,5];case 3:return E.logger.debug("Document cloned, element located at "+DA+","+_A+" with size "+mA+"x"+KA+" using computed rendering"),E.logger.debug("Starting DOM parsing"),QA=Gc(E,q),Ae===QA.styles.backgroundColor&&(QA.styles.backgroundColor=at.TRANSPARENT),E.logger.debug("Starting renderer for element at "+zA.x+","+zA.y+" with size "+zA.width+"x"+zA.height),VA=new oE(E,zA),[4,VA.render(QA)];case 4:kA=ut.sent(),ut.label=5;case 5:return(!((Gt=i.removeContainer)!==null&&Gt!==void 0)||Gt)&&(iu.destroy(CA)||E.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),E.logger.debug("Finished rendering"),[2,kA]}})})},pE=function(s,i,c){var l=i.ownerDocument,f=l.documentElement?Yn(s,getComputedStyle(l.documentElement).backgroundColor):at.TRANSPARENT,p=l.body?Yn(s,getComputedStyle(l.body).backgroundColor):at.TRANSPARENT,C=typeof c=="string"?Yn(s,c):c===null?at.TRANSPARENT:4294967295;return i===l.documentElement?Et(f)?Et(p)?C:p:f:C};return hE}))})),jw=is(Zw(),1),qw=(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:y,useData:Q}=(0,me.useAppInject)(),{loadData:U,getData:T}=Q(),M=(0,r.computed)(()=>{const S={transform:`scale(${t.scale}, ${t.scale})`,transformOrigin:"left top",position:"relative",width:$A(t.indexPage.config.w||1920),height:$A(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}),R=S=>{n("select",S)},H=S=>{n("move",S)},P=S=>{S?.target?.getAttribute("id")==="j-bi-design-container"&&n("select",t.indexPage)},iA={},Z=(S,eA)=>{S&&(iA[eA]=S)},aA=(0,r.computed)(()=>t.layout.map(S=>({...S,$refs:iA[S.id]}))),lA=async(S,eA)=>{if(S&&S.trim()){S=`async (jcode) => {${S}}`;const{res:I,msg:X,fn:F}=(0,me.getFunction)(S);if(I)return F(j(eA));m&&m(X)}},rA=S=>iA[S]?.getValue?.()||[],nA=S=>aA.value.find(({id:eA})=>eA===S)?.config||{},j=S=>(S.get=rA,S.getProps=nA,S.getSourceData=async(eA,I)=>(await U("dbsource",eA,JSON.stringify(I),!1),T("dbsource",eA,{params:I})),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,I)=>{switch(I){case"success":B&&B(eA);break;case"warning":w&&w(eA);break;case"error":m&&m(eA);break;case"info":y&&y(eA);break;default:y&&y(eA);break}},S);return(0,r.provide)("dui_bi_container",{executeEvent:lA}),(S,eA)=>{const I=(0,r.resolveComponent)("d-draggable");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{onClick:(0,r.withModifiers)(P,["stop"]),id:"j-bi-design-container",style:(0,r.normalizeStyle)(M.value)},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.layout,(X,F)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:X.id},[X.display?((0,r.openBlock)(),(0,r.createBlock)(I,{key:0,id:X.id,left:X.config.x,top:X.config.y,width:X.config.w,height:X.config.h,scale:1/e.scale,step:1/e.scale,"active-flag":X.id==e.activedComponent.id,readonly:X.lock,"data-id":X.id,onFocus:x=>R(X),onBlur:H,"z-index":e.layout.length-F,"is-active-bg-transparent":!0},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(X.componentName),(0,r.mergeProps)({style:{width:(0,r.unref)($A)(X.config.w),height:(0,r.unref)($A)(X.config.h)}},{ref_for:!0},X.config,{"is-design":!0,ref_for:!0,ref:x=>Z(x,X.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)}}}),Ul=qw,A0=({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}},e0=(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:y,getData:Q}=m(),U=(0,r.computed)(()=>A.layout),T=(0,r.ref)(),M=(0,r.ref)(1),R=(0,r.ref)(1),H=()=>{T.value&&P(T.value.offsetWidth,T.value.offsetHeight)},P=(N,L)=>{const O=A.indexPage.config?.w||1920,J=A.indexPage.config?.h||1080,tA=A.indexPage.config?.screenFit||"1";tA==="1"?(R.value=N/O,M.value=R.value):tA==="2"?(M.value=L/J,R.value=M.value):tA==="3"&&(R.value=N/O,M.value=L/J)},iA=(0,r.computed)(()=>{const N={transform:`scale(${R.value}, ${M.value})`,transformOrigin:"left top",position:"relative",overflow:"hidden",width:$A(A.indexPage.config?.w||1920),height:$A(A.indexPage.config?.h||1080),backgroundColor:A.indexPage.config?.backgroundColor||"var(--j-color-bg-container)"};return A.indexPage.config?.backgroundImage&&(N.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)"}`),N}),Z=(0,r.computed)(()=>({width:$A((A.indexPage.config?.w||1920)*R.value),height:$A((A.indexPage.config?.h||1080)*M.value)})),aA={},lA=(N,L)=>{N&&(aA[L]=N)},rA=new ResizeObserver(H);(0,r.onMounted)(()=>{U.value.forEach(N=>{N.$refs=aA[N.id]}),rA.observe(T.value)});const nA=async(N,L)=>{L.config.clickevent&&await S(JSON.parse(L.config?.clickevent),{param:{params:N}})},j=async(N,L)=>{if(N&&N.trim()){N=`async (jcode) => {${N}}`;const{res:O,msg:J,fn:tA}=(0,me.getFunction)(N);if(O)return tA(x(L));B&&B(J)}},S=async(N,L)=>{const{run:O}=A0({data:N,actions:A.actions,utils:{showLoading:me.fullScreenLoading,executeEvent:j},inputParams:L});await O()},eA=N=>aA[N]?.getValue()||[],I=(N,L=!0)=>{const O=U.value.find(({id:J})=>J===N);O&&(O.display=!L)},X=N=>U.value.find(({id:L})=>L===N)?.config||{},F=N=>{const L=U.value.find(({id:O})=>O===N);L?.$refs?.updateData&&L.$refs.updateData()},x=N=>(N.get=eA,N.setHide=I,N.getProps=X,N.refresh=F,N.getSourceData=async(L,O)=>(await y("dbsource",L,JSON.stringify(O),!1),Q("dbsource",L,{params:O})),N.getDateNow=L=>(0,me.formatToDateTime)(new Date,L||"YYYY-MM-DD HH:mm:ss"),N.httpGet=o,N.httpPost=a,N.httpPut=u,N.httpDelete=d,N.loading=()=>{(0,me.fullScreenLoading)(!0)},N.hideLoading=()=>{(0,me.fullScreenLoading)(!1)},N.message=(L,O)=>{switch(O){case"success":h&&h(L);break;case"warning":g&&g(L);break;case"error":B&&B(L);break;case"info":w&&w(L);break;default:w&&w(L);break}},N);return(0,r.provide)("dui_bi_viewer",{executeEvent:j}),(N,L)=>((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:T},[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)(Z.value)},[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)(iA.value)},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(U.value,(O,J)=>(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(O.componentName),(0,r.mergeProps)({key:O.id,ref_for:!0,ref:tA=>lA(tA,O.id),style:{position:"absolute",width:(0,r.unref)($A)(O.config.w),height:(0,r.unref)($A)(O.config.h),top:(0,r.unref)($A)(O.config.y),left:(0,r.unref)($A)(O.config.x),zIndex:e.layout.length-J}},{ref_for:!0},O.config,{"run-flow":S,onClick:tA=>nA(tA,O)}),null,16,["style","onClick"])),[[r.vShow,O.display!==!1]])),128))],4)],4)],4))}}),bl=e0,t0={class:"j-bi-design"},n0={class:"j-bi-design-left"},r0={style:{padding:"0 4px"}},o0=["onClick"],i0={class:"j-bi-design-left2"},s0={key:0,class:"j-block",style:{"padding-top":"28px"}},a0={class:"search-input-wraper"},l0=["onClick","data-id"],c0={class:"j-bi-design-layer-item-img"},u0=["src"],d0={class:"j-bi-design-layer-item-btns"},f0=["onClick"],g0=["onClick"],h0=["onClick"],B0=["onDragend"],p0={class:"component-item2-text"},m0=["src"],w0={class:"j-bi-design-right"},C0={class:"j-bi-design-title"},y0={class:"j-bi-design-panel"},v0=(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)({name:"页面",id:"indexPage",type:"indexPage",layerId:"0",config:{},display:!0,lock:!1,componentName:""});o.componentInit&&(u.value.config=o.componentInit("indexPage")||{},u.value.config.id="indexPage");const d=(0,r.computed)(()=>{const sA={};return o.components.forEach(cA=>{cA.children.forEach(xA=>{sA[xA.type]=xA})}),sA}),h=(0,r.ref)(0),g=(0,r.ref)(),B=(0,r.ref)([]),w=(0,r.ref)(!1),m=(0,r.ref)(0),y=(0,r.ref)(0),Q=(0,r.ref)(""),U=(0,r.computed)(()=>Q.value===""?{}:B.value.find(sA=>sA.id===Q.value)),T=()=>{w.value=!1,Q.value=""},M=sA=>{sA.target.className.indexOf("j-bi-design-contentmenu__btn")===-1&&T(),window.removeEventListener("mousedown",M)},R=sA=>{let{target:cA}=sA,xA=!1;cA.className.indexOf&&cA.className.indexOf("d-draggable__mask")>-1?(cA=cA.parentNode.parentNode,xA=!0):cA.className.indexOf&&cA.className.indexOf("j-bi-design-layer-item")>-1?xA=!0:cA.parentNode.className.indexOf&&cA.parentNode.className.indexOf("j-bi-design-layer-item")>-1?(cA=cA.parentNode,xA=!0):cA.parentNode.parentNode.className.indexOf("j-bi-design-layer-item")>-1&&(cA=cA.parentNode.parentNode,xA=!0),xA&&(sA.preventDefault(),sA.stopPropagation(),m.value=sA.clientX,y.value=sA.clientY-8,y.value+260>document.body.clientHeight&&(y.value=document.body.clientHeight-260),Q.value=cA.getAttribute("data-id"),w.value=!0,window.addEventListener("mousedown",M))},H=(0,r.ref)(""),P=(0,r.computed)(()=>H.value?B.value.filter(sA=>sA.config.label.indexOf(H.value)>-1):B.value),iA=sA=>{sA.display=!sA.display,T()},Z=sA=>{sA.lock=!sA.lock,T(),sA.lock&&sA.id===g.value?.id&&SA(u.value)},aA=(sA,cA)=>{if(!cA||B.value.length<1){T();return}const xA=B.value.findIndex(TA=>TA.id===cA.id);switch(sA){case"up":if(xA===-1||xA===0)break;B.value=lA(B.value,xA,xA-1);break;case"down":if(xA===-1||xA===B.value.length-1)break;B.value=lA(B.value,xA,xA+1);break;case"top":if(xA!==-1){const[TA]=B.value.splice(xA,1);B.value.unshift(TA)}break;case"bottom":if(xA!==-1){const[TA]=B.value.splice(xA,1);B.value.push(TA)}break}T()},lA=(sA,cA,xA)=>{const TA=sA[cA];return sA[cA]=sA[xA],sA[xA]=TA,sA},rA=(0,r.ref)(),nA=(0,r.ref)(20),j=(0,r.ref)(document.body.clientWidth),S=(0,r.ref)(document.body.clientHeight),eA=(0,r.ref)(0),I=(0,r.ref)(0),X=(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)"}),F=(0,r.computed)(()=>({x:0,y:0,width:j.value,height:S.value})),x=(0,r.ref)({h:[],v:[]}),N=(0,r.ref)(),L=(0,r.ref)(),O=(0,r.ref)(!1),J=(0,r.ref)({}),tA=(0,r.ref)(100),dA=(0,r.computed)({set(sA){tA.value=sA,a("update:scale",sA)},get(){let{scale:sA}=o;return sA===-1&&(sA=tA.value),sA/100}}),UA=(0,r.computed)(()=>(u.value.config.h||1080)*2),G=(0,r.computed)(()=>(u.value.config.w||1920)*2),Y=()=>{rA.value&&(j.value=rA.value.offsetWidth-nA.value,S.value=rA.value.offsetHeight-nA.value,N.value.scrollLeft=G.value/2-nA.value,N.value.scrollTop=UA.value/2-nA.value,$())},$=()=>{const sA=u.value.config.w||1920;j.value<sA&&(dA.value=j.value*100/sA)},oA=()=>{document.onkeydown=sA=>{if(sA.target?.nodeName==="TEXTAREA"||sA.target?.nodeName==="INPUT")return;const cA=sA.keyCode||sA.which;cA===32&&(sA.preventDefault(),J.value.space=!0),cA===17&&(sA.preventDefault(),J.value.ctrl=!0)},document.onkeyup=()=>{J.value={}}},BA=sA=>{J.value.space&&(O.value=!0,window.stardragEvent=sA,window.startSlideX=N.value.scrollLeft,window.startSlideY=N.value.scrollTop,document.onmousemove=cA=>{if(O.value){const xA=cA.clientX-window.stardragEvent.clientX,TA=cA.clientY-window.stardragEvent.clientY;N.value.scrollLeft=window.startSlideX-xA,N.value.scrollTop=window.startSlideY-TA}},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,O.value=!1})},wA=()=>{const sA=N.value.getBoundingClientRect(),cA=L.value.getBoundingClientRect(),xA=dA.value,TA=(sA.left+nA.value-cA.left)/xA,ot=(sA.top+nA.value-cA.top)/xA;eA.value=TA>>0,I.value=ot>>0},bA=sA=>{if(sA.preventDefault(),sA.ctrlKey||sA.metaKey){const cA=dA.value;dA.value=parseFloat(Math.max(.2,cA-sA.deltaY/500).toFixed(2))*100,cA!==dA.value&&(0,r.nextTick)(()=>{wA()})}},uA=sA=>{sA.forEach(cA=>{cA.type==="d-input-flow"&&(cA.config=cA.config||{},cA.config.flowComponents=o.flowComponents,cA.config.flowInit=o.flowInit,cA.config.flowComponentConfigInit=xA=>{o.flowComponentConfigInit&&(xA.designComponents=B.value,xA.component=g.value,o.flowComponentConfigInit(xA))},cA.config.flowComponentConfigs=o.flowComponentConfigs,cA.config.flowComponentConfigChange=o.flowComponentConfigChange),cA.children&&uA(cA.children)})},hA=(0,r.ref)(),_=(0,r.computed)(()=>g.value?`【${g.value.name}】`:""),b={};Object.keys(o.componentConfigs).forEach(sA=>{const cA=[{id:"id",type:"j-input",config:{label:"ID",readonly:!0}},{id:"label",type:"j-input",config:{label:"名称"}}],xA=[{id:"w",type:"j-number",config:{label:"宽度",min:0}},{id:"h",type:"j-number",config:{label:"高度",min:0}},{id:"x",type:"j-number",config:{label:"x轴",min:0}},{id:"y",type:"j-number",config:{label:"y轴",min:0}}],TA={type:"j-collapse",config:{defaultValue:[]},children:[]};sA!=="indexPage"&&TA.children?.push({config:{label:"基础信息"},children:[...cA]}),TA.children?.push(...o.componentConfigs[sA]),sA!=="indexPage"?(TA.children?.push({config:{label:"大小定位"},children:[...xA]}),TA.config?.defaultValue.push("_collapse0","_collapse1")):TA.children&&TA.children.length>0&&TA.config?.defaultValue.push("_collapse0"),uA(TA.children||[]),b[sA]=[TA]});const D=()=>{if(g.value){const sA=b[g.value.type];sA?hA.value.init(sA,g.value.config):hA.value.init([]),o.componentConfigInit&&o.componentConfigInit(g.value.type,{configRef:hA,components:B.value,configData:g.value.config})}else hA.value.init([])},W=sA=>{g.value&&o.componentConfigChange&&(g.value.id==="indexPage"&&(sA.id==="w"||sA.id==="h")&&(0,r.nextTick)(()=>{Y()}),o.componentConfigChange(g.value.type,{configRef:hA,configData:g.value.config,...sA}))},V=sA=>o.componentInit?o.componentInit(sA)||{}:{},pA=(sA,cA,xA)=>{const TA={name:sA.name,id:ft(),type:sA.type,layerId:"0",config:V(sA.type),display:!0,lock:!1,componentName:sA.componentName};TA.config.id=TA.id,TA.config.label=sA.name,TA.config.h=sA.h||100,TA.config.w=sA.w||100,TA.config.x=cA,TA.config.y=xA,B.value.unshift(TA),g.value=TA,D()},gA=(sA,cA)=>{const xA=document.getElementById("j-bi-design-container").getBoundingClientRect(),TA=sA.clientX-xA.left,ot=sA.clientY-xA.top;pA(cA,TA/dA.value-cA.w/2,ot/dA.value-cA.h/2)},HA=sA=>{B.value=B.value.filter(cA=>cA.id!==sA),g.value.id===sA&&(g.value=u.value,D()),T()},FA=sA=>{const cA=mn(sA),xA=ft();cA.id=xA,cA.config.id=xA,B.value.push(cA),g.value=cA,D(),T()},SA=sA=>{g.value?.id!==sA.id&&(g.value=sA,D())},OA=({left:sA,top:cA,width:xA,height:TA})=>{g.value&&(g.value.config.x=sA,g.value.config.y=cA,g.value.config.w=xA,g.value.config.h=TA,hA.value.setFormData({main:{x:sA,y:cA,w:xA,h:TA}}))},XA=new ResizeObserver(Y);(0,r.onMounted)(()=>{XA.observe(rA.value),oA(),SA(u.value)});const ae=()=>({ver:"1.0.0",components:mn(B.value),page:u.value}),re=sA=>{sA.components?.forEach(cA=>{cA.componentName=d.value[cA.type].componentName}),B.value=sA.components||[],u.value=sA.page||u.value,SA(u.value)},nt=()=>{B.value=[],SA(u.value)},Tt=()=>new Promise(sA=>{(0,jw.default)(L.value,{useCORS:!0,backgroundColor:null,allowTaint:!0}).then(cA=>{if(cA.width!==0&&cA.height!==0){sA(cA.toDataURL("image/png"));return}sA("")})}),rt=(0,r.ref)(),On=(0,r.ref)({});return A({clear:nt,setData:re,getData:ae,getImg:Tt,preview:()=>{On.value=ae(),rt.value.open("大屏预览","full")}}),(sA,cA)=>{const xA=(0,r.resolveComponent)("el-divider"),TA=(0,r.resolveComponent)("j-icon"),ot=(0,r.resolveComponent)("el-button"),Kn=(0,r.resolveComponent)("el-input"),it=(0,r.resolveComponent)("el-text"),Rn=(0,r.resolveComponent)("el-space"),tn=(0,r.resolveComponent)("j-form"),nn=(0,r.resolveComponent)("j-layer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",t0,[w.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"j-bi-design-contentmenu",style:(0,r.normalizeStyle)({left:m.value+"px",top:y.value+"px"})},[(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:cA[0]||(cA[0]=GA=>FA(U.value))},(0,r.toDisplayString)((0,r.unref)(n)("复制")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:cA[1]||(cA[1]=GA=>iA(U.value))},(0,r.toDisplayString)(U.value&&U.value.display?"隐藏":"显示"),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:cA[2]||(cA[2]=GA=>Z(U.value))},(0,r.toDisplayString)(U.value&&U.value.lock?"解锁":"锁定"),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:cA[3]||(cA[3]=GA=>aA("top",U.value))},(0,r.toDisplayString)((0,r.unref)(n)("置顶图层")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:cA[4]||(cA[4]=GA=>aA("bottom",U.value))},(0,r.toDisplayString)((0,r.unref)(n)("置底图层")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:cA[5]||(cA[5]=GA=>aA("up",U.value))},(0,r.toDisplayString)((0,r.unref)(n)("上移一层")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:cA[6]||(cA[6]=GA=>aA("down",U.value))},(0,r.toDisplayString)((0,r.unref)(n)("下移一层")),1),(0,r.createVNode)(xA,{style:{margin:"4px 0"}}),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",style:{color:"var(--j-color-danger)"},onClick:cA[7]||(cA[7]=GA=>HA(U.value?.id))},(0,r.toDisplayString)((0,r.unref)(n)("删除")),1)],4)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",n0,[(0,r.createElementVNode)("div",{onClick:cA[8]||(cA[8]=(0,r.withModifiers)(GA=>h.value=-1,["stop"])),class:(0,r.normalizeClass)(["component-item",{active:h.value==-1}])},[(0,r.createVNode)(TA,{size:24,icon:"mdi:bookmark-box-multiple-outline"}),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)((0,r.unref)(n)("图层")),1)],2),(0,r.createElementVNode)("div",r0,[(0,r.createVNode)(xA)]),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.components,(GA,ze)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:ze,onClick:(0,r.withModifiers)(wt=>h.value=ze,["stop"]),class:(0,r.normalizeClass)(["component-item",{active:h.value==ze}])},[(0,r.createVNode)(TA,{size:24,icon:GA.icon},null,8,["icon"]),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)((0,r.unref)(n)(GA.name)),1)],10,o0))),128))]),(0,r.createElementVNode)("div",i0,[h.value==-1?((0,r.openBlock)(),(0,r.createElementBlock)("div",s0,[(0,r.createElementVNode)("div",a0,[(0,r.createVNode)(Kn,{modelValue:H.value,"onUpdate:modelValue":cA[9]||(cA[9]=GA=>H.value=GA),class:"search-input",placeholder:"搜索图层"},{append:(0,r.withCtx)(()=>[(0,r.createVNode)(ot,null,{icon:(0,r.withCtx)(()=>[(0,r.createVNode)(TA,{icon:"ep:search"})]),_:1})]),_:1},8,["modelValue"])]),(0,r.createElementVNode)("div",{class:"j-block",style:{"padding-top":"8px",overflow:"auto"},onContextmenu:(0,r.withModifiers)(R,["prevent"])},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(P.value,(GA,ze)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:ze},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["j-bi-design-layer-item",{active:g.value.id==GA.id}]),onClick:(0,r.withModifiers)(wt=>SA(GA),["stop"]),"data-id":GA.id},[(0,r.createElementVNode)("div",c0,[(0,r.createElementVNode)("img",{style:{height:"100%"},src:`${e.imgUrlPrefix}${d.value[GA.type].img}`},null,8,u0)]),(0,r.createVNode)(it,{truncated:""},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)((0,r.unref)(n)(GA.config.label)),1)]),_:2},1024),(0,r.createElementVNode)("div",d0,[(0,r.createVNode)(Rn,{size:2},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["j-bi-design-layer-item-btn",{active:!GA.display}]),onClick:(0,r.withModifiers)(wt=>iA(GA),["stop"])},[(0,r.createVNode)(TA,{icon:"mdi:eye-off-outline"})],10,f0),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["j-bi-design-layer-item-btn",{active:GA.lock}]),onClick:(0,r.withModifiers)(wt=>Z(GA),["stop"])},[(0,r.createVNode)(TA,{icon:"mdi:lock-outline"})],10,g0)]),_:2},1024)])],10,l0)]))),128))],32)])):e.components[h.value]?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:1},(0,r.renderList)(e.components[h.value].children,(GA,ze)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:ze,onClick:wt=>pA(GA,0,0)},[(0,r.createElementVNode)("div",{class:"component-item2",onDragend:wt=>gA(wt,GA),draggable:"true"},[(0,r.createElementVNode)("div",p0,[(0,r.createVNode)(it,{truncated:""},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)((0,r.unref)(n)(GA.name)),1)]),_:2},1024)]),(0,r.createElementVNode)("img",{class:"component-item2-img",src:`${e.imgUrlPrefix}${GA.img}`},null,8,m0)],40,B0)],8,h0))),128)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",{class:"j-bi-design-mid",ref_key:"contentRef",ref:rA},[((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Jw),{key:dA.value,thick:nA.value,scale:dA.value,width:j.value,height:S.value,"start-x":eA.value,"start-y":I.value,palette:X.value,shadow:F.value,"hor-line-arr":x.value.h,"ver-line-arr":x.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:N,class:"j-bi-design-main",style:(0,r.normalizeStyle)({cursor:O.value?"pointer":""}),onMousedown:(0,r.withModifiers)(BA,["stop"]),onWheel:bA,onScroll:wA},[(0,r.createElementVNode)("div",{class:"screen-container",style:(0,r.normalizeStyle)({height:UA.value+"px",width:G.value+"px"}),onClick:cA[10]||(cA[10]=(0,r.withModifiers)(GA=>SA(u.value),["stop"]))},[(0,r.createElementVNode)("div",{ref_key:"canvasRef",ref:L,class:"canvas",onContextmenu:(0,r.withModifiers)(R,["prevent"])},[(0,r.createVNode)(Ul,{layout:B.value,"index-page":u.value,"actived-component":g.value,scale:dA.value,onSelect:SA,onMove:OA},null,8,["layout","index-page","actived-component","scale"])],544)],4)],36)],512),(0,r.createElementVNode)("div",w0,[(0,r.createElementVNode)("div",C0,[(0,r.createVNode)(it,{truncated:"",style:{margin:"0","font-size":"14px"}},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(`${(0,r.unref)(n)("属性配置")}${_.value} `),1)]),_:1})]),(0,r.createElementVNode)("div",y0,[(0,r.createVNode)(tn,{config:{labelPosition:"top",size:"small"},style:{padding:"0"},ref_key:"configRef",ref:hA,onChange:W},null,512)])]),(0,r.createVNode)(nn,{ref_key:"previewFormLayerRef",ref:rt,destroyOnClose:!0,hasHeader:!1},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(bl,{indexPage:On.value.page,layout:On.value.components,actions:e.actions},null,8,["indexPage","layout","actions"])]),_:1},512)])}}}),Q0=v0,Hl=dt(Q0,[Ul,bl]),E0=[cs,xo,Do,No,Lo,ol,il,fl,gl,Cl,El,Hl],Il=new WeakSet,F0=e=>{Il.has(e)||(Il.add(e),E0.forEach(A=>{const t=A.name;t&&e.component(t,A)}))},U0={install:F0};te.DBiDesign=Hl,te.DDrag=cs,te.DDraggable=gl,te.DFlowDesign=ol,te.DFormDesign=Cl,te.DIndexDesign=El,te.DInputFlow=il,te.DLayout=fl,te.default=U0,te.dragContainer=Do,te.dragFormList=No,te.dragIndexList=Lo,te.dragTool=xo,te.toFormDesignSchema=Bl,te.toFormSaveSchema=Gr,te.toFormSchema=hl});
|
|
34
|
+
}`,FQ=function(s){UQ(s,"."+As+QQ+su+`
|
|
35
|
+
.`+es+EQ+su)},UQ=function(s,i){var c=s.ownerDocument;if(c){var l=c.createElement("style");l.textContent=i,s.appendChild(l)}},au=(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)||(ns(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(y){switch(y.label){case 0:return c=au.isSameOrigin(i),l=!ts(i)&&this._options.useCORS===!0&&ge.SUPPORT_CORS_IMAGES&&!c,f=!ts(i)&&!c&&!ns(i)&&typeof this._options.proxy=="string"&&ge.SUPPORT_CORS_XHR&&!l,!c&&this._options.allowTaint===!1&&!ts(i)&&!ns(i)&&!f&&!l?[2]:(p=i,f?[4,this.proxy(p)]:[3,2]);case 1:p=y.sent(),y.label=2;case 2:return this.context.logger.debug("Added image "+i.substring(0,256)),[4,new Promise(function(E,T){var G=new Image;G.onload=function(){return E(G)},G.onerror=T,(xQ(p)||l)&&(G.crossOrigin="anonymous"),G.src=p,G.complete===!0&&setTimeout(function(){return E(G)},500),C._options.imageTimeout>0&&setTimeout(function(){return T("Timed out ("+C._options.imageTimeout+"ms) loading image")},C._options.imageTimeout)})];case 3:return[2,y.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 y=ge.SUPPORT_RESPONSE_TYPE?"blob":"text",E=new XMLHttpRequest;E.onload=function(){if(E.status===200)if(y==="text")p(E.response);else{var X=new FileReader;X.addEventListener("load",function(){return p(X.result)},!1),X.addEventListener("error",function(Z){return C(Z)},!1),X.readAsDataURL(E.response)}else C("Failed to proxy resource "+f+" with status code "+E.status)},E.onerror=C;var T=l.indexOf("?")>-1?"&":"?";if(E.open("GET",""+l+T+"url="+encodeURIComponent(i)+"&responseType="+y),y!=="text"&&E instanceof XMLHttpRequest&&(E.responseType=y),c._options.imageTimeout){var G=c._options.imageTimeout;E.timeout=G,E.ontimeout=function(){return C("Timed out ("+G+"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)},ts=function(s){return _Q.test(s)},xQ=function(s){return IQ.test(s)},ns=function(s){return s.substr(0,4)==="blob"},DQ=function(s){return s.substr(-3).toLowerCase()==="svg"||HQ.test(s)},CA=(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})(),un=function(s,i,c){return new CA(s.x+(i.x-s.x)*c,s.y+(i.y-s.y)*c)},Qo=(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=un(this.start,this.startControl,i),f=un(this.startControl,this.endControl,i),p=un(this.endControl,this.end,i),C=un(l,f,i),y=un(f,p,i),E=un(C,y,i);return c?new s(this.start,l,C,E):new s(E,y,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})(),_e=function(s){return s.type===1},NQ=(function(){function s(i){var c=i.styles,l=i.bounds,f=Yn(c.borderTopLeftRadius,l.width,l.height),p=f[0],C=f[1],y=Yn(c.borderTopRightRadius,l.width,l.height),E=y[0],T=y[1],G=Yn(c.borderBottomRightRadius,l.width,l.height),X=G[0],Z=G[1],mA=Yn(c.borderBottomLeftRadius,l.width,l.height),gA=mA[0],BA=mA[1],VA=[];VA.push((p+E)/l.width),VA.push((gA+X)/l.width),VA.push((C+BA)/l.height),VA.push((T+Z)/l.height);var DA=Math.max.apply(Math,VA);DA>1&&(p/=DA,C/=DA,E/=DA,T/=DA,X/=DA,Z/=DA,gA/=DA,BA/=DA);var SA=l.width-E,qA=l.height-Z,zA=l.width-X,kA=l.height-BA,EA=c.borderTopWidth,PA=c.borderRightWidth,GA=c.borderBottomWidth,MA=c.borderLeftWidth,ae=ZA(c.paddingTop,i.bounds.width),ve=ZA(c.paddingRight,i.bounds.width),be=ZA(c.paddingBottom,i.bounds.width),JA=ZA(c.paddingLeft,i.bounds.width);this.topLeftBorderDoubleOuterBox=p>0||C>0?Ae(l.left+MA/3,l.top+EA/3,p-MA/3,C-EA/3,$A.TOP_LEFT):new CA(l.left+MA/3,l.top+EA/3),this.topRightBorderDoubleOuterBox=p>0||C>0?Ae(l.left+SA,l.top+EA/3,E-PA/3,T-EA/3,$A.TOP_RIGHT):new CA(l.left+l.width-PA/3,l.top+EA/3),this.bottomRightBorderDoubleOuterBox=X>0||Z>0?Ae(l.left+zA,l.top+qA,X-PA/3,Z-GA/3,$A.BOTTOM_RIGHT):new CA(l.left+l.width-PA/3,l.top+l.height-GA/3),this.bottomLeftBorderDoubleOuterBox=gA>0||BA>0?Ae(l.left+MA/3,l.top+kA,gA-MA/3,BA-GA/3,$A.BOTTOM_LEFT):new CA(l.left+MA/3,l.top+l.height-GA/3),this.topLeftBorderDoubleInnerBox=p>0||C>0?Ae(l.left+MA*2/3,l.top+EA*2/3,p-MA*2/3,C-EA*2/3,$A.TOP_LEFT):new CA(l.left+MA*2/3,l.top+EA*2/3),this.topRightBorderDoubleInnerBox=p>0||C>0?Ae(l.left+SA,l.top+EA*2/3,E-PA*2/3,T-EA*2/3,$A.TOP_RIGHT):new CA(l.left+l.width-PA*2/3,l.top+EA*2/3),this.bottomRightBorderDoubleInnerBox=X>0||Z>0?Ae(l.left+zA,l.top+qA,X-PA*2/3,Z-GA*2/3,$A.BOTTOM_RIGHT):new CA(l.left+l.width-PA*2/3,l.top+l.height-GA*2/3),this.bottomLeftBorderDoubleInnerBox=gA>0||BA>0?Ae(l.left+MA*2/3,l.top+kA,gA-MA*2/3,BA-GA*2/3,$A.BOTTOM_LEFT):new CA(l.left+MA*2/3,l.top+l.height-GA*2/3),this.topLeftBorderStroke=p>0||C>0?Ae(l.left+MA/2,l.top+EA/2,p-MA/2,C-EA/2,$A.TOP_LEFT):new CA(l.left+MA/2,l.top+EA/2),this.topRightBorderStroke=p>0||C>0?Ae(l.left+SA,l.top+EA/2,E-PA/2,T-EA/2,$A.TOP_RIGHT):new CA(l.left+l.width-PA/2,l.top+EA/2),this.bottomRightBorderStroke=X>0||Z>0?Ae(l.left+zA,l.top+qA,X-PA/2,Z-GA/2,$A.BOTTOM_RIGHT):new CA(l.left+l.width-PA/2,l.top+l.height-GA/2),this.bottomLeftBorderStroke=gA>0||BA>0?Ae(l.left+MA/2,l.top+kA,gA-MA/2,BA-GA/2,$A.BOTTOM_LEFT):new CA(l.left+MA/2,l.top+l.height-GA/2),this.topLeftBorderBox=p>0||C>0?Ae(l.left,l.top,p,C,$A.TOP_LEFT):new CA(l.left,l.top),this.topRightBorderBox=E>0||T>0?Ae(l.left+SA,l.top,E,T,$A.TOP_RIGHT):new CA(l.left+l.width,l.top),this.bottomRightBorderBox=X>0||Z>0?Ae(l.left+zA,l.top+qA,X,Z,$A.BOTTOM_RIGHT):new CA(l.left+l.width,l.top+l.height),this.bottomLeftBorderBox=gA>0||BA>0?Ae(l.left,l.top+kA,gA,BA,$A.BOTTOM_LEFT):new CA(l.left,l.top+l.height),this.topLeftPaddingBox=p>0||C>0?Ae(l.left+MA,l.top+EA,Math.max(0,p-MA),Math.max(0,C-EA),$A.TOP_LEFT):new CA(l.left+MA,l.top+EA),this.topRightPaddingBox=E>0||T>0?Ae(l.left+Math.min(SA,l.width-PA),l.top+EA,SA>l.width+PA?0:Math.max(0,E-PA),Math.max(0,T-EA),$A.TOP_RIGHT):new CA(l.left+l.width-PA,l.top+EA),this.bottomRightPaddingBox=X>0||Z>0?Ae(l.left+Math.min(zA,l.width-MA),l.top+Math.min(qA,l.height-GA),Math.max(0,X-PA),Math.max(0,Z-GA),$A.BOTTOM_RIGHT):new CA(l.left+l.width-PA,l.top+l.height-GA),this.bottomLeftPaddingBox=gA>0||BA>0?Ae(l.left+MA,l.top+Math.min(kA,l.height-GA),Math.max(0,gA-MA),Math.max(0,BA-GA),$A.BOTTOM_LEFT):new CA(l.left+MA,l.top+l.height-GA),this.topLeftContentBox=p>0||C>0?Ae(l.left+MA+JA,l.top+EA+ae,Math.max(0,p-(MA+JA)),Math.max(0,C-(EA+ae)),$A.TOP_LEFT):new CA(l.left+MA+JA,l.top+EA+ae),this.topRightContentBox=E>0||T>0?Ae(l.left+Math.min(SA,l.width+MA+JA),l.top+EA+ae,SA>l.width+MA+JA?0:E-MA+JA,T-(EA+ae),$A.TOP_RIGHT):new CA(l.left+l.width-(PA+ve),l.top+EA+ae),this.bottomRightContentBox=X>0||Z>0?Ae(l.left+Math.min(zA,l.width-(MA+JA)),l.top+Math.min(qA,l.height+EA+ae),Math.max(0,X-(PA+ve)),Z-(GA+be),$A.BOTTOM_RIGHT):new CA(l.left+l.width-(PA+ve),l.top+l.height-(GA+be)),this.bottomLeftContentBox=gA>0||BA>0?Ae(l.left+MA+JA,l.top+kA,Math.max(0,gA-(MA+JA)),BA-(GA+be),$A.BOTTOM_LEFT):new CA(l.left+MA+JA,l.top+l.height-(GA+be))}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 Ae=function(s,i,c,l,f){var p=4*((Math.sqrt(2)-1)/3),C=c*p,y=l*p,E=s+c,T=i+l;switch(f){case $A.TOP_LEFT:return new Qo(new CA(s,T),new CA(s,T-y),new CA(E-C,i),new CA(E,i));case $A.TOP_RIGHT:return new Qo(new CA(s,i),new CA(s+C,i),new CA(E,T-y),new CA(E,T));case $A.BOTTOM_RIGHT:return new Qo(new CA(E,i),new CA(E,i+y),new CA(s+C,T),new CA(s,T));case $A.BOTTOM_LEFT:default:return new Qo(new CA(E,T),new CA(E-C,T),new CA(s,i+y),new CA(s,i))}},Eo=function(s){return[s.topLeftBorderBox,s.topRightBorderBox,s.bottomRightBorderBox,s.bottomLeftBorderBox]},LQ=function(s){return[s.topLeftContentBox,s.topRightContentBox,s.bottomRightContentBox,s.bottomLeftContentBox]},Fo=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})(),Uo=(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},lu=function(s){return s.type===1},OQ=function(s){return s.type===2},cu=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})},uu=(function(){function s(i){this.element=i,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return s})(),du=(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=Eo(this.curves),y=Fo(this.curves);cu(C,y)?this.effects.push(new Uo(C,6)):(this.effects.push(new Uo(C,2)),this.effects.push(new Uo(y,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!lu(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=Eo(l.curves),y=Fo(l.curves);cu(C,y)||f.unshift(new Uo(y,6))}}else f.unshift.apply(f,p);l=l.parent}return f.filter(function(E){return ue(E.target,i)})},s})(),rs=function(s,i,c,l){s.container.elements.forEach(function(f){var p=ue(f.flags,4),C=ue(f.flags,2),y=new du(f,s);ue(f.styles.display,2048)&&l.push(y);var E=ue(f.flags,8)?[]:l;if(p||C){var T=p||f.styles.isPositioned()?c:i,G=new uu(y);if(f.styles.isPositioned()||f.styles.opacity<1||f.styles.isTransformed()){var X=f.styles.zIndex.order;if(X<0){var Z=0;T.negativeZIndex.some(function(gA,BA){return X>gA.element.container.styles.zIndex.order?(Z=BA,!1):Z>0}),T.negativeZIndex.splice(Z,0,G)}else if(X>0){var mA=0;T.positiveZIndex.some(function(gA,BA){return X>=gA.element.container.styles.zIndex.order?(mA=BA+1,!1):mA>0}),T.positiveZIndex.splice(mA,0,G)}else T.zeroOrAutoZIndexOrTransformedOrOpacity.push(G)}else f.styles.isFloating()?T.nonPositionedFloats.push(G):T.nonPositionedInlineLevel.push(G);rs(y,G,p?G:c,E)}else f.styles.isInlineLevel()?i.inlineLevel.push(y):i.nonInlineLevel.push(y),rs(y,i,c,E);ue(f.flags,8)&&fu(f,E)})},fu=function(s,i){for(var c=s instanceof $i?s.start:1,l=s instanceof $i?s.reversed:!1,f=0;f<i.length;f++){var p=i[f];p.container instanceof Mc&&typeof p.container.value=="number"&&p.container.value!==0&&(c=p.container.value),p.listValue=Ar(c,p.container.styles.listStyleType,!0),c+=l?-1:1}},RQ=function(s){var i=new du(s,null),c=new uu(i),l=[];return rs(i,c,c,l),fu(i.container,l),c},gu=function(s,i){switch(i){case 0:return Se(s.topLeftBorderBox,s.topLeftPaddingBox,s.topRightBorderBox,s.topRightPaddingBox);case 1:return Se(s.topRightBorderBox,s.topRightPaddingBox,s.bottomRightBorderBox,s.bottomRightPaddingBox);case 2:return Se(s.bottomRightBorderBox,s.bottomRightPaddingBox,s.bottomLeftBorderBox,s.bottomLeftPaddingBox);default:return Se(s.bottomLeftBorderBox,s.bottomLeftPaddingBox,s.topLeftBorderBox,s.topLeftPaddingBox)}},VQ=function(s,i){switch(i){case 0:return Se(s.topLeftBorderBox,s.topLeftBorderDoubleOuterBox,s.topRightBorderBox,s.topRightBorderDoubleOuterBox);case 1:return Se(s.topRightBorderBox,s.topRightBorderDoubleOuterBox,s.bottomRightBorderBox,s.bottomRightBorderDoubleOuterBox);case 2:return Se(s.bottomRightBorderBox,s.bottomRightBorderDoubleOuterBox,s.bottomLeftBorderBox,s.bottomLeftBorderDoubleOuterBox);default:return Se(s.bottomLeftBorderBox,s.bottomLeftBorderDoubleOuterBox,s.topLeftBorderBox,s.topLeftBorderDoubleOuterBox)}},PQ=function(s,i){switch(i){case 0:return Se(s.topLeftBorderDoubleInnerBox,s.topLeftPaddingBox,s.topRightBorderDoubleInnerBox,s.topRightPaddingBox);case 1:return Se(s.topRightBorderDoubleInnerBox,s.topRightPaddingBox,s.bottomRightBorderDoubleInnerBox,s.bottomRightPaddingBox);case 2:return Se(s.bottomRightBorderDoubleInnerBox,s.bottomRightPaddingBox,s.bottomLeftBorderDoubleInnerBox,s.bottomLeftPaddingBox);default:return Se(s.bottomLeftBorderDoubleInnerBox,s.bottomLeftPaddingBox,s.topLeftBorderDoubleInnerBox,s.topLeftPaddingBox)}},GQ=function(s,i){switch(i){case 0:return bo(s.topLeftBorderStroke,s.topRightBorderStroke);case 1:return bo(s.topRightBorderStroke,s.bottomRightBorderStroke);case 2:return bo(s.bottomRightBorderStroke,s.bottomLeftBorderStroke);default:return bo(s.bottomLeftBorderStroke,s.topLeftBorderStroke)}},bo=function(s,i){var c=[];return _e(s)?c.push(s.subdivide(.5,!1)):c.push(s),_e(i)?c.push(i.subdivide(.5,!0)):c.push(i),c},Se=function(s,i,c,l){var f=[];return _e(s)?f.push(s.subdivide(.5,!1)):f.push(s),_e(c)?f.push(c.subdivide(.5,!0)):f.push(c),_e(l)?f.push(l.subdivide(.5,!0).reverse()):f.push(l),_e(i)?f.push(i.subdivide(.5,!1).reverse()):f.push(i),f},hu=function(s){var i=s.bounds,c=s.styles;return i.add(c.borderLeftWidth,c.borderTopWidth,-(c.borderRightWidth+c.borderLeftWidth),-(c.borderTopWidth+c.borderBottomWidth))},Ho=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?Ho(i):hu(i)},XQ=function(s,i){return s===0?i.bounds:s===2?Ho(i):hu(i)},os=function(s,i,c){var l=zQ(fn(s.styles.backgroundOrigin,i),s),f=XQ(fn(s.styles.backgroundClip,i),s),p=$Q(fn(s.styles.backgroundSize,i),c,l),C=p[0],y=p[1],E=Yn(fn(s.styles.backgroundPosition,i),l.width-C,l.height-y);return[YQ(fn(s.styles.backgroundRepeat,i),E,p,l,f),Math.round(l.left+E[0]),Math.round(l.top+E[1]),C,y]},dn=function(s){return WA(s)&&s.value===sn.AUTO},Io=function(s){return typeof s=="number"},$Q=function(s,i,c){var l=i[0],f=i[1],p=i[2],C=s[0],y=s[1];if(!C)return[0,0];if(se(C)&&y&&se(y))return[ZA(C,c.width),ZA(y,c.height)];var E=Io(p);if(WA(C)&&(C.value===sn.CONTAIN||C.value===sn.COVER))return Io(p)?c.width/c.height<p!=(C.value===sn.COVER)?[c.width,c.width/p]:[c.height*p,c.height]:[c.width,c.height];var T=Io(l),G=Io(f),X=T||G;if(dn(C)&&(!y||dn(y)))return T&&G?[l,f]:!E&&!X?[c.width,c.height]:X&&E?[T?l:f*p,G?f:l/p]:[T?l:c.width,G?f:c.height];if(E){var Z=0,mA=0;return se(C)?Z=ZA(C,c.width):se(y)&&(mA=ZA(y,c.height)),dn(C)?Z=mA*p:(!y||dn(y))&&(mA=Z/p),[Z,mA]}var gA=null,BA=null;if(se(C)?gA=ZA(C,c.width):y&&se(y)&&(BA=ZA(y,c.height)),gA!==null&&(!y||dn(y))&&(BA=T&&G?gA/l*f:c.height),BA!==null&&dn(C)&&(gA=T&&G?BA/f*l:c.width),gA!==null&&BA!==null)return[gA,BA];throw new Error("Unable to calculate background-size for element")},fn=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],y=c[0],E=c[1];switch(s){case 2:return[new CA(Math.round(l.left),Math.round(l.top+C)),new CA(Math.round(l.left+l.width),Math.round(l.top+C)),new CA(Math.round(l.left+l.width),Math.round(E+l.top+C)),new CA(Math.round(l.left),Math.round(E+l.top+C))];case 3:return[new CA(Math.round(l.left+p),Math.round(l.top)),new CA(Math.round(l.left+p+y),Math.round(l.top)),new CA(Math.round(l.left+p+y),Math.round(l.height+l.top)),new CA(Math.round(l.left+p),Math.round(l.height+l.top))];case 1:return[new CA(Math.round(l.left+p),Math.round(l.top+C)),new CA(Math.round(l.left+p+y),Math.round(l.top+C)),new CA(Math.round(l.left+p+y),Math.round(l.top+C+E)),new CA(Math.round(l.left+p),Math.round(l.top+C+E))];default:return[new CA(Math.round(f.left),Math.round(f.top)),new CA(Math.round(f.left+f.width),Math.round(f.top)),new CA(Math.round(f.left+f.width),Math.round(f.height+f.top)),new CA(Math.round(f.left),Math.round(f.height+f.top))]}},WQ="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Bu="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(Bu)),l.appendChild(p),l.appendChild(f);var y=f.offsetTop-p.offsetTop+2;l.removeChild(p),l.appendChild(this._document.createTextNode(Bu)),l.style.lineHeight="normal",f.style.verticalAlign="super";var E=f.offsetTop-l.offsetTop+2;return C.removeChild(l),{baseline:y,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})(),pu=(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)),lu(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):Xi(c.text).reduce(function(C,y){return p.ctx.fillText(y,C,c.bounds.top+f),C+p.ctx.measureText(y).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=$n(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,y,E,T,G,X,Z=this;return u(this,function(mA){return f=this.createFontStyle(l),p=f[0],C=f[1],y=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,y),T=E.baseline,G=E.middle,X=l.paintOrder,c.textBounds.forEach(function(gA){X.forEach(function(BA){switch(BA){case 0:Z.ctx.fillStyle=de(l.color),Z.renderTextWithLetterSpacing(gA,l.letterSpacing,T);var VA=l.textShadow;VA.length&&gA.text.trim().length&&(VA.slice(0).reverse().forEach(function(DA){Z.ctx.shadowColor=de(DA.color),Z.ctx.shadowOffsetX=DA.offsetX.number*Z.options.scale,Z.ctx.shadowOffsetY=DA.offsetY.number*Z.options.scale,Z.ctx.shadowBlur=DA.blur.number,Z.renderTextWithLetterSpacing(gA,l.letterSpacing,T)}),Z.ctx.shadowColor="",Z.ctx.shadowOffsetX=0,Z.ctx.shadowOffsetY=0,Z.ctx.shadowBlur=0),l.textDecorationLine.length&&(Z.ctx.fillStyle=de(l.textDecorationColor||l.color),l.textDecorationLine.forEach(function(DA){switch(DA){case 1:Z.ctx.fillRect(gA.bounds.left,Math.round(gA.bounds.top+T),gA.bounds.width,1);break;case 2:Z.ctx.fillRect(gA.bounds.left,Math.round(gA.bounds.top),gA.bounds.width,1);break;case 3:Z.ctx.fillRect(gA.bounds.left,Math.ceil(gA.bounds.top+G),gA.bounds.width,1);break}}));break;case 1:l.webkitTextStrokeWidth&&gA.text.trim().length&&(Z.ctx.strokeStyle=de(l.webkitTextStrokeColor),Z.ctx.lineWidth=l.webkitTextStrokeWidth,Z.ctx.lineJoin=window.chrome?"miter":"round",Z.ctx.strokeText(gA.text,gA.bounds.left,gA.bounds.top+T)),Z.ctx.strokeStyle="",Z.ctx.lineWidth=0,Z.ctx.lineJoin="miter";break}})}),[2]})})},i.prototype.renderReplacedElement=function(c,l,f){if(f&&c.intrinsicWidth>0&&c.intrinsicHeight>0){var p=Ho(c),C=Fo(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,y,E,SA,SA,T,G,X,Z,zA,mA,gA,kA,BA,VA,DA,SA,qA,zA,kA;return u(this,function(EA){switch(EA.label){case 0:this.applyEffects(c.getEffects(4)),l=c.container,f=c.curves,p=l.styles,C=0,y=l.textNodes,EA.label=1;case 1:return C<y.length?(E=y[C],[4,this.renderTextNode(E,p)]):[3,4];case 2:EA.sent(),EA.label=3;case 3:return C++,[3,1];case 4:if(!(l instanceof Lc))return[3,8];EA.label=5;case 5:return EA.trys.push([5,7,,8]),[4,this.context.cache.match(l.src)];case 6:return SA=EA.sent(),this.renderReplacedElement(l,f,SA),[3,8];case 7:return EA.sent(),this.context.logger.error("Error loading image "+l.src),[3,8];case 8:if(l instanceof Tc&&this.renderReplacedElement(l,f,l.canvas),!(l instanceof kc))return[3,12];EA.label=9;case 9:return EA.trys.push([9,11,,12]),[4,this.context.cache.match(l.svg)];case 10:return SA=EA.sent(),this.renderReplacedElement(l,f,SA),[3,12];case 11:return EA.sent(),this.context.logger.error("Error loading svg "+l.svg.substring(0,255)),[3,12];case 12:return l instanceof Vc&&l.tree?(T=new i(this.context,{scale:this.options.scale,backgroundColor:l.backgroundColor,x:0,y:0,width:l.width,height:l.height}),[4,T.render(l.tree)]):[3,14];case 13:G=EA.sent(),l.width&&l.height&&this.ctx.drawImage(G,0,0,l.width,l.height,l.bounds.left,l.bounds.top,l.bounds.width,l.bounds.height),EA.label=14;case 14:if(l instanceof Yi&&(X=Math.min(l.bounds.width,l.bounds.height),l.type===po?l.checked&&(this.ctx.save(),this.path([new CA(l.bounds.left+X*.39363,l.bounds.top+X*.79),new CA(l.bounds.left+X*.16,l.bounds.top+X*.5549),new CA(l.bounds.left+X*.27347,l.bounds.top+X*.44071),new CA(l.bounds.left+X*.39694,l.bounds.top+X*.5649),new CA(l.bounds.left+X*.72983,l.bounds.top+X*.23),new CA(l.bounds.left+X*.84,l.bounds.top+X*.34085),new CA(l.bounds.left+X*.39363,l.bounds.top+X*.79)]),this.ctx.fillStyle=de(Oc),this.ctx.fill(),this.ctx.restore()):l.type===mo&&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(Oc),this.ctx.fill(),this.ctx.restore())),qQ(l)&&l.value.length){switch(Z=this.createFontStyle(p),zA=Z[0],mA=Z[1],gA=this.fontMetrics.getMetrics(zA,mA).baseline,this.ctx.font=zA,this.ctx.fillStyle=de(p.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=eE(l.styles.textAlign),kA=Ho(l),BA=0,l.styles.textAlign){case 1:BA+=kA.width/2;break;case 2:BA+=kA.width;break}VA=kA.add(BA,0,0,-kA.height/2+1),this.ctx.save(),this.path([new CA(kA.left,kA.top),new CA(kA.left+kA.width,kA.top),new CA(kA.left+kA.width,kA.top+kA.height),new CA(kA.left,kA.top+kA.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new jn(l.value,VA),p.letterSpacing,gA),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,qA=DA.url,EA.label=15;case 15:return EA.trys.push([15,17,,18]),[4,this.context.cache.match(qA)];case 16:return SA=EA.sent(),this.ctx.drawImage(SA,l.bounds.left-(SA.width+10),l.bounds.top),[3,18];case 17:return EA.sent(),this.context.logger.error("Error loading list-style-image "+qA),[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=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,Bc(p.lineHeight,p.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new jn(c.listValue,kA),p.letterSpacing,Bc(p.lineHeight,p.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),EA.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,y,E,DA,T,G,DA,X,Z,DA,mA,gA,DA,BA,VA,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:y=0,E=c.nonPositionedFloats,SA.label=11;case 11:return y<E.length?(DA=E[y],[4,this.renderStack(DA)]):[3,14];case 12:SA.sent(),SA.label=13;case 13:return y++,[3,11];case 14:T=0,G=c.nonPositionedInlineLevel,SA.label=15;case 15:return T<G.length?(DA=G[T],[4,this.renderStack(DA)]):[3,18];case 16:SA.sent(),SA.label=17;case 17:return T++,[3,15];case 18:X=0,Z=c.inlineLevel,SA.label=19;case 19:return X<Z.length?(DA=Z[X],[4,this.renderNode(DA)]):[3,22];case 20:SA.sent(),SA.label=21;case 21:return X++,[3,19];case 22:mA=0,gA=c.zeroOrAutoZIndexOrTransformedOrOpacity,SA.label=23;case 23:return mA<gA.length?(DA=gA[mA],[4,this.renderStack(DA)]):[3,26];case 24:SA.sent(),SA.label=25;case 25:return mA++,[3,23];case 26:BA=0,VA=c.positiveZIndex,SA.label=27;case 27:return BA<VA.length?(DA=VA[BA],[4,this.renderStack(DA)]):[3,30];case 28:SA.sent(),SA.label=29;case 29:return BA++,[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=_e(f)?f.start:f;p===0?l.ctx.moveTo(C.x,C.y):l.ctx.lineTo(C.x,C.y),_e(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,y,E;return u(this,function(T){switch(T.label){case 0:l=c.styles.backgroundImage.length-1,f=function(G){var X,Z,mA,ae,ye,Qe,JA,he,GA,gA,ae,ye,Qe,JA,he,BA,VA,DA,SA,qA,zA,kA,EA,PA,GA,MA,ae,ve,be,JA,he,Ut,ye,Qe,Ot,je,bt,Kt,Rt,lt,Vt,ct;return u(this,function(gn){switch(gn.label){case 0:if(G.type!==0)return[3,5];X=void 0,Z=G.url,gn.label=1;case 1:return gn.trys.push([1,3,,4]),[4,p.context.cache.match(Z)];case 2:return X=gn.sent(),[3,4];case 3:return gn.sent(),p.context.logger.error("Error loading background-image "+Z),[3,4];case 4:return X&&(mA=os(c,l,[X.width,X.height,X.width/X.height]),ae=mA[0],ye=mA[1],Qe=mA[2],JA=mA[3],he=mA[4],GA=p.ctx.createPattern(p.resizeImage(X,JA,he),"repeat"),p.renderRepeat(ae,GA,ye,Qe)),[3,6];case 5:GC(G)?(gA=os(c,l,[null,null,null]),ae=gA[0],ye=gA[1],Qe=gA[2],JA=gA[3],he=gA[4],BA=OC(G.angle,JA,he),VA=BA[0],DA=BA[1],SA=BA[2],qA=BA[3],zA=BA[4],kA=document.createElement("canvas"),kA.width=JA,kA.height=he,EA=kA.getContext("2d"),PA=EA.createLinearGradient(DA,qA,SA,zA),oc(G.stops,VA).forEach(function(tr){return PA.addColorStop(tr.stop,de(tr.color))}),EA.fillStyle=PA,EA.fillRect(0,0,JA,he),JA>0&&he>0&&(GA=p.ctx.createPattern(kA,"repeat"),p.renderRepeat(ae,GA,ye,Qe))):zC(G)&&(MA=os(c,l,[null,null,null]),ae=MA[0],ve=MA[1],be=MA[2],JA=MA[3],he=MA[4],Ut=G.position.length===0?[Si]:G.position,ye=ZA(Ut[0],JA),Qe=ZA(Ut[Ut.length-1],he),Ot=KC(G,ye,Qe,JA,he),je=Ot[0],bt=Ot[1],je>0&&bt>0&&(Kt=p.ctx.createRadialGradient(ve+ye,be+Qe,0,ve+ye,be+Qe,je),oc(G.stops,je*2).forEach(function(tr){return Kt.addColorStop(tr.stop,de(tr.color))}),p.path(ae),p.ctx.fillStyle=Kt,je!==bt?(Rt=c.bounds.left+.5*c.bounds.width,lt=c.bounds.top+.5*c.bounds.height,Vt=bt/je,ct=1/Vt,p.ctx.save(),p.ctx.translate(Rt,lt),p.ctx.transform(1,0,0,Vt,0,0),p.ctx.translate(-Rt,-lt),p.ctx.fillRect(ve,ct*(be-lt)+lt,JA,he*ct),p.ctx.restore()):p.ctx.fill())),gn.label=6;case 6:return l--,[2]}})},p=this,C=0,y=c.styles.backgroundImage.slice(0).reverse(),T.label=1;case 1:return C<y.length?(E=y[C],[5,f(E)]):[3,4];case 2:T.sent(),T.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(gu(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,y;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(),y=PQ(p,f),this.path(y),this.ctx.fill(),[2]}})})},i.prototype.renderNodeBackgroundAndBorders=function(c){return a(this,void 0,void 0,function(){var l,f,p,C,y,E,T,G,X=this;return u(this,function(Z){switch(Z.label){case 0:return this.applyEffects(c.getEffects(2)),l=c.container.styles,f=!yt(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(fn(l.backgroundClip,0),c.curves),f||l.boxShadow.length?(this.ctx.save(),this.path(C),this.ctx.clip(),yt(l.backgroundColor)||(this.ctx.fillStyle=de(l.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(c.container)]):[3,2];case 1:Z.sent(),this.ctx.restore(),l.boxShadow.slice(0).reverse().forEach(function(mA){X.ctx.save();var gA=Eo(c.curves),BA=mA.inset?0:ZQ,VA=KQ(gA,-BA+(mA.inset?1:-1)*mA.spread.number,(mA.inset?1:-1)*mA.spread.number,mA.spread.number*(mA.inset?-2:2),mA.spread.number*(mA.inset?-2:2));mA.inset?(X.path(gA),X.ctx.clip(),X.mask(VA)):(X.mask(gA),X.ctx.clip(),X.path(VA)),X.ctx.shadowOffsetX=mA.offsetX.number+BA,X.ctx.shadowOffsetY=mA.offsetY.number,X.ctx.shadowColor=de(mA.color),X.ctx.shadowBlur=mA.blur.number,X.ctx.fillStyle=mA.inset?de(mA.color):"rgba(0,0,0,1)",X.ctx.fill(),X.ctx.restore()}),Z.label=2;case 2:y=0,E=0,T=p,Z.label=3;case 3:return E<T.length?(G=T[E],G.style!==0&&!yt(G.color)&&G.width>0?G.style!==2?[3,5]:[4,this.renderDashedDottedBorder(G.color,G.width,y,c.curves,2)]:[3,11]):[3,13];case 4:return Z.sent(),[3,11];case 5:return G.style!==3?[3,7]:[4,this.renderDashedDottedBorder(G.color,G.width,y,c.curves,3)];case 6:return Z.sent(),[3,11];case 7:return G.style!==4?[3,9]:[4,this.renderDoubleBorder(G.color,G.width,y,c.curves)];case 8:return Z.sent(),[3,11];case 9:return[4,this.renderSolidBorder(G.color,y,c.curves)];case 10:Z.sent(),Z.label=11;case 11:y++,Z.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 y,E,T,G,X,Z,mA,gA,BA,VA,DA,SA,qA,zA,kA,EA,kA,EA;return u(this,function(PA){return this.ctx.save(),y=GQ(p,f),E=gu(p,f),C===2&&(this.path(E),this.ctx.clip()),_e(E[0])?(T=E[0].start.x,G=E[0].start.y):(T=E[0].x,G=E[0].y),_e(E[1])?(X=E[1].end.x,Z=E[1].end.y):(X=E[1].x,Z=E[1].y),f===0||f===2?mA=Math.abs(T-X):mA=Math.abs(G-Z),this.ctx.beginPath(),C===3?this.formatPath(y):this.formatPath(E.slice(0,2)),gA=l<3?l*3:l*2,BA=l<3?l*2:l,C===3&&(gA=l,BA=l),VA=!0,mA<=gA*2?VA=!1:mA<=gA*2+BA?(DA=mA/(2*gA+BA),gA*=DA,BA*=DA):(SA=Math.floor((mA+BA)/(gA+BA)),qA=(mA-SA*gA)/(SA-1),zA=(mA-(SA+1)*gA)/SA,BA=zA<=0||Math.abs(BA-qA)<Math.abs(BA-zA)?qA:zA),VA&&(C===3?this.ctx.setLineDash([0,gA+BA]):this.ctx.setLineDash([gA,BA])),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&&(_e(E[0])&&(kA=E[3],EA=E[0],this.ctx.beginPath(),this.formatPath([new CA(kA.end.x,kA.end.y),new CA(EA.start.x,EA.start.y)]),this.ctx.stroke()),_e(E[1])&&(kA=E[1],EA=E[2],this.ctx.beginPath(),this.formatPath([new CA(kA.end.x,kA.end.y),new CA(EA.start.x,EA.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})(pu),qQ=function(s){return s instanceof Rc||s instanceof Kc?!0:s instanceof Yi&&s.type!==mo&&s.type!==po},AE=function(s,i){switch(s){case 0:return Eo(i);case 2:return LQ(i);default:return Fo(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=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})(pu),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"&&au.setContext(window);var lE=function(s,i){return a(void 0,void 0,void 0,function(){var c,l,f,p,C,y,E,T,G,X,Z,mA,gA,BA,VA,DA,SA,qA,zA,kA,PA,EA,PA,GA,MA,ae,ve,be,JA,he,Ut,ye,Qe,Ot,je,bt,Kt,Rt,lt,Vt;return u(this,function(ct){switch(ct.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:(MA=i.imageTimeout)!==null&&MA!==void 0?MA:15e3,proxy:i.proxy,useCORS:(ae=i.useCORS)!==null&&ae!==void 0?ae:!1},p=o({logging:(ve=i.logging)!==null&&ve!==void 0?ve:!0,cache:i.cache},f),C={windowWidth:(be=i.windowWidth)!==null&&be!==void 0?be:l.innerWidth,windowHeight:(JA=i.windowHeight)!==null&&JA!==void 0?JA:l.innerHeight,scrollX:(he=i.scrollX)!==null&&he!==void 0?he:l.pageXOffset,scrollY:(Ut=i.scrollY)!==null&&Ut!==void 0?Ut:l.pageYOffset},y=new h(C.scrollX,C.scrollY,C.windowWidth,C.windowHeight),E=new sE(p,y),T=(ye=i.foreignObjectRendering)!==null&&ye!==void 0?ye:!1,G={allowTaint:(Qe=i.allowTaint)!==null&&Qe!==void 0?Qe:!1,onclone:i.onclone,ignoreElements:i.ignoreElements,inlineImages:T,copyStyles:T},E.logger.debug("Starting document clone with size "+y.width+"x"+y.height+" scrolled to "+-y.left+","+-y.top),X=new iu(E,s,G),Z=X.clonedReferenceElement,Z?[4,X.toIFrame(c,y)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return mA=ct.sent(),gA=Ji(Z)||cQ(Z)?B(Z.ownerDocument):g(E,Z),BA=gA.width,VA=gA.height,DA=gA.left,SA=gA.top,qA=cE(E,Z,i.backgroundColor),zA={canvas:i.canvas,backgroundColor:qA,scale:(je=(Ot=i.scale)!==null&&Ot!==void 0?Ot:l.devicePixelRatio)!==null&&je!==void 0?je:1,x:((bt=i.x)!==null&&bt!==void 0?bt:0)+DA,y:((Kt=i.y)!==null&&Kt!==void 0?Kt:0)+SA,width:(Rt=i.width)!==null&&Rt!==void 0?Rt:Math.ceil(BA),height:(lt=i.height)!==null&<!==void 0?lt:Math.ceil(VA)},T?(E.logger.debug("Document cloned, using foreign object rendering"),PA=new rE(E,zA),[4,PA.render(Z)]):[3,3];case 2:return kA=ct.sent(),[3,5];case 3:return E.logger.debug("Document cloned, element located at "+DA+","+SA+" with size "+BA+"x"+VA+" using computed rendering"),E.logger.debug("Starting DOM parsing"),EA=Gc(E,Z),qA===EA.styles.backgroundColor&&(EA.styles.backgroundColor=st.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(EA)];case 4:kA=ct.sent(),ct.label=5;case 5:return(!((Vt=i.removeContainer)!==null&&Vt!==void 0)||Vt)&&(iu.destroy(mA)||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?Wn(s,getComputedStyle(l.documentElement).backgroundColor):st.TRANSPARENT,p=l.body?Wn(s,getComputedStyle(l.body).backgroundColor):st.TRANSPARENT,C=typeof c=="string"?Wn(s,c):c===null?st.TRANSPARENT:4294967295;return i===l.documentElement?yt(f)?yt(p)?C:p:f:C};return aE}))})),Jw=as(Ww(),1),Zw=(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:Q}=(0,pe.useAppInject)(),{loadData:I,getData:L}=Q(),N=(0,r.computed)(()=>{const _={transform:`scale(${t.scale}, ${t.scale})`,transformOrigin:"left top",position:"relative",width:XA(t.indexPage.config.w||1920),height:XA(t.indexPage.config.h||1080),backgroundColor:t.indexPage.config.backgroundColor||"var(--j-color-bg-container)"};return t.indexPage.config.backgroundImage&&(_.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)"}`),_}),V=_=>{n("select",_)},U=_=>{n("move",_)},z=_=>{_?.target?.getAttribute("id")==="j-bi-design-container"&&n("select",t.indexPage)},iA={},W=(_,q)=>{_&&(iA[q]=_)},lA=(0,r.computed)(()=>t.layout.map(_=>({..._,$refs:iA[_.id]}))),sA=async(_,q)=>{if(_&&_.trim()){_=`async (jcode) => {${_}}`;const{res:F,msg:R,fn:b}=(0,pe.getFunction)(_);if(F)return b(AA(q));m&&m(R)}},nA=_=>iA[_]?.getValue?.()||[],oA=_=>lA.value.find(({id:q})=>q===_)?.config||{},AA=_=>(_.get=nA,_.getProps=oA,_.getSourceData=async(q,F)=>(await I("dbsource",q,JSON.stringify(F),!1),L("dbsource",q,{params:F})),_.getDateNow=q=>(0,pe.formatToDateTime)(new Date,q||"YYYY-MM-DD HH:mm:ss"),_.httpGet=u,_.httpPost=d,_.httpPut=h,_.httpDelete=g,_.loading=()=>{(0,pe.fullScreenLoading)(!0)},_.hideLoading=()=>{(0,pe.fullScreenLoading)(!1)},_.message=(q,F)=>{switch(F){case"success":B&&B(q);break;case"warning":w&&w(q);break;case"error":m&&m(q);break;case"info":v&&v(q);break;default:v&&v(q);break}},_);return(0,r.provide)("dui_bi_container",{executeEvent:sA}),(_,q)=>{const F=(0,r.resolveComponent)("d-draggable");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{onClick:(0,r.withModifiers)(z,["stop"]),id:"j-bi-design-container",style:(0,r.normalizeStyle)(N.value)},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.layout,(R,b)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:R.id},[R.display?((0,r.openBlock)(),(0,r.createBlock)(F,{key:0,id:R.id,left:R.config.x,top:R.config.y,width:R.config.w,height:R.config.h,scale:1/e.scale,step:1/e.scale,"active-flag":R.id==e.activedComponent.id,readonly:R.lock,"data-id":R.id,onFocus:P=>V(R),onBlur:U,"z-index":e.layout.length-b,"is-active-bg-transparent":!0},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(R.componentName),(0,r.mergeProps)({style:{width:(0,r.unref)(XA)(R.config.w),height:(0,r.unref)(XA)(R.config.h)}},{ref_for:!0},R.config,{"is-design":!0,ref_for:!0,ref:P=>W(P,R.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)}}}),bl=Zw,jw=({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}},qw=(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:Q}=m(),I=(0,r.computed)(()=>A.layout),L=(0,r.ref)(),N=(0,r.ref)(1),V=(0,r.ref)(1),U=()=>{L.value&&z(L.value.offsetWidth,L.value.offsetHeight)},z=(M,k)=>{const O=A.indexPage.config?.w||1920,Y=A.indexPage.config?.h||1080,eA=A.indexPage.config?.screenFit||"1";eA==="1"?(V.value=M/O,N.value=V.value):eA==="2"?(N.value=k/Y,V.value=N.value):eA==="3"&&(V.value=M/O,N.value=k/Y)},iA=(0,r.computed)(()=>{const M={transform:`scale(${V.value}, ${N.value})`,transformOrigin:"left top",position:"relative",overflow:"hidden",width:XA(A.indexPage.config?.w||1920),height:XA(A.indexPage.config?.h||1080),backgroundColor:A.indexPage.config?.backgroundColor||"var(--j-color-bg-container)"};return A.indexPage.config?.backgroundImage&&(M.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)"}`),M}),W=(0,r.computed)(()=>({width:XA((A.indexPage.config?.w||1920)*V.value),height:XA((A.indexPage.config?.h||1080)*N.value)})),lA={},sA=(M,k)=>{M&&(lA[k]=M)},nA=new ResizeObserver(U);(0,r.onMounted)(()=>{I.value.forEach(M=>{M.$refs=lA[M.id]}),nA.observe(L.value)});const oA=async(M,k)=>{k.config.clickevent&&await _(JSON.parse(k.config?.clickevent),{param:{params:M}})},AA=async(M,k)=>{if(M&&M.trim()){M=`async (jcode) => {${M}}`;const{res:O,msg:Y,fn:eA}=(0,pe.getFunction)(M);if(O)return eA(P(k));B&&B(Y)}},_=async(M,k)=>{const{run:O}=jw({data:M,actions:A.actions,utils:{showLoading:pe.fullScreenLoading,executeEvent:AA},inputParams:k});await O()},q=M=>lA[M]?.getValue()||[],F=(M,k=!0)=>{const O=I.value.find(({id:Y})=>Y===M);O&&(O.display=!k)},R=M=>I.value.find(({id:k})=>k===M)?.config||{},b=M=>{const k=I.value.find(({id:O})=>O===M);k?.$refs?.updateData&&k.$refs.updateData()},P=M=>(M.get=q,M.setHide=F,M.getProps=R,M.refresh=b,M.getSourceData=async(k,O)=>(await v("dbsource",k,JSON.stringify(O),!1),Q("dbsource",k,{params:O})),M.getDateNow=k=>(0,pe.formatToDateTime)(new Date,k||"YYYY-MM-DD HH:mm:ss"),M.httpGet=o,M.httpPost=a,M.httpPut=u,M.httpDelete=d,M.loading=()=>{(0,pe.fullScreenLoading)(!0)},M.hideLoading=()=>{(0,pe.fullScreenLoading)(!1)},M.message=(k,O)=>{switch(O){case"success":h&&h(k);break;case"warning":g&&g(k);break;case"error":B&&B(k);break;case"info":w&&w(k);break;default:w&&w(k);break}},M);return(0,r.provide)("dui_bi_viewer",{executeEvent:AA}),(M,k)=>((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:L},[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)(W.value)},[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)(iA.value)},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(I.value,(O,Y)=>(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(O.componentName),(0,r.mergeProps)({key:O.id,ref_for:!0,ref:eA=>sA(eA,O.id),style:{position:"absolute",width:(0,r.unref)(XA)(O.config.w),height:(0,r.unref)(XA)(O.config.h),top:(0,r.unref)(XA)(O.config.y),left:(0,r.unref)(XA)(O.config.x),zIndex:e.layout.length-Y}},{ref_for:!0},O.config,{"run-flow":_,onClick:eA=>oA(eA,O)}),null,16,["style","onClick"])),[[r.vShow,O.display!==!1]])),128))],4)],4)],4))}}),Hl=qw,A0={class:"j-bi-design"},e0={class:"j-bi-design-left"},t0={class:"j-block j-bi-design-layer-list"},n0=["onClick","data-id"],r0={class:"j-bi-design-layer-item-img"},o0=["src"],i0={class:"j-bi-design-layer-item-btns"},s0=["onClick"],a0=["onClick"],l0={class:"j-bi-design-component-list"},c0=["onClick","onDragend"],u0={class:"j-component-tool-name"},d0={class:"j-bi-design-right"},f0={class:"j-bi-design-title"},g0={style:{margin:"0","font-size":"14px"}},h0={class:"j-bi-design-panel"},B0=(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(dA=>{dA.children.forEach(xA=>{rA[xA.type]=xA})}),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),Q=(0,r.ref)(0),I=(0,r.ref)(0),L=(0,r.ref)(""),N=(0,r.computed)(()=>L.value===""?{}:m.value.find(rA=>rA.id===L.value)),V=()=>{v.value=!1,L.value=""},U=rA=>{rA.target.className.indexOf("j-bi-design-contentmenu__btn")===-1&&V(),window.removeEventListener("mousedown",U)},z=rA=>{let{target:dA}=rA,xA=!1;dA.className.indexOf&&dA.className.indexOf("d-draggable__mask")>-1?(dA=dA.parentNode.parentNode,xA=!0):dA.className.indexOf&&dA.className.indexOf("j-bi-design-layer-item")>-1?xA=!0:dA.parentNode.className.indexOf&&dA.parentNode.className.indexOf("j-bi-design-layer-item")>-1?(dA=dA.parentNode,xA=!0):dA.parentNode.parentNode.className.indexOf("j-bi-design-layer-item")>-1&&(dA=dA.parentNode.parentNode,xA=!0),xA&&(rA.preventDefault(),rA.stopPropagation(),Q.value=rA.clientX,I.value=rA.clientY-8,I.value+260>document.body.clientHeight&&(I.value=document.body.clientHeight-260),L.value=dA.getAttribute("data-id"),v.value=!0,window.addEventListener("mousedown",U))},iA=(0,r.ref)(""),W=(0,r.computed)(()=>iA.value?m.value.filter(rA=>rA.config.label.indexOf(iA.value)>-1):m.value),lA=rA=>{rA.display=!rA.display,V()},sA=rA=>{rA.lock=!rA.lock,V(),rA.lock&&rA.id===w.value?.id&&KA(d.value)},nA=(rA,dA)=>{if(!dA||m.value.length<1){V();return}const xA=m.value.findIndex(RA=>RA.id===dA.id);switch(rA){case"up":if(xA===-1||xA===0)break;m.value=oA(m.value,xA,xA-1);break;case"down":if(xA===-1||xA===m.value.length-1)break;m.value=oA(m.value,xA,xA+1);break;case"top":if(xA!==-1){const[RA]=m.value.splice(xA,1);m.value.unshift(RA)}break;case"bottom":if(xA!==-1){const[RA]=m.value.splice(xA,1);m.value.push(RA)}break}V()},oA=(rA,dA,xA)=>{const RA=rA[dA];return rA[dA]=rA[xA],rA[xA]=RA,rA},AA=(0,r.ref)(),_=(0,r.ref)(20),q=(0,r.ref)(document.body.clientWidth),F=(0,r.ref)(document.body.clientHeight),R=(0,r.ref)(0),b=(0,r.ref)(0),P=(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)"}),M=(0,r.computed)(()=>({x:0,y:0,width:q.value,height:F.value})),k=(0,r.ref)({h:[],v:[]}),O=(0,r.ref)(),Y=(0,r.ref)(),eA=(0,r.ref)(!1),hA=(0,r.ref)({}),bA=(0,r.ref)(100),tA=(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}}),J=(0,r.computed)(()=>(d.value.config.h||1080)*2),$=(0,r.computed)(()=>(d.value.config.w||1920)*2),uA=()=>{AA.value&&(q.value=AA.value.offsetWidth-_.value,F.value=AA.value.offsetHeight-_.value,O.value.scrollLeft=$.value/2-_.value,O.value.scrollTop=J.value/2-_.value,pA())},pA=()=>{const rA=d.value.config.w||1920;q.value<rA&&(tA.value=q.value*100/rA)},FA=()=>{document.onkeydown=rA=>{if(rA.target?.nodeName==="TEXTAREA"||rA.target?.nodeName==="INPUT")return;const dA=rA.keyCode||rA.which;dA===32&&(rA.preventDefault(),hA.value.space=!0),dA===17&&(rA.preventDefault(),hA.value.ctrl=!0)},document.onkeyup=()=>{hA.value={}}},_A=rA=>{hA.value.space&&(eA.value=!0,window.stardragEvent=rA,window.startSlideX=O.value.scrollLeft,window.startSlideY=O.value.scrollTop,document.onmousemove=dA=>{if(eA.value){const xA=dA.clientX-window.stardragEvent.clientX,RA=dA.clientY-window.stardragEvent.clientY;O.value.scrollLeft=window.startSlideX-xA,O.value.scrollTop=window.startSlideY-RA}},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,eA.value=!1})},fA=()=>{const rA=O.value.getBoundingClientRect(),dA=Y.value.getBoundingClientRect(),xA=tA.value,RA=(rA.left+_.value-dA.left)/xA,ke=(rA.top+_.value-dA.top)/xA;R.value=RA>>0,b.value=ke>>0},yA=rA=>{if(rA.preventDefault(),rA.ctrlKey||rA.metaKey){const dA=tA.value;tA.value=parseFloat(Math.max(.2,dA-rA.deltaY/500).toFixed(2))*100,dA!==tA.value&&(0,r.nextTick)(()=>{fA()})}},S=rA=>{rA.forEach(dA=>{dA.type==="d-input-flow"&&(dA.config=dA.config||{},dA.config.flowComponents=o.flowComponents,dA.config.flowInit=o.flowInit,dA.config.flowComponentConfigInit=xA=>{o.flowComponentConfigInit&&(xA.designComponents=m.value,xA.component=w.value,o.flowComponentConfigInit(xA))},dA.config.flowComponentConfigs=o.flowComponentConfigs,dA.config.flowComponentConfigChange=o.flowComponentConfigChange),dA.children&&S(dA.children)})},H=(0,r.ref)(),D=(0,r.computed)(()=>w.value?.id!="indexPage"?w.value?`${w.value.name}-${w.value.id}`:"":w.value?`${w.value.name}`:""),x={};Object.keys(o.componentConfigs).forEach(rA=>{const dA=[{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}}],xA={type:"j-collapse",config:{defaultValue:[]},children:[]};rA!=="indexPage"&&xA.children?.push({config:{label:"基础信息"},children:[...dA]}),xA.children?.push(...o.componentConfigs[rA]),xA.children?.forEach((RA,ke)=>{xA.config?.defaultValue.push(`_collapse${ke}`)}),S(xA.children||[]),x[rA]=[xA]});const K=()=>{if(w.value){const rA=x[w.value.type];rA?H.value.init(rA,w.value.config):H.value.init([]),o.componentConfigInit&&o.componentConfigInit(w.value.type,{configRef:H,components:m.value,configData:w.value.config})}else H.value.init([])},cA=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:H,configData:w.value.config,...rA}))},aA=rA=>o.componentInit?o.componentInit(rA)||{}:{},wA=(rA,dA,xA)=>{const RA={name:rA.name,id:dt(),type:rA.type,layerId:"0",config:aA(rA.type),display:!0,lock:!1,componentName:rA.componentName};RA.config.id=RA.id,RA.config.label=rA.name,RA.config.h=rA.h||100,RA.config.w=rA.w||100,RA.config.x=dA,RA.config.y=xA,m.value.unshift(RA),w.value=RA,K()},QA=(rA,dA)=>{const xA=document.getElementById("j-bi-design-container").getBoundingClientRect(),RA=rA.clientX-xA.left,ke=rA.clientY-xA.top;wA(dA,RA/tA.value-dA.w/2,ke/tA.value-dA.h/2)},NA=rA=>{m.value=m.value.filter(dA=>dA.id!==rA),w.value.id===rA&&(w.value=d.value,K()),V()},OA=rA=>{const dA=pn(rA),xA=dt();dA.id=xA,dA.config.id=xA,m.value.push(dA),w.value=dA,K(),V()},KA=rA=>{w.value?.id!==rA.id&&(w.value=rA,K())},ce=({left:rA,top:dA,width:xA,height:RA})=>{w.value&&(w.value.config.x=rA,w.value.config.y=dA,w.value.config.w=xA,w.value.config.h=RA,H.value.setFormData({main:{x:rA,y:dA,w:xA,h:RA}}))},ne=new ResizeObserver(uA);(0,r.onMounted)(()=>{ne.observe(AA.value),FA(),KA(d.value)});const $e=()=>({ver:"1.0.0",components:pn(m.value),page:d.value}),Lt=rA=>{rA.components?.forEach(dA=>{dA.componentName=h.value[dA.type].componentName}),m.value=rA.components||[],d.value=rA.page||d.value,KA(d.value)},pt=()=>{m.value=[],KA(d.value)},Qi=()=>new Promise(rA=>{(0,Jw.default)(Y.value,{useCORS:!0,backgroundColor:null,allowTaint:!0}).then(dA=>{if(dA.width!==0&&dA.height!==0){rA(dA.toDataURL("image/png"));return}rA("")})}),Ye=(0,r.ref)(),Mn=(0,r.ref)({});return A({clear:pt,setData:Lt,getData:$e,getImg:Qi,preview:()=>{Mn.value=$e(),Ye.value.open("大屏预览","full")},setShowLayer:rA=>{u.value=rA,rA||V()}}),(rA,dA)=>{const xA=(0,r.resolveComponent)("el-divider"),RA=(0,r.resolveComponent)("j-icon"),ke=(0,r.resolveComponent)("el-button"),An=(0,r.resolveComponent)("el-input"),en=(0,r.resolveComponent)("el-text"),Rn=(0,r.resolveComponent)("el-space"),Xr=(0,r.resolveComponent)("el-collapse-item"),Ei=(0,r.resolveComponent)("el-collapse"),Fi=(0,r.resolveComponent)("j-form"),$r=(0,r.resolveComponent)("j-layer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",A0,[v.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"j-bi-design-contentmenu",style:(0,r.normalizeStyle)({left:Q.value+"px",top:I.value+"px"})},[(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:dA[0]||(dA[0]=HA=>OA(N.value))},(0,r.toDisplayString)((0,r.unref)(n)("复制")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:dA[1]||(dA[1]=HA=>lA(N.value))},(0,r.toDisplayString)(N.value&&N.value.display?"隐藏":"显示"),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:dA[2]||(dA[2]=HA=>sA(N.value))},(0,r.toDisplayString)(N.value&&N.value.lock?"解锁":"锁定"),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:dA[3]||(dA[3]=HA=>nA("top",N.value))},(0,r.toDisplayString)((0,r.unref)(n)("置顶图层")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:dA[4]||(dA[4]=HA=>nA("bottom",N.value))},(0,r.toDisplayString)((0,r.unref)(n)("置底图层")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:dA[5]||(dA[5]=HA=>nA("up",N.value))},(0,r.toDisplayString)((0,r.unref)(n)("上移一层")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:dA[6]||(dA[6]=HA=>nA("down",N.value))},(0,r.toDisplayString)((0,r.unref)(n)("下移一层")),1),(0,r.createVNode)(xA,{style:{margin:"4px 0"}}),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",style:{color:"var(--j-color-danger)"},onClick:dA[7]||(dA[7]=HA=>NA(N.value?.id))},(0,r.toDisplayString)((0,r.unref)(n)("删除")),1)],4)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",e0,[u.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"j-bi-design-layer-panel",onContextmenu:(0,r.withModifiers)(z,["prevent"])},[(0,r.createVNode)(An,{modelValue:iA.value,"onUpdate:modelValue":dA[8]||(dA[8]=HA=>iA.value=HA),class:"search-input",placeholder:"搜索图层"},{append:(0,r.withCtx)(()=>[(0,r.createVNode)(ke,null,{icon:(0,r.withCtx)(()=>[(0,r.createVNode)(RA,{icon:"ep:search"})]),_:1})]),_:1},8,["modelValue"]),(0,r.createElementVNode)("div",t0,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(W.value,(HA,it)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:it},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["j-bi-design-layer-item",{active:w.value.id==HA.id}]),onClick:(0,r.withModifiers)(Me=>KA(HA),["stop"]),"data-id":HA.id},[(0,r.createElementVNode)("div",r0,[h.value[HA.type]?.icon?((0,r.openBlock)(),(0,r.createBlock)(RA,{key:0,icon:h.value[HA.type].icon,size:16},null,8,["icon"])):((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:1,style:{height:"100%"},src:`${e.imgUrlPrefix}${h.value[HA.type]?.img}`},null,8,o0))]),(0,r.createVNode)(en,{truncated:""},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)((0,r.unref)(n)(HA.config.label)),1)]),_:2},1024),(0,r.createElementVNode)("div",i0,[(0,r.createVNode)(Rn,{size:2},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["j-bi-design-layer-item-btn",{active:!HA.display}]),onClick:(0,r.withModifiers)(Me=>lA(HA),["stop"])},[(0,r.createVNode)(RA,{icon:"mdi:eye-off-outline"})],10,s0),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["j-bi-design-layer-item-btn",{active:HA.lock}]),onClick:(0,r.withModifiers)(Me=>sA(HA),["stop"])},[(0,r.createVNode)(RA,{icon:"mdi:lock-outline"})],10,a0)]),_:2},1024)])],10,n0)]))),128))])],32)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",l0,[(0,r.createVNode)(Ei,{modelValue:g.value,"onUpdate:modelValue":dA[9]||(dA[9]=HA=>g.value=HA)},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.components,(HA,it)=>((0,r.openBlock)(),(0,r.createBlock)(Xr,{key:it,title:(0,r.unref)(n)(HA.name),name:it},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(HA.children,(Me,Oe)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:Oe,class:"j-component-tool",onClick:(0,r.withModifiers)(tn=>wA(Me,0,0),["stop"]),onDragend:tn=>QA(tn,Me),draggable:"true"},[(0,r.createVNode)(RA,{class:"j-component-tool-icon",icon:Me.icon,size:14},null,8,["icon"]),(0,r.createElementVNode)("div",u0,(0,r.toDisplayString)((0,r.unref)(n)(Me.name)),1)],40,c0))),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)(Yw),{key:tA.value,thick:_.value,scale:tA.value,width:q.value,height:F.value,"start-x":R.value,"start-y":b.value,palette:P.value,shadow:M.value,"hor-line-arr":k.value.h,"ver-line-arr":k.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:O,class:"j-bi-design-main",style:(0,r.normalizeStyle)({cursor:eA.value?"pointer":""}),onMousedown:(0,r.withModifiers)(_A,["stop"]),onWheel:yA,onScroll:fA},[(0,r.createElementVNode)("div",{class:"screen-container",style:(0,r.normalizeStyle)({height:J.value+"px",width:$.value+"px"}),onClick:dA[10]||(dA[10]=(0,r.withModifiers)(HA=>KA(d.value),["stop"]))},[(0,r.createElementVNode)("div",{ref_key:"canvasRef",ref:Y,class:"canvas",onContextmenu:(0,r.withModifiers)(z,["prevent"])},[(0,r.createVNode)(bl,{layout:m.value,"index-page":d.value,"actived-component":w.value,scale:tA.value,onSelect:KA,onMove:ce},null,8,["layout","index-page","actived-component","scale"])],544)],4)],36)],512),(0,r.createElementVNode)("div",d0,[(0,r.createElementVNode)("div",f0,[(0,r.createElementVNode)("span",g0,(0,r.toDisplayString)(`${D.value}`),1)]),(0,r.createElementVNode)("div",h0,[(0,r.createVNode)(Fi,{config:{labelPosition:"top",size:"small"},style:{padding:"0"},ref_key:"configRef",ref:H,onChange:cA},null,512)])]),(0,r.createVNode)($r,{ref_key:"previewFormLayerRef",ref:Ye,destroyOnClose:!0,hasHeader:!1},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(Hl,{indexPage:Mn.value.page,layout:Mn.value.components,actions:e.actions},null,8,["indexPage","layout","actions"])]),_:1},512)])}}}),p0=B0,Il=ut(p0,[bl,Hl]),m0=[ds,Do,No,Lo,To,sl,al,hl,Bl,yl,Fl,Il],_l=new WeakSet,w0=e=>{_l.has(e)||(_l.add(e),m0.forEach(A=>{const t=A.name;t&&e.component(t,A)}))},C0={install:w0};ee.DBiDesign=Il,ee.DDrag=ds,ee.DDraggable=Bl,ee.DFlowDesign=sl,ee.DFormDesign=yl,ee.DIndexDesign=Fl,ee.DInputFlow=al,ee.DLayout=hl,ee.default=C0,ee.dragContainer=No,ee.dragFormList=Lo,ee.dragIndexList=To,ee.dragTool=Do,ee.toFormDesignSchema=ml,ee.toFormSaveSchema=Gr,ee.toFormSchema=pl});
|