mirror of
https://gitee.com/myxzgzs/boyuehasfj-vue3.git
synced 2025-08-08 15:12:41 +08:00
168 lines
1.2 MiB
JavaScript
168 lines
1.2 MiB
JavaScript
![]() |
var e=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,o=(t,n,i)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i,s=(e,t)=>{for(var n in t||(t={}))a.call(t,n)&&o(e,n,t[n]);if(i)for(var n of i(t))r.call(t,n)&&o(e,n,t[n]);return e},l=(e,i)=>t(e,n(i)),c=(e,t,n)=>new Promise(((i,a)=>{var r=e=>{try{s(n.next(e))}catch(t){a(t)}},o=e=>{try{s(n.throw(e))}catch(t){a(t)}},s=e=>e.done?i(e.value):Promise.resolve(e.value).then(r,o);s((n=n.apply(e,t)).next())}));import{b as d,r as _,e as p,s as u,c as m}from"./definition-DXmD8XrJ.js";import{B as g,e as E,I as S,i as h,c as f,a as b,b as v,m as T,d as y,V as C,M as R,Z as N,t as O,f as I,g as A,h as D,j as x,k as w,s as M,l as L,n as P,o as k,p as F,q as B,r as U,u as G,v as Y,w as V,x as H,y as z,O as q,z as $,A as j,C as W,D as Q,E as K,F as X,G as Z,H as J,J as ee,K as te,L as ne,N as ie,P as ae,Q as re,R as oe,S as se,T as le,U as ce,W as de,X as _e,Y as pe,_ as ue,$ as me,a0 as ge,a1 as Ee,a2 as Se,a3 as he,a4 as fe,a5 as be,a6 as ve,a7 as Te,a8 as ye,a9 as Ce,aa as Re,ab as Ne,ac as Oe,ad as Ie,ae as Ae,af as De,ag as xe,ah as we,ai as Me,aj as Le,ak as Pe,al as ke,am as Fe,an as Be,ao as Ue,ap as Ge,aq as Ye,ar as Ve,as as He,at as ze,au as qe,av as $e,aw as je,ax as We,ay as Qe,az as Ke,aA as Xe,aB as Ze,aC as Je,aD as et,aE as tt,aF as nt,aG as it,aH as at,aI as rt,aJ as ot,aK as st,aL as lt,aM as ct,aN as dt,aO as _t,aP as pt,aQ as ut,aR as mt,aS as gt,aT as Et,aU as St,aV as ht,aW as ft,aX as bt,aY as vt,aZ as Tt,a_ as yt,a$ as Ct,b0 as Rt,b1 as Nt,b2 as Ot,b3 as It,b4 as At,b5 as Dt,b6 as xt,b7 as wt,b8 as Mt,b9 as Lt,ba as Pt,bb as kt,bc as Ft,bd as Bt,be as Ut}from"./vue-treeselect-DOtaeHu9.js";import{g as Gt,_ as Yt,d as Vt,c as Ht,e as zt,f as qt,w as $t,j as jt,m as Wt,n as Qt,h as Kt,i as Xt,I as Zt,J as Jt,F as en,H as tn,R as nn,o as an,l as rn,B as on,a5 as sn,a6 as ln}from"./index-C-c3zR6K.js";import{l as cn}from"./listener-B6q_KCWD.js";import{S as dn}from"./StrUtil-C5XZ-1E2.js";import{F as _n,a as pn}from"./index-Cnjq8-TX.js";import{l as un}from"./expression-D3yE61uC.js";import{c as mn}from"./form-DFQoSlRs.js";import"./user-DdZ7lTRu.js";import"./role-C2JHjUVp.js";const gn={"Activate the global connect tool":"激活全局连接工具","Append {type}":"添加 {type}","Append Task":"添加任务","Append Gateway":"添加网关","Append EndEvent":"添加结束事件","Append StartEvent":"添加开始事件","Append Intermediate/Boundary Event":"添加边界事件","Add Lane above":"在上面添加道","Divide into two Lanes":"分割成两个道","Divide into three Lanes":"分割成三个道","Add Lane below":"在下面添加道","Append compensation activity":"追加补偿活动","Change type":"修改类型","Connect using Association":"使用关联连接","Connect using Sequence/MessageFlow or Association":"使用顺序/消息流或者关联连接","Connect using DataInputAssociation":"使用数据输入关联连接",Remove:"移除","Activate the hand tool":"激活抓手工具","Activate the lasso tool":"激活套索工具","Activate the create/remove space tool":"激活创建/删除空间工具","Create expanded SubProcess":"创建扩展子过程","Create IntermediateThrowEvent/BoundaryEvent":"创建中间抛出事件/边界事件","Create Pool/Participant":"创建池/参与者","Parallel Multi Instance":"并行多重事件","Sequential Multi Instance":"时序多重事件",DataObjectReference:"数据对象参考",DataStoreReference:"数据存储参考",Loop:"循环","Ad-hoc":"即席","Create {type}":"创建 {type}",Task:"任务","Send Task":"发送任务","Receive Task":"接收任务","User Task":"用户任务","Manual Task":"手工任务","Business Rule Task":"业务规则任务","Service Task":"服务任务","Script Task":"脚本任务","Call Activity":"调用活动","Sub Process (collapsed)":"子流程(折叠的)","Sub Process (expanded)":"子流程(展开的)","Start Event":"开始事件",Sta
|
||
|
/*! Hammer.JS - v2.0.7 - 2016-04-22
|
||
|
* http://hammerjs.github.io/
|
||
|
*
|
||
|
* Copyright (c) 2016 Jorik Tangelder;
|
||
|
* Licensed under the MIT license */const Bn=Gt((Pn||(Pn=1,kn=Fn,function(e,t,n,i){var a,r=["","webkit","Moz","MS","ms","o"],o=t.createElement("div"),s=Math.round,l=Math.abs,c=Date.now;function d(e,t,n){return setTimeout(S(e,n),t)}function _(e,t,n){return!!Array.isArray(e)&&(p(e,n[t],n),!0)}function p(e,t,n){var a;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==i)for(a=0;a<e.length;)t.call(n,e[a],a,e),a++;else for(a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}function u(t,n,i){var a="DEPRECATED METHOD: "+n+"\n"+i+" AT \n";return function(){var n=new Error("get-stack-trace"),i=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=e.console&&(e.console.warn||e.console.log);return r&&r.call(e.console,a,i),t.apply(this,arguments)}}a="function"!=typeof Object.assign?function(e){if(e===i||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var a=arguments[n];if(a!==i&&null!==a)for(var r in a)a.hasOwnProperty(r)&&(t[r]=a[r])}return t}:Object.assign;var m=u((function(e,t,n){for(var a=Object.keys(t),r=0;r<a.length;)(!n||n&&e[a[r]]===i)&&(e[a[r]]=t[a[r]]),r++;return e}),"extend","Use `assign`."),g=u((function(e,t){return m(e,t,!0)}),"merge","Use `assign`.");function E(e,t,n){var i,r=t.prototype;(i=e.prototype=Object.create(r)).constructor=e,i._super=r,n&&a(i,n)}function S(e,t){return function(){return e.apply(t,arguments)}}function h(e,t){return"function"==typeof e?e.apply(t&&t[0]||i,t):e}function f(e,t){return e===i?t:e}function b(e,t,n){p(C(t),(function(t){e.addEventListener(t,n,!1)}))}function v(e,t,n){p(C(t),(function(t){e.removeEventListener(t,n,!1)}))}function T(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function y(e,t){return e.indexOf(t)>-1}function C(e){return e.trim().split(/\s+/g)}function R(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var i=0;i<e.length;){if(n&&e[i][n]==t||!n&&e[i]===t)return i;i++}return-1}function N(e){return Array.prototype.slice.call(e,0)}function O(e,t,n){for(var i=[],a=[],r=0;r<e.length;){var o=e[r][t];R(a,o)<0&&i.push(e[r]),a[r]=o,r++}return i=i.sort((function(e,n){return e[t]>n[t]}))}function I(e,t){for(var n,a,o=t[0].toUpperCase()+t.slice(1),s=0;s<r.length;){if((a=(n=r[s])?n+o:t)in e)return a;s++}return i}var A=1;function D(t){var n=t.ownerDocument||t;return n.defaultView||n.parentWindow||e}var x="ontouchstart"in e,w=I(e,"PointerEvent")!==i,M=x&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),L="touch",P="mouse",k=24,F=["x","y"],B=["clientX","clientY"];function U(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){h(e.options.enable,[e])&&n.handler(t)},this.init()}function G(e,t,n){var a=n.pointers.length,r=n.changedPointers.length,o=1&t&&a-r===0,s=12&t&&a-r===0;n.isFirst=!!o,n.isFinal=!!s,o&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,a=t.pointers,r=a.length;n.firstInput||(n.firstInput=Y(t)),r>1&&!n.firstMultiple?n.firstMultiple=Y(t):1===r&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,d=s?s.center:o.center,_=t.center=V(a);t.timeStamp=c(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=$(d,_),t.distance=q(d,_),function(e,t){var n=t.center,i=e.offsetDelta||{},a=e.prevDelta||{},r=e.prevInput||{};1!==t.eventType&&4!==r.eventType||(a=e.prevDelta={x:r.deltaX||0,y:r.deltaY||0},i=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=a.x+(n.x-i.x),t.deltaY=a.y+(n.y-i.y)}(n,t),t.offsetDirection=z(t.deltaX,t.deltaY);var p,u,m=H(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=m.x,t.overallVelocityY=m.y,t.overallVelocity=l(m.x)>l(m.y)?m.x:m.y,t.scale=s?(p=s.pointers,q((u=a)[0],u[1],B)/q(p[0],p[1],B)):1,t.rotation=s?function(e,t){return $(t[1],t[0],B)+$(e[1],e[0],B)}(s.pointers,a):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,a,r,o,s=e.lastInterval||t,c=t.timeStamp-s.timeStamp;if(8!=t.eventType&&(c>25||s.veloc
|
||
|
<li
|
||
|
class=${Sa("entry",{selected:n})}
|
||
|
data-id=${t.id}
|
||
|
title=${t.title||t.label}
|
||
|
onClick=${r}
|
||
|
onMouseEnter=${i}
|
||
|
onMouseLeave=${a}
|
||
|
onDragStart=${e=>r(e,t,"dragstart")}
|
||
|
draggable=${!0}
|
||
|
>
|
||
|
<div class="djs-popup-entry-content">
|
||
|
<span
|
||
|
class=${Sa("djs-popup-entry-name",t.className)}
|
||
|
>
|
||
|
${t.imageUrl?$i`
|
||
|
<img class="djs-popup-entry-icon" src=${t.imageUrl} alt="" />
|
||
|
`:null}
|
||
|
|
||
|
${t.label?$i`
|
||
|
<span class="djs-popup-label">
|
||
|
${t.label}
|
||
|
</span>
|
||
|
`:null}
|
||
|
</span>
|
||
|
${t.description&&$i`
|
||
|
<span
|
||
|
class="djs-popup-entry-description"
|
||
|
title=${t.description}
|
||
|
>
|
||
|
${t.description}
|
||
|
</span>
|
||
|
`}
|
||
|
</div>
|
||
|
${t.documentationRef&&$i`
|
||
|
<div class="djs-popup-entry-docs">
|
||
|
<a
|
||
|
href="${t.documentationRef}"
|
||
|
onClick=${e=>e.stopPropagation()}
|
||
|
title="Open element documentation"
|
||
|
target="_blank"
|
||
|
rel="noopener"
|
||
|
>
|
||
|
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.6368 10.6375V5.91761H11.9995V10.6382C11.9995 10.9973 11.8623 11.3141 11.5878 11.5885C11.3134 11.863 10.9966 12.0002 10.6375 12.0002H1.36266C0.982345 12.0002 0.660159 11.8681 0.396102 11.6041C0.132044 11.34 1.52588e-05 11.0178 1.52588e-05 10.6375V1.36267C1.52588e-05 0.98236 0.132044 0.660173 0.396102 0.396116C0.660159 0.132058 0.982345 2.95639e-05 1.36266 2.95639e-05H5.91624V1.36267H1.36266V10.6375H10.6368ZM12 0H7.2794L7.27873 1.36197H9.68701L3.06507 7.98391L4.01541 8.93425L10.6373 2.31231V4.72059H12V0Z" fill="#818798"/>
|
||
|
</svg>
|
||
|
</a>
|
||
|
</div>
|
||
|
`}
|
||
|
</li>
|
||
|
`}function fa(e){const t=e,{selectedEntry:n,setSelectedEntry:o,entries:c}=t,d=((e,t)=>{var n={};for(var o in e)a.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&i)for(var o of i(e))t.indexOf(o)<0&&r.call(e,o)&&(n[o]=e[o]);return n})(t,["selectedEntry","setSelectedEntry","entries"]),_=oa(),p=sa((()=>function(e){const t=[],n=e=>t.find((t=>e.id===t.id)),i=e=>!!n(e),a=e=>"string"==typeof e?{id:e}:e;return e.forEach((e=>{const r=e.group?a(e.group):{id:"default"};i(r)?n(r).entries.push(e):t.push(l(s({},r),{entries:[e]}))})),t}(c)),[c]);return ra((()=>{const e=_.current;if(!e)return;const t=e.querySelector(".selected");var n;t&&("function"==typeof(n=t).scrollIntoViewIfNeeded?n.scrollIntoViewIfNeeded():n.scrollIntoView({scrollMode:"if-needed",block:"nearest"}))}),[n]),$i`
|
||
|
<div class="djs-popup-results" ref=${_}>
|
||
|
${p.map((e=>$i`
|
||
|
${e.name&&$i`
|
||
|
<div key=${e.id} class="entry-header" title=${e.name}>
|
||
|
${e.name}
|
||
|
</div>
|
||
|
`}
|
||
|
<ul class="djs-popup-group" data-group=${e.id}>
|
||
|
${e.entries.map((e=>$i`
|
||
|
<${ha}
|
||
|
key=${e.id}
|
||
|
entry=${e}
|
||
|
selected=${e===n}
|
||
|
onMouseEnter=${()=>o(e)}
|
||
|
onMouseLeave=${()=>o(null)}
|
||
|
...${d}
|
||
|
/>
|
||
|
`))}
|
||
|
</ul>
|
||
|
`))}
|
||
|
</div>
|
||
|
`}function ba(e){const{onClose:t,onSelect:n,className:i,headerEntries:a,position:r,title:o,width:s,scale:l,search:c,entries:d,onOpened:_,onClosed:p}=e,u=sa((()=>!!P(c)&&d.length>5),[c,d]),m=oa(),[g,E]=ia(""),S=la(((e,t)=>{if(!u)return e;return e.filter((e=>{if(!t)return(e.rank||0)>=0;const n=[e.description||"",e.label||"",e.search||""].join("---").toLowerCase();return t.toLowerCase().split(/\s/g).every((e=>n.includes(e)))}))}),[u]),[h,f]=ia(S(d,g)),[b,v]=ia(h[0]),y=la((e=>{b&&e.includes(b)||v(e[0]),f(e)}),[b,f,v]);aa((()=>{y(S(d,g))}),[g,d]),aa((()=>{const e=e=>{if("Escape"===e.key)return e.preventDefault(),t()};return document.documentElement.addEventListener("keydown",e),()=>{document.documentElement.removeEventListener("keydown",e)}}),[]),ra((()=>{m.current&&m.current.focus()}),[]);const C=la((e=>{let t=h.indexOf(b)+e;t<0&&(t=h.length-1),t>=h.length&&(t=0),v(h[t])}),[h,b,v]),R=la((e=>"Enter"===e.key&&b?n(e,b):"ArrowUp"===e.key||"Tab"===e.key&&e.shiftKey?(C(-1),e.preventDefault()):"ArrowDown"===e.key||"Tab"===e.key?(C(1),e.preventDefault()):void 0),[n,t,b,C]),N=la((e=>{T(e.target,"input")&&E((()=>e.target.value))}),[E]);aa((()=>(_(),()=>{p()})),[]);const O=sa((()=>o||a.length>0),[o,a]);return $i`
|
||
|
<${va}
|
||
|
onClose=${t}
|
||
|
onKeyup=${N}
|
||
|
onKeydown=${R}
|
||
|
className=${i}
|
||
|
position=${r}
|
||
|
width=${s}
|
||
|
scale=${l}
|
||
|
>
|
||
|
${O&&$i`
|
||
|
<div class="djs-popup-header">
|
||
|
<h3 class="djs-popup-title" title=${o}>${o}</h3>
|
||
|
${a.map((e=>$i`
|
||
|
<span
|
||
|
class=${function(e,t){return Sa("entry",e.className,e.active?"active":"",e.disabled?"disabled":"",t?"selected":"")}(e,e===b)}
|
||
|
onClick=${t=>n(t,e)}
|
||
|
title=${e.title||e.label}
|
||
|
data-id=${e.id}
|
||
|
onMouseEnter=${()=>v(e)}
|
||
|
onMouseLeave=${()=>v(null)}
|
||
|
>
|
||
|
${e.imageUrl?$i`
|
||
|
<img class="djs-popup-entry-icon" src=${e.imageUrl} alt="" />
|
||
|
`:null}
|
||
|
|
||
|
${e.label?$i`
|
||
|
<span class="djs-popup-label">${e.label}</span>
|
||
|
`:null}
|
||
|
</span>
|
||
|
`))}
|
||
|
</div>
|
||
|
`}
|
||
|
${d.length>0&&$i`
|
||
|
<div class="djs-popup-body">
|
||
|
|
||
|
${u&&$i`
|
||
|
<div class="djs-popup-search">
|
||
|
<svg class="djs-popup-search-icon" width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.0325 8.5H9.625L13.3675 12.25L12.25 13.3675L8.5 9.625V9.0325L8.2975 8.8225C7.4425 9.5575 6.3325 10 5.125 10C2.4325 10 0.25 7.8175 0.25 5.125C0.25 2.4325 2.4325 0.25 5.125 0.25C7.8175 0.25 10 2.4325 10 5.125C10 6.3325 9.5575 7.4425 8.8225 8.2975L9.0325 8.5ZM1.75 5.125C1.75 6.9925 3.2575 8.5 5.125 8.5C6.9925 8.5 8.5 6.9925 8.5 5.125C8.5 3.2575 6.9925 1.75 5.125 1.75C3.2575 1.75 1.75 3.2575 1.75 5.125Z" fill="#22242A"/>
|
||
|
</svg>
|
||
|
<input
|
||
|
ref=${m}
|
||
|
type="text"
|
||
|
/>
|
||
|
</div>
|
||
|
`}
|
||
|
|
||
|
<${fa}
|
||
|
entries=${h}
|
||
|
selectedEntry=${b}
|
||
|
setSelectedEntry=${v}
|
||
|
onAction=${n}
|
||
|
/>
|
||
|
</div>
|
||
|
${0===h.length&&$i`
|
||
|
<div class="djs-popup-no-results">No matching entries found.</div>
|
||
|
`}
|
||
|
`}
|
||
|
</${va}>
|
||
|
`}function va(e){const{onClose:t,onKeydown:n,onKeyup:i,className:a,children:r,position:o}=e,s=oa(),l=la((e=>{f(e.target,".djs-popup",!0)||t()}),[t]);return ra((()=>{if("function"!=typeof o)return;const e=s.current,t=o(e);e.style.left=`${t.x}px`,e.style.top=`${t.y}px`}),[s.current,o]),ra((()=>{s.current&&s.current.focus()}),[]),$i`
|
||
|
<div
|
||
|
class="djs-popup-backdrop"
|
||
|
onClick=${l}
|
||
|
>
|
||
|
<div
|
||
|
class=${Sa("djs-popup",a)}
|
||
|
style=${function(e){return{transform:`scale(${e.scale})`,width:`${e.width}px`}}(e)}
|
||
|
onKeydown=${n}
|
||
|
onKeyup=${i}
|
||
|
ref=${s}
|
||
|
tabIndex="-1"
|
||
|
>
|
||
|
${r}
|
||
|
</div>
|
||
|
</div>
|
||
|
`}var Ta=["contextPad.close","canvas.viewbox.changing","commandStack.changed"];function ya(e,t,n){this._eventBus=t,this._canvas=n,this._current=null;var i=P(e&&e.scale)?e.scale:{min:1,max:1.5};this._config={scale:i},t.on("diagram.destroy",(()=>{this.close()})),t.on("element.changed",(e=>{const t=this.isOpen()&&this._current.element;e.element===t&&this._render()}))}ya.$inject=["config.popupMenu","eventBus","canvas"],ya.prototype._render=function(){const{position:e,className:t,entries:n,headerEntries:i,options:a}=this._current,r=Object.entries(n).map((([e,t])=>s({id:e},t))),o=Object.entries(i).map((([e,t])=>s({id:e},t))),l=e&&(t=>this._ensureVisible(t,e)),c=this._updateScale(this._current.container);Ui($i`
|
||
|
<${ba}
|
||
|
onClose=${e=>this.close(e)}
|
||
|
onSelect=${(e,t,n)=>this.trigger(e,t,n)}
|
||
|
position=${l}
|
||
|
className=${t}
|
||
|
entries=${r}
|
||
|
headerEntries=${o}
|
||
|
scale=${c}
|
||
|
onOpened=${this._onOpened.bind(this)}
|
||
|
onClosed=${this._onClosed.bind(this)}
|
||
|
...${s({},a)}
|
||
|
/>
|
||
|
`,this._current.container)},ya.prototype.open=function(e,t,n,i){if(!e)throw new Error("Element is missing");if(!t)throw new Error("No registered providers for: "+t);if(!n)throw new Error("the position argument is missing");this.isOpen()&&this.close();const{entries:a,headerEntries:r}=this._getContext(e,t);this._current={position:n,className:t,element:e,entries:a,headerEntries:r,container:this._createContainer({provider:t}),options:i},this._emit("open"),this._bindAutoClose(),this._render()},ya.prototype._getContext=function(e,t){const n=this._getProviders(t);if(!n||!n.length)throw new Error("No registered providers for: "+t);const i=this._getEntries(e,n),a=this._getHeaderEntries(e,n);return{entries:i,headerEntries:a,empty:!(Object.keys(i).length||Object.keys(a).length)}},ya.prototype.close=function(){this.isOpen()&&(this._emit("close"),this.reset(),this._current=null)},ya.prototype.reset=function(){const e=this._current.container;Ui(null,e),$(e)},ya.prototype._emit=function(e,t){this._eventBus.fire(`popupMenu.${e}`,t)},ya.prototype._onOpened=function(){this._emit("opened")},ya.prototype._onClosed=function(){this._emit("closed")},ya.prototype._createContainer=function(e){var t=this._canvas.getContainer();const n=B(`<div class="djs-popup-parent djs-scrollable" data-popup=${e.provider}></div>`);return t.appendChild(n),n},ya.prototype._bindAutoClose=function(){this._eventBus.once(Ta,this.close,this)},ya.prototype._unbindAutoClose=function(){this._eventBus.off(Ta,this.close,this)},ya.prototype._updateScale=function(e){var t,n,i=this._canvas.zoom(),a=this._config.scale,r=i;return!0!==a&&(!1===a?(t=1,n=1):(t=a.min,n=a.max),P(t)&&i<t&&(r=t),P(n)&&i>n&&(r=n)),r},ya.prototype._ensureVisible=function(e,t){var n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect(),a={},r=t.x,o=t.y;return t.x+i.width>n.width&&(a.x=!0),t.y+i.height>n.height&&(a.y=!0),a.x&&a.y?(r=t.x-i.width,o=t.y-i.height):a.x?(r=t.x-i.width,o=t.y):a.y&&t.y<i.height?(r=t.x,o=10):a.y&&(r=t.x,o=t.y-i.height),{x:r,y:o}},ya.prototype.isEmpty=function(e,t){if(!e)throw new Error("element parameter is missing");if(!t)throw new Error("providerId parameter is missing");const n=this._getProviders(t);return!n||!n.length||this._getContext(e,t).empty},ya.prototype.registerProvider=function(e,t,n){n||(n=t,t=1e3),this._eventBus.on("popupMenu.getProviders."+e,t,(function(e){e.providers.push(n)}))},ya.prototype._getProviders=function(e){var t=this._eventBus.createEvent({type:"popupMenu.getProviders."+e,providers:[]});return this._eventBus.fire(t),t.providers},ya.prototype._getEntries=function(e,t){var n={};return I(t,(function(t){if(t.getPopupMenuEntries){var i=t.getPopupMenuEntries(e);v(i)?n=i(n):I(i,(function(e,t){n[t]=e}))}else I(t.getEntries(e),(function(e){var t=e.id;if(!t)throw new Error("every entry must have the id property set");n[t]=j(e,["id"])}))})),n},ya.prototype._getHeaderEntries=function(e,t){var n={};return I(t,(function(t){if(t.getPopupMenuHeaderEntries){var i=t.getPopupMenuHeaderEntries(e);v(i)?n=i(n):I(i,(function(e,t){n[t]=e}))}else{if(!t.getHeaderEntries)return;I(t.getHeaderEntries(e),(function(e){var t=e.id;if(!t)throw new Error("every entry must have the id property set");n[t]=j(e,["id"])}))}})),n},ya.prototype.isOpen=function(){return!!this._current},ya.prototype.trigger=function(e,t,n="click"){if(e.preventDefault(),!t){let n=f(e.delegateTarget||e.target,".entry",!0),i=F(n,"data-id");t=this._getEntry(i)}const i=t.action;if(!1!==this._emit("trigger",{entry:t,event:e}))if(v(i)){if("click"===n)return i(e,t)}else if(i[n])return i[n](e,t)},ya.prototype._getEntry=function(e){var t=this._current.entries[e]||this._current.headerEntries[e];if(!t)throw new Error("entry not found");return t};const Ca={__init__:["popupMenu"],popupMenu:["type",ya]};var Ra={align:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%202000%202000%22%3E%3Cpath%20style%3D%22stroke%3AcurrentColor%3Bstroke-width%3A100%3Bstroke-linecap%3Around%22%20d%3D%22M200%20150v1700%22%2F%3E%3Crect%20x%3D%22500%22%20y%3D%22150%22%20wid
|