@pipelab/ui 2.0.1-latest.35 → 2.0.1-latest.37
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/assets/Layout-rpufDwyJ.js +559 -0
- package/assets/{accordion-Bims3UDM.js → accordion-DYeQCi0N.js} +3 -3
- package/assets/{column-BL1r4P0x.js → column-ROh6EdI1.js} +29 -29
- package/assets/{editor-Pt_WCRWH.js → editor-Ch7O_rLY.js} +12 -12
- package/assets/index-CNWje7uo.js +281 -0
- package/assets/{index-C-IjnJ0i.css → index-oMZWO9L0.css} +1 -1
- package/assets/{pages-CnzuEwRk.js → pages-BoTPoL1i.js} +4 -4
- package/assets/{purify-g1tOOzKG.js → purify-CmKd8y0s.js} +1 -1
- package/assets/{radiobutton-CMEjerCX.js → radiobutton-D9RS5Qs7.js} +2 -2
- package/assets/{simple-editor-lRxdCn2B.js → simple-editor-Dxq6i__n.js} +1 -1
- package/assets/{useTour-CUyT4i7q.js → useTour-B8EBYp2B.js} +9 -9
- package/assets/{useconfirm-BSnWngV-.js → useconfirm-DOVgXA14.js} +3 -3
- package/assets/{usetoast-BzemnOip.js → usetoast-DW5WHBb5.js} +1 -1
- package/index.html +7 -7
- package/package.json +1 -1
- package/assets/Layout-C39w-uoV.js +0 -559
- package/assets/index-B5GGHUeX.js +0 -281
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e,t}from"./chunk-B3K2TuZy.js";import{At as n,Dt as r,E as i,F as a,G as o,I as s,J as c,K as l,L as u,M as d,Ot as f,R as p,T as m,Y as h,Z as g,_,d as v,f as y,ft as b,g as x,h as S,i as C,it as w,k as T,kt as E,l as D,nt as O,ot as k,p as A,q as j,rt as ee,st as M,t as N,tt as te,u as P,ut as ne,v as F,w as re,y as ie,z as ae}from"./_plugin-vue_export-helper-CUG653SX.js";import{
|
|
1
|
+
import{n as e,t}from"./chunk-B3K2TuZy.js";import{At as n,Dt as r,E as i,F as a,G as o,I as s,J as c,K as l,L as u,M as d,Ot as f,R as p,T as m,Y as h,Z as g,_,d as v,f as y,ft as b,g as x,h as S,i as C,it as w,k as T,kt as E,l as D,nt as O,ot as k,p as A,q as j,rt as ee,st as M,t as N,tt as te,u as P,ut as ne,v as F,w as re,y as ie,z as ae}from"./_plugin-vue_export-helper-CUG653SX.js";import{$ as oe,A as se,An as ce,At as le,B as ue,C as de,Ct as fe,D as pe,Dt as me,En as I,F as he,Ht as ge,It as _e,J as ve,K as ye,Kt as be,Ln as xe,Lt as Se,M as Ce,Mn as we,N as Te,Nn as Ee,O as De,Ot as Oe,P as ke,Pt as Ae,Qt as je,Rn as Me,Rt as Ne,Sn as Pe,St as Fe,Tn as Ie,Tt as Le,Ut as Re,V as ze,X as Be,Y as Ve,an as He,at as Ue,b as We,bt as Ge,c as Ke,ct as qe,dn as Je,f as Ye,g as Xe,h as Ze,i as Qe,it as $e,j as et,jn as tt,k as nt,l as rt,lt as it,m as at,mt as ot,n as st,nn as ct,ot as lt,p as ut,q as dt,qt as ft,rt as pt,s as mt,st as ht,tn as gt,tt as _t,u as vt,v as yt,vt as bt,w as xt,wt as St,x as Ct,xt as wt,y as Tt,yn as Et,yt as Dt,zn as Ot,zt as kt}from"./usetoast-DW5WHBb5.js";import{a as At,c as jt,i as Mt,l as Nt,n as Pt,o as Ft,r as It,s as Lt}from"./useconfirm-DOVgXA14.js";import{t as Rt}from"./preload-helper-DzyYoeor.js";import{n as zt,t as Bt}from"./purify-CmKd8y0s.js";import{i as Vt,n as Ht,r as Ut,t as Wt}from"./accordion-DYeQCi0N.js";import{c as Gt,d as Kt,l as qt,t as Jt,u as Yt}from"./Layout-rpufDwyJ.js";import{a as Xt,i as Zt,n as Qt,t as $t}from"./useTour-B8EBYp2B.js";var en={type:`sync`,importFFI:()=>Rt(()=>import(`./ffi-CJJc982W.js`).then(e=>e.QuickJSFFI),[]),importModuleLoader:()=>Rt(()=>import(`./emscripten-module.browser-n6hH-1tC.js`).then(e=>e.default),[])},tn=kt.extend({name:`inplace`,style:`
|
|
2
2
|
.p-inplace-display {
|
|
3
3
|
display: inline-block;
|
|
4
4
|
cursor: pointer;
|
|
@@ -27,7 +27,7 @@ import{n as e,t}from"./chunk-B3K2TuZy.js";import{At as n,Dt as r,E as i,F as a,G
|
|
|
27
27
|
.p-inplace-content {
|
|
28
28
|
display: block;
|
|
29
29
|
}
|
|
30
|
-
`,classes:{root:`p-inplace p-component`,display:function(e){return[`p-inplace-display`,{"p-disabled":e.props.disabled}]},content:`p-inplace-content`}}),nn={name:`Inplace`,extends:{name:`BaseInplace`,extends:Ce,props:{active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},displayProps:{type:null,default:null}},style:tn,provide:function(){return{$pcInplace:this,$parentInstance:this}}},inheritAttrs:!1,emits:[`open`,`close`,`update:active`],data:function(){return{d_active:this.active}},watch:{active:function(e){this.d_active=e}},methods:{open:function(e){this.disabled||(this.d_active=!0,this.$emit(`open`,e),this.$emit(`update:active`,!0))},close:function(e){var t=this;this.d_active=!1,this.$emit(`close`,e),this.$emit(`update:active`,!1),setTimeout(function(){t.$refs.display.focus()},0)}}};function rn(e){"@babel/helpers - typeof";return rn=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},rn(e)}function an(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function on(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?an(Object(n),!0).forEach(function(t){sn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):an(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sn(e,t,n){return(t=cn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cn(e){var t=ln(e,`string`);return rn(t)==`symbol`?t:t+``}function ln(e,t){if(rn(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rn(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var un=[`tabindex`,`data-p-disabled`];function dn(e,t,n,r,i,a){return d(),A(`div`,m({class:e.cx(`root`),"aria-live":`polite`},e.ptmi(`root`)),[i.d_active?(d(),A(`div`,m({key:1,class:e.cx(`content`)},e.ptm(`content`)),[s(e.$slots,`content`,{closeCallback:a.close})],16)):(d(),A(`div`,m({key:0,ref:`display`,class:e.cx(`display`),tabindex:e.$attrs.tabindex||`0`,role:`button`,onClick:t[0]||=function(){return a.open&&a.open.apply(a,arguments)},onKeydown:t[1]||=Se(function(){return a.open&&a.open.apply(a,arguments)},[`enter`]),"data-p-disabled":e.disabled},on(on({},e.displayProps),e.ptm(`display`))),[s(e.$slots,`display`)],16,un))],16)}nn.render=dn;var fn=t(((e,t)=>{t.exports=function(e){return typeof e==`object`&&!!e&&Array.isArray(e)===!1}})),pn=t(((e,t)=>{var n=fn();t.exports=function(e,t,s){if(n(s)||(s={default:s}),!o(e))return s.default===void 0?e:s.default;typeof t==`number`&&(t=String(t));let c=Array.isArray(t),l=typeof t==`string`,u=s.separator||`.`,d=s.joinChar||(typeof u==`string`?u:`.`);if(!l&&!c)return e;if(l&&t in e)return a(t,e,s)?e[t]:s.default;let f=c?t:i(t,u,s),p=f.length,m=0;do{let t=f[m];for(typeof t==`number`&&(t=String(t));t&&t.slice(-1)===`\\`;)t=r([t.slice(0,-1),f[++m]||``],d,s);if(t in e){if(!a(t,e,s))return s.default;e=e[t]}else{let n=!1,i=m+1;for(;i<p;)if(t=r([t,f[i++]],d,s),n=t in e){if(!a(t,e,s))return s.default;e=e[t],m=i-1;break}if(!n)return s.default}}while(++m<p&&o(e));return m===p?e:s.default};function r(e,t,n){return typeof n.join==`function`?n.join(e):e[0]+t+e[1]}function i(e,t,n){return typeof n.split==`function`?n.split(e):e.split(t)}function a(e,t,n){return typeof n.isValid==`function`?n.isValid(e,t):!0}function o(e){return n(e)||Array.isArray(e)||typeof e==`function`}})),mn=t(((e,t)=>{t.exports=function(e){return typeof e==`object`?e===null:typeof e!=`function`}})),hn=t(((e,t)=>{var n=fn();function r(e){return n(e)===!0&&Object.prototype.toString.call(e)===`[object Object]`}t.exports=function(e){var t,n;return!(r(e)===!1||(t=e.constructor,typeof t!=`function`)||(n=t.prototype,r(n)===!1)||n.hasOwnProperty(`isPrototypeOf`)===!1)}})),gn=t(((e,t)=>{var{deleteProperty:n}=Reflect,r=mn(),i=hn(),a=e=>typeof e==`object`&&!!e||typeof e==`function`,o=e=>e===`__proto__`||e===`constructor`||e===`prototype`,s=e=>{if(!r(e))throw TypeError(`Object keys must be strings or symbols`);if(o(e))throw Error(`Cannot set unsafe key: "${e}"`)},c=e=>Array.isArray(e)?e.flat().map(String).join(`,`):e,l=(e,t)=>{if(typeof e!=`string`||!t)return e;let n=e+`;`;return t.arrays!==void 0&&(n+=`arrays=${t.arrays};`),t.separator!==void 0&&(n+=`separator=${t.separator};`),t.split!==void 0&&(n+=`split=${t.split};`),t.merge!==void 0&&(n+=`merge=${t.merge};`),t.preservePaths!==void 0&&(n+=`preservePaths=${t.preservePaths};`),n},u=(e,t,n)=>{let r=c(t?l(e,t):e);s(r);let i=m.cache.get(r)||n();return m.cache.set(r,i),i},d=(e,t={})=>{let n=t.separator||`.`,r=n===`/`?!1:t.preservePaths;if(typeof e==`string`&&r!==!1&&/\//.test(e))return[e];let i=[],a=``,o=e=>{let t;e.trim()!==``&&Number.isInteger(t=Number(e))?i.push(t):i.push(e)};for(let t=0;t<e.length;t++){let r=e[t];if(r===`\\`){a+=e[++t];continue}if(r===n){o(a),a=``;continue}a+=r}return a&&o(a),i},f=(e,t)=>t&&typeof t.split==`function`?t.split(e):typeof e==`symbol`?[e]:Array.isArray(e)?e:u(e,t,()=>d(e,t)),p=(e,t,r,a)=>{if(s(t),r===void 0)n(e,t);else if(a&&a.merge){let n=a.merge===`function`?a.merge:Object.assign;n&&i(e[t])&&i(r)?e[t]=n(e[t],r):e[t]=r}else e[t]=r;return e},m=(e,t,n,r)=>{if(!t||!a(e))return e;let i=f(t,r),o=e;for(let e=0;e<i.length;e++){let t=i[e],c=i[e+1];if(s(t),c===void 0){p(o,t,n,r);break}if(typeof c==`number`&&!Array.isArray(o[t])){o=o[t]=[];continue}a(o[t])||(o[t]={}),o=o[t]}return e};m.split=f,m.cache=new Map,m.clear=()=>{m.cache=new Map},t.exports=m})),_n=e(pn(),1),vn=e(gn(),1),yn=new WeakMap;function bn(e,t,n={}){let{mode:r=`replace`,route:a=mt(),router:s=We(),transform:c=e=>e}=n;yn.has(s)||yn.set(s,new Map);let l=yn.get(s),u=a.params[e];it(()=>{u=void 0});let d,f=h((n,o)=>(d=o,{get(){return n(),c(u!==void 0&&u!==``?u:fe(t))},set(n){u!==n&&(u=n===t||n===null?void 0:n,l.set(e,n===t||n===null?void 0:n),o(),i(()=>{if(l.size===0)return;let e=Object.fromEntries(l.entries());l.clear();let{params:t,query:n,hash:i}=a;s[fe(r)]({params:{...t,...e},query:n,hash:i})}))}}));return o(()=>a.params[e],e=>{u!==e&&(u=e,d())},{flush:`sync`}),f}var xn=ht(en,{wasmLocation:`/assets/emscripten-module-NWak2PoB.wasm`}),Sn=()=>lt(xn),Cn=e=>e.type===`action`,wn=e=>e.type===`event`,Tn=I(`editor`,()=>{let e=jt(),{presets:t,pluginDefinitions:n}=ve(e),{getNodeDefinition:r,getPluginDefinition:i}=e,{logger:a}=Ge(),{files:s}=ve(At()),c=bn(`pipelineId`),l=bn(`projectId`),u=w(``),d=w(``),f=w(!1),p=e=>{f.value=e},m=w([]),h=w([]),g=w([]),_=w([]),v=w({}),y=w({}),b=(e,t)=>{v.value[e]||(v.value[e]=[]),v.value[e].push(t)},x=()=>{v.value={}},S=D(()=>s.value.pipelines.find(e=>e.id===c.value)),C=D(()=>{let e={};for(let t of m.value){let n=r(t.origin.nodeId,t.origin.pluginId);if(e[t.uid]||(e[t.uid]={outputs:{}}),n&&n.node.type===`action`){let r=n.node.outputs;for(let[i,a]of Object.entries(r))e[t.uid].outputs[i]=`<span class="step">${t.name??n.node.name} → ${a.label}</span>`}}return e}),E=w(),O=e=>{E.value=e},k=w(),A=D(()=>{if(k.value)return m.value.find(e=>e.uid===k.value)}),j=e=>{console.log(`node`,e),k.value=e?.uid},ee=D(()=>n.value.map(e=>e.nodes.map(t=>({...t,plugin:e.id}))).flat(3)),N=()=>{m.value=[],g.value=[],h.value=[],O(void 0),j(void 0)},te=D(()=>{let e={};for(let t of m.value){let n=P(t);for(let r of n)e[t.uid]||(e[t.uid]=[]),e[t.uid].push(r)}return e}),P=e=>{let t=[];if(e.type===`action`){let n=r(e.origin.nodeId,e.origin.pluginId);if(!n)return t.push({type:`missing`,param:e.origin.nodeId+`:`+e.origin.pluginId}),a().warn(`Missing required node "${e.origin.nodeId}:${e.origin.pluginId}"`),t;let i=Object.entries(n.node?.params??{});for(let[n,r]of i)(qe(r)&&!(n in e.params)||qe(r)&&!e.params[n].value)&&(a().warn(`Missing required param "${n}" in node "${e.uid}"`),t.push({type:`missing`,param:n}))}else e.type;return t},ne=async e=>{N();let t=Lt(e,e=>{for(let t of e.canvas.blocks){let e=r(t.origin.nodeId,t.origin.pluginId);if(e){let n=e.node.params;for(let e of Object.keys(n))e in t.params||(console.log(`params[param]`,n[e]),console.warn(`adding mising param`,e,{editor:`simple`,value:n[e].value}),t.params[e]={editor:`simple`,value:n[e].value})}}});await dt(ct,t),u.value=t.name,d.value=t.description;for(let e of t.variables)me(e);for(let e of t.canvas.blocks)m.value.push(e),P(e);for(let e of t.canvas.triggers)h.value.push(e),P(e)},F=e=>{let t=m.value.findIndex(t=>t.uid===e);t>-1&&(m.value=[...m.value.slice(0,t),...m.value.slice(t+1,void 0)])},re=e=>{let t=h.value.findIndex(t=>t.uid===e);t>-1&&(h.value=[...h.value.slice(0,t),...h.value.slice(t+1,void 0)])},ie=(e,t)=>{let n=m.value.findIndex(t=>t.uid===e);n>-1&&(m.value=[...m.value.slice(0,n),t,...m.value.slice(n+1,void 0)])},ae=(e,t)=>{let n=h.value.findIndex(t=>t.uid===e);n>-1&&(h.value=[...h.value.slice(0,n),t,...h.value.slice(n+1,void 0)])},oe=(e,t)=>{let n=e+(t===`up`?-1:1),r=m.value.map((t,r)=>r===e?m.value[n]:r===n?m.value[e]:t);console.log(`input`,m.value),console.log(`output`,r),m.value=r},se=(e,t)=>{let n=Be(e);n.uid=Ae(),pe(n,[],t)},ce=e=>{m.value=Lt(Be(m.value),t=>{for(let n=0;n<t.length;n+=1)t[n].uid===e.uid&&(t[n].disabled=!0)})},le=e=>{m.value=Lt(Be(m.value),t=>{for(let n=0;n<t.length;n+=1)t[n].uid===e.uid&&(t[n].disabled=!1)})},ue=e=>{let{node:t,path:n,plugin:r,insertAt:i}=e;if(t&&r)if(Cn(t)){console.log(`nodeDefinition`,t);let e={};for(let[n,r]of Object.entries(t.params))e[n]={editor:`simple`,value:r.value};console.log(`createParams`,e),pe({uid:Ae(),type:t.type,origin:{nodeId:t.id,pluginId:r.id},params:e},n,i)}else a().error(`Unhandled`,t)},de=e=>{let{trigger:t,path:n,plugin:r,insertAt:i}=e;t&&r&&(wn(t)?fe({uid:Ae(),type:t.type,origin:{nodeId:t.id,pluginId:r.id},params:{}},n,i):a().error(`Unhandled`,t))},fe=(e,t,n)=>{let r=t.length===0?h.value:(0,_n.default)(h.value,t),i=[...r.slice(0,n),e,...r.slice(n)];t.length===0?h.value=i:(0,vn.default)(h.value,t,i)},pe=(e,t,n)=>{console.log(`node`,e),console.log(`path`,t),console.log(`insertAt`,n);let r=m.value;m.value=[...r.slice(0,n),e,...r.slice(n)]},me=e=>{g.value.push(e)},I=e=>{let t=g.value.findIndex(t=>t.id===e);g.value=[...g.value.slice(0,t),...g.value.slice(t+1,void 0)]},he=e=>{g.value=Lt(g.value,t=>{console.log(`draft`,t);for(let n=0;n<t.length;n+=1)console.log(`draft[i]`,t[n]),t[n].id===e.id&&(t[n]=Be(e));return t})},ge=async e=>{if(!t.value)throw Error(`No presets`);if(e){let n=t.value[e];n&&await ne(n.data)}},_e=D(()=>{let e={};for(let t of g.value)e[t.id]=`<div class="variable">@${t.name}</div>`;return e}),ye=M();Sn().then(e=>{ye.value=e});let be=kt();async function xe(){let e={};for(let t of m.value)if(t.type===`action`){let n=await $e({params:t.params,steps:C.value,context:{},variables:_e.value},e=>e,ye.value);e[t.uid]=n}Se.value=e,be.trigger()}let Se=w({});return o([m,C,_e],xe,{deep:!0}),T(()=>{console.group(`onMounted`),xe(),console.groupEnd()}),{nodes:m,triggers:h,variables:g,environnements:_,nodeDefinitions:ee,activeNode:E,selectedNode:A,name:u,pipelineId:c,projectId:l,description:d,errors:te,stepsDisplay:C,currentFilePointer:S,pushLine:b,clearLogs:x,logLines:v,nodeStatuses:y,setActiveNode:O,setSelectedNode:j,setBlockValue:ie,setTriggerValue:ae,removeNode:F,removeTrigger:re,clear:N,loadSavedFile:ne,addNode:ue,addNodeToBlock:pe,addTrigger:de,addTriggerToBlock:fe,addVariable:me,updateVariable:he,removeVariable:I,getPluginDefinition:i,getNodeDefinition:r,loadPreset:ge,isRunning:f,setIsRunning:p,swapNodes:oe,cloneNode:se,disableNode:ce,enableNode:le,saveParams:xe,vm:ye,resolvedParams:Se,steps:C,onEditorChanged:be.on}}),En=e(Bt(),1),Dn={class:`add-button-wrapper`},On={class:`flex flex-column w-full`},kn={class:`search w-full`},An={class:`list`},jn={class:`triggers`},Mn={class:`node list-none p-0 m-0`},Nn={class:`flex align-items-center mb-3`},Pn={class:`mr-3`},Fn={class:`flex flex-column`},In={class:`font-bold mb-1`},Ln=[`onClick`],Rn={class:`node-details`},zn={class:`node-name`},Bn={key:0,class:`version`},Vn={key:0,class:`node-description`},Hn={key:1,class:`text-xs text-warning mt-1 block`},Un={class:`footer pt-4`},Wn={class:`flex justify-content-start gap-2`},Gn={for:`advanced-nodes-checkbox`},Kn={class:`flex justify-content-end gap-2`},qn=N(ie({__name:`AddNodeButton`,props:{buttonProps:{type:Object,required:!1,default:()=>({})},path:{type:Array,required:!0},isRunning:{type:Boolean,required:!1,default:!1}},setup(e){let{path:t,isRunning:i}=ne(e),o=Tn(),{pluginDefinitions:s}=ve(jt()),c=w(),u=w(!1),f=w(``),p=w(!1);l(()=>{if(u.value===!0){let e=c.value?.$el;e&&e.focus()}});let h=e=>e.node.advanced&&p.value?!0:e.node.advanced&&!p.value?!1:!e.node.disabled,g=w(),v=()=>{i.value||(u.value=!0)},{getNodeDefinition:x,getPluginDefinition:S}=Tn(),{logger:T}=Ge(),E=()=>{let e=g.value;if(!e){T().error(`cannot find selection`);return}let n=S(e.pluginId);if(!n){T().error(`cannot find definition`);return}let r=x(e.nodeId,e.pluginId);if(!r){T().error(`cannot find node`);return}let i=Number.parseInt(t.value.pop()??`0`);o.addNode({node:r.node,plugin:n,path:t.value,insertAt:i}),u.value=!1},O=(e,t)=>{if(e.type!==`action`)return!1;if(!t)return!0;let n=t.toLowerCase().split(/\s+/),r=e.description?.toLowerCase()||``,i=`${e.name.toLowerCase()} ${r} ${(e.tags?.map(e=>e.toLowerCase())||[]).join(` `)}`;return n.every(e=>i.includes(e)||e.split(``).every(e=>i.includes(e)))},k=D(()=>{let e=f.value.trim();return s.value.map(t=>({...t,nodes:t.nodes.filter(t=>O(t.node,e))})).filter(t=>{if(!e)return!0;let n=t.name.toLowerCase(),r=(t.description||``).toLowerCase();return e.toLowerCase().split(/\s+/).every(e=>n.includes(e)||r.includes(e)||t.nodes.some(()=>!0))})});return(t,o)=>{let s=Ot,l=He,x=at,S=Oe;return d(),A(`div`,Dn,[o[5]||=P(`div`,{class:`vl`},null,-1),F(b(ce),m({disabled:b(i)},e.buttonProps,{class:`add-btn`,size:`small`,pt:{root:{style:{fontSize:`10px`,width:`24px`,height:`24px`}},icon:{style:{fontSize:`10px`}}},onClick:v}),null,16,[`disabled`]),o[6]||=P(`div`,{class:`vl`},null,-1),F(S,{visible:u.value,"onUpdate:visible":o[3]||=e=>u.value=e,closable:!1,modal:``,header:``,style:{width:`60%`,maxWidth:`800px`},"content-style":{padding:`1rem`},breakpoints:{"960px":`75vw`,"641px":`90vw`}},{header:j(()=>[P(`div`,On,[o[4]||=P(`div`,{class:`text-xl`},`Add plugin`,-1),P(`div`,kn,[F(l,{class:`search-field w-full`,"icon-position":`left`},{default:j(()=>[F(s,{class:`pi pi-search`}),F(b(Ye),{ref_key:`$searchInput`,ref:c,modelValue:f.value,"onUpdate:modelValue":o[0]||=e=>f.value=e,placeholder:`Search...`,class:`w-full`},null,8,[`modelValue`])]),_:1})])])]),footer:j(()=>[P(`div`,Un,[P(`div`,Wn,[F(x,{id:`advanced-nodes-checkbox`,modelValue:p.value,"onUpdate:modelValue":o[1]||=e=>p.value=e,binary:!0},null,8,[`modelValue`]),P(`label`,Gn,n(t.$t(`editor.display-advanced-nodes`)),1)]),P(`div`,Kn,[F(b(ce),{type:`button`,label:t.$t(`base.cancel`),severity:`secondary`,onClick:o[2]||=e=>u.value=!1},null,8,[`label`]),F(b(ce),{type:`button`,label:t.$t(`base.add`),onClick:E},null,8,[`label`])])])]),default:j(()=>[P(`div`,An,[(d(!0),A(C,null,a(k.value,e=>(d(),A(`div`,{key:e.id,class:`plugin`},[P(`div`,jn,[P(`ul`,Mn,[P(`li`,Nn,[P(`span`,Pn,[F(Xt,{width:`32px`,icon:e.icon},null,8,[`icon`])]),P(`div`,Fn,[P(`span`,In,n(e.name),1)])]),(d(!0),A(C,null,a(e.nodes,t=>(d(),A(C,{key:t.node.id},[h(t)?(d(),A(`li`,{key:0,class:`flex node-item`,onClick:n=>g.value={nodeId:t.node.id,pluginId:e.id}},[P(`a`,{class:r([`element`,{selected:g.value?.nodeId===t.node.id&&g.value.pluginId===e.id}])},[P(`i`,{class:r([`pi`,t.node.icon||`pi-box`])},null,2),P(`div`,Rn,[P(`span`,zn,[_(n(t.node.name)+` `,1),t.node.version?(d(),A(`span`,Bn,`v`+n(t.node.version),1)):y(``,!0)]),t.node.description?(d(),A(`p`,Vn,n(t.node.description),1)):y(``,!0),typeof t.node.disabled==`string`?(d(),A(`span`,Hn,n(t.node.disabled),1)):y(``,!0)])],2)],8,Ln)):y(``,!0)],64))),128))])])]))),128))])]),_:1},8,[`visible`])])}}}),[[`__scopeId`,`data-v-3e626609`]]),Jn={class:`node-action-wrapper`},Yn={key:0,class:`update-indicator`},Xn={class:`mdi mdi-update`,label:`Save`},Zn={class:`vertical`},Qn={class:`content`},$n={class:`title`},er={key:0,class:`original-title`},tr=[`innerHTML`],nr={class:`actions`},rr=N(ie({__name:`EditorNodeAction`,props:{value:{type:Object,required:!0},index:{type:Number,required:!0},path:{type:Array,required:!0},errors:{type:Object,required:!1,default:()=>({})},isRunning:{type:Boolean,required:!1,default:!1}},setup(e){let t=e,i=w(),{value:a,index:s,isRunning:l,errors:u}=ne(t),f=D(()=>[{label:`Options`,items:[{label:`Edit`,icon:`mdi-pencil`,command:()=>{he()}},{separator:!0},{label:`Move up`,icon:`mdi-arrow-up`,command:()=>{S(s.value,`up`)}},{label:`Move down`,icon:`mdi-arrow-down`,command:()=>{S(s.value,`down`)}},{separator:!0},{label:`Enable`,icon:`mdi-toggle-switch-off-outline`,visible:!!a.value.disabled,command:()=>{E(a.value)}},{label:`Disable`,icon:`mdi-toggle-switch`,visible:!a.value.disabled,command:()=>{T(a.value)}},{label:`Duplicate`,icon:`mdi-content-copy`,command:()=>{C(a.value,s.value+1)}},{separator:!0},{label:`Delete`,icon:`mdi-trash-can`,class:`danger`,command:()=>{x(a.value.uid)}}]}]),p=w(),m=Tn(),{setBlockValue:h,addNode:g,removeNode:x,swapNodes:S,cloneNode:C,disableNode:T,enableNode:E,getNodeDefinition:O,getPluginDefinition:k,setSelectedNode:ee,saveParams:M}=m,{activeNode:N,variables:te,selectedNode:re,resolvedParams:ie,steps:ae,vm:oe}=ve(m),se=async e=>{l.value||(await M(),i.value.toggle(e))},le=D(()=>{let e=u.value[a.value.uid];return e?Object.keys(e).length>0:!1}),ue=e=>{let t=e.target?.textContent;console.log(`content`,t),h(a.value.uid,{...a.value,name:t})},de=w(``),fe=D(()=>{let e=O(a.value.origin.nodeId,a.value.origin.pluginId);if(e)return e.node}),pe=D(()=>k(a.value.origin.pluginId)),me=D(()=>(console.log(`value.value`,a.value.name),console.log(`nodeDefinition.value?.name`,fe.value?.name),a.value.name??fe.value?.name??``));o([()=>ie.value[a.value.uid],ae,oe],async()=>{if(!oe.value)return;let e=ie.value[a.value.uid];if(!e){de.value=``;return}let t=fe.value?.displayString??``,n=await oe.value.run(t,{params:e,steps:ae.value});de.value=En.default.sanitize(n)},{immediate:!0,deep:!0});let I=w(!1),he=()=>{l.value||(I.value=!0,ee(a.value))},ge=D(()=>re.value?.uid===a.value.uid),_e=D(()=>!1);return(t,o)=>{let s=ce,u=Nt,m=Kt,h=ke;return d(),A(`div`,Jn,[P(`div`,{ref_key:`$node`,ref:p,class:r([`node-action`,{active:b(N)?.uid===b(a).uid,error:le.value,disabled:b(a).disabled||b(l),selected:ge.value}]),onClick:he},[fe.value?.updateAvailable?(d(),A(`div`,Yn,[c(P(`i`,Xn,null,512),[[h,{value:`Update available`}]])])):y(``,!0),P(`div`,Zn,[F(Xt,{width:`32px`,icon:pe.value?.icon},null,8,[`icon`]),P(`div`,Qn,[P(`div`,$n,[P(`div`,{spellcheck:`false`,contenteditable:`true`,onClick:o[0]||=je(()=>{},[`stop`]),onInput:ue},n(me.value),33),b(a).name?(d(),A(`div`,er,n(fe.value.name),1)):y(``,!0),fe.value?.deprecated?c((d(),v(s,{key:1,size:`small`,pt:{root:{style:{padding:`0 4px`}}},class:`deprecated-string`},{default:j(()=>o[1]||=[_(n(`Deprecated`))]),_:1})),[[h,fe.value.deprecatedMessage??`This module is deprecated. You should not use it anymore.`]]):y(``,!0)]),de.value?(d(),A(`div`,{key:0,class:`subtitle`,innerHTML:de.value},null,8,tr)):(d(),v(u,{key:1,width:`300px`,height:`28px`}))]),P(`div`,nr,[F(s,{type:`button`,icon:`pi pi-ellipsis-v`,size:`small`,text:``,"aria-haspopup":`true`,class:`small-btn`,"aria-controls":`overlay_menu`,onClick:je(se,[`stop`,`prevent`])}),F(m,{id:`overlay_menu`,ref_key:`menu`,ref:i,model:f.value,popup:!0},{itemicon:j(({item:e})=>[P(`i`,{class:r([`mdi`,[e.icon]])},null,2)]),_:1},8,[`model`]),_e.value?(d(),v(s,{key:0,class:`small-btn`,icon:`pi pi-exclamation-triangle`,size:`small`,text:``})):y(``,!0)])])],2),F(qn,{"button-props":{size:`small`,icon:`pi pi-plus`},class:`add-btn`,path:e.path,"is-running":b(l),onAddNode:b(g)},null,8,[`path`,`is-running`,`onAddNode`])])}}}),[[`__scopeId`,`data-v-bbcce299`]]),ir={class:`nodes-editor`},ar={class:`node`},or=N(ie({__name:`nodes-editor`,props:{nodes:{type:Array,required:!0},extraAddButton:{type:Boolean,default:!0,required:!1},path:{type:Array,required:!0},errors:{type:Object,required:!1,default:()=>({})},startingIndex:{type:Number,required:!1,default:0},isRunning:{type:Boolean,required:!1,default:!1}},setup(e){let{steps:t}=ve(Tn()),{nodes:n,path:r}=ne(e);return(i,o)=>(d(),A(`div`,ir,[(d(!0),A(C,null,a(b(n),(n,i)=>(d(),A(`div`,{key:n.uid,class:`node-wrapper`},[P(`div`,ar,[n.type===`action`?(d(),v(rr,{key:0,path:[...b(r),(e.startingIndex+i).toString()],value:n,index:i,steps:b(t),errors:e.errors,"is-running":e.isRunning},null,8,[`path`,`value`,`index`,`steps`,`errors`,`is-running`])):y(``,!0)])]))),128))]))}}),[[`__scopeId`,`data-v-ba25448b`]]),sr={class:`node-action`},cr={class:`title`},lr={class:`ml-2`},ur={class:`subtitle`},dr=N(ie({__name:`EditorNodeDummy`,props:{title:{type:String,required:!0},subtitle:{type:String,required:!1,default:``}},setup(e){return(t,r)=>(d(),A(`div`,sr,[P(`div`,cr,[r[0]||=P(`span`,{class:`pi pi-play`},null,-1),P(`span`,lr,n(e.title),1)]),P(`div`,ur,n(e.subtitle),1)]))}}),[[`__scopeId`,`data-v-2915c7d4`]]),fr=[`Shift`,`Meta`,`Alt`,`Control`],pr=typeof navigator==`object`?navigator.platform:``,mr=/Mac|iPod|iPhone|iPad/.test(pr),hr=mr?`Meta`:`Control`,gr=pr===`Win32`?[`Control`,`Alt`]:mr?[`Alt`]:[];function _r(e,t){return typeof e.getModifierState==`function`&&(e.getModifierState(t)||gr.includes(t)&&e.getModifierState(`AltGraph`))}function vr(e){return e.trim().split(` `).map(function(e){var t=e.split(/\b\+/),n=t.pop();return[t=t.map(function(e){return e===`$mod`?hr:e}),n]})}function yr(e,t){t===void 0&&(t={});var n=t.timeout??1e3,r=Object.keys(e).map(function(t){return[vr(t),e[t]]}),i=new Map,a=null;return function(e){e instanceof KeyboardEvent&&(r.forEach(function(t){var n=t[0],r=t[1],a=i.get(n)||n;(function(e,t){return!(t[1].toUpperCase()!==e.key.toUpperCase()&&t[1]!==e.code||t[0].find(function(t){return!_r(e,t)})||fr.find(function(n){return!t[0].includes(n)&&t[1]!==n&&_r(e,n)}))})(e,a[0])?a.length>1?i.set(n,a.slice(1)):(i.delete(n),r(e)):_r(e,e.key)||i.delete(n)}),a&&clearTimeout(a),a=setTimeout(i.clear.bind(i),n))}}function br(e,t,n){n===void 0&&(n={});var r=n.event??`keydown`,i=yr(t,n);return e.addEventListener(r,i),function(){e.removeEventListener(r,i)}}var xr=Me.extend({name:`drawer`,style:`
|
|
30
|
+
`,classes:{root:`p-inplace p-component`,display:function(e){return[`p-inplace-display`,{"p-disabled":e.props.disabled}]},content:`p-inplace-content`}}),nn={name:`Inplace`,extends:{name:`BaseInplace`,extends:Ne,props:{active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},displayProps:{type:null,default:null}},style:tn,provide:function(){return{$pcInplace:this,$parentInstance:this}}},inheritAttrs:!1,emits:[`open`,`close`,`update:active`],data:function(){return{d_active:this.active}},watch:{active:function(e){this.d_active=e}},methods:{open:function(e){this.disabled||(this.d_active=!0,this.$emit(`open`,e),this.$emit(`update:active`,!0))},close:function(e){var t=this;this.d_active=!1,this.$emit(`close`,e),this.$emit(`update:active`,!1),setTimeout(function(){t.$refs.display.focus()},0)}}};function rn(e){"@babel/helpers - typeof";return rn=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},rn(e)}function an(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function on(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?an(Object(n),!0).forEach(function(t){sn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):an(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sn(e,t,n){return(t=cn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cn(e){var t=ln(e,`string`);return rn(t)==`symbol`?t:t+``}function ln(e,t){if(rn(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rn(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var un=[`tabindex`,`data-p-disabled`];function dn(e,t,n,r,i,a){return d(),A(`div`,m({class:e.cx(`root`),"aria-live":`polite`},e.ptmi(`root`)),[i.d_active?(d(),A(`div`,m({key:1,class:e.cx(`content`)},e.ptm(`content`)),[s(e.$slots,`content`,{closeCallback:a.close})],16)):(d(),A(`div`,m({key:0,ref:`display`,class:e.cx(`display`),tabindex:e.$attrs.tabindex||`0`,role:`button`,onClick:t[0]||=function(){return a.open&&a.open.apply(a,arguments)},onKeydown:t[1]||=Me(function(){return a.open&&a.open.apply(a,arguments)},[`enter`]),"data-p-disabled":e.disabled},on(on({},e.displayProps),e.ptm(`display`))),[s(e.$slots,`display`)],16,un))],16)}nn.render=dn;var fn=t(((e,t)=>{t.exports=function(e){return typeof e==`object`&&!!e&&Array.isArray(e)===!1}})),pn=t(((e,t)=>{var n=fn();t.exports=function(e,t,s){if(n(s)||(s={default:s}),!o(e))return s.default===void 0?e:s.default;typeof t==`number`&&(t=String(t));let c=Array.isArray(t),l=typeof t==`string`,u=s.separator||`.`,d=s.joinChar||(typeof u==`string`?u:`.`);if(!l&&!c)return e;if(l&&t in e)return a(t,e,s)?e[t]:s.default;let f=c?t:i(t,u,s),p=f.length,m=0;do{let t=f[m];for(typeof t==`number`&&(t=String(t));t&&t.slice(-1)===`\\`;)t=r([t.slice(0,-1),f[++m]||``],d,s);if(t in e){if(!a(t,e,s))return s.default;e=e[t]}else{let n=!1,i=m+1;for(;i<p;)if(t=r([t,f[i++]],d,s),n=t in e){if(!a(t,e,s))return s.default;e=e[t],m=i-1;break}if(!n)return s.default}}while(++m<p&&o(e));return m===p?e:s.default};function r(e,t,n){return typeof n.join==`function`?n.join(e):e[0]+t+e[1]}function i(e,t,n){return typeof n.split==`function`?n.split(e):e.split(t)}function a(e,t,n){return typeof n.isValid==`function`?n.isValid(e,t):!0}function o(e){return n(e)||Array.isArray(e)||typeof e==`function`}})),mn=t(((e,t)=>{t.exports=function(e){return typeof e==`object`?e===null:typeof e!=`function`}})),hn=t(((e,t)=>{var n=fn();function r(e){return n(e)===!0&&Object.prototype.toString.call(e)===`[object Object]`}t.exports=function(e){var t,n;return!(r(e)===!1||(t=e.constructor,typeof t!=`function`)||(n=t.prototype,r(n)===!1)||n.hasOwnProperty(`isPrototypeOf`)===!1)}})),gn=t(((e,t)=>{var{deleteProperty:n}=Reflect,r=mn(),i=hn(),a=e=>typeof e==`object`&&!!e||typeof e==`function`,o=e=>e===`__proto__`||e===`constructor`||e===`prototype`,s=e=>{if(!r(e))throw TypeError(`Object keys must be strings or symbols`);if(o(e))throw Error(`Cannot set unsafe key: "${e}"`)},c=e=>Array.isArray(e)?e.flat().map(String).join(`,`):e,l=(e,t)=>{if(typeof e!=`string`||!t)return e;let n=e+`;`;return t.arrays!==void 0&&(n+=`arrays=${t.arrays};`),t.separator!==void 0&&(n+=`separator=${t.separator};`),t.split!==void 0&&(n+=`split=${t.split};`),t.merge!==void 0&&(n+=`merge=${t.merge};`),t.preservePaths!==void 0&&(n+=`preservePaths=${t.preservePaths};`),n},u=(e,t,n)=>{let r=c(t?l(e,t):e);s(r);let i=m.cache.get(r)||n();return m.cache.set(r,i),i},d=(e,t={})=>{let n=t.separator||`.`,r=n===`/`?!1:t.preservePaths;if(typeof e==`string`&&r!==!1&&/\//.test(e))return[e];let i=[],a=``,o=e=>{let t;e.trim()!==``&&Number.isInteger(t=Number(e))?i.push(t):i.push(e)};for(let t=0;t<e.length;t++){let r=e[t];if(r===`\\`){a+=e[++t];continue}if(r===n){o(a),a=``;continue}a+=r}return a&&o(a),i},f=(e,t)=>t&&typeof t.split==`function`?t.split(e):typeof e==`symbol`?[e]:Array.isArray(e)?e:u(e,t,()=>d(e,t)),p=(e,t,r,a)=>{if(s(t),r===void 0)n(e,t);else if(a&&a.merge){let n=a.merge===`function`?a.merge:Object.assign;n&&i(e[t])&&i(r)?e[t]=n(e[t],r):e[t]=r}else e[t]=r;return e},m=(e,t,n,r)=>{if(!t||!a(e))return e;let i=f(t,r),o=e;for(let e=0;e<i.length;e++){let t=i[e],c=i[e+1];if(s(t),c===void 0){p(o,t,n,r);break}if(typeof c==`number`&&!Array.isArray(o[t])){o=o[t]=[];continue}a(o[t])||(o[t]={}),o=o[t]}return e};m.split=f,m.cache=new Map,m.clear=()=>{m.cache=new Map},t.exports=m})),_n=e(pn(),1),vn=e(gn(),1),yn=new WeakMap;function bn(e,t,n={}){let{mode:r=`replace`,route:a=mt(),router:s=Ke(),transform:c=e=>e}=n;yn.has(s)||yn.set(s,new Map);let l=yn.get(s),u=a.params[e];le(()=>{u=void 0});let d,f=h((n,o)=>(d=o,{get(){return n(),c(u!==void 0&&u!==``?u:Oe(t))},set(n){u!==n&&(u=n===t||n===null?void 0:n,l.set(e,n===t||n===null?void 0:n),o(),i(()=>{if(l.size===0)return;let e=Object.fromEntries(l.entries());l.clear();let{params:t,query:n,hash:i}=a;s[Oe(r)]({params:{...t,...e},query:n,hash:i})}))}}));return o(()=>a.params[e],e=>{u!==e&&(u=e,d())},{flush:`sync`}),f}var xn=qe(en,{wasmLocation:`/assets/emscripten-module-NWak2PoB.wasm`}),Sn=()=>ht(xn),Cn=e=>e.type===`action`,wn=e=>e.type===`event`,Tn=_e(`editor`,()=>{let e=jt(),{presets:t,pluginDefinitions:n}=Se(e),{getNodeDefinition:r,getPluginDefinition:i}=e,{logger:a}=it(),{files:s}=Se(At()),c=bn(`pipelineId`),l=bn(`projectId`),u=w(``),d=w(``),f=w(!1),p=e=>{f.value=e},m=w([]),h=w([]),g=w([]),_=w([]),v=w({}),y=w({}),b=(e,t)=>{v.value[e]||(v.value[e]=[]),v.value[e].push(t)},x=()=>{v.value={}},S=D(()=>s.value.pipelines.find(e=>e.id===c.value)),C=D(()=>{let e={};for(let t of m.value){let n=r(t.origin.nodeId,t.origin.pluginId);if(e[t.uid]||(e[t.uid]={outputs:{}}),n&&n.node.type===`action`){let r=n.node.outputs;for(let[i,a]of Object.entries(r))e[t.uid].outputs[i]=`<span class="step">${t.name??n.node.name} → ${a.label}</span>`}}return e}),E=w(),O=e=>{E.value=e},k=w(),A=D(()=>{if(k.value)return m.value.find(e=>e.uid===k.value)}),j=e=>{console.log(`node`,e),k.value=e?.uid},ee=D(()=>n.value.map(e=>e.nodes.map(t=>({...t,plugin:e.id}))).flat(3)),N=()=>{m.value=[],g.value=[],h.value=[],O(void 0),j(void 0)},te=D(()=>{let e={};for(let t of m.value){let n=P(t);for(let r of n)e[t.uid]||(e[t.uid]=[]),e[t.uid].push(r)}return e}),P=e=>{let t=[];if(e.type===`action`){let n=r(e.origin.nodeId,e.origin.pluginId);if(!n)return t.push({type:`missing`,param:e.origin.nodeId+`:`+e.origin.pluginId}),a().warn(`Missing required node "${e.origin.nodeId}:${e.origin.pluginId}"`),t;let i=Object.entries(n.node?.params??{});for(let[n,r]of i)(_t(r)&&!(n in e.params)||_t(r)&&!e.params[n].value)&&(a().warn(`Missing required param "${n}" in node "${e.uid}"`),t.push({type:`missing`,param:n}))}else e.type;return t},ne=async e=>{N();let t=Lt(e,e=>{for(let t of e.canvas.blocks){let e=r(t.origin.nodeId,t.origin.pluginId);if(e){let n=e.node.params;for(let e of Object.keys(n))e in t.params||(console.log(`params[param]`,n[e]),console.warn(`adding mising param`,e,{editor:`simple`,value:n[e].value}),t.params[e]={editor:`simple`,value:n[e].value})}}});await ot(pt,t),u.value=t.name,d.value=t.description;for(let e of t.variables)I(e);for(let e of t.canvas.blocks)m.value.push(e),P(e);for(let e of t.canvas.triggers)h.value.push(e),P(e)},F=e=>{let t=m.value.findIndex(t=>t.uid===e);t>-1&&(m.value=[...m.value.slice(0,t),...m.value.slice(t+1,void 0)])},re=e=>{let t=h.value.findIndex(t=>t.uid===e);t>-1&&(h.value=[...h.value.slice(0,t),...h.value.slice(t+1,void 0)])},ie=(e,t)=>{let n=m.value.findIndex(t=>t.uid===e);n>-1&&(m.value=[...m.value.slice(0,n),t,...m.value.slice(n+1,void 0)])},ae=(e,t)=>{let n=h.value.findIndex(t=>t.uid===e);n>-1&&(h.value=[...h.value.slice(0,n),t,...h.value.slice(n+1,void 0)])},se=(e,t)=>{let n=e+(t===`up`?-1:1),r=m.value.map((t,r)=>r===e?m.value[n]:r===n?m.value[e]:t);console.log(`input`,m.value),console.log(`output`,r),m.value=r},ce=(e,t)=>{let n=bt(e);n.uid=oe(),me(n,[],t)},le=e=>{m.value=Lt(bt(m.value),t=>{for(let n=0;n<t.length;n+=1)t[n].uid===e.uid&&(t[n].disabled=!0)})},ue=e=>{m.value=Lt(bt(m.value),t=>{for(let n=0;n<t.length;n+=1)t[n].uid===e.uid&&(t[n].disabled=!1)})},de=e=>{let{node:t,path:n,plugin:r,insertAt:i}=e;if(t&&r)if(Cn(t)){console.log(`nodeDefinition`,t);let e={};for(let[n,r]of Object.entries(t.params))e[n]={editor:`simple`,value:r.value};console.log(`createParams`,e),me({uid:oe(),type:t.type,origin:{nodeId:t.id,pluginId:r.id},params:e},n,i)}else a().error(`Unhandled`,t)},fe=e=>{let{trigger:t,path:n,plugin:r,insertAt:i}=e;t&&r&&(wn(t)?pe({uid:oe(),type:t.type,origin:{nodeId:t.id,pluginId:r.id},params:{}},n,i):a().error(`Unhandled`,t))},pe=(e,t,n)=>{let r=t.length===0?h.value:(0,_n.default)(h.value,t),i=[...r.slice(0,n),e,...r.slice(n)];t.length===0?h.value=i:(0,vn.default)(h.value,t,i)},me=(e,t,n)=>{console.log(`node`,e),console.log(`path`,t),console.log(`insertAt`,n);let r=m.value;m.value=[...r.slice(0,n),e,...r.slice(n)]},I=e=>{g.value.push(e)},he=e=>{let t=g.value.findIndex(t=>t.id===e);g.value=[...g.value.slice(0,t),...g.value.slice(t+1,void 0)]},ge=e=>{g.value=Lt(g.value,t=>{console.log(`draft`,t);for(let n=0;n<t.length;n+=1)console.log(`draft[i]`,t[n]),t[n].id===e.id&&(t[n]=bt(e));return t})},_e=async e=>{if(!t.value)throw Error(`No presets`);if(e){let n=t.value[e];n&&await ne(n.data)}},ve=D(()=>{let e={};for(let t of g.value)e[t.id]=`<div class="variable">@${t.name}</div>`;return e}),ye=M();Sn().then(e=>{ye.value=e});let be=Ge();async function xe(){let e={};for(let t of m.value)if(t.type===`action`){let n=await Ue({params:t.params,steps:C.value,context:{},variables:ve.value},e=>e,ye.value);e[t.uid]=n}Ce.value=e,be.trigger()}let Ce=w({});return o([m,C,ve],xe,{deep:!0}),T(()=>{console.group(`onMounted`),xe(),console.groupEnd()}),{nodes:m,triggers:h,variables:g,environnements:_,nodeDefinitions:ee,activeNode:E,selectedNode:A,name:u,pipelineId:c,projectId:l,description:d,errors:te,stepsDisplay:C,currentFilePointer:S,pushLine:b,clearLogs:x,logLines:v,nodeStatuses:y,setActiveNode:O,setSelectedNode:j,setBlockValue:ie,setTriggerValue:ae,removeNode:F,removeTrigger:re,clear:N,loadSavedFile:ne,addNode:de,addNodeToBlock:me,addTrigger:fe,addTriggerToBlock:pe,addVariable:I,updateVariable:ge,removeVariable:he,getPluginDefinition:i,getNodeDefinition:r,loadPreset:_e,isRunning:f,setIsRunning:p,swapNodes:se,cloneNode:ce,disableNode:le,enableNode:ue,saveParams:xe,vm:ye,resolvedParams:Ce,steps:C,onEditorChanged:be.on}}),En=e(Bt(),1),Dn={class:`add-button-wrapper`},On={class:`flex flex-column w-full`},kn={class:`search w-full`},An={class:`list`},jn={class:`triggers`},Mn={class:`node list-none p-0 m-0`},Nn={class:`flex align-items-center mb-3`},Pn={class:`mr-3`},Fn={class:`flex flex-column`},In={class:`font-bold mb-1`},Ln=[`onClick`],Rn={class:`node-details`},zn={class:`node-name`},Bn={key:0,class:`version`},Vn={key:0,class:`node-description`},Hn={key:1,class:`text-xs text-warning mt-1 block`},Un={class:`footer pt-4`},Wn={class:`flex justify-content-start gap-2`},Gn={for:`advanced-nodes-checkbox`},Kn={class:`flex justify-content-end gap-2`},qn=N(ie({__name:`AddNodeButton`,props:{buttonProps:{type:Object,required:!1,default:()=>({})},path:{type:Array,required:!0},isRunning:{type:Boolean,required:!1,default:!1}},setup(e){let{path:t,isRunning:i}=ne(e),o=Tn(),{pluginDefinitions:s}=Se(jt()),c=w(),u=w(!1),f=w(``),p=w(!1);l(()=>{if(u.value===!0){let e=c.value?.$el;e&&e.focus()}});let h=e=>e.node.advanced&&p.value?!0:e.node.advanced&&!p.value?!1:!e.node.disabled,g=w(),v=()=>{i.value||(u.value=!0)},{getNodeDefinition:x,getPluginDefinition:S}=Tn(),{logger:T}=it(),E=()=>{let e=g.value;if(!e){T().error(`cannot find selection`);return}let n=S(e.pluginId);if(!n){T().error(`cannot find definition`);return}let r=x(e.nodeId,e.pluginId);if(!r){T().error(`cannot find node`);return}let i=Number.parseInt(t.value.pop()??`0`);o.addNode({node:r.node,plugin:n,path:t.value,insertAt:i}),u.value=!1},O=(e,t)=>{if(e.type!==`action`)return!1;if(!t)return!0;let n=t.toLowerCase().split(/\s+/),r=e.description?.toLowerCase()||``,i=`${e.name.toLowerCase()} ${r} ${(e.tags?.map(e=>e.toLowerCase())||[]).join(` `)}`;return n.every(e=>i.includes(e)||e.split(``).every(e=>i.includes(e)))},k=D(()=>{let e=f.value.trim();return s.value.map(t=>({...t,nodes:t.nodes.filter(t=>O(t.node,e))})).filter(t=>{if(!e)return!0;let n=t.name.toLowerCase(),r=(t.description||``).toLowerCase();return e.toLowerCase().split(/\s+/).every(e=>n.includes(e)||r.includes(e)||t.nodes.some(()=>!0))})});return(t,o)=>{let s=Tt,l=We,x=rt,S=De;return d(),A(`div`,Dn,[o[5]||=P(`div`,{class:`vl`},null,-1),F(b(ue),m({disabled:b(i)},e.buttonProps,{class:`add-btn`,size:`small`,pt:{root:{style:{fontSize:`10px`,width:`24px`,height:`24px`}},icon:{style:{fontSize:`10px`}}},onClick:v}),null,16,[`disabled`]),o[6]||=P(`div`,{class:`vl`},null,-1),F(S,{visible:u.value,"onUpdate:visible":o[3]||=e=>u.value=e,closable:!1,modal:``,header:``,style:{width:`60%`,maxWidth:`800px`},"content-style":{padding:`1rem`},breakpoints:{"960px":`75vw`,"641px":`90vw`}},{header:j(()=>[P(`div`,On,[o[4]||=P(`div`,{class:`text-xl`},`Add plugin`,-1),P(`div`,kn,[F(l,{class:`search-field w-full`,"icon-position":`left`},{default:j(()=>[F(s,{class:`pi pi-search`}),F(b(Xe),{ref_key:`$searchInput`,ref:c,modelValue:f.value,"onUpdate:modelValue":o[0]||=e=>f.value=e,placeholder:`Search...`,class:`w-full`},null,8,[`modelValue`])]),_:1})])])]),footer:j(()=>[P(`div`,Un,[P(`div`,Wn,[F(x,{id:`advanced-nodes-checkbox`,modelValue:p.value,"onUpdate:modelValue":o[1]||=e=>p.value=e,binary:!0},null,8,[`modelValue`]),P(`label`,Gn,n(t.$t(`editor.display-advanced-nodes`)),1)]),P(`div`,Kn,[F(b(ue),{type:`button`,label:t.$t(`base.cancel`),severity:`secondary`,onClick:o[2]||=e=>u.value=!1},null,8,[`label`]),F(b(ue),{type:`button`,label:t.$t(`base.add`),onClick:E},null,8,[`label`])])])]),default:j(()=>[P(`div`,An,[(d(!0),A(C,null,a(k.value,e=>(d(),A(`div`,{key:e.id,class:`plugin`},[P(`div`,jn,[P(`ul`,Mn,[P(`li`,Nn,[P(`span`,Pn,[F(Xt,{width:`32px`,icon:e.icon},null,8,[`icon`])]),P(`div`,Fn,[P(`span`,In,n(e.name),1)])]),(d(!0),A(C,null,a(e.nodes,t=>(d(),A(C,{key:t.node.id},[h(t)?(d(),A(`li`,{key:0,class:`flex node-item`,onClick:n=>g.value={nodeId:t.node.id,pluginId:e.id}},[P(`a`,{class:r([`element`,{selected:g.value?.nodeId===t.node.id&&g.value.pluginId===e.id}])},[P(`i`,{class:r([`pi`,t.node.icon||`pi-box`])},null,2),P(`div`,Rn,[P(`span`,zn,[_(n(t.node.name)+` `,1),t.node.version?(d(),A(`span`,Bn,`v`+n(t.node.version),1)):y(``,!0)]),t.node.description?(d(),A(`p`,Vn,n(t.node.description),1)):y(``,!0),typeof t.node.disabled==`string`?(d(),A(`span`,Hn,n(t.node.disabled),1)):y(``,!0)])],2)],8,Ln)):y(``,!0)],64))),128))])])]))),128))])]),_:1},8,[`visible`])])}}}),[[`__scopeId`,`data-v-3e626609`]]),Jn={class:`node-action-wrapper`},Yn={key:0,class:`update-indicator`},Xn={class:`mdi mdi-update`,label:`Save`},Zn={class:`vertical`},Qn={class:`content`},$n={class:`title`},er={key:0,class:`original-title`},tr=[`innerHTML`],nr={class:`actions`},rr=N(ie({__name:`EditorNodeAction`,props:{value:{type:Object,required:!0},index:{type:Number,required:!0},path:{type:Array,required:!0},errors:{type:Object,required:!1,default:()=>({})},isRunning:{type:Boolean,required:!1,default:!1}},setup(e){let t=e,i=w(),{value:a,index:s,isRunning:l,errors:u}=ne(t),f=D(()=>[{label:`Options`,items:[{label:`Edit`,icon:`mdi-pencil`,command:()=>{he()}},{separator:!0},{label:`Move up`,icon:`mdi-arrow-up`,command:()=>{S(s.value,`up`)}},{label:`Move down`,icon:`mdi-arrow-down`,command:()=>{S(s.value,`down`)}},{separator:!0},{label:`Enable`,icon:`mdi-toggle-switch-off-outline`,visible:!!a.value.disabled,command:()=>{E(a.value)}},{label:`Disable`,icon:`mdi-toggle-switch`,visible:!a.value.disabled,command:()=>{T(a.value)}},{label:`Duplicate`,icon:`mdi-content-copy`,command:()=>{C(a.value,s.value+1)}},{separator:!0},{label:`Delete`,icon:`mdi-trash-can`,class:`danger`,command:()=>{x(a.value.uid)}}]}]),p=w(),m=Tn(),{setBlockValue:h,addNode:g,removeNode:x,swapNodes:S,cloneNode:C,disableNode:T,enableNode:E,getNodeDefinition:O,getPluginDefinition:k,setSelectedNode:ee,saveParams:M}=m,{activeNode:N,variables:te,selectedNode:re,resolvedParams:ie,steps:ae,vm:oe}=Se(m),se=async e=>{l.value||(await M(),i.value.toggle(e))},ce=D(()=>{let e=u.value[a.value.uid];return e?Object.keys(e).length>0:!1}),le=e=>{let t=e.target?.textContent;console.log(`content`,t),h(a.value.uid,{...a.value,name:t})},de=w(``),fe=D(()=>{let e=O(a.value.origin.nodeId,a.value.origin.pluginId);if(e)return e.node}),pe=D(()=>k(a.value.origin.pluginId)),me=D(()=>(console.log(`value.value`,a.value.name),console.log(`nodeDefinition.value?.name`,fe.value?.name),a.value.name??fe.value?.name??``));o([()=>ie.value[a.value.uid],ae,oe],async()=>{if(!oe.value)return;let e=ie.value[a.value.uid];if(!e){de.value=``;return}let t=fe.value?.displayString??``,n=await oe.value.run(t,{params:e,steps:ae.value});de.value=En.default.sanitize(n)},{immediate:!0,deep:!0});let I=w(!1),he=()=>{l.value||(I.value=!0,ee(a.value))},ge=D(()=>re.value?.uid===a.value.uid),_e=D(()=>!1);return(t,o)=>{let s=ue,u=Nt,m=Kt,h=ke;return d(),A(`div`,Jn,[P(`div`,{ref_key:`$node`,ref:p,class:r([`node-action`,{active:b(N)?.uid===b(a).uid,error:ce.value,disabled:b(a).disabled||b(l),selected:ge.value}]),onClick:he},[fe.value?.updateAvailable?(d(),A(`div`,Yn,[c(P(`i`,Xn,null,512),[[h,{value:`Update available`}]])])):y(``,!0),P(`div`,Zn,[F(Xt,{width:`32px`,icon:pe.value?.icon},null,8,[`icon`]),P(`div`,Qn,[P(`div`,$n,[P(`div`,{spellcheck:`false`,contenteditable:`true`,onClick:o[0]||=Ot(()=>{},[`stop`]),onInput:le},n(me.value),33),b(a).name?(d(),A(`div`,er,n(fe.value.name),1)):y(``,!0),fe.value?.deprecated?c((d(),v(s,{key:1,size:`small`,pt:{root:{style:{padding:`0 4px`}}},class:`deprecated-string`},{default:j(()=>o[1]||=[_(n(`Deprecated`))]),_:1})),[[h,fe.value.deprecatedMessage??`This module is deprecated. You should not use it anymore.`]]):y(``,!0)]),de.value?(d(),A(`div`,{key:0,class:`subtitle`,innerHTML:de.value},null,8,tr)):(d(),v(u,{key:1,width:`300px`,height:`28px`}))]),P(`div`,nr,[F(s,{type:`button`,icon:`pi pi-ellipsis-v`,size:`small`,text:``,"aria-haspopup":`true`,class:`small-btn`,"aria-controls":`overlay_menu`,onClick:Ot(se,[`stop`,`prevent`])}),F(m,{id:`overlay_menu`,ref_key:`menu`,ref:i,model:f.value,popup:!0},{itemicon:j(({item:e})=>[P(`i`,{class:r([`mdi`,[e.icon]])},null,2)]),_:1},8,[`model`]),_e.value?(d(),v(s,{key:0,class:`small-btn`,icon:`pi pi-exclamation-triangle`,size:`small`,text:``})):y(``,!0)])])],2),F(qn,{"button-props":{size:`small`,icon:`pi pi-plus`},class:`add-btn`,path:e.path,"is-running":b(l),onAddNode:b(g)},null,8,[`path`,`is-running`,`onAddNode`])])}}}),[[`__scopeId`,`data-v-bbcce299`]]),ir={class:`nodes-editor`},ar={class:`node`},or=N(ie({__name:`nodes-editor`,props:{nodes:{type:Array,required:!0},extraAddButton:{type:Boolean,default:!0,required:!1},path:{type:Array,required:!0},errors:{type:Object,required:!1,default:()=>({})},startingIndex:{type:Number,required:!1,default:0},isRunning:{type:Boolean,required:!1,default:!1}},setup(e){let{steps:t}=Se(Tn()),{nodes:n,path:r}=ne(e);return(i,o)=>(d(),A(`div`,ir,[(d(!0),A(C,null,a(b(n),(n,i)=>(d(),A(`div`,{key:n.uid,class:`node-wrapper`},[P(`div`,ar,[n.type===`action`?(d(),v(rr,{key:0,path:[...b(r),(e.startingIndex+i).toString()],value:n,index:i,steps:b(t),errors:e.errors,"is-running":e.isRunning},null,8,[`path`,`value`,`index`,`steps`,`errors`,`is-running`])):y(``,!0)])]))),128))]))}}),[[`__scopeId`,`data-v-ba25448b`]]),sr={class:`node-action`},cr={class:`title`},lr={class:`ml-2`},ur={class:`subtitle`},dr=N(ie({__name:`EditorNodeDummy`,props:{title:{type:String,required:!0},subtitle:{type:String,required:!1,default:``}},setup(e){return(t,r)=>(d(),A(`div`,sr,[P(`div`,cr,[r[0]||=P(`span`,{class:`pi pi-play`},null,-1),P(`span`,lr,n(e.title),1)]),P(`div`,ur,n(e.subtitle),1)]))}}),[[`__scopeId`,`data-v-2915c7d4`]]),fr=[`Shift`,`Meta`,`Alt`,`Control`],pr=typeof navigator==`object`?navigator.platform:``,mr=/Mac|iPod|iPhone|iPad/.test(pr),hr=mr?`Meta`:`Control`,gr=pr===`Win32`?[`Control`,`Alt`]:mr?[`Alt`]:[];function _r(e,t){return typeof e.getModifierState==`function`&&(e.getModifierState(t)||gr.includes(t)&&e.getModifierState(`AltGraph`))}function vr(e){return e.trim().split(` `).map(function(e){var t=e.split(/\b\+/),n=t.pop();return[t=t.map(function(e){return e===`$mod`?hr:e}),n]})}function yr(e,t){t===void 0&&(t={});var n=t.timeout??1e3,r=Object.keys(e).map(function(t){return[vr(t),e[t]]}),i=new Map,a=null;return function(e){e instanceof KeyboardEvent&&(r.forEach(function(t){var n=t[0],r=t[1],a=i.get(n)||n;(function(e,t){return!(t[1].toUpperCase()!==e.key.toUpperCase()&&t[1]!==e.code||t[0].find(function(t){return!_r(e,t)})||fr.find(function(n){return!t[0].includes(n)&&t[1]!==n&&_r(e,n)}))})(e,a[0])?a.length>1?i.set(n,a.slice(1)):(i.delete(n),r(e)):_r(e,e.key)||i.delete(n)}),a&&clearTimeout(a),a=setTimeout(i.clear.bind(i),n))}}function br(e,t,n){n===void 0&&(n={});var r=n.event??`keydown`,i=yr(t,n);return e.addEventListener(r,i),function(){e.removeEventListener(r,i)}}var xr=kt.extend({name:`drawer`,style:`
|
|
31
31
|
.p-drawer {
|
|
32
32
|
display: flex;
|
|
33
33
|
flex-direction: column;
|
|
@@ -211,7 +211,7 @@ import{n as e,t}from"./chunk-B3K2TuZy.js";import{At as n,Dt as r,E as i,F as a,G
|
|
|
211
211
|
transform: scale(0.93);
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
`,classes:{mask:function(e){var t=e.instance,n=e.props,r=[`left`,`right`,`top`,`bottom`].find(function(e){return e===n.position});return[`p-drawer-mask`,{"p-overlay-mask p-overlay-mask-enter-active":n.modal,"p-drawer-open":t.containerVisible,"p-drawer-full":t.fullScreen},r?`p-drawer-${r}`:``]},root:function(e){return[`p-drawer p-component`,{"p-drawer-full":e.instance.fullScreen}]},header:`p-drawer-header`,title:`p-drawer-title`,pcCloseButton:`p-drawer-close-button`,content:`p-drawer-content`,footer:`p-drawer-footer`},inlineStyles:{mask:function(e){var t=e.position,n=e.modal;return{position:`fixed`,height:`100%`,width:`100%`,left:0,top:0,display:`flex`,justifyContent:t===`left`?`flex-start`:t===`right`?`flex-end`:`center`,alignItems:t===`top`?`flex-start`:t===`bottom`?`flex-end`:`center`,pointerEvents:n?`auto`:`none`}},root:{pointerEvents:`auto`}}}),Sr={name:`BaseDrawer`,extends:
|
|
214
|
+
`,classes:{mask:function(e){var t=e.instance,n=e.props,r=[`left`,`right`,`top`,`bottom`].find(function(e){return e===n.position});return[`p-drawer-mask`,{"p-overlay-mask p-overlay-mask-enter-active":n.modal,"p-drawer-open":t.containerVisible,"p-drawer-full":t.fullScreen},r?`p-drawer-${r}`:``]},root:function(e){return[`p-drawer p-component`,{"p-drawer-full":e.instance.fullScreen}]},header:`p-drawer-header`,title:`p-drawer-title`,pcCloseButton:`p-drawer-close-button`,content:`p-drawer-content`,footer:`p-drawer-footer`},inlineStyles:{mask:function(e){var t=e.position,n=e.modal;return{position:`fixed`,height:`100%`,width:`100%`,left:0,top:0,display:`flex`,justifyContent:t===`left`?`flex-start`:t===`right`?`flex-end`:`center`,alignItems:t===`top`?`flex-start`:t===`bottom`?`flex-end`:`center`,pointerEvents:n?`auto`:`none`}},root:{pointerEvents:`auto`}}}),Sr={name:`BaseDrawer`,extends:Ne,props:{visible:{type:Boolean,default:!1},position:{type:String,default:`left`},header:{type:null,default:null},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0},dismissable:{type:Boolean,default:!0},showCloseIcon:{type:Boolean,default:!0},closeButtonProps:{type:Object,default:function(){return{severity:`secondary`,text:!0,rounded:!0}}},closeIcon:{type:String,default:void 0},modal:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!1},closeOnEscape:{type:Boolean,default:!0}},style:xr,provide:function(){return{$pcDrawer:this,$parentInstance:this}}};function Cr(e){"@babel/helpers - typeof";return Cr=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Cr(e)}function wr(e,t,n){return(t=Tr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tr(e){var t=Er(e,`string`);return Cr(t)==`symbol`?t:t+``}function Er(e,t){if(Cr(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cr(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Dr={name:`Drawer`,extends:Sr,inheritAttrs:!1,emits:[`update:visible`,`show`,`after-show`,`hide`,`after-hide`,`before-hide`],data:function(){return{containerVisible:this.visible}},container:null,mask:null,content:null,headerContainer:null,footerContainer:null,closeButton:null,outsideClickListener:null,documentKeydownListener:null,watch:{dismissable:function(e){e&&!this.modal?this.bindOutsideClickListener():this.unbindOutsideClickListener()}},updated:function(){this.visible&&(this.containerVisible=this.visible)},beforeUnmount:function(){this.disableDocumentSettings(),this.mask&&this.autoZIndex&&Re.clear(this.mask),this.container=null,this.mask=null},methods:{hide:function(){this.$emit(`update:visible`,!1)},onEnter:function(){this.$emit(`show`),this.focus(),this.bindDocumentKeyDownListener(),this.autoZIndex&&Re.set(`modal`,this.mask,this.baseZIndex||this.$primevue.config.zIndex.modal)},onAfterEnter:function(){this.enableDocumentSettings(),this.$emit(`after-show`)},onBeforeLeave:function(){this.modal&&!this.isUnstyled&&Et(this.mask,`p-overlay-mask-leave-active`),this.$emit(`before-hide`)},onLeave:function(){this.$emit(`hide`)},onAfterLeave:function(){this.autoZIndex&&Re.clear(this.mask),this.unbindDocumentKeyDownListener(),this.containerVisible=!1,this.disableDocumentSettings(),this.$emit(`after-hide`)},onMaskClick:function(e){this.dismissable&&this.modal&&this.mask===e.target&&this.hide()},focus:function(){var e=function(e){return e&&e.querySelector(`[autofocus]`)},t=this.$slots.header&&e(this.headerContainer);t||(t=this.$slots.default&&e(this.container),t||(t=this.$slots.footer&&e(this.footerContainer),t||=this.closeButton)),t&&Ie(t)},enableDocumentSettings:function(){this.dismissable&&!this.modal&&this.bindOutsideClickListener(),this.blockScroll&&nt()},disableDocumentSettings:function(){this.unbindOutsideClickListener(),this.blockScroll&&se()},onKeydown:function(e){e.code===`Escape`&&this.closeOnEscape&&this.hide()},containerRef:function(e){this.container=e},maskRef:function(e){this.mask=e},contentRef:function(e){this.content=e},headerContainerRef:function(e){this.headerContainer=e},footerContainerRef:function(e){this.footerContainer=e},closeButtonRef:function(e){this.closeButton=e?e.$el:void 0},bindDocumentKeyDownListener:function(){this.documentKeydownListener||(this.documentKeydownListener=this.onKeydown,document.addEventListener(`keydown`,this.documentKeydownListener))},unbindDocumentKeyDownListener:function(){this.documentKeydownListener&&=(document.removeEventListener(`keydown`,this.documentKeydownListener),null)},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.isOutsideClicked(t)&&e.hide()},document.addEventListener(`click`,this.outsideClickListener,!0))},unbindOutsideClickListener:function(){this.outsideClickListener&&=(document.removeEventListener(`click`,this.outsideClickListener,!0),null)},isOutsideClicked:function(e){return this.container&&!this.container.contains(e.target)}},computed:{fullScreen:function(){return this.position===`full`},closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0},dataP:function(){return we(wr(wr(wr({"full-screen":this.position===`full`},this.position,this.position),`open`,this.containerVisible),`modal`,this.modal))}},directives:{focustrap:Ce},components:{Button:ue,Portal:et,TimesIcon:Te}},Or=[`data-p`],kr=[`role`,`aria-modal`,`data-p`];function Ar(e,t,i,a,o,l){var f=u(`Button`),h=u(`Portal`),g=p(`focustrap`);return d(),v(h,null,{default:j(function(){return[o.containerVisible?(d(),A(`div`,m({key:0,ref:l.maskRef,onMousedown:t[0]||=function(){return l.onMaskClick&&l.onMaskClick.apply(l,arguments)},class:e.cx(`mask`),style:e.sx(`mask`,!0,{position:e.position,modal:e.modal}),"data-p":l.dataP},e.ptm(`mask`)),[F(Ee,m({name:`p-drawer`,onEnter:l.onEnter,onAfterEnter:l.onAfterEnter,onBeforeLeave:l.onBeforeLeave,onLeave:l.onLeave,onAfterLeave:l.onAfterLeave,appear:``},e.ptm(`transition`)),{default:j(function(){return[e.visible?c((d(),A(`div`,m({key:0,ref:l.containerRef,class:e.cx(`root`),style:e.sx(`root`),role:e.modal?`dialog`:`complementary`,"aria-modal":e.modal?!0:void 0,"data-p":l.dataP},e.ptmi(`root`)),[e.$slots.container?s(e.$slots,`container`,{key:0,closeCallback:l.hide}):(d(),A(C,{key:1},[P(`div`,m({ref:l.headerContainerRef,class:e.cx(`header`)},e.ptm(`header`)),[s(e.$slots,`header`,{class:r(e.cx(`title`))},function(){return[e.header?(d(),A(`div`,m({key:0,class:e.cx(`title`)},e.ptm(`title`)),n(e.header),17)):y(``,!0)]}),e.showCloseIcon?s(e.$slots,`closebutton`,{key:0,closeCallback:l.hide},function(){return[F(f,m({ref:l.closeButtonRef,type:`button`,class:e.cx(`pcCloseButton`),"aria-label":l.closeAriaLabel,unstyled:e.unstyled,onClick:l.hide},e.closeButtonProps,{pt:e.ptm(`pcCloseButton`),"data-pc-group-section":`iconcontainer`}),{icon:j(function(t){return[s(e.$slots,`closeicon`,{},function(){return[(d(),v(ae(e.closeIcon?`span`:`TimesIcon`),m({class:[e.closeIcon,t.class]},e.ptm(`pcCloseButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`unstyled`,`onClick`,`pt`])]}):y(``,!0)],16),P(`div`,m({ref:l.contentRef,class:e.cx(`content`)},e.ptm(`content`)),[s(e.$slots,`default`)],16),e.$slots.footer?(d(),A(`div`,m({key:0,ref:l.footerContainerRef,class:e.cx(`footer`)},e.ptm(`footer`)),[s(e.$slots,`footer`)],16)):y(``,!0)],64))],16,kr)),[[g]]):y(``,!0)]}),_:3},16,[`onEnter`,`onAfterEnter`,`onBeforeLeave`,`onLeave`,`onAfterLeave`])],16,Or)):y(``,!0)]}),_:3})}Dr.render=Ar;var jr=kt.extend({name:`panel`,style:`
|
|
215
215
|
.p-panel {
|
|
216
216
|
display: block;
|
|
217
217
|
border: 1px solid dt('panel.border.color');
|
|
@@ -258,7 +258,7 @@ import{n as e,t}from"./chunk-B3K2TuZy.js";import{At as n,Dt as r,E as i,F as a,G
|
|
|
258
258
|
.p-panel-footer {
|
|
259
259
|
padding: dt('panel.footer.padding');
|
|
260
260
|
}
|
|
261
|
-
`,classes:{root:function(e){return[`p-panel p-component`,{"p-panel-toggleable":e.props.toggleable}]},header:`p-panel-header`,title:`p-panel-title`,headerActions:`p-panel-header-actions`,pcToggleButton:`p-panel-toggle-button`,contentContainer:`p-panel-content-container`,contentWrapper:`p-panel-content-wrapper`,content:`p-panel-content`,footer:`p-panel-footer`}}),Mr={name:`Panel`,extends:{name:`BasePanel`,extends:
|
|
261
|
+
`,classes:{root:function(e){return[`p-panel p-component`,{"p-panel-toggleable":e.props.toggleable}]},header:`p-panel-header`,title:`p-panel-title`,headerActions:`p-panel-header-actions`,pcToggleButton:`p-panel-toggle-button`,contentContainer:`p-panel-content-container`,contentWrapper:`p-panel-content-wrapper`,content:`p-panel-content`,footer:`p-panel-footer`}}),Mr={name:`Panel`,extends:{name:`BasePanel`,extends:Ne,props:{header:String,toggleable:Boolean,collapsed:Boolean,toggleButtonProps:{type:Object,default:function(){return{severity:`secondary`,text:!0,rounded:!0}}}},style:jr,provide:function(){return{$pcPanel:this,$parentInstance:this}}},inheritAttrs:!1,emits:[`update:collapsed`,`toggle`],data:function(){return{d_collapsed:this.collapsed}},watch:{collapsed:function(e){this.d_collapsed=e}},methods:{toggle:function(e){this.d_collapsed=!this.d_collapsed,this.$emit(`update:collapsed`,this.d_collapsed),this.$emit(`toggle`,{originalEvent:e,value:this.d_collapsed})},onKeyDown:function(e){(e.code===`Enter`||e.code===`NumpadEnter`||e.code===`Space`)&&(this.toggle(e),e.preventDefault())}},computed:{buttonAriaLabel:function(){return this.toggleButtonProps&&this.toggleButtonProps.ariaLabel?this.toggleButtonProps.ariaLabel:this.header},dataP:function(){return we({toggleable:this.toggleable})}},components:{PlusIcon:Mt,MinusIcon:vt,Button:ue},directives:{ripple:ze}},Nr=[`data-p`],Pr=[`data-p`],Fr=[`id`],Ir=[`id`,`aria-labelledby`];function Lr(e,t,i,a,o,l){var f=u(`Button`);return d(),A(`div`,m({class:e.cx(`root`),"data-p":l.dataP},e.ptmi(`root`)),[P(`div`,m({class:e.cx(`header`),"data-p":l.dataP},e.ptm(`header`)),[s(e.$slots,`header`,{id:e.$id+`_header`,class:r(e.cx(`title`)),collapsed:o.d_collapsed},function(){return[e.header?(d(),A(`span`,m({key:0,id:e.$id+`_header`,class:e.cx(`title`)},e.ptm(`title`)),n(e.header),17,Fr)):y(``,!0)]}),P(`div`,m({class:e.cx(`headerActions`)},e.ptm(`headerActions`)),[s(e.$slots,`icons`),e.toggleable?s(e.$slots,`togglebutton`,{key:0,collapsed:o.d_collapsed,toggleCallback:function(e){return l.toggle(e)},keydownCallback:function(e){return l.onKeyDown(e)}},function(){return[F(f,m({id:e.$id+`_header`,class:e.cx(`pcToggleButton`),"aria-label":l.buttonAriaLabel,"aria-controls":e.$id+`_content`,"aria-expanded":!o.d_collapsed,unstyled:e.unstyled,onClick:t[0]||=function(e){return l.toggle(e)},onKeydown:t[1]||=function(e){return l.onKeyDown(e)}},e.toggleButtonProps,{pt:e.ptm(`pcToggleButton`)}),{icon:j(function(t){return[s(e.$slots,e.$slots.toggleicon?`toggleicon`:`togglericon`,{collapsed:o.d_collapsed},function(){return[(d(),v(ae(o.d_collapsed?`PlusIcon`:`MinusIcon`),m({class:t.class},e.ptm(`pcToggleButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`id`,`class`,`aria-label`,`aria-controls`,`aria-expanded`,`unstyled`,`pt`])]}):y(``,!0)],16)],16,Pr),F(Ee,m({name:`p-collapsible`},e.ptm(`transition`)),{default:j(function(){return[c(P(`div`,m({id:e.$id+`_content`,class:e.cx(`contentContainer`),role:`region`,"aria-labelledby":e.$id+`_header`},e.ptm(`contentContainer`)),[P(`div`,m({class:e.cx(`contentWrapper`)},e.ptm(`contentWrapper`)),[P(`div`,m({class:e.cx(`content`)},e.ptm(`content`)),[s(e.$slots,`default`)],16),e.$slots.footer?(d(),A(`div`,m({key:0,class:e.cx(`footer`)},e.ptm(`footer`)),[s(e.$slots,`footer`)],16)):y(``,!0)],16)],16,Ir),[[xe,!o.d_collapsed]])]}),_:3},16)],16,Nr)}Mr.render=Lr;var Rr=kt.extend({name:`confirmpopup`,style:`
|
|
262
262
|
.p-confirmpopup {
|
|
263
263
|
position: absolute;
|
|
264
264
|
margin-top: dt('confirmpopup.gutter');
|
|
@@ -348,7 +348,7 @@ import{n as e,t}from"./chunk-B3K2TuZy.js";import{At as n,Dt as r,E as i,F as a,G
|
|
|
348
348
|
border-bottom-color: transparent;
|
|
349
349
|
border-top-color: dt('confirmpopup.border.color');
|
|
350
350
|
}
|
|
351
|
-
`,classes:{root:`p-confirmpopup p-component`,content:`p-confirmpopup-content`,icon:`p-confirmpopup-icon`,message:`p-confirmpopup-message`,footer:`p-confirmpopup-footer`,pcRejectButton:`p-confirmpopup-reject-button`,pcAcceptButton:`p-confirmpopup-accept-button`}}),zr={name:`ConfirmPopup`,extends:{name:`BaseConfirmPopup`,extends:
|
|
351
|
+
`,classes:{root:`p-confirmpopup p-component`,content:`p-confirmpopup-content`,icon:`p-confirmpopup-icon`,message:`p-confirmpopup-message`,footer:`p-confirmpopup-footer`,pcRejectButton:`p-confirmpopup-reject-button`,pcAcceptButton:`p-confirmpopup-accept-button`}}),zr={name:`ConfirmPopup`,extends:{name:`BaseConfirmPopup`,extends:Ne,props:{group:String},style:Rr,provide:function(){return{$pcConfirmPopup:this,$parentInstance:this}}},inheritAttrs:!1,data:function(){return{visible:!1,confirmation:null,autoFocusAccept:null,autoFocusReject:null,target:null}},target:null,outsideClickListener:null,scrollHandler:null,resizeListener:null,container:null,confirmListener:null,closeListener:null,mounted:function(){var e=this;this.confirmListener=function(t){t&&t.group===e.group&&(e.confirmation=t,e.target=t.target,e.confirmation.onShow&&e.confirmation.onShow(),e.visible=!0)},this.closeListener=function(){e.visible=!1,e.confirmation=null},It.on(`confirm`,this.confirmListener),It.on(`close`,this.closeListener)},beforeUnmount:function(){It.off(`confirm`,this.confirmListener),It.off(`close`,this.closeListener),this.unbindOutsideClickListener(),this.scrollHandler&&=(this.scrollHandler.destroy(),null),this.unbindResizeListener(),this.container&&=(Re.clear(this.container),null),this.target=null,this.confirmation=null},methods:{accept:function(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject:function(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1},onHide:function(){this.confirmation.onHide&&this.confirmation.onHide(),this.visible=!1},onAcceptKeydown:function(e){(e.code===`Space`||e.code===`Enter`||e.code===`NumpadEnter`)&&(this.accept(),Ie(this.target),e.preventDefault())},onRejectKeydown:function(e){(e.code===`Space`||e.code===`Enter`||e.code===`NumpadEnter`)&&(this.reject(),Ie(this.target),e.preventDefault())},onEnter:function(e){this.autoFocusAccept=this.confirmation.defaultFocus===void 0||this.confirmation.defaultFocus===`accept`,this.autoFocusReject=this.confirmation.defaultFocus===`reject`,this.target=this.target||document.activeElement,this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),Re.set(`overlay`,e,this.$primevue.config.zIndex.overlay)},onAfterEnter:function(){this.focus()},onLeave:function(){this.autoFocusAccept=null,this.autoFocusReject=null,Ie(this.target),this.target=null,this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener()},onAfterLeave:function(e){Re.clear(e)},alignOverlay:function(){He(this.container,this.target,!1);var e=Je(this.container),t=Je(this.target),n=0;e.left<t.left&&(n=t.left-e.left),this.container.style.setProperty(ge(`confirmpopup.arrow.left`).name,`${n}px`),e.top<t.top&&(this.container.setAttribute(`data-p-confirmpopup-flipped`,`true`),!this.isUnstyled&&Et(this.container,`p-confirmpopup-flipped`))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.visible&&e.container&&!e.container.contains(t.target)&&!e.isTargetClicked(t)?(e.confirmation.onHide&&e.confirmation.onHide(),e.visible=!1):e.alignOverlay()},document.addEventListener(`click`,this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&=(document.removeEventListener(`click`,this.outsideClickListener),null)},bindScrollListener:function(){var e=this;this.scrollHandler||=new he(this.target,function(){e.visible&&=!1}),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.visible&&!Pe()&&(e.visible=!1)},window.addEventListener(`resize`,this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&=(window.removeEventListener(`resize`,this.resizeListener),null)},focus:function(){var e=this.container.querySelector(`[autofocus]`);e&&e.focus({preventScroll:!0})},isTargetClicked:function(e){return this.target&&(this.target===e.target||this.target.contains(e.target))},containerRef:function(e){this.container=e},onOverlayClick:function(e){Ze.emit(`overlay-click`,{originalEvent:e,target:this.target})},onOverlayKeydown:function(e){e.code===`Escape`&&(It.emit(`close`,this.closeListener),Ie(this.target))}},computed:{message:function(){return this.confirmation?this.confirmation.message:null},acceptLabel:function(){if(this.confirmation){var e=this.confirmation;return e.acceptLabel||e.acceptProps?.label||this.$primevue.config.locale.accept}return this.$primevue.config.locale.accept},rejectLabel:function(){if(this.confirmation){var e=this.confirmation;return e.rejectLabel||e.rejectProps?.label||this.$primevue.config.locale.reject}return this.$primevue.config.locale.reject},acceptIcon:function(){var e;return this.confirmation?this.confirmation.acceptIcon:(e=this.confirmation)!=null&&e.acceptProps?this.confirmation.acceptProps.icon:null},rejectIcon:function(){var e;return this.confirmation?this.confirmation.rejectIcon:(e=this.confirmation)!=null&&e.rejectProps?this.confirmation.rejectProps.icon:null}},components:{Button:ue,Portal:et},directives:{focustrap:Ce}},Br=[`aria-modal`];function Vr(e,t,i,a,o,l){var f=u(`Button`),h=u(`Portal`),g=p(`focustrap`);return d(),v(h,null,{default:j(function(){return[F(Ee,m({name:`p-anchored-overlay`,onEnter:l.onEnter,onAfterEnter:l.onAfterEnter,onLeave:l.onLeave,onAfterLeave:l.onAfterLeave},e.ptm(`transition`)),{default:j(function(){return[o.visible?c((d(),A(`div`,m({key:0,ref:l.containerRef,role:`alertdialog`,class:e.cx(`root`),"aria-modal":o.visible,onClick:t[2]||=function(){return l.onOverlayClick&&l.onOverlayClick.apply(l,arguments)},onKeydown:t[3]||=function(){return l.onOverlayKeydown&&l.onOverlayKeydown.apply(l,arguments)}},e.ptmi(`root`)),[e.$slots.container?s(e.$slots,`container`,{key:0,message:o.confirmation,acceptCallback:l.accept,rejectCallback:l.reject}):(d(),A(C,{key:1},[e.$slots.message?(d(),v(ae(e.$slots.message),{key:1,message:o.confirmation},null,8,[`message`])):(d(),A(`div`,m({key:0,class:e.cx(`content`)},e.ptm(`content`)),[s(e.$slots,`icon`,{},function(){return[e.$slots.icon?(d(),v(ae(e.$slots.icon),{key:0,class:r(e.cx(`icon`))},null,8,[`class`])):o.confirmation.icon?(d(),A(`span`,m({key:1,class:[o.confirmation.icon,e.cx(`icon`)]},e.ptm(`icon`)),null,16)):y(``,!0)]}),P(`span`,m({class:e.cx(`message`)},e.ptm(`message`)),n(o.confirmation.message),17)],16)),P(`div`,m({class:e.cx(`footer`)},e.ptm(`footer`)),[F(f,m({class:[e.cx(`pcRejectButton`),o.confirmation.rejectClass],autofocus:o.autoFocusReject,unstyled:e.unstyled,size:o.confirmation.rejectProps?.size||`small`,text:o.confirmation.rejectProps?.text||!1,onClick:t[0]||=function(e){return l.reject()},onKeydown:l.onRejectKeydown},o.confirmation.rejectProps,{label:l.rejectLabel,pt:e.ptm(`pcRejectButton`)}),S({_:2},[l.rejectIcon||e.$slots.rejecticon?{name:`icon`,fn:j(function(t){return[s(e.$slots,`rejecticon`,{},function(){return[P(`span`,m({class:[l.rejectIcon,t.class]},e.ptm(`pcRejectButton`).icon,{"data-pc-section":`rejectbuttonicon`}),null,16)]})]}),key:`0`}:void 0]),1040,[`class`,`autofocus`,`unstyled`,`size`,`text`,`onKeydown`,`label`,`pt`]),F(f,m({class:[e.cx(`pcAcceptButton`),o.confirmation.acceptClass],autofocus:o.autoFocusAccept,unstyled:e.unstyled,size:o.confirmation.acceptProps?.size||`small`,onClick:t[1]||=function(e){return l.accept()},onKeydown:l.onAcceptKeydown},o.confirmation.acceptProps,{label:l.acceptLabel,pt:e.ptm(`pcAcceptButton`)}),S({_:2},[l.acceptIcon||e.$slots.accepticon?{name:`icon`,fn:j(function(t){return[s(e.$slots,`accepticon`,{},function(){return[P(`span`,m({class:[l.acceptIcon,t.class]},e.ptm(`pcAcceptButton`).icon,{"data-pc-section":`acceptbuttonicon`}),null,16)]})]}),key:`0`}:void 0]),1040,[`class`,`autofocus`,`unstyled`,`size`,`onKeydown`,`label`,`pt`])],16)],64))],16,Br)),[[g]]):y(``,!0)]}),_:3},16,[`onEnter`,`onAfterEnter`,`onLeave`,`onAfterLeave`])]}),_:3})}zr.render=Vr;var Hr=kt.extend({name:`chip`,style:`
|
|
352
352
|
.p-chip {
|
|
353
353
|
display: inline-flex;
|
|
354
354
|
align-items: center;
|
|
@@ -401,7 +401,7 @@ import{n as e,t}from"./chunk-B3K2TuZy.js";import{At as n,Dt as r,E as i,F as a,G
|
|
|
401
401
|
outline: dt('chip.remove.icon.focus.ring.width') dt('chip.remove.icon.focus.ring.style') dt('chip.remove.icon.focus.ring.color');
|
|
402
402
|
outline-offset: dt('chip.remove.icon.focus.ring.offset');
|
|
403
403
|
}
|
|
404
|
-
`,classes:{root:`p-chip p-component`,image:`p-chip-image`,icon:`p-chip-icon`,label:`p-chip-label`,removeIcon:`p-chip-remove-icon`}}),Ur={name:`Chip`,extends:{name:`BaseChip`,extends:
|
|
404
|
+
`,classes:{root:`p-chip p-component`,image:`p-chip-image`,icon:`p-chip-icon`,label:`p-chip-label`,removeIcon:`p-chip-remove-icon`}}),Ur={name:`Chip`,extends:{name:`BaseChip`,extends:Ne,props:{label:{type:[String,Number],default:null},icon:{type:String,default:null},image:{type:String,default:null},removable:{type:Boolean,default:!1},removeIcon:{type:String,default:void 0}},style:Hr,provide:function(){return{$pcChip:this,$parentInstance:this}}},inheritAttrs:!1,emits:[`remove`],data:function(){return{visible:!0}},methods:{onKeydown:function(e){(e.key===`Enter`||e.key===`Backspace`)&&this.close(e)},close:function(e){this.visible=!1,this.$emit(`remove`,e)}},computed:{dataP:function(){return we({removable:this.removable})}},components:{TimesCircleIcon:zt}},Wr=[`aria-label`,`data-p`],Gr=[`src`];function Kr(e,t,r,i,a,o){return a.visible?(d(),A(`div`,m({key:0,class:e.cx(`root`),"aria-label":e.label},e.ptmi(`root`),{"data-p":o.dataP}),[s(e.$slots,`default`,{},function(){return[e.image?(d(),A(`img`,m({key:0,src:e.image},e.ptm(`image`),{class:e.cx(`image`)}),null,16,Gr)):e.$slots.icon?(d(),v(ae(e.$slots.icon),m({key:1,class:e.cx(`icon`)},e.ptm(`icon`)),null,16,[`class`])):e.icon?(d(),A(`span`,m({key:2,class:[e.cx(`icon`),e.icon]},e.ptm(`icon`)),null,16)):y(``,!0),e.label===null?y(``,!0):(d(),A(`div`,m({key:3,class:e.cx(`label`)},e.ptm(`label`)),n(e.label),17))]}),e.removable?s(e.$slots,`removeicon`,{key:0,removeCallback:o.close,keydownCallback:o.onKeydown},function(){return[(d(),v(ae(e.removeIcon?`span`:`TimesCircleIcon`),m({class:[e.cx(`removeIcon`),e.removeIcon],onClick:o.close,onKeydown:o.onKeydown},e.ptm(`removeIcon`)),null,16,[`class`,`onClick`,`onKeydown`]))]}):y(``,!0)],16,Wr)):y(``,!0)}Ur.render=Kr;var L=class e{lineAt(e){if(e<0||e>this.length)throw RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=ni(this,e,t);let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),Jr.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=ni(this,e,t);let n=[];return this.decompose(e,t,n,0),Jr.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new Qr(this),i=new Qr(e);for(let e=t,a=t;;){if(r.next(e),i.next(e),e=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(a+=r.value.length,r.done||a>=n)return!0}}iter(e=1){return new Qr(this,e)}iterRange(e,t=this.length){return new $r(this,e,t)}iterLines(e,t){let n;if(e==null)n=this.iter();else{t??=this.lines+1;let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new ei(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(t){if(t.length==0)throw RangeError(`A document must have at least one line`);return t.length==1&&!t[0]?e.empty:t.length<=32?new qr(t):Jr.from(qr.split(t,[]))}},qr=class e extends L{constructor(e,t=Yr(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let i=0;;i++){let a=this.text[i],o=r+a.length;if((t?n:o)>=e)return new ti(r,o,n,a);r=o+1,n++}}decompose(t,n,r,i){let a=t<=0&&n>=this.length?this:new e(Zr(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(i&1){let t=r.pop(),n=Xr(a.text,t.text.slice(),0,a.length);if(n.length<=32)r.push(new e(n,t.length+a.length));else{let t=n.length>>1;r.push(new e(n.slice(0,t)),new e(n.slice(t)))}}else r.push(a)}replace(t,n,r){if(!(r instanceof e))return super.replace(t,n,r);[t,n]=ni(this,t,n);let i=Xr(this.text,Xr(r.text,Zr(this.text,0,t)),n),a=this.length+r.length-(n-t);return i.length<=32?new e(i,a):Jr.from(e.split(i,[]),a)}sliceString(e,t=this.length,n=`
|
|
405
405
|
`){[e,t]=ni(this,e,t);let r=``;for(let i=0,a=0;i<=t&&a<this.text.length;a++){let o=this.text[a],s=i+o.length;i>e&&a&&(r+=n),e<s&&t>i&&(r+=o.slice(Math.max(0,e-i),t-i)),i=s+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(t,n){let r=[],i=-1;for(let a of t)r.push(a),i+=a.length+1,r.length==32&&(n.push(new e(r,i)),r=[],i=-1);return i>-1&&n.push(new e(r,i)),n}},Jr=class e extends L{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let t of e)this.lines+=t.lines}lineInner(e,t,n,r){for(let i=0;;i++){let a=this.children[i],o=r+a.length,s=n+a.lines-1;if((t?s:o)>=e)return a.lineInner(e,t,n,r);r=o+1,n=s+1}}decompose(e,t,n,r){for(let i=0,a=0;a<=t&&i<this.children.length;i++){let o=this.children[i],s=a+o.length;if(e<=s&&t>=a){let i=r&(a<=e|(s>=t?2:0));a>=e&&s<=t&&!i?n.push(o):o.decompose(e-a,t-a,n,i)}a=s+1}}replace(t,n,r){if([t,n]=ni(this,t,n),r.lines<this.lines)for(let i=0,a=0;i<this.children.length;i++){let o=this.children[i],s=a+o.length;if(t>=a&&n<=s){let c=o.replace(t-a,n-a,r),l=this.lines-o.lines+c.lines;if(c.lines<l>>4&&c.lines>l>>6){let a=this.children.slice();return a[i]=c,new e(a,this.length-(n-t)+r.length)}return super.replace(a,s,c)}a=s+1}return super.replace(t,n,r)}sliceString(e,t=this.length,n=`
|
|
406
406
|
`){[e,t]=ni(this,e,t);let r=``;for(let i=0,a=0;i<this.children.length&&a<=t;i++){let o=this.children[i],s=a+o.length;a>e&&i&&(r+=n),e<s&&t>a&&(r+=o.sliceString(e-a,t-a,n)),a=s+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(t,n){if(!(t instanceof e))return 0;let r=0,[i,a,o,s]=n>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;i+=n,a+=n){if(i==o||a==s)return r;let e=this.children[i],c=t.children[a];if(e!=c)return r+e.scanIdentical(c,n);r+=e.length+1}}static from(t,n=t.reduce((e,t)=>e+t.length+1,-1)){let r=0;for(let e of t)r+=e.lines;if(r<32){let e=[];for(let n of t)n.flatten(e);return new qr(e,n)}let i=Math.max(32,r>>5),a=i<<1,o=i>>1,s=[],c=0,l=-1,u=[];function d(t){let n;if(t.lines>a&&t instanceof e)for(let e of t.children)d(e);else t.lines>o&&(c>o||!c)?(f(),s.push(t)):t instanceof qr&&c&&(n=u[u.length-1])instanceof qr&&t.lines+n.lines<=32?(c+=t.lines,l+=t.length+1,u[u.length-1]=new qr(n.text.concat(t.text),n.length+1+t.length)):(c+t.lines>i&&f(),c+=t.lines,l+=t.length+1,u.push(t))}function f(){c!=0&&(s.push(u.length==1?u[0]:e.from(u,l)),l=-1,c=u.length=0)}for(let e of t)d(e);return f(),s.length==1?s[0]:new e(s,n)}};L.empty=new qr([``],0);function Yr(e){let t=-1;for(let n of e)t+=n.length+1;return t}function Xr(e,t,n=0,r=1e9){for(let i=0,a=0,o=!0;a<e.length&&i<=r;a++){let s=e[a],c=i+s.length;c>=n&&(c>r&&(s=s.slice(0,r-i)),i<n&&(s=s.slice(n-i)),o?(t[t.length-1]+=s,o=!1):t.push(s)),i=c+1}return t}function Zr(e,t,n){return Xr(e,[``],t,n)}var Qr=class{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value=``,this.nodes=[e],this.offsets=[t>0?1:(e instanceof qr?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],i=this.offsets[n],a=i>>1,o=r instanceof qr?r.text.length:r.children.length;if(a==(t>0?o:0)){if(n==0)return this.done=!0,this.value=``,this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((i&1)==(t>0?0:1)){if(this.offsets[n]+=t,e==0)return this.lineBreak=!0,this.value=`
|
|
407
407
|
`,this;e--}else if(r instanceof qr){let i=r.text[a+(t<0?-1:0)];if(this.offsets[n]+=t,i.length>Math.max(0,e))return this.value=e==0?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else{let i=r.children[a+(t<0?-1:0)];e>i.length?(e-=i.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(i),this.offsets.push(t>0?1:(i instanceof qr?i.text.length:i.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}},$r=class{constructor(e,t,n){this.value=``,this.done=!1,this.cursor=new Qr(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value=``,this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=``}},ei=class{constructor(e){this.inner=e,this.afterBreak=!0,this.value=``,this.done=!1}next(e=0){let{done:t,lineBreak:n,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value=``,this.afterBreak=!1):t?(this.done=!0,this.value=``):n?this.afterBreak?this.value=``:(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}};typeof Symbol<`u`&&(L.prototype[Symbol.iterator]=function(){return this.iter()},Qr.prototype[Symbol.iterator]=$r.prototype[Symbol.iterator]=ei.prototype[Symbol.iterator]=function(){return this});var ti=class{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}};function ni(e,t,n){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,n))]}var ri=`lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o`.split(`,`).map(e=>e?parseInt(e,36):1);for(let e=1;e<ri.length;e++)ri[e]+=ri[e-1];function ii(e){for(let t=1;t<ri.length;t+=2)if(ri[t]>e)return ri[t-1]<=e;return!1}function ai(e){return e>=127462&&e<=127487}var oi=8205;function si(e,t,n=!0,r=!0){return(n?ci:li)(e,t,r)}function ci(e,t,n){if(t==e.length)return t;t&&ui(e.charCodeAt(t))&&di(e.charCodeAt(t-1))&&t--;let r=fi(e,t);for(t+=mi(r);t<e.length;){let i=fi(e,t);if(r==oi||i==oi||n&&ii(i))t+=mi(i),r=i;else if(ai(i)){let n=0,r=t-2;for(;r>=0&&ai(fi(e,r));)n++,r-=2;if(n%2==0)break;t+=2}else break}return t}function li(e,t,n){for(;t>0;){let r=ci(e,t-2,n);if(r<t)return r;t--}return 0}function ui(e){return e>=56320&&e<57344}function di(e){return e>=55296&&e<56320}function fi(e,t){let n=e.charCodeAt(t);if(!di(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return ui(r)?(n-55296<<10)+(r-56320)+65536:n}function pi(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function mi(e){return e<65536?1:2}var hi=/\r\n?|\n/,gi=(function(e){return e[e.Simple=0]=`Simple`,e[e.TrackDel=1]=`TrackDel`,e[e.TrackBefore=2]=`TrackBefore`,e[e.TrackAfter=3]=`TrackAfter`,e})(gi||={}),_i=class e{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,r=0;t<this.sections.length;){let i=this.sections[t++],a=this.sections[t++];a<0?(e(n,r,i),r+=i):r+=a,n+=i}}iterChangedRanges(e,t=!1){xi(this,e,t)}get invertedDesc(){let t=[];for(let e=0;e<this.sections.length;){let n=this.sections[e++],r=this.sections[e++];r<0?t.push(n,r):t.push(r,n)}return new e(t)}composeDesc(e){return this.empty?e:e.empty?this:Ci(this,e)}mapDesc(e,t=!1){return e.empty?this:Si(this,e,t)}mapPos(e,t=-1,n=gi.Simple){let r=0,i=0;for(let a=0;a<this.sections.length;){let o=this.sections[a++],s=this.sections[a++],c=r+o;if(s<0){if(c>e)return i+(e-r);i+=o}else{if(n!=gi.Simple&&c>=e&&(n==gi.TrackDel&&r<e&&c>e||n==gi.TrackBefore&&r<e||n==gi.TrackAfter&&c>e))return null;if(c>e||c==e&&t<0&&!o)return e==r||t<0?i:i+s;i+=s}r=c}if(e>r)throw RangeError(`Position ${e} is out of range for changeset of length ${r}`);return i}touchesRange(e,t=e){for(let n=0,r=0;n<this.sections.length&&r<=t;){let i=this.sections[n++],a=this.sections[n++],o=r+i;if(a>=0&&r<=t&&o>=e)return r<e&&o>t?`cover`:!0;r=o}return!1}toString(){let e=``;for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];e+=(e?` `:``)+n+(r>=0?`:`+r:``)}return e}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(e=>typeof e!=`number`))throw RangeError(`Invalid JSON representation of ChangeDesc`);return new e(t)}static create(t){return new e(t)}},vi=class e extends _i{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw RangeError(`Applying change set to a document with the wrong length`);return xi(this,(t,n,r,i,a)=>e=e.replace(r,r+(n-t),a),!1),e}mapDesc(e,t=!1){return Si(this,e,t,!0)}invert(t){let n=this.sections.slice(),r=[];for(let e=0,i=0;e<n.length;e+=2){let a=n[e],o=n[e+1];if(o>=0){n[e]=o,n[e+1]=a;let s=e>>1;for(;r.length<s;)r.push(L.empty);r.push(a?t.slice(i,i+a):L.empty)}i+=a}return new e(n,r)}compose(e){return this.empty?e:e.empty?this:Ci(this,e,!0)}map(e,t=!1){return e.empty?this:Si(this,e,t,!0)}iterChanges(e,t=!1){xi(this,e,t)}get desc(){return _i.create(this.sections)}filter(t){let n=[],r=[],i=[],a=new wi(this);done:for(let e=0,o=0;;){let s=e==t.length?1e9:t[e++];for(;o<s||o==s&&a.len==0;){if(a.done)break done;let e=Math.min(a.len,s-o);yi(i,e,-1);let t=a.ins==-1?-1:a.off==0?a.ins:0;yi(n,e,t),t>0&&bi(r,n,a.text),a.forward(e),o+=e}let c=t[e++];for(;o<c;){if(a.done)break done;let e=Math.min(a.len,c-o);yi(n,e,-1),yi(i,e,a.ins==-1?-1:a.off==0?a.ins:0),a.forward(e),o+=e}}return{changes:new e(n,r),filtered:_i.create(i)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t],r=this.sections[t+1];r<0?e.push(n):r==0?e.push([n]):e.push([n].concat(this.inserted[t>>1].toJSON()))}return e}static of(t,n,r){let i=[],a=[],o=0,s=null;function c(t=!1){if(!t&&!i.length)return;o<n&&yi(i,n-o,-1);let r=new e(i,a);s=s?s.compose(r.map(s)):r,i=[],a=[],o=0}function l(t){if(Array.isArray(t))for(let e of t)l(e);else if(t instanceof e){if(t.length!=n)throw RangeError(`Mismatched change set length (got ${t.length}, expected ${n})`);c(),s=s?s.compose(t.map(s)):t}else{let{from:e,to:s=e,insert:l}=t;if(e>s||e<0||s>n)throw RangeError(`Invalid change range ${e} to ${s} (in doc of length ${n})`);let u=l?typeof l==`string`?L.of(l.split(r||hi)):l:L.empty,d=u.length;if(e==s&&d==0)return;e<o&&c(),e>o&&yi(i,e-o,-1),yi(i,s-e,d),bi(a,i,u),o=s}}return l(t),c(!s),s}static empty(t){return new e(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw RangeError(`Invalid JSON representation of ChangeSet`);let n=[],r=[];for(let e=0;e<t.length;e++){let i=t[e];if(typeof i==`number`)n.push(i,-1);else if(!Array.isArray(i)||typeof i[0]!=`number`||i.some((e,t)=>t&&typeof e!=`string`))throw RangeError(`Invalid JSON representation of ChangeSet`);else if(i.length==1)n.push(i[0],0);else{for(;r.length<e;)r.push(L.empty);r[e]=L.of(i.slice(1)),n.push(i[0],r[e].length)}}return new e(n,r)}static createSet(t,n){return new e(t,n)}};function yi(e,t,n,r=!1){if(t==0&&n<=0)return;let i=e.length-2;i>=0&&n<=0&&n==e[i+1]?e[i]+=t:t==0&&e[i]==0?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function bi(e,t,n){if(n.length==0)return;let r=t.length-2>>1;if(r<e.length)e[e.length-1]=e[e.length-1].append(n);else{for(;e.length<r;)e.push(L.empty);e.push(n)}}function xi(e,t,n){let r=e.inserted;for(let i=0,a=0,o=0;o<e.sections.length;){let s=e.sections[o++],c=e.sections[o++];if(c<0)i+=s,a+=s;else{let l=i,u=a,d=L.empty;for(;l+=s,u+=c,c&&r&&(d=d.append(r[o-2>>1])),!(n||o==e.sections.length||e.sections[o+1]<0);)s=e.sections[o++],c=e.sections[o++];t(i,l,a,u,d),i=l,a=u}}}function Si(e,t,n,r=!1){let i=[],a=r?[]:null,o=new wi(e),s=new wi(t);for(let e=-1;;)if(o.ins==-1&&s.ins==-1){let e=Math.min(o.len,s.len);yi(i,e,-1),o.forward(e),s.forward(e)}else if(s.ins>=0&&(o.ins<0||e==o.i||o.off==0&&(s.len<o.len||s.len==o.len&&!n))){let t=s.len;for(yi(i,s.ins,-1);t;){let n=Math.min(o.len,t);o.ins>=0&&e<o.i&&o.len<=n&&(yi(i,0,o.ins),a&&bi(a,i,o.text),e=o.i),o.forward(n),t-=n}s.next()}else if(o.ins>=0){let t=0,n=o.len;for(;n;)if(s.ins==-1){let e=Math.min(n,s.len);t+=e,n-=e,s.forward(e)}else if(s.ins==0&&s.len<n)n-=s.len,s.next();else break;yi(i,t,e<o.i?o.ins:0),a&&e<o.i&&bi(a,i,o.text),e=o.i,o.forward(o.len-n)}else if(o.done&&s.done)return a?vi.createSet(i,a):_i.create(i);else throw Error(`Mismatched change set lengths`)}function Ci(e,t,n=!1){let r=[],i=n?[]:null,a=new wi(e),o=new wi(t);for(let e=!1;;)if(a.done&&o.done)return i?vi.createSet(r,i):_i.create(r);else if(a.ins==0)yi(r,a.len,0,e),a.next();else if(o.len==0&&!o.done)yi(r,0,o.ins,e),i&&bi(i,r,o.text),o.next();else if(a.done||o.done)throw Error(`Mismatched change set lengths`);else{let t=Math.min(a.len2,o.len),n=r.length;if(a.ins==-1){let n=o.ins==-1?-1:o.off?0:o.ins;yi(r,t,n,e),i&&n&&bi(i,r,o.text)}else o.ins==-1?(yi(r,a.off?0:a.len,t,e),i&&bi(i,r,a.textBit(t))):(yi(r,a.off?0:a.len,o.off?0:o.ins,e),i&&!o.off&&bi(i,r,o.text));e=(a.ins>t||o.ins>=0&&o.len>t)&&(e||r.length>n),a.forward2(t),o.forward(t)}}var wi=class{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?L.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?L.empty:t[n].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}},Ti=class e{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(t,n=-1){let r,i;return this.empty?r=i=t.mapPos(this.from,n):(r=t.mapPos(this.from,1),i=t.mapPos(this.to,-1)),r==this.from&&i==this.to?this:new e(r,i,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return R.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return R.range(this.anchor,n)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!=`number`||typeof e.head!=`number`)throw RangeError(`Invalid JSON representation for SelectionRange`);return R.range(e.anchor,e.head)}static create(t,n,r){return new e(t,n,r)}},R=class e{constructor(e,t){this.ranges=e,this.mainIndex=t}map(t,n=-1){return t.empty?this:e.create(this.ranges.map(e=>e.map(t,n)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(e.ranges[n],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new e([this.main],0)}addRange(t,n=!0){return e.create([t].concat(this.ranges),n?0:this.mainIndex+1)}replaceRange(t,n=this.mainIndex){let r=this.ranges.slice();return r[n]=t,e.create(r,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!=`number`||t.main>=t.ranges.length)throw RangeError(`Invalid JSON representation for EditorSelection`);return new e(t.ranges.map(e=>Ti.fromJSON(e)),t.main)}static single(t,n=t){return new e([e.range(t,n)],0)}static create(t,n=0){if(t.length==0)throw RangeError(`A selection needs at least one range`);for(let r=0,i=0;i<t.length;i++){let a=t[i];if(a.empty?a.from<=r:a.from<r)return e.normalized(t.slice(),n);r=a.to}return new e(t,n)}static cursor(e,t=0,n,r){return Ti.create(e,e,(t==0?0:t<0?8:16)|(n==null?7:Math.min(6,n))|(r??16777215)<<6)}static range(e,t,n,r){let i=(n??16777215)<<6|(r==null?7:Math.min(6,r));return t<e?Ti.create(t,e,48|i):Ti.create(e,t,(t>e?8:0)|i)}static normalized(t,n=0){let r=t[n];t.sort((e,t)=>e.from-t.from),n=t.indexOf(r);for(let r=1;r<t.length;r++){let i=t[r],a=t[r-1];if(i.empty?i.from<=a.to:i.from<a.to){let o=a.from,s=Math.max(i.to,a.to);r<=n&&n--,t.splice(--r,2,i.anchor>i.head?e.range(s,o):e.range(o,s))}}return new e(t,n)}};function Ei(e,t){for(let n of e.ranges)if(n.to>t)throw RangeError(`Selection points outside of document`)}var Di=0,z=class e{constructor(e,t,n,r,i){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.id=Di++,this.default=e([]),this.extensions=typeof i==`function`?i(this):i}get reader(){return this}static define(t={}){return new e(t.combine||(e=>e),t.compareInput||((e,t)=>e===t),t.compare||(t.combine?(e,t)=>e===t:Oi),!!t.static,t.enables)}of(e){return new ki([],this,0,e)}compute(e,t){if(this.isStatic)throw Error(`Can't compute a static facet`);return new ki(e,this,1,t)}computeN(e,t){if(this.isStatic)throw Error(`Can't compute a static facet`);return new ki(e,this,2,t)}from(e,t){return t||=e=>e,this.compute([e],n=>t(n.field(e)))}};function Oi(e,t){return e==t||e.length==t.length&&e.every((e,n)=>e===t[n])}var ki=class{constructor(e,t,n,r){this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=Di++}dynamicSlot(e){let t=this.value,n=this.facet.compareInput,r=this.id,i=e[r]>>1,a=this.type==2,o=!1,s=!1,c=[];for(let t of this.dependencies)t==`doc`?o=!0:t==`selection`?s=!0:(e[t.id]??1)&1||c.push(e[t.id]);return{create(e){return e.values[i]=t(e),1},update(e,r){if(o&&r.docChanged||s&&(r.docChanged||r.selection)||ji(e,c)){let r=t(e);if(a?!Ai(r,e.values[i],n):!n(r,e.values[i]))return e.values[i]=r,1}return 0},reconfigure:(e,o)=>{let s,c=o.config.address[r];if(c!=null){let r=Wi(o,c);if(this.dependencies.every(t=>t instanceof z?o.facet(t)===e.facet(t):t instanceof Pi?o.field(t,!1)==e.field(t,!1):!0)||(a?Ai(s=t(e),r,n):n(s=t(e),r)))return e.values[i]=r,0}else s=t(e);return e.values[i]=s,1}}}};function Ai(e,t,n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function ji(e,t){let n=!1;for(let r of t)Ui(e,r)&1&&(n=!0);return n}function Mi(e,t,n){let r=n.map(t=>e[t.id]),i=n.map(e=>e.type),a=r.filter(e=>!(e&1)),o=e[t.id]>>1;function s(e){let n=[];for(let t=0;t<r.length;t++){let a=Wi(e,r[t]);if(i[t]==2)for(let e of a)n.push(e);else n.push(a)}return t.combine(n)}return{create(e){for(let t of r)Ui(e,t);return e.values[o]=s(e),1},update(e,n){if(!ji(e,a))return 0;let r=s(e);return t.compare(r,e.values[o])?0:(e.values[o]=r,1)},reconfigure(e,i){let a=ji(e,r),c=i.config.facets[t.id],l=i.facet(t);if(c&&!a&&Oi(n,c))return e.values[o]=l,0;let u=s(e);return t.compare(u,l)?(e.values[o]=l,0):(e.values[o]=u,1)}}}var Ni=z.define({static:!0}),Pi=class e{constructor(e,t,n,r,i){this.id=e,this.createF=t,this.updateF=n,this.compareF=r,this.spec=i,this.provides=void 0}static define(t){let n=new e(Di++,t.create,t.update,t.compare||((e,t)=>e===t),t);return t.provide&&(n.provides=t.provide(n)),n}create(e){return(e.facet(Ni).find(e=>e.field==this)?.create||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let r=e.values[t],i=this.updateF(r,n);return this.compareF(r,i)?0:(e.values[t]=i,1)},reconfigure:(e,n)=>n.config.address[this.id]==null?(e.values[t]=this.create(e),1):(e.values[t]=n.field(this),0)}}init(e){return[this,Ni.of({field:this,create:e})]}get extension(){return this}},Fi={lowest:4,low:3,default:2,high:1,highest:0};function Ii(e){return t=>new Ri(t,e)}var Li={highest:Ii(Fi.highest),high:Ii(Fi.high),default:Ii(Fi.default),low:Ii(Fi.low),lowest:Ii(Fi.lowest)},Ri=class{constructor(e,t){this.inner=e,this.prec=t}},zi=class e{of(e){return new Bi(this,e)}reconfigure(t){return e.reconfigure.of({compartment:this,extension:t})}get(e){return e.config.compartments.get(this)}},Bi=class{constructor(e,t){this.compartment=e,this.inner=t}},Vi=class e{constructor(e,t,n,r,i,a){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=a,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(t,n,r){let i=[],a=Object.create(null),o=new Map;for(let e of Hi(t,n,o))e instanceof Pi?i.push(e):(a[e.facet.id]||(a[e.facet.id]=[])).push(e);let s=Object.create(null),c=[],l=[];for(let e of i)s[e.id]=l.length<<1,l.push(t=>e.slot(t));let u=r?.config.facets;for(let e in a){let t=a[e],n=t[0].facet,i=u&&u[e]||[];if(t.every(e=>e.type==0))if(s[n.id]=c.length<<1|1,Oi(i,t))c.push(r.facet(n));else{let e=n.combine(t.map(e=>e.value));c.push(r&&n.compare(e,r.facet(n))?r.facet(n):e)}else{for(let e of t)e.type==0?(s[e.id]=c.length<<1|1,c.push(e.value)):(s[e.id]=l.length<<1,l.push(t=>e.dynamicSlot(t)));s[n.id]=l.length<<1,l.push(e=>Mi(e,n,t))}}return new e(t,o,l.map(e=>e(s)),s,c,a)}};function Hi(e,t,n){let r=[[],[],[],[],[]],i=new Map;function a(e,o){let s=i.get(e);if(s!=null){if(s<=o)return;let t=r[s].indexOf(e);t>-1&&r[s].splice(t,1),e instanceof Bi&&n.delete(e.compartment)}if(i.set(e,o),Array.isArray(e))for(let t of e)a(t,o);else if(e instanceof Bi){if(n.has(e.compartment))throw RangeError(`Duplicate use of compartment in extensions`);let r=t.get(e.compartment)||e.inner;n.set(e.compartment,r),a(r,o)}else if(e instanceof Ri)a(e.inner,e.prec);else if(e instanceof Pi)r[o].push(e),e.provides&&a(e.provides,o);else if(e instanceof ki)r[o].push(e),e.facet.extensions&&a(e.facet.extensions,Fi.default);else{let t=e.extension;if(!t)throw Error(`Unrecognized extension value in extension set (${e}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);a(t,o)}}return a(e,Fi.default),r.reduce((e,t)=>e.concat(t))}function Ui(e,t){if(t&1)return 2;let n=t>>1,r=e.status[n];if(r==4)throw Error(`Cyclic dependency between fields and/or facets`);if(r&2)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function Wi(e,t){return t&1?e.config.staticValues[t>>1]:e.values[t>>1]}var Gi=z.define(),Ki=z.define({combine:e=>e.some(e=>e),static:!0}),qi=z.define({combine:e=>e.length?e[0]:void 0,static:!0}),Ji=z.define(),Yi=z.define(),Xi=z.define(),Zi=z.define({combine:e=>e.length?e[0]:!1}),Qi=class{constructor(e,t){this.type=e,this.value=t}static define(){return new $i}},$i=class{of(e){return new Qi(this,e)}},ea=class{constructor(e){this.map=e}of(e){return new B(this,e)}},B=class e{constructor(e,t){this.type=e,this.value=t}map(t){let n=this.type.map(this.value,t);return n===void 0?void 0:n==this.value?this:new e(this.type,n)}is(e){return this.type==e}static define(e={}){return new ea(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let r of e){let e=r.map(t);e&&n.push(e)}return n}};B.reconfigure=B.define(),B.appendConfig=B.define();var ta=class e{constructor(t,n,r,i,a,o){this.startState=t,this.changes=n,this.selection=r,this.effects=i,this.annotations=a,this.scrollIntoView=o,this._doc=null,this._state=null,r&&Ei(r,n.newLength),a.some(t=>t.type==e.time)||(this.annotations=a.concat(e.time.of(Date.now())))}static create(t,n,r,i,a,o){return new e(t,n,r,i,a,o)}get newDoc(){return this._doc||=this.changes.apply(this.startState.doc)}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let n=this.annotation(e.userEvent);return!!(n&&(n==t||n.length>t.length&&n.slice(0,t.length)==t&&n[t.length]==`.`))}};ta.time=Qi.define(),ta.userEvent=Qi.define(),ta.addToHistory=Qi.define(),ta.remote=Qi.define();function na(e,t){let n=[];for(let r=0,i=0;;){let a,o;if(r<e.length&&(i==t.length||t[i]>=e[r]))a=e[r++],o=e[r++];else if(i<t.length)a=t[i++],o=t[i++];else return n;!n.length||n[n.length-1]<a?n.push(a,o):n[n.length-1]<o&&(n[n.length-1]=o)}}function ra(e,t,n){let r,i,a;return n?(r=t.changes,i=vi.empty(t.changes.length),a=e.changes.compose(t.changes)):(r=t.changes.map(e.changes),i=e.changes.mapDesc(t.changes,!0),a=e.changes.compose(r)),{changes:a,selection:t.selection?t.selection.map(i):e.selection?.map(r),effects:B.mapEffects(e.effects,r).concat(B.mapEffects(t.effects,i)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function ia(e,t,n){let r=t.selection,i=la(t.annotations);return t.userEvent&&(i=i.concat(ta.userEvent.of(t.userEvent))),{changes:t.changes instanceof vi?t.changes:vi.of(t.changes||[],n,e.facet(qi)),selection:r&&(r instanceof R?r:R.single(r.anchor,r.head)),effects:la(t.effects),annotations:i,scrollIntoView:!!t.scrollIntoView}}function aa(e,t,n){let r=ia(e,t.length?t[0]:{},e.doc.length);t.length&&t[0].filter===!1&&(n=!1);for(let i=1;i<t.length;i++){t[i].filter===!1&&(n=!1);let a=!!t[i].sequential;r=ra(r,ia(e,t[i],a?r.changes.newLength:e.doc.length),a)}let i=ta.create(e,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return sa(n?oa(i):i)}function oa(e){let t=e.startState,n=!0;for(let r of t.facet(Ji)){let t=r(e);if(t===!1){n=!1;break}Array.isArray(t)&&(n=n===!0?t:na(n,t))}if(n!==!0){let r,i;if(n===!1)i=e.changes.invertedDesc,r=vi.empty(t.doc.length);else{let t=e.changes.filter(n);r=t.changes,i=t.filtered.mapDesc(t.changes).invertedDesc}e=ta.create(t,r,e.selection&&e.selection.map(i),B.mapEffects(e.effects,i),e.annotations,e.scrollIntoView)}let r=t.facet(Yi);for(let n=r.length-1;n>=0;n--){let i=r[n](e);e=i instanceof ta?i:Array.isArray(i)&&i.length==1&&i[0]instanceof ta?i[0]:aa(t,la(i),!1)}return e}function sa(e){let t=e.startState,n=t.facet(Xi),r=e;for(let i=n.length-1;i>=0;i--){let a=n[i](e);a&&Object.keys(a).length&&(r=ra(r,ia(t,a,e.changes.newLength),!0))}return r==e?e:ta.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}var ca=[];function la(e){return e==null?ca:Array.isArray(e)?e:[e]}var ua=(function(e){return e[e.Word=0]=`Word`,e[e.Space=1]=`Space`,e[e.Other=2]=`Other`,e})(ua||={}),da=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,fa;try{fa=RegExp(`[\\p{Alphabetic}\\p{Number}_]`,`u`)}catch{}function pa(e){if(fa)return fa.test(e);for(let t=0;t<e.length;t++){let n=e[t];if(/\w/.test(n)||n>``&&(n.toUpperCase()!=n.toLowerCase()||da.test(n)))return!0}return!1}function ma(e){return t=>{if(!/\S/.test(t))return ua.Space;if(pa(t))return ua.Word;for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return ua.Word;return ua.Other}}var ha=class e{constructor(e,t,n,r,i,a){this.config=e,this.doc=t,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=i,a&&(a._state=this);for(let e=0;e<this.config.dynamicSlots.length;e++)Ui(this,e<<1);this.computeSlot=null}field(e,t=!0){let n=this.config.address[e.id];if(n==null){if(t)throw RangeError(`Field is not present in this state`);return}return Ui(this,n),Wi(this,n)}update(...e){return aa(this,e,!0)}applyTransaction(t){let n=this.config,{base:r,compartments:i}=n;for(let e of t.effects)e.is(zi.reconfigure)?(n&&=(i=new Map,n.compartments.forEach((e,t)=>i.set(t,e)),null),i.set(e.value.compartment,e.value.extension)):e.is(B.reconfigure)?(n=null,r=e.value):e.is(B.appendConfig)&&(n=null,r=la(r).concat(e.value));let a;n?a=t.startState.values.slice():(n=Vi.resolve(r,i,this),a=new e(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(e,t)=>t.reconfigure(e,this),null).values);let o=t.startState.facet(Ki)?t.newSelection:t.newSelection.asSingle();new e(n,t.newDoc,o,a,(e,n)=>n.update(e,t),t)}replaceSelection(e){return typeof e==`string`&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:R.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),i=[n.range],a=la(n.effects);for(let n=1;n<t.ranges.length;n++){let o=e(t.ranges[n]),s=this.changes(o.changes),c=s.map(r);for(let e=0;e<n;e++)i[e]=i[e].map(c);let l=r.mapDesc(s,!0);i.push(o.range.map(l)),r=r.compose(c),a=B.mapEffects(a,c).concat(B.mapEffects(la(o.effects),l))}return{changes:r,selection:R.create(i,t.mainIndex),effects:a}}changes(t=[]){return t instanceof vi?t:vi.of(t,this.doc.length,this.facet(e.lineSeparator))}toText(t){return L.of(t.split(this.facet(e.lineSeparator)||hi))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(Ui(this,t),Wi(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let r=e[n];r instanceof Pi&&this.config.address[r.id]!=null&&(t[n]=r.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(t,n={},r){if(!t||typeof t.doc!=`string`)throw RangeError(`Invalid JSON representation for EditorState`);let i=[];if(r){for(let e in r)if(Object.prototype.hasOwnProperty.call(t,e)){let n=r[e],a=t[e];i.push(n.init(e=>n.spec.fromJSON(a,e)))}}return e.create({doc:t.doc,selection:R.fromJSON(t.selection),extensions:n.extensions?i.concat([n.extensions]):i})}static create(t={}){let n=Vi.resolve(t.extensions||[],new Map),r=t.doc instanceof L?t.doc:L.of((t.doc||``).split(n.staticFacet(e.lineSeparator)||hi)),i=t.selection?t.selection instanceof R?t.selection:R.single(t.selection.anchor,t.selection.head):R.single(0);return Ei(i,r.length),n.staticFacet(Ki)||(i=i.asSingle()),new e(n,r,i,n.dynamicSlots.map(()=>null),(e,t)=>t.create(e),null)}get tabSize(){return this.facet(e.tabSize)}get lineBreak(){return this.facet(e.lineSeparator)||`
|
|
@@ -432,7 +432,7 @@ import{n as e,t}from"./chunk-B3K2TuZy.js";import{At as n,Dt as r,E as i,F as a,G
|
|
|
432
432
|
\${}
|
|
433
433
|
}`,{label:`interface`,detail:`definition`,type:`keyword`}),O_("type ${name} = ${type}",{label:`type`,detail:`definition`,type:`keyword`}),O_(`enum \${name} {
|
|
434
434
|
\${}
|
|
435
|
-
}`,{label:`enum`,detail:`definition`,type:`keyword`})]),Kv=new cf,qv=new Set([`Script`,`Block`,`FunctionExpression`,`FunctionDeclaration`,`ArrowFunction`,`MethodDeclaration`,`ForStatement`]);function Jv(e){return(t,n)=>{let r=t.node.getChild(`VariableDefinition`);return r&&n(r,e),!0}}var Yv=[`FunctionDeclaration`],Xv={FunctionDeclaration:Jv(`function`),ClassDeclaration:Jv(`class`),ClassExpression:()=>!0,EnumDeclaration:Jv(`constant`),TypeAliasDeclaration:Jv(`type`),NamespaceDeclaration:Jv(`namespace`),VariableDefinition(e,t){e.matchContext(Yv)||t(e,`variable`)},TypeDefinition(e,t){t(e,`type`)},__proto__:null};function Zv(e,t){let n=Kv.get(t);if(n)return n;let r=[],i=!0;function a(t,n){let i=e.sliceString(t.from,t.to);r.push({label:i,type:n})}return t.cursor(q.IncludeAnonymous).iterate(t=>{if(i)i=!1;else if(t.name){let e=Xv[t.name];if(e&&e(t,a)||qv.has(t.name))return!1}else if(t.to-t.from>8192){for(let n of Zv(e,t.node))r.push(n);return!1}}),Kv.set(t,r),r}var Qv=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,$v=[`TemplateString`,`String`,`RegExp`,`LineComment`,`BlockComment`,`VariableDefinition`,`TypeDefinition`,`Label`,`PropertyDefinition`,`PropertyName`,`PrivatePropertyDefinition`,`PrivatePropertyName`,`.`,`?.`];function ey(e){let t=Kf(e.state).resolveInner(e.pos,-1);if($v.indexOf(t.name)>-1)return null;let n=t.name==`VariableName`||t.to-t.from<20&&Qv.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let n=t;n;n=n.parent)qv.has(n.name)&&(r=r.concat(Zv(e.state.doc,n)));return{options:r,from:n?t.from:e.pos,validFor:Qv}}var ty=Gf.define({name:`javascript`,parser:Uv.configure({props:[lp.add({IfStatement:xp({except:/^\s*({|else\b)/}),TryStatement:xp({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:bp,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:vp({closing:`}`}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":xp({except:/^{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),Sp.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Cp,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:[`(`,`[`,`{`,`'`,`"`,"`"]},commentTokens:{line:`//`,block:{open:`/*`,close:`*/`}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:`$`}}),ny={test:e=>/^JSX/.test(e.name),facet:Vf({commentTokens:{block:{open:`{/*`,close:`*/}`}}})},ry=ty.configure({dialect:`ts`},`typescript`),iy=ty.configure({dialect:`jsx`,props:[Hf.add(e=>e.isTop?[ny]:void 0)]}),ay=ty.configure({dialect:`jsx ts`,props:[Hf.add(e=>e.isTop?[ny]:void 0)]},`typescript`),oy=e=>({label:e,type:`keyword`}),sy=`break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield`.split(` `).map(oy),cy=sy.concat([`declare`,`implements`,`private`,`protected`,`public`].map(oy));function ly(e={}){let t=e.jsx?e.typescript?ay:iy:e.typescript?ry:ty,n=e.typescript?Gv.concat(cy):Wv.concat(sy);return new np(t,[ty.data.of({autocomplete:vg($v,_g(n))}),ty.data.of({autocomplete:ey}),e.jsx?py:[]])}function uy(e){for(;;){if(e.name==`JSXOpenTag`||e.name==`JSXSelfClosingTag`||e.name==`JSXFragmentTag`)return e;if(e.name==`JSXEscape`||!e.parent)return null;e=e.parent}}function dy(e,t,n=e.length){for(let r=t?.firstChild;r;r=r.nextSibling)if(r.name==`JSXIdentifier`||r.name==`JSXBuiltin`||r.name==`JSXNamespacedName`||r.name==`JSXMemberExpression`)return e.sliceString(r.from,Math.min(r.to,n));return``}var fy=typeof navigator==`object`&&/Android\b/.test(navigator.userAgent),py=G.inputHandler.of((e,t,n,r,i)=>{if((fy?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=`>`&&r!=`/`||!ty.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:o}=a,s=o.changeByRange(e=>{let{head:t}=e,n=Kf(o).resolveInner(t-1,-1),i;if(n.name==`JSXStartTag`&&(n=n.parent),!(o.doc.sliceString(t-1,t)!=r||n.name==`JSXAttributeValue`&&n.to>t)){if(r==`>`&&n.name==`JSXFragmentTag`)return{range:e,changes:{from:t,insert:`</>`}};if(r==`/`&&n.name==`JSXStartCloseTag`){let e=n.parent,r=e.parent;if(r&&e.from==t-2&&((i=dy(o.doc,r.firstChild,t))||r.firstChild?.name==`JSXFragmentTag`)){let e=`${i}>`;return{range:R.cursor(t+e.length,-1),changes:{from:t,insert:e}}}}else if(r==`>`){let r=uy(n);if(r&&r.name==`JSXOpenTag`&&!/^\/?>|^<\//.test(o.doc.sliceString(t,t+2))&&(i=dy(o.doc,r,t)))return{range:e,changes:{from:t,insert:`</${i}>`}}}}return{range:e}});return s.changes.empty?!1:(e.dispatch([a,o.update(s,{userEvent:`input.complete`,scrollIntoView:!0})]),!0)}),my=({variant:e,settings:t,styles:n})=>[G.theme({"&":{backgroundColor:t.background,color:t.foreground},".cm-content":{caretColor:t.caret},".cm-cursor, .cm-dropCursor":{borderLeftColor:t.caret},"&.cm-focused .cm-selectionBackgroundm .cm-selectionBackground, .cm-content ::selection":{backgroundColor:t.selection},".cm-activeLine":{backgroundColor:t.lineHighlight},".cm-gutters":{backgroundColor:t.gutterBackground,color:t.gutterForeground},".cm-activeLineGutter":{backgroundColor:t.lineHighlight}},{dark:e===`dark`}),Op(wp.define(n))];my({variant:`dark`,settings:{background:`#200020`,foreground:`#D0D0FF`,caret:`#7070FF`,selection:`#80000080`,gutterBackground:`#200020`,gutterForeground:`#C080C0`,lineHighlight:`#80000040`},styles:[{tag:Y.comment,color:`#404080`},{tag:[Y.string,Y.regexp],color:`#999999`},{tag:Y.number,color:`#7090B0`},{tag:[Y.bool,Y.null],color:`#8080A0`},{tag:[Y.punctuation,Y.derefOperator],color:`#805080`},{tag:Y.keyword,color:`#60B0FF`},{tag:Y.definitionKeyword,color:`#B0FFF0`},{tag:Y.moduleKeyword,color:`#60B0FF`},{tag:Y.operator,color:`#A0A0FF`},{tag:[Y.variableName,Y.self],color:`#008080`},{tag:Y.operatorKeyword,color:`#A0A0FF`},{tag:Y.controlKeyword,color:`#80A0FF`},{tag:Y.className,color:`#70E080`},{tag:[Y.function(Y.propertyName),Y.propertyName],color:`#50A0A0`},{tag:Y.tagName,color:`#009090`},{tag:Y.modifier,color:`#B0FFF0`},{tag:[Y.squareBracket,Y.attributeName],color:`#D0D0FF`}]}),my({variant:`light`,settings:{background:`#fcfcfc`,foreground:`#5c6166`,caret:`#ffaa33`,selection:`#036dd626`,gutterBackground:`#fcfcfc`,gutterForeground:`#8a919966`,lineHighlight:`#8a91991a`},styles:[{tag:Y.comment,color:`#787b8099`},{tag:Y.string,color:`#86b300`},{tag:Y.regexp,color:`#4cbf99`},{tag:[Y.number,Y.bool,Y.null],color:`#ffaa33`},{tag:Y.variableName,color:`#5c6166`},{tag:[Y.definitionKeyword,Y.modifier],color:`#fa8d3e`},{tag:[Y.keyword,Y.special(Y.brace)],color:`#fa8d3e`},{tag:Y.operator,color:`#ed9366`},{tag:Y.separator,color:`#5c6166b3`},{tag:Y.punctuation,color:`#5c6166`},{tag:[Y.definition(Y.propertyName),Y.function(Y.variableName)],color:`#f2ae49`},{tag:[Y.className,Y.definition(Y.typeName)],color:`#22a4e6`},{tag:[Y.tagName,Y.typeName,Y.self,Y.labelName],color:`#55b4d4`},{tag:Y.angleBracket,color:`#55b4d480`},{tag:Y.attributeName,color:`#f2ae49`}]}),my({variant:`dark`,settings:{background:`#15191EFA`,foreground:`#EEF2F7`,caret:`#C4C4C4`,selection:`#90B2D557`,gutterBackground:`#15191EFA`,gutterForeground:`#aaaaaa95`,lineHighlight:`#57575712`},styles:[{tag:Y.comment,color:`#6E6E6E`},{tag:[Y.string,Y.regexp,Y.special(Y.brace)],color:`#5C81B3`},{tag:Y.number,color:`#C1E1B8`},{tag:Y.bool,color:`#53667D`},{tag:[Y.definitionKeyword,Y.modifier,Y.function(Y.propertyName)],color:`#A3D295`,fontWeight:`bold`},{tag:[Y.keyword,Y.moduleKeyword,Y.operatorKeyword,Y.operator],color:`#697A8E`,fontWeight:`bold`},{tag:[Y.variableName,Y.attributeName],color:`#708E67`},{tag:[Y.function(Y.variableName),Y.definition(Y.propertyName),Y.derefOperator],color:`#fff`},{tag:Y.tagName,color:`#A3D295`}]}),my({variant:`dark`,settings:{background:`#2e241d`,foreground:`#BAAE9E`,caret:`#A7A7A7`,selection:`#DDF0FF33`,gutterBackground:`#28211C`,gutterForeground:`#BAAE9E90`,lineHighlight:`#FFFFFF08`},styles:[{tag:Y.comment,color:`#666666`},{tag:[Y.string,Y.special(Y.brace)],color:`#54BE0D`},{tag:Y.regexp,color:`#E9C062`},{tag:Y.number,color:`#CF6A4C`},{tag:[Y.keyword,Y.operator],color:`#5EA6EA`},{tag:Y.variableName,color:`#7587A6`},{tag:[Y.definitionKeyword,Y.modifier],color:`#F9EE98`},{tag:[Y.propertyName,Y.function(Y.variableName)],color:`#937121`},{tag:[Y.typeName,Y.angleBracket,Y.tagName],color:`#9B859D`}]}),my({variant:`dark`,settings:{background:`#3b2627`,foreground:`#E6E1C4`,caret:`#E6E1C4`,selection:`#16120E`,gutterBackground:`#3b2627`,gutterForeground:`#E6E1C490`,lineHighlight:`#1F1611`},styles:[{tag:Y.comment,color:`#6B4E32`},{tag:[Y.keyword,Y.operator,Y.derefOperator],color:`#EF5D32`},{tag:Y.className,color:`#EFAC32`,fontWeight:`bold`},{tag:[Y.typeName,Y.propertyName,Y.function(Y.variableName),Y.definition(Y.variableName)],color:`#EFAC32`},{tag:Y.definition(Y.typeName),color:`#EFAC32`,fontWeight:`bold`},{tag:Y.labelName,color:`#EFAC32`,fontWeight:`bold`},{tag:[Y.number,Y.bool],color:`#6C99BB`},{tag:[Y.variableName,Y.self],color:`#7DAF9C`},{tag:[Y.string,Y.special(Y.brace),Y.regexp],color:`#D9D762`},{tag:[Y.angleBracket,Y.tagName,Y.attributeName],color:`#EFCB43`}]}),my({variant:`dark`,settings:{background:`#000205`,foreground:`#FFFFFF`,caret:`#E60065`,selection:`#E60C6559`,gutterBackground:`#000205`,gutterForeground:`#ffffff90`,lineHighlight:`#4DD7FC1A`},styles:[{tag:Y.comment,color:`#404040`},{tag:[Y.string,Y.special(Y.brace),Y.regexp],color:`#00D8FF`},{tag:Y.number,color:`#E62286`},{tag:[Y.variableName,Y.attributeName,Y.self],color:`#E62286`,fontWeight:`bold`},{tag:Y.function(Y.variableName),color:`#fff`,fontWeight:`bold`}]}),my({variant:`light`,settings:{background:`#fff`,foreground:`#000`,caret:`#000`,selection:`#BDD5FC`,gutterBackground:`#fff`,gutterForeground:`#00000070`,lineHighlight:`#FFFBD1`},styles:[{tag:Y.comment,color:`#BCC8BA`},{tag:[Y.string,Y.special(Y.brace),Y.regexp],color:`#5D90CD`},{tag:[Y.number,Y.bool,Y.null],color:`#46A609`},{tag:Y.keyword,color:`#AF956F`},{tag:[Y.definitionKeyword,Y.modifier],color:`#C52727`},{tag:[Y.angleBracket,Y.tagName,Y.attributeName],color:`#606060`},{tag:Y.self,color:`#000`}]}),my({variant:`dark`,settings:{background:`#00254b`,foreground:`#FFFFFF`,caret:`#FFFFFF`,selection:`#B36539BF`,gutterBackground:`#00254b`,gutterForeground:`#FFFFFF70`,lineHighlight:`#00000059`},styles:[{tag:Y.comment,color:`#0088FF`},{tag:Y.string,color:`#3AD900`},{tag:Y.regexp,color:`#80FFC2`},{tag:[Y.number,Y.bool,Y.null],color:`#FF628C`},{tag:[Y.definitionKeyword,Y.modifier],color:`#FFEE80`},{tag:Y.variableName,color:`#CCCCCC`},{tag:Y.self,color:`#FF80E1`},{tag:[Y.className,Y.definition(Y.propertyName),Y.function(Y.variableName),Y.definition(Y.typeName),Y.labelName],color:`#FFDD00`},{tag:[Y.keyword,Y.operator],color:`#FF9D00`},{tag:[Y.propertyName,Y.typeName],color:`#80FFBB`},{tag:Y.special(Y.brace),color:`#EDEF7D`},{tag:Y.attributeName,color:`#9EFFFF`},{tag:Y.derefOperator,color:`#fff`}]}),my({variant:`dark`,settings:{background:`#060521`,foreground:`#E0E0E0`,caret:`#FFFFFFA6`,selection:`#122BBB`,gutterBackground:`#060521`,gutterForeground:`#E0E0E090`,lineHighlight:`#FFFFFF0F`},styles:[{tag:Y.comment,color:`#AEAEAE`},{tag:[Y.string,Y.special(Y.brace),Y.regexp],color:`#8DFF8E`},{tag:[Y.className,Y.definition(Y.propertyName),Y.function(Y.variableName),Y.function(Y.definition(Y.variableName)),Y.definition(Y.typeName)],color:`#A3EBFF`},{tag:[Y.number,Y.bool,Y.null],color:`#62E9BD`},{tag:[Y.keyword,Y.operator],color:`#2BF1DC`},{tag:[Y.definitionKeyword,Y.modifier],color:`#F8FBB1`},{tag:[Y.variableName,Y.self],color:`#B683CA`},{tag:[Y.angleBracket,Y.tagName,Y.typeName,Y.propertyName],color:`#60A4F1`},{tag:Y.derefOperator,color:`#E0E0E0`},{tag:Y.attributeName,color:`#7BACCA`}]}),my({variant:`dark`,settings:{background:`#2d2f3f`,foreground:`#f8f8f2`,caret:`#f8f8f0`,selection:`#44475a`,gutterBackground:`#282a36`,gutterForeground:`rgb(144, 145, 148)`,lineHighlight:`#44475a`},styles:[{tag:Y.comment,color:`#6272a4`},{tag:[Y.string,Y.special(Y.brace)],color:`#f1fa8c`},{tag:[Y.number,Y.self,Y.bool,Y.null],color:`#bd93f9`},{tag:[Y.keyword,Y.operator],color:`#ff79c6`},{tag:[Y.definitionKeyword,Y.typeName],color:`#8be9fd`},{tag:Y.definition(Y.typeName),color:`#f8f8f2`},{tag:[Y.className,Y.definition(Y.propertyName),Y.function(Y.variableName),Y.attributeName],color:`#50fa7b`}]}),my({variant:`light`,settings:{background:`#FFFFFF`,foreground:`#000000`,caret:`#000000`,selection:`#80C7FF`,gutterBackground:`#FFFFFF`,gutterForeground:`#00000070`,lineHighlight:`#C1E2F8`},styles:[{tag:Y.comment,color:`#AAAAAA`},{tag:[Y.keyword,Y.operator,Y.typeName,Y.tagName,Y.propertyName],color:`#2F6F9F`,fontWeight:`bold`},{tag:[Y.attributeName,Y.definition(Y.propertyName)],color:`#4F9FD0`},{tag:[Y.className,Y.string,Y.special(Y.brace)],color:`#CF4F5F`},{tag:Y.number,color:`#CF4F5F`,fontWeight:`bold`},{tag:Y.variableName,fontWeight:`bold`}]}),my({variant:`light`,settings:{background:`#f2f1f8`,foreground:`#0c006b`,caret:`#5c49e9`,selection:`#d5d1f2`,gutterBackground:`#f2f1f8`,gutterForeground:`#0c006b70`,lineHighlight:`#e1def3`},styles:[{tag:Y.comment,color:`#9995b7`},{tag:Y.keyword,color:`#ff5792`,fontWeight:`bold`},{tag:[Y.definitionKeyword,Y.modifier],color:`#ff5792`},{tag:[Y.className,Y.tagName,Y.definition(Y.typeName)],color:`#0094f0`},{tag:[Y.number,Y.bool,Y.null,Y.special(Y.brace)],color:`#5842ff`},{tag:[Y.definition(Y.propertyName),Y.function(Y.variableName)],color:`#0095a8`},{tag:Y.typeName,color:`#b3694d`},{tag:[Y.propertyName,Y.variableName],color:`#fa8900`},{tag:Y.operator,color:`#ff5792`},{tag:Y.self,color:`#e64100`},{tag:[Y.string,Y.regexp],color:`#00b368`},{tag:[Y.paren,Y.bracket],color:`#0431fa`},{tag:Y.labelName,color:`#00bdd6`},{tag:Y.attributeName,color:`#e64100`},{tag:Y.angleBracket,color:`#9995b7`}]}),my({variant:`light`,settings:{background:`#faf4ed`,foreground:`#575279`,caret:`#575279`,selection:`#6e6a8614`,gutterBackground:`#faf4ed`,gutterForeground:`#57527970`,lineHighlight:`#6e6a860d`},styles:[{tag:Y.comment,color:`#9893a5`},{tag:[Y.bool,Y.null],color:`#286983`},{tag:Y.number,color:`#d7827e`},{tag:Y.className,color:`#d7827e`},{tag:[Y.angleBracket,Y.tagName,Y.typeName],color:`#56949f`},{tag:Y.attributeName,color:`#907aa9`},{tag:Y.punctuation,color:`#797593`},{tag:[Y.keyword,Y.modifier],color:`#286983`},{tag:[Y.string,Y.regexp],color:`#ea9d34`},{tag:Y.variableName,color:`#d7827e`}]}),my({variant:`light`,settings:{background:`#FFFFFF`,foreground:`#000000`,caret:`#000000`,selection:`#FFFD0054`,gutterBackground:`#FFFFFF`,gutterForeground:`#00000070`,lineHighlight:`#00000008`},styles:[{tag:Y.comment,color:`#CFCFCF`},{tag:[Y.number,Y.bool,Y.null],color:`#E66C29`},{tag:[Y.className,Y.definition(Y.propertyName),Y.function(Y.variableName),Y.labelName,Y.definition(Y.typeName)],color:`#2EB43B`},{tag:Y.keyword,color:`#D8B229`},{tag:Y.operator,color:`#4EA44E`,fontWeight:`bold`},{tag:[Y.definitionKeyword,Y.modifier],color:`#925A47`},{tag:Y.string,color:`#704D3D`},{tag:Y.typeName,color:`#2F8996`},{tag:[Y.variableName,Y.propertyName],color:`#77ACB0`},{tag:Y.self,color:`#77ACB0`,fontWeight:`bold`},{tag:Y.regexp,color:`#E3965E`},{tag:[Y.tagName,Y.angleBracket],color:`#BAA827`},{tag:Y.attributeName,color:`#B06520`},{tag:Y.derefOperator,color:`#000`}]}),my({variant:`light`,settings:{background:`#fef7e5`,foreground:`#586E75`,caret:`#000000`,selection:`#073642`,gutterBackground:`#fef7e5`,gutterForeground:`#586E7580`,lineHighlight:`#EEE8D5`},styles:[{tag:Y.comment,color:`#93A1A1`},{tag:Y.string,color:`#2AA198`},{tag:Y.regexp,color:`#D30102`},{tag:Y.number,color:`#D33682`},{tag:Y.variableName,color:`#268BD2`},{tag:[Y.keyword,Y.operator,Y.punctuation],color:`#859900`},{tag:[Y.definitionKeyword,Y.modifier],color:`#073642`,fontWeight:`bold`},{tag:[Y.className,Y.self,Y.definition(Y.propertyName)],color:`#268BD2`},{tag:Y.function(Y.variableName),color:`#268BD2`},{tag:[Y.bool,Y.null],color:`#B58900`},{tag:Y.tagName,color:`#268BD2`,fontWeight:`bold`},{tag:Y.angleBracket,color:`#93A1A1`},{tag:Y.attributeName,color:`#93A1A1`},{tag:Y.typeName,color:`#859900`}]});var hy=my({variant:`light`,settings:{background:`#FFFFFF`,foreground:`#4D4D4C`,caret:`#AEAFAD`,selection:`#D6D6D6`,gutterBackground:`#FFFFFF`,gutterForeground:`#4D4D4C80`,lineHighlight:`#EFEFEF`},styles:[{tag:Y.comment,color:`#8E908C`},{tag:[Y.variableName,Y.self,Y.propertyName,Y.attributeName,Y.regexp],color:`#C82829`},{tag:[Y.number,Y.bool,Y.null],color:`#F5871F`},{tag:[Y.className,Y.typeName,Y.definition(Y.typeName)],color:`#C99E00`},{tag:[Y.string,Y.special(Y.brace)],color:`#718C00`},{tag:Y.operator,color:`#3E999F`},{tag:[Y.definition(Y.propertyName),Y.function(Y.variableName)],color:`#4271AE`},{tag:Y.keyword,color:`#8959A8`},{tag:Y.derefOperator,color:`#4D4D4C`}]}),gy=(e,t)=>{let{on:n,trigger:r}=kt(),i=M(new G({doc:``,extensions:[Ad(),Hu.of([pg,...fg,...Dm]),ly(),j_(),cm(),hy,G.updateListener.of(e=>{if(e.docChanged){let t=e.state.doc.toString();a.value=t,r(t)}}),...t?[t]:[]]}));o(e,()=>{e.value&&e.value.append(i.value.dom)},{immediate:!0});let a=w(i.value.state.doc.toString());return{editor:i,value:ee(a),update:e=>{i.value.state.doc.toString()!==e&&i.value&&i.value.dispatch({changes:{from:0,to:i.value.state.doc.length,insert:e}})},onUpdate:n}},_y=Symbol.for(`@ts-pattern/matcher`),vy=Symbol.for(`@ts-pattern/isVariadic`),yy=`@ts-pattern/anonymous-select-key`,by=e=>!!(e&&typeof e==`object`),xy=e=>e&&!!e[_y],Sy=(e,t,n)=>{if(xy(e)){let{matched:r,selections:i}=e[_y]().match(t);return r&&i&&Object.keys(i).forEach(e=>n(e,i[e])),r}if(by(e)){if(!by(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let r=[],i=[],a=[];for(let t of e.keys()){let n=e[t];xy(n)&&n[vy]?a.push(n):a.length?i.push(n):r.push(n)}if(a.length){if(a.length>1)throw Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<r.length+i.length)return!1;let e=t.slice(0,r.length),o=i.length===0?[]:t.slice(-i.length),s=t.slice(r.length,i.length===0?1/0:-i.length);return r.every((t,r)=>Sy(t,e[r],n))&&i.every((e,t)=>Sy(e,o[t],n))&&(a.length===0||Sy(a[0],s,n))}return e.length===t.length&&e.every((e,r)=>Sy(e,t[r],n))}return Reflect.ownKeys(e).every(r=>{let i=e[r];return(r in t||xy(a=i)&&a[_y]().matcherType===`optional`)&&Sy(i,t[r],n);var a})}return Object.is(t,e)},Cy=e=>{var t;return by(e)?xy(e)?(t=e[_y]()).getSelectionKeys?.call(t)??[]:wy(Array.isArray(e)?e:Object.values(e),Cy):[]},wy=(e,t)=>e.reduce((e,n)=>e.concat(t(n)),[]);function Ty(e){return Object.assign(e,{optional:()=>Dy(e),and:t=>X(e,t),or:t=>Oy(e,t),select:t=>t===void 0?ky(e):ky(t,e)})}function Ey(e){return Object.assign((e=>Object.assign(e,{[Symbol.iterator](){let t=0,n=[{value:Object.assign(e,{[vy]:!0}),done:!1},{done:!0,value:void 0}];return{next:()=>n[t++]??n.at(-1)}}}))(e),{optional:()=>Ey(Dy(e)),select:t=>Ey(t===void 0?ky(e):ky(t,e))})}function Dy(e){return Ty({[_y]:()=>({match:t=>{let n={},r=(e,t)=>{n[e]=t};return t===void 0?(Cy(e).forEach(e=>r(e,void 0)),{matched:!0,selections:n}):{matched:Sy(e,t,r),selections:n}},getSelectionKeys:()=>Cy(e),matcherType:`optional`})})}function X(...e){return Ty({[_y]:()=>({match:t=>{let n={},r=(e,t)=>{n[e]=t};return{matched:e.every(e=>Sy(e,t,r)),selections:n}},getSelectionKeys:()=>wy(e,Cy),matcherType:`and`})})}function Oy(...e){return Ty({[_y]:()=>({match:t=>{let n={},r=(e,t)=>{n[e]=t};return wy(e,Cy).forEach(e=>r(e,void 0)),{matched:e.some(e=>Sy(e,t,r)),selections:n}},getSelectionKeys:()=>wy(e,Cy),matcherType:`or`})})}function Z(e){return{[_y]:()=>({match:t=>({matched:!!e(t)})})}}function ky(...e){let t=typeof e[0]==`string`?e[0]:void 0,n=e.length===2?e[1]:typeof e[0]==`string`?void 0:e[0];return Ty({[_y]:()=>({match:e=>{let r={[t??yy]:e};return{matched:n===void 0||Sy(n,e,(e,t)=>{r[e]=t}),selections:r}},getSelectionKeys:()=>[t??yy].concat(n===void 0?[]:Cy(n))})})}function Ay(e){return typeof e==`number`}function jy(e){return typeof e==`string`}function My(e){return typeof e==`bigint`}Ty(Z(function(e){return!0}));var Ny=e=>Object.assign(Ty(e),{startsWith:t=>{return Ny(X(e,(n=t,Z(e=>jy(e)&&e.startsWith(n)))));var n},endsWith:t=>{return Ny(X(e,(n=t,Z(e=>jy(e)&&e.endsWith(n)))));var n},minLength:t=>Ny(X(e,(e=>Z(t=>jy(t)&&t.length>=e))(t))),length:t=>Ny(X(e,(e=>Z(t=>jy(t)&&t.length===e))(t))),maxLength:t=>Ny(X(e,(e=>Z(t=>jy(t)&&t.length<=e))(t))),includes:t=>{return Ny(X(e,(n=t,Z(e=>jy(e)&&e.includes(n)))));var n},regex:t=>{return Ny(X(e,(n=t,Z(e=>jy(e)&&!!e.match(n)))));var n}});Ny(Z(jy));var Py=e=>Object.assign(Ty(e),{between:(t,n)=>Py(X(e,((e,t)=>Z(n=>Ay(n)&&e<=n&&t>=n))(t,n))),lt:t=>Py(X(e,(e=>Z(t=>Ay(t)&&t<e))(t))),gt:t=>Py(X(e,(e=>Z(t=>Ay(t)&&t>e))(t))),lte:t=>Py(X(e,(e=>Z(t=>Ay(t)&&t<=e))(t))),gte:t=>Py(X(e,(e=>Z(t=>Ay(t)&&t>=e))(t))),int:()=>Py(X(e,Z(e=>Ay(e)&&Number.isInteger(e)))),finite:()=>Py(X(e,Z(e=>Ay(e)&&Number.isFinite(e)))),positive:()=>Py(X(e,Z(e=>Ay(e)&&e>0))),negative:()=>Py(X(e,Z(e=>Ay(e)&&e<0)))});Py(Z(Ay));var Fy=e=>Object.assign(Ty(e),{between:(t,n)=>Fy(X(e,((e,t)=>Z(n=>My(n)&&e<=n&&t>=n))(t,n))),lt:t=>Fy(X(e,(e=>Z(t=>My(t)&&t<e))(t))),gt:t=>Fy(X(e,(e=>Z(t=>My(t)&&t>e))(t))),lte:t=>Fy(X(e,(e=>Z(t=>My(t)&&t<=e))(t))),gte:t=>Fy(X(e,(e=>Z(t=>My(t)&&t>=e))(t))),positive:()=>Fy(X(e,Z(e=>My(e)&&e>0))),negative:()=>Fy(X(e,Z(e=>My(e)&&e<0)))});Fy(Z(My)),Ty(Z(function(e){return typeof e==`boolean`})),Ty(Z(function(e){return typeof e==`symbol`})),Ty(Z(function(e){return e==null})),Ty(Z(function(e){return e!=null}));var Iy=class extends Error{constructor(e){let t;try{t=JSON.stringify(e)}catch{t=e}super(`Pattern matching error: no pattern matches value ${t}`),this.input=void 0,this.input=e}},Ly={matched:!1,value:void 0};function Ry(e){return new zy(e,Ly)}var zy=class e{constructor(e,t){this.input=void 0,this.state=void 0,this.input=e,this.state=t}with(...t){if(this.state.matched)return this;let n=t[t.length-1],r=[t[0]],i;t.length===3&&typeof t[1]==`function`?i=t[1]:t.length>2&&r.push(...t.slice(1,t.length-1));let a=!1,o={},s=(e,t)=>{a=!0,o[e]=t},c=!r.some(e=>Sy(e,this.input,s))||i&&!i(this.input)?Ly:{matched:!0,value:n(a?yy in o?o[yy]:o:this.input,this.input)};return new e(this.input,c)}when(t,n){if(this.state.matched)return this;let r=!!t(this.input);return new e(this.input,r?{matched:!0,value:n(this.input,this.input)}:Ly)}otherwise(e){return this.state.matched?this.state.value:e(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new Iy(this.input)}run(){return this.exhaustive()}returnType(){return this}},By=e=>Ry(e).returnType().with({type:`path`},()=>`string`).with({type:`input`,options:{kind:`number`}},()=>`number`).with({type:`input`,options:{kind:`text`}},()=>`string`).with({type:`boolean`},()=>`boolean`).with({type:`checkbox`},()=>`boolean`).with({type:`select`},()=>`string`).with({type:`multi-select`},()=>`object`).with({type:`json`},()=>`object`).with({type:`expression`},()=>`string`).with({type:`array`,options:{kind:`number`}},()=>`object`).with({type:`array`,options:{kind:`text`}},()=>`object`).with({type:`electron:configure:v2`},()=>`object`).with({type:`netlify-site`},()=>`string`).with({type:`color`},()=>`string`).exhaustive(),Vy=e=>Ry(e).returnType().with({type:`path`},()=>`mdi-alphabetical-variant`).with({type:`input`,options:{kind:`number`}},()=>`mdi-numeric`).with({type:`input`,options:{kind:`text`}},()=>`mdi-alphabetical-variant`).with({type:`boolean`},()=>`mdi-toggle-switch`).with({type:`checkbox`},()=>`mdi-toggle-switch`).with({type:`select`},()=>`mdi-alphabetical-variant`).with({type:`multi-select`},()=>`mdi-code-brackets`).with({type:`json`},()=>`mdi-code-braces`).with({type:`expression`},()=>`mdi-`).with({type:`array`,options:{kind:`number`}},()=>`mdi-code-brackets`).with({type:`array`,options:{kind:`text`}},()=>`mdi-code-brackets`).with({type:`electron:configure:v2`},()=>`mdi-code-braces`).with({type:`netlify-site`},()=>`mdi-code-braces`).with({type:`color`},()=>`mdi-palette`).exhaustive(),Hy=Math.min,Uy=Math.max,Wy=Math.round,Gy=Math.floor,Ky=e=>({x:e,y:e}),qy={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Jy(e,t,n){return Uy(e,Hy(t,n))}function Yy(e,t){return typeof e==`function`?e(t):e}function Xy(e){return e.split(`-`)[0]}function Zy(e){return e.split(`-`)[1]}function Qy(e){return e===`x`?`y`:`x`}function $y(e){return e===`y`?`height`:`width`}function eb(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function tb(e){return Qy(eb(e))}function nb(e,t,n){n===void 0&&(n=!1);let r=Zy(e),i=tb(e),a=$y(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=db(o)),[o,db(o)]}function rb(e){let t=db(e);return[ib(e),t,ib(t)]}function ib(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var ab=[`left`,`right`],ob=[`right`,`left`],sb=[`top`,`bottom`],cb=[`bottom`,`top`];function lb(e,t,n){switch(e){case`top`:case`bottom`:return n?t?ob:ab:t?ab:ob;case`left`:case`right`:return t?sb:cb;default:return[]}}function ub(e,t,n,r){let i=Zy(e),a=lb(Xy(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(ib)))),a}function db(e){let t=Xy(e);return qy[t]+e.slice(t.length)}function fb(e){return{top:0,right:0,bottom:0,left:0,...e}}function pb(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:fb(e)}function mb(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function hb(e,t,n){let{reference:r,floating:i}=e,a=eb(t),o=tb(t),s=$y(o),c=Xy(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Zy(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function gb(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Yy(t,e),p=pb(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=mb(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=mb(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var _b=50,vb=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:gb},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=hb(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<_b&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=hb(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},yb=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Yy(e,t)||{};if(l==null)return{};let d=pb(u),f={x:n,y:r},p=tb(i),m=$y(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Hy(d[_],T),D=Hy(d[v],T),O=E,k=C-h[m]-D,A=C/2-h[m]/2+w,j=Jy(O,A,k),ee=!c.arrow&&Zy(i)!=null&&A!==j&&a.reference[m]/2-(A<O?E:D)-h[m]/2<0,M=ee?A<O?A-O:A-k:0;return{[p]:f[p]+M,data:{[p]:j,centerOffset:A-j-M,...ee&&{alignmentOffset:M}},reset:ee}}}),bb=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Yy(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Xy(r),_=eb(o),v=Xy(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[db(o)]:rb(o)),x=p!==`none`;!d&&x&&b.push(...ub(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=nb(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==eb(t))||T.every(e=>eb(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=eb(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}},xb=new Set([`left`,`top`]);async function Sb(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Xy(n),s=Zy(n),c=eb(n)===`y`,l=xb.has(o)?-1:1,u=a&&c?-1:1,d=Yy(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Cb=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Sb(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},wb=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Yy(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=eb(Xy(i)),p=Qy(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Jy(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Jy(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}};function Tb(){return typeof window<`u`}function Eb(e){return kb(e)?(e.nodeName||``).toLowerCase():`#document`}function Db(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ob(e){return((kb(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function kb(e){return Tb()?e instanceof Node||e instanceof Db(e).Node:!1}function Ab(e){return Tb()?e instanceof Element||e instanceof Db(e).Element:!1}function jb(e){return Tb()?e instanceof HTMLElement||e instanceof Db(e).HTMLElement:!1}function Mb(e){return!Tb()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Db(e).ShadowRoot}function Nb(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Wb(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Pb(e){return/^(table|td|th)$/.test(Eb(e))}function Fb(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Ib=/transform|translate|scale|rotate|perspective|filter/,Lb=/paint|layout|strict|content/,Rb=e=>!!e&&e!==`none`,zb;function Bb(e){let t=Ab(e)?Wb(e):e;return Rb(t.transform)||Rb(t.translate)||Rb(t.scale)||Rb(t.rotate)||Rb(t.perspective)||!Hb()&&(Rb(t.backdropFilter)||Rb(t.filter))||Ib.test(t.willChange||``)||Lb.test(t.contain||``)}function Vb(e){let t=Kb(e);for(;jb(t)&&!Ub(t);){if(Bb(t))return t;if(Fb(t))return null;t=Kb(t)}return null}function Hb(){return zb??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),zb}function Ub(e){return/^(html|body|#document)$/.test(Eb(e))}function Wb(e){return Db(e).getComputedStyle(e)}function Gb(e){return Ab(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Kb(e){if(Eb(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Mb(e)&&e.host||Ob(e);return Mb(t)?t.host:t}function qb(e){let t=Kb(e);return Ub(t)?e.ownerDocument?e.ownerDocument.body:e.body:jb(t)&&Nb(t)?t:qb(t)}function Jb(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=qb(e),i=r===e.ownerDocument?.body,a=Db(r);if(i){let e=Yb(a);return t.concat(a,a.visualViewport||[],Nb(r)?r:[],e&&n?Jb(e):[])}else return t.concat(r,Jb(r,[],n))}function Yb(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Xb(e){let t=Wb(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=jb(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Wy(n)!==a||Wy(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Zb(e){return Ab(e)?e:e.contextElement}function Qb(e){let t=Zb(e);if(!jb(t))return Ky(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Xb(t),o=(a?Wy(n.width):n.width)/r,s=(a?Wy(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var $b=Ky(0);function ex(e){let t=Db(e);return!Hb()||!t.visualViewport?$b:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function tx(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Db(e)?!1:t}function nx(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Zb(e),o=Ky(1);t&&(r?Ab(r)&&(o=Qb(r)):o=Qb(e));let s=tx(a,n,r)?ex(a):Ky(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=Db(a),t=r&&Ab(r)?Db(r):r,n=e,i=Yb(n);for(;i&&r&&t!==n;){let e=Qb(i),t=i.getBoundingClientRect(),r=Wb(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Db(i),i=Yb(n)}}return mb({width:u,height:d,x:c,y:l})}function rx(e,t){let n=Gb(e).scrollLeft;return t?t.left+n:nx(Ob(e)).left+n}function ix(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-rx(e,n),y:n.top+t.scrollTop}}function ax(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Ob(r),s=t?Fb(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Ky(1),u=Ky(0),d=jb(r);if((d||!d&&!a)&&((Eb(r)!==`body`||Nb(o))&&(c=Gb(r)),d)){let e=nx(r);l=Qb(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?ix(o,c):Ky(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function ox(e){return Array.from(e.getClientRects())}function sx(e){let t=Ob(e),n=Gb(e),r=e.ownerDocument.body,i=Uy(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Uy(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+rx(e),s=-n.scrollTop;return Wb(r).direction===`rtl`&&(o+=Uy(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var cx=25;function lx(e,t){let n=Db(e),r=Ob(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Hb();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=rx(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=cx&&(a-=o)}else l<=cx&&(a+=l);return{width:a,height:o,x:s,y:c}}function ux(e,t){let n=nx(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=jb(e)?Qb(e):Ky(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function dx(e,t,n){let r;if(t===`viewport`)r=lx(e,n);else if(t===`document`)r=sx(Ob(e));else if(Ab(t))r=ux(t,n);else{let n=ex(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return mb(r)}function fx(e,t){let n=Kb(e);return n===t||!Ab(n)||Ub(n)?!1:Wb(n).position===`fixed`||fx(n,t)}function px(e,t){let n=t.get(e);if(n)return n;let r=Jb(e,[],!1).filter(e=>Ab(e)&&Eb(e)!==`body`),i=null,a=Wb(e).position===`fixed`,o=a?Kb(e):e;for(;Ab(o)&&!Ub(o);){let t=Wb(o),n=Bb(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Nb(o)&&!n&&fx(e,o))?r=r.filter(e=>e!==o):i=t,o=Kb(o)}return t.set(e,r),r}function mx(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Fb(t)?[]:px(t,this._c):[].concat(n),r],o=dx(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=dx(t,a[e],i);s=Uy(n.top,s),c=Hy(n.right,c),l=Hy(n.bottom,l),u=Uy(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function hx(e){let{width:t,height:n}=Xb(e);return{width:t,height:n}}function gx(e,t,n){let r=jb(t),i=Ob(t),a=n===`fixed`,o=nx(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Ky(0);function l(){c.x=rx(i)}if(r||!r&&!a)if((Eb(t)!==`body`||Nb(i))&&(s=Gb(t)),r){let e=nx(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?ix(i,s):Ky(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function _x(e){return Wb(e).position===`static`}function vx(e,t){if(!jb(e)||Wb(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Ob(e)===n&&(n=n.ownerDocument.body),n}function yx(e,t){let n=Db(e);if(Fb(e))return n;if(!jb(e)){let t=Kb(e);for(;t&&!Ub(t);){if(Ab(t)&&!_x(t))return t;t=Kb(t)}return n}let r=vx(e,t);for(;r&&Pb(r)&&_x(r);)r=vx(r,t);return r&&Ub(r)&&_x(r)&&!Bb(r)?n:r||Vb(e)||n}var bx=async function(e){let t=this.getOffsetParent||yx,n=this.getDimensions,r=await n(e.floating);return{reference:gx(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function xx(e){return Wb(e).direction===`rtl`}var Sx={convertOffsetParentRelativeRectToViewportRelativeRect:ax,getDocumentElement:Ob,getClippingRect:mx,getOffsetParent:yx,getElementRects:bx,getClientRects:ox,getDimensions:hx,getScale:Qb,isElement:Ab,isRTL:xx};function Cx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function wx(e,t){let n=null,r,i=Ob(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=Gy(d),h=Gy(i.clientWidth-(u+f)),g=Gy(i.clientHeight-(d+p)),_=Gy(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Uy(0,Hy(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!Cx(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Tx(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Zb(e),u=i||a?[...l?Jb(l):[],...t?Jb(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?wx(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?nx(e):null;c&&g();function g(){let t=nx(e);h&&!Cx(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Ex=Cb,Dx=wb,Ox=bb,kx=yb,Ax=(e,t,n)=>{let r=new Map,i={platform:Sx,...n},a={...i.platform,_c:r};return vb(e,t,{...i,platform:a})};function jx(e){return typeof e==`object`&&!!e&&`$el`in e}function Mx(e){if(jx(e)){let t=e.$el;return kb(t)&&Eb(t)===`#comment`?null:t}return e}function Nx(e){return typeof e==`function`?e():b(e)}function Px(e){return{name:`arrow`,options:e,fn(t){let n=Mx(Nx(e.element));return n==null?{}:kx({element:n,padding:e.padding}).fn(t)}}}function Fx(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ix(e,t){let n=Fx(e);return Math.round(t*n)/n}function Lx(e,t,n){n===void 0&&(n={});let r=n.whileElementsMounted,i=D(()=>Nx(n.open)??!0),a=D(()=>Nx(n.middleware)),s=D(()=>Nx(n.placement)??`bottom`),c=D(()=>Nx(n.strategy)??`absolute`),l=D(()=>Nx(n.transform)??!0),u=D(()=>Mx(e.value)),d=D(()=>Mx(t.value)),f=w(0),p=w(0),m=w(c.value),h=w(s.value),_=M({}),v=w(!1),y=D(()=>{let e={position:m.value,left:`0`,top:`0`};if(!d.value)return e;let t=Ix(d.value,f.value),n=Ix(d.value,p.value);return l.value?{...e,transform:`translate(`+t+`px, `+n+`px)`,...Fx(d.value)>=1.5&&{willChange:`transform`}}:{position:m.value,left:t+`px`,top:n+`px`}}),b;function x(){if(u.value==null||d.value==null)return;let e=i.value;Ax(u.value,d.value,{middleware:a.value,placement:s.value,strategy:c.value}).then(t=>{f.value=t.x,p.value=t.y,m.value=t.strategy,h.value=t.placement,_.value=t.middlewareData,v.value=e!==!1})}function S(){typeof b==`function`&&(b(),b=void 0)}function C(){if(S(),r===void 0){x();return}if(u.value!=null&&d.value!=null){b=r(u.value,d.value,x);return}}function T(){i.value||(v.value=!1)}return o([a,s,c,i],x,{flush:`sync`}),o([u,d],C,{flush:`sync`}),o(i,T,{flush:`sync`}),g()&&te(S),{x:k(f),y:k(p),strategy:k(m),placement:k(h),middlewareData:k(_),isPositioned:k(v),floatingStyles:y,update:x}}var Rx=Dt?window:void 0;function zx(e){let t=fe(e);return t?.$el??t}function Bx(...e){let t,n,r,i;if(typeof e[0]==`string`||Array.isArray(e[0])?([n,r,i]=e,t=Rx):[t,n,r,i]=e,!t)return wt;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);let a=[],s=()=>{a.forEach(e=>e()),a.length=0},c=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),l=o(()=>[zx(t),fe(i)],([e,t])=>{if(s(),!e)return;let i=ue(t)?{...t}:t;a.push(...n.flatMap(t=>r.map(n=>c(e,t,n,i))))},{immediate:!0,flush:`post`}),u=()=>{l(),s()};return it(u),u}var Vx=!1;function Hx(e,t,n={}){let{window:r=Rx,ignore:i=[],capture:a=!0,detectIframe:o=!1}=n;if(!r)return wt;Ne&&!Vx&&(Vx=!0,Array.from(r.document.body.children).forEach(e=>e.addEventListener(`click`,wt)),r.document.documentElement.addEventListener(`click`,wt));let s=!0,c=e=>fe(i).some(t=>{if(typeof t==`string`)return Array.from(r.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{let n=zx(t);return n&&(e.target===n||e.composedPath().includes(n))}}),l=n=>{let r=zx(e);if(!(!r||r===n.target||n.composedPath().includes(r))){if(n.detail===0&&(s=!c(n)),!s){s=!0;return}t(n)}},u=!1,d=[Bx(r,`click`,e=>{u||(u=!0,setTimeout(()=>{u=!1},0),l(e))},{passive:!0,capture:a}),Bx(r,`pointerdown`,t=>{let n=zx(e);s=!c(t)&&!!(n&&!t.composedPath().includes(n))},{passive:!0}),o&&Bx(r,`blur`,n=>{setTimeout(()=>{let i=zx(e);r.document.activeElement?.tagName===`IFRAME`&&!i?.contains(r.document.activeElement)&&t(n)},0)})].filter(Boolean);return()=>d.forEach(e=>e())}var Ux={[Ue.mounted](e,t){let n=!t.modifiers.bubble;if(typeof t.value==`function`)e.__onClickOutside_stop=Hx(e,t.value,{capture:n});else{let[r,i]=t.value;e.__onClickOutside_stop=Hx(e,r,Object.assign({capture:n},i))}},[Ue.unmounted](e){e.__onClickOutside_stop()}};Ue.mounted,Ue.mounted,Ue.mounted,Ue.mounted,Ue.mounted;function Wx(e){return typeof Window<`u`&&e instanceof Window?e.document.documentElement:typeof Document<`u`&&e instanceof Document?e.documentElement:e}Ue.mounted,Ue.mounted,Ue.mounted,Ue.mounted;function Gx(e){let t=window.getComputedStyle(e);if(t.overflowX===`scroll`||t.overflowY===`scroll`||t.overflowX===`auto`&&e.clientWidth<e.scrollWidth||t.overflowY===`auto`&&e.clientHeight<e.scrollHeight)return!0;{let t=e.parentNode;return!t||t.tagName===`BODY`?!1:Gx(t)}}function Kx(e){let t=e||window.event,n=t.target;return Gx(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}var qx=new WeakMap;function Jx(e,t=!1){let n=w(t),r=null,i=``;o(pe(e),e=>{let t=Wx(fe(e));if(t){let e=t;if(qx.get(e)||qx.set(e,e.style.overflow),e.style.overflow!==`hidden`&&(i=e.style.overflow),e.style.overflow===`hidden`)return n.value=!0;if(n.value)return e.style.overflow=`hidden`}},{immediate:!0});let a=()=>{let t=Wx(fe(e));!t||n.value||(Ne&&(r=Bx(t,`touchmove`,e=>{Kx(e)},{passive:!1})),t.style.overflow=`hidden`,n.value=!0)},s=()=>{let t=Wx(fe(e));!t||!n.value||(Ne&&r?.(),t.style.overflow=i,qx.delete(t),n.value=!1)};return it(s),D({get(){return n.value},set(e){e?a():s()}})}function Yx(){let e=!1,t=w(!1);return(n,r)=>{if(t.value=r.value,e)return;e=!0;let i=Jx(n,r.value);o(t,e=>i.value=e)}}Yx();var Xx=Me.extend({name:`message`,style:`
|
|
435
|
+
}`,{label:`enum`,detail:`definition`,type:`keyword`})]),Kv=new cf,qv=new Set([`Script`,`Block`,`FunctionExpression`,`FunctionDeclaration`,`ArrowFunction`,`MethodDeclaration`,`ForStatement`]);function Jv(e){return(t,n)=>{let r=t.node.getChild(`VariableDefinition`);return r&&n(r,e),!0}}var Yv=[`FunctionDeclaration`],Xv={FunctionDeclaration:Jv(`function`),ClassDeclaration:Jv(`class`),ClassExpression:()=>!0,EnumDeclaration:Jv(`constant`),TypeAliasDeclaration:Jv(`type`),NamespaceDeclaration:Jv(`namespace`),VariableDefinition(e,t){e.matchContext(Yv)||t(e,`variable`)},TypeDefinition(e,t){t(e,`type`)},__proto__:null};function Zv(e,t){let n=Kv.get(t);if(n)return n;let r=[],i=!0;function a(t,n){let i=e.sliceString(t.from,t.to);r.push({label:i,type:n})}return t.cursor(q.IncludeAnonymous).iterate(t=>{if(i)i=!1;else if(t.name){let e=Xv[t.name];if(e&&e(t,a)||qv.has(t.name))return!1}else if(t.to-t.from>8192){for(let n of Zv(e,t.node))r.push(n);return!1}}),Kv.set(t,r),r}var Qv=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,$v=[`TemplateString`,`String`,`RegExp`,`LineComment`,`BlockComment`,`VariableDefinition`,`TypeDefinition`,`Label`,`PropertyDefinition`,`PropertyName`,`PrivatePropertyDefinition`,`PrivatePropertyName`,`.`,`?.`];function ey(e){let t=Kf(e.state).resolveInner(e.pos,-1);if($v.indexOf(t.name)>-1)return null;let n=t.name==`VariableName`||t.to-t.from<20&&Qv.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let n=t;n;n=n.parent)qv.has(n.name)&&(r=r.concat(Zv(e.state.doc,n)));return{options:r,from:n?t.from:e.pos,validFor:Qv}}var ty=Gf.define({name:`javascript`,parser:Uv.configure({props:[lp.add({IfStatement:xp({except:/^\s*({|else\b)/}),TryStatement:xp({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:bp,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:vp({closing:`}`}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":xp({except:/^{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),Sp.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Cp,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:[`(`,`[`,`{`,`'`,`"`,"`"]},commentTokens:{line:`//`,block:{open:`/*`,close:`*/`}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:`$`}}),ny={test:e=>/^JSX/.test(e.name),facet:Vf({commentTokens:{block:{open:`{/*`,close:`*/}`}}})},ry=ty.configure({dialect:`ts`},`typescript`),iy=ty.configure({dialect:`jsx`,props:[Hf.add(e=>e.isTop?[ny]:void 0)]}),ay=ty.configure({dialect:`jsx ts`,props:[Hf.add(e=>e.isTop?[ny]:void 0)]},`typescript`),oy=e=>({label:e,type:`keyword`}),sy=`break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield`.split(` `).map(oy),cy=sy.concat([`declare`,`implements`,`private`,`protected`,`public`].map(oy));function ly(e={}){let t=e.jsx?e.typescript?ay:iy:e.typescript?ry:ty,n=e.typescript?Gv.concat(cy):Wv.concat(sy);return new np(t,[ty.data.of({autocomplete:vg($v,_g(n))}),ty.data.of({autocomplete:ey}),e.jsx?py:[]])}function uy(e){for(;;){if(e.name==`JSXOpenTag`||e.name==`JSXSelfClosingTag`||e.name==`JSXFragmentTag`)return e;if(e.name==`JSXEscape`||!e.parent)return null;e=e.parent}}function dy(e,t,n=e.length){for(let r=t?.firstChild;r;r=r.nextSibling)if(r.name==`JSXIdentifier`||r.name==`JSXBuiltin`||r.name==`JSXNamespacedName`||r.name==`JSXMemberExpression`)return e.sliceString(r.from,Math.min(r.to,n));return``}var fy=typeof navigator==`object`&&/Android\b/.test(navigator.userAgent),py=G.inputHandler.of((e,t,n,r,i)=>{if((fy?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=`>`&&r!=`/`||!ty.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:o}=a,s=o.changeByRange(e=>{let{head:t}=e,n=Kf(o).resolveInner(t-1,-1),i;if(n.name==`JSXStartTag`&&(n=n.parent),!(o.doc.sliceString(t-1,t)!=r||n.name==`JSXAttributeValue`&&n.to>t)){if(r==`>`&&n.name==`JSXFragmentTag`)return{range:e,changes:{from:t,insert:`</>`}};if(r==`/`&&n.name==`JSXStartCloseTag`){let e=n.parent,r=e.parent;if(r&&e.from==t-2&&((i=dy(o.doc,r.firstChild,t))||r.firstChild?.name==`JSXFragmentTag`)){let e=`${i}>`;return{range:R.cursor(t+e.length,-1),changes:{from:t,insert:e}}}}else if(r==`>`){let r=uy(n);if(r&&r.name==`JSXOpenTag`&&!/^\/?>|^<\//.test(o.doc.sliceString(t,t+2))&&(i=dy(o.doc,r,t)))return{range:e,changes:{from:t,insert:`</${i}>`}}}}return{range:e}});return s.changes.empty?!1:(e.dispatch([a,o.update(s,{userEvent:`input.complete`,scrollIntoView:!0})]),!0)}),my=({variant:e,settings:t,styles:n})=>[G.theme({"&":{backgroundColor:t.background,color:t.foreground},".cm-content":{caretColor:t.caret},".cm-cursor, .cm-dropCursor":{borderLeftColor:t.caret},"&.cm-focused .cm-selectionBackgroundm .cm-selectionBackground, .cm-content ::selection":{backgroundColor:t.selection},".cm-activeLine":{backgroundColor:t.lineHighlight},".cm-gutters":{backgroundColor:t.gutterBackground,color:t.gutterForeground},".cm-activeLineGutter":{backgroundColor:t.lineHighlight}},{dark:e===`dark`}),Op(wp.define(n))];my({variant:`dark`,settings:{background:`#200020`,foreground:`#D0D0FF`,caret:`#7070FF`,selection:`#80000080`,gutterBackground:`#200020`,gutterForeground:`#C080C0`,lineHighlight:`#80000040`},styles:[{tag:Y.comment,color:`#404080`},{tag:[Y.string,Y.regexp],color:`#999999`},{tag:Y.number,color:`#7090B0`},{tag:[Y.bool,Y.null],color:`#8080A0`},{tag:[Y.punctuation,Y.derefOperator],color:`#805080`},{tag:Y.keyword,color:`#60B0FF`},{tag:Y.definitionKeyword,color:`#B0FFF0`},{tag:Y.moduleKeyword,color:`#60B0FF`},{tag:Y.operator,color:`#A0A0FF`},{tag:[Y.variableName,Y.self],color:`#008080`},{tag:Y.operatorKeyword,color:`#A0A0FF`},{tag:Y.controlKeyword,color:`#80A0FF`},{tag:Y.className,color:`#70E080`},{tag:[Y.function(Y.propertyName),Y.propertyName],color:`#50A0A0`},{tag:Y.tagName,color:`#009090`},{tag:Y.modifier,color:`#B0FFF0`},{tag:[Y.squareBracket,Y.attributeName],color:`#D0D0FF`}]}),my({variant:`light`,settings:{background:`#fcfcfc`,foreground:`#5c6166`,caret:`#ffaa33`,selection:`#036dd626`,gutterBackground:`#fcfcfc`,gutterForeground:`#8a919966`,lineHighlight:`#8a91991a`},styles:[{tag:Y.comment,color:`#787b8099`},{tag:Y.string,color:`#86b300`},{tag:Y.regexp,color:`#4cbf99`},{tag:[Y.number,Y.bool,Y.null],color:`#ffaa33`},{tag:Y.variableName,color:`#5c6166`},{tag:[Y.definitionKeyword,Y.modifier],color:`#fa8d3e`},{tag:[Y.keyword,Y.special(Y.brace)],color:`#fa8d3e`},{tag:Y.operator,color:`#ed9366`},{tag:Y.separator,color:`#5c6166b3`},{tag:Y.punctuation,color:`#5c6166`},{tag:[Y.definition(Y.propertyName),Y.function(Y.variableName)],color:`#f2ae49`},{tag:[Y.className,Y.definition(Y.typeName)],color:`#22a4e6`},{tag:[Y.tagName,Y.typeName,Y.self,Y.labelName],color:`#55b4d4`},{tag:Y.angleBracket,color:`#55b4d480`},{tag:Y.attributeName,color:`#f2ae49`}]}),my({variant:`dark`,settings:{background:`#15191EFA`,foreground:`#EEF2F7`,caret:`#C4C4C4`,selection:`#90B2D557`,gutterBackground:`#15191EFA`,gutterForeground:`#aaaaaa95`,lineHighlight:`#57575712`},styles:[{tag:Y.comment,color:`#6E6E6E`},{tag:[Y.string,Y.regexp,Y.special(Y.brace)],color:`#5C81B3`},{tag:Y.number,color:`#C1E1B8`},{tag:Y.bool,color:`#53667D`},{tag:[Y.definitionKeyword,Y.modifier,Y.function(Y.propertyName)],color:`#A3D295`,fontWeight:`bold`},{tag:[Y.keyword,Y.moduleKeyword,Y.operatorKeyword,Y.operator],color:`#697A8E`,fontWeight:`bold`},{tag:[Y.variableName,Y.attributeName],color:`#708E67`},{tag:[Y.function(Y.variableName),Y.definition(Y.propertyName),Y.derefOperator],color:`#fff`},{tag:Y.tagName,color:`#A3D295`}]}),my({variant:`dark`,settings:{background:`#2e241d`,foreground:`#BAAE9E`,caret:`#A7A7A7`,selection:`#DDF0FF33`,gutterBackground:`#28211C`,gutterForeground:`#BAAE9E90`,lineHighlight:`#FFFFFF08`},styles:[{tag:Y.comment,color:`#666666`},{tag:[Y.string,Y.special(Y.brace)],color:`#54BE0D`},{tag:Y.regexp,color:`#E9C062`},{tag:Y.number,color:`#CF6A4C`},{tag:[Y.keyword,Y.operator],color:`#5EA6EA`},{tag:Y.variableName,color:`#7587A6`},{tag:[Y.definitionKeyword,Y.modifier],color:`#F9EE98`},{tag:[Y.propertyName,Y.function(Y.variableName)],color:`#937121`},{tag:[Y.typeName,Y.angleBracket,Y.tagName],color:`#9B859D`}]}),my({variant:`dark`,settings:{background:`#3b2627`,foreground:`#E6E1C4`,caret:`#E6E1C4`,selection:`#16120E`,gutterBackground:`#3b2627`,gutterForeground:`#E6E1C490`,lineHighlight:`#1F1611`},styles:[{tag:Y.comment,color:`#6B4E32`},{tag:[Y.keyword,Y.operator,Y.derefOperator],color:`#EF5D32`},{tag:Y.className,color:`#EFAC32`,fontWeight:`bold`},{tag:[Y.typeName,Y.propertyName,Y.function(Y.variableName),Y.definition(Y.variableName)],color:`#EFAC32`},{tag:Y.definition(Y.typeName),color:`#EFAC32`,fontWeight:`bold`},{tag:Y.labelName,color:`#EFAC32`,fontWeight:`bold`},{tag:[Y.number,Y.bool],color:`#6C99BB`},{tag:[Y.variableName,Y.self],color:`#7DAF9C`},{tag:[Y.string,Y.special(Y.brace),Y.regexp],color:`#D9D762`},{tag:[Y.angleBracket,Y.tagName,Y.attributeName],color:`#EFCB43`}]}),my({variant:`dark`,settings:{background:`#000205`,foreground:`#FFFFFF`,caret:`#E60065`,selection:`#E60C6559`,gutterBackground:`#000205`,gutterForeground:`#ffffff90`,lineHighlight:`#4DD7FC1A`},styles:[{tag:Y.comment,color:`#404040`},{tag:[Y.string,Y.special(Y.brace),Y.regexp],color:`#00D8FF`},{tag:Y.number,color:`#E62286`},{tag:[Y.variableName,Y.attributeName,Y.self],color:`#E62286`,fontWeight:`bold`},{tag:Y.function(Y.variableName),color:`#fff`,fontWeight:`bold`}]}),my({variant:`light`,settings:{background:`#fff`,foreground:`#000`,caret:`#000`,selection:`#BDD5FC`,gutterBackground:`#fff`,gutterForeground:`#00000070`,lineHighlight:`#FFFBD1`},styles:[{tag:Y.comment,color:`#BCC8BA`},{tag:[Y.string,Y.special(Y.brace),Y.regexp],color:`#5D90CD`},{tag:[Y.number,Y.bool,Y.null],color:`#46A609`},{tag:Y.keyword,color:`#AF956F`},{tag:[Y.definitionKeyword,Y.modifier],color:`#C52727`},{tag:[Y.angleBracket,Y.tagName,Y.attributeName],color:`#606060`},{tag:Y.self,color:`#000`}]}),my({variant:`dark`,settings:{background:`#00254b`,foreground:`#FFFFFF`,caret:`#FFFFFF`,selection:`#B36539BF`,gutterBackground:`#00254b`,gutterForeground:`#FFFFFF70`,lineHighlight:`#00000059`},styles:[{tag:Y.comment,color:`#0088FF`},{tag:Y.string,color:`#3AD900`},{tag:Y.regexp,color:`#80FFC2`},{tag:[Y.number,Y.bool,Y.null],color:`#FF628C`},{tag:[Y.definitionKeyword,Y.modifier],color:`#FFEE80`},{tag:Y.variableName,color:`#CCCCCC`},{tag:Y.self,color:`#FF80E1`},{tag:[Y.className,Y.definition(Y.propertyName),Y.function(Y.variableName),Y.definition(Y.typeName),Y.labelName],color:`#FFDD00`},{tag:[Y.keyword,Y.operator],color:`#FF9D00`},{tag:[Y.propertyName,Y.typeName],color:`#80FFBB`},{tag:Y.special(Y.brace),color:`#EDEF7D`},{tag:Y.attributeName,color:`#9EFFFF`},{tag:Y.derefOperator,color:`#fff`}]}),my({variant:`dark`,settings:{background:`#060521`,foreground:`#E0E0E0`,caret:`#FFFFFFA6`,selection:`#122BBB`,gutterBackground:`#060521`,gutterForeground:`#E0E0E090`,lineHighlight:`#FFFFFF0F`},styles:[{tag:Y.comment,color:`#AEAEAE`},{tag:[Y.string,Y.special(Y.brace),Y.regexp],color:`#8DFF8E`},{tag:[Y.className,Y.definition(Y.propertyName),Y.function(Y.variableName),Y.function(Y.definition(Y.variableName)),Y.definition(Y.typeName)],color:`#A3EBFF`},{tag:[Y.number,Y.bool,Y.null],color:`#62E9BD`},{tag:[Y.keyword,Y.operator],color:`#2BF1DC`},{tag:[Y.definitionKeyword,Y.modifier],color:`#F8FBB1`},{tag:[Y.variableName,Y.self],color:`#B683CA`},{tag:[Y.angleBracket,Y.tagName,Y.typeName,Y.propertyName],color:`#60A4F1`},{tag:Y.derefOperator,color:`#E0E0E0`},{tag:Y.attributeName,color:`#7BACCA`}]}),my({variant:`dark`,settings:{background:`#2d2f3f`,foreground:`#f8f8f2`,caret:`#f8f8f0`,selection:`#44475a`,gutterBackground:`#282a36`,gutterForeground:`rgb(144, 145, 148)`,lineHighlight:`#44475a`},styles:[{tag:Y.comment,color:`#6272a4`},{tag:[Y.string,Y.special(Y.brace)],color:`#f1fa8c`},{tag:[Y.number,Y.self,Y.bool,Y.null],color:`#bd93f9`},{tag:[Y.keyword,Y.operator],color:`#ff79c6`},{tag:[Y.definitionKeyword,Y.typeName],color:`#8be9fd`},{tag:Y.definition(Y.typeName),color:`#f8f8f2`},{tag:[Y.className,Y.definition(Y.propertyName),Y.function(Y.variableName),Y.attributeName],color:`#50fa7b`}]}),my({variant:`light`,settings:{background:`#FFFFFF`,foreground:`#000000`,caret:`#000000`,selection:`#80C7FF`,gutterBackground:`#FFFFFF`,gutterForeground:`#00000070`,lineHighlight:`#C1E2F8`},styles:[{tag:Y.comment,color:`#AAAAAA`},{tag:[Y.keyword,Y.operator,Y.typeName,Y.tagName,Y.propertyName],color:`#2F6F9F`,fontWeight:`bold`},{tag:[Y.attributeName,Y.definition(Y.propertyName)],color:`#4F9FD0`},{tag:[Y.className,Y.string,Y.special(Y.brace)],color:`#CF4F5F`},{tag:Y.number,color:`#CF4F5F`,fontWeight:`bold`},{tag:Y.variableName,fontWeight:`bold`}]}),my({variant:`light`,settings:{background:`#f2f1f8`,foreground:`#0c006b`,caret:`#5c49e9`,selection:`#d5d1f2`,gutterBackground:`#f2f1f8`,gutterForeground:`#0c006b70`,lineHighlight:`#e1def3`},styles:[{tag:Y.comment,color:`#9995b7`},{tag:Y.keyword,color:`#ff5792`,fontWeight:`bold`},{tag:[Y.definitionKeyword,Y.modifier],color:`#ff5792`},{tag:[Y.className,Y.tagName,Y.definition(Y.typeName)],color:`#0094f0`},{tag:[Y.number,Y.bool,Y.null,Y.special(Y.brace)],color:`#5842ff`},{tag:[Y.definition(Y.propertyName),Y.function(Y.variableName)],color:`#0095a8`},{tag:Y.typeName,color:`#b3694d`},{tag:[Y.propertyName,Y.variableName],color:`#fa8900`},{tag:Y.operator,color:`#ff5792`},{tag:Y.self,color:`#e64100`},{tag:[Y.string,Y.regexp],color:`#00b368`},{tag:[Y.paren,Y.bracket],color:`#0431fa`},{tag:Y.labelName,color:`#00bdd6`},{tag:Y.attributeName,color:`#e64100`},{tag:Y.angleBracket,color:`#9995b7`}]}),my({variant:`light`,settings:{background:`#faf4ed`,foreground:`#575279`,caret:`#575279`,selection:`#6e6a8614`,gutterBackground:`#faf4ed`,gutterForeground:`#57527970`,lineHighlight:`#6e6a860d`},styles:[{tag:Y.comment,color:`#9893a5`},{tag:[Y.bool,Y.null],color:`#286983`},{tag:Y.number,color:`#d7827e`},{tag:Y.className,color:`#d7827e`},{tag:[Y.angleBracket,Y.tagName,Y.typeName],color:`#56949f`},{tag:Y.attributeName,color:`#907aa9`},{tag:Y.punctuation,color:`#797593`},{tag:[Y.keyword,Y.modifier],color:`#286983`},{tag:[Y.string,Y.regexp],color:`#ea9d34`},{tag:Y.variableName,color:`#d7827e`}]}),my({variant:`light`,settings:{background:`#FFFFFF`,foreground:`#000000`,caret:`#000000`,selection:`#FFFD0054`,gutterBackground:`#FFFFFF`,gutterForeground:`#00000070`,lineHighlight:`#00000008`},styles:[{tag:Y.comment,color:`#CFCFCF`},{tag:[Y.number,Y.bool,Y.null],color:`#E66C29`},{tag:[Y.className,Y.definition(Y.propertyName),Y.function(Y.variableName),Y.labelName,Y.definition(Y.typeName)],color:`#2EB43B`},{tag:Y.keyword,color:`#D8B229`},{tag:Y.operator,color:`#4EA44E`,fontWeight:`bold`},{tag:[Y.definitionKeyword,Y.modifier],color:`#925A47`},{tag:Y.string,color:`#704D3D`},{tag:Y.typeName,color:`#2F8996`},{tag:[Y.variableName,Y.propertyName],color:`#77ACB0`},{tag:Y.self,color:`#77ACB0`,fontWeight:`bold`},{tag:Y.regexp,color:`#E3965E`},{tag:[Y.tagName,Y.angleBracket],color:`#BAA827`},{tag:Y.attributeName,color:`#B06520`},{tag:Y.derefOperator,color:`#000`}]}),my({variant:`light`,settings:{background:`#fef7e5`,foreground:`#586E75`,caret:`#000000`,selection:`#073642`,gutterBackground:`#fef7e5`,gutterForeground:`#586E7580`,lineHighlight:`#EEE8D5`},styles:[{tag:Y.comment,color:`#93A1A1`},{tag:Y.string,color:`#2AA198`},{tag:Y.regexp,color:`#D30102`},{tag:Y.number,color:`#D33682`},{tag:Y.variableName,color:`#268BD2`},{tag:[Y.keyword,Y.operator,Y.punctuation],color:`#859900`},{tag:[Y.definitionKeyword,Y.modifier],color:`#073642`,fontWeight:`bold`},{tag:[Y.className,Y.self,Y.definition(Y.propertyName)],color:`#268BD2`},{tag:Y.function(Y.variableName),color:`#268BD2`},{tag:[Y.bool,Y.null],color:`#B58900`},{tag:Y.tagName,color:`#268BD2`,fontWeight:`bold`},{tag:Y.angleBracket,color:`#93A1A1`},{tag:Y.attributeName,color:`#93A1A1`},{tag:Y.typeName,color:`#859900`}]});var hy=my({variant:`light`,settings:{background:`#FFFFFF`,foreground:`#4D4D4C`,caret:`#AEAFAD`,selection:`#D6D6D6`,gutterBackground:`#FFFFFF`,gutterForeground:`#4D4D4C80`,lineHighlight:`#EFEFEF`},styles:[{tag:Y.comment,color:`#8E908C`},{tag:[Y.variableName,Y.self,Y.propertyName,Y.attributeName,Y.regexp],color:`#C82829`},{tag:[Y.number,Y.bool,Y.null],color:`#F5871F`},{tag:[Y.className,Y.typeName,Y.definition(Y.typeName)],color:`#C99E00`},{tag:[Y.string,Y.special(Y.brace)],color:`#718C00`},{tag:Y.operator,color:`#3E999F`},{tag:[Y.definition(Y.propertyName),Y.function(Y.variableName)],color:`#4271AE`},{tag:Y.keyword,color:`#8959A8`},{tag:Y.derefOperator,color:`#4D4D4C`}]}),gy=(e,t)=>{let{on:n,trigger:r}=Ge(),i=M(new G({doc:``,extensions:[Ad(),Hu.of([pg,...fg,...Dm]),ly(),j_(),cm(),hy,G.updateListener.of(e=>{if(e.docChanged){let t=e.state.doc.toString();a.value=t,r(t)}}),...t?[t]:[]]}));o(e,()=>{e.value&&e.value.append(i.value.dom)},{immediate:!0});let a=w(i.value.state.doc.toString());return{editor:i,value:ee(a),update:e=>{i.value.state.doc.toString()!==e&&i.value&&i.value.dispatch({changes:{from:0,to:i.value.state.doc.length,insert:e}})},onUpdate:n}},_y=Symbol.for(`@ts-pattern/matcher`),vy=Symbol.for(`@ts-pattern/isVariadic`),yy=`@ts-pattern/anonymous-select-key`,by=e=>!!(e&&typeof e==`object`),xy=e=>e&&!!e[_y],Sy=(e,t,n)=>{if(xy(e)){let{matched:r,selections:i}=e[_y]().match(t);return r&&i&&Object.keys(i).forEach(e=>n(e,i[e])),r}if(by(e)){if(!by(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let r=[],i=[],a=[];for(let t of e.keys()){let n=e[t];xy(n)&&n[vy]?a.push(n):a.length?i.push(n):r.push(n)}if(a.length){if(a.length>1)throw Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<r.length+i.length)return!1;let e=t.slice(0,r.length),o=i.length===0?[]:t.slice(-i.length),s=t.slice(r.length,i.length===0?1/0:-i.length);return r.every((t,r)=>Sy(t,e[r],n))&&i.every((e,t)=>Sy(e,o[t],n))&&(a.length===0||Sy(a[0],s,n))}return e.length===t.length&&e.every((e,r)=>Sy(e,t[r],n))}return Reflect.ownKeys(e).every(r=>{let i=e[r];return(r in t||xy(a=i)&&a[_y]().matcherType===`optional`)&&Sy(i,t[r],n);var a})}return Object.is(t,e)},Cy=e=>{var t;return by(e)?xy(e)?(t=e[_y]()).getSelectionKeys?.call(t)??[]:wy(Array.isArray(e)?e:Object.values(e),Cy):[]},wy=(e,t)=>e.reduce((e,n)=>e.concat(t(n)),[]);function Ty(e){return Object.assign(e,{optional:()=>Dy(e),and:t=>X(e,t),or:t=>Oy(e,t),select:t=>t===void 0?ky(e):ky(t,e)})}function Ey(e){return Object.assign((e=>Object.assign(e,{[Symbol.iterator](){let t=0,n=[{value:Object.assign(e,{[vy]:!0}),done:!1},{done:!0,value:void 0}];return{next:()=>n[t++]??n.at(-1)}}}))(e),{optional:()=>Ey(Dy(e)),select:t=>Ey(t===void 0?ky(e):ky(t,e))})}function Dy(e){return Ty({[_y]:()=>({match:t=>{let n={},r=(e,t)=>{n[e]=t};return t===void 0?(Cy(e).forEach(e=>r(e,void 0)),{matched:!0,selections:n}):{matched:Sy(e,t,r),selections:n}},getSelectionKeys:()=>Cy(e),matcherType:`optional`})})}function X(...e){return Ty({[_y]:()=>({match:t=>{let n={},r=(e,t)=>{n[e]=t};return{matched:e.every(e=>Sy(e,t,r)),selections:n}},getSelectionKeys:()=>wy(e,Cy),matcherType:`and`})})}function Oy(...e){return Ty({[_y]:()=>({match:t=>{let n={},r=(e,t)=>{n[e]=t};return wy(e,Cy).forEach(e=>r(e,void 0)),{matched:e.some(e=>Sy(e,t,r)),selections:n}},getSelectionKeys:()=>wy(e,Cy),matcherType:`or`})})}function Z(e){return{[_y]:()=>({match:t=>({matched:!!e(t)})})}}function ky(...e){let t=typeof e[0]==`string`?e[0]:void 0,n=e.length===2?e[1]:typeof e[0]==`string`?void 0:e[0];return Ty({[_y]:()=>({match:e=>{let r={[t??yy]:e};return{matched:n===void 0||Sy(n,e,(e,t)=>{r[e]=t}),selections:r}},getSelectionKeys:()=>[t??yy].concat(n===void 0?[]:Cy(n))})})}function Ay(e){return typeof e==`number`}function jy(e){return typeof e==`string`}function My(e){return typeof e==`bigint`}Ty(Z(function(e){return!0}));var Ny=e=>Object.assign(Ty(e),{startsWith:t=>{return Ny(X(e,(n=t,Z(e=>jy(e)&&e.startsWith(n)))));var n},endsWith:t=>{return Ny(X(e,(n=t,Z(e=>jy(e)&&e.endsWith(n)))));var n},minLength:t=>Ny(X(e,(e=>Z(t=>jy(t)&&t.length>=e))(t))),length:t=>Ny(X(e,(e=>Z(t=>jy(t)&&t.length===e))(t))),maxLength:t=>Ny(X(e,(e=>Z(t=>jy(t)&&t.length<=e))(t))),includes:t=>{return Ny(X(e,(n=t,Z(e=>jy(e)&&e.includes(n)))));var n},regex:t=>{return Ny(X(e,(n=t,Z(e=>jy(e)&&!!e.match(n)))));var n}});Ny(Z(jy));var Py=e=>Object.assign(Ty(e),{between:(t,n)=>Py(X(e,((e,t)=>Z(n=>Ay(n)&&e<=n&&t>=n))(t,n))),lt:t=>Py(X(e,(e=>Z(t=>Ay(t)&&t<e))(t))),gt:t=>Py(X(e,(e=>Z(t=>Ay(t)&&t>e))(t))),lte:t=>Py(X(e,(e=>Z(t=>Ay(t)&&t<=e))(t))),gte:t=>Py(X(e,(e=>Z(t=>Ay(t)&&t>=e))(t))),int:()=>Py(X(e,Z(e=>Ay(e)&&Number.isInteger(e)))),finite:()=>Py(X(e,Z(e=>Ay(e)&&Number.isFinite(e)))),positive:()=>Py(X(e,Z(e=>Ay(e)&&e>0))),negative:()=>Py(X(e,Z(e=>Ay(e)&&e<0)))});Py(Z(Ay));var Fy=e=>Object.assign(Ty(e),{between:(t,n)=>Fy(X(e,((e,t)=>Z(n=>My(n)&&e<=n&&t>=n))(t,n))),lt:t=>Fy(X(e,(e=>Z(t=>My(t)&&t<e))(t))),gt:t=>Fy(X(e,(e=>Z(t=>My(t)&&t>e))(t))),lte:t=>Fy(X(e,(e=>Z(t=>My(t)&&t<=e))(t))),gte:t=>Fy(X(e,(e=>Z(t=>My(t)&&t>=e))(t))),positive:()=>Fy(X(e,Z(e=>My(e)&&e>0))),negative:()=>Fy(X(e,Z(e=>My(e)&&e<0)))});Fy(Z(My)),Ty(Z(function(e){return typeof e==`boolean`})),Ty(Z(function(e){return typeof e==`symbol`})),Ty(Z(function(e){return e==null})),Ty(Z(function(e){return e!=null}));var Iy=class extends Error{constructor(e){let t;try{t=JSON.stringify(e)}catch{t=e}super(`Pattern matching error: no pattern matches value ${t}`),this.input=void 0,this.input=e}},Ly={matched:!1,value:void 0};function Ry(e){return new zy(e,Ly)}var zy=class e{constructor(e,t){this.input=void 0,this.state=void 0,this.input=e,this.state=t}with(...t){if(this.state.matched)return this;let n=t[t.length-1],r=[t[0]],i;t.length===3&&typeof t[1]==`function`?i=t[1]:t.length>2&&r.push(...t.slice(1,t.length-1));let a=!1,o={},s=(e,t)=>{a=!0,o[e]=t},c=!r.some(e=>Sy(e,this.input,s))||i&&!i(this.input)?Ly:{matched:!0,value:n(a?yy in o?o[yy]:o:this.input,this.input)};return new e(this.input,c)}when(t,n){if(this.state.matched)return this;let r=!!t(this.input);return new e(this.input,r?{matched:!0,value:n(this.input,this.input)}:Ly)}otherwise(e){return this.state.matched?this.state.value:e(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new Iy(this.input)}run(){return this.exhaustive()}returnType(){return this}},By=e=>Ry(e).returnType().with({type:`path`},()=>`string`).with({type:`input`,options:{kind:`number`}},()=>`number`).with({type:`input`,options:{kind:`text`}},()=>`string`).with({type:`boolean`},()=>`boolean`).with({type:`checkbox`},()=>`boolean`).with({type:`select`},()=>`string`).with({type:`multi-select`},()=>`object`).with({type:`json`},()=>`object`).with({type:`expression`},()=>`string`).with({type:`array`,options:{kind:`number`}},()=>`object`).with({type:`array`,options:{kind:`text`}},()=>`object`).with({type:`electron:configure:v2`},()=>`object`).with({type:`netlify-site`},()=>`string`).with({type:`color`},()=>`string`).exhaustive(),Vy=e=>Ry(e).returnType().with({type:`path`},()=>`mdi-alphabetical-variant`).with({type:`input`,options:{kind:`number`}},()=>`mdi-numeric`).with({type:`input`,options:{kind:`text`}},()=>`mdi-alphabetical-variant`).with({type:`boolean`},()=>`mdi-toggle-switch`).with({type:`checkbox`},()=>`mdi-toggle-switch`).with({type:`select`},()=>`mdi-alphabetical-variant`).with({type:`multi-select`},()=>`mdi-code-brackets`).with({type:`json`},()=>`mdi-code-braces`).with({type:`expression`},()=>`mdi-`).with({type:`array`,options:{kind:`number`}},()=>`mdi-code-brackets`).with({type:`array`,options:{kind:`text`}},()=>`mdi-code-brackets`).with({type:`electron:configure:v2`},()=>`mdi-code-braces`).with({type:`netlify-site`},()=>`mdi-code-braces`).with({type:`color`},()=>`mdi-palette`).exhaustive(),Hy=Math.min,Uy=Math.max,Wy=Math.round,Gy=Math.floor,Ky=e=>({x:e,y:e}),qy={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Jy(e,t,n){return Uy(e,Hy(t,n))}function Yy(e,t){return typeof e==`function`?e(t):e}function Xy(e){return e.split(`-`)[0]}function Zy(e){return e.split(`-`)[1]}function Qy(e){return e===`x`?`y`:`x`}function $y(e){return e===`y`?`height`:`width`}function eb(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function tb(e){return Qy(eb(e))}function nb(e,t,n){n===void 0&&(n=!1);let r=Zy(e),i=tb(e),a=$y(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=db(o)),[o,db(o)]}function rb(e){let t=db(e);return[ib(e),t,ib(t)]}function ib(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var ab=[`left`,`right`],ob=[`right`,`left`],sb=[`top`,`bottom`],cb=[`bottom`,`top`];function lb(e,t,n){switch(e){case`top`:case`bottom`:return n?t?ob:ab:t?ab:ob;case`left`:case`right`:return t?sb:cb;default:return[]}}function ub(e,t,n,r){let i=Zy(e),a=lb(Xy(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(ib)))),a}function db(e){let t=Xy(e);return qy[t]+e.slice(t.length)}function fb(e){return{top:0,right:0,bottom:0,left:0,...e}}function pb(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:fb(e)}function mb(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function hb(e,t,n){let{reference:r,floating:i}=e,a=eb(t),o=tb(t),s=$y(o),c=Xy(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Zy(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function gb(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Yy(t,e),p=pb(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=mb(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=mb(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var _b=50,vb=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:gb},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=hb(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<_b&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=hb(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},yb=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Yy(e,t)||{};if(l==null)return{};let d=pb(u),f={x:n,y:r},p=tb(i),m=$y(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Hy(d[_],T),D=Hy(d[v],T),O=E,k=C-h[m]-D,A=C/2-h[m]/2+w,j=Jy(O,A,k),ee=!c.arrow&&Zy(i)!=null&&A!==j&&a.reference[m]/2-(A<O?E:D)-h[m]/2<0,M=ee?A<O?A-O:A-k:0;return{[p]:f[p]+M,data:{[p]:j,centerOffset:A-j-M,...ee&&{alignmentOffset:M}},reset:ee}}}),bb=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Yy(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Xy(r),_=eb(o),v=Xy(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[db(o)]:rb(o)),x=p!==`none`;!d&&x&&b.push(...ub(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=nb(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==eb(t))||T.every(e=>eb(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=eb(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}},xb=new Set([`left`,`top`]);async function Sb(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Xy(n),s=Zy(n),c=eb(n)===`y`,l=xb.has(o)?-1:1,u=a&&c?-1:1,d=Yy(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Cb=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Sb(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},wb=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Yy(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=eb(Xy(i)),p=Qy(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Jy(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Jy(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}};function Tb(){return typeof window<`u`}function Eb(e){return kb(e)?(e.nodeName||``).toLowerCase():`#document`}function Db(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ob(e){return((kb(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function kb(e){return Tb()?e instanceof Node||e instanceof Db(e).Node:!1}function Ab(e){return Tb()?e instanceof Element||e instanceof Db(e).Element:!1}function jb(e){return Tb()?e instanceof HTMLElement||e instanceof Db(e).HTMLElement:!1}function Mb(e){return!Tb()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Db(e).ShadowRoot}function Nb(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Wb(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Pb(e){return/^(table|td|th)$/.test(Eb(e))}function Fb(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Ib=/transform|translate|scale|rotate|perspective|filter/,Lb=/paint|layout|strict|content/,Rb=e=>!!e&&e!==`none`,zb;function Bb(e){let t=Ab(e)?Wb(e):e;return Rb(t.transform)||Rb(t.translate)||Rb(t.scale)||Rb(t.rotate)||Rb(t.perspective)||!Hb()&&(Rb(t.backdropFilter)||Rb(t.filter))||Ib.test(t.willChange||``)||Lb.test(t.contain||``)}function Vb(e){let t=Kb(e);for(;jb(t)&&!Ub(t);){if(Bb(t))return t;if(Fb(t))return null;t=Kb(t)}return null}function Hb(){return zb??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),zb}function Ub(e){return/^(html|body|#document)$/.test(Eb(e))}function Wb(e){return Db(e).getComputedStyle(e)}function Gb(e){return Ab(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Kb(e){if(Eb(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Mb(e)&&e.host||Ob(e);return Mb(t)?t.host:t}function qb(e){let t=Kb(e);return Ub(t)?e.ownerDocument?e.ownerDocument.body:e.body:jb(t)&&Nb(t)?t:qb(t)}function Jb(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=qb(e),i=r===e.ownerDocument?.body,a=Db(r);if(i){let e=Yb(a);return t.concat(a,a.visualViewport||[],Nb(r)?r:[],e&&n?Jb(e):[])}else return t.concat(r,Jb(r,[],n))}function Yb(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Xb(e){let t=Wb(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=jb(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Wy(n)!==a||Wy(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Zb(e){return Ab(e)?e:e.contextElement}function Qb(e){let t=Zb(e);if(!jb(t))return Ky(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Xb(t),o=(a?Wy(n.width):n.width)/r,s=(a?Wy(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var $b=Ky(0);function ex(e){let t=Db(e);return!Hb()||!t.visualViewport?$b:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function tx(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Db(e)?!1:t}function nx(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Zb(e),o=Ky(1);t&&(r?Ab(r)&&(o=Qb(r)):o=Qb(e));let s=tx(a,n,r)?ex(a):Ky(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=Db(a),t=r&&Ab(r)?Db(r):r,n=e,i=Yb(n);for(;i&&r&&t!==n;){let e=Qb(i),t=i.getBoundingClientRect(),r=Wb(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Db(i),i=Yb(n)}}return mb({width:u,height:d,x:c,y:l})}function rx(e,t){let n=Gb(e).scrollLeft;return t?t.left+n:nx(Ob(e)).left+n}function ix(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-rx(e,n),y:n.top+t.scrollTop}}function ax(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Ob(r),s=t?Fb(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Ky(1),u=Ky(0),d=jb(r);if((d||!d&&!a)&&((Eb(r)!==`body`||Nb(o))&&(c=Gb(r)),d)){let e=nx(r);l=Qb(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?ix(o,c):Ky(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function ox(e){return Array.from(e.getClientRects())}function sx(e){let t=Ob(e),n=Gb(e),r=e.ownerDocument.body,i=Uy(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Uy(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+rx(e),s=-n.scrollTop;return Wb(r).direction===`rtl`&&(o+=Uy(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var cx=25;function lx(e,t){let n=Db(e),r=Ob(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Hb();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=rx(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=cx&&(a-=o)}else l<=cx&&(a+=l);return{width:a,height:o,x:s,y:c}}function ux(e,t){let n=nx(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=jb(e)?Qb(e):Ky(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function dx(e,t,n){let r;if(t===`viewport`)r=lx(e,n);else if(t===`document`)r=sx(Ob(e));else if(Ab(t))r=ux(t,n);else{let n=ex(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return mb(r)}function fx(e,t){let n=Kb(e);return n===t||!Ab(n)||Ub(n)?!1:Wb(n).position===`fixed`||fx(n,t)}function px(e,t){let n=t.get(e);if(n)return n;let r=Jb(e,[],!1).filter(e=>Ab(e)&&Eb(e)!==`body`),i=null,a=Wb(e).position===`fixed`,o=a?Kb(e):e;for(;Ab(o)&&!Ub(o);){let t=Wb(o),n=Bb(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Nb(o)&&!n&&fx(e,o))?r=r.filter(e=>e!==o):i=t,o=Kb(o)}return t.set(e,r),r}function mx(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Fb(t)?[]:px(t,this._c):[].concat(n),r],o=dx(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=dx(t,a[e],i);s=Uy(n.top,s),c=Hy(n.right,c),l=Hy(n.bottom,l),u=Uy(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function hx(e){let{width:t,height:n}=Xb(e);return{width:t,height:n}}function gx(e,t,n){let r=jb(t),i=Ob(t),a=n===`fixed`,o=nx(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Ky(0);function l(){c.x=rx(i)}if(r||!r&&!a)if((Eb(t)!==`body`||Nb(i))&&(s=Gb(t)),r){let e=nx(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?ix(i,s):Ky(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function _x(e){return Wb(e).position===`static`}function vx(e,t){if(!jb(e)||Wb(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Ob(e)===n&&(n=n.ownerDocument.body),n}function yx(e,t){let n=Db(e);if(Fb(e))return n;if(!jb(e)){let t=Kb(e);for(;t&&!Ub(t);){if(Ab(t)&&!_x(t))return t;t=Kb(t)}return n}let r=vx(e,t);for(;r&&Pb(r)&&_x(r);)r=vx(r,t);return r&&Ub(r)&&_x(r)&&!Bb(r)?n:r||Vb(e)||n}var bx=async function(e){let t=this.getOffsetParent||yx,n=this.getDimensions,r=await n(e.floating);return{reference:gx(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function xx(e){return Wb(e).direction===`rtl`}var Sx={convertOffsetParentRelativeRectToViewportRelativeRect:ax,getDocumentElement:Ob,getClippingRect:mx,getOffsetParent:yx,getElementRects:bx,getClientRects:ox,getDimensions:hx,getScale:Qb,isElement:Ab,isRTL:xx};function Cx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function wx(e,t){let n=null,r,i=Ob(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=Gy(d),h=Gy(i.clientWidth-(u+f)),g=Gy(i.clientHeight-(d+p)),_=Gy(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Uy(0,Hy(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!Cx(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Tx(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Zb(e),u=i||a?[...l?Jb(l):[],...t?Jb(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?wx(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?nx(e):null;c&&g();function g(){let t=nx(e);h&&!Cx(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Ex=Cb,Dx=wb,Ox=bb,kx=yb,Ax=(e,t,n)=>{let r=new Map,i={platform:Sx,...n},a={...i.platform,_c:r};return vb(e,t,{...i,platform:a})};function jx(e){return typeof e==`object`&&!!e&&`$el`in e}function Mx(e){if(jx(e)){let t=e.$el;return kb(t)&&Eb(t)===`#comment`?null:t}return e}function Nx(e){return typeof e==`function`?e():b(e)}function Px(e){return{name:`arrow`,options:e,fn(t){let n=Mx(Nx(e.element));return n==null?{}:kx({element:n,padding:e.padding}).fn(t)}}}function Fx(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ix(e,t){let n=Fx(e);return Math.round(t*n)/n}function Lx(e,t,n){n===void 0&&(n={});let r=n.whileElementsMounted,i=D(()=>Nx(n.open)??!0),a=D(()=>Nx(n.middleware)),s=D(()=>Nx(n.placement)??`bottom`),c=D(()=>Nx(n.strategy)??`absolute`),l=D(()=>Nx(n.transform)??!0),u=D(()=>Mx(e.value)),d=D(()=>Mx(t.value)),f=w(0),p=w(0),m=w(c.value),h=w(s.value),_=M({}),v=w(!1),y=D(()=>{let e={position:m.value,left:`0`,top:`0`};if(!d.value)return e;let t=Ix(d.value,f.value),n=Ix(d.value,p.value);return l.value?{...e,transform:`translate(`+t+`px, `+n+`px)`,...Fx(d.value)>=1.5&&{willChange:`transform`}}:{position:m.value,left:t+`px`,top:n+`px`}}),b;function x(){if(u.value==null||d.value==null)return;let e=i.value;Ax(u.value,d.value,{middleware:a.value,placement:s.value,strategy:c.value}).then(t=>{f.value=t.x,p.value=t.y,m.value=t.strategy,h.value=t.placement,_.value=t.middlewareData,v.value=e!==!1})}function S(){typeof b==`function`&&(b(),b=void 0)}function C(){if(S(),r===void 0){x();return}if(u.value!=null&&d.value!=null){b=r(u.value,d.value,x);return}}function T(){i.value||(v.value=!1)}return o([a,s,c,i],x,{flush:`sync`}),o([u,d],C,{flush:`sync`}),o(i,T,{flush:`sync`}),g()&&te(S),{x:k(f),y:k(p),strategy:k(m),placement:k(h),middlewareData:k(_),isPositioned:k(v),floatingStyles:y,update:x}}var Rx=Fe?window:void 0;function zx(e){let t=Oe(e);return t?.$el??t}function Bx(...e){let t,n,r,i;if(typeof e[0]==`string`||Array.isArray(e[0])?([n,r,i]=e,t=Rx):[t,n,r,i]=e,!t)return Le;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);let a=[],s=()=>{a.forEach(e=>e()),a.length=0},c=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),l=o(()=>[zx(t),Oe(i)],([e,t])=>{if(s(),!e)return;let i=St(t)?{...t}:t;a.push(...n.flatMap(t=>r.map(n=>c(e,t,n,i))))},{immediate:!0,flush:`post`}),u=()=>{l(),s()};return le(u),u}var Vx=!1;function Hx(e,t,n={}){let{window:r=Rx,ignore:i=[],capture:a=!0,detectIframe:o=!1}=n;if(!r)return Le;fe&&!Vx&&(Vx=!0,Array.from(r.document.body.children).forEach(e=>e.addEventListener(`click`,Le)),r.document.documentElement.addEventListener(`click`,Le));let s=!0,c=e=>Oe(i).some(t=>{if(typeof t==`string`)return Array.from(r.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{let n=zx(t);return n&&(e.target===n||e.composedPath().includes(n))}}),l=n=>{let r=zx(e);if(!(!r||r===n.target||n.composedPath().includes(r))){if(n.detail===0&&(s=!c(n)),!s){s=!0;return}t(n)}},u=!1,d=[Bx(r,`click`,e=>{u||(u=!0,setTimeout(()=>{u=!1},0),l(e))},{passive:!0,capture:a}),Bx(r,`pointerdown`,t=>{let n=zx(e);s=!c(t)&&!!(n&&!t.composedPath().includes(n))},{passive:!0}),o&&Bx(r,`blur`,n=>{setTimeout(()=>{let i=zx(e);r.document.activeElement?.tagName===`IFRAME`&&!i?.contains(r.document.activeElement)&&t(n)},0)})].filter(Boolean);return()=>d.forEach(e=>e())}var Ux={[wt.mounted](e,t){let n=!t.modifiers.bubble;if(typeof t.value==`function`)e.__onClickOutside_stop=Hx(e,t.value,{capture:n});else{let[r,i]=t.value;e.__onClickOutside_stop=Hx(e,r,Object.assign({capture:n},i))}},[wt.unmounted](e){e.__onClickOutside_stop()}};wt.mounted,wt.mounted,wt.mounted,wt.mounted,wt.mounted;function Wx(e){return typeof Window<`u`&&e instanceof Window?e.document.documentElement:typeof Document<`u`&&e instanceof Document?e.documentElement:e}wt.mounted,wt.mounted,wt.mounted,wt.mounted;function Gx(e){let t=window.getComputedStyle(e);if(t.overflowX===`scroll`||t.overflowY===`scroll`||t.overflowX===`auto`&&e.clientWidth<e.scrollWidth||t.overflowY===`auto`&&e.clientHeight<e.scrollHeight)return!0;{let t=e.parentNode;return!t||t.tagName===`BODY`?!1:Gx(t)}}function Kx(e){let t=e||window.event,n=t.target;return Gx(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}var qx=new WeakMap;function Jx(e,t=!1){let n=w(t),r=null,i=``;o(me(e),e=>{let t=Wx(Oe(e));if(t){let e=t;if(qx.get(e)||qx.set(e,e.style.overflow),e.style.overflow!==`hidden`&&(i=e.style.overflow),e.style.overflow===`hidden`)return n.value=!0;if(n.value)return e.style.overflow=`hidden`}},{immediate:!0});let a=()=>{let t=Wx(Oe(e));!t||n.value||(fe&&(r=Bx(t,`touchmove`,e=>{Kx(e)},{passive:!1})),t.style.overflow=`hidden`,n.value=!0)},s=()=>{let t=Wx(Oe(e));!t||!n.value||(fe&&r?.(),t.style.overflow=i,qx.delete(t),n.value=!1)};return le(s),D({get(){return n.value},set(e){e?a():s()}})}function Yx(){let e=!1,t=w(!1);return(n,r)=>{if(t.value=r.value,e)return;e=!0;let i=Jx(n,r.value);o(t,e=>i.value=e)}}Yx();var Xx=kt.extend({name:`message`,style:`
|
|
436
436
|
.p-message {
|
|
437
437
|
display: grid;
|
|
438
438
|
grid-template-rows: 1fr;
|
|
@@ -747,7 +747,7 @@ import{n as e,t}from"./chunk-B3K2TuZy.js";import{At as n,Dt as r,E as i,F as a,G
|
|
|
747
747
|
grid-template-rows: 0fr;
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
|
-
`,classes:{root:function(e){var t=e.props;return[`p-message p-component p-message-`+t.severity,{"p-message-outlined":t.variant===`outlined`,"p-message-simple":t.variant===`simple`,"p-message-sm":t.size===`small`,"p-message-lg":t.size===`large`}]},contentWrapper:`p-message-content-wrapper`,content:`p-message-content`,icon:`p-message-icon`,text:`p-message-text`,closeButton:`p-message-close-button`,closeIcon:`p-message-close-icon`}}),Zx={name:`BaseMessage`,extends:
|
|
750
|
+
`,classes:{root:function(e){var t=e.props;return[`p-message p-component p-message-`+t.severity,{"p-message-outlined":t.variant===`outlined`,"p-message-simple":t.variant===`simple`,"p-message-sm":t.size===`small`,"p-message-lg":t.size===`large`}]},contentWrapper:`p-message-content-wrapper`,content:`p-message-content`,icon:`p-message-icon`,text:`p-message-text`,closeButton:`p-message-close-button`,closeIcon:`p-message-close-icon`}}),Zx={name:`BaseMessage`,extends:Ne,props:{severity:{type:String,default:`info`},closable:{type:Boolean,default:!1},life:{type:Number,default:null},icon:{type:String,default:void 0},closeIcon:{type:String,default:void 0},closeButtonProps:{type:null,default:null},size:{type:String,default:null},variant:{type:String,default:null}},style:Xx,provide:function(){return{$pcMessage:this,$parentInstance:this}}};function Qx(e){"@babel/helpers - typeof";return Qx=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Qx(e)}function $x(e,t,n){return(t=eS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eS(e){var t=tS(e,`string`);return Qx(t)==`symbol`?t:t+``}function tS(e,t){if(Qx(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qx(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var nS={name:`Message`,extends:Zx,inheritAttrs:!1,emits:[`close`,`life-end`],timeout:null,data:function(){return{visible:!0}},mounted:function(){var e=this;this.life&&setTimeout(function(){e.visible=!1,e.$emit(`life-end`)},this.life)},methods:{close:function(e){this.visible=!1,this.$emit(`close`,e)}},computed:{closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0},dataP:function(){return we($x($x({outlined:this.variant===`outlined`,simple:this.variant===`simple`},this.severity,this.severity),this.size,this.size))}},directives:{ripple:ze},components:{TimesIcon:Te}};function rS(e){"@babel/helpers - typeof";return rS=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},rS(e)}function iS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function aS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?iS(Object(n),!0).forEach(function(t){oS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oS(e,t,n){return(t=sS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sS(e){var t=cS(e,`string`);return rS(t)==`symbol`?t:t+``}function cS(e,t){if(rS(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rS(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var lS=[`data-p`],uS=[`data-p`],dS=[`data-p`],fS=[`aria-label`,`data-p`],pS=[`data-p`];function mS(e,t,n,i,a,o){var l=u(`TimesIcon`),f=p(`ripple`);return d(),v(Ee,m({name:`p-message`,appear:``},e.ptmi(`transition`)),{default:j(function(){return[a.visible?(d(),A(`div`,m({key:0,class:e.cx(`root`),role:`alert`,"aria-live":`assertive`,"aria-atomic":`true`,"data-p":o.dataP},e.ptm(`root`)),[P(`div`,m({class:e.cx(`contentWrapper`)},e.ptm(`contentWrapper`)),[e.$slots.container?s(e.$slots,`container`,{key:0,closeCallback:o.close}):(d(),A(`div`,m({key:1,class:e.cx(`content`),"data-p":o.dataP},e.ptm(`content`)),[s(e.$slots,`icon`,{class:r(e.cx(`icon`))},function(){return[(d(),v(ae(e.icon?`span`:null),m({class:[e.cx(`icon`),e.icon],"data-p":o.dataP},e.ptm(`icon`)),null,16,[`class`,`data-p`]))]}),e.$slots.default?(d(),A(`div`,m({key:0,class:e.cx(`text`),"data-p":o.dataP},e.ptm(`text`)),[s(e.$slots,`default`)],16,dS)):y(``,!0),e.closable?c((d(),A(`button`,m({key:1,class:e.cx(`closeButton`),"aria-label":o.closeAriaLabel,type:`button`,onClick:t[0]||=function(e){return o.close(e)},"data-p":o.dataP},aS(aS({},e.closeButtonProps),e.ptm(`closeButton`))),[s(e.$slots,`closeicon`,{},function(){return[e.closeIcon?(d(),A(`i`,m({key:0,class:[e.cx(`closeIcon`),e.closeIcon],"data-p":o.dataP},e.ptm(`closeIcon`)),null,16,pS)):(d(),v(l,m({key:1,class:[e.cx(`closeIcon`),e.closeIcon],"data-p":o.dataP},e.ptm(`closeIcon`)),null,16,[`class`,`data-p`]))]})],16,fS)),[[f]]):y(``,!0)],16,uS))],16)],16,lS)):y(``,!0)]}),_:3},16)}nS.render=mS;var hS=kt.extend({name:`listbox`,style:`
|
|
751
751
|
.p-listbox {
|
|
752
752
|
display: block;
|
|
753
753
|
background: dt('listbox.background');
|
|
@@ -870,7 +870,7 @@ import{n as e,t}from"./chunk-B3K2TuZy.js";import{At as n,Dt as r,E as i,F as a,G
|
|
|
870
870
|
width: 100%;
|
|
871
871
|
}
|
|
872
872
|
`,classes:{root:function(e){var t=e.instance,n=e.props;return[`p-listbox p-component`,{"p-listbox-striped":n.striped,"p-disabled":n.disabled,"p-listbox-fluid":n.fluid,"p-invalid":t.$invalid}]},header:`p-listbox-header`,pcFilter:`p-listbox-filter`,listContainer:`p-listbox-list-container`,list:`p-listbox-list`,optionGroup:`p-listbox-option-group`,option:function(e){var t=e.instance,n=e.props,r=e.option,i=e.index,a=e.getItemOptions;return[`p-listbox-option`,{"p-listbox-option-selected":t.isSelected(r)&&n.highlightOnSelect,"p-focus":t.focusedOptionIndex===t.getOptionIndex(i,a),"p-disabled":t.isOptionDisabled(r)}]},optionCheckIcon:`p-listbox-option-check-icon`,optionBlankIcon:`p-listbox-option-blank-icon`,emptyMessage:`p-listbox-empty-message`}}),gS={name:`BaseListbox`,extends:yt,props:{options:Array,optionLabel:null,optionValue:null,optionDisabled:null,optionGroupLabel:null,optionGroupChildren:null,listStyle:null,scrollHeight:{type:String,default:`14rem`},dataKey:null,multiple:{type:Boolean,default:!1},metaKeySelection:{type:Boolean,default:!1},filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:`contains`},filterFields:{type:Array,default:null},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!0},selectOnFocus:{type:Boolean,default:!1},focusOnHover:{type:Boolean,default:!0},highlightOnSelect:{type:Boolean,default:!0},checkmark:{type:Boolean,default:!1},filterMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},filterIcon:{type:String,default:void 0},striped:{type:Boolean,default:!1},tabindex:{type:Number,default:0},fluid:{type:Boolean,default:null},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},style:hS,provide:function(){return{$pcListbox:this,$parentInstance:this}}};function _S(e){return xS(e)||bS(e)||yS(e)||vS()}function vS(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
873
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yS(e,t){if(e){if(typeof e==`string`)return SS(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?SS(e,t):void 0}}function bS(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function xS(e){if(Array.isArray(e))return SS(e)}function SS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var CS={name:`Listbox`,extends:gS,inheritAttrs:!1,emits:[`change`,`focus`,`blur`,`filter`,`item-dblclick`,`option-dblclick`],list:null,virtualScroller:null,optionTouched:!1,startRangeIndex:-1,searchTimeout:null,searchValue:``,data:function(){return{filterValue:null,focused:!1,focusedOptionIndex:-1}},watch:{options:function(){this.autoUpdateModel()}},mounted:function(){this.autoUpdateModel()},methods:{getOptionIndex:function(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel:function(e){return this.optionLabel?Ke(e,this.optionLabel):typeof e==`string`||typeof e==`number`||typeof e==`boolean`?e:null},getOptionValue:function(e){return this.optionValue?Ke(e,this.optionValue):e},getOptionRenderKey:function(e,t){return(this.dataKey?Ke(e,this.dataKey):this.getOptionLabel(e))+`_`+t},getPTOptions:function(e,t,n,r){return this.ptm(r,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex===this.getOptionIndex(n,t),disabled:this.isOptionDisabled(e)}})},isOptionDisabled:function(e){return this.optionDisabled?Ke(e,this.optionDisabled):!1},isOptionGroup:function(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel:function(e){return Ke(e,this.optionGroupLabel)},getOptionGroupChildren:function(e){return Ke(e,this.optionGroupChildren)},getAriaPosInset:function(e){var t=this;return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter(function(e){return t.isOptionGroup(e)}).length:e)+1},onFirstHiddenFocus:function(){Ct(this.list);var e=rt(this.$el,`:not([data-p-hidden-focusable="true"])`);this.$refs.lastHiddenFocusableElement.tabIndex=Pe(e)?void 0:-1,this.$refs.firstHiddenFocusableElement.tabIndex=-1},onLastHiddenFocus:function(e){e.relatedTarget===this.list?(Ct(rt(this.$el,`:not([data-p-hidden-focusable="true"])`)),this.$refs.firstHiddenFocusableElement.tabIndex=void 0):Ct(this.$refs.firstHiddenFocusableElement),this.$refs.lastHiddenFocusableElement.tabIndex=-1},onFocusout:function(e){!this.$el.contains(e.relatedTarget)&&this.$refs.lastHiddenFocusableElement&&this.$refs.firstHiddenFocusableElement&&(this.$refs.lastHiddenFocusableElement.tabIndex=this.$refs.firstHiddenFocusableElement.tabIndex=void 0)},onListFocus:function(e){this.focused=!0,this.focusedOptionIndex=this.focusedOptionIndex===-1?this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.findSelectedOptionIndex():this.focusedOptionIndex,this.autoUpdateModel(),this.scrollInView(this.focusedOptionIndex),this.$emit(`focus`,e)},onListBlur:function(e){this.focused=!1,this.focusedOptionIndex=this.startRangeIndex=-1,this.searchValue=``,this.$emit(`blur`,e)},onListKeyDown:function(e){var t=this,n=e.metaKey||e.ctrlKey;switch(e.code){case`ArrowDown`:this.onArrowDownKey(e);break;case`ArrowUp`:this.onArrowUpKey(e);break;case`Home`:this.onHomeKey(e);break;case`End`:this.onEndKey(e);break;case`PageDown`:this.onPageDownKey(e);break;case`PageUp`:this.onPageUpKey(e);break;case`Enter`:case`NumpadEnter`:case`Space`:this.onSpaceKey(e);break;case`Tab`:break;case`ShiftLeft`:case`ShiftRight`:this.onShiftKey(e);break;default:if(this.multiple&&e.code===`KeyA`&&n){var r=this.visibleOptions.filter(function(e){return t.isValidOption(e)}).map(function(e){return t.getOptionValue(e)});this.updateModel(e,r),e.preventDefault();break}!n&&he(e.key)&&(this.searchOptions(e,e.key),e.preventDefault());break}},onOptionSelect:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-1;this.disabled||this.isOptionDisabled(t)||(this.multiple?this.onOptionSelectMultiple(e,t):this.onOptionSelectSingle(e,t),this.optionTouched=!1,n!==-1&&(this.focusedOptionIndex=n))},onOptionMouseDown:function(e,t){this.changeFocusedOptionIndex(e,t)},onOptionMouseMove:function(e,t){this.focusOnHover&&this.focused&&this.changeFocusedOptionIndex(e,t)},onOptionTouchEnd:function(){this.disabled||(this.optionTouched=!0)},onOptionDblClick:function(e,t){this.$emit(`item-dblclick`,{originalEvent:e,value:t}),this.$emit(`option-dblclick`,{originalEvent:e,value:t})},onOptionSelectSingle:function(e,t){var n=this.isSelected(t),r=!1,i=null;if(!this.optionTouched&&this.metaKeySelection){var a=e&&(e.metaKey||e.ctrlKey);n?a&&(i=null,r=!0):(i=this.getOptionValue(t),r=!0)}else i=n?null:this.getOptionValue(t),r=!0;r&&this.updateModel(e,i)},onOptionSelectMultiple:function(e,t){var n=this.isSelected(t),r=null;if(!this.optionTouched&&this.metaKeySelection){var i=e.metaKey||e.ctrlKey;n?r=i?this.removeOption(t):[this.getOptionValue(t)]:(r=i&&this.d_value||[],r=[].concat(_S(r),[this.getOptionValue(t)]))}else r=n?this.removeOption(t):[].concat(_S(this.d_value||[]),[this.getOptionValue(t)]);this.updateModel(e,r)},onOptionSelectRange:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-1;if(n===-1&&(n=this.findNearestSelectedOptionIndex(r,!0)),r===-1&&(r=this.findNearestSelectedOptionIndex(n)),n!==-1&&r!==-1){var i=Math.min(n,r),a=Math.max(n,r),o=this.visibleOptions.slice(i,a+1).filter(function(e){return t.isValidOption(e)}).map(function(e){return t.getOptionValue(e)});this.updateModel(e,o)}},onFilterChange:function(e){this.$emit(`filter`,{originalEvent:e,value:e.target.value,filterValue:this.visibleOptions}),this.focusedOptionIndex=this.startRangeIndex=-1},onFilterKeyDown:function(e){switch(e.code){case`ArrowDown`:this.onArrowDownKey(e);break;case`ArrowUp`:this.onArrowUpKey(e);break;case`ArrowLeft`:case`ArrowRight`:this.onArrowLeftKey(e,!0);break;case`Home`:this.onHomeKey(e,!0);break;case`End`:this.onEndKey(e,!0);break;case`Enter`:case`NumpadEnter`:this.onEnterKey(e);break;case`ShiftLeft`:case`ShiftRight`:this.onShiftKey(e);break}},onArrowDownKey:function(e){var t=this.focusedOptionIndex===-1?this.findFirstFocusedOptionIndex():this.findNextOptionIndex(this.focusedOptionIndex);this.multiple&&e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex,t),this.changeFocusedOptionIndex(e,t),e.preventDefault()},onArrowUpKey:function(e){var t=this.focusedOptionIndex===-1?this.findLastFocusedOptionIndex():this.findPrevOptionIndex(this.focusedOptionIndex);this.multiple&&e.shiftKey&&this.onOptionSelectRange(e,t,this.startRangeIndex),this.changeFocusedOptionIndex(e,t),e.preventDefault()},onArrowLeftKey:function(e){arguments.length>1&&arguments[1]!==void 0&&arguments[1]&&(this.focusedOptionIndex=-1)},onHomeKey:function(e){if(arguments.length>1&&arguments[1]!==void 0&&arguments[1]){var t=e.currentTarget;e.shiftKey?t.setSelectionRange(0,e.target.selectionStart):(t.setSelectionRange(0,0),this.focusedOptionIndex=-1)}else{var n=e.metaKey||e.ctrlKey,r=this.findFirstOptionIndex();this.multiple&&e.shiftKey&&n&&this.onOptionSelectRange(e,r,this.startRangeIndex),this.changeFocusedOptionIndex(e,r)}e.preventDefault()},onEndKey:function(e){if(arguments.length>1&&arguments[1]!==void 0&&arguments[1]){var t=e.currentTarget;if(e.shiftKey)t.setSelectionRange(e.target.selectionStart,t.value.length);else{var n=t.value.length;t.setSelectionRange(n,n),this.focusedOptionIndex=-1}}else{var r=e.metaKey||e.ctrlKey,i=this.findLastOptionIndex();this.multiple&&e.shiftKey&&r&&this.onOptionSelectRange(e,this.startRangeIndex,i),this.changeFocusedOptionIndex(e,i)}e.preventDefault()},onPageUpKey:function(e){this.scrollInView(0),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey:function(e){this.focusedOptionIndex!==-1&&(this.multiple&&e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex):this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]))},onSpaceKey:function(e){e.preventDefault(),this.onEnterKey(e)},onShiftKey:function(){this.startRangeIndex=this.focusedOptionIndex},isOptionMatched:function(e){return this.isValidOption(e)&&typeof this.getOptionLabel(e)==`string`&&this.getOptionLabel(e)?.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))},isValidOption:function(e){return gt(e)&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isEquals:function(e,t){return ze(e,t,this.equalityKey)},isSelected:function(e){var t=this,n=this.getOptionValue(e);return this.multiple?(this.d_value||[]).some(function(e){return t.isEquals(e,n)}):this.isEquals(this.d_value,n)},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex(function(t){return e.isValidOption(t)})},findLastOptionIndex:function(){var e=this;return xe(this.visibleOptions,function(t){return e.isValidOption(t)})},findNextOptionIndex:function(e){var t=this,n=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex(function(e){return t.isValidOption(e)}):-1;return n>-1?n+e+1:e},findPrevOptionIndex:function(e){var t=this,n=e>0?xe(this.visibleOptions.slice(0,e),function(e){return t.isValidOption(e)}):-1;return n>-1?n:e},findSelectedOptionIndex:function(){var e=this;if(this.$filled)if(this.multiple){for(var t=function(){var t=e.d_value[r],n=e.visibleOptions.findIndex(function(n){return e.isValidSelectedOption(n)&&e.isEquals(t,e.getOptionValue(n))});if(n>-1)return{v:n}},n,r=this.d_value.length-1;r>=0;r--)if(n=t(),n)return n.v}else return this.visibleOptions.findIndex(function(t){return e.isValidSelectedOption(t)});return-1},findFirstSelectedOptionIndex:function(){var e=this;return this.$filled?this.visibleOptions.findIndex(function(t){return e.isValidSelectedOption(t)}):-1},findLastSelectedOptionIndex:function(){var e=this;return this.$filled?xe(this.visibleOptions,function(t){return e.isValidSelectedOption(t)}):-1},findNextSelectedOptionIndex:function(e){var t=this,n=this.$filled&&e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex(function(e){return t.isValidSelectedOption(e)}):-1;return n>-1?n+e+1:-1},findPrevSelectedOptionIndex:function(e){var t=this,n=this.$filled&&e>0?xe(this.visibleOptions.slice(0,e),function(e){return t.isValidSelectedOption(e)}):-1;return n>-1?n:-1},findNearestSelectedOptionIndex:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=-1;return this.$filled&&(t?(n=this.findPrevSelectedOptionIndex(e),n=n===-1?this.findNextSelectedOptionIndex(e):n):(n=this.findNextSelectedOptionIndex(e),n=n===-1?this.findPrevSelectedOptionIndex(e):n)),n>-1?n:e},findFirstFocusedOptionIndex:function(){var e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},searchOptions:function(e,t){var n=this;this.searchValue=(this.searchValue||``)+t;var r=-1;gt(this.searchValue)&&(this.focusedOptionIndex===-1?r=this.visibleOptions.findIndex(function(e){return n.isOptionMatched(e)}):(r=this.visibleOptions.slice(this.focusedOptionIndex).findIndex(function(e){return n.isOptionMatched(e)}),r=r===-1?this.visibleOptions.slice(0,this.focusedOptionIndex).findIndex(function(e){return n.isOptionMatched(e)}):r+this.focusedOptionIndex),r===-1&&this.focusedOptionIndex===-1&&(r=this.findFirstFocusedOptionIndex()),r!==-1&&this.changeFocusedOptionIndex(e,r)),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){n.searchValue=``,n.searchTimeout=null},500)},removeOption:function(e){var t=this;return this.d_value.filter(function(n){return!ze(n,t.getOptionValue(e),t.equalityKey)})},changeFocusedOptionIndex:function(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView(),this.selectOnFocus&&!this.multiple&&this.onOptionSelect(e,this.visibleOptions[t]))},scrollInView:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1;this.$nextTick(function(){var n=t===-1?e.focusedOptionId:`${e.$id}_${t}`,r=se(e.list,`li[id="${n}"]`);r?r.scrollIntoView&&r.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`smooth`}):e.virtualScrollerDisabled||e.virtualScroller&&e.virtualScroller.scrollToIndex(t===-1?e.focusedOptionIndex:t)})},autoUpdateModel:function(){this.selectOnFocus&&this.autoOptionFocus&&!this.$filled&&!this.multiple&&this.focused&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex]))},updateModel:function(e,t){this.writeValue(t,e),this.$emit(`change`,{originalEvent:e,value:t})},listRef:function(e,t){this.list=e,t&&t(e)},virtualScrollerRef:function(e){this.virtualScroller=e}},computed:{optionsListFlat:function(){return this.filterValue?de.filter(this.options,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale):this.options},optionsListGroup:function(){var e=this,t=[];return(this.options||[]).forEach(function(n){var r=e.getOptionGroupChildren(n)||[],i=e.filterValue?de.filter(r,e.searchFields,e.filterValue,e.filterMatchMode,e.filterLocale):r;i!=null&&i.length&&t.push.apply(t,[{optionGroup:n,group:!0}].concat(_S(i)))}),t},visibleOptions:function(){return this.optionGroupLabel?this.optionsListGroup:this.optionsListFlat},hasSelectedOption:function(){return gt(this.d_value)},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},filterResultMessageText:function(){return gt(this.visibleOptions)?this.filterMessageText.replaceAll(`{0}`,this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||``},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||``},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||``},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||``},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||``},selectedMessageText:function(){return this.$filled?this.selectionMessageText.replaceAll(`{0}`,this.multiple?this.d_value.length:`1`):this.emptySelectionMessageText},focusedOptionId:function(){return this.focusedOptionIndex===-1?null:`${this.$id}_${this.focusedOptionIndex}`},ariaSetSize:function(){var e=this;return this.visibleOptions.filter(function(t){return!e.isOptionGroup(t)}).length},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions},containerDataP:function(){return tt({invalid:this.$invalid,disabled:this.disabled})}},directives:{ripple:Fe},components:{InputText:Ye,VirtualScroller:ot,InputIcon:Ot,IconField:He,SearchIcon:Tt,CheckIcon:le,BlankIcon:St}},wS=[`id`,`data-p`],TS=[`tabindex`],ES=[`id`,`aria-multiselectable`,`aria-label`,`aria-labelledby`,`aria-activedescendant`,`aria-disabled`],DS=[`id`],OS=[`id`,`aria-label`,`aria-selected`,`aria-disabled`,`aria-setsize`,`aria-posinset`,`onClick`,`onMousedown`,`onMousemove`,`onDblclick`,`data-p-selected`,`data-p-focused`,`data-p-disabled`],kS=[`tabindex`];function AS(e,t,i,o,l,h){var g=u(`InputText`),b=u(`SearchIcon`),x=u(`InputIcon`),w=u(`IconField`),T=u(`CheckIcon`),E=u(`BlankIcon`),D=u(`VirtualScroller`),O=p(`ripple`);return d(),A(`div`,m({id:e.$id,class:e.cx(`root`),onFocusout:t[7]||=function(){return h.onFocusout&&h.onFocusout.apply(h,arguments)},"data-p":h.containerDataP},e.ptmi(`root`)),[P(`span`,m({ref:`firstHiddenFocusableElement`,role:`presentation`,"aria-hidden":`true`,class:`p-hidden-accessible p-hidden-focusable`,tabindex:e.disabled?-1:e.tabindex,onFocus:t[0]||=function(){return h.onFirstHiddenFocus&&h.onFirstHiddenFocus.apply(h,arguments)}},e.ptm(`hiddenFirstFocusableEl`),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16,TS),e.$slots.header?(d(),A(`div`,m({key:0,class:e.cx(`header`)},e.ptm(`header`)),[s(e.$slots,`header`,{value:e.d_value,options:h.visibleOptions})],16)):y(``,!0),e.filter?(d(),A(`div`,m({key:1,class:e.cx(`header`)},e.ptm(`header`)),[F(w,{unstyled:e.unstyled,pt:e.ptm(`pcFilterContainer`)},{default:j(function(){return[F(g,{modelValue:l.filterValue,"onUpdate:modelValue":t[1]||=function(e){return l.filterValue=e},type:`text`,class:r(e.cx(`pcFilter`)),placeholder:e.filterPlaceholder,role:`searchbox`,autocomplete:`off`,disabled:e.disabled,unstyled:e.unstyled,"aria-owns":e.$id+`_list`,"aria-activedescendant":h.focusedOptionId,tabindex:!e.disabled&&!l.focused?e.tabindex:-1,onInput:h.onFilterChange,onKeydown:h.onFilterKeyDown,pt:e.ptm(`pcFilter`)},null,8,[`modelValue`,`class`,`placeholder`,`disabled`,`unstyled`,`aria-owns`,`aria-activedescendant`,`tabindex`,`onInput`,`onKeydown`,`pt`]),F(x,{unstyled:e.unstyled,pt:e.ptm(`pcFilterIconContainer`)},{default:j(function(){return[s(e.$slots,`filtericon`,{},function(){return[e.filterIcon?(d(),A(`span`,m({key:0,class:e.filterIcon},e.ptm(`filterIcon`)),null,16)):(d(),v(b,f(m({key:1},e.ptm(`filterIcon`))),null,16))]})]}),_:3},8,[`unstyled`,`pt`])]}),_:3},8,[`unstyled`,`pt`]),P(`span`,m({role:`status`,"aria-live":`polite`,class:`p-hidden-accessible`},e.ptm(`hiddenFilterResult`),{"data-p-hidden-accessible":!0}),n(h.filterResultMessageText),17)],16)):y(``,!0),P(`div`,m({class:e.cx(`listContainer`),style:[{"max-height":h.virtualScrollerDisabled?e.scrollHeight:``},e.listStyle]},e.ptm(`listContainer`)),[F(D,m({ref:h.virtualScrollerRef},e.virtualScrollerOptions,{items:h.visibleOptions,style:[{height:e.scrollHeight},e.listStyle],tabindex:-1,disabled:h.virtualScrollerDisabled,pt:e.ptm(`virtualScroller`)}),S({content:j(function(r){var i=r.styleClass,o=r.contentRef,u=r.items,f=r.getItemOptions,p=r.contentStyle,g=r.itemSize;return[P(`ul`,m({ref:function(e){return h.listRef(e,o)},id:e.$id+`_list`,class:[e.cx(`list`),i],style:p,tabindex:-1,role:`listbox`,"aria-multiselectable":e.multiple,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-activedescendant":l.focused?h.focusedOptionId:void 0,"aria-disabled":e.disabled,onFocus:t[3]||=function(){return h.onListFocus&&h.onListFocus.apply(h,arguments)},onBlur:t[4]||=function(){return h.onListBlur&&h.onListBlur.apply(h,arguments)},onKeydown:t[5]||=function(){return h.onListKeyDown&&h.onListKeyDown.apply(h,arguments)}},e.ptm(`list`)),[(d(!0),A(C,null,a(u,function(r,i){return d(),A(C,{key:h.getOptionRenderKey(r,h.getOptionIndex(i,f))},[h.isOptionGroup(r)?(d(),A(`li`,m({key:0,id:e.$id+`_`+h.getOptionIndex(i,f),style:{height:g?g+`px`:void 0},class:e.cx(`optionGroup`),role:`option`},{ref_for:!0},e.ptm(`optionGroup`)),[s(e.$slots,`optiongroup`,{option:r.optionGroup,index:h.getOptionIndex(i,f)},function(){return[_(n(h.getOptionGroupLabel(r.optionGroup)),1)]})],16,DS)):c((d(),A(`li`,m({key:1,id:e.$id+`_`+h.getOptionIndex(i,f),style:{height:g?g+`px`:void 0},class:e.cx(`option`,{option:r,index:i,getItemOptions:f}),role:`option`,"aria-label":h.getOptionLabel(r),"aria-selected":h.isSelected(r),"aria-disabled":h.isOptionDisabled(r),"aria-setsize":h.ariaSetSize,"aria-posinset":h.getAriaPosInset(h.getOptionIndex(i,f)),onClick:function(e){return h.onOptionSelect(e,r,h.getOptionIndex(i,f))},onMousedown:function(e){return h.onOptionMouseDown(e,h.getOptionIndex(i,f))},onMousemove:function(e){return h.onOptionMouseMove(e,h.getOptionIndex(i,f))},onTouchend:t[2]||=function(e){return h.onOptionTouchEnd()},onDblclick:function(e){return h.onOptionDblClick(e,r)}},{ref_for:!0},h.getPTOptions(r,f,i,`option`),{"data-p-selected":!e.checkmark&&h.isSelected(r),"data-p-focused":l.focusedOptionIndex===h.getOptionIndex(i,f),"data-p-disabled":h.isOptionDisabled(r)}),[e.checkmark?(d(),A(C,{key:0},[h.isSelected(r)?(d(),v(T,m({key:0,class:e.cx(`optionCheckIcon`)},{ref_for:!0},e.ptm(`optionCheckIcon`)),null,16,[`class`])):(d(),v(E,m({key:1,class:e.cx(`optionBlankIcon`)},{ref_for:!0},e.ptm(`optionBlankIcon`)),null,16,[`class`]))],64)):y(``,!0),s(e.$slots,`option`,{option:r,selected:h.isSelected(r),index:h.getOptionIndex(i,f)},function(){return[_(n(h.getOptionLabel(r)),1)]})],16,OS)),[[O]])],64)}),128)),l.filterValue&&(!u||u&&u.length===0)?(d(),A(`li`,m({key:0,class:e.cx(`emptyMessage`),role:`option`},e.ptm(`emptyMessage`)),[s(e.$slots,`emptyfilter`,{},function(){return[_(n(h.emptyFilterMessageText),1)]})],16)):!e.options||e.options&&e.options.length===0?(d(),A(`li`,m({key:1,class:e.cx(`emptyMessage`),role:`option`},e.ptm(`emptyMessage`)),[s(e.$slots,`empty`,{},function(){return[_(n(h.emptyMessageText),1)]})],16)):y(``,!0)],16,ES)]}),_:2},[e.$slots.loader?{name:`loader`,fn:j(function(t){var n=t.options;return[s(e.$slots,`loader`,{options:n})]}),key:`0`}:void 0]),1040,[`items`,`style`,`disabled`,`pt`])],16),s(e.$slots,`footer`,{value:e.d_value,options:h.visibleOptions}),!e.options||e.options&&e.options.length===0?(d(),A(`span`,m({key:2,role:`status`,"aria-live":`polite`,class:`p-hidden-accessible`},e.ptm(`hiddenEmptyMessage`),{"data-p-hidden-accessible":!0}),n(h.emptyMessageText),17)):y(``,!0),P(`span`,m({role:`status`,"aria-live":`polite`,class:`p-hidden-accessible`},e.ptm(`hiddenSelectedMessage`),{"data-p-hidden-accessible":!0}),n(h.selectedMessageText),17),P(`span`,m({ref:`lastHiddenFocusableElement`,role:`presentation`,"aria-hidden":`true`,class:`p-hidden-accessible p-hidden-focusable`,tabindex:e.disabled?-1:e.tabindex,onFocus:t[6]||=function(){return h.onLastHiddenFocus&&h.onLastHiddenFocus.apply(h,arguments)}},e.ptm(`hiddenLastFocusableEl`),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16,kS)],16,wS)}CS.render=AS;var jS=[`value`],MS=N(ie({__name:`ColorPicker`,props:{modelValue:{}},emits:[`update:modelValue`],setup(e,{emit:t}){return(e,t)=>(d(),A(`input`,{type:`color`,value:e.modelValue,class:`color-picker`,onInput:t[0]||=t=>e.$emit(`update:modelValue`,t.target.value)},null,40,jS))}}),[[`__scopeId`,`data-v-4e883e70`]]),NS={class:`editor`},PS={key:0,class:`input`},FS={key:1,class:`boolean`},IS={key:2,class:`path`},LS={key:3,class:`electron:configure:v2`},RS={class:`body`},zS={key:4,class:`select`},BS={key:5,class:`multi-select`},VS={key:6,class:`netlify-site`},HS={key:7,class:`color`},US=ie({__name:`ParamEditorBody`,props:{paramDefinition:{},modelValue:{},value:{}},emits:[`update:modelValue`,`switch`],setup(e,{emit:t}){let i=e,{modelValue:a}=ne(i),o=t;Le();let{logger:s}=Ge(),c=Tn(),l=qt(),{resolvedParams:u}=ve(c),f=D(()=>u.value[i.value.uid]),p=w(!1),m=async e=>{p.value=!0;try{let e=i.paramDefinition.control;if(e.type===`netlify-site`){let t=await(await fetch(`https://api.netlify.com/api/v1/sites`,{headers:{Authorization:`Bearer ${f.value[e.options.tokenKey]}`}})).json();console.log(`data`,t),h.value=t}}catch(e){console.error(e)}finally{p.value=!1}},h=w(),g=async(e={})=>{let t=await(e?.properties?.includes(`openDirectory`)?l.openDirectory(e):l.openFile(e));if(t.type===`error`)throw Error(t.ipcError);let n=t.result;if(s().info(`paths`,n),n.canceled||!n.filePaths||n.filePaths.length===0)return;let r=n.filePaths[0];o(`update:modelValue`,`"${r}"`)},x=e=>{console.log(`event`,e),o(`update:modelValue`,`"${e}"`)},S=e=>{console.log(`event`,e),o(`update:modelValue`,`"${e.value}"`)},E=e=>{o(`update:modelValue`,`"${e}"`)},O=e=>{console.log(`event`,e),o(`update:modelValue`,e.value)},k=e=>{let t=e.value.map(e=>e.value);o(`update:modelValue`,`${JSON.stringify(t)}`)},ee=e=>{o(`update:modelValue`,e.value)},M=e=>{o(`update:modelValue`,`"${e}"`)},N=[{text:`True`,value:!0},{text:`False`,value:!1}],te=D(()=>a.value===void 0?``:a.value.toString()),re=D(()=>Number.parseInt(te.value)),ie=D(()=>{let e=te.value;return e.startsWith(`"`)&&e.endsWith(`"`)?e.slice(1,-1):e}),ae=()=>{o(`switch`)};return T(()=>{i.paramDefinition.control.type===`netlify-site`&&m({query:``})}),(e,t)=>{let i=Yt,o=Ye,s=Je,c=Zt,l=ce,u=at,m=CS,w=ut,T=nS;return d(),A(`div`,NS,[e.paramDefinition.control.type===`input`?(d(),A(`div`,PS,[e.paramDefinition.control.options.kind===`text`?(d(),A(C,{key:0},[e.paramDefinition.control.options.password?(d(),v(i,{key:0,"model-value":te.value,placeholder:e.paramDefinition.control.options.placeholder,"toggle-mask":!0,feedback:!1,class:r({"w-full":!0}),"input-class":`w-full`,"onUpdate:modelValue":E},null,8,[`model-value`,`placeholder`])):(d(),v(o,{key:1,"model-value":te.value,placeholder:e.paramDefinition.control.options.placeholder,class:`w-full`,"onUpdate:modelValue":E},null,8,[`model-value`,`placeholder`]))],64)):e.paramDefinition.control.options.kind===`number`?(d(),v(s,{key:1,"model-value":re.value,"show-buttons":``,"option-label":`label`,class:`w-full`,format:!1,onInput:O},null,8,[`model-value`])):y(``,!0)])):e.paramDefinition.control.type===`boolean`?(d(),A(`div`,FS,[F(c,{"model-value":b(a),"option-label":`text`,"option-value":`value`,options:N,"aria-labelledby":`basic`,onChange:ee},{option:j(e=>[P(`span`,null,n(e.option.text),1)]),_:1},8,[`model-value`])])):e.paramDefinition.control.type===`path`?(d(),A(`div`,IS,[F(l,{class:`w-full`,onClick:t[0]||=t=>g(e.paramDefinition.control.options)},{default:j(()=>[_(n(b(a)?b(a):e.paramDefinition.control.label??`Browse path`),1)]),_:1})])):e.paramDefinition.control.type===`electron:configure:v2`?(d(),A(`div`,LS,[P(`div`,RS,[t[1]||=P(`div`,{class:`label`},`Electron version`,-1),F(o),t[2]||=P(`div`,{class:`label`},`Custom main code`,-1),F(o),t[3]||=P(`div`,{class:`label`},`Enable steam support`,-1),F(u)])])):e.paramDefinition.control.type===`select`?(d(),A(`div`,zS,[F(m,{"model-value":b(a),options:e.paramDefinition.control.options.options,filter:``,"option-value":`value`,"option-label":`label`,class:`w-full`,onChange:S},null,8,[`model-value`,`options`])])):e.paramDefinition.control.type===`multi-select`?(d(),A(`div`,BS,[F(m,{"model-value":b(a),options:e.paramDefinition.control.options.options,filter:``,multiple:``,"option-label":`label`,class:`w-full`,onChange:k},null,8,[`model-value`,`options`])])):e.paramDefinition.control.type===`netlify-site`?(d(),A(`div`,VS,[P(`pre`,null,n(f.value[e.paramDefinition.control.options.tokenKey]),1),F(w,{placeholder:e.paramDefinition.control.options.placeholder,"model-value":b(a),options:h.value,"option-label":`name`,"option-value":`id`,loading:p.value,disabled:p.value||!f.value[e.paramDefinition.control.options.tokenKey],class:`w-full`,"onUpdate:modelValue":x},null,8,[`placeholder`,`model-value`,`options`,`loading`,`disabled`]),f.value[e.paramDefinition.control.options.tokenKey]?y(``,!0):(d(),v(T,{key:0,severity:`error`},{default:j(()=>t[4]||=[_(`No token found`)]),_:1}))])):e.paramDefinition.control.type===`color`?(d(),A(`div`,HS,[F(MS,{"model-value":ie.value,"onUpdate:modelValue":M},null,8,[`model-value`])])):(d(),v(l,{key:8,class:`w-full`,onClick:ae},{default:j(()=>t[5]||=[_(`Switch to editor to edit value`)]),_:1}))])}}}),WS=class extends ts{value;options;nodeId;output;constructor(e,t,n,r){super(),this.value=e,this.options=t,this.nodeId=n,this.output=r}toDOM(){let e=document.createElement(`span`);console.log(`this.value`,this.value),console.log(`nodeId`,this.nodeId),console.log(`output`,this.output),console.log(`this.options.steps.value`,this.options.steps.value);let t=this.options.steps.value?.[this.nodeId]?.outputs[this.output];return e.classList.add(`step-placeholder`),t?e.innerHTML=t:(e.textContent=`Step missing`,e.classList.add(`step-missing`)),e}},GS=e=>new ed({regexp:/(?<full>steps\['(?<node_id>[\w-]+)'\]\['outputs'\]\['(?<output>[\w-]+)'\])/g,decoration:t=>{let{full:n,node_id:r,output:i}=t.groups??{full:t.input};return rs.replace({widget:new WS(n,e,r,i)})}}),KS=e=>rc.fromClass(class{placeholders;constructor(t){this.placeholders=GS(e).createDeco(t)}update(t){this.placeholders=GS(e).updateDeco(t,this.placeholders)}},{decorations:e=>e.placeholders,provide:e=>G.atomicRanges.of(t=>t.plugin(e)?.placeholders||rs.none)}),qS={class:`editor`},JS={class:`flex flex-column gap-1 editor-content`},YS={class:`label`},XS=[`for`],ZS={key:0,class:`required`},QS={key:1,class:`tooltip`},$S={class:`mdi mdi-help-circle tooltip-icon`},eC={class:`infos`},tC={key:0},nC={class:`code-editor-wrapper`},rC={class:`code-editor-wrapper-inner`},iC={class:`helpers`},aC={class:`steps-list`},oC={key:0,class:`step-item`},sC={class:`step-name`},cC={class:`step-outputs`},lC=[`onClick`],uC=[`onClick`],dC={class:`variables-list`},fC=[`onClick`],pC={class:`variable-name`},mC={class:`variable-description`},hC=N(ie({__name:`ParamEditor`,props:{param:{},paramDefinition:{},paramKey:{},value:{},steps:{},variables:{}},emits:[`update:modelValue`],setup(e,{emit:t}){let{paramKey:i,paramDefinition:s,steps:l,variables:u,param:f}=ne(e),m=Pt(),h=Tn(),{getNodeDefinition:g}=h,{nodes:_,vm:x}=ve(h),S=e=>new Promise(t=>{m.require({target:e.currentTarget,message:`Switching back to simple mode will delete all your changes. Are you sure you want to continue?`,icon:`pi pi-exclamation-triangle`,rejectProps:{label:`Cancel`,severity:`secondary`,outlined:!0},acceptProps:{label:`Switch to simple mode`},accept:()=>t(!0),reject:()=>t(!1)})}),T=async e=>{let t=f.value?.editor===`simple`?`editor`:`simple`,n=!0,r=Be(f.value?.value);t===`simple`&&(e.preventDefault(),n=await S(e),r=s.value.value),n===!0&&O(`update:modelValue`,{editor:t,value:r})},O=t,k=w(!1),ee=w(),M=w(),N=w(),te=w(),{logger:re}=Ge(),ie=()=>pt(x.value,u.value);function ae(e){let t=e.matchBefore(/\w*/);if(t)return t.from==t.to&&!e.explicit?null:{from:t.from,options:[{label:`match`,type:`keyword`,boost:10},{label:`hello`,type:`variable`,info:`(World)`},{label:`magic`,type:`text`,apply:`⠁⭒*.✩.*⭒⠁`,detail:`macro`}]}}let{update:oe,onUpdate:se,value:le}=gy(M,[ty.data.of({autocomplete:ae}),KS({param:f,steps:l,variables:u})]),ue=async e=>{let t=e??``;try{let n=await ie(),r=await x.value.run(t,{params:{},steps:l.value,variables:n});he.value=r,ee.value=I(r),k.value=!1,e!==f.value?.value&&O(`update:modelValue`,{editor:f.value?.editor,value:e})}catch(e){console.error(e),re().error(`e`,JSON.stringify(e)),e instanceof Error?(ee.value=e.message,k.value=!0):re().error(`e`,e)}};se(async e=>{ue(e)}),o(()=>f.value,()=>{let e=Be(f.value);e&&(e.value===void 0||e.value===null?oe(``):oe(e.value.toString()))},{immediate:!0});let de=e=>{oe(le.value+e.toString())},fe=e=>{oe(e.toString())},{floatingStyles:pe,middlewareData:me}=Lx(M,N,{placement:`left`,middleware:[Ex(10),Dx(),Ox({fallbackPlacements:[`bottom`]}),Px({element:te})],whileElementsMounted:Tx}),I=e=>{if(s.value.control.type===`select`){let t=s.value.control.options.options.find(t=>t.value===e)?.label;if(t)return t}return(e??``).toString()},he=w(),ge=e=>{fe(e===void 0?``:e.toString())},ye=w(!1),be=()=>{f.value?.editor===`editor`&&(ye.value=!0)},xe=()=>{ye.value=!1};o(()=>f.value?.editor,e=>{e===`editor`?ye.value=!0:ye.value=!1});let Se=(e,t)=>{let n=_.value.find(t=>t.uid===e)?.origin;if(n){let e=g(n.nodeId,n.pluginId).node;return e?e.outputs[t]?.label??t:t}return t},Ce=(e,t)=>{let n=_.value.find(t=>t.uid===e)?.origin;if(n){let e=g(n.nodeId,n.pluginId).node;return e?e.outputs[t]?.deprecated??!1:t}return t},we=(e,t)=>{let n=_.value.find(t=>t.uid===e)?.origin;if(n){let e=g(n.nodeId,n.pluginId).node;return e?e.outputs[t]?.description??t:t}return t},Te=e=>{let t=_.value.find(t=>t.uid===e)?.origin;if(t){let n=g(t.nodeId,t.pluginId);return n?n.node.name:e}return e},Ee=D(()=>By(s.value.control)),De=D(()=>Vy(s.value.control)),Oe=D(()=>Ee.value===typeof he.value),Ae=D(()=>`Expected: ${Ee.value}, got ${typeof he.value}`);return(e,t)=>{let o=Ur,m=ce,h=zr,g=Nt,_=Mr,x=p(`dompurify-html`);return c((d(),A(`div`,{class:`param-editor`,onClick:be},[P(`div`,qS,[P(`div`,JS,[P(`div`,YS,[P(`label`,{for:`data-${b(i)}`},[P(`span`,null,n(b(s).label),1),!(`required`in b(s))||b(s).required===!0?(d(),A(`span`,ZS,` * `)):y(``,!0),b(s).description?(d(),A(`span`,QS,[c(P(`i`,$S,null,512),[[b(ke),b(s).description]])])):y(``,!0),(d(!0),A(C,null,a(b(s).platforms,e=>c((d(),v(o,{key:e,class:`platform`,label:e},null,8,[`label`])),[[b(ke),`This field is only applicable to the ${e} platform`]])),128))],8,XS),P(`div`,eC,[c((d(),v(m,{text:``,size:`small`,class:`type-btn`,rounded:``,severity:Oe.value?`success`:`danger`},{icon:j(()=>[P(`i`,{class:r([`mdi`,{[De.value]:!0}])},null,2)]),_:1},8,[`severity`])),[[b(ke),Ae.value]])])]),b(f)===void 0?(d(),A(`div`,tC,`Oops`)):y(``,!0),P(`div`,nC,[P(`div`,rC,[c(P(`div`,{ref_key:`$codeEditorText`,ref:M,class:`code-editor`},null,512),[[_e,b(f).editor===`editor`]]),c(F(US,{"model-value":he.value,"param-definition":b(s),value:e.value,"onUpdate:modelValue":ge,onSwitch:T},null,8,[`model-value`,`param-definition`,`value`]),[[_e,b(f).editor===`simple`]])]),F(h),b(f).editor===`editor`?c((d(),v(m,{key:0,text:``,"aria-label":`Toggle mode`,onClick:T},{icon:j(()=>t[0]||=[P(`i`,{class:`icon mdi mdi-text fs-16`},null,-1)]),_:1})),[[b(ke),`Switch to simple mode`]]):c((d(),v(m,{key:1,text:``,"aria-label":`Toggle mode`,onClick:T},{icon:j(()=>t[1]||=[P(`i`,{class:`icon mdi mdi-code-block-braces fs-16`},null,-1)]),_:1})),[[b(ke),`Switch to editor mode`]])]),b(f).editor===`editor`?(d(),A(C,{key:1},[ee.value===void 0?(d(),v(g,{key:0,height:`20px`})):c((d(),A(`div`,{key:1,class:r([`hint`,{error:k.value}])},null,2)),[[x,ee.value]])],64)):y(``,!0),ye.value?(d(),A(`div`,{key:2,ref_key:`$floating`,ref:N,class:`floating`,style:E({...b(pe),zIndex:1})},[(d(),A(`svg`,{ref_key:`$arrow`,ref:te,style:E([{position:`absolute`,left:b(me).arrow?.x==null?``:`${b(me).arrow.x}px`,top:b(me).arrow?.y==null?``:`${b(me).arrow.y}px`},{position:`absolute`,"pointer-events":`none`,top:`100%`,left:`32.5px`}]),class:`fill-gray-800`,"aria-hidden":`true`,width:`14`,height:`14`,viewBox:`0 0 14 14`},t[2]||=[P(`path`,{stroke:`none`,d:`M0,0 H14 L7,7 Q7,7 7,7 Z`},null,-1),P(`clipPath`,{id:`:r8:`},[P(`rect`,{x:`0`,y:`0`,width:`14`,height:`14`})],-1)],4)),P(`div`,iC,[F(_,{header:`Outputs`,toggleable:``},{default:j(()=>[P(`div`,aC,[(d(!0),A(C,null,a(b(l),(e,t)=>(d(),A(C,{key:t},[Object.keys(e.outputs).length>0?(d(),A(`div`,oC,[P(`div`,sC,n(Te(t)),1),P(`div`,cC,[(d(!0),A(C,null,a(e.outputs,(e,i)=>(d(),A(`div`,{key:i,class:`step-output`},[P(`div`,{class:`step`,onClick:e=>de(`steps['${t}']['outputs']['${i}']`)},[P(`span`,{class:r({deprecated:Ce(t,i)})},n(Se(t,i)),3)],8,lC),P(`div`,{class:`step-description`,onClick:e=>de(`steps['${t}']['outputs']['${i}']`)},n(we(t,i)),9,uC)]))),128))])])):y(``,!0)],64))),128))])]),_:1}),F(_,{header:`Variables`,toggleable:``},{default:j(()=>[P(`div`,dC,[(d(!0),A(C,null,a(b(u),(e,t)=>(d(),A(`div`,{key:t,class:`variable`,onClick:t=>de(`variables['${e.id}']`)},[P(`div`,pC,n(e.name),1),P(`div`,mC,n(e.description),1)],8,fC))),128))])]),_:1})])],4)):y(``,!0)])])])),[[b(Ux),xe]])}}}),[[`__scopeId`,`data-v-91b9166c`]]),gC={class:`node-event-wrapper`},_C={class:`vertical`},vC={class:`content`},yC={class:`title`},bC={class:``},xC={class:`subtitle`},SC={class:`flex items-center gap-2`},CC=N(ie({__name:`EditorNodeEvent`,props:{value:{type:Object,required:!0},path:{type:Array,required:!0},steps:{type:Object,required:!0},errors:{type:Object,required:!1,default:()=>({})}},setup(e){let{value:t,steps:i}=ne(e),{logger:o}=Ge(),s=Tn(),{getNodeDefinition:c,getPluginDefinition:l,setTriggerValue:u,addNode:f,removeTrigger:p}=s,{activeNode:m}=ve(s),h=D(()=>{let e=c(t.value.origin.nodeId,t.value.origin.pluginId);if(e)return e.node}),g=D(()=>l(t.value.origin.pluginId)),_=(e,n)=>{u(t.value.uid,{...t.value,params:{...t.value.params,[n]:e}})},v=xt(async()=>$e({params:t.value.params,steps:i.value,context:{},variables:{}},e=>e),{},{onError:e=>{o().error(`error`,e)}}),x=xt(async()=>{let e=h.value?.displayString??``,t=await(await Ve()).run(e,{params:v.value,steps:i.value});return En.default.sanitize(t)},`Loading...`,{onError:e=>{o().error(`error`,e)}}),S=w(!1);return(o,s)=>{let c=ce,l=Dr;return d(),A(`div`,gC,[P(`div`,{class:r([`node-event`,{active:b(m)?.uid===b(t).uid}]),onClick:s[2]||=e=>S.value=!0},[P(`div`,_C,[F(Xt,{icon:g.value?.icon},null,8,[`icon`]),P(`div`,vC,[P(`div`,yC,[P(`span`,bC,n(h.value?.name),1)]),P(`div`,xC,n(b(x)),1)]),s[3]||=P(`span`,{class:`pi pi-bolt`},null,-1)]),F(l,{visible:S.value,"onUpdate:visible":s[1]||=e=>S.value=e,class:`w-full md:w-10 lg:w-9 xl:w-8`,position:`right`},{footer:j(()=>[P(`div`,SC,[F(c,{label:`Delete`,icon:`pi pi-trash`,class:`flex-auto`,severity:`danger`,onClick:s[0]||=e=>b(p)(b(t).uid)})])]),default:j(()=>[h.value?(d(!0),A(C,{key:0},a(h.value.params,(e,n)=>(d(),A(`div`,{key:n,class:`param`},[F(hC,{param:b(t).params[n],"param-key":n,"param-definition":e,"onUpdate:modelValue":e=>_(e,n.toString()),value:b(t),steps:b(i)},null,8,[`param`,`param-key`,`param-definition`,`onUpdate:modelValue`,`value`,`steps`])]))),128)):y(``,!0)]),_:1},8,[`visible`])],2),F(qn,{"button-props":{size:`small`,icon:`pi pi-plus`},class:`add-btn`,path:e.path,onAddNode:b(f)},null,8,[`path`,`onAddNode`])])}}}),[[`__scopeId`,`data-v-21623c55`]]),wC={class:`add-button-wrapper`},TC={class:`flex flex-column w-full`},EC={class:`search`},DC={class:`list`},OC={class:`triggers`},kC={class:`trigger list-none p-0 m-0`},AC={class:`flex align-items-center mb-3`},jC={class:`mr-3`},MC=[`src`],NC={class:`flex flex-column`},PC={class:`font-bold mb-1`},FC=[`disabled`,`onClick`],IC={class:`flex flex-column`},LC={class:`font-bold mb-1`},RC={class:`m-0 text-secondary`},zC={key:0,class:`m-0 text-secondary font-bold`},BC={class:`flex justify-content-end gap-2 mt-4`},VC=N(ie({__name:`AddTriggerButton`,props:{buttonProps:{type:Object,required:!1,default:()=>({})},path:{type:Array,required:!0}},setup(e){let{path:t}=ne(e),i=Tn(),{pluginDefinitions:o}=ve(jt()),s=w(),c=w(!1),u=w(``),{logger:f}=Ge();l(()=>{if(c.value===!0){let e=s.value?.$el;e&&e.focus()}});let p=w(),h=()=>{c.value=!0},{getNodeDefinition:g,getPluginDefinition:_}=Tn(),v=()=>{let e=p.value;if(!e){f().error(`cannot find selection`);return}let n=_(e.pluginId);if(!n){f().error(`cannot find definition`);return}let r=g(e.triggerId,e.pluginId);if(!r){f().error(`cannot find trigger`);return}let a=Number.parseInt(t.value.pop()??`0`)+1;i.addTrigger({trigger:r.node,plugin:n,path:t.value,insertAt:a}),c.value=!1},x=(e,t)=>{let n=e.description.toLowerCase(),r=e.name.toLowerCase();return e.type===`event`?!!(n.includes(t)||r.includes(t)):!1},S=D(()=>{f().info(`pluginDefinitions`,o.value);let e=u.value.toLowerCase();return o.value.filter(t=>{let n=t.description.toLowerCase(),r=t.name.toLowerCase(),i=t.nodes.some(t=>x(t.node,e));return!!(n.includes(e)||r.includes(e)||i)}).map(t=>({...t,triggers:t.nodes.filter(t=>x(t.node,e))}))});return(t,i)=>{let o=Ot,l=He,f=Oe;return d(),A(`div`,wC,[i[5]||=P(`div`,{class:`vl`},null,-1),F(b(ce),m(e.buttonProps,{class:`add-btn`,size:`small`,onClick:h}),null,16),i[6]||=P(`div`,{class:`vl`},null,-1),F(f,{visible:c.value,"onUpdate:visible":i[2]||=e=>c.value=e,closable:!1,modal:``,header:``,style:{width:`75%`}},{header:j(()=>[P(`div`,TC,[i[3]||=P(`p`,{class:`text-xl`},`Add trigger`,-1),P(`div`,EC,[F(l,{class:`search-field`,"icon-position":`left`},{default:j(()=>[F(o,{class:`pi pi-search`}),F(b(Ye),{ref_key:`$searchInput`,ref:s,modelValue:u.value,"onUpdate:modelValue":i[0]||=e=>u.value=e,placeholder:`Search`},null,8,[`modelValue`])]),_:1})])])]),footer:j(()=>[P(`div`,BC,[F(b(ce),{type:`button`,label:`Cancel`,severity:`secondary`,onClick:i[1]||=e=>c.value=!1}),F(b(ce),{type:`button`,label:`Ajouter`,onClick:v})])]),default:j(()=>[P(`div`,DC,[(d(!0),A(C,null,a(S.value,e=>(d(),A(`div`,{key:e.id,class:`plugin`},[P(`div`,OC,[P(`ul`,kC,[P(`li`,AC,[P(`span`,jC,[e.icon.type===`image`?(d(),A(`img`,{key:0,width:`32`,src:e.icon.image},null,8,MC)):e.icon.type===`icon`?(d(),A(`i`,{key:1,style:{"font-size":`2rem`},class:r({"trigger-icon":!0,mdi:!0,[e.icon.icon]:!0})},null,2)):y(``,!0)]),P(`div`,NC,[P(`span`,PC,n(e.name),1)])]),(d(!0),A(C,null,a(e.triggers,t=>(d(),A(C,null,[t.node.disabled?y(``,!0):(d(),A(`li`,{key:t.node.id,class:`flex trigger-item`,disabled:t.node.disabled,onClick:n=>p.value={triggerId:t.node.id,pluginId:e.id}},[P(`a`,{class:r([`element flex align-items-center p-3 border-round w-full transition-colors transition-duration-150 cursor-pointer`,{selected:p.value?.triggerId===t.node.id&&p.value.pluginId===e.id}]),style:{"border-radius":`"10px"`}},[i[4]||=P(`i`,{class:`pi pi-home text-xl mr-3`},null,-1),P(`span`,IC,[P(`span`,LC,n(t.node.name),1),P(`span`,RC,n(t.node.description),1),typeof t.node.disabled==`string`?(d(),A(`span`,zC,n(t.node.disabled),1)):y(``,!0)])],2)],8,FC))],64))),256))])])]))),128))])]),_:1},8,[`visible`])])}}}),[[`__scopeId`,`data-v-954723c1`]]),HC={class:`node-event-wrapper`},UC={class:`node-event`},WC={class:`vertical`},GC=N(ie({__name:`EditorNodeEventEmpty`,props:{path:{type:Array,required:!0}},setup(e){let t=Tn(),{getNodeDefinition:n,getPluginDefinition:r,setTriggerValue:i,addNode:a,addTrigger:o,removeTrigger:s}=t,{activeNode:c}=ve(t);return(t,n)=>(d(),A(`div`,HC,[P(`div`,UC,[P(`div`,WC,[F(Xt,{icon:{icon:`mdi mdi-help-circle`,type:`icon`}}),n[0]||=x(`<div class="content" data-v-9b8da95f><div class="title" data-v-9b8da95f><span class="" data-v-9b8da95f>No trigger selected</span></div><div class="subtitle" data-v-9b8da95f>Click here to select one</div></div><span class="pi pi-bolt" data-v-9b8da95f></span>`,2)])]),F(VC,{"button-props":{size:`small`,icon:`pi pi-plus`},class:`add-btn`,path:e.path,onAddNode:b(o)},null,8,[`path`,`onAddNode`])]))}}),[[`__scopeId`,`data-v-9b8da95f`]]),KC=e(t(((e,t)=>{var n=/["'&<>]/;t.exports=r;function r(e){var t=``+e,r=n.exec(t);if(!r)return t;var i,a=``,o=0,s=0;for(o=r.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:i=`"`;break;case 38:i=`&`;break;case 39:i=`'`;break;case 60:i=`<`;break;case 62:i=`>`;break;default:continue}s!==o&&(a+=t.substring(s,o)),s=o+1,a+=i}return s===o?a:a+t.substring(s,o)}}))(),1),Q={black:`#2e3436`,red:`#cc0000`,green:`#4e9a06`,yellow:`#c4a000`,blue:`#3465a4`,magenta:`#75507b`,cyan:`#06989a`,white:`#d3d7cf`,"bright-black":`#555753`,"bright-red":`#ef2929`,"bright-green":`#8ae234`,"bright-yellow":`#fce94f`,"bright-blue":`#729fcf`,"bright-magenta":`#ad7fa8`,"bright-cyan":`#34e2e2`,"bright-white":`#eeeeec`};function qC({onlyFirst:e=!1}={}){let t=[`[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))`,`(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))`].join(`|`);return new RegExp(t,e?void 0:`g`)}var JC=/^(?:\x1b\[([\x3c-\x3f]?)([\d;]*)([\x20-\x2f]?[\x40-\x7e]))|(?:\x1b\[[\x20-\x7e]*([\x00-\x1f:]))/,YC=/^\x1b\]8;[\x20-\x3a\x3c-\x7e]*;([\x21-\x7e]{0,512})(?:(?:\x1b\\)|(?:\x07))([\x20-\x7e]+)\x1b\]8;;(?:(?:\x1b\\)|(?:\x07))/,XC=/(?:(\x1b\\)|(\x07))|([\x00-\x06]|[\x08-\x1a]|[\x1c-\x1f])/g,ZC=class{constructor(e){this.lastIndex=0,this.input=e}next(){let e=this.input.substring(this.lastIndex),t=e.length;if(t===0)return{value:null,done:!0};let n={kind:0,text:``,url:``},r=e.indexOf(`\x1B`);if(r===-1)return n.kind=1,n.text=e,this.lastIndex+=t,{value:n,done:!1};if(r>0)return n.kind=1,n.text=e.slice(0,r),this.lastIndex+=r,{value:n,done:!1};if(t<3)return{value:null,done:!0};let i=e.charAt(1);if(i!==`[`&&i!==`]`&&i!==`(`)return n.kind=2,n.text=e[0],this.lastIndex+=1,{value:n,done:!1};if(i===`[`){let t=e.match(JC);return t===null?{value:null,done:!0}:t[4]?(n.kind=2,n.text=e[0],this.lastIndex+=1,{value:n,done:!1}):(t[1]!==``||t[3]!==`m`?n.kind=3:n.kind=4,n.text=t[2],this.lastIndex+=t[0].length,{value:n,done:!1})}if(i===`]`){if(t<4)return{value:null,done:!0};if(e.charAt(2)!==`8`||e.charAt(3)!==`;`)return n.kind=2,n.text=e[0],this.lastIndex+=1,{value:n,done:!1};let r=new RegExp(XC);{let t=r.exec(e);if(t===null)return{value:null,done:!0};if(t[3])return n.kind=2,n.text=e[0],this.lastIndex+=1,{value:n,done:!1}}{let t=r.exec(e);if(t===null)return{value:null,done:!0};if(t[3])return n.kind=2,n.text=e[0],this.lastIndex+=1,{value:n,done:!1}}let i=e.match(YC);return i===null?(n.kind=2,n.text=e[0],this.lastIndex+=1,{value:n,done:!1}):(n.kind=5,n.url=i[1],n.text=i[2],this.lastIndex+=i[0].length,{value:n,done:!1})}return i===`(`?(n.kind=3,this.lastIndex+=3,{value:n,done:!1}):{value:null,done:!0}}[Symbol.iterator](){return this}},QC=14,$C=Array(QC);$C[0]=`background-color`,$C[1]=`color`,$C[2]=`font-family`,$C[3]=`font-size`,$C[4]=`font-style`,$C[5]=`font-weight`,$C[6]=`opacity`,$C[7]=`outline`,$C[8]=`text-decoration`,$C[9]=`text-decoration-color`,$C[10]=`text-decoration-line`,$C[11]=`text-decoration-style`,$C[12]=`vertical-align`,$C[13]=`visibility`;var ew=class{constructor(){this.attrArray=Array(QC),this._size=0}get(e){return this.attrArray[e]}set(e,t){let n=this.attrArray[e];this.attrArray[e]=t,n===void 0&&t!==void 0&&(this._size+=1)}delete(e){let t=this.attrArray[e];this.attrArray[e]=void 0,t!==void 0&&--this._size}update(e){for(let t in e)if(e.hasOwnProperty(t)){let n=e[t];this.attrArray[t]=n,n!==void 0&&(this._size+=1)}}clear(){this.attrArray.fill(void 0),this._size=0}get size(){return this._size}toString(){let e=``;return this.attrArray.forEach((t,n)=>{t!==void 0&&(e+=`${$C[n]}:${t};`)}),e}static delete(...e){return t=>{e.forEach(e=>{t.delete(e)})}}static appendVal(e,t){return n=>{let r=n.get(e),i=r?r.split(` `):[];i.includes(t)||i.push(t),n.set(e,i.join(` `))}}static removeVal(e,t){return n=>{let r=n.get(e),i=r?r.split(` `):[];i=i.filter(e=>e!==t),i.length?n.set(e,i.join(` `)):n.delete(e)}}};qC();var tw=qC({onlyFirst:!0}),$=Array(108);$[0]={5:`var(--ansi-bold-font-weight, 600)`},$[1]={5:`var(--ansi-bold-font-weight, 600)`},$[2]={6:`var(--ansi-dim-opacity, 0.7)`},$[3]={4:`italic`},$[4]=ew.appendVal(8,`underline`),$[8]={13:`hidden`},$[9]=ew.appendVal(8,`line-through`),$[10]=ew.delete(2),$[11]={2:`var(--ansi-font-1)`},$[12]={2:`var(--ansi-font-2)`},$[13]={2:`var(--ansi-font-3)`},$[14]={2:`var(--ansi-font-4)`},$[15]={2:`var(--ansi-font-5)`},$[16]={2:`var(--ansi-font-6)`},$[17]={2:`var(--ansi-font-7)`},$[18]={2:`var(--ansi-font-8)`},$[19]={2:`var(--ansi-font-9)`},$[21]={10:`underline`,11:`double`},$[22]=ew.delete(5),$[23]=ew.delete(4),$[24]=ew.removeVal(8,`underline`),$[28]=ew.delete(13),$[29]=ew.removeVal(8,`line-through`),$[30]={1:`var(--ansi-black, ${Q.black})`},$[31]={1:`var(--ansi-red, ${Q.red})`},$[32]={1:`var(--ansi-green, ${Q.green})`},$[33]={1:`var(--ansi-yellow, ${Q.yellow})`},$[34]={1:`var(--ansi-blue, ${Q.blue})`},$[35]={1:`var(--ansi-magenta, ${Q.magenta})`},$[36]={1:`var(--ansi-cyan, ${Q.cyan})`},$[37]={1:`var(--ansi-white, ${Q.white})`},$[39]=ew.delete(1),$[40]={0:`var(--ansi-black, ${Q.black})`},$[41]={0:`var(--ansi-red, ${Q.red})`},$[42]={0:`var(--ansi-green, ${Q.green})`},$[43]={0:`var(--ansi-yellow, ${Q.yellow})`},$[44]={0:`var(--ansi-blue, ${Q.blue})`},$[45]={0:`var(--ansi-magenta, ${Q.magenta})`},$[46]={0:`var(--ansi-cyan, ${Q.cyan})`},$[47]={0:`var(--ansi-white, ${Q.white})`},$[49]=ew.delete(0),$[51]={7:`var(--ansi-frame-outline, 1px solid)`},$[53]=ew.appendVal(8,`overline`),$[54]=ew.delete(7),$[55]=ew.removeVal(8,`overline`),$[59]=ew.delete(9),$[73]={12:`super`,3:`var(--ansi-superscript-font-size, 80%)`},$[74]={12:`sub`,3:`var(--ansi-subscript-font-size, 80%)`},$[75]=ew.delete(12,3),$[90]={1:`var(--ansi-bright-black, ${Q[`bright-black`]})`},$[91]={1:`var(--ansi-bright-red, ${Q[`bright-red`]})`},$[92]={1:`var(--ansi-bright-green, ${Q[`bright-green`]})`},$[93]={1:`var(--ansi-bright-yellow, ${Q[`bright-yellow`]})`},$[94]={1:`var(--ansi-bright-blue, ${Q[`bright-blue`]})`},$[95]={1:`var(--ansi-bright-magenta, ${Q[`bright-magenta`]})`},$[96]={1:`var(--ansi-bright-cyan, ${Q[`bright-cyan`]})`},$[97]={1:`var(--ansi-bright-white, ${Q[`bright-white`]})`},$[100]={0:`var(--ansi-bright-black, ${Q[`bright-black`]})`},$[101]={0:`var(--ansi-bright-red, ${Q[`bright-red`]})`},$[102]={0:`var(--ansi-bright-green, ${Q[`bright-green`]})`},$[103]={0:`var(--ansi-bright-yellow, ${Q[`bright-yellow`]})`},$[104]={0:`var(--ansi-bright-blue, ${Q[`bright-blue`]})`},$[105]={0:`var(--ansi-bright-magenta, ${Q[`bright-magenta`]})`},$[106]={0:`var(--ansi-bright-cyan, ${Q[`bright-cyan`]})`},$[107]={0:`var(--ansi-bright-white, ${Q[`bright-white`]})`};var nw=Array(16);nw[0]=`black`,nw[1]=`red`,nw[2]=`green`,nw[3]=`yellow`,nw[4]=`blue`,nw[5]=`magenta`,nw[6]=`cyan`,nw[7]=`white`,nw[8]=`bright-black`,nw[9]=`bright-red`,nw[10]=`bright-green`,nw[11]=`bright-yellow`,nw[12]=`bright-blue`,nw[13]=`bright-magenta`,nw[14]=`bright-cyan`,nw[15]=`bright-white`;function rw(e){switch(e){case`38`:return 1;case`48`:return 0;case`58`:return 9;default:throw Error(`not implemented`)}}function iw(e,t){let n=e.text.split(`;`);if(n.length!==3)return;let r=rw(n[0]),i=parseInt(n[2],10);if(0<=i&&i<=15){let e=nw[i];t.set(r,`var(--ansi-${e}, ${Q[e]})`)}else if(16<=i&&i<=231){let e=i-16,n=[0,95,135,175,215,255],a=n[e/36%6|0],o=n[e/6%6|0],s=n[e%6];t.set(r,`rgb(${a},${o},${s})`)}else if(232<=i&&i<=255){let e=8+(i-232)*10;t.set(r,`var(--ansi-gray-${256-i}, rgb(${e},${e},${e}))`)}}function aw(e,t){let n=e.text.split(`;`);if(n.length!==5)return;let r=rw(n[0]),[,,i,a,o]=n;t.set(r,`rgb(${i},${a},${o})`)}function ow(e,t){if(/^(38|48|58);(2|5);/.test(e.text)){e.text[3]===`2`?aw(e,t):iw(e,t);return}e.text.split(`;`).forEach(e=>{let n=parseInt(e||`0`,10);if(n===0){t.clear();return}let r=$[n];r&&(typeof r==`function`?r(t):t.update(r))})}function sw(e){return tw.test(e)}var cw=class{toHtml(e){let t=new ew,n=``,r=!1;return Array.from(new ZC(e)).forEach(e=>{switch(e.kind){case 1:n+=(0,KC.default)(e.text);break;case 4:r&&=(n+=`</span>`,!1),ow(e,t),t.size&&(n+=`<span style="${t.toString()}">`,r=!0);break}}),r&&(n+=`</span>`),n}},lw=e(t(((e,t)=>{t.exports=r;function n(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function r(e){if(e||={},e.circles)return i(e);let t=new Map;if(t.set(Date,e=>new Date(e)),t.set(Map,(e,t)=>new Map(a(Array.from(e),t))),t.set(Set,(e,t)=>new Set(a(Array.from(e),t))),e.constructorHandlers)for(let n of e.constructorHandlers)t.set(n[0],n[1]);let r=null;return e.proto?s:o;function a(e,i){let a=Object.keys(e),o=Array(a.length);for(let s=0;s<a.length;s++){let c=a[s],l=e[c];typeof l!=`object`||!l?o[c]=l:l.constructor!==Object&&(r=t.get(l.constructor))?o[c]=r(l,i):ArrayBuffer.isView(l)?o[c]=n(l):o[c]=i(l)}return o}function o(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return a(e,o);if(e.constructor!==Object&&(r=t.get(e.constructor)))return r(e,o);let i={};for(let a in e){if(Object.hasOwnProperty.call(e,a)===!1)continue;let s=e[a];typeof s!=`object`||!s?i[a]=s:s.constructor!==Object&&(r=t.get(s.constructor))?i[a]=r(s,o):ArrayBuffer.isView(s)?i[a]=n(s):i[a]=o(s)}return i}function s(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return a(e,s);if(e.constructor!==Object&&(r=t.get(e.constructor)))return r(e,s);let i={};for(let a in e){let o=e[a];typeof o!=`object`||!o?i[a]=o:o.constructor!==Object&&(r=t.get(o.constructor))?i[a]=r(o,s):ArrayBuffer.isView(o)?i[a]=n(o):i[a]=s(o)}return i}}function i(e){let t=[],r=[],i=new Map;if(i.set(Date,e=>new Date(e)),i.set(Map,(e,t)=>new Map(o(Array.from(e),t))),i.set(Set,(e,t)=>new Set(o(Array.from(e),t))),e.constructorHandlers)for(let t of e.constructorHandlers)i.set(t[0],t[1]);let a=null;return e.proto?c:s;function o(e,o){let s=Object.keys(e),c=Array(s.length);for(let l=0;l<s.length;l++){let u=s[l],d=e[u];if(typeof d!=`object`||!d)c[u]=d;else if(d.constructor!==Object&&(a=i.get(d.constructor)))c[u]=a(d,o);else if(ArrayBuffer.isView(d))c[u]=n(d);else{let e=t.indexOf(d);e===-1?c[u]=o(d):c[u]=r[e]}}return c}function s(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return o(e,s);if(e.constructor!==Object&&(a=i.get(e.constructor)))return a(e,s);let c={};t.push(e),r.push(c);for(let o in e){if(Object.hasOwnProperty.call(e,o)===!1)continue;let l=e[o];if(typeof l!=`object`||!l)c[o]=l;else if(l.constructor!==Object&&(a=i.get(l.constructor)))c[o]=a(l,s);else if(ArrayBuffer.isView(l))c[o]=n(l);else{let e=t.indexOf(l);e===-1?c[o]=s(l):c[o]=r[e]}}return t.pop(),r.pop(),c}function c(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return o(e,c);if(e.constructor!==Object&&(a=i.get(e.constructor)))return a(e,c);let s={};t.push(e),r.push(s);for(let o in e){let l=e[o];if(typeof l!=`object`||!l)s[o]=l;else if(l.constructor!==Object&&(a=i.get(l.constructor)))s[o]=a(l,c);else if(ArrayBuffer.isView(l))s[o]=n(l);else{let e=t.indexOf(l);e===-1?s[o]=c(l):s[o]=r[e]}}return t.pop(),r.pop(),s}}}))(),1);(0,lw.default)();function uw(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null?!1:!(Symbol.iterator in e)&&!(Symbol.toStringTag in e)}function dw(e){return typeof e==`string`}function fw(e){return Number.isFinite(e)}function pw(e){return Number.isSafeInteger(e)&&e>=0}function mw(e){return e!=null}function hw(e,t){return uw(e)&&dw(t)&&t in e}var gw=typeof global==`object`&&global&&global.Object===Object&&global,_w=typeof self==`object`&&self&&self.Object===Object&&self,vw=gw||_w||Function(`return this`)(),yw=vw.Symbol,bw=Object.prototype,xw=bw.hasOwnProperty,Sw=bw.toString,Cw=yw?yw.toStringTag:void 0;function ww(e){var t=xw.call(e,Cw),n=e[Cw];try{e[Cw]=void 0;var r=!0}catch{}var i=Sw.call(e);return r&&(t?e[Cw]=n:delete e[Cw]),i}var Tw=Object.prototype.toString;function Ew(e){return Tw.call(e)}var Dw=`[object Null]`,Ow=`[object Undefined]`,kw=yw?yw.toStringTag:void 0;function Aw(e){return e==null?e===void 0?Ow:Dw:kw&&kw in Object(e)?ww(e):Ew(e)}function jw(e){return typeof e==`object`&&!!e}var Mw=`[object Symbol]`;function Nw(e){return typeof e==`symbol`||jw(e)&&Aw(e)==Mw}function Pw(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var Fw=Array.isArray,Iw=1/0,Lw=yw?yw.prototype:void 0,Rw=Lw?Lw.toString:void 0;function zw(e){if(typeof e==`string`)return e;if(Fw(e))return Pw(e,zw)+``;if(Nw(e))return Rw?Rw.call(e):``;var t=e+``;return t==`0`&&1/e==-Iw?`-0`:t}var Bw=/\s/;function Vw(e){for(var t=e.length;t--&&Bw.test(e.charAt(t)););return t}var Hw=/^\s+/;function Uw(e){return e&&e.slice(0,Vw(e)+1).replace(Hw,``)}function Ww(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function Gw(e){return e}var Kw=`[object AsyncFunction]`,qw=`[object Function]`,Jw=`[object GeneratorFunction]`,Yw=`[object Proxy]`;function Xw(e){if(!Ww(e))return!1;var t=Aw(e);return t==qw||t==Jw||t==Kw||t==Yw}var Zw=vw[`__core-js_shared__`],Qw=function(){var e=/[^.]+$/.exec(Zw&&Zw.keys&&Zw.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function $w(e){return!!Qw&&Qw in e}var eT=Function.prototype.toString;function tT(e){if(e!=null){try{return eT.call(e)}catch{}try{return e+``}catch{}}return``}var nT=/[\\^$.*+?()[\]{}|]/g,rT=/^\[object .+?Constructor\]$/,iT=Function.prototype,aT=Object.prototype,oT=iT.toString,sT=aT.hasOwnProperty,cT=RegExp(`^`+oT.call(sT).replace(nT,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function lT(e){return!Ww(e)||$w(e)?!1:(Xw(e)?cT:rT).test(tT(e))}function uT(e,t){return e?.[t]}function dT(e,t){var n=uT(e,t);return lT(n)?n:void 0}function fT(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var pT=800,mT=16,hT=Date.now;function gT(e){var t=0,n=0;return function(){var r=hT(),i=mT-(r-n);if(n=r,i>0){if(++t>=pT)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function _T(e){return function(){return e}}var vT=function(){try{var e=dT(Object,`defineProperty`);return e({},``,{}),e}catch{}}(),yT=gT(vT?function(e,t){return vT(e,`toString`,{configurable:!0,enumerable:!1,value:_T(t),writable:!0})}:Gw);function bT(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function xT(e){return e!==e}function ST(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function CT(e,t,n){return t===t?ST(e,t,n):bT(e,xT,n)}function wT(e,t){return!!(e!=null&&e.length)&&CT(e,t,0)>-1}function TT(e,t){return e===t||e!==e&&t!==t}var ET=Math.max;function DT(e,t,n){return t=ET(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=ET(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),fT(e,this,s)}}function OT(e,t){return yT(DT(e,t,Gw),e+``)}var kT=9007199254740991;function AT(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=kT}function jT(e){return e!=null&&AT(e.length)&&!Xw(e)}function MT(e){return function(t){return e(t)}}var NT=dT(Object,`create`);function PT(){this.__data__=NT?NT(null):{},this.size=0}function FT(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}var IT=`__lodash_hash_undefined__`,LT=Object.prototype.hasOwnProperty;function RT(e){var t=this.__data__;if(NT){var n=t[e];return n===IT?void 0:n}return LT.call(t,e)?t[e]:void 0}var zT=Object.prototype.hasOwnProperty;function BT(e){var t=this.__data__;return NT?t[e]!==void 0:zT.call(t,e)}var VT=`__lodash_hash_undefined__`;function HT(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=NT&&t===void 0?VT:t,this}function UT(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}UT.prototype.clear=PT,UT.prototype.delete=FT,UT.prototype.get=RT,UT.prototype.has=BT,UT.prototype.set=HT;function WT(){this.__data__=[],this.size=0}function GT(e,t){for(var n=e.length;n--;)if(TT(e[n][0],t))return n;return-1}var KT=Array.prototype.splice;function qT(e){var t=this.__data__,n=GT(t,e);return n<0?!1:(n==t.length-1?t.pop():KT.call(t,n,1),--this.size,!0)}function JT(e){var t=this.__data__,n=GT(t,e);return n<0?void 0:t[n][1]}function YT(e){return GT(this.__data__,e)>-1}function XT(e,t){var n=this.__data__,r=GT(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function ZT(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ZT.prototype.clear=WT,ZT.prototype.delete=qT,ZT.prototype.get=JT,ZT.prototype.has=YT,ZT.prototype.set=XT;var QT=dT(vw,`Map`);function $T(){this.size=0,this.__data__={hash:new UT,map:new(QT||ZT),string:new UT}}function eE(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function tE(e,t){var n=e.__data__;return eE(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function nE(e){var t=tE(this,e).delete(e);return this.size-=+!!t,t}function rE(e){return tE(this,e).get(e)}function iE(e){return tE(this,e).has(e)}function aE(e,t){var n=tE(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function oE(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}oE.prototype.clear=$T,oE.prototype.delete=nE,oE.prototype.get=rE,oE.prototype.has=iE,oE.prototype.set=aE;function sE(e){return e==null?``:zw(e)}function cE(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}function lE(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:cE(e,t,n)}var uE=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function dE(e){return uE.test(e)}function fE(e){return e.split(``)}var pE=`\\ud800-\\udfff`,mE=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,hE=`\\ufe0e\\ufe0f`,gE=`[`+pE+`]`,_E=`[`+mE+`]`,vE=`\\ud83c[\\udffb-\\udfff]`,yE=`(?:`+_E+`|`+vE+`)`,bE=`[^`+pE+`]`,xE=`(?:\\ud83c[\\udde6-\\uddff]){2}`,SE=`[\\ud800-\\udbff][\\udc00-\\udfff]`,CE=`\\u200d`,wE=yE+`?`,TE=`[`+hE+`]?`,EE=`(?:`+CE+`(?:`+[bE,xE,SE].join(`|`)+`)`+TE+wE+`)*`,DE=TE+wE+EE,OE=`(?:`+[bE+_E+`?`,_E,xE,SE,gE].join(`|`)+`)`,kE=RegExp(vE+`(?=`+vE+`)|`+OE+DE,`g`);function AE(e){return e.match(kE)||[]}function jE(e){return dE(e)?AE(e):fE(e)}var ME=`__lodash_hash_undefined__`;function NE(e){return this.__data__.set(e,ME),this}function PE(e){return this.__data__.has(e)}function FE(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new oE;++t<n;)this.add(e[t])}FE.prototype.add=FE.prototype.push=NE,FE.prototype.has=PE;function IE(e,t){return e.has(t)}function LE(e){return jw(e)&&jT(e)}function RE(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var zE=200;function BE(e,t,n,r){var i=-1,a=wT,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=Pw(t,MT(n))),r?(a=RE,o=!1):t.length>=zE&&(a=IE,o=!1,t=new FE(t));outer:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,o&&d===d){for(var f=l;f--;)if(t[f]===d)continue outer;c.push(u)}else a(t,d,r)||c.push(u)}return c}function VE(e,t){for(var n=e.length;n--&&CT(t,e[n],0)>-1;);return n}function HE(e,t){for(var n=-1,r=e.length;++n<r&&CT(t,e[n],0)>-1;);return n}function UE(e,t,n){if(e=sE(e),e&&(n||t===void 0))return Uw(e);if(!e||!(t=zw(t)))return e;var r=jE(e),i=jE(t);return lE(r,HE(r,i),VE(r,i)+1).join(``)}var WE=OT(function(e,t){return LE(e)?BE(e,t):[]}),GE=function(){return GE=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},GE.apply(this,arguments)},KE=`~`,qE=`~~`;function JE(e,t){for(var n={},r={},i=e.split(qE),a=!1,o=0;i.length>o;o++){for(var s=i[o].split(KE),c=0;c<s.length;c+=2){var l=s[c],u=s[c+1],d=`&`+l+`;`;n[d]=u,a&&(n[`&`+l]=u),r[u]=d}a=!0}return t?{entities:GE(GE({},n),t.entities),characters:GE(GE({},r),t.characters)}:{entities:n,characters:r}}var YE={xml:/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,html4:/∉|&(?:nbsp|iexcl|cent|pound|curren|yen|brvbar|sect|uml|copy|ordf|laquo|not|shy|reg|macr|deg|plusmn|sup2|sup3|acute|micro|para|middot|cedil|sup1|ordm|raquo|frac14|frac12|frac34|iquest|Agrave|Aacute|Acirc|Atilde|Auml|Aring|AElig|Ccedil|Egrave|Eacute|Ecirc|Euml|Igrave|Iacute|Icirc|Iuml|ETH|Ntilde|Ograve|Oacute|Ocirc|Otilde|Ouml|times|Oslash|Ugrave|Uacute|Ucirc|Uuml|Yacute|THORN|szlig|agrave|aacute|acirc|atilde|auml|aring|aelig|ccedil|egrave|eacute|ecirc|euml|igrave|iacute|icirc|iuml|eth|ntilde|ograve|oacute|ocirc|otilde|ouml|divide|oslash|ugrave|uacute|ucirc|uuml|yacute|thorn|yuml|quot|amp|lt|gt|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,html5:/·|℗|⋇|⪧|⩺|⋗|⦕|⩼|⪆|⥸|⋗|⋛|⪌|≷|≳|⪦|⩹|⋖|⋋|⋉|⥶|⩻|⦖|◃|⊴|◂|∉|⋹̸|⋵̸|∉|⋷|⋶|∌|∌|⋾|⋽|∥|⊠|⨱|⨰|&(?:AElig|AMP|Aacute|Acirc|Agrave|Aring|Atilde|Auml|COPY|Ccedil|ETH|Eacute|Ecirc|Egrave|Euml|GT|Iacute|Icirc|Igrave|Iuml|LT|Ntilde|Oacute|Ocirc|Ograve|Oslash|Otilde|Ouml|QUOT|REG|THORN|Uacute|Ucirc|Ugrave|Uuml|Yacute|aacute|acirc|acute|aelig|agrave|amp|aring|atilde|auml|brvbar|ccedil|cedil|cent|copy|curren|deg|divide|eacute|ecirc|egrave|eth|euml|frac12|frac14|frac34|gt|iacute|icirc|iexcl|igrave|iquest|iuml|laquo|lt|macr|micro|middot|nbsp|not|ntilde|oacute|ocirc|ograve|ordf|ordm|oslash|otilde|ouml|para|plusmn|pound|quot|raquo|reg|sect|shy|sup1|sup2|sup3|szlig|thorn|times|uacute|ucirc|ugrave|uml|uuml|yacute|yen|yuml|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g},XE={};XE.xml=JE(`lt~<~gt~>~quot~"~apos~'~amp~&`),XE.html4=JE(`apos~'~OElig~Œ~oelig~œ~Scaron~Š~scaron~š~Yuml~Ÿ~circ~ˆ~tilde~˜~ensp~ ~emsp~ ~thinsp~ ~zwnj~~zwj~~lrm~~rlm~~ndash~–~mdash~—~lsquo~‘~rsquo~’~sbquo~‚~ldquo~“~rdquo~”~bdquo~„~dagger~†~Dagger~‡~permil~‰~lsaquo~‹~rsaquo~›~euro~€~fnof~ƒ~Alpha~Α~Beta~Β~Gamma~Γ~Delta~Δ~Epsilon~Ε~Zeta~Ζ~Eta~Η~Theta~Θ~Iota~Ι~Kappa~Κ~Lambda~Λ~Mu~Μ~Nu~Ν~Xi~Ξ~Omicron~Ο~Pi~Π~Rho~Ρ~Sigma~Σ~Tau~Τ~Upsilon~Υ~Phi~Φ~Chi~Χ~Psi~Ψ~Omega~Ω~alpha~α~beta~β~gamma~γ~delta~δ~epsilon~ε~zeta~ζ~eta~η~theta~θ~iota~ι~kappa~κ~lambda~λ~mu~μ~nu~ν~xi~ξ~omicron~ο~pi~π~rho~ρ~sigmaf~ς~sigma~σ~tau~τ~upsilon~υ~phi~φ~chi~χ~psi~ψ~omega~ω~thetasym~ϑ~upsih~ϒ~piv~ϖ~bull~•~hellip~…~prime~′~Prime~″~oline~‾~frasl~⁄~weierp~℘~image~ℑ~real~ℜ~trade~™~alefsym~ℵ~larr~←~uarr~↑~rarr~→~darr~↓~harr~↔~crarr~↵~lArr~⇐~uArr~⇑~rArr~⇒~dArr~⇓~hArr~⇔~forall~∀~part~∂~exist~∃~empty~∅~nabla~∇~isin~∈~notin~∉~ni~∋~prod~∏~sum~∑~minus~−~lowast~∗~radic~√~prop~∝~infin~∞~ang~∠~and~∧~or~∨~cap~∩~cup~∪~int~∫~there4~∴~sim~∼~cong~≅~asymp~≈~ne~≠~equiv~≡~le~≤~ge~≥~sub~⊂~sup~⊃~nsub~⊄~sube~⊆~supe~⊇~oplus~⊕~otimes~⊗~perp~⊥~sdot~⋅~lceil~⌈~rceil~⌉~lfloor~⌊~rfloor~⌋~lang~〈~rang~〉~loz~◊~spades~♠~clubs~♣~hearts~♥~diams~♦~~nbsp~\xA0~iexcl~¡~cent~¢~pound~£~curren~¤~yen~¥~brvbar~¦~sect~§~uml~¨~copy~©~ordf~ª~laquo~«~not~¬~shy~~reg~®~macr~¯~deg~°~plusmn~±~sup2~²~sup3~³~acute~´~micro~µ~para~¶~middot~·~cedil~¸~sup1~¹~ordm~º~raquo~»~frac14~¼~frac12~½~frac34~¾~iquest~¿~Agrave~À~Aacute~Á~Acirc~Â~Atilde~Ã~Auml~Ä~Aring~Å~AElig~Æ~Ccedil~Ç~Egrave~È~Eacute~É~Ecirc~Ê~Euml~Ë~Igrave~Ì~Iacute~Í~Icirc~Î~Iuml~Ï~ETH~Ð~Ntilde~Ñ~Ograve~Ò~Oacute~Ó~Ocirc~Ô~Otilde~Õ~Ouml~Ö~times~×~Oslash~Ø~Ugrave~Ù~Uacute~Ú~Ucirc~Û~Uuml~Ü~Yacute~Ý~THORN~Þ~szlig~ß~agrave~à~aacute~á~acirc~â~atilde~ã~auml~ä~aring~å~aelig~æ~ccedil~ç~egrave~è~eacute~é~ecirc~ê~euml~ë~igrave~ì~iacute~í~icirc~î~iuml~ï~eth~ð~ntilde~ñ~ograve~ò~oacute~ó~ocirc~ô~otilde~õ~ouml~ö~divide~÷~oslash~ø~ugrave~ù~uacute~ú~ucirc~û~uuml~ü~yacute~ý~thorn~þ~yuml~ÿ~quot~"~amp~&~lt~<~gt~>`),XE.html5=JE('Abreve~Ă~Acy~А~Afr~𝔄~Amacr~Ā~And~⩓~Aogon~Ą~Aopf~𝔸~ApplyFunction~~Ascr~𝒜~Assign~≔~Backslash~∖~Barv~⫧~Barwed~⌆~Bcy~Б~Because~∵~Bernoullis~ℬ~Bfr~𝔅~Bopf~𝔹~Breve~˘~Bscr~ℬ~Bumpeq~≎~CHcy~Ч~Cacute~Ć~Cap~⋒~CapitalDifferentialD~ⅅ~Cayleys~ℭ~Ccaron~Č~Ccirc~Ĉ~Cconint~∰~Cdot~Ċ~Cedilla~¸~CenterDot~·~Cfr~ℭ~CircleDot~⊙~CircleMinus~⊖~CirclePlus~⊕~CircleTimes~⊗~ClockwiseContourIntegral~∲~CloseCurlyDoubleQuote~”~CloseCurlyQuote~’~Colon~∷~Colone~⩴~Congruent~≡~Conint~∯~ContourIntegral~∮~Copf~ℂ~Coproduct~∐~CounterClockwiseContourIntegral~∳~Cross~⨯~Cscr~𝒞~Cup~⋓~CupCap~≍~DD~ⅅ~DDotrahd~⤑~DJcy~Ђ~DScy~Ѕ~DZcy~Џ~Darr~↡~Dashv~⫤~Dcaron~Ď~Dcy~Д~Del~∇~Dfr~𝔇~DiacriticalAcute~´~DiacriticalDot~˙~DiacriticalDoubleAcute~˝~DiacriticalGrave~`~DiacriticalTilde~˜~Diamond~⋄~DifferentialD~ⅆ~Dopf~𝔻~Dot~¨~DotDot~⃜~DotEqual~≐~DoubleContourIntegral~∯~DoubleDot~¨~DoubleDownArrow~⇓~DoubleLeftArrow~⇐~DoubleLeftRightArrow~⇔~DoubleLeftTee~⫤~DoubleLongLeftArrow~⟸~DoubleLongLeftRightArrow~⟺~DoubleLongRightArrow~⟹~DoubleRightArrow~⇒~DoubleRightTee~⊨~DoubleUpArrow~⇑~DoubleUpDownArrow~⇕~DoubleVerticalBar~∥~DownArrow~↓~DownArrowBar~⤓~DownArrowUpArrow~⇵~DownBreve~̑~DownLeftRightVector~⥐~DownLeftTeeVector~⥞~DownLeftVector~↽~DownLeftVectorBar~⥖~DownRightTeeVector~⥟~DownRightVector~⇁~DownRightVectorBar~⥗~DownTee~⊤~DownTeeArrow~↧~Downarrow~⇓~Dscr~𝒟~Dstrok~Đ~ENG~Ŋ~Ecaron~Ě~Ecy~Э~Edot~Ė~Efr~𝔈~Element~∈~Emacr~Ē~EmptySmallSquare~◻~EmptyVerySmallSquare~▫~Eogon~Ę~Eopf~𝔼~Equal~⩵~EqualTilde~≂~Equilibrium~⇌~Escr~ℰ~Esim~⩳~Exists~∃~ExponentialE~ⅇ~Fcy~Ф~Ffr~𝔉~FilledSmallSquare~◼~FilledVerySmallSquare~▪~Fopf~𝔽~ForAll~∀~Fouriertrf~ℱ~Fscr~ℱ~GJcy~Ѓ~Gammad~Ϝ~Gbreve~Ğ~Gcedil~Ģ~Gcirc~Ĝ~Gcy~Г~Gdot~Ġ~Gfr~𝔊~Gg~⋙~Gopf~𝔾~GreaterEqual~≥~GreaterEqualLess~⋛~GreaterFullEqual~≧~GreaterGreater~⪢~GreaterLess~≷~GreaterSlantEqual~⩾~GreaterTilde~≳~Gscr~𝒢~Gt~≫~HARDcy~Ъ~Hacek~ˇ~Hat~^~Hcirc~Ĥ~Hfr~ℌ~HilbertSpace~ℋ~Hopf~ℍ~HorizontalLine~─~Hscr~ℋ~Hstrok~Ħ~HumpDownHump~≎~HumpEqual~≏~IEcy~Е~IJlig~IJ~IOcy~Ё~Icy~И~Idot~İ~Ifr~ℑ~Im~ℑ~Imacr~Ī~ImaginaryI~ⅈ~Implies~⇒~Int~∬~Integral~∫~Intersection~⋂~InvisibleComma~~InvisibleTimes~~Iogon~Į~Iopf~𝕀~Iscr~ℐ~Itilde~Ĩ~Iukcy~І~Jcirc~Ĵ~Jcy~Й~Jfr~𝔍~Jopf~𝕁~Jscr~𝒥~Jsercy~Ј~Jukcy~Є~KHcy~Х~KJcy~Ќ~Kcedil~Ķ~Kcy~К~Kfr~𝔎~Kopf~𝕂~Kscr~𝒦~LJcy~Љ~Lacute~Ĺ~Lang~⟪~Laplacetrf~ℒ~Larr~↞~Lcaron~Ľ~Lcedil~Ļ~Lcy~Л~LeftAngleBracket~⟨~LeftArrow~←~LeftArrowBar~⇤~LeftArrowRightArrow~⇆~LeftCeiling~⌈~LeftDoubleBracket~⟦~LeftDownTeeVector~⥡~LeftDownVector~⇃~LeftDownVectorBar~⥙~LeftFloor~⌊~LeftRightArrow~↔~LeftRightVector~⥎~LeftTee~⊣~LeftTeeArrow~↤~LeftTeeVector~⥚~LeftTriangle~⊲~LeftTriangleBar~⧏~LeftTriangleEqual~⊴~LeftUpDownVector~⥑~LeftUpTeeVector~⥠~LeftUpVector~↿~LeftUpVectorBar~⥘~LeftVector~↼~LeftVectorBar~⥒~Leftarrow~⇐~Leftrightarrow~⇔~LessEqualGreater~⋚~LessFullEqual~≦~LessGreater~≶~LessLess~⪡~LessSlantEqual~⩽~LessTilde~≲~Lfr~𝔏~Ll~⋘~Lleftarrow~⇚~Lmidot~Ŀ~LongLeftArrow~⟵~LongLeftRightArrow~⟷~LongRightArrow~⟶~Longleftarrow~⟸~Longleftrightarrow~⟺~Longrightarrow~⟹~Lopf~𝕃~LowerLeftArrow~↙~LowerRightArrow~↘~Lscr~ℒ~Lsh~↰~Lstrok~Ł~Lt~≪~Map~⤅~Mcy~М~MediumSpace~ ~Mellintrf~ℳ~Mfr~𝔐~MinusPlus~∓~Mopf~𝕄~Mscr~ℳ~NJcy~Њ~Nacute~Ń~Ncaron~Ň~Ncedil~Ņ~Ncy~Н~NegativeMediumSpace~~NegativeThickSpace~~NegativeThinSpace~~NegativeVeryThinSpace~~NestedGreaterGreater~≫~NestedLessLess~≪~NewLine~\n~Nfr~𝔑~NoBreak~~NonBreakingSpace~\xA0~Nopf~ℕ~Not~⫬~NotCongruent~≢~NotCupCap~≭~NotDoubleVerticalBar~∦~NotElement~∉~NotEqual~≠~NotEqualTilde~≂̸~NotExists~∄~NotGreater~≯~NotGreaterEqual~≱~NotGreaterFullEqual~≧̸~NotGreaterGreater~≫̸~NotGreaterLess~≹~NotGreaterSlantEqual~⩾̸~NotGreaterTilde~≵~NotHumpDownHump~≎̸~NotHumpEqual~≏̸~NotLeftTriangle~⋪~NotLeftTriangleBar~⧏̸~NotLeftTriangleEqual~⋬~NotLess~≮~NotLessEqual~≰~NotLessGreater~≸~NotLessLess~≪̸~NotLessSlantEqual~⩽̸~NotLessTilde~≴~NotNestedGreaterGreater~⪢̸~NotNestedLessLess~⪡̸~NotPrecedes~⊀~NotPrecedesEqual~⪯̸~NotPrecedesSlantEqual~⋠~NotReverseElement~∌~NotRightTriangle~⋫~NotRightTriangleBar~⧐̸~NotRightTriangleEqual~⋭~NotSquareSubset~⊏̸~NotSquareSubsetEqual~⋢~NotSquareSuperset~⊐̸~NotSquareSupersetEqual~⋣~NotSubset~⊂⃒~NotSubsetEqual~⊈~NotSucceeds~⊁~NotSucceedsEqual~⪰̸~NotSucceedsSlantEqual~⋡~NotSucceedsTilde~≿̸~NotSuperset~⊃⃒~NotSupersetEqual~⊉~NotTilde~≁~NotTildeEqual~≄~NotTildeFullEqual~≇~NotTildeTilde~≉~NotVerticalBar~∤~Nscr~𝒩~Ocy~О~Odblac~Ő~Ofr~𝔒~Omacr~Ō~Oopf~𝕆~OpenCurlyDoubleQuote~“~OpenCurlyQuote~‘~Or~⩔~Oscr~𝒪~Otimes~⨷~OverBar~‾~OverBrace~⏞~OverBracket~⎴~OverParenthesis~⏜~PartialD~∂~Pcy~П~Pfr~𝔓~PlusMinus~±~Poincareplane~ℌ~Popf~ℙ~Pr~⪻~Precedes~≺~PrecedesEqual~⪯~PrecedesSlantEqual~≼~PrecedesTilde~≾~Product~∏~Proportion~∷~Proportional~∝~Pscr~𝒫~Qfr~𝔔~Qopf~ℚ~Qscr~𝒬~RBarr~⤐~Racute~Ŕ~Rang~⟫~Rarr~↠~Rarrtl~⤖~Rcaron~Ř~Rcedil~Ŗ~Rcy~Р~Re~ℜ~ReverseElement~∋~ReverseEquilibrium~⇋~ReverseUpEquilibrium~⥯~Rfr~ℜ~RightAngleBracket~⟩~RightArrow~→~RightArrowBar~⇥~RightArrowLeftArrow~⇄~RightCeiling~⌉~RightDoubleBracket~⟧~RightDownTeeVector~⥝~RightDownVector~⇂~RightDownVectorBar~⥕~RightFloor~⌋~RightTee~⊢~RightTeeArrow~↦~RightTeeVector~⥛~RightTriangle~⊳~RightTriangleBar~⧐~RightTriangleEqual~⊵~RightUpDownVector~⥏~RightUpTeeVector~⥜~RightUpVector~↾~RightUpVectorBar~⥔~RightVector~⇀~RightVectorBar~⥓~Rightarrow~⇒~Ropf~ℝ~RoundImplies~⥰~Rrightarrow~⇛~Rscr~ℛ~Rsh~↱~RuleDelayed~⧴~SHCHcy~Щ~SHcy~Ш~SOFTcy~Ь~Sacute~Ś~Sc~⪼~Scedil~Ş~Scirc~Ŝ~Scy~С~Sfr~𝔖~ShortDownArrow~↓~ShortLeftArrow~←~ShortRightArrow~→~ShortUpArrow~↑~SmallCircle~∘~Sopf~𝕊~Sqrt~√~Square~□~SquareIntersection~⊓~SquareSubset~⊏~SquareSubsetEqual~⊑~SquareSuperset~⊐~SquareSupersetEqual~⊒~SquareUnion~⊔~Sscr~𝒮~Star~⋆~Sub~⋐~Subset~⋐~SubsetEqual~⊆~Succeeds~≻~SucceedsEqual~⪰~SucceedsSlantEqual~≽~SucceedsTilde~≿~SuchThat~∋~Sum~∑~Sup~⋑~Superset~⊃~SupersetEqual~⊇~Supset~⋑~TRADE~™~TSHcy~Ћ~TScy~Ц~Tab~ ~Tcaron~Ť~Tcedil~Ţ~Tcy~Т~Tfr~𝔗~Therefore~∴~ThickSpace~ ~ThinSpace~ ~Tilde~∼~TildeEqual~≃~TildeFullEqual~≅~TildeTilde~≈~Topf~𝕋~TripleDot~⃛~Tscr~𝒯~Tstrok~Ŧ~Uarr~↟~Uarrocir~⥉~Ubrcy~Ў~Ubreve~Ŭ~Ucy~У~Udblac~Ű~Ufr~𝔘~Umacr~Ū~UnderBar~_~UnderBrace~⏟~UnderBracket~⎵~UnderParenthesis~⏝~Union~⋃~UnionPlus~⊎~Uogon~Ų~Uopf~𝕌~UpArrow~↑~UpArrowBar~⤒~UpArrowDownArrow~⇅~UpDownArrow~↕~UpEquilibrium~⥮~UpTee~⊥~UpTeeArrow~↥~Uparrow~⇑~Updownarrow~⇕~UpperLeftArrow~↖~UpperRightArrow~↗~Upsi~ϒ~Uring~Ů~Uscr~𝒰~Utilde~Ũ~VDash~⊫~Vbar~⫫~Vcy~В~Vdash~⊩~Vdashl~⫦~Vee~⋁~Verbar~‖~Vert~‖~VerticalBar~∣~VerticalLine~|~VerticalSeparator~❘~VerticalTilde~≀~VeryThinSpace~ ~Vfr~𝔙~Vopf~𝕍~Vscr~𝒱~Vvdash~⊪~Wcirc~Ŵ~Wedge~⋀~Wfr~𝔚~Wopf~𝕎~Wscr~𝒲~Xfr~𝔛~Xopf~𝕏~Xscr~𝒳~YAcy~Я~YIcy~Ї~YUcy~Ю~Ycirc~Ŷ~Ycy~Ы~Yfr~𝔜~Yopf~𝕐~Yscr~𝒴~ZHcy~Ж~Zacute~Ź~Zcaron~Ž~Zcy~З~Zdot~Ż~ZeroWidthSpace~~Zfr~ℨ~Zopf~ℤ~Zscr~𝒵~abreve~ă~ac~∾~acE~∾̳~acd~∿~acy~а~af~~afr~𝔞~aleph~ℵ~amacr~ā~amalg~⨿~andand~⩕~andd~⩜~andslope~⩘~andv~⩚~ange~⦤~angle~∠~angmsd~∡~angmsdaa~⦨~angmsdab~⦩~angmsdac~⦪~angmsdad~⦫~angmsdae~⦬~angmsdaf~⦭~angmsdag~⦮~angmsdah~⦯~angrt~∟~angrtvb~⊾~angrtvbd~⦝~angsph~∢~angst~Å~angzarr~⍼~aogon~ą~aopf~𝕒~ap~≈~apE~⩰~apacir~⩯~ape~≊~apid~≋~approx~≈~approxeq~≊~ascr~𝒶~ast~*~asympeq~≍~awconint~∳~awint~⨑~bNot~⫭~backcong~≌~backepsilon~϶~backprime~‵~backsim~∽~backsimeq~⋍~barvee~⊽~barwed~⌅~barwedge~⌅~bbrk~⎵~bbrktbrk~⎶~bcong~≌~bcy~б~becaus~∵~because~∵~bemptyv~⦰~bepsi~϶~bernou~ℬ~beth~ℶ~between~≬~bfr~𝔟~bigcap~⋂~bigcirc~◯~bigcup~⋃~bigodot~⨀~bigoplus~⨁~bigotimes~⨂~bigsqcup~⨆~bigstar~★~bigtriangledown~▽~bigtriangleup~△~biguplus~⨄~bigvee~⋁~bigwedge~⋀~bkarow~⤍~blacklozenge~⧫~blacksquare~▪~blacktriangle~▴~blacktriangledown~▾~blacktriangleleft~◂~blacktriangleright~▸~blank~␣~blk12~▒~blk14~░~blk34~▓~block~█~bne~=⃥~bnequiv~≡⃥~bnot~⌐~bopf~𝕓~bot~⊥~bottom~⊥~bowtie~⋈~boxDL~╗~boxDR~╔~boxDl~╖~boxDr~╓~boxH~═~boxHD~╦~boxHU~╩~boxHd~╤~boxHu~╧~boxUL~╝~boxUR~╚~boxUl~╜~boxUr~╙~boxV~║~boxVH~╬~boxVL~╣~boxVR~╠~boxVh~╫~boxVl~╢~boxVr~╟~boxbox~⧉~boxdL~╕~boxdR~╒~boxdl~┐~boxdr~┌~boxh~─~boxhD~╥~boxhU~╨~boxhd~┬~boxhu~┴~boxminus~⊟~boxplus~⊞~boxtimes~⊠~boxuL~╛~boxuR~╘~boxul~┘~boxur~└~boxv~│~boxvH~╪~boxvL~╡~boxvR~╞~boxvh~┼~boxvl~┤~boxvr~├~bprime~‵~breve~˘~bscr~𝒷~bsemi~⁏~bsim~∽~bsime~⋍~bsol~\\~bsolb~⧅~bsolhsub~⟈~bullet~•~bump~≎~bumpE~⪮~bumpe~≏~bumpeq~≏~cacute~ć~capand~⩄~capbrcup~⩉~capcap~⩋~capcup~⩇~capdot~⩀~caps~∩︀~caret~⁁~caron~ˇ~ccaps~⩍~ccaron~č~ccirc~ĉ~ccups~⩌~ccupssm~⩐~cdot~ċ~cemptyv~⦲~centerdot~·~cfr~𝔠~chcy~ч~check~✓~checkmark~✓~cir~○~cirE~⧃~circeq~≗~circlearrowleft~↺~circlearrowright~↻~circledR~®~circledS~Ⓢ~circledast~⊛~circledcirc~⊚~circleddash~⊝~cire~≗~cirfnint~⨐~cirmid~⫯~cirscir~⧂~clubsuit~♣~colon~:~colone~≔~coloneq~≔~comma~,~commat~@~comp~∁~compfn~∘~complement~∁~complexes~ℂ~congdot~⩭~conint~∮~copf~𝕔~coprod~∐~copysr~℗~cross~✗~cscr~𝒸~csub~⫏~csube~⫑~csup~⫐~csupe~⫒~ctdot~⋯~cudarrl~⤸~cudarrr~⤵~cuepr~⋞~cuesc~⋟~cularr~↶~cularrp~⤽~cupbrcap~⩈~cupcap~⩆~cupcup~⩊~cupdot~⊍~cupor~⩅~cups~∪︀~curarr~↷~curarrm~⤼~curlyeqprec~⋞~curlyeqsucc~⋟~curlyvee~⋎~curlywedge~⋏~curvearrowleft~↶~curvearrowright~↷~cuvee~⋎~cuwed~⋏~cwconint~∲~cwint~∱~cylcty~⌭~dHar~⥥~daleth~ℸ~dash~‐~dashv~⊣~dbkarow~⤏~dblac~˝~dcaron~ď~dcy~д~dd~ⅆ~ddagger~‡~ddarr~⇊~ddotseq~⩷~demptyv~⦱~dfisht~⥿~dfr~𝔡~dharl~⇃~dharr~⇂~diam~⋄~diamond~⋄~diamondsuit~♦~die~¨~digamma~ϝ~disin~⋲~div~÷~divideontimes~⋇~divonx~⋇~djcy~ђ~dlcorn~⌞~dlcrop~⌍~dollar~$~dopf~𝕕~dot~˙~doteq~≐~doteqdot~≑~dotminus~∸~dotplus~∔~dotsquare~⊡~doublebarwedge~⌆~downarrow~↓~downdownarrows~⇊~downharpoonleft~⇃~downharpoonright~⇂~drbkarow~⤐~drcorn~⌟~drcrop~⌌~dscr~𝒹~dscy~ѕ~dsol~⧶~dstrok~đ~dtdot~⋱~dtri~▿~dtrif~▾~duarr~⇵~duhar~⥯~dwangle~⦦~dzcy~џ~dzigrarr~⟿~eDDot~⩷~eDot~≑~easter~⩮~ecaron~ě~ecir~≖~ecolon~≕~ecy~э~edot~ė~ee~ⅇ~efDot~≒~efr~𝔢~eg~⪚~egs~⪖~egsdot~⪘~el~⪙~elinters~⏧~ell~ℓ~els~⪕~elsdot~⪗~emacr~ē~emptyset~∅~emptyv~∅~emsp13~ ~emsp14~ ~eng~ŋ~eogon~ę~eopf~𝕖~epar~⋕~eparsl~⧣~eplus~⩱~epsi~ε~epsiv~ϵ~eqcirc~≖~eqcolon~≕~eqsim~≂~eqslantgtr~⪖~eqslantless~⪕~equals~=~equest~≟~equivDD~⩸~eqvparsl~⧥~erDot~≓~erarr~⥱~escr~ℯ~esdot~≐~esim~≂~excl~!~expectation~ℰ~exponentiale~ⅇ~fallingdotseq~≒~fcy~ф~female~♀~ffilig~ffi~fflig~ff~ffllig~ffl~ffr~𝔣~filig~fi~fjlig~fj~flat~♭~fllig~fl~fltns~▱~fopf~𝕗~fork~⋔~forkv~⫙~fpartint~⨍~frac13~⅓~frac15~⅕~frac16~⅙~frac18~⅛~frac23~⅔~frac25~⅖~frac35~⅗~frac38~⅜~frac45~⅘~frac56~⅚~frac58~⅝~frac78~⅞~frown~⌢~fscr~𝒻~gE~≧~gEl~⪌~gacute~ǵ~gammad~ϝ~gap~⪆~gbreve~ğ~gcirc~ĝ~gcy~г~gdot~ġ~gel~⋛~geq~≥~geqq~≧~geqslant~⩾~ges~⩾~gescc~⪩~gesdot~⪀~gesdoto~⪂~gesdotol~⪄~gesl~⋛︀~gesles~⪔~gfr~𝔤~gg~≫~ggg~⋙~gimel~ℷ~gjcy~ѓ~gl~≷~glE~⪒~gla~⪥~glj~⪤~gnE~≩~gnap~⪊~gnapprox~⪊~gne~⪈~gneq~⪈~gneqq~≩~gnsim~⋧~gopf~𝕘~grave~`~gscr~ℊ~gsim~≳~gsime~⪎~gsiml~⪐~gtcc~⪧~gtcir~⩺~gtdot~⋗~gtlPar~⦕~gtquest~⩼~gtrapprox~⪆~gtrarr~⥸~gtrdot~⋗~gtreqless~⋛~gtreqqless~⪌~gtrless~≷~gtrsim~≳~gvertneqq~≩︀~gvnE~≩︀~hairsp~ ~half~½~hamilt~ℋ~hardcy~ъ~harrcir~⥈~harrw~↭~hbar~ℏ~hcirc~ĥ~heartsuit~♥~hercon~⊹~hfr~𝔥~hksearow~⤥~hkswarow~⤦~hoarr~⇿~homtht~∻~hookleftarrow~↩~hookrightarrow~↪~hopf~𝕙~horbar~―~hscr~𝒽~hslash~ℏ~hstrok~ħ~hybull~⁃~hyphen~‐~ic~~icy~и~iecy~е~iff~⇔~ifr~𝔦~ii~ⅈ~iiiint~⨌~iiint~∭~iinfin~⧜~iiota~℩~ijlig~ij~imacr~ī~imagline~ℐ~imagpart~ℑ~imath~ı~imof~⊷~imped~Ƶ~in~∈~incare~℅~infintie~⧝~inodot~ı~intcal~⊺~integers~ℤ~intercal~⊺~intlarhk~⨗~intprod~⨼~iocy~ё~iogon~į~iopf~𝕚~iprod~⨼~iscr~𝒾~isinE~⋹~isindot~⋵~isins~⋴~isinsv~⋳~isinv~∈~it~~itilde~ĩ~iukcy~і~jcirc~ĵ~jcy~й~jfr~𝔧~jmath~ȷ~jopf~𝕛~jscr~𝒿~jsercy~ј~jukcy~є~kappav~ϰ~kcedil~ķ~kcy~к~kfr~𝔨~kgreen~ĸ~khcy~х~kjcy~ќ~kopf~𝕜~kscr~𝓀~lAarr~⇚~lAtail~⤛~lBarr~⤎~lE~≦~lEg~⪋~lHar~⥢~lacute~ĺ~laemptyv~⦴~lagran~ℒ~langd~⦑~langle~⟨~lap~⪅~larrb~⇤~larrbfs~⤟~larrfs~⤝~larrhk~↩~larrlp~↫~larrpl~⤹~larrsim~⥳~larrtl~↢~lat~⪫~latail~⤙~late~⪭~lates~⪭︀~lbarr~⤌~lbbrk~❲~lbrace~{~lbrack~[~lbrke~⦋~lbrksld~⦏~lbrkslu~⦍~lcaron~ľ~lcedil~ļ~lcub~{~lcy~л~ldca~⤶~ldquor~„~ldrdhar~⥧~ldrushar~⥋~ldsh~↲~leftarrow~←~leftarrowtail~↢~leftharpoondown~↽~leftharpoonup~↼~leftleftarrows~⇇~leftrightarrow~↔~leftrightarrows~⇆~leftrightharpoons~⇋~leftrightsquigarrow~↭~leftthreetimes~⋋~leg~⋚~leq~≤~leqq~≦~leqslant~⩽~les~⩽~lescc~⪨~lesdot~⩿~lesdoto~⪁~lesdotor~⪃~lesg~⋚︀~lesges~⪓~lessapprox~⪅~lessdot~⋖~lesseqgtr~⋚~lesseqqgtr~⪋~lessgtr~≶~lesssim~≲~lfisht~⥼~lfr~𝔩~lg~≶~lgE~⪑~lhard~↽~lharu~↼~lharul~⥪~lhblk~▄~ljcy~љ~ll~≪~llarr~⇇~llcorner~⌞~llhard~⥫~lltri~◺~lmidot~ŀ~lmoust~⎰~lmoustache~⎰~lnE~≨~lnap~⪉~lnapprox~⪉~lne~⪇~lneq~⪇~lneqq~≨~lnsim~⋦~loang~⟬~loarr~⇽~lobrk~⟦~longleftarrow~⟵~longleftrightarrow~⟷~longmapsto~⟼~longrightarrow~⟶~looparrowleft~↫~looparrowright~↬~lopar~⦅~lopf~𝕝~loplus~⨭~lotimes~⨴~lowbar~_~lozenge~◊~lozf~⧫~lpar~(~lparlt~⦓~lrarr~⇆~lrcorner~⌟~lrhar~⇋~lrhard~⥭~lrtri~⊿~lscr~𝓁~lsh~↰~lsim~≲~lsime~⪍~lsimg~⪏~lsqb~[~lsquor~‚~lstrok~ł~ltcc~⪦~ltcir~⩹~ltdot~⋖~lthree~⋋~ltimes~⋉~ltlarr~⥶~ltquest~⩻~ltrPar~⦖~ltri~◃~ltrie~⊴~ltrif~◂~lurdshar~⥊~luruhar~⥦~lvertneqq~≨︀~lvnE~≨︀~mDDot~∺~male~♂~malt~✠~maltese~✠~map~↦~mapsto~↦~mapstodown~↧~mapstoleft~↤~mapstoup~↥~marker~▮~mcomma~⨩~mcy~м~measuredangle~∡~mfr~𝔪~mho~℧~mid~∣~midast~*~midcir~⫰~minusb~⊟~minusd~∸~minusdu~⨪~mlcp~⫛~mldr~…~mnplus~∓~models~⊧~mopf~𝕞~mp~∓~mscr~𝓂~mstpos~∾~multimap~⊸~mumap~⊸~nGg~⋙̸~nGt~≫⃒~nGtv~≫̸~nLeftarrow~⇍~nLeftrightarrow~⇎~nLl~⋘̸~nLt~≪⃒~nLtv~≪̸~nRightarrow~⇏~nVDash~⊯~nVdash~⊮~nacute~ń~nang~∠⃒~nap~≉~napE~⩰̸~napid~≋̸~napos~ʼn~napprox~≉~natur~♮~natural~♮~naturals~ℕ~nbump~≎̸~nbumpe~≏̸~ncap~⩃~ncaron~ň~ncedil~ņ~ncong~≇~ncongdot~⩭̸~ncup~⩂~ncy~н~neArr~⇗~nearhk~⤤~nearr~↗~nearrow~↗~nedot~≐̸~nequiv~≢~nesear~⤨~nesim~≂̸~nexist~∄~nexists~∄~nfr~𝔫~ngE~≧̸~nge~≱~ngeq~≱~ngeqq~≧̸~ngeqslant~⩾̸~nges~⩾̸~ngsim~≵~ngt~≯~ngtr~≯~nhArr~⇎~nharr~↮~nhpar~⫲~nis~⋼~nisd~⋺~niv~∋~njcy~њ~nlArr~⇍~nlE~≦̸~nlarr~↚~nldr~‥~nle~≰~nleftarrow~↚~nleftrightarrow~↮~nleq~≰~nleqq~≦̸~nleqslant~⩽̸~nles~⩽̸~nless~≮~nlsim~≴~nlt~≮~nltri~⋪~nltrie~⋬~nmid~∤~nopf~𝕟~notinE~⋹̸~notindot~⋵̸~notinva~∉~notinvb~⋷~notinvc~⋶~notni~∌~notniva~∌~notnivb~⋾~notnivc~⋽~npar~∦~nparallel~∦~nparsl~⫽⃥~npart~∂̸~npolint~⨔~npr~⊀~nprcue~⋠~npre~⪯̸~nprec~⊀~npreceq~⪯̸~nrArr~⇏~nrarr~↛~nrarrc~⤳̸~nrarrw~↝̸~nrightarrow~↛~nrtri~⋫~nrtrie~⋭~nsc~⊁~nsccue~⋡~nsce~⪰̸~nscr~𝓃~nshortmid~∤~nshortparallel~∦~nsim~≁~nsime~≄~nsimeq~≄~nsmid~∤~nspar~∦~nsqsube~⋢~nsqsupe~⋣~nsubE~⫅̸~nsube~⊈~nsubset~⊂⃒~nsubseteq~⊈~nsubseteqq~⫅̸~nsucc~⊁~nsucceq~⪰̸~nsup~⊅~nsupE~⫆̸~nsupe~⊉~nsupset~⊃⃒~nsupseteq~⊉~nsupseteqq~⫆̸~ntgl~≹~ntlg~≸~ntriangleleft~⋪~ntrianglelefteq~⋬~ntriangleright~⋫~ntrianglerighteq~⋭~num~#~numero~№~numsp~ ~nvDash~⊭~nvHarr~⤄~nvap~≍⃒~nvdash~⊬~nvge~≥⃒~nvgt~>⃒~nvinfin~⧞~nvlArr~⤂~nvle~≤⃒~nvlt~<⃒~nvltrie~⊴⃒~nvrArr~⤃~nvrtrie~⊵⃒~nvsim~∼⃒~nwArr~⇖~nwarhk~⤣~nwarr~↖~nwarrow~↖~nwnear~⤧~oS~Ⓢ~oast~⊛~ocir~⊚~ocy~о~odash~⊝~odblac~ő~odiv~⨸~odot~⊙~odsold~⦼~ofcir~⦿~ofr~𝔬~ogon~˛~ogt~⧁~ohbar~⦵~ohm~Ω~oint~∮~olarr~↺~olcir~⦾~olcross~⦻~olt~⧀~omacr~ō~omid~⦶~ominus~⊖~oopf~𝕠~opar~⦷~operp~⦹~orarr~↻~ord~⩝~order~ℴ~orderof~ℴ~origof~⊶~oror~⩖~orslope~⩗~orv~⩛~oscr~ℴ~osol~⊘~otimesas~⨶~ovbar~⌽~par~∥~parallel~∥~parsim~⫳~parsl~⫽~pcy~п~percnt~%~period~.~pertenk~‱~pfr~𝔭~phiv~ϕ~phmmat~ℳ~phone~☎~pitchfork~⋔~planck~ℏ~planckh~ℎ~plankv~ℏ~plus~+~plusacir~⨣~plusb~⊞~pluscir~⨢~plusdo~∔~plusdu~⨥~pluse~⩲~plussim~⨦~plustwo~⨧~pm~±~pointint~⨕~popf~𝕡~pr~≺~prE~⪳~prap~⪷~prcue~≼~pre~⪯~prec~≺~precapprox~⪷~preccurlyeq~≼~preceq~⪯~precnapprox~⪹~precneqq~⪵~precnsim~⋨~precsim~≾~primes~ℙ~prnE~⪵~prnap~⪹~prnsim~⋨~profalar~⌮~profline~⌒~profsurf~⌓~propto~∝~prsim~≾~prurel~⊰~pscr~𝓅~puncsp~ ~qfr~𝔮~qint~⨌~qopf~𝕢~qprime~⁗~qscr~𝓆~quaternions~ℍ~quatint~⨖~quest~?~questeq~≟~rAarr~⇛~rAtail~⤜~rBarr~⤏~rHar~⥤~race~∽̱~racute~ŕ~raemptyv~⦳~rangd~⦒~range~⦥~rangle~⟩~rarrap~⥵~rarrb~⇥~rarrbfs~⤠~rarrc~⤳~rarrfs~⤞~rarrhk~↪~rarrlp~↬~rarrpl~⥅~rarrsim~⥴~rarrtl~↣~rarrw~↝~ratail~⤚~ratio~∶~rationals~ℚ~rbarr~⤍~rbbrk~❳~rbrace~}~rbrack~]~rbrke~⦌~rbrksld~⦎~rbrkslu~⦐~rcaron~ř~rcedil~ŗ~rcub~}~rcy~р~rdca~⤷~rdldhar~⥩~rdquor~”~rdsh~↳~realine~ℛ~realpart~ℜ~reals~ℝ~rect~▭~rfisht~⥽~rfr~𝔯~rhard~⇁~rharu~⇀~rharul~⥬~rhov~ϱ~rightarrow~→~rightarrowtail~↣~rightharpoondown~⇁~rightharpoonup~⇀~rightleftarrows~⇄~rightleftharpoons~⇌~rightrightarrows~⇉~rightsquigarrow~↝~rightthreetimes~⋌~ring~˚~risingdotseq~≓~rlarr~⇄~rlhar~⇌~rmoust~⎱~rmoustache~⎱~rnmid~⫮~roang~⟭~roarr~⇾~robrk~⟧~ropar~⦆~ropf~𝕣~roplus~⨮~rotimes~⨵~rpar~)~rpargt~⦔~rppolint~⨒~rrarr~⇉~rscr~𝓇~rsh~↱~rsqb~]~rsquor~’~rthree~⋌~rtimes~⋊~rtri~▹~rtrie~⊵~rtrif~▸~rtriltri~⧎~ruluhar~⥨~rx~℞~sacute~ś~sc~≻~scE~⪴~scap~⪸~sccue~≽~sce~⪰~scedil~ş~scirc~ŝ~scnE~⪶~scnap~⪺~scnsim~⋩~scpolint~⨓~scsim~≿~scy~с~sdotb~⊡~sdote~⩦~seArr~⇘~searhk~⤥~searr~↘~searrow~↘~semi~;~seswar~⤩~setminus~∖~setmn~∖~sext~✶~sfr~𝔰~sfrown~⌢~sharp~♯~shchcy~щ~shcy~ш~shortmid~∣~shortparallel~∥~sigmav~ς~simdot~⩪~sime~≃~simeq~≃~simg~⪞~simgE~⪠~siml~⪝~simlE~⪟~simne~≆~simplus~⨤~simrarr~⥲~slarr~←~smallsetminus~∖~smashp~⨳~smeparsl~⧤~smid~∣~smile~⌣~smt~⪪~smte~⪬~smtes~⪬︀~softcy~ь~sol~/~solb~⧄~solbar~⌿~sopf~𝕤~spadesuit~♠~spar~∥~sqcap~⊓~sqcaps~⊓︀~sqcup~⊔~sqcups~⊔︀~sqsub~⊏~sqsube~⊑~sqsubset~⊏~sqsubseteq~⊑~sqsup~⊐~sqsupe~⊒~sqsupset~⊐~sqsupseteq~⊒~squ~□~square~□~squarf~▪~squf~▪~srarr~→~sscr~𝓈~ssetmn~∖~ssmile~⌣~sstarf~⋆~star~☆~starf~★~straightepsilon~ϵ~straightphi~ϕ~strns~¯~subE~⫅~subdot~⪽~subedot~⫃~submult~⫁~subnE~⫋~subne~⊊~subplus~⪿~subrarr~⥹~subset~⊂~subseteq~⊆~subseteqq~⫅~subsetneq~⊊~subsetneqq~⫋~subsim~⫇~subsub~⫕~subsup~⫓~succ~≻~succapprox~⪸~succcurlyeq~≽~succeq~⪰~succnapprox~⪺~succneqq~⪶~succnsim~⋩~succsim~≿~sung~♪~supE~⫆~supdot~⪾~supdsub~⫘~supedot~⫄~suphsol~⟉~suphsub~⫗~suplarr~⥻~supmult~⫂~supnE~⫌~supne~⊋~supplus~⫀~supset~⊃~supseteq~⊇~supseteqq~⫆~supsetneq~⊋~supsetneqq~⫌~supsim~⫈~supsub~⫔~supsup~⫖~swArr~⇙~swarhk~⤦~swarr~↙~swarrow~↙~swnwar~⤪~target~⌖~tbrk~⎴~tcaron~ť~tcedil~ţ~tcy~т~tdot~⃛~telrec~⌕~tfr~𝔱~therefore~∴~thetav~ϑ~thickapprox~≈~thicksim~∼~thkap~≈~thksim~∼~timesb~⊠~timesbar~⨱~timesd~⨰~tint~∭~toea~⤨~top~⊤~topbot~⌶~topcir~⫱~topf~𝕥~topfork~⫚~tosa~⤩~tprime~‴~triangle~▵~triangledown~▿~triangleleft~◃~trianglelefteq~⊴~triangleq~≜~triangleright~▹~trianglerighteq~⊵~tridot~◬~trie~≜~triminus~⨺~triplus~⨹~trisb~⧍~tritime~⨻~trpezium~⏢~tscr~𝓉~tscy~ц~tshcy~ћ~tstrok~ŧ~twixt~≬~twoheadleftarrow~↞~twoheadrightarrow~↠~uHar~⥣~ubrcy~ў~ubreve~ŭ~ucy~у~udarr~⇅~udblac~ű~udhar~⥮~ufisht~⥾~ufr~𝔲~uharl~↿~uharr~↾~uhblk~▀~ulcorn~⌜~ulcorner~⌜~ulcrop~⌏~ultri~◸~umacr~ū~uogon~ų~uopf~𝕦~uparrow~↑~updownarrow~↕~upharpoonleft~↿~upharpoonright~↾~uplus~⊎~upsi~υ~upuparrows~⇈~urcorn~⌝~urcorner~⌝~urcrop~⌎~uring~ů~urtri~◹~uscr~𝓊~utdot~⋰~utilde~ũ~utri~▵~utrif~▴~uuarr~⇈~uwangle~⦧~vArr~⇕~vBar~⫨~vBarv~⫩~vDash~⊨~vangrt~⦜~varepsilon~ϵ~varkappa~ϰ~varnothing~∅~varphi~ϕ~varpi~ϖ~varpropto~∝~varr~↕~varrho~ϱ~varsigma~ς~varsubsetneq~⊊︀~varsubsetneqq~⫋︀~varsupsetneq~⊋︀~varsupsetneqq~⫌︀~vartheta~ϑ~vartriangleleft~⊲~vartriangleright~⊳~vcy~в~vdash~⊢~vee~∨~veebar~⊻~veeeq~≚~vellip~⋮~verbar~|~vert~|~vfr~𝔳~vltri~⊲~vnsub~⊂⃒~vnsup~⊃⃒~vopf~𝕧~vprop~∝~vrtri~⊳~vscr~𝓋~vsubnE~⫋︀~vsubne~⊊︀~vsupnE~⫌︀~vsupne~⊋︀~vzigzag~⦚~wcirc~ŵ~wedbar~⩟~wedge~∧~wedgeq~≙~wfr~𝔴~wopf~𝕨~wp~℘~wr~≀~wreath~≀~wscr~𝓌~xcap~⋂~xcirc~◯~xcup~⋃~xdtri~▽~xfr~𝔵~xhArr~⟺~xharr~⟷~xlArr~⟸~xlarr~⟵~xmap~⟼~xnis~⋻~xodot~⨀~xopf~𝕩~xoplus~⨁~xotime~⨂~xrArr~⟹~xrarr~⟶~xscr~𝓍~xsqcup~⨆~xuplus~⨄~xutri~△~xvee~⋁~xwedge~⋀~yacy~я~ycirc~ŷ~ycy~ы~yfr~𝔶~yicy~ї~yopf~𝕪~yscr~𝓎~yucy~ю~zacute~ź~zcaron~ž~zcy~з~zdot~ż~zeetrf~ℨ~zfr~𝔷~zhcy~ж~zigrarr~⇝~zopf~𝕫~zscr~𝓏~~AMP~&~COPY~©~GT~>~LT~<~QUOT~"~REG~®',XE.html4);var ZE={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},QE=String.fromCodePoint||function(e){return String.fromCharCode(Math.floor((e-65536)/1024)+55296,(e-65536)%1024+56320)};String.prototype.codePointAt;var $E=function(){return $E=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},$E.apply(this,arguments)},eD=$E($E({},XE),{all:XE.html5}),tD={scope:`body`,level:`all`},nD=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g,rD=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g,iD={xml:{strict:nD,attribute:rD,body:YE.xml},html4:{strict:nD,attribute:rD,body:YE.html4},html5:{strict:nD,attribute:rD,body:YE.html5}},aD=$E($E({},iD),{all:iD.html5}),oD=String.fromCharCode,sD=oD(65533);function cD(e,t,n,r){var i=e,a=e[e.length-1];if(n&&a===`=`)i=e;else if(r&&a!==`;`)i=e;else{var o=t[e];if(o)i=o;else if(e[0]===`&`&&e[1]===`#`){var s=e[2],c=s==`x`||s==`X`?parseInt(e.substr(3),16):parseInt(e.substr(2));i=c>=1114111?sD:c>65535?QE(c):oD(ZE[c]||c)}}return i}function lD(e,t){var n=t===void 0?tD:t,r=n.level,i=r===void 0?`all`:r,a=n.scope,o=a===void 0?i===`xml`?`strict`:`body`:a;if(!e)return``;var s=aD[i][o],c=eD[i].entities,l=o===`attribute`,u=o===`strict`;return e.replace(s,function(e){return cD(e,c,l,u)})}var uD={strictlyTwoElementsInRangeArrays:!1,progressFn:null};function dD(e,t){if(!Array.isArray(e)||!e.length)return e;let n={...uD,...t},r,i;if(n.strictlyTwoElementsInRangeArrays&&!e.every((e,t)=>!Array.isArray(e)||e.length!==2?(r=t,i=e.length,!1):!0))throw TypeError(`ranges-sort: [THROW_ID_03] The first argument should be an array and must consist of arrays which are natural number indexes representing TWO string index ranges. However, ${r}th range (${JSON.stringify(e[r],null,4)}) has not two but ${i} elements!`);if(!e.every((e,t)=>!Array.isArray(e)||!Number.isInteger(e[0])||e[0]<0||!Number.isInteger(e[1])||e[1]<0?(r=t,!1):!0))throw TypeError(`ranges-sort: [THROW_ID_04] The first argument should be an array and must consist of arrays which are natural number indexes representing string index ranges. However, ${r}th range (${JSON.stringify(e[r],null,4)}) does not consist of only natural numbers!`);let a=e.length**2,o=0;return Array.from(e).sort((e,t)=>(n.progressFn&&(o+=1,n.progressFn(Math.floor(o*100/a))),e[0]===t[0]?e[1]<t[1]?-1:+(e[1]>t[1]):e[0]<t[0]?-1:1))}var fD={mergeType:1,progressFn:null,joinRangesThatTouchEdges:!0};function pD(e,t){function n(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}if(!Array.isArray(e)||!e.length)return null;let r;if(t)if(n(t)){if(r={...fD,...t},r.progressFn&&n(r.progressFn)&&!Object.keys(r.progressFn).length)r.progressFn=null;else if(r.progressFn&&typeof r.progressFn!=`function`)throw Error(`ranges-merge: [THROW_ID_01] opts.progressFn must be a function! It was given of a type: "${typeof r.progressFn}", equal to ${JSON.stringify(r.progressFn,null,4)}`);if(![1,2,`1`,`2`].includes(r.mergeType))throw Error(`ranges-merge: [THROW_ID_02] opts.mergeType was customised to a wrong thing! It was given of a type: "${typeof r.mergeType}", equal to ${JSON.stringify(r.mergeType,null,4)}`);if(typeof r.joinRangesThatTouchEdges!=`boolean`)throw Error(`ranges-merge: [THROW_ID_04] opts.joinRangesThatTouchEdges was customised to a wrong thing! It was given of a type: "${typeof r.joinRangesThatTouchEdges}", equal to ${JSON.stringify(r.joinRangesThatTouchEdges,null,4)}`)}else throw Error(`emlint: [THROW_ID_03] the second input argument must be a plain object. It was given as:
|
|
873
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yS(e,t){if(e){if(typeof e==`string`)return SS(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?SS(e,t):void 0}}function bS(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function xS(e){if(Array.isArray(e))return SS(e)}function SS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var CS={name:`Listbox`,extends:gS,inheritAttrs:!1,emits:[`change`,`focus`,`blur`,`filter`,`item-dblclick`,`option-dblclick`],list:null,virtualScroller:null,optionTouched:!1,startRangeIndex:-1,searchTimeout:null,searchValue:``,data:function(){return{filterValue:null,focused:!1,focusedOptionIndex:-1}},watch:{options:function(){this.autoUpdateModel()}},mounted:function(){this.autoUpdateModel()},methods:{getOptionIndex:function(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel:function(e){return this.optionLabel?gt(e,this.optionLabel):typeof e==`string`||typeof e==`number`||typeof e==`boolean`?e:null},getOptionValue:function(e){return this.optionValue?gt(e,this.optionValue):e},getOptionRenderKey:function(e,t){return(this.dataKey?gt(e,this.dataKey):this.getOptionLabel(e))+`_`+t},getPTOptions:function(e,t,n,r){return this.ptm(r,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex===this.getOptionIndex(n,t),disabled:this.isOptionDisabled(e)}})},isOptionDisabled:function(e){return this.optionDisabled?gt(e,this.optionDisabled):!1},isOptionGroup:function(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel:function(e){return gt(e,this.optionGroupLabel)},getOptionGroupChildren:function(e){return gt(e,this.optionGroupChildren)},getAriaPosInset:function(e){var t=this;return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter(function(e){return t.isOptionGroup(e)}).length:e)+1},onFirstHiddenFocus:function(){Ie(this.list);var e=ce(this.$el,`:not([data-p-hidden-focusable="true"])`);this.$refs.lastHiddenFocusableElement.tabIndex=I(e)?void 0:-1,this.$refs.firstHiddenFocusableElement.tabIndex=-1},onLastHiddenFocus:function(e){e.relatedTarget===this.list?(Ie(ce(this.$el,`:not([data-p-hidden-focusable="true"])`)),this.$refs.firstHiddenFocusableElement.tabIndex=void 0):Ie(this.$refs.firstHiddenFocusableElement),this.$refs.lastHiddenFocusableElement.tabIndex=-1},onFocusout:function(e){!this.$el.contains(e.relatedTarget)&&this.$refs.lastHiddenFocusableElement&&this.$refs.firstHiddenFocusableElement&&(this.$refs.lastHiddenFocusableElement.tabIndex=this.$refs.firstHiddenFocusableElement.tabIndex=void 0)},onListFocus:function(e){this.focused=!0,this.focusedOptionIndex=this.focusedOptionIndex===-1?this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.findSelectedOptionIndex():this.focusedOptionIndex,this.autoUpdateModel(),this.scrollInView(this.focusedOptionIndex),this.$emit(`focus`,e)},onListBlur:function(e){this.focused=!1,this.focusedOptionIndex=this.startRangeIndex=-1,this.searchValue=``,this.$emit(`blur`,e)},onListKeyDown:function(e){var t=this,n=e.metaKey||e.ctrlKey;switch(e.code){case`ArrowDown`:this.onArrowDownKey(e);break;case`ArrowUp`:this.onArrowUpKey(e);break;case`Home`:this.onHomeKey(e);break;case`End`:this.onEndKey(e);break;case`PageDown`:this.onPageDownKey(e);break;case`PageUp`:this.onPageUpKey(e);break;case`Enter`:case`NumpadEnter`:case`Space`:this.onSpaceKey(e);break;case`Tab`:break;case`ShiftLeft`:case`ShiftRight`:this.onShiftKey(e);break;default:if(this.multiple&&e.code===`KeyA`&&n){var r=this.visibleOptions.filter(function(e){return t.isValidOption(e)}).map(function(e){return t.getOptionValue(e)});this.updateModel(e,r),e.preventDefault();break}!n&&be(e.key)&&(this.searchOptions(e,e.key),e.preventDefault());break}},onOptionSelect:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-1;this.disabled||this.isOptionDisabled(t)||(this.multiple?this.onOptionSelectMultiple(e,t):this.onOptionSelectSingle(e,t),this.optionTouched=!1,n!==-1&&(this.focusedOptionIndex=n))},onOptionMouseDown:function(e,t){this.changeFocusedOptionIndex(e,t)},onOptionMouseMove:function(e,t){this.focusOnHover&&this.focused&&this.changeFocusedOptionIndex(e,t)},onOptionTouchEnd:function(){this.disabled||(this.optionTouched=!0)},onOptionDblClick:function(e,t){this.$emit(`item-dblclick`,{originalEvent:e,value:t}),this.$emit(`option-dblclick`,{originalEvent:e,value:t})},onOptionSelectSingle:function(e,t){var n=this.isSelected(t),r=!1,i=null;if(!this.optionTouched&&this.metaKeySelection){var a=e&&(e.metaKey||e.ctrlKey);n?a&&(i=null,r=!0):(i=this.getOptionValue(t),r=!0)}else i=n?null:this.getOptionValue(t),r=!0;r&&this.updateModel(e,i)},onOptionSelectMultiple:function(e,t){var n=this.isSelected(t),r=null;if(!this.optionTouched&&this.metaKeySelection){var i=e.metaKey||e.ctrlKey;n?r=i?this.removeOption(t):[this.getOptionValue(t)]:(r=i&&this.d_value||[],r=[].concat(_S(r),[this.getOptionValue(t)]))}else r=n?this.removeOption(t):[].concat(_S(this.d_value||[]),[this.getOptionValue(t)]);this.updateModel(e,r)},onOptionSelectRange:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-1;if(n===-1&&(n=this.findNearestSelectedOptionIndex(r,!0)),r===-1&&(r=this.findNearestSelectedOptionIndex(n)),n!==-1&&r!==-1){var i=Math.min(n,r),a=Math.max(n,r),o=this.visibleOptions.slice(i,a+1).filter(function(e){return t.isValidOption(e)}).map(function(e){return t.getOptionValue(e)});this.updateModel(e,o)}},onFilterChange:function(e){this.$emit(`filter`,{originalEvent:e,value:e.target.value,filterValue:this.visibleOptions}),this.focusedOptionIndex=this.startRangeIndex=-1},onFilterKeyDown:function(e){switch(e.code){case`ArrowDown`:this.onArrowDownKey(e);break;case`ArrowUp`:this.onArrowUpKey(e);break;case`ArrowLeft`:case`ArrowRight`:this.onArrowLeftKey(e,!0);break;case`Home`:this.onHomeKey(e,!0);break;case`End`:this.onEndKey(e,!0);break;case`Enter`:case`NumpadEnter`:this.onEnterKey(e);break;case`ShiftLeft`:case`ShiftRight`:this.onShiftKey(e);break}},onArrowDownKey:function(e){var t=this.focusedOptionIndex===-1?this.findFirstFocusedOptionIndex():this.findNextOptionIndex(this.focusedOptionIndex);this.multiple&&e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex,t),this.changeFocusedOptionIndex(e,t),e.preventDefault()},onArrowUpKey:function(e){var t=this.focusedOptionIndex===-1?this.findLastFocusedOptionIndex():this.findPrevOptionIndex(this.focusedOptionIndex);this.multiple&&e.shiftKey&&this.onOptionSelectRange(e,t,this.startRangeIndex),this.changeFocusedOptionIndex(e,t),e.preventDefault()},onArrowLeftKey:function(e){arguments.length>1&&arguments[1]!==void 0&&arguments[1]&&(this.focusedOptionIndex=-1)},onHomeKey:function(e){if(arguments.length>1&&arguments[1]!==void 0&&arguments[1]){var t=e.currentTarget;e.shiftKey?t.setSelectionRange(0,e.target.selectionStart):(t.setSelectionRange(0,0),this.focusedOptionIndex=-1)}else{var n=e.metaKey||e.ctrlKey,r=this.findFirstOptionIndex();this.multiple&&e.shiftKey&&n&&this.onOptionSelectRange(e,r,this.startRangeIndex),this.changeFocusedOptionIndex(e,r)}e.preventDefault()},onEndKey:function(e){if(arguments.length>1&&arguments[1]!==void 0&&arguments[1]){var t=e.currentTarget;if(e.shiftKey)t.setSelectionRange(e.target.selectionStart,t.value.length);else{var n=t.value.length;t.setSelectionRange(n,n),this.focusedOptionIndex=-1}}else{var r=e.metaKey||e.ctrlKey,i=this.findLastOptionIndex();this.multiple&&e.shiftKey&&r&&this.onOptionSelectRange(e,this.startRangeIndex,i),this.changeFocusedOptionIndex(e,i)}e.preventDefault()},onPageUpKey:function(e){this.scrollInView(0),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey:function(e){this.focusedOptionIndex!==-1&&(this.multiple&&e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex):this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]))},onSpaceKey:function(e){e.preventDefault(),this.onEnterKey(e)},onShiftKey:function(){this.startRangeIndex=this.focusedOptionIndex},isOptionMatched:function(e){return this.isValidOption(e)&&typeof this.getOptionLabel(e)==`string`&&this.getOptionLabel(e)?.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))},isValidOption:function(e){return ct(e)&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isEquals:function(e,t){return je(e,t,this.equalityKey)},isSelected:function(e){var t=this,n=this.getOptionValue(e);return this.multiple?(this.d_value||[]).some(function(e){return t.isEquals(e,n)}):this.isEquals(this.d_value,n)},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex(function(t){return e.isValidOption(t)})},findLastOptionIndex:function(){var e=this;return ft(this.visibleOptions,function(t){return e.isValidOption(t)})},findNextOptionIndex:function(e){var t=this,n=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex(function(e){return t.isValidOption(e)}):-1;return n>-1?n+e+1:e},findPrevOptionIndex:function(e){var t=this,n=e>0?ft(this.visibleOptions.slice(0,e),function(e){return t.isValidOption(e)}):-1;return n>-1?n:e},findSelectedOptionIndex:function(){var e=this;if(this.$filled)if(this.multiple){for(var t=function(){var t=e.d_value[r],n=e.visibleOptions.findIndex(function(n){return e.isValidSelectedOption(n)&&e.isEquals(t,e.getOptionValue(n))});if(n>-1)return{v:n}},n,r=this.d_value.length-1;r>=0;r--)if(n=t(),n)return n.v}else return this.visibleOptions.findIndex(function(t){return e.isValidSelectedOption(t)});return-1},findFirstSelectedOptionIndex:function(){var e=this;return this.$filled?this.visibleOptions.findIndex(function(t){return e.isValidSelectedOption(t)}):-1},findLastSelectedOptionIndex:function(){var e=this;return this.$filled?ft(this.visibleOptions,function(t){return e.isValidSelectedOption(t)}):-1},findNextSelectedOptionIndex:function(e){var t=this,n=this.$filled&&e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex(function(e){return t.isValidSelectedOption(e)}):-1;return n>-1?n+e+1:-1},findPrevSelectedOptionIndex:function(e){var t=this,n=this.$filled&&e>0?ft(this.visibleOptions.slice(0,e),function(e){return t.isValidSelectedOption(e)}):-1;return n>-1?n:-1},findNearestSelectedOptionIndex:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=-1;return this.$filled&&(t?(n=this.findPrevSelectedOptionIndex(e),n=n===-1?this.findNextSelectedOptionIndex(e):n):(n=this.findNextSelectedOptionIndex(e),n=n===-1?this.findPrevSelectedOptionIndex(e):n)),n>-1?n:e},findFirstFocusedOptionIndex:function(){var e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},searchOptions:function(e,t){var n=this;this.searchValue=(this.searchValue||``)+t;var r=-1;ct(this.searchValue)&&(this.focusedOptionIndex===-1?r=this.visibleOptions.findIndex(function(e){return n.isOptionMatched(e)}):(r=this.visibleOptions.slice(this.focusedOptionIndex).findIndex(function(e){return n.isOptionMatched(e)}),r=r===-1?this.visibleOptions.slice(0,this.focusedOptionIndex).findIndex(function(e){return n.isOptionMatched(e)}):r+this.focusedOptionIndex),r===-1&&this.focusedOptionIndex===-1&&(r=this.findFirstFocusedOptionIndex()),r!==-1&&this.changeFocusedOptionIndex(e,r)),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){n.searchValue=``,n.searchTimeout=null},500)},removeOption:function(e){var t=this;return this.d_value.filter(function(n){return!je(n,t.getOptionValue(e),t.equalityKey)})},changeFocusedOptionIndex:function(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView(),this.selectOnFocus&&!this.multiple&&this.onOptionSelect(e,this.visibleOptions[t]))},scrollInView:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1;this.$nextTick(function(){var n=t===-1?e.focusedOptionId:`${e.$id}_${t}`,r=tt(e.list,`li[id="${n}"]`);r?r.scrollIntoView&&r.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`smooth`}):e.virtualScrollerDisabled||e.virtualScroller&&e.virtualScroller.scrollToIndex(t===-1?e.focusedOptionIndex:t)})},autoUpdateModel:function(){this.selectOnFocus&&this.autoOptionFocus&&!this.$filled&&!this.multiple&&this.focused&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex]))},updateModel:function(e,t){this.writeValue(t,e),this.$emit(`change`,{originalEvent:e,value:t})},listRef:function(e,t){this.list=e,t&&t(e)},virtualScrollerRef:function(e){this.virtualScroller=e}},computed:{optionsListFlat:function(){return this.filterValue?pe.filter(this.options,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale):this.options},optionsListGroup:function(){var e=this,t=[];return(this.options||[]).forEach(function(n){var r=e.getOptionGroupChildren(n)||[],i=e.filterValue?pe.filter(r,e.searchFields,e.filterValue,e.filterMatchMode,e.filterLocale):r;i!=null&&i.length&&t.push.apply(t,[{optionGroup:n,group:!0}].concat(_S(i)))}),t},visibleOptions:function(){return this.optionGroupLabel?this.optionsListGroup:this.optionsListFlat},hasSelectedOption:function(){return ct(this.d_value)},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},filterResultMessageText:function(){return ct(this.visibleOptions)?this.filterMessageText.replaceAll(`{0}`,this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||``},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||``},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||``},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||``},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||``},selectedMessageText:function(){return this.$filled?this.selectionMessageText.replaceAll(`{0}`,this.multiple?this.d_value.length:`1`):this.emptySelectionMessageText},focusedOptionId:function(){return this.focusedOptionIndex===-1?null:`${this.$id}_${this.focusedOptionIndex}`},ariaSetSize:function(){var e=this;return this.visibleOptions.filter(function(t){return!e.isOptionGroup(t)}).length},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions},containerDataP:function(){return we({invalid:this.$invalid,disabled:this.disabled})}},directives:{ripple:ze},components:{InputText:Xe,VirtualScroller:at,InputIcon:Tt,IconField:We,SearchIcon:Ct,CheckIcon:de,BlankIcon:xt}},wS=[`id`,`data-p`],TS=[`tabindex`],ES=[`id`,`aria-multiselectable`,`aria-label`,`aria-labelledby`,`aria-activedescendant`,`aria-disabled`],DS=[`id`],OS=[`id`,`aria-label`,`aria-selected`,`aria-disabled`,`aria-setsize`,`aria-posinset`,`onClick`,`onMousedown`,`onMousemove`,`onDblclick`,`data-p-selected`,`data-p-focused`,`data-p-disabled`],kS=[`tabindex`];function AS(e,t,i,o,l,h){var g=u(`InputText`),b=u(`SearchIcon`),x=u(`InputIcon`),w=u(`IconField`),T=u(`CheckIcon`),E=u(`BlankIcon`),D=u(`VirtualScroller`),O=p(`ripple`);return d(),A(`div`,m({id:e.$id,class:e.cx(`root`),onFocusout:t[7]||=function(){return h.onFocusout&&h.onFocusout.apply(h,arguments)},"data-p":h.containerDataP},e.ptmi(`root`)),[P(`span`,m({ref:`firstHiddenFocusableElement`,role:`presentation`,"aria-hidden":`true`,class:`p-hidden-accessible p-hidden-focusable`,tabindex:e.disabled?-1:e.tabindex,onFocus:t[0]||=function(){return h.onFirstHiddenFocus&&h.onFirstHiddenFocus.apply(h,arguments)}},e.ptm(`hiddenFirstFocusableEl`),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16,TS),e.$slots.header?(d(),A(`div`,m({key:0,class:e.cx(`header`)},e.ptm(`header`)),[s(e.$slots,`header`,{value:e.d_value,options:h.visibleOptions})],16)):y(``,!0),e.filter?(d(),A(`div`,m({key:1,class:e.cx(`header`)},e.ptm(`header`)),[F(w,{unstyled:e.unstyled,pt:e.ptm(`pcFilterContainer`)},{default:j(function(){return[F(g,{modelValue:l.filterValue,"onUpdate:modelValue":t[1]||=function(e){return l.filterValue=e},type:`text`,class:r(e.cx(`pcFilter`)),placeholder:e.filterPlaceholder,role:`searchbox`,autocomplete:`off`,disabled:e.disabled,unstyled:e.unstyled,"aria-owns":e.$id+`_list`,"aria-activedescendant":h.focusedOptionId,tabindex:!e.disabled&&!l.focused?e.tabindex:-1,onInput:h.onFilterChange,onKeydown:h.onFilterKeyDown,pt:e.ptm(`pcFilter`)},null,8,[`modelValue`,`class`,`placeholder`,`disabled`,`unstyled`,`aria-owns`,`aria-activedescendant`,`tabindex`,`onInput`,`onKeydown`,`pt`]),F(x,{unstyled:e.unstyled,pt:e.ptm(`pcFilterIconContainer`)},{default:j(function(){return[s(e.$slots,`filtericon`,{},function(){return[e.filterIcon?(d(),A(`span`,m({key:0,class:e.filterIcon},e.ptm(`filterIcon`)),null,16)):(d(),v(b,f(m({key:1},e.ptm(`filterIcon`))),null,16))]})]}),_:3},8,[`unstyled`,`pt`])]}),_:3},8,[`unstyled`,`pt`]),P(`span`,m({role:`status`,"aria-live":`polite`,class:`p-hidden-accessible`},e.ptm(`hiddenFilterResult`),{"data-p-hidden-accessible":!0}),n(h.filterResultMessageText),17)],16)):y(``,!0),P(`div`,m({class:e.cx(`listContainer`),style:[{"max-height":h.virtualScrollerDisabled?e.scrollHeight:``},e.listStyle]},e.ptm(`listContainer`)),[F(D,m({ref:h.virtualScrollerRef},e.virtualScrollerOptions,{items:h.visibleOptions,style:[{height:e.scrollHeight},e.listStyle],tabindex:-1,disabled:h.virtualScrollerDisabled,pt:e.ptm(`virtualScroller`)}),S({content:j(function(r){var i=r.styleClass,o=r.contentRef,u=r.items,f=r.getItemOptions,p=r.contentStyle,g=r.itemSize;return[P(`ul`,m({ref:function(e){return h.listRef(e,o)},id:e.$id+`_list`,class:[e.cx(`list`),i],style:p,tabindex:-1,role:`listbox`,"aria-multiselectable":e.multiple,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-activedescendant":l.focused?h.focusedOptionId:void 0,"aria-disabled":e.disabled,onFocus:t[3]||=function(){return h.onListFocus&&h.onListFocus.apply(h,arguments)},onBlur:t[4]||=function(){return h.onListBlur&&h.onListBlur.apply(h,arguments)},onKeydown:t[5]||=function(){return h.onListKeyDown&&h.onListKeyDown.apply(h,arguments)}},e.ptm(`list`)),[(d(!0),A(C,null,a(u,function(r,i){return d(),A(C,{key:h.getOptionRenderKey(r,h.getOptionIndex(i,f))},[h.isOptionGroup(r)?(d(),A(`li`,m({key:0,id:e.$id+`_`+h.getOptionIndex(i,f),style:{height:g?g+`px`:void 0},class:e.cx(`optionGroup`),role:`option`},{ref_for:!0},e.ptm(`optionGroup`)),[s(e.$slots,`optiongroup`,{option:r.optionGroup,index:h.getOptionIndex(i,f)},function(){return[_(n(h.getOptionGroupLabel(r.optionGroup)),1)]})],16,DS)):c((d(),A(`li`,m({key:1,id:e.$id+`_`+h.getOptionIndex(i,f),style:{height:g?g+`px`:void 0},class:e.cx(`option`,{option:r,index:i,getItemOptions:f}),role:`option`,"aria-label":h.getOptionLabel(r),"aria-selected":h.isSelected(r),"aria-disabled":h.isOptionDisabled(r),"aria-setsize":h.ariaSetSize,"aria-posinset":h.getAriaPosInset(h.getOptionIndex(i,f)),onClick:function(e){return h.onOptionSelect(e,r,h.getOptionIndex(i,f))},onMousedown:function(e){return h.onOptionMouseDown(e,h.getOptionIndex(i,f))},onMousemove:function(e){return h.onOptionMouseMove(e,h.getOptionIndex(i,f))},onTouchend:t[2]||=function(e){return h.onOptionTouchEnd()},onDblclick:function(e){return h.onOptionDblClick(e,r)}},{ref_for:!0},h.getPTOptions(r,f,i,`option`),{"data-p-selected":!e.checkmark&&h.isSelected(r),"data-p-focused":l.focusedOptionIndex===h.getOptionIndex(i,f),"data-p-disabled":h.isOptionDisabled(r)}),[e.checkmark?(d(),A(C,{key:0},[h.isSelected(r)?(d(),v(T,m({key:0,class:e.cx(`optionCheckIcon`)},{ref_for:!0},e.ptm(`optionCheckIcon`)),null,16,[`class`])):(d(),v(E,m({key:1,class:e.cx(`optionBlankIcon`)},{ref_for:!0},e.ptm(`optionBlankIcon`)),null,16,[`class`]))],64)):y(``,!0),s(e.$slots,`option`,{option:r,selected:h.isSelected(r),index:h.getOptionIndex(i,f)},function(){return[_(n(h.getOptionLabel(r)),1)]})],16,OS)),[[O]])],64)}),128)),l.filterValue&&(!u||u&&u.length===0)?(d(),A(`li`,m({key:0,class:e.cx(`emptyMessage`),role:`option`},e.ptm(`emptyMessage`)),[s(e.$slots,`emptyfilter`,{},function(){return[_(n(h.emptyFilterMessageText),1)]})],16)):!e.options||e.options&&e.options.length===0?(d(),A(`li`,m({key:1,class:e.cx(`emptyMessage`),role:`option`},e.ptm(`emptyMessage`)),[s(e.$slots,`empty`,{},function(){return[_(n(h.emptyMessageText),1)]})],16)):y(``,!0)],16,ES)]}),_:2},[e.$slots.loader?{name:`loader`,fn:j(function(t){var n=t.options;return[s(e.$slots,`loader`,{options:n})]}),key:`0`}:void 0]),1040,[`items`,`style`,`disabled`,`pt`])],16),s(e.$slots,`footer`,{value:e.d_value,options:h.visibleOptions}),!e.options||e.options&&e.options.length===0?(d(),A(`span`,m({key:2,role:`status`,"aria-live":`polite`,class:`p-hidden-accessible`},e.ptm(`hiddenEmptyMessage`),{"data-p-hidden-accessible":!0}),n(h.emptyMessageText),17)):y(``,!0),P(`span`,m({role:`status`,"aria-live":`polite`,class:`p-hidden-accessible`},e.ptm(`hiddenSelectedMessage`),{"data-p-hidden-accessible":!0}),n(h.selectedMessageText),17),P(`span`,m({ref:`lastHiddenFocusableElement`,role:`presentation`,"aria-hidden":`true`,class:`p-hidden-accessible p-hidden-focusable`,tabindex:e.disabled?-1:e.tabindex,onFocus:t[6]||=function(){return h.onLastHiddenFocus&&h.onLastHiddenFocus.apply(h,arguments)}},e.ptm(`hiddenLastFocusableEl`),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16,kS)],16,wS)}CS.render=AS;var jS=[`value`],MS=N(ie({__name:`ColorPicker`,props:{modelValue:{}},emits:[`update:modelValue`],setup(e,{emit:t}){return(e,t)=>(d(),A(`input`,{type:`color`,value:e.modelValue,class:`color-picker`,onInput:t[0]||=t=>e.$emit(`update:modelValue`,t.target.value)},null,40,jS))}}),[[`__scopeId`,`data-v-4e883e70`]]),NS={class:`editor`},PS={key:0,class:`input`},FS={key:1,class:`boolean`},IS={key:2,class:`path`},LS={key:3,class:`electron:configure:v2`},RS={class:`body`},zS={key:4,class:`select`},BS={key:5,class:`multi-select`},VS={key:6,class:`netlify-site`},HS={key:7,class:`color`},US=ie({__name:`ParamEditorBody`,props:{paramDefinition:{},modelValue:{},value:{}},emits:[`update:modelValue`,`switch`],setup(e,{emit:t}){let i=e,{modelValue:a}=ne(i),o=t;Be();let{logger:s}=it(),c=Tn(),l=qt(),{resolvedParams:u}=Se(c),f=D(()=>u.value[i.value.uid]),p=w(!1),m=async e=>{p.value=!0;try{let e=i.paramDefinition.control;if(e.type===`netlify-site`){let t=await(await fetch(`https://api.netlify.com/api/v1/sites`,{headers:{Authorization:`Bearer ${f.value[e.options.tokenKey]}`}})).json();console.log(`data`,t),h.value=t}}catch(e){console.error(e)}finally{p.value=!1}},h=w(),g=async(e={})=>{let t=await(e?.properties?.includes(`openDirectory`)?l.openDirectory(e):l.openFile(e));if(t.type===`error`)throw Error(t.ipcError);let n=t.result;if(s().info(`paths`,n),n.canceled||!n.filePaths||n.filePaths.length===0)return;let r=n.filePaths[0];o(`update:modelValue`,`"${r}"`)},x=e=>{console.log(`event`,e),o(`update:modelValue`,`"${e}"`)},S=e=>{console.log(`event`,e),o(`update:modelValue`,`"${e.value}"`)},E=e=>{o(`update:modelValue`,`"${e}"`)},O=e=>{console.log(`event`,e),o(`update:modelValue`,e.value)},k=e=>{let t=e.value.map(e=>e.value);o(`update:modelValue`,`${JSON.stringify(t)}`)},ee=e=>{o(`update:modelValue`,e.value)},M=e=>{o(`update:modelValue`,`"${e}"`)},N=[{text:`True`,value:!0},{text:`False`,value:!1}],te=D(()=>a.value===void 0?``:a.value.toString()),re=D(()=>Number.parseInt(te.value)),ie=D(()=>{let e=te.value;return e.startsWith(`"`)&&e.endsWith(`"`)?e.slice(1,-1):e}),ae=()=>{o(`switch`)};return T(()=>{i.paramDefinition.control.type===`netlify-site`&&m({query:``})}),(e,t)=>{let i=Yt,o=Xe,s=Ye,c=Zt,l=ue,u=rt,m=CS,w=ut,T=nS;return d(),A(`div`,NS,[e.paramDefinition.control.type===`input`?(d(),A(`div`,PS,[e.paramDefinition.control.options.kind===`text`?(d(),A(C,{key:0},[e.paramDefinition.control.options.password?(d(),v(i,{key:0,"model-value":te.value,placeholder:e.paramDefinition.control.options.placeholder,"toggle-mask":!0,feedback:!1,class:r({"w-full":!0}),"input-class":`w-full`,"onUpdate:modelValue":E},null,8,[`model-value`,`placeholder`])):(d(),v(o,{key:1,"model-value":te.value,placeholder:e.paramDefinition.control.options.placeholder,class:`w-full`,"onUpdate:modelValue":E},null,8,[`model-value`,`placeholder`]))],64)):e.paramDefinition.control.options.kind===`number`?(d(),v(s,{key:1,"model-value":re.value,"show-buttons":``,"option-label":`label`,class:`w-full`,format:!1,onInput:O},null,8,[`model-value`])):y(``,!0)])):e.paramDefinition.control.type===`boolean`?(d(),A(`div`,FS,[F(c,{"model-value":b(a),"option-label":`text`,"option-value":`value`,options:N,"aria-labelledby":`basic`,onChange:ee},{option:j(e=>[P(`span`,null,n(e.option.text),1)]),_:1},8,[`model-value`])])):e.paramDefinition.control.type===`path`?(d(),A(`div`,IS,[F(l,{class:`w-full`,onClick:t[0]||=t=>g(e.paramDefinition.control.options)},{default:j(()=>[_(n(b(a)?b(a):e.paramDefinition.control.label??`Browse path`),1)]),_:1})])):e.paramDefinition.control.type===`electron:configure:v2`?(d(),A(`div`,LS,[P(`div`,RS,[t[1]||=P(`div`,{class:`label`},`Electron version`,-1),F(o),t[2]||=P(`div`,{class:`label`},`Custom main code`,-1),F(o),t[3]||=P(`div`,{class:`label`},`Enable steam support`,-1),F(u)])])):e.paramDefinition.control.type===`select`?(d(),A(`div`,zS,[F(m,{"model-value":b(a),options:e.paramDefinition.control.options.options,filter:``,"option-value":`value`,"option-label":`label`,class:`w-full`,onChange:S},null,8,[`model-value`,`options`])])):e.paramDefinition.control.type===`multi-select`?(d(),A(`div`,BS,[F(m,{"model-value":b(a),options:e.paramDefinition.control.options.options,filter:``,multiple:``,"option-label":`label`,class:`w-full`,onChange:k},null,8,[`model-value`,`options`])])):e.paramDefinition.control.type===`netlify-site`?(d(),A(`div`,VS,[P(`pre`,null,n(f.value[e.paramDefinition.control.options.tokenKey]),1),F(w,{placeholder:e.paramDefinition.control.options.placeholder,"model-value":b(a),options:h.value,"option-label":`name`,"option-value":`id`,loading:p.value,disabled:p.value||!f.value[e.paramDefinition.control.options.tokenKey],class:`w-full`,"onUpdate:modelValue":x},null,8,[`placeholder`,`model-value`,`options`,`loading`,`disabled`]),f.value[e.paramDefinition.control.options.tokenKey]?y(``,!0):(d(),v(T,{key:0,severity:`error`},{default:j(()=>t[4]||=[_(`No token found`)]),_:1}))])):e.paramDefinition.control.type===`color`?(d(),A(`div`,HS,[F(MS,{"model-value":ie.value,"onUpdate:modelValue":M},null,8,[`model-value`])])):(d(),v(l,{key:8,class:`w-full`,onClick:ae},{default:j(()=>t[5]||=[_(`Switch to editor to edit value`)]),_:1}))])}}}),WS=class extends ts{value;options;nodeId;output;constructor(e,t,n,r){super(),this.value=e,this.options=t,this.nodeId=n,this.output=r}toDOM(){let e=document.createElement(`span`);console.log(`this.value`,this.value),console.log(`nodeId`,this.nodeId),console.log(`output`,this.output),console.log(`this.options.steps.value`,this.options.steps.value);let t=this.options.steps.value?.[this.nodeId]?.outputs[this.output];return e.classList.add(`step-placeholder`),t?e.innerHTML=t:(e.textContent=`Step missing`,e.classList.add(`step-missing`)),e}},GS=e=>new ed({regexp:/(?<full>steps\['(?<node_id>[\w-]+)'\]\['outputs'\]\['(?<output>[\w-]+)'\])/g,decoration:t=>{let{full:n,node_id:r,output:i}=t.groups??{full:t.input};return rs.replace({widget:new WS(n,e,r,i)})}}),KS=e=>rc.fromClass(class{placeholders;constructor(t){this.placeholders=GS(e).createDeco(t)}update(t){this.placeholders=GS(e).updateDeco(t,this.placeholders)}},{decorations:e=>e.placeholders,provide:e=>G.atomicRanges.of(t=>t.plugin(e)?.placeholders||rs.none)}),qS={class:`editor`},JS={class:`flex flex-column gap-1 editor-content`},YS={class:`label`},XS=[`for`],ZS={key:0,class:`required`},QS={key:1,class:`tooltip`},$S={class:`mdi mdi-help-circle tooltip-icon`},eC={class:`infos`},tC={key:0},nC={class:`code-editor-wrapper`},rC={class:`code-editor-wrapper-inner`},iC={class:`helpers`},aC={class:`steps-list`},oC={key:0,class:`step-item`},sC={class:`step-name`},cC={class:`step-outputs`},lC=[`onClick`],uC=[`onClick`],dC={class:`variables-list`},fC=[`onClick`],pC={class:`variable-name`},mC={class:`variable-description`},hC=N(ie({__name:`ParamEditor`,props:{param:{},paramDefinition:{},paramKey:{},value:{},steps:{},variables:{}},emits:[`update:modelValue`],setup(e,{emit:t}){let{paramKey:i,paramDefinition:s,steps:l,variables:u,param:f}=ne(e),m=Pt(),h=Tn(),{getNodeDefinition:g}=h,{nodes:_,vm:x}=Se(h),S=e=>new Promise(t=>{m.require({target:e.currentTarget,message:`Switching back to simple mode will delete all your changes. Are you sure you want to continue?`,icon:`pi pi-exclamation-triangle`,rejectProps:{label:`Cancel`,severity:`secondary`,outlined:!0},acceptProps:{label:`Switch to simple mode`},accept:()=>t(!0),reject:()=>t(!1)})}),T=async e=>{let t=f.value?.editor===`simple`?`editor`:`simple`,n=!0,r=bt(f.value?.value);t===`simple`&&(e.preventDefault(),n=await S(e),r=s.value.value),n===!0&&O(`update:modelValue`,{editor:t,value:r})},O=t,k=w(!1),ee=w(),M=w(),N=w(),te=w(),{logger:re}=it(),ie=()=>$e(x.value,u.value);function ae(e){let t=e.matchBefore(/\w*/);if(t)return t.from==t.to&&!e.explicit?null:{from:t.from,options:[{label:`match`,type:`keyword`,boost:10},{label:`hello`,type:`variable`,info:`(World)`},{label:`magic`,type:`text`,apply:`⠁⭒*.✩.*⭒⠁`,detail:`macro`}]}}let{update:oe,onUpdate:se,value:ce}=gy(M,[ty.data.of({autocomplete:ae}),KS({param:f,steps:l,variables:u})]),le=async e=>{let t=e??``;try{let n=await ie(),r=await x.value.run(t,{params:{},steps:l.value,variables:n});he.value=r,ee.value=I(r),k.value=!1,e!==f.value?.value&&O(`update:modelValue`,{editor:f.value?.editor,value:e})}catch(e){console.error(e),re().error(`e`,JSON.stringify(e)),e instanceof Error?(ee.value=e.message,k.value=!0):re().error(`e`,e)}};se(async e=>{le(e)}),o(()=>f.value,()=>{let e=bt(f.value);e&&(e.value===void 0||e.value===null?oe(``):oe(e.value.toString()))},{immediate:!0});let de=e=>{oe(ce.value+e.toString())},fe=e=>{oe(e.toString())},{floatingStyles:pe,middlewareData:me}=Lx(M,N,{placement:`left`,middleware:[Ex(10),Dx(),Ox({fallbackPlacements:[`bottom`]}),Px({element:te})],whileElementsMounted:Tx}),I=e=>{if(s.value.control.type===`select`){let t=s.value.control.options.options.find(t=>t.value===e)?.label;if(t)return t}return(e??``).toString()},he=w(),ge=e=>{fe(e===void 0?``:e.toString())},_e=w(!1),ve=()=>{f.value?.editor===`editor`&&(_e.value=!0)},ye=()=>{_e.value=!1};o(()=>f.value?.editor,e=>{e===`editor`?_e.value=!0:_e.value=!1});let be=(e,t)=>{let n=_.value.find(t=>t.uid===e)?.origin;if(n){let e=g(n.nodeId,n.pluginId).node;return e?e.outputs[t]?.label??t:t}return t},Ce=(e,t)=>{let n=_.value.find(t=>t.uid===e)?.origin;if(n){let e=g(n.nodeId,n.pluginId).node;return e?e.outputs[t]?.deprecated??!1:t}return t},we=(e,t)=>{let n=_.value.find(t=>t.uid===e)?.origin;if(n){let e=g(n.nodeId,n.pluginId).node;return e?e.outputs[t]?.description??t:t}return t},Te=e=>{let t=_.value.find(t=>t.uid===e)?.origin;if(t){let n=g(t.nodeId,t.pluginId);return n?n.node.name:e}return e},Ee=D(()=>By(s.value.control)),De=D(()=>Vy(s.value.control)),Oe=D(()=>Ee.value===typeof he.value),Ae=D(()=>`Expected: ${Ee.value}, got ${typeof he.value}`);return(e,t)=>{let o=Ur,m=ue,h=zr,g=Nt,_=Mr,x=p(`dompurify-html`);return c((d(),A(`div`,{class:`param-editor`,onClick:ve},[P(`div`,qS,[P(`div`,JS,[P(`div`,YS,[P(`label`,{for:`data-${b(i)}`},[P(`span`,null,n(b(s).label),1),!(`required`in b(s))||b(s).required===!0?(d(),A(`span`,ZS,` * `)):y(``,!0),b(s).description?(d(),A(`span`,QS,[c(P(`i`,$S,null,512),[[b(ke),b(s).description]])])):y(``,!0),(d(!0),A(C,null,a(b(s).platforms,e=>c((d(),v(o,{key:e,class:`platform`,label:e},null,8,[`label`])),[[b(ke),`This field is only applicable to the ${e} platform`]])),128))],8,XS),P(`div`,eC,[c((d(),v(m,{text:``,size:`small`,class:`type-btn`,rounded:``,severity:Oe.value?`success`:`danger`},{icon:j(()=>[P(`i`,{class:r([`mdi`,{[De.value]:!0}])},null,2)]),_:1},8,[`severity`])),[[b(ke),Ae.value]])])]),b(f)===void 0?(d(),A(`div`,tC,`Oops`)):y(``,!0),P(`div`,nC,[P(`div`,rC,[c(P(`div`,{ref_key:`$codeEditorText`,ref:M,class:`code-editor`},null,512),[[xe,b(f).editor===`editor`]]),c(F(US,{"model-value":he.value,"param-definition":b(s),value:e.value,"onUpdate:modelValue":ge,onSwitch:T},null,8,[`model-value`,`param-definition`,`value`]),[[xe,b(f).editor===`simple`]])]),F(h),b(f).editor===`editor`?c((d(),v(m,{key:0,text:``,"aria-label":`Toggle mode`,onClick:T},{icon:j(()=>t[0]||=[P(`i`,{class:`icon mdi mdi-text fs-16`},null,-1)]),_:1})),[[b(ke),`Switch to simple mode`]]):c((d(),v(m,{key:1,text:``,"aria-label":`Toggle mode`,onClick:T},{icon:j(()=>t[1]||=[P(`i`,{class:`icon mdi mdi-code-block-braces fs-16`},null,-1)]),_:1})),[[b(ke),`Switch to editor mode`]])]),b(f).editor===`editor`?(d(),A(C,{key:1},[ee.value===void 0?(d(),v(g,{key:0,height:`20px`})):c((d(),A(`div`,{key:1,class:r([`hint`,{error:k.value}])},null,2)),[[x,ee.value]])],64)):y(``,!0),_e.value?(d(),A(`div`,{key:2,ref_key:`$floating`,ref:N,class:`floating`,style:E({...b(pe),zIndex:1})},[(d(),A(`svg`,{ref_key:`$arrow`,ref:te,style:E([{position:`absolute`,left:b(me).arrow?.x==null?``:`${b(me).arrow.x}px`,top:b(me).arrow?.y==null?``:`${b(me).arrow.y}px`},{position:`absolute`,"pointer-events":`none`,top:`100%`,left:`32.5px`}]),class:`fill-gray-800`,"aria-hidden":`true`,width:`14`,height:`14`,viewBox:`0 0 14 14`},t[2]||=[P(`path`,{stroke:`none`,d:`M0,0 H14 L7,7 Q7,7 7,7 Z`},null,-1),P(`clipPath`,{id:`:r8:`},[P(`rect`,{x:`0`,y:`0`,width:`14`,height:`14`})],-1)],4)),P(`div`,iC,[F(_,{header:`Outputs`,toggleable:``},{default:j(()=>[P(`div`,aC,[(d(!0),A(C,null,a(b(l),(e,t)=>(d(),A(C,{key:t},[Object.keys(e.outputs).length>0?(d(),A(`div`,oC,[P(`div`,sC,n(Te(t)),1),P(`div`,cC,[(d(!0),A(C,null,a(e.outputs,(e,i)=>(d(),A(`div`,{key:i,class:`step-output`},[P(`div`,{class:`step`,onClick:e=>de(`steps['${t}']['outputs']['${i}']`)},[P(`span`,{class:r({deprecated:Ce(t,i)})},n(be(t,i)),3)],8,lC),P(`div`,{class:`step-description`,onClick:e=>de(`steps['${t}']['outputs']['${i}']`)},n(we(t,i)),9,uC)]))),128))])])):y(``,!0)],64))),128))])]),_:1}),F(_,{header:`Variables`,toggleable:``},{default:j(()=>[P(`div`,dC,[(d(!0),A(C,null,a(b(u),(e,t)=>(d(),A(`div`,{key:t,class:`variable`,onClick:t=>de(`variables['${e.id}']`)},[P(`div`,pC,n(e.name),1),P(`div`,mC,n(e.description),1)],8,fC))),128))])]),_:1})])],4)):y(``,!0)])])])),[[b(Ux),ye]])}}}),[[`__scopeId`,`data-v-91b9166c`]]),gC={class:`node-event-wrapper`},_C={class:`vertical`},vC={class:`content`},yC={class:`title`},bC={class:``},xC={class:`subtitle`},SC={class:`flex items-center gap-2`},CC=N(ie({__name:`EditorNodeEvent`,props:{value:{type:Object,required:!0},path:{type:Array,required:!0},steps:{type:Object,required:!0},errors:{type:Object,required:!1,default:()=>({})}},setup(e){let{value:t,steps:i}=ne(e),{logger:o}=it(),s=Tn(),{getNodeDefinition:c,getPluginDefinition:l,setTriggerValue:u,addNode:f,removeTrigger:p}=s,{activeNode:m}=Se(s),h=D(()=>{let e=c(t.value.origin.nodeId,t.value.origin.pluginId);if(e)return e.node}),g=D(()=>l(t.value.origin.pluginId)),_=(e,n)=>{u(t.value.uid,{...t.value,params:{...t.value.params,[n]:e}})},v=Dt(async()=>Ue({params:t.value.params,steps:i.value,context:{},variables:{}},e=>e),{},{onError:e=>{o().error(`error`,e)}}),x=Dt(async()=>{let e=h.value?.displayString??``,t=await(await lt()).run(e,{params:v.value,steps:i.value});return En.default.sanitize(t)},`Loading...`,{onError:e=>{o().error(`error`,e)}}),S=w(!1);return(o,s)=>{let c=ue,l=Dr;return d(),A(`div`,gC,[P(`div`,{class:r([`node-event`,{active:b(m)?.uid===b(t).uid}]),onClick:s[2]||=e=>S.value=!0},[P(`div`,_C,[F(Xt,{icon:g.value?.icon},null,8,[`icon`]),P(`div`,vC,[P(`div`,yC,[P(`span`,bC,n(h.value?.name),1)]),P(`div`,xC,n(b(x)),1)]),s[3]||=P(`span`,{class:`pi pi-bolt`},null,-1)]),F(l,{visible:S.value,"onUpdate:visible":s[1]||=e=>S.value=e,class:`w-full md:w-10 lg:w-9 xl:w-8`,position:`right`},{footer:j(()=>[P(`div`,SC,[F(c,{label:`Delete`,icon:`pi pi-trash`,class:`flex-auto`,severity:`danger`,onClick:s[0]||=e=>b(p)(b(t).uid)})])]),default:j(()=>[h.value?(d(!0),A(C,{key:0},a(h.value.params,(e,n)=>(d(),A(`div`,{key:n,class:`param`},[F(hC,{param:b(t).params[n],"param-key":n,"param-definition":e,"onUpdate:modelValue":e=>_(e,n.toString()),value:b(t),steps:b(i)},null,8,[`param`,`param-key`,`param-definition`,`onUpdate:modelValue`,`value`,`steps`])]))),128)):y(``,!0)]),_:1},8,[`visible`])],2),F(qn,{"button-props":{size:`small`,icon:`pi pi-plus`},class:`add-btn`,path:e.path,onAddNode:b(f)},null,8,[`path`,`onAddNode`])])}}}),[[`__scopeId`,`data-v-21623c55`]]),wC={class:`add-button-wrapper`},TC={class:`flex flex-column w-full`},EC={class:`search`},DC={class:`list`},OC={class:`triggers`},kC={class:`trigger list-none p-0 m-0`},AC={class:`flex align-items-center mb-3`},jC={class:`mr-3`},MC=[`src`],NC={class:`flex flex-column`},PC={class:`font-bold mb-1`},FC=[`disabled`,`onClick`],IC={class:`flex flex-column`},LC={class:`font-bold mb-1`},RC={class:`m-0 text-secondary`},zC={key:0,class:`m-0 text-secondary font-bold`},BC={class:`flex justify-content-end gap-2 mt-4`},VC=N(ie({__name:`AddTriggerButton`,props:{buttonProps:{type:Object,required:!1,default:()=>({})},path:{type:Array,required:!0}},setup(e){let{path:t}=ne(e),i=Tn(),{pluginDefinitions:o}=Se(jt()),s=w(),c=w(!1),u=w(``),{logger:f}=it();l(()=>{if(c.value===!0){let e=s.value?.$el;e&&e.focus()}});let p=w(),h=()=>{c.value=!0},{getNodeDefinition:g,getPluginDefinition:_}=Tn(),v=()=>{let e=p.value;if(!e){f().error(`cannot find selection`);return}let n=_(e.pluginId);if(!n){f().error(`cannot find definition`);return}let r=g(e.triggerId,e.pluginId);if(!r){f().error(`cannot find trigger`);return}let a=Number.parseInt(t.value.pop()??`0`)+1;i.addTrigger({trigger:r.node,plugin:n,path:t.value,insertAt:a}),c.value=!1},x=(e,t)=>{let n=e.description.toLowerCase(),r=e.name.toLowerCase();return e.type===`event`?!!(n.includes(t)||r.includes(t)):!1},S=D(()=>{f().info(`pluginDefinitions`,o.value);let e=u.value.toLowerCase();return o.value.filter(t=>{let n=t.description.toLowerCase(),r=t.name.toLowerCase(),i=t.nodes.some(t=>x(t.node,e));return!!(n.includes(e)||r.includes(e)||i)}).map(t=>({...t,triggers:t.nodes.filter(t=>x(t.node,e))}))});return(t,i)=>{let o=Tt,l=We,f=De;return d(),A(`div`,wC,[i[5]||=P(`div`,{class:`vl`},null,-1),F(b(ue),m(e.buttonProps,{class:`add-btn`,size:`small`,onClick:h}),null,16),i[6]||=P(`div`,{class:`vl`},null,-1),F(f,{visible:c.value,"onUpdate:visible":i[2]||=e=>c.value=e,closable:!1,modal:``,header:``,style:{width:`75%`}},{header:j(()=>[P(`div`,TC,[i[3]||=P(`p`,{class:`text-xl`},`Add trigger`,-1),P(`div`,EC,[F(l,{class:`search-field`,"icon-position":`left`},{default:j(()=>[F(o,{class:`pi pi-search`}),F(b(Xe),{ref_key:`$searchInput`,ref:s,modelValue:u.value,"onUpdate:modelValue":i[0]||=e=>u.value=e,placeholder:`Search`},null,8,[`modelValue`])]),_:1})])])]),footer:j(()=>[P(`div`,BC,[F(b(ue),{type:`button`,label:`Cancel`,severity:`secondary`,onClick:i[1]||=e=>c.value=!1}),F(b(ue),{type:`button`,label:`Ajouter`,onClick:v})])]),default:j(()=>[P(`div`,DC,[(d(!0),A(C,null,a(S.value,e=>(d(),A(`div`,{key:e.id,class:`plugin`},[P(`div`,OC,[P(`ul`,kC,[P(`li`,AC,[P(`span`,jC,[e.icon.type===`image`?(d(),A(`img`,{key:0,width:`32`,src:e.icon.image},null,8,MC)):e.icon.type===`icon`?(d(),A(`i`,{key:1,style:{"font-size":`2rem`},class:r({"trigger-icon":!0,mdi:!0,[e.icon.icon]:!0})},null,2)):y(``,!0)]),P(`div`,NC,[P(`span`,PC,n(e.name),1)])]),(d(!0),A(C,null,a(e.triggers,t=>(d(),A(C,null,[t.node.disabled?y(``,!0):(d(),A(`li`,{key:t.node.id,class:`flex trigger-item`,disabled:t.node.disabled,onClick:n=>p.value={triggerId:t.node.id,pluginId:e.id}},[P(`a`,{class:r([`element flex align-items-center p-3 border-round w-full transition-colors transition-duration-150 cursor-pointer`,{selected:p.value?.triggerId===t.node.id&&p.value.pluginId===e.id}]),style:{"border-radius":`"10px"`}},[i[4]||=P(`i`,{class:`pi pi-home text-xl mr-3`},null,-1),P(`span`,IC,[P(`span`,LC,n(t.node.name),1),P(`span`,RC,n(t.node.description),1),typeof t.node.disabled==`string`?(d(),A(`span`,zC,n(t.node.disabled),1)):y(``,!0)])],2)],8,FC))],64))),256))])])]))),128))])]),_:1},8,[`visible`])])}}}),[[`__scopeId`,`data-v-954723c1`]]),HC={class:`node-event-wrapper`},UC={class:`node-event`},WC={class:`vertical`},GC=N(ie({__name:`EditorNodeEventEmpty`,props:{path:{type:Array,required:!0}},setup(e){let t=Tn(),{getNodeDefinition:n,getPluginDefinition:r,setTriggerValue:i,addNode:a,addTrigger:o,removeTrigger:s}=t,{activeNode:c}=Se(t);return(t,n)=>(d(),A(`div`,HC,[P(`div`,UC,[P(`div`,WC,[F(Xt,{icon:{icon:`mdi mdi-help-circle`,type:`icon`}}),n[0]||=x(`<div class="content" data-v-9b8da95f><div class="title" data-v-9b8da95f><span class="" data-v-9b8da95f>No trigger selected</span></div><div class="subtitle" data-v-9b8da95f>Click here to select one</div></div><span class="pi pi-bolt" data-v-9b8da95f></span>`,2)])]),F(VC,{"button-props":{size:`small`,icon:`pi pi-plus`},class:`add-btn`,path:e.path,onAddNode:b(o)},null,8,[`path`,`onAddNode`])]))}}),[[`__scopeId`,`data-v-9b8da95f`]]),KC=e(t(((e,t)=>{var n=/["'&<>]/;t.exports=r;function r(e){var t=``+e,r=n.exec(t);if(!r)return t;var i,a=``,o=0,s=0;for(o=r.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:i=`"`;break;case 38:i=`&`;break;case 39:i=`'`;break;case 60:i=`<`;break;case 62:i=`>`;break;default:continue}s!==o&&(a+=t.substring(s,o)),s=o+1,a+=i}return s===o?a:a+t.substring(s,o)}}))(),1),Q={black:`#2e3436`,red:`#cc0000`,green:`#4e9a06`,yellow:`#c4a000`,blue:`#3465a4`,magenta:`#75507b`,cyan:`#06989a`,white:`#d3d7cf`,"bright-black":`#555753`,"bright-red":`#ef2929`,"bright-green":`#8ae234`,"bright-yellow":`#fce94f`,"bright-blue":`#729fcf`,"bright-magenta":`#ad7fa8`,"bright-cyan":`#34e2e2`,"bright-white":`#eeeeec`};function qC({onlyFirst:e=!1}={}){let t=[`[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))`,`(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))`].join(`|`);return new RegExp(t,e?void 0:`g`)}var JC=/^(?:\x1b\[([\x3c-\x3f]?)([\d;]*)([\x20-\x2f]?[\x40-\x7e]))|(?:\x1b\[[\x20-\x7e]*([\x00-\x1f:]))/,YC=/^\x1b\]8;[\x20-\x3a\x3c-\x7e]*;([\x21-\x7e]{0,512})(?:(?:\x1b\\)|(?:\x07))([\x20-\x7e]+)\x1b\]8;;(?:(?:\x1b\\)|(?:\x07))/,XC=/(?:(\x1b\\)|(\x07))|([\x00-\x06]|[\x08-\x1a]|[\x1c-\x1f])/g,ZC=class{constructor(e){this.lastIndex=0,this.input=e}next(){let e=this.input.substring(this.lastIndex),t=e.length;if(t===0)return{value:null,done:!0};let n={kind:0,text:``,url:``},r=e.indexOf(`\x1B`);if(r===-1)return n.kind=1,n.text=e,this.lastIndex+=t,{value:n,done:!1};if(r>0)return n.kind=1,n.text=e.slice(0,r),this.lastIndex+=r,{value:n,done:!1};if(t<3)return{value:null,done:!0};let i=e.charAt(1);if(i!==`[`&&i!==`]`&&i!==`(`)return n.kind=2,n.text=e[0],this.lastIndex+=1,{value:n,done:!1};if(i===`[`){let t=e.match(JC);return t===null?{value:null,done:!0}:t[4]?(n.kind=2,n.text=e[0],this.lastIndex+=1,{value:n,done:!1}):(t[1]!==``||t[3]!==`m`?n.kind=3:n.kind=4,n.text=t[2],this.lastIndex+=t[0].length,{value:n,done:!1})}if(i===`]`){if(t<4)return{value:null,done:!0};if(e.charAt(2)!==`8`||e.charAt(3)!==`;`)return n.kind=2,n.text=e[0],this.lastIndex+=1,{value:n,done:!1};let r=new RegExp(XC);{let t=r.exec(e);if(t===null)return{value:null,done:!0};if(t[3])return n.kind=2,n.text=e[0],this.lastIndex+=1,{value:n,done:!1}}{let t=r.exec(e);if(t===null)return{value:null,done:!0};if(t[3])return n.kind=2,n.text=e[0],this.lastIndex+=1,{value:n,done:!1}}let i=e.match(YC);return i===null?(n.kind=2,n.text=e[0],this.lastIndex+=1,{value:n,done:!1}):(n.kind=5,n.url=i[1],n.text=i[2],this.lastIndex+=i[0].length,{value:n,done:!1})}return i===`(`?(n.kind=3,this.lastIndex+=3,{value:n,done:!1}):{value:null,done:!0}}[Symbol.iterator](){return this}},QC=14,$C=Array(QC);$C[0]=`background-color`,$C[1]=`color`,$C[2]=`font-family`,$C[3]=`font-size`,$C[4]=`font-style`,$C[5]=`font-weight`,$C[6]=`opacity`,$C[7]=`outline`,$C[8]=`text-decoration`,$C[9]=`text-decoration-color`,$C[10]=`text-decoration-line`,$C[11]=`text-decoration-style`,$C[12]=`vertical-align`,$C[13]=`visibility`;var ew=class{constructor(){this.attrArray=Array(QC),this._size=0}get(e){return this.attrArray[e]}set(e,t){let n=this.attrArray[e];this.attrArray[e]=t,n===void 0&&t!==void 0&&(this._size+=1)}delete(e){let t=this.attrArray[e];this.attrArray[e]=void 0,t!==void 0&&--this._size}update(e){for(let t in e)if(e.hasOwnProperty(t)){let n=e[t];this.attrArray[t]=n,n!==void 0&&(this._size+=1)}}clear(){this.attrArray.fill(void 0),this._size=0}get size(){return this._size}toString(){let e=``;return this.attrArray.forEach((t,n)=>{t!==void 0&&(e+=`${$C[n]}:${t};`)}),e}static delete(...e){return t=>{e.forEach(e=>{t.delete(e)})}}static appendVal(e,t){return n=>{let r=n.get(e),i=r?r.split(` `):[];i.includes(t)||i.push(t),n.set(e,i.join(` `))}}static removeVal(e,t){return n=>{let r=n.get(e),i=r?r.split(` `):[];i=i.filter(e=>e!==t),i.length?n.set(e,i.join(` `)):n.delete(e)}}};qC();var tw=qC({onlyFirst:!0}),$=Array(108);$[0]={5:`var(--ansi-bold-font-weight, 600)`},$[1]={5:`var(--ansi-bold-font-weight, 600)`},$[2]={6:`var(--ansi-dim-opacity, 0.7)`},$[3]={4:`italic`},$[4]=ew.appendVal(8,`underline`),$[8]={13:`hidden`},$[9]=ew.appendVal(8,`line-through`),$[10]=ew.delete(2),$[11]={2:`var(--ansi-font-1)`},$[12]={2:`var(--ansi-font-2)`},$[13]={2:`var(--ansi-font-3)`},$[14]={2:`var(--ansi-font-4)`},$[15]={2:`var(--ansi-font-5)`},$[16]={2:`var(--ansi-font-6)`},$[17]={2:`var(--ansi-font-7)`},$[18]={2:`var(--ansi-font-8)`},$[19]={2:`var(--ansi-font-9)`},$[21]={10:`underline`,11:`double`},$[22]=ew.delete(5),$[23]=ew.delete(4),$[24]=ew.removeVal(8,`underline`),$[28]=ew.delete(13),$[29]=ew.removeVal(8,`line-through`),$[30]={1:`var(--ansi-black, ${Q.black})`},$[31]={1:`var(--ansi-red, ${Q.red})`},$[32]={1:`var(--ansi-green, ${Q.green})`},$[33]={1:`var(--ansi-yellow, ${Q.yellow})`},$[34]={1:`var(--ansi-blue, ${Q.blue})`},$[35]={1:`var(--ansi-magenta, ${Q.magenta})`},$[36]={1:`var(--ansi-cyan, ${Q.cyan})`},$[37]={1:`var(--ansi-white, ${Q.white})`},$[39]=ew.delete(1),$[40]={0:`var(--ansi-black, ${Q.black})`},$[41]={0:`var(--ansi-red, ${Q.red})`},$[42]={0:`var(--ansi-green, ${Q.green})`},$[43]={0:`var(--ansi-yellow, ${Q.yellow})`},$[44]={0:`var(--ansi-blue, ${Q.blue})`},$[45]={0:`var(--ansi-magenta, ${Q.magenta})`},$[46]={0:`var(--ansi-cyan, ${Q.cyan})`},$[47]={0:`var(--ansi-white, ${Q.white})`},$[49]=ew.delete(0),$[51]={7:`var(--ansi-frame-outline, 1px solid)`},$[53]=ew.appendVal(8,`overline`),$[54]=ew.delete(7),$[55]=ew.removeVal(8,`overline`),$[59]=ew.delete(9),$[73]={12:`super`,3:`var(--ansi-superscript-font-size, 80%)`},$[74]={12:`sub`,3:`var(--ansi-subscript-font-size, 80%)`},$[75]=ew.delete(12,3),$[90]={1:`var(--ansi-bright-black, ${Q[`bright-black`]})`},$[91]={1:`var(--ansi-bright-red, ${Q[`bright-red`]})`},$[92]={1:`var(--ansi-bright-green, ${Q[`bright-green`]})`},$[93]={1:`var(--ansi-bright-yellow, ${Q[`bright-yellow`]})`},$[94]={1:`var(--ansi-bright-blue, ${Q[`bright-blue`]})`},$[95]={1:`var(--ansi-bright-magenta, ${Q[`bright-magenta`]})`},$[96]={1:`var(--ansi-bright-cyan, ${Q[`bright-cyan`]})`},$[97]={1:`var(--ansi-bright-white, ${Q[`bright-white`]})`},$[100]={0:`var(--ansi-bright-black, ${Q[`bright-black`]})`},$[101]={0:`var(--ansi-bright-red, ${Q[`bright-red`]})`},$[102]={0:`var(--ansi-bright-green, ${Q[`bright-green`]})`},$[103]={0:`var(--ansi-bright-yellow, ${Q[`bright-yellow`]})`},$[104]={0:`var(--ansi-bright-blue, ${Q[`bright-blue`]})`},$[105]={0:`var(--ansi-bright-magenta, ${Q[`bright-magenta`]})`},$[106]={0:`var(--ansi-bright-cyan, ${Q[`bright-cyan`]})`},$[107]={0:`var(--ansi-bright-white, ${Q[`bright-white`]})`};var nw=Array(16);nw[0]=`black`,nw[1]=`red`,nw[2]=`green`,nw[3]=`yellow`,nw[4]=`blue`,nw[5]=`magenta`,nw[6]=`cyan`,nw[7]=`white`,nw[8]=`bright-black`,nw[9]=`bright-red`,nw[10]=`bright-green`,nw[11]=`bright-yellow`,nw[12]=`bright-blue`,nw[13]=`bright-magenta`,nw[14]=`bright-cyan`,nw[15]=`bright-white`;function rw(e){switch(e){case`38`:return 1;case`48`:return 0;case`58`:return 9;default:throw Error(`not implemented`)}}function iw(e,t){let n=e.text.split(`;`);if(n.length!==3)return;let r=rw(n[0]),i=parseInt(n[2],10);if(0<=i&&i<=15){let e=nw[i];t.set(r,`var(--ansi-${e}, ${Q[e]})`)}else if(16<=i&&i<=231){let e=i-16,n=[0,95,135,175,215,255],a=n[e/36%6|0],o=n[e/6%6|0],s=n[e%6];t.set(r,`rgb(${a},${o},${s})`)}else if(232<=i&&i<=255){let e=8+(i-232)*10;t.set(r,`var(--ansi-gray-${256-i}, rgb(${e},${e},${e}))`)}}function aw(e,t){let n=e.text.split(`;`);if(n.length!==5)return;let r=rw(n[0]),[,,i,a,o]=n;t.set(r,`rgb(${i},${a},${o})`)}function ow(e,t){if(/^(38|48|58);(2|5);/.test(e.text)){e.text[3]===`2`?aw(e,t):iw(e,t);return}e.text.split(`;`).forEach(e=>{let n=parseInt(e||`0`,10);if(n===0){t.clear();return}let r=$[n];r&&(typeof r==`function`?r(t):t.update(r))})}function sw(e){return tw.test(e)}var cw=class{toHtml(e){let t=new ew,n=``,r=!1;return Array.from(new ZC(e)).forEach(e=>{switch(e.kind){case 1:n+=(0,KC.default)(e.text);break;case 4:r&&=(n+=`</span>`,!1),ow(e,t),t.size&&(n+=`<span style="${t.toString()}">`,r=!0);break}}),r&&(n+=`</span>`),n}},lw=e(t(((e,t)=>{t.exports=r;function n(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function r(e){if(e||={},e.circles)return i(e);let t=new Map;if(t.set(Date,e=>new Date(e)),t.set(Map,(e,t)=>new Map(a(Array.from(e),t))),t.set(Set,(e,t)=>new Set(a(Array.from(e),t))),e.constructorHandlers)for(let n of e.constructorHandlers)t.set(n[0],n[1]);let r=null;return e.proto?s:o;function a(e,i){let a=Object.keys(e),o=Array(a.length);for(let s=0;s<a.length;s++){let c=a[s],l=e[c];typeof l!=`object`||!l?o[c]=l:l.constructor!==Object&&(r=t.get(l.constructor))?o[c]=r(l,i):ArrayBuffer.isView(l)?o[c]=n(l):o[c]=i(l)}return o}function o(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return a(e,o);if(e.constructor!==Object&&(r=t.get(e.constructor)))return r(e,o);let i={};for(let a in e){if(Object.hasOwnProperty.call(e,a)===!1)continue;let s=e[a];typeof s!=`object`||!s?i[a]=s:s.constructor!==Object&&(r=t.get(s.constructor))?i[a]=r(s,o):ArrayBuffer.isView(s)?i[a]=n(s):i[a]=o(s)}return i}function s(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return a(e,s);if(e.constructor!==Object&&(r=t.get(e.constructor)))return r(e,s);let i={};for(let a in e){let o=e[a];typeof o!=`object`||!o?i[a]=o:o.constructor!==Object&&(r=t.get(o.constructor))?i[a]=r(o,s):ArrayBuffer.isView(o)?i[a]=n(o):i[a]=s(o)}return i}}function i(e){let t=[],r=[],i=new Map;if(i.set(Date,e=>new Date(e)),i.set(Map,(e,t)=>new Map(o(Array.from(e),t))),i.set(Set,(e,t)=>new Set(o(Array.from(e),t))),e.constructorHandlers)for(let t of e.constructorHandlers)i.set(t[0],t[1]);let a=null;return e.proto?c:s;function o(e,o){let s=Object.keys(e),c=Array(s.length);for(let l=0;l<s.length;l++){let u=s[l],d=e[u];if(typeof d!=`object`||!d)c[u]=d;else if(d.constructor!==Object&&(a=i.get(d.constructor)))c[u]=a(d,o);else if(ArrayBuffer.isView(d))c[u]=n(d);else{let e=t.indexOf(d);e===-1?c[u]=o(d):c[u]=r[e]}}return c}function s(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return o(e,s);if(e.constructor!==Object&&(a=i.get(e.constructor)))return a(e,s);let c={};t.push(e),r.push(c);for(let o in e){if(Object.hasOwnProperty.call(e,o)===!1)continue;let l=e[o];if(typeof l!=`object`||!l)c[o]=l;else if(l.constructor!==Object&&(a=i.get(l.constructor)))c[o]=a(l,s);else if(ArrayBuffer.isView(l))c[o]=n(l);else{let e=t.indexOf(l);e===-1?c[o]=s(l):c[o]=r[e]}}return t.pop(),r.pop(),c}function c(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return o(e,c);if(e.constructor!==Object&&(a=i.get(e.constructor)))return a(e,c);let s={};t.push(e),r.push(s);for(let o in e){let l=e[o];if(typeof l!=`object`||!l)s[o]=l;else if(l.constructor!==Object&&(a=i.get(l.constructor)))s[o]=a(l,c);else if(ArrayBuffer.isView(l))s[o]=n(l);else{let e=t.indexOf(l);e===-1?s[o]=c(l):s[o]=r[e]}}return t.pop(),r.pop(),s}}}))(),1);(0,lw.default)();function uw(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null?!1:!(Symbol.iterator in e)&&!(Symbol.toStringTag in e)}function dw(e){return typeof e==`string`}function fw(e){return Number.isFinite(e)}function pw(e){return Number.isSafeInteger(e)&&e>=0}function mw(e){return e!=null}function hw(e,t){return uw(e)&&dw(t)&&t in e}var gw=typeof global==`object`&&global&&global.Object===Object&&global,_w=typeof self==`object`&&self&&self.Object===Object&&self,vw=gw||_w||Function(`return this`)(),yw=vw.Symbol,bw=Object.prototype,xw=bw.hasOwnProperty,Sw=bw.toString,Cw=yw?yw.toStringTag:void 0;function ww(e){var t=xw.call(e,Cw),n=e[Cw];try{e[Cw]=void 0;var r=!0}catch{}var i=Sw.call(e);return r&&(t?e[Cw]=n:delete e[Cw]),i}var Tw=Object.prototype.toString;function Ew(e){return Tw.call(e)}var Dw=`[object Null]`,Ow=`[object Undefined]`,kw=yw?yw.toStringTag:void 0;function Aw(e){return e==null?e===void 0?Ow:Dw:kw&&kw in Object(e)?ww(e):Ew(e)}function jw(e){return typeof e==`object`&&!!e}var Mw=`[object Symbol]`;function Nw(e){return typeof e==`symbol`||jw(e)&&Aw(e)==Mw}function Pw(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var Fw=Array.isArray,Iw=1/0,Lw=yw?yw.prototype:void 0,Rw=Lw?Lw.toString:void 0;function zw(e){if(typeof e==`string`)return e;if(Fw(e))return Pw(e,zw)+``;if(Nw(e))return Rw?Rw.call(e):``;var t=e+``;return t==`0`&&1/e==-Iw?`-0`:t}var Bw=/\s/;function Vw(e){for(var t=e.length;t--&&Bw.test(e.charAt(t)););return t}var Hw=/^\s+/;function Uw(e){return e&&e.slice(0,Vw(e)+1).replace(Hw,``)}function Ww(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function Gw(e){return e}var Kw=`[object AsyncFunction]`,qw=`[object Function]`,Jw=`[object GeneratorFunction]`,Yw=`[object Proxy]`;function Xw(e){if(!Ww(e))return!1;var t=Aw(e);return t==qw||t==Jw||t==Kw||t==Yw}var Zw=vw[`__core-js_shared__`],Qw=function(){var e=/[^.]+$/.exec(Zw&&Zw.keys&&Zw.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function $w(e){return!!Qw&&Qw in e}var eT=Function.prototype.toString;function tT(e){if(e!=null){try{return eT.call(e)}catch{}try{return e+``}catch{}}return``}var nT=/[\\^$.*+?()[\]{}|]/g,rT=/^\[object .+?Constructor\]$/,iT=Function.prototype,aT=Object.prototype,oT=iT.toString,sT=aT.hasOwnProperty,cT=RegExp(`^`+oT.call(sT).replace(nT,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function lT(e){return!Ww(e)||$w(e)?!1:(Xw(e)?cT:rT).test(tT(e))}function uT(e,t){return e?.[t]}function dT(e,t){var n=uT(e,t);return lT(n)?n:void 0}function fT(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var pT=800,mT=16,hT=Date.now;function gT(e){var t=0,n=0;return function(){var r=hT(),i=mT-(r-n);if(n=r,i>0){if(++t>=pT)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function _T(e){return function(){return e}}var vT=function(){try{var e=dT(Object,`defineProperty`);return e({},``,{}),e}catch{}}(),yT=gT(vT?function(e,t){return vT(e,`toString`,{configurable:!0,enumerable:!1,value:_T(t),writable:!0})}:Gw);function bT(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function xT(e){return e!==e}function ST(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function CT(e,t,n){return t===t?ST(e,t,n):bT(e,xT,n)}function wT(e,t){return!!(e!=null&&e.length)&&CT(e,t,0)>-1}function TT(e,t){return e===t||e!==e&&t!==t}var ET=Math.max;function DT(e,t,n){return t=ET(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=ET(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),fT(e,this,s)}}function OT(e,t){return yT(DT(e,t,Gw),e+``)}var kT=9007199254740991;function AT(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=kT}function jT(e){return e!=null&&AT(e.length)&&!Xw(e)}function MT(e){return function(t){return e(t)}}var NT=dT(Object,`create`);function PT(){this.__data__=NT?NT(null):{},this.size=0}function FT(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}var IT=`__lodash_hash_undefined__`,LT=Object.prototype.hasOwnProperty;function RT(e){var t=this.__data__;if(NT){var n=t[e];return n===IT?void 0:n}return LT.call(t,e)?t[e]:void 0}var zT=Object.prototype.hasOwnProperty;function BT(e){var t=this.__data__;return NT?t[e]!==void 0:zT.call(t,e)}var VT=`__lodash_hash_undefined__`;function HT(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=NT&&t===void 0?VT:t,this}function UT(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}UT.prototype.clear=PT,UT.prototype.delete=FT,UT.prototype.get=RT,UT.prototype.has=BT,UT.prototype.set=HT;function WT(){this.__data__=[],this.size=0}function GT(e,t){for(var n=e.length;n--;)if(TT(e[n][0],t))return n;return-1}var KT=Array.prototype.splice;function qT(e){var t=this.__data__,n=GT(t,e);return n<0?!1:(n==t.length-1?t.pop():KT.call(t,n,1),--this.size,!0)}function JT(e){var t=this.__data__,n=GT(t,e);return n<0?void 0:t[n][1]}function YT(e){return GT(this.__data__,e)>-1}function XT(e,t){var n=this.__data__,r=GT(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function ZT(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ZT.prototype.clear=WT,ZT.prototype.delete=qT,ZT.prototype.get=JT,ZT.prototype.has=YT,ZT.prototype.set=XT;var QT=dT(vw,`Map`);function $T(){this.size=0,this.__data__={hash:new UT,map:new(QT||ZT),string:new UT}}function eE(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function tE(e,t){var n=e.__data__;return eE(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function nE(e){var t=tE(this,e).delete(e);return this.size-=+!!t,t}function rE(e){return tE(this,e).get(e)}function iE(e){return tE(this,e).has(e)}function aE(e,t){var n=tE(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function oE(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}oE.prototype.clear=$T,oE.prototype.delete=nE,oE.prototype.get=rE,oE.prototype.has=iE,oE.prototype.set=aE;function sE(e){return e==null?``:zw(e)}function cE(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}function lE(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:cE(e,t,n)}var uE=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function dE(e){return uE.test(e)}function fE(e){return e.split(``)}var pE=`\\ud800-\\udfff`,mE=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,hE=`\\ufe0e\\ufe0f`,gE=`[`+pE+`]`,_E=`[`+mE+`]`,vE=`\\ud83c[\\udffb-\\udfff]`,yE=`(?:`+_E+`|`+vE+`)`,bE=`[^`+pE+`]`,xE=`(?:\\ud83c[\\udde6-\\uddff]){2}`,SE=`[\\ud800-\\udbff][\\udc00-\\udfff]`,CE=`\\u200d`,wE=yE+`?`,TE=`[`+hE+`]?`,EE=`(?:`+CE+`(?:`+[bE,xE,SE].join(`|`)+`)`+TE+wE+`)*`,DE=TE+wE+EE,OE=`(?:`+[bE+_E+`?`,_E,xE,SE,gE].join(`|`)+`)`,kE=RegExp(vE+`(?=`+vE+`)|`+OE+DE,`g`);function AE(e){return e.match(kE)||[]}function jE(e){return dE(e)?AE(e):fE(e)}var ME=`__lodash_hash_undefined__`;function NE(e){return this.__data__.set(e,ME),this}function PE(e){return this.__data__.has(e)}function FE(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new oE;++t<n;)this.add(e[t])}FE.prototype.add=FE.prototype.push=NE,FE.prototype.has=PE;function IE(e,t){return e.has(t)}function LE(e){return jw(e)&&jT(e)}function RE(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var zE=200;function BE(e,t,n,r){var i=-1,a=wT,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=Pw(t,MT(n))),r?(a=RE,o=!1):t.length>=zE&&(a=IE,o=!1,t=new FE(t));outer:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,o&&d===d){for(var f=l;f--;)if(t[f]===d)continue outer;c.push(u)}else a(t,d,r)||c.push(u)}return c}function VE(e,t){for(var n=e.length;n--&&CT(t,e[n],0)>-1;);return n}function HE(e,t){for(var n=-1,r=e.length;++n<r&&CT(t,e[n],0)>-1;);return n}function UE(e,t,n){if(e=sE(e),e&&(n||t===void 0))return Uw(e);if(!e||!(t=zw(t)))return e;var r=jE(e),i=jE(t);return lE(r,HE(r,i),VE(r,i)+1).join(``)}var WE=OT(function(e,t){return LE(e)?BE(e,t):[]}),GE=function(){return GE=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},GE.apply(this,arguments)},KE=`~`,qE=`~~`;function JE(e,t){for(var n={},r={},i=e.split(qE),a=!1,o=0;i.length>o;o++){for(var s=i[o].split(KE),c=0;c<s.length;c+=2){var l=s[c],u=s[c+1],d=`&`+l+`;`;n[d]=u,a&&(n[`&`+l]=u),r[u]=d}a=!0}return t?{entities:GE(GE({},n),t.entities),characters:GE(GE({},r),t.characters)}:{entities:n,characters:r}}var YE={xml:/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,html4:/∉|&(?:nbsp|iexcl|cent|pound|curren|yen|brvbar|sect|uml|copy|ordf|laquo|not|shy|reg|macr|deg|plusmn|sup2|sup3|acute|micro|para|middot|cedil|sup1|ordm|raquo|frac14|frac12|frac34|iquest|Agrave|Aacute|Acirc|Atilde|Auml|Aring|AElig|Ccedil|Egrave|Eacute|Ecirc|Euml|Igrave|Iacute|Icirc|Iuml|ETH|Ntilde|Ograve|Oacute|Ocirc|Otilde|Ouml|times|Oslash|Ugrave|Uacute|Ucirc|Uuml|Yacute|THORN|szlig|agrave|aacute|acirc|atilde|auml|aring|aelig|ccedil|egrave|eacute|ecirc|euml|igrave|iacute|icirc|iuml|eth|ntilde|ograve|oacute|ocirc|otilde|ouml|divide|oslash|ugrave|uacute|ucirc|uuml|yacute|thorn|yuml|quot|amp|lt|gt|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,html5:/·|℗|⋇|⪧|⩺|⋗|⦕|⩼|⪆|⥸|⋗|⋛|⪌|≷|≳|⪦|⩹|⋖|⋋|⋉|⥶|⩻|⦖|◃|⊴|◂|∉|⋹̸|⋵̸|∉|⋷|⋶|∌|∌|⋾|⋽|∥|⊠|⨱|⨰|&(?:AElig|AMP|Aacute|Acirc|Agrave|Aring|Atilde|Auml|COPY|Ccedil|ETH|Eacute|Ecirc|Egrave|Euml|GT|Iacute|Icirc|Igrave|Iuml|LT|Ntilde|Oacute|Ocirc|Ograve|Oslash|Otilde|Ouml|QUOT|REG|THORN|Uacute|Ucirc|Ugrave|Uuml|Yacute|aacute|acirc|acute|aelig|agrave|amp|aring|atilde|auml|brvbar|ccedil|cedil|cent|copy|curren|deg|divide|eacute|ecirc|egrave|eth|euml|frac12|frac14|frac34|gt|iacute|icirc|iexcl|igrave|iquest|iuml|laquo|lt|macr|micro|middot|nbsp|not|ntilde|oacute|ocirc|ograve|ordf|ordm|oslash|otilde|ouml|para|plusmn|pound|quot|raquo|reg|sect|shy|sup1|sup2|sup3|szlig|thorn|times|uacute|ucirc|ugrave|uml|uuml|yacute|yen|yuml|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g},XE={};XE.xml=JE(`lt~<~gt~>~quot~"~apos~'~amp~&`),XE.html4=JE(`apos~'~OElig~Œ~oelig~œ~Scaron~Š~scaron~š~Yuml~Ÿ~circ~ˆ~tilde~˜~ensp~ ~emsp~ ~thinsp~ ~zwnj~~zwj~~lrm~~rlm~~ndash~–~mdash~—~lsquo~‘~rsquo~’~sbquo~‚~ldquo~“~rdquo~”~bdquo~„~dagger~†~Dagger~‡~permil~‰~lsaquo~‹~rsaquo~›~euro~€~fnof~ƒ~Alpha~Α~Beta~Β~Gamma~Γ~Delta~Δ~Epsilon~Ε~Zeta~Ζ~Eta~Η~Theta~Θ~Iota~Ι~Kappa~Κ~Lambda~Λ~Mu~Μ~Nu~Ν~Xi~Ξ~Omicron~Ο~Pi~Π~Rho~Ρ~Sigma~Σ~Tau~Τ~Upsilon~Υ~Phi~Φ~Chi~Χ~Psi~Ψ~Omega~Ω~alpha~α~beta~β~gamma~γ~delta~δ~epsilon~ε~zeta~ζ~eta~η~theta~θ~iota~ι~kappa~κ~lambda~λ~mu~μ~nu~ν~xi~ξ~omicron~ο~pi~π~rho~ρ~sigmaf~ς~sigma~σ~tau~τ~upsilon~υ~phi~φ~chi~χ~psi~ψ~omega~ω~thetasym~ϑ~upsih~ϒ~piv~ϖ~bull~•~hellip~…~prime~′~Prime~″~oline~‾~frasl~⁄~weierp~℘~image~ℑ~real~ℜ~trade~™~alefsym~ℵ~larr~←~uarr~↑~rarr~→~darr~↓~harr~↔~crarr~↵~lArr~⇐~uArr~⇑~rArr~⇒~dArr~⇓~hArr~⇔~forall~∀~part~∂~exist~∃~empty~∅~nabla~∇~isin~∈~notin~∉~ni~∋~prod~∏~sum~∑~minus~−~lowast~∗~radic~√~prop~∝~infin~∞~ang~∠~and~∧~or~∨~cap~∩~cup~∪~int~∫~there4~∴~sim~∼~cong~≅~asymp~≈~ne~≠~equiv~≡~le~≤~ge~≥~sub~⊂~sup~⊃~nsub~⊄~sube~⊆~supe~⊇~oplus~⊕~otimes~⊗~perp~⊥~sdot~⋅~lceil~⌈~rceil~⌉~lfloor~⌊~rfloor~⌋~lang~〈~rang~〉~loz~◊~spades~♠~clubs~♣~hearts~♥~diams~♦~~nbsp~\xA0~iexcl~¡~cent~¢~pound~£~curren~¤~yen~¥~brvbar~¦~sect~§~uml~¨~copy~©~ordf~ª~laquo~«~not~¬~shy~~reg~®~macr~¯~deg~°~plusmn~±~sup2~²~sup3~³~acute~´~micro~µ~para~¶~middot~·~cedil~¸~sup1~¹~ordm~º~raquo~»~frac14~¼~frac12~½~frac34~¾~iquest~¿~Agrave~À~Aacute~Á~Acirc~Â~Atilde~Ã~Auml~Ä~Aring~Å~AElig~Æ~Ccedil~Ç~Egrave~È~Eacute~É~Ecirc~Ê~Euml~Ë~Igrave~Ì~Iacute~Í~Icirc~Î~Iuml~Ï~ETH~Ð~Ntilde~Ñ~Ograve~Ò~Oacute~Ó~Ocirc~Ô~Otilde~Õ~Ouml~Ö~times~×~Oslash~Ø~Ugrave~Ù~Uacute~Ú~Ucirc~Û~Uuml~Ü~Yacute~Ý~THORN~Þ~szlig~ß~agrave~à~aacute~á~acirc~â~atilde~ã~auml~ä~aring~å~aelig~æ~ccedil~ç~egrave~è~eacute~é~ecirc~ê~euml~ë~igrave~ì~iacute~í~icirc~î~iuml~ï~eth~ð~ntilde~ñ~ograve~ò~oacute~ó~ocirc~ô~otilde~õ~ouml~ö~divide~÷~oslash~ø~ugrave~ù~uacute~ú~ucirc~û~uuml~ü~yacute~ý~thorn~þ~yuml~ÿ~quot~"~amp~&~lt~<~gt~>`),XE.html5=JE('Abreve~Ă~Acy~А~Afr~𝔄~Amacr~Ā~And~⩓~Aogon~Ą~Aopf~𝔸~ApplyFunction~~Ascr~𝒜~Assign~≔~Backslash~∖~Barv~⫧~Barwed~⌆~Bcy~Б~Because~∵~Bernoullis~ℬ~Bfr~𝔅~Bopf~𝔹~Breve~˘~Bscr~ℬ~Bumpeq~≎~CHcy~Ч~Cacute~Ć~Cap~⋒~CapitalDifferentialD~ⅅ~Cayleys~ℭ~Ccaron~Č~Ccirc~Ĉ~Cconint~∰~Cdot~Ċ~Cedilla~¸~CenterDot~·~Cfr~ℭ~CircleDot~⊙~CircleMinus~⊖~CirclePlus~⊕~CircleTimes~⊗~ClockwiseContourIntegral~∲~CloseCurlyDoubleQuote~”~CloseCurlyQuote~’~Colon~∷~Colone~⩴~Congruent~≡~Conint~∯~ContourIntegral~∮~Copf~ℂ~Coproduct~∐~CounterClockwiseContourIntegral~∳~Cross~⨯~Cscr~𝒞~Cup~⋓~CupCap~≍~DD~ⅅ~DDotrahd~⤑~DJcy~Ђ~DScy~Ѕ~DZcy~Џ~Darr~↡~Dashv~⫤~Dcaron~Ď~Dcy~Д~Del~∇~Dfr~𝔇~DiacriticalAcute~´~DiacriticalDot~˙~DiacriticalDoubleAcute~˝~DiacriticalGrave~`~DiacriticalTilde~˜~Diamond~⋄~DifferentialD~ⅆ~Dopf~𝔻~Dot~¨~DotDot~⃜~DotEqual~≐~DoubleContourIntegral~∯~DoubleDot~¨~DoubleDownArrow~⇓~DoubleLeftArrow~⇐~DoubleLeftRightArrow~⇔~DoubleLeftTee~⫤~DoubleLongLeftArrow~⟸~DoubleLongLeftRightArrow~⟺~DoubleLongRightArrow~⟹~DoubleRightArrow~⇒~DoubleRightTee~⊨~DoubleUpArrow~⇑~DoubleUpDownArrow~⇕~DoubleVerticalBar~∥~DownArrow~↓~DownArrowBar~⤓~DownArrowUpArrow~⇵~DownBreve~̑~DownLeftRightVector~⥐~DownLeftTeeVector~⥞~DownLeftVector~↽~DownLeftVectorBar~⥖~DownRightTeeVector~⥟~DownRightVector~⇁~DownRightVectorBar~⥗~DownTee~⊤~DownTeeArrow~↧~Downarrow~⇓~Dscr~𝒟~Dstrok~Đ~ENG~Ŋ~Ecaron~Ě~Ecy~Э~Edot~Ė~Efr~𝔈~Element~∈~Emacr~Ē~EmptySmallSquare~◻~EmptyVerySmallSquare~▫~Eogon~Ę~Eopf~𝔼~Equal~⩵~EqualTilde~≂~Equilibrium~⇌~Escr~ℰ~Esim~⩳~Exists~∃~ExponentialE~ⅇ~Fcy~Ф~Ffr~𝔉~FilledSmallSquare~◼~FilledVerySmallSquare~▪~Fopf~𝔽~ForAll~∀~Fouriertrf~ℱ~Fscr~ℱ~GJcy~Ѓ~Gammad~Ϝ~Gbreve~Ğ~Gcedil~Ģ~Gcirc~Ĝ~Gcy~Г~Gdot~Ġ~Gfr~𝔊~Gg~⋙~Gopf~𝔾~GreaterEqual~≥~GreaterEqualLess~⋛~GreaterFullEqual~≧~GreaterGreater~⪢~GreaterLess~≷~GreaterSlantEqual~⩾~GreaterTilde~≳~Gscr~𝒢~Gt~≫~HARDcy~Ъ~Hacek~ˇ~Hat~^~Hcirc~Ĥ~Hfr~ℌ~HilbertSpace~ℋ~Hopf~ℍ~HorizontalLine~─~Hscr~ℋ~Hstrok~Ħ~HumpDownHump~≎~HumpEqual~≏~IEcy~Е~IJlig~IJ~IOcy~Ё~Icy~И~Idot~İ~Ifr~ℑ~Im~ℑ~Imacr~Ī~ImaginaryI~ⅈ~Implies~⇒~Int~∬~Integral~∫~Intersection~⋂~InvisibleComma~~InvisibleTimes~~Iogon~Į~Iopf~𝕀~Iscr~ℐ~Itilde~Ĩ~Iukcy~І~Jcirc~Ĵ~Jcy~Й~Jfr~𝔍~Jopf~𝕁~Jscr~𝒥~Jsercy~Ј~Jukcy~Є~KHcy~Х~KJcy~Ќ~Kcedil~Ķ~Kcy~К~Kfr~𝔎~Kopf~𝕂~Kscr~𝒦~LJcy~Љ~Lacute~Ĺ~Lang~⟪~Laplacetrf~ℒ~Larr~↞~Lcaron~Ľ~Lcedil~Ļ~Lcy~Л~LeftAngleBracket~⟨~LeftArrow~←~LeftArrowBar~⇤~LeftArrowRightArrow~⇆~LeftCeiling~⌈~LeftDoubleBracket~⟦~LeftDownTeeVector~⥡~LeftDownVector~⇃~LeftDownVectorBar~⥙~LeftFloor~⌊~LeftRightArrow~↔~LeftRightVector~⥎~LeftTee~⊣~LeftTeeArrow~↤~LeftTeeVector~⥚~LeftTriangle~⊲~LeftTriangleBar~⧏~LeftTriangleEqual~⊴~LeftUpDownVector~⥑~LeftUpTeeVector~⥠~LeftUpVector~↿~LeftUpVectorBar~⥘~LeftVector~↼~LeftVectorBar~⥒~Leftarrow~⇐~Leftrightarrow~⇔~LessEqualGreater~⋚~LessFullEqual~≦~LessGreater~≶~LessLess~⪡~LessSlantEqual~⩽~LessTilde~≲~Lfr~𝔏~Ll~⋘~Lleftarrow~⇚~Lmidot~Ŀ~LongLeftArrow~⟵~LongLeftRightArrow~⟷~LongRightArrow~⟶~Longleftarrow~⟸~Longleftrightarrow~⟺~Longrightarrow~⟹~Lopf~𝕃~LowerLeftArrow~↙~LowerRightArrow~↘~Lscr~ℒ~Lsh~↰~Lstrok~Ł~Lt~≪~Map~⤅~Mcy~М~MediumSpace~ ~Mellintrf~ℳ~Mfr~𝔐~MinusPlus~∓~Mopf~𝕄~Mscr~ℳ~NJcy~Њ~Nacute~Ń~Ncaron~Ň~Ncedil~Ņ~Ncy~Н~NegativeMediumSpace~~NegativeThickSpace~~NegativeThinSpace~~NegativeVeryThinSpace~~NestedGreaterGreater~≫~NestedLessLess~≪~NewLine~\n~Nfr~𝔑~NoBreak~~NonBreakingSpace~\xA0~Nopf~ℕ~Not~⫬~NotCongruent~≢~NotCupCap~≭~NotDoubleVerticalBar~∦~NotElement~∉~NotEqual~≠~NotEqualTilde~≂̸~NotExists~∄~NotGreater~≯~NotGreaterEqual~≱~NotGreaterFullEqual~≧̸~NotGreaterGreater~≫̸~NotGreaterLess~≹~NotGreaterSlantEqual~⩾̸~NotGreaterTilde~≵~NotHumpDownHump~≎̸~NotHumpEqual~≏̸~NotLeftTriangle~⋪~NotLeftTriangleBar~⧏̸~NotLeftTriangleEqual~⋬~NotLess~≮~NotLessEqual~≰~NotLessGreater~≸~NotLessLess~≪̸~NotLessSlantEqual~⩽̸~NotLessTilde~≴~NotNestedGreaterGreater~⪢̸~NotNestedLessLess~⪡̸~NotPrecedes~⊀~NotPrecedesEqual~⪯̸~NotPrecedesSlantEqual~⋠~NotReverseElement~∌~NotRightTriangle~⋫~NotRightTriangleBar~⧐̸~NotRightTriangleEqual~⋭~NotSquareSubset~⊏̸~NotSquareSubsetEqual~⋢~NotSquareSuperset~⊐̸~NotSquareSupersetEqual~⋣~NotSubset~⊂⃒~NotSubsetEqual~⊈~NotSucceeds~⊁~NotSucceedsEqual~⪰̸~NotSucceedsSlantEqual~⋡~NotSucceedsTilde~≿̸~NotSuperset~⊃⃒~NotSupersetEqual~⊉~NotTilde~≁~NotTildeEqual~≄~NotTildeFullEqual~≇~NotTildeTilde~≉~NotVerticalBar~∤~Nscr~𝒩~Ocy~О~Odblac~Ő~Ofr~𝔒~Omacr~Ō~Oopf~𝕆~OpenCurlyDoubleQuote~“~OpenCurlyQuote~‘~Or~⩔~Oscr~𝒪~Otimes~⨷~OverBar~‾~OverBrace~⏞~OverBracket~⎴~OverParenthesis~⏜~PartialD~∂~Pcy~П~Pfr~𝔓~PlusMinus~±~Poincareplane~ℌ~Popf~ℙ~Pr~⪻~Precedes~≺~PrecedesEqual~⪯~PrecedesSlantEqual~≼~PrecedesTilde~≾~Product~∏~Proportion~∷~Proportional~∝~Pscr~𝒫~Qfr~𝔔~Qopf~ℚ~Qscr~𝒬~RBarr~⤐~Racute~Ŕ~Rang~⟫~Rarr~↠~Rarrtl~⤖~Rcaron~Ř~Rcedil~Ŗ~Rcy~Р~Re~ℜ~ReverseElement~∋~ReverseEquilibrium~⇋~ReverseUpEquilibrium~⥯~Rfr~ℜ~RightAngleBracket~⟩~RightArrow~→~RightArrowBar~⇥~RightArrowLeftArrow~⇄~RightCeiling~⌉~RightDoubleBracket~⟧~RightDownTeeVector~⥝~RightDownVector~⇂~RightDownVectorBar~⥕~RightFloor~⌋~RightTee~⊢~RightTeeArrow~↦~RightTeeVector~⥛~RightTriangle~⊳~RightTriangleBar~⧐~RightTriangleEqual~⊵~RightUpDownVector~⥏~RightUpTeeVector~⥜~RightUpVector~↾~RightUpVectorBar~⥔~RightVector~⇀~RightVectorBar~⥓~Rightarrow~⇒~Ropf~ℝ~RoundImplies~⥰~Rrightarrow~⇛~Rscr~ℛ~Rsh~↱~RuleDelayed~⧴~SHCHcy~Щ~SHcy~Ш~SOFTcy~Ь~Sacute~Ś~Sc~⪼~Scedil~Ş~Scirc~Ŝ~Scy~С~Sfr~𝔖~ShortDownArrow~↓~ShortLeftArrow~←~ShortRightArrow~→~ShortUpArrow~↑~SmallCircle~∘~Sopf~𝕊~Sqrt~√~Square~□~SquareIntersection~⊓~SquareSubset~⊏~SquareSubsetEqual~⊑~SquareSuperset~⊐~SquareSupersetEqual~⊒~SquareUnion~⊔~Sscr~𝒮~Star~⋆~Sub~⋐~Subset~⋐~SubsetEqual~⊆~Succeeds~≻~SucceedsEqual~⪰~SucceedsSlantEqual~≽~SucceedsTilde~≿~SuchThat~∋~Sum~∑~Sup~⋑~Superset~⊃~SupersetEqual~⊇~Supset~⋑~TRADE~™~TSHcy~Ћ~TScy~Ц~Tab~ ~Tcaron~Ť~Tcedil~Ţ~Tcy~Т~Tfr~𝔗~Therefore~∴~ThickSpace~ ~ThinSpace~ ~Tilde~∼~TildeEqual~≃~TildeFullEqual~≅~TildeTilde~≈~Topf~𝕋~TripleDot~⃛~Tscr~𝒯~Tstrok~Ŧ~Uarr~↟~Uarrocir~⥉~Ubrcy~Ў~Ubreve~Ŭ~Ucy~У~Udblac~Ű~Ufr~𝔘~Umacr~Ū~UnderBar~_~UnderBrace~⏟~UnderBracket~⎵~UnderParenthesis~⏝~Union~⋃~UnionPlus~⊎~Uogon~Ų~Uopf~𝕌~UpArrow~↑~UpArrowBar~⤒~UpArrowDownArrow~⇅~UpDownArrow~↕~UpEquilibrium~⥮~UpTee~⊥~UpTeeArrow~↥~Uparrow~⇑~Updownarrow~⇕~UpperLeftArrow~↖~UpperRightArrow~↗~Upsi~ϒ~Uring~Ů~Uscr~𝒰~Utilde~Ũ~VDash~⊫~Vbar~⫫~Vcy~В~Vdash~⊩~Vdashl~⫦~Vee~⋁~Verbar~‖~Vert~‖~VerticalBar~∣~VerticalLine~|~VerticalSeparator~❘~VerticalTilde~≀~VeryThinSpace~ ~Vfr~𝔙~Vopf~𝕍~Vscr~𝒱~Vvdash~⊪~Wcirc~Ŵ~Wedge~⋀~Wfr~𝔚~Wopf~𝕎~Wscr~𝒲~Xfr~𝔛~Xopf~𝕏~Xscr~𝒳~YAcy~Я~YIcy~Ї~YUcy~Ю~Ycirc~Ŷ~Ycy~Ы~Yfr~𝔜~Yopf~𝕐~Yscr~𝒴~ZHcy~Ж~Zacute~Ź~Zcaron~Ž~Zcy~З~Zdot~Ż~ZeroWidthSpace~~Zfr~ℨ~Zopf~ℤ~Zscr~𝒵~abreve~ă~ac~∾~acE~∾̳~acd~∿~acy~а~af~~afr~𝔞~aleph~ℵ~amacr~ā~amalg~⨿~andand~⩕~andd~⩜~andslope~⩘~andv~⩚~ange~⦤~angle~∠~angmsd~∡~angmsdaa~⦨~angmsdab~⦩~angmsdac~⦪~angmsdad~⦫~angmsdae~⦬~angmsdaf~⦭~angmsdag~⦮~angmsdah~⦯~angrt~∟~angrtvb~⊾~angrtvbd~⦝~angsph~∢~angst~Å~angzarr~⍼~aogon~ą~aopf~𝕒~ap~≈~apE~⩰~apacir~⩯~ape~≊~apid~≋~approx~≈~approxeq~≊~ascr~𝒶~ast~*~asympeq~≍~awconint~∳~awint~⨑~bNot~⫭~backcong~≌~backepsilon~϶~backprime~‵~backsim~∽~backsimeq~⋍~barvee~⊽~barwed~⌅~barwedge~⌅~bbrk~⎵~bbrktbrk~⎶~bcong~≌~bcy~б~becaus~∵~because~∵~bemptyv~⦰~bepsi~϶~bernou~ℬ~beth~ℶ~between~≬~bfr~𝔟~bigcap~⋂~bigcirc~◯~bigcup~⋃~bigodot~⨀~bigoplus~⨁~bigotimes~⨂~bigsqcup~⨆~bigstar~★~bigtriangledown~▽~bigtriangleup~△~biguplus~⨄~bigvee~⋁~bigwedge~⋀~bkarow~⤍~blacklozenge~⧫~blacksquare~▪~blacktriangle~▴~blacktriangledown~▾~blacktriangleleft~◂~blacktriangleright~▸~blank~␣~blk12~▒~blk14~░~blk34~▓~block~█~bne~=⃥~bnequiv~≡⃥~bnot~⌐~bopf~𝕓~bot~⊥~bottom~⊥~bowtie~⋈~boxDL~╗~boxDR~╔~boxDl~╖~boxDr~╓~boxH~═~boxHD~╦~boxHU~╩~boxHd~╤~boxHu~╧~boxUL~╝~boxUR~╚~boxUl~╜~boxUr~╙~boxV~║~boxVH~╬~boxVL~╣~boxVR~╠~boxVh~╫~boxVl~╢~boxVr~╟~boxbox~⧉~boxdL~╕~boxdR~╒~boxdl~┐~boxdr~┌~boxh~─~boxhD~╥~boxhU~╨~boxhd~┬~boxhu~┴~boxminus~⊟~boxplus~⊞~boxtimes~⊠~boxuL~╛~boxuR~╘~boxul~┘~boxur~└~boxv~│~boxvH~╪~boxvL~╡~boxvR~╞~boxvh~┼~boxvl~┤~boxvr~├~bprime~‵~breve~˘~bscr~𝒷~bsemi~⁏~bsim~∽~bsime~⋍~bsol~\\~bsolb~⧅~bsolhsub~⟈~bullet~•~bump~≎~bumpE~⪮~bumpe~≏~bumpeq~≏~cacute~ć~capand~⩄~capbrcup~⩉~capcap~⩋~capcup~⩇~capdot~⩀~caps~∩︀~caret~⁁~caron~ˇ~ccaps~⩍~ccaron~č~ccirc~ĉ~ccups~⩌~ccupssm~⩐~cdot~ċ~cemptyv~⦲~centerdot~·~cfr~𝔠~chcy~ч~check~✓~checkmark~✓~cir~○~cirE~⧃~circeq~≗~circlearrowleft~↺~circlearrowright~↻~circledR~®~circledS~Ⓢ~circledast~⊛~circledcirc~⊚~circleddash~⊝~cire~≗~cirfnint~⨐~cirmid~⫯~cirscir~⧂~clubsuit~♣~colon~:~colone~≔~coloneq~≔~comma~,~commat~@~comp~∁~compfn~∘~complement~∁~complexes~ℂ~congdot~⩭~conint~∮~copf~𝕔~coprod~∐~copysr~℗~cross~✗~cscr~𝒸~csub~⫏~csube~⫑~csup~⫐~csupe~⫒~ctdot~⋯~cudarrl~⤸~cudarrr~⤵~cuepr~⋞~cuesc~⋟~cularr~↶~cularrp~⤽~cupbrcap~⩈~cupcap~⩆~cupcup~⩊~cupdot~⊍~cupor~⩅~cups~∪︀~curarr~↷~curarrm~⤼~curlyeqprec~⋞~curlyeqsucc~⋟~curlyvee~⋎~curlywedge~⋏~curvearrowleft~↶~curvearrowright~↷~cuvee~⋎~cuwed~⋏~cwconint~∲~cwint~∱~cylcty~⌭~dHar~⥥~daleth~ℸ~dash~‐~dashv~⊣~dbkarow~⤏~dblac~˝~dcaron~ď~dcy~д~dd~ⅆ~ddagger~‡~ddarr~⇊~ddotseq~⩷~demptyv~⦱~dfisht~⥿~dfr~𝔡~dharl~⇃~dharr~⇂~diam~⋄~diamond~⋄~diamondsuit~♦~die~¨~digamma~ϝ~disin~⋲~div~÷~divideontimes~⋇~divonx~⋇~djcy~ђ~dlcorn~⌞~dlcrop~⌍~dollar~$~dopf~𝕕~dot~˙~doteq~≐~doteqdot~≑~dotminus~∸~dotplus~∔~dotsquare~⊡~doublebarwedge~⌆~downarrow~↓~downdownarrows~⇊~downharpoonleft~⇃~downharpoonright~⇂~drbkarow~⤐~drcorn~⌟~drcrop~⌌~dscr~𝒹~dscy~ѕ~dsol~⧶~dstrok~đ~dtdot~⋱~dtri~▿~dtrif~▾~duarr~⇵~duhar~⥯~dwangle~⦦~dzcy~џ~dzigrarr~⟿~eDDot~⩷~eDot~≑~easter~⩮~ecaron~ě~ecir~≖~ecolon~≕~ecy~э~edot~ė~ee~ⅇ~efDot~≒~efr~𝔢~eg~⪚~egs~⪖~egsdot~⪘~el~⪙~elinters~⏧~ell~ℓ~els~⪕~elsdot~⪗~emacr~ē~emptyset~∅~emptyv~∅~emsp13~ ~emsp14~ ~eng~ŋ~eogon~ę~eopf~𝕖~epar~⋕~eparsl~⧣~eplus~⩱~epsi~ε~epsiv~ϵ~eqcirc~≖~eqcolon~≕~eqsim~≂~eqslantgtr~⪖~eqslantless~⪕~equals~=~equest~≟~equivDD~⩸~eqvparsl~⧥~erDot~≓~erarr~⥱~escr~ℯ~esdot~≐~esim~≂~excl~!~expectation~ℰ~exponentiale~ⅇ~fallingdotseq~≒~fcy~ф~female~♀~ffilig~ffi~fflig~ff~ffllig~ffl~ffr~𝔣~filig~fi~fjlig~fj~flat~♭~fllig~fl~fltns~▱~fopf~𝕗~fork~⋔~forkv~⫙~fpartint~⨍~frac13~⅓~frac15~⅕~frac16~⅙~frac18~⅛~frac23~⅔~frac25~⅖~frac35~⅗~frac38~⅜~frac45~⅘~frac56~⅚~frac58~⅝~frac78~⅞~frown~⌢~fscr~𝒻~gE~≧~gEl~⪌~gacute~ǵ~gammad~ϝ~gap~⪆~gbreve~ğ~gcirc~ĝ~gcy~г~gdot~ġ~gel~⋛~geq~≥~geqq~≧~geqslant~⩾~ges~⩾~gescc~⪩~gesdot~⪀~gesdoto~⪂~gesdotol~⪄~gesl~⋛︀~gesles~⪔~gfr~𝔤~gg~≫~ggg~⋙~gimel~ℷ~gjcy~ѓ~gl~≷~glE~⪒~gla~⪥~glj~⪤~gnE~≩~gnap~⪊~gnapprox~⪊~gne~⪈~gneq~⪈~gneqq~≩~gnsim~⋧~gopf~𝕘~grave~`~gscr~ℊ~gsim~≳~gsime~⪎~gsiml~⪐~gtcc~⪧~gtcir~⩺~gtdot~⋗~gtlPar~⦕~gtquest~⩼~gtrapprox~⪆~gtrarr~⥸~gtrdot~⋗~gtreqless~⋛~gtreqqless~⪌~gtrless~≷~gtrsim~≳~gvertneqq~≩︀~gvnE~≩︀~hairsp~ ~half~½~hamilt~ℋ~hardcy~ъ~harrcir~⥈~harrw~↭~hbar~ℏ~hcirc~ĥ~heartsuit~♥~hercon~⊹~hfr~𝔥~hksearow~⤥~hkswarow~⤦~hoarr~⇿~homtht~∻~hookleftarrow~↩~hookrightarrow~↪~hopf~𝕙~horbar~―~hscr~𝒽~hslash~ℏ~hstrok~ħ~hybull~⁃~hyphen~‐~ic~~icy~и~iecy~е~iff~⇔~ifr~𝔦~ii~ⅈ~iiiint~⨌~iiint~∭~iinfin~⧜~iiota~℩~ijlig~ij~imacr~ī~imagline~ℐ~imagpart~ℑ~imath~ı~imof~⊷~imped~Ƶ~in~∈~incare~℅~infintie~⧝~inodot~ı~intcal~⊺~integers~ℤ~intercal~⊺~intlarhk~⨗~intprod~⨼~iocy~ё~iogon~į~iopf~𝕚~iprod~⨼~iscr~𝒾~isinE~⋹~isindot~⋵~isins~⋴~isinsv~⋳~isinv~∈~it~~itilde~ĩ~iukcy~і~jcirc~ĵ~jcy~й~jfr~𝔧~jmath~ȷ~jopf~𝕛~jscr~𝒿~jsercy~ј~jukcy~є~kappav~ϰ~kcedil~ķ~kcy~к~kfr~𝔨~kgreen~ĸ~khcy~х~kjcy~ќ~kopf~𝕜~kscr~𝓀~lAarr~⇚~lAtail~⤛~lBarr~⤎~lE~≦~lEg~⪋~lHar~⥢~lacute~ĺ~laemptyv~⦴~lagran~ℒ~langd~⦑~langle~⟨~lap~⪅~larrb~⇤~larrbfs~⤟~larrfs~⤝~larrhk~↩~larrlp~↫~larrpl~⤹~larrsim~⥳~larrtl~↢~lat~⪫~latail~⤙~late~⪭~lates~⪭︀~lbarr~⤌~lbbrk~❲~lbrace~{~lbrack~[~lbrke~⦋~lbrksld~⦏~lbrkslu~⦍~lcaron~ľ~lcedil~ļ~lcub~{~lcy~л~ldca~⤶~ldquor~„~ldrdhar~⥧~ldrushar~⥋~ldsh~↲~leftarrow~←~leftarrowtail~↢~leftharpoondown~↽~leftharpoonup~↼~leftleftarrows~⇇~leftrightarrow~↔~leftrightarrows~⇆~leftrightharpoons~⇋~leftrightsquigarrow~↭~leftthreetimes~⋋~leg~⋚~leq~≤~leqq~≦~leqslant~⩽~les~⩽~lescc~⪨~lesdot~⩿~lesdoto~⪁~lesdotor~⪃~lesg~⋚︀~lesges~⪓~lessapprox~⪅~lessdot~⋖~lesseqgtr~⋚~lesseqqgtr~⪋~lessgtr~≶~lesssim~≲~lfisht~⥼~lfr~𝔩~lg~≶~lgE~⪑~lhard~↽~lharu~↼~lharul~⥪~lhblk~▄~ljcy~љ~ll~≪~llarr~⇇~llcorner~⌞~llhard~⥫~lltri~◺~lmidot~ŀ~lmoust~⎰~lmoustache~⎰~lnE~≨~lnap~⪉~lnapprox~⪉~lne~⪇~lneq~⪇~lneqq~≨~lnsim~⋦~loang~⟬~loarr~⇽~lobrk~⟦~longleftarrow~⟵~longleftrightarrow~⟷~longmapsto~⟼~longrightarrow~⟶~looparrowleft~↫~looparrowright~↬~lopar~⦅~lopf~𝕝~loplus~⨭~lotimes~⨴~lowbar~_~lozenge~◊~lozf~⧫~lpar~(~lparlt~⦓~lrarr~⇆~lrcorner~⌟~lrhar~⇋~lrhard~⥭~lrtri~⊿~lscr~𝓁~lsh~↰~lsim~≲~lsime~⪍~lsimg~⪏~lsqb~[~lsquor~‚~lstrok~ł~ltcc~⪦~ltcir~⩹~ltdot~⋖~lthree~⋋~ltimes~⋉~ltlarr~⥶~ltquest~⩻~ltrPar~⦖~ltri~◃~ltrie~⊴~ltrif~◂~lurdshar~⥊~luruhar~⥦~lvertneqq~≨︀~lvnE~≨︀~mDDot~∺~male~♂~malt~✠~maltese~✠~map~↦~mapsto~↦~mapstodown~↧~mapstoleft~↤~mapstoup~↥~marker~▮~mcomma~⨩~mcy~м~measuredangle~∡~mfr~𝔪~mho~℧~mid~∣~midast~*~midcir~⫰~minusb~⊟~minusd~∸~minusdu~⨪~mlcp~⫛~mldr~…~mnplus~∓~models~⊧~mopf~𝕞~mp~∓~mscr~𝓂~mstpos~∾~multimap~⊸~mumap~⊸~nGg~⋙̸~nGt~≫⃒~nGtv~≫̸~nLeftarrow~⇍~nLeftrightarrow~⇎~nLl~⋘̸~nLt~≪⃒~nLtv~≪̸~nRightarrow~⇏~nVDash~⊯~nVdash~⊮~nacute~ń~nang~∠⃒~nap~≉~napE~⩰̸~napid~≋̸~napos~ʼn~napprox~≉~natur~♮~natural~♮~naturals~ℕ~nbump~≎̸~nbumpe~≏̸~ncap~⩃~ncaron~ň~ncedil~ņ~ncong~≇~ncongdot~⩭̸~ncup~⩂~ncy~н~neArr~⇗~nearhk~⤤~nearr~↗~nearrow~↗~nedot~≐̸~nequiv~≢~nesear~⤨~nesim~≂̸~nexist~∄~nexists~∄~nfr~𝔫~ngE~≧̸~nge~≱~ngeq~≱~ngeqq~≧̸~ngeqslant~⩾̸~nges~⩾̸~ngsim~≵~ngt~≯~ngtr~≯~nhArr~⇎~nharr~↮~nhpar~⫲~nis~⋼~nisd~⋺~niv~∋~njcy~њ~nlArr~⇍~nlE~≦̸~nlarr~↚~nldr~‥~nle~≰~nleftarrow~↚~nleftrightarrow~↮~nleq~≰~nleqq~≦̸~nleqslant~⩽̸~nles~⩽̸~nless~≮~nlsim~≴~nlt~≮~nltri~⋪~nltrie~⋬~nmid~∤~nopf~𝕟~notinE~⋹̸~notindot~⋵̸~notinva~∉~notinvb~⋷~notinvc~⋶~notni~∌~notniva~∌~notnivb~⋾~notnivc~⋽~npar~∦~nparallel~∦~nparsl~⫽⃥~npart~∂̸~npolint~⨔~npr~⊀~nprcue~⋠~npre~⪯̸~nprec~⊀~npreceq~⪯̸~nrArr~⇏~nrarr~↛~nrarrc~⤳̸~nrarrw~↝̸~nrightarrow~↛~nrtri~⋫~nrtrie~⋭~nsc~⊁~nsccue~⋡~nsce~⪰̸~nscr~𝓃~nshortmid~∤~nshortparallel~∦~nsim~≁~nsime~≄~nsimeq~≄~nsmid~∤~nspar~∦~nsqsube~⋢~nsqsupe~⋣~nsubE~⫅̸~nsube~⊈~nsubset~⊂⃒~nsubseteq~⊈~nsubseteqq~⫅̸~nsucc~⊁~nsucceq~⪰̸~nsup~⊅~nsupE~⫆̸~nsupe~⊉~nsupset~⊃⃒~nsupseteq~⊉~nsupseteqq~⫆̸~ntgl~≹~ntlg~≸~ntriangleleft~⋪~ntrianglelefteq~⋬~ntriangleright~⋫~ntrianglerighteq~⋭~num~#~numero~№~numsp~ ~nvDash~⊭~nvHarr~⤄~nvap~≍⃒~nvdash~⊬~nvge~≥⃒~nvgt~>⃒~nvinfin~⧞~nvlArr~⤂~nvle~≤⃒~nvlt~<⃒~nvltrie~⊴⃒~nvrArr~⤃~nvrtrie~⊵⃒~nvsim~∼⃒~nwArr~⇖~nwarhk~⤣~nwarr~↖~nwarrow~↖~nwnear~⤧~oS~Ⓢ~oast~⊛~ocir~⊚~ocy~о~odash~⊝~odblac~ő~odiv~⨸~odot~⊙~odsold~⦼~ofcir~⦿~ofr~𝔬~ogon~˛~ogt~⧁~ohbar~⦵~ohm~Ω~oint~∮~olarr~↺~olcir~⦾~olcross~⦻~olt~⧀~omacr~ō~omid~⦶~ominus~⊖~oopf~𝕠~opar~⦷~operp~⦹~orarr~↻~ord~⩝~order~ℴ~orderof~ℴ~origof~⊶~oror~⩖~orslope~⩗~orv~⩛~oscr~ℴ~osol~⊘~otimesas~⨶~ovbar~⌽~par~∥~parallel~∥~parsim~⫳~parsl~⫽~pcy~п~percnt~%~period~.~pertenk~‱~pfr~𝔭~phiv~ϕ~phmmat~ℳ~phone~☎~pitchfork~⋔~planck~ℏ~planckh~ℎ~plankv~ℏ~plus~+~plusacir~⨣~plusb~⊞~pluscir~⨢~plusdo~∔~plusdu~⨥~pluse~⩲~plussim~⨦~plustwo~⨧~pm~±~pointint~⨕~popf~𝕡~pr~≺~prE~⪳~prap~⪷~prcue~≼~pre~⪯~prec~≺~precapprox~⪷~preccurlyeq~≼~preceq~⪯~precnapprox~⪹~precneqq~⪵~precnsim~⋨~precsim~≾~primes~ℙ~prnE~⪵~prnap~⪹~prnsim~⋨~profalar~⌮~profline~⌒~profsurf~⌓~propto~∝~prsim~≾~prurel~⊰~pscr~𝓅~puncsp~ ~qfr~𝔮~qint~⨌~qopf~𝕢~qprime~⁗~qscr~𝓆~quaternions~ℍ~quatint~⨖~quest~?~questeq~≟~rAarr~⇛~rAtail~⤜~rBarr~⤏~rHar~⥤~race~∽̱~racute~ŕ~raemptyv~⦳~rangd~⦒~range~⦥~rangle~⟩~rarrap~⥵~rarrb~⇥~rarrbfs~⤠~rarrc~⤳~rarrfs~⤞~rarrhk~↪~rarrlp~↬~rarrpl~⥅~rarrsim~⥴~rarrtl~↣~rarrw~↝~ratail~⤚~ratio~∶~rationals~ℚ~rbarr~⤍~rbbrk~❳~rbrace~}~rbrack~]~rbrke~⦌~rbrksld~⦎~rbrkslu~⦐~rcaron~ř~rcedil~ŗ~rcub~}~rcy~р~rdca~⤷~rdldhar~⥩~rdquor~”~rdsh~↳~realine~ℛ~realpart~ℜ~reals~ℝ~rect~▭~rfisht~⥽~rfr~𝔯~rhard~⇁~rharu~⇀~rharul~⥬~rhov~ϱ~rightarrow~→~rightarrowtail~↣~rightharpoondown~⇁~rightharpoonup~⇀~rightleftarrows~⇄~rightleftharpoons~⇌~rightrightarrows~⇉~rightsquigarrow~↝~rightthreetimes~⋌~ring~˚~risingdotseq~≓~rlarr~⇄~rlhar~⇌~rmoust~⎱~rmoustache~⎱~rnmid~⫮~roang~⟭~roarr~⇾~robrk~⟧~ropar~⦆~ropf~𝕣~roplus~⨮~rotimes~⨵~rpar~)~rpargt~⦔~rppolint~⨒~rrarr~⇉~rscr~𝓇~rsh~↱~rsqb~]~rsquor~’~rthree~⋌~rtimes~⋊~rtri~▹~rtrie~⊵~rtrif~▸~rtriltri~⧎~ruluhar~⥨~rx~℞~sacute~ś~sc~≻~scE~⪴~scap~⪸~sccue~≽~sce~⪰~scedil~ş~scirc~ŝ~scnE~⪶~scnap~⪺~scnsim~⋩~scpolint~⨓~scsim~≿~scy~с~sdotb~⊡~sdote~⩦~seArr~⇘~searhk~⤥~searr~↘~searrow~↘~semi~;~seswar~⤩~setminus~∖~setmn~∖~sext~✶~sfr~𝔰~sfrown~⌢~sharp~♯~shchcy~щ~shcy~ш~shortmid~∣~shortparallel~∥~sigmav~ς~simdot~⩪~sime~≃~simeq~≃~simg~⪞~simgE~⪠~siml~⪝~simlE~⪟~simne~≆~simplus~⨤~simrarr~⥲~slarr~←~smallsetminus~∖~smashp~⨳~smeparsl~⧤~smid~∣~smile~⌣~smt~⪪~smte~⪬~smtes~⪬︀~softcy~ь~sol~/~solb~⧄~solbar~⌿~sopf~𝕤~spadesuit~♠~spar~∥~sqcap~⊓~sqcaps~⊓︀~sqcup~⊔~sqcups~⊔︀~sqsub~⊏~sqsube~⊑~sqsubset~⊏~sqsubseteq~⊑~sqsup~⊐~sqsupe~⊒~sqsupset~⊐~sqsupseteq~⊒~squ~□~square~□~squarf~▪~squf~▪~srarr~→~sscr~𝓈~ssetmn~∖~ssmile~⌣~sstarf~⋆~star~☆~starf~★~straightepsilon~ϵ~straightphi~ϕ~strns~¯~subE~⫅~subdot~⪽~subedot~⫃~submult~⫁~subnE~⫋~subne~⊊~subplus~⪿~subrarr~⥹~subset~⊂~subseteq~⊆~subseteqq~⫅~subsetneq~⊊~subsetneqq~⫋~subsim~⫇~subsub~⫕~subsup~⫓~succ~≻~succapprox~⪸~succcurlyeq~≽~succeq~⪰~succnapprox~⪺~succneqq~⪶~succnsim~⋩~succsim~≿~sung~♪~supE~⫆~supdot~⪾~supdsub~⫘~supedot~⫄~suphsol~⟉~suphsub~⫗~suplarr~⥻~supmult~⫂~supnE~⫌~supne~⊋~supplus~⫀~supset~⊃~supseteq~⊇~supseteqq~⫆~supsetneq~⊋~supsetneqq~⫌~supsim~⫈~supsub~⫔~supsup~⫖~swArr~⇙~swarhk~⤦~swarr~↙~swarrow~↙~swnwar~⤪~target~⌖~tbrk~⎴~tcaron~ť~tcedil~ţ~tcy~т~tdot~⃛~telrec~⌕~tfr~𝔱~therefore~∴~thetav~ϑ~thickapprox~≈~thicksim~∼~thkap~≈~thksim~∼~timesb~⊠~timesbar~⨱~timesd~⨰~tint~∭~toea~⤨~top~⊤~topbot~⌶~topcir~⫱~topf~𝕥~topfork~⫚~tosa~⤩~tprime~‴~triangle~▵~triangledown~▿~triangleleft~◃~trianglelefteq~⊴~triangleq~≜~triangleright~▹~trianglerighteq~⊵~tridot~◬~trie~≜~triminus~⨺~triplus~⨹~trisb~⧍~tritime~⨻~trpezium~⏢~tscr~𝓉~tscy~ц~tshcy~ћ~tstrok~ŧ~twixt~≬~twoheadleftarrow~↞~twoheadrightarrow~↠~uHar~⥣~ubrcy~ў~ubreve~ŭ~ucy~у~udarr~⇅~udblac~ű~udhar~⥮~ufisht~⥾~ufr~𝔲~uharl~↿~uharr~↾~uhblk~▀~ulcorn~⌜~ulcorner~⌜~ulcrop~⌏~ultri~◸~umacr~ū~uogon~ų~uopf~𝕦~uparrow~↑~updownarrow~↕~upharpoonleft~↿~upharpoonright~↾~uplus~⊎~upsi~υ~upuparrows~⇈~urcorn~⌝~urcorner~⌝~urcrop~⌎~uring~ů~urtri~◹~uscr~𝓊~utdot~⋰~utilde~ũ~utri~▵~utrif~▴~uuarr~⇈~uwangle~⦧~vArr~⇕~vBar~⫨~vBarv~⫩~vDash~⊨~vangrt~⦜~varepsilon~ϵ~varkappa~ϰ~varnothing~∅~varphi~ϕ~varpi~ϖ~varpropto~∝~varr~↕~varrho~ϱ~varsigma~ς~varsubsetneq~⊊︀~varsubsetneqq~⫋︀~varsupsetneq~⊋︀~varsupsetneqq~⫌︀~vartheta~ϑ~vartriangleleft~⊲~vartriangleright~⊳~vcy~в~vdash~⊢~vee~∨~veebar~⊻~veeeq~≚~vellip~⋮~verbar~|~vert~|~vfr~𝔳~vltri~⊲~vnsub~⊂⃒~vnsup~⊃⃒~vopf~𝕧~vprop~∝~vrtri~⊳~vscr~𝓋~vsubnE~⫋︀~vsubne~⊊︀~vsupnE~⫌︀~vsupne~⊋︀~vzigzag~⦚~wcirc~ŵ~wedbar~⩟~wedge~∧~wedgeq~≙~wfr~𝔴~wopf~𝕨~wp~℘~wr~≀~wreath~≀~wscr~𝓌~xcap~⋂~xcirc~◯~xcup~⋃~xdtri~▽~xfr~𝔵~xhArr~⟺~xharr~⟷~xlArr~⟸~xlarr~⟵~xmap~⟼~xnis~⋻~xodot~⨀~xopf~𝕩~xoplus~⨁~xotime~⨂~xrArr~⟹~xrarr~⟶~xscr~𝓍~xsqcup~⨆~xuplus~⨄~xutri~△~xvee~⋁~xwedge~⋀~yacy~я~ycirc~ŷ~ycy~ы~yfr~𝔶~yicy~ї~yopf~𝕪~yscr~𝓎~yucy~ю~zacute~ź~zcaron~ž~zcy~з~zdot~ż~zeetrf~ℨ~zfr~𝔷~zhcy~ж~zigrarr~⇝~zopf~𝕫~zscr~𝓏~~AMP~&~COPY~©~GT~>~LT~<~QUOT~"~REG~®',XE.html4);var ZE={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},QE=String.fromCodePoint||function(e){return String.fromCharCode(Math.floor((e-65536)/1024)+55296,(e-65536)%1024+56320)};String.prototype.codePointAt;var $E=function(){return $E=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},$E.apply(this,arguments)},eD=$E($E({},XE),{all:XE.html5}),tD={scope:`body`,level:`all`},nD=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g,rD=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g,iD={xml:{strict:nD,attribute:rD,body:YE.xml},html4:{strict:nD,attribute:rD,body:YE.html4},html5:{strict:nD,attribute:rD,body:YE.html5}},aD=$E($E({},iD),{all:iD.html5}),oD=String.fromCharCode,sD=oD(65533);function cD(e,t,n,r){var i=e,a=e[e.length-1];if(n&&a===`=`)i=e;else if(r&&a!==`;`)i=e;else{var o=t[e];if(o)i=o;else if(e[0]===`&`&&e[1]===`#`){var s=e[2],c=s==`x`||s==`X`?parseInt(e.substr(3),16):parseInt(e.substr(2));i=c>=1114111?sD:c>65535?QE(c):oD(ZE[c]||c)}}return i}function lD(e,t){var n=t===void 0?tD:t,r=n.level,i=r===void 0?`all`:r,a=n.scope,o=a===void 0?i===`xml`?`strict`:`body`:a;if(!e)return``;var s=aD[i][o],c=eD[i].entities,l=o===`attribute`,u=o===`strict`;return e.replace(s,function(e){return cD(e,c,l,u)})}var uD={strictlyTwoElementsInRangeArrays:!1,progressFn:null};function dD(e,t){if(!Array.isArray(e)||!e.length)return e;let n={...uD,...t},r,i;if(n.strictlyTwoElementsInRangeArrays&&!e.every((e,t)=>!Array.isArray(e)||e.length!==2?(r=t,i=e.length,!1):!0))throw TypeError(`ranges-sort: [THROW_ID_03] The first argument should be an array and must consist of arrays which are natural number indexes representing TWO string index ranges. However, ${r}th range (${JSON.stringify(e[r],null,4)}) has not two but ${i} elements!`);if(!e.every((e,t)=>!Array.isArray(e)||!Number.isInteger(e[0])||e[0]<0||!Number.isInteger(e[1])||e[1]<0?(r=t,!1):!0))throw TypeError(`ranges-sort: [THROW_ID_04] The first argument should be an array and must consist of arrays which are natural number indexes representing string index ranges. However, ${r}th range (${JSON.stringify(e[r],null,4)}) does not consist of only natural numbers!`);let a=e.length**2,o=0;return Array.from(e).sort((e,t)=>(n.progressFn&&(o+=1,n.progressFn(Math.floor(o*100/a))),e[0]===t[0]?e[1]<t[1]?-1:+(e[1]>t[1]):e[0]<t[0]?-1:1))}var fD={mergeType:1,progressFn:null,joinRangesThatTouchEdges:!0};function pD(e,t){function n(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}if(!Array.isArray(e)||!e.length)return null;let r;if(t)if(n(t)){if(r={...fD,...t},r.progressFn&&n(r.progressFn)&&!Object.keys(r.progressFn).length)r.progressFn=null;else if(r.progressFn&&typeof r.progressFn!=`function`)throw Error(`ranges-merge: [THROW_ID_01] opts.progressFn must be a function! It was given of a type: "${typeof r.progressFn}", equal to ${JSON.stringify(r.progressFn,null,4)}`);if(![1,2,`1`,`2`].includes(r.mergeType))throw Error(`ranges-merge: [THROW_ID_02] opts.mergeType was customised to a wrong thing! It was given of a type: "${typeof r.mergeType}", equal to ${JSON.stringify(r.mergeType,null,4)}`);if(typeof r.joinRangesThatTouchEdges!=`boolean`)throw Error(`ranges-merge: [THROW_ID_04] opts.joinRangesThatTouchEdges was customised to a wrong thing! It was given of a type: "${typeof r.joinRangesThatTouchEdges}", equal to ${JSON.stringify(r.joinRangesThatTouchEdges,null,4)}`)}else throw Error(`emlint: [THROW_ID_03] the second input argument must be a plain object. It was given as:
|
|
874
874
|
${JSON.stringify(t,null,4)} (type ${typeof t})`);else r={...fD};let i=e.filter(e=>Array.isArray(e)).map(e=>[...e]).filter(e=>e[2]!==void 0||e[0]!==e[1]),a,o,s;a=r.progressFn?dD(i,{progressFn:e=>{s=Math.floor(e/5),s!==o&&(o=s,r.progressFn(s))}}):dD(i);let c=a.length-1;for(let e=c;e>0;e--)r.progressFn&&(s=Math.floor((1-e/c)*78)+21,s!==o&&s>o&&(o=s,r.progressFn(s))),(a[e][0]<=a[e-1][0]||!r.joinRangesThatTouchEdges&&a[e][0]<a[e-1][1]||r.joinRangesThatTouchEdges&&a[e][0]<=a[e-1][1])&&(a[e-1][0]=Math.min(a[e][0],a[e-1][0]),a[e-1][1]=Math.max(a[e][1],a[e-1][1]),a[e][2]!==void 0&&(a[e-1][0]>=a[e][0]||a[e-1][1]<=a[e][1])&&a[e-1][2]!==null&&(a[e][2]===null&&a[e-1][2]!==null?a[e-1][2]=null:a[e-1][2]==null||+r.mergeType==2&&a[e-1][0]===a[e][0]?a[e-1][2]=a[e][2]:a[e-1][2]+=a[e][2]),a.splice(e,1),e=a.length);return a.length?a:null}var mD=!0,hD=`Invariant failed`;function gD(e,t){if(!e){if(mD)throw Error(hD);var n=typeof t==`function`?t():t,r=n?`${hD}: ${n}`:hD;throw Error(r)}}function _D(e,t,n){let r=0,i=0;if(arguments.length===0)throw Error(`ranges-apply: [THROW_ID_01] inputs missing!`);if(typeof e!=`string`)throw TypeError(`ranges-apply: [THROW_ID_02] first input argument must be a string! Currently it's: ${typeof e}, equal to: ${JSON.stringify(e,null,4)}`);if(t&&!Array.isArray(t))throw TypeError(`ranges-apply: [THROW_ID_03] second input argument must be an array (or null)! Currently it's: ${typeof t}, equal to: ${JSON.stringify(t,null,4)}`);if(n&&typeof n!=`function`)throw TypeError(`ranges-apply: [THROW_ID_04] the third input argument must be a function (or falsey)! Currently it's: ${typeof n}, equal to: ${JSON.stringify(n,null,4)}`);if(!t?.filter(e=>e).length)return e;let a;a=Array.isArray(t)&&Number.isInteger(t[0])&&Number.isInteger(t[1])?[Array.from(t)]:Array.from(t);let o=a.length,s=0;a.filter(e=>e).forEach((e,t)=>{if(n&&(r=Math.floor(s/o*10),r!==i&&(i=r,n(r))),!Array.isArray(e))throw TypeError(`ranges-apply: [THROW_ID_05] ranges array, second input arg., has ${t}th element not an array: ${JSON.stringify(e,null,4)}, which is ${typeof e}`);if(!Number.isInteger(e[0])){if(!Number.isInteger(+e[0])||+e[0]<0)throw TypeError(`ranges-apply: [THROW_ID_06] ranges array, second input arg. has ${t}th element, array ${JSON.stringify(e,null,0)}. Its first element is not an integer, string index, but ${typeof e[0]}, equal to: ${JSON.stringify(e[0],null,4)}.`);a[t][0]=+a[t][0]}if(!Number.isInteger(e[1])){if(!Number.isInteger(+e[1])||+e[1]<0)throw TypeError(`ranges-apply: [THROW_ID_07] ranges array, second input arg. has ${t}th element, array ${JSON.stringify(e,null,0)}. Its second element is not an integer, string index, but ${typeof e[1]}, equal to: ${JSON.stringify(e[1],null,4)}.`);a[t][1]=+a[t][1]}s+=1});let c=pD(a,{progressFn:e=>{n&&(r=10+Math.floor(e/10),r!==i&&(i=r,n(r)))}});gD(c);let l=c.length;if(l>0){let t=e.slice(c[l-1][1]);e=c.reduce((t,a,o,s)=>{n&&(r=20+Math.floor(o/l*80),r!==i&&(i=r,n(r)));let c=o===0?0:s[o-1][1],u=s[o][0];return`${t}${e.slice(c,u)}${s[o][2]||``}`},``),e+=t}return e}function vD(e,t=1){function n(e){return Array.from(e).reverse().join(``)}function r(e,t,n){let r=n?`
|
|
875
875
|
`:`\r`,i=n?`\r`:`
|
|
876
876
|
`;if(!e)return e;let a=0,o=0,s=``;for(let n=0,c=e.length;n<c;n++)(e[n]===r||e[n]===i&&e[n-1]!==r)&&o++,`\r
|
|
@@ -896,6 +896,6 @@ ${JSON.stringify(t,null,4)}`);function T(){g&&=(m={tagName:``,hrefValue:``,openi
|
|
|
896
896
|
`?`
|
|
897
897
|
`:r}`,n===s.lastClosingBracketAt+1&&(!e[n]||!ND.has(e[n]))&&(i+=` `),s.leftOuterWhitespace===s.lastOpeningBracketAt&&k.last()&&k.last()[1]<s.lastOpeningBracketAt&&(!E?.dumpLinkHrefsNearby?.putOnNewLine||!ND.has(e[n]))&&(i=` `+i)):i=r,i!==null&&(s.leftOuterWhitespace===0||!TD(e,n-1))&&(!E.dumpLinkHrefsNearby?.enabled||s.name!==`a`)&&(i=void 0);let a=0;if(g&&ND.has(e[n])){E.dumpLinkHrefsNearby?.putOnNewLine&&(i=`${e[n]}${i||``}`);let r=TD(e,n);r&&i?.endsWith(`
|
|
898
898
|
`)?a+=r-t:(!r||r>t)&&a++}E.cb({tag:s,deleteFrom:s.leftOuterWhitespace,deleteTo:n+a,insert:i,rangesArr:k,proposedReturn:[s.leftOuterWhitespace,n+a,i]}),T(),y(t,E,k)}else s={};C(t)||(s={})}j&&=!1}if((!A||e[t]===`<`&&TD(e,TD(e,t))&&e[TD(e,t)]===`/`&&e.startsWith(`script`,TD(e,TD(e,t))))&&S(t)&&!S(t-1)&&!`'"`.includes(e[t+1])&&(!`'"`.includes(e[t+2])||/\w/.test(e[t+1]))&&!(e[t+1]===`c`&&e[t+2]===`:`)&&!(e[t+1]===`f`&&e[t+2]===`m`&&e[t+3]===`t`&&e[t+4]===`:`)&&!(e[t+1]===`s`&&e[t+2]===`q`&&e[t+3]===`l`&&e[t+4]===`:`)&&!(e[t+1]===`x`&&e[t+2]===`:`)&&!(e[t+1]===`f`&&e[t+2]===`n`&&e[t+3]===`:`)&&kD(s,e,t)){if(C(TD(e,t)))continue;if(s.nameEnds&&s.nameEnds<t&&!s.lastClosingBracketAt&&(s.onlyPlausible===!0&&s.attributes?.length||s.onlyPlausible===!1)){let n=b(e,t,s.leftOuterWhitespace,t,s.lastOpeningBracketAt,t);E.cb({tag:s,deleteFrom:s.leftOuterWhitespace,deleteTo:t,insert:n,rangesArr:k,proposedReturn:[s.leftOuterWhitespace,t,n]}),y(t,E,k),s={},p={}}if(s.lastOpeningBracketAt!==void 0&&s.onlyPlausible&&s.name&&!s.quotes&&(s.lastOpeningBracketAt=void 0,s.name=void 0,s.onlyPlausible=!1),(s.lastOpeningBracketAt===void 0||!s.onlyPlausible)&&!s.quotes&&(s.lastOpeningBracketAt=t,s.slashPresent=!1,s.attributes=[],l===null?s.leftOuterWhitespace=t:E.trimOnlySpaces&&l===0?s.leftOuterWhitespace=u||t:s.leftOuterWhitespace=l,`${e[t+1]}${e[t+2]}${e[t+3]}`==`!--`||`${e[t+1]}${e[t+2]}${e[t+3]}${e[t+4]}${e[t+5]}${e[t+6]}${e[t+7]}${e[t+8]}`==`![CDATA[`)){let n=!0;e[t+2]===`-`&&(n=!1);let r;for(let i=t;i<N;i++)if((!r&&n&&`${e[i-2]}${e[i-1]}${e[i]}`==`]]>`||!n&&`${e[i-2]}${e[i-1]}${e[i]}`==`-->`)&&(r=i),r&&(r<i&&e[i].trim()||e[i+1]===void 0)){let n=i;(e[i+1]===void 0&&!e[i].trim()||e[i]===`>`)&&(n+=1),(!a.length||a[a.length-1][0]!==s.lastOpeningBracketAt)&&a.push([s.lastOpeningBracketAt,r+1]),(!o.length||o[o.length-1][0]!==s.lastOpeningBracketAt)&&o.push([s.lastOpeningBracketAt,r+1]);let c=b(e,i,s.leftOuterWhitespace,n,s.lastOpeningBracketAt,r);E.cb({tag:s,deleteFrom:s.leftOuterWhitespace,deleteTo:n,insert:c,rangesArr:k,proposedReturn:[s.leftOuterWhitespace,n,c]}),t=i-1,e[i]===`>`&&(t=i),s={},p={};break}}}!e[t].trim()||e[t].charCodeAt(0)===847?(l===null&&(l=t,s.lastOpeningBracketAt!==void 0&&s.lastOpeningBracketAt<t&&s.nameStarts&&s.nameStarts<s.lastOpeningBracketAt&&t===s.lastOpeningBracketAt+1&&!r.some(e=>e.name===s.name)&&(s.onlyPlausible=!0,s.name=void 0,s.nameStarts=void 0)),(e[t]===`
|
|
899
|
-
`||e[t]===`\r`)&&(d=t,f&&=!1)):(l!==null&&(!s.quotes&&p.equalsAt>l-1&&p.nameEnds&&p.equalsAt>p.nameEnds&&e[t]!==`"`&&e[t]!==`'`&&(uw(p)&&s.attributes.push(p),p={},s.equalsSpottedAt=void 0),l=null),f||(f=!0,v&&!A&&typeof d==`number`&&t&&d<t-1&&(e.slice(d+1,t).trim()?d=null:E.ignoreIndentations||k.push([d+1,t])))),e[t]===` `?u===null&&(u=t):u!==null&&(u=null),s.name===`script`&&(A=!s.slashPresent)}if(e&&!E.ignoreIndentations&&(E.trimOnlySpaces&&e[0]===` `||!E.trimOnlySpaces&&!e[0].trim()))for(let t=0;t<N;t++)if(E.trimOnlySpaces&&e[t]!==` `||!E.trimOnlySpaces&&e[t].trim()){k.push([0,t]);break}else e[t+1]||k.push([0,t+1]);if(e&&(E.trimOnlySpaces&&e[~-e.length]===` `||!E.trimOnlySpaces&&!e[~-e.length].trim())){for(let t=e.length;t--;)if(E.trimOnlySpaces&&e[t]!==` `||!E.trimOnlySpaces&&e[t].trim()){k.push([t+1,N]);break}}let P=k.current();if(!t?.cb&&P&&(P[0]&&!P[0][0]&&(P[0][1],k.ranges[0]=[k.ranges[0][0],k.ranges[0][1]]),P[P.length-1]&&P[P.length-1][1]===e.length&&(P[P.length-1][0],k.ranges))){let t=k.ranges[k.ranges.length-1][0];e[t-1]&&(E.trimOnlySpaces&&e[t-1]===` `||!E.trimOnlySpaces&&!e[t-1].trim())&&--t;let n=k.ranges[k.ranges.length-1][2];k.ranges[k.ranges.length-1]=[t,k.ranges[k.ranges.length-1][1]],n?.trim()&&k.ranges[k.ranges.length-1].push(n.trimEnd())}return{log:{timeTakenInMilliseconds:Date.now()-n},result:_D(e,k.current()),ranges:k.current(),allTagLocations:a,filteredTagLocations:o}}function RD(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{f(),c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}var zD={class:`editor-page`},BD={class:`editor`},VD={class:`editor-content`},HD={class:`buttons`},UD={class:`left`},WD={class:`center`},GD={class:`flex flex-row align-items-center`},KD={class:`right`},qD={class:`editor-wrapper`},JD={id:`tour-editor-canvas`,class:`main`},YD={class:`node-editor-wrapper`},XD={key:0,class:`drawer right`},ZD={class:`flex justify-content-between align-items-center flex-wrap`},QD={class:`text-bold text-xl`},$D={key:0,class:`flex flex-column gap-4`},eO={class:`flex items-center gap-2`},tO={class:`ml-2 h3 logs-header`},nO={key:0,class:`logs-animated`},rO=[`innerHTML`],iO={class:`actions`},aO={key:0,class:`logs`},oO={key:0,class:`card`},sO={class:`flex items-center gap-2 w-full`},cO={class:`font-bold whitespace-nowrap`},lO=[`innerHTML`],uO={class:`flex items-center gap-4 mb-4`},dO={class:`flex justify-end gap-2`},fO=N(ie({__name:`editor`,setup(e){let t=
|
|
900
|
-
`);for(let e of r.map(e=>e.trim()).filter(e=>!!e).filter(e=>e!==``)){let r=``;sw(e)?r+=l.toHtml(e):r+=e,ae(t,[Gt(n.timestamp,`dd/MM/yyyy - hh:mm:ss`),r].join(` `))}}});if(console.log(`result`,e),e.type===`success`){
|
|
901
|
-
`}let r=n;e.type===`success`&&e.result.filePath&&await s.execute(`fs:write`,{path:e.result.filePath,content:r})};br(window,{"$mod+KeyS":e=>{e.preventDefault(),
|
|
899
|
+
`||e[t]===`\r`)&&(d=t,f&&=!1)):(l!==null&&(!s.quotes&&p.equalsAt>l-1&&p.nameEnds&&p.equalsAt>p.nameEnds&&e[t]!==`"`&&e[t]!==`'`&&(uw(p)&&s.attributes.push(p),p={},s.equalsSpottedAt=void 0),l=null),f||(f=!0,v&&!A&&typeof d==`number`&&t&&d<t-1&&(e.slice(d+1,t).trim()?d=null:E.ignoreIndentations||k.push([d+1,t])))),e[t]===` `?u===null&&(u=t):u!==null&&(u=null),s.name===`script`&&(A=!s.slashPresent)}if(e&&!E.ignoreIndentations&&(E.trimOnlySpaces&&e[0]===` `||!E.trimOnlySpaces&&!e[0].trim()))for(let t=0;t<N;t++)if(E.trimOnlySpaces&&e[t]!==` `||!E.trimOnlySpaces&&e[t].trim()){k.push([0,t]);break}else e[t+1]||k.push([0,t+1]);if(e&&(E.trimOnlySpaces&&e[~-e.length]===` `||!E.trimOnlySpaces&&!e[~-e.length].trim())){for(let t=e.length;t--;)if(E.trimOnlySpaces&&e[t]!==` `||!E.trimOnlySpaces&&e[t].trim()){k.push([t+1,N]);break}}let P=k.current();if(!t?.cb&&P&&(P[0]&&!P[0][0]&&(P[0][1],k.ranges[0]=[k.ranges[0][0],k.ranges[0][1]]),P[P.length-1]&&P[P.length-1][1]===e.length&&(P[P.length-1][0],k.ranges))){let t=k.ranges[k.ranges.length-1][0];e[t-1]&&(E.trimOnlySpaces&&e[t-1]===` `||!E.trimOnlySpaces&&!e[t-1].trim())&&--t;let n=k.ranges[k.ranges.length-1][2];k.ranges[k.ranges.length-1]=[t,k.ranges[k.ranges.length-1][1]],n?.trim()&&k.ranges[k.ranges.length-1].push(n.trimEnd())}return{log:{timeTakenInMilliseconds:Date.now()-n},result:_D(e,k.current()),ranges:k.current(),allTagLocations:a,filteredTagLocations:o}}function RD(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{f(),c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}var zD={class:`editor-page`},BD={class:`editor`},VD={class:`editor-content`},HD={class:`buttons`},UD={class:`left`},WD={class:`center`},GD={class:`flex flex-row align-items-center`},KD={class:`right`},qD={class:`editor-wrapper`},JD={id:`tour-editor-canvas`,class:`main`},YD={class:`node-editor-wrapper`},XD={key:0,class:`drawer right`},ZD={class:`flex justify-content-between align-items-center flex-wrap`},QD={class:`text-bold text-xl`},$D={key:0,class:`flex flex-column gap-4`},eO={class:`flex items-center gap-2`},tO={class:`ml-2 h3 logs-header`},nO={key:0,class:`logs-animated`},rO=[`innerHTML`],iO={class:`actions`},aO={key:0,class:`logs`},oO={key:0,class:`card`},sO={class:`flex items-center gap-2 w-full`},cO={class:`font-bold whitespace-nowrap`},lO=[`innerHTML`],uO={class:`flex items-center gap-4 mb-4`},dO={class:`flex justify-end gap-2`},fO=N(ie({__name:`editor`,setup(e){let t=Ke(),i=re(`openUpgradeDialog`),s=Be(),l=new cw,{settings:u}=Se(ye()),f=Tn(),{nodes:p,triggers:m,variables:h,name:g,currentFilePointer:_,errors:x,stepsDisplay:S,pipelineId:E,projectId:k,logLines:ee,nodeStatuses:M,isRunning:N,selectedNode:te}=Se(f),{loadSavedFile:ne,setIsRunning:ie,pushLine:ae,clearLogs:oe,getNodeDefinition:se,removeNode:ce,setBlockValue:le,setSelectedNode:de,setActiveNode:fe,onEditorChanged:pe}=f,{activeNode:me}=Se(f),{t:I}=Qe(),he=At(),{files:ge}=Se(he),{update:_e}=he,be=dt(),{isLoggedIn:xe,hasBuildHistoryBenefit:Ce}=Se(be),{startTour:we,isCompleted:Te}=$t(`editor`);T(()=>{});let Ee=w(!1),Oe=w([]),je=e=>{let t=p.value.find(t=>t.uid===e);return se(t.origin.nodeId,t.origin.pluginId).node.name??e};o([k,E],async()=>{let e=ge.value.pipelines.find(e=>e.id===E.value);if(e){if(e.type===`external`){let{path:t}=e,n=await s.execute(`config:load`,{config:t});if(n.type===`error`)throw Error(n.ipcError);let r=n.result.result;await ne(r)}else if(e.type===`internal`){let{configName:t}=e,n=await s.execute(`config:load`,{config:t});if(n.type===`error`)throw Error(n.ipcError);let r=n.result;try{let e=r.result;await ne(e)}catch(e){throw console.error(`error`,e),Error(I(`editor.invalid-file-content`))}}}},{immediate:!0});let Me=st(),Ne=w(),Pe=w(),Fe=async()=>{await s.execute(`action:cancel`)},Ie=async()=>{if(!xe.value&&be.hasLoginProvider){be.displayAuthModal(I(`editor.welcome-back`),I(`editor.please-log-in-to-run-a-scenario`));return}ve.capture(`run_started`),ie(!0),oe();try{let e=await s.execute(`graph:execute`,{graph:bt(p.value),pipelineId:E.value,projectId:k.value,variables:h.value,projectName:g.value,projectPath:_.value.type===`external`?_.value.path:void 0},async e=>{if(console.log(`graph:execute data`,e),e.type===`node-enter`){let t=p.value.find(t=>t.uid===e.data.nodeUid);t&&(fe(t),Pe.value=t,M.value[t.uid]=`running`,Ne.value=t.uid)}else if(e.type===`node-exit`){let t=p.value.find(t=>t.uid===e.data.nodeUid);t&&(fe(void 0),M.value[t.uid]=`done`)}else if(e.type===`node-log`){let{nodeUid:t,logData:n}=e.data;console.log(`logData`,n);let r=n.message.join(` `).split(`
|
|
900
|
+
`);for(let e of r.map(e=>e.trim()).filter(e=>!!e).filter(e=>e!==``)){let r=``;sw(e)?r+=l.toHtml(e):r+=e,ae(t,[Gt(n.timestamp,`dd/MM/yyyy - hh:mm:ss`),r].join(` `))}}});if(console.log(`result`,e),e.type===`success`){ve.capture(`node_sucess`,{origin_node_id:Pe.value.origin.nodeId,origin_plugin_id:Pe.value.origin.pluginId});for(let e of p.value)M.value[e.uid]=`done`}e.type===`error`?e.code===`canceled`?(Me.add({summary:`Build canceled`,life:1e4,severity:`info`,detail:`The build was canceled.`}),ve.capture(`run_canceled`)):e.code===`error`&&(Pe.value&&(M.value[Pe.value.uid]=`error`,ve.capture(`node_errored`,{origin_node_id:Pe.value.origin.nodeId,origin_plugin_id:Pe.value.origin.pluginId})),console.error(`error while executing process`,e.ipcError),Me.add({summary:I(`editor.execution-failed`),life:1e4,severity:`error`,detail:I(`editor.project-has-encountered-an-error`)+e.ipcError}),ve.capture(`run_errored`)):(Me.add({summary:I(`editor.execution-done`),life:1e4,severity:`success`,detail:I(`editor.your-project-has-been-executed-successfully`)}),ve.capture(`run_succeed`))}catch(e){console.error(`error while executing process`,e),console.error(`UNHANDLED ERROR`,e)}fe(void 0),ie(!1)},Le=w(!1),Re=w(!1),ze=RD(()=>{u.value?.autosave!==!1&&Ue()},1e3),He=!0;pe(()=>{if(He){He=!1;return}Re.value=!0,ze()});let Ue=async(e=!0)=>{if(Le.value=!0,_.value.type===`external`)await qe(_.value.path,e);else if(_.value.type===`internal`)await Je(_.value.configName,e);else throw Error(`TODO`);await at(500),Le.value=!1,Re.value=!1},We=async()=>{console.log(`close request`),await t.push({name:`Dashboard`})},Ge=async()=>{if(!be.hasBuildHistoryBenefit){i();return}Ee.value=!0},qe=async(e,t=!1)=>{let n={version:`4.0.0`,name:g.value,description:``,canvas:{blocks:p.value,triggers:m.value},variables:h.value,type:`default`};console.log(`result`,n),await Ft(e,n),await _e(e=>{let t=e.pipelines.find(e=>e.id===E.value);if(t.type===`external`)t.lastModified=new Date().toISOString();else throw Error(`Invalid file type`)}),t||Me.add({severity:`success`,summary:I(`editor.project-saved`),detail:I(`editor.your-project-has-be-saved-successfully`)})},Je=async(e,t=!1)=>{let n={version:`4.0.0`,name:g.value,description:``,canvas:{blocks:p.value,triggers:m.value},variables:h.value,type:`default`};try{await s.execute(`config:save`,{config:e,data:JSON.stringify(n)}),await _e(e=>{let t=e.pipelines.find(e=>e.id===E.value);if(t.type===`external`||t.type===`internal`)t.lastModified=new Date().toISOString();else throw Error(`Invalid file type`)}),t||Me.add({severity:`success`,summary:I(`editor.project-saved`),detail:I(`editor.your-project-has-be-saved-successfully`)})}catch(e){throw console.error(`error`,e),Error(I(`editor.project-has-encountered-an-error`))}};Ve(`dialog:alert`,async(e,{value:t,send:n})=>{alert(t.message),n({type:`end`,data:{type:`success`,result:{answer:`ok`}}})});let Ye=w(!1),Ze=w(``),$e=()=>{tt.callback({type:`end`,data:{type:`error`,ipcError:`canceled`}}),Ye.value=!1},et=()=>{tt.callback({type:`end`,data:{type:`success`,result:{answer:Ze.value}}}),Ye.value=!1},tt=O({callback:void 0,message:``});Ve(`dialog:prompt`,async(e,{value:t,send:n})=>{tt.message=t.message,tt.callback=n,Ye.value=!0});let nt=w(!1),rt=()=>{nt.value=!nt.value};Ae(ee,async()=>{if(!me.value)return;let e=(ee.value[me.value.uid]??[]).length-1;e<0||(Oe.value=[...Oe.value.map(e=>({...e,isExiting:!0})),{id:Date.now(),text:ee.value[me.value.uid][e],isExiting:!1}],await at(1e3),Oe.value=Oe.value.filter(e=>!e.isExiting))},{throttle:1e3,deep:!0});let it=async()=>{let e=await s.execute(`dialog:showSaveDialog`,{defaultPath:`pipelab-${f.projectId}-${f.pipelineId}.log`}),t=Object.entries(ee.value),n=``;for(let[e,r]of t){n+=`${e}\n`;for(let e of r)n+=`${` `.repeat(2)}${LD(e.toString()).result}\n`;n+=`
|
|
901
|
+
`}let r=n;e.type===`success`&&e.result.filePath&&await s.execute(`fs:write`,{path:e.result.filePath,content:r})};br(window,{"$mod+KeyS":e=>{e.preventDefault(),Ue(!1)}});function at(e){return new Promise(t=>setTimeout(t,e))}let ot=D(()=>{if(!te.value)return;let e=se(te.value.origin.nodeId,te.value.origin.pluginId);if(e)return e.node}),ct=(e,t)=>{le(te.value.uid,{...te.value,params:{...te.value.params,[t]:e}})};return(e,t)=>{let i=ue,o=Xe,s=nn,l=De,u=ke;return d(),A(`div`,zD,[F(Jt,null,{default:j(()=>[P(`div`,BD,[P(`div`,VD,[P(`div`,HD,[P(`div`,UD,[F(i,{id:`tour-editor-close`,outlined:``,label:b(I)(`base.close`),disabled:b(N),size:`small`,onClick:We},{icon:j(()=>t[8]||=[P(`i`,{class:`mdi mdi-close mr-1`},null,-1)]),_:1},8,[`label`,`disabled`])]),P(`div`,WD,[F(s,{pt:{display:{style:{padding:`4px`}}}},{display:j(()=>[P(`div`,GD,[P(`div`,null,n(b(f).name),1),F(i,{text:``,size:`small`,class:`ml-1`},{icon:j(()=>t[9]||=[P(`i`,{class:`mdi mdi-pencil`},null,-1)]),_:1})])]),content:j(({closeCallback:e})=>[F(o,{modelValue:b(f).name,"onUpdate:modelValue":t[0]||=e=>b(f).name=e,type:`text`},null,8,[`modelValue`]),F(i,{text:``,size:`small`,onClick:e},{icon:j(()=>t[10]||=[P(`i`,{class:`mdi mdi-content-save mr-1`},null,-1)]),_:2},1032,[`onClick`])]),_:1})]),P(`div`,KD,[b(Ce)?(d(),v(i,{key:0,outlined:``,label:b(I)(`editor.view-history`),disabled:b(N),size:`small`,onClick:Ge},{icon:j(()=>t[11]||=[P(`i`,{class:`mdi mdi-history mr-1`},null,-1)]),_:1},8,[`label`,`disabled`])):y(``,!0),F(i,{id:`tour-editor-save`,outlined:``,label:b(I)(`base.save`),disabled:b(N)||Le.value||!Re.value,loading:Le.value,size:`small`,onClick:t[1]||=e=>Ue(!1)},{icon:j(()=>t[12]||=[P(`i`,{class:`mdi mdi-content-save mr-1`},null,-1)]),_:1},8,[`label`,`disabled`,`loading`]),b(N)?(d(),v(i,{key:2,outlined:``,label:b(I)(`base.cancel`),size:`small`,onClick:Fe},{icon:j(()=>t[14]||=[P(`i`,{class:`mdi mdi-cancel mr-1`},null,-1)]),_:1},8,[`label`])):(d(),v(i,{key:1,id:`tour-editor-run`,outlined:``,label:b(I)(`base.run`),size:`small`,onClick:Ie},{icon:j(()=>t[13]||=[P(`i`,{class:`mdi mdi-play mr-1`},null,-1)]),_:1},8,[`label`]))])]),P(`div`,qD,[P(`div`,JD,[P(`div`,YD,[b(m).length>0?(d(!0),A(C,{key:0},a(b(m),e=>(d(),v(CC,{key:e.uid,steps:b(S),path:[`0`],value:e},null,8,[`steps`,`value`]))),128)):(d(),v(GC,{key:1,path:[]})),b(f)?(d(),v(or,{key:2,errors:b(x),nodes:b(p),path:[],steps:b(S),"starting-index":1,"is-running":b(N)},null,8,[`errors`,`nodes`,`steps`,`is-running`])):y(``,!0),F(dr,{title:b(I)(`base.end`)},null,8,[`title`])])]),b(te)?(d(),A(`div`,XD,[P(`div`,ZD,[P(`div`,QD,n(b(te)?.name??ot.value?.name),1),F(i,{icon:`pi pi-times`,class:`flex`,size:`small`,onClick:t[2]||=e=>b(de)(void 0)})]),ot.value?(d(),A(`div`,$D,[(d(!0),A(C,null,a(ot.value.params,(e,t)=>(d(),A(`div`,{key:t,class:`param`},[F(hC,{param:b(te).params[t],"param-key":t,"param-definition":e,value:b(te),steps:b(S),variables:b(h),"onUpdate:modelValue":e=>ct(e,t.toString())},null,8,[`param`,`param-key`,`param-definition`,`value`,`steps`,`variables`,`onUpdate:modelValue`])]))),128))])):y(``,!0),P(`div`,eO,[F(i,{label:b(I)(`base.delete`),icon:`pi pi-trash`,class:`flex-auto`,severity:`danger`,onClick:t[3]||=e=>b(ce)(b(te).uid)},null,8,[`label`])])])):y(``,!0)]),P(`div`,{class:r([`bottom`,{expanded:nt.value}])},[P(`div`,{id:`tour-editor-logs`,class:`header`,onClick:rt},[P(`div`,tO,[P(`div`,null,n(b(I)(`base.logs`)),1),b(N)?(d(),A(`div`,nO,[(d(!0),A(C,null,a(Oe.value,e=>(d(),A(`div`,{key:e.id,class:r([`log-entry`,{"slide-out":e.isExiting,"slide-in":!e.isExiting}])},[P(`span`,{innerHTML:e.text},null,8,rO)],2))),128))])):y(``,!0)]),P(`div`,iO,[c((d(),v(i,{text:``,onClick:Ot(it,[`stop`])},{icon:j(()=>t[15]||=[P(`i`,{class:`mdi mr-1 mdi-file-export`},null,-1)]),_:1})),[[u,`Export log`,void 0,{top:!0}]]),F(i,{text:``},{icon:j(()=>[P(`i`,{class:r([`mdi mr-1`,{"mdi-minus":nt.value,"mdi-plus":!nt.value}])},null,2)]),_:1})])]),nt.value?(d(),A(`div`,aO,[Object.keys(b(ee)).length>0?(d(),A(`div`,oO,[F(b(Wt),{value:Ne.value,"expand-icon":`pi pi-plus`,"collapse-icon":`pi pi-minus`,class:`accordion`},{default:j(()=>[(d(!0),A(C,null,a(b(ee),(e,t)=>(d(),v(b(Ht),{key:t,class:`accordion-panel`,value:t},{default:j(()=>[F(b(Ut),null,{default:j(()=>[P(`span`,sO,[P(`i`,{class:r([`mdi mr-1`,{"mdi-check-circle":b(M)[t]===`done`,"mdi-close-circle":b(M)[t]===`error`,"mdi-progress-question":b(M)[t]===`idle`,"mdi-cog":b(M)[t]===`running`,rotate:b(M)[t]===`running`}])},null,2),P(`span`,cO,n(je(t)),1)])]),_:2},1024),F(b(Vt),{class:`content`},{default:j(()=>[(d(!0),A(C,null,a(e,(e,t)=>(d(),A(`div`,{key:t,class:`line`,innerHTML:e},null,8,lO))),128))]),_:2},1024)]),_:2},1032,[`value`]))),128))]),_:1},8,[`value`])])):y(``,!0)])):y(``,!0)],2),F(l,{visible:Ye.value,"onUpdate:visible":t[5]||=e=>Ye.value=e,modal:``,header:tt.message,style:{width:`25rem`}},{default:j(()=>[P(`div`,uO,[F(o,{id:`answer`,modelValue:Ze.value,"onUpdate:modelValue":t[4]||=e=>Ze.value=e,class:`flex-auto`,autocomplete:`off`},null,8,[`modelValue`])]),P(`div`,dO,[F(i,{type:`button`,label:b(I)(`base.cancel`),severity:`secondary`,onClick:$e},null,8,[`label`]),F(i,{type:`button`,label:b(I)(`base.ok`),onClick:et},null,8,[`label`])])]),_:1},8,[`visible`,`header`])])])]),_:1}),F(Qt,{visible:Ee.value,"onUpdate:visible":t[6]||=e=>Ee.value=e,"pipeline-id":b(E),onHide:t[7]||=e=>Ee.value=!1},null,8,[`visible`,`pipeline-id`])])}}}),[[`__scopeId`,`data-v-c6522340`]]);export{fO as default};
|